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