Ignore:
Timestamp:
09/26/13 16:32:41 (8 years ago)
Author:
ak19
Message:

Adding in the enable-gnome-lib-ext configure flag for GS2's configure as well: this additionally checks out the gnome-lib package from SVN before compiling it.

File:
1 edited

Legend:

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

    r28308 r28316  
    223223fi
    224224AC_SUBST(ENABLE_LUCENE)
     225
     226
     227dnl
     228dnl Set compilation and/or sourcing of gnome-lib extension (disabled by default)
     229dnl
     230AC_ARG_ENABLE(gnome-lib-ext, [  --enable-gnome-lib-ext  Enable the gnome-lib extension], ENABLE_GNOMELIB_EXT=1, ENABLE_GNOMELIB_EXT=0)
     231if test -d ext/gnome-lib ; then
     232   AC_DEFINE(ENABLE_GNOMELIB_EXT, $ENABLE_GNOMELIB_EXT)
     233elif test -d ext/gnome-lib-minimal ; then
     234   AC_DEFINE(ENABLE_GNOMELIB_EXT, $ENABLE_GNOMELIB_EXT)
     235else
     236   # Running `svn` returns 127 if no svn is installed. It returns 1 if svn is installed,
     237   # since it suggests running svn --help. It returns 0 if running `svn --version`
     238
     239   if test $ENABLE_GNOMELIB_EXT = 1; then
     240      echo "@@@@ TOTO"
     241      svn --version
     242      result=$?
     243      if test $result = 0; then
     244         cd ext
     245     svn co http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk/src gnome-lib
     246     cd ..
     247     AC_DEFINE(ENABLE_GNOMELIB_EXT, 1)
     248      else
     249         echo "**** WARNING: No gnome-lib or gnome-lib-minimal in gs2build/ext folder. Unable to check out gnome-lib. Disabling gnome-lib-ext."
     250     AC_DEFINE(ENABLE_GNOMELIB_EXT, 0)
     251      fi
     252   fi
     253fi
     254AC_SUBST(ENABLE_GNOMELIB_EXT)
    225255
    226256
Note: See TracChangeset for help on using the changeset viewer.