Changeset 1756 for trunk/configure.ac


Ignore:
Timestamp:
Jan 27, 2009, 11:35:10 PM (12 years ago)
Author:
Peter
Message:

improved YAT_*_ADD_FLAG - if contains several words, loop over the words and try each one of them rather than try whole sentance in one shot, which implies subset of words might get accepted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1701 r1756  
    191191# i.e., they are not needed for a user of yat and are not propagated
    192192# to yat-config or yat.m4.
    193 YAT_CXX_ADD_FLAG([AM_CXXFLAGS], [-Wall])
    194 YAT_CXX_ADD_FLAG([AM_CXXFLAGS], [-pedantic])
     193YAT_CXX_ADD_FLAG([AM_CXXFLAGS], [-Wall -pedantic])
    195194YAT_CPP_ADD_FLAG([CPPFLAGS], [-DHAVE_INLINE=1])
    196195AC_ARG_ENABLE([debug],
     
    198197if test "${enable_debug}" = "yes" ; then
    199198  YAT_CPP_ADD_FLAG([AM_CPPFLAGS], [-DYAT_DEBUG=1])
    200   YAT_CXX_ADD_FLAG([AM_CXXFLAGS], [-g])
    201   YAT_CXX_ADD_FLAG([AM_CXXFLAGS], [-O])
     199  YAT_CXX_ADD_FLAG([AM_CXXFLAGS], [-g -O])
    202200else
    203   YAT_CPP_ADD_FLAG([CPPFLAGS], [-DGSL_RANGE_CHECK_OFF])
    204   YAT_CPP_ADD_FLAG([AM_CPPFLAGS], [-DNDEBUG])
     201  YAT_CPP_ADD_FLAG([CPPFLAGS], [-DGSL_RANGE_CHECK_OFF -DNDEBUG])
    205202  YAT_CXX_ADD_FLAG([AM_CXXFLAGS], [-O3])
    206203fi
Note: See TracChangeset for help on using the changeset viewer.