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