source: trunk/gsdl/configure.in@ 567

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

fixed autoconf fastcgi error

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