Substitution of the literal '-' is only done if it's the first or last character.
authorYang Tse <yangsita@gmail.com>
Fri, 7 Jul 2006 14:03:17 +0000 (14:03 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 7 Jul 2006 14:03:17 +0000 (14:03 +0000)
acinclude.m4
ares/acinclude.m4

index 1948e7b..18f78ad 100644 (file)
@@ -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 's/[\-|\.|\/]/_/g'`
+    u_hdr=`echo "$f_hdr" | sed 's/[-|\.|\/]/_/g'`
     eval prev_check_res=\$ac_cv_header_$u_hdr
     case "$prev_check_res" in
       yes | no)
index 02930ad..e81f6a4 100644 (file)
@@ -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 's/[\-|\.|\/]/_/g'`
+    u_hdr=`echo "$f_hdr" | sed 's/[-|\.|\/]/_/g'`
     eval prev_check_res=\$ac_cv_header_$u_hdr
     case "$prev_check_res" in
       yes | no)