[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
remove AC_REQUIRE from AU_DEFUN
From: |
Alexandre Duret-Lutz |
Subject: |
remove AC_REQUIRE from AU_DEFUN |
Date: |
08 Jul 2002 00:13:16 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
This is a followup to a bug report I sent to bug-autoconf@ in
April. AC_REQUIRE cannot be called from the top-level (i.e.,
configure.ac itself), so it shouldn't be used in AU_DEFUN.
Otherwise autoupdate can produce a configure.ac that doesn't
compile.
2002-07-07 Alexandre Duret-Lutz <address@hidden>
* lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
Don't use AC_REQUIRE in AU_DEFUN.
Index: lib/autoconf/specific.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/specific.m4,v
retrieving revision 1.348
diff -u -r1.348 specific.m4
--- lib/autoconf/specific.m4 17 May 2002 07:09:12 -0000 1.348
+++ lib/autoconf/specific.m4 7 Jul 2002 13:26:04 -0000
@@ -360,7 +360,7 @@
# Check for Cygwin. This is a way to set the right value for
# EXEEXT.
AU_DEFUN([AC_CYGWIN],
-[AC_REQUIRE([AC_CANONICAL_HOST])[]dnl
+[AC_CANONICAL_HOST
AC_DIAGNOSE([obsolete],
[$0 is obsolete: use AC_CANONICAL_HOST and $host_os])dnl
case $host_os in
@@ -375,7 +375,7 @@
# Check for EMX on OS/2. This is another way to set the right value
# for EXEEXT.
AU_DEFUN([AC_EMXOS2],
-[AC_REQUIRE([AC_CANONICAL_HOST])[]dnl
+[AC_CANONICAL_HOST
AC_DIAGNOSE([obsolete],
[$0 is obsolete: use AC_CANONICAL_HOST and $host_os])dnl
case $host_os in
@@ -390,7 +390,7 @@
# Check for mingw32. This is another way to set the right value for
# EXEEXT.
AU_DEFUN([AC_MINGW32],
-[AC_REQUIRE([AC_CANONICAL_HOST])[]dnl
+[AC_CANONICAL_HOST
AC_DIAGNOSE([obsolete],
[$0 is obsolete: use AC_CANONICAL_HOST and $host_os])dnl
case $host_os in
--
Alexandre Duret-Lutz
- remove AC_REQUIRE from AU_DEFUN,
Alexandre Duret-Lutz <=