summaryrefslogtreecommitdiff
path: root/net/opal3/files/patch-plugins_configure
blob: e81bd1893ba1a53f5f0c769d4960b6ed80ebb2eb (plain) (blame)
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
--- plugins/configure.ac.orig	2009-09-22 04:57:56.000000000 +0400
+++ plugins/configure.ac	2009-09-26 21:36:48.000000000 +0400
@@ -219,6 +219,11 @@
 dnl     ########################
 dnl     libavcodec (ffmpeg)
 dnl     ########################
+AC_ARG_ENABLE([ffmpeg],
+              [AC_HELP_STRING([--enable-ffmpeg],[enable libavcodec codec support])],
+              [HAVE_LIBAVCODEC=$enableval])
+
+if test "x${HAVE_LIBAVCODEC}" = "xyes" ; then
 PKG_CHECK_MODULES([LIBAVCODEC],
                   [libavcodec >= 52.20.0],
                   [
@@ -249,6 +254,8 @@
                    HAVE_LIBAVCODEC=no
                   ]
                  )
+fi
+
 AC_SUBST(HAVE_LIBAVCODEC)
 
 OPAL_LIBAVCODEC_SOURCE()
@@ -290,6 +297,11 @@
 dnl     ########################
 dnl     theora
 dnl     ########################
+AC_ARG_ENABLE([theora],
+              [AC_HELP_STRING([--enable-theora],[enable theora codec support])],
+              [HAVE_THEORA=$enableval])
+
+if test "x${HAVE_THEORA}" = "xyes" ; then
 PKG_CHECK_MODULES([THEORA],
                   [theora],
                   [
@@ -301,11 +313,18 @@
                   [
                    HAVE_THEORA=no
                   ])
+fi
+
 AC_SUBST(HAVE_THEORA)
 
 dnl     ########################
 dnl     celt
 dnl     ########################
+AC_ARG_ENABLE([celt],
+              [AC_HELP_STRING([--enable-celt],[enable CELT codec support])],
+              [HAVE_CELT=$enableval])
+
+if test "x${HAVE_CELT}" = "xyes" ; then
 PKG_CHECK_MODULES([CELT],
                   [celt],
                   [
@@ -321,6 +340,8 @@
                   [
                    HAVE_CELT=no
                   ])
+fi
+
 AC_SUBST(HAVE_CELT)
 
 dnl     ########################
--- plugins/configure.orig	2009-09-26 16:50:06.000000000 +0400
+++ plugins/configure	2009-09-26 21:44:26.000000000 +0400
@@ -1340,11 +1340,14 @@
   --enable-sbc            enable use of Bluetooth SBC for CD quality telephony
   --enable-default-to-full-capabilties
                           default to full capabilities at empty fmtp lines
+  --enable-ffmpeg         enable libavcodec codec support
   --enable-libavcodec-stackalign-hack
                           Stack alignment hack for libavcodec library
   --enable-x264-link-static
                           Statically link x264 to the plugin. Default for
                           win32.
+  --enable-theora         enable theora codec support
+  --enable-celt           enable CELT codec support
   --enable-h264           enable H.264 support
   --enable-ixj            enable xJack cards
   --enable-vpb            enable voicetronix vpb
@@ -9543,6 +9546,13 @@
           fi
 
 
+# Check whether --enable-ffmpeg was given.
+if test "${enable_ffmpeg+set}" = set; then
+  enableval=$enable_ffmpeg; HAVE_LIBAVCODEC=$enableval
+fi
+
+
+if test "x${HAVE_LIBAVCODEC}" = "xyes" ; then
 
 pkg_failed=no
 { echo "$as_me:$LINENO: checking for LIBAVCODEC" >&5
@@ -10144,6 +10154,8 @@
 
 
 fi
+fi
+
 
 
 
@@ -10350,6 +10362,13 @@
 
 
 
+# Check whether --enable-theora was given.
+if test "${enable_theora+set}" = set; then
+  enableval=$enable_theora; HAVE_THEORA=$enableval
+fi
+
+
+if test "x${HAVE_THEORA}" = "xyes" ; then
 
 pkg_failed=no
 { echo "$as_me:$LINENO: checking for THEORA" >&5
@@ -10430,8 +10449,17 @@
                    HAVE_THEORA=yes
 
 fi
+fi
+
 
 
+# Check whether --enable-celt was given.
+if test "${enable_celt+set}" = set; then
+  enableval=$enable_celt; HAVE_CELT=$enableval
+fi
+
+
+if test "x${HAVE_CELT}" = "xyes" ; then
 
 pkg_failed=no
 { echo "$as_me:$LINENO: checking for CELT" >&5
@@ -10526,6 +10554,8 @@
 fi
 
 fi
+fi
+