summaryrefslogtreecommitdiff
path: root/mail/fetchmail/patches/patch-ac
blob: 90ef62e860c7e242944958ceffd2666457229ca6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-ac,v 1.6 1999/11/21 18:37:58 frueauf Exp $

--- configure.in.orig	Sun Nov  7 23:50:31 1999
+++ configure.in	Sun Nov 21 18:21:39 1999
@@ -287,13 +287,9 @@
 
 AC_ARG_ENABLE(inet6,
 	[  --enable-inet6          support IPv6 (requires the inet6-apps library)],
-        [ unset ac_cv_lib_inet6_getaddrinfo; AC_CHECK_LIB(inet6,getaddrinfo,,
-	  [ unset ac_cv_lib_inet6_getaddrinfo;
-	    LDFLAGS="$LDFLAGS -L/usr/inet6/lib";
-            AC_CHECK_LIB(inet6, getaddrinfo,,
-              [ echo 'configure: cannot find libinet6, which is required for IPv6 support.'; 
-	      exit 1]) ]) ]
-	[with_inet6=no])
+	[ AC_CHECK_FUNCS(getaddrinfo,
+		[AC_DEFINE(INET6, 1)],
+		[echo 'configure: cannot find getaddrinfo which is required for inet6 support.'; exit 1]) ])
 test "$with_inet6" = "yes" && AC_DEFINE(INET6_ENABLE)
 
 AC_ARG_ENABLE(netsec,
@@ -496,7 +492,7 @@
     LDEFLAGS="$LDEFLAGS -L$with_hesiod/lib"
     LIBS="$LIBS -lhesiod"
 else
-    for dir in /usr/athena /usr /usr/local
+    for dir in /usr/athena /usr/local
     do
       if test -f "$dir/include/hesiod.h"
       then