buildconf revision e07615ab3b59412d79eebb8d5b12f488e77c14a7
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Copyright 1999-2004 The Apache Software Foundation
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Licensed under the Apache License, Version 2.0 (the "License");
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# you may not use this file except in compliance with the License.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# You may obtain a copy of the License at
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Unless required by applicable law or agreed to in writing, software
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# distributed under the License is distributed on an "AS IS" BASIS,
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# See the License for the specific language governing permissions and
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# limitations under the License.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# buildconf: Build the support scripts needed to compile from a
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# checked-out version of the source code.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# set a couple of defaults for where we should be looking for our support libs.
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
18c2aff776a775d34a4c9893a4c72e0434d68e36artem # Normalize
18c2aff776a775d34a4c9893a4c72e0434d68e36artem -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Check to be sure that we have the srclib dependencies checked-out
18c2aff776a775d34a4c9893a4c72e0434d68e36artemif [ ! -d "$apr_src_dir" -o ! -f "$apr_src_dir/build/apr_common.m4" ]; then
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo "You don't have a copy of the apr source in $apr_src_dir. "
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo "Please get the source using the following instructions,"
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo "or specify the location of the source with "
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo "--with-apr=[path to apr] :"
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo " svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr"
18c2aff776a775d34a4c9893a4c72e0434d68e36artemif [ ! -d "$apu_src_dir" -o ! -f "$apu_src_dir/Makefile.in" ]; then
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo "You don't have a copy of the apr-util source in $apu_src_dir. "
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo "Please get one the source using the following instructions, "
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo "or specify the location of the source with "
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo "--with-apr-util=[path to apr-util]:"
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo " svn co http://svn.apache.org/repos/asf/apr/apr-util/trunk srclib/apr-util"
# Optionally copy libtool-1.3.x files
RELEASE=1
cat ./build/rpm/httpd.spec.in | \
> httpd.spec )