]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Englisho.
authorAkim Demaille <akim@epita.fr>
Wed, 31 Jan 2001 15:00:35 +0000 (15:00 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 31 Jan 2001 15:00:35 +0000 (15:00 +0000)
ChangeLog
acgeneral.m4
lib/autoconf/general.m4
tests/base.at

index 089ce97c720529b8a9b5aea4e8db11ff17737498..0b108585b716549cb61fc6478f6533df9c89cc6b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,7 +18,7 @@
        `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>
 
index bf209b075fdf605db7c21db5885007d3c62e8896..938564b4d0548bbe6f53328edb862939e5c8b04e 100644 (file)
@@ -2225,7 +2225,6 @@ AC_DEFUN([_AC_EVAL],
 # 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
@@ -2242,13 +2241,13 @@ AC_DEFUN([_AC_EVAL_STDERR],
 # 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]); }])
 
 
 ## ------------------ ##
index bf209b075fdf605db7c21db5885007d3c62e8896..938564b4d0548bbe6f53328edb862939e5c8b04e 100644 (file)
@@ -2225,7 +2225,6 @@ AC_DEFUN([_AC_EVAL],
 # 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
@@ -2242,13 +2241,13 @@ AC_DEFUN([_AC_EVAL_STDERR],
 # 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]); }])
 
 
 ## ------------------ ##
index e339c4fd209eb64b6bd850d520fb8f62b0867640..57317b991c4fe3d8a7c97abcbc9d36fcc3852fed 100644 (file)
@@ -215,3 +215,33 @@ AT_CHECK_AUTOCONF
 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