Changeset 160 for trunk/configure.ac


Ignore:
Timestamp:
Aug 19, 2006, 11:19:06 PM (14 years ago)
Author:
Jari Häkkinen
Message:

Fixes #55. Added --enable-debug option to configure. This will turn on
debug stuff (off by default, developers note this).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r157 r160  
    4646# using extension beyond the C++ standard (usage of non C++ standard
    4747# 'long long' types).
    48 CXXFLAGS="-g -O -Wall -pedantic -Wno-long-long"
     48CXXFLAGS="-Wall -pedantic -Wno-long-long"
     49# The have HAVE_INLINE should probably be checked for.
    4950CPPFLAGS="-DHAVE_INLINE=1"
    50 # Use these flags when compiling a production library
    51 #CXXFLAGS="-O3 -Wall -pedantic -Wno-long-long"
    52 #CPPFLAGS="-DNDEBUG -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE=1"
     51
     52AC_ARG_ENABLE(debug,[  --enable-debug          turn on debug options and code])
     53if test "${enable_debug}" = "yes" ; then
     54  CXXFLAGS="$CXXFLAGS -g -O"
     55else
     56  CPPFLAGS="$CPPFLAGS -DNDEBUG"
     57  CXXFLAGS="$CXXFLAGS -O3"
     58fi
    5359
    5460AC_ARG_WITH(apr,
     
    7278AC_OUTPUT
    7379
     80echo ""
     81echo "   Ready to compile the executables of svndiget"
     82echo "   The following compilers and flags will be used:"
     83echo "   +++++++++++++++++++++++++++++++++++++++++++++++"
     84echo "    Preprocessor flags: CPPFLAGS=\"$CPPFLAGS\""
     85echo "    C++ flags:          CXXFLAGS=\"$CXXFLAGS\""
     86echo "    Linker flags:       LDFLAGS=\"$LDFLAGS\""
     87echo "   +++++++++++++++++++++++++++++++++++++++++++++++"
     88echo ""
     89
    7490test "$GNUPLOT" = "ok" || \
    7591     AC_MSG_WARN([Gnuplot was not found. svndigest will compile
     
    7793     install gnuplot (available for a wide range of operating systems
    7894     at http://www.gnuplot.info).])
     95
     96echo ""
     97echo "      Now type 'make ; make check'."
     98echo ""
Note: See TracChangeset for help on using the changeset viewer.