summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2009-09-12 01:23:01 +0300
committerTor Lillqvist <tml@iki.fi>2009-09-12 01:29:52 +0300
commit44ff42bdf21499986861b23d64016edfc5ee2e29 (patch)
treecf3a5327d1d7635f33258048730112bc75b34ddb /autogen.sh
parent190cd621dd31f3465dc3d1598bd94351cad2d5f8 (diff)
downloadgdk-pixbuf-44ff42bdf21499986861b23d64016edfc5ee2e29.tar.gz
Parse libtoolize --version more carefully
Some recent versions of libtoolize output a version blurb like: libtoolize (GNU libtool 1.3110 2009-07-01) 2.2.7a Don't get confused by the numbers inside the parens.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 66e4f0335..19d2bdc81 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -14,7 +14,10 @@ DIE=0
have_libtool=false
if libtoolize --version < /dev/null > /dev/null 2>&1 ; then
- libtool_version=`libtoolize --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
+ libtool_version=`libtoolize --version |
+ head -1 |
+ sed -e 's/^\(.*\)([^)]*)\(.*\)$/\1\2/g' \
+ -e 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
case $libtool_version in
1.4*|1.5*|2.2*)
have_libtool=true