]> granicus.if.org Git - apache/commitdiff
Fix broken mod_session_crypto build.
authorRainer Jung <rjung@apache.org>
Sat, 5 Jun 2010 20:58:43 +0000 (20:58 +0000)
committerRainer Jung <rjung@apache.org>
Sat, 5 Jun 2010 20:58:43 +0000 (20:58 +0000)
Using -I$APR_INCLUDEDIR and -I$APU_INCLUDEDIR breaks
for APR 2, because $APU_INCLUDEDIR is empty and a
lonely "-I" doesn't do good for the compiler.

It also breaks for VPATH builds, because then
$APR_INCLUDEDIR contains two paths.

Using $APR_INCLUDES $APU_INCLUDES fixes both problems
and seems to be the way it is done for other modules.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951766 13f79535-47bb-0310-9956-ffa450edef68

modules/session/config.m4

index 75d6a5f4c5ddd39925401892f777364021f1ebe3..0a7d5420ab7736b99948b4e65abe29d8d717365e 100644 (file)
@@ -19,7 +19,7 @@ APACHE_MODULE(session, session module, , , most)
 APACHE_MODULE(session_cookie, session cookie module, , , $session_mods_enable)
 APACHE_MODULE(session_crypto, session crypto module, , , no, [
   saved_CPPFLAGS="$CPPFLAGS"
-  CPPFLAGS="$CPPFLAGS -I$APR_INCLUDEDIR -I$APU_INCLUDEDIR"
+  CPPFLAGS="$CPPFLAGS $APR_INCLUDES $APU_INCLUDES"
   AC_CHECK_HEADERS(apr_crypto.h, [ap_HAVE_APR_CRYPTO="yes"], [ap_HAVE_APR_CRYPTO="no"])
   CPPFLAGS="$saved_CPPFLAGS"
   if test $ap_HAVE_APR_CRYPTO = "no"; then