]> granicus.if.org Git - apache/commitdiff
configure: add dependency checks for mod_crypto
authorJacob Champion <jchampion@apache.org>
Tue, 31 Jan 2017 19:12:57 +0000 (19:12 +0000)
committerJacob Champion <jchampion@apache.org>
Tue, 31 Jan 2017 19:12:57 +0000 (19:12 +0000)
Don't enable mod_crypto in reallyall builds if we don't have a dev
version of APR-util (or APR 2).

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

modules/filters/config.m4

index 17af1e6efcfb2f94824f7a7760db08207f8a7ad7..5f41771555cdccdd4e76a54099d6857908128abe 100644 (file)
@@ -5,7 +5,6 @@ dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
 APACHE_MODPATH_INIT(filters)
 
 APACHE_MODULE(buffer, Filter Buffering, , , most)
-APACHE_MODULE(crypto, Symmetrical encryption / decryption, , , no)
 APACHE_MODULE(data, RFC2397 data encoder, , , )
 APACHE_MODULE(ratelimit, Output Bandwidth Limiting, , , most)
 APACHE_MODULE(reqtimeout, Limit time waiting for request from client, , , yes)
@@ -193,6 +192,25 @@ if (o) return *o;],
   fi
 ])
 
+APACHE_MODULE(crypto, Symmetrical encryption / decryption, , , no, [
+  dnl Check for the required APR-util version.
+  AC_MSG_CHECKING([for APR-util >= 1.6])
+  if test "$apr_major_version" -lt 2; then
+    case "$APU_VERSION" in
+    dnl Sorry for the quadrigraphs; this expands to "1.[0-5].*)"
+    1.@<:@0-5@:>@.*)
+      AC_MSG_RESULT(no)
+      enable_crypto=no
+      ;;
+    *)
+      AC_MSG_RESULT(yes)
+      ;;
+    esac
+  else
+    AC_MSG_RESULT([yes (APR 2)])
+  fi
+])
+
 APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])
 
 APACHE_MODPATH_FINISH