This doesn't change $CFLAGS though, as it's pretty hard to follow where it's set,
and it doesn't affect compilation times really

thanks
john

-- 
"Voodoo Programming:  Things programmers do that they know shouldn't work but
 they try anyway, and which sometimes actually work, such as recompiling
 everything."
        - Karl Lehenbauer
Index: config/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/ChangeLog,v
retrieving revision 1.14
diff -u -r1.14 ChangeLog
--- config/ChangeLog    2001/07/18 16:33:26     1.14
+++ config/ChangeLog    2001/07/23 19:30:17
@@ -1,3 +1,7 @@
+2001-07-23  John Levon  <[EMAIL PROTECTED]>
+
+       * lyxinclude.m4: honour --disable-optimization
+ 
 2001-07-18  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
 
        * lyxinclude.m4 (LYX_PATH_XFORMS): do not warn against xforms
Index: config/lyxinclude.m4
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/lyxinclude.m4,v
retrieving revision 1.43
diff -u -r1.43 lyxinclude.m4
--- config/lyxinclude.m4        2001/07/18 16:33:26     1.43
+++ config/lyxinclude.m4        2001/07/23 19:30:19
@@ -192,10 +192,12 @@
 fi
 
 # optimize less for development versions
-if test $lyx_devel_version = yes -o $lyx_prerelease = yes ; then
-  lyx_opt="-O"
-else
-  lyx_opt="-O2"
+if test "x$enable_optimization" = xyes ; then 
+  if test $lyx_devel_version = yes -o $lyx_prerelease = yes ; then
+    lyx_opt="-O"
+  else
+    lyx_opt="-O2"
+  fi
 fi
 
 # set the debug flags correctly.
Index: INSTALL
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/INSTALL,v
retrieving revision 1.31
diff -u -r1.31 INSTALL
--- INSTALL     2001/07/05 14:00:35     1.31
+++ INSTALL     2001/07/23 19:30:22
@@ -134,6 +134,10 @@
     the same system. You can optionally specify a "version" of your own,
     by doing something like : ./configure --with-version-suffix=-latestcvs
  
+  o --disable-optimization - you can use this to disable compiler optimization of
+    LyX. The compile may be much quicker with some compilers, but LyX will run more 
+    slowly. 
+ 
 There are also flags to control the internationalization support in
 LyX:
 
Index: ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/ChangeLog,v
retrieving revision 1.792
diff -u -r1.792 ChangeLog
--- ChangeLog   2001/07/23 10:08:36     1.792
+++ ChangeLog   2001/07/23 19:30:22
@@ -1,3 +1,9 @@
+2001-07-23  John Levon  <[EMAIL PROTECTED]>
+
+       * configure.in: add --disable-optimization
+ 
+       * INSTALL: document --disable-optimization
+ 
 2001-07-23  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
 
        * NEWS: updated for 1.2.0
Index: configure.in
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/configure.in,v
retrieving revision 1.72
diff -u -r1.72 configure.in
--- configure.in        2001/07/19 15:32:12     1.72
+++ configure.in        2001/07/23 19:30:22
@@ -46,6 +46,11 @@
 # which returns an error condition when stripping fails.
 INSTALL_SCRIPT='${INSTALL}'
 
+### set up optimization
+AC_ARG_ENABLE(optimization,
+  [  --enable-optimization   enable compiler optimisation],,
+        enable_optimization=yes;)
+ 
 ### we will also need a C compiler to compile GNU gettext
 AC_PROG_CC
 

Reply via email to