From cd3a8e232cd6b62dd8c31ecbd780c0944c84bce0 Mon Sep 17 00:00:00 2001 From: Marc G. Fournier Date: Tue, 13 Oct 1998 17:26:50 +0000 Subject: 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... --- src/configure | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/configure') diff --git a/src/configure b/src/configure index a1347355559..37df3228059 100755 --- a/src/configure +++ b/src/configure @@ -889,8 +889,8 @@ if test "${with_perl+set}" = set; then withval="$with_perl" case "$withval" in - y | ye | yes) USE_PERL=true; echo "$ac_t""enabled" 1>&6 ;; - *) USE_PERL=false; echo "$ac_t""disabled" 1>&6 ;; + y | ye | yes) USE_PERL=true; echo "$ac_t""enabled" 1>&6 ;; + *) USE_PERL=false; echo "$ac_t""disabled" 1>&6 ;; esac else @@ -901,13 +901,13 @@ fi #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 echo "configure: warning: perl support disabled; must be root to install" 1>&2 + USE_PERL= + fi +fi export USE_PERL echo $ac_n "checking setting USE_ODBC""... $ac_c" 1>&6 -- cgit v1.2.3