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