rewrite of sed-based automake version check
authorJürgen Hötzel <juergen@archlinux.org>
Wed, 17 Jun 2009 13:42:57 +0000 (13:42 +0000)
committerJürgen Hötzel <juergen@archlinux.org>
Wed, 17 Jun 2009 13:42:57 +0000 (13:42 +0000)
autogen.sh

index dfda76e..38418f4 100755 (executable)
@@ -2,7 +2,7 @@
 AC_VERSION=
 
 AUTOMAKE=${AUTOMAKE:-automake}
-AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/ *([^()]*)$//' -e 's/.* \([0-9]*\.[0-9]*\)\..*/\1/' -e 's/-p[0-9]\+//')
+AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/')
 
 if [ "$AM_INSTALLED_VERSION" != "1.10" \
     -a "$AM_INSTALLED_VERSION" != "1.11" ];then