summaryrefslogtreecommitdiff
path: root/mail/evolution-data-server/patches/patch-ak
blob: 1fa34ae54700589319f3f2003f655e71616157bd (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
31
32
33
34
35
36
37
38
$NetBSD: patch-ak,v 1.8 2009/02/27 17:40:43 wiz Exp $

--- configure.orig	2009-02-25 02:39:01.000000000 +0000
+++ configure
@@ -28684,6 +28684,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 		#include <sys/socket.h>
 		#include <netinet/in.h>
 		#include <netdb.h>
+		#include <stddef.h>
 
 
 int
@@ -31541,13 +31542,13 @@ EVO_MARSHAL_RULE=$srcdir/marshal.mk
 
 
 	PTHREAD_LIB=""
-	{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
-$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
+	{ $as_echo "$as_me:$LINENO: checking for pthread_create in ${PTHREAD_LIB}" >&5
+$as_echo_n "checking for pthread_create in ${PTHREAD_LIB}... " >&6; }
 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="${PTHREAD_LIB}  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -31607,7 +31608,7 @@ fi
 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
-  PTHREAD_LIB="-lpthread"
+  PTHREAD_LIB="${PTHREAD_LIB}"
 else
   { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }