annotate configure.in @ 100:6d9fdec2f708

added config.h, added --enable-debug flag, various other changes to the build system
author fingolfin
date Wed, 03 Oct 2001 12:25:34 +0000
parents b939258bd177
children de42ca5599ac
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
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
18 MICRO_VERSION=2
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]],
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
66 , enable_smpeg=no)
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
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
73 AC_DEFINE(DEBUG)
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
74 else
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
75 AC_DEFINE(NDEBUG)
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
76 fi
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
77
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
78
6d9fdec2f708 added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents: 85
diff changeset
79 dnl ---------------------------------------------------------------------
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
80 dnl Checks for libraries.
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
81 dnl ---------------------------------------------------------------------
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
82
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
83 dnl Check for SDL
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
84 SDL_VERSION=1.2.0
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
85 AM_PATH_SDL($SDL_VERSION,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
86 :,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
87 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
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 CFLAGS="$CFLAGS $SDL_CFLAGS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
90 LIBS="$LIBS $SDL_LIBS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
91
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
92 dnl Check for voc decoder inclusion...
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
93 AC_ARG_ENABLE(voc,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
94 [ --enable-voc enable VOC decoding [default=yes]],
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
95 , enable_voc=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
96 if test x$enable_voc = xyes; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
97 AC_DEFINE(SOUND_SUPPORTS_VOC)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
98 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
99
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
100
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
101 dnl Check for wav decoder inclusion...
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
102 AC_ARG_ENABLE(wav,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
103 [ --enable-wav enable WAV decoding [default=yes]],
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
104 , enable_wav=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
105 if test x$enable_wav = xyes; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
106 AC_DEFINE(SOUND_SUPPORTS_WAV)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
107 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
108
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
109
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
110 dnl Check for raw decoder inclusion...
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
111 AC_ARG_ENABLE(raw,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
112 [ --enable-raw enable raw audio "decoding" [default=yes]],
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
113 , enable_raw=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
114 if test x$enable_raw = xyes; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
115 AC_DEFINE(SOUND_SUPPORTS_RAW)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
116 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
117
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
118
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
119 dnl Check for aiff decoder inclusion...
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
120 AC_ARG_ENABLE(aiff,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
121 [ --enable-aiff enable AIFF decoding [default=yes]],
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
122 , enable_aiff=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
123 if test x$enable_aiff = xyes; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
124 AC_DEFINE(SOUND_SUPPORTS_AIFF)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
125 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
126
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
127
85
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
128 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE.
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
129 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE.
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
130 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE.
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
131 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE.
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
132 dnl Check for shn decoder inclusion...
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
133 AC_ARG_ENABLE(shn,
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
134 [ --enable-shn enable SHN decoding [default=no]],
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
135 , enable_shn=no)
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
136 if test x$enable_shn = xyes; then
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
137 AC_DEFINE(SOUND_SUPPORTS_SHN)
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
138 fi
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
139 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE.
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
140 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE.
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
141 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE.
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
142 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE.
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
143
b939258bd177 Added Shorten module.
Ryan C. Gordon <icculus@icculus.org>
parents: 74
diff changeset
144
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
145 dnl Check for libmikmod
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
146 AC_ARG_ENABLE(mikmod,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
147 [ --enable-mikmod enable MOD decoding via mikmod [default=yes]],
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
148 , enable_mikmod=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
149 if test x$enable_mikmod = xyes; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
150 AM_PATH_LIBMIKMOD
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
151 if test "x$no_libmikmod" = "x" ; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
152 CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
153 LIBS="$LIBS $LIBMIKMOD_LIBS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
154 LDADD="$LDADD $LIBMIKMOD_LDADD"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
155 AC_DEFINE(SOUND_SUPPORTS_MOD)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
156 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
157 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
158
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
159 dnl Check for vorbis
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
160 AC_ARG_ENABLE(vorbis,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
161 [ --enable-vorbis enable OGG music via vorbis [default=yes]],
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
162 , enable_vorbis=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
163 if test x$enable_vorbis = xyes; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
164 AM_PATH_VORBIS
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
165 if test "x$no_vorbis" = "x" ; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
166 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
167 LIBS="$LIBS $VORBIS_LIBS $VORBISFILE_LIBS $VORBISENC_LIBS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
168 AC_DEFINE(SOUND_SUPPORTS_OGG)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
169 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
170 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
171
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
172 dnl Check for SMPEG
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
173 AC_ARG_ENABLE(smpeg,
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
174 [ --enable-smpeg enable MP3 music via smpeg [default=yes]],
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
175 , enable_smpeg=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
176 if test x$enable_smpeg = xyes; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
177 SMPEG_VERSION=0.4.3
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
178 AM_PATH_SMPEG($SMPEG_VERSION, , no_smpeg=yes)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
179 if test "x$no_smpeg" = "x" ; then
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
180 CFLAGS="$CFLAGS $SMPEG_CFLAGS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
181 LIBS="$LIBS $SMPEG_LIBS"
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
182 AC_DEFINE(SOUND_SUPPORTS_MP3)
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
183 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
184 fi
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
185
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
186
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
187
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
188 # Checks for header files.
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
189 AC_HEADER_STDC
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
190 AC_CHECK_HEADERS([stdlib.h string.h])
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
191
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
192 # Checks for typedefs, structures, and compiler characteristics.
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
193 AC_C_CONST
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
194 AC_TYPE_SIZE_T
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
195
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
196 # Checks for library functions.
74
2777e65f6478 Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents: 66
diff changeset
197
2777e65f6478 Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents: 66
diff changeset
198 # 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
199 #AC_FUNC_MALLOC
2777e65f6478 Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents: 66
diff changeset
200
65
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
201 AC_FUNC_MEMCMP
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
202 AC_CHECK_FUNCS([memset strrchr])
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
203
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
204
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
205 AC_OUTPUT([
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
206 Makefile
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
207 decoders/Makefile
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
208 test/Makefile
cee26d04d0ca Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
209 ])