git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a SHOWFRAME before the END in sprites.
[swftools.git]
/
configure.in
diff --git
a/configure.in
b/configure.in
index
d1ce0c1
..
638471f
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-8,6
+8,8
@@
AC_ARG_ENABLE(checkmem,
[ --enable-checkmem turn on ccmalloc debugging], CHECKMEM=true)
AC_ARG_ENABLE(debug,
[ --enable-debug turn on debugging], DEBUG=true)
[ --enable-checkmem turn on ccmalloc debugging], CHECKMEM=true)
AC_ARG_ENABLE(debug,
[ --enable-debug turn on debugging], DEBUG=true)
+AC_ARG_ENABLE(profiling,
+[ --enable-profiling turn on profiling], PROFILING=true)
AC_ARG_ENABLE(warnings,
[ --enable-warnings turn on compiler warnings], ENABLE_WARNINGS=true)
AC_ARG_ENABLE(optimizations,
AC_ARG_ENABLE(warnings,
[ --enable-warnings turn on compiler warnings], ENABLE_WARNINGS=true)
AC_ARG_ENABLE(optimizations,
@@
-34,9
+36,18
@@
fi
if test "x$CHECKMEM" '!=' "x";then
DEBUG=yes
fi
if test "x$CHECKMEM" '!=' "x";then
DEBUG=yes
fi
+if test "x$PROFILING" '!=' "x";then
+ DEBUG=yes
+fi
if test "x$DEBUG" '!=' "x";then
if test "x$DEBUG" '!=' "x";then
- CFLAGS="$WARNINGS -g $CFLAGS"
- CXXFLAGS="$WARNINGS -g $CXXFLAGS"
+ if test "x$PROFILING" = "x";then
+ CFLAGS="$WARNINGS -g $CFLAGS"
+ CXXFLAGS="$WARNINGS -g $CXXFLAGS"
+ else
+ CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
+ CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
+ LDFLAGS="-g -pg $LIBS"
+ fi
else if test "x$OPTIMIZE" '!=' "x"; then
CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
else if test "x$OPTIMIZE" '!=' "x"; then
CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"