add profiling switch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10192 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2005-07-14 23:02:31 +00:00
parent 6152c4abcc
commit 12ed18b1bd
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-07-15 <lgb@tandberg.net>
* lyxinclude.m4 (lyx_pch_comp): add profiling switch
2005-07-12 Angus Leeming <leeming@lyx.org>
* qt.m4 (QT_CHECK_IS_MULTITHREADED): ascertain whether the Qt library

View File

@ -200,6 +200,10 @@ AC_ARG_ENABLE(concept-checks,
enable_concept_checks=no;
fi;])
AC_ARG_ENABLE(profiling,
AC_HELP_STRING([--enable-profiling],[enable profiling]),,
enable_profiling=yes;)
### set up optimization
AC_ARG_ENABLE(optimization,
AC_HELP_STRING([--enable-optimization[=value]],[enable compiler optimisation]),,
@ -230,6 +234,11 @@ if test x$GXX = xyes; then
CFLAGS="-g $CFLAGS"
CXXFLAGS="-g $CXXFLAGS"
fi
if test x$enable_profiling = xyes ; then
CFLAGS="-pg $CFLAGS"
CXXFLAGS="-pg $CXXFLAGS"
LDFLAGS="-pg $LDFLAGS"
fi
if test x$enable_warnings = xyes ; then
case $gxx_version in
2.*|3.1*|3.2*|3.3*)