source: trunk/gsdl/configure.in@ 564

Last change on this file since 564 was 564, checked in by sjboddie, 25 years ago

changed version number

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(lib/text_t.h)
3
4PACKAGE=gsdl
5VERSION=2.0
6AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
7AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
8AC_SUBST(PACKAGE)
9AC_SUBST(VERSION)
10dnl AC_DEFINE(USE_FASTCGI)
11
12dnl Checks for programs.
13AC_PROG_CC
14AC_PROG_CXX
15dnl AC_PROG_INSTALL
16AC_PROG_LN_S
17AC_PROG_MAKE_SET
18AC_PROG_RANLIB
19
20dnl Checks for libraries.
21dnl Replace `main' with a function in -lg:
22AC_CHECK_LIB(g, main)
23dnl Replace `main' with a function in -lgdbm:
24AC_CHECK_LIB(gdbm, main)
25dnl Replace `main' with a function in -lm:
26AC_CHECK_LIB(m, main)
27dnl Replace `main' with a function in -lstdc:
28AC_CHECK_LIB(stdc, main)
29
30dnl Checks for header files.
31AC_HEADER_STDC
32AC_CHECK_HEADERS(fcntl.h)
33
34dnl Checks for typedefs, structures, and compiler characteristics.
35AC_C_CONST
36AC_HEADER_TIME
37
38
39dnl
40dnl Check if the STL library has any known faults;
41dnl In GCC 2.7.2.x series, some STL library headers are missing
42dnl a file called "new" which is referred to by other headers
43dnl (eg. vector/vector.h); if this applies, then all use of the
44dnl STL will cause a compile fail, so we'd better let the user
45dnl know now, before things really go wrong!
46dnl
47AC_LANG_CPLUSPLUS
48success=no
49AC_MSG_CHECKING("whether STL library has known faults")
50
51dnl - first shot, try simple good old vector on its own
52AC_TRY_COMPILE(
53[#include <vector>
54],
55[],
56success=yes,
57)
58
59dnl - try using the .h equivalent
60if test $success = "no"; then
61AC_TRY_COMPILE(
62[#include <vector.h>
63],
64[],
65success="yes",
66)
67fi
68
69dnl - now try for the objectspace headers
70if test $success = "no"; then
71AC_TRY_COMPILE(
72[#include <ospace\\std\\vector>
73],
74[],
75success="yes",
76)
77fi
78
79if test $success = yes; then
80AC_MSG_RESULT("no")
81else
82AC_MSG_RESULT("yes")
83AC_MSG_ERROR("STL Broken - new not found in vector header file")
84fi
85
86gsdlos=`uname | tr A-Z a-z`
87AC_SUBST(gsdlos)
88
89dnl Checks for library functions.
90AC_FUNC_VPRINTF
91
92AC_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)
93
94
95
96
Note: See TracBrowser for help on using the repository browser.