"else". Separate commands inside AC_TRY_COMMAND with semicolons.
From Nicolas Joly.
+2001-02-03 Pavel Roskin <proski@gnu.org>
+
+ * tests/base.at (AC_TRY_COMMAND): Add a colon between "then" and
+ "else". Separate commands inside AC_TRY_COMMAND with semicolons.
+ From Nicolas Joly.
+
2001-02-03 Akim Demaille <akim@epita.fr>
* acgeneral.m4 (_AC_INIT_LOG_COMPLETE): Removed, dead code.
AT_DATA([configure.ac],
[[AC_INIT
-if AC_TRY_COMMAND([(echo "The Cat in the Hat"
+if AC_TRY_COMMAND([(echo "The Cat in the Hat";
echo "The Hat in the Cat" >&2)
| grep ^The\ Cat\ in\ the\ Hat\$ >/dev/null]); then
- # Cool!
+ :
else
AC_MSG_ERROR([Didn't see the Cat in the Hat!])
fi
-if AC_TRY_COMMAND([(echo "The Cat in the Hat"
+if AC_TRY_COMMAND([(echo "The Cat in the Hat";
echo "The Hat in the Cat" >&2)
| grep ^The\ Hat\ in\ the\ Cat\$ >/dev/null]); then
AC_MSG_ERROR([Saw the Hat in the Cat!])