mirror of
https://github.com/samba-team/samba.git
synced 2025-08-30 17:49:30 +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:
@ -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"
|
||||
|
Reference in New Issue
Block a user