Diff for /parser3/Attic/configure.in between versions 1.10 and 1.15

version 1.10, 2002/02/18 08:39:14 version 1.15, 2002/03/11 07:56:32
Line 3  AC_INIT(README) Line 3  AC_INIT(README)
 AM_INIT_AUTOMAKE(parser, 3.0b, nodefine)  AM_INIT_AUTOMAKE(parser, 3.0b, nodefine)
   
 dnl expand srcdir  dnl expand srcdir
 P3S=`cd $srcdir ; pwd`  P3S=`cd $srcdir/src ; pwd`
 AC_SUBST(P3S)  AC_SUBST(P3S)
   
 PARSER_VERSION=$VERSION  PARSER_VERSION=$VERSION
Line 35  fi Line 35  fi
 ]  ]
 )  )
   
 AC_ARG_WITH(apache13,[  --with-apache13=D       D is the Apache13 source distribution directory  AC_ARG_ENABLE(execs, [  --disable-execs         to disable any execs
                           builds library for apache_module using that dir                            (file::exec, file::cgi, unix mail:send)],
                           (do not add /src)],  [
         APACHE13=$withval  if test "$enableval" = "no"; then
     if test \! -f "$APACHE13/src/include/httpd.h"; then          AC_DEFINE(NO_PA_EXECS,,pa_exec disabled)
         AC_MSG_ERROR($APACHE13 does not seem to be valid Apache13 source distribution directory)  fi
     fi  ]
 )  )
 AC_SUBST(APACHE13)  
 AM_CONDITIONAL(COMPILE_APACHE13_MODULE, test -n "$APACHE13")  
   
   
 AC_ARG_WITH(pathlink,[  --with-pathlink=LKEY    put dynamic libraries paths to binary  AC_ARG_WITH(pathlink,[  --with-pathlink=LKEY    put dynamic libraries paths to binary
                           using linker key (-R, -rpath-link)],                            using linker key (-R, -rpath-link)],
Line 57  AC_ARG_WITH(glib-config,[  --with-glib-c Line 54  AC_ARG_WITH(glib-config,[  --with-glib-c
         GLIB_CONFIG=$withval          GLIB_CONFIG=$withval
 )  )
   
 AC_ARG_WITH(gnome-xml,[  --with-gnome-xml=D      D is the directory where  AC_ARG_WITH(shared-xml,[  --with-shared-xml=D     D is the directory where
                           Gnome XML libraries are installed],[                            Gnome XML libraries are installed (shared libs)],[
     GNOME_XML=$withval      GNOME_XML=$withval
     XMLBIN_DIR="$GNOME_XML/bin"      XMLBIN="$GNOME_XML/bin"
     XMLINC_DIR="$GNOME_XML/include"      XMLINC="$GNOME_XML/include"
     XMLLIB_DIR="$GNOME_XML/lib"      XMLLIB="$GNOME_XML/lib"
   
     if test \! -d $XMLBIN_DIR -o \! -d $XMLINC_DIR -o \! -d $XMLLIB_DIR; then      if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
         AC_MSG_ERROR($GNOME_XML does not seem to be valid Gnome installation directory)          AC_MSG_ERROR($GNOME_XML does not seem to be valid Gnome installation directory)
     fi      fi
   
     AC_DEFINE(XML,,xml-abled parser)      AC_DEFINE(XML,,xml-abled parser)
           
     LIBXML2_SO_NAME=`cd $XMLLIB_DIR ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`      LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
     if test -z "$LIBXML2_SO_NAME"; then      LIBGDOME_SO_NAME=`cd $XMLLIB ; ls libgdome.?? libgdome.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
         AC_MSG_ERROR($LIBXML_DIR does not containt XML2 dynamic library)      LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
     fi      LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
     LIBGDOME_SO_NAME=`cd $XMLLIB_DIR ; ls libgdome.?? libgdome.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`  
     if test -z "$LIBGDOME_SO_NAME"; then  
         AC_MSG_ERROR($LIBXML_DIR does not containt GDOME dynamic library)  
     fi  
     LIBXSLT_SO_NAME=`cd $XMLLIB_DIR ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`  
     if test -z "$LIBXSLT_SO_NAME"; then  
         AC_MSG_ERROR($LIBXML_DIR does not containt XSLT dynamic library)  
     fi  
     LIBEXSLT_SO_NAME=`cd $XMLLIB_DIR ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`  
     if test -z "$LIBEXSLT_SO_NAME"; then  
         AC_MSG_ERROR($LIBXML_DIR does not containt EXSLT dynamic library)  
     fi  
   
     if test -z "$GLIB_CONFIG"; then      if test -z "$GLIB_CONFIG"; then
             GLIB_CONFIG=$XMLBIN_DIR/glib-config              GLIB_CONFIG=$XMLBIN/glib-config
             if test \! -x $GLIB_CONFIG; then              if test \! -x $GLIB_CONFIG; then
                 GLIB_CONFIG=glib-config                  GLIB_CONFIG=glib-config
             fi              fi
Line 96  AC_ARG_WITH(gnome-xml,[  --with-gnome-xm Line 81  AC_ARG_WITH(gnome-xml,[  --with-gnome-xm
     GLIB_CFLAGS=`$GLIB_CONFIG --cflags`      GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
     GLIB_LIBS=`$GLIB_CONFIG --libs`      GLIB_LIBS=`$GLIB_CONFIG --libs`
   
     XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC_DIR -I$XMLINC_DIR/libgdome -I$XMLINC_DIR/libxml2"      XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
     XML_LIBS="$GLIB_LIBS -L$XMLLIB_DIR -l$LIBXML2_SO_NAME -l$LIBGDOME_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"      XML_LIBS="$GLIB_LIBS -L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBGDOME_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
     if test \! -z "$LD_PATHLINK"; then      if test \! -z "$LD_PATHLINK"; then
         XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB_DIR"          XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
     fi      fi
 ])  ])
 AC_SUBST(XML_INCLUDES)  
 AC_SUBST(XML_LIBS)  
   
 AC_ARG_WITH(db2,[  --with-db2[=D]          D is the DB2 installation directory  AC_ARG_WITH(static-xml,[  --with-static-xml=D     D is the directory where
                           DO NOT FORGET TO COMPILE DB2 WITH EXCEPTIONS SUPPORT!],                            Gnome XML libraries are installed (static libs)],[
         DB2_INST=$withval      GNOME_XML=$withval
     if test \! -f "$DB2_INST/include/db.h"; then      XMLBIN="$GNOME_XML/bin"
         AC_MSG_ERROR($DB2_INST does not seem to be valid DB2 installation directory)      XMLINC="$GNOME_XML/include"
       XMLLIB="$GNOME_XML/lib"
   
       if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
           AC_MSG_ERROR($GNOME_XML does not seem to be valid Gnome installation directory)
     fi      fi
     if test \! -f "$DB2_INST/lib/libdb.a"; then  
         AC_MSG_ERROR($DB2_INST does not seem to be valid DB2 installation directory)      AC_DEFINE(XML,,xml-abled parser)
   
       if test -z "$GLIB_CONFIG"; then
               GLIB_CONFIG=$XMLBIN/glib-config
               if test \! -x $GLIB_CONFIG; then
                   GLIB_CONFIG=glib-config
               fi
     fi      fi
       GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
   
   dnl  '-L/usr/local/lib -lglib' -> /usr/local/lib
   changequote(, )dnl
       GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
       GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
   changequote([, ])dnl
       XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
       XML_LIBS="$XMLLIB/libgdome.a $XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a $GLIB_DIR/lib$GLIB_NAME.a"
   ])
   AC_SUBST(XML_INCLUDES)
   AC_SUBST(XML_LIBS)
   
     AC_MSG_CHECKING(version of LIBDB)  AC_ARG_WITH(apache13,[  --with-apache13=D       D is the Apache13 source distribution directory
     AC_TRY_COMPILE(                            builds library for apache_module using that dir
     #include <$DB2_INST/include/db.h>                            (do not add /src)],
     ,          APACHE13=$withval
     #ifdef DB_VERSION_MAJOR      if test \! -f "$APACHE13/src/include/httpd.h"; then
     #   if DB_VERSION_MAJOR!=2          AC_MSG_ERROR($APACHE13 does not seem to be valid Apache13 source distribution directory)
     #           error Parser needs LIBDB of 2.x.x version to compile      fi
     #   endif  
     #else  
     #   error DB_VERSION_MAJOR not defined  
     #endif  
     ,[  
         AC_MSG_RESULT(ok)  
         DB2=1  
         AC_DEFINE(DB2,,DB2-abled parser)  
         DB2_INCLUDES="-I$DB2_INST/include"  
         DB2_LIBS="-L$DB2_INST/lib -ldb"  
     ],  
         AC_MSG_ERROR(bad, we need 2.x.x version)  
     )   
 )  )
 AC_SUBST(DB2_INCLUDES)  AC_SUBST(APACHE13)
 AC_SUBST(DB2_LIBS)  AM_CONDITIONAL(COMPILE_APACHE13_MODULE, test -n "$APACHE13")
   
   
 dnl AC_CANONICAL_SYSTEM  dnl AC_CANONICAL_SYSTEM
 AC_CANONICAL_HOST  AC_CANONICAL_HOST
Line 347  if test "$e_libdir" = "\${exec_prefix}/l Line 340  if test "$e_libdir" = "\${exec_prefix}/l
   
     # Let make expand exec_prefix.      # Let make expand exec_prefix.
     e_exec_prefix=$exec_prefix      e_exec_prefix=$exec_prefix
     test "x$e_exec_prefix" = xNONE && e_exec_prefix=$prefix      test "x$e_exec_prefix" = xNONE && e_exec_prefix=$e_prefix
   
     # expand apostrophed      # expand apostrophed
     test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"      test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"
Line 361  dnl Output makefiles Line 354  dnl Output makefiles
   
 AM_CONFIG_HEADER(src/include/pa_config_auto.h)  AM_CONFIG_HEADER(src/include/pa_config_auto.h)
 AC_OUTPUT(Makefile src/Makefile src/libltdl/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/patches/Makefile src/pcre/Makefile src/targets/Makefile src/targets/cgi/pa_config_paths.h src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/parser3.charsets/Makefile etc/parser3.conf etc/Makefile)  AC_OUTPUT(Makefile src/Makefile src/libltdl/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/patches/Makefile src/pcre/Makefile src/targets/Makefile src/targets/cgi/pa_config_paths.h src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/parser3.charsets/Makefile etc/parser3.conf etc/Makefile)
   
   
   

Removed from v.1.10  
changed lines
  Added in v.1.15


E-mail: