--- parser3/Attic/configure.in 2009/04/18 09:28:58 1.110 +++ parser3/Attic/configure.in 2010/09/20 02:51:23 1.130 @@ -2,7 +2,7 @@ dnl Process this file with autoconf to p AC_INIT(README) AC_PREREQ(2.57) -AM_INIT_AUTOMAKE(parser, 3.3.1b, nodefine) +AM_INIT_AUTOMAKE(parser, 3.4.1b, nodefine) dnl expand srcdir P3S=`cd $srcdir/src ; pwd` @@ -291,7 +291,7 @@ AC_SUBST(GC_LIBS) LIBS=$SAVE_LIBS -AC_ARG_WITH(static-pcre,[ --with-static-pcre=D D is the directory where +AC_ARG_WITH(static-pcre,[ --with-static-pcre=D D is the directory where PCRE library is installed (static lib)],[ PCRE=$withval PCREINC="$PCRE/include" @@ -350,6 +350,19 @@ AC_ARG_WITH(static-xml,[ --with-static- AC_SUBST(XML_INCLUDES) AC_SUBST(XML_LIBS) +AC_ARG_WITH(curl,[ --with-curl=D D is the curl includes directory],[ + CURLINC=$withval + + if test \! -d $CURLINC -o \! -r $CURLINC/curl.h; then + AC_MSG_ERROR($CURLINC does not seem to be valid curl includes directory) + fi + + AC_DEFINE(HAVE_CURL,,curl enabled parser) + + CURL_INCLUDES="-I$CURLINC -I$CURLINC/../" +]) +AC_SUBST(CURL_INCLUDES) + AC_ARG_WITH(glib-config,[ --with-glib-config=FILE FILE is glib library configuration file (search for glib*-config)], GLIB_CONFIG=$withval @@ -513,6 +526,9 @@ dnl Checks for libraries. dnl Some systems (Solaris 2.x) require libnsl (Network Services Library) case "$host" in + *-freebsd4*) + AC_DEFINE(FREEBSD4,,FreeBSD4X target platform) + ;; *-sunos5.6* | *-solaris2.6*) AC_CHECK_LIB(xnet, main) ;; @@ -546,6 +562,7 @@ _locking \ fcntl \ lockf \ ftruncate \ +fchmod \ getrusage \ gettimeofday \ crypt \ @@ -673,6 +690,7 @@ AC_OUTPUT( src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/apr-include/Makefile + src/lib/json/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13core/Makefile