]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-11-10 Akim Demaille <akim@epita.fr>
authorAkim Demaille <akim@epita.fr>
Sat, 29 Jan 2000 11:46:21 +0000 (11:46 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 29 Jan 2000 11:46:21 +0000 (11:46 +0000)
A test suite will be introduced which tries to run all the
specific macros, but hasbeen'd macro make configure die with bad
exit status.  So we wish to distinguish live macros from defunct
macros at the moment they are AC_DEFUN'd, not in their body.  Hm,
defunct, defunct... Hey!  That's a good name!

* acgeneral.m4 (AC_DEFUNCT): New macro, comparable to AC_DEFUN,
but for macros which are no longer defined.  Replaces AC_HASBEEN.
(AC_HASBEEN): Defunct.  Well, removed in fact.
(AC_HAVE_LIBRARY): Don't use AC_DEFUN and AC_HASBEEN, just
AC_DEFUNCT.
* acspecific.m4 (AC_UNISTD_H, AC_USG, AC_MEMORY_H, AC_DIR_HEADER,
AC_INT_16_BITS, AC_LONG_64_BITS): Likewise.
(AC_XENIX_DIR): It was defunct even before I declared it was: was
depending upon AC_DIR_HEADER which is defunct.  So AC_DEFUNCT'ed
now.
(AC_DYNIX_SEQ, AC_IRIX_SUN, AC_SCO_INTL): While we're here, you
too are defunct now.
* autoconf.texi (Obsolete Macros): Replace the documentation of
AC_HASBEEN with that of AC_DEFUNCT.

ChangeLog
acgeneral.m4
acspecific.m4
autoconf.texi
doc/autoconf.texi
lib/autoconf/general.m4
lib/autoconf/specific.m4

index c09d07e7cbfa418ba43b9ca0785d8a1b2543b03d..d7898195251e8bb7b8e267b257a00e9a94b82c47 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,26 @@
+1999-11-10  Akim Demaille  <akim@epita.fr>
+
+       A test suite will be introduced which tries to run all the
+       specific macros, but hasbeen'd macro make configure die with bad
+       exit status.  So we wish to distinguish live macros from defunct
+       macros at the moment they are AC_DEFUN'd, not in their body.  Hm,
+       defunct, defunct... Hey!  That's a good name!
+
+       * acgeneral.m4 (AC_DEFUNCT): New macro, comparable to AC_DEFUN,
+       but for macros which are no longer defined.  Replaces AC_HASBEEN.
+       (AC_HASBEEN): Defunct.  Well, removed in fact.
+       (AC_HAVE_LIBRARY): Don't use AC_DEFUN and AC_HASBEEN, just
+       AC_DEFUNCT.
+       * acspecific.m4 (AC_UNISTD_H, AC_USG, AC_MEMORY_H, AC_DIR_HEADER,
+       AC_INT_16_BITS, AC_LONG_64_BITS): Likewise.
+       (AC_XENIX_DIR): It was defunct even before I declared it was: was
+       depending upon AC_DIR_HEADER which is defunct.  So AC_DEFUNCT'ed
+       now.
+       (AC_DYNIX_SEQ, AC_IRIX_SUN, AC_SCO_INTL): While we're here, you
+       too are defunct now.
+       * autoconf.texi (Obsolete Macros): Replace the documentation of
+       AC_HASBEEN with that of AC_DEFUNCT.
+
 1999-11-10  Akim Demaille  <akim@epita.fr>
 
        * autoconf.sh: Formatting changes.
index 8dfff41124f6e93dc8e780c3c882c4503661dc8e..15ccced003e6070d7db3d77fb25afddfa6558d22 100644 (file)
@@ -474,6 +474,14 @@ define([AC_DEFUN],
 define([$1], [AC_PRO([$1])$4[]AC_EPI()])])])
 
 
+dnl AC_DEFUNCT(NAME, COMMENT)
+dnl -------------------------
+dnl Declare the macro NAME no longer exists, and must not be used.
+define([AC_DEFUNCT],
+[define([$1], [AC_FATAL([$1] is defunct[$2])])])
+
+
+
 
 dnl ### Some /bin/sh idioms
 
@@ -2149,11 +2157,6 @@ dnl -------------------------------------------
 define(AC_OBSOLETE,
 [AC_WARNING([$1] is obsolete[$2])])
 
-dnl AC_HASBEEN(THIS-MACRO-NAME [, SUGGESTION])
-dnl ------------------------------------------
-define(AC_HASBEEN,
-[AC_FATAL([$1] is obsolete[$2])])
-
 
 
 dnl ### Generic structure checks
@@ -2586,8 +2589,7 @@ AC_VAR_POPDEF([ac_Lib])dnl
 
 dnl AC_HAVE_LIBRARY
 dnl ---------------
-AC_DEFUN(AC_HAVE_LIBRARY,
-[AC_HASBEEN([$0], [; instead use AC_CHECK_LIB])])
+AC_DEFUNCT(AC_HAVE_LIBRARY, [; instead use AC_CHECK_LIB])
 
 
 dnl ### Examining declarations
index 69666e5189aa8e7a7ff1029055c92f5a64f09490..7e233c80ad630437e173c8f0a170bd2d5addde34 100644 (file)
@@ -1118,21 +1118,17 @@ fi
 
 dnl A few hasbeen'd macros.
 
-AC_DEFUN(AC_UNISTD_H,
-[AC_HASBEEN([$0], [; instead use AC_CHECK_HEADERS(unistd.h)])])
+AC_DEFUNCT(AC_UNISTD_H, [; instead use AC_CHECK_HEADERS(unistd.h)])
 
-AC_DEFUN(AC_USG,
-[AC_HASBEEN([$0],
-            [; instead use AC_CHECK_HEADERS(string.h) and HAVE_STRING_H])])
+AC_DEFUNCT(AC_USG,
+            [; instead use AC_CHECK_HEADERS(string.h) and HAVE_STRING_H])
 
 dnl If memchr and the like aren't declared in <string.h>, include <memory.h>.
 dnl To avoid problems, don't check for gcc2 built-ins.
-AC_DEFUN(AC_MEMORY_H,
-[AC_HASBEEN([$0],
-            [; instead use AC_CHECK_HEADERS(memory.h) and HAVE_MEMORY_H])])
+AC_DEFUNCT(AC_MEMORY_H,
+            [; instead use AC_CHECK_HEADERS(memory.h) and HAVE_MEMORY_H])
 
-AC_DEFUN(AC_DIR_HEADER,
-[AC_HASBEEN([$0], [; instead use AC_HEADER_DIRENT])])
+AC_DEFUNCT(AC_DIR_HEADER, [; instead use AC_HEADER_DIRENT])
 
 
 dnl ### Checks for typedefs
@@ -2449,11 +2445,8 @@ fi
 ])dnl AC_C_LONG_DOUBLE
 
 
-AC_DEFUN(AC_INT_16_BITS,
-[AC_HASBEEN([$0], [; instead use AC_CHECK_SIZEOF(int)])])
-
-AC_DEFUN(AC_LONG_64_BITS,
-[AC_HASBEEN([$0], [; instead use AC_CHECK_SIZEOF(long)])])
+AC_DEFUNCT(AC_INT_16_BITS, [; instead use AC_CHECK_SIZEOF(int)])
+AC_DEFUNCT(AC_LONG_64_BITS, [; instead use AC_CHECK_SIZEOF(long)])
 
 
 dnl AC_C_BIGENDIAN
@@ -3567,33 +3560,8 @@ else
 fi
 ])dnl AC_ISC_POSIX
 
-AC_DEFUN(AC_XENIX_DIR,
-[AC_OBSOLETE([$0], [; instead use AC_HEADER_DIRENT])dnl
-AC_REQUIRE([AC_DIR_HEADER])dnl
-AC_MSG_CHECKING(for Xenix)
-AC_EGREP_CPP(yes,
-[#if defined(M_XENIX) && !defined(M_UNIX)
-  yes
-#endif
-], [AC_MSG_RESULT(yes); XENIX=yes], [AC_MSG_RESULT(no); XENIX=])
-if test "$XENIX" = yes; then
-  # Make sure -ldir precedes -lx.
-  test $ac_header_dirent = dirent.h && LIBS="-ldir $LIBS"
-  LIBS="$LIBS -lx"
-fi
-])dnl AC_XENIX_DIR
-
-AC_DEFUN(AC_DYNIX_SEQ,
-[AC_OBSOLETE([$0], [; instead use AC_FUNC_GETMNTENT])dnl
-AC_CHECK_LIB(seq, getmntent, LIBS="-lseq $LIBS")
-])
-
-AC_DEFUN(AC_IRIX_SUN,
-[AC_OBSOLETE([$0], [; instead use AC_FUNC_GETMNTENT or AC_CHECK_LIB(sun, getpwnam)])dnl
-AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS")
-])
-
-AC_DEFUN(AC_SCO_INTL,
-[AC_OBSOLETE([$0], [; instead use AC_FUNC_STRFTIME])dnl
-AC_CHECK_LIB(intl, strftime, LIBS="-lintl $LIBS")
-])
+AC_DEFUNCT(AC_XENIX_DIR, [; instead use AC_HEADER_DIRENT])
+AC_DEFUNCT(AC_DYNIX_SEQ, [; instead use AC_FUNC_GETMNTENT])
+AC_DEFUNCT(AC_IRIX_SUN,
+           [; instead use AC_FUNC_GETMNTENT or AC_CHECK_LIB(sun, getpwnam)])
+AC_DEFUNCT(AC_SCO_INTL, [; instead use AC_FUNC_STRFTIME])
index c5bb032949f2f9489fa8849ec0bd4b8876cfc52f..928020779f2c3cdb4c2f7a3ca2820041e9101469 100644 (file)
@@ -4554,12 +4554,11 @@ temptation of removing obsolete macros is high.  The following macro
 intends to free the maintainer from this nightmare while still report an
 error to the users.
 
-@defmac AC_HASBEEN (@var{this-macro-name} @r{[}, @var{suggestion}@r{]})
-@maindex HASBEEN
-This is a stronger version of @code{AC_OBSOLETE} to be used when a macro
-is no longer implemented: @code{autoconf} dies on each occurence of
-@code{AC_HASBEEN}.  Macros which have been left obsolete for a long time
-are likely to use this mechanism.
+@defmac AC_DEFUNCT (@var{macro-name}, @ovar{suggestion})
+@maindex DEFUNCT
+Define @var{macro-name} to be a macro which is no longer supported,
+i.e., die as soon as it is used.  This is the destiny of macros which
+have been left obsolete for a long time.
 @end defmac
 
 
index c5bb032949f2f9489fa8849ec0bd4b8876cfc52f..928020779f2c3cdb4c2f7a3ca2820041e9101469 100644 (file)
@@ -4554,12 +4554,11 @@ temptation of removing obsolete macros is high.  The following macro
 intends to free the maintainer from this nightmare while still report an
 error to the users.
 
-@defmac AC_HASBEEN (@var{this-macro-name} @r{[}, @var{suggestion}@r{]})
-@maindex HASBEEN
-This is a stronger version of @code{AC_OBSOLETE} to be used when a macro
-is no longer implemented: @code{autoconf} dies on each occurence of
-@code{AC_HASBEEN}.  Macros which have been left obsolete for a long time
-are likely to use this mechanism.
+@defmac AC_DEFUNCT (@var{macro-name}, @ovar{suggestion})
+@maindex DEFUNCT
+Define @var{macro-name} to be a macro which is no longer supported,
+i.e., die as soon as it is used.  This is the destiny of macros which
+have been left obsolete for a long time.
 @end defmac
 
 
index 8dfff41124f6e93dc8e780c3c882c4503661dc8e..15ccced003e6070d7db3d77fb25afddfa6558d22 100644 (file)
@@ -474,6 +474,14 @@ define([AC_DEFUN],
 define([$1], [AC_PRO([$1])$4[]AC_EPI()])])])
 
 
+dnl AC_DEFUNCT(NAME, COMMENT)
+dnl -------------------------
+dnl Declare the macro NAME no longer exists, and must not be used.
+define([AC_DEFUNCT],
+[define([$1], [AC_FATAL([$1] is defunct[$2])])])
+
+
+
 
 dnl ### Some /bin/sh idioms
 
@@ -2149,11 +2157,6 @@ dnl -------------------------------------------
 define(AC_OBSOLETE,
 [AC_WARNING([$1] is obsolete[$2])])
 
-dnl AC_HASBEEN(THIS-MACRO-NAME [, SUGGESTION])
-dnl ------------------------------------------
-define(AC_HASBEEN,
-[AC_FATAL([$1] is obsolete[$2])])
-
 
 
 dnl ### Generic structure checks
@@ -2586,8 +2589,7 @@ AC_VAR_POPDEF([ac_Lib])dnl
 
 dnl AC_HAVE_LIBRARY
 dnl ---------------
-AC_DEFUN(AC_HAVE_LIBRARY,
-[AC_HASBEEN([$0], [; instead use AC_CHECK_LIB])])
+AC_DEFUNCT(AC_HAVE_LIBRARY, [; instead use AC_CHECK_LIB])
 
 
 dnl ### Examining declarations
index 69666e5189aa8e7a7ff1029055c92f5a64f09490..7e233c80ad630437e173c8f0a170bd2d5addde34 100644 (file)
@@ -1118,21 +1118,17 @@ fi
 
 dnl A few hasbeen'd macros.
 
-AC_DEFUN(AC_UNISTD_H,
-[AC_HASBEEN([$0], [; instead use AC_CHECK_HEADERS(unistd.h)])])
+AC_DEFUNCT(AC_UNISTD_H, [; instead use AC_CHECK_HEADERS(unistd.h)])
 
-AC_DEFUN(AC_USG,
-[AC_HASBEEN([$0],
-            [; instead use AC_CHECK_HEADERS(string.h) and HAVE_STRING_H])])
+AC_DEFUNCT(AC_USG,
+            [; instead use AC_CHECK_HEADERS(string.h) and HAVE_STRING_H])
 
 dnl If memchr and the like aren't declared in <string.h>, include <memory.h>.
 dnl To avoid problems, don't check for gcc2 built-ins.
-AC_DEFUN(AC_MEMORY_H,
-[AC_HASBEEN([$0],
-            [; instead use AC_CHECK_HEADERS(memory.h) and HAVE_MEMORY_H])])
+AC_DEFUNCT(AC_MEMORY_H,
+            [; instead use AC_CHECK_HEADERS(memory.h) and HAVE_MEMORY_H])
 
-AC_DEFUN(AC_DIR_HEADER,
-[AC_HASBEEN([$0], [; instead use AC_HEADER_DIRENT])])
+AC_DEFUNCT(AC_DIR_HEADER, [; instead use AC_HEADER_DIRENT])
 
 
 dnl ### Checks for typedefs
@@ -2449,11 +2445,8 @@ fi
 ])dnl AC_C_LONG_DOUBLE
 
 
-AC_DEFUN(AC_INT_16_BITS,
-[AC_HASBEEN([$0], [; instead use AC_CHECK_SIZEOF(int)])])
-
-AC_DEFUN(AC_LONG_64_BITS,
-[AC_HASBEEN([$0], [; instead use AC_CHECK_SIZEOF(long)])])
+AC_DEFUNCT(AC_INT_16_BITS, [; instead use AC_CHECK_SIZEOF(int)])
+AC_DEFUNCT(AC_LONG_64_BITS, [; instead use AC_CHECK_SIZEOF(long)])
 
 
 dnl AC_C_BIGENDIAN
@@ -3567,33 +3560,8 @@ else
 fi
 ])dnl AC_ISC_POSIX
 
-AC_DEFUN(AC_XENIX_DIR,
-[AC_OBSOLETE([$0], [; instead use AC_HEADER_DIRENT])dnl
-AC_REQUIRE([AC_DIR_HEADER])dnl
-AC_MSG_CHECKING(for Xenix)
-AC_EGREP_CPP(yes,
-[#if defined(M_XENIX) && !defined(M_UNIX)
-  yes
-#endif
-], [AC_MSG_RESULT(yes); XENIX=yes], [AC_MSG_RESULT(no); XENIX=])
-if test "$XENIX" = yes; then
-  # Make sure -ldir precedes -lx.
-  test $ac_header_dirent = dirent.h && LIBS="-ldir $LIBS"
-  LIBS="$LIBS -lx"
-fi
-])dnl AC_XENIX_DIR
-
-AC_DEFUN(AC_DYNIX_SEQ,
-[AC_OBSOLETE([$0], [; instead use AC_FUNC_GETMNTENT])dnl
-AC_CHECK_LIB(seq, getmntent, LIBS="-lseq $LIBS")
-])
-
-AC_DEFUN(AC_IRIX_SUN,
-[AC_OBSOLETE([$0], [; instead use AC_FUNC_GETMNTENT or AC_CHECK_LIB(sun, getpwnam)])dnl
-AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS")
-])
-
-AC_DEFUN(AC_SCO_INTL,
-[AC_OBSOLETE([$0], [; instead use AC_FUNC_STRFTIME])dnl
-AC_CHECK_LIB(intl, strftime, LIBS="-lintl $LIBS")
-])
+AC_DEFUNCT(AC_XENIX_DIR, [; instead use AC_HEADER_DIRENT])
+AC_DEFUNCT(AC_DYNIX_SEQ, [; instead use AC_FUNC_GETMNTENT])
+AC_DEFUNCT(AC_IRIX_SUN,
+           [; instead use AC_FUNC_GETMNTENT or AC_CHECK_LIB(sun, getpwnam)])
+AC_DEFUNCT(AC_SCO_INTL, [; instead use AC_FUNC_STRFTIME])