For debugging purposes, show all sed's available in PATH on SunOS systems.
This commit is contained in:
parent
adc032e7d8
commit
e93bcbeee1
25
buildconf
25
buildconf
@ -27,20 +27,24 @@ die(){
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
# this works as 'which' but we use a different name to make it more obvious we
|
#--------------------------------------------------------------------------
|
||||||
# aren't using 'which'! ;-)
|
# findtool works as 'which' but we use a different name to make it more
|
||||||
|
# obvious we aren't using 'which'! ;-)
|
||||||
|
#
|
||||||
findtool(){
|
findtool(){
|
||||||
file="$1"
|
file="$1"
|
||||||
|
|
||||||
IFS=":"
|
old_IFS=$IFS; IFS=':'
|
||||||
for path in $PATH
|
for path in $PATH
|
||||||
do
|
do
|
||||||
|
IFS=$old_IFS
|
||||||
# echo "checks for $file in $path" >&2
|
# echo "checks for $file in $path" >&2
|
||||||
if test -f "$path/$file"; then
|
if test -f "$path/$file"; then
|
||||||
echo "$path/$file"
|
echo "$path/$file"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
IFS=$old_IFS
|
||||||
}
|
}
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
@ -293,6 +297,21 @@ fi
|
|||||||
tmp_host_type=`uname -a | sed '/SunOS/s/.*\(SunOS\).*/\1/'`
|
tmp_host_type=`uname -a | sed '/SunOS/s/.*\(SunOS\).*/\1/'`
|
||||||
if test "x$tmp_host_type" = "xSunOS"; then
|
if test "x$tmp_host_type" = "xSunOS"; then
|
||||||
ACLOCAL_FLAGS="$ACLOCAL_FLAGS --verbose"
|
ACLOCAL_FLAGS="$ACLOCAL_FLAGS --verbose"
|
||||||
|
|
||||||
|
echo "buildconf: PATH: $PATH"
|
||||||
|
|
||||||
|
# show all available sed's in PATH order
|
||||||
|
old_IFS=$IFS; IFS=':'
|
||||||
|
for path in $PATH
|
||||||
|
do
|
||||||
|
IFS=$old_IFS
|
||||||
|
if test -f "$path/sed"; then
|
||||||
|
echo "buildconf: sed: $path/sed"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS=$old_IFS
|
||||||
|
echo "buildconf: SED: $SED"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "buildconf: running libtoolize"
|
echo "buildconf: running libtoolize"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user