buildconf revision 53359f0fef553ad61e2d1e871dc007c542844f86
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat# Copyright 1999-2005 The Apache Software Foundation or its licensors, as
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat# Licensed under the Apache License, Version 2.0 (the "License");
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat# you may not use this file except in compliance with the License.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat# You may obtain a copy of the License at
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat# Unless required by applicable law or agreed to in writing, software
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# distributed under the License is distributed on an "AS IS" BASIS,
0ce7569856cc7a366f58688f6b6a71610167fc76Johannes Kastl# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat# See the License for the specific language governing permissions and
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat# limitations under the License.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat# buildconf: Build the support scripts needed to compile from a
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat# checked-out version of the source code.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat# set a couple of defaults for where we should be looking for our support libs.
14d9c0f09d1a55d124ef210a4b4e205c9fe7596cStéphane Graber# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
96283b546081e7ff709968378fca25cb44f1ab6cStéphane Graber -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat# Check to be sure that we have the srclib dependencies checked-out
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat if [ -d "${dir}" -a -f "${dir}/build/apr_common.m4" ]; then
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat echo "found apr source: ${dir}"
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat echo "You don't have a copy of the apr source in srclib/apr. "
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat echo "Please get the source using the following instructions,"
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat echo "or specify the location of the source with "
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat echo "--with-apr=[path to apr] :"
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat echo " svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr"
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat if [ -d "${dir}" -a -f "${dir}/Makefile.in" ]; then
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat echo "found apr-util source: ${dir}"
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat echo "You don't have a copy of the apr-util source in srclib/apr-util. "
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat echo "Please get one the source using the following instructions, "
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat echo "or specify the location of the source with "
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat echo "--with-apr-util=[path to apr-util]:"
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat echo " svn co http://svn.apache.org/repos/asf/apr/apr-util/trunk srclib/apr-util"
36368228d286cd5c1492ae7aab92b4d78dbfb616Serge Hallyn# These are temporary until Roy finishes the other build changes
98f5f7e2c54fc003f81b2164adf3c7bd8a104556Cedric Bosdonnat# Remove autoconf 2.5x cache directories
a7273db9f87f59815d36c3eca4d4501304ae84b2Frederic Crozatrm -rf autom4te*.cache srclib/pcre/autom4te*.cache
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat# end temporary stuff
a3ed64707fb71b6f2fcf603e755c5da07ab3aec5Evgeni Golovcross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
f2d63d7ac44cf8ebabf11cdc1a8b9ba39506167aTerzeus S. Dominguezcp $apr_src_dir/build/config.guess $apr_src_dir/build/config.sub \
f2d63d7ac44cf8ebabf11cdc1a8b9ba39506167aTerzeus S. Dominguez $apr_src_dir/build/PrintPath $apr_src_dir/build/apr_common.m4 \
f2d63d7ac44cf8ebabf11cdc1a8b9ba39506167aTerzeus S. Dominguez $apr_src_dir/build/find_apr.m4 $apu_src_dir/build/find_apu.m4 build
36368228d286cd5c1492ae7aab92b4d78dbfb616Serge Hallyn# Remove any libtool files so one can switch between libtool 1.3
44ee8a102e3d8052631fbb119f58a55ce678d039Frederic Crozat# and libtool 1.4 by simply rerunning the buildconf script.
36368228d286cd5c1492ae7aab92b4d78dbfb616Serge Hallyn# Optionally copy libtool-1.3.x files
a7273db9f87f59815d36c3eca4d4501304ae84b2Frederic Crozat${AUTOHEADER:-autoheader} 2>&1 | grep -v "$cross_compile_warning"
a7273db9f87f59815d36c3eca4d4501304ae84b2Frederic Crozat${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
a7273db9f87f59815d36c3eca4d4501304ae84b2Frederic Crozat# Remove autoconf 2.5x cache directories
44ee8a102e3d8052631fbb119f58a55ce678d039Frederic Crozatrm -rf autom4te*.cache srclib/pcre/autom4te*.cache
2e7a16a5a501acd1c1e270bd7b3c423b1aaa5d8bJohannes Kastlif [ -f `which cut` ]; then
2e7a16a5a501acd1c1e270bd7b3c423b1aaa5d8bJohannes Kastl ( VMMN=`build/get-version.sh mmn include/ap_mmn.h MODULE_MAGIC_NUMBER`
2e7a16a5a501acd1c1e270bd7b3c423b1aaa5d8bJohannes Kastl REVISION=`build/get-version.sh all include/ap_release.h AP_SERVER`
73fd697741d3fbe8ea9f0ee6ef303391e2c0cbb2Terzeus S. Dominguez RELEASE=`echo $REVISION | cut -d- -s -f2`
17abf2784de1047fb2904ff130ee5efe4ea7b598Elan Ruusamäe# ensure that the mod_ssl expression parser sources are never regenerated
a7273db9f87f59815d36c3eca4d4501304ae84b2Frederic Crozat# when running make