Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 85735 invoked by uid 500); 25 Sep 2002 02:58:21 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 85712 invoked by uid 500); 25 Sep 2002 02:58:21 -0000 Delivered-To: apmail-apr-iconv-cvs@apache.org Date: 25 Sep 2002 02:58:20 -0000 Message-ID: <20020925025820.44406.qmail@icarus.apache.org> From: wsanchez@apache.org To: apr-iconv-cvs@apache.org Subject: cvs commit: apr-iconv buildconf.sh X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N wsanchez 2002/09/24 19:58:20 Modified: . buildconf.sh Log: Find libtoolize when called glibtoolize. Borrow method from apr's buildconf. Revision Changes Path 1.2 +7 -4 apr-iconv/buildconf.sh Index: buildconf.sh =================================================================== RCS file: /home/cvs/apr-iconv/buildconf.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- buildconf.sh 24 Mar 2001 04:15:44 -0000 1.1 +++ buildconf.sh 25 Sep 2002 02:58:20 -0000 1.2 @@ -3,9 +3,12 @@ # # Build aclocal.m4 from libtool's libtool.m4 and our own M4 files. # -### we may need to get smarter with these two lines (e.g. PrintPath) -ltpath=`../apr/build/PrintPath libtoolize` -ltpath=`dirname $ltpath` +libtoolize=`../apr/build/PrintPath glibtoolize libtoolize` +if [ "x$libtoolize" = "x" ]; then + echo "libtoolize not found in path" + exit 1 +fi +ltpath=`dirname $libtoolize` ltfile=`cd $ltpath/../share/aclocal ; pwd`/libtool.m4 echo "Incorporating $ltfile into aclocal.m4 ..." echo "dnl THIS FILE IS AUTOMATICALLY GENERATED BY buildconf.sh" > aclocal.m4 @@ -19,7 +22,7 @@ # Note: we always replace the files, and we copy (rather than link) them. # echo "Copying libtool helper files ..." -$ltpath/libtoolize --force --copy +$libtoolize --force --copy # # Generate the autoconf header (include/apu_config.h) and ./configure