oops, in v7.x its USE_SYSLOG, not ENABLE_SYSLOG

modify config.h.in so that it gets set by configure properly
This commit is contained in:
Marc G. Fournier 2000-08-28 20:27:32 +00:00
parent 6b359b5e58
commit a2661b57e1
3 changed files with 12 additions and 11 deletions

2
src/configure vendored
View File

@ -6540,7 +6540,7 @@ fi
if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define ENABLE_SYSLOG 1
#define USE_SYSLOG 1
EOF
else

View File

@ -946,7 +946,7 @@ AC_TRY_LINK([#include <setjmp.h>],
AC_ARG_ENABLE(syslog, [ --enable-syslog enable logging to syslog],
[case $enableval in y|ye|yes)
AC_CHECK_FUNC(syslog, [AC_DEFINE(ENABLE_SYSLOG)], [AC_MSG_ERROR([no syslog interface found])])
AC_CHECK_FUNC(syslog, [AC_DEFINE(USE_SYSLOG)], [AC_MSG_ERROR([no syslog interface found])])
;;
esac]
)

View File

@ -8,7 +8,7 @@
* or in config.h afterwards. Of course, if you edit config.h, then your
* changes will be overwritten the next time you run configure.
*
* $Id: config.h.in,v 1.113 2000/05/12 13:58:25 scrappy Exp $
* $Id: config.h.in,v 1.113.2.1 2000/08/28 20:27:32 scrappy Exp $
*/
#ifndef CONFIG_H
@ -163,14 +163,6 @@
*/
/* #define ELOG_TIMESTAMPS */
/*
* USE_SYSLOG: use syslog for elog and error messages printed by tprintf
* and eprintf. This must be activated with the syslog flag in pg_options
* (syslog=0 for stdio, syslog=1 for stdio+syslog, syslog=2 for syslog).
* For information see backend/utils/misc/trace.c (Massimo Dal Zotto).
*/
/* #define USE_SYSLOG */
/* Debug #defines */
/* #define IPORTAL_DEBUG */
/* #define HEAPDEBUGALL */
@ -208,6 +200,15 @@
*------------------------------------------------------------------------
*/
/*
* USE_SYSLOG: use syslog for elog and error messages printed by tprintf
* and eprintf. This must be activated with the syslog flag in pg_options
* (syslog=0 for stdio, syslog=1 for stdio+syslog, syslog=2 for syslog).
* For information see backend/utils/misc/trace.c (Massimo Dal Zotto).
*/
#undef USE_SYSLOG
/* Set to 1 if you want to USE_LOCALE */
#undef USE_LOCALE