fix build with newer speex versions

This commit is contained in:
naddy 2007-05-02 19:01:07 +00:00
parent 484f8a379b
commit c2b2800f27
2 changed files with 34 additions and 2 deletions

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-configure,v 1.1 2006/08/31 06:14:29 sturm Exp $ $OpenBSD: patch-configure,v 1.2 2007/05/02 19:01:07 naddy Exp $
--- configure.orig Sun Oct 12 20:54:57 2003 --- configure.orig Sun Oct 12 20:54:57 2003
+++ configure Thu Aug 31 08:11:50 2006 +++ configure Wed May 2 19:01:01 2007
@@ -7363,16 +7363,11 @@ int main (int argc, char *argv[]) @@ -7363,16 +7363,11 @@ int main (int argc, char *argv[])
} }
else else
@ -31,3 +31,21 @@ $OpenBSD: patch-configure,v 1.1 2006/08/31 06:14:29 sturm Exp $
VORBISFILE_LIBS="-lvorbisfile" VORBISFILE_LIBS="-lvorbisfile"
VORBISENC_LIBS="-lvorbisenc" VORBISENC_LIBS="-lvorbisenc"
@@ -8241,7 +8236,7 @@ else
cat >conftest.$ac_ext <<_ACEOF
#line 8242 "configure"
#include "confdefs.h"
-#include <speex.h>
+#include <speex/speex.h>
_ACEOF
if { (eval echo "$as_me:8246: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
@@ -8328,7 +8323,7 @@ if test $ac_cv_lib_speex_speex_bits_init = yes; then
fi
if test "x$have_ogg_hdr" = "xyes" -a "x$have_ogg_lib" = "xyes" -a "x$have_speex_hdr" = "xyes" -a "x$have_speex_lib" = "xyes"; then
- LIBS="$LIBS -logg -lspeex"
+ LIBS="$LIBS -lspeex -logg"
cat >>confdefs.h <<\EOF
#define SOUND_SUPPORTS_SPEEX 1
EOF

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-decoders_speex_c,v 1.1 2007/05/02 19:01:07 naddy Exp $
--- decoders/speex.c.orig Wed May 2 19:00:16 2007
+++ decoders/speex.c Wed May 2 19:00:27 2007
@@ -51,8 +51,8 @@
#include <assert.h>
#include <ogg/ogg.h>
-#include <speex.h>
-#include <speex_header.h>
+#include <speex/speex.h>
+#include <speex/speex_header.h>
#include "SDL_sound.h"