1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
--- configure.orig Mon Jun 9 00:09:09 2003
+++ configure Sun Jun 15 09:49:49 2003
@@ -5504,7 +5504,7 @@
fi
if test x"$with_sdl" = "xyes"; then
- for ac_prog in sdl-config
+ for ac_prog in sdl11-config
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -9255,7 +9255,7 @@
-for ac_header in linux/soundcard.h machine/soundcard.h
+for ac_header in linux/soundcard.h machine/soundcard.h sys/soundcard.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -9825,7 +9825,7 @@
if test x"$with_sdl" = "xyes"; then
-for ac_header in SDL/SDL_audio.h
+for ac_header in SDL_audio.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -10625,7 +10625,6 @@
fi
if test x"$with_sdl" = "xyes"; then
- LIBS="$LIBS `sdl-config --libs`"
echo "$as_me:$LINENO: checking for SDL_OpenAudio in -lSDL" >&5
echo $ECHO_N "checking for SDL_OpenAudio in -lSDL... $ECHO_C" >&6
@@ -10633,7 +10632,8 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lSDL $SOUND_LIBS $LIBS"
+LIBS="`sdl11-config --libs` $SOUND_LIBS $LIBS"
+CPPFLAGS="`sld11-config --cflags` $CPPFLAGS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
@@ -10686,7 +10686,7 @@
#define HAVE_LIBSDL 1
_ACEOF
- LIBS="-lSDL $LIBS"
+ LIBS="`sdl11-config --libs` $LIBS"
fi
@@ -10827,7 +10827,8 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lesd $SOUND_LIBS $LIBS"
+LIBS="`esd-config --libs` $SOUND_LIBS $LIBS"
+CPPFLAGS="`esd-config --cflags` $CPPFLAGS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
@@ -10880,7 +10881,7 @@
#define HAVE_LIBESD 1
_ACEOF
- LIBS="-lesd $LIBS"
+ LIBS="`esd-config --libs` $LIBS"
fi
--- src/config.h.in.orig Mon Jun 9 00:09:47 2003
+++ src/config.h.in Sun Jun 15 09:35:16 2003
@@ -200,6 +200,9 @@
/* Define to 1 if you have the <machine/soundcard.h> header file. */
#undef HAVE_MACHINE_SOUNDCARD_H
+/* Define to 1 if you have the <sys/soundcard.h> header file. */
+#undef HAVE_SYS_SOUNDCARD_H
+
/* Define to 1 if you have the `memmove' function. */
#undef HAVE_MEMMOVE
--- src/sound.c.orig Sat Jan 11 16:38:57 2003
+++ src/sound.c Fri Feb 14 03:21:39 2003
@@ -977,7 +977,7 @@
#if defined(USE_ARTS)
sound_init_arts_device();
#endif
-#if defined(HAVE_LINUX_SOUNDCARD_H) || defined(HAVE_MACHINE_SOUNDCARD_H)
+#if defined(HAVE_LINUX_SOUNDCARD_H) || defined(HAVE_MACHINE_SOUNDCARD_H) || defined (HAVE_SYS_SOUNDCARD_H)
sound_init_uss_device();
#endif
#if defined(HAVE_ESD_H) && defined(HAVE_LIBESD)
--- src/sounddrv/soundsdl.c.orig Sat Jan 12 21:35:58 2002
+++ src/sounddrv/soundsdl.c Fri Feb 14 03:13:41 2003
@@ -26,7 +26,7 @@
/* XXX: includes */
-#include <SDL/SDL_audio.h>
+#include <SDL_audio.h>
#include <unistd.h>
#include "vice.h"
--- src/sounddrv/sounduss.c.orig Sun Sep 29 20:37:11 2002
+++ src/sounddrv/sounduss.c Fri Feb 14 03:17:42 2003
@@ -50,6 +50,9 @@
#if defined(HAVE_MACHINE_SOUNDCARD_H)
#include <machine/soundcard.h>
#endif
+#if defined(HAVE_SYS_SOUNDCARD_H)
+#include <sys/soundcard.h>
+#endif
static int uss_fd = -1;
static int uss_8bit = 0;
|