icecast-2.3.3-libkate.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. Index: icecast-2.3.3/configure.in
  2. ===================================================================
  3. --- icecast-2.3.3.orig/configure.in
  4. +++ icecast-2.3.3/configure.in
  5. @@ -81,14 +81,18 @@ XIPH_PATH_SPEEX(
  6. [ AC_MSG_WARN([Speex support disabled!])
  7. ])
  8. -AC_CHECK_LIB(kate, kate_decode_init,[have_kate=yes],[have_kate=no], -logg)
  9. -if test "x$have_kate" == "xyes"
  10. +AC_ARG_ENABLE([kate], AS_HELP_STRING([--disable-kate], [Disable karaoke and text encapsulation support for ogg]))
  11. +if test "x$enable_kate" != "xno"
  12. then
  13. - AC_CHECK_LIB(oggkate, kate_ogg_decode_headerin,[have_kate=yes],[have_kate=no],-lkate -logg)
  14. + AC_CHECK_LIB(kate, kate_decode_init,[have_kate=yes],[have_kate=no], -logg)
  15. if test "x$have_kate" == "xyes"
  16. then
  17. - KATE_LIBS="-loggkate -lkate -logg"
  18. - AC_DEFINE([HAVE_KATE],[1],[Define if you have libkate])
  19. + AC_CHECK_LIB(oggkate, kate_ogg_decode_headerin,[have_kate=yes],[have_kate=no],-lkate -logg)
  20. + if test "x$have_kate" == "xyes"
  21. + then
  22. + KATE_LIBS="-loggkate -lkate -logg"
  23. + AC_DEFINE([HAVE_KATE],[1],[Define if you have libkate])
  24. + fi
  25. fi
  26. fi
  27. dnl we still use format_kate as it doesn't need libkate to work