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