aboutsummaryrefslogtreecommitdiffstats
path: root/macros/compiler-flags.m4
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-02-05 19:42:32 +0800
committerMartin Baulig <martin@src.gnome.org>1999-02-05 19:42:32 +0800
commit5493a25691a575f4ed8c0147bb4139e320bee258 (patch)
tree57aabb700b76349ed4fb000bd4e75132d37ba1f0 /macros/compiler-flags.m4
parentebcc8ed7c228e11339ea89e6909f12fed83f839e (diff)
downloadgsoc2013-evolution-5493a25691a575f4ed8c0147bb4139e320bee258.tar
gsoc2013-evolution-5493a25691a575f4ed8c0147bb4139e320bee258.tar.gz
gsoc2013-evolution-5493a25691a575f4ed8c0147bb4139e320bee258.tar.bz2
gsoc2013-evolution-5493a25691a575f4ed8c0147bb4139e320bee258.tar.lz
gsoc2013-evolution-5493a25691a575f4ed8c0147bb4139e320bee258.tar.xz
gsoc2013-evolution-5493a25691a575f4ed8c0147bb4139e320bee258.tar.zst
gsoc2013-evolution-5493a25691a575f4ed8c0147bb4139e320bee258.zip
Don't add warning and compiler flags to the CFLAGS and CXXFLAGS when
1999-02-05 Martin Baulig <martin@home-of-linux.org> * 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=646
Diffstat (limited to 'macros/compiler-flags.m4')
-rw-r--r--macros/compiler-flags.m412
1 files changed, 10 insertions, 2 deletions
diff --git a/macros/compiler-flags.m4 b/macros/compiler-flags.m4
index ae85b26f22..fb5d1d25e2 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
])