Annotation of OpenXM_contrib2/asir2000/aclocal.m4, Revision 1.3
1.1 ohara 1: # aclocal.m4 generated automatically by aclocal 1.5
2:
3: # Copyright 1996, 1997, 1998, 1999, 2000, 2001
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:
1.2 noro 14: # aclocal.m4 generated automatically by aclocal 1.5
15:
16: # Copyright 1996, 1997, 1998, 1999, 2000, 2001
17: # Free Software Foundation, Inc.
18: # This file is free software; the Free Software Foundation
19: # gives unlimited permission to copy and/or distribute it,
20: # with or without modifications, as long as this notice is preserved.
21:
22: # This program is distributed in the hope that it will be useful,
23: # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
24: # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
25: # PARTICULAR PURPOSE.
26:
1.1 ohara 27: # Do all the work for Automake. This macro actually does too much --
28: # some checks are only needed if your package does certain things.
29: # But this isn't really a big deal.
30:
31: # serial 5
32:
33: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
34: # written in clear, in which case automake, when reading aclocal.m4,
35: # will think it sees a *use*, and therefore will trigger all it's
36: # C support machinery. Also note that it means that autoscan, seeing
37: # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
38:
39:
40: # We require 2.13 because we rely on SHELL being computed by configure.
41: AC_PREREQ([2.13])
42:
43: # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
44: # -----------------------------------------------------------
45: # If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED.
46: # The purpose of this macro is to provide the user with a means to
47: # check macros which are provided without letting her know how the
48: # information is coded.
49: # If this macro is not defined by Autoconf, define it here.
50: ifdef([AC_PROVIDE_IFELSE],
51: [],
52: [define([AC_PROVIDE_IFELSE],
53: [ifdef([AC_PROVIDE_$1],
54: [$2], [$3])])])
55:
56:
57: # AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE])
58: # ----------------------------------------------
59: AC_DEFUN([AM_INIT_AUTOMAKE],
60: [AC_REQUIRE([AC_PROG_INSTALL])dnl
61: # test to see if srcdir already configured
62: if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
63: test -f $srcdir/config.status; then
64: AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first])
65: fi
66:
67: # Define the identity of the package.
68: PACKAGE=$1
69: AC_SUBST(PACKAGE)dnl
70: VERSION=$2
71: AC_SUBST(VERSION)dnl
72: ifelse([$3],,
73: [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
74: AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])
75:
76: # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
77: # the ones we care about.
78: ifdef([m4_pattern_allow],
79: [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl
80:
81: # Autoconf 2.50 always computes EXEEXT. However we need to be
82: # compatible with 2.13, for now. So we always define EXEEXT, but we
83: # don't compute it.
84: AC_SUBST(EXEEXT)
85: # Similar for OBJEXT -- only we only use OBJEXT if the user actually
86: # requests that it be used. This is a bit dumb.
87: : ${OBJEXT=o}
88: AC_SUBST(OBJEXT)
89:
90: # Some tools Automake needs.
91: AC_REQUIRE([AM_SANITY_CHECK])dnl
92: AC_REQUIRE([AC_ARG_PROGRAM])dnl
93: AM_MISSING_PROG(ACLOCAL, aclocal)
94: AM_MISSING_PROG(AUTOCONF, autoconf)
95: AM_MISSING_PROG(AUTOMAKE, automake)
96: AM_MISSING_PROG(AUTOHEADER, autoheader)
97: AM_MISSING_PROG(MAKEINFO, makeinfo)
98: AM_MISSING_PROG(AMTAR, tar)
99: AM_PROG_INSTALL_SH
100: AM_PROG_INSTALL_STRIP
101: # We need awk for the "check" target. The system "awk" is bad on
102: # some platforms.
103: AC_REQUIRE([AC_PROG_AWK])dnl
104: AC_REQUIRE([AC_PROG_MAKE_SET])dnl
105: AC_REQUIRE([AM_DEP_TRACK])dnl
106: AC_REQUIRE([AM_SET_DEPDIR])dnl
107: AC_PROVIDE_IFELSE([AC_PROG_][CC],
108: [_AM_DEPENDENCIES(CC)],
109: [define([AC_PROG_][CC],
110: defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
111: AC_PROVIDE_IFELSE([AC_PROG_][CXX],
112: [_AM_DEPENDENCIES(CXX)],
113: [define([AC_PROG_][CXX],
114: defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
115: ])
116:
117: #
118: # Check to make sure that the build environment is sane.
119: #
120:
121: # serial 3
122:
123: # AM_SANITY_CHECK
124: # ---------------
125: AC_DEFUN([AM_SANITY_CHECK],
126: [AC_MSG_CHECKING([whether build environment is sane])
127: # Just in case
128: sleep 1
129: echo timestamp > conftest.file
130: # Do `set' in a subshell so we don't clobber the current shell's
131: # arguments. Must try -L first in case configure is actually a
132: # symlink; some systems play weird games with the mod time of symlinks
133: # (eg FreeBSD returns the mod time of the symlink's containing
134: # directory).
135: if (
136: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
137: if test "$[*]" = "X"; then
138: # -L didn't work.
139: set X `ls -t $srcdir/configure conftest.file`
140: fi
141: rm -f conftest.file
142: if test "$[*]" != "X $srcdir/configure conftest.file" \
143: && test "$[*]" != "X conftest.file $srcdir/configure"; then
144:
145: # If neither matched, then we have a broken ls. This can happen
146: # if, for instance, CONFIG_SHELL is bash and it inherits a
147: # broken ls alias from the environment. This has actually
148: # happened. Such a system could not be considered "sane".
149: AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
150: alias in your environment])
151: fi
152:
153: test "$[2]" = conftest.file
154: )
155: then
156: # Ok.
157: :
158: else
159: AC_MSG_ERROR([newly created file is older than distributed files!
160: Check your system clock])
161: fi
162: AC_MSG_RESULT(yes)])
163:
164:
165: # serial 2
166:
167: # AM_MISSING_PROG(NAME, PROGRAM)
168: # ------------------------------
169: AC_DEFUN([AM_MISSING_PROG],
170: [AC_REQUIRE([AM_MISSING_HAS_RUN])
171: $1=${$1-"${am_missing_run}$2"}
172: AC_SUBST($1)])
173:
174:
175: # AM_MISSING_HAS_RUN
176: # ------------------
177: # Define MISSING if not defined so far and test if it supports --run.
178: # If it does, set am_missing_run to use it, otherwise, to nothing.
179: AC_DEFUN([AM_MISSING_HAS_RUN],
180: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
181: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
182: # Use eval to expand $SHELL
183: if eval "$MISSING --run true"; then
184: am_missing_run="$MISSING --run "
185: else
186: am_missing_run=
187: am_backtick='`'
188: AC_MSG_WARN([${am_backtick}missing' script is too old or missing])
189: fi
190: ])
191:
192: # AM_AUX_DIR_EXPAND
193:
194: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
195: # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
196: # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
197: #
198: # Of course, Automake must honor this variable whenever it calls a
199: # tool from the auxiliary directory. The problem is that $srcdir (and
200: # therefore $ac_aux_dir as well) can be either absolute or relative,
201: # depending on how configure is run. This is pretty annoying, since
202: # it makes $ac_aux_dir quite unusable in subdirectories: in the top
203: # source directory, any form will work fine, but in subdirectories a
204: # relative path needs to be adjusted first.
205: #
206: # $ac_aux_dir/missing
207: # fails when called from a subdirectory if $ac_aux_dir is relative
208: # $top_srcdir/$ac_aux_dir/missing
209: # fails if $ac_aux_dir is absolute,
210: # fails when called from a subdirectory in a VPATH build with
211: # a relative $ac_aux_dir
212: #
213: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
214: # are both prefixed by $srcdir. In an in-source build this is usually
215: # harmless because $srcdir is `.', but things will broke when you
216: # start a VPATH build or use an absolute $srcdir.
217: #
218: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
219: # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
220: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
221: # and then we would define $MISSING as
222: # MISSING="\${SHELL} $am_aux_dir/missing"
223: # This will work as long as MISSING is not called from configure, because
224: # unfortunately $(top_srcdir) has no meaning in configure.
225: # However there are other variables, like CC, which are often used in
226: # configure, and could therefore not use this "fixed" $ac_aux_dir.
227: #
228: # Another solution, used here, is to always expand $ac_aux_dir to an
229: # absolute PATH. The drawback is that using absolute paths prevent a
230: # configured tree to be moved without reconfiguration.
231:
232: AC_DEFUN([AM_AUX_DIR_EXPAND], [
233: # expand $ac_aux_dir to an absolute path
234: am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
235: ])
236:
237: # AM_PROG_INSTALL_SH
238: # ------------------
239: # Define $install_sh.
240: AC_DEFUN([AM_PROG_INSTALL_SH],
241: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
242: install_sh=${install_sh-"$am_aux_dir/install-sh"}
243: AC_SUBST(install_sh)])
244:
245: # One issue with vendor `install' (even GNU) is that you can't
246: # specify the program used to strip binaries. This is especially
247: # annoying in cross-compiling environments, where the build's strip
248: # is unlikely to handle the host's binaries.
249: # Fortunately install-sh will honor a STRIPPROG variable, so we
250: # always use install-sh in `make install-strip', and initialize
251: # STRIPPROG with the value of the STRIP variable (set by the user).
252: AC_DEFUN([AM_PROG_INSTALL_STRIP],
253: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
254: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
255: AC_SUBST([INSTALL_STRIP_PROGRAM])])
256:
257: # serial 4 -*- Autoconf -*-
258:
259:
260:
261: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
262: # written in clear, in which case automake, when reading aclocal.m4,
263: # will think it sees a *use*, and therefore will trigger all it's
264: # C support machinery. Also note that it means that autoscan, seeing
265: # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
266:
267:
268:
269: # _AM_DEPENDENCIES(NAME)
270: # ---------------------
271: # See how the compiler implements dependency checking.
272: # NAME is "CC", "CXX" or "OBJC".
273: # We try a few techniques and use that to set a single cache variable.
274: #
275: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
276: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
277: # dependency, and given that the user is not expected to run this macro,
278: # just rely on AC_PROG_CC.
279: AC_DEFUN([_AM_DEPENDENCIES],
280: [AC_REQUIRE([AM_SET_DEPDIR])dnl
281: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
282: AC_REQUIRE([AM_MAKE_INCLUDE])dnl
283: AC_REQUIRE([AM_DEP_TRACK])dnl
284:
285: ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
286: [$1], CXX, [depcc="$CXX" am_compiler_list=],
287: [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']
288: [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
289: [depcc="$$1" am_compiler_list=])
290:
291: AC_CACHE_CHECK([dependency style of $depcc],
292: [am_cv_$1_dependencies_compiler_type],
293: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
294: # We make a subdir and do the tests there. Otherwise we can end up
295: # making bogus files that we don't know about and never remove. For
296: # instance it was reported that on HP-UX the gcc test will end up
297: # making a dummy file named `D' -- because `-MD' means `put the output
298: # in D'.
299: mkdir conftest.dir
300: # Copy depcomp to subdir because otherwise we won't find it if we're
301: # using a relative directory.
302: cp "$am_depcomp" conftest.dir
303: cd conftest.dir
304:
305: am_cv_$1_dependencies_compiler_type=none
306: if test "$am_compiler_list" = ""; then
307: am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
308: fi
309: for depmode in $am_compiler_list; do
310: # We need to recreate these files for each test, as the compiler may
311: # overwrite some of them when testing with obscure command lines.
312: # This happens at least with the AIX C compiler.
313: echo '#include "conftest.h"' > conftest.c
314: echo 'int i;' > conftest.h
315: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
316:
317: case $depmode in
318: nosideeffect)
319: # after this tag, mechanisms are not by side-effect, so they'll
320: # only be used when explicitly requested
321: if test "x$enable_dependency_tracking" = xyes; then
322: continue
323: else
324: break
325: fi
326: ;;
327: none) break ;;
328: esac
329: # We check with `-c' and `-o' for the sake of the "dashmstdout"
330: # mode. It turns out that the SunPro C++ compiler does not properly
331: # handle `-M -o', and we need to detect this.
332: if depmode=$depmode \
333: source=conftest.c object=conftest.o \
334: depfile=conftest.Po tmpdepfile=conftest.TPo \
335: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
336: grep conftest.h conftest.Po > /dev/null 2>&1 &&
337: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
338: am_cv_$1_dependencies_compiler_type=$depmode
339: break
340: fi
341: done
342:
343: cd ..
344: rm -rf conftest.dir
345: else
346: am_cv_$1_dependencies_compiler_type=none
347: fi
348: ])
349: $1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type"
350: AC_SUBST([$1DEPMODE])
351: ])
352:
353:
354: # AM_SET_DEPDIR
355: # -------------
356: # Choose a directory name for dependency files.
357: # This macro is AC_REQUIREd in _AM_DEPENDENCIES
358: AC_DEFUN([AM_SET_DEPDIR],
359: [rm -f .deps 2>/dev/null
360: mkdir .deps 2>/dev/null
361: if test -d .deps; then
362: DEPDIR=.deps
363: else
364: # MS-DOS does not allow filenames that begin with a dot.
365: DEPDIR=_deps
366: fi
367: rmdir .deps 2>/dev/null
368: AC_SUBST(DEPDIR)
369: ])
370:
371:
372: # AM_DEP_TRACK
373: # ------------
374: AC_DEFUN([AM_DEP_TRACK],
375: [AC_ARG_ENABLE(dependency-tracking,
376: [ --disable-dependency-tracking Speeds up one-time builds
377: --enable-dependency-tracking Do not reject slow dependency extractors])
378: if test "x$enable_dependency_tracking" != xno; then
379: am_depcomp="$ac_aux_dir/depcomp"
380: AMDEPBACKSLASH='\'
381: fi
382: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
383: pushdef([subst], defn([AC_SUBST]))
384: subst(AMDEPBACKSLASH)
385: popdef([subst])
386: ])
387:
388: # Generate code to set up dependency tracking.
389: # This macro should only be invoked once -- use via AC_REQUIRE.
390: # Usage:
391: # AM_OUTPUT_DEPENDENCY_COMMANDS
392:
393: #
394: # This code is only required when automatic dependency tracking
395: # is enabled. FIXME. This creates each `.P' file that we will
396: # need in order to bootstrap the dependency handling code.
397: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[
398: AC_OUTPUT_COMMANDS([
399: test x"$AMDEP_TRUE" != x"" ||
400: for mf in $CONFIG_FILES; do
401: case "$mf" in
402: Makefile) dirpart=.;;
403: */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
404: *) continue;;
405: esac
406: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
407: # Extract the definition of DEP_FILES from the Makefile without
408: # running `make'.
409: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
410: test -z "$DEPDIR" && continue
411: # When using ansi2knr, U may be empty or an underscore; expand it
412: U=`sed -n -e '/^U = / s///p' < "$mf"`
413: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
414: # We invoke sed twice because it is the simplest approach to
415: # changing $(DEPDIR) to its actual value in the expansion.
416: for file in `sed -n -e '
417: /^DEP_FILES = .*\\\\$/ {
418: s/^DEP_FILES = //
419: :loop
420: s/\\\\$//
421: p
422: n
423: /\\\\$/ b loop
424: p
425: }
426: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
427: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
428: # Make sure the directory exists.
429: test -f "$dirpart/$file" && continue
430: fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
431: $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
432: # echo "creating $dirpart/$file"
433: echo '# dummy' > "$dirpart/$file"
434: done
435: done
436: ], [AMDEP_TRUE="$AMDEP_TRUE"
437: ac_aux_dir="$ac_aux_dir"])])
438:
439: # AM_MAKE_INCLUDE()
440: # -----------------
441: # Check to see how make treats includes.
442: AC_DEFUN([AM_MAKE_INCLUDE],
443: [am_make=${MAKE-make}
444: cat > confinc << 'END'
445: doit:
446: @echo done
447: END
448: # If we don't find an include directive, just comment out the code.
449: AC_MSG_CHECKING([for style of include used by $am_make])
450: am__include='#'
451: am__quote=
452: _am_result=none
453: # First try GNU make style include.
454: echo "include confinc" > confmf
455: # We grep out `Entering directory' and `Leaving directory'
456: # messages which can occur if `w' ends up in MAKEFLAGS.
457: # In particular we don't look at `^make:' because GNU make might
458: # be invoked under some other name (usually "gmake"), in which
459: # case it prints its new name instead of `make'.
460: if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
461: am__include=include
462: am__quote=
463: _am_result=GNU
464: fi
465: # Now try BSD make style include.
466: if test "$am__include" = "#"; then
467: echo '.include "confinc"' > confmf
468: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
469: am__include=.include
470: am__quote='"'
471: _am_result=BSD
472: fi
473: fi
474: AC_SUBST(am__include)
475: AC_SUBST(am__quote)
476: AC_MSG_RESULT($_am_result)
477: rm -f confinc confmf
478: ])
479:
480: # serial 3
481:
482: # AM_CONDITIONAL(NAME, SHELL-CONDITION)
483: # -------------------------------------
484: # Define a conditional.
485: #
486: # FIXME: Once using 2.50, use this:
487: # m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl
488: AC_DEFUN([AM_CONDITIONAL],
489: [ifelse([$1], [TRUE],
490: [errprint(__file__:__line__: [$0: invalid condition: $1
491: ])dnl
492: m4exit(1)])dnl
493: ifelse([$1], [FALSE],
494: [errprint(__file__:__line__: [$0: invalid condition: $1
495: ])dnl
496: m4exit(1)])dnl
497: AC_SUBST([$1_TRUE])
498: AC_SUBST([$1_FALSE])
499: if $2; then
500: $1_TRUE=
501: $1_FALSE='#'
502: else
503: $1_TRUE='#'
504: $1_FALSE=
505: fi])
1.2 noro 506:
1.1 ohara 507:
1.3 ! ohara 508: # Add --enable-maintainer-mode option to configure.
! 509: # From Jim Meyering
! 510:
! 511: # serial 1
! 512:
! 513: AC_DEFUN([AM_MAINTAINER_MODE],
! 514: [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
! 515: dnl maintainer-mode is disabled by default
! 516: AC_ARG_ENABLE(maintainer-mode,
! 517: [ --enable-maintainer-mode enable make rules and dependencies not useful
! 518: (and sometimes confusing) to the casual installer],
! 519: USE_MAINTAINER_MODE=$enableval,
! 520: USE_MAINTAINER_MODE=no)
! 521: AC_MSG_RESULT([$USE_MAINTAINER_MODE])
! 522: AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
! 523: MAINT=$MAINTAINER_MODE_TRUE
! 524: AC_SUBST(MAINT)dnl
! 525: ]
! 526: )
! 527:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>