filename | configure.in |
changeset | 1199:62d0a21fac1c |
prev | 1174:252d50f93cf6 |
next | 1200:3b2097efa97d |
author | nkeynes |
date | Wed Dec 21 12:15:06 2011 +1000 (11 years ago) |
permissions | -rw-r--r-- |
last change | Add checks for -msse3 and -mfpmath=sse before adding them (in case the compiler doesn't actually support them) Tweak configure for forward compatibility with more recent autoconfs Update config.guess + config.sub to more recent versions |
file | annotate | diff | log | raw |
1.1 --- a/configure.in Wed May 11 19:21:19 2011 +10001.2 +++ b/configure.in Wed Dec 21 12:15:06 2011 +10001.3 @@ -88,9 +88,11 @@1.4 fi1.5 ], [], [AC_INCLUDES_DEFAULT])1.7 - AC_OBJC_VERSION([ OBJCOPT="-O2 -msse2 -mfpmath=sse"1.8 + AC_OBJC_VERSION([ OBJCOPT="-O2"1.9 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing" ],1.10 [ OBJCOPT="-O2" ], [] )1.11 + AC_CHECK_OBJCFLAG([-msse2])1.12 + AC_CHECK_OBJCFLAG([-mfpmath=sse])1.13 ])1.15 AM_CONDITIONAL(GUI_COCOA, [test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"])1.16 @@ -104,11 +106,13 @@1.17 AC_DEFINE(HAVE_EXCEPTIONS, [1], [Have exception stack-frame information])1.19 STDCFLAG="-std=c99"1.20 -AC_CC_VERSION([ CCOPT="-O2 -msse2 -mfpmath=sse"1.21 +AC_CC_VERSION([ CCOPT="-O2"1.22 CFLAGS="$CFLAGS -fno-strict-aliasing" ],1.23 [ CCOPT="$CFLAGS -fast"1.24 CFLAGS="$CFLAGS -fno-strict-aliasing" ],1.25 [ CCOPT="$CFLAGS -O2" ])1.26 +AC_CHECK_CFLAG([-msse2])1.27 +AC_CHECK_CFLAG([-mfpmath=sse])1.29 if test "x$enable_optimized" = "xyes"; then1.30 CFLAGS="$CFLAGS $CCOPT"1.31 @@ -160,7 +164,7 @@1.32 AC_MSG_CHECKING([if linker accepts -rdynamic])1.33 old_LDFLAGS="$LDFLAGS"1.34 LDFLAGS="$LDFLAGS -rdynamic"1.35 - AC_LINK_IFELSE( [int main(){ return 0; }], [1.36 + AC_LINK_IFELSE( [AC_LANG_SOURCE([int main() { return 0; }])], [1.37 LXDREAMLDFLAGS="-rdynamic"1.38 AC_MSG_RESULT([yes])1.39 ], [
.