configure.ac: when checking for ALSA, look for snd_pcm_recover() instead of snd_pcm_hw_params_get_access()
Austin English
austinenglish at gmail.com
Sun Jun 6 02:50:57 CDT 2010
See http://bugs.winehq.org/show_bug.cgi?id=23003
--
-Austin
-------------- next part --------------
diff --git a/configure b/configure
index 82d969b..9693299 100755
--- a/configure
+++ b/configure
@@ -10445,9 +10445,9 @@ ALSALIBS=""
if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
-$as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
-if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_recover in -lasound" >&5
+$as_echo_n "checking for snd_pcm_recover in -lasound... " >&6; }
+if test "${ac_cv_lib_asound_snd_pcm_recover+set}" = set; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
@@ -10461,27 +10461,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#ifdef __cplusplus
extern "C"
#endif
-char snd_pcm_hw_params_get_access ();
+char snd_pcm_recover ();
int
main ()
{
-return snd_pcm_hw_params_get_access ();
+return snd_pcm_recover ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
+ ac_cv_lib_asound_snd_pcm_recover=yes
else
- ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
+ ac_cv_lib_asound_snd_pcm_recover=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
-$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
-if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_recover" >&5
+$as_echo "$ac_cv_lib_asound_snd_pcm_recover" >&6; }
+if test "x$ac_cv_lib_asound_snd_pcm_recover" = x""yes; then :
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifdef HAVE_ALSA_ASOUNDLIB_H
diff --git a/configure.ac b/configure.ac
index 21c0203..dfa0426 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1386,7 +1386,7 @@ dnl **** Check for ALSA 1.x ****
AC_SUBST(ALSALIBS,"")
if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
then
- AC_CHECK_LIB(asound,snd_pcm_hw_params_get_access,
+ AC_CHECK_LIB(asound,snd_pcm_recover,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_ALSA_ASOUNDLIB_H
#include <alsa/asoundlib.h>
#elif defined(HAVE_SYS_ASOUNDLIB_H)
More information about the wine-patches
mailing list