]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
authorAkim Demaille <akim@epita.fr>
Fri, 11 Oct 2002 12:17:51 +0000 (12:17 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 11 Oct 2002 12:17:51 +0000 (12:17 +0000)
Suggest using AC_CHECK_DECLS instead.

ChangeLog
NEWS
doc/autoconf.texi
lib/autoconf/specific.m4
lib/autoscan/autoscan.list
tests/acspecific.at

index 136f29852ff4e8b424e208ed9fed141a08369251..cc2ad1e82b26c9e9151155f07dd200af372942c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-11  Akim Demaille  <akim@epita.fr>
+
+       * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
+       Suggest using AC_CHECK_DECLS instead.
+
 2002-10-11  Akim Demaille  <akim@epita.fr>
 
        * tests/torture.at (AC_ARG_VAR): Have configure report the value
diff --git a/NEWS b/NEWS
index 07bf48475a928cb82f3d7bfb1bed1c9ea0f5b626..e0bef5a3865d7468c406b39b8eae4110759ecf6e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,11 @@
 - New macros
   AC_FUNC_MBRTOWC
 
+- Obsoleted
+  Obsoleted macros are kept for Autoconf backward compatibility, but
+  should be avoided in configure.ac.  Running autoupdate is advised.
+  AC_DECL_SYS_SIGLIST.
+
 ** Bug Fixes
 
 - Portability of the Autoconf package to Solaris.
index f74bb0c017c032e8574bb9fd5188daedef4335e1..141455d28508b40869b6650903e02fbfb183ba1e 100644 (file)
@@ -4530,15 +4530,7 @@ Declarations}) or, for more complex tests, you may use
 @node Particular Declarations
 @subsection Particular Declaration Checks
 
-The following macros check for certain declarations.
-
-@defmac AC_DECL_SYS_SIGLIST
-@acindex DECL_SYS_SIGLIST
-@cvindex SYS_SIGLIST_DECLARED
-Define @code{SYS_SIGLIST_DECLARED} if the variable @code{sys_siglist}
-is declared in a system header file, either @file{signal.h} or
-@file{unistd.h}.
-@end defmac
+There are no specific macros for declarations.
 
 @node Generic Declarations
 @subsection Generic Declaration Checks
@@ -12224,6 +12216,12 @@ running CygWin32, and should not be changed.  That's yet another reason
 not to use this macro.
 @end defmac
 
+@defmac AC_DECL_SYS_SIGLIST
+@acindex DECL_SYS_SIGLIST
+@cvindex SYS_SIGLIST_DECLARED
+Same as @samp{AC_CHECK_DECLS([sys_siglist])}.
+@end defmac
+
 @defmac AC_DECL_YYTEXT
 @acindex DECL_YYTEXT
 Does nothing, now integrated in @code{AC_PROG_LEX}.
index b14eaacd78a5a5d54b428724e8ad05122ec62046..50d071de2298a4eff683a6d3f75ec72917c781c3 100644 (file)
 
 # AC_DECL_SYS_SIGLIST
 # -------------------
-AN_IDENTIFIER([sys_siglist],     [AC_DECL_SYS_SIGLIST])
-AC_DEFUN([AC_DECL_SYS_SIGLIST],
-[AC_CACHE_CHECK([for sys_siglist declaration in signal.h or unistd.h],
-  ac_cv_decl_sys_siglist,
-[AC_COMPILE_IFELSE(
-[AC_LANG_PROGRAM([#include <sys/types.h>
-#include <signal.h>
-/* NetBSD declares sys_siglist in unistd.h.  */
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-], [char *msg = *(sys_siglist + 1);])],
-                   [ac_cv_decl_sys_siglist=yes],
-                   [ac_cv_decl_sys_siglist=no])])
-if test $ac_cv_decl_sys_siglist = yes; then
-  AC_DEFINE(SYS_SIGLIST_DECLARED, 1,
-            [Define to 1 if `sys_siglist' is declared by <signal.h>
-             or <unistd.h>.])
-fi
+AN_IDENTIFIER([sys_siglist],     [AC_CHECK_DECLS([sys_siglist])])
+AU_DEFUN([AC_DECL_SYS_SIGLIST],
+[AC_CHECK_DECLS([sys_siglist])
 ])# AC_DECL_SYS_SIGLIST
 
 
index 3843c82f4a4dfd1e93b907463106a1c41bb37fea..9198f2f358c0df0b710de16d883fc83f666aa426 100644 (file)
@@ -259,7 +259,7 @@ identifier: size_t          AC_TYPE_SIZE_T
 identifier: st_blksize         AC_CHECK_MEMBERS([struct stat.st_blksize])
 identifier: st_blocks          AC_STRUCT_ST_BLOCKS
 identifier: st_rdev            AC_CHECK_MEMBERS([struct stat.st_rdev])
-identifier: sys_siglist                AC_DECL_SYS_SIGLIST
+identifier: sys_siglist                AC_CHECK_DECLS([sys_siglist])
 identifier: timeval            AC_HEADER_TIME
 identifier: tm         AC_STRUCT_TM
 identifier: tm_zone            AC_STRUCT_TIMEZONE
index 07642cd599435e0e92af557d08dc18d103b4c3c9..21c8eea989c69529b137765d88c9079ec0a7638d 100644 (file)
@@ -5,7 +5,6 @@ AT_BANNER([Testing autoconf/specific macros.])
 
 # Modern macros.
 AT_CHECK_MACRO([AC_AIX])
-AT_CHECK_MACRO([AC_DECL_SYS_SIGLIST])
 AT_CHECK_MACRO([AC_ISC_POSIX])
 AT_CHECK_MACRO([AC_MINIX])
 AT_CHECK_MACRO([AC_SYS_INTERPRETER])