[552] | 1 | dnl Process this file with autoconf to produce a configure script.
|
---|
[8758] | 2 | dnl Use autoconf-2.59 or later... it might not work anymore with
|
---|
| 3 | dnl the older 2.1x versions - jrm21 12/2004
|
---|
[16563] | 4 | AC_INIT()
|
---|
[684] | 5 | AC_CONFIG_HEADER(config.h)
|
---|
[552] | 6 |
|
---|
[554] | 7 | PACKAGE=gsdl
|
---|
[16563] | 8 | VERSION=2.82-svn
|
---|
[552] | 9 | AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
|
---|
| 10 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
|
---|
| 11 | AC_SUBST(PACKAGE)
|
---|
| 12 | AC_SUBST(VERSION)
|
---|
[567] | 13 |
|
---|
[18483] | 14 |
|
---|
[1860] | 15 | dnl
|
---|
| 16 | dnl Set use of fast cgi
|
---|
| 17 | dnl
|
---|
[566] | 18 | USE_FASTCGI=0
|
---|
| 19 | if test USE_FASTCGI = 1; then
|
---|
| 20 | AC_DEFINE(USE_FASTCGI)
|
---|
| 21 | AC_SUBST(USE_FASTCGI)
|
---|
| 22 | fi
|
---|
[552] | 23 |
|
---|
[1860] | 24 | dnl
|
---|
[3631] | 25 | dnl Set use of langaction
|
---|
| 26 | dnl
|
---|
| 27 | dnl USE_LANGACTION=0
|
---|
| 28 | if test USE_LANGACTION = 1; then
|
---|
| 29 | AC_DEFINE(USE_LANGACTION)
|
---|
| 30 | AC_SUBST(USE_LANGACTION)
|
---|
| 31 | fi
|
---|
| 32 |
|
---|
| 33 | dnl
|
---|
[1860] | 34 | dnl Set use of corba
|
---|
| 35 | dnl
|
---|
[2470] | 36 | AC_ARG_ENABLE(corba, [ --enable-corba Enable CORBA support], USE_CORBA=1, USE_CORBA=0)
|
---|
[2296] | 37 | AC_DEFINE_UNQUOTED(USE_CORBA, $USE_CORBA)
|
---|
[2051] | 38 | AC_SUBST(USE_CORBA)
|
---|
[1860] | 39 |
|
---|
[21330] | 40 | AC_ARG_WITH(micodir, [ --with-micodir Use installed MICO directory], MICO_DIR=$withval, MICO_DIR="default")
|
---|
[2296] | 41 | AC_DEFINE_UNQUOTED(MICO_DIR, "$MICO_DIR")
|
---|
[2051] | 42 | AC_SUBST(MICO_DIR)
|
---|
[1860] | 43 |
|
---|
[1938] | 44 | dnl
|
---|
| 45 | dnl Set use of z39.50
|
---|
| 46 | dnl
|
---|
| 47 | AC_ARG_ENABLE(z3950, [ --enable-z3950 Enable Z39.50 client support], USE_Z3950=1, USE_Z3950=0)
|
---|
[2296] | 48 | if test USE_Z3950 = 1; then
|
---|
| 49 | AC_DEFINE(USE_Z3950, $USE_Z3950)
|
---|
[1938] | 50 | AC_SUBST(USE_Z3950)
|
---|
[2296] | 51 | fi
|
---|
[1938] | 52 |
|
---|
[2279] | 53 | dnl
|
---|
[12492] | 54 | dnl Set use of yaz - now compiled by default even when z3950 support not required
|
---|
| 55 | dnl
|
---|
[15901] | 56 | AC_ARG_ENABLE(yaz, [ --disable-yaz Disable YAZ compilation], USE_YAZ=0, USE_YAZ=1)
|
---|
[12492] | 57 | dnl if test USE_YAZ = 1; then
|
---|
| 58 | AC_DEFINE(USE_YAZ, $USE_YAZ)
|
---|
| 59 | AC_SUBST(USE_YAZ)
|
---|
| 60 | dnl fi
|
---|
| 61 |
|
---|
[12922] | 62 | dnl
|
---|
| 63 | dnl disable compilation of accent folding stuff for mgpp (and one day mg)
|
---|
| 64 | dnl
|
---|
[15901] | 65 | AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1)
|
---|
[12922] | 66 | AC_DEFINE(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD)
|
---|
| 67 | AC_SUBST(ENABLE_ACCENTFOLD)
|
---|
| 68 |
|
---|
[15901] | 69 | dnl
|
---|
[16288] | 70 | dnl Set use of SQLite (enabled by default)
|
---|
[15901] | 71 | dnl
|
---|
[16288] | 72 | AC_ARG_ENABLE(sqlite, [ --disable-sqlite Disable SQLite support], USE_SQLITE=0, USE_SQLITE=1)
|
---|
[15901] | 73 | AC_DEFINE(USE_SQLITE, $USE_SQLITE)
|
---|
| 74 | AC_SUBST(USE_SQLITE)
|
---|
| 75 |
|
---|
[18483] | 76 | dnl
|
---|
[20853] | 77 | dnl Set use of Apache httpd (disabled by default)
|
---|
[18483] | 78 | dnl
|
---|
[21377] | 79 | if test -d runtime-src; then
|
---|
| 80 | AC_ARG_ENABLE(apache-httpd, [ --enable-apache-httpd Enable Apache httpd support], USE_APACHE_HTTPD=1, USE_APACHE_HTTPD=0)
|
---|
| 81 | AC_DEFINE(USE_APACHE_HTTPD, $USE_APACHE_HTTPD)
|
---|
| 82 | AC_SUBST(USE_APACHE_HTTPD)
|
---|
| 83 | fi
|
---|
[18483] | 84 |
|
---|
[21366] | 85 | dnl
|
---|
| 86 | dnl Set compilation of JNI parts of MG and MGPP indexers (disabled by default, which is GS2's default behaviour)
|
---|
| 87 | dnl
|
---|
| 88 | AC_ARG_ENABLE(jni, [ --enable-jni Enable JNI compilation], ENABLE_JNI=$enableval, ENABLE_JNI=no)
|
---|
| 89 | if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
|
---|
| 90 | ENABLE_JNI=1
|
---|
| 91 | AC_DEFINE(ENABLE_JNI,[])
|
---|
| 92 | else
|
---|
| 93 | ENABLE_JNI=0
|
---|
| 94 | fi
|
---|
| 95 | AC_SUBST(ENABLE_JNI)
|
---|
[18483] | 96 |
|
---|
[21330] | 97 | dnl
|
---|
| 98 | dnl Set compilation of MG (enabled by default)
|
---|
| 99 | dnl
|
---|
| 100 | AC_ARG_ENABLE(mg, [ --disable-mg Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes)
|
---|
| 101 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
| 102 | ENABLE_MG=1
|
---|
| 103 | AC_DEFINE(ENABLE_MG,[])
|
---|
| 104 | else
|
---|
| 105 | ENABLE_MG=0
|
---|
| 106 | fi
|
---|
| 107 | AC_SUBST(ENABLE_MG)
|
---|
| 108 |
|
---|
| 109 |
|
---|
| 110 | dnl
|
---|
| 111 | dnl Set compilation of MGPP (enabled by default)
|
---|
| 112 | dnl
|
---|
| 113 | AC_ARG_ENABLE(mgpp, [ --disable-mgpp Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes)
|
---|
| 114 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
| 115 | ENABLE_MGPP=1
|
---|
| 116 | AC_DEFINE(ENABLE_MGPP,[])
|
---|
| 117 | else
|
---|
| 118 | ENABLE_MGPP=0
|
---|
| 119 | fi
|
---|
| 120 | AC_SUBST(ENABLE_MGPP)
|
---|
| 121 |
|
---|
| 122 | dnl
|
---|
| 123 | dnl Set compilation of lucene (enabled by default)
|
---|
| 124 | dnl
|
---|
| 125 | AC_ARG_ENABLE(lucene, [ --disable-lucene Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
|
---|
| 126 | if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
|
---|
| 127 | ENABLE_LUCENE=1
|
---|
| 128 | AC_DEFINE(ENABLE_LUCENE, [])
|
---|
| 129 | else
|
---|
| 130 | ENABLE_LUCENE=0
|
---|
| 131 | fi
|
---|
| 132 | AC_SUBST(ENABLE_LUCENE)
|
---|
| 133 |
|
---|
| 134 |
|
---|
[552] | 135 | dnl Checks for programs.
|
---|
[14169] | 136 | LDFLAGS=$LDFLAGS
|
---|
[15551] | 137 | AC_SUBST(LDFLAGS)
|
---|
[1722] | 138 | dnl only set CFLAGS if not already set in environment
|
---|
| 139 | if test -z "$CFLAGS"; then
|
---|
[794] | 140 | CFLAGS=-O2
|
---|
[1722] | 141 | fi
|
---|
[575] | 142 | AC_SUBST(CFLAGS)
|
---|
| 143 |
|
---|
[15551] | 144 |
|
---|
[552] | 145 | AC_PROG_CC
|
---|
| 146 | AC_PROG_CXX
|
---|
[684] | 147 | AC_PROG_AWK
|
---|
| 148 | AC_PROG_YACC
|
---|
[2279] | 149 | dnl get $target_cpu, $target_vendor, and $target_os
|
---|
| 150 | dnl (as well as host_*)
|
---|
| 151 | AC_CANONICAL_SYSTEM
|
---|
| 152 | dnl do we actually want this? It adds a prefix based on host, system etc
|
---|
| 153 | dnl AC_ARG_PROGRAM
|
---|
[703] | 154 | AC_PROG_INSTALL
|
---|
[552] | 155 | AC_PROG_LN_S
|
---|
| 156 | AC_PROG_MAKE_SET
|
---|
| 157 | AC_PROG_RANLIB
|
---|
| 158 |
|
---|
[15551] | 159 | AC_MSG_CHECKING(to see if architecture is 64-bit)
|
---|
| 160 | arch_64bit=no
|
---|
| 161 | case "$host_cpu" in
|
---|
| 162 | x86_64) arch_64bit=yes ;;
|
---|
| 163 | esac
|
---|
| 164 |
|
---|
| 165 | if test "$arch_64bit" = yes; then
|
---|
| 166 | AC_MSG_RESULT(yes)
|
---|
| 167 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 168 | COMPAT32BITFLAGS="-m32"
|
---|
| 169 | fi
|
---|
| 170 | else
|
---|
| 171 | AC_MSG_RESULT(no)
|
---|
| 172 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 173 | COMPAT32BITFLAGS=
|
---|
| 174 | fi
|
---|
| 175 | fi
|
---|
| 176 | export COMPAT32BITFLAGS
|
---|
| 177 | AC_SUBST(COMPAT32BITFLAGS)
|
---|
| 178 |
|
---|
| 179 |
|
---|
[2173] | 180 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 181 | if test $USE_CORBA = 1; then
|
---|
| 182 |
|
---|
[2213] | 183 | if test $MICO_DIR = "default"; then
|
---|
[2173] | 184 | #do something
|
---|
| 185 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 186 | else
|
---|
| 187 | #build the micotest program
|
---|
| 188 | MICO_INC= ""
|
---|
| 189 | if test $MICO_DIR != yes; then
|
---|
| 190 | MICO_INC="-I $MICO_DIR"
|
---|
| 191 | fi
|
---|
| 192 | fi
|
---|
| 193 |
|
---|
| 194 | #get MICO_VER value
|
---|
| 195 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 196 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
[2214] | 197 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
[2173] | 198 | sh -c "rm micotest"
|
---|
| 199 | sh -c "rm micotest.o"
|
---|
| 200 |
|
---|
| 201 | #do test of MICO_VER
|
---|
| 202 | if test MICO_VER != 0; then
|
---|
| 203 | AC_DEFINE(MICO_VER)
|
---|
| 204 | AC_SUBST(MICO_VER)
|
---|
| 205 | fi
|
---|
| 206 | #end USE_CORBA test
|
---|
| 207 | fi
|
---|
| 208 |
|
---|
[684] | 209 | dnl Checks for typedefs, structures, and compiler characteristics.
|
---|
| 210 | AC_AIX
|
---|
| 211 | AC_ISC_POSIX
|
---|
| 212 | AC_MINIX
|
---|
| 213 | fp_C_PROTOTYPES
|
---|
| 214 | AC_C_CONST
|
---|
| 215 | AC_TYPE_OFF_T
|
---|
| 216 | AC_TYPE_SIZE_T
|
---|
| 217 | AC_HEADER_TIME
|
---|
| 218 | AC_STRUCT_TM
|
---|
| 219 |
|
---|
| 220 | dnl --- This should be in the stdc checking -----------------
|
---|
| 221 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
| 222 | dnl The Pyramids running SMP_DC.OSx on MIPS r3000 chips with
|
---|
| 223 | dnl /usr/opt/cc3.11/bin/cc treat -Xc as full ANSI mode - no POSIX or
|
---|
| 224 | dnl XOPEN extensions (like popen).
|
---|
| 225 | dnl Unfortunately -D_{XOPEN,POSIX}_SOURCE can't provide all that mg
|
---|
| 226 | dnl needs. So drop back to -Xa
|
---|
| 227 | AC_TRY_COMPILE(
|
---|
| 228 | [#include <stdio.h>
|
---|
| 229 | ], [ FILE *rubbish = popen("yes", "r"); ],,
|
---|
| 230 | [CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'])
|
---|
| 231 | fi
|
---|
| 232 | dnl ----------------------
|
---|
| 233 |
|
---|
| 234 |
|
---|
[552] | 235 | dnl Checks for libraries.
|
---|
[8756] | 236 | dnl check for -lg:
|
---|
| 237 | AC_HAVE_LIBRARY(g)
|
---|
| 238 | dnl check for -lm:
|
---|
| 239 | AC_HAVE_LIBRARY(m)
|
---|
| 240 | dnl check for -lcrypt:
|
---|
| 241 | AC_HAVE_LIBRARY(crypt)
|
---|
[20842] | 242 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 243 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 244 | #fi
|
---|
[552] | 245 |
|
---|
| 246 | dnl Checks for header files.
|
---|
[684] | 247 | AC_HEADER_DIRENT
|
---|
[552] | 248 | AC_HEADER_STDC
|
---|
[10181] | 249 | AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h)
|
---|
[684] | 250 | AC_EGREP_HEADER(fread, stdio.h, AC_DEFINE(HAVE_FREAD_DECL))
|
---|
| 251 | AC_EGREP_HEADER(fgetc, stdio.h, AC_DEFINE(HAVE_FGETC_DECL))
|
---|
| 252 | AC_EGREP_HEADER(pr_brksize, sys/procfs.h, AC_DEFINE(HAVE_PR_BRKSIZE))
|
---|
[552] | 253 |
|
---|
[684] | 254 | dnl Checks for library functions.
|
---|
| 255 | AC_FUNC_ALLOCA
|
---|
| 256 | AC_PROG_GCC_TRADITIONAL
|
---|
| 257 | AC_TYPE_SIGNAL
|
---|
| 258 | AC_FUNC_VPRINTF
|
---|
[786] | 259 | AC_CHECK_FUNCS(ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror)
|
---|
[684] | 260 | AC_REPLACE_FUNCS(ftruncate strstr strcasecmp)
|
---|
[552] | 261 |
|
---|
[3705] | 262 | dnl see if gettext is in libc. (try the textdomain() function).
|
---|
[8202] | 263 | AC_CHECK_FUNC(textdomain, AC_DEFINE(ENABLE_NLS ,1) )
|
---|
[552] | 264 |
|
---|
[684] | 265 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 266 | # ---------------------------------------------------------------------------
|
---|
| 267 | AC_MSG_CHECKING(for HP-UX needing gmalloc)
|
---|
| 268 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
| 269 | AC_MSG_RESULT(yes)
|
---|
[8756] | 270 | AC_LIBOBJ([gmalloc])
|
---|
[684] | 271 | AC_DEFINE(HAVE_VALLOC)
|
---|
| 272 | else
|
---|
| 273 | AC_MSG_RESULT(no)
|
---|
| 274 | AC_CHECK_FUNCS(valloc)
|
---|
| 275 | fi
|
---|
| 276 |
|
---|
[8183] | 277 | # we cannot generate static libraries under Darwin
|
---|
| 278 | AC_MSG_CHECKING(for Apple MacOS X/Darwin)
|
---|
| 279 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
| 280 | AC_MSG_RESULT(yes)
|
---|
[8199] | 281 | STATIC=""
|
---|
[8183] | 282 | else
|
---|
| 283 | AC_MSG_RESULT(no)
|
---|
[8199] | 284 | STATIC="-static "
|
---|
[8183] | 285 | fi
|
---|
| 286 | AC_SUBST(STATIC)
|
---|
| 287 |
|
---|
[684] | 288 | fp_WITH_DMALLOC
|
---|
| 289 | fp_WITH_REGEX
|
---|
| 290 |
|
---|
| 291 | # ---------------------------------------------------------------------------
|
---|
| 292 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
| 293 | dnl support functions for alloca.c
|
---|
[8756] | 294 | AC_LIBOBJ([xmalloc])
|
---|
| 295 | AC_LIBOBJ([error])
|
---|
[684] | 296 | fi
|
---|
| 297 |
|
---|
| 298 |
|
---|
| 299 | # ---------------------------------------------------------------------------
|
---|
| 300 |
|
---|
[552] | 301 | dnl
|
---|
[684] | 302 | dnl Switch into C++
|
---|
| 303 | dnl
|
---|
| 304 | AC_LANG_CPLUSPLUS
|
---|
| 305 |
|
---|
| 306 | dnl
|
---|
| 307 | dnl Now check that Perl is actually around, and can be found
|
---|
| 308 | dnl
|
---|
[2279] | 309 | AC_MSG_CHECKING(that Perl 5 is available)
|
---|
[684] | 310 | success="no"
|
---|
| 311 | pl_path="$PATH"
|
---|
| 312 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 313 | for pl_dir in $pl_path; do
|
---|
| 314 | test -z "$pl_dir" && pl_dir=.
|
---|
| 315 | if test -x $pl_dir/perl; then
|
---|
| 316 | success="yes"
|
---|
| 317 | break
|
---|
| 318 | fi
|
---|
| 319 | done
|
---|
| 320 | IFS="$pl_save_ifs"
|
---|
| 321 |
|
---|
| 322 | dnl
|
---|
| 323 | dnl Perl actually can be run; now we see if it is version 5 by
|
---|
| 324 | dnl running a sample script (which returns a "clean" version number
|
---|
| 325 | dnl and then tests the result using expr. If perl errors in some
|
---|
| 326 | dnl way (eg. broken Perl executable, missing script), we set a failure
|
---|
| 327 | dnl value ("0") and then proceed as best we can
|
---|
| 328 | dnl
|
---|
| 329 | if test $success = "yes"; then
|
---|
| 330 | try=`perl configtest.pl` || try="0"
|
---|
| 331 | try=`expr $try \> 5.000`
|
---|
| 332 | if test $try = "1"; then
|
---|
| 333 | AC_MSG_RESULT("yes")
|
---|
| 334 | else
|
---|
| 335 | success="no"
|
---|
| 336 | fi
|
---|
| 337 | fi
|
---|
| 338 |
|
---|
| 339 | if test $success = "no"; then
|
---|
| 340 | AC_MSG_RESULT("no")
|
---|
| 341 | AC_MSG_ERROR("Perl 5 not available - cannot install")
|
---|
| 342 | fi
|
---|
| 343 |
|
---|
| 344 | dnl
|
---|
[552] | 345 | dnl Check if the STL library has any known faults;
|
---|
| 346 | dnl In GCC 2.7.2.x series, some STL library headers are missing
|
---|
| 347 | dnl a file called "new" which is referred to by other headers
|
---|
| 348 | dnl (eg. vector/vector.h); if this applies, then all use of the
|
---|
| 349 | dnl STL will cause a compile fail, so we'd better let the user
|
---|
| 350 | dnl know now, before things really go wrong!
|
---|
| 351 | dnl
|
---|
| 352 | success=no
|
---|
| 353 | AC_MSG_CHECKING("whether STL library has known faults")
|
---|
| 354 |
|
---|
| 355 | dnl - first shot, try simple good old vector on its own
|
---|
| 356 | AC_TRY_COMPILE(
|
---|
| 357 | [#include <vector>
|
---|
| 358 | ],
|
---|
| 359 | [],
|
---|
| 360 | success=yes,
|
---|
| 361 | )
|
---|
| 362 |
|
---|
| 363 | dnl - try using the .h equivalent
|
---|
| 364 | if test $success = "no"; then
|
---|
| 365 | AC_TRY_COMPILE(
|
---|
| 366 | [#include <vector.h>
|
---|
| 367 | ],
|
---|
| 368 | [],
|
---|
| 369 | success="yes",
|
---|
| 370 | )
|
---|
| 371 | fi
|
---|
| 372 |
|
---|
| 373 | dnl - now try for the objectspace headers
|
---|
| 374 | if test $success = "no"; then
|
---|
| 375 | AC_TRY_COMPILE(
|
---|
| 376 | [#include <ospace\\std\\vector>
|
---|
| 377 | ],
|
---|
| 378 | [],
|
---|
| 379 | success="yes",
|
---|
| 380 | )
|
---|
| 381 | fi
|
---|
| 382 |
|
---|
| 383 | if test $success = yes; then
|
---|
| 384 | AC_MSG_RESULT("no")
|
---|
| 385 | else
|
---|
| 386 | AC_MSG_RESULT("yes")
|
---|
[684] | 387 | AC_MSG_ERROR("STL Broken - Obtain newer version of GNU C Compiler")
|
---|
[552] | 388 | fi
|
---|
| 389 |
|
---|
[2950] | 390 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
[2951] | 391 | # check for running bash under cygwin
|
---|
| 392 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 393 | then
|
---|
| 394 | gsdlos=windows
|
---|
| 395 | fi
|
---|
[557] | 396 | AC_SUBST(gsdlos)
|
---|
| 397 |
|
---|
[10856] | 398 | # check for endianness
|
---|
| 399 | AC_C_BIGENDIAN
|
---|
[684] | 400 | # ---------------------------------------------------------------------------
|
---|
| 401 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
| 402 | dnl support functions for alloca.c
|
---|
[8756] | 403 | AC_LIBOBJ([xmalloc.o])
|
---|
| 404 | AC_LIBOBJ([error])
|
---|
[684] | 405 | fi
|
---|
[552] | 406 |
|
---|
[3062] | 407 | # ---------------------------------------------------------------------------
|
---|
[552] | 408 |
|
---|
[3062] | 409 | dnl
|
---|
| 410 | dnl Locate all children of the modules folder
|
---|
| 411 | dnl
|
---|
| 412 | moduleDirs=""
|
---|
| 413 | MODULEDIRS=""
|
---|
[16619] | 414 | if test -d modules ; then
|
---|
[15300] | 415 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 416 | if test -d "$x"; then
|
---|
| 417 | d="$x/Makefile.in"
|
---|
| 418 | if test -e "$d"; then
|
---|
| 419 | dnl echo $d
|
---|
| 420 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 421 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 422 | fi
|
---|
[3062] | 423 | fi
|
---|
[15300] | 424 | done
|
---|
| 425 | echo "Making $moduleDirs in modules directory"
|
---|
| 426 | AC_SUBST(MODULEDIRS)
|
---|
| 427 | fi
|
---|
[3062] | 428 |
|
---|
[15300] | 429 |
|
---|
[684] | 430 | # ---------------------------------------------------------------------------
|
---|
[2279] | 431 | dnl for Darwin, as our packages don't (yet) correctly guess our system type.
|
---|
[8202] | 432 | dnl not needed any more?
|
---|
| 433 | dnl ac_configure_args="$ac_configure_args --build=$build --target=$target"
|
---|
[1668] | 434 |
|
---|
[13777] | 435 | # indexers needs a bindir option to get the binaries into the right place
|
---|
| 436 | gsdlprefix=`pwd`
|
---|
[19264] | 437 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
|
---|
[21377] | 438 | AC_CONFIG_SUBDIRS(common-src)
|
---|
| 439 | AC_CONFIG_SUBDIRS(build-src)
|
---|
[13777] | 440 |
|
---|
[3062] | 441 | # the list of folders in the src folder
|
---|
[16572] | 442 | srclist="common-src/Makefile \
|
---|
[21377] | 443 | build-src/Makefile"
|
---|
| 444 |
|
---|
| 445 | if test -d runtime-src; then
|
---|
| 446 | AC_CONFIG_SUBDIRS(runtime-src)
|
---|
| 447 | srclist="$srclist \
|
---|
[16572] | 448 | runtime-src/Makefile"
|
---|
[21377] | 449 | fi
|
---|
[3062] | 450 |
|
---|
[16561] | 451 | AC_OUTPUT(Makefile $srclist $moduleDirs)
|
---|
[684] | 452 |
|
---|
| 453 |
|
---|