]> granicus.if.org Git - apache/blobdiff - buildconf
update transformation
[apache] / buildconf
index 67dee9174d67f908a362b02a5177fefb3145089a..38969681ee2e95fb84f79a960fa3b87ba1ebe3b4 100755 (executable)
--- a/buildconf
+++ b/buildconf
 # buildconf: Build the support scripts needed to compile from a
 #            checked-out version of the source code.
 
+# version check for AC_PROG_CC_C99
+ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;q'`
+case "$ac_version" in
+# versions older than 2.50 are denied by AC_PREREQ
+2.5*)
+    echo WARNING: You are using an outdated version of autoconf.
+    echo WARNING: This may lead to less than optimal performance of httpd.
+    echo WARNING: You should use autoconf 2.60 or newer.
+    sleep 1
+    ;;
+esac
+
 # set a couple of defaults for where we should be looking for our support libs.
 # can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
 
@@ -55,6 +67,7 @@ done
 should_exit=0
 apr_found=0
 apu_found=0
+apr_major_version=2
 
 for dir in $apr_src_dir
 do
@@ -68,12 +81,9 @@ done
 
 if [ $apr_found -lt 1 ]; then
     echo ""
-    echo "You don't have a copy of the apr source in srclib/apr. "
-    echo "Please get the source using the following instructions," 
-    echo "or specify the location of the source with " 
-    echo "--with-apr=[path to apr] :"
+    echo "APR could not be found automatically."
     echo ""
-    echo "   svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr"
+    echo "Please refer to the documentation on APR in the httpd INSTALL file."
     echo ""
     should_exit=1
 else
@@ -100,12 +110,9 @@ if [ $apr_major_version -lt 2 ] ; then
 
     if [ $apu_found -lt 1 ]; then
         echo ""
-        echo "You don't have a copy of the apr-util source in srclib/apr-util. "
-        echo "Please get one the source using the following instructions, "
-        echo "or specify the location of the source with "
-        echo "--with-apr-util=[path to apr-util]:"
+        echo "You are using APR 1.x but APR-util 1.x was not found."
         echo ""
-        echo "   svn co http://svn.apache.org/repos/asf/apr/apr-util/trunk srclib/apr-util"
+        echo "Please refer to the documentation on APR in the httpd INSTALL file."
         echo ""
         should_exit=1
     fi
@@ -194,9 +201,13 @@ ${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
 # Remove autoconf 2.5x cache directories
 rm -rf autom4te*.cache
 
+# Remove possible bsd_converted file
+rm -rf bsd_converted
+
 if [ -f `which cut` ]; then
   echo rebuilding rpm spec file
   ( VMMN=`build/get-version.sh mmn include/ap_mmn.h MODULE_MAGIC_NUMBER`
+    EPOCH=`build/get-version.sh epoch include/ap_release.h AP_SERVER`
     REVISION=`build/get-version.sh all include/ap_release.h AP_SERVER`
     VERSION=`echo $REVISION | cut -d- -s -f1`
     RELEASE=`echo $REVISION | cut -d- -s -f2`
@@ -208,18 +219,17 @@ if [ -f `which cut` ]; then
     sed -e "s/APACHE_VERSION/$VERSION/" \
         -e "s/APACHE_RELEASE/$RELEASE/" \
         -e "s/APACHE_MMN/$VMMN/" \
+        -e "s/APACHE_EPOCH/$EPOCH/" \
     > httpd.spec )
 fi
 
-# ensure that the mod_ssl expression parser sources are never regenerated
+# ensure that the ap_expr expression parser sources are never regenerated
 # when running make
-echo fixing timestamps for mod_ssl sources
-cd modules/ssl
-touch ssl_expr_parse.y
-sleep 1
-touch ssl_expr_parse.c ssl_expr_parse.h ssl_expr_scan.l
+echo fixing timestamps for ap_expr sources
+cd server
+touch util_expr_parse.y util_expr_scan.l
 sleep 1
-touch ssl_expr_scan.c
-cd ../..
+touch util_expr_parse.c util_expr_parse.h util_expr_scan.c
+cd ..
 
 exit 0