diff options
author | Akim Demaille <akim@epita.fr> | 2000-01-29 10:30:15 +0000 |
---|---|---|
committer | Akim Demaille <akim@epita.fr> | 2000-01-29 10:30:15 +0000 |
commit | 10b394d34f740362d2beefa0102b33ac6a287a95 (patch) | |
tree | 9f8d8233d1bfa58ed57bcfc53e23c8048e8da327 /m4/init.m4 | |
parent | a8b1835003d3421762caed6711784de616f0f851 (diff) | |
download | autoconf-10b394d34f740362d2beefa0102b33ac6a287a95.tar.gz |
1999-11-10 Akim Demaille <akim@epita.fr>
Let Autoconf use autoconf's `--install'.
* m4/Makefile.am: New file.
* m4/init.am: New file, required by Automake.
* m4/missing.am: Likewise.
* m4/sanity.am: Likewise.
* aclocal.m4: Include them.
* configure.in (AC_OUTPUT): Added m4/Makefile.
Diffstat (limited to 'm4/init.m4')
-rw-r--r-- | m4/init.m4 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/m4/init.m4 b/m4/init.m4 new file mode 100644 index 00000000..9bfdd148 --- /dev/null +++ b/m4/init.m4 @@ -0,0 +1,32 @@ +# Do all the work for Automake. This macro actually does too much -- +# some checks are only needed if your package does certain things. +# But this isn't really a big deal. + +# serial 1 + +dnl Usage: +dnl AM_INIT_AUTOMAKE(package,version, [no-define]) + +AC_DEFUN(AM_INIT_AUTOMAKE, +[AC_REQUIRE([AC_PROG_INSTALL]) +PACKAGE=[$1] +AC_SUBST(PACKAGE) +VERSION=[$2] +AC_SUBST(VERSION) +dnl test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) +fi +ifelse([$3],, +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) +AC_REQUIRE([AM_SANITY_CHECK]) +AC_REQUIRE([AC_ARG_PROGRAM]) +dnl FIXME This is truly gross. +missing_dir=`cd $ac_aux_dir && pwd` +AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) +AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) +AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) +AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) +AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) +AC_REQUIRE([AC_PROG_MAKE_SET])]) |