Georg Baum <[EMAIL PROTECTED]> writes:

| Am Sonntag, 30. Juli 2006 12:43 schrieb Lars Gullik Bjønnes:
| 
| > From lyxinclude.m4:
| > 
| >       3.4*|4.0*)
| >           AM_CXXFLAGS=""
| >           test $enable_pch = yes && lyx_pch_comp=yes
| >           ;;
| > 
| > 
| > 3.4*|4.0*)
| >         lyx_flags="stdlib-debug $lyx_flags"
| >         AC_DEFINE(_GLIBCXX_DEBUG, 1, [libstdc++ debug mode])
| >         AC_DEFINE(_GLIBCXX_DEBUG_PEDANTIC, 1, [libstdc++ pedantic
| >         debug mode])
| >         ;;
| > 
| > 
| > 3.4*|4.0*)
| >         lyx_flags="concept-checks $lyx_flags"
| >         AC_DEFINE(_GLIBCXX_CONCEPT_CHECKS, 1, [libstdc++ concept
| >         checking])
| >         ;;
| 
| That should be adapted to gcc 4.1, but that is not the problem. Meanwhile I 
| had a look myself, and the problem is that I set CXXFLAGS in trunk, but 
| not in 1.4. This code
| 
|   if test "$ac_test_CXXFLAGS" = set; then
|     CXXFLAGS="$ac_save_CXXFLAGS"
|   else
|       CFLAGS="$lyx_opt"
|       CXXFLAGS="$lyx_opt"
|     if test x$enable_debug = xyes ; then
|         CFLAGS="-g $CFLAGS"
|         CXXFLAGS="-g $CXXFLAGS"
|     fi
|     if test x$enable_profiling = xyes ; then
|         CFLAGS="-pg $CFLAGS"
|         CXXFLAGS="-pg $CXXFLAGS"
|         LDFLAGS="-pg $LDFLAGS"
|     fi
|     if test x$enable_warnings = xyes ; then
|         case $gxx_version in
|             3.1*|3.2*|3.3*)
|                 CPPFLAGS="-W -Wall $CPPFLAGS"
|                 ;;
|             *)
|                 CPPFLAGS="-Wextra -Wall $CPPFLAGS"
|                 ;;
|         esac
|     fi
|   fi
| 
| from lyxinclude.m4 does only enable the warnings when CXXFLAGS is not set. 
| Why? CPPFLAGS should always be set IMO if the user did not set them.

No. If _you_ play with CXXFLAGS, then _you_ are in charge and we bow
to your decisions.

Hmm... but you don't play with CPPFLAGS... should possibly be an
additional check for CPPFLAGS then.

btw. Why do you play with CXXFLAGS anyway?

-- 
        Lgb

Reply via email to