From 54ade1b8a51369e398913647f4ff0b0ef9ae3ba1 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 27 Feb 2005 01:46:55 +0000 Subject: [PATCH] fix the libtool version extraction to work on freebsd --- bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap b/bootstrap index 5507ec284..6ac435075 100755 --- a/bootstrap +++ b/bootstrap @@ -37,7 +37,7 @@ fi lt=`which $libtoolize` if test -n "$lt" ; then if test -x "$lt" ; then - LTIZE_VER=`$libtoolize --version | head -1 | sed 's/^[^0-9]*//'` + LTIZE_VER=`$libtoolize --version | head -1 | sed 's/.* \(\<[1-9][0-9]*\(\.[1-9][0-9]*\)\(\.[1-9][0-9]*\)*\).*/\1/'` LTIZE_VER_MAJOR=`echo $LTIZE_VER | cut -f1 -d'.'` LTIZE_VER_MINOR=`echo $LTIZE_VER | cut -f2 -d'.' | sed -e 's/[^0-9]//g'`