aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-05 13:37:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-05 13:37:29 +0000
commitf85935f0f964f1475e522914c3f665508349e5ed (patch)
tree6f1b1805a8cc274020c616db12582052c39a9701
parent1e7e53c87e2eb635fda9b50f8642f5d2b42a35df (diff)
Add --enable-ares support, which will make us build curl with ares for
asynch name resolves. Still very experimental, beware!
-rw-r--r--configure.ac24
1 files changed, 24 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index edbc94ad9..fdb33a58f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -955,6 +955,30 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
AC_MSG_RESULT(no)
)
+ares="no"
+AC_MSG_CHECKING([whether to enable ares])
+AC_ARG_ENABLE(ares,
+AC_HELP_STRING([--enable-ares],[Enable using ares for name lookups])
+AC_HELP_STRING([--disable-ares],[Disable using ares for name lookups]),
+[ case "$enableval" in
+ no)
+ AC_MSG_RESULT(no)
+ ;;
+ *) AC_MSG_RESULT(yes)
+
+ if test "$IPV6_ENABLED" -eq 1; then
+ AC_MSG_ERROR([ares doesn't work with ipv6, disable ipv6 to use ares])
+ fi
+
+ CPPFLAGS="$CPPFLAGS -DUSE_ARES"
+ ares="yes"
+ ;;
+ esac ],
+ AC_MSG_RESULT(no)
+)
+
+AM_CONDITIONAL(ARES, test x$ares = xyes)
+
AC_CONFIG_FILES([Makefile \
docs/Makefile \
docs/examples/Makefile \