Do not append -Wall -W to CXXFLAGS when it is set on the commandline.
authorladanyi
Wed, 25 Jan 2006 15:03:45 +0000
changeset 1905b0b3fa857d72
parent 1904 a64e4735bda6
child 1906 7fa90b66ca9e
Do not append -Wall -W to CXXFLAGS when it is set on the commandline.
configure.ac
     1.1 --- a/configure.ac	Wed Jan 25 14:58:04 2006 +0000
     1.2 +++ b/configure.ac	Wed Jan 25 15:03:45 2006 +0000
     1.3 @@ -6,6 +6,8 @@
     1.4  AC_CONFIG_HEADERS([config.h lemon/config.h])
     1.5  AC_PREREQ([2.59])
     1.6  
     1.7 +lx_cmdline_cxxflags_set=${CXXFLAGS+set}
     1.8 +
     1.9  dnl Checks for programs.
    1.10  AC_PROG_CXX
    1.11  AC_PROG_CXXCPP
    1.12 @@ -13,7 +15,7 @@
    1.13  AC_DISABLE_SHARED
    1.14  AC_PROG_LIBTOOL
    1.15  
    1.16 -if test $CXX != icc -a $CXX != icpc; then
    1.17 +if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
    1.18    CXXFLAGS="$CXXFLAGS -Wall -W"
    1.19  fi
    1.20