1 diff -rNu SDL_mixer-1.2.5/config.sub SDL_mixer-1.2.5-aros/config.sub
2 --- SDL_mixer-1.2.5/config.sub 2001-01-17 18:17:40.000000000 +0100
3 +++ SDL_mixer-1.2.5-aros/config.sub 2004-09-01 04:57:45.308027136 +0200
6 # Configuration validation subroutine script.
7 -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
8 -# Free Software Foundation, Inc.
9 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
10 +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
12 -timestamp='2001-01-12'
13 +timestamp='2003-01-28'
15 # This file is (in principle) common to ALL GNU software.
16 # The presence of a machine in this file suggests that SOME GNU software
18 # configuration script generated by Autoconf, you may include it under
19 # the same distribution terms that you use for the rest of that program.
21 -# Please send patches to <config-patches@gnu.org>.
22 +# Please send patches to <config-patches@gnu.org>. Submit a context
23 +# diff and a properly formatted ChangeLog entry.
25 # Configuration subroutine to validate and canonicalize a configuration type.
26 # Supply the specified configuration type as an argument.
28 # Here we must recognize all the valid KERNEL-OS combinations.
29 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
31 - nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
32 + nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
34 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
52 case $basic_machine in
53 # Recognize the basic CPU types without company name.
54 # Some are omitted here because they have special meanings below.
55 - tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
56 - | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
57 - | pyramid | mn10200 | mn10300 | tron | a29k \
58 - | 580 | i960 | h8300 \
59 - | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
60 - | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
62 - | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
64 - | we32k | ns16k | clipper | i370 | sh | sh[34] \
65 - | powerpc | powerpcle \
66 - | 1750a | dsp16xx | pdp10 | pdp11 \
67 - | mips16 | mips64 | mipsel | mips64el \
68 - | mips64orion | mips64orionel | mipstx39 | mipstx39el \
69 - | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
70 - | mips64vr5000 | miprs64vr5000el | mcore \
71 - | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
72 - | thumb | d10v | d30v | fr30 | avr | openrisc)
75 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
76 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
77 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
79 + | d10v | d30v | dlx | dsp16xx \
81 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
82 + | i370 | i860 | i960 | ia64 \
84 + | m32r | m68000 | m68k | m88k | mcore \
85 + | mips | mipsbe | mipseb | mipsel | mipsle \
87 + | mips64 | mips64el \
88 + | mips64vr | mips64vrel \
89 + | mips64orion | mips64orionel \
90 + | mips64vr4100 | mips64vr4100el \
91 + | mips64vr4300 | mips64vr4300el \
92 + | mips64vr5000 | mips64vr5000el \
93 + | mipsisa32 | mipsisa32el \
94 + | mipsisa32r2 | mipsisa32r2el \
95 + | mipsisa64 | mipsisa64el \
96 + | mipsisa64sb1 | mipsisa64sb1el \
97 + | mipsisa64sr71k | mipsisa64sr71kel \
98 + | mipstx39 | mipstx39el \
99 + | mn10200 | mn10300 \
102 + | openrisc | or32 \
103 + | pdp10 | pdp11 | pj | pjl \
104 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
106 + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
108 + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
110 + | tahoe | thumb | tic80 | tron \
113 + | x86 | xscale | xstormy16 | xtensa \
115 basic_machine=$basic_machine-unknown
117 m6811 | m68hc11 | m6812 | m68hc12)
118 @@ -240,13 +273,13 @@
119 basic_machine=$basic_machine-unknown
122 - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
123 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
126 # We use `pc' rather than `unknown'
127 # because (1) that's what they normally are, and
128 # (2) the word "unknown" tends to confuse beginning users.
129 - i[234567]86 | x86_64)
131 basic_machine=$basic_machine-pc
133 # Object if more than one company name word.
134 @@ -255,29 +288,58 @@
137 # Recognize the basic CPU types with company name.
138 - # FIXME: clean up the formatting here.
139 - vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
140 - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
141 - | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
142 - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
143 - | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
145 - | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
146 - | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
147 - | hppa2.0n-* | hppa64-* \
148 - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
150 - | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
151 - | clipper-* | orion-* \
152 - | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
153 - | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
154 - | mips64el-* | mips64orion-* | mips64orionel-* \
155 - | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
156 - | mipstx39-* | mipstx39el-* | mcore-* \
157 - | f30[01]-* | f700-* | s390-* | sv1-* | t3e-* \
158 - | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
159 - | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
160 - | bs2000-* | tic54x-* | c54x-* | x86_64-*)
163 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
164 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
165 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
166 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
169 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \
170 + | clipper-* | cydra-* \
171 + | d10v-* | d30v-* | dlx-* \
173 + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
174 + | h8300-* | h8500-* \
175 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
176 + | i*86-* | i860-* | i960-* | ia64-* \
179 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
180 + | m88110-* | m88k-* | mcore-* \
181 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
183 + | mips64-* | mips64el-* \
184 + | mips64vr-* | mips64vrel-* \
185 + | mips64orion-* | mips64orionel-* \
186 + | mips64vr4100-* | mips64vr4100el-* \
187 + | mips64vr4300-* | mips64vr4300el-* \
188 + | mips64vr5000-* | mips64vr5000el-* \
189 + | mipsisa32-* | mipsisa32el-* \
190 + | mipsisa32r2-* | mipsisa32r2el-* \
191 + | mipsisa64-* | mipsisa64el-* \
192 + | mipsisa64sb1-* | mipsisa64sb1el-* \
193 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
194 + | mipstx39-* | mipstx39el-* \
196 + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
198 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
199 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
201 + | romp-* | rs6000-* \
202 + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
203 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
204 + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
205 + | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
206 + | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \
207 + | v850-* | v850e-* | vax-* \
209 + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
214 # Recognize the various machine names and aliases which stand
215 # for a CPU type and a company and sometimes even an OS.
217 basic_machine=ns32k-sequent
221 + basic_machine=c90-cray
225 basic_machine=c1-convex
228 basic_machine=c38-convex
232 - basic_machine=ymp-cray
236 - basic_machine=cray2-cray
240 - basic_machine=c90-cray
242 + basic_machine=j90-cray
247 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
248 basic_machine=mips-dec
250 + decsystem10* | dec10*)
251 + basic_machine=pdp10-dec
254 + decsystem20* | dec20*)
255 + basic_machine=pdp10-dec
258 delta | 3300 | motorola-3300 | motorola-delta \
259 | 3300-motorola | delta-motorola)
260 basic_machine=m68k-motorola
262 basic_machine=tron-gmicro
266 + basic_machine=i386-pc
270 basic_machine=hppa1.1-hitachi
272 @@ -500,19 +570,19 @@
273 basic_machine=i370-ibm
275 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
278 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
283 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
288 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
293 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
297 basic_machine=i386-unknown
301 - basic_machine=i386-unknown
304 - i386-mingw32 | mingw32)
305 - basic_machine=i386-unknown
308 - i[34567]86-pw32 | pw32)
309 - basic_machine=i586-unknown
313 basic_machine=mips-sgi
316 basic_machine=ns32k-utek
320 + basic_machine=i386-pc
324 basic_machine=m68000-convergent
327 basic_machine=m68k-atari
331 - basic_machine=mipsel-unknown
335 - basic_machine=mips-unknown
339 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
342 basic_machine=m68k-rom68k
346 + basic_machine=powerpc-unknown
350 - basic_machine=i386-unknown
351 + basic_machine=i386-pc
357 basic_machine=np1-gould
360 + basic_machine=nv1-cray
364 basic_machine=nsr-tandem
367 basic_machine=hppa1.1-oki
371 + basic_machine=or32-unknown
375 basic_machine=m68000-ericsson
377 @@ -691,19 +757,19 @@
379 basic_machine=m68k-tti
383 basic_machine=ns32k-pc532
385 - pentium | p5 | k5 | k6 | nexgen)
386 + pentium | p5 | k5 | k6 | nexgen | viac3)
387 basic_machine=i586-pc
389 - pentiumpro | p6 | 6x86 | athlon)
390 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
391 basic_machine=i686-pc
393 pentiumii | pentium2)
394 basic_machine=i686-pc
396 - pentium-* | p5-* | k5-* | k6-* | nexgen-*)
397 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
398 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
400 pentiumpro-* | p6-* | 6x86-* | athlon-*)
401 @@ -718,18 +784,32 @@
402 power) basic_machine=power-ibm
404 ppc) basic_machine=powerpc-unknown
407 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
409 ppcle | powerpclittle | ppc-le | powerpc-little)
410 basic_machine=powerpcle-unknown
413 ppcle-* | powerpclittle-*)
414 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
416 + ppc64) basic_machine=powerpc64-unknown
418 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
420 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
421 + basic_machine=powerpc64le-unknown
423 + ppc64le-* | powerpc64little-*)
424 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
427 basic_machine=i386-ibm
430 + basic_machine=i586-unknown
434 basic_machine=m68k-rom68k
436 @@ -740,10 +820,22 @@
438 basic_machine=romp-ibm
441 + basic_machine=s390-ibm
444 + basic_machine=s390x-ibm
447 basic_machine=a29k-amd
451 + basic_machine=mipsisa64sb1-unknown
454 + basic_machine=mipsisa64sb1el-unknown
457 basic_machine=i386-sequent
460 basic_machine=sh-hitachi
464 + sparclite-wrs | simso-wrs)
465 basic_machine=sparclite-wrs
472 - basic_machine=t3e-cray
473 + basic_machine=alphaev5-cray
477 + basic_machine=t90-cray
481 + basic_machine=tic4x-unknown
485 basic_machine=tic54x-unknown
489 basic_machine=mipstx39el-unknown
492 + basic_machine=pdp10-xkl
496 basic_machine=m68k-ncr
502 - basic_machine=f301-fujitsu
504 + basic_machine=f301-fujitsu
507 basic_machine=i960-wrs
509 @@ -877,13 +981,13 @@
510 basic_machine=hppa1.1-winbond
514 - basic_machine=xmp-cray
519 basic_machine=xps100-honeywell
522 + basic_machine=ymp-cray
526 basic_machine=z8k-unknown
528 @@ -904,13 +1008,6 @@
530 basic_machine=hppa1.1-oki
533 - if [ x$os = x-linux-gnu ]; then
534 - basic_machine=mips-unknown
536 - basic_machine=mips-mips
540 basic_machine=romp-ibm
542 @@ -930,13 +1027,16 @@
544 basic_machine=we32k-att
547 + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
548 basic_machine=sh-unknown
552 + basic_machine=sh64-unknown
554 + sparc | sparcv9 | sparcv9b)
555 basic_machine=sparc-sun
559 basic_machine=cydra-cydrome
564 basic_machine=powerpc-apple
567 - basic_machine=c4x-none
570 + # Make sure to match an already-canonicalized machine name.
573 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
574 @@ -1011,24 +1110,30 @@
575 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
576 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
577 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
578 + | -chorusos* | -chorusrdb* \
579 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
580 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
581 - | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
582 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
583 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
584 - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
585 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
586 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
587 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
588 + | -powermax* | -dnix* | -microbsd*)
589 # Remember, each alternative MUST END IN *, to match a version number.
592 case $basic_machine in
593 - x86-* | i[34567]86-*)
605 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
607 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
608 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
609 @@ -1067,14 +1172,20 @@
631 @@ -1113,8 +1224,11 @@
635 - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
637 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
645 @@ -1147,10 +1261,11 @@
649 + # This must come before the *-dec entry.
658 @@ -1177,6 +1292,9 @@
665 *-tti) # must be before sparc entry or we get the wrong os.
668 @@ -1240,19 +1358,19 @@
692 @@ -1324,7 +1442,7 @@
696 - -vxsim* | -vxworks*)
697 + -vxsim* | -vxworks* | -windiss*)
701 @@ -1339,6 +1457,9 @@
702 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
709 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
711 diff -rNu SDL_mixer-1.2.5/music.c SDL_mixer-1.2.5-aros/music.c
712 --- SDL_mixer-1.2.5/music.c 2003-02-12 06:07:12.000000000 +0100
713 +++ SDL_mixer-1.2.5-aros/music.c 2004-09-01 04:50:17.802271512 +0200
715 #include "SDL_mixer.h"
717 /* The music command hack is UNIX specific */
725 diff -rNu SDL_mixer-1.2.5/music_cmd.c SDL_mixer-1.2.5-aros/music_cmd.c
726 --- SDL_mixer-1.2.5/music_cmd.c 2001-12-20 01:01:30.000000000 +0100
727 +++ SDL_mixer-1.2.5-aros/music_cmd.c 2004-09-01 04:48:04.167587072 +0200
730 /* This file supports an external command for playing music */
732 -#ifdef unix /* This is a UNIX-specific hack */
733 +#if defined(unix) && !defined(__AROS__) /* This is a UNIX-specific hack */
735 #include <sys/types.h>
736 #include <sys/wait.h>