mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:03:03 +01:00
Use autoheader to generate config.h.in.
This commit is contained in:
parent
9e141447c1
commit
9b2754e333
@ -2,7 +2,7 @@
|
||||
#
|
||||
# Run this to generate all the initial makefiles, etc.
|
||||
#
|
||||
# $Id: autogen.sh,v 1.8 2003-04-17 18:41:28 bellardo Exp $
|
||||
# $Id: autogen.sh,v 1.9 2003-10-30 07:26:27 eku Exp $
|
||||
|
||||
PKG_NAME=Firebird2
|
||||
SRCDIR=`dirname $0`
|
||||
@ -11,9 +11,9 @@ DIE=0
|
||||
VER=`autoconf --version|grep '^[Aa]utoconf'|sed 's/^[^0-9]*//'`
|
||||
case "$VER" in
|
||||
0* | 1\.* | 2\.[0-9] | 2\.[0-9][a-z]* | \
|
||||
2\.[1-4][0-9] | 2\.5[0-2][a-z]* )
|
||||
2\.[1-4][0-9] | 2\.5[0-6][a-z]* )
|
||||
echo
|
||||
echo "**Error**: You must have autoconf 2.53 or later installed."
|
||||
echo "**Error**: You must have autoconf 2.57 or later installed."
|
||||
echo "Download the appropriate package for your distribution/OS,"
|
||||
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/"
|
||||
DIE=1
|
||||
@ -57,6 +57,9 @@ if test "x$LIBTOOL_M4" != "x"; then
|
||||
fi
|
||||
libtoolize --copy --force || exit 1
|
||||
|
||||
echo "Running autoheader ..."
|
||||
autoheader || exit 1
|
||||
|
||||
echo "Running autoconf ..."
|
||||
autoconf || exit 1
|
||||
|
||||
|
@ -1,197 +0,0 @@
|
||||
#ident "$Id: config.h.in,v 1.3 2003-10-14 13:10:00 eku Exp $"
|
||||
|
||||
/*
|
||||
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete ports:
|
||||
* - MAC ("MAC", "MAC_AUX" and "MAC_CP" defines)
|
||||
* - EPSON, DELTA, IMP, NCR3000, NeXT, M88K
|
||||
* - Cray, OS/2 and Apollo
|
||||
*
|
||||
* 2002-02-24 Sean Leyne - Code Cleanup of old Win 3.1 port (WINDOWS_ONLY)
|
||||
*
|
||||
* 2002.10.28 Sean Leyne - Code cleanup, removed obsolete "SGI" port
|
||||
*
|
||||
* 2002.10.30 Sean Leyne - Removed support for obsolete "PC_PLATFORM" define
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef AUTOCONFIG_H
|
||||
#define AUTOCONFIG_H
|
||||
|
||||
|
||||
/* Headers */
|
||||
#undef HAVE_ASSERT_H
|
||||
#undef HAVE_CTYPE_H
|
||||
#undef HAVE_ERRNO_H
|
||||
#undef HAVE_EDITLINE_H
|
||||
#undef HAVE_FCNTL_H
|
||||
#undef HAVE_GRP_H
|
||||
#undef HAVE_PWD_H
|
||||
#undef HAVE_LIBIO_H
|
||||
#undef HAVE_LOCALE_H
|
||||
#undef HAVE_MATH_H
|
||||
#undef HAVE_PTHREAD_H
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
#undef HAVE_SYS_STAT_H
|
||||
#undef HAVE_SYS_UIO_H
|
||||
#undef HAVE_SYS_WAIT_H
|
||||
#undef TIME_WITH_SYS_TIME
|
||||
#undef HAVE_TIME_H
|
||||
#undef HAVE_SYS_TIME_H
|
||||
#undef HAVE_SYS_TIMEB_H
|
||||
#undef HAVE_SYS_PARAM_H
|
||||
#undef HAVE_SYS_IOCTL_H
|
||||
#undef HAVE_SYS_SEM_H
|
||||
#undef HAVE_SETJMP_H
|
||||
#undef HAVE_STDARG_H
|
||||
#undef HAVE_STDLIB_H
|
||||
#undef HAVE_STRING_H
|
||||
#undef HAVE_SIGNAL_H
|
||||
#undef HAVE_SYS_SIGNAL_H
|
||||
#undef HAVE_SYS_SIGINFO_H
|
||||
#undef HAVE_TERMIO_H
|
||||
#undef HAVE_TERMIOS_H
|
||||
#undef HAVE_DIRENT_H
|
||||
#undef HAVE_SYS_NDIR_H
|
||||
#undef HAVE_SYS_DIR_H
|
||||
#undef HAVE_NDIR_H
|
||||
#undef HAVE_UNISTD_H
|
||||
#undef HAVE_VARARGS_H
|
||||
#undef HAVE_VFORK_H
|
||||
#undef HAVE_CRYPT_H
|
||||
#undef HAVE_NETCONFIG_H
|
||||
#undef HAVE_NETINET_IN_H
|
||||
#undef HAVE_RPC_RPC_H
|
||||
#undef HAVE_RPC_XDR_H
|
||||
#undef HAVE_AIO_H
|
||||
#undef HAVE_MNTENT_H
|
||||
#undef HAVE_MNTTAB_H
|
||||
#undef HAVE_SYS_MNTENT_H
|
||||
#undef HAVE_SYS_MNTTAB_H
|
||||
#undef HAVE_SYS_IPC_H
|
||||
#undef HAVE_SYS_FILE_H
|
||||
#undef HAVE_SOCKET_H
|
||||
#undef HAVE_SYS_SOCKET_H
|
||||
#undef HAVE_SYS_SOCKIO_H
|
||||
#undef HAVE_WINSOCK2_H
|
||||
|
||||
|
||||
/* Functions */
|
||||
#undef HAVE_STRLCPY
|
||||
#undef HAVE_STRLCAT
|
||||
#undef HAVE_GETTIMEOFDAY
|
||||
#undef HAVE_TIME
|
||||
#undef HAVE_TIMES
|
||||
#undef HAVE_STRCASECMP
|
||||
#undef HAVE_STRICMP
|
||||
#undef HAVE_DIRNAME
|
||||
#undef HAVE_SIGACTION
|
||||
#undef HAVE_SETITIMER
|
||||
#undef HAVE_SNPRINTF
|
||||
#undef HAVE_VSNPRINTF
|
||||
#undef HAVE_SWAB
|
||||
#undef HAVE__SWAB
|
||||
#undef HAVE_MMAP
|
||||
#undef HAVE_WORKING_VFORK
|
||||
#undef HAVE_SETPGRP
|
||||
#undef HAVE_SETPGID
|
||||
#undef HAVE_GETPGRP
|
||||
#undef SETPGRP_VOID
|
||||
#undef HAVE_FLOCK
|
||||
#undef HAVE_INITGROUPS
|
||||
#undef HAVE_GETPAGESIZE
|
||||
#undef HAVE_CRYPT
|
||||
#undef HAVE_XDR_HYPER
|
||||
#undef HAVE_PREAD
|
||||
#undef HAVE_PWRITE
|
||||
#undef HAVE_GETCWD
|
||||
#undef HAVE_GETWD
|
||||
#undef HAVE_SETMNTENT
|
||||
#undef HAVE_GETMNTENT
|
||||
#undef GETMNTENT_TAKES_TWO_ARGUMENTS
|
||||
#undef HAVE_TCGETATTR
|
||||
#undef HAVE_STRDUP
|
||||
#undef HAVE_MKSTEMP
|
||||
|
||||
|
||||
/* Types */
|
||||
#undef HAVE_SOCKLEN_T
|
||||
|
||||
/* gettimeofday accepts second (timezone) argument */
|
||||
#undef GETTIMEOFDAY_RETURNS_TIMEZONE
|
||||
|
||||
/* Are we doing 64bit IO on unix */
|
||||
#undef _FILE_OFFSET_BITS
|
||||
#undef _LARGE_FILES
|
||||
|
||||
/* sizeof(void *) = 8 ==> HAS_64BIT_POINTERS */
|
||||
#define SIZEOF_VOID_P 4
|
||||
#define SIZEOF_LONG 4
|
||||
|
||||
/* Is union semun defined? */
|
||||
#undef HAVE_SEMUN
|
||||
|
||||
#undef HAVE_STRUCT_XDR_OPS
|
||||
|
||||
/* alignment of long */
|
||||
#define ALIGNMENT 4
|
||||
|
||||
/* alignment of double */
|
||||
#define DOUBLE_ALIGN 8
|
||||
|
||||
/* Is the platform big endian? */
|
||||
#undef WORDS_BIGENDIAN
|
||||
|
||||
/* Return type of signal handler */
|
||||
#define RETSIGTYPE void
|
||||
|
||||
/* Are paths case sensitive? */
|
||||
#define CASE_SENSITIVITY false
|
||||
|
||||
/* Do we build (need) the lock manager process? */
|
||||
#undef MANAGER_PROCESS
|
||||
|
||||
/* Support databases on Raw Devices (UNIX only) */
|
||||
#undef SUPPORT_RAW_DEVICES
|
||||
|
||||
/* Inet service name and port */
|
||||
#define FB_SERVICE_NAME "gds_db"
|
||||
#define FB_SERVICE_PORT 3050
|
||||
#define FB_IPC_NAME "FirebirdIPI"
|
||||
|
||||
/* Wnet pipe name (Windows only) */
|
||||
#define FB_PIPE_NAME "interbas"
|
||||
|
||||
/* gpre built-in language support (C/C++ are mandatory) */
|
||||
#undef GPRE_ADA
|
||||
#undef GPRE_COBOL
|
||||
#undef GPRE_FORTRAN
|
||||
#undef GPRE_PASCAL
|
||||
|
||||
/* Support /proc/self/exe as link to current executable
|
||||
enables us to find path to install directory (Linux only) */
|
||||
#undef HAVE__PROC_SELF_EXE
|
||||
|
||||
/* CPU types */
|
||||
#undef PowerPC
|
||||
#undef sparc
|
||||
#undef i386
|
||||
#undef mips
|
||||
#undef alpha
|
||||
|
||||
/* various OS efforts */
|
||||
#undef DARWIN
|
||||
#undef LINUX
|
||||
#undef FREEBSD
|
||||
#undef NETBSD
|
||||
#undef sun
|
||||
#undef SOLARIS
|
||||
#undef hpux
|
||||
#undef VMS
|
||||
#undef AIX
|
||||
#undef WIN_NT
|
||||
#undef SCO_EV
|
||||
#undef SINIXZ
|
||||
|
||||
#define FB_PREFIX "/usr/local/firebird"
|
||||
|
||||
#endif
|
100
configure.in
100
configure.in
@ -1,8 +1,8 @@
|
||||
dnl $Id: configure.in,v 1.168 2003-10-29 07:57:19 eku Exp $
|
||||
dnl $Id: configure.in,v 1.169 2003-10-30 07:26:27 eku Exp $
|
||||
|
||||
dnl ############################# INITIALISATION ###############################
|
||||
|
||||
AC_PREREQ(2.53)
|
||||
AC_PREREQ(2.57)
|
||||
AC_INIT(src)
|
||||
AC_CONFIG_AUX_DIR(builds/make.new/config)
|
||||
AC_CACHE_VAL(ac_cv_prog_make_set, [AC_PROG_MAKE_SET])
|
||||
@ -21,7 +21,7 @@ dnl ############################# ADD TESTS BELOW ##############################
|
||||
AC_CANONICAL_SYSTEM
|
||||
|
||||
case "$target_cpu" in
|
||||
powerpc) AC_DEFINE(PowerPC) ;;
|
||||
powerpc) AC_DEFINE(PowerPC, 1, [Define this if CPU is PowerPC]) ;;
|
||||
esac
|
||||
|
||||
CPU_TYPE=$host_cpu dnl EKU: Should this be target_cpu ???
|
||||
@ -35,7 +35,7 @@ case "$target" in
|
||||
*-*-darwin*)
|
||||
MAKEFILE_PREFIX=darwin
|
||||
PLATFORM=DARWIN
|
||||
AC_DEFINE(DARWIN)
|
||||
AC_DEFINE(DARWIN, 1, [Define this if OS is DARWIN])
|
||||
LOCK_MANAGER_FLG=Y
|
||||
EDITLINE_FLG=N
|
||||
SHRLIB_EXT=so
|
||||
@ -44,7 +44,7 @@ case "$target" in
|
||||
*-*-freebsd*)
|
||||
MAKEFILE_PREFIX=freebsd
|
||||
PLATFORM=FREEBSD
|
||||
AC_DEFINE(FREEBSD)
|
||||
AC_DEFINE(FREEBSD, 1, [Define this if OS is FreeBSD])
|
||||
LOCK_MANAGER_FLG=Y
|
||||
EDITLINE_FLG=N
|
||||
SHRLIB_EXT=so
|
||||
@ -53,7 +53,7 @@ case "$target" in
|
||||
sparc*-*-linux-*)
|
||||
MAKEFILE_PREFIX=linux_sparc32
|
||||
PLATFORM=LINUX
|
||||
AC_DEFINE(LINUX)
|
||||
AC_DEFINE(LINUX, 1, [Define this if OS is Linux])
|
||||
LOCK_MANAGER_FLG=Y
|
||||
EDITLINE_FLG=Y
|
||||
SHRLIB_EXT=so
|
||||
@ -71,7 +71,7 @@ case "$target" in
|
||||
*-*-netbsd*)
|
||||
MAKEFILE_PREFIX=netbsd
|
||||
PLATFORM=NETBSD
|
||||
AC_DEFINE(NETBSD)
|
||||
AC_DEFINE(NETBSD, 1, [Define this if OS is NetBSD])
|
||||
LOCK_MANAGER_FLG=Y
|
||||
EDITLINE_FLG=N
|
||||
SHRLIB_EXT=so
|
||||
@ -80,7 +80,7 @@ case "$target" in
|
||||
*-*-hpux*)
|
||||
MAKEFILE_PREFIX=hpux
|
||||
PLATFORM=hpux
|
||||
AC_DEFINE(hpux)
|
||||
AC_DEFINE(hpux, 1, [Define this if OS is HP-UX])
|
||||
LOCK_MANAGER_FLG=Y
|
||||
EDITLINE_FLG=N
|
||||
SHRLIB_EXT=so
|
||||
@ -89,7 +89,7 @@ case "$target" in
|
||||
i386-pc-solaris*)
|
||||
MAKEFILE_PREFIX=solx86
|
||||
PLATFORM=solx86
|
||||
AC_DEFINE(solx86)
|
||||
AC_DEFINE(solx86, 1, [Define this if OS is Solarix x86])
|
||||
LOCK_MANAGER_FLG=N
|
||||
EDITLINE_FLG=N
|
||||
SHRLIB_EXT=so
|
||||
@ -98,7 +98,7 @@ case "$target" in
|
||||
sparc-sun-solaris*)
|
||||
MAKEFILE_PREFIX=solaris
|
||||
PLATFORM=SOLARIS
|
||||
AC_DEFINE(SOLARIS)
|
||||
AC_DEFINE(SOLARIS, 1, [Define this if OS is Solaris Sparc])
|
||||
LOCK_MANAGER_FLG=N
|
||||
EDITLINE_FLG=Y
|
||||
SHRLIB_EXT=so
|
||||
@ -107,7 +107,7 @@ case "$target" in
|
||||
i*-sni-sysv4)
|
||||
MAKEFILE_PREFIX=sinixz
|
||||
PLATFORM="SINIX-Z"
|
||||
AC_DEFINE(SINIXZ)
|
||||
AC_DEFINE(SINIXZ, 1, [Define this if OS is SINIX-Z])
|
||||
LOCK_MANAGER_FLG=N
|
||||
EDITLINE_FLG=Y
|
||||
SHRLIB_EXT=so
|
||||
@ -116,7 +116,7 @@ case "$target" in
|
||||
*-*-mingw*)
|
||||
MAKEFILE_PREFIX=mingw
|
||||
PLATFORM=win32
|
||||
AC_DEFINE(WIN_NT)
|
||||
AC_DEFINE(WIN_NT, 1, [Define this if OS is Windows NT])
|
||||
LOCK_MANAGER_FLG=N
|
||||
EDITLINE_FLG=N
|
||||
SHRLIB_EXT=dll
|
||||
@ -138,10 +138,13 @@ 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_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
|
||||
AC_PROG_YACC
|
||||
|
||||
@ -181,7 +184,8 @@ AC_ARG_ENABLE(raw-devices,
|
||||
*) AC_MSG_ERROR(bad value '${enableval}' for --enable-raw-devices);;
|
||||
esac])
|
||||
if test "$RAW_DEVICES_FLG" = "Y"; then
|
||||
AC_DEFINE(SUPPORT_RAW_DEVICES)
|
||||
AC_DEFINE(SUPPORT_RAW_DEVICES, 1,
|
||||
[Define this if databases on raw devices should be supported])
|
||||
fi
|
||||
|
||||
MANAGER_PROCESS_TARGET=
|
||||
@ -201,7 +205,8 @@ if test "$FIREBIRD_ARCH_TYPE" = "classic"; then
|
||||
dnl at least SOLARIS-MT, DARWIN and SINIX-Z do not require a lock
|
||||
dnl manager process
|
||||
dnl EKU: is this really true???
|
||||
AC_DEFINE(MANAGER_PROCESS)
|
||||
AC_DEFINE(MANAGER_PROCESS, 1,
|
||||
[Define this if the lock manager process is needed])
|
||||
MANAGER_PROCESS_TARGET=lock_mgr
|
||||
fi
|
||||
fi
|
||||
@ -228,11 +233,11 @@ AC_ARG_WITH(service-port,
|
||||
[ --with-service-port specify inet service port (default=3050)],
|
||||
[FB_SERVICE_PORT=${withval}])
|
||||
AC_ARG_WITH(ipc-name,
|
||||
[ --with-ipc-name specify local IPC name (default=FirebirdIPI)],
|
||||
[ --with-ipc-name specify local IPC name (default=FirebirdIPI)],
|
||||
[FB_IPC_NAME=${withval}])
|
||||
AC_DEFINE_UNQUOTED(FB_SERVICE_NAME,"$FB_SERVICE_NAME")
|
||||
AC_DEFINE_UNQUOTED(FB_SERVICE_PORT,$FB_SERVICE_PORT)
|
||||
AC_DEFINE_UNQUOTED(FB_IPC_NAME,"$FB_IPC_NAME")
|
||||
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])
|
||||
AC_SUBST(FB_SERVICE_NAME)
|
||||
AC_SUBST(FB_SERVICE_PORT)
|
||||
AC_SUBST(FB_IPC_NAME)
|
||||
@ -243,7 +248,7 @@ 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)
|
||||
AC_DEFINE(GPRE_ADA);;
|
||||
AC_DEFINE(GPRE_ADA, 1, [Define this if GPRE should support ADA]);;
|
||||
no) ;;
|
||||
*) AC_MSG_ERROR(bad value '${withval}' for --with-gpre-ada);;
|
||||
esac])
|
||||
@ -251,7 +256,7 @@ AC_ARG_WITH(gpre-cobol,
|
||||
[ --with-gpre-cobol support COBOL in gpre (default=no)],
|
||||
[case "$withval" in
|
||||
yes) XE_APPEND(cob.cpp,GPRE_LANGUAGE_MODULES)
|
||||
AC_DEFINE(GPRE_COBOL);;
|
||||
AC_DEFINE(GPRE_COBOL, 1, [Define this if GPRE should support COBOL]);;
|
||||
no) ;;
|
||||
*) AC_MSG_ERROR(bad value '${withval}' for --with-gpre-cobol);;
|
||||
esac])
|
||||
@ -259,7 +264,7 @@ 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)
|
||||
AC_DEFINE(GPRE_FORTRAN);;
|
||||
AC_DEFINE(GPRE_FORTRAN, 1, [Define this if GPRE should support FORTRAN]);;
|
||||
no) ;;
|
||||
*) AC_MSG_ERROR(bad value '${withval}' for --with-gpre-fortran);;
|
||||
esac])
|
||||
@ -267,7 +272,7 @@ 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)
|
||||
AC_DEFINE(GPRE_PASCAL);;
|
||||
AC_DEFINE(GPRE_PASCAL, 1, [Define this if GPRE should support PASCAL]);;
|
||||
no) ;;
|
||||
*) AC_MSG_ERROR(bad value '${withval}' for --with-gpre-pascal);;
|
||||
esac])
|
||||
@ -275,6 +280,9 @@ AC_SUBST(GPRE_LANGUAGE_MODULES)
|
||||
|
||||
|
||||
dnl Check for system header files
|
||||
AC_HEADER_DIRENT
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_SYS_WAIT
|
||||
AC_CHECK_HEADERS(assert.h)
|
||||
AC_CHECK_HEADERS(ctype.h)
|
||||
AC_CHECK_HEADERS(errno.h)
|
||||
@ -301,7 +309,7 @@ AC_CHECK_HEADERS(signal.h sys/signal.h sys/siginfo.h)
|
||||
if test "$EDITLINE_FLG" = "Y"; then
|
||||
AC_CHECK_HEADERS(termio.h termios.h)
|
||||
AC_HEADER_DIRENT
|
||||
AC_DEFINE(HAVE_EDITLINE_H)
|
||||
AC_DEFINE(HAVE_EDITLINE_H, 1, [Define this if internal editline.h is in use])
|
||||
fi
|
||||
AC_CHECK_HEADERS(unistd.h)
|
||||
AC_CHECK_HEADERS(varargs.h)
|
||||
@ -311,11 +319,11 @@ AC_CHECK_HEADERS(rpc/xdr.h,,,[#include <rpc/rpc.h>])
|
||||
AC_CHECK_HEADERS(aio.h)
|
||||
AC_CHECK_HEADERS(mntent.h mnttab.h sys/mntent.h sys/mnttab.h)
|
||||
AC_CHECK_HEADERS(sys/ipc.h sys/file.h)
|
||||
AC_CHECK_HEADERS(socket.h sys/socket.h sys/sockio.h winsock2.h)
|
||||
AC_CHECK_HEADERS(socket.h sys/socket.h sys/sockio.h winsock2.h)
|
||||
|
||||
dnl Check for libraries
|
||||
AC_CHECK_LIB(dl, main)
|
||||
AC_CHECK_LIB(c,main)
|
||||
AC_CHECK_LIB(c, main)
|
||||
AC_CHECK_LIB(m, main)
|
||||
if test "$FIREBIRD_ARCH_TYPE" = "super"; then
|
||||
AC_CHECK_LIB(pthread, main)
|
||||
@ -342,7 +350,9 @@ if test "$ac_cv_func_gettimeofday" = "yes"; then
|
||||
AC_MSG_CHECKING(if gettimeofday accepts second (timezone) argument)
|
||||
AC_TRY_COMPILE([#include <sys/time.h>],
|
||||
[struct timeval tp; gettimeofday(&tp, (struct timezone *)0);],
|
||||
[AC_DEFINE(GETTIMEOFDAY_RETURNS_TIMEZONE) AC_MSG_RESULT(yes)],
|
||||
[AC_DEFINE(GETTIMEOFDAY_RETURNS_TIMEZONE, 1,
|
||||
[Define this if gettimeofday accepts second (timezone) argument])
|
||||
AC_MSG_RESULT(yes)],
|
||||
[AC_MSG_RESULT(no)])
|
||||
;;
|
||||
esac
|
||||
@ -358,15 +368,16 @@ if test "$ac_cv_func_strcasecmp" = "no" -a "$ac_cv_func_stricmp" = "no"; then
|
||||
unset ac_cv_func_strcasecmp
|
||||
AC_CHECK_FUNCS(strcasecmp)],, $LIBS)
|
||||
fi
|
||||
AC_SEARCH_LIBS(dirname,gen)
|
||||
AC_SEARCH_LIBS(dirname, gen)
|
||||
AC_CHECK_FUNCS(dirname)
|
||||
AC_CHECK_FUNCS(sigaction setitimer)
|
||||
AC_CHECK_FUNCS(snprintf vsnprintf)
|
||||
AC_CHECK_FUNCS(swab _swab)
|
||||
AC_FUNC_MMAP
|
||||
AC_FUNC_FORK
|
||||
AC_CHECK_FUNCS(setgrp setpgid getpgrp)
|
||||
AC_FUNC_SETPGRP
|
||||
AC_FUNC_SETPGRP
|
||||
AC_CHECK_FUNCS(setpgid)
|
||||
AC_FUNC_GETPGRP
|
||||
AC_CHECK_FUNCS(flock)
|
||||
AC_CHECK_FUNCS(initgroups)
|
||||
AC_CHECK_FUNCS(getpagesize)
|
||||
@ -379,7 +390,9 @@ if test "$ac_cv_func_getmntent" = "yes"; then
|
||||
AC_TRY_COMPILE([#include <stdio.h>
|
||||
#include <sys/mnttab.h>],
|
||||
[FILE *f; struct mntent *m; getmntent(f, m);],
|
||||
[AC_DEFINE(GETMNTENT_TAKES_TWO_ARGUMENTS) AC_MSG_RESULT(yes)],
|
||||
[AC_DEFINE(GETMNTENT_TAKES_TWO_ARGUMENTS, 1,
|
||||
[Define this if getmntent needs second argument])
|
||||
AC_MSG_RESULT(yes)],
|
||||
[AC_MSG_RESULT(no)])
|
||||
fi
|
||||
AC_CHECK_FUNCS(tcgetattr strdup)
|
||||
@ -396,7 +409,9 @@ if test "$ac_cv_sys_file_offset_bits" = "no"; then
|
||||
AC_TRY_RUN([#include <unistd.h>
|
||||
main () {
|
||||
exit(!(sizeof(off_t) == 8));
|
||||
}], [ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64) AC_MSG_RESULT(yes)],AC_MSG_RESULT(no))
|
||||
}],
|
||||
[ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64) AC_MSG_RESULT(yes)],
|
||||
[AC_MSG_RESULT(no)])
|
||||
fi
|
||||
|
||||
AC_CHECK_SIZEOF(void*)
|
||||
@ -409,7 +424,7 @@ if test "$ac_cv_type_semun" = "no"; then
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/sem.h>],
|
||||
[union semun s;],
|
||||
[ac_cv_type_semun=yes AC_DEFINE(HAVE_SEMUN) AC_MSG_RESULT(yes)],
|
||||
[ac_cv_type_semun=yes; AC_DEFINE(HAVE_SEMUN) AC_MSG_RESULT(yes)],
|
||||
[AC_MSG_RESULT(no)])
|
||||
fi
|
||||
|
||||
@ -430,7 +445,7 @@ AC_TRY_RUN([main () {
|
||||
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)
|
||||
AC_DEFINE_UNQUOTED(ALIGNMENT,$ac_cv_c_alignment)
|
||||
AC_DEFINE_UNQUOTED(ALIGNMENT, $ac_cv_c_alignment, [Alignment of long])
|
||||
|
||||
AC_MSG_CHECKING(alignment of double)
|
||||
AC_TRY_RUN([main () {
|
||||
@ -441,7 +456,7 @@ AC_TRY_RUN([main () {
|
||||
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)
|
||||
AC_DEFINE_UNQUOTED(DOUBLE_ALIGN,$ac_cv_c_double_align)
|
||||
AC_DEFINE_UNQUOTED(DOUBLE_ALIGN, $ac_cv_c_double_align, [Alignment of double])
|
||||
|
||||
dnl EKU: don't know how to convert this into an autoconf test:
|
||||
dnl #define FB_ALIGN(n,b) ...
|
||||
@ -493,7 +508,7 @@ case "$PLATFORM" in
|
||||
AC_ARG_WITH(pipe-name,
|
||||
[ --with-pipe-name specify wnet pipe name (default=interbas)],
|
||||
[FB_PIPE_NAME=${withval}])
|
||||
AC_DEFINE_UNQUOTED(FB_PIPE_NAME,"$FB_PIPE_NAME")
|
||||
AC_DEFINE_UNQUOTED(FB_PIPE_NAME,"$FB_PIPE_NAME", [Wnet pipe name])
|
||||
AC_SUBST(FB_PIPE_NAME)
|
||||
XE_PREPEND(-lmpr -lversion -lws2_32 -lole32,LIBS)
|
||||
;;
|
||||
@ -524,7 +539,7 @@ NEW_FIREBIRD_DIR=$GEN_ROOT/firebird
|
||||
AC_SUBST(BUILD_ROOT_DIR)
|
||||
AC_SUBST(NEW_FIREBIRD_DIR)
|
||||
|
||||
AC_DEFINE_UNQUOTED(FB_PREFIX, $(if test "x$prefix" = "xNONE" ; then echo \"$ac_default_prefix\"; else echo \"$prefix\"; fi))
|
||||
AC_DEFINE_UNQUOTED(FB_PREFIX, $(if test "x$prefix" = "xNONE" ; then echo \"$ac_default_prefix\"; else echo \"$prefix\"; fi), [Installation path prefix])
|
||||
|
||||
AC_CONFIG_COMMANDS(,,[
|
||||
dnl ### GEN ### directories for preprocessed cpp, databases and output
|
||||
@ -562,9 +577,6 @@ mkdir -p gen/firebird/lib
|
||||
mkdir -p gen/firebird/misc
|
||||
mkdir -p gen/firebird/help
|
||||
|
||||
mkdir -p gen/RPM/RPMS/i686
|
||||
mkdir -p gen/RPM/BUILD
|
||||
|
||||
dnl #### TEMP ######### directories for .o and .d
|
||||
dnl # by module name
|
||||
|
||||
@ -682,7 +694,6 @@ mkdir -p temp/codes/misc
|
||||
mkdir -p temp/codes/jrd
|
||||
|
||||
mkdir -p temp/editline/extern/editline
|
||||
|
||||
])
|
||||
|
||||
|
||||
@ -695,7 +706,10 @@ case "$PLATFORM" in
|
||||
LINUX)
|
||||
AC_CONFIG_COMMANDS(,,[
|
||||
mkdir -p gen/install/scripts
|
||||
mkdir -p gen/install/misc])
|
||||
mkdir -p gen/install/misc
|
||||
mkdir -p gen/RPM/RPMS/i686
|
||||
mkdir -p gen/RPM/BUILD])
|
||||
|
||||
INSTALL_SRC_DIR=builds/install/arch-specific/linux/${FIREBIRD_ARCH_TYPE}
|
||||
AC_CONFIG_FILES([gen/install/makeInstallImage.sh:${INSTALL_SRC_DIR}/makeInstallImage.sh.in
|
||||
gen/install/scripts/preinstall.sh:${INSTALL_SRC_DIR}/preinstall.sh.in
|
||||
@ -729,7 +743,7 @@ case "$PLATFORM" in
|
||||
esac
|
||||
|
||||
|
||||
AC_OUTPUT(
|
||||
AC_CONFIG_FILES(
|
||||
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}
|
||||
@ -774,7 +788,7 @@ gen/Makefile.install:builds/install/arch-specific/${MAKEFILE_PREFIX}/Makefile.in
|
||||
Makefile:Makefile.in
|
||||
gen/Makefile.extern.editline:${MAKE_SRC_DIR}/Makefile.in.extern.editline
|
||||
)
|
||||
|
||||
AC_OUTPUT
|
||||
|
||||
dnl Print out the build configuration (the most interesting thing)
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user