diff options
author | Tor Lillqvist <tml@iki.fi> | 2009-09-12 01:23:01 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2009-09-12 01:29:52 +0300 |
commit | e9f6b93ec13b1e00b451c35b47245bf342426e9f (patch) | |
tree | b23641842b08b8c7bb87cf16ca221ccf5068efde /autogen.sh | |
parent | 8c1f50cf1441f99b07d2055b1249b9e5ba913a43 (diff) | |
download | gtk+-e9f6b93ec13b1e00b451c35b47245bf342426e9f.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-x | autogen.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index 66e4f03357..19d2bdc81a 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 |