summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilippo Giunchedi <filippo@esaurito.net>2009-10-04 14:49:03 (GMT)
committer Filippo Giunchedi <filippo@esaurito.net>2009-10-04 14:49:03 (GMT)
commit35bbb35b1286ec1ea48812968edcde0e0e454f6c (patch)
treed67c96d02efd7f6aec9b95d8ee4ca83bb2a631ef
parent69b3525547e40d556e6350929143f0282c623e66 (diff)
configure.ac: remove debug switch
rationale: if no CFLAGS are specified by the user autoconf appends -g -O2 if using gcc which already enables debug information
-rw-r--r--configure.ac28
1 files changed, 3 insertions, 25 deletions
diff --git a/configure.ac b/configure.ac
index c0a3a1d..eb80ecf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,8 +58,9 @@ case "$host_os" in
;;
esac
+
#GLOBAL_CFLAGS="-O4 -D_REENTRANT -fomit-frame-pointer -march=${host_cpu} -ffast-math -malign-double -funroll-loops -pipe"
-GLOBAL_CFLAGS="-pipe -D_REENTRANT"
+GLOBAL_CFLAGS="-pipe -D_REENTRANT -Wall"
dnl ==============================================================
@@ -386,19 +387,6 @@ if test x$with_dmalloc = xyes; then
fi
-dnl ==============================================================
-dnl compile with full warnings and debugging symbols
-dnl ==============================================================
-AC_ARG_ENABLE(debug,
- AS_HELP_STRING([--enable-debug],[compile with debug symbols (no)]),
- [enable_debug=$enableval],
- [enable_debug=no])
-
-if test x$enable_debug = xyes; then
- GLOBAL_CFLAGS="$GLOBAL_CFLAGS -Wall -g"
-fi
-
-
dnl ==============================================================================
dnl CHECK to use profiling flags when compiling, for execution analysis with gprof
dnl ==============================================================================
@@ -422,12 +410,7 @@ AC_ARG_ENABLE(lubrify,
[enable_lubrifications=yes])
if test x$enable_lubrifications = xyes; then
- if test x$enable_profiling = xyes || test x$enable_debug = xyes; then
- AC_MSG_WARN([cannot lubrify code if debug or profiling are enabled])
- enable_lubrifications=no
- else
- GLOBAL_CFLAGS="$GLOBAL_CFLAGS -O3 -fomit-frame-pointer -ffast-math"
- fi
+ GLOBAL_CFLAGS="$GLOBAL_CFLAGS -O3 -fomit-frame-pointer -ffast-math"
fi
@@ -515,11 +498,6 @@ fi
if test "$external_portaudio" = "yes"; then
echo ":: Embedding external portaudio from $PORTAUDIO_LIBS"
fi
-if test "$enable_debug" = "yes"; then
- echo ":: DEBUG informations ON (-Wall -g compile flags)"
-else
- echo ":: DEBUG informations OFF"
-fi
if test "$enable_profiling" = "yes"; then
echo ":: PROFILING informations ON (to use with gprof)"