Lines 60-66
dnl The alpha architecture needs special
Link Here
|
60 |
case "$target" in |
60 |
case "$target" in |
61 |
alpha*-*-linux*) |
61 |
alpha*-*-linux*) |
62 |
if test x$ac_cv_prog_gcc = xyes; then |
62 |
if test x$ac_cv_prog_gcc = xyes; then |
63 |
CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall" |
63 |
EXTRA_CFLAGS="$EXTRA_CFLAGS -mcpu=ev4 -Wa,-mall" |
64 |
fi |
64 |
fi |
65 |
;; |
65 |
;; |
66 |
sparc*-*-solaris*) |
66 |
sparc*-*-solaris*) |
Lines 102-118
AC_ARG_ENABLE(debug,
Link Here
|
102 |
, enable_debug=yes) |
102 |
, enable_debug=yes) |
103 |
if test x$enable_debug != xyes; then |
103 |
if test x$enable_debug != xyes; then |
104 |
if test x$ac_cv_prog_gcc = xyes; then |
104 |
if test x$ac_cv_prog_gcc = xyes; then |
105 |
CFLAGS="$CFLAGS -fexpensive-optimizations -fomit-frame-pointer" |
105 |
EXTRA_CFLAGS="$EXTRA_CFLAGS -fexpensive-optimizations -fomit-frame-pointer" |
106 |
fi |
106 |
fi |
107 |
case "$target" in |
107 |
case "$target" in |
108 |
i486-*-*) # Yeah right. :) |
108 |
i486-*-*) # Yeah right. :) |
109 |
if test x$ac_cv_prog_gcc = xyes; then |
109 |
if test x$ac_cv_prog_gcc = xyes; then |
110 |
CFLAGS="$CFLAGS -march=486" |
110 |
EXTRA_CFLAGS="$EXTRA_CFLAGS -march=486" |
111 |
fi |
111 |
fi |
112 |
;; |
112 |
;; |
113 |
i?86-*-*) |
113 |
i?86-*-*) |
114 |
if test x$ac_cv_prog_gcc = xyes; then |
114 |
if test x$ac_cv_prog_gcc = xyes; then |
115 |
CFLAGS="$CFLAGS -march=pentium -mcpu=pentiumpro" |
115 |
EXTRA_CFLAGS="$EXTRA_CFLAGS -march=pentium -mcpu=pentiumpro" |
116 |
fi |
116 |
fi |
117 |
;; |
117 |
;; |
118 |
esac |
118 |
esac |
Lines 124-130
AM_PATH_SDL($SDL_VERSION,
Link Here
|
124 |
:, |
124 |
:, |
125 |
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
125 |
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
126 |
) |
126 |
) |
127 |
CFLAGS="$CFLAGS $SDL_CFLAGS" |
127 |
EXTRA_CFLAGS="$EXTRA_CFLAGS $SDL_CFLAGS" |
128 |
LIBS="$LIBS $SDL_LIBS" |
128 |
LIBS="$LIBS $SDL_LIBS" |
129 |
|
129 |
|
130 |
dnl See if we need to pass -lm for the math library |
130 |
dnl See if we need to pass -lm for the math library |
Lines 145-151
if test x$enable_mmx = xyes; then
Link Here
|
145 |
AC_MSG_RESULT($use_mmx) |
145 |
AC_MSG_RESULT($use_mmx) |
146 |
|
146 |
|
147 |
if test x$use_mmx = xyes; then |
147 |
if test x$use_mmx = xyes; then |
148 |
CFLAGS="$CFLAGS -DUSE_MMX" |
148 |
EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_MMX" |
149 |
fi |
149 |
fi |
150 |
fi |
150 |
fi |
151 |
|
151 |
|
Lines 162-168
if test x$enable_ati = xyes; then
Link Here
|
162 |
AC_MSG_RESULT($use_ati) |
162 |
AC_MSG_RESULT($use_ati) |
163 |
|
163 |
|
164 |
if test x$use_ati = xyes; then |
164 |
if test x$use_ati = xyes; then |
165 |
CFLAGS="$CFLAGS -DUSE_ATI" |
165 |
EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_ATI" |
166 |
fi |
166 |
fi |
167 |
fi |
167 |
fi |
168 |
|
168 |
|
Lines 171-177
AC_ARG_ENABLE(timestamp-sync,
Link Here
|
171 |
[ --enable-timestamp-sync enable system timestamp sync [default=yes]], |
171 |
[ --enable-timestamp-sync enable system timestamp sync [default=yes]], |
172 |
, enable_timestamp_sync=no) |
172 |
, enable_timestamp_sync=no) |
173 |
if test x$enable_timestamp_sync = xyes; then |
173 |
if test x$enable_timestamp_sync = xyes; then |
174 |
CFLAGS="$CFLAGS -DUSE_TIMESTAMP_SYNC" |
174 |
EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_TIMESTAMP_SYNC" |
175 |
fi |
175 |
fi |
176 |
|
176 |
|
177 |
dnl Enable the use of the system thread |
177 |
dnl Enable the use of the system thread |
Lines 179-185
AC_ARG_ENABLE(threaded-system,
Link Here
|
179 |
[ --enable-threaded-system enable system thread [default=no]], |
179 |
[ --enable-threaded-system enable system thread [default=no]], |
180 |
, enable_threaded_system=no) |
180 |
, enable_threaded_system=no) |
181 |
if test x$enable_threaded_system = xyes; then |
181 |
if test x$enable_threaded_system = xyes; then |
182 |
CFLAGS="$CFLAGS -DUSE_SYSTEM_THREAD" |
182 |
EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_SYSTEM_THREAD" |
183 |
fi |
183 |
fi |
184 |
|
184 |
|
185 |
dnl Enable threaded audio |
185 |
dnl Enable threaded audio |
Lines 187-193
AC_ARG_ENABLE(threaded-audio,
Link Here
|
187 |
[ --enable-threaded-audio enable threaded audio [default=yes]], |
187 |
[ --enable-threaded-audio enable threaded audio [default=yes]], |
188 |
, enable_threaded_audio=yes) |
188 |
, enable_threaded_audio=yes) |
189 |
if test x$enable_threaded_audio = xyes; then |
189 |
if test x$enable_threaded_audio = xyes; then |
190 |
CFLAGS="$CFLAGS -DTHREADED_AUDIO" |
190 |
EXTRA_CFLAGS="$EXTRA_CFLAGS -DTHREADED_AUDIO" |
191 |
fi |
191 |
fi |
192 |
|
192 |
|
193 |
dnl See if we can build the GTk player |
193 |
dnl See if we can build the GTk player |
Lines 198-204
have_gtk=no
Link Here
|
198 |
if test x$enable_gtk_player = xyes; then |
198 |
if test x$enable_gtk_player = xyes; then |
199 |
AM_PATH_GTK(1.2.1, have_gtk=yes) |
199 |
AM_PATH_GTK(1.2.1, have_gtk=yes) |
200 |
if test x$have_gtk = xyes; then |
200 |
if test x$have_gtk = xyes; then |
201 |
CFLAGS="$CFLAGS $GTK_CFLAGS" |
201 |
EXTRA_CFLAGS="$EXTRA_CFLAGS $GTK_CFLAGS" |
202 |
fi |
202 |
fi |
203 |
AC_SUBST(GTK_LIBS) |
203 |
AC_SUBST(GTK_LIBS) |
204 |
fi |
204 |
fi |
Lines 224-230
if test x$enable_opengl_player = xyes; t
Link Here
|
224 |
AC_PATH_X |
224 |
AC_PATH_X |
225 |
AC_PATH_XTRA |
225 |
AC_PATH_XTRA |
226 |
if test x$have_x = xyes; then |
226 |
if test x$have_x = xyes; then |
227 |
CFLAGS="$CFLAGS $X_CFLAGS" |
227 |
EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS" |
228 |
SYS_GL_LIBS="$X_LIBS -lGL -lGLU" |
228 |
SYS_GL_LIBS="$X_LIBS -lGL -lGLU" |
229 |
else |
229 |
else |
230 |
SYS_GL_LIBS="-lGL -lGLU" |
230 |
SYS_GL_LIBS="-lGL -lGLU" |
Lines 255-271
AC_ARG_ENABLE(assertions,
Link Here
|
255 |
[ --enable-assertions Enable consistency checks in decoding [default=no]], |
255 |
[ --enable-assertions Enable consistency checks in decoding [default=no]], |
256 |
, enable_assertions=no) |
256 |
, enable_assertions=no) |
257 |
if test x$enable_assertions != xyes; then |
257 |
if test x$enable_assertions != xyes; then |
258 |
CFLAGS="$CFLAGS -DNDEBUG" |
258 |
EXTRA_CFLAGS="$EXTRA_CFLAGS -DNDEBUG" |
259 |
fi |
259 |
fi |
260 |
|
260 |
|
261 |
dnl Add the source include directories |
261 |
dnl Add the source include directories |
262 |
CFLAGS="$CFLAGS -I.. -DNOCONTROLS" |
262 |
EXTRA_CFLAGS="$EXTRA_CFLAGS -I.. -DNOCONTROLS" |
263 |
CFLAGS="$CFLAGS -I\$(top_srcdir) -I\$(top_srcdir)/audio -I\$(top_srcdir)/video" |
263 |
EXTRA_CFLAGS="$EXTRA_CFLAGS -I\$(top_srcdir) -I\$(top_srcdir)/audio -I\$(top_srcdir)/video" |
264 |
CXXFLAGS="$CFLAGS" |
264 |
CXXFLAGS="$EXTRA_CFLAGS $CXXFLAGS" |
265 |
|
265 |
CFLAGS="$EXTRA_CFLAGS $CFLAGS" |
266 |
|
266 |
|
267 |
dnl C++ flags are the same as the C flags |
267 |
dnl C++ flags are the same as the C flags |
268 |
CXXFLAGS="$CFLAGS" |
|
|
269 |
if test x$GCC = xyes; then |
268 |
if test x$GCC = xyes; then |
270 |
# Check to see if options -fno-rtti -fno-exceptions are supported |
269 |
# Check to see if options -fno-rtti -fno-exceptions are supported |
271 |
AC_MSG_CHECKING(if $CXX supports -fno-rtti -fno-exceptions) |
270 |
AC_MSG_CHECKING(if $CXX supports -fno-rtti -fno-exceptions) |