summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68>2005-01-17 16:28:14 +0000
committerminfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68>2005-01-17 16:28:14 +0000
commitcc811b81f2555fcbf33ff7408178e5bef1af8555 (patch)
treee021b1e2c3c3b4d9af6a737440129ef77699c4aa
parentd4943b1b9b2c4a9b7036afb403c4a4aaf29bc5e9 (diff)
downloadlibapr-util-cc811b81f2555fcbf33ff7408178e5bef1af8555.tar.gz
Add option to specify the location of the expat library
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@125426 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xbuild/pkg/buildpkg.sh19
1 files changed, 16 insertions, 3 deletions
diff --git a/build/pkg/buildpkg.sh b/build/pkg/buildpkg.sh
index 57c2b3ad..4d46e0a4 100755
--- a/build/pkg/buildpkg.sh
+++ b/build/pkg/buildpkg.sh
@@ -24,6 +24,7 @@ rm -rf $TEMPDIR
apr_util_src_dir=.
apr_src_dir=../apr
+expat_dir=/usr
while test $# -gt 0
do
@@ -45,6 +46,12 @@ do
;;
esac
+ case "$1" in
+ --with-expat=*)
+ expat_dir=$optarg
+ ;;
+ esac
+
shift
done
@@ -52,18 +59,24 @@ if [ -f "$apr_util_src_dir/configure.in" ]; then
cd $apr_util_src_dir
else
echo "The apr-util source could not be found within $apr_util_src_dir"
- echo "Usage: buildpkg [--with-apr=dir] [--with-apr-util=dir]"
+ echo "Usage: buildpkg [--with-apr=dir] [--with-apr-util=dir] [--with-expat=dir]"
exit 1
fi
if [ ! -f "$apr_src_dir/configure.in" ]; then
echo "The apr source could not be found within $apr_src_dir"
- echo "Usage: buildpkg [--with-apr=dir] [--with-apr-util=dir]"
+ echo "Usage: buildpkg [--with-apr=dir] [--with-apr-util=dir] [--with-expat=dir]"
+ exit 1
+fi
+
+if [ ! -d "$expat_dir" ]; then
+ echo "The expat directory could not be found within $expat_dir"
+ echo "Usage: buildpkg [--with-apr=dir] [--with-apr-util=dir] [--with-expat=dir]"
exit 1
fi
./configure --prefix=$PREFIX --with-apr=$apr_src_dir \
- --with-ldap
+ --with-ldap --with-expat=$expat_dir
make
make install DESTDIR=$TEMPDIR
rm $TEMPDIR$PREFIX/lib/aprutil.exp