aboutsummaryrefslogtreecommitdiffstats
path: root/lib/odbc/configure.in
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2010-11-01 14:48:04 +0100
committerIngela Anderton Andin <[email protected]>2010-11-01 14:48:04 +0100
commit626d906d3ad46d46a6c90cf3239fd60bad5dc318 (patch)
tree531bd2084dfb32f2ca1f8362753726e5e44eb61f /lib/odbc/configure.in
parent95188ca3a848a1bcb1412d922eb6b13deccf9267 (diff)
downloadotp-626d906d3ad46d46a6c90cf3239fd60bad5dc318.tar.gz
otp-626d906d3ad46d46a6c90cf3239fd60bad5dc318.tar.bz2
otp-626d906d3ad46d46a6c90cf3239fd60bad5dc318.zip
Better configure test that also works on windows.
Diffstat (limited to 'lib/odbc/configure.in')
-rw-r--r--lib/odbc/configure.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/odbc/configure.in b/lib/odbc/configure.in
index 94e8a214d4..c16d4f3880 100644
--- a/lib/odbc/configure.in
+++ b/lib/odbc/configure.in
@@ -118,11 +118,18 @@ AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"]))
dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([fcntl.h netdb.h stdlib.h string.h sys/socket.h])
+AC_CHECK_HEADERS([fcntl.h netdb.h stdlib.h string.h sys/socket.h winsock2.h])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
+AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_addr], [], [],
+ [#if HAVE_WINSOCK2_H
+ #include <winsock2.h>
+ #include <windows.h>
+ #else
+ #include <netinet/in.h>
+ #endif])
dnl Checks for library functions.
AC_CHECK_FUNCS([memset socket])