diff options
| author | Marc G. Fournier | 1997-04-18 18:34:11 +0000 |
|---|---|---|
| committer | Marc G. Fournier | 1997-04-18 18:34:11 +0000 |
| commit | 49153540daf53e5162dd6f533312792b1a83c334 (patch) | |
| tree | ba3703ea309cc6b544db73bf2986ec05a6d2029d /src/configure.in | |
| parent | 84668113351018a53176c69fc03a36fc1928ac51 (diff) | |
From: adrian@waltham.harvard.net
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
Diffstat (limited to 'src/configure.in')
| -rw-r--r-- | src/configure.in | 61 |
1 files changed, 12 insertions, 49 deletions
diff --git a/src/configure.in b/src/configure.in index 10ed515ef51..d006b922324 100644 --- a/src/configure.in +++ b/src/configure.in @@ -140,8 +140,7 @@ else fi export CPPFLAGS -echo setting CPPFLAGS=$CPPFLAGS -echo "" +echo "- setting CPPFLAGS=$CPPFLAGS" $ECHO_N "Additional directories to search for library files { $SRCH_LIB }: $ECHO_C" read a @@ -158,61 +157,35 @@ else fi export LDFLAGS -echo setting LDFLAGS=$LDFLAGS -echo "" -echo "**************************************************************" +echo "- setting LDFLAGS=$LDFLAGS" dnl We have read the default value of USE_LOCALE from the template dnl file. We have a further option of using -dnl --disable locale to explicitly disable it -dnl --enable locale to explicitly enable it -dnl If you do not explicitly do it, it asks you here. -dnl We need some explanatory text here. +dnl --disable-locale to explicitly disable it +dnl --enable-locale to explicitly enable it +dnl It defaults to disabled if test "$enable_locale" = "yes" -o "$enable_locale" = "no" then USE_LOCALE=$enable_locale else - echo "Do you wish to enable LOCALE to get PostgreSQL to work with" - $ECHO_N "national characters { $USE_LOCALE }: $ECHO_C" - read a - if test "$a" = "yes" - then - USE_LOCALE=yes - else - USE_LOCALE=no - fi - echo "**************************************************************" + USE_LOCALE=no fi export USE_LOCALE 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 otherwise we ask. +dnl we over-ride it with --with-pgport=port then we bypass this piece if test "X$with_pgport" != "X" then DEF_PGPORT=$with_pgport else - echo "By default, the PostgreSQL postmaster listens on port 5432. This" - 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 "**************************************************************" + DEF_PGPORT=5432 fi export DEF_PGPORT dnl Unless we specify the command line options -dnl --disable hba to explicitly disable it -dnl --enable hba to explicitly enable it -dnl If you do not explicitly do it, it asks you here. -dnl We need some explanatory text here. +dnl --disable-hba to explicitly disable it +dnl --enable-hba to explicitly enable it +dnl The default is to enable it if test "$enable_hba" = "yes" then NOHBA=no @@ -220,17 +193,7 @@ elif test "$enable_hba" = "no" then NOHBA=yes else - echo "Host Based Authentication (HBA) allows you to limit access" - 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 "**************************************************************" + NOHBA=no fi export NOHBA |
