summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-07 04:42:15 +0000
committerYang Tse <yangsita@gmail.com>2006-07-07 04:42:15 +0000
commit33be40af18ba0525c426ef4a2e2dafa9d7c3d736 (patch)
treeffdbf712186a6cf2a73393ca732d5fb4d70fe328 /acinclude.m4
parent69a7d102b704fbb6903d7b8f3588dd791c44ecbd (diff)
downloadc-ares-33be40af18ba0525c426ef4a2e2dafa9d7c3d736.tar.gz
c-ares-33be40af18ba0525c426ef4a2e2dafa9d7c3d736.tar.bz2
c-ares-33be40af18ba0525c426ef4a2e2dafa9d7c3d736.zip
Fix CURL_CHECK_HEADERS_ONCE
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m411
1 files changed, 6 insertions, 5 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 7e859ae..0bd334c 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -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
])