360 |
|
LIBS="$LIBS -laudio" |
361 |
|
WANT_ESD=no |
362 |
|
|
363 |
< |
dnl Check if our compiler supports -Ofast (MIPSPro) |
364 |
< |
HAVE_OFAST=no |
363 |
> |
dnl Check if our compiler supports -IPA (MIPSPro) |
364 |
> |
HAVE_IPA=no |
365 |
|
ocflags="$CFLAGS" |
366 |
< |
CFLAGS=`echo $CFLAGS | sed -e 's/ -g / -Ofast /;s/^-g /-Ofast /;s/-g$/ -Ofast/;s/^-g$/-Ofast/'` |
367 |
< |
AC_MSG_CHECKING(if "-Ofast" works) |
366 |
> |
CFLAGS=`echo "$CFLAGS -IPA" | sed -e "s/-g//g"` |
367 |
> |
AC_MSG_CHECKING(if "-IPA" works) |
368 |
|
dnl Do a test compile of an empty function |
369 |
< |
AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes); HAVE_OFAST=yes], AC_MSG_RESULT(no)) |
369 |
> |
AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes); HAVE_IPA=yes], AC_MSG_RESULT(no)) |
370 |
|
CFLAGS="$ocflags" |
371 |
|
|
372 |
|
;; |
1092 |
|
CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g//g'` |
1093 |
|
fi |
1094 |
|
|
1095 |
< |
dnl Or if we have -Ofast |
1096 |
< |
if [[ "x$HAVE_OFAST" = "xyes" ]]; then |
1097 |
< |
CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -Ofast" |
1098 |
< |
CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -Ofast" |
1095 |
> |
dnl Or if we have -IPA (MIPSPro compilers) |
1096 |
> |
if [[ "x$HAVE_IPA" = "xyes" ]]; then |
1097 |
> |
CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -O3 -OPT:Olimit=0 -IPA" |
1098 |
> |
CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -O3 -OPT:Olimit=0 -IPA" |
1099 |
|
CXXFLAGS="-LANG:std $CXXFLAGS" |
1100 |
< |
LDFLAGS="$LDFLAGS -ipa" |
1100 |
> |
LDFLAGS="$LDFLAGS -O3 -OPT:Olimit=0 -IPA" |
1101 |
|
fi |
1102 |
|
|
1103 |
|
dnl Generate Makefile. |