From 56fa1ed954d7684491b48888069855fbf10dfec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Sun, 17 Jul 2005 23:32:58 +0000 Subject: [PATCH] make releases and prereleases have optimization set to -O2 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10300 a592a061-630c-0410-9148-cb99ea01b6c8 --- config/ChangeLog | 5 +++++ config/lyxinclude.m4 | 13 +++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/config/ChangeLog b/config/ChangeLog index 91762d9b61..d4bf09e6d2 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2005-07-18 Lars Gullik Bjønnes + + * lyxinclude.m4 (enable-optimization): make releases and + prereleases have optimization set to -O2 + 2005-07-16 Jean-Marc Lasgouttes * lyxinclude.m4: set profiling off by defqult diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index 1a84d85588..274a738bad 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -206,11 +206,16 @@ AC_ARG_ENABLE(profiling, ### set up optimization AC_ARG_ENABLE(optimization, - AC_HELP_STRING([--enable-optimization[=value]],[enable compiler optimisation]),, - enable_optimization=yes;) + AC_HELP_STRING([--enable-optimization[=value]],[enable compiler optimisation]),, + enable_optimization=yes;) case $enable_optimization in - yes) lyx_opt=-O;; - no) lyx_opt=;; + yes) + if test $lyx_devel_version = yes ; then + lyx_opt=-O + else + lyx_opt=-O2 + fi;; + no) lyx_opt=;; *) lyx_opt=${enable_optimization};; esac