]> git.lyx.org Git - features.git/commitdiff
add profiling switch
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 14 Jul 2005 23:02:31 +0000 (23:02 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 14 Jul 2005 23:02:31 +0000 (23:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10192 a592a061-630c-0410-9148-cb99ea01b6c8

config/ChangeLog
config/lyxinclude.m4

index 68092fff157a7696e3fadee0f5e7bf61b62e2cc7..f2ce9f3d8a042ab56e17bdcf458ac02c2be15906 100644 (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
index 3763412aaf5609ba5059d06994dbd082bfb27317..3666d8af59da068b4d34038280c456db330ad2e4 100644 (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*)