cvs | 4 Sep 2006 10:53
Picon
Favicon

bagder: curl buildconf,1.45,1.46

Update of /cvsroot/curl/curl
In directory labb:/tmp/cvs-serv1147

Modified Files:
	buildconf 
Log Message:
I fell over a new libtool that starts with a newline so we need to fetch
the two first lines to get the version string. The good news is that older
libtools have an empty line after the first so I think this works fine all
over...

Index: buildconf
===================================================================
RCS file: /cvsroot/curl/curl/buildconf,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- buildconf	6 Jan 2006 22:08:39 -0000	1.45
+++ buildconf	4 Sep 2006 08:53:28 -0000	1.46
 <at>  <at>  -140,7 +140,7  <at>  <at> 
   libtoolize=`findtool $LIBTOOLIZE`
 fi

-lt_pversion=`$libtool --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
+lt_pversion=`$libtool --version 2>/dev/null|head -n 2|sed -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
 if test -z "$lt_pversion"; then
   echo "buildconf: libtool not found."
   echo "            You need libtool version $LIBTOOL_WANTED_VERSION or newer installed"

Gmane