buildconf revision 4cb8bb9049d1643295ebda12c76dad441ddc2228
628ce9384209a460022be952ccdcc8538ad3ca84slive# Licensed to the Apache Software Foundation (ASF) under one or more
628ce9384209a460022be952ccdcc8538ad3ca84slive# contributor license agreements. See the NOTICE file distributed with
628ce9384209a460022be952ccdcc8538ad3ca84slive# this work for additional information regarding copyright ownership.
628ce9384209a460022be952ccdcc8538ad3ca84slive# The ASF licenses this file to You under the Apache License, Version 2.0
628ce9384209a460022be952ccdcc8538ad3ca84slive# (the "License"); you may not use this file except in compliance with
2b9a9a94658c0febcad2f76621b2d5ab856edc6atrawick# the License. You may obtain a copy of the License at
f6f453bf03007f391d347dc821e507cdd924d1bftrawick# Unless required by applicable law or agreed to in writing, software
f6f453bf03007f391d347dc821e507cdd924d1bftrawick# distributed under the License is distributed on an "AS IS" BASIS,
f6f453bf03007f391d347dc821e507cdd924d1bftrawick# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
f6f453bf03007f391d347dc821e507cdd924d1bftrawick# See the License for the specific language governing permissions and
f6f453bf03007f391d347dc821e507cdd924d1bftrawick# limitations under the License.
205f4595abf32ae208958d7f8abea68b335c9f39trawick# buildconf: Build the support scripts needed to compile from a
205f4595abf32ae208958d7f8abea68b335c9f39trawick# checked-out version of the source code.
1078b2c97bb39352bae929d2ed3f290a420470a7ianh# version check for AC_PROG_CC_C99
1078b2c97bb39352bae929d2ed3f290a420470a7ianhac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;q'`
1078b2c97bb39352bae929d2ed3f290a420470a7ianh# versions older than 2.50 are denied by AC_PREREQ
1078b2c97bb39352bae929d2ed3f290a420470a7ianh echo WARNING: You are using an outdated version of autoconf.
b6135e7458bf348c694157b042786562d2b86e18ianh echo WARNING: This may lead to less than optimal performance of httpd.
4224d5789080ea5586d49420da1e1996f5653bb5ianh# set a couple of defaults for where we should be looking for our support libs.
4224d5789080ea5586d49420da1e1996f5653bb5ianh# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
2d2e3667d789f527a04ce6a0089621470c8143ccmartin # Normalize
2d2e3667d789f527a04ce6a0089621470c8143ccmartin -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
1e557a77c091a1d2f2872872a7c20e9f2ffccbc1aaron# Check to be sure that we have the srclib dependencies checked-out
b393bdb2e1eabbe4b9b37c5eaeeeca799b2eb324stoddard if [ -f "${dir}/build/apr_common.m4" ]; then
b393bdb2e1eabbe4b9b37c5eaeeeca799b2eb324stoddard echo "found apr source: ${dir}"
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp echo "APR could not be found automatically."
e93cea6246ce30bf9791530a15c56f9e2eecf9cbianh echo "Please refer to the documentation on APR in the httpd INSTALL file."
960eba6c6d512880c3ed0516f5d15c6e7bc7581ajerenkrantz apr_major_version=`grep "#define APR_MAJOR_VERSION" \
960eba6c6d512880c3ed0516f5d15c6e7bc7581ajerenkrantz $apr_src_dir/include/apr_version.h | sed 's/[^0-9]//g'`
45613d36b9466a48def0498cffa07f48980720f8jerenkrantz if test -z "$apu_src_dir"; then
6f912b4ad14f622aa8d57f887c8c745e13ff6dbfjerenkrantz apu_src_dir=`echo $apr_src_dir | sed -e 's#/apr#/apr-util#g;'`
6f912b4ad14f622aa8d57f887c8c745e13ff6dbfjerenkrantz apu_src_dir="$apu_src_dir `echo $apr_src_dir | sed -e 's#/apr#/aprutil#;g'`"
1abe6003aeb198cc97263503bceed457a6c2cb4aaaron apu_src_dir="$apu_src_dir srclib/apr-util ../apr-util"
cbd8d35ca8d9780f1081f30ebfe4abda44cab7ebianh if [ -f "${dir}/Makefile.in" ]; then
cbd8d35ca8d9780f1081f30ebfe4abda44cab7ebianh echo "found apr-util source: ${dir}"
3fde4c273ea649d1320ec9c51e7d096cd9340a94jerenkrantz echo "You are using APR 1.x but APR-util 1.x was not found."
75eee56d2eaac9c27d32fc46b90bb6b1eac85359trawick echo "Please refer to the documentation on APR in the httpd INSTALL file."
52489511342e4ff3fe399e57f29d38e5c4227bc8trawick# These are temporary until Roy finishes the other build changes
ea512a4af20e6b6e6931de4929d54d93f03a0139ianh# Remove autoconf 2.5x cache directories
eadb64379834961679105b7fd4178253fbb9f95dtrawick# end temporary stuff
b8daf4c5ea3d5bb2111b1b021de6d3cd891e403bcoarcross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
1e83c8de3aa48b316b28057d53995272baf1260cwrowe (cd srclib/apr-util && ./buildconf --with-apr=$apr_src_dir) || {
7f683bb300df767164724ebc664f339ac396b434dougmcp $apr_src_dir/build/config.guess $apr_src_dir/build/config.sub \
7f683bb300df767164724ebc664f339ac396b434dougm $apr_src_dir/build/PrintPath $apr_src_dir/build/apr_common.m4 \
4760aa1f19600972cf531ad7da73c1ee5a0225cedougm# Remove any libtool files so one can switch between libtool 1.3
4760aa1f19600972cf531ad7da73c1ee5a0225cedougm# and libtool 1.4 by simply rerunning the buildconf script.
d5d164b22a2004abed640cb52fc275f00ed92f69jerenkrantz# Optionally copy libtool-1.3.x files
f1fe10268cdadb775eef841aa4fa7305291d35fdtrawick${AUTOHEADER:-autoheader} 2>&1 | grep -v "$cross_compile_warning"
f04ad0ba7fe0eea5ea7a92f852cef75747ab2090trawick${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
65a1588701f9e5d0f62261d0da85733a23edc92ftrawick# Remove autoconf 2.5x cache directories
65a1588701f9e5d0f62261d0da85733a23edc92ftrawick# Remove possible bsd_converted file
d5d164b22a2004abed640cb52fc275f00ed92f69jerenkrantzif [ -f `which cut` ]; then
360a9d933a8c25f5975e0ddc883607a5d37e408estoddard ( VMMN=`build/get-version.sh mmn include/ap_mmn.h MODULE_MAGIC_NUMBER`
360a9d933a8c25f5975e0ddc883607a5d37e408estoddard EPOCH=`build/get-version.sh epoch include/ap_release.h AP_SERVER`
360a9d933a8c25f5975e0ddc883607a5d37e408estoddard REVISION=`build/get-version.sh all include/ap_release.h AP_SERVER`
bb6a7fc0427d0d197c50de34b94a0d23e5732696wrowe# ensure that the ap_expr expression parser sources are never regenerated
bb6a7fc0427d0d197c50de34b94a0d23e5732696wrowe# when running make