1 # Do all the work for Automake. This macro actually does too much --
2 # some checks are only needed if your package does certain things.
3 # But this isn't really a big deal.
8 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
10 AC_DEFUN(AM_INIT_AUTOMAKE,
11 [AC_REQUIRE([AC_PROG_INSTALL])
16 dnl test to see if srcdir already configured
17 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
18 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
21 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
22 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])
23 AC_REQUIRE([AM_SANITY_CHECK])
24 AC_REQUIRE([AC_ARG_PROGRAM])
25 dnl FIXME This is truly gross.
26 missing_dir=`cd $ac_aux_dir && pwd`
27 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
28 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
29 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
30 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
31 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
32 AC_REQUIRE([AC_PROG_MAKE_SET])])