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