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
This commit is contained in:
Lars Gullik Bjønnes 2005-07-17 23:32:58 +00:00
parent 0bceb51d62
commit 56fa1ed954
2 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2005-07-18 Lars Gullik Bjønnes <larsbj@lyx.org>
* lyxinclude.m4 (enable-optimization): make releases and
prereleases have optimization set to -O2
2005-07-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* lyxinclude.m4: set profiling off by defqult

View File

@ -209,7 +209,12 @@ AC_ARG_ENABLE(optimization,
AC_HELP_STRING([--enable-optimization[=value]],[enable compiler optimisation]),,
enable_optimization=yes;)
case $enable_optimization in
yes) lyx_opt=-O;;
yes)
if test $lyx_devel_version = yes ; then
lyx_opt=-O
else
lyx_opt=-O2
fi;;
no) lyx_opt=;;
*) lyx_opt=${enable_optimization};;
esac