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