Subject: [HACKERS] Another patch to configure.in

I heard very little in objections/approvals to defaulting some of the
parameters to configure.  Enclosed is a patch to configure.in which
removes the questions for

        PGPORT
        USE_LOCALE
        NOHBA

By default (i.e. assuming you don't put anything extra in the configure
command line), it assumes PGPORT=5432, USE_LOCAL=no and NOHBA=no (i.e.
HBA is turned on)

        --with-pgport=PGPORT_NO         Over-rides the PGPORT value
        --enable-locale                 enables USE_LOCALE
        --disable-hba                   disables HBA

Just for completeness:

        --prefix=BASEDIR                Defaults to /usr/local/pgsql
        --with-template=TEMPLATE        Defaults to asking you
This commit is contained in:
Marc G. Fournier 1997-04-18 18:34:11 +00:00
parent 8466811335
commit 49153540da
2 changed files with 199 additions and 270 deletions

408
src/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -140,8 +140,7 @@ else
fi fi
export CPPFLAGS export CPPFLAGS
echo setting CPPFLAGS=$CPPFLAGS echo "- setting CPPFLAGS=$CPPFLAGS"
echo ""
$ECHO_N "Additional directories to search for library files { $SRCH_LIB }: $ECHO_C" $ECHO_N "Additional directories to search for library files { $SRCH_LIB }: $ECHO_C"
read a read a
@ -158,61 +157,35 @@ else
fi fi
export LDFLAGS export LDFLAGS
echo setting LDFLAGS=$LDFLAGS echo "- setting LDFLAGS=$LDFLAGS"
echo ""
echo "**************************************************************"
dnl We have read the default value of USE_LOCALE from the template dnl We have read the default value of USE_LOCALE from the template
dnl file. We have a further option of using dnl file. We have a further option of using
dnl --disable locale to explicitly disable it dnl --disable-locale to explicitly disable it
dnl --enable locale to explicitly enable it dnl --enable-locale to explicitly enable it
dnl If you do not explicitly do it, it asks you here. dnl It defaults to disabled
dnl We need some explanatory text here.
if test "$enable_locale" = "yes" -o "$enable_locale" = "no" if test "$enable_locale" = "yes" -o "$enable_locale" = "no"
then then
USE_LOCALE=$enable_locale USE_LOCALE=$enable_locale
else else
echo "Do you wish to enable LOCALE to get PostgreSQL to work with" USE_LOCALE=no
$ECHO_N "national characters { $USE_LOCALE }: $ECHO_C"
read a
if test "$a" = "yes"
then
USE_LOCALE=yes
else
USE_LOCALE=no
fi
echo "**************************************************************"
fi fi
export USE_LOCALE export USE_LOCALE
dnl We use the default value of 5432 for the DEF_PGPORT value. If dnl We use the default value of 5432 for the DEF_PGPORT value. If
dnl we over-ride it with --with pgport=port then we bypass this piece dnl we over-ride it with --with-pgport=port then we bypass this piece
dnl otherwise we ask.
if test "X$with_pgport" != "X" if test "X$with_pgport" != "X"
then then
DEF_PGPORT=$with_pgport DEF_PGPORT=$with_pgport
else else
echo "By default, the PostgreSQL postmaster listens on port 5432. This" DEF_PGPORT=5432
echo "can be overriden by command options, environment variables and the"
echo "postconfig hook."
echo ""
$ECHO_N "Which port should the postmaster listen to by default { 5432 }: $ECHO_C"
read a
if test "X$a" != "X"
then
DEF_PGPORT=$a
else
DEF_PGPORT=5432
fi
echo "**************************************************************"
fi fi
export DEF_PGPORT export DEF_PGPORT
dnl Unless we specify the command line options dnl Unless we specify the command line options
dnl --disable hba to explicitly disable it dnl --disable-hba to explicitly disable it
dnl --enable hba to explicitly enable it dnl --enable-hba to explicitly enable it
dnl If you do not explicitly do it, it asks you here. dnl The default is to enable it
dnl We need some explanatory text here.
if test "$enable_hba" = "yes" if test "$enable_hba" = "yes"
then then
NOHBA=no NOHBA=no
@ -220,17 +193,7 @@ elif test "$enable_hba" = "no"
then then
NOHBA=yes NOHBA=yes
else else
echo "Host Based Authentication (HBA) allows you to limit access" NOHBA=no
echo "to databases on a per-host basis."
$ECHO_N "Disable Host Based Authentication { no }: $ECHO_C"
read a
if test "$a" = "yes"
then
NOHBA=yes
else
NOHBA=no
fi
echo "**************************************************************"
fi fi
export NOHBA export NOHBA