summaryrefslogtreecommitdiff
path: root/audio/xsidplay/patches/patch-aa
blob: 269e41ec63c1df07e6150e2a4e4b6019419aaa5b (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
$NetBSD: patch-aa,v 1.11 2007/01/13 11:02:12 joerg Exp $

--- configure.orig	2003-02-01 20:18:09.000000000 +0000
+++ configure
@@ -6577,6 +6577,7 @@ else
 fi
  
 
+if test -z "$DISABLE_ARTSD_TEST"; then
 # aRts (KDE Sound Server).
 # Extract the first word of "artsc-config", so it can be a program name with args.
 set dummy artsc-config; ac_word=$2
@@ -6622,6 +6623,7 @@ EOF
     ARTSC_INCLUDES="`$ARTSC_CONFIG --cflags`"
     ARTSC_LDADD="`$ARTSC_CONFIG --libs`"
 fi
+fi # DISABLE_ARTSD_TEST
 
 
 if test -n "$ARTSC_CONFIG"; then
@@ -6634,7 +6636,7 @@ fi
 
 
 
-
+if test -z "$DISABLE_ESD_TEST"; then
 # Enlightenment Sound Daemon.
 # Extract the first word of "esd-config", so it can be a program name with args.
 set dummy esd-config; ac_word=$2
@@ -6680,6 +6682,7 @@ EOF
     ESD_INCLUDES="`$ESD_CONFIG --cflags`"
     ESD_LDADD="`$ESD_CONFIG --libs`"
 fi
+fi # DISABLE_ESD_TEST
 
 
 if test -n "$ESD_CONFIG"; then
@@ -6705,7 +6708,7 @@ EOF
     $CP src/audio/linux/* src/audio
     echo "$ac_t""linux (OSS)" 1>&6
        ;;
-  *freebsd*) my_have_audio_driver=yes
+  *freebsd*|*dragonfly*) my_have_audio_driver=yes
     cat >> confdefs.h <<\EOF
 #define HAVE_FREEBSD 1
 EOF
@@ -6946,9 +6949,10 @@ if test "$ac_x_libraries" = NO; then
 cat > conftest.$ac_ext <<EOF
 #line 6948 "configure"
 #include "confdefs.h"
+#include <X11/Intrinsic.h>
 
 int main() {
-${x_direct_test_function}()
+${x_direct_test_function}(0)
 ; return 0; }
 EOF
 if { (eval echo configure:6955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@@ -7789,6 +7793,7 @@ fi
     done
 
 my_qt_includes=$qt_incdir
+my_qt_lib=-lqt
 
     qt_libdir=""
     for i in $qt_libdirs;
@@ -7797,6 +7802,8 @@ my_qt_includes=$qt_incdir
         do
 	        if test -r "$i/$j"; then
 		        qt_libdir=$i
+			my_qt_lib=-lqt-mt
+			echo "Using multi-threaded version of Qt lib (libqt-mt)"
                 break 2
             fi
         done
@@ -7886,7 +7893,7 @@ echo "configure:7879: checking for Qt ve
     CXX="${SHELL-/bin/sh} ${srcdir}/libtool $CXX"
     CXXFLAGS="$CXXFLAGS $QT_INCLUDES"
     LDFLAGS="$LDFLAGS $QT_LDFLAGS"
-    LIBS="$LIBS -lqt"
+    LIBS="$LIBS ${my_qt_lib}"
 
     cat > conftest.$ac_ext <<EOF
 #line 7893 "configure"