buildconf revision e8f3ef5f268e9dee1d5d5dca8134df035a5c8332
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Licensed to the Apache Software Foundation (ASF) under one or more
56139ffc94e481ca1940ffd8d8f7166879150665Timo Sirainen# contributor license agreements. See the NOTICE file distributed with
56139ffc94e481ca1940ffd8d8f7166879150665Timo Sirainen# this work for additional information regarding copyright ownership.
56139ffc94e481ca1940ffd8d8f7166879150665Timo Sirainen# The ASF licenses this file to You under the Apache License, Version 2.0
56139ffc94e481ca1940ffd8d8f7166879150665Timo Sirainen# (the "License"); you may not use this file except in compliance with
f1551f4a50a471f0adecd92dd1f94702beeed72dTimo Sirainen# the License. You may obtain a copy of the License at
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Unless required by applicable law or agreed to in writing, software
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# distributed under the License is distributed on an "AS IS" BASIS,
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0a53eb0283d7ec28c6105f61e118b96fce8ecb95Timo Sirainen# See the License for the specific language governing permissions and
0a53eb0283d7ec28c6105f61e118b96fce8ecb95Timo Sirainen# limitations under the License.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# buildconf: Build the support scripts needed to compile from a
dff32d11a411a24f3b76003c1ae22c5a960f180eTimo Sirainen# checked-out version of the source code.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# version check for AC_PROG_CC_C99
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;q'`
f64b5bc9e73bedc63ba3c072c286542c29c69e43Timo Sirainen# versions older than 2.50 are denied by AC_PREREQ
5f5713d6468dca1acf3d350dd8a33057331f78c5Timo Sirainen echo WARNING: You are using an outdated version of autoconf.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen echo WARNING: This may lead to less than optimal performance of httpd.
242abe3ad2423776e9cf05e1304eb8fda4831b23Timo Sirainen echo WARNING: You should use autoconf 2.60 or newer.
caae18c876f81e261350e4957471efa453c0ea9fTimo Sirainen# set a couple of defaults for where we should be looking for our support libs.
ee3362f3b78827a2c9a7e9ddee83f5a429c06213Timo Sirainen# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
if [ -f "${dir}/build/apr_common.m4" ]; then
echo " svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr"
if test -z "$apu_src_dir"; then
if [ -f "${dir}/Makefile.in" ]; then
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 )
cd server