OSDN Git Service

Use autoconf build-in sys_siglist macro AC_DECL_SYS_SIGLIST, rather than
[pg-rex/syncrep.git] / configure.in
index b625787..7e55f67 100644 (file)
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.498 2007/01/28 01:12:05 momjian Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.499 2007/01/28 03:50:33 momjian Exp $
 dnl
 dnl Developers, please strive to achieve this order:
 dnl
@@ -1059,14 +1059,7 @@ AC_TRY_LINK([#include <setjmp.h>],
 AC_MSG_RESULT(yes)],
             [AC_MSG_RESULT(no)])
 
-AC_CACHE_CHECK([for sys_siglist], pgac_cv_var_sys_siglist,
-[AC_TRY_LINK([#include <signal.h>],
-  [extern char *sys_siglist[]; (void)sys_siglist[0];],
-  [pgac_cv_var_sys_siglist=yes],
-  [pgac_cv_var_sys_siglist=no])])
-if test x"$pgac_cv_var_sys_siglist" = x"yes"; then
-  AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define to 1 if you have the global variable 'char *sys_siglist[]'.])
-fi
+AC_DECL_SYS_SIGLIST
 
 AC_CHECK_FUNC(syslog,
               [AC_CHECK_HEADER(syslog.h,