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:
parent
35833e5aaf
commit
588b1978a1
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user