Commit 3bc677d2 authored by Pekka Pessi's avatar Pekka Pessi

autogen.sh: fixed autoconf/automake version discovery.

darcs-hash:20060517192122-65a35-f26194c109110873efd2c66fd3a5e08faa17c582.gz
parent 848ddf97
......@@ -3,9 +3,9 @@
autoconf=${autoconf:-autoconf} autoheader=${autoheader:-autoheader}
for version in 2.59 2.58 2.57 2.53 2.52; do
if autoconf --version 2>&1 | fgrep -q $version" ; then
if autoconf --version 2>&1 | fgrep -q "$version" ; then
break
elif autoconf-$version --version 2>&1 | fgrep -q $version" ; then
elif autoconf-$version --version 2>&1 | fgrep -q "$version" ; then
autoconf=autoconf-$version autoheader=autoheader-$version
break
fi
......@@ -14,9 +14,9 @@ done
aclocal=${aclocal:-aclocal} automake=${automake:-automake}
for version in 1.9 1.7 1.8; do # No more 1.6
if automake --version 2>&1 | fgrep -q $version" ; then
if automake --version 2>&1 | fgrep -q "$version" ; then
break
elif automake-$version --version 2>&1 | fgrep -q $version" ; then
elif automake-$version --version 2>&1 | fgrep -q "$version" ; then
automake=automake-$version aclocal=aclocal-$version
break
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment