1 dnl aclocal.m4 generated automatically by aclocal 1.1m
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)
12 AC_DEFUN(AM_INIT_AUTOMAKE,
13 [AC_REQUIRE([AM_PROG_INSTALL])
16 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
19 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
22 dnl FIXME This is truly gross.
23 missing_dir=`cd $ac_aux_dir && pwd`
24 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
25 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
26 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
27 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
28 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
34 AC_DEFUN(AM_PROG_INSTALL,
35 [AC_REQUIRE([AC_PROG_INSTALL])
36 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
37 AC_SUBST(INSTALL_SCRIPT)dnl
41 # Check to make sure that the build environment is sane.
44 AC_DEFUN(AM_SANITY_CHECK,
45 [AC_MSG_CHECKING([whether build environment is sane])
46 echo timestamp > conftestfile
49 # Do `set' in a subshell so we don't clobber the current shell's
50 # arguments. Must try -L first in case configure is actually a
51 # symlink; some systems play weird games with the mod time of symlinks
52 # (eg FreeBSD returns the mod time of the symlink's containing
55 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
56 if test "$@" = "X"; then
58 set X `ls -t $srcdir/configure conftestfile`
60 test "[$]2" = conftestfile
66 AC_MSG_ERROR([newly created file is older than distributed files!
67 Check your system clock])
72 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
73 dnl The program must properly implement --version.
74 AC_DEFUN(AM_MISSING_PROG,
75 [AC_MSG_CHECKING(for working $2)
76 if $2 --version > /dev/null 2>&1; then
81 AC_MSG_RESULT(missing)