Alexandre Julliard : configure: Fix the libpulse check for when the library exists but doesn't work.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Nov 3 09:21:42 CST 2015


Module: wine
Branch: master
Commit: bfb5f26f10f3a220b8ea6a957a65be38abc016fc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bfb5f26f10f3a220b8ea6a957a65be38abc016fc

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Nov  3 10:49:44 2015 +0900

configure: Fix the libpulse check for when the library exists but doesn't work.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 configure    | 14 +++++++-------
 configure.ac |  7 +++----
 2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/configure b/configure
index 1e7e28f..31f54a3 100755
--- a/configure
+++ b/configure
@@ -654,8 +654,8 @@ OSS4_CFLAGS
 ALSA_LIBS
 GSTREAMER_LIBS
 GSTREAMER_CFLAGS
-PULSE_CFLAGS
 PULSE_LIBS
+PULSE_CFLAGS
 GETTEXTPO_LIBS
 Z_LIBS
 FREETYPE_LIBS
@@ -12592,10 +12592,6 @@ esac
 fi
 fi
 
-PULSE_LIBS=""
-
-PULSE_CFLAGS=""
-
 if test "x$with_pulse" != "xno";
 then
     if ${PULSE_CFLAGS:+false} :; then :
@@ -12660,8 +12656,12 @@ fi
 $as_echo "$ac_cv_lib_pulse_pa_stream_is_corked" >&6; }
 if test "x$ac_cv_lib_pulse_pa_stream_is_corked" = xyes; then :
   :
+else
+  PULSE_LIBS=""
 fi
 
+else
+  PULSE_LIBS=""
 fi
 
 done
@@ -12671,7 +12671,7 @@ test -z "$PULSE_CFLAGS" || PULSE_CFLAGS=`echo " $PULSE_CFLAGS" | sed 's/ -I\([^/
 test -z "$PULSE_LIBS" || PULSE_LIBS=`echo " $PULSE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
 
 fi
-if test "$ac_cv_lib_pulse_pa_stream_is_corked" != "yes"; then :
+if test -z "$PULSE_LIBS"; then :
   case "x$with_pulse" in
   x)   as_fn_append wine_notices "|libpulse ${notice_platform}development files not found or too old, Pulse won't be supported." ;;
   xno) ;;
@@ -17282,8 +17282,8 @@ FREETYPE_CFLAGS = $FREETYPE_CFLAGS
 FREETYPE_LIBS = $FREETYPE_LIBS
 Z_LIBS = $Z_LIBS
 GETTEXTPO_LIBS = $GETTEXTPO_LIBS
-PULSE_LIBS = $PULSE_LIBS
 PULSE_CFLAGS = $PULSE_CFLAGS
+PULSE_LIBS = $PULSE_LIBS
 GSTREAMER_CFLAGS = $GSTREAMER_CFLAGS
 GSTREAMER_LIBS = $GSTREAMER_LIBS
 ALSA_LIBS = $ALSA_LIBS
diff --git a/configure.ac b/configure.ac
index 722230d..0814400 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1549,15 +1549,14 @@ then
 fi
 
 dnl **** Check for PulseAudio ****
-AC_SUBST(PULSE_LIBS,"")
-AC_SUBST(PULSE_CFLAGS,"")
 if test "x$with_pulse" != "xno";
 then
     WINE_PACKAGE_FLAGS(PULSE,[libpulse],,,,
         [AC_CHECK_HEADERS(pulse/pulseaudio.h,
-            [AC_CHECK_LIB(pulse, pa_stream_is_corked,[:],,[$PULSE_LIBS])])])
+            [AC_CHECK_LIB(pulse, pa_stream_is_corked,[:],[PULSE_LIBS=""],[$PULSE_LIBS])],
+            [PULSE_LIBS=""])])
 fi
-WINE_NOTICE_WITH(pulse, [test "$ac_cv_lib_pulse_pa_stream_is_corked" != "yes"],
+WINE_NOTICE_WITH(pulse, [test -z "$PULSE_LIBS"],
         [libpulse ${notice_platform}development files not found or too old, Pulse won't be supported.])
 
 dnl **** Check for gstreamer ****




More information about the wine-cvs mailing list