[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_DECL_SYS_SIGLIST obsolete
From: |
Akim Demaille |
Subject: |
Re: AC_DECL_SYS_SIGLIST obsolete |
Date: |
11 Oct 2002 14:17:28 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) |
>>>>> "Paul" == Paul Eggert <address@hidden> writes:
>> I see Jim is using a plain AC_CHECK_DECLS for siglist, but autoscan
>> wants AC_DECL_SYS_SIGLIST:
>>
>> So, should we deprecate this macro?
Paul> Yes. It predates AC_CHECK_DECLS, and it's obsolete now that we
Paul> have AC_CHECK_DECLS.
I'm applying the following. Jim, you can remove this macro and just
call the appropriate AC_CHECK_DECLS.
Index: ChangeLog
from Akim Demaille <address@hidden>
* lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
Suggest using AC_CHECK_DECLS instead.
Index: NEWS
===================================================================
RCS file: /cvsroot/autoconf/autoconf/NEWS,v
retrieving revision 1.262
diff -u -u -r1.262 NEWS
--- NEWS 11 Oct 2002 09:49:31 -0000 1.262
+++ NEWS 11 Oct 2002 12:14:36 -0000
@@ -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: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.686
diff -u -u -r1.686 autoconf.texi
--- doc/autoconf.texi 8 Oct 2002 23:05:17 -0000 1.686
+++ doc/autoconf.texi 11 Oct 2002 12:14:48 -0000
@@ -4532,14 +4532,6 @@
The following macros check for certain declarations.
address@hidden AC_DECL_SYS_SIGLIST
address@hidden DECL_SYS_SIGLIST
address@hidden 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
address@hidden
address@hidden defmac
-
@node Generic Declarations
@subsection Generic Declaration Checks
@@ -12222,6 +12214,12 @@
Beware that the variable @code{CYGWIN} has a very special meaning when
running CygWin32, and should not be changed. That's yet another reason
not to use this macro.
address@hidden defmac
+
address@hidden AC_DECL_SYS_SIGLIST
address@hidden DECL_SYS_SIGLIST
address@hidden SYS_SIGLIST_DECLARED
+Same as @samp{AC_CHECK_DECLS([sys_siglist])}.
@end defmac
@defmac AC_DECL_YYTEXT
Index: lib/autoconf/specific.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/specific.m4,v
retrieving revision 1.350
diff -u -u -r1.350 specific.m4
--- lib/autoconf/specific.m4 28 Sep 2002 16:38:48 -0000 1.350
+++ lib/autoconf/specific.m4 11 Oct 2002 12:14:49 -0000
@@ -58,25 +58,9 @@
# 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: lib/autoscan/autoscan.list
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoscan/autoscan.list,v
retrieving revision 1.5
diff -u -u -r1.5 autoscan.list
--- lib/autoscan/autoscan.list 28 Sep 2002 16:38:48 -0000 1.5
+++ lib/autoscan/autoscan.list 11 Oct 2002 12:14:49 -0000
@@ -259,7 +259,7 @@
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: tests/acspecific.at
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/acspecific.at,v
retrieving revision 1.7
diff -u -u -r1.7 acspecific.at
--- tests/acspecific.at 6 Jun 2002 15:59:30 -0000 1.7
+++ tests/acspecific.at 11 Oct 2002 12:14:49 -0000
@@ -5,7 +5,6 @@
# 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])