aboutsummaryrefslogtreecommitdiff
path: root/m4/curl-confopts.m4
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-04-25 23:24:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-04-25 23:24:05 +0200
commit79dc74e84de3e239f2c7e2e03317ad2bcf679ab7 (patch)
tree011f3ea8d53daec3a02621f75b8fd80e6b3ea9ba /m4/curl-confopts.m4
parent6be508dcc2097e1c659293b5a79b868c08da1711 (diff)
new configure option --enable-threaded-resolver
Diffstat (limited to 'm4/curl-confopts.m4')
-rw-r--r--m4/curl-confopts.m429
1 files changed, 27 insertions, 2 deletions
diff --git a/m4/curl-confopts.m4 b/m4/curl-confopts.m4
index fb11ee3cb..5a43b1961 100644
--- a/m4/curl-confopts.m4
+++ b/m4/curl-confopts.m4
@@ -21,8 +21,33 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
-# serial 11
+# serial 12
+dnl CURL_CHECK_OPTION_THREADED_RESOLVER
+dnl -------------------------------------------------
+dnl Verify if configure has been invoked with option
+dnl --enable-threaded-resolver or --disable-threaded-resover, and
+dnl set shell variable want_thres as appropriate.
+
+AC_DEFUN([CURL_CHECK_OPTION_THREADED_RESOLVER], [
+ AC_MSG_CHECKING([whether to enable the threaded resolver])
+ OPT_THRES="default"
+ AC_ARG_ENABLE(threaded_resolver,
+AC_HELP_STRING([--enable-threaded-resolver],[Enable threaded resolver])
+AC_HELP_STRING([--disable-threaded-resover],[Disable threaded resolver]),
+ OPT_THRES=$enableval)
+ case "$OPT_THRES" in
+ yes)
+ dnl --enable-threaded-resolver option used
+ want_thres="yes"
+ ;;
+ *)
+ dnl configure option not specified
+ want_thres="no"
+ ;;
+ esac
+ AC_MSG_RESULT([$want_thres])
+])
dnl CURL_CHECK_OPTION_ARES
dnl -------------------------------------------------
@@ -433,7 +458,7 @@ AC_DEFUN([CURL_CHECK_LIB_ARES], [
dnl finally c-ares will be used
AC_DEFINE(USE_ARES, 1, [Define to enable c-ares support])
AC_SUBST([USE_ARES], [1])
- curl_ares_msg="enabled"
+ curl_res_msg="c-ares"
fi
fi
])