summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier2000-08-28 20:27:32 +0000
committerMarc G. Fournier2000-08-28 20:27:32 +0000
commita2661b57e132942e921904afed92234eec97ef2c (patch)
treed7687ce1b01c7ed4b440471829cec4929df559d8
parent6b359b5e580b54be3ce244fc0da08dfb87b937db (diff)
oops, in v7.x its USE_SYSLOG, not ENABLE_SYSLOG
modify config.h.in so that it gets set by configure properly
-rwxr-xr-xsrc/configure2
-rw-r--r--src/configure.in2
-rw-r--r--src/include/config.h.in19
3 files changed, 12 insertions, 11 deletions
diff --git a/src/configure b/src/configure
index 9aae9a5bb39..43598bc3c85 100755
--- a/src/configure
+++ b/src/configure
@@ -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
diff --git a/src/configure.in b/src/configure.in
index 4d971225610..5e09f036dc0 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -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]
)
diff --git a/src/include/config.h.in b/src/include/config.h.in
index 7a3a61d8d1e..2a7ce348cf1 100644
--- a/src/include/config.h.in
+++ b/src/include/config.h.in
@@ -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