]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
various fixes
authorDavid MacKenzie <djm@djmnet.org>
Tue, 9 Aug 1994 14:46:16 +0000 (14:46 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Tue, 9 Aug 1994 14:46:16 +0000 (14:46 +0000)
NEWS
acgeneral.m4
acspecific.m4
autoconf.texi
autoheader.in
autoheader.sh
bin/autoheader.in
doc/autoconf.texi
lib/autoconf/general.m4
lib/autoconf/specific.m4

diff --git a/NEWS b/NEWS
index 2eec4333bc912b2c461ecf6c4752f8d1f13c1f95..6166bd641906f67a7a675b61677f9aad4b8de171 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,7 @@ Major changes in release 2.0:
 * AC_CHECK_TYPE, which checks whether sys/types.h defines a given type.
 * AC_TRY_LINK, which obsoletes AC_COMPILE_CHECK.
 * AC_PREFIX_PROGRAM, which obsoletes AC_PREFIX.
+* AC_HEADER_DIRENT, which obsoletes AC_DIR_HEADER.
 * AC_ARG_ENABLE and AC_ARG_WITH, which obsolete AC_ENABLE and AC_WITH.
 * AC_SUBST_FILE, to insert one file into another.
 
@@ -30,8 +31,6 @@ Major changes in release 2.0:
   override the file name "config.status".
 * AC_PROG_INSTALL looks for install.sh in the directory specified by
   AC_CONFIG_AUXDIR, or srcdir or srcdir/.. or srcdir/../.. by default.
-* AC_HEADER_DIRENT (formerly AC_DIR_HEADER) defines standard macro
-  names as well as the old ones, e.g. HAVE_DIRENT_H as well as DIRENT.
 
 ** New utilities:
 * autoscan to generate a preliminary configure.in for a package by
index 466abb60872b5d6a140cfe6be968abb0a92449b9..a4ca79f2b9de700b31a3e41ee12a7ac4e3fce9af 100644 (file)
@@ -807,7 +807,8 @@ dnl shell variable, so we need the eval.
 dnl if test "${$1+set}" = set; then
 if eval "test \"`echo '${'$1'+set}'`\" = set"; then
 dnl This verbose message is just for testing the caching code.
-  AC_MSG_RESULT(using cached value for $1)
+dnl  AC_MSG_RESULT(using cached value for $1)
+  AC_MSG_RESULT(using cached value)
 else
   $2
 fi
index 4b2aa0e3ba3332f2cee3e762921f30e3cd64aad1..41ce7008939f08cc696c5702c40ddab79a258b52 100644 (file)
@@ -432,6 +432,7 @@ dnl
 define(AC_HEADER_DIRENT,
 [AC_PROVIDE([$0])dnl
 AC_MSG_CHECKING(for directory library header)
+dnl We don't use AC_CHECK_HEADERS so we can stop when we get a match.
 AC_CACHE_VAL(ac_cv_header_dir,
 [ac_cv_header_dir=no
 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
@@ -1696,7 +1697,7 @@ fi
 ])dnl
 dnl
 define(AC_OS_XENIX,
-[AC_REQUIRE([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)
index b8f60f85495bcedda7cd62f3d4f7ac09a5838333..ea6456ea10b7a646988e9806ba799d94f42f22a3 100644 (file)
@@ -1608,8 +1608,8 @@ by a signal, define @code{HAVE_RESTARTABLE_SYSCALLS}.
 
 The following macros check for certain operating systems that need
 special treatment for some programs, due to exceptional oddities in
-their header files or libraries.  These macros are kludges; they should
-be replaced someday with a more systematic approach, based either on the
+their header files or libraries.  These macros are warts; they should
+be replaced by a more systematic approach, based either on the
 functions they make available or the environments they provide.
 
 @defmac AC_OS_AIX
@@ -1667,8 +1667,8 @@ Used to get @code{strftime}.  It must be called before checking for
 @maindex OS_XENIX
 If on Xenix, add @samp{-lx} to @code{make} variable @code{LIBS}.  Also,
 if @file{sys/ndir.h} is not being used, add @samp{-ldir} to @code{LIBS}.
-Needed when using the directory reading functions.  This macro must be
-called after @code{AC_HEADER_DIRENT}.
+Needed when using the directory reading functions.  This macro calls
+@code{AC_DIR_HEADER} if it has not been called already.
 @end defmac
 
 @node General Purpose Macros, Manual Configuration, Specific Tests, Top
index 3c8f39556c4895e6360357b14d57139d2863f3d5..9a3c6d8de42508cd956839973011d6f2a32894aa 100644 (file)
@@ -147,7 +147,10 @@ eval "`echo \"$frob\" \
 test -n "$print_version" && exit 0
 
 # Make SYMS newline-separated rather than blank-separated, and remove dups.
-syms="`for sym in $syms; do echo $sym; done | sort | uniq`"
+# Start each symbol with a blank (to match the blank after "#undef")
+# to reduce the possibility of mistakenly matching another symbol that
+# is a substring of it.
+syms="`for sym in $syms; do echo $sym; done | sort | uniq | sed 's@^@ @'`"
 
 if test $# -eq 0; then
   tmpout=autoh$$
@@ -161,7 +164,7 @@ echo "/* ${config_h}.in.  Generated automatically from $infile by autoheader.  *
 
 test -f ${config_h}.top && cat ${config_h}.top
 
-# This puts each paragraph on its own line, separated by @s.
+# This puts each template paragraph on its own line, separated by @s.
 if test -n "$syms"; then
    # Make sure the boundary of template files is also the boundary
    # of the paragraph.  Extra newlines don't hurt since they will
index 3c8f39556c4895e6360357b14d57139d2863f3d5..9a3c6d8de42508cd956839973011d6f2a32894aa 100644 (file)
@@ -147,7 +147,10 @@ eval "`echo \"$frob\" \
 test -n "$print_version" && exit 0
 
 # Make SYMS newline-separated rather than blank-separated, and remove dups.
-syms="`for sym in $syms; do echo $sym; done | sort | uniq`"
+# Start each symbol with a blank (to match the blank after "#undef")
+# to reduce the possibility of mistakenly matching another symbol that
+# is a substring of it.
+syms="`for sym in $syms; do echo $sym; done | sort | uniq | sed 's@^@ @'`"
 
 if test $# -eq 0; then
   tmpout=autoh$$
@@ -161,7 +164,7 @@ echo "/* ${config_h}.in.  Generated automatically from $infile by autoheader.  *
 
 test -f ${config_h}.top && cat ${config_h}.top
 
-# This puts each paragraph on its own line, separated by @s.
+# This puts each template paragraph on its own line, separated by @s.
 if test -n "$syms"; then
    # Make sure the boundary of template files is also the boundary
    # of the paragraph.  Extra newlines don't hurt since they will
index 3c8f39556c4895e6360357b14d57139d2863f3d5..9a3c6d8de42508cd956839973011d6f2a32894aa 100644 (file)
@@ -147,7 +147,10 @@ eval "`echo \"$frob\" \
 test -n "$print_version" && exit 0
 
 # Make SYMS newline-separated rather than blank-separated, and remove dups.
-syms="`for sym in $syms; do echo $sym; done | sort | uniq`"
+# Start each symbol with a blank (to match the blank after "#undef")
+# to reduce the possibility of mistakenly matching another symbol that
+# is a substring of it.
+syms="`for sym in $syms; do echo $sym; done | sort | uniq | sed 's@^@ @'`"
 
 if test $# -eq 0; then
   tmpout=autoh$$
@@ -161,7 +164,7 @@ echo "/* ${config_h}.in.  Generated automatically from $infile by autoheader.  *
 
 test -f ${config_h}.top && cat ${config_h}.top
 
-# This puts each paragraph on its own line, separated by @s.
+# This puts each template paragraph on its own line, separated by @s.
 if test -n "$syms"; then
    # Make sure the boundary of template files is also the boundary
    # of the paragraph.  Extra newlines don't hurt since they will
index b8f60f85495bcedda7cd62f3d4f7ac09a5838333..ea6456ea10b7a646988e9806ba799d94f42f22a3 100644 (file)
@@ -1608,8 +1608,8 @@ by a signal, define @code{HAVE_RESTARTABLE_SYSCALLS}.
 
 The following macros check for certain operating systems that need
 special treatment for some programs, due to exceptional oddities in
-their header files or libraries.  These macros are kludges; they should
-be replaced someday with a more systematic approach, based either on the
+their header files or libraries.  These macros are warts; they should
+be replaced by a more systematic approach, based either on the
 functions they make available or the environments they provide.
 
 @defmac AC_OS_AIX
@@ -1667,8 +1667,8 @@ Used to get @code{strftime}.  It must be called before checking for
 @maindex OS_XENIX
 If on Xenix, add @samp{-lx} to @code{make} variable @code{LIBS}.  Also,
 if @file{sys/ndir.h} is not being used, add @samp{-ldir} to @code{LIBS}.
-Needed when using the directory reading functions.  This macro must be
-called after @code{AC_HEADER_DIRENT}.
+Needed when using the directory reading functions.  This macro calls
+@code{AC_DIR_HEADER} if it has not been called already.
 @end defmac
 
 @node General Purpose Macros, Manual Configuration, Specific Tests, Top
index 466abb60872b5d6a140cfe6be968abb0a92449b9..a4ca79f2b9de700b31a3e41ee12a7ac4e3fce9af 100644 (file)
@@ -807,7 +807,8 @@ dnl shell variable, so we need the eval.
 dnl if test "${$1+set}" = set; then
 if eval "test \"`echo '${'$1'+set}'`\" = set"; then
 dnl This verbose message is just for testing the caching code.
-  AC_MSG_RESULT(using cached value for $1)
+dnl  AC_MSG_RESULT(using cached value for $1)
+  AC_MSG_RESULT(using cached value)
 else
   $2
 fi
index 4b2aa0e3ba3332f2cee3e762921f30e3cd64aad1..41ce7008939f08cc696c5702c40ddab79a258b52 100644 (file)
@@ -432,6 +432,7 @@ dnl
 define(AC_HEADER_DIRENT,
 [AC_PROVIDE([$0])dnl
 AC_MSG_CHECKING(for directory library header)
+dnl We don't use AC_CHECK_HEADERS so we can stop when we get a match.
 AC_CACHE_VAL(ac_cv_header_dir,
 [ac_cv_header_dir=no
 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
@@ -1696,7 +1697,7 @@ fi
 ])dnl
 dnl
 define(AC_OS_XENIX,
-[AC_REQUIRE([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)