]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
added check for minimum APR version.
authorGuenter Knauf <fuankg@apache.org>
Wed, 8 Aug 2007 13:08:52 +0000 (13:08 +0000)
committerGuenter Knauf <fuankg@apache.org>
Wed, 8 Aug 2007 13:08:52 +0000 (13:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@563847 13f79535-47bb-0310-9956-ffa450edef68

build/NWGNUenvironment.inc
build/NWGNUmakefile

index 631d6ec66fbc0f69628088530de514ce1641e69a..d79eedb495ba52be2e40921280f67ad28cee2aee 100644 (file)
@@ -119,6 +119,9 @@ LIB = mwldnlm -type library -w nocmdline
 # Setup build tools
 AWK    = awk
 
+# Define minimum APR version to check for
+APR_WANTED = 1003000
+
 ifdef IPV6
 ifndef USE_STDSOCKETS
 USE_STDSOCKETS=1
index 43bd741965d6a7627aee5eb7af3580c983835987..8cd578498b65364f2065ca418ea81c4bbe30000c 100644 (file)
@@ -21,7 +21,7 @@ FILES_prebuild_headers = \
        $(PCRE)/pcre.h \
        $(EOLIST) 
     
-nlms :: $(NWOS)/httpd.imp
+nlms :: chkapr $(NWOS)/httpd.imp
 
 $(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
        @echo Generating $(subst /,\,$@)
@@ -52,6 +52,13 @@ $(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
        @echo Creating $(subst /,\,$@)
        copy $< $(subst /,\,$(PCRE))\$(@F)
 
+#
+# Check for minimum APR version
+#
+chkapr: $(APR)\build\nw_ver.awk $(APR)\include\apr_version.h
+       @echo Checking for APR version...
+       @$(AWK) -v WANTED=$(APR_WANTED) -f $^
+
 #
 # You can use this target if all that is needed is to copy files to the
 # installation area