diff options
author | Gerald Carter <jerry@samba.org> | 2007-06-07 13:35:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:11 -0500 |
commit | ccc466c56a93906ef5dfa1079796b1a8a44b43c0 (patch) | |
tree | e566c1228f649fac5b6bbe9bc7013f4c99fb5d33 /source/autogen.sh | |
parent | a8ec53f022ff66053231818d4a60568675079ede (diff) | |
download | samba-ccc466c56a93906ef5dfa1079796b1a8a44b43c0.tar.gz samba-ccc466c56a93906ef5dfa1079796b1a8a44b43c0.tar.xz samba-ccc466c56a93906ef5dfa1079796b1a8a44b43c0.zip |
r23377: Patch from Bjoern Jacke <bjoern@j3e.de> to deal
with non-GNU implementations of tr in autogen.sh
Diffstat (limited to 'source/autogen.sh')
-rwxr-xr-x | source/autogen.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/autogen.sh b/source/autogen.sh index 3a58b29f60c..02f55c54219 100755 --- a/source/autogen.sh +++ b/source/autogen.sh @@ -16,7 +16,7 @@ AUTOCONFFOUND="0" ## for i in $TESTAUTOHEADER; do if which $i > /dev/null 2>&1; then - if test `$i --version | head -n 1 | cut -d. -f 2 | tr -d [:alpha:]` -ge 53; then + if test `$i --version | head -n 1 | cut -d. -f 2 | sed "s/[^0-9]//g"` -ge 53; then AUTOHEADER=$i AUTOHEADERFOUND="1" break @@ -30,7 +30,7 @@ done for i in $TESTAUTOCONF; do if which $i > /dev/null 2>&1; then - if test `$i --version | head -n 1 | cut -d. -f 2 | tr -d [:alpha:]` -ge 53; then + if test `$i --version | head -n 1 | cut -d. -f 2 | sed "s/[^0-9]//g"` -ge 53; then AUTOCONF=$i AUTOCONFFOUND="1" break |