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