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
|
diff -ur alsa-plugins-1.0.17.orig/configure.in alsa-plugins-1.0.17/configure.in
--- alsa-plugins-1.0.17.orig/configure.in 2008-07-30 22:01:02.000000000 -0400
+++ alsa-plugins-1.0.17/configure.in 2008-07-30 22:04:59.000000000 -0400
@@ -15,13 +15,25 @@
AC_CHECK_LIB(asound, snd_pcm_ioplug_create,,
AC_ERROR([*** libasound has no external plugin SDK]), -ldl)
-PKG_CHECK_MODULES(JACK, jack >= 0.98, [HAVE_JACK=yes], [HAVE_JACK=no])
+AC_ARG_ENABLE([jack],
+ AC_HELP_STRING([--disable-jack], [Disable building of JACK plugin]))
+if test "x$enable_jack" != "xno"; then
+ PKG_CHECK_MODULES(JACK, jack >= 0.98, [HAVE_JACK=yes], [HAVE_JACK=no])
+fi
AM_CONDITIONAL(HAVE_JACK, test x$HAVE_JACK = xyes)
-PKG_CHECK_MODULES(pulseaudio, [libpulse >= 0.9.2], [HAVE_PULSE=yes], [HAVE_PULSE=no])
+AC_ARG_ENABLE([pulseaudio],
+ AC_HELP_STRING([--disable-pulseaudio], [Disable building of pulseaudio plugin]))
+if test "x$enable_pulseaudio" != "xno"; then
+ PKG_CHECK_MODULES(pulseaudio, [libpulse >= 0.9.2], [HAVE_PULSE=yes], [HAVE_PULSE=no])
+fi
AM_CONDITIONAL(HAVE_PULSE, test x$HAVE_PULSE = xyes)
-PKG_CHECK_MODULES(samplerate, [samplerate], [HAVE_SAMPLERATE=yes], [HAVE_SAMPLERATE=no])
+AC_ARG_ENABLE([samplerate],
+ AC_HELP_STRING([--disable-samplerate], [Disable building of samplerate plugin]))
+if test "x$enable_samplerate" != "xno"; then
+ PKG_CHECK_MODULES(samplerate, [samplerate], [HAVE_SAMPLERATE=yes], [HAVE_SAMPLERATE=no])
+fi
AM_CONDITIONAL(HAVE_SAMPLERATE, test x$HAVE_SAMPLERATE = xyes)
AC_ARG_ENABLE([maemo-plugin],
@@ -45,6 +57,8 @@
fi
fi
+AC_ARG_ENABLE([avcodec],
+ AC_HELP_STRING([--disable-avcodec], [Disable building of avcodec code (a52 plugin)]))
AC_ARG_WITH([avcodec-includedir],
AS_HELP_STRING([--with-avcodec-includedir=dir],
[AVcodec include directory]),
@@ -60,9 +74,11 @@
AC_SUBST(AVCODEC_CFLAGS)
AVCODEC_LIBS="$AVCODEC_LIBS -lavcodec"
AC_SUBST(AVCODEC_LIBS)
-AC_CHECK_LIB([avcodec], [avcodec_open], [HAVE_AVCODEC=yes], [HAVE_AVCODEC=no])
-if test x$HAVE_AVCODEC = xyes; then
- AC_CHECK_HEADER([ffmpeg/avcodec.h], [], [HAVE_AVCODEC=no])
+if test "x$enable_avcodec" != "xno"; then
+ AC_CHECK_LIB([avcodec], [avcodec_open], [HAVE_AVCODEC=yes], [HAVE_AVCODEC=no])
+ if test x$HAVE_AVCODEC = xyes; then
+ AC_CHECK_HEADER([ffmpeg/avcodec.h], [], [HAVE_AVCODEC=no])
+ fi
fi
AM_CONDITIONAL(HAVE_AVCODEC, test x$HAVE_AVCODEC = xyes)
CFLAGS="$CFLAGS_saved"
|