source: trunk/essentials/sys-devel/automake-1.4/m4/init.m4

Last change on this file was 3124, checked in by bird, 18 years ago

automake 1.4-p6

File size: 1.2 KB
Line 
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.
4
5# serial 1
6
7dnl Usage:
8dnl AM_INIT_AUTOMAKE(package,version, [no-define])
9
10AC_DEFUN([AM_INIT_AUTOMAKE],
11[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
12AC_REQUIRE([AC_PROG_INSTALL])
13PACKAGE=[$1]
14AC_SUBST(PACKAGE)
15VERSION=[$2]
16AC_SUBST(VERSION)
17dnl test to see if srcdir already configured
18if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
19 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
20fi
21ifelse([$3],,
22AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
23AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
24AC_REQUIRE([AM_SANITY_CHECK])
25AC_REQUIRE([AC_ARG_PROGRAM])
26dnl FIXME This is truly gross.
27missing_dir=`cd $ac_aux_dir && pwd`
28AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
29AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
30AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
31AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
32AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
33AC_REQUIRE([AC_PROG_MAKE_SET])])
Note: See TracBrowser for help on using the repository browser.