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=610
+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'.
+
1999-02-04 Martin Baulig <martin@home-of-linux.org>
* aclocal-include.m4 (INSIDE_GNOME_COMMON): New automake
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.
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
])