diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-08-28 14:40:56 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-08-28 14:40:56 -0400 |
commit | 82303d6170aa541a3dc8c2519c7cc1445fc18842 (patch) | |
tree | 06760ffdceb9d2751f517079011efdcd043e95f6 | |
parent | 1c6556f6566b7bdfd2c8f46e8a6b6a35c9ae6891 (diff) |
[autogen.sh] Handle case of no aclocal found
-rwxr-xr-x | autogen.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |