[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sat Dec 8 13:49:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-08 19:48:56 UTC
Commited by: Federico Mennite <ite at techmonkeys.org>

Modified files:
     configure.ac acconfig/acinclude.m4 doc/compiling.FAQ

Log message:

Added '--disable-cc-optimization' to disable -O2 flags. Patch by Ely Levy <cs.huji.ac.il>

---------------------- diff included ----------------------
Index: eggdrop1.7/acconfig/acinclude.m4
diff -u eggdrop1.7/acconfig/acinclude.m4:1.4 eggdrop1.7/acconfig/acinclude.m4:1.5
--- eggdrop1.7/acconfig/acinclude.m4:1.4	Sat Oct 27 08:34:17 2001
+++ eggdrop1.7/acconfig/acinclude.m4	Sat Dec  8 13:48:45 2001
@@ -1,7 +1,7 @@
 dnl acinclude.m4
 dnl   macros autoconf uses when building configure from configure.in
 dnl
-dnl $Id: acinclude.m4,v 1.4 2001/10/27 13:34:17 ite Exp $
+dnl $Id: acinclude.m4,v 1.5 2001/12/08 19:48:45 ite Exp $
 dnl
 
 
@@ -145,6 +145,17 @@
   exit 1
 fi
 ])
+
+
+dnl  EGG_DISABLE_CC_OPTIMIZATION()
+dnl
+dnl check if user requested to remove -O2 cflag 
+dnl would be usefull on some weird *nix
+AC_DEFUN(EGG_DISABLE_CC_OPTIMIZATION, [dnl
+  AC_ARG_ENABLE(cc-optimization,
+                AC_ARG_HELP([--disable-cc-optimization], [disable -O2 cflag]),  
+    CFLAGS=`echo $CFLAGS | sed 's/\-O2//'`)
+])dnl
 
 
 dnl  EGG_CHECK_OS()
Index: eggdrop1.7/configure.ac
diff -u eggdrop1.7/configure.ac:1.8 eggdrop1.7/configure.ac:1.9
--- eggdrop1.7/configure.ac:1.8	Tue Oct 30 22:02:50 2001
+++ eggdrop1.7/configure.ac	Sat Dec  8 13:48:45 2001
@@ -51,6 +51,9 @@
 AC_CHECK_PROG(EGG_UNAME,uname,uname)
 AC_CHECK_PROG(AR,ar,ar)
 
+# Should -O2 CFLAG be removed? 
+EGG_DISABLE_CC_OPTIMIZATION
+
 # Test the os and set the module linking settings
 EGG_CHECK_OS
 
Index: eggdrop1.7/doc/compiling.FAQ
diff -u eggdrop1.7/doc/compiling.FAQ:1.9 eggdrop1.7/doc/compiling.FAQ:1.10
--- eggdrop1.7/doc/compiling.FAQ:1.9	Wed Oct 10 08:15:58 2001
+++ eggdrop1.7/doc/compiling.FAQ	Sat Dec  8 13:48:45 2001
@@ -337,9 +337,12 @@
 
 10. Bot crashes at startup with msg "net.c/708" for example
 
-     On some not IA32 systems the gcc options -O2 and -O3 cause that. We don't
+     On some non IA32 systems the gcc options -O2 and -O3 cause that. We don't
      know why this happens but sometimes it helps to remove those options from
-     the Makefile. Just give it a try.
+     the Makefile. To disable them use:
+
+        ./configure --disable-cc-optimization
+
      Ah well, drop us a note if you know why, so we can extend the info here.
 
 11. I get lot's of warnings
----------------------- End of diff -----------------------



More information about the Changes mailing list