Subject: [PATCHES] Patch for configure.in to not ask for CASSERT The following patch defaults to CASSERT, so it doesn't ask you. You can still use --enable-cassert and --disable-cassert to do it explicitly. Default: disabled
This commit is contained in:
parent
7c82b2e9c3
commit
2de10b0b01
386
src/configure
vendored
386
src/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -200,33 +200,22 @@ export NOHBA
|
|||||||
dnl Unless we specify the command line options
|
dnl Unless we specify the command line options
|
||||||
dnl --disable cassert to explicitly disable it
|
dnl --disable cassert to explicitly disable it
|
||||||
dnl --enable cassert to explicitly enable it
|
dnl --enable cassert to explicitly enable it
|
||||||
dnl If you do not explicitly do it, it asks you here.
|
dnl If you do not explicitly do it, it defaults to disabled - we
|
||||||
|
dnl should make the default enabled for the development cycle
|
||||||
dnl We need some explanatory text here.
|
dnl We need some explanatory text here.
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if test "$enable_cassert" = "no"
|
if test "$enable_cassert" = "no"
|
||||||
then
|
then
|
||||||
echo "ASSERT CHECKING disabled"
|
echo "-ASSERT CHECKING disabled"
|
||||||
AC_DEFINE(NO_ASSERT_CHECKING)
|
AC_DEFINE(NO_ASSERT_CHECKING)
|
||||||
elif test "$enable_cassert" = "yes"
|
elif test "$enable_cassert" = "yes"
|
||||||
then
|
then
|
||||||
echo "ASSERT CHECKING enabled"
|
echo "-ASSERT CHECKING enabled"
|
||||||
else
|
else
|
||||||
echo "Disabling ASSERT CHECKING will make things go a LOT faster, but"
|
echo "-ASSERT CHECKING disabled"
|
||||||
echo "you will also loose a lot of useful error-checking"
|
AC_DEFINE(NO_ASSERT_CHECKING)
|
||||||
echo ""
|
|
||||||
echo "Developers should *always* have this enabled"
|
|
||||||
$ECHO_N "Enable CASSERT { no }: $ECHO_C"
|
|
||||||
read a
|
|
||||||
if test "$a" = "yes"
|
|
||||||
then
|
|
||||||
echo "ASSERT CHECKING enabled"
|
|
||||||
else
|
|
||||||
echo "ASSERT CHECKING disabled"
|
|
||||||
AC_DEFINE(NO_ASSERT_CHECKING)
|
|
||||||
fi
|
|
||||||
echo "**************************************************************"
|
|
||||||
fi
|
fi
|
||||||
echo ""
|
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user