annotate configure.in @ 276:d7d55903124c

Changed --enable-vorbis to --enable-ogg, made other format tweaks.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 14 Mar 2002 16:16:53 +0000
parents 6fe6de401b63
children 259daddc2d6b
rev   line source
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
1 # Process this file with autoconf to produce a configure script.
66
54e10585e0cf Changed AC_INIT() to look for SDL_sound.c, not COPYING, since I'm keeping
Ryan C. Gordon <icculus@icculus.org>
parents: 65
diff changeset
2 AC_INIT(SDL_sound.c)
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
3
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
4 dnl ---------------------------------------------------------------------
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
5 dnl System/version info
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
6 dnl ---------------------------------------------------------------------
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
7
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
8 # Making releases:
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
9 # MICRO_VERSION += 1;
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
10 # INTERFACE_AGE += 1;
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
11 # BINARY_AGE += 1;
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
12 # if any functions have been added, set INTERFACE_AGE to 0.
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
13 # if backwards compatibility has been broken,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
14 # set BINARY_AGE and INTERFACE_AGE to 0.
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
15
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
16 MAJOR_VERSION=0
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
17 MINOR_VERSION=1
252
c54eae85f5f1 Upped version to 0.1.5.
Ryan C. Gordon <icculus@icculus.org>
parents: 229
diff changeset
18 MICRO_VERSION=5
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
19 INTERFACE_AGE=0
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
20 BINARY_AGE=0
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
21 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
22
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
23 AC_SUBST(MAJOR_VERSION)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
24 AC_SUBST(MINOR_VERSION)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
25 AC_SUBST(MICRO_VERSION)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
26 AC_SUBST(INTERFACE_AGE)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
27 AC_SUBST(BINARY_AGE)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
28 AC_SUBST(VERSION)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
29
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
30 # libtool versioning
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
31 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
32 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
33 LT_REVISION=$INTERFACE_AGE
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
34 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
35
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
36 AC_SUBST(LT_RELEASE)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
37 AC_SUBST(LT_CURRENT)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
38 AC_SUBST(LT_REVISION)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
39 AC_SUBST(LT_AGE)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
40
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
41 dnl Detect the canonical host and target build environment
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
42 AC_CANONICAL_HOST
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
43 AC_CANONICAL_TARGET
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
44
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
45 dnl Setup for automake
100
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
46 AM_CONFIG_HEADER(config.h)
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
47 AM_INIT_AUTOMAKE(SDL_sound, $VERSION)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
48
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
49
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
50 dnl ---------------------------------------------------------------------
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
51 dnl Compilers and other tools
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
52 dnl ---------------------------------------------------------------------
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
53
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
54 AC_PROG_CC
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
55 AC_PROG_INSTALL
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
56 AC_PROG_LN_S
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
57 AC_PROG_LIBTOOL
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
58
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
59
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
60 dnl ---------------------------------------------------------------------
100
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
61 dnl Debug mode?
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
62 dnl ---------------------------------------------------------------------
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
63
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
64 AC_ARG_ENABLE(debug,
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
65 [ --enable-debug enable debug mode [default=no]],
152
1a0cf9aeee2a Fix for SMPEG and debug settings.
Ryan C. Gordon <icculus@icculus.org>
parents: 132
diff changeset
66 , enable_debug=no)
100
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
67 if test x$enable_debug = xyes; then
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
68 if test x$ac_cv_prog_cc_g = xyes; then
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
69 CFLAGS="-g -O0"
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
70 else
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
71 CFLAGS="-O0"
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
72 fi
110
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
73 CFLAGS="$CFLAGS -Werror"
100
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
74 AC_DEFINE(DEBUG)
105
de42ca5599ac Added DEBUG_CHATTER to the --enable-debug defines. (This will become a
Ryan C. Gordon <icculus@icculus.org>
parents: 100
diff changeset
75 AC_DEFINE(DEBUG_CHATTER)
100
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
76 else
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
77 AC_DEFINE(NDEBUG)
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
78 fi
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
79
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
80
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
81 dnl ---------------------------------------------------------------------
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
82 dnl Checks for libraries.
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
83 dnl ---------------------------------------------------------------------
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
84
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
85 dnl Check for SDL
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
86 SDL_VERSION=1.2.0
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
87 AM_PATH_SDL($SDL_VERSION,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
88 :,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
89 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
90 )
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
91 CFLAGS="$CFLAGS $SDL_CFLAGS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
92 LIBS="$LIBS $SDL_LIBS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
93
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
94 dnl Check for voc decoder inclusion...
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
95 AC_ARG_ENABLE(voc,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
96 [ --enable-voc enable VOC decoding [default=yes]],
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
97 , enable_voc=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
98 if test x$enable_voc = xyes; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
99 AC_DEFINE(SOUND_SUPPORTS_VOC)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
100 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
101
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
102
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
103 dnl Check for wav decoder inclusion...
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
104 AC_ARG_ENABLE(wav,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
105 [ --enable-wav enable WAV decoding [default=yes]],
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
106 , enable_wav=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
107 if test x$enable_wav = xyes; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
108 AC_DEFINE(SOUND_SUPPORTS_WAV)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
109 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
110
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
111
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
112 dnl Check for raw decoder inclusion...
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
113 AC_ARG_ENABLE(raw,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
114 [ --enable-raw enable raw audio "decoding" [default=yes]],
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
115 , enable_raw=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
116 if test x$enable_raw = xyes; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
117 AC_DEFINE(SOUND_SUPPORTS_RAW)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
118 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
119
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
120
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
121 dnl Check for aiff decoder inclusion...
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
122 AC_ARG_ENABLE(aiff,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
123 [ --enable-aiff enable AIFF decoding [default=yes]],
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
124 , enable_aiff=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
125 if test x$enable_aiff = xyes; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
126 AC_DEFINE(SOUND_SUPPORTS_AIFF)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
127 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
128
216
07d0939d40e7 Support for .AU files added.
Ryan C. Gordon <icculus@icculus.org>
parents: 209
diff changeset
129 dnl Check for au decoder inclusion
07d0939d40e7 Support for .AU files added.
Ryan C. Gordon <icculus@icculus.org>
parents: 209
diff changeset
130 AC_ARG_ENABLE(au,
276
d7d55903124c Changed --enable-vorbis to --enable-ogg, made other format tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents: 262
diff changeset
131 [ --enable-au enable AU decoding [default=yes]],
216
07d0939d40e7 Support for .AU files added.
Ryan C. Gordon <icculus@icculus.org>
parents: 209
diff changeset
132 , enable_au=yes)
07d0939d40e7 Support for .AU files added.
Ryan C. Gordon <icculus@icculus.org>
parents: 209
diff changeset
133 if test x$enable_au = xyes; then
07d0939d40e7 Support for .AU files added.
Ryan C. Gordon <icculus@icculus.org>
parents: 209
diff changeset
134 AC_DEFINE(SOUND_SUPPORTS_AU)
07d0939d40e7 Support for .AU files added.
Ryan C. Gordon <icculus@icculus.org>
parents: 209
diff changeset
135 fi
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
136
85
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
137 dnl Check for shn decoder inclusion...
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
138 AC_ARG_ENABLE(shn,
105
de42ca5599ac Added DEBUG_CHATTER to the --enable-debug defines. (This will become a
Ryan C. Gordon <icculus@icculus.org>
parents: 100
diff changeset
139 [ --enable-shn enable SHN decoding [default=yes]],
de42ca5599ac Added DEBUG_CHATTER to the --enable-debug defines. (This will become a
Ryan C. Gordon <icculus@icculus.org>
parents: 100
diff changeset
140 , enable_shn=yes)
85
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
141 if test x$enable_shn = xyes; then
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
142 AC_DEFINE(SOUND_SUPPORTS_SHN)
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
143 fi
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
144
262
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
145 dnl Check for the MIDI decoder...
110
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
146 AC_ARG_ENABLE(midi,
201
56bc776f0563 Midi support.
Ryan C. Gordon <icculus@icculus.org>
parents: 194
diff changeset
147 [ --enable-midi enable software MIDI music [default=yes]],
56bc776f0563 Midi support.
Ryan C. Gordon <icculus@icculus.org>
parents: 194
diff changeset
148 , enable_midi=yes)
110
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
149 if test x$enable_midi = xyes; then
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
150 AC_DEFINE(SOUND_SUPPORTS_MIDI)
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
151 fi
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
152
157
fa3e593b6a5e FLAC decoder added.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
153 dnl Check for libFLAC
fa3e593b6a5e FLAC decoder added.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
154 AC_ARG_ENABLE(flac,
fa3e593b6a5e FLAC decoder added.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
155 [ --enable-flac enable FLAC decoding via libFLAC [default=yes]],
fa3e593b6a5e FLAC decoder added.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
156 , enable_flac=yes)
fa3e593b6a5e FLAC decoder added.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
157 if test x$enable_flac = xyes; then
162
3ccce5bb41c0 Changed the header to look for regarding FLAC support from FLAC/all.h to
Ryan C. Gordon <icculus@icculus.org>
parents: 157
diff changeset
158 AC_CHECK_HEADER(FLAC/stream_decoder.h, have_flac_hdr=yes)
157
fa3e593b6a5e FLAC decoder added.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
159 AC_CHECK_LIB(FLAC, FLAC__stream_decoder_new, have_flac_lib=yes)
fa3e593b6a5e FLAC decoder added.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
160 if test x$have_flac_hdr = xyes -a x$have_flac_lib = xyes; then
fa3e593b6a5e FLAC decoder added.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
161 LIBS="$LIBS -lFLAC"
fa3e593b6a5e FLAC decoder added.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
162 AC_DEFINE(SOUND_SUPPORTS_FLAC)
fa3e593b6a5e FLAC decoder added.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
163 fi
fa3e593b6a5e FLAC decoder added.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
164 fi
fa3e593b6a5e FLAC decoder added.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
165
110
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
166 dnl Check for SMPEG
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
167 AC_ARG_ENABLE(smpeg,
262
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
168 [ --enable-smpeg enable MP3 decoding via smpeg [default=yes]],
110
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
169 , enable_smpeg=yes)
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
170 if test x$enable_smpeg = xyes; then
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
171 SMPEG_VERSION=0.4.3
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
172 AM_PATH_SMPEG($SMPEG_VERSION, , no_smpeg=yes)
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
173 if test "x$no_smpeg" = "x" ; then
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
174 CFLAGS="$CFLAGS $SMPEG_CFLAGS"
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
175 LIBS="$LIBS $SMPEG_LIBS"
262
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
176 AC_DEFINE(SOUND_SUPPORTS_SMPEG)
110
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
177 fi
5e5adbe0f215 Added Midi decoder.
Ryan C. Gordon <icculus@icculus.org>
parents: 105
diff changeset
178 fi
85
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
179
262
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
180 dnl Check for the MIDI decoder...
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
181 AC_ARG_ENABLE(mpglib,
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
182 [ --enable-mpglib enable MP3 decoding internally [default=yes]],
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
183 , enable_mpglib=yes)
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
184 if test x$enable_mpglib = xyes; then
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
185 AC_DEFINE(SOUND_SUPPORTS_MPGLIB)
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
186 fi
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
187
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
188
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
189 dnl Check for libmikmod
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
190 AC_ARG_ENABLE(mikmod,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
191 [ --enable-mikmod enable MOD decoding via mikmod [default=yes]],
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
192 , enable_mikmod=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
193 if test x$enable_mikmod = xyes; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
194 AM_PATH_LIBMIKMOD
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
195 if test "x$no_libmikmod" = "x" ; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
196 CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
197 LIBS="$LIBS $LIBMIKMOD_LIBS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
198 LDADD="$LDADD $LIBMIKMOD_LDADD"
209
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
199 AC_DEFINE(SOUND_SUPPORTS_MIKMOD)
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
200 fi
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
201 fi
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
202
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
203 dnl Check for libmodplug
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
204 AC_ARG_ENABLE(modplug,
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
205 [ --enable-modplug enable MOD decoding via modplug [default=yes]],
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
206 , enable_modplug=yes)
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
207 if test x$enable_modplug = xyes; then
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
208 AC_CHECK_HEADER(modplug.h, have_modplug_hdr=yes)
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
209 AC_CHECK_LIB(modplug, ModPlug_Load, have_modplug_lib=yes)
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
210 if test x$have_modplug_hdr = xyes -a x$have_modplug_lib = xyes; then
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
211 LIBS="$LIBS -lmodplug"
e63b9393f6ce Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents: 201
diff changeset
212 AC_DEFINE(SOUND_SUPPORTS_MODPLUG)
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
213 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
214 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
215
276
d7d55903124c Changed --enable-vorbis to --enable-ogg, made other format tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents: 262
diff changeset
216 dnl Check for ogg
d7d55903124c Changed --enable-vorbis to --enable-ogg, made other format tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents: 262
diff changeset
217 AC_ARG_ENABLE(ogg,
d7d55903124c Changed --enable-vorbis to --enable-ogg, made other format tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents: 262
diff changeset
218 [ --enable-ogg enable OGG decoding via libvorbis [default=yes]],
d7d55903124c Changed --enable-vorbis to --enable-ogg, made other format tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents: 262
diff changeset
219 , enable_ogg=yes)
d7d55903124c Changed --enable-vorbis to --enable-ogg, made other format tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents: 262
diff changeset
220 if test x$enable_ogg = xyes; then
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
221 AM_PATH_VORBIS
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
222 if test "x$no_vorbis" = "x" ; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
223 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
224 LIBS="$LIBS $VORBIS_LIBS $VORBISFILE_LIBS $VORBISENC_LIBS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
225 AC_DEFINE(SOUND_SUPPORTS_OGG)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
226 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
227 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
228
188
8df5aff6ce12 Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents: 162
diff changeset
229 dnl Check for efence (!!! FIXME : This doesn't work.)
8df5aff6ce12 Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents: 162
diff changeset
230 dnl AC_ARG_ENABLE(efence,
8df5aff6ce12 Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents: 162
diff changeset
231 dnl [ --enable-efence enable ElectricFence usage [default=no]],
8df5aff6ce12 Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents: 162
diff changeset
232 dnl , enable_efence=no)
8df5aff6ce12 Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents: 162
diff changeset
233 dnl if test x$enable_efence = xyes; then
8df5aff6ce12 Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents: 162
diff changeset
234 dnl LIBS="$LIBS /usr/lib/libefence.a"
8df5aff6ce12 Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents: 162
diff changeset
235 dnl fi
8df5aff6ce12 Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents: 162
diff changeset
236
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
237 # Checks for header files.
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
238 AC_HEADER_STDC
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
239 AC_CHECK_HEADERS([stdlib.h string.h])
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
240
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
241 # Checks for typedefs, structures, and compiler characteristics.
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
242 AC_C_CONST
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
243 AC_TYPE_SIZE_T
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
244
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
245 # Checks for library functions.
74
2777e65f6478 Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents: 66
diff changeset
246
2777e65f6478 Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents: 66
diff changeset
247 # This is only in the bleeding edge autoconf distro...
2777e65f6478 Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents: 66
diff changeset
248 #AC_FUNC_MALLOC
2777e65f6478 Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents: 66
diff changeset
249
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
250 AC_FUNC_MEMCMP
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
251 AC_CHECK_FUNCS([memset strrchr])
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
252
201
56bc776f0563 Midi support.
Ryan C. Gordon <icculus@icculus.org>
parents: 194
diff changeset
253 dnl Add Makefile conditionals
56bc776f0563 Midi support.
Ryan C. Gordon <icculus@icculus.org>
parents: 194
diff changeset
254 AM_CONDITIONAL(USE_TIMIDITY, test x$enable_midi = xyes)
262
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
255 AM_CONDITIONAL(USE_MPGLIB, test x$enable_mpglib = xyes)
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
256
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
257 AC_OUTPUT([
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
258 Makefile
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
259 decoders/Makefile
201
56bc776f0563 Midi support.
Ryan C. Gordon <icculus@icculus.org>
parents: 194
diff changeset
260 decoders/timidity/Makefile
262
6fe6de401b63 mpglib support.
Ryan C. Gordon <icculus@icculus.org>
parents: 252
diff changeset
261 decoders/mpglib/Makefile
229
fe5251b5624c Changed test dir to playsound, and make playsound part of standard build and
Ryan C. Gordon <icculus@icculus.org>
parents: 216
diff changeset
262 playsound/Makefile
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
263 ])