From 6fc63b24fcc13d3b4ddce7c9b2d069bde2900385 Mon Sep 17 00:00:00 2001 From: eku Date: Wed, 14 Aug 2002 12:13:20 +0000 Subject: [PATCH] Architecture and production type are now a command line switch to configure. See 'configure --help' for details. --- configure.in | 51 ++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 44 insertions(+), 7 deletions(-) diff --git a/configure.in b/configure.in index 425c8a08c4..216d800d02 100644 --- a/configure.in +++ b/configure.in @@ -1,3 +1,5 @@ +# $Id: configure.in,v 1.26 2002-08-14 12:13:20 eku Exp $ + AC_INIT(src) AC_CONFIG_AUX_DIR(src/make.new/config) AC_CACHE_VAL(ac_cv_prog_make_set, [AC_PROG_MAKE_SET]) @@ -5,6 +7,8 @@ AC_PREFIX_DEFAULT(/usr/local/firebird) AC_CONFIG_HEADER(src/include/gen/autoconfig.h:src/make.new/config/config.h.in) + + # possibly needed if we use install-sh program #AC_CONFIG_AUX_DIR(`pwd`) @@ -17,17 +21,31 @@ AC_PROG_LEX AC_PROG_LN_S AC_PROG_RANLIB AC_PROG_YACC - -# You need to change this to get super/classic built. Main reason is for -# the include of the pthread libraries, but there may be other dependancies. -FIREBIRD_ARCH_TYPE=classic -#FIREBIRD_ARCH_TYPE=super + + +# Some controllable options +AC_ARG_ENABLE(superserver, + [ --enable-superserver build SuperServer architecture [default=no]], + [case "$enableval" in + yes) FIREBIRD_ARCH_TYPE=super;; + no) FIREBIRD_ARCH_TYPE=classic;; + *) AC_MSG_ERROR(bad value '${enableval}' for --enable-superserver);; + esac]) + AC_SUBST(FIREBIRD_ARCH_TYPE) -PROD_BUILD_FLG= -#PROD_BUILD_FLG=Y +AC_ARG_ENABLE(debug, + [ --enable-debug build debug version [default=no]], + [case "$enableval" in + no) PROD_BUILD_FLG=;; + yes) PROD_BUILD_FLG=Y;; + *) AC_MSG_ERROR(bad value '${enableval}' for --enable-debug);; + esac]) + AC_SUBST(PROD_BUILD_FLG) + +# Check for system header files AC_CHECK_HEADERS(assert.h) AC_CHECK_HEADERS(ctype.h) AC_CHECK_HEADERS(errno.h) @@ -349,3 +367,22 @@ gen/install/scripts/postuninstall.sh:src/install/${FIREBIRD_ARCH_TYPE}/postunins gen/install/install.sh:src/install/${FIREBIRD_ARCH_TYPE}/tarInstall.sh.in \ src/install/misc/firebird.xinetd \ ) + +# Print out the build configuration (the most interesting thing) +echo +echo +echo The Firebird2 package has been configured with the following options: + +case $FIREBIRD_ARCH_TYPE in + super) echo "Architecture : SuperServer";; + classic) echo "Architecture : ClassicServer";; +esac + +case $PROD_BUILD_FLG in + Y) echo " Debug : enabled";; + *) echo " Debug : disabled";; +esac + +echo + +# EOF \ No newline at end of file