]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/specific.m4: Include signal.h and unistd.h.
authorAkim Demaille <akim@epita.fr>
Sat, 17 May 2003 09:44:22 +0000 (09:44 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 17 May 2003 09:44:22 +0000 (09:44 +0000)
* doc/autoconf.texi (Obsolete Macros): Adjust.
Reported by Werner LEMBERG and Debian Bug 190886.

ChangeLog
NEWS
doc/autoconf.texi
lib/autoconf/specific.m4

index b2a8f8c37a50c562e22b518524b05dc87cdc64a8..7b06ccfee042df7f11b8677687c9e7b36cce42fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-05-17  Akim Demaille  <akim@epita.fr>
+
+       * lib/autoconf/specific.m4: Include signal.h and unistd.h.
+       * doc/autoconf.texi (Obsolete Macros): Adjust.
+       Reported by Werner LEMBERG and Debian Bug 190886.
+
 2003-05-16  Akim Demaille  <akim@epita.fr>
 
        * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
diff --git a/NEWS b/NEWS
index 68db878165e4a57c5a4c41ba0279973e610b8953..46986350b3ab8a32d46fca71fc141612dfa4303d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,9 @@
 ** New macros
   AC_C_RESTRICT
 
+** AC_DECL_SYS_SIGLIST
+  Works again.
+
 ** Improve DJGPP portability
   The Autoconf tools and configure behave better under DJGPP.
 
index 925ae92d35d69ae6a260c16eb2c600c2b1ca7132..15c0e730c56e3efe000e80687d1327c5517d211b 100644 (file)
@@ -12723,7 +12723,17 @@ not to use this macro.
 @defmac AC_DECL_SYS_SIGLIST
 @acindex{DECL_SYS_SIGLIST}
 @cvindex SYS_SIGLIST_DECLARED
-Same as @samp{AC_CHECK_DECLS([sys_siglist])}.
+Same as:
+
+@example
+AC_CHECK_DECLS([sys_siglist],,,
+[#include <signal.h>
+/* NetBSD declares sys_siglist in unistd.h.  */
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+])
+@end example
 @end defmac
 
 @defmac AC_DECL_YYTEXT
index ede539e69d272c075dbf1aa12693851076116629..954ca502c4d4959f3a66dc2f9b56520083a6d39f 100644 (file)
 # -------------------
 AN_IDENTIFIER([sys_siglist],     [AC_CHECK_DECLS([sys_siglist])])
 AU_DEFUN([AC_DECL_SYS_SIGLIST],
-[AC_CHECK_DECLS([sys_siglist])
+[AC_CHECK_DECLS([sys_siglist],,,
+[#include <signal.h>
+/* NetBSD declares sys_siglist in unistd.h.  */
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+])
 ])# AC_DECL_SYS_SIGLIST