1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-04 12:02:48 +03:00

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...
This commit is contained in:
Marc G. Fournier
1998-10-13 17:26:50 +00:00
parent 8c586b2a2a
commit cd3a8e232c
4 changed files with 24 additions and 24 deletions

View File

@@ -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