]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: enhance error message for missing libtoolize
authorSami Kerola <kerolasa@iki.fi>
Sat, 1 Oct 2011 11:18:17 +0000 (13:18 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 10 Oct 2011 11:56:53 +0000 (13:56 +0200)
The commit will will use `You must have libtool version...' message
when libtoolize is missing.  Earlier the error message less helpful.

./autogen.sh: line 59: test: =: unary operator expected

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
autogen.sh

index c07984bcf1960c4a36971544984f49e52aba6642..14a795ffdb66e0bd9a6c543f99e5f2a3cebc3cc5 100755 (executable)
@@ -55,6 +55,7 @@ test -f mount/mount.c || {
 }
 
 ltver=$(libtoolize --version | awk '/^libtoolize/ { print $4 }')
+ltver=${ltver:-"none"}
 test ${ltver##2.} = "$ltver" && {
        echo "You must have libtool version >= 2.x.x, but you have $ltver."
        DIE=1