updated to work with new versions of autotools

This commit is contained in:
Дмитрий Левин 2002-09-27 13:54:28 +00:00
parent 86ac83da0a
commit 328cdde8c1

View File

@ -9,9 +9,9 @@ export LDFLAGS
: ${AUTOCONF:=autoconf}
: ${AUTOHEADER:=autoheader}
LTV="libtoolize (GNU libtool) 1.4"
ACV="autoconf (GNU Autoconf) 2.53"
AMV="automake (GNU automake) 1.6.1"
LTV='libtoolize (GNU libtool) 1\.4.*'
ACV='autoconf (GNU Autoconf) 2\.5[3-9]'
AMV='automake (GNU automake) 1\.6\.[1-9]'
USAGE="
This script documents the versions of the tools I'm using to build rpm:
libtool-1.4
@ -22,9 +22,9 @@ checked if you need to, as rpm should build (and has built) with all
recent versions of libtool/autoconf/automake.
"
[ "`$LIBTOOLIZE --version`" != "$LTV" ] && echo "$USAGE" && exit 1
[ "`$AUTOCONF --version | head -1`" != "$ACV" ] && echo "$USAGE" && exit 1
[ "`$AUTOMAKE --version | head -1 | sed -e 's/1\.4[a-z]/1.4/'`" != "$AMV" ] && echo "$USAGE" && exit 1
$LIBTOOLIZE --version |head -1 |grep -qs "$LTV" || { echo "$USAGE"; exit 1; }
$AUTOCONF --version |head -1 |grep -qs "$ACV" || { echo "$USAGE"; exit 1; }
$AUTOMAKE --version |head -1 |grep -qs "$AMV" || { echo "$USAGE"; exit 1; }
$LIBTOOLIZE --copy --force
$ACLOCAL