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