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.

36 lines
1.6 KiB

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