summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-08-28 14:40:56 -0400
committerBehdad Esfahbod <behdad@behdad.org>2008-08-28 14:40:56 -0400
commit82303d6170aa541a3dc8c2519c7cc1445fc18842 (patch)
tree06760ffdceb9d2751f517079011efdcd043e95f6
parent1c6556f6566b7bdfd2c8f46e8a6b6a35c9ae6891 (diff)
[autogen.sh] Handle case of no aclocal found
-rwxr-xr-xautogen.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh
index cf253ef6..7e1e2fa5 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -144,7 +144,7 @@ ACLOCAL=`echo $AUTOMAKE | sed s/automake/aclocal/`
version_check libtool LIBTOOLIZE "$LIBTOOLIZE glibtoolize libtoolize" $libtoolize_min_vers \
"http://ftp.gnu.org/pub/gnu/libtool/libtool-${libtool_min_vers}.tar.gz" || DIE=1
-if test -z "$ACLOCAL_FLAGS"; then
+if test -n "$ACLOCAL" && test -z "$ACLOCAL_FLAGS"; then
acdir=`$ACLOCAL --print-ac-dir`
if [ ! -f $acdir/pkg.m4 ]; then
echo "$ARGV0: Error: Could not find pkg-config macros."
@@ -155,11 +155,11 @@ if test -z "$ACLOCAL_FLAGS"; then
echo ""
echo "pkg-config is available from:"
echo "http://www.freedesktop.org/software/pkgconfig/"
- DIE=yes
+ DIE=1
fi
fi
-if test "X$DIE" != X; then
+if test -n "$DIE"; then
exit 1
fi