You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.7 KiB

  1. diff --git a/configure.ac b/configure.ac
  2. index e2c4dd39f..95053e672 100644
  3. --- a/configure.ac
  4. +++ b/configure.ac
  5. @@ -803,10 +803,12 @@ AC_ARG_WITH(libpulse,
  6. LDFLAGS="-L$with_libpulse/lib $LDFLAGS"
  7. CPPFLAGS="-I$with_libpulse/include $CPPFLAGS"
  8. AC_CHECK_HEADERS(pulse/simple.h,
  9. - AC_CHECK_LIB([pulse],
  10. - [pa_stream_peek],
  11. - EXT_LIB_PATH="-L$with_libpulse/lib $EXT_LIB_PATH"
  12. - pulse=1))
  13. + AC_CHECK_DECL([pa_stream_peek],
  14. + [pulse=1],
  15. + [],
  16. + [[
  17. + #include <pulse/stream.h>
  18. + ]]))
  19. ])
  20. ],
  21. [AC_MSG_RESULT([--with-libpulse not specified])
  22. @@ -846,10 +848,12 @@ AC_ARG_WITH(libopus,
  23. LDFLAGS="-L$with_libopus/lib $LDFLAGS"
  24. CPPFLAGS="-I$with_libopus/include $CPPFLAGS"
  25. AC_CHECK_HEADERS(opus/opus.h,
  26. - AC_CHECK_LIB([opus],
  27. - [OPUS_SET_GAIN],
  28. - EXT_LIB_PATH="-L$with_libopus/lib $EXT_LIB_PATH"
  29. - opus=1))
  30. + AC_CHECK_DECL([OPUS_SET_GAIN],
  31. + [opus=1],
  32. + [],
  33. + [[
  34. + #include <opus/opus.h>
  35. + ]]))
  36. ])
  37. ],
  38. [AC_MSG_RESULT([--with-libopus not specified])