]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
The recent addition of `exit's prototype in confdefs.h causes
authorAkim Demaille <akim@epita.fr>
Tue, 30 Jan 2001 19:29:38 +0000 (19:29 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 30 Jan 2001 19:29:38 +0000 (19:29 +0000)
AC_OUTPUT_MAKE_DEFS to include junky -D switches.
Reported by Wolfgang Mueller.
* tests/torture.at (#define header templates): Include trash in
confdefs.h.
* tests/atgeneral.at (AT_INIT): Don't expect `find' to support
-maxdepth, hence don't use -follow either.
Reported by Nicolas Joly.
* acgeneral.m4 (AC_OUTPUT_MAKE_DEFS) <confdef2opt.sed>: In the
`quote' section, `p'rint the result.
If neither `#define' pattern match, just call `d' to start a new
cycle.
Call this sed program with -n.

ChangeLog
THANKS
acgeneral.m4
doc/autoconf.texi
lib/autoconf/general.m4
lib/autotest/general.m4
tests/atgeneral.m4
tests/torture.at

index 726bc95f647ad7954e8c9eba6ada4f290af21b57..783a43d30c594db7fad267f84dbd6748c41443d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2001-01-30  Akim Demaille  <akim@epita.fr>
+
+       The recent addition of `exit's prototype in confdefs.h causes
+       AC_OUTPUT_MAKE_DEFS to include junky -D switches.
+       Reported by Wolfgang Mueller.
+
+       * tests/torture.at (#define header templates): Include trash in
+       confdefs.h.
+       * tests/atgeneral.at (AT_INIT): Don't expect `find' to support
+       -maxdepth, hence don't use -follow either.
+       Reported by Nicolas Joly.
+       * acgeneral.m4 (AC_OUTPUT_MAKE_DEFS) <confdef2opt.sed>: In the
+       `quote' section, `p'rint the result.
+       If neither `#define' pattern match, just call `d' to start a new
+       cycle.
+       Call this sed program with -n.
+
 2001-01-30  Akim Demaille  <akim@epita.fr>
 
        * tests/compile.at: New test.
diff --git a/THANKS b/THANKS
index e52e6600a2c57b15b0d79660aba891ecf0a73107..818bb979864d354b6a72876e7a72ab019bc8cf3b 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -146,6 +146,7 @@ Tony Leneis         tony@plaza.ds.adp.com
 Viktor Dukhovni                viktor@anaheim.esm.com
 Volker Borchert                bt@teknon.de
 Wilfredo Sanchez       wsanchez@apple.com
+Wolfgang Mueller       Wolfgang.Mueller@cui.unige.ch
 
 Many people are not named here because we lost track of them.  We
 thank them!  Please, help us keeping this list up to date.
index 6ad38f199b2ad72bcbc81aee31dc23c10f28949e..307fa1869833c2f548fc19355be62cb50987cdd8 100644 (file)
@@ -3787,11 +3787,14 @@ t clear
 s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 t quote
 s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
+t quote
+d
 : quote
 s,[    `~#$^&*(){}\\|;'"<>?],\\&,g
 s,\[,\\&,g
 s,\],\\&,g
 s,\$,$$,g
+p
 EOF
 # We use echo to avoid assuming a particular line-breaking character.
 # The extra dot is to prevent the shell from consuming trailing
@@ -3800,7 +3803,7 @@ EOF
 # platform that uses two characters for line-breaks (e.g., DOS), tr
 # would break.
 ac_LF_and_DOT=`echo; echo .`
-DEFS=`sed -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
+DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 rm -f confdef2opt.sed
 ]])# AC_OUTPUT_MAKE_DEFS
 
index 0fb5ab7962fec3e7a4d33e1ba1083b88ba33806a..7682ed2e177bea20fb210218128e3b2924ccb427 100644 (file)
@@ -6274,6 +6274,12 @@ simple work around consists in testing @command{expr} and use a variable
 set to @command{expr} or to @command{false} according to the result.
 
 
+@item @command{find}
+@c -----------------
+The option @option{-maxdepth} seems to be GNU specific. Tru64 v5.1,
+NetBSD 1.5 and Solaris 2.5 @command{find} commands do not understand it.
+
+
 @item @command{grep}
 @c -----------------
 @cindex @command{grep}
index 6ad38f199b2ad72bcbc81aee31dc23c10f28949e..307fa1869833c2f548fc19355be62cb50987cdd8 100644 (file)
@@ -3787,11 +3787,14 @@ t clear
 s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 t quote
 s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
+t quote
+d
 : quote
 s,[    `~#$^&*(){}\\|;'"<>?],\\&,g
 s,\[,\\&,g
 s,\],\\&,g
 s,\$,$$,g
+p
 EOF
 # We use echo to avoid assuming a particular line-breaking character.
 # The extra dot is to prevent the shell from consuming trailing
@@ -3800,7 +3803,7 @@ EOF
 # platform that uses two characters for line-breaks (e.g., DOS), tr
 # would break.
 ac_LF_and_DOT=`echo; echo .`
-DEFS=`sed -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
+DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 rm -f confdef2opt.sed
 ]])# AC_OUTPUT_MAKE_DEFS
 
index 9f0eae7bd43623d62b8270c0723cb964f0495e13..2de4d118f9c63ec4eb4304983ec1780698f52a56 100644 (file)
@@ -290,7 +290,7 @@ elif test $at_debug = false; then
 
     # Try to find a few ChangeLogs in case it might help determining the
     # exact version.
-    find "$at_top_srcdir" -follow -maxdepth 3 -name ChangeLog \
+    find "$at_top_srcdir" -name ChangeLog \
       -exec echo {} : ';' \
       -exec sed 's/^/| /;10q' {} ';' \
       -exec echo ';'
index 9f0eae7bd43623d62b8270c0723cb964f0495e13..2de4d118f9c63ec4eb4304983ec1780698f52a56 100644 (file)
@@ -290,7 +290,7 @@ elif test $at_debug = false; then
 
     # Try to find a few ChangeLogs in case it might help determining the
     # exact version.
-    find "$at_top_srcdir" -follow -maxdepth 3 -name ChangeLog \
+    find "$at_top_srcdir" -name ChangeLog \
       -exec echo {} : ';' \
       -exec sed 's/^/| /;10q' {} ';' \
       -exec echo ';'
index 07e49b786289745bffd0a481196c1198c792a83c..8cca3260501ecde7b7fe1d56813db3aaae9da35e 100644 (file)
@@ -133,16 +133,28 @@ AT_SETUP([#define header templates])
 AT_DATA([configure.ac],
 [[AC_INIT
 AC_CONFIG_HEADERS(config.h:config.hin)
+
 # I18n of dummy variables: their French translations.
 AC_DEFINE(foo, toto)
 AC_DEFINE(bar, tata)
 AC_DEFINE(baz, titi)
 AC_DEFINE(fubar, tutu)
+
 # Symbols which are prefixes of another.
 AC_DEFINE(a, A)
 AC_DEFINE(aaa, AAA)
 AC_DEFINE(aa, AA)
 AC_CONFIG_FILES(defs)
+
+# Things included in confdefs.h, but which make no sense in
+# config.h, nor in $DEFS.
+cat <<\EOF >>confdefs.h
+/* Hi Mum! Look, I'm doing C++! */
+#ifdef __cplusplus
+void exit (int status);
+#endif
+EOF
+
 # In addition of config.h output a full DEFS
 AC_OUTPUT_MAKE_DEFS
 DEFS_SAVED=$DEFS
@@ -187,7 +199,7 @@ AT_CHECK([cat config.h], 0, expout)
 
 # Check the value of DEFS.  Note the leading space.
 AT_DATA([expout],
-[[ -Dfoo=toto -Dbar=tata -Dbaz=titi -Dfubar=tutu -Da=A -Daaa=AAA -Daa=AA]
+[[-Dfoo=toto -Dbar=tata -Dbaz=titi -Dfubar=tutu -Da=A -Daaa=AAA -Daa=AA]
 ])
 
 # Because we strip trailing spaces in `testsuite' we can't leave one in