buildconf revision 0202d2114cc6d7042995100519cce45c808c153b
efe780dcf13b2b95effabf897d694d8f23feac74trawick# Copyright 2000-2004 Apache Software Foundation
3f414998b6d7e96a9f699621352fc61516b1a316chrisd# Licensed under the Apache License, Version 2.0 (the "License");
3f414998b6d7e96a9f699621352fc61516b1a316chrisd# you may not use this file except in compliance with the License.
9d766f93eefb9358f9a24bb99ff424ad399b9b39minfrin# You may obtain a copy of the License at
5725c3eb0c6c572049ba61dedd92b4e5da078081minfrin# Unless required by applicable law or agreed to in writing, software
5725c3eb0c6c572049ba61dedd92b4e5da078081minfrin# distributed under the License is distributed on an "AS IS" BASIS,
5725c3eb0c6c572049ba61dedd92b4e5da078081minfrin# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1122585e1e00bb81e9d0f054bf5c318cec23aa7dminfrin# See the License for the specific language governing permissions and
1122585e1e00bb81e9d0f054bf5c318cec23aa7dminfrin# limitations under the License.
fd292d721a12f04a14e7f2ce30545840c041c7d5trawick# buildconf: Build the support scripts needed to compile from a
fd292d721a12f04a14e7f2ce30545840c041c7d5trawick# checked-out version of the source code.
aaa3098119e0d67a8bf15a00903da7d3258d8148rjung# set a couple of defaults for where we should be looking for our support libs.
aaa3098119e0d67a8bf15a00903da7d3258d8148rjung# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
b4e664baba9a4be0457c31f84b3dcc4c31f2cb07kbrand # Normalize
b4e664baba9a4be0457c31f84b3dcc4c31f2cb07kbrand -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
9b0076ddd1103e5fa9c1f9bafde4b06ce244fbaecovener# Check to be sure that we have the srclib dependencies checked-out
249d09d51808cb7981af99762c3b3736ca126cd5jkaluzaif [ ! -d "$apr_src_dir" -o ! -f "$apr_src_dir/build/apr_common.m4" ]; then
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza echo "You don't have a copy of the apr source in $apr_src_dir. "
56589be3d7a3e9343370df240010c6928cc78b39jkaluza echo "Please get the source using the following instructions,"
56589be3d7a3e9343370df240010c6928cc78b39jkaluza echo "or specify the location of the source with "
56589be3d7a3e9343370df240010c6928cc78b39jkaluza echo "--with-apr=[path to apr] :"
8c4967445b49a1612b3f98c1dada65e597ecfe26trawick echo " cd srclib"
8c4967445b49a1612b3f98c1dada65e597ecfe26trawick echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login"
61fefed8ce5211c31b44f3a38a6e76ca055e5780trawick echo " (password 'anoncvs')"
61fefed8ce5211c31b44f3a38a6e76ca055e5780trawick echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr"
6001d914962deabb83a46251001612e969bdf67ajimif [ ! -d "$apu_src_dir" -o ! -f "$apu_src_dir/Makefile.in" ]; then
c4e8006db0cf457c68876d7d4c30dcc451d8cba7jkaluza echo "You don't have a copy of the apr-util source in $apu_src_dir. "
c4e8006db0cf457c68876d7d4c30dcc451d8cba7jkaluza echo "Please get one the source using the following instructions, "
c4e8006db0cf457c68876d7d4c30dcc451d8cba7jkaluza echo "or specify the location of the source with "
652bacc79dd7f980249784cc8c4838e8f1de7e8acovener echo "--with-apr-util=[path to apr-util]:"
652bacc79dd7f980249784cc8c4838e8f1de7e8acovener echo " cd srclib"
652bacc79dd7f980249784cc8c4838e8f1de7e8acovener echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login"
f4db898517ccc6ef1a403630de56918286d3a47eminfrin echo " (password 'anoncvs')"
f4db898517ccc6ef1a403630de56918286d3a47eminfrin echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr-util"
067698ad30941e38ef5d7f95f1c2736c2ebc5cb9humbedooh# These are temporary until Roy finishes the other build changes
d8a6de5eec06d4136839c8f7a56a6ab5acd2d3behumbedooh# Remove autoconf 2.5x's cache directory
921d32d80d8271da08f12fc374a69cb36d1d63b3covener# end temporary stuff
86a5604df726638a2b8085e993b4b79c4b3a5262covenercross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
4d12805e6c18253040223ea637acd6b3b3c18f60jortoncp $apr_src_dir/build/config.guess $apr_src_dir/build/config.sub \
4d12805e6c18253040223ea637acd6b3b3c18f60jorton $apr_src_dir/build/PrintPath $apr_src_dir/build/apr_common.m4 \
4d12805e6c18253040223ea637acd6b3b3c18f60jorton $apr_src_dir/build/find_apr.m4 $apu_src_dir/build/find_apu.m4 build
4d12805e6c18253040223ea637acd6b3b3c18f60jorton# Remove any libtool files so one can switch between libtool 1.3
e5d909f2b06bd880fb3675cd49363df981caa631trawick# and libtool 1.4 by simply rerunning the buildconf script.
a4df2cd1e1391575a327c2a90ba4315f805a0a78covener# Optionally copy libtool-1.3.x files
63a5ea80bddcc84a462e40f402b4f330e0e05411covener${AUTOHEADER:-autoheader} 2>&1 | grep -v "$cross_compile_warning"
986f3ea2c314d4d4b3b937149853a0f23f6119aaminfrin${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
986f3ea2c314d4d4b3b937149853a0f23f6119aaminfrin# Remove autoconf 2.5x's cache directory
65a4e663b82f8bce28ac22ab2edfd7502de36998sfif [ -f `which cut` ]; then
c7de1955eb0eaeabf7042902476397692672d549sf ( VMMN=`build/get-version.sh mmn include/ap_mmn.h MODULE_MAGIC_NUMBER`
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin REVISION=`build/get-version.sh all include/ap_release.h AP_SERVER`
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin# ensure that the mod_ssl expression parser sources are never regenerated
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin# when running make