Changeset 7418


Ignore:
Timestamp:
Dec 16, 2008, 9:56:13 PM (12 years ago)
Author:
charles
Message:

(trunk) stdisease's --enable-debug configure patch. also, replace deprecated AC_HELP_STRING calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r7379 r7418  
    4646AC_PROG_CXX
    4747if test "x$GCC" = "xyes" ; then
    48     CFLAGS="-g -Wall -Wformat-security -W -Wmissing-prototypes -Wdeclaration-after-statement -O3 -funroll-loops"
    49     CXXFLAGS="-g -Wall -Wformat-security -W -O3 -funroll-loops"
     48    CFLAGS="-Wall -Wformat-security -W -Wmissing-prototypes -Wdeclaration-after-statement"
     49    CXXFLAGS="-Wall -Wformat-security -W"
    5050fi
    5151
     
    9191dnl ----------------------------------------------------------------------------
    9292dnl
     93dnl  debugging support
     94AC_ARG_ENABLE([debug],
     95              AS_HELP_STRING([--enable-debug],[build with debugging support]),,
     96              [enable_debug=no])
     97if test "x$enable_debug" = "xyes" ; then
     98        CFLAGS+=" -g "
     99        CXXFLAGS+=" -g "
     100else
     101        CFLAGS+=" -O3 -funroll-loops -DNDEBUG "
     102        CXXFLAGS+=" -O3 -funroll-loops -DNDEBUG "
     103fi
     104
     105
     106dnl ----------------------------------------------------------------------------
     107dnl
    93108dnl  libevent fun
    94109
     
    111126                  [have_gtk=no])
    112127AC_ARG_ENABLE([gtk],
    113               AC_HELP_STRING([--enable-gtk],[build gtk client]),
     128              AS_HELP_STRING([--enable-gtk],[build gtk client]),
    114129              [want_gtk=${enableval}],
    115130              [want_gtk=${have_gtk}])
     
    203218build_wx=no
    204219AC_ARG_ENABLE([wx],
    205               AC_HELP_STRING([--enable-wx],[build wxWidgets client]),
     220              AS_HELP_STRING([--enable-wx],[build wxWidgets client]),
    206221              [want_wx=${enableval}],
    207222              [want_wx=no])
     
    261276
    262277AC_ARG_ENABLE([cli],
    263               [AC_HELP_STRING([--enable-cli],[build command-line client])],
     278              [AS_HELP_STRING([--enable-cli],[build command-line client])],
    264279              [build_cli=${enableval}],
    265280              [build_cli="yes"])
     
    267282
    268283AC_ARG_ENABLE([mac],
    269               [AC_HELP_STRING([--enable-mac],[build OS X client])],
     284              [AS_HELP_STRING([--enable-mac],[build OS X client])],
    270285              [build_mac=${enableval}],
    271286              [build_mac=${have_darwin}])
     
    273288
    274289AC_ARG_ENABLE([daemon],
    275               [AC_HELP_STRING([--enable-daemon],[build daemon])],
     290              [AS_HELP_STRING([--enable-daemon],[build daemon])],
    276291              [build_daemon=${enableval}],
    277292              [build_daemon="yes"])
     
    316331        Source code location:       ${srcdir}
    317332        Compiler:                   ${CXX}
     333        Debugging support           ${enable_debug}
    318334        Build Command-Line client:  ${build_cli}
    319335        Build Daemon:               ${build_daemon}
Note: See TracChangeset for help on using the changeset viewer.