summaryrefslogtreecommitdiff
path: root/src/configure.in
diff options
context:
space:
mode:
authorMarc G. Fournier1998-10-13 17:26:50 +0000
committerMarc G. Fournier1998-10-13 17:26:50 +0000
commitcd3a8e232cd6b62dd8c31ecbd780c0944c84bce0 (patch)
tree6d6f2b8ad333b3255d7b0dbe38323b4dbe54fc7d /src/configure.in
parent8c586b2a2aa9beed60020a0e1896fdf1fa543745 (diff)
change configure so that if postgresql isn't being installed as root,
do not configure in the perl5 interface. the perl5 interface needs to be installed under /usr/local/lib/perl5/*, which is generally owned by root. This allows a non-root build/install with the only root requirement being the make/install of hte perl5 stuff...
Diffstat (limited to 'src/configure.in')
-rw-r--r--src/configure.in18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/configure.in b/src/configure.in
index 78064e4077c..23b159f280a 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -259,8 +259,8 @@ AC_ARG_WITH(
[ --with-perl use perl ],
[
case "$withval" in
- y | ye | yes) USE_PERL=true; AC_MSG_RESULT(enabled) ;;
- *) USE_PERL=false; AC_MSG_RESULT(disabled) ;;
+ y | ye | yes) USE_PERL=true; AC_MSG_RESULT(enabled) ;;
+ *) USE_PERL=false; AC_MSG_RESULT(disabled) ;;
esac
],
[ USE_PERL=false; AC_MSG_RESULT(disabled) ]
@@ -268,13 +268,13 @@ AC_ARG_WITH(
#dnl Verify that postgres is already installed
#dnl per instructions for perl interface installation
-#if test "$USE_PERL" = "true"
-#then
-# if test ! -x "$prefix"/bin/postgres -a ! -x "$ac_default_prefix"/bin/postgres
-# then AC_MSG_WARN(perl support disabled; postgres not previously installed)
-# USE_PERL=
-# fi
-#fi
+if test "$USE_PERL" = "true"
+then
+ if test "$WHOAMI" != "root"
+ then AC_MSG_WARN(perl support disabled; must be root to install)
+ USE_PERL=
+ fi
+fi
export USE_PERL
dnl We include odbc support unless we disable it with --with-odbc=false