From: Bruno Haible Date: Sun, 16 Nov 2003 18:53:18 +0000 (+0000) Subject: Use an echo command that doesn't interpret backslashes. X-Git-Tag: v0.13~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4907d883fb317989254b756cf40bec5f760234c3;p=thirdparty%2Fgettext.git Use an echo command that doesn't interpret backslashes. --- diff --git a/gettext-runtime/m4/po.m4 b/gettext-runtime/m4/po.m4 index a6e906af5..b8190a505 100644 --- a/gettext-runtime/m4/po.m4 +++ b/gettext-runtime/m4/po.m4 @@ -227,6 +227,22 @@ changequote(,)dnl *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac + # Find a way to echo strings without interpreting backslash. + if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then + gt_echo='echo' + else + if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then + gt_echo='printf %s\n' + else + echo_func () { + cat <