summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-02 01:17:37 +0000
committerYang Tse <yangsita@gmail.com>2006-07-02 01:17:37 +0000
commita838f1a431d58f9f6600641f34eb5330f8e379e4 (patch)
treeb18808109784d7bb52af79d82f60305c1fe5a8f8 /acinclude.m4
parentbe2ee2baac387b10ca843d45ae4467323e91b9c6 (diff)
downloadc-ares-a838f1a431d58f9f6600641f34eb5330f8e379e4.tar.gz
c-ares-a838f1a431d58f9f6600641f34eb5330f8e379e4.tar.bz2
c-ares-a838f1a431d58f9f6600641f34eb5330f8e379e4.zip
Fix shell globbing in CURL_CHECK_FUNC_GETNAMEINFO
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m423
1 files changed, 22 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 6816a45..09bf743 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -349,6 +349,9 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [
set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
IFS=$gni_prev_IFS
shift
+ #
+ gni_qual_type_arg1=$[1]
+ #
AC_DEFINE_UNQUOTED(GETNAMEINFO_TYPE_ARG2, $[2],
[Define to the type of arg 2 for getnameinfo.])
AC_DEFINE_UNQUOTED(GETNAMEINFO_TYPE_ARG46, $[3],
@@ -356,7 +359,16 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [
AC_DEFINE_UNQUOTED(GETNAMEINFO_TYPE_ARG7, $[4],
[Define to the type of arg 7 for getnameinfo.])
#
- gni_qual_type_arg1=$[1]
+ gni_opts=$-
+ #
+ case $gni_opts in
+ esac
+ *f*)
+ ;;
+ *)
+ set -f
+ ;;
+ esac
#
case "$gni_qual_type_arg1" in
const*)
@@ -374,6 +386,15 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [
AC_DEFINE_UNQUOTED(GETNAMEINFO_TYPE_ARG1, $gni_type_arg1,
[Define to the type of arg 1 for getnameinfo.])
#
+ case $gni_opts in
+ esac
+ *f*)
+ ;;
+ *)
+ set +f
+ ;;
+ esac
+ #
AC_DEFINE_UNQUOTED(HAVE_GETNAMEINFO, 1,
[Define to 1 if you have the getnameinfo function.])
ac_cv_func_getnameinfo="yes"