[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
72--ac-eval.patch
From: |
Akim Demaille |
Subject: |
72--ac-eval.patch |
Date: |
Thu, 14 Dec 2000 09:55:27 +0100 |
Index: ChangeLog
from Akim Demaille <address@hidden>
* acgeneral.m4 (_AC_EVAL): New.
(AC_TRY_EVAL, AC_TRY_COMMAND): Use it.
Index: acgeneral.m4
--- acgeneral.m4 Wed, 13 Dec 2000 19:56:27 +0100 akim (ace/27_acgeneral.
1.169.8.103 644)
+++ acgeneral.m4 Wed, 13 Dec 2000 21:00:42 +0100 akim (ace/27_acgeneral.
1.169.8.103 644)
@@ -2238,19 +2238,28 @@ m4_define([AC_MSG_ERROR], [AS_ERROR($@)
## ---------------------------- ##
+# _AC_EVAL(COMMAND)
+# -----------------
+# 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; }])
+
+
# 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],
-[{ (eval echo $as_me:__oline__: \"[$]$1\") >&AS_MESSAGE_LOG_FD; dnl
-(eval [$]$1) 2>&AS_MESSAGE_LOG_FD; }])
+[_AC_EVAL([$]$1) && (exit $ac_status) ])
# AC_TRY_COMMAND(COMMAND)
# -----------------------
AC_DEFUN([AC_TRY_COMMAND],
-[{ ac_try='$1'; AC_TRY_EVAL(ac_try); }])
+[_AC_EVAL([$1]) && (exit $ac_status) ])
## ------------------ ##
- 72--ac-eval.patch,
Akim Demaille <=