2003-08-05 22:52:31 +08:00
|
|
|
$Id$
|
|
|
|
_ _ ____ _
|
|
|
|
___| | | | _ \| |
|
|
|
|
/ __| | | | |_) | |
|
|
|
|
| (__| |_| | _ <| |___
|
|
|
|
\___|\___/|_| \_\_____|
|
|
|
|
|
|
|
|
How To Build libcurl to use ares for asynch name resolves
|
|
|
|
=========================================================
|
|
|
|
|
2003-08-06 21:21:19 +08:00
|
|
|
ares:
|
|
|
|
ftp://athena-dist.mit.edu/pub/ATHENA/ares/ares-1.1.1.tar.gz
|
|
|
|
http://curl.haxx.se/dev/ares-1.1.1.tar.gz
|
|
|
|
|
|
|
|
ares patch:
|
2003-09-15 06:42:08 +08:00
|
|
|
http://curl.haxx.se/dev/ares-curl2.diff
|
2003-08-05 22:52:31 +08:00
|
|
|
|
2003-08-06 21:21:19 +08:00
|
|
|
Mac OS X quirk:
|
|
|
|
ares 1.1.1 contains too old versions of config.guess and config.sub. Copy
|
|
|
|
the ones from the curl source tree in to the ares source tree before you
|
|
|
|
run configure.
|
2003-08-05 22:52:31 +08:00
|
|
|
|
2003-08-06 21:21:19 +08:00
|
|
|
Build ares
|
|
|
|
==========
|
|
|
|
|
2003-08-06 21:22:29 +08:00
|
|
|
1. unpack the ares-1.1.1 archive
|
2003-09-15 06:42:08 +08:00
|
|
|
2. cd ares-src
|
|
|
|
3. patch -p0 < ares-curl-patch
|
|
|
|
4. ./configure
|
|
|
|
5. make
|
2003-08-05 22:52:31 +08:00
|
|
|
|
2003-08-06 21:22:29 +08:00
|
|
|
Build libcurl to use ares
|
|
|
|
=========================
|
2003-08-05 22:52:31 +08:00
|
|
|
|
2003-08-06 21:21:19 +08:00
|
|
|
1. Move the ares source/build tree to subdirectory in the curl root named
|
|
|
|
'ares'.
|
|
|
|
2. ./buildconf
|
|
|
|
3. ./configure --enable-ares
|
|
|
|
4. make
|
2003-08-05 22:52:31 +08:00
|
|
|
|
2003-08-06 21:21:19 +08:00
|
|
|
If the configure script detects IPv6 support), you need to explicitly disable
|
|
|
|
that (--disable-ipv6) since ares isn't IPv6 compatible (yet).
|
2003-08-05 22:52:31 +08:00
|
|
|
|
|
|
|
Please let me know how it builds, runs, works or whatever. I had to do some
|
|
|
|
fairly big changes in some code parts to get this to work.
|