[build] add options for gprof
This commit is contained in:
parent
5f2c3bed69
commit
e6a4ba53f0
13
configure.ac
13
configure.ac
@ -112,7 +112,18 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [enable debugging]),
|
||||
AC_MSG_RESULT($DEBUG)
|
||||
|
||||
if test x$DEBUG = xyes; then
|
||||
CXXDEBUG_FLAG=-g
|
||||
CXXDEBUG_FLAG+=" -g"
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
dnl -- Enable gprof
|
||||
AC_MSG_CHECKING(whether to enable gprof)
|
||||
AC_ARG_ENABLE(gprof, AC_HELP_STRING([--enable-gprof], [enable gprof]),
|
||||
GPROF=$enableval, GPROF=no)
|
||||
AC_MSG_RESULT($GPROF)
|
||||
|
||||
if test x$GPROF = xyes; then
|
||||
CXXDEBUG_FLAG+=" -pg"
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user