works, not the contrary...
* m4/options.m4 (_AM_IF_OPTIONS): Use m4_ifset.
* m4/init.m4 (AM_INIT_AUTOMAKE): A third argument implies no-define,
not the contrary.
+2002-01-12 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * test/nodefine.test, test/nodefine2.test: Check that no-define
+ works, not the contrary...
+ * m4/options.m4 (_AM_IF_OPTIONS): Use m4_ifset.
+ * m4/init.m4 (AM_INIT_AUTOMAKE): A third argument implies no-define,
+ not the contrary.
+
2002-01-12 Jim Meyering <meyering@lucent.com>
* automake.in (scan_one_autoconf_file): Unquote AC_LIBOBJ argument.
dnl Distinguish between old-style and new-style calls.
m4_ifval([$2],
- [m4_ifval([$3],, [_AM_SET_OPTION([no-define])])],
+ [m4_ifval([$3], [_AM_SET_OPTION([no-define])])],
[_AM_SET_OPTIONS([$1])])dnl
# Define the identity of the package.
# -------------------------------------------
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
AC_DEFUN([_AM_IF_OPTION],
-[m4_if(_AM_MANGLE_OPTION([$1]), 1, [$2], [$3])])
+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
#
# Check to make sure that the build environment is sane.
dnl Distinguish between old-style and new-style calls.
m4_ifval([$2],
- [m4_ifval([$3],, [_AM_SET_OPTION([no-define])])],
+ [m4_ifval([$3], [_AM_SET_OPTION([no-define])])],
[_AM_SET_OPTIONS([$1])])dnl
# Define the identity of the package.
# -------------------------------------------
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
AC_DEFUN([_AM_IF_OPTION],
-[m4_if(_AM_MANGLE_OPTION([$1]), 1, [$2], [$3])])
+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
libobj8.test \
libobj9.test \
libobj10.test \
+libobj11.test \
library.test \
libtool.test \
libtool2.test \
$AUTOCONF
./configure
-grep 'DEFS.*-DVERSION=\\"UnIqUe' output || exit 1
+grep 'DEFS.*-DVERSION=\\"UnIqUe' output && exit 1
:
$AUTOMAKE # Dummy call to make sure Automake grok `no-define' silently.
./configure
-grep 'DEFS.*-DVERSION=\\"UnIqUe' output || exit 1
+grep 'DEFS.*-DVERSION=\\"UnIqUe' output && exit 1
: