From: Martin Baulig Date: Fri, 5 Feb 1999 11:42:32 +0000 (+0000) Subject: Don't add warning and compiler flags to the CFLAGS and CXXFLAGS when X-Git-Tag: GNOME_COMMON_1_2_1~180 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9aaa43e5096613de16350564ba6aac9f123b63d5;p=platform%2Fupstream%2Fgnome-common.git Don't add warning and compiler flags to the CFLAGS and CXXFLAGS when 1999-02-05 Martin Baulig * compiler-flags.m4: Don't add warning and compiler flags to the CFLAGS and CXXFLAGS when they're cached. This fixes the problem that CFLAGS and CXXFLAGS get longer and longer each time you run a `config.status --recheck'. svn path=/trunk/; revision=610 --- diff --git a/macros/ChangeLog b/macros/ChangeLog index 017dbdd..8dd494d 100644 --- a/macros/ChangeLog +++ b/macros/ChangeLog @@ -1,3 +1,10 @@ +1999-02-05 Martin Baulig + + * compiler-flags.m4: Don't add warning and compiler flags to + the CFLAGS and CXXFLAGS when they're cached. This fixes the + problem that CFLAGS and CXXFLAGS get longer and longer each + time you run a `config.status --recheck'. + 1999-02-04 Martin Baulig * aclocal-include.m4 (INSIDE_GNOME_COMMON): New automake diff --git a/macros/compiler-flags.m4 b/macros/compiler-flags.m4 index ae85b26..fb5d1d2 100644 --- a/macros/compiler-flags.m4 +++ b/macros/compiler-flags.m4 @@ -43,7 +43,11 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[ fi fi AC_MSG_RESULT($complCFLAGS) - CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS" + if test "x$cflags_set" != "xyes"; then + CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS" + cflags_set=yes + AC_SUBST(cflags_set) + fi ]) dnl For C++, do basically the same thing. @@ -90,5 +94,9 @@ AC_DEFUN([GNOME_CXX_WARNINGS],[ fi fi AC_MSG_RESULT($complCXXFLAGS) - CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" + if test "x$cxxflags_set" != "xyes"; then + CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" + cxxflags_set=yes + AC_SUBST(cxxflags_set) + fi ])