[Spice-devel] [PATCH 02/12] configure.ac: remove setting default C(XX)FLAGS

Christophe Fergeau cfergeau at redhat.com
Fri Apr 22 09:43:00 PDT 2011


automake/autoconf already set them for us to -g -O2 if there are
no flags defined.
---
 configure.ac |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/configure.ac b/configure.ac
index ac1d5e7..430bf83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,9 +13,7 @@ AC_CONFIG_AUX_DIR(.)
 AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip subdir-objects])
 AM_MAINTAINER_MODE
 
-AS_IF([test "$CFLAGS" = ""], [], [_cflags_is_set=yes])
 AC_PROG_CC
-AS_IF([test "$CXXFLAGS" = ""], [], [_cxxflags_is_set=yes])
 AC_PROG_CXX
 AC_PROG_INSTALL
 AC_CANONICAL_HOST
@@ -277,16 +275,6 @@ AC_ARG_ENABLE(static-linkage,
 AS_IF([test x"$enable_static_linkage" != "xno"],
 [SPICEC_STATIC_LINKAGE_BSTATIC=["-Wl,-Bstatic"]])
 
-
-AS_IF([test "$_cflags_is_set" = "yes"], [], [
-    CFLAGS="-g -O2"
-])
-
-
-AS_IF([test "$_cxxflags_is_set" = "yes"], [], [
-    CXXFLAGS="-g -O2"
-])
-
 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
     AC_MSG_CHECKING([for jpeglib.h])
     AC_TRY_CPP(
-- 
1.7.4.4



More information about the Spice-devel mailing list