From b26c2b2336af94dc04c6fbb4b99a0ec39bd89f42 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 7 Apr 2002 03:22:46 +0000 Subject: [PATCH] try to fix Damm's bootstrap error (invalid arg to -x) --- bootstrap | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bootstrap b/bootstrap index f65e2aa5c..147e82567 100755 --- a/bootstrap +++ b/bootstrap @@ -1,7 +1,8 @@ #! /bin/sh cd `dirname $0` # Check libtoolize version, fix for Debian/Woody -if [ -x `which libtoolize` ]; then +lt=`which libtoolize` +if [ -n "$lt" -a -x "$lt" ]; then LTIZE_VER=`libtoolize --version | head -1 | sed 's/^[^0-9]*//'` LTIZE_VER_MAJOR=`echo $LTIZE_VER | cut -f1 -d'.'` LTIZE_VER_MINOR=`echo $LTIZE_VER | cut -f2 -d'.'` @@ -12,7 +13,8 @@ if [ -x `which libtoolize` ]; then fi # Check Autoconf version -if [ -x `which autoconf` ]; then +ac=`which autoconf` +if [ -n "$ac" -a -x "$ac" ]; then AC_VER=`autoconf --version | head -1 | sed 's/^[^0-9]*//'` AC_VER_MAJOR=`echo $AC_VER | cut -f1 -d'.'` AC_VER_MINOR=`echo $AC_VER | cut -f2 -d'.' | sed 's/[^0-9]*$//'`