2002-09-03 15:25:30 +02:00
|
|
|
dnl ############################# INITIALISATION ###############################
|
2002-08-14 14:13:20 +02:00
|
|
|
|
2003-11-10 12:25:05 +01:00
|
|
|
AC_PREREQ(2.56)
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_INIT(src)
|
2003-07-06 03:08:33 +02:00
|
|
|
AC_CONFIG_AUX_DIR(builds/make.new/config)
|
2001-07-31 10:42:21 +02:00
|
|
|
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
|
|
|
|
2003-07-06 03:08:33 +02:00
|
|
|
AC_CONFIG_HEADER(src/include/gen/autoconfig.h:builds/make.new/config/config.h.in)
|
2001-07-31 10:42:21 +02:00
|
|
|
|
2002-08-22 09:56:28 +02:00
|
|
|
dnl XE_APPEND(value, varname)
|
|
|
|
define([XE_APPEND],[[$2]="$[$2] [$1]"])
|
2002-08-14 14:13:20 +02:00
|
|
|
|
2002-08-22 09:56:28 +02:00
|
|
|
dnl XE_PREPEND(value, varname)
|
|
|
|
define([XE_PREPEND],[[$2]="[$1] $[$2]"])
|
2002-08-14 14:13:20 +02:00
|
|
|
|
2004-10-04 07:23:56 +02:00
|
|
|
sinclude(acx_pthread.m4)
|
|
|
|
|
2002-09-03 15:25:30 +02:00
|
|
|
dnl ############################# ADD TESTS BELOW ##############################
|
2001-08-27 17:29:18 +02:00
|
|
|
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_CANONICAL_SYSTEM
|
2004-10-24 11:10:56 +02:00
|
|
|
CPU_TYPE=$target_cpu
|
2002-08-22 09:56:28 +02:00
|
|
|
AC_SUBST(CPU_TYPE)
|
|
|
|
|
2003-10-30 10:49:40 +01:00
|
|
|
|
2002-11-14 07:53:17 +01:00
|
|
|
dnl EKU: set appropiate defaults for each platform
|
2002-11-18 14:23:00 +01:00
|
|
|
dnl EDITLINE_FLG : support fancy command line editing in isql
|
2003-10-30 10:49:40 +01:00
|
|
|
dnl SHRLIB_EXT : suffix of shared library files
|
2002-11-14 07:53:17 +01:00
|
|
|
|
2003-11-23 17:27:09 +01:00
|
|
|
RAW_DEVICES_FLG=Y
|
2004-01-12 05:58:09 +01:00
|
|
|
INSTALL_PREFIX=""
|
2004-01-29 07:32:09 +01:00
|
|
|
|
|
|
|
dnl Use /usr/lib for library links on most platforms except some 64-bit ones
|
|
|
|
libdir=/usr/lib
|
2005-06-02 10:00:34 +02:00
|
|
|
ICU_PLATFORM=LinuxRedHat
|
2004-01-29 07:32:09 +01:00
|
|
|
|
2007-04-03 10:25:55 +02:00
|
|
|
dnl Should system editline and/or icu be used
|
|
|
|
STD_EDITLINE=false
|
|
|
|
STD_ICU=false
|
2007-05-14 13:40:57 +02:00
|
|
|
RPM64=
|
2005-08-24 14:12:23 +02:00
|
|
|
|
2007-08-28 13:19:00 +02:00
|
|
|
dnl Test for realtime library presence?
|
|
|
|
RT_LIB_CHECK=false
|
|
|
|
|
2002-08-22 09:56:28 +02:00
|
|
|
case "$target" in
|
2007-12-19 14:25:49 +01:00
|
|
|
i686-*-darwin*)
|
|
|
|
MAKEFILE_PREFIX=darwin_i386
|
|
|
|
MAKEFILE_POSTFIX=darwin
|
2002-11-14 07:53:17 +01:00
|
|
|
PLATFORM=DARWIN
|
2007-12-19 14:25:49 +01:00
|
|
|
INSTALL_PREFIX=darwin
|
2003-10-30 09:03:17 +01:00
|
|
|
AC_DEFINE(DARWIN, 1, [Define this if OS is DARWIN])
|
2007-03-09 11:32:58 +01:00
|
|
|
XE_APPEND(-framework CoreFoundation,LIBS)
|
2002-11-14 09:18:10 +01:00
|
|
|
LOCK_MANAGER_FLG=Y
|
2007-03-09 11:32:58 +01:00
|
|
|
EDITLINE_FLG=Y
|
|
|
|
SHRLIB_EXT=dylib
|
2007-12-19 14:25:49 +01:00
|
|
|
ICU_PLATFORM=MacOSX
|
2008-01-18 15:12:26 +01:00
|
|
|
dnl CPU_TYPE=x86_64
|
2007-12-19 14:25:49 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
powerpc-*-darwin*)
|
2007-12-19 14:46:57 +01:00
|
|
|
MAKEFILE_PREFIX=darwin_powerpc
|
2007-12-19 14:25:49 +01:00
|
|
|
MAKEFILE_POSTFIX=darwin
|
|
|
|
PLATFORM=DARWIN
|
|
|
|
INSTALL_PREFIX=darwin
|
|
|
|
AC_DEFINE(DARWIN, 1, [Define this if OS is DARWIN])
|
|
|
|
XE_APPEND(-framework CoreFoundation,LIBS)
|
|
|
|
LOCK_MANAGER_FLG=Y
|
|
|
|
EDITLINE_FLG=Y
|
|
|
|
SHRLIB_EXT=dylib
|
|
|
|
ICU_PLATFORM=MacOSX
|
2002-11-14 07:53:17 +01:00
|
|
|
;;
|
|
|
|
|
2006-03-19 14:56:58 +01:00
|
|
|
amd64-*-freebsd*)
|
|
|
|
MAKEFILE_PREFIX=freebsd
|
|
|
|
PLATFORM=FREEBSD
|
|
|
|
AC_DEFINE(FREEBSD, 1, [Define this if OS is FreeBSD])
|
|
|
|
AC_DEFINE(AMD64, 1, [Define this if CPU is amd64])
|
|
|
|
LOCK_MANAGER_FLG=Y
|
2006-03-19 16:37:42 +01:00
|
|
|
EDITLINE_FLG=Y
|
2006-03-19 14:56:58 +01:00
|
|
|
SHRLIB_EXT=so
|
|
|
|
;;
|
|
|
|
|
2006-12-08 19:32:09 +01:00
|
|
|
*-gentoo-freebsd*)
|
|
|
|
MAKEFILE_PREFIX=freebsd
|
|
|
|
PLATFORM=GENTOOFREEBSD
|
|
|
|
AC_DEFINE(FREEBSD, 1, [Define this if OS is FreeBSD])
|
|
|
|
LOCK_MANAGER_FLG=Y
|
|
|
|
EDITLINE_FLG=Y
|
|
|
|
SHRLIB_EXT=so
|
|
|
|
;;
|
|
|
|
|
2002-11-14 07:53:17 +01:00
|
|
|
*-*-freebsd*)
|
|
|
|
MAKEFILE_PREFIX=freebsd
|
2003-06-15 07:57:47 +02:00
|
|
|
PLATFORM=FREEBSD
|
2003-10-30 09:03:17 +01:00
|
|
|
AC_DEFINE(FREEBSD, 1, [Define this if OS is FreeBSD])
|
2002-11-14 09:18:10 +01:00
|
|
|
LOCK_MANAGER_FLG=Y
|
2006-03-19 16:37:42 +01:00
|
|
|
EDITLINE_FLG=Y
|
2003-03-05 16:38:03 +01:00
|
|
|
SHRLIB_EXT=so
|
2002-11-14 07:53:17 +01:00
|
|
|
;;
|
|
|
|
|
2008-01-17 13:26:24 +01:00
|
|
|
mips-*-linux*)
|
|
|
|
MAKEFILE_PREFIX=linux_mips
|
|
|
|
INSTALL_PREFIX=linux
|
|
|
|
PLATFORM=LINUX
|
|
|
|
AC_DEFINE(LINUX)
|
|
|
|
LOCK_MANAGER_FLG=Y
|
|
|
|
EDITLINE_FLG=Y
|
|
|
|
SHRLIB_EXT=so
|
|
|
|
PTHREAD_CFLAGS=-pthread
|
|
|
|
PTHREAD_LIBS=-lpthread
|
|
|
|
;;
|
|
|
|
|
2007-04-01 12:04:28 +02:00
|
|
|
mipsel-*-linux*)
|
|
|
|
MAKEFILE_PREFIX=linux_mipsel
|
|
|
|
INSTALL_PREFIX=linux
|
|
|
|
PLATFORM=LINUX
|
|
|
|
AC_DEFINE(LINUX)
|
|
|
|
LOCK_MANAGER_FLG=Y
|
|
|
|
EDITLINE_FLG=Y
|
|
|
|
SHRLIB_EXT=so
|
|
|
|
PTHREAD_CFLAGS=-pthread
|
|
|
|
PTHREAD_LIBS=-lpthread
|
|
|
|
;;
|
|
|
|
|
2004-09-30 18:30:05 +02:00
|
|
|
x86_64*-*-linux*)
|
2004-01-12 05:58:09 +01:00
|
|
|
MAKEFILE_PREFIX=linux_amd64
|
|
|
|
INSTALL_PREFIX=linux
|
|
|
|
PLATFORM=LINUX
|
|
|
|
AC_DEFINE(LINUX, 1, [Define this if OS is Linux])
|
|
|
|
LOCK_MANAGER_FLG=Y
|
|
|
|
EDITLINE_FLG=Y
|
|
|
|
SHRLIB_EXT=so
|
2004-01-29 07:32:09 +01:00
|
|
|
libdir=/usr/lib64
|
|
|
|
CPU_TYPE=amd64
|
2007-05-14 13:40:57 +02:00
|
|
|
RPM64='()(64bit)'
|
2004-01-12 05:58:09 +01:00
|
|
|
;;
|
|
|
|
|
2004-09-30 18:30:05 +02:00
|
|
|
sparc*-*-linux*)
|
2003-10-11 01:56:57 +02:00
|
|
|
MAKEFILE_PREFIX=linux_sparc32
|
2004-01-12 05:58:09 +01:00
|
|
|
INSTALL_PREFIX=linux
|
2003-10-11 01:56:57 +02:00
|
|
|
PLATFORM=LINUX
|
2003-10-30 09:03:17 +01:00
|
|
|
AC_DEFINE(LINUX, 1, [Define this if OS is Linux])
|
2003-10-11 01:56:57 +02:00
|
|
|
LOCK_MANAGER_FLG=Y
|
|
|
|
EDITLINE_FLG=Y
|
|
|
|
SHRLIB_EXT=so
|
|
|
|
;;
|
|
|
|
|
2006-10-23 13:48:32 +02:00
|
|
|
powerpc*-*-linux*)
|
|
|
|
MAKEFILE_PREFIX=linux_powerpc
|
|
|
|
INSTALL_PREFIX=linux
|
|
|
|
PLATFORM=LINUX
|
|
|
|
AC_DEFINE(LINUX, 1, [Define this if OS is Linux])
|
|
|
|
LOCK_MANAGER_FLG=Y
|
|
|
|
EDITLINE_FLG=Y
|
|
|
|
SHRLIB_EXT=so
|
|
|
|
;;
|
|
|
|
|
2004-12-28 22:07:12 +01:00
|
|
|
i*86*-*-linux*)
|
2002-11-14 07:53:17 +01:00
|
|
|
MAKEFILE_PREFIX=linux
|
|
|
|
PLATFORM=LINUX
|
|
|
|
AC_DEFINE(LINUX)
|
2002-11-14 09:18:10 +01:00
|
|
|
LOCK_MANAGER_FLG=Y
|
2005-08-04 14:33:44 +02:00
|
|
|
EDITLINE_FLG=Y
|
2003-03-05 16:38:03 +01:00
|
|
|
SHRLIB_EXT=so
|
2002-11-14 07:53:17 +01:00
|
|
|
;;
|
|
|
|
|
2004-12-28 22:07:12 +01:00
|
|
|
*-*-linux*)
|
|
|
|
MAKEFILE_PREFIX=linux_generic
|
|
|
|
INSTALL_PREFIX=linux
|
|
|
|
PLATFORM=LINUX
|
|
|
|
AC_DEFINE(LINUX, 1, [Define this if OS is Linux])
|
|
|
|
LOCK_MANAGER_FLG=Y
|
|
|
|
EDITLINE_FLG=Y
|
|
|
|
SHRLIB_EXT=so
|
|
|
|
;;
|
|
|
|
|
2002-11-14 07:53:17 +01:00
|
|
|
*-*-netbsd*)
|
|
|
|
MAKEFILE_PREFIX=netbsd
|
|
|
|
PLATFORM=NETBSD
|
2003-10-30 09:03:17 +01:00
|
|
|
AC_DEFINE(NETBSD, 1, [Define this if OS is NetBSD])
|
2002-11-14 09:18:10 +01:00
|
|
|
LOCK_MANAGER_FLG=Y
|
2004-05-21 01:05:02 +02:00
|
|
|
EDITLINE_FLG=Y
|
2003-03-05 16:38:03 +01:00
|
|
|
SHRLIB_EXT=so
|
2002-11-14 07:53:17 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
*-*-hpux*)
|
|
|
|
MAKEFILE_PREFIX=hpux
|
2007-11-12 15:26:44 +01:00
|
|
|
PLATFORM=HPUX
|
2008-01-10 12:26:58 +01:00
|
|
|
AC_DEFINE(HPUX, 1, [Define this if OS is HP-UX])
|
2002-11-14 09:18:10 +01:00
|
|
|
LOCK_MANAGER_FLG=Y
|
2007-11-12 15:26:44 +01:00
|
|
|
EDITLINE_FLG=Y
|
|
|
|
SHRLIB_EXT=sl
|
2008-01-07 13:26:23 +01:00
|
|
|
libdir=/usr/lib/pa20_64
|
2002-11-14 07:53:17 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
i386-pc-solaris*)
|
2003-11-21 20:52:10 +01:00
|
|
|
MAKEFILE_PREFIX=solx86gcc
|
2007-08-31 10:51:52 +02:00
|
|
|
INSTALL_PREFIX=solaris
|
2002-11-14 07:53:17 +01:00
|
|
|
PLATFORM=solx86
|
2003-10-30 09:03:17 +01:00
|
|
|
AC_DEFINE(solx86, 1, [Define this if OS is Solarix x86])
|
2002-11-14 09:18:10 +01:00
|
|
|
LOCK_MANAGER_FLG=N
|
2007-08-31 10:51:52 +02:00
|
|
|
EDITLINE_FLG=Y
|
2003-03-05 16:38:03 +01:00
|
|
|
SHRLIB_EXT=so
|
2004-12-24 10:35:48 +01:00
|
|
|
PTHREAD_CFLAGS=-threads
|
|
|
|
PTHREAD_LIBS=-lthread
|
2005-06-22 15:48:23 +02:00
|
|
|
ICU_PLATFORM=SOLARISX86GCC
|
2007-08-28 13:19:00 +02:00
|
|
|
RT_LIB_CHECK=true
|
2002-11-14 07:53:17 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
sparc-sun-solaris*)
|
|
|
|
MAKEFILE_PREFIX=solaris
|
2007-08-31 10:51:52 +02:00
|
|
|
INSTALL_PREFIX=solaris
|
2002-11-14 07:53:17 +01:00
|
|
|
PLATFORM=SOLARIS
|
2003-10-30 09:03:17 +01:00
|
|
|
AC_DEFINE(SOLARIS, 1, [Define this if OS is Solaris Sparc])
|
2002-12-29 15:15:50 +01:00
|
|
|
LOCK_MANAGER_FLG=N
|
|
|
|
EDITLINE_FLG=Y
|
2003-03-05 16:38:03 +01:00
|
|
|
SHRLIB_EXT=so
|
2005-06-02 10:00:34 +02:00
|
|
|
PTHREAD_CFLAGS=-threads
|
|
|
|
PTHREAD_LIBS=-lthread
|
|
|
|
ICU_PLATFORM=SOLARISGCC
|
2007-08-28 13:19:00 +02:00
|
|
|
RT_LIB_CHECK=true
|
2002-11-14 07:53:17 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
i*-sni-sysv4)
|
|
|
|
MAKEFILE_PREFIX=sinixz
|
|
|
|
PLATFORM="SINIX-Z"
|
2003-10-30 09:03:17 +01:00
|
|
|
AC_DEFINE(SINIXZ, 1, [Define this if OS is SINIX-Z])
|
2002-11-14 09:18:10 +01:00
|
|
|
LOCK_MANAGER_FLG=N
|
2003-03-12 13:39:58 +01:00
|
|
|
EDITLINE_FLG=Y
|
2003-03-05 16:38:03 +01:00
|
|
|
SHRLIB_EXT=so
|
2002-11-14 07:53:17 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
*-*-mingw*)
|
|
|
|
MAKEFILE_PREFIX=mingw
|
|
|
|
PLATFORM=win32
|
2003-10-30 09:03:17 +01:00
|
|
|
AC_DEFINE(WIN_NT, 1, [Define this if OS is Windows NT])
|
2004-10-25 11:45:03 +02:00
|
|
|
AC_DEFINE(HAVE_MULTI_THREAD, 1, [Define this if multi-threading should be supported])
|
2003-02-10 06:42:22 +01:00
|
|
|
LOCK_MANAGER_FLG=N
|
2002-11-14 07:53:17 +01:00
|
|
|
EDITLINE_FLG=N
|
2003-11-23 17:27:09 +01:00
|
|
|
RAW_DEVICES_FLG=N
|
2003-03-05 16:38:03 +01:00
|
|
|
SHRLIB_EXT=dll
|
2005-06-15 07:31:47 +02:00
|
|
|
ICU_PLATFORM=MinGW
|
2002-11-14 07:53:17 +01:00
|
|
|
;;
|
2002-11-22 15:31:13 +01:00
|
|
|
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR(unsupported platform ${target})
|
|
|
|
;;
|
2002-08-22 09:56:28 +02:00
|
|
|
esac
|
|
|
|
|
2004-01-12 05:58:09 +01:00
|
|
|
if test "$INSTALL_PREFIX" = ""; then
|
|
|
|
INSTALL_PREFIX=$MAKEFILE_PREFIX
|
|
|
|
fi
|
|
|
|
|
2002-11-11 14:09:20 +01:00
|
|
|
AC_SUBST(MAKEFILE_PREFIX)
|
2002-08-22 09:56:28 +02:00
|
|
|
AC_SUBST(PLATFORM)
|
2003-10-30 10:49:40 +01:00
|
|
|
AC_SUBST(SHRLIB_EXT)
|
2005-06-02 10:00:34 +02:00
|
|
|
AC_SUBST(ICU_PLATFORM)
|
2003-10-30 09:03:17 +01:00
|
|
|
AC_DEFINE(CASE_SENSITIVITY, false, [Define this if paths are case sensitive])
|
2007-05-14 13:40:57 +02:00
|
|
|
AC_SUBST(RPM64)
|
2002-08-22 09:56:28 +02:00
|
|
|
|
|
|
|
|
2002-09-03 15:25:30 +02:00
|
|
|
dnl Some controllable options
|
2002-08-14 15:10:00 +02:00
|
|
|
FIREBIRD_ARCH_TYPE=classic
|
2002-08-14 14:13:20 +02:00
|
|
|
AC_ARG_ENABLE(superserver,
|
2002-09-23 09:49:33 +02:00
|
|
|
[ --enable-superserver build SuperServer architecture (default=no)],
|
2002-08-14 14:13:20 +02:00
|
|
|
[case "$enableval" in
|
|
|
|
yes) FIREBIRD_ARCH_TYPE=super;;
|
|
|
|
no) FIREBIRD_ARCH_TYPE=classic;;
|
|
|
|
*) AC_MSG_ERROR(bad value '${enableval}' for --enable-superserver);;
|
|
|
|
esac])
|
2002-11-14 07:53:17 +01:00
|
|
|
AC_SUBST(FIREBIRD_ARCH_TYPE)
|
2002-11-11 06:54:24 +01:00
|
|
|
|
|
|
|
case $FIREBIRD_ARCH_TYPE in
|
2002-11-14 07:53:17 +01:00
|
|
|
super) AC_SUBST(ARCH_TYPE_SUFFIX,SS);;
|
|
|
|
classic) AC_SUBST(ARCH_TYPE_SUFFIX,CS);;
|
2002-11-11 06:54:24 +01:00
|
|
|
esac
|
|
|
|
|
2002-08-14 15:43:18 +02:00
|
|
|
PROD_BUILD_FLG=Y
|
2002-08-14 14:13:20 +02:00
|
|
|
AC_ARG_ENABLE(debug,
|
2002-09-23 09:49:33 +02:00
|
|
|
[ --enable-debug build debug version (default=no)],
|
2002-08-14 14:13:20 +02:00
|
|
|
[case "$enableval" in
|
2002-08-22 09:56:28 +02:00
|
|
|
yes) PROD_BUILD_FLG=N;;
|
2002-08-14 14:15:23 +02:00
|
|
|
no) PROD_BUILD_FLG=Y;;
|
2002-08-14 14:13:20 +02:00
|
|
|
*) AC_MSG_ERROR(bad value '${enableval}' for --enable-debug);;
|
|
|
|
esac])
|
2002-07-29 17:43:24 +02:00
|
|
|
AC_SUBST(PROD_BUILD_FLG)
|
2001-07-31 10:42:21 +02:00
|
|
|
|
2004-10-04 07:23:56 +02:00
|
|
|
dnl Find out how to use threads on this platform
|
2008-01-21 11:14:46 +01:00
|
|
|
pre_acx_pthread_cflags=$CFLAGS
|
2004-10-04 07:23:56 +02:00
|
|
|
ACX_PTHREAD([
|
2004-05-21 01:05:02 +02:00
|
|
|
AC_DEFINE(HAVE_MULTI_THREAD, 1,
|
2004-10-04 07:23:56 +02:00
|
|
|
[Define this if multi-threading should be supported])])
|
2008-01-21 11:14:46 +01:00
|
|
|
CFLAGS=$pre_acx_pthread_cflags
|
2004-10-04 07:23:56 +02:00
|
|
|
|
|
|
|
AC_SUBST(PTHREAD_LIBS)
|
|
|
|
AC_SUBST(PTHREAD_CFLAGS)
|
2004-05-21 01:05:02 +02:00
|
|
|
|
2002-10-01 07:48:00 +02:00
|
|
|
AC_ARG_ENABLE(raw-devices,
|
2003-11-23 17:37:40 +01:00
|
|
|
[ --enable-raw-devices enable databases on raw devices (default on POSIX)],
|
2002-10-01 07:48:00 +02:00
|
|
|
[case "$enableval" in
|
|
|
|
yes) RAW_DEVICES_FLG=Y;;
|
|
|
|
no) RAW_DEVICES_FLG=N;;
|
2002-11-04 09:07:23 +01:00
|
|
|
*) AC_MSG_ERROR(bad value '${enableval}' for --enable-raw-devices);;
|
2002-10-01 07:48:00 +02:00
|
|
|
esac])
|
|
|
|
if test "$RAW_DEVICES_FLG" = "Y"; then
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_DEFINE(SUPPORT_RAW_DEVICES, 1,
|
|
|
|
[Define this if databases on raw devices should be supported])
|
2002-10-01 07:48:00 +02:00
|
|
|
fi
|
|
|
|
|
2002-11-13 08:07:58 +01:00
|
|
|
AC_ARG_WITH(editline,
|
2002-11-14 07:53:17 +01:00
|
|
|
[ --with-editline support fancy command line editing],
|
2002-10-01 12:38:13 +02:00
|
|
|
[case "$withval" in
|
2002-11-13 08:07:58 +01:00
|
|
|
yes) EDITLINE_FLG=Y;;
|
|
|
|
no) EDITLINE_FLG=N;;
|
|
|
|
*) AC_MSG_ERROR(bad value '${withval}' for --with-editline);;
|
2002-10-01 12:38:13 +02:00
|
|
|
esac])
|
2007-04-03 10:25:55 +02:00
|
|
|
AC_ARG_WITH(system-editline,
|
|
|
|
[ --with-system-editline use OS supplied libeditline],
|
|
|
|
[case "$withval" in
|
|
|
|
yes) STD_EDITLINE=true;;
|
|
|
|
no) STD_EDITLINE=false;;
|
|
|
|
*) AC_MSG_ERROR(bad value '${withval}' for --with-system-editline);;
|
|
|
|
esac])
|
|
|
|
|
2007-04-04 09:30:15 +02:00
|
|
|
# not need editline in default libs, but need to test for its presence
|
2007-04-03 10:25:55 +02:00
|
|
|
saveLIBS=$LIBS
|
|
|
|
if test "$STD_EDITLINE" = "true"; then
|
|
|
|
AC_CHECK_LIB(editline, readline, EDITLINE_FLG=Y, STD_EDITLINE=false)
|
|
|
|
fi
|
|
|
|
LIBS=$saveLIBS
|
|
|
|
|
|
|
|
AC_SUBST(STD_EDITLINE)
|
2002-11-13 08:07:58 +01:00
|
|
|
AC_SUBST(EDITLINE_FLG)
|
2002-10-01 12:38:13 +02:00
|
|
|
|
2007-04-03 10:25:55 +02:00
|
|
|
AC_ARG_WITH(system-icu,
|
|
|
|
[ --with-system-icu use OS supplied ICU],
|
|
|
|
[case "$withval" in
|
|
|
|
yes) STD_ICU=true;;
|
|
|
|
no) STD_ICU=false;;
|
|
|
|
*) AC_MSG_ERROR(bad value '${withval}' for --with-system-icu);;
|
|
|
|
esac])
|
|
|
|
AC_SUBST(STD_ICU)
|
|
|
|
|
2002-11-06 14:39:52 +01:00
|
|
|
FB_SERVICE_NAME=gds_db
|
2002-11-06 13:36:07 +01:00
|
|
|
FB_SERVICE_PORT=3050
|
2003-01-16 17:28:28 +01:00
|
|
|
FB_IPC_NAME=FirebirdIPI
|
2002-11-06 13:36:07 +01:00
|
|
|
AC_ARG_WITH(service-name,
|
|
|
|
[ --with-service-name specify inet service name (default=gds_db)],
|
|
|
|
[FB_SERVICE_NAME=${withval}])
|
|
|
|
AC_ARG_WITH(service-port,
|
|
|
|
[ --with-service-port specify inet service port (default=3050)],
|
|
|
|
[FB_SERVICE_PORT=${withval}])
|
2003-01-16 17:34:24 +01:00
|
|
|
AC_ARG_WITH(ipc-name,
|
2003-10-30 08:26:28 +01:00
|
|
|
[ --with-ipc-name specify local IPC name (default=FirebirdIPI)],
|
2003-01-16 17:34:24 +01:00
|
|
|
[FB_IPC_NAME=${withval}])
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_DEFINE_UNQUOTED(FB_SERVICE_NAME,"$FB_SERVICE_NAME", [Inet service name])
|
|
|
|
AC_DEFINE_UNQUOTED(FB_SERVICE_PORT,$FB_SERVICE_PORT, [Inet service port])
|
|
|
|
AC_DEFINE_UNQUOTED(FB_IPC_NAME,"$FB_IPC_NAME", [Local IPC name])
|
2002-11-06 13:36:07 +01:00
|
|
|
AC_SUBST(FB_SERVICE_NAME)
|
|
|
|
AC_SUBST(FB_SERVICE_PORT)
|
2003-01-16 17:28:28 +01:00
|
|
|
AC_SUBST(FB_IPC_NAME)
|
2002-11-06 13:36:07 +01:00
|
|
|
|
2002-12-02 12:17:04 +01:00
|
|
|
dnl gpre built-in language support (C/C++ are mandatory)
|
|
|
|
GPRE_LANGUAGE_MODULES=""
|
|
|
|
AC_ARG_WITH(gpre-ada,
|
|
|
|
[ --with-gpre-ada support ADA in gpre (default=no)],
|
|
|
|
[case "$withval" in
|
|
|
|
yes) XE_APPEND(ada.cpp,GPRE_LANGUAGE_MODULES)
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_DEFINE(GPRE_ADA, 1, [Define this if GPRE should support ADA]);;
|
2002-12-02 12:17:04 +01:00
|
|
|
no) ;;
|
|
|
|
*) AC_MSG_ERROR(bad value '${withval}' for --with-gpre-ada);;
|
|
|
|
esac])
|
|
|
|
AC_ARG_WITH(gpre-cobol,
|
|
|
|
[ --with-gpre-cobol support COBOL in gpre (default=no)],
|
|
|
|
[case "$withval" in
|
2007-02-06 13:18:18 +01:00
|
|
|
yes) XE_APPEND(cob.cpp rmc.cpp,GPRE_LANGUAGE_MODULES)
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_DEFINE(GPRE_COBOL, 1, [Define this if GPRE should support COBOL]);;
|
2002-12-02 12:17:04 +01:00
|
|
|
no) ;;
|
|
|
|
*) AC_MSG_ERROR(bad value '${withval}' for --with-gpre-cobol);;
|
|
|
|
esac])
|
|
|
|
AC_ARG_WITH(gpre-fortran,
|
|
|
|
[ --with-gpre-fortran support FORTRAN in gpre (default=no)],
|
|
|
|
[case "$withval" in
|
|
|
|
yes) XE_APPEND(ftn.cpp,GPRE_LANGUAGE_MODULES)
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_DEFINE(GPRE_FORTRAN, 1, [Define this if GPRE should support FORTRAN]);;
|
2002-12-02 12:17:04 +01:00
|
|
|
no) ;;
|
|
|
|
*) AC_MSG_ERROR(bad value '${withval}' for --with-gpre-fortran);;
|
|
|
|
esac])
|
|
|
|
AC_ARG_WITH(gpre-pascal,
|
|
|
|
[ --with-gpre-pascal support PASCAL in gpre (default=no)],
|
|
|
|
[case "$withval" in
|
|
|
|
yes) XE_APPEND(pas.cpp,GPRE_LANGUAGE_MODULES)
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_DEFINE(GPRE_PASCAL, 1, [Define this if GPRE should support PASCAL]);;
|
2002-12-02 12:17:04 +01:00
|
|
|
no) ;;
|
|
|
|
*) AC_MSG_ERROR(bad value '${withval}' for --with-gpre-pascal);;
|
|
|
|
esac])
|
|
|
|
AC_SUBST(GPRE_LANGUAGE_MODULES)
|
|
|
|
|
2002-11-06 13:36:07 +01:00
|
|
|
|
2003-10-30 10:49:40 +01:00
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_AWK
|
|
|
|
AC_PROG_CC dnl EKU: C++ programs should not use CC, but at the moment all
|
|
|
|
dnl makefiles use $(CC) to link objects. This has to be changed!
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
dnl EKU: AC_PROG_RANLIB has been superseded by AC_PROG_LIBTOOL
|
|
|
|
AC_LIBTOOL_DLOPEN
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
|
|
|
2002-09-03 15:25:30 +02:00
|
|
|
dnl Check for system header files
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_HEADER_SYS_WAIT
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_CHECK_HEADERS(assert.h)
|
2002-07-29 17:43:24 +02:00
|
|
|
AC_CHECK_HEADERS(ctype.h)
|
|
|
|
AC_CHECK_HEADERS(errno.h)
|
2001-07-31 10:42:21 +02:00
|
|
|
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)
|
2004-06-29 17:16:12 +02:00
|
|
|
case "$PLATFORM" in
|
|
|
|
SOLARIS|solx86)
|
|
|
|
AC_CHECK_HEADERS(thread.h)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_CHECK_HEADERS(pthread.h)
|
|
|
|
;;
|
|
|
|
esac
|
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)
|
2002-09-18 14:50:13 +02:00
|
|
|
AC_HEADER_SYS_WAIT
|
|
|
|
AC_HEADER_TIME
|
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)
|
2007-12-20 15:20:08 +01:00
|
|
|
AC_CHECK_HEADERS(sys/mount.h)
|
2002-07-06 07:32:02 +02:00
|
|
|
AC_CHECK_HEADERS(sys/ioctl.h)
|
2006-07-25 15:03:11 +02:00
|
|
|
AC_CHECK_HEADERS(limits.h)
|
2002-07-29 17:43:24 +02:00
|
|
|
AC_CHECK_HEADERS(setjmp.h)
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_CHECK_HEADERS(stdarg.h)
|
|
|
|
AC_CHECK_HEADERS(stdlib.h)
|
|
|
|
AC_CHECK_HEADERS(string.h)
|
2003-10-14 15:10:05 +02:00
|
|
|
AC_CHECK_HEADERS(signal.h sys/signal.h sys/siginfo.h)
|
2002-11-13 08:07:58 +01:00
|
|
|
if test "$EDITLINE_FLG" = "Y"; then
|
2003-03-12 13:39:58 +01:00
|
|
|
AC_CHECK_HEADERS(termio.h termios.h)
|
|
|
|
AC_HEADER_DIRENT
|
2007-04-03 10:25:55 +02:00
|
|
|
AC_DEFINE(HAVE_EDITLINE_H, 1, [Define this if editline is in use])
|
2002-10-01 12:38:13 +02:00
|
|
|
fi
|
2002-07-29 17:43:24 +02:00
|
|
|
AC_CHECK_HEADERS(unistd.h)
|
2003-10-30 10:49:40 +01:00
|
|
|
if test "$ac_cv_header_unistd_h" = "yes"; then
|
2003-11-04 09:34:42 +01:00
|
|
|
dnl For details see
|
|
|
|
dnl http://www.opengroup.org/onlinepubs/007904975/basedefs/unistd.h.html
|
|
|
|
dnl http://people.redhat.com/drepper/posix-option-groups.html
|
2003-10-30 10:49:40 +01:00
|
|
|
AC_MSG_CHECKING(if POSIX threads are available)
|
|
|
|
AC_TRY_RUN([#include <unistd.h>
|
|
|
|
main () {
|
|
|
|
#if defined(_POSIX_THREADS) && _POSIX_THREADS >= 200112L
|
|
|
|
exit(0);
|
|
|
|
#else
|
|
|
|
exit(1);
|
|
|
|
#endif
|
|
|
|
}],
|
|
|
|
[AC_DEFINE(HAVE_POSIX_THREADS, 1,
|
2003-10-30 13:47:59 +01:00
|
|
|
[Define this if POSIX threads are available])
|
2003-10-31 13:41:46 +01:00
|
|
|
AC_MSG_RESULT(yes)],
|
2003-11-04 07:25:11 +01:00
|
|
|
[AC_MSG_RESULT(no)])
|
2003-10-30 10:49:40 +01:00
|
|
|
fi
|
2002-07-29 17:43:24 +02:00
|
|
|
AC_CHECK_HEADERS(varargs.h)
|
2002-11-05 14:15:47 +01:00
|
|
|
AC_CHECK_HEADERS(crypt.h)
|
2002-11-15 11:55:34 +01:00
|
|
|
AC_CHECK_HEADERS(netinet/in.h rpc/rpc.h netconfig.h)
|
|
|
|
AC_CHECK_HEADERS(rpc/xdr.h,,,[#include <rpc/rpc.h>])
|
2002-11-12 14:46:11 +01:00
|
|
|
AC_CHECK_HEADERS(aio.h)
|
2002-11-18 14:23:00 +01:00
|
|
|
AC_CHECK_HEADERS(mntent.h mnttab.h sys/mntent.h sys/mnttab.h)
|
2002-11-21 09:56:28 +01:00
|
|
|
AC_CHECK_HEADERS(sys/ipc.h sys/file.h)
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_CHECK_HEADERS(socket.h sys/socket.h sys/sockio.h winsock2.h)
|
2007-11-02 16:14:57 +01:00
|
|
|
AC_CHECK_HEADERS(sys/resource.h)
|
2007-11-12 15:26:44 +01:00
|
|
|
AC_CHECK_HEADERS(sys/sem.h)
|
|
|
|
AC_CHECK_HEADERS(semaphore.h)
|
2002-08-14 13:14:01 +02:00
|
|
|
|
2003-10-30 10:49:40 +01:00
|
|
|
|
2002-09-11 13:30:50 +02:00
|
|
|
dnl Check for libraries
|
2002-07-04 11:34:20 +02:00
|
|
|
AC_CHECK_LIB(dl, main)
|
|
|
|
AC_CHECK_LIB(m, main)
|
2002-11-13 08:07:58 +01:00
|
|
|
if test "$EDITLINE_FLG" = "Y"; then
|
2008-01-09 17:14:38 +01:00
|
|
|
AC_CHECK_LIB(curses, tgetent, TERMLIB=curses, \
|
|
|
|
AC_CHECK_LIB(ncurses, tgetent, TERMLIB=ncurses, \
|
|
|
|
AC_CHECK_LIB(termcap, tgetent, TERMLIB=termcap, \
|
|
|
|
AC_CHECK_LIB(tinfo, tgetent, TERMLIB=tinfo, \
|
2006-11-19 16:40:39 +01:00
|
|
|
AC_MSG_ERROR(termcap support not found)))))
|
2008-01-10 11:06:22 +01:00
|
|
|
AC_SUBST(TERMLIB)
|
|
|
|
XE_APPEND(-l$TERMLIB, LIBS)
|
2002-10-01 12:38:13 +02:00
|
|
|
fi
|
2007-08-28 13:19:00 +02:00
|
|
|
if test "$RT_LIB_CHECK" = "true"; then
|
|
|
|
AC_CHECK_LIB(rt, main)
|
|
|
|
fi
|
2002-12-31 19:15:18 +01:00
|
|
|
|
2007-04-11 18:05:40 +02:00
|
|
|
dnl check for INFINITY in math.h
|
|
|
|
dnl _ISOC99_SOURCE is defined to emulate C++ compilation in plain-C conftest.c
|
|
|
|
AC_TRY_COMPILE([#define _ISOC99_SOURCE 1
|
|
|
|
#include <math.h>],
|
|
|
|
[double x = INFINITY;],
|
|
|
|
[AC_DEFINE(HAVE_INFINITY, 1,
|
|
|
|
[Define this if INFINITY is defined in math.h])])
|
2002-11-06 13:36:07 +01:00
|
|
|
|
2008-01-16 11:47:59 +01:00
|
|
|
dnl check for va_copy() in stdarg.h
|
|
|
|
dnl _ISOC99_SOURCE is defined to emulate C++ compilation in plain-C conftest.c
|
|
|
|
AC_TRY_COMPILE([#define _ISOC99_SOURCE 1
|
|
|
|
#include <stdarg.h>
|
|
|
|
void vafun(const char* fmt, ...)
|
|
|
|
{
|
|
|
|
va_list par, par2;
|
|
|
|
va_start(par, fmt);
|
|
|
|
va_copy(par2, par);
|
|
|
|
va_end(par2);
|
|
|
|
va_end(par);
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[exit(0);],
|
|
|
|
[AC_DEFINE(HAVE_VA_COPY, 1,
|
|
|
|
[Define this if va_copy() is defined in stdarg.h])])
|
|
|
|
|
2002-09-03 15:25:30 +02:00
|
|
|
dnl Check for functions
|
2002-08-22 09:56:28 +02:00
|
|
|
AC_CHECK_FUNCS(gettimeofday)
|
|
|
|
if test "$ac_cv_func_gettimeofday" = "yes"; then
|
2002-09-03 15:25:30 +02:00
|
|
|
dnl EKU: SINIX-Z has no prototype for gettimeofday() so the following test
|
|
|
|
dnl will always succeed, which is wrong.
|
2002-11-22 15:11:28 +01:00
|
|
|
case "$PLATFORM" in
|
2002-08-22 09:56:28 +02:00
|
|
|
SINIX-Z)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_CHECKING(if gettimeofday accepts second (timezone) argument)
|
|
|
|
AC_TRY_COMPILE([#include <sys/time.h>],
|
|
|
|
[struct timeval tp; gettimeofday(&tp, (struct timezone *)0);],
|
2003-10-30 08:26:28 +01:00
|
|
|
[AC_DEFINE(GETTIMEOFDAY_RETURNS_TIMEZONE, 1,
|
|
|
|
[Define this if gettimeofday accepts second (timezone) argument])
|
|
|
|
AC_MSG_RESULT(yes)],
|
2002-08-22 09:56:28 +02:00
|
|
|
[AC_MSG_RESULT(no)])
|
|
|
|
;;
|
|
|
|
esac
|
2003-10-31 12:33:45 +01:00
|
|
|
AH_BOTTOM([#ifdef GETTIMEOFDAY_RETURNS_TIMEZONE
|
|
|
|
#define GETTIMEOFDAY(x) gettimeofday((x), (struct timezone *)0)
|
|
|
|
#else
|
|
|
|
#define GETTIMEOFDAY(x) gettimeofday((x))
|
|
|
|
#endif])
|
2002-08-22 09:56:28 +02:00
|
|
|
fi
|
|
|
|
AC_CHECK_FUNCS(time times)
|
2003-02-10 06:42:22 +01:00
|
|
|
AC_SEARCH_LIBS(gethostname,nsl)
|
|
|
|
AC_SEARCH_LIBS(connect,socket)
|
2002-08-28 10:02:12 +02:00
|
|
|
AC_CHECK_FUNCS(strcasecmp stricmp)
|
2006-03-25 08:08:00 +01:00
|
|
|
AC_CHECK_FUNCS(strncasecmp strnicmp)
|
2002-09-18 14:50:13 +02:00
|
|
|
if test "$ac_cv_func_strcasecmp" = "no" -a "$ac_cv_func_stricmp" = "no"; then
|
2002-09-03 15:25:30 +02:00
|
|
|
dnl EKU: On SINIX-Z strcasecmp is in libresolv.
|
2002-08-28 09:51:18 +02:00
|
|
|
AC_CHECK_LIB(resolv, strcasecmp,
|
2002-08-28 09:03:07 +02:00
|
|
|
[XE_APPEND(-lresolv,LIBS)
|
|
|
|
unset ac_cv_func_strcasecmp
|
|
|
|
AC_CHECK_FUNCS(strcasecmp)],, $LIBS)
|
|
|
|
fi
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_SEARCH_LIBS(dirname, gen)
|
2003-02-12 07:09:12 +01:00
|
|
|
AC_CHECK_FUNCS(dirname)
|
2002-11-14 08:35:52 +01:00
|
|
|
AC_CHECK_FUNCS(sigaction setitimer)
|
2003-08-12 12:06:14 +02:00
|
|
|
AC_CHECK_FUNCS(snprintf vsnprintf)
|
2003-02-18 06:24:35 +01:00
|
|
|
AC_CHECK_FUNCS(swab _swab)
|
2002-09-11 13:30:50 +02:00
|
|
|
AC_FUNC_MMAP
|
|
|
|
AC_FUNC_FORK
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_FUNC_SETPGRP
|
|
|
|
AC_CHECK_FUNCS(setpgid)
|
|
|
|
AC_FUNC_GETPGRP
|
2002-09-11 13:30:50 +02:00
|
|
|
AC_CHECK_FUNCS(flock)
|
2002-09-19 12:51:34 +02:00
|
|
|
AC_CHECK_FUNCS(initgroups)
|
2002-10-16 10:38:04 +02:00
|
|
|
AC_CHECK_FUNCS(getpagesize)
|
2002-11-12 14:46:11 +01:00
|
|
|
AC_CHECK_FUNCS(pread pwrite)
|
2002-11-18 14:23:00 +01:00
|
|
|
AC_CHECK_FUNCS(getcwd getwd)
|
|
|
|
AC_CHECK_FUNCS(setmntent getmntent)
|
|
|
|
if test "$ac_cv_func_getmntent" = "yes"; then
|
|
|
|
AC_MSG_CHECKING(if getmntent needs second argument)
|
|
|
|
AC_TRY_COMPILE([#include <stdio.h>
|
|
|
|
#include <sys/mnttab.h>],
|
|
|
|
[FILE *f; struct mntent *m; getmntent(f, m);],
|
2003-10-30 08:26:28 +01:00
|
|
|
[AC_DEFINE(GETMNTENT_TAKES_TWO_ARGUMENTS, 1,
|
|
|
|
[Define this if getmntent needs second argument])
|
|
|
|
AC_MSG_RESULT(yes)],
|
2002-11-18 14:23:00 +01:00
|
|
|
[AC_MSG_RESULT(no)])
|
|
|
|
fi
|
2007-11-02 16:14:57 +01:00
|
|
|
AC_CHECK_FUNCS(setrlimit getrlimit)
|
2003-03-12 13:39:58 +01:00
|
|
|
AC_CHECK_FUNCS(tcgetattr strdup)
|
2003-05-14 07:40:00 +02:00
|
|
|
AC_CHECK_FUNCS(mkstemp)
|
2003-10-30 10:49:40 +01:00
|
|
|
AC_CHECK_FUNCS(pthread_keycreate pthread_key_create)
|
2004-04-09 02:23:58 +02:00
|
|
|
AC_CHECK_FUNCS(llrint)
|
2004-11-04 20:14:20 +01:00
|
|
|
AC_CHECK_FUNCS(localtime_r)
|
2005-12-23 10:21:46 +01:00
|
|
|
AC_CHECK_FUNCS(gmtime_r)
|
2007-11-15 12:38:46 +01:00
|
|
|
if test "$ac_cv_header_semaphore_h" = "yes"; then
|
2007-11-12 15:26:44 +01:00
|
|
|
savedFlags="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
|
|
|
AC_CHECK_FUNCS(sem_timedwait)
|
2007-12-07 13:19:37 +01:00
|
|
|
AC_CHECK_FUNCS(sem_init)
|
|
|
|
if test "$ac_cv_func_sem_init" = "yes"; then
|
|
|
|
AC_MSG_CHECKING(for working sem_int())
|
|
|
|
AC_TRY_RUN([#include <semaphore.h>
|
|
|
|
main () {
|
|
|
|
sem_t s;
|
|
|
|
exit(sem_init(&s,0,0));
|
|
|
|
}
|
|
|
|
],
|
2007-12-08 08:46:23 +01:00
|
|
|
[AC_DEFINE(WORKING_SEM_INIT,1,[Define this if sem_init() works on the platform])
|
2007-12-07 13:19:37 +01:00
|
|
|
AC_MSG_RESULT(yes)],
|
|
|
|
[AC_MSG_RESULT(no)])
|
|
|
|
fi
|
2007-11-12 15:26:44 +01:00
|
|
|
CFLAGS="$savedFlags"
|
|
|
|
fi
|
2007-12-07 13:19:37 +01:00
|
|
|
AC_CHECK_FUNCS(semtimedop)
|
2002-07-01 18:59:09 +02:00
|
|
|
|
2003-10-30 10:49:40 +01:00
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
2001-07-31 10:42:21 +02:00
|
|
|
AC_C_BIGENDIAN
|
2002-09-11 13:30:50 +02:00
|
|
|
AC_C_VOLATILE
|
2002-08-14 15:43:18 +02:00
|
|
|
AC_TYPE_SIGNAL
|
2003-10-30 10:49:40 +01:00
|
|
|
AC_TYPE_OFF_T
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_TYPE_UID_T
|
2002-09-18 14:50:13 +02:00
|
|
|
AC_SYS_LARGEFILE
|
2003-02-12 07:09:12 +01:00
|
|
|
if test "$ac_cv_sys_file_offset_bits" = "no"; then
|
|
|
|
AC_MSG_CHECKING(for native large file support)
|
|
|
|
AC_TRY_RUN([#include <unistd.h>
|
|
|
|
main () {
|
|
|
|
exit(!(sizeof(off_t) == 8));
|
2003-10-30 08:26:28 +01:00
|
|
|
}],
|
2003-10-30 10:49:40 +01:00
|
|
|
[ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64)
|
|
|
|
AC_MSG_RESULT(yes)],
|
2003-10-30 08:26:28 +01:00
|
|
|
[AC_MSG_RESULT(no)])
|
2003-02-12 07:09:12 +01:00
|
|
|
fi
|
|
|
|
|
2004-10-25 11:45:03 +02:00
|
|
|
AC_CHECK_SIZEOF(void *)
|
2002-12-02 09:25:23 +01:00
|
|
|
AC_CHECK_SIZEOF(long)
|
2003-10-27 19:42:47 +01:00
|
|
|
AC_CHECK_TYPES([socklen_t],,,[#include <sys/socket.h>])
|
2003-11-20 09:13:30 +01:00
|
|
|
AH_BOTTOM([#ifndef HAVE_SOCKLEN_T
|
|
|
|
typedef int socklen_t;
|
|
|
|
#endif])
|
2003-10-27 19:42:47 +01:00
|
|
|
AC_CHECK_TYPES([semun])
|
2003-02-12 07:09:12 +01:00
|
|
|
if test "$ac_cv_type_semun" = "no"; then
|
|
|
|
AC_MSG_CHECKING(if sem.h defines semun)
|
|
|
|
AC_TRY_COMPILE([#include <sys/types.h>
|
|
|
|
#include <sys/ipc.h>
|
|
|
|
#include <sys/sem.h>],
|
|
|
|
[union semun s;],
|
2003-10-30 08:26:28 +01:00
|
|
|
[ac_cv_type_semun=yes; AC_DEFINE(HAVE_SEMUN) AC_MSG_RESULT(yes)],
|
2003-02-12 07:09:12 +01:00
|
|
|
[AC_MSG_RESULT(no)])
|
|
|
|
fi
|
|
|
|
|
2002-11-15 11:55:34 +01:00
|
|
|
AC_CHECK_TYPES([struct XDR::xdr_ops],,,[#include <rpc/rpc.h>
|
|
|
|
#include <rpc/xdr.h>])
|
|
|
|
AC_CHECK_TYPES([struct xdr_ops],,,[#include <rpc/rpc.h>
|
|
|
|
#include <rpc/xdr.h>])
|
2002-07-05 17:00:26 +02:00
|
|
|
|
2002-11-18 14:23:00 +01:00
|
|
|
|
2002-09-18 14:50:13 +02:00
|
|
|
dnl EKU: try to determine the alignment of long and double
|
|
|
|
dnl replaces ALIGNMENT and DOUBLE_ALIGN in src/jrd/common.h
|
|
|
|
AC_MSG_CHECKING(alignment of long)
|
|
|
|
AC_TRY_RUN([main () {
|
|
|
|
struct s {
|
|
|
|
char a;
|
2006-11-09 08:43:57 +01:00
|
|
|
long long b;
|
2002-09-18 14:50:13 +02:00
|
|
|
};
|
|
|
|
exit((int)&((struct s*)0)->b);
|
|
|
|
}], ac_cv_c_alignment=$ac_status, ac_cv_c_alignment=$ac_status)
|
|
|
|
AC_MSG_RESULT($ac_cv_c_alignment)
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_DEFINE_UNQUOTED(ALIGNMENT, $ac_cv_c_alignment, [Alignment of long])
|
2002-09-18 14:50:13 +02:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(alignment of double)
|
|
|
|
AC_TRY_RUN([main () {
|
|
|
|
struct s {
|
|
|
|
char a;
|
|
|
|
double b;
|
|
|
|
};
|
|
|
|
exit((int)&((struct s*)0)->b);
|
|
|
|
}], ac_cv_c_double_align=$ac_status, ac_cv_c_double_align=$ac_status)
|
|
|
|
AC_MSG_RESULT($ac_cv_c_double_align)
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_DEFINE_UNQUOTED(DOUBLE_ALIGN, $ac_cv_c_double_align, [Alignment of double])
|
2002-09-18 14:50:13 +02:00
|
|
|
|
|
|
|
dnl EKU: don't know how to convert this into an autoconf test:
|
|
|
|
dnl #define FB_ALIGN(n,b) ...
|
|
|
|
dnl
|
|
|
|
dnl VMS (n) -> no
|
|
|
|
dnl sun_68k ((n+1) & ~1) -> even
|
|
|
|
dnl XENIX ((n+1) & ~1) -> even
|
|
|
|
dnl netware_386 ((n+1) & ~1) -> even
|
|
|
|
dnl all others ((n + b - 1) & ~(b - 1)) -> multiple of b
|
|
|
|
dnl
|
|
|
|
dnl volunters are welcome!
|
|
|
|
|
2002-11-01 14:22:35 +01:00
|
|
|
|
2003-10-30 10:49:40 +01:00
|
|
|
|
2002-11-06 13:36:07 +01:00
|
|
|
dnl EKU: Add any platform specific tests below
|
2002-11-22 15:11:28 +01:00
|
|
|
case "$PLATFORM" in
|
2002-11-06 13:36:07 +01:00
|
|
|
LINUX)
|
|
|
|
dnl MOD: Check for /proc/self/exe mainly used on linux systems
|
|
|
|
dnl this is used to determine path to executable file.
|
|
|
|
AC_CHECK_FILES(/proc/self/exe)
|
2003-11-04 07:45:22 +01:00
|
|
|
|
|
|
|
dnl EKU: some Linux distributions do not provide POSIX threads
|
|
|
|
dnl compatibility. Define HAVE_POSIX_THREADS anyway to get
|
|
|
|
dnl thread support compiled into FIREBIRD.
|
|
|
|
AC_DEFINE(HAVE_POSIX_THREADS)
|
2002-11-06 13:36:07 +01:00
|
|
|
;;
|
2007-11-12 15:26:44 +01:00
|
|
|
HPUX)
|
|
|
|
AC_DEFINE(HAVE_POSIX_THREADS)
|
|
|
|
;;
|
2006-12-08 19:32:09 +01:00
|
|
|
FREEBSD|GENTOOFREEBSD)
|
2003-11-13 01:53:12 +01:00
|
|
|
dnl the AC_CHECK_TYPES for socklen_t doesn't include sys/socket.h
|
|
|
|
dnl so test for socklen_t with sys/socket.h included
|
|
|
|
AC_MSG_CHECKING(if sys/socket.h defines socklen_t)
|
|
|
|
AC_TRY_COMPILE([#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>],
|
|
|
|
[socklen_t s;],
|
|
|
|
[AC_DEFINE(HAVE_SOCKLEN_T) AC_MSG_RESULT(yes)],
|
|
|
|
[AC_MSG_RESULT(no)])
|
2003-11-13 04:41:45 +01:00
|
|
|
dnl define HAVE_POSIX_THREADS for FreeBSD 4.x support
|
|
|
|
AC_DEFINE(HAVE_POSIX_THREADS)
|
2003-11-13 01:53:12 +01:00
|
|
|
;;
|
|
|
|
|
2003-10-29 08:57:19 +01:00
|
|
|
SOLARIS|solx86)
|
2005-02-16 11:29:11 +01:00
|
|
|
dnl kkuznetsov: Solaris always check for -lnsl and use Sun thread (!not posix)
|
2003-10-29 08:57:19 +01:00
|
|
|
AC_CHECK_LIB(nsl, gethostname, XE_APPEND(-lnsl,LIBS))
|
2005-02-16 11:29:11 +01:00
|
|
|
AC_CHECK_LIB(thread, thr_create, XE_PREPEND(-lthread,LIBS))
|
|
|
|
|
|
|
|
if test "$EDITLINE_FLG" = "Y"; then
|
|
|
|
AC_CHECK_LIB(termcap, main, XE_APPEND(-ltermcap,EDITLINE_A))
|
|
|
|
fi
|
|
|
|
|
2004-05-13 16:05:00 +02:00
|
|
|
AC_CHECK_TYPES([caddr_t])
|
2003-06-15 08:03:02 +02:00
|
|
|
|
2003-02-10 10:39:55 +01:00
|
|
|
AC_ARG_WITH(sfio,
|
|
|
|
AC_HELP_STRING([--with-sfio=PATH],
|
|
|
|
[use sfio (replacement stdio on Solaris) (default=no)]),
|
2002-12-31 19:15:18 +01:00
|
|
|
[ac_cv_use_sfio=$withval],[ac_cv_use_sfio=no])
|
2003-02-10 10:39:55 +01:00
|
|
|
|
|
|
|
if test "$ac_cv_use_sfio" = "no"; then
|
|
|
|
SFIO_DIR=""
|
|
|
|
SFIO_FLAGS=""
|
|
|
|
SFIO_LDFLAGS=""
|
|
|
|
else
|
2005-02-16 11:29:11 +01:00
|
|
|
AC_CHECK_LIB(sfio, main)
|
|
|
|
dnl Kkuznetsov: using sfio-mt looks like double protecting of FILE*
|
|
|
|
dnl and I avoid to use vthread based on posix threading
|
|
|
|
#AC_CHECK_LIB(sfio-mt, main,,
|
|
|
|
#AC_MSG_ERROR([sfio library not found]),-lvthread)
|
|
|
|
#XE_PREPEND(-lvthread,LIBS)
|
2003-02-10 10:39:55 +01:00
|
|
|
|
|
|
|
SFIO_DIR="$ac_cv_use_sfio"
|
|
|
|
SFIO_FLAGS="-DSFIO -I$ac_cv_use_sfio/include"
|
|
|
|
SFIO_LDFLAGS="-L$ac_cv_use_sfio/lib"
|
|
|
|
fi
|
2002-11-01 14:22:35 +01:00
|
|
|
;;
|
|
|
|
|
2002-11-07 14:05:36 +01:00
|
|
|
win32)
|
|
|
|
FB_PIPE_NAME=interbas
|
|
|
|
AC_ARG_WITH(pipe-name,
|
|
|
|
[ --with-pipe-name specify wnet pipe name (default=interbas)],
|
2002-11-07 15:06:13 +01:00
|
|
|
[FB_PIPE_NAME=${withval}])
|
2003-10-30 09:03:17 +01:00
|
|
|
AH_VERBATIM(FB_PIPE_NAME,
|
|
|
|
[/* Wnet pipe name */
|
|
|
|
#define FB_PIPE_NAME "interbas"])
|
|
|
|
AC_DEFINE_UNQUOTED(FB_PIPE_NAME,"$FB_PIPE_NAME")
|
2002-11-07 14:05:36 +01:00
|
|
|
AC_SUBST(FB_PIPE_NAME)
|
2003-11-18 04:12:35 +01:00
|
|
|
XE_PREPEND( -mno-cygwin -mthreads -lmpr -lversion -lws2_32 -lole32,LIBS)
|
2002-11-07 14:05:36 +01:00
|
|
|
;;
|
|
|
|
|
2002-11-06 13:36:07 +01:00
|
|
|
*)
|
2002-11-01 14:22:35 +01:00
|
|
|
;;
|
2002-11-06 13:36:07 +01:00
|
|
|
esac
|
2002-11-01 14:22:35 +01:00
|
|
|
|
2004-03-26 00:12:50 +01:00
|
|
|
dnl Detect support for ISO syntax for thread-locals
|
|
|
|
AC_CACHE_CHECK([for __thread], firebird_cv_gcc___thread,
|
|
|
|
[cat > conftest.c <<\EOF
|
|
|
|
__thread int a = 42;
|
|
|
|
main() {
|
|
|
|
a = a + 1;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
if AC_TRY_COMMAND([gcc -fPIC -o conftest conftest.c >&AS_MESSAGE_LOG_FD && ./conftest]); then
|
|
|
|
firebird_cv_gcc___thread=yes
|
|
|
|
else
|
|
|
|
firebird_cv_gcc___thread=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*])
|
2002-11-01 14:22:35 +01:00
|
|
|
|
2004-03-26 00:12:50 +01:00
|
|
|
if test "$firebird_cv_gcc___thread" = yes; then
|
|
|
|
AC_DEFINE(HAVE___THREAD, 1, [Define it if compiler supports ISO syntax for thread-local storage])
|
|
|
|
fi
|
|
|
|
|
2002-09-03 15:25:30 +02:00
|
|
|
dnl ##################### DO NOT ADD ANY TESTS BELOW ###########################
|
2002-07-05 17:00:26 +02:00
|
|
|
|
2002-12-31 19:15:18 +01:00
|
|
|
AC_SUBST(SFIO_DIR)
|
|
|
|
AC_SUBST(SFIO_FLAGS)
|
|
|
|
AC_SUBST(SFIO_LDFLAGS)
|
2001-08-15 20:10:36 +02:00
|
|
|
|
2003-03-20 12:11:55 +01:00
|
|
|
dnl The following file defines the version number strings. Specially for install/uninstall routines
|
|
|
|
. ./src/misc/writeBuildNum.sh
|
|
|
|
|
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)
|
2002-10-07 03:29:13 +02:00
|
|
|
AC_SUBST(FB_BUILD_NUM, $BuildNum)
|
2001-08-15 20:10:36 +02:00
|
|
|
|
2002-07-05 17:00:26 +02:00
|
|
|
BUILD_ROOT_DIR=`pwd`
|
|
|
|
SRC_ROOT=$BUILD_ROOT_DIR/src
|
|
|
|
GEN_ROOT=$BUILD_ROOT_DIR/gen
|
|
|
|
NEW_FIREBIRD_DIR=$GEN_ROOT/firebird
|
|
|
|
|
|
|
|
AC_SUBST(BUILD_ROOT_DIR)
|
|
|
|
AC_SUBST(NEW_FIREBIRD_DIR)
|
|
|
|
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_DEFINE_UNQUOTED(FB_PREFIX, $(if test "x$prefix" = "xNONE" ; then echo \"$ac_default_prefix\"; else echo \"$prefix\"; fi), [Installation path prefix])
|
2002-11-12 08:46:32 +01:00
|
|
|
|
2003-03-03 07:02:29 +01:00
|
|
|
AC_CONFIG_COMMANDS(,,[
|
2004-10-18 01:51:11 +02:00
|
|
|
dnl # rebuild version header if needed
|
|
|
|
./src/misc/writeBuildNum.sh rebuildHeader
|
2003-07-08 03:05:22 +02:00
|
|
|
dnl ### GEN ### directories for preprocessed cpp, databases and output
|
2002-09-11 13:30:50 +02:00
|
|
|
mkdir -p gen/alice
|
|
|
|
mkdir -p gen/burp
|
|
|
|
mkdir -p gen/dsql
|
2003-07-08 03:05:22 +02:00
|
|
|
mkdir -p gen/dudley
|
|
|
|
mkdir -p gen/gpre
|
2003-10-27 02:14:44 +01:00
|
|
|
mkdir -p gen/iscguard
|
2003-07-08 03:05:22 +02:00
|
|
|
mkdir -p gen/isql
|
2002-09-11 13:30:50 +02:00
|
|
|
mkdir -p gen/jrd
|
2008-04-11 03:38:50 +02:00
|
|
|
mkdir -p gen/jrd/extds
|
2003-07-08 03:05:22 +02:00
|
|
|
mkdir -p gen/msgs
|
2002-09-11 13:30:50 +02:00
|
|
|
mkdir -p gen/qli
|
|
|
|
mkdir -p gen/utilities
|
2003-07-11 04:28:45 +02:00
|
|
|
mkdir -p gen/examples
|
2002-09-11 13:30:50 +02:00
|
|
|
|
2003-07-08 03:05:22 +02:00
|
|
|
dnl # some .o and .d in this directory (to be removed)
|
2003-07-15 01:29:45 +02:00
|
|
|
mkdir -p gen/remote/os/win32
|
2004-09-15 11:36:50 +02:00
|
|
|
mkdir -p gen/remote/os/sun
|
2002-09-11 13:30:50 +02:00
|
|
|
|
2003-07-08 03:05:22 +02:00
|
|
|
dnl # databases and output
|
|
|
|
mkdir -p gen/refDatabases
|
2002-09-11 13:30:50 +02:00
|
|
|
mkdir -p gen/firebird/include
|
|
|
|
mkdir -p gen/firebird/intl
|
|
|
|
mkdir -p gen/firebird/UDF
|
|
|
|
mkdir -p gen/firebird/bin
|
2003-07-11 04:28:45 +02:00
|
|
|
mkdir -p gen/firebird/examples/api
|
|
|
|
mkdir -p gen/firebird/examples/dyn
|
2005-03-24 12:16:27 +01:00
|
|
|
dnl # mkdir -p gen/firebird/examples/build_unix
|
|
|
|
dnl # mkdir -p gen/firebird/examples/build_win32
|
2003-07-11 04:28:45 +02:00
|
|
|
mkdir -p gen/firebird/examples/empbuild
|
|
|
|
mkdir -p gen/firebird/examples/include
|
|
|
|
mkdir -p gen/firebird/examples/stat
|
|
|
|
mkdir -p gen/firebird/examples/udf
|
2002-09-11 13:30:50 +02:00
|
|
|
mkdir -p gen/firebird/lib
|
|
|
|
mkdir -p gen/firebird/misc
|
|
|
|
mkdir -p gen/firebird/help
|
|
|
|
|
2003-07-08 03:05:22 +02:00
|
|
|
dnl #### TEMP ######### directories for .o and .d
|
|
|
|
dnl # by module name
|
|
|
|
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/boot/alice
|
2007-02-06 13:18:18 +01:00
|
|
|
mkdir -p temp/boot/auth/trusted
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/boot/burp
|
|
|
|
mkdir -p temp/boot/common/classes
|
|
|
|
mkdir -p temp/boot/common/config
|
2005-05-28 00:45:31 +02:00
|
|
|
mkdir -p temp/boot/config
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/boot/dsql
|
|
|
|
mkdir -p temp/boot/dudley
|
|
|
|
mkdir -p temp/boot/extlib
|
|
|
|
mkdir -p temp/boot/extlib/fbudf
|
|
|
|
mkdir -p temp/boot/gpre
|
|
|
|
mkdir -p temp/boot/intl
|
|
|
|
mkdir -p temp/boot/ipserver
|
|
|
|
mkdir -p temp/boot/iscguard
|
|
|
|
mkdir -p temp/boot/isql
|
|
|
|
mkdir -p temp/boot/jrd
|
2008-04-11 03:38:50 +02:00
|
|
|
mkdir -p temp/boot/jrd/extds
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/boot/jrd/os/posix
|
|
|
|
mkdir -p temp/boot/jrd/os/win32
|
2007-03-09 11:32:58 +01:00
|
|
|
mkdir -p temp/boot/jrd/os/darwin
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/boot/lock
|
|
|
|
mkdir -p temp/boot/misc
|
|
|
|
mkdir -p temp/boot/msgs
|
|
|
|
mkdir -p temp/boot/qli
|
|
|
|
mkdir -p temp/boot/remote
|
|
|
|
mkdir -p temp/boot/remote/os/win32
|
2004-09-15 11:36:50 +02:00
|
|
|
mkdir -p temp/boot/remote/os/sun
|
2007-03-09 11:32:58 +01:00
|
|
|
mkdir -p temp/boot/remote/os/darwin
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/boot/utilities/common
|
|
|
|
mkdir -p temp/boot/utilities/gsec
|
|
|
|
mkdir -p temp/boot/utilities/gstat
|
|
|
|
mkdir -p temp/boot/utilities/guard
|
|
|
|
mkdir -p temp/boot/utilities/ibmgr
|
|
|
|
mkdir -p temp/boot/utilities/install
|
|
|
|
mkdir -p temp/boot/utilities/rebuild
|
2005-05-28 00:45:31 +02:00
|
|
|
mkdir -p temp/boot/vulcan
|
2004-05-01 01:03:00 +02:00
|
|
|
|
|
|
|
mkdir -p temp/std/alice
|
2007-02-06 13:18:18 +01:00
|
|
|
mkdir -p temp/std/auth/trusted
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/std/burp
|
|
|
|
mkdir -p temp/std/common/classes
|
|
|
|
mkdir -p temp/std/common/config
|
2005-05-28 00:45:31 +02:00
|
|
|
mkdir -p temp/std/config
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/std/dsql
|
|
|
|
mkdir -p temp/std/dudley
|
|
|
|
mkdir -p temp/std/extlib
|
|
|
|
mkdir -p temp/std/extlib/fbudf
|
|
|
|
mkdir -p temp/std/gpre
|
|
|
|
mkdir -p temp/std/intl
|
|
|
|
mkdir -p temp/std/ipserver
|
|
|
|
mkdir -p temp/std/iscguard
|
|
|
|
mkdir -p temp/std/isql
|
|
|
|
mkdir -p temp/std/jrd
|
2008-04-11 03:38:50 +02:00
|
|
|
mkdir -p temp/std/jrd/extds
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/std/jrd/os/posix
|
|
|
|
mkdir -p temp/std/jrd/os/win32
|
2007-03-09 11:32:58 +01:00
|
|
|
mkdir -p temp/std/jrd/os/darwin
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/std/lock
|
|
|
|
mkdir -p temp/std/misc
|
|
|
|
mkdir -p temp/std/msgs
|
|
|
|
mkdir -p temp/std/qli
|
|
|
|
mkdir -p temp/std/remote
|
|
|
|
mkdir -p temp/std/remote/os/win32
|
2004-09-15 11:36:50 +02:00
|
|
|
mkdir -p temp/std/remote/os/sun
|
2007-03-09 11:32:58 +01:00
|
|
|
mkdir -p temp/std/remote/os/darwin
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/std/utilities/common
|
|
|
|
mkdir -p temp/std/utilities/gsec
|
|
|
|
mkdir -p temp/std/utilities/gstat
|
|
|
|
mkdir -p temp/std/utilities/guard
|
|
|
|
mkdir -p temp/std/utilities/ibmgr
|
|
|
|
mkdir -p temp/std/utilities/install
|
|
|
|
mkdir -p temp/std/utilities/rebuild
|
2005-05-28 00:45:31 +02:00
|
|
|
mkdir -p temp/std/vulcan
|
2004-05-01 01:03:00 +02:00
|
|
|
|
|
|
|
mkdir -p temp/superclient/alice
|
2007-02-06 13:18:18 +01:00
|
|
|
mkdir -p temp/superclient/auth/trusted
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/superclient/burp
|
|
|
|
mkdir -p temp/superclient/common/classes
|
|
|
|
mkdir -p temp/superclient/common/config
|
2005-05-28 00:45:31 +02:00
|
|
|
mkdir -p temp/superclient/config
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/superclient/dsql
|
|
|
|
mkdir -p temp/superclient/dudley
|
|
|
|
mkdir -p temp/superclient/extlib
|
|
|
|
mkdir -p temp/superclient/extlib/fbudf
|
|
|
|
mkdir -p temp/superclient/gpre
|
|
|
|
mkdir -p temp/superclient/intl
|
|
|
|
mkdir -p temp/superclient/ipserver
|
|
|
|
mkdir -p temp/superclient/iscguard
|
|
|
|
mkdir -p temp/superclient/isql
|
|
|
|
mkdir -p temp/superclient/jrd
|
2008-04-11 03:38:50 +02:00
|
|
|
mkdir -p temp/superclient/jrd/extds
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/superclient/jrd/os/posix
|
|
|
|
mkdir -p temp/superclient/jrd/os/win32
|
2007-03-09 11:32:58 +01:00
|
|
|
mkdir -p temp/superclient/jrd/os/darwin
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/superclient/lock
|
|
|
|
mkdir -p temp/superclient/misc
|
|
|
|
mkdir -p temp/superclient/msgs
|
|
|
|
mkdir -p temp/superclient/qli
|
|
|
|
mkdir -p temp/superclient/remote
|
|
|
|
mkdir -p temp/superclient/remote/os/win32
|
2004-09-15 11:36:50 +02:00
|
|
|
mkdir -p temp/superclient/remote/os/sun
|
2007-03-09 11:32:58 +01:00
|
|
|
mkdir -p temp/superclient/remote/os/darwin
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/superclient/utilities/common
|
|
|
|
mkdir -p temp/superclient/utilities/gsec
|
|
|
|
mkdir -p temp/superclient/utilities/gstat
|
|
|
|
mkdir -p temp/superclient/utilities/guard
|
|
|
|
mkdir -p temp/superclient/utilities/ibmgr
|
|
|
|
mkdir -p temp/superclient/utilities/install
|
|
|
|
mkdir -p temp/superclient/utilities/rebuild
|
2005-05-28 00:45:31 +02:00
|
|
|
mkdir -p temp/superclient/vulcan
|
2004-05-01 01:03:00 +02:00
|
|
|
|
|
|
|
mkdir -p temp/superserver/alice
|
2007-02-06 13:18:18 +01:00
|
|
|
mkdir -p temp/superserver/auth/trusted
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/superserver/burp
|
|
|
|
mkdir -p temp/superserver/common/classes
|
|
|
|
mkdir -p temp/superserver/common/config
|
2005-05-28 00:45:31 +02:00
|
|
|
mkdir -p temp/superserver/config
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/superserver/dsql
|
|
|
|
mkdir -p temp/superserver/dudley
|
|
|
|
mkdir -p temp/superserver/extlib
|
|
|
|
mkdir -p temp/superserver/extlib/fbudf
|
|
|
|
mkdir -p temp/superserver/gpre
|
|
|
|
mkdir -p temp/superserver/intl
|
|
|
|
mkdir -p temp/superserver/ipserver
|
|
|
|
mkdir -p temp/superserver/iscguard
|
|
|
|
mkdir -p temp/superserver/isql
|
|
|
|
mkdir -p temp/superserver/jrd
|
2008-04-11 03:38:50 +02:00
|
|
|
mkdir -p temp/superserver/jrd/extds
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/superserver/jrd/os/posix
|
|
|
|
mkdir -p temp/superserver/jrd/os/win32
|
2007-03-09 11:32:58 +01:00
|
|
|
mkdir -p temp/superserver/jrd/os/darwin
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/superserver/lock
|
|
|
|
mkdir -p temp/superserver/misc
|
|
|
|
mkdir -p temp/superserver/msgs
|
|
|
|
mkdir -p temp/superserver/qli
|
|
|
|
mkdir -p temp/superserver/remote
|
|
|
|
mkdir -p temp/superserver/remote/os/win32
|
2004-09-15 11:36:50 +02:00
|
|
|
mkdir -p temp/superserver/remote/os/sun
|
2007-03-09 11:32:58 +01:00
|
|
|
mkdir -p temp/superserver/remote/os/darwin
|
2004-05-01 01:03:00 +02:00
|
|
|
mkdir -p temp/superserver/utilities/common
|
|
|
|
mkdir -p temp/superserver/utilities/gsec
|
|
|
|
mkdir -p temp/superserver/utilities/gstat
|
|
|
|
mkdir -p temp/superserver/utilities/guard
|
|
|
|
mkdir -p temp/superserver/utilities/ibmgr
|
|
|
|
mkdir -p temp/superserver/utilities/install
|
|
|
|
mkdir -p temp/superserver/utilities/rebuild
|
2005-05-28 00:45:31 +02:00
|
|
|
mkdir -p temp/superserver/vulcan
|
2004-05-01 01:03:00 +02:00
|
|
|
|
2002-09-11 13:30:50 +02:00
|
|
|
])
|
2002-07-29 17:43:24 +02:00
|
|
|
|
2002-11-11 06:54:24 +01:00
|
|
|
|
2002-11-12 08:46:32 +01:00
|
|
|
MAKE_SRC_DIR=builds/posix
|
2002-11-11 06:54:24 +01:00
|
|
|
|
|
|
|
|
2002-11-12 08:46:32 +01:00
|
|
|
dnl EKU: handle platform specific installation and packaging
|
2008-01-07 13:26:23 +01:00
|
|
|
dnl: Common Files
|
|
|
|
case "$PLATFORM" in
|
|
|
|
[LINUX|GENTOOFREEBSD|HPUX])
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
gen/install/misc/firebird.conf:builds/install/misc/firebird.conf
|
|
|
|
gen/install/misc/aliases.conf:builds/install/misc/aliases.conf.in
|
|
|
|
gen/install/misc/fbintl.conf:builds/install/misc/fbintl.conf
|
|
|
|
gen/firebird/bin/fb_config:builds/install/misc/fb_config.in
|
|
|
|
gen/firebird/bin/posixLibrary.sh:builds/install/misc/posixLibrary.sh.in
|
|
|
|
gen/firebird/bin/classicLibrary.sh:builds/install/misc/classicLibrary.sh.in
|
|
|
|
gen/firebird/bin/superLibrary.sh:builds/install/misc/superLibrary.sh.in
|
|
|
|
gen/firebird/bin/changeRunUser.sh:builds/install/misc/changeRunUser.sh.in
|
|
|
|
gen/firebird/bin/restoreRootRunUser.sh:builds/install/misc/restoreRootRunUser.sh.in],
|
|
|
|
[chmod a+x gen/install/scripts/*.sh gen/install/*sh 2>/dev/null])
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
dnl: Platform Specific Files
|
2002-11-11 06:54:24 +01:00
|
|
|
|
2002-11-22 15:11:28 +01:00
|
|
|
case "$PLATFORM" in
|
2006-12-08 19:32:09 +01:00
|
|
|
LINUX|GENTOOFREEBSD)
|
2003-03-03 07:02:29 +01:00
|
|
|
AC_CONFIG_COMMANDS(,,[
|
|
|
|
mkdir -p gen/install/scripts
|
2003-10-30 08:26:28 +01:00
|
|
|
mkdir -p gen/install/misc
|
|
|
|
mkdir -p gen/RPM/RPMS/i686
|
|
|
|
mkdir -p gen/RPM/BUILD])
|
|
|
|
|
2003-07-09 03:20:17 +02:00
|
|
|
INSTALL_SRC_DIR=builds/install/arch-specific/linux/${FIREBIRD_ARCH_TYPE}
|
2002-11-30 16:08:09 +01:00
|
|
|
AC_CONFIG_FILES([gen/install/makeInstallImage.sh:${INSTALL_SRC_DIR}/makeInstallImage.sh.in
|
2005-04-29 20:24:44 +02:00
|
|
|
gen/firebird/bin/tarMainInstall.sh:${INSTALL_SRC_DIR}/tarMainInstall.sh.in
|
|
|
|
gen/firebird/bin/tarinstall.sh:${INSTALL_SRC_DIR}/tarinstall.sh.in
|
|
|
|
gen/firebird/bin/preinstall.sh:${INSTALL_SRC_DIR}/preinstall.sh.in
|
|
|
|
gen/firebird/bin/postinstall.sh:${INSTALL_SRC_DIR}/postinstall.sh.in
|
|
|
|
gen/firebird/bin/preuninstall.sh:${INSTALL_SRC_DIR}/preuninstall.sh.in
|
|
|
|
gen/firebird/bin/postuninstall.sh:${INSTALL_SRC_DIR}/postuninstall.sh.in
|
|
|
|
gen/firebird/bin/taruninstall.sh:${INSTALL_SRC_DIR}/taruninstall.sh.in
|
|
|
|
gen/firebird/bin/tarMainUninstall.sh:${INSTALL_SRC_DIR}/tarMainUninstall.sh.in
|
2002-11-30 16:08:09 +01:00
|
|
|
gen/install/scripts/rpmheader.txt:${INSTALL_SRC_DIR}/rpmheader.txt.in
|
|
|
|
gen/install/scripts/rpmfiles.txt:${INSTALL_SRC_DIR}/rpmfiles.txt.in
|
2005-04-29 20:24:44 +02:00
|
|
|
gen/install/misc/firebird.xinetd:builds/install/arch-specific/linux/misc/firebird.xinetd.in
|
|
|
|
gen/install/misc/firebird.init.d.generic:builds/install/arch-specific/linux/misc/firebird.init.d.generic.in
|
|
|
|
gen/install/misc/firebird.init.d.mandrake:builds/install/arch-specific/linux/misc/firebird.init.d.mandrake.in
|
|
|
|
gen/install/misc/firebird.init.d.suse:builds/install/arch-specific/linux/misc/firebird.init.d.suse.in
|
|
|
|
gen/install/misc/firebird.init.d.debian:builds/install/arch-specific/linux/misc/firebird.init.d.debian.in
|
|
|
|
gen/install/misc/firebird.init.d.gentoo:builds/install/arch-specific/linux/misc/firebird.init.d.gentoo.in
|
2006-04-25 19:06:09 +02:00
|
|
|
gen/install/misc/firebird.init.d.slackware:builds/install/arch-specific/linux/misc/firebird.init.d.slackware.in
|
2005-04-29 20:24:44 +02:00
|
|
|
gen/install/misc/rc.config.firebird:builds/install/arch-specific/linux/misc/rc.config.firebird.in
|
|
|
|
gen/firebird/bin/changeDBAPassword.sh:builds/install/misc/changeDBAPassword.sh.in
|
|
|
|
gen/firebird/bin/changeGdsLibraryCompatibleLink.sh:builds/install/misc/changeGdsLibraryCompatibleLink.sh.in
|
|
|
|
gen/firebird/bin/createAliasDB.sh:builds/install/misc/createAliasDB.sh.in
|
|
|
|
gen/firebird/bin/linuxLibrary.sh:builds/install/arch-specific/linux/misc/linuxLibrary.sh.in
|
|
|
|
gen/firebird/bin/superLinux.sh:builds/install/arch-specific/linux/misc/superLinux.sh.in
|
2002-11-30 16:08:09 +01:00
|
|
|
],[chmod a+x gen/install/scripts/*.sh gen/install/*sh 2>/dev/null])
|
2002-11-12 08:46:32 +01:00
|
|
|
;;
|
2002-07-29 17:43:24 +02:00
|
|
|
|
2008-01-07 13:26:23 +01:00
|
|
|
HPUX)
|
|
|
|
HP_INSTALL_SRC_DIR=builds/install/arch-specific/hpux/${FIREBIRD_ARCH_TYPE}
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
gen/install/makeinstallImage.sh:${HP_INSTALL_SRC_DIR}/makeinstallImage.sh.in
|
2008-01-10 12:26:58 +01:00
|
|
|
gen/firebirdCS.psf:${HP_INSTALL_SRC_DIR}/firebirdCS.psf.in
|
2008-01-07 13:26:23 +01:00
|
|
|
gen/firebird/bin/preInstall.sh:${HP_INSTALL_SRC_DIR}/preInstall.sh.in
|
|
|
|
gen/firebird/bin/tarInstall.sh:${HP_INSTALL_SRC_DIR}/tarInstall.sh.in
|
|
|
|
gen/firebird/bin/tarmainInstall.sh:${HP_INSTALL_SRC_DIR}/tarmainInstall.sh.in
|
|
|
|
gen/firebird/bin/tarUninstall.sh:${HP_INSTALL_SRC_DIR}/tarUninstall.sh.in
|
|
|
|
gen/firebird/bin/tarmainUninstall.sh:${HP_INSTALL_SRC_DIR}/tarmainUninstall.sh.in
|
|
|
|
gen/firebird/bin/postInstall.sh:${HP_INSTALL_SRC_DIR}/postInstall.sh.in
|
|
|
|
gen/firebird/bin/preUninstall.sh:${HP_INSTALL_SRC_DIR}/preUninstall.sh.in
|
|
|
|
gen/firebird/bin/postUninstall.sh:${HP_INSTALL_SRC_DIR}/postUninstall.sh.in
|
|
|
|
gen/install/misc/firebird.init.d.hpux:builds/install/arch-specific/hpux/misc/firebird.init.d.hpux.in
|
|
|
|
gen/install/misc/rc.config.firebird.hpux:builds/install/arch-specific/hpux/misc/rc.config.firebird.hpux.in
|
|
|
|
gen/firebird/bin/changedbaPassword.sh:builds/install/arch-specific/hpux/misc/changedbaPassword.sh.in
|
|
|
|
gen/firebird/bin/changegdslibrarycompatibleLink.sh:builds/install/arch-specific/hpux/misc/changegdslibrarycompatibleLink.sh.in
|
|
|
|
gen/firebird/bin/hpuxLibrary.sh:builds/install/arch-specific/hpux/misc/hpuxLibrary.sh.in
|
|
|
|
gen/firebird/bin/createaliasDB.sh:builds/install/arch-specific/hpux/misc/createaliasDB.sh.in],
|
|
|
|
[chmod a+x gen/install/scripts/*.sh gen/install/*.sh 2>/dev/null])
|
|
|
|
;;
|
2003-10-27 19:42:47 +01:00
|
|
|
|
2003-11-06 10:25:44 +01:00
|
|
|
FREEBSD)
|
2003-11-06 10:31:56 +01:00
|
|
|
AC_CONFIG_FILES([gen/install/install.sh:builds/install/arch-specific/freebsd/install.sh.in
|
2003-11-06 10:25:44 +01:00
|
|
|
],[chmod a+x gen/install/install.sh 2>/dev/null])
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
2004-05-21 01:05:02 +02:00
|
|
|
NETBSD)
|
|
|
|
AC_CONFIG_FILES([gen/install/install.netbsd.sh:builds/install/arch-specific/netbsd/install.sh.in
|
|
|
|
],[chmod a+x gen/install/install.netbsd.sh 2>/dev/null])
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
2002-11-12 08:46:32 +01:00
|
|
|
SINIX-Z)
|
2003-07-09 03:20:17 +02:00
|
|
|
AC_CONFIG_FILES([gen/install/pkginfo:builds/install/arch-specific/sinixz/pkginfo.in
|
|
|
|
gen/install/prototype:builds/install/arch-specific/sinixz/prototype.in
|
|
|
|
gen/install/preinstall:builds/install/arch-specific/sinixz/preinstall.in
|
|
|
|
gen/install/postinstall:builds/install/arch-specific/sinixz/postinstall.in
|
|
|
|
gen/install/postremove:builds/install/arch-specific/sinixz/postremove.in
|
2002-11-30 16:08:09 +01:00
|
|
|
],[chmod a+x gen/install/pre* gen/install/post* 2>/dev/null])
|
2002-11-12 08:46:32 +01:00
|
|
|
;;
|
2004-08-19 15:51:15 +02:00
|
|
|
|
2006-03-09 14:26:47 +01:00
|
|
|
solx86|SOLARIS)
|
2007-08-31 10:51:52 +02:00
|
|
|
AC_CONFIG_FILES([gen/install/Pkginfo:builds/install/arch-specific/solaris/${ARCH_TYPE_SUFFIX}/pkginfo.in
|
|
|
|
gen/install/Prototype:builds/install/arch-specific/solaris/${ARCH_TYPE_SUFFIX}/prototype.in
|
|
|
|
gen/install/Preinstall:builds/install/arch-specific/solaris/${ARCH_TYPE_SUFFIX}/preinstall.in
|
|
|
|
gen/install/Postinstall:builds/install/arch-specific/solaris/${ARCH_TYPE_SUFFIX}/postinstall.in
|
|
|
|
gen/install/Postremove:builds/install/arch-specific/solaris/${ARCH_TYPE_SUFFIX}/postremove.in
|
|
|
|
gen/install/prototypelg:builds/install/arch-specific/solaris/libgcc/prototypelg.in
|
|
|
|
gen/install/pkginfolg:builds/install/arch-specific/solaris/libgcc/pkginfolg.in
|
2004-08-19 15:51:15 +02:00
|
|
|
],[chmod a+x gen/install/Pre* gen/install/Post* 2>/dev/null])
|
|
|
|
;;
|
2005-03-11 16:00:03 +01:00
|
|
|
|
2007-03-09 11:32:58 +01:00
|
|
|
DARWIN)
|
|
|
|
;;
|
2002-11-12 08:46:32 +01:00
|
|
|
esac
|
2007-12-19 14:25:49 +01:00
|
|
|
if test -f ${MAKE_SRC_DIR}/postfix.${MAKEFILE_POSTFIX};then
|
|
|
|
POSTFIX_FILE=gen/make.platform.postfix:${MAKE_SRC_DIR}/postfix.${MAKEFILE_POSTFIX}
|
2007-03-09 11:32:58 +01:00
|
|
|
POSTFIX_INCLUDE='include $(ROOT)/gen/make.platform.postfix'
|
|
|
|
else
|
|
|
|
POSTFIX_FILE=
|
|
|
|
POSTFIX_INCLUDE=
|
|
|
|
fi
|
|
|
|
AC_SUBST(POSTFIX_INCLUDE)
|
2002-11-05 17:49:05 +01:00
|
|
|
|
2002-09-20 20:58:53 +02:00
|
|
|
|
2003-10-30 08:26:28 +01:00
|
|
|
AC_CONFIG_FILES(
|
2002-09-03 15:25:30 +02:00
|
|
|
gen/make.rules:${MAKE_SRC_DIR}/make.rules
|
|
|
|
gen/make.defaults:${MAKE_SRC_DIR}/make.defaults
|
|
|
|
gen/make.platform:${MAKE_SRC_DIR}/prefix.${MAKEFILE_PREFIX}
|
2007-03-09 11:32:58 +01:00
|
|
|
${POSTFIX_FILE}
|
2002-09-03 15:25:30 +02:00
|
|
|
gen/make.shared.variables:${MAKE_SRC_DIR}/make.shared.variables
|
2002-10-07 03:29:13 +02:00
|
|
|
gen/make.shared.targets:${MAKE_SRC_DIR}/make.shared.targets
|
2003-07-08 14:24:12 +02:00
|
|
|
gen/Makefile:${MAKE_SRC_DIR}/Makefile.in.firebird
|
2002-10-29 21:20:44 +01:00
|
|
|
gen/Makefile.codes:${MAKE_SRC_DIR}/Makefile.in.codes
|
2002-09-03 15:25:30 +02:00
|
|
|
gen/Makefile.boot.gpre:${MAKE_SRC_DIR}/Makefile.in.boot.gpre
|
|
|
|
gen/Makefile.libfbstatic:${MAKE_SRC_DIR}/Makefile.in.libfbstatic
|
|
|
|
gen/Makefile.static.gpre:${MAKE_SRC_DIR}/Makefile.in.static.gpre
|
|
|
|
gen/Makefile.static.gbak:${MAKE_SRC_DIR}/Makefile.in.static.gbak
|
|
|
|
gen/Makefile.static.isql:${MAKE_SRC_DIR}/Makefile.in.static.isql
|
|
|
|
gen/Makefile.refDatabases:${MAKE_SRC_DIR}/Makefile.in.refDatabases
|
|
|
|
gen/Makefile.fbserver:${MAKE_SRC_DIR}/Makefile.in.fbserver
|
2008-02-28 19:42:30 +01:00
|
|
|
gen/Makefile.smp_server:${MAKE_SRC_DIR}/Makefile.in.smp_server
|
2002-09-03 15:25:30 +02:00
|
|
|
gen/Makefile.libfbclient:${MAKE_SRC_DIR}/Makefile.in.libfbclient
|
2003-09-30 19:48:55 +02:00
|
|
|
gen/Makefile.client.fbudf:${MAKE_SRC_DIR}/Makefile.in.client.fbudf
|
2002-09-03 15:25:30 +02:00
|
|
|
gen/Makefile.client.gbak:${MAKE_SRC_DIR}/Makefile.in.client.gbak
|
|
|
|
gen/Makefile.client.gfix:${MAKE_SRC_DIR}/Makefile.in.client.gfix
|
2002-10-07 03:29:13 +02:00
|
|
|
gen/Makefile.client.gdef:${MAKE_SRC_DIR}/Makefile.in.client.gdef
|
2003-10-20 03:45:06 +02:00
|
|
|
gen/Makefile.client.qli:${MAKE_SRC_DIR}/Makefile.in.client.qli
|
2002-09-03 15:25:30 +02:00
|
|
|
gen/Makefile.client.isql:${MAKE_SRC_DIR}/Makefile.in.client.isql
|
|
|
|
gen/Makefile.client.gpre:${MAKE_SRC_DIR}/Makefile.in.client.gpre
|
|
|
|
gen/Makefile.client.util:${MAKE_SRC_DIR}/Makefile.in.client.util
|
2004-11-07 14:43:43 +01:00
|
|
|
gen/Makefile.client.gsec:${MAKE_SRC_DIR}/Makefile.in.client.gsec
|
2002-09-03 15:25:30 +02:00
|
|
|
gen/Makefile.intl:${MAKE_SRC_DIR}/Makefile.in.intl
|
|
|
|
gen/Makefile.msgs:${MAKE_SRC_DIR}/Makefile.in.msgs
|
|
|
|
gen/Makefile.extlib:${MAKE_SRC_DIR}/Makefile.in.extlib
|
2003-08-04 01:18:57 +02:00
|
|
|
gen/examples/Makefile.examples:${MAKE_SRC_DIR}/Makefile.in.examples
|
2002-09-03 15:25:30 +02:00
|
|
|
gen/Makefile.libfbembed:${MAKE_SRC_DIR}/Makefile.in.libfbembed
|
|
|
|
gen/Makefile.inet_server:${MAKE_SRC_DIR}/Makefile.in.inet_server
|
|
|
|
gen/Makefile.embed.util:${MAKE_SRC_DIR}/Makefile.in.embed.util
|
2003-09-30 19:48:55 +02:00
|
|
|
gen/Makefile.embed.fbudf:${MAKE_SRC_DIR}/Makefile.in.embed.fbudf
|
2002-09-03 15:25:30 +02:00
|
|
|
gen/Makefile.embed.gfix:${MAKE_SRC_DIR}/Makefile.in.embed.gfix
|
|
|
|
gen/Makefile.embed.gbak:${MAKE_SRC_DIR}/Makefile.in.embed.gbak
|
|
|
|
gen/Makefile.embed.isql:${MAKE_SRC_DIR}/Makefile.in.embed.isql
|
|
|
|
gen/Makefile.embed.gdef:${MAKE_SRC_DIR}/Makefile.in.embed.gdef
|
|
|
|
gen/Makefile.embed.qli:${MAKE_SRC_DIR}/Makefile.in.embed.qli
|
|
|
|
gen/Makefile.embed.gpre:${MAKE_SRC_DIR}/Makefile.in.embed.gpre
|
2004-01-12 05:58:09 +01:00
|
|
|
gen/Makefile.install:builds/install/arch-specific/${INSTALL_PREFIX}/Makefile.in
|
2002-09-03 15:25:30 +02:00
|
|
|
Makefile:Makefile.in
|
2001-07-31 10:42:21 +02:00
|
|
|
)
|
2007-04-03 10:25:55 +02:00
|
|
|
if test "$STD_EDITLINE" = "false"; then
|
|
|
|
AC_CONFIG_FILES(gen/Makefile.extern.editline:${MAKE_SRC_DIR}/Makefile.in.extern.editline)
|
|
|
|
fi
|
|
|
|
if test "$STD_ICU" = "false"; then
|
|
|
|
AC_CONFIG_FILES(gen/Makefile.extern.icu:${MAKE_SRC_DIR}/Makefile.in.extern.icu)
|
|
|
|
fi
|
2002-11-12 08:46:32 +01:00
|
|
|
|
2005-08-09 08:51:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
if test "$PROD_BUILD_FLG" = N; then
|
|
|
|
DEBUG_ICU=--enable-debug
|
|
|
|
fi
|
|
|
|
|
2007-04-03 10:25:55 +02:00
|
|
|
if test "$STD_ICU" = "true"; then
|
|
|
|
AC_OUTPUT
|
|
|
|
else
|
2005-08-09 08:51:25 +02:00
|
|
|
AC_OUTPUT
|
2005-06-07 07:09:42 +02:00
|
|
|
(cd extern/icu/source
|
|
|
|
chmod +x runConfigureICU configure install-sh
|
2005-08-09 08:51:25 +02:00
|
|
|
./runConfigureICU "$ICU_PLATFORM" "$DEBUG_ICU" --prefix=`pwd`/..)
|
2007-04-03 10:25:55 +02:00
|
|
|
fi
|
2005-06-07 07:09:42 +02:00
|
|
|
|
2002-09-03 15:25:30 +02:00
|
|
|
dnl Print out the build configuration (the most interesting thing)
|
2002-08-14 14:13:20 +02:00
|
|
|
echo
|
2005-08-09 08:51:25 +02:00
|
|
|
echo
|
2002-08-14 14:13:20 +02:00
|
|
|
echo The Firebird2 package has been configured with the following options:
|
2002-08-14 14:15:23 +02:00
|
|
|
echo
|
2002-08-14 14:13:20 +02:00
|
|
|
|
|
|
|
case $FIREBIRD_ARCH_TYPE in
|
2005-08-04 12:36:45 +02:00
|
|
|
super) echo " Architecture : SuperServer";;
|
|
|
|
classic) echo " Architecture : ClassicServer";;
|
2002-08-14 14:13:20 +02:00
|
|
|
esac
|
|
|
|
|
|
|
|
case $PROD_BUILD_FLG in
|
2005-08-04 12:36:45 +02:00
|
|
|
Y) echo " Debug : disabled";;
|
|
|
|
N) echo " Debug : enabled";;
|
2002-08-22 09:56:28 +02:00
|
|
|
esac
|
|
|
|
|
2002-09-18 14:50:13 +02:00
|
|
|
case $ac_cv_sys_file_offset_bits in
|
2005-08-04 12:36:45 +02:00
|
|
|
no) echo "64 bit I/O for 32-bit platforms : disabled";;
|
|
|
|
64) echo "64 bit I/O for 32-bit platforms : enabled";;
|
2002-08-14 14:13:20 +02:00
|
|
|
esac
|
|
|
|
|
2002-10-01 07:48:00 +02:00
|
|
|
case $RAW_DEVICES_FLG in
|
2005-08-04 12:36:45 +02:00
|
|
|
Y) echo " Raw devices : enabled";;
|
|
|
|
N) echo " Raw devices : disabled";;
|
2002-10-01 07:48:00 +02:00
|
|
|
esac
|
|
|
|
|
2002-09-03 15:25:30 +02:00
|
|
|
if test "$FIREBIRD_ARCH_TYPE" = "classic"; then
|
2002-11-14 09:18:10 +01:00
|
|
|
case $LOCK_MANAGER_FLG in
|
2005-08-04 12:36:45 +02:00
|
|
|
Y) echo " Lock manager : enabled";;
|
|
|
|
N) echo " Lock manager : disabled";;
|
2002-09-03 15:25:30 +02:00
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2005-08-04 12:36:45 +02:00
|
|
|
echo " Service name : $FB_SERVICE_NAME"
|
|
|
|
echo " Service port : $FB_SERVICE_PORT"
|
2002-12-02 12:17:04 +01:00
|
|
|
|
|
|
|
case "$PLATFORM" in
|
2005-08-04 12:36:45 +02:00
|
|
|
win32) echo " Pipe name : $FB_PIPE_NAME";;
|
2002-12-02 12:17:04 +01:00
|
|
|
esac
|
|
|
|
|
2005-08-04 12:36:45 +02:00
|
|
|
echo " GPRE modules : c_cxx.cpp$GPRE_LANGUAGE_MODULES"
|
2002-12-02 12:17:04 +01:00
|
|
|
echo
|
|
|
|
|
2005-08-04 12:36:45 +02:00
|
|
|
echo " Install Dir : $prefix"
|
2002-08-14 14:13:20 +02:00
|
|
|
echo
|
|
|
|
|
2002-09-03 15:25:30 +02:00
|
|
|
dnl EOF
|