소스 검색

build: check for <fastmath.h> and build using -O3 -ffastmath.

legacy
Sam Hocevar sam 14 년 전
부모
커밋
bcc14949ad
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      configure.ac

+ 2
- 2
configure.ac 파일 보기

@@ -49,13 +49,13 @@ AC_ARG_ENABLE(experimental,
AC_ARG_ENABLE(cppunit,
[ --enable-cppunit use cppunit for unit tests (autodetected)])

AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h)
AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h fastmath.h)

if test "${enable_debug}" = "yes"; then
AC_DEFINE(LOL_DEBUG, 1, Define to 1 to activate debug)
OPT="-O"
else
OPT="-O2 -fno-strength-reduce -fomit-frame-pointer"
OPT="-O3 -ffast-math -fno-strength-reduce -fomit-frame-pointer"
fi

if test "${enable_release}" = "yes"; then


불러오는 중...
취소
저장