openbsd-ports/net/freeradius/patches/patch-configure_in
sthen 0e699bd9f7 Update freeradius-server to 2.1.8; fixes licensing (was GPL linked
with OpenSSL; this version adds an exemption clause). Much cleanup of
the port, particularly giving a simpler installation for new users.

Thanks pea@ for testing. Maintainer timeout.
2010-05-17 16:39:25 +00:00

42 lines
1.4 KiB
Plaintext

$OpenBSD: patch-configure_in,v 1.1 2010/05/17 16:39:25 sthen Exp $
--- configure.in.orig Mon May 10 17:01:49 2010
+++ configure.in Mon May 10 17:08:27 2010
@@ -474,7 +474,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" ]
@@ -510,7 +510,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.
@@ -771,12 +772,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