[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: PATCH autogen.sh barfs on SuSE Linux

From: Daniel Stenberg <daniel_at_haxx.se>
Date: 2002-01-29 15:41:21 CET

On Tue, 29 Jan 2002, Kay Röpke wrote:

> I tried to build a bleeding edge subversion but autogen.sh failed to locate
> my libtoolize correctly. Unfortunately the standard linux 'which' seems to
> be acting very different to the Solaris one.

:-(

We should probably do exactly like ac-helpers/gnu-diff.sh does instead. I
suggest something in this style:

--- ./autogen.sh
+++ ./autogen.sh Tue Jan 29 15:40:10 2002
@@ -28,9 +28,24 @@
 #
 echo "Copying libtool helper files..."

+find_libtoolize ()
+{
+ IFS=':'
+
+ for searchdir in $PATH; do
+ for name in glibtoolize libtoolize; do
+ libtoolize=$searchdir/$name
+ if test -x $libtoolize; then
+ echo $libtoolize
+ return
+ fi
+ done
+ done
+}
+
 # Under Solaris 8, `which' prints "no blah in path1 path2..." if it
 # can't find the target. The grep -v is to filter that out.
-libtoolize=`which glibtoolize libtoolize 2>/dev/null | grep -v '^no ' | head
-1`
+libtoolize=`find_libtoolize`
 if [ "x$libtoolize" = "x" ]; then
     echo "libtoolize not found in path"
     exit 1

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:01 2006

This is an archived mail posted to the Subversion Dev mailing list.