[Modcplusplus-devel] (johnksterling) mod_cplusplus configure.in
Brought to you by:
gr84b8,
johnksterling
|
From: Mod C. C. L. <mod...@so...> - 2004-05-12 01:34:36
|
Mod Cplusplus CVS committal
Author : johnksterling
Module : mod_cplusplus
Dir : mod_cplusplus
Modified Files:
configure.in
Log Message:
we were not able to build against an installation with apr separate from apache. Submitted by William F. Dowling <wil...@th...>
===================================================================
RCS file: /cvsroot/modcplusplus/mod_cplusplus/configure.in,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- configure.in 7 May 2004 23:26:24 -0000 1.17
+++ configure.in 12 May 2004 01:34:23 -0000 1.18
@@ -5,6 +5,7 @@
AC_PROG_CXX
AM_PROG_LIBTOOL
+AC_CONFIG_HEADERS(config.h)
dnl hack to get shlib extension
AC_MSG_CHECKING(what the shared library extension is)
SHLIB_EXT=`echo /usr/lib/libc.* | sed -e 's@.*\.@@'`
@@ -33,14 +34,25 @@
else
AC_MSG_RESULT($searchfile not found)
fi
- AC_MSG_CHECKING(for alternative default packaging)
- searchfile="$withval/include/apache2/httpd.h"
+ AC_MSG_CHECKING(for alternative default packaging)
+ searchfile="$withval/include/apache2/httpd.h"
if test -f $searchfile ; then
HTTPD_DIR=`cd $withval; pwd`
CPPFLAGS="$CPPFLAGS -I$HTTPD_DIR/include/apache2"
else
AC_MSG_RESULT($searchfile not found)
fi
+ AC_MSG_CHECKING(for apr.h)
+ AC_ARG_WITH(apr_path, [ --with-apr_path Specify path to apr include directory ],
+ [
+ if test ! -f $withval/apr.h; then
+ AC_MSG_ERROR($withval not a valid path to apr.h)
+ else
+ CPPFLAGS="$CPPFLAGS -I$withval"
+ AC_MSG_RESULT(found $withval/apr.h)
+ fi
+ ],)
+
AC_MSG_RESULT(found $HTTPD_DIR)
],[
|