+2000-12-22 Akim Demaille <akim@epita.fr>
+
+ * acgeneral.m4 (_AC_EVAL, AC_TRY_EVAL, AC_TRY_COMMAND): Be a
+ single statement, so that one can make pipes with AC_TRYs, just as
+ in 2.13.
+
2000-12-20 Lars J. Aas <larsa@sim.no>
* aclang.m4 (_AC_COMPILER_OBJEXT, _AC_COMPILER_EXEEXT_O):
# Eval COMMAND, save the exit status in ac_status, and log it.
AC_DEFUN([_AC_EVAL],
[{ (eval echo "$as_me:__oline__: \"$1\"") >&AS_MESSAGE_LOG_FD
- (eval $1) 2>&AS_MESSAGE_LOG_FD
- ac_status=$?
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD; }])
+ (eval $1) 2>&AS_MESSAGE_LOG_FD
+ ac_status=$?
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ (exit $ac_status); }])
# AC_TRY_EVAL(VARIABLE)
# 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) && (exit $ac_status) ])
+[_AC_EVAL([$]$1)])
# AC_TRY_COMMAND(COMMAND)
# -----------------------
AC_DEFUN([AC_TRY_COMMAND],
-[_AC_EVAL([$1]) && (exit $ac_status) ])
+[_AC_EVAL([$1])])
## ------------------ ##
# Eval COMMAND, save the exit status in ac_status, and log it.
AC_DEFUN([_AC_EVAL],
[{ (eval echo "$as_me:__oline__: \"$1\"") >&AS_MESSAGE_LOG_FD
- (eval $1) 2>&AS_MESSAGE_LOG_FD
- ac_status=$?
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD; }])
+ (eval $1) 2>&AS_MESSAGE_LOG_FD
+ ac_status=$?
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ (exit $ac_status); }])
# AC_TRY_EVAL(VARIABLE)
# 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) && (exit $ac_status) ])
+[_AC_EVAL([$]$1)])
# AC_TRY_COMMAND(COMMAND)
# -----------------------
AC_DEFUN([AC_TRY_COMMAND],
-[_AC_EVAL([$1]) && (exit $ac_status) ])
+[_AC_EVAL([$1])])
## ------------------ ##