Changeset 2274 for trunk

Show
Ignore:
Timestamp:
09/14/00 02:29:04 (8 years ago)
Author:
dwalker
Message:

new cxx flag check for the daemon

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq-common/admin/acinclude.m4.in

    r2088 r2274  
    8585]) 
    8686 
    87 dnl Check if it is possible to turn off exceptions support 
     87dnl Check if it is possible to turn off exceptions/rtti support 
    8888AC_DEFUN(LICQ_CXX_FLAGS, 
    8989[AC_CACHE_CHECK(whether ${CXX-g++} accepts -fno-rtti -fno-exceptions -fno-check-new, licq_prog_cxx_fno_exceptions, 
     
    110110fi 
    111111]) 
     112 
     113 
     114dnl Check if it is possible to turn off exceptions support 
     115AC_DEFUN(LICQDAEMON_CXX_FLAGS, 
     116[AC_CACHE_CHECK(whether ${CXX-g++} accepts -fno-exceptions -fno-check-new, licqdaemon_prog_cxx_fno_exceptions, 
     117[echo 'void f(){}' > conftest.cc 
     118if test -z "`${CXX-g++} -fno-exceptions -fno-check-new -c conftest.cc 2>&1`"; then 
     119  licqdaemon_prog_cxx_fno_exceptions=yes 
     120else 
     121  licqdaemon_prog_cxx_fno_exceptions=no 
     122fi 
     123rm -f conftest* 
     124]) 
     125 
     126if test "$licqdaemon_prog_cxx_fno_exceptions" = "yes"; then 
     127  CXXFLAGS="${CXXFLAGS} -fno-exceptions -fno-check-new" 
     128fi 
     129 
     130  AC_ARG_ENABLE(debug, 
     131    [  --enable-debug          creates debugging code], 
     132    [ licqdaemon_use_debug="$enableval"], [licqdaemon_use_debug="no"]) 
     133 
     134if test "$licqdaemon_use_debug" = "no"; then 
     135  CXXFLAGS="`echo $CXXFLAGS | sed s/-g//`" 
     136  CFLAGS="`echo $CFLAGS | sed s/-g//`" 
     137fi 
     138])