forward port autotool.sh fix

This commit is contained in:
arvidn 2017-01-04 21:34:21 -05:00
parent 7957e2a30e
commit 3db77ccf31
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ version_check() {
echo $ECHO_N " testing $vc_checkprog... " $ECHO_C echo $ECHO_N " testing $vc_checkprog... " $ECHO_C
if $vc_checkprog --version < /dev/null > /dev/null 2>&1; then if $vc_checkprog --version < /dev/null > /dev/null 2>&1; then
vc_actual_version=`$vc_checkprog --version | head -n 1 | \ vc_actual_version=`$vc_checkprog --version | head -n 1 | \
sed 's/^.*[ ]\([0-9.]*[a-z]*\).*$/\1/'` sed 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
if compare_versions $vc_min_version $vc_actual_version; then if compare_versions $vc_min_version $vc_actual_version; then
echo "found $vc_actual_version" echo "found $vc_actual_version"
# set variables # set variables