Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 899:18e0cdea76aa
prev882:ada7d14a8ad9
next902:408568dc97d5
author nkeynes
date Sat Oct 25 12:36:42 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Add --enable-optimized flag (on by default).
When optimized, add -fomit-frame-pointer -fexceptions on non-Mac x86 (Unwinding doesn't seem to work correctly on Mac)
file annotate diff log raw
1.1 --- a/configure Sun Oct 19 11:07:10 2008 +0000
1.2 +++ b/configure Sat Oct 25 12:36:42 2008 +0000
1.3 @@ -804,6 +804,7 @@
1.4 enable_dependency_tracking
1.5 enable_strict_warn
1.6 enable_translator
1.7 +enable_optimized
1.8 enable_trace
1.9 enable_watch
1.10 enable_sh4stats
1.11 @@ -1469,7 +1470,9 @@
1.12 --disable-dependency-tracking speeds up one-time build
1.13 --enable-dependency-tracking do not reject slow dependency extractors
1.14 --enable-strict-warn Enable strict compilation warnings
1.15 - --disable-translator Disable the SH4 translator (Enable by default)
1.16 + --disable-translator Disable the SH4 translator (Enabled by default)
1.17 + --disable-optimized Disable compile-time optimizations (Enabled by
1.18 + default)
1.19 --enable-trace Enable generation of IO traces (warning: hurts
1.20 performance)
1.21 --enable-watch Enable watchpoints in the debugger (warning: hurts
1.22 @@ -6565,6 +6568,13 @@
1.23 enable_translator=yes
1.24 fi
1.25
1.26 +# Check whether --enable-optimized was given.
1.27 +if test "${enable_optimized+set}" = set; then
1.28 + enableval=$enable_optimized; true
1.29 +else
1.30 + enable_optimized=yes
1.31 +fi
1.32 +
1.33 # Check whether --enable-trace was given.
1.34 if test "${enable_trace+set}" = set; then
1.35 enableval=$enable_trace; if test "$enableval" == "yes"; then
1.36 @@ -6628,11 +6638,17 @@
1.37
1.38
1.39
1.40 +if test "x$enable_optimized" = "xyes"; then
1.41 + CFLAGS="-g -O2"
1.42 +else
1.43 + CFLAGS="-g3"
1.44 +fi
1.45 if test "x$GCC" = "xyes"; then
1.46 CFLAGS="$CFLAGS -fno-strict-aliasing"
1.47 fi
1.48
1.49
1.50 +
1.51 lxdream_save_cppflags="$CPPFLAGS"
1.52 CPPFLAGS="$CPPFLAGS -x objective-c"
1.53 cat >conftest.$ac_ext <<_ACEOF
1.54 @@ -6849,6 +6865,14 @@
1.55 _ACEOF
1.56
1.57 fi
1.58 +if test "x$enable_optimized" = "xyes" -a "x$APPLE_BUILD" != "xyes"; then
1.59 + CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"
1.60 +
1.61 +cat >>confdefs.h <<\_ACEOF
1.62 +#define HAVE_EXCEPTIONS 1
1.63 +_ACEOF
1.64 +
1.65 +fi
1.66
1.67
1.68
.