source: projects/proc-rpmnew/trunk/aclocal.m4 @ 4536

Revision 4536, 29.1 KB checked in by yasumichi, 13 years ago (diff)

proc-rpmnew をインポート

Line 
1# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4# Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
15#
16#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
17#   Written by Scott James Remnant, 2004.
18#
19# This file is free software; the Free Software Foundation gives
20# unlimited permission to copy and/or distribute it, with or without
21# modifications, as long as this notice is preserved.
22
23# serial 4 lt~obsolete.m4
24
25# These exist entirely to fool aclocal when bootstrapping libtool.
26#
27# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
28# which have later been changed to m4_define as they aren't part of the
29# exported API, or moved to Autoconf or Automake where they belong.
30#
31# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
32# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
33# using a macro with the same name in our local m4/libtool.m4 it'll
34# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
35# and doesn't know about Autoconf macros at all.)
36#
37# So we provide this file, which has a silly filename so it's always
38# included after everything else.  This provides aclocal with the
39# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
40# because those macros already exist, or will be overwritten later.
41# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
42#
43# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
44# Yes, that means every name once taken will need to remain here until
45# we give up compatibility with versions before 1.7, at which point
46# we need to keep only those names which we still refer to.
47
48# This is to help aclocal find these macros, as it can't see m4_define.
49AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
50
51m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
52m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
53m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
54m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
55m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
56m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
57m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
58m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
59m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
60m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
61m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
62m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
63m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
64m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
65m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
66m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
67m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
68m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
69m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
70m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
71m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
72m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
73m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
74m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
75m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
76m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
77m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
78m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
79m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
80m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
81m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
82m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
83m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
84m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
85m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
86m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
87m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
88m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
89m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
90m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
91m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
92m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
93m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
94m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
95m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
96m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
97m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
98m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
99m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
100m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
101m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
102m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
103m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
104m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
105m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
106
107#                                                        -*- Autoconf -*-
108# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
109# Generated from amversion.in; do not edit by hand.
110
111# This program is free software; you can redistribute it and/or modify
112# it under the terms of the GNU General Public License as published by
113# the Free Software Foundation; either version 2, or (at your option)
114# any later version.
115
116# This program is distributed in the hope that it will be useful,
117# but WITHOUT ANY WARRANTY; without even the implied warranty of
118# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
119# GNU General Public License for more details.
120
121# You should have received a copy of the GNU General Public License
122# along with this program; if not, write to the Free Software
123# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
124
125# AM_AUTOMAKE_VERSION(VERSION)
126# ----------------------------
127# Automake X.Y traces this macro to ensure aclocal.m4 has been
128# generated from the m4 files accompanying Automake X.Y.
129AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
130
131# AM_SET_CURRENT_AUTOMAKE_VERSION
132# -------------------------------
133# Call AM_AUTOMAKE_VERSION so it can be traced.
134# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
135AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
136         [AM_AUTOMAKE_VERSION([1.8.5])])
137
138# AM_AUX_DIR_EXPAND
139
140# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
141
142# This program is free software; you can redistribute it and/or modify
143# it under the terms of the GNU General Public License as published by
144# the Free Software Foundation; either version 2, or (at your option)
145# any later version.
146
147# This program is distributed in the hope that it will be useful,
148# but WITHOUT ANY WARRANTY; without even the implied warranty of
149# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
150# GNU General Public License for more details.
151
152# You should have received a copy of the GNU General Public License
153# along with this program; if not, write to the Free Software
154# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
155# 02111-1307, USA.
156
157# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
158# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
159# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
160#
161# Of course, Automake must honor this variable whenever it calls a
162# tool from the auxiliary directory.  The problem is that $srcdir (and
163# therefore $ac_aux_dir as well) can be either absolute or relative,
164# depending on how configure is run.  This is pretty annoying, since
165# it makes $ac_aux_dir quite unusable in subdirectories: in the top
166# source directory, any form will work fine, but in subdirectories a
167# relative path needs to be adjusted first.
168#
169# $ac_aux_dir/missing
170#    fails when called from a subdirectory if $ac_aux_dir is relative
171# $top_srcdir/$ac_aux_dir/missing
172#    fails if $ac_aux_dir is absolute,
173#    fails when called from a subdirectory in a VPATH build with
174#          a relative $ac_aux_dir
175#
176# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
177# are both prefixed by $srcdir.  In an in-source build this is usually
178# harmless because $srcdir is `.', but things will broke when you
179# start a VPATH build or use an absolute $srcdir.
180#
181# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
182# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
183#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
184# and then we would define $MISSING as
185#   MISSING="\${SHELL} $am_aux_dir/missing"
186# This will work as long as MISSING is not called from configure, because
187# unfortunately $(top_srcdir) has no meaning in configure.
188# However there are other variables, like CC, which are often used in
189# configure, and could therefore not use this "fixed" $ac_aux_dir.
190#
191# Another solution, used here, is to always expand $ac_aux_dir to an
192# absolute PATH.  The drawback is that using absolute paths prevent a
193# configured tree to be moved without reconfiguration.
194
195AC_DEFUN([AM_AUX_DIR_EXPAND],
196[dnl Rely on autoconf to set up CDPATH properly.
197AC_PREREQ([2.50])dnl
198# expand $ac_aux_dir to an absolute path
199am_aux_dir=`cd $ac_aux_dir && pwd`
200])
201
202# AM_CONDITIONAL                                              -*- Autoconf -*-
203
204# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
205
206# This program is free software; you can redistribute it and/or modify
207# it under the terms of the GNU General Public License as published by
208# the Free Software Foundation; either version 2, or (at your option)
209# any later version.
210
211# This program is distributed in the hope that it will be useful,
212# but WITHOUT ANY WARRANTY; without even the implied warranty of
213# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
214# GNU General Public License for more details.
215
216# You should have received a copy of the GNU General Public License
217# along with this program; if not, write to the Free Software
218# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
219# 02111-1307, USA.
220
221# serial 6
222
223# AM_CONDITIONAL(NAME, SHELL-CONDITION)
224# -------------------------------------
225# Define a conditional.
226AC_DEFUN([AM_CONDITIONAL],
227[AC_PREREQ(2.52)dnl
228 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
229        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
230AC_SUBST([$1_TRUE])
231AC_SUBST([$1_FALSE])
232if $2; then
233  $1_TRUE=
234  $1_FALSE='#'
235else
236  $1_TRUE='#'
237  $1_FALSE=
238fi
239AC_CONFIG_COMMANDS_PRE(
240[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
241  AC_MSG_ERROR([conditional "$1" was never defined.
242Usually this means the macro was only invoked conditionally.])
243fi])])
244
245# Do all the work for Automake.                            -*- Autoconf -*-
246
247# This macro actually does too much some checks are only needed if
248# your package does certain things.  But this isn't really a big deal.
249
250# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
251# Free Software Foundation, Inc.
252
253# This program is free software; you can redistribute it and/or modify
254# it under the terms of the GNU General Public License as published by
255# the Free Software Foundation; either version 2, or (at your option)
256# any later version.
257
258# This program is distributed in the hope that it will be useful,
259# but WITHOUT ANY WARRANTY; without even the implied warranty of
260# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
261# GNU General Public License for more details.
262
263# You should have received a copy of the GNU General Public License
264# along with this program; if not, write to the Free Software
265# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
266# 02111-1307, USA.
267
268# serial 11
269
270# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
271# AM_INIT_AUTOMAKE([OPTIONS])
272# -----------------------------------------------
273# The call with PACKAGE and VERSION arguments is the old style
274# call (pre autoconf-2.50), which is being phased out.  PACKAGE
275# and VERSION should now be passed to AC_INIT and removed from
276# the call to AM_INIT_AUTOMAKE.
277# We support both call styles for the transition.  After
278# the next Automake release, Autoconf can make the AC_INIT
279# arguments mandatory, and then we can depend on a new Autoconf
280# release and drop the old call support.
281AC_DEFUN([AM_INIT_AUTOMAKE],
282[AC_PREREQ([2.58])dnl
283dnl Autoconf wants to disallow AM_ names.  We explicitly allow
284dnl the ones we care about.
285m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
286AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
287AC_REQUIRE([AC_PROG_INSTALL])dnl
288# test to see if srcdir already configured
289if test "`cd $srcdir && pwd`" != "`pwd`" &&
290   test -f $srcdir/config.status; then
291  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
292fi
293
294# test whether we have cygpath
295if test -z "$CYGPATH_W"; then
296  if (cygpath --version) >/dev/null 2>/dev/null; then
297    CYGPATH_W='cygpath -w'
298  else
299    CYGPATH_W=echo
300  fi
301fi
302AC_SUBST([CYGPATH_W])
303
304# Define the identity of the package.
305dnl Distinguish between old-style and new-style calls.
306m4_ifval([$2],
307[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
308 AC_SUBST([PACKAGE], [$1])dnl
309 AC_SUBST([VERSION], [$2])],
310[_AM_SET_OPTIONS([$1])dnl
311 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
312 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
313
314_AM_IF_OPTION([no-define],,
315[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
316 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
317
318# Some tools Automake needs.
319AC_REQUIRE([AM_SANITY_CHECK])dnl
320AC_REQUIRE([AC_ARG_PROGRAM])dnl
321AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
322AM_MISSING_PROG(AUTOCONF, autoconf)
323AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
324AM_MISSING_PROG(AUTOHEADER, autoheader)
325AM_MISSING_PROG(MAKEINFO, makeinfo)
326AM_MISSING_PROG(AMTAR, tar)
327AM_PROG_INSTALL_SH
328AM_PROG_INSTALL_STRIP
329AC_REQUIRE([AM_PROG_MKDIR_P])dnl
330# We need awk for the "check" target.  The system "awk" is bad on
331# some platforms.
332AC_REQUIRE([AC_PROG_AWK])dnl
333AC_REQUIRE([AC_PROG_MAKE_SET])dnl
334AC_REQUIRE([AM_SET_LEADING_DOT])dnl
335
336_AM_IF_OPTION([no-dependencies],,
337[AC_PROVIDE_IFELSE([AC_PROG_CC],
338                  [_AM_DEPENDENCIES(CC)],
339                  [define([AC_PROG_CC],
340                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
341AC_PROVIDE_IFELSE([AC_PROG_CXX],
342                  [_AM_DEPENDENCIES(CXX)],
343                  [define([AC_PROG_CXX],
344                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
345])
346])
347
348
349# When config.status generates a header, we must update the stamp-h file.
350# This file resides in the same directory as the config header
351# that is generated.  The stamp files are numbered to have different names.
352
353# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
354# loop where config.status creates the headers, so we can generate
355# our stamp files there.
356AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
357[# Compute $1's index in $config_headers.
358_am_stamp_count=1
359for _am_header in $config_headers :; do
360  case $_am_header in
361    $1 | $1:* )
362      break ;;
363    * )
364      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
365  esac
366done
367echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
368
369# AM_PROG_INSTALL_SH
370# ------------------
371# Define $install_sh.
372
373# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
374
375# This program is free software; you can redistribute it and/or modify
376# it under the terms of the GNU General Public License as published by
377# the Free Software Foundation; either version 2, or (at your option)
378# any later version.
379
380# This program is distributed in the hope that it will be useful,
381# but WITHOUT ANY WARRANTY; without even the implied warranty of
382# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
383# GNU General Public License for more details.
384
385# You should have received a copy of the GNU General Public License
386# along with this program; if not, write to the Free Software
387# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
388# 02111-1307, USA.
389
390AC_DEFUN([AM_PROG_INSTALL_SH],
391[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
392install_sh=${install_sh-"$am_aux_dir/install-sh"}
393AC_SUBST(install_sh)])
394
395#                                                          -*- Autoconf -*-
396# Copyright (C) 2003  Free Software Foundation, Inc.
397
398# This program is free software; you can redistribute it and/or modify
399# it under the terms of the GNU General Public License as published by
400# the Free Software Foundation; either version 2, or (at your option)
401# any later version.
402
403# This program is distributed in the hope that it will be useful,
404# but WITHOUT ANY WARRANTY; without even the implied warranty of
405# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
406# GNU General Public License for more details.
407
408# You should have received a copy of the GNU General Public License
409# along with this program; if not, write to the Free Software
410# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
411# 02111-1307, USA.
412
413# serial 1
414
415# Check whether the underlying file-system supports filenames
416# with a leading dot.  For instance MS-DOS doesn't.
417AC_DEFUN([AM_SET_LEADING_DOT],
418[rm -rf .tst 2>/dev/null
419mkdir .tst 2>/dev/null
420if test -d .tst; then
421  am__leading_dot=.
422else
423  am__leading_dot=_
424fi
425rmdir .tst 2>/dev/null
426AC_SUBST([am__leading_dot])])
427
428# Add --enable-maintainer-mode option to configure.
429# From Jim Meyering
430
431# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
432# Free Software Foundation, Inc.
433
434# This program is free software; you can redistribute it and/or modify
435# it under the terms of the GNU General Public License as published by
436# the Free Software Foundation; either version 2, or (at your option)
437# any later version.
438
439# This program is distributed in the hope that it will be useful,
440# but WITHOUT ANY WARRANTY; without even the implied warranty of
441# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
442# GNU General Public License for more details.
443
444# You should have received a copy of the GNU General Public License
445# along with this program; if not, write to the Free Software
446# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
447# 02111-1307, USA.
448
449# serial 3
450
451AC_DEFUN([AM_MAINTAINER_MODE],
452[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
453  dnl maintainer-mode is disabled by default
454  AC_ARG_ENABLE(maintainer-mode,
455[  --enable-maintainer-mode  enable make rules and dependencies not useful
456                          (and sometimes confusing) to the casual installer],
457      USE_MAINTAINER_MODE=$enableval,
458      USE_MAINTAINER_MODE=no)
459  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
460  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
461  MAINT=$MAINTAINER_MODE_TRUE
462  AC_SUBST(MAINT)dnl
463]
464)
465
466AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
467
468#  -*- Autoconf -*-
469
470
471# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
472
473# This program is free software; you can redistribute it and/or modify
474# it under the terms of the GNU General Public License as published by
475# the Free Software Foundation; either version 2, or (at your option)
476# any later version.
477
478# This program is distributed in the hope that it will be useful,
479# but WITHOUT ANY WARRANTY; without even the implied warranty of
480# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
481# GNU General Public License for more details.
482
483# You should have received a copy of the GNU General Public License
484# along with this program; if not, write to the Free Software
485# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
486# 02111-1307, USA.
487
488# serial 3
489
490# AM_MISSING_PROG(NAME, PROGRAM)
491# ------------------------------
492AC_DEFUN([AM_MISSING_PROG],
493[AC_REQUIRE([AM_MISSING_HAS_RUN])
494$1=${$1-"${am_missing_run}$2"}
495AC_SUBST($1)])
496
497
498# AM_MISSING_HAS_RUN
499# ------------------
500# Define MISSING if not defined so far and test if it supports --run.
501# If it does, set am_missing_run to use it, otherwise, to nothing.
502AC_DEFUN([AM_MISSING_HAS_RUN],
503[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
504test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
505# Use eval to expand $SHELL
506if eval "$MISSING --run true"; then
507  am_missing_run="$MISSING --run "
508else
509  am_missing_run=
510  AC_MSG_WARN([`missing' script is too old or missing])
511fi
512])
513
514# AM_PROG_MKDIR_P
515# ---------------
516# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
517
518# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
519
520# This program is free software; you can redistribute it and/or modify
521# it under the terms of the GNU General Public License as published by
522# the Free Software Foundation; either version 2, or (at your option)
523# any later version.
524
525# This program is distributed in the hope that it will be useful,
526# but WITHOUT ANY WARRANTY; without even the implied warranty of
527# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
528# GNU General Public License for more details.
529
530# You should have received a copy of the GNU General Public License
531# along with this program; if not, write to the Free Software
532# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
533# 02111-1307, USA.
534
535# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
536# created by `make install' are always world readable, even if the
537# installer happens to have an overly restrictive umask (e.g. 077).
538# This was a mistake.  There are at least two reasons why we must not
539# use `-m 0755':
540#   - it causes special bits like SGID to be ignored,
541#   - it may be too restrictive (some setups expect 775 directories).
542#
543# Do not use -m 0755 and let people choose whatever they expect by
544# setting umask.
545#
546# We cannot accept any implementation of `mkdir' that recognizes `-p'.
547# Some implementations (such as Solaris 8's) are not thread-safe: if a
548# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
549# concurrently, both version can detect that a/ is missing, but only
550# one can create it and the other will error out.  Consequently we
551# restrict ourselves to GNU make (using the --version option ensures
552# this.)
553AC_DEFUN([AM_PROG_MKDIR_P],
554[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
555  # Keeping the `.' argument allows $(mkdir_p) to be used without
556  # argument.  Indeed, we sometimes output rules like
557  #   $(mkdir_p) $(somedir)
558  # where $(somedir) is conditionally defined.
559  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
560  # expensive solution, as it forces Make to start a sub-shell.)
561  mkdir_p='mkdir -p -- .'
562else
563  # On NextStep and OpenStep, the `mkdir' command does not
564  # recognize any option.  It will interpret all options as
565  # directories to create, and then abort because `.' already
566  # exists.
567  for d in ./-p ./--version;
568  do
569    test -d $d && rmdir $d
570  done
571  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
572  if test -f "$ac_aux_dir/mkinstalldirs"; then
573    mkdir_p='$(mkinstalldirs)'
574  else
575    mkdir_p='$(install_sh) -d'
576  fi
577fi
578AC_SUBST([mkdir_p])])
579
580# Helper functions for option handling.                    -*- Autoconf -*-
581
582# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
583
584# This program is free software; you can redistribute it and/or modify
585# it under the terms of the GNU General Public License as published by
586# the Free Software Foundation; either version 2, or (at your option)
587# any later version.
588
589# This program is distributed in the hope that it will be useful,
590# but WITHOUT ANY WARRANTY; without even the implied warranty of
591# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
592# GNU General Public License for more details.
593
594# You should have received a copy of the GNU General Public License
595# along with this program; if not, write to the Free Software
596# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
597# 02111-1307, USA.
598
599# serial 2
600
601# _AM_MANGLE_OPTION(NAME)
602# -----------------------
603AC_DEFUN([_AM_MANGLE_OPTION],
604[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
605
606# _AM_SET_OPTION(NAME)
607# ------------------------------
608# Set option NAME.  Presently that only means defining a flag for this option.
609AC_DEFUN([_AM_SET_OPTION],
610[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
611
612# _AM_SET_OPTIONS(OPTIONS)
613# ----------------------------------
614# OPTIONS is a space-separated list of Automake options.
615AC_DEFUN([_AM_SET_OPTIONS],
616[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
617
618# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
619# -------------------------------------------
620# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
621AC_DEFUN([_AM_IF_OPTION],
622[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
623
624#
625# Check to make sure that the build environment is sane.
626#
627
628# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
629
630# This program is free software; you can redistribute it and/or modify
631# it under the terms of the GNU General Public License as published by
632# the Free Software Foundation; either version 2, or (at your option)
633# any later version.
634
635# This program is distributed in the hope that it will be useful,
636# but WITHOUT ANY WARRANTY; without even the implied warranty of
637# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
638# GNU General Public License for more details.
639
640# You should have received a copy of the GNU General Public License
641# along with this program; if not, write to the Free Software
642# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
643# 02111-1307, USA.
644
645# serial 3
646
647# AM_SANITY_CHECK
648# ---------------
649AC_DEFUN([AM_SANITY_CHECK],
650[AC_MSG_CHECKING([whether build environment is sane])
651# Just in case
652sleep 1
653echo timestamp > conftest.file
654# Do `set' in a subshell so we don't clobber the current shell's
655# arguments.  Must try -L first in case configure is actually a
656# symlink; some systems play weird games with the mod time of symlinks
657# (eg FreeBSD returns the mod time of the symlink's containing
658# directory).
659if (
660   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
661   if test "$[*]" = "X"; then
662      # -L didn't work.
663      set X `ls -t $srcdir/configure conftest.file`
664   fi
665   rm -f conftest.file
666   if test "$[*]" != "X $srcdir/configure conftest.file" \
667      && test "$[*]" != "X conftest.file $srcdir/configure"; then
668
669      # If neither matched, then we have a broken ls.  This can happen
670      # if, for instance, CONFIG_SHELL is bash and it inherits a
671      # broken ls alias from the environment.  This has actually
672      # happened.  Such a system could not be considered "sane".
673      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
674alias in your environment])
675   fi
676
677   test "$[2]" = conftest.file
678   )
679then
680   # Ok.
681   :
682else
683   AC_MSG_ERROR([newly created file is older than distributed files!
684Check your system clock])
685fi
686AC_MSG_RESULT(yes)])
687
688# AM_PROG_INSTALL_STRIP
689
690# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
691
692# This program is free software; you can redistribute it and/or modify
693# it under the terms of the GNU General Public License as published by
694# the Free Software Foundation; either version 2, or (at your option)
695# any later version.
696
697# This program is distributed in the hope that it will be useful,
698# but WITHOUT ANY WARRANTY; without even the implied warranty of
699# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
700# GNU General Public License for more details.
701
702# You should have received a copy of the GNU General Public License
703# along with this program; if not, write to the Free Software
704# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
705# 02111-1307, USA.
706
707# One issue with vendor `install' (even GNU) is that you can't
708# specify the program used to strip binaries.  This is especially
709# annoying in cross-compiling environments, where the build's strip
710# is unlikely to handle the host's binaries.
711# Fortunately install-sh will honor a STRIPPROG variable, so we
712# always use install-sh in `make install-strip', and initialize
713# STRIPPROG with the value of the STRIP variable (set by the user).
714AC_DEFUN([AM_PROG_INSTALL_STRIP],
715[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
716# Installed binaries are usually stripped using `strip' when the user
717# run `make install-strip'.  However `strip' might not be the right
718# tool to use in cross-compilation environments, therefore Automake
719# will honor the `STRIP' environment variable to overrule this program.
720dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
721if test "$cross_compiling" != no; then
722  AC_CHECK_TOOL([STRIP], [strip], :)
723fi
724INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
725AC_SUBST([INSTALL_STRIP_PROGRAM])])
726
Note: See TracBrowser for help on using the repository browser.