(Slight improvement from previous fix.)
[bpt/guile.git] / aclocal.m4
CommitLineData
66b62aa4 1dnl aclocal.m4 generated automatically by aclocal 1.1l
ebf50833 2
733943b9
TT
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.
6
7# serial 1
8
9dnl Usage:
10dnl AM_INIT_AUTOMAKE(package,version)
11
12AC_DEFUN(AM_INIT_AUTOMAKE,
13[AC_REQUIRE([AM_PROG_INSTALL])
14PACKAGE=[$1]
15AC_SUBST(PACKAGE)
16AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
17VERSION=[$2]
18AC_SUBST(VERSION)
19AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
20AM_SANITY_CHECK
21AC_ARG_PROGRAM
22AC_PROG_MAKE_SET])
23
24
25# serial 1
26
27AC_DEFUN(AM_PROG_INSTALL,
28[AC_REQUIRE([AC_PROG_INSTALL])
29test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
30AC_SUBST(INSTALL_SCRIPT)dnl
ebf50833 31])
733943b9
TT
32
33#
34# Check to make sure that the build environment is sane.
35#
36
37AC_DEFUN(AM_SANITY_CHECK,
38[AC_MSG_CHECKING([whether build environment is sane])
39echo timestamp > conftestfile
40# Do this in a subshell so we don't clobber the current shell's
41# arguments. FIXME: maybe try `-L' hack like GETLOADAVG test?
42if (set X `ls -t $srcdir/configure conftestfile`; test "[$]2" = conftestfile)
43then
44 # Ok.
45 :
46else
47 AC_MSG_ERROR([newly created file is older than distributed files!
48Check your system clock])
49fi
50rm -f conftest*
51AC_MSG_RESULT(yes)])
52
15ae1bee
MD
53# Add --enable-maintainer-mode option to configure.
54# From Jim Meyering
55
56# serial 1
57
58AC_DEFUN(AM_MAINTAINER_MODE,
59[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
60 dnl maintainer-mode is disabled by default
61 AC_ARG_ENABLE(maintainer-mode,
62[ --enable-maintainer-mode enable make rules and dependencies not useful
63 (and sometimes confusing) to the casual installer],
64 USE_MAINTAINER_MODE=$enableval,
65 USE_MAINTAINER_MODE=no)
66 AC_MSG_RESULT($USE_MAINTAINER_MODE)
67 if test $USE_MAINTAINER_MODE = yes; then
68 MAINT=
69 else
70 MAINT='#M#'
71 fi
72 AC_SUBST(MAINT)dnl
73]
74)
75