Mercurial > sdl-ios-xcode
comparison configure.in @ 2261:c20476d7d7b3
Enabled 3DNow! intrinsic support
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 17 Aug 2007 03:22:03 +0000 |
parents | 93994f65c74c |
children | f7f80b822c1f |
comparison
equal
deleted
inserted
replaced
2260:202ddfd1cfb1 | 2261:c20476d7d7b3 |
---|---|
288 mmx_CFLAGS="-mmmx" | 288 mmx_CFLAGS="-mmmx" |
289 CFLAGS="$save_CFLAGS $mmx_CFLAGS" | 289 CFLAGS="$save_CFLAGS $mmx_CFLAGS" |
290 | 290 |
291 AC_TRY_COMPILE([ | 291 AC_TRY_COMPILE([ |
292 #include <mmintrin.h> | 292 #include <mmintrin.h> |
293 #ifndef __MMX__ | |
294 #error Assembler CPP flag not enabled | |
295 #endif | |
293 ],[ | 296 ],[ |
294 ],[ | 297 ],[ |
295 have_gcc_mmx=yes | 298 have_gcc_mmx=yes |
296 ]) | 299 ]) |
297 AC_MSG_RESULT($have_gcc_mmx) | 300 AC_MSG_RESULT($have_gcc_mmx) |
298 | 301 |
299 if test x$have_gcc_mmx = xyes; then | 302 if test x$have_gcc_mmx = xyes; then |
300 EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS" | 303 EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS" |
304 fi | |
305 fi | |
306 | |
307 AC_ARG_ENABLE(3dnow, | |
308 AC_HELP_STRING([--enable-3dnow], [use MMX assembly routines [[default=yes]]]), | |
309 , enable_3dnow=yes) | |
310 if test x$enable_3dnow = xyes; then | |
311 save_CFLAGS="$CFLAGS" | |
312 have_gcc_3dnow=no | |
313 AC_MSG_CHECKING(for GCC -m3dnow option) | |
314 amd3dnow_CFLAGS="-m3dnow" | |
315 CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS" | |
316 | |
317 AC_TRY_COMPILE([ | |
318 #include <mm3dnow.h> | |
319 #ifndef __3dNOW__ | |
320 #error Assembler CPP flag not enabled | |
321 #endif | |
322 ],[ | |
323 ],[ | |
324 have_gcc_3dnow=yes | |
325 ]) | |
326 AC_MSG_RESULT($have_gcc_3dnow) | |
327 | |
328 if test x$have_gcc_3dnow = xyes; then | |
329 EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS" | |
301 fi | 330 fi |
302 fi | 331 fi |
303 | 332 |
304 AC_ARG_ENABLE(sse, | 333 AC_ARG_ENABLE(sse, |
305 AC_HELP_STRING([--enable-sse], [use SSE assembly routines [[default=yes]]]), | 334 AC_HELP_STRING([--enable-sse], [use SSE assembly routines [[default=yes]]]), |
311 sse_CFLAGS="-msse" | 340 sse_CFLAGS="-msse" |
312 CFLAGS="$save_CFLAGS $sse_CFLAGS" | 341 CFLAGS="$save_CFLAGS $sse_CFLAGS" |
313 | 342 |
314 AC_TRY_COMPILE([ | 343 AC_TRY_COMPILE([ |
315 #include <xmmintrin.h> | 344 #include <xmmintrin.h> |
345 #ifndef __SSE__ | |
346 #error Assembler CPP flag not enabled | |
347 #endif | |
316 ],[ | 348 ],[ |
317 ],[ | 349 ],[ |
318 have_gcc_sse=yes | 350 have_gcc_sse=yes |
319 ]) | 351 ]) |
320 AC_MSG_RESULT($have_gcc_sse) | 352 AC_MSG_RESULT($have_gcc_sse) |