summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Kreen2010-10-12 11:37:29 +0000
committerMarko Kreen2010-10-12 11:37:29 +0000
commit9d4d75156f19f4cadbbfa223e4c2f438e6737a92 (patch)
tree9860ff4cc226069bae0ee23f8a038ce393e3e0ac
parent6785f0a3c9aaecb1c72d4e88ea5812550af3089c (diff)
configure: --with-skylog arg to set default value
-rw-r--r--Makefile5
-rw-r--r--config.mak.in2
-rw-r--r--configure.ac15
-rw-r--r--python/skytools/installer_config.py.in2
4 files changed, 22 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 10fe5d2e..49bf9847 100644
--- a/Makefile
+++ b/Makefile
@@ -71,7 +71,10 @@ python-install: config.mak sub-all
python-install python-all: python/skytools/installer_config.py
python/skytools/installer_config.py: python/skytools/installer_config.py.in config.mak
- sed -e 's!@SQLDIR@!$(SQLDIR)!g' -e 's!@PACKAGE_VERSION@!$(PACKAGE_VERSION)!g' $< > $@
+ sed -e 's!@SQLDIR@!$(SQLDIR)!g' \
+ -e 's!@SKYLOG@!$(SKYLOG)!g' \
+ -e 's!@PACKAGE_VERSION@!$(PACKAGE_VERSION)!g' \
+ $< > $@
realclean: distclean
$(MAKE) -C doc $@
diff --git a/config.mak.in b/config.mak.in
index f330c703..7a98814f 100644
--- a/config.mak.in
+++ b/config.mak.in
@@ -36,5 +36,5 @@ LIBS = @LIBS@
INSTALL = @INSTALL@
BININSTALL = @BININSTALL@
-
+SKYLOG = @SKYLOG@
diff --git a/configure.ac b/configure.ac
index 91cc31fe..a532f1cd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,6 +85,21 @@ changequote([, ])dnl
esac
fi
+dnl Find PostgreSQL pg_config
+SKYLOG=0
+AC_MSG_CHECKING(for skylog default setting)
+AC_ARG_WITH(skylog, [ --with-skylog=0|1 set default value for skylog (default: 0)],
+[ if test "$withval" = "yes"; then
+ SKYLOG="1"
+ elif test "$withval" = "no"; then
+ SKYLOG="0"
+ else
+ SKYLOG="$withval"
+ fi
+ AC_MSG_RESULT([$SKYLOG])])
+AC_MSG_RESULT([$SKYLOG])
+AC_SUBST(SKYLOG)
+
dnl check for xmlto, but only if asciidoc is found
if test "$ASCIIDOC" != "no"; then
AC_CHECK_PROGS(XMLTO, [$XMLTO xmlto])
diff --git a/python/skytools/installer_config.py.in b/python/skytools/installer_config.py.in
index 2c684c17..cac7277f 100644
--- a/python/skytools/installer_config.py.in
+++ b/python/skytools/installer_config.py.in
@@ -9,3 +9,5 @@ sql_locations = [
package_version = "@PACKAGE_VERSION@"
+skylog = @SKYLOG@
+