-if [ $apu_found -lt 1 ]; then
- echo ""
- echo "You don't have a copy of the apr-util source in srclib/apr-util. "
- 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 ""
- should_exit=1
+ for dir in $apu_src_dir
+ do
+ if [ -f "${dir}/Makefile.in" ]; then
+ echo "found apr-util source: ${dir}"
+ apu_src_dir=$dir
+ apu_found=1
+ break
+ fi
+ done
+
+ if [ $apu_found -lt 1 ]; then
+ echo ""
+ echo "You are using APR 1.x but APR-util 1.x was not found."
+ echo ""
+ echo "Please refer to the documentation on APR in the httpd INSTALL file."
+ echo ""
+ should_exit=1
+ fi