updated to automake 1.1l
[bpt/guile.git] / ice-9 / aclocal.m4
CommitLineData
85e02c55 1dnl aclocal.m4 generated automatically by aclocal 1.1l
733943b9
TT
2
3
4dnl Usage: AM_INIT_GUILE_MODULE(module-name)
5dnl This macro will automatically get the guile version from the
6dnl top-level srcdir, and will initialize automake. It also
7dnl defines the `module' variable.
8AC_DEFUN([AM_INIT_GUILE_MODULE],[
9. $srcdir/../GUILE-VERSION
10AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
11AC_CONFIG_AUX_DIR(..)
12module=[$1]
13AC_SUBST(module)])
14
15# Do all the work for Automake. This macro actually does too much --
16# some checks are only needed if your package does certain things.
17# But this isn't really a big deal.
18
19# serial 1
20
21dnl Usage:
22dnl AM_INIT_AUTOMAKE(package,version)
23
24AC_DEFUN(AM_INIT_AUTOMAKE,
25[AC_REQUIRE([AM_PROG_INSTALL])
26PACKAGE=[$1]
27AC_SUBST(PACKAGE)
28AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
29VERSION=[$2]
30AC_SUBST(VERSION)
31AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
32AM_SANITY_CHECK
33AC_ARG_PROGRAM
34AC_PROG_MAKE_SET])
35
36
37# serial 1
38
39AC_DEFUN(AM_PROG_INSTALL,
40[AC_REQUIRE([AC_PROG_INSTALL])
41test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
42AC_SUBST(INSTALL_SCRIPT)dnl
43])
44
45#
46# Check to make sure that the build environment is sane.
47#
48
49AC_DEFUN(AM_SANITY_CHECK,
50[AC_MSG_CHECKING([whether build environment is sane])
51echo timestamp > conftestfile
52# Do this in a subshell so we don't clobber the current shell's
53# arguments. FIXME: maybe try `-L' hack like GETLOADAVG test?
54if (set X `ls -t $srcdir/configure conftestfile`; test "[$]2" = conftestfile)
55then
56 # Ok.
57 :
58else
59 AC_MSG_ERROR([newly created file is older than distributed files!
60Check your system clock])
61fi
62rm -f conftest*
63AC_MSG_RESULT(yes)])
64