From: Yang Tse Date: Fri, 7 Jul 2006 12:59:45 +0000 (+0000) Subject: Using backslashes and slashes in the strings of the sed 'y' command shall be avoided... X-Git-Tag: curl-7_15_5~133 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03288943af26325db05b90903e5a2cd366eed2d1;p=thirdparty%2Fcurl.git Using backslashes and slashes in the strings of the sed 'y' command shall be avoided since its interpretation is not the same across platforms. Now we use the sed 's' command with a bracket expression. --- diff --git a/acinclude.m4 b/acinclude.m4 index 5ef157cca5..1948e7b1b7 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -29,7 +29,7 @@ dnl Check for headers if check not already done. AC_DEFUN([CURL_CHECK_HEADERS_ONCE], [ for f_hdr in $1 do - u_hdr=`echo "$f_hdr" | sed 'y/.\/-/___/'` + u_hdr=`echo "$f_hdr" | sed 's/[\-|\.|\/]/_/g'` eval prev_check_res=\$ac_cv_header_$u_hdr case "$prev_check_res" in yes | no) diff --git a/ares/acinclude.m4 b/ares/acinclude.m4 index 97fc10b722..02930ad25f 100644 --- a/ares/acinclude.m4 +++ b/ares/acinclude.m4 @@ -7,7 +7,7 @@ dnl Check for headers if check not already done. AC_DEFUN([CURL_CHECK_HEADERS_ONCE], [ for f_hdr in $1 do - u_hdr=`echo "$f_hdr" | sed 'y/.\/-/___/'` + u_hdr=`echo "$f_hdr" | sed 's/[\-|\.|\/]/_/g'` eval prev_check_res=\$ac_cv_header_$u_hdr case "$prev_check_res" in yes | no)