apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jari.aa...@poboxes.com (Jari Aalto+mail.linux)
Subject [patch] CVS buildconf - trouble finding libtool.m4 (Cygwin)
Date Sat, 13 Mar 2004 18:18:10 GMT


Hi,

Under Cygwin things are in ittle different places and ./buildconf has
trouble finding the libtool. I propose the following path. It does not
change any existing code, but adds few check.

root@w2kpicasso:/usr/src/cvs-source/apr# cvs diff -u buildconf 
Index: buildconf
===================================================================
RCS file: /home/cvspublic/apr/buildconf,v
retrieving revision 1.29
diff -u -IId: -u -r1.29 buildconf
--- buildconf   28 Feb 2004 18:31:41 -0000      1.29
+++ buildconf   13 Mar 2004 18:03:29 -0000
@@ -46,7 +46,19 @@
    ltfile=`pwd`/libtool.m4
 else
    ltpath=`dirname $libtoolize`
-   ltfile=${LIBTOOL_M4-`cd $ltpath/../share/aclocal ; pwd`/libtool.m4}
+   ltpath=$ltpath/../share/aclocal
+
+   for dir in $ltpath \
+              /usr/autotool/devel/share/aclocal  \
+              /usr/autotool/stable/share/aclocal \
+              /usr/local/share/aclocal
+   do
+     if [ -d $dir ]; then
+        ltpath=$dir
+     fi
+   done
+
+   ltfile=${LIBTOOL_M4-$ltpath/libtool.m4}
 fi
   
 if [ ! -f $ltfile ]; then


-- 
http://tiny-tools.sourceforge.net/
Swatch @time   http://www.mir.com.my/iTime/itime.htm
               http://www.ryanthiessen.com/swatch/resources.htm
Use Licenses!  http://www.linuxjournal.com/article.php?sid=6225
Which Licence? http://www.linuxjournal.com/article.php?sid=4825
OSI Licences   http://www.opensource.org/licenses/


Mime
View raw message