From: Lars Gullik Bjønnes Date: Thu, 14 Jul 2005 23:02:31 +0000 (+0000) Subject: add profiling switch X-Git-Tag: 1.6.10~14137 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=12ed18b1bd0a09d8f18c5dc747ea70d152c77f1e;p=features.git add profiling switch git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10192 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/config/ChangeLog b/config/ChangeLog index 68092fff15..f2ce9f3d8a 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2005-07-15 + + * lyxinclude.m4 (lyx_pch_comp): add profiling switch + 2005-07-12 Angus Leeming * qt.m4 (QT_CHECK_IS_MULTITHREADED): ascertain whether the Qt library diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index 3763412aaf..3666d8af59 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -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*)