buildconf revision f14fe1f44cb7018927ee0e31eb959cba8dc3700b
6de8046f8f7e07cd83895a528df25d977e502c76nd# Copyright 1999-2004 The Apache Software Foundation
0202d2114cc6d7042995100519cce45c808c153bnd# Licensed under the Apache License, Version 2.0 (the "License");
0202d2114cc6d7042995100519cce45c808c153bnd# you may not use this file except in compliance with the License.
0202d2114cc6d7042995100519cce45c808c153bnd# You may obtain a copy of the License at
0202d2114cc6d7042995100519cce45c808c153bnd# Unless required by applicable law or agreed to in writing, software
0202d2114cc6d7042995100519cce45c808c153bnd# distributed under the License is distributed on an "AS IS" BASIS,
0202d2114cc6d7042995100519cce45c808c153bnd# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0202d2114cc6d7042995100519cce45c808c153bnd# See the License for the specific language governing permissions and
0202d2114cc6d7042995100519cce45c808c153bnd# limitations under the License.
893328ef6ff86d0ca27774778d84410353789fb0fielding# buildconf: Build the support scripts needed to compile from a
893328ef6ff86d0ca27774778d84410353789fb0fielding# checked-out version of the source code.
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# set a couple of defaults for where we should be looking for our support libs.
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
893328ef6ff86d0ca27774778d84410353789fb0fielding# Check to be sure that we have the srclib dependencies checked-out
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzif [ ! -d "$apr_src_dir" -o ! -f "$apr_src_dir/build/apr_common.m4" ]; then
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "You don't have a copy of the apr source in $apr_src_dir. "
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "Please get the source using the following instructions,"
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "or specify the location of the source with "
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "--with-apr=[path to apr] :"
f14fe1f44cb7018927ee0e31eb959cba8dc3700bjorton echo " svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr"
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzif [ ! -d "$apu_src_dir" -o ! -f "$apu_src_dir/Makefile.in" ]; then
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "You don't have a copy of the apr-util source in $apu_src_dir. "
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "Please get one the source using the following instructions, "
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "or specify the location of the source with "
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "--with-apr-util=[path to apr-util]:"
f14fe1f44cb7018927ee0e31eb959cba8dc3700bjorton echo " svn co http://svn.apache.org/repos/asf/apr/apr-util/trunk srclib/apr-util"
893328ef6ff86d0ca27774778d84410353789fb0fielding# These are temporary until Roy finishes the other build changes
c066cdcb75ca262e424345b347b86e7ce2285869jerenkrantz# Remove autoconf 2.5x's cache directory
893328ef6ff86d0ca27774778d84410353789fb0fielding# end temporary stuff
893328ef6ff86d0ca27774778d84410353789fb0fieldingcross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzcp $apr_src_dir/build/config.guess $apr_src_dir/build/config.sub \
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz $apr_src_dir/build/PrintPath $apr_src_dir/build/apr_common.m4 \
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz $apr_src_dir/build/find_apr.m4 $apu_src_dir/build/find_apu.m4 build
1d13cbde60ace1b56ca57b9f0f74168bb1288174trawick# Remove any libtool files so one can switch between libtool 1.3
1d13cbde60ace1b56ca57b9f0f74168bb1288174trawick# and libtool 1.4 by simply rerunning the buildconf script.
9045837071eae7a4b55204a21f31ccee17749af3jerenkrantz# Optionally copy libtool-1.3.x files
544c23d79a3a7596a3612224ed3ac9fa8372929djerenkrantz${AUTOHEADER:-autoheader} 2>&1 | grep -v "$cross_compile_warning"
544c23d79a3a7596a3612224ed3ac9fa8372929djerenkrantz${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
0464cb46220c1025cbfe1365a6bd352e67d2e766jorton# Remove autoconf 2.5x's cache directory
4028d805f3ab215e39bae405d35e001a538bc50eminfrinif [ -f `which cut` ]; then
4028d805f3ab215e39bae405d35e001a538bc50eminfrin ( VMMN=`build/get-version.sh mmn include/ap_mmn.h MODULE_MAGIC_NUMBER`
4028d805f3ab215e39bae405d35e001a538bc50eminfrin REVISION=`build/get-version.sh all include/ap_release.h AP_SERVER`
f0528865c2e6c22ecc51eeecc496251489029bddjorton# ensure that the mod_ssl expression parser sources are never regenerated
f0528865c2e6c22ecc51eeecc496251489029bddjorton# when running make