summaryrefslogtreecommitdiffstats
path: root/net-misc/rdesktop/files/rdesktop-1.6.0-sound_configure.patch
blob: 8e64ba8b48cbaa4c62fca851f896e070da9e570f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- configure.ac.orig	2009-06-30 10:35:14.000000000 +0200
+++ configure.ac	2009-06-30 11:35:10.000000000 +0200
@@ -228,7 +228,11 @@
 if test -n "$PKG_CONFIG"; then
     PKG_CHECK_MODULES(LIBAO, ao, [HAVE_LIBAO=1], [HAVE_LIBAO=0])
     PKG_CHECK_MODULES(ALSA, alsa, [HAVE_ALSA=1], [HAVE_ALSA=0])
-    PKG_CHECK_MODULES(LIBSAMPLERATE, samplerate, [HAVE_LIBSAMPLERATE=1], [HAVE_LIBSAMPLERATE=0])
+    AC_ARG_WITH(libsamplerate,
+        [  --without-libsamplerate disable libsamplerate support])
+    if test "x$with_libsamplerate" != "xno"; then
+        PKG_CHECK_MODULES(LIBSAMPLERATE, samplerate, [HAVE_LIBSAMPLERATE=1], [HAVE_LIBSAMPLERATE=0])
+    fi
     if test x"$HAVE_LIBSAMPLERATE" = "x1"; then
         AC_DEFINE(HAVE_LIBSAMPLERATE)
         if test x"$static_libsamplerate" = "xyes"; then