Eric Blake <ebb9 <at> byu.net> writes:
> Also in this fix: a modifier order cleanup, plus a fix to allow bootstrapping
> with autoconf 2.59 and m4 configured with --enable-changeword
...
>
> 2006-06-07 Eric Blake <ebb9 <at> byu.net>
>
> * configure.ac (changeword): Disable changeword for the creation
> of configure, in case of bootstrapping with an m4 configured with
> --enable-changeword.
Oops. Now I broke bootstrap the other direction, when the system m4 does not
have changeword. m4sugar intentionally dies when undefining a macro that is
not there.
I also cleaned up some cruft, reducing the size of configure without breaking
compilation, in preparations for experimenting with using gnulib to provide
lib/regex.c and friends.
2006-06-08 Eric Blake <[EMAIL PROTECTED]>
* configure.ac (changeword): Work even when changeword is not a
macro.
(AC_PROG_AWK, AC_PROG_INSTALL, AC_PROG_MAKE_SET, AC_HEADER_STDC):
Delete; now done by automake.
(AC_ISC_POSIX, AC_C_CONST): Delete; now obsolete.
Index: configure.ac
===================================================================
RCS file: /sources/m4/m4/configure.ac,v
retrieving revision 1.36.2.10
diff -u -r1.36.2.10 configure.ac
--- configure.ac 7 Jun 2006 18:46:42 -0000 1.36.2.10
+++ configure.ac 8 Jun 2006 19:38:47 -0000
@@ -28,20 +28,14 @@
AC_CONFIG_SRCDIR([src/m4.h])
AC_CONFIG_HEADERS([config.h:config-h.in])
-AC_PROG_AWK
AC_PROG_CC
-AC_PROG_INSTALL
-AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_AIX
-AC_ISC_POSIX
AC_MINIX
-AC_C_CONST
AC_CHECK_HEADERS([limits.h memory.h siginfo.h string.h unistd.h])
AC_CHECK_HEADERS([signal.h sys/signal.h], [break])
-AC_HEADER_STDC
AC_TYPE_SIGNAL
AC_TYPE_SIZE_T
@@ -101,7 +95,7 @@
dnl Don't let changeword get in our way, if bootstrapping with a version of
dnl m4 that already turned the feature on.
-m4_undefine([changeword])dnl
+m4_ifdef([changeword], [m4_undefine([changeword])])dnl
AC_MSG_CHECKING([[if changeword is wanted]])
AC_ARG_ENABLE([changeword],
_______________________________________________
M4-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-patches