summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-05-07 12:56:34 -0400
committerGlenn Morris <rgm@gnu.org>2014-05-07 12:56:34 -0400
commit98e12950aee65b44beb43e9dcaa77bd2b5e2d308 (patch)
treedfee63399f182c21789f876999dddfd10975a47f /autogen.sh
parentf62bc934f022be3c4af03ec9877f4ba32628822e (diff)
downloademacs-98e12950aee65b44beb43e9dcaa77bd2b5e2d308.tar.gz
* autogen.sh: Check for failing aclocal.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 35175e70b1c..32f86ab8200 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -211,7 +211,17 @@ fi
echo "Checking for pkg.m4..."
AUTORECONF_ENV=
env_space=
-ac_dir=`aclocal --print-ac-dir` && test -r "$ac_dir/pkg.m4" || {
+ac_dir=`aclocal --print-ac-dir` || {
+ cat <<EOF
+There was a problem running 'aclocal --print-ac-dir'.
+The aclocal program is part of automake.
+Please check your automake installation.
+EOF
+
+ exit 1
+}
+
+test -n "$ac_dir" && test -r "$ac_dir/pkg.m4" || {
# Maybe ACLOCAL_PATH is already set-up.
if test -n "$ACLOCAL_PATH"; then