1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-08 06:02:22 +03:00

Use autoconf build-in sys_siglist macro AC_DECL_SYS_SIGLIST, rather than

create our own.
This commit is contained in:
Bruce Momjian
2007-01-28 03:50:34 +00:00
parent 9bf559dee3
commit 91ed399517
5 changed files with 45 additions and 33 deletions

View 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,