mirror of
https://github.com/postgres/postgres.git
synced 2025-05-09 18:21:05 +03:00
Get rid of the TEMPLATE verbosity and make it so that --with-template is
documented in ./configure --help
This commit is contained in:
parent
8973192283
commit
2219c230ed
639
src/configure
vendored
639
src/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -69,63 +69,29 @@ else
|
|||||||
ECHO_C='\c'
|
ECHO_C='\c'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat <<EOT
|
|
||||||
**************************************************************
|
|
||||||
PostreSQL v6.3.2 Installation Program
|
|
||||||
|
|
||||||
Welcome to the new improved PostgreSQL installation program.
|
|
||||||
This configuration program is for version 6.3.2 of the
|
|
||||||
PostgreSQL software.
|
|
||||||
|
|
||||||
EOT
|
|
||||||
|
|
||||||
dnl this part selects the template from the one in the
|
dnl this part selects the template from the one in the
|
||||||
dnl template directory.
|
dnl template directory.
|
||||||
|
|
||||||
if test "X$with_template" != "X"
|
AC_MSG_CHECKING(setting template to)
|
||||||
then
|
AC_ARG_WITH(template,
|
||||||
TEMPLATE=template/$with_template
|
[ --with-template=TEMPLATE
|
||||||
else
|
use operating system template file
|
||||||
TEMPLATE=DO_NOT_CHANGE_THIS_INVALID_FILENAME
|
see template directory],
|
||||||
fi
|
[ TEMPLATE=template/$withval ],
|
||||||
|
[ TEMPLATE=template/`uname -s | tr A-Z a-z` ])
|
||||||
if test ! -f $TEMPLATE
|
AC_MSG_RESULT($TEMPLATE)
|
||||||
then
|
|
||||||
cat <<EOT
|
|
||||||
Please select a template from the ones listed below. If no
|
|
||||||
template is available, then select the 'generic' one and
|
|
||||||
consider emailling scrappy@hub.org with the above line which
|
|
||||||
starts 'checking host system type...'
|
|
||||||
**************************************************************
|
|
||||||
EOT
|
|
||||||
TEMPLATE=generic
|
|
||||||
GUESS=`grep "^$host_no_ver=" template/.similar 2>/dev/null`
|
|
||||||
if test ! "$GUESS"
|
|
||||||
then host_no_ver=`echo "$host" | sed 's/[[0-9.]]*$//'`
|
|
||||||
GUESS=`grep "$host_no_ver" template/.similar 2>/dev/null`
|
|
||||||
fi
|
|
||||||
if test "$GUESS"
|
|
||||||
then
|
|
||||||
TEMPLATE=`echo $GUESS | sed 's/.*=//'`
|
|
||||||
fi
|
|
||||||
export TEMPLATE
|
|
||||||
ls template
|
|
||||||
echo "**************************************************************"
|
|
||||||
$ECHO_N "Appropriate template file { $TEMPLATE }: $ECHO_C"
|
|
||||||
read a
|
|
||||||
if test "$a." != "."
|
|
||||||
then
|
|
||||||
TEMPLATE=$a
|
|
||||||
fi
|
|
||||||
if test ! -f template/$TEMPLATE
|
|
||||||
then
|
|
||||||
echo "You must choose an appropriate template file."
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
TEMPLATE=template/$TEMPLATE
|
|
||||||
fi
|
|
||||||
export TEMPLATE
|
export TEMPLATE
|
||||||
echo ""
|
if test ! -f "$TEMPLATE"; then
|
||||||
|
echo ""
|
||||||
|
echo "$TEMPLATE does not exist"
|
||||||
|
echo ""
|
||||||
|
echo "Available Templates (set using --with-template):"
|
||||||
|
echo ""
|
||||||
|
ls template
|
||||||
|
echo ""
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
AROPT=`grep '^AROPT:' $TEMPLATE | awk -F: '{print $2}'`
|
AROPT=`grep '^AROPT:' $TEMPLATE | awk -F: '{print $2}'`
|
||||||
SHARED_LIB=`grep '^SHARED_LIB:' $TEMPLATE | awk -F: '{print $2}'`
|
SHARED_LIB=`grep '^SHARED_LIB:' $TEMPLATE | awk -F: '{print $2}'`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user