1 dnl aclocal.m4 generated automatically by aclocal 1.1n
3 # Do all the work for Automake. This macro actually does too much --
4 # some checks are only needed if your package does certain things.
5 # But this isn't really a big deal.
10 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
12 AC_DEFUN(AM_INIT_AUTOMAKE,
13 [AC_REQUIRE([AM_PROG_INSTALL])
19 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
20 AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
23 dnl FIXME This is truly gross.
24 missing_dir=`cd $ac_aux_dir && pwd`
25 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
26 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
27 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
28 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
29 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
35 AC_DEFUN(AM_PROG_INSTALL,
36 [AC_REQUIRE([AC_PROG_INSTALL])
37 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
38 AC_SUBST(INSTALL_SCRIPT)dnl
42 # Check to make sure that the build environment is sane.
45 AC_DEFUN(AM_SANITY_CHECK,
46 [AC_MSG_CHECKING([whether build environment is sane])
49 echo timestamp > conftestfile
50 # Do `set' in a subshell so we don't clobber the current shell's
51 # arguments. Must try -L first in case configure is actually a
52 # symlink; some systems play weird games with the mod time of symlinks
53 # (eg FreeBSD returns the mod time of the symlink's containing
56 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
57 if test "$@" = "X"; then
59 set X `ls -t $srcdir/configure conftestfile`
61 test "[$]2" = conftestfile
67 AC_MSG_ERROR([newly created file is older than distributed files!
68 Check your system clock])
73 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
74 dnl The program must properly implement --version.
75 AC_DEFUN(AM_MISSING_PROG,
76 [AC_MSG_CHECKING(for working $2)
77 # Run test in a subshell; some versions of sh will print an error if
78 # an executable is not found, even if stderr is redirected.
79 if ($2 --version) > /dev/null 2>&1; then
84 AC_MSG_RESULT(missing)
88 # Like AC_CONFIG_HEADER, but automatically create stamp file.
90 AC_DEFUN(AM_CONFIG_HEADER,
92 AC_CONFIG_HEADER([$1])
93 dnl When config.status generates a header, we must update the stamp-h file.
94 dnl This file resides in the same directory as the config header
95 dnl that is generated. We must strip everything past the first ":",
96 dnl and everything past the last "/".
97 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
98 test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl