Ignore:
Timestamp:
2009-12-18T14:28:14+13:00 (13 years ago)
Author:
ak19
Message:

Now the configure, configure.in, Makefile.in and config.h.in of gs2build and greenstone2 are the same, so that they can just be obtained from one source in future. Need to include configtest.pl into gs2build for now to get the changes to configure.in to still work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gs2build/configure.in

    r21371 r21376  
    7272AC_DEFINE(USE_SQLITE, $USE_SQLITE)
    7373AC_SUBST(USE_SQLITE)
     74
     75dnl
     76dnl Set use of Apache httpd (disabled by default)
     77dnl
     78if test -d runtime-src; then
     79   AC_ARG_ENABLE(apache-httpd, [  --enable-apache-httpd  Enable Apache httpd support], USE_APACHE_HTTPD=1, USE_APACHE_HTTPD=0)
     80   AC_DEFINE(USE_APACHE_HTTPD, $USE_APACHE_HTTPD)
     81   AC_SUBST(USE_APACHE_HTTPD)
     82fi
    7483
    7584dnl
     
    229238dnl check for -lcrypt:
    230239AC_HAVE_LIBRARY(crypt)
    231 if test $ENABLE_ACCENTFOLD = 1; then
    232 AC_HAVE_LIBRARY(iconv)
    233 fi
     240#if test $ENABLE_ACCENTFOLD = 1; then
     241#AC_HAVE_LIBRARY(iconv)
     242#fi
    234243
    235244dnl Checks for header files.
     
    292301dnl
    293302AC_LANG_CPLUSPLUS
     303
     304dnl
     305dnl Now check that Perl is actually around, and can be found
     306dnl
     307AC_MSG_CHECKING(that Perl 5 is available)
     308success="no"
     309pl_path="$PATH"
     310IFS="${IFS=   }"; pl_save_ifs="$IFS"; IFS=":"
     311for pl_dir in $pl_path; do
     312  test -z "$pl_dir" && pl_dir=.
     313  if test -x $pl_dir/perl; then
     314    success="yes"
     315    break
     316  fi
     317done
     318IFS="$pl_save_ifs"
     319
     320dnl
     321dnl Perl actually can be run; now we see if it is version 5 by
     322dnl running a sample script (which returns a "clean" version number
     323dnl and then tests the result using expr.  If perl errors in some
     324dnl way (eg. broken Perl executable, missing script), we set a failure
     325dnl value ("0") and then proceed as best we can
     326dnl
     327if test $success = "yes"; then
     328try=`perl configtest.pl` || try="0"
     329try=`expr $try \> 5.000`
     330if test $try = "1"; then
     331AC_MSG_RESULT("yes")
     332else
     333success="no"
     334fi
     335fi
     336
     337if test $success = "no"; then
     338AC_MSG_RESULT("no")
     339AC_MSG_ERROR("Perl 5 not available - cannot install")
     340fi
    294341
    295342dnl
     
    386433# indexers needs a bindir option to get the binaries into the right place
    387434gsdlprefix=`pwd`
    388 ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos "
    389 AC_CONFIG_SUBDIRS(common-src build-src)
     435ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
     436AC_CONFIG_SUBDIRS(common-src)
     437AC_CONFIG_SUBDIRS(build-src)
    390438
    391439# the list of folders in the src folder
     
    393441         build-src/Makefile"
    394442
     443if test -d runtime-src; then
     444   AC_CONFIG_SUBDIRS(runtime-src)
     445   srclist="$srclist \
     446         runtime-src/Makefile"
     447fi
     448
    395449AC_OUTPUT(Makefile $srclist $moduleDirs)
    396450
Note: See TracChangeset for help on using the changeset viewer.