Commit 06c16459 authored by Conrad Parker's avatar Conrad Parker

bring vorbis-tools/autogen.sh in line with that in vorbis:

 + add more verbose output to tool checks
 + add support for differently named libtoolize, eg. glibtoolize on OS X

svn path=/trunk/vorbis-tools/; revision=9703
parent dab3c5f7
......@@ -11,6 +11,7 @@ test -z "$srcdir" && srcdir=.
cd "$srcdir"
DIE=0
echo "checking for autoconf... "
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile $package."
......@@ -19,6 +20,7 @@ DIE=0
DIE=1
}
echo "checking for automake... "
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have automake installed to compile $package."
......@@ -28,6 +30,7 @@ DIE=0
DIE=1
}
echo "checking for aclocal... "
(aclocal --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "The aclocal tool was not found. You probably"
......@@ -36,7 +39,17 @@ DIE=0
echo
}
(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
echo -n "checking for libtool... "
for LIBTOOLIZE in libtoolize glibtoolize nope; do
(type $LIBTOOLIZE) > /dev/null 2>&1 && break
done
if test x$LIBTOOLIZE = xnope; then
echo "nope."
LIBTOOLIZE=libtoolize
else
echo $LIBTOOLIZE
fi
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have libtool installed to compile $package."
echo "Download the appropriate package for your system,"
......@@ -45,6 +58,7 @@ DIE=0
DIE=1
}
echo "checking for gettext... "
(gettext --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have gettext installed to compile $package."
......@@ -69,8 +83,8 @@ echo " aclocal $ACLOCAL_FLAGS"
aclocal $ACLOCAL_FLAGS || exit 1
echo " autoheader"
autoheader || exit 1
echo " libtoolize --automake"
libtoolize --automake || exit 1
echo " $LIBTOOLIZE --automake"
$LIBTOOLIZE --automake || exit 1
echo " automake --add-missing $AUTOMAKE_FLAGS"
automake --add-missing $AUTOMAKE_FLAGS || exit 1
echo " autoconf"
......
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