autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_DECL_SYS_SIGLIST is broken in latest autoconf


From: Ben Pfaff
Subject: AC_DECL_SYS_SIGLIST is broken in latest autoconf
Date: 26 Apr 2003 12:55:25 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

AC_DECL_SYS_SIGLIST doesn't #include <signal.h> before testing
for sys_siglist.  This breaks it on GNU/Linux and probably other
systems.  Here's a patch:

--- autoconf-2.57.orig/lib/autoconf/specific.m4
+++ autoconf-2.57/lib/autoconf/specific.m4
@@ -60,7 +60,12 @@
 # -------------------
 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
 

-- 
I love deadlines.
I love the whooshing noise they make as they go by.
--Douglas Adams




reply via email to

[Prev in Thread] Current Thread [Next in Thread]