You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2007/03/31 08:45:51 UTC

svn commit: r524376 - /tomcat/connectors/trunk/jni/native/build/tcnative.m4

Author: mturk
Date: Fri Mar 30 23:45:51 2007
New Revision: 524376

URL: http://svn.apache.org/viewvc?view=rev&rev=524376
Log:
Check for minimum APR version during configure

Modified:
    tomcat/connectors/trunk/jni/native/build/tcnative.m4

Modified: tomcat/connectors/trunk/jni/native/build/tcnative.m4
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/build/tcnative.m4?view=diff&rev=524376&r1=524375&r2=524376
==============================================================================
--- tomcat/connectors/trunk/jni/native/build/tcnative.m4 (original)
+++ tomcat/connectors/trunk/jni/native/build/tcnative.m4 Fri Mar 30 23:45:51 2007
@@ -9,6 +9,20 @@
     AC_MSG_ERROR(APR could not be located. Please use the --with-apr option.)
   fi
 
+  sapr_pversion="`$apr_config --version`"
+  if test -z "$sapr_pversion"; then
+    AC_MSG_ERROR(APR config could not be located. Please use the --with-apr option.)
+  fi
+  sapr_version="`echo $sapr_pversion|sed -e 's/\([a-z]*\)$/.\1/'`"
+  IFS=.; set $sapr_version; IFS=' '
+  if test "$1" -lt "1"; then
+    AC_MSG_ERROR(You need APR version 1.2.1 or newer installed.)
+  else
+    if test "$2" -lt "2"; then
+      AC_MSG_ERROR(You need APR version 1.2.1 or newer installed.)
+    fi
+  fi
+
   APR_BUILD_DIR="`$apr_config --installbuilddir`"
 
   dnl make APR_BUILD_DIR an absolute directory (we'll need it in the



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org