Fix CURL_CHECK_HEADERS_ONCE
authorYang Tse <yangsita@gmail.com>
Fri, 7 Jul 2006 04:42:15 +0000 (04:42 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 7 Jul 2006 04:42:15 +0000 (04:42 +0000)
acinclude.m4

index 7e859ae..0bd334c 100644 (file)
@@ -4,17 +4,18 @@ dnl CURL_CHECK_HEADERS_ONCE
 dnl -------------------------------------------------
 dnl Check for headers if check not already done.
 
-AC_DEFUN(CURL_CHECK_HEADERS_ONCE, [
-  for i in $1; do
-    eval prev_check_res=\$ac_cv_header_$i
+AC_DEFUN([CURL_CHECK_HEADERS_ONCE], [
+  for f_hdr in $1
+  do
+    u_hdr=`echo "$f_hdr" | sed 'y/\.\/-/___/'`
+    eval prev_check_res=\$ac_cv_header_$u_hdr
     case "$prev_check_res" in
       yes | no)
         ;;
       *)
-        AC_CHECK_HEADERS($i)
+        AC_CHECK_HEADERS($f_hdr)
         ;;
     esac
-
   done
 ])