mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
git-svn-id: file:///svn/unbound/trunk@2561 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
3b35e412f5
commit
9761d0c6de
3 changed files with 19 additions and 2 deletions
|
|
@ -2,7 +2,8 @@
|
||||||
# Copyright 2009, Wouter Wijngaards, NLnet Labs.
|
# Copyright 2009, Wouter Wijngaards, NLnet Labs.
|
||||||
# BSD licensed.
|
# BSD licensed.
|
||||||
#
|
#
|
||||||
# Version 16
|
# Version 17
|
||||||
|
# 2011-12-05 Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
|
||||||
# 2011-11-10 Fix FLTO test to not drop a.out in current directory.
|
# 2011-11-10 Fix FLTO test to not drop a.out in current directory.
|
||||||
# 2011-11-01 Fix FLTO test for llvm on Lion.
|
# 2011-11-01 Fix FLTO test for llvm on Lion.
|
||||||
# 2011-08-01 Fix nonblock test (broken at v13).
|
# 2011-08-01 Fix nonblock test (broken at v13).
|
||||||
|
|
@ -794,7 +795,13 @@ int main() {
|
||||||
}
|
}
|
||||||
]])],
|
]])],
|
||||||
dnl this case on linux, solaris, bsd
|
dnl this case on linux, solaris, bsd
|
||||||
[ac_cv_func_getaddrinfo="yes"],
|
[ac_cv_func_getaddrinfo="yes"
|
||||||
|
dnl see if on windows
|
||||||
|
if test "$ac_cv_header_windows_h" = "yes"; then
|
||||||
|
AC_DEFINE(USE_WINSOCK, 1, [Whether the windows socket API is used])
|
||||||
|
USE_WINSOCK="1"
|
||||||
|
fi
|
||||||
|
],
|
||||||
dnl no quick getaddrinfo, try mingw32 and winsock2 library.
|
dnl no quick getaddrinfo, try mingw32 and winsock2 library.
|
||||||
ORIGLIBS="$LIBS"
|
ORIGLIBS="$LIBS"
|
||||||
LIBS="$LIBS -lws2_32"
|
LIBS="$LIBS -lws2_32"
|
||||||
|
|
|
||||||
7
configure
vendored
7
configure
vendored
|
|
@ -16990,6 +16990,13 @@ int main() {
|
||||||
_ACEOF
|
_ACEOF
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
ac_cv_func_getaddrinfo="yes"
|
ac_cv_func_getaddrinfo="yes"
|
||||||
|
if test "$ac_cv_header_windows_h" = "yes"; then
|
||||||
|
|
||||||
|
$as_echo "#define USE_WINSOCK 1" >>confdefs.h
|
||||||
|
|
||||||
|
USE_WINSOCK="1"
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
ORIGLIBS="$LIBS"
|
ORIGLIBS="$LIBS"
|
||||||
LIBS="$LIBS -lws2_32"
|
LIBS="$LIBS -lws2_32"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
5 December 2011: Wouter
|
||||||
|
- Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
|
||||||
|
|
||||||
2 December 2011: Wouter
|
2 December 2011: Wouter
|
||||||
- configure generated with autoconf 2.68.
|
- configure generated with autoconf 2.68.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue