* reconf: Look for autoconf 2.12 or later. Don't use "grep -q", it's not
authorKen Raeburn <raeburn@mit.edu>
Tue, 3 Oct 2000 21:28:20 +0000 (21:28 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 3 Oct 2000 21:28:20 +0000 (21:28 +0000)
portable enough.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12719 dc483132-0cff-0310-8789-dd5450dbe970

src/util/ChangeLog
src/util/reconf

index b1cb6234ab4f9099c04e5dfb3d0ddbcf6c2931e6..f8873f6e210a546ff6b14f83d3321892ae6c9ba6 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-03  Ken Raeburn  <raeburn@mit.edu>
+
+       * reconf: Look for autoconf 2.12 or later.  Don't use "grep -q",
+       it's not portable enough.
+
 2000-06-30  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in (all-unix, clean_unix): Removed util/db2 include
index 9251467ea7b15a744e127a52d5b677a7c7cd866e..5d6533dc135f226ce6ce169917c116ccaff9fb24 100644 (file)
@@ -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"