Skip to content
Snippets Groups Projects
Commit 266ab955 authored by Yang Tse's avatar Yang Tse
Browse files

Fix CURL_CHECK_HEADERS_ONCE

parent 0a4bba56
No related branches found
No related tags found
No related merge requests found
......@@ -26,17 +26,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
])
......
......@@ -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
])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment