summaryrefslogtreecommitdiff
path: root/geography/gpsd/patches/patch-aa
blob: 8e083c0c92f68c76ac825253aee81ba92c3f7ff2 (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.4 2006/10/13 06:22:54 rillig Exp $

--- configure.orig	2006-06-07 17:08:36.000000000 +0200
+++ configure	2006-10-13 08:21:17.000000000 +0200
@@ -21174,13 +21174,13 @@ if test $ac_cv_lib_c_open = yes; then
 fi
 
 
-echo "$as_me:$LINENO: checking for main in -lpthread" >&5
-echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking for main in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
+echo $ECHO_N "checking for main in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6
 if test "${ac_cv_lib_pthread_main+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -21233,7 +21233,7 @@ fi
 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
 if test $ac_cv_lib_pthread_main = yes; then
-  LIBPTHREAD="-lpthread"
+  LIBPTHREAD="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
 fi
 
 
@@ -23456,7 +23456,7 @@ else
 fi;
 echo "$as_me:$LINENO: checking for DBUS support" >&5
 echo $ECHO_N "checking for DBUS support... $ECHO_C" >&6
-if test x"$ac_dbus" == "xyes"; then
+if test x"$ac_dbus" = "xyes"; then
     echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6