From 79dc74e84de3e239f2c7e2e03317ad2bcf679ab7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 25 Apr 2010 23:24:05 +0200 Subject: new configure option --enable-threaded-resolver --- m4/curl-confopts.m4 | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'm4') 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 ]) -- cgit v1.2.3