comparison configure.in @ 5030:6a0803e47c7b

Greg Jandl to SDL I *think* the patch below works correctly: sdl-config gets the -march flag and SDL builds fine. Perhaps there's a better way to get the -march flag into both CFLAGS and SDL_FLAGS w/o dragging along more cruft, but adding it to BASE_CFLAGS seemed the best bet to my eyes.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 19 Jan 2011 00:07:43 -0800
parents 5d7d48157be7
children ff8873816c30
comparison
equal deleted inserted replaced
5029:5d7d48157be7 5030:6a0803e47c7b
46 AC_SUBST(LT_REVISION) 46 AC_SUBST(LT_REVISION)
47 AC_SUBST(LT_AGE) 47 AC_SUBST(LT_AGE)
48 48
49 dnl Detect the canonical build and host environments 49 dnl Detect the canonical build and host environments
50 dnl AC_CANONICAL_HOST 50 dnl AC_CANONICAL_HOST
51 AX_GCC_ARCHFLAG([no])
52 51
53 dnl Check for tools 52 dnl Check for tools
54 AC_PROG_LIBTOOL 53 AC_PROG_LIBTOOL
55 AC_PROG_CC 54 AC_PROG_CC
56 AC_PROG_CXX 55 AC_PROG_CXX
82 *) 81 *)
83 BASE_CFLAGS="" 82 BASE_CFLAGS=""
84 BASE_LDFLAGS="" 83 BASE_LDFLAGS=""
85 ;; 84 ;;
86 esac 85 esac
86 # Uncomment the following line if you want to force SDL and applications
87 # built with it to be compiled for a particular architecture.
88 #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
87 BUILD_CFLAGS="$CFLAGS $CPPFLAGS" 89 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
88 # The default optimization for SDL 1.3 is -O3 (Bug #31) 90 # The default optimization for SDL 1.3 is -O3 (Bug #31)
89 if test x$orig_CFLAGS = x; then 91 if test x$orig_CFLAGS = x; then
90 BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'` 92 BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
91 fi 93 fi