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