summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <bero@arklinux.org>2001-09-26 09:26:30 +0000
committerBernhard Rosenkraenzer <bero@arklinux.org>2001-09-26 09:26:30 +0000
commit7c7cf07dccd88838e6e4fd67778859581e7abe58 (patch)
tree866264cf3c335c8f6623eed74ce73ec9a6c95db9 /autogen.sh
parentffc15b1799ac9ec3d8979d61d16f8d9169bd5c4f (diff)
downloadgrep-7c7cf07dccd88838e6e4fd67778859581e7abe58.tar.gz
Fix autoconf detection
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index cc22725f..852383ed 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,6 +1,6 @@
#!/bin/sh
# We want to support both legacy and current autoconf - this is a bit ugly...
-AC_VERSION=`autoconf --version 2>&1 |cut -d' ' -f3 |sed -e "s/\.//;s/[a-z]//"`
+AC_VERSION=`autoconf --version 2>&1 |head -n1 |sed -e "s/.* //;s/\.//;s/[a-z]//"`
if test -z "$AC_VERSION"; then
echo "Warning: Couldn't determine autoconf version. Assuming a current version."
AC_VERSION=252