summaryrefslogtreecommitdiff
path: root/x11/fox/patches/patch-aa
blob: 3e90c4b51d6167b9d1caf0e36b2a567d84516d6f (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
39
$NetBSD: patch-aa,v 1.8 2008/04/25 05:21:30 wiz Exp $

--- configure.orig	2008-03-11 04:09:40.000000000 +0100
+++ configure
@@ -22648,13 +22648,13 @@ fi
 
 PTHREAD_LIBS=notfound
 if test "x$PTHREAD_LIBS" = xnotfound; then
-{ echo "$as_me:$LINENO: checking for pthread_exit in -lpthread" >&5
-echo $ECHO_N "checking for pthread_exit in -lpthread... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: checking for pthread_exit in ${PTHREAD_LDFLAGS} ${REAL_PTHREAD_LIBS}" >&5
+echo $ECHO_N "checking for pthread_exit in ${PTHREAD_LDFLAGS} ${REAL_PTHREAD_LIBS}... $ECHO_C" >&6; }
 if test "${ac_cv_lib_pthread_pthread_exit+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="${PTHREAD_LDFLAGS} ${REAL_PTHREAD_LIBS} $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -22710,7 +22710,7 @@ fi
 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_exit" >&5
 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_exit" >&6; }
 if test $ac_cv_lib_pthread_pthread_exit = yes; then
-  PTHREAD_LIBS="-lpthread"
+  PTHREAD_LIBS="${PTHREAD_LDFLAGS} ${REAL_PTHREAD_LIBS}"
 fi
 
 fi
@@ -22777,7 +22777,7 @@ fi
 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_exit" >&5
 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_exit" >&6; }
 if test $ac_cv_lib_pthreads_pthread_exit = yes; then
-  PTHREAD_LIBS="-lpthreads"
+  PTHREAD_LIBS="${PTHREAD_LDFLAGS} ${REAL_PTHREAD_LIBS}"
 fi
 
 fi