From: Ken Raeburn Date: Tue, 3 Oct 2000 21:28:20 +0000 (+0000) Subject: * reconf: Look for autoconf 2.12 or later. Don't use "grep -q", it's not X-Git-Tag: krb5-1.3-alpha1~1860 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ed3bd328e638d4883273fdf558f4d7cbfaf36b28;p=krb5.git * reconf: Look for autoconf 2.12 or later. Don't use "grep -q", it's not portable enough. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12719 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/ChangeLog b/src/util/ChangeLog index b1cb6234a..f8873f6e2 100644 --- a/src/util/ChangeLog +++ b/src/util/ChangeLog @@ -1,3 +1,8 @@ +2000-10-03 Ken Raeburn + + * reconf: Look for autoconf 2.12 or later. Don't use "grep -q", + it's not portable enough. + 2000-06-30 Tom Yu * Makefile.in (all-unix, clean_unix): Removed util/db2 include diff --git a/src/util/reconf b/src/util/reconf index 9251467ea..5d6533dc1 100644 --- a/src/util/reconf +++ b/src/util/reconf @@ -21,15 +21,16 @@ do esac done - +# Currently (2000-10-03) we need 2.12 or later, and 2.13 is current. +pat="version 2.1[23456789]" if test ! -f $autoreconfprog ; then - if autoreconf --version | grep -q "version 2.[123456789]" && \ - autoconf --version | grep -q "version 2.[123456789]" && \ - autoheader --version | grep -q "version 2.[123456789]" ; then + if autoreconf --version | grep "$pat" >/dev/null && \ + autoconf --version | grep "$pat" >/dev/null && \ + autoheader --version | grep "$pat" >/dev/null; then autoreconf=autoreconf echo "Using" `autoconf --version` "found in your path..." else - echo "Couldn't find autoconf 2.1 or higher in your path." + echo "Couldn't find autoconf 2.12 or higher in your path." echo " " echo "Please cd to util/autoconf, and type the commands" echo "'configure' and then 'make'; then cd back to the top"