autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

31-as-echo-n-requirement.patch


From: Akim Demaille
Subject: 31-as-echo-n-requirement.patch
Date: Wed, 10 Oct 2001 15:08:47 +0200

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
        m4_define, since...
        (_AS_ECHO_N): AS_REQUIREs it.
        
        
Index: lib/m4sugar/m4sh.m4
--- lib/m4sugar/m4sh.m4 Sun, 07 Oct 2001 19:02:31 +0200 akim
+++ lib/m4sugar/m4sh.m4 Tue, 09 Oct 2001 21:54:46 +0200 akim
@@ -328,7 +328,7 @@ m4_define([_AS_ECHO],
 # has little interest.
 # Idea borrowed from dist 3.0.  Use `*c*,', not `*c,' because if `\c'
 # failed there is also a new-line to match.
-m4_define([_AS_ECHO_N_PREPARE],
+m4_defun([_AS_ECHO_N_PREPARE],
 [case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
   *c*,-n*) ECHO_N= ECHO_C='
 ' ECHO_T='     ' ;;
@@ -342,7 +342,8 @@ m4_define([_AS_ECHO_N_PREPARE],
 # ----------------------------------------
 # Same as _AS_ECHO, but echo doesn't return to a new line.
 m4_define([_AS_ECHO_N],
-[echo $ECHO_N "_AS_QUOTE([$1])$ECHO_C" >&m4_default([$2],
+[AS_REQUIRE([_AS_ECHO_N_PREPARE])dnl
+echo $ECHO_N "_AS_QUOTE([$1])$ECHO_C" >&m4_default([$2],
                                                     [AS_MESSAGE_FD])])
 
 
@@ -812,7 +813,7 @@ m4_define([AS_UNAME],
 [AS_REQUIRE([_$0_PREPARE])dnl
 AS_LITERAL_IF([$1],
               [m4_bpatsubst(m4_translit([[$1]], [*+], [pp]),
-                           [[^a-zA-Z0-9_]], [_])],
+                            [[^a-zA-Z0-9_]], [_])],
               [`echo "$1" | $as_tr_sh`])])
 
 
@@ -834,8 +835,8 @@ m4_define([AS_UNAME],
 [AS_REQUIRE([_$0_PREPARE])dnl
 AS_LITERAL_IF([$1],
               [m4_bpatsubst(m4_translit([[$1]],
-                                       [*abcdefghijklmnopqrstuvwxyz],
-                                       [PABCDEFGHIJKLMNOPQRSTUVWXYZ]),
+                                        [*abcdefghijklmnopqrstuvwxyz],
+                                        [PABCDEFGHIJKLMNOPQRSTUVWXYZ]),
                            [[^A-Z0-9_]], [_])],
               [`echo "$1" | $as_tr_cpp`])])
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]