2001-07-31 10:42:21 +02:00
|
|
|
AC_INIT(src)
|
|
|
|
AC_CONFIG_AUX_DIR(src/make.new/config)
|
|
|
|
AC_CACHE_VAL(ac_cv_prog_make_set, [AC_PROG_MAKE_SET])
|
2001-08-27 17:29:18 +02:00
|
|
|
AC_PREFIX_DEFAULT(/usr/local/firebird)
|
2001-07-31 10:42:21 +02:00
|
|
|
|
|
|
|
AC_CONFIG_HEADER(src/include/gen/autoconfig.h:src/make.new/config/config.h.in)
|
|
|
|
|
2001-08-27 17:29:18 +02:00
|
|
|
# possibly needed if we use install-sh program
|
|
|
|
#AC_CONFIG_AUX_DIR(`pwd`)
|
|
|
|
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
|
|
|
|
AC_PROG_AWK
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_LEX
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
AC_PROG_YACC
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(assert.h)
|
|
|
|
AC_CHECK_HEADERS(unistd.h)
|
|
|
|
AC_CHECK_HEADERS(fcntl.h)
|
|
|
|
AC_CHECK_HEADERS(grp.h)
|
2002-06-29 18:41:10 +02:00
|
|
|
AC_CHECK_HEADERS(pwd.h)
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_CHECK_HEADERS(libio.h)
|
2002-06-29 18:41:10 +02:00
|
|
|
AC_CHECK_HEADERS(locale.h)
|
|
|
|
AC_CHECK_HEADERS(math.h)
|
|
|
|
AC_CHECK_HEADERS(pthread.h)
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_CHECK_HEADERS(sys/types.h)
|
|
|
|
AC_CHECK_HEADERS(sys/stat.h)
|
|
|
|
AC_CHECK_HEADERS(sys/uio.h)
|
|
|
|
AC_CHECK_HEADERS(sys/wait.h)
|
|
|
|
AC_CHECK_HEADERS(time.h)
|
|
|
|
AC_CHECK_HEADERS(sys/time.h)
|
2002-06-29 18:41:10 +02:00
|
|
|
AC_CHECK_HEADERS(sys/timeb.h)
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_CHECK_HEADERS(sys/param.h)
|
|
|
|
AC_CHECK_HEADERS(varargs.h)
|
|
|
|
AC_CHECK_HEADERS(stdarg.h)
|
|
|
|
AC_CHECK_HEADERS(stdlib.h)
|
|
|
|
AC_CHECK_HEADERS(ctype.h)
|
|
|
|
AC_CHECK_HEADERS(string.h)
|
|
|
|
AC_CHECK_HEADERS(signal.h)
|
2001-08-27 17:29:18 +02:00
|
|
|
AC_CHECK_HEADERS(readline/readline.h)
|
2002-06-23 21:51:37 +02:00
|
|
|
AC_CHECK_HEADERS(pwd.h)
|
2001-07-31 10:42:21 +02:00
|
|
|
|
2001-08-14 19:41:39 +02:00
|
|
|
AC_MSG_CHECKING(Checking for socklen_t type)
|
|
|
|
AC_TRY_COMPILE([#include <stdlib.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
],
|
|
|
|
[socklen_t a;],
|
|
|
|
[AC_MSG_RESULT(yes)],
|
|
|
|
[AC_DEFINE(socklen_t, int) AC_MSG_RESULT(no)])
|
|
|
|
|
2001-08-05 00:48:18 +02:00
|
|
|
|
2002-07-01 18:59:09 +02:00
|
|
|
AC_DEFINE(UNIX_64_BIT_IO)
|
|
|
|
|
|
|
|
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_C_CONST
|
|
|
|
|
|
|
|
case "$target_cpu" in
|
|
|
|
powerpc) AC_DEFINE(PowerPC) ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case "$target" in
|
2001-08-01 10:11:52 +02:00
|
|
|
*-*-darwin*) MAKEFILE_PREFIX=darwin ; PLATFORM=DARWIN ; AC_DEFINE(DARWIN);;
|
|
|
|
*-*-freebsd*) MAKEFILE_PREFIX=freebsd ; PLATFORM=FREEBSD ; AC_DEFINE(FREEBSD);;
|
|
|
|
*-*-linux*) MAKEFILE_PREFIX=linux ; PLATFORM=LINUX ; AC_DEFINE(LINUX) ;;
|
|
|
|
*-*-netbsd*) MAKEFILE_PREFIX=netbsd ; PLATFORM=NETBSD ; AC_DEFINE(NETBSD) ;;
|
|
|
|
*-*-hpux*) MAKEFILE_PREFIX=hpux ; PLATFORM=hpux ; AC_DEFINE(hpux) ;;
|
2002-01-21 16:26:55 +01:00
|
|
|
i386-pc-solaris*) MAKEFILE_PREFIX=solx86 ; PLATFORM=solx86 ; AC_DEFINE(solx86) ;;
|
2001-07-31 10:42:21 +02:00
|
|
|
esac
|
|
|
|
|
|
|
|
AC_SUBST(PLATFORM)
|
|
|
|
|
2001-08-13 10:14:38 +02:00
|
|
|
FIREBIRD_ARCH_TYPE=classic
|
|
|
|
#FIREBIRD_ARCH_TYPE=super
|
|
|
|
AC_SUBST(FIREBIRD_ARCH_TYPE)
|
|
|
|
|
2001-08-27 17:29:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
CPU_TYPE=$host_cpu
|
|
|
|
AC_SUBST(CPU_TYPE)
|
2001-08-15 20:10:36 +02:00
|
|
|
# The following file defines the version number strings
|
2001-08-15 10:44:11 +02:00
|
|
|
source src/misc/writeBuildNum.sh
|
2001-08-27 17:29:18 +02:00
|
|
|
FIREBIRD_PACKAGE_VERSION="0a.Dev1"
|
|
|
|
|
|
|
|
|
|
|
|
FIREBIRD_LIBGDS_SO=libgds.so.${FIREBIRD_VERSION}
|
|
|
|
FIREBIRD_LIBGDS_SO_LNK=libgds.so
|
|
|
|
FIREBIRD_LIBGDS_SO_X_LNK=libgds.so.${MajorVer}
|
|
|
|
|
|
|
|
AC_SUBST(FIREBIRD_LIBGDS_SO)
|
|
|
|
AC_SUBST(FIREBIRD_LIBGDS_SO_LNK)
|
|
|
|
AC_SUBST(FIREBIRD_LIBGDS_SO_X_LNK)
|
2001-08-15 10:44:11 +02:00
|
|
|
|
2001-08-15 20:10:36 +02:00
|
|
|
|
2001-08-13 10:14:38 +02:00
|
|
|
AC_SUBST(FIREBIRD_VERSION)
|
2001-08-27 17:29:18 +02:00
|
|
|
AC_SUBST(FIREBIRD_PACKAGE_VERSION)
|
|
|
|
|
2001-08-15 20:10:36 +02:00
|
|
|
|
2001-08-15 10:44:11 +02:00
|
|
|
#AC_DEFINE_UNQUOTED(FB_BUILD_TYPE, "$BuildType")
|
|
|
|
#AC_DEFINE_UNQUOTED(FB_MAJOR_VER, "$MajorVer")
|
|
|
|
#AC_DEFINE_UNQUOTED(FB_MINOR_VER, "$MinorVer")
|
|
|
|
#AC_DEFINE_UNQUOTED(FB_REV_NO, "$RevNo")
|
|
|
|
#AC_DEFINE_UNQUOTED(FB_BUILD_SUFFIX, "$BuildSuffix")
|
|
|
|
#AC_DEFINE_UNQUOTED(PRODUCT_VER_STRING, "$PRODUCT_VER_STRING")
|
|
|
|
#AC_DEFINE_UNQUOTED(FILE_VER_NUMBER, $FILE_VER_NUMBER)
|
|
|
|
#AC_DEFINE_UNQUOTED(FILE_VER_STRING, "$FILE_VER_STRING")
|
|
|
|
#AC_DEFINE_UNQUOTED(LICENSE_VER_STRING, "$FILE_VER_STRING")
|
2001-08-02 09:03:59 +02:00
|
|
|
|
2001-08-27 17:29:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2002-06-23 21:51:37 +02:00
|
|
|
PROD_BUILD_FLG=
|
2001-08-02 09:03:59 +02:00
|
|
|
#PROD_BUILD_FLG=Y
|
|
|
|
AC_SUBST(PROD_BUILD_FLG)
|
|
|
|
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/csv])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/dudley])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/isql])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/lock])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/gpre])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/pipe])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/remote])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/wal])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/alice])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/refDatabases])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/v5_examples])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/gpre])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/journal])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/msgs])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/burp])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/dsql])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/extlib])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/intl])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/jrd])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/qli])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/utilities])
|
2001-07-31 20:34:05 +02:00
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/fbutil])
|
2001-07-31 10:42:21 +02:00
|
|
|
|
2001-08-27 17:29:18 +02:00
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/install])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/install/scripts])
|
|
|
|
|
2002-01-04 12:48:43 +01:00
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/common])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/common/memory])
|
|
|
|
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/firebird/include])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/firebird/intl])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/firebird/UDF])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/firebird/bin])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/firebird/examples/v5])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/firebird/lib])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/firebird/misc])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/firebird/help])
|
|
|
|
|
2001-08-27 17:29:18 +02:00
|
|
|
AC_OUTPUT_COMMANDS([chmod a+x gen/install/install.sh])
|
|
|
|
AC_OUTPUT_COMMANDS([chmod a+x gen/install/scripts/*.sh])
|
|
|
|
|
2002-06-29 18:41:10 +02:00
|
|
|
AC_OUTPUT_COMMANDS([src/misc/writeBuildNum.sh rebuildHeader])
|
|
|
|
|
2002-06-23 21:51:37 +02:00
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/jrd/os])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/jrd/os/darwin])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/jrd/os/posix])
|
|
|
|
AC_OUTPUT_COMMANDS([mkdir -p gen/jrd/os/win32])
|
|
|
|
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_OUTPUT( \
|
|
|
|
src/make.rules:src/make.new/make.rules \
|
|
|
|
src/make.defaults:src/make.new/make.defaults \
|
2001-08-01 10:11:52 +02:00
|
|
|
src/make.platform:src/make.new/prefix.${MAKEFILE_PREFIX} \
|
2001-07-31 10:42:21 +02:00
|
|
|
src/make.shared.variables:src/make.new/make.shared.variables \
|
2001-07-31 20:34:05 +02:00
|
|
|
src/fbutil/Makefile:src/make.new/Makefile.in.fbutil \
|
2001-07-31 10:42:21 +02:00
|
|
|
src/alice/Makefile:src/make.new/Makefile.in.alice \
|
|
|
|
src/burp/Makefile:src/make.new/Makefile.in.burp \
|
|
|
|
src/csv/Makefile:src/make.new/Makefile.in.csv \
|
|
|
|
src/refDatabases/Makefile:src/make.new/Makefile.in.refDatabases \
|
|
|
|
src/dsql/Makefile:src/make.new/Makefile.in.dsql \
|
|
|
|
src/dudley/Makefile:src/make.new/Makefile.in.dudley \
|
|
|
|
src/v5_examples/Makefile:src/make.new/Makefile.in.example5 \
|
|
|
|
src/extlib/Makefile:src/make.new/Makefile.in.extlib \
|
2002-06-29 18:41:10 +02:00
|
|
|
src/extlib/fbudf/Makefile:src/make.new/Makefile.in.fbudf \
|
2001-07-31 10:42:21 +02:00
|
|
|
src/gpre/Makefile:src/make.new/Makefile.in.gpre \
|
|
|
|
src/intl/Makefile:src/make.new/Makefile.in.intl \
|
|
|
|
src/isql/Makefile:src/make.new/Makefile.in.isql \
|
|
|
|
src/journal/Makefile:src/make.new/Makefile.in.journal \
|
|
|
|
src/jrd/Makefile:src/make.new/Makefile.in.jrd \
|
|
|
|
src/lock/Makefile:src/make.new/Makefile.in.lock \
|
|
|
|
src/msgs/Makefile:src/make.new/Makefile.in.msgs \
|
|
|
|
src/pipe/Makefile:src/make.new/Makefile.in.pipe \
|
|
|
|
src/qli/Makefile:src/make.new/Makefile.in.qli \
|
|
|
|
src/remote/Makefile:src/make.new/Makefile.in.remote \
|
|
|
|
src/utilities/Makefile:src/make.new/Makefile.in.utilities \
|
|
|
|
src/wal/Makefile:src/make.new/Makefile.in.wal \
|
2002-01-04 12:48:43 +01:00
|
|
|
src/common/memory/Makefile:src/make.new/Makefile.in.common.memory \
|
2001-08-27 17:29:18 +02:00
|
|
|
src/install/Makefile:src/make.new/Makefile.in.install \
|
2001-07-31 10:42:21 +02:00
|
|
|
src/Makefile:src/make.new/Makefile.in.firebird \
|
|
|
|
Makefile:Makefile.in \
|
2001-08-27 17:29:18 +02:00
|
|
|
gen/install/scripts/preinstall.sh:src/install/${FIREBIRD_ARCH_TYPE}/preinstall.sh.in \
|
|
|
|
gen/install/scripts/install.sh:src/install/${FIREBIRD_ARCH_TYPE}/install.sh.in \
|
|
|
|
gen/install/scripts/postinstall.sh:src/install/${FIREBIRD_ARCH_TYPE}/postinstall.sh.in \
|
|
|
|
gen/install/scripts/preuninstall.sh:src/install/${FIREBIRD_ARCH_TYPE}/preuninstall.sh.in \
|
|
|
|
gen/install/scripts/postuninstall.sh:src/install/${FIREBIRD_ARCH_TYPE}/postuninstall.sh.in \
|
|
|
|
gen/install/install.sh:src/install/${FIREBIRD_ARCH_TYPE}/tarInstall.sh.in \
|
|
|
|
src/install/misc/firebird.xinetd \
|
2001-07-31 10:42:21 +02:00
|
|
|
)
|