Lines 1-7
Link Here
|
1 |
--- lib-src/portmixer/configure.ac.orig 2016-01-08 22:05:48 UTC |
1 |
--- lib-src/portmixer/configure.ac.orig 2016-01-08 22:05:48 UTC |
2 |
+++ lib-src/portmixer/configure.ac |
2 |
+++ lib-src/portmixer/configure.ac |
3 |
@@ -43,7 +43,7 @@ PKG_CHECK_MODULES([PORTAUDIO], [portaudi |
3 |
@@ -35,6 +35,9 @@ AC_ARG_ENABLE([debug], |
|
|
4 |
[AC_SUBST( cflags, ["$cflags -g"] ) AC_MSG_RESULT(yes)], |
5 |
[AC_SUBST( cflags, ["$cflags -O2"] ) AC_MSG_RESULT(no)]) |
4 |
|
6 |
|
|
|
7 |
+AC_ARG_ENABLE([alsa], |
8 |
+ AC_HELP_STRING([--disable-alsa], [])) |
9 |
+ |
10 |
PKG_CHECK_MODULES([PORTAUDIO], [portaudio-2.0 >= 19]) |
11 |
|
12 |
# |
13 |
@@ -43,7 +46,7 @@ PKG_CHECK_MODULES([PORTAUDIO], [portaudi |
14 |
|
5 |
dnl The following tests need to have the header files of portaudio available. |
15 |
dnl The following tests need to have the header files of portaudio available. |
6 |
cppflags_save="$CPPFLAGS" |
16 |
cppflags_save="$CPPFLAGS" |
7 |
-CPPFLAGS="$CPPFLAGS $PORTAUDIO_CFLAGS" |
17 |
-CPPFLAGS="$CPPFLAGS $PORTAUDIO_CFLAGS" |
Lines 9-11
Link Here
|
9 |
|
19 |
|
10 |
have_oss=no |
20 |
have_oss=no |
11 |
AC_CHECK_HEADERS([sys/soundcard.h linux/soundcard.h machine/soundcard.h], have_oss=yes) |
21 |
AC_CHECK_HEADERS([sys/soundcard.h linux/soundcard.h machine/soundcard.h], have_oss=yes) |
|
|
22 |
@@ -123,8 +126,8 @@ if [[ $have_oss = "yes" ]] ; then |
23 |
have_support=yes |
24 |
fi |
25 |
|
26 |
-AM_CONDITIONAL([USE_LINUX_ALSA], [test "$have_alsa" = yes]) |
27 |
-if [[ $have_alsa = "yes" ]] ; then |
28 |
+AM_CONDITIONAL([USE_LINUX_ALSA], [test "$have_alsa" = yes -a "x$enable_alsa" != "xno"]) |
29 |
+if [[ $have_alsa = "yes" -a "x$enable_alsa" != "xno" ]] ; then |
30 |
AC_MSG_NOTICE([Including support for ALSA]) |
31 |
AC_DEFINE(PX_USE_LINUX_ALSA) |
32 |
have_support=yes |