diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2002-01-12 18:48:53 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2002-01-12 18:48:53 +0000 |
commit | 7689032c17edd4dfcc486e19b0f976bb810746ec (patch) | |
tree | 085dc8a24f87af0d10aa92e963084fbf1a1b5bd0 /aclocal.m4 | |
parent | e375e1f2529d02f5585c55436d236613ef999094 (diff) | |
download | automake-7689032c17edd4dfcc486e19b0f976bb810746ec.tar.gz |
* m4/init.m4 (AM_INIT_AUTOMAKE): Set PACKAGE and VERSION from
AM_INIT_AUTOMAKE arguments when using the old-style call.
Use AC_PACKAGE_TARNAME and AC_PACKAGE_VERSION in the new form only.
Suggested by Pavel Roskin.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index d19358ead..a32dde047 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -69,16 +69,15 @@ if test "`cd $srcdir && pwd`" != "`pwd`" && AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi +# Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], - [m4_ifval([$3], [_AM_SET_OPTION([no-define])])], - [_AM_SET_OPTIONS([$1])])dnl - -# Define the identity of the package. -AC_SUBST([PACKAGE], -[m4_ifset([AC_PACKAGE_TARNAME], [AC_PACKAGE_TARNAME], [$1])])dnl -AC_SUBST([VERSION], -[m4_ifset([AC_PACKAGE_VERSION], [AC_PACKAGE_VERSION], [$2])])dnl + [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], + [_AM_SET_OPTIONS([$1]) + AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME]) + AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |