diff options
author | lurchi <lurchi@strangeplace.net> | 2018-06-24 23:31:07 +0200 |
---|---|---|
committer | lurchi <lurchi@strangeplace.net> | 2018-06-24 23:31:07 +0200 |
commit | c38455c65f9968ccf7e870c3cce30fa19f319376 (patch) | |
tree | 523075af0d81a9f460d60b90b51557ad83bd5b42 /configure.ac | |
parent | 92e03f9117f5dc29909d73707897d28d8e27e048 (diff) | |
download | gnunet-c38455c65f9968ccf7e870c3cce30fa19f319376.tar.gz gnunet-c38455c65f9968ccf7e870c3cce30fa19f319376.zip |
use the asynchronous DNS resolution API (getaddrinfo_a) in the resolver module
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 99eeeba8a..fc44dcf5a 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -58,7 +58,7 @@ fi | |||
58 | # Use Linux interface name unless the OS has a different preference | 58 | # Use Linux interface name unless the OS has a different preference |
59 | DEFAULT_INTERFACE="\"eth0\"" | 59 | DEFAULT_INTERFACE="\"eth0\"" |
60 | 60 | ||
61 | funcstocheck="getnameinfo gethostname gethostbyname gethostbyaddr getaddrinfo" | 61 | funcstocheck="getnameinfo gethostname gethostbyname gethostbyaddr getaddrinfo getaddrinfo_a" |
62 | 62 | ||
63 | # Srcdir in a form that native compiler understands (i.e. DOS path on W32) | 63 | # Srcdir in a form that native compiler understands (i.e. DOS path on W32) |
64 | native_srcdir=$srcdir | 64 | native_srcdir=$srcdir |
@@ -230,6 +230,10 @@ AC_CHECK_DECLS([_stati64]) | |||
230 | # will be more selective! | 230 | # will be more selective! |
231 | SAVE_LIBS=$LIBS | 231 | SAVE_LIBS=$LIBS |
232 | 232 | ||
233 | have_addrinfo_a=0 | ||
234 | AC_CHECK_LIB(anl, getaddrinfo_a, [have_addrinfo_a=1 AC_DEFINE(HAVE_GETADDRINFO_A,1,[getaddrinfo_a supported])]) | ||
235 | AM_CONDITIONAL(HAVE_GETADDRINFO_A, [test "$have_addrinfo_a" = 1]) | ||
236 | |||
233 | # tests only run on Windows | 237 | # tests only run on Windows |
234 | if test "x$build_target" = "xmingw" | 238 | if test "x$build_target" = "xmingw" |
235 | then | 239 | then |
@@ -1537,7 +1541,7 @@ AC_LINK_IFELSE( | |||
1537 | ],[ | 1541 | ],[ |
1538 | AC_DEFINE_UNQUOTED([HAVE_GETADDRINFO],1,[Define this if getaddrinfo() is available]) | 1542 | AC_DEFINE_UNQUOTED([HAVE_GETADDRINFO],1,[Define this if getaddrinfo() is available]) |
1539 | ],[ | 1543 | ],[ |
1540 | AC_DEFINE_UNQUOTED([HAVE_GETADDRINFO],1,[Define this if getaddrinfo() is available]) | 1544 | AC_DEFINE_UNQUOTED([HAVE_GETADDRINFO],0,[Define this if getaddrinfo() is available]) |
1541 | ]) | 1545 | ]) |
1542 | 1546 | ||
1543 | else | 1547 | else |