buildconf revision 42f9227f80ce22e944d427e3d7490fa1dd07f9f2
d3ed5b56cb6b58f87ffd125bed48f7668f13de1edirkx#!/bin/sh
893328ef6ff86d0ca27774778d84410353789fb0fielding# ====================================================================
893328ef6ff86d0ca27774778d84410353789fb0fielding# The Apache Software License, Version 1.1
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# Copyright (c) 2000-2001 The Apache Software Foundation. All rights
893328ef6ff86d0ca27774778d84410353789fb0fielding# reserved.
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# Redistribution and use in source and binary forms, with or without
893328ef6ff86d0ca27774778d84410353789fb0fielding# modification, are permitted provided that the following conditions
893328ef6ff86d0ca27774778d84410353789fb0fielding# are met:
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# 1. Redistributions of source code must retain the above copyright
893328ef6ff86d0ca27774778d84410353789fb0fielding# notice, this list of conditions and the following disclaimer.
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# 2. Redistributions in binary form must reproduce the above copyright
893328ef6ff86d0ca27774778d84410353789fb0fielding# notice, this list of conditions and the following disclaimer in
893328ef6ff86d0ca27774778d84410353789fb0fielding# the documentation and/or other materials provided with the
893328ef6ff86d0ca27774778d84410353789fb0fielding# distribution.
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# 3. The end-user documentation included with the redistribution,
893328ef6ff86d0ca27774778d84410353789fb0fielding# if any, must include the following acknowledgment:
893328ef6ff86d0ca27774778d84410353789fb0fielding# "This product includes software developed by the
893328ef6ff86d0ca27774778d84410353789fb0fielding# Apache Software Foundation (http://www.apache.org/)."
893328ef6ff86d0ca27774778d84410353789fb0fielding# Alternately, this acknowledgment may appear in the software itself,
893328ef6ff86d0ca27774778d84410353789fb0fielding# if and wherever such third-party acknowledgments normally appear.
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# 4. The names "Apache" and "Apache Software Foundation" must
893328ef6ff86d0ca27774778d84410353789fb0fielding# not be used to endorse or promote products derived from this
893328ef6ff86d0ca27774778d84410353789fb0fielding# software without prior written permission. For written
893328ef6ff86d0ca27774778d84410353789fb0fielding# permission, please contact apache@apache.org.
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# 5. Products derived from this software may not be called "Apache",
893328ef6ff86d0ca27774778d84410353789fb0fielding# nor may "Apache" appear in their name, without prior written
893328ef6ff86d0ca27774778d84410353789fb0fielding# permission of the Apache Software Foundation.
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
893328ef6ff86d0ca27774778d84410353789fb0fielding# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
893328ef6ff86d0ca27774778d84410353789fb0fielding# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
893328ef6ff86d0ca27774778d84410353789fb0fielding# DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
893328ef6ff86d0ca27774778d84410353789fb0fielding# ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
893328ef6ff86d0ca27774778d84410353789fb0fielding# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
893328ef6ff86d0ca27774778d84410353789fb0fielding# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
893328ef6ff86d0ca27774778d84410353789fb0fielding# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
893328ef6ff86d0ca27774778d84410353789fb0fielding# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
893328ef6ff86d0ca27774778d84410353789fb0fielding# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
893328ef6ff86d0ca27774778d84410353789fb0fielding# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
893328ef6ff86d0ca27774778d84410353789fb0fielding# SUCH DAMAGE.
893328ef6ff86d0ca27774778d84410353789fb0fielding# ====================================================================
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# This software consists of voluntary contributions made by many
893328ef6ff86d0ca27774778d84410353789fb0fielding# individuals on behalf of the Apache Software Foundation. For more
893328ef6ff86d0ca27774778d84410353789fb0fielding# information on the Apache Software Foundation, please see
893328ef6ff86d0ca27774778d84410353789fb0fielding# <http://www.apache.org/>.
893328ef6ff86d0ca27774778d84410353789fb0fielding#
6c7c4bf3d26c01cce4d26526db94f17eb5a44396ben
893328ef6ff86d0ca27774778d84410353789fb0fielding# buildconf: Build the support scripts needed to compile from a
893328ef6ff86d0ca27774778d84410353789fb0fielding# checked-out version of the source code.
0d50a692ff2ac7bdb42e417737ed86ebf0a41671ben
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# Check to be sure that we have the srclib dependencies checked-out
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fieldingif [ ! -d srclib/apr -o ! -f srclib/apr/build/apr_common.m4 ]; then
893328ef6ff86d0ca27774778d84410353789fb0fielding echo ""
893328ef6ff86d0ca27774778d84410353789fb0fielding echo "You don't have a srclib/apr/ subdirectory. Please get one:"
893328ef6ff86d0ca27774778d84410353789fb0fielding echo ""
893328ef6ff86d0ca27774778d84410353789fb0fielding echo " cd srclib"
42f9227f80ce22e944d427e3d7490fa1dd07f9f2rbb echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login"
893328ef6ff86d0ca27774778d84410353789fb0fielding echo " (password 'anoncvs')"
42f9227f80ce22e944d427e3d7490fa1dd07f9f2rbb echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr"
893328ef6ff86d0ca27774778d84410353789fb0fielding echo ""
893328ef6ff86d0ca27774778d84410353789fb0fielding exit 1
893328ef6ff86d0ca27774778d84410353789fb0fieldingfi
893328ef6ff86d0ca27774778d84410353789fb0fieldingif [ ! -d srclib/apr-util -o ! -f srclib/apr-util/Makefile.in ]; then
893328ef6ff86d0ca27774778d84410353789fb0fielding echo ""
893328ef6ff86d0ca27774778d84410353789fb0fielding echo "You don't have a srclib/apr-util/ subdirectory. Please get one:"
893328ef6ff86d0ca27774778d84410353789fb0fielding echo ""
893328ef6ff86d0ca27774778d84410353789fb0fielding echo " cd srclib"
42f9227f80ce22e944d427e3d7490fa1dd07f9f2rbb echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login"
893328ef6ff86d0ca27774778d84410353789fb0fielding echo " (password 'anoncvs')"
42f9227f80ce22e944d427e3d7490fa1dd07f9f2rbb echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr-util"
893328ef6ff86d0ca27774778d84410353789fb0fielding echo ""
893328ef6ff86d0ca27774778d84410353789fb0fielding exit 1
893328ef6ff86d0ca27774778d84410353789fb0fieldingfi
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fielding# These are temporary until Roy finishes the other build changes
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fieldingtouch .deps
893328ef6ff86d0ca27774778d84410353789fb0fieldingrm -f aclocal.m4
623882f55701a4c5a6bded180f60d86a524ac341sascharm -f generated_lists
623882f55701a4c5a6bded180f60d86a524ac341sascha
c15906bab97b9b71b6dc08c1aa2f5c0b72b5ca4edreidcase "`uname`" in
c15906bab97b9b71b6dc08c1aa2f5c0b72b5ca4edreid*BSD/OS*)
96e6cafca226a8a2a64a7bbdc634b5b2679c9e0csascha ./build/bsd_makefile;;
96e6cafca226a8a2a64a7bbdc634b5b2679c9e0csaschaesac
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# end temporary stuff
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fieldingapr_configure="srclib/apr/configure"
893328ef6ff86d0ca27774778d84410353789fb0fieldingaprutil_configure="srclib/apr-util/configure"
893328ef6ff86d0ca27774778d84410353789fb0fieldingpcre_configure="srclib/pcre/configure"
893328ef6ff86d0ca27774778d84410353789fb0fieldingconfig_h_in="include/ap_config_auto.h.in"
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fieldingcross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fieldingecho rebuilding $apr_configure
db51f4ec6447357f968009805e42ec203db09c3dgregames(cd srclib/apr && ./buildconf) || {
db51f4ec6447357f968009805e42ec203db09c3dgregames echo "./buildconf failed for apr"
db51f4ec6447357f968009805e42ec203db09c3dgregames exit 1
db51f4ec6447357f968009805e42ec203db09c3dgregames}
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fieldingecho rebuilding $aprutil_configure
db51f4ec6447357f968009805e42ec203db09c3dgregames(cd srclib/apr-util && ./buildconf.sh) || {
db51f4ec6447357f968009805e42ec203db09c3dgregames echo "./buildconf.sh failed for apr-util"
db51f4ec6447357f968009805e42ec203db09c3dgregames exit 1
db51f4ec6447357f968009805e42ec203db09c3dgregames}
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fieldingecho rebuilding $pcre_configure
893328ef6ff86d0ca27774778d84410353789fb0fielding(cd srclib/pcre && autoconf)
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fieldingecho rebuilding $config_h_in
893328ef6ff86d0ca27774778d84410353789fb0fieldingrm -f $config_h_in
893328ef6ff86d0ca27774778d84410353789fb0fieldingautoheader 2>&1 | grep -v "$cross_compile_warning"
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fieldingecho rebuilding configure
893328ef6ff86d0ca27774778d84410353789fb0fieldingrm -f config.cache
893328ef6ff86d0ca27774778d84410353789fb0fieldingautoconf 2>&1 | grep -v "$cross_compile_warning"
96e6cafca226a8a2a64a7bbdc634b5b2679c9e0csascha
893328ef6ff86d0ca27774778d84410353789fb0fieldingexit 0