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.

155 lines
3.3 KiB

  1. --- a/src/format_flac.c
  2. +++ b/src/format_flac.c
  3. @@ -18,7 +18,7 @@
  4. #endif
  5. #include <stdlib.h>
  6. -#include <ogg/ogg.h>
  7. +#include <tremor/ogg.h>
  8. #include <string.h>
  9. typedef struct source_tag source_t;
  10. --- a/src/format_midi.c
  11. +++ b/src/format_midi.c
  12. @@ -18,7 +18,7 @@
  13. #endif
  14. #include <stdlib.h>
  15. -#include <ogg/ogg.h>
  16. +#include <tremor/ogg.h>
  17. #include <string.h>
  18. typedef struct source_tag source_t;
  19. --- a/src/format_ogg.c
  20. +++ b/src/format_ogg.c
  21. @@ -24,7 +24,7 @@
  22. #include <stdlib.h>
  23. #include <string.h>
  24. -#include <ogg/ogg.h>
  25. +#include <tremor/ogg.h>
  26. #include "refbuf.h"
  27. #include "source.h"
  28. --- a/src/format_ogg.h
  29. +++ b/src/format_ogg.h
  30. @@ -18,7 +18,7 @@
  31. #ifndef __FORMAT_OGG_H__
  32. #define __FORMAT_OGG_H__
  33. -#include <ogg/ogg.h>
  34. +#include <tremor/ogg.h>
  35. #include "refbuf.h"
  36. #include "format.h"
  37. --- a/src/format_speex.c
  38. +++ b/src/format_speex.c
  39. @@ -18,7 +18,7 @@
  40. #endif
  41. #include <stdlib.h>
  42. -#include <ogg/ogg.h>
  43. +#include <tremor/ogg.h>
  44. #include <speex/speex_header.h>
  45. typedef struct source_tag source_t;
  46. --- a/src/format_theora.c
  47. +++ b/src/format_theora.c
  48. @@ -18,7 +18,7 @@
  49. #endif
  50. #include <stdlib.h>
  51. -#include <ogg/ogg.h>
  52. +#include <tremor/ogg.h>
  53. #include <theora/theora.h>
  54. typedef struct source_tag source_t;
  55. --- a/src/format_vorbis.c
  56. +++ b/src/format_vorbis.c
  57. @@ -18,8 +18,8 @@
  58. #endif
  59. #include <stdlib.h>
  60. -#include <ogg/ogg.h>
  61. -#include <vorbis/codec.h>
  62. +#include <tremor/ogg.h>
  63. +#include <tremor/ivorbiscodec.h>
  64. #include <memory.h>
  65. #include <string.h>
  66. --- a/src/source.c
  67. +++ b/src/source.c
  68. @@ -19,7 +19,7 @@
  69. #include <stdlib.h>
  70. #include <string.h>
  71. #include <sys/types.h>
  72. -#include <ogg/ogg.h>
  73. +#include <tremor/ogg.h>
  74. #include <errno.h>
  75. #ifndef _WIN32
  76. --- a/src/format_kate.c
  77. +++ b/src/format_kate.c
  78. @@ -19,7 +19,7 @@
  79. #include <stdlib.h>
  80. #include <string.h>
  81. -#include <ogg/ogg.h>
  82. +#include <tremor/ogg.h>
  83. #ifdef HAVE_KATE
  84. #include <kate/oggkate.h>
  85. #endif
  86. --- a/m4/vorbis.m4
  87. +++ b/m4/vorbis.m4
  88. @@ -38,9 +38,9 @@ if test "x$vorbis_prefix" != "x$ogg_pref
  89. ])
  90. fi
  91. -VORBIS_LIBS="-lvorbis"
  92. -VORBISFILE_LIBS="-lvorbisfile"
  93. -VORBISENC_LIBS="-lvorbisenc"
  94. +VORBIS_LIBS="-lvorbisidec"
  95. +VORBISFILE_LIBS="-lvorbisidec"
  96. +VORBISENC_LIBS="-lvorbisidec"
  97. xt_save_LIBS="$LIBS"
  98. xt_save_LDFLAGS="$LDFLAGS"
  99. @@ -58,18 +58,6 @@ AC_TRY_LINK_FUNC(ogg_stream_init, [xt_li
  100. )
  101. ])
  102. -if test "x$xt_lib_vorbis" = "xok"; then
  103. -#
  104. -# Now check if the installed Vorbis is sufficiently new.
  105. -#
  106. -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
  107. -#include <vorbis/codec.h>
  108. -#include <vorbis/vorbisenc.h>
  109. - ], [
  110. -struct ovectl_ratemanage_arg a;
  111. -])],,[xt_lib_vorbis="old version found"])
  112. -AC_MSG_RESULT([$xt_lib_vorbis])
  113. -fi
  114. CPPFLAGS="$xt_save_CPPFLAGS"
  115. LIBS="$xt_save_LIBS"
  116. LDFLAGS="$xt_save_LDFLAGS"
  117. --- a/m4/ogg.m4
  118. +++ b/m4/ogg.m4
  119. @@ -29,7 +29,7 @@ XIPH_GCC_WARNING([-I$ogg_prefix/include]
  120. ])
  121. AC_CACHE_CHECK([for libogg], xt_cv_lib_ogg,
  122. [dnl
  123. -OGG_LIBS="-logg"
  124. +OGG_LIBS="-lvorbisidec"
  125. #
  126. # check if the installed Ogg is sufficiently new.
  127. @@ -42,7 +42,7 @@ LIBS="$LIBS $OGG_LIBS"
  128. LDFLAGS="$LDFLAGS $OGG_LDFLAGS"
  129. AC_TRY_LINK_FUNC(ogg_sync_init,
  130. [ xt_cv_lib_ogg=ok ],
  131. - [ AC_TRY_LINK([#include <ogg/ogg.h>],,
  132. + [ AC_TRY_LINK([#include <tremor/ogg.h>],,
  133. [ xt_cv_lib_ogg="pre v1.0, needs updating" ],
  134. [ xt_cv_lib_ogg="not found" ])
  135. ])