summaryrefslogtreecommitdiff
blob: 4e81e3ac75cd6aa5cada54d7a9c1dd26bbf77144 (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Fix wrong conditional logic
--- configure.ac.orig	2012-08-05 18:19:57.000000000 +0200
+++ configure.ac	2012-08-06 17:20:50.000000000 +0200
@@ -101,11 +101,11 @@
 
 # disable_alsa - 'no' by default
 AC_ARG_ENABLE(alsa,
-    AS_HELP_STRING([--disable-alsa], [disable support for ALSA audio output]),
-    [disable_alsa=yes],
-    [disable_alsa=no])
+    AS_HELP_STRING([--enable-alsa], [enable support for ALSA audio output]),
+    [enable_alsa=$enableval],
+    [enable_alsa=yes])
 AC_MSG_CHECKING([whether to include ALSA audio support])
-if test "$disable_alsa" = "no" ; then
+if test "$enable_alsa" = "yes" ; then
     AC_MSG_RESULT(yes)
 else
     AC_MSG_RESULT(no)
@@ -114,11 +114,11 @@
 
 # disable_pulseaudio - 'no' by default
 AC_ARG_ENABLE(pulseaudio,
-    AS_HELP_STRING([--disable-pulseaudio], [disable support for PulseAudio audio output]),
-    [disable_pulseaudio=yes],
-    [disable_pulseaudio=no])
+    AS_HELP_STRING([--enable-pulseaudio], [enable support for PulseAudio audio output]),
+    [enable_pulseaudio=$enableval],
+    [enable_pulseaudio=yes])
 AC_MSG_CHECKING([whether to include PulseAudio audio support])
-if test "$disable_pulseaudio" = "no" ; then
+if test "$enable_pulseaudio" = "yes" ; then
     AC_MSG_RESULT(yes)
 else
     AC_MSG_RESULT(no)
@@ -127,11 +127,11 @@
 
 # disable_cwcp - 'no' by default
 AC_ARG_ENABLE(cwcp,
-    AS_HELP_STRING([--disable-cwcp], [do not build cwcp (application with curses user interface)]),
-    [disable_cwcp=yes],
-    [disable_cwcp=no])
+    AS_HELP_STRING([--enable-cwcp], [build cwcp (application with curses user interface)]),
+    [enable_cwcp=$enableval],
+    [enable_cwcp=yes])
 AC_MSG_CHECKING([whether to build cwcp])
-if test "$disable_cwcp" = "no" ; then
+if test "$enable_cwcp" = "yes" ; then
     AC_MSG_RESULT(yes)
 else
     AC_MSG_RESULT(no)
@@ -140,11 +140,11 @@
 
 # disable_xcwcp - 'no' by default
 AC_ARG_ENABLE(xcwcp,
-    AS_HELP_STRING([--disable-xcwcp], [do not build xcwcp (application with Qt4 user interface)]),
-    [disable_xcwcp=yes],
-    [disable_xcwcp=no])
+    AS_HELP_STRING([--enable-xcwcp], [build xcwcp (application with Qt4 user interface)]),
+    [disable_xcwcp=$enableval],
+    [disable_xcwcp=yes])
 AC_MSG_CHECKING([whether to build xcwcp])
-if test "$disable_xcwcp" = "no" ; then
+if test "$disable_xcwcp" = "yes" ; then
     AC_MSG_RESULT(yes)
 else
     AC_MSG_RESULT(no)
@@ -219,7 +219,7 @@
 
 
 
-if test "$disable_alsa" = "yes" ; then
+if test "$enable_alsa" = "no" ; then
     WITH_ALSA='no'
 else
     AC_CHECK_LIB(asound, snd_pcm_open)
@@ -246,7 +246,7 @@
 
 
 
-if test "$disable_pulseaudio" = "yes" ; then
+if test "$enable_pulseaudio" = "no" ; then
     WITH_PULSEAUDIO='no'
 else
     AC_CHECK_LIB(pulse-simple, pa_simple_new)
@@ -265,7 +265,7 @@
 
 
 
-if test "$disable_cwcp" = "yes" ; then
+if test "$enable_cwcp" = "no" ; then
    WITH_CWCP='no'
 else
     AC_CHECK_LIB(curses, initscr)
@@ -279,7 +279,7 @@
 
 
 
-if test "$disable_xcwcp" = "yes" ; then
+if test "$enable_xcwcp" = "no" ; then
     WITH_XCWCP='no'
 else
     # autodetection of Qt4 dependencies