From b89505990af15f503106d8a41e0b0d4ec7fb4d71 Mon Sep 17 00:00:00 2001 From: "Roy T. Fielding" Date: Sat, 31 Mar 2001 05:52:42 +0000 Subject: Revert last change -- I forgot that buildconf is run before we create a release tarball, so it can't be OS-specific. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61399 13f79535-47bb-0310-9956-ffa450edef68 --- buildconf | 59 +++++++++++++++++++++++++++-------------------------------- 1 file changed, 27 insertions(+), 32 deletions(-) (limited to 'buildconf') diff --git a/buildconf b/buildconf index 9f867997b..06e0f3f9f 100755 --- a/buildconf +++ b/buildconf @@ -56,43 +56,38 @@ # buildconf: Build the support scripts needed to compile from a # checked-out version of the source code. -osname=`build/config.guess` -case "$osname" in - *os2_emx*) - echo "Using OS/2-specific aplibtool" - cp -f build/os2_libtool.m4 aclocal.m4 - ;; - *) - # Verify that the builder has the right config tools installed - # - build/buildcheck.sh || exit 1 +# Verify that the builder has the right config tools installed +# +build/buildcheck.sh || exit 1 + +libtoolize=`build/PrintPath glibtoolize libtoolize` +if [ "x$libtoolize" = "x" ]; then + echo "libtoolize not found in path" + exit 1 +fi - libtoolize=`build/PrintPath glibtoolize libtoolize` - if [ "x$libtoolize" = "x" ]; then - echo "libtoolize not found in path" - exit 1 - fi +# Create the libtool helper files +# +# Note: we copy (rather than link) them to simplify distribution. +# Note: APR supplies its own config.guess and config.sub -- we do not +# rely on libtool's versions +# +echo "Copying libtool helper files ..." - # Create the libtool helper files - # - # Note: we copy (rather than link) them to simplify distribution. - # Note: APR supplies its own config.guess and config.sub -- we do not - # rely on libtool's versions - # - echo "Copying libtool helper files ..." +$libtoolize --copy --automake - $libtoolize --copy --automake +ltpath=`dirname $libtoolize` +ltfile=`cd $ltpath/../share/aclocal ; pwd`/libtool.m4 - ltpath=`dirname $libtoolize` - ltfile=`cd $ltpath/../share/aclocal ; pwd`/libtool.m4 +if [ ! -f $ltfile ]; then + echo "$ltfile not found" + exit 1 +fi +cp -f $ltfile build/libtool.m4 - if [ ! -f $ltfile ]; then - echo "$ltfile not found" - exit 1 - fi - cp -f $ltfile aclocal.m4 - ;; -esac +# 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 # # Generate the autoconf header and ./configure -- cgit v1.2.1