Fix CURL_CHECK_HEADERS_ONCE

This commit is contained in:
Yang Tse
2006-07-07 04:42:11 +00:00
parent 0a4bba565c
commit 266ab95557
2 changed files with 12 additions and 10 deletions

View File

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

View File

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