Skip to content

Commit

Permalink
Don't use NASM on x86_64 builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 12, 2009
1 parent e60af78 commit b0db1ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions configure.in
Expand Up @@ -676,6 +676,14 @@ CheckNASM()
return
;;
esac

dnl Mac OS X might report itself as "i386" but generate x86_64 code.
dnl So see what size we think a pointer is, and bail if not 32-bit.
AC_CHECK_SIZEOF([void *], 4)
if test x"$SIZEOF_VOID_P" != x4; then
return
fi

dnl Check for NASM (for assembly blit routines)
AC_ARG_ENABLE(nasm,
AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [[default=yes]]]),
Expand Down

0 comments on commit b0db1ca

Please sign in to comment.