42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
$OpenBSD: patch-configure_in,v 1.2 2011/11/22 16:22:27 jasper Exp $
|
|
--- configure.in.orig Mon Jun 20 16:57:14 2011
|
|
+++ configure.in Tue Nov 22 17:22:08 2011
|
|
@@ -497,7 +497,7 @@ dnl # to do the threading properly.
|
|
dnl #
|
|
AC_CHECK_LIB(pthread, pthread_create,
|
|
[ CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
|
|
- LIBS="$LIBS -lpthread" ],
|
|
+ LIBS="$LIBS -pthread" ],
|
|
AC_CHECK_LIB(c_r, pthread_create,
|
|
[ CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE" ],
|
|
[ WITH_THREADS="no" ]
|
|
@@ -533,7 +533,8 @@ AC_CHECK_LIB(socket, getsockname)
|
|
|
|
dnl Check for -lresolv
|
|
dnl This library may be needed later.
|
|
-AC_CHECK_LIB(resolv, inet_aton)
|
|
+AC_CHECK_FUNCS([inet_aton])
|
|
+dnl AC_CHECK_LIB(resolv, inet_aton)
|
|
|
|
dnl Check if we need -lnsl. Usually if we want to
|
|
dnl link against -lsocket we need to include -lnsl as well.
|
|
@@ -806,12 +807,18 @@ FR_CHECK_TYPE_INCLUDE([
|
|
],uint32_t, unsigned int, [uint32_t should be the canonical 'network integer])
|
|
|
|
AC_CHECK_TYPE(struct in6_addr, AC_DEFINE(HAVE_STRUCT_IN6_ADDR, 1, [IPv6 address structure]), [], [
|
|
+#ifdef HAVE_UNISTD_H
|
|
+#include <unistd.h>
|
|
+#endif
|
|
#ifdef HAVE_NETINET_IN_H
|
|
#include <netinet/in.h>
|
|
#endif
|
|
])
|
|
|
|
AC_CHECK_TYPE(struct sockaddr_storage, AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE, 1, [Generic socket addresses]), [], [
|
|
+#ifdef HAVE_UNISTD_H
|
|
+#include <unistd.h>
|
|
+#endif
|
|
#ifdef HAVE_NETINET_IN_H
|
|
#include <netinet/in.h>
|
|
#endif
|