dnl Process this file with autoconf to produce a configure script. AC_INIT(lib/text_t.h) PACKAGE=gsdl VERSION=2.0 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") AC_DEFINE_UNQUOTED(VERSION, "$VERSION") AC_SUBST(PACKAGE) AC_SUBST(VERSION) USE_FASTCGI=0 if test USE_FASTCGI = 1; then AC_DEFINE(USE_FASTCGI) AC_SUBST(USE_FASTCGI) fi dnl Checks for programs. AC_PROG_CC AC_PROG_CXX dnl AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_RANLIB dnl Checks for libraries. dnl Replace `main' with a function in -lg: AC_CHECK_LIB(g, main) dnl Replace `main' with a function in -lgdbm: AC_CHECK_LIB(gdbm, main) dnl Replace `main' with a function in -lm: AC_CHECK_LIB(m, main) dnl Replace `main' with a function in -lstdc: AC_CHECK_LIB(stdc, main) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_HEADER_TIME dnl dnl Check if the STL library has any known faults; dnl In GCC 2.7.2.x series, some STL library headers are missing dnl a file called "new" which is referred to by other headers dnl (eg. vector/vector.h); if this applies, then all use of the dnl STL will cause a compile fail, so we'd better let the user dnl know now, before things really go wrong! dnl AC_LANG_CPLUSPLUS success=no AC_MSG_CHECKING("whether STL library has known faults") dnl - first shot, try simple good old vector on its own AC_TRY_COMPILE( [#include ], [], success=yes, ) dnl - try using the .h equivalent if test $success = "no"; then AC_TRY_COMPILE( [#include ], [], success="yes", ) fi dnl - now try for the objectspace headers if test $success = "no"; then AC_TRY_COMPILE( [#include ], [], success="yes", ) fi if test $success = yes; then AC_MSG_RESULT("no") else AC_MSG_RESULT("yes") AC_MSG_ERROR("STL Broken - new not found in vector header file") fi gsdlos=`uname | tr A-Z a-z` AC_SUBST(gsdlos) dnl Checks for library functions. AC_FUNC_VPRINTF AC_OUTPUT(src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile collect/niupepa/src/recpt/Makefile Makefile)