1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Make autogen.sh more portable by having it work on both Linux and FreeBSD

under sh and bash.
(This used to be commit 4070ff1c69)
This commit is contained in:
Richard Sharpe 2003-04-06 02:46:10 +00:00
parent 35833e5aaf
commit 588b1978a1

View File

@ -15,7 +15,7 @@ AUTOCONFFOUND="0"
## Look for autoheader
##
for i in $TESTAUTOHEADER; do
if which $i > /dev/null; then
if which $i > /dev/null 2>&1; then
if [ `$i --version | head -1 | cut -d. -f 2` -ge 53 ]; then
AUTOHEADER=$i
AUTOHEADERFOUND="1"
@ -29,7 +29,7 @@ done
##
for i in $TESTAUTOCONF; do
if which $i > /dev/null; then
if which $i > /dev/null 2>&1; then
if [ `$i --version | head -1 | cut -d. -f 2` -ge 53 ]; then
AUTOCONF=$i
AUTOCONFFOUND="1"