`quote' section, `p'rint the result.
If neither `#define' pattern match, just call `d' to start a new
cycle.
- Call this sed program with -n.
+ Invoke this sed program with -n.
2001-01-30 Akim Demaille <akim@epita.fr>
# Eval COMMAND, save its stderr into conftest.err, save the exit status
# in ac_status, and log it.
# Note that when tracing, most shells will leave the traces in stderr
-
AC_DEFUN([_AC_EVAL_STDERR],
[{ (eval echo "$as_me:__oline__: \"$1\"") >&AS_MESSAGE_LOG_FD
(eval $1) 2>conftest.er1
# The purpose of this macro is to "configure:123: command line"
# written into config.log for every test run.
AC_DEFUN([AC_TRY_EVAL],
-[_AC_EVAL([$]$1)])
+[_AC_EVAL([$$1])])
# AC_TRY_COMMAND(COMMAND)
# -----------------------
AC_DEFUN([AC_TRY_COMMAND],
-[_AC_EVAL([$1])])
+[{ ac_try='$1'; _AC_EVAL([$ac_try]); }])
## ------------------ ##
# Eval COMMAND, save its stderr into conftest.err, save the exit status
# in ac_status, and log it.
# Note that when tracing, most shells will leave the traces in stderr
-
AC_DEFUN([_AC_EVAL_STDERR],
[{ (eval echo "$as_me:__oline__: \"$1\"") >&AS_MESSAGE_LOG_FD
(eval $1) 2>conftest.er1
# The purpose of this macro is to "configure:123: command line"
# written into config.log for every test run.
AC_DEFUN([AC_TRY_EVAL],
-[_AC_EVAL([$]$1)])
+[_AC_EVAL([$$1])])
# AC_TRY_COMMAND(COMMAND)
# -----------------------
AC_DEFUN([AC_TRY_COMMAND],
-[_AC_EVAL([$1])])
+[{ ac_try='$1'; _AC_EVAL([$ac_try]); }])
## ------------------ ##
AT_CHECK_CONFIGURE([-q])
AT_CLEANUP
+
+
+## ---------- ##
+## AC_TRY_*. ##
+## ---------- ##
+
+AT_SETUP([AC_TRY_*])
+
+AT_DATA([configure.ac],
+[[AC_INIT
+
+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"
+ 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!])
+fi
+]])
+
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE([-q])
+
+AT_CLEANUP