summaryrefslogtreecommitdiff
path: root/emulators/uae/patches/patch-ac
blob: a7ecffaa41062fb924bb1fd04e488feede62253c (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
40
41
42
43
44
$NetBSD: patch-ac,v 1.10 2006/04/28 15:10:18 joerg Exp $

--- configure.orig	2005-07-01 13:00:17.000000000 +0000
+++ configure
@@ -12767,7 +12767,7 @@ echo "$as_me:$LINENO: checking for pthre
 echo $ECHO_N "checking for pthread library... $ECHO_C" >&6
 TMP_SAVE_CFLAGS=$CFLAGS
 TMP_SAVE_LIBS=$LIBS
-LIBS="$LIBS -lpthread"
+LIBS="$LIBS ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -14385,16 +14385,16 @@ else if [ "x$WANT_ALSA" = "xyes" ]; then
 echo "${ECHO_T}ALSA" >&6
   SOUNDDEP=sd-alsa
   USE_SOUND=yes
-else if [ "x$HAVE_USS_SOUND" = "xyes" ]; then
-  echo "$as_me:$LINENO: result: USS" >&5
-echo "${ECHO_T}USS" >&6
-  SOUNDDEP=sd-uss
-  USE_SOUND=yes
 else if [ "x$ac_cv_header_sys_audioio_h" = "xyes" -o "x$ac_cv_header_sun_audioio_h" = "xyes" ]; then
   echo "$as_me:$LINENO: result: Solaris/NetBSD" >&5
 echo "${ECHO_T}Solaris/NetBSD" >&6
   SOUNDDEP=sd-solaris
   USE_SOUND=yes
+else if [ "x$HAVE_USS_SOUND" = "xyes" ]; then
+  echo "$as_me:$LINENO: result: USS" >&5
+echo "${ECHO_T}USS" >&6
+  SOUNDDEP=sd-uss
+  USE_SOUND=yes
 else if [ "x$HAVE_AF_LIB" = "xyes" ]; then
   echo "$as_me:$LINENO: result: AF sound" >&5
 echo "${ECHO_T}AF sound" >&6
@@ -14466,7 +14466,7 @@ if [ "x$USE_THREADS" = "xyes" -o "x$NEED
   else if [ "x$HAVE_PTHREAD_LIB" = "xyes" ]; then
     THREADDEP=td-posix
     CFLAGS="$CFLAGS -DSUPPORT_THREADS -D_REENTRANT"
-    LIBS="$LIBS -lpthread"
+    LIBS="$LIBS ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
     if [ "x$HAVE_POSIX4_LIB" = "xyes" ]; then
       LIBS="$LIBS -lposix4"
     fi