source: trunk/gsdl/configure.in@ 674

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