summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-01-15 14:12:58 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-01-15 14:12:58 +0000
commitd6044a2cc91030e8777e8065818ee0a4e06e6e45 (patch)
treea5c6a1cc13d89da9cf38e139d6c076560df554cd /buildconf
parentba8c4f217192ba1e8d7cbcde873f35b2ce874d6a (diff)
downloadlibapr-d6044a2cc91030e8777e8065818ee0a4e06e6e45.tar.gz
Fix build with recent libtool HEAD:
* buildconf: Use the libtool.m4 which libtoolize copies into the cwd, if found. Move ltsugar.m4 into build if found. * configure.in: Pick up ltsugar.m4. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64873 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf23
1 files changed, 16 insertions, 7 deletions
diff --git a/buildconf b/buildconf
index cbc8f6a77..4555a6e90 100755
--- a/buildconf
+++ b/buildconf
@@ -2,7 +2,7 @@
# ====================================================================
# The Apache Software License, Version 1.1
#
-# Copyright (c) 2000-2003 The Apache Software Foundation. All rights
+# Copyright (c) 2000-2004 The Apache Software Foundation. All rights
# reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -80,9 +80,13 @@ echo "Copying libtool helper files ..."
$libtoolize --copy --automake
-ltpath=`dirname $libtoolize`
-ltfile=${LIBTOOL_M4-`cd $ltpath/../share/aclocal ; pwd`/libtool.m4}
-
+if [ -f libtool.m4 ]; then
+ ltfile=`pwd`/libtool.m4
+else
+ ltpath=`dirname $libtoolize`
+ ltfile=${LIBTOOL_M4-`cd $ltpath/../share/aclocal ; pwd`/libtool.m4}
+fi
+
if [ ! -f $ltfile ]; then
echo "$ltfile not found"
exit 1
@@ -92,9 +96,14 @@ echo "buildconf: Using libtool.m4 at ${ltfile}."
cat $ltfile | sed -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' > build/libtool.m4
-# This is just temporary until people's workspaces are cleared -- remove
-# any old aclocal.m4 left over from prior build so it doesn't cause errors.
-rm -f aclocal.m4
+# libtool.m4 from 1.6 requires ltsugar.m4
+if [ -f ltsugar.m4 ]; then
+ rm -f build/ltsugar.m4
+ mv ltsugar.m4 build/ltsugar.m4
+fi
+
+# Clean up any leftovers
+rm -f aclocal.m4 libtool.m4
#
# Generate the autoconf header and ./configure