buildconf revision 59b1b6c3fd51c83c3bb9f02a8f08751335f9fb1d
#
# Copyright 1999-2004 The Apache Software Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# buildconf: Build the support scripts needed to compile from a
# checked-out version of the source code.
# set a couple of defaults for where we should be looking for our support libs.
# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
while test $# -gt 0
do
# Normalize
case "$1" in
*) optarg= ;;
esac
case "$1" in
;;
esac
case "$1" in
;;
esac
shift
done
#
# Check to be sure that we have the srclib dependencies checked-out
#
if [ ! -d "$apr_src_dir" -o ! -f "$apr_src_dir/build/apr_common.m4" ]; then
echo ""
echo "You don't have a copy of the apr source in $apr_src_dir. "
echo "Please get the source using the following instructions,"
echo "or specify the location of the source with "
echo "--with-apr=[path to apr] :"
echo ""
echo " svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr"
echo ""
fi
if [ ! -d "$apu_src_dir" -o ! -f "$apu_src_dir/Makefile.in" ]; then
echo ""
echo "You don't have a copy of the apr-util source in $apu_src_dir. "
echo "Please get one the source using the following instructions, "
echo "or specify the location of the source with "
echo "--with-apr-util=[path to apr-util]:"
echo ""
echo " svn co http://svn.apache.org/repos/asf/apr/apr-util/trunk srclib/apr-util"
echo ""
fi
exit 1
fi
# These are temporary until Roy finishes the other build changes
#
# Remove autoconf 2.5x cache directories
./build/bsd_makefile;;
esac
#
# end temporary stuff
apr_configure="$apr_src_dir/configure"
aprutil_configure="$apu_src_dir/configure"
cross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
echo rebuilding $apr_configure
echo "./buildconf failed for apr"
exit 1
}
fi
echo "./buildconf failed for apr-util"
exit 1
}
fi
# Remove any libtool files so one can switch between libtool 1.3
# and libtool 1.4 by simply rerunning the buildconf script.
# Optionally copy libtool-1.3.x files
fi
fi
echo rebuilding $config_h_in
rm -f $config_h_in
echo rebuilding configure
rm -f config.cache
# Remove autoconf 2.5x cache directories
RELEASE=1
fi
cat ./build/rpm/httpd.spec.in | \
> httpd.spec )
fi
# ensure that the mod_ssl expression parser sources are never regenerated
# when running make
sleep 1
sleep 1
cd ../..
exit 0