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