Annotation of sql/pgsql/libltdl/aclocal.m4, revision 1.2
1.1 parser 1: dnl aclocal.m4 generated automatically by aclocal 1.4
2:
3: dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4: dnl This file is free software; the Free Software Foundation
5: dnl gives unlimited permission to copy and/or distribute it,
6: dnl with or without modifications, as long as this notice is preserved.
7:
8: dnl This program is distributed in the hope that it will be useful,
9: dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10: dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11: dnl PARTICULAR PURPOSE.
12:
13:
1.2 ! paf 14:
1.1 parser 15: # serial 40 AC_PROG_LIBTOOL
16: AC_DEFUN(AC_PROG_LIBTOOL,
17: [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
18:
1.2 ! paf 19: # Always use rootdir libtool.
! 20: LIBTOOL=../libtool
1.1 parser 21: AC_SUBST(LIBTOOL)dnl
22: ])
23:
24: AC_DEFUN(AC_LIBTOOL_SETUP,
25: [AC_PREREQ(2.13)dnl
26: AC_REQUIRE([AC_ENABLE_SHARED])dnl
27: AC_REQUIRE([AC_ENABLE_STATIC])dnl
28: AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
29: AC_REQUIRE([AC_CANONICAL_HOST])dnl
30: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
31: AC_REQUIRE([AC_PROG_RANLIB])dnl
32: AC_REQUIRE([AC_PROG_CC])dnl
33: AC_REQUIRE([AC_PROG_LD])dnl
34: AC_REQUIRE([AC_PROG_NM])dnl
35: AC_REQUIRE([AC_PROG_LN_S])dnl
36: dnl
37:
38: case "$target" in
39: NONE) lt_target="$host" ;;
40: *) lt_target="$target" ;;
41: esac
42:
43: # Check for any special flags to pass to ltconfig.
44: libtool_flags="--cache-file=$cache_file"
45: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
46: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
47: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
48: test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
49: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
50: ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
51: [libtool_flags="$libtool_flags --enable-dlopen"])
52: ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
53: [libtool_flags="$libtool_flags --enable-win32-dll"])
54: AC_ARG_ENABLE(libtool-lock,
55: [ --disable-libtool-lock avoid locking (might break parallel builds)])
56: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
57: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
58:
59: # Some flags need to be propagated to the compiler or linker for good
60: # libtool support.
61: case "$lt_target" in
62: *-*-irix6*)
63: # Find out which ABI we are using.
64: echo '[#]line __oline__ "configure"' > conftest.$ac_ext
65: if AC_TRY_EVAL(ac_compile); then
66: case "`/usr/bin/file conftest.o`" in
67: *32-bit*)
68: LD="${LD-ld} -32"
69: ;;
70: *N32*)
71: LD="${LD-ld} -n32"
72: ;;
73: *64-bit*)
74: LD="${LD-ld} -64"
75: ;;
76: esac
77: fi
78: rm -rf conftest*
79: ;;
80:
81: *-*-sco3.2v5*)
82: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
83: SAVE_CFLAGS="$CFLAGS"
84: CFLAGS="$CFLAGS -belf"
85: AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
86: [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
87: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
88: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
89: CFLAGS="$SAVE_CFLAGS"
90: fi
91: ;;
92:
93: ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
94: [*-*-cygwin* | *-*-mingw*)
95: AC_CHECK_TOOL(DLLTOOL, dlltool, false)
96: AC_CHECK_TOOL(AS, as, false)
97: AC_CHECK_TOOL(OBJDUMP, objdump, false)
98: ;;
99: ])
100: esac
101: ])
102:
103: # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
104: AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
105:
106: # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
107: AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
108:
109: # AC_ENABLE_SHARED - implement the --enable-shared flag
110: # Usage: AC_ENABLE_SHARED[(DEFAULT)]
111: # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
112: # `yes'.
113: AC_DEFUN(AC_ENABLE_SHARED, [dnl
114: define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
115: AC_ARG_ENABLE(shared,
116: changequote(<<, >>)dnl
117: << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
118: changequote([, ])dnl
119: [p=${PACKAGE-default}
120: case "$enableval" in
121: yes) enable_shared=yes ;;
122: no) enable_shared=no ;;
123: *)
124: enable_shared=no
125: # Look at the argument we got. We use all the common list separators.
126: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
127: for pkg in $enableval; do
128: if test "X$pkg" = "X$p"; then
129: enable_shared=yes
130: fi
131: done
132: IFS="$ac_save_ifs"
133: ;;
134: esac],
135: enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
136: ])
137:
138: # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
139: AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
140: AC_ENABLE_SHARED(no)])
141:
142: # AC_ENABLE_STATIC - implement the --enable-static flag
143: # Usage: AC_ENABLE_STATIC[(DEFAULT)]
144: # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
145: # `yes'.
146: AC_DEFUN(AC_ENABLE_STATIC, [dnl
147: define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
148: AC_ARG_ENABLE(static,
149: changequote(<<, >>)dnl
150: << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
151: changequote([, ])dnl
152: [p=${PACKAGE-default}
153: case "$enableval" in
154: yes) enable_static=yes ;;
155: no) enable_static=no ;;
156: *)
157: enable_static=no
158: # Look at the argument we got. We use all the common list separators.
159: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
160: for pkg in $enableval; do
161: if test "X$pkg" = "X$p"; then
162: enable_static=yes
163: fi
164: done
165: IFS="$ac_save_ifs"
166: ;;
167: esac],
168: enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
169: ])
170:
171: # AC_DISABLE_STATIC - set the default static flag to --disable-static
172: AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
173: AC_ENABLE_STATIC(no)])
174:
175:
176: # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
177: # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
178: # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
179: # `yes'.
180: AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
181: define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
182: AC_ARG_ENABLE(fast-install,
183: changequote(<<, >>)dnl
184: << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
185: changequote([, ])dnl
186: [p=${PACKAGE-default}
187: case "$enableval" in
188: yes) enable_fast_install=yes ;;
189: no) enable_fast_install=no ;;
190: *)
191: enable_fast_install=no
192: # Look at the argument we got. We use all the common list separators.
193: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
194: for pkg in $enableval; do
195: if test "X$pkg" = "X$p"; then
196: enable_fast_install=yes
197: fi
198: done
199: IFS="$ac_save_ifs"
200: ;;
201: esac],
202: enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
203: ])
204:
205: # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
206: AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
207: AC_ENABLE_FAST_INSTALL(no)])
208:
209: # AC_PROG_LD - find the path to the GNU or non-GNU linker
210: AC_DEFUN(AC_PROG_LD,
211: [AC_ARG_WITH(gnu-ld,
212: [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
213: test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
214: AC_REQUIRE([AC_PROG_CC])dnl
215: AC_REQUIRE([AC_CANONICAL_HOST])dnl
216: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
217: ac_prog=ld
218: if test "$ac_cv_prog_gcc" = yes; then
219: # Check if gcc -print-prog-name=ld gives a path.
220: AC_MSG_CHECKING([for ld used by GCC])
221: ac_prog=`($CC -print-prog-name=ld) 2>&5`
222: case "$ac_prog" in
223: # Accept absolute paths.
224: changequote(,)dnl
225: [\\/]* | [A-Za-z]:[\\/]*)
226: re_direlt='/[^/][^/]*/\.\./'
227: changequote([,])dnl
228: # Canonicalize the path of ld
229: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
230: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
231: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
232: done
233: test -z "$LD" && LD="$ac_prog"
234: ;;
235: "")
236: # If it fails, then pretend we aren't using GCC.
237: ac_prog=ld
238: ;;
239: *)
240: # If it is relative, then search for the first ld in PATH.
241: with_gnu_ld=unknown
242: ;;
243: esac
244: elif test "$with_gnu_ld" = yes; then
245: AC_MSG_CHECKING([for GNU ld])
246: else
247: AC_MSG_CHECKING([for non-GNU ld])
248: fi
249: AC_CACHE_VAL(ac_cv_path_LD,
250: [if test -z "$LD"; then
251: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252: for ac_dir in $PATH; do
253: test -z "$ac_dir" && ac_dir=.
254: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
255: ac_cv_path_LD="$ac_dir/$ac_prog"
256: # Check to see if the program is GNU ld. I'd rather use --version,
257: # but apparently some GNU ld's only accept -v.
258: # Break only if it was the GNU/non-GNU ld that we prefer.
259: if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
260: test "$with_gnu_ld" != no && break
261: else
262: test "$with_gnu_ld" != yes && break
263: fi
264: fi
265: done
266: IFS="$ac_save_ifs"
267: else
268: ac_cv_path_LD="$LD" # Let the user override the test with a path.
269: fi])
270: LD="$ac_cv_path_LD"
271: if test -n "$LD"; then
272: AC_MSG_RESULT($LD)
273: else
274: AC_MSG_RESULT(no)
275: fi
276: test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
277: AC_PROG_LD_GNU
278: ])
279:
280: AC_DEFUN(AC_PROG_LD_GNU,
281: [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
282: [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
283: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
284: ac_cv_prog_gnu_ld=yes
285: else
286: ac_cv_prog_gnu_ld=no
287: fi])
288: ])
289:
290: # AC_PROG_NM - find the path to a BSD-compatible name lister
291: AC_DEFUN(AC_PROG_NM,
292: [AC_MSG_CHECKING([for BSD-compatible nm])
293: AC_CACHE_VAL(ac_cv_path_NM,
294: [if test -n "$NM"; then
295: # Let the user override the test.
296: ac_cv_path_NM="$NM"
297: else
298: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
299: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
300: test -z "$ac_dir" && ac_dir=.
301: if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
302: # Check to see if the nm accepts a BSD-compat flag.
303: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
304: # nm: unknown option "B" ignored
305: if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
306: ac_cv_path_NM="$ac_dir/nm -B"
307: break
308: elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
309: ac_cv_path_NM="$ac_dir/nm -p"
310: break
311: else
312: ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
313: continue # so that we can try to find one that supports BSD flags
314: fi
315: fi
316: done
317: IFS="$ac_save_ifs"
318: test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
319: fi])
320: NM="$ac_cv_path_NM"
321: AC_MSG_RESULT([$NM])
322: ])
323:
324: # AC_CHECK_LIBM - check for math library
325: AC_DEFUN(AC_CHECK_LIBM,
326: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
327: LIBM=
328: case "$lt_target" in
329: *-*-beos* | *-*-cygwin*)
330: # These system don't have libm
331: ;;
332: *-ncr-sysv4.3*)
333: AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
334: AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
335: ;;
336: *)
337: AC_CHECK_LIB(m, main, LIBM="-lm")
338: ;;
339: esac
340: ])
341:
342: # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
343: # the libltdl convenience library and INCLTDL to the include flags for
344: # the libltdl header and adds --enable-ltdl-convenience to the
345: # configure arguments. Note that LIBLTDL and INCLTDL are not
346: # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
347: # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
348: # with '${top_builddir}/' and INCLTDL will be prefixed with
349: # '${top_srcdir}/' (note the single quotes!). If your package is not
350: # flat and you're not using automake, define top_builddir and
351: # top_srcdir appropriately in the Makefiles.
352: AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
353: case "$enable_ltdl_convenience" in
354: no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
355: "") enable_ltdl_convenience=yes
356: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
357: esac
358: LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
359: INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
360: ])
361:
362: # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
363: # the libltdl installable library and INCLTDL to the include flags for
364: # the libltdl header and adds --enable-ltdl-install to the configure
365: # arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
366: # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
367: # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
368: # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
369: # with '${top_srcdir}/' (note the single quotes!). If your package is
370: # not flat and you're not using automake, define top_builddir and
371: # top_srcdir appropriately in the Makefiles.
372: # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
373: AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
374: AC_CHECK_LIB(ltdl, main,
375: [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
376: [if test x"$enable_ltdl_install" = xno; then
377: AC_MSG_WARN([libltdl not installed, but installation disabled])
378: else
379: enable_ltdl_install=yes
380: fi
381: ])
382: if test x"$enable_ltdl_install" = x"yes"; then
383: ac_configure_args="$ac_configure_args --enable-ltdl-install"
384: LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
385: INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
386: else
387: ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
388: LIBLTDL="-lltdl"
389: INCLTDL=
390: fi
391: ])
392:
393: dnl old names
394: AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
395: AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
396: AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
397: AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
398: AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
399: AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
400: AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
401:
402: dnl This is just to silence aclocal about the macro not being used
403: ifelse([AC_DISABLE_FAST_INSTALL])dnl
404:
405: # Do all the work for Automake. This macro actually does too much --
406: # some checks are only needed if your package does certain things.
407: # But this isn't really a big deal.
408:
409: # serial 1
410:
411: dnl Usage:
412: dnl AM_INIT_AUTOMAKE(package,version, [no-define])
413:
414: AC_DEFUN(AM_INIT_AUTOMAKE,
415: [AC_REQUIRE([AC_PROG_INSTALL])
416: PACKAGE=[$1]
417: AC_SUBST(PACKAGE)
418: VERSION=[$2]
419: AC_SUBST(VERSION)
420: dnl test to see if srcdir already configured
421: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
422: AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
423: fi
424: ifelse([$3],,
425: AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
426: AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
427: AC_REQUIRE([AM_SANITY_CHECK])
428: AC_REQUIRE([AC_ARG_PROGRAM])
429: dnl FIXME This is truly gross.
430: missing_dir=`cd $ac_aux_dir && pwd`
431: AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
432: AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
433: AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
434: AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
435: AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
436: AC_REQUIRE([AC_PROG_MAKE_SET])])
437:
438: #
439: # Check to make sure that the build environment is sane.
440: #
441:
442: AC_DEFUN(AM_SANITY_CHECK,
443: [AC_MSG_CHECKING([whether build environment is sane])
444: # Just in case
445: sleep 1
446: echo timestamp > conftestfile
447: # Do `set' in a subshell so we don't clobber the current shell's
448: # arguments. Must try -L first in case configure is actually a
449: # symlink; some systems play weird games with the mod time of symlinks
450: # (eg FreeBSD returns the mod time of the symlink's containing
451: # directory).
452: if (
453: set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
454: if test "[$]*" = "X"; then
455: # -L didn't work.
456: set X `ls -t $srcdir/configure conftestfile`
457: fi
458: if test "[$]*" != "X $srcdir/configure conftestfile" \
459: && test "[$]*" != "X conftestfile $srcdir/configure"; then
460:
461: # If neither matched, then we have a broken ls. This can happen
462: # if, for instance, CONFIG_SHELL is bash and it inherits a
463: # broken ls alias from the environment. This has actually
464: # happened. Such a system could not be considered "sane".
465: AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
466: alias in your environment])
467: fi
468:
469: test "[$]2" = conftestfile
470: )
471: then
472: # Ok.
473: :
474: else
475: AC_MSG_ERROR([newly created file is older than distributed files!
476: Check your system clock])
477: fi
478: rm -f conftest*
479: AC_MSG_RESULT(yes)])
480:
481: dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
482: dnl The program must properly implement --version.
483: AC_DEFUN(AM_MISSING_PROG,
484: [AC_MSG_CHECKING(for working $2)
485: # Run test in a subshell; some versions of sh will print an error if
486: # an executable is not found, even if stderr is redirected.
487: # Redirect stdin to placate older versions of autoconf. Sigh.
488: if ($2 --version) < /dev/null > /dev/null 2>&1; then
489: $1=$2
490: AC_MSG_RESULT(found)
491: else
492: $1="$3/missing $2"
493: AC_MSG_RESULT(missing)
494: fi
495: AC_SUBST($1)])
496:
497: # Like AC_CONFIG_HEADER, but automatically create stamp file.
498:
499: AC_DEFUN(AM_CONFIG_HEADER,
500: [AC_PREREQ([2.12])
501: AC_CONFIG_HEADER([$1])
502: dnl When config.status generates a header, we must update the stamp-h file.
503: dnl This file resides in the same directory as the config header
504: dnl that is generated. We must strip everything past the first ":",
505: dnl and everything past the last "/".
506: AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
507: ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
508: <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
509: <<am_indx=1
510: for am_file in <<$1>>; do
511: case " <<$>>CONFIG_HEADERS " in
512: *" <<$>>am_file "*<<)>>
513: echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
514: ;;
515: esac
516: am_indx=`expr "<<$>>am_indx" + 1`
517: done<<>>dnl>>)
518: changequote([,]))])
519:
520: # Add --enable-maintainer-mode option to configure.
521: # From Jim Meyering
522:
523: # serial 1
524:
525: AC_DEFUN(AM_MAINTAINER_MODE,
526: [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
527: dnl maintainer-mode is disabled by default
528: AC_ARG_ENABLE(maintainer-mode,
529: [ --enable-maintainer-mode enable make rules and dependencies not useful
530: (and sometimes confusing) to the casual installer],
531: USE_MAINTAINER_MODE=$enableval,
532: USE_MAINTAINER_MODE=no)
533: AC_MSG_RESULT($USE_MAINTAINER_MODE)
534: AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
535: MAINT=$MAINTAINER_MODE_TRUE
536: AC_SUBST(MAINT)dnl
537: ]
538: )
539:
540: # Define a conditional.
541:
542: AC_DEFUN(AM_CONDITIONAL,
543: [AC_SUBST($1_TRUE)
544: AC_SUBST($1_FALSE)
545: if $2; then
546: $1_TRUE=
547: $1_FALSE='#'
548: else
549: $1_TRUE='#'
550: $1_FALSE=
551: fi])
552:
E-mail: