Search
lxdream.org :: lxdream/configure.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 909:b4a21af8ce8c
prev906:268ea359f884
next913:edc494bde24b
author nkeynes
date Thu Oct 30 23:56:59 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Add --enable-profiled configure option for convenience (and enable fastcall only on fully optimized builds)
file annotate diff log raw
1.1 --- a/configure.in Thu Oct 30 00:06:49 2008 +0000
1.2 +++ b/configure.in Thu Oct 30 23:56:59 2008 +0000
1.3 @@ -28,6 +28,11 @@
1.4 AC_ARG_ENABLE( optimized,
1.5 AS_HELP_STRING( [--disable-optimized], [Disable compile-time optimizations (Enabled by default)]),
1.6 [true], [enable_optimized=yes] )
1.7 +AC_ARG_ENABLE( profiled,
1.8 + AS_HELP_STRING( [--enable-profiled], [Enable profiling build (implies disable-optimized)]),
1.9 + [if test "$enableval" == "yes"; then
1.10 + enable_profiled=yes;
1.11 + fi] )
1.12 AC_ARG_ENABLE( trace,
1.13 AS_HELP_STRING( [--enable-trace], [Enable generation of IO traces (warning: hurts performance)]),
1.14 [if test "$enableval" == "yes"; then
1.15 @@ -55,11 +60,17 @@
1.16
1.17 dnl ------------
1.18
1.19 -if test "x$enable_optimized" = "xyes"; then
1.20 - CFLAGS="-g -O2"
1.21 -else
1.22 +if test "x$enable_profiled" = "xyes"; then
1.23 + CFLAGS="-g -pg -fprofile-arcs"
1.24 + LDFLAGS="$LDFLAGS -pg";
1.25 +elif test "x$enable_optimized" = "xyes"; then
1.26 + CFLAGS="-g -O2 -fexceptions -fomit-frame-pointer"
1.27 + AC_DEFINE(HAVE_EXCEPTIONS, [1], [Have exception stack-frame information])
1.28 + AC_DEFINE(HAVE_FASTCALL, [1], [Use fast register-passing calling conventions])
1.29 +else
1.30 CFLAGS="-g3"
1.31 fi
1.32 +
1.33 if test "x$GCC" = "xyes"; then
1.34 CFLAGS="$CFLAGS -fno-strict-aliasing"
1.35 fi
1.36 @@ -91,10 +102,6 @@
1.37 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
1.38 AC_DEFINE(OSX_BUNDLE, [1], [Generating a bundled application])
1.39 fi
1.40 -if test "x$enable_optimized" = "xyes"; then
1.41 - CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"
1.42 - AC_DEFINE(HAVE_EXCEPTIONS, [1], [Have exception stack-frame information])
1.43 -fi
1.44
1.45 dnl ----------- Check for mandatory dependencies --------------
1.46 dnl Check for libpng (required)
.