[BACK] Return to configure.in CVS log [TXT][DIR] Up to Nevrax / code / nel

Diff for /code/nel/configure.in between version 1.31 and 1.32

version 1.31, 2001/04/03 12:32:21 version 1.32, 2001/04/10 13:44:50
Line 29 
Line 29 
 AM_CONFIG_HEADER(include/nelconfig.h) AM_CONFIG_HEADER(include/nelconfig.h)
  
  
  dnl The following hack should ensure that configure doesn't add optimizing
  dnl or debugging flags to CFLAGS or CXXFLAGS
  CFLAGS="$CFLAGS "
  CXXFLAGS="$CXXFLAGS "
  
  
 dnl ==================================================================== dnl ====================================================================
 dnl Checks for programs. dnl Checks for programs.
  
Line 181 
Line 187 
  
 AC_SUBST(PYTHON_CFLAGS) AC_SUBST(PYTHON_CFLAGS)
 AC_SUBST(PYTHON_LIBS) AC_SUBST(PYTHON_LIBS)
  
  
  dnl ==========
  dnl Debug/optimized compilation mode
  dnl ==========
  
  MAX_C_OPTIMIZE="-O6"
  
  dnl Build optimized or debug version ?
  dnl First check for gcc and g++
  if test "$ac_cv_prog_gcc" = "yes"
  then
    DEBUG_CFLAGS="-g"
    DEBUG_OPTIMIZE_CC="-O"
    OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE"
  else
    DEBUG_CFLAGS="-g"
    DEBUG_OPTIMIZE_CC=""
    OPTIMIZE_CFLAGS="-O"
  fi
  if test "$ac_cv_prog_cxx_g" = "yes"
  then
    DEBUG_CXXFLAGS="-g"
    DEBUG_OPTIMIZE_CXX="-O"
    OPTIMIZE_CXXFLAGS="-O3"
  else
    DEBUG_CXXFLAGS="-g"
    DEBUG_OPTIMIZE_CXX=""
    OPTIMIZE_CXXFLAGS="-O"
  fi
  AC_ARG_WITH(debug,
      [  --with-debug[=full]     Build a debug version (huge libraries)
    --without-debug         Build withoug debugging code (default)],
      [with_debug=$withval],
      [with_debug=no])
  if test "$with_debug" = "yes"
  then
    dnl Medium debug.
    CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS"
    CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS"
  elif test "$with_debug" = "full"
  then
    dnl Full debug. Very slow in some cases
    CFLAGS="$DEBUG_CFLAGS $CFLAGS"
    CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS"
  else
    dnl Optimized version. No debug
    CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS"
    CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS"
  fi
  
  
 dnl ==================================================================== dnl ====================================================================


Legend:
Removed from v.1.31 
changed lines
 Added in v.1.32