+2001-06-23 Bruno Haible <haible@clisp.cons.org>
+
+ * aclocal.sh: Don't fail if aclocal isn't available.
+
2001-06-15 Bruno Haible <haible@clisp.cons.org>
* configure.in: Remove post-processing of tests/Makefile.
exit 1
fi
+# The command line is of the form
+# /somepath/aclocal ...
+# or
+# /somepath/missing aclocal ...
+# Extract the first part.
ACLOCAL="$1"
shift
+ACLOCAL2=
+case "$ACLOCAL" in
+ *missing)
+ ACLOCAL2="$1"
+ shift
+ esac
+ ;;
+esac
# Prepare temporary directory.
mkdir aclocal.tmp
trap "rm -rf aclocal.tmp; exit 1" 1 2 15
# First, copy the standard m4 files.
-for f in `"$ACLOCAL" --print-ac-dir`/*.m4; do
+for f in `"$ACLOCAL" $ACLOCAL2 --print-ac-dir`/*.m4; do
cp $f aclocal.tmp
done
done
# Now call `aclocal' for real.
-"$ACLOCAL" --acdir=aclocal.tmp $options
+"$ACLOCAL" $ACLOCAL2 --acdir=aclocal.tmp $options
# Clean up temporary directory.
rm -rf aclocal.tmp