2005-07-24 00:28:33 +00:00
|
|
|
$OpenBSD: patch-configure_ac,v 1.1 2005/07/24 00:28:33 brad Exp $
|
|
|
|
--- configure.ac.orig Mon Jul 4 22:52:15 2005
|
|
|
|
+++ configure.ac Mon Jul 4 22:53:28 2005
|
|
|
|
@@ -51,9 +51,6 @@ case "$target" in
|
|
|
|
;;
|
|
|
|
esac
|
2003-05-04 04:02:53 +00:00
|
|
|
|
2005-07-24 00:28:33 +00:00
|
|
|
-# Control compiler optimizations
|
|
|
|
-CFLAGS=`echo $CFLAGS | sed 's/-O[ 0123456789s]*//g'`
|
|
|
|
-
|
2003-05-04 04:02:53 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_C_CONST
|
2005-07-24 00:28:33 +00:00
|
|
|
@@ -305,35 +302,8 @@ AC_DEFUN([SILC_ADD_CC_FLAGS],
|
2003-05-04 04:02:53 +00:00
|
|
|
unset tmp_CFLAGS
|
|
|
|
])
|
2003-08-19 03:52:27 +00:00
|
|
|
|
2003-05-04 04:02:53 +00:00
|
|
|
-if test "$GCC"; then
|
|
|
|
- # GCC specific options
|
|
|
|
- if test "x$summary_debug" = "xyes"; then
|
|
|
|
- SILC_ADD_CFLAGS(-g -O)
|
|
|
|
- else
|
|
|
|
- SILC_ADD_CFLAGS(-g -O2)
|
|
|
|
- fi
|
|
|
|
- SILC_ADD_CFLAGS(-Wall -finline-functions)
|
2005-07-24 00:28:33 +00:00
|
|
|
- SILC_ADD_CFLAGS(-Wno-pointer-sign)
|
2003-05-04 04:02:53 +00:00
|
|
|
-else
|
|
|
|
- # Other compilers
|
|
|
|
- case "$target" in
|
|
|
|
- alpha*-dec-osf*)
|
|
|
|
- SILC_ADD_CFLAGS(-g3 -O2, SILC_ADD_CFLAGS(-g3 -O, SILC_ADD_CFLAGS(-O)))
|
|
|
|
- ;;
|
2005-07-24 00:28:33 +00:00
|
|
|
- mips*-sgi-irix*)
|
|
|
|
- SILC_ADD_CFLAGS(-g3 -O2, SILC_ADD_CFLAGS(-g3 -O, SILC_ADD_CFLAGS(-O)))
|
|
|
|
- ;;
|
2003-05-04 04:02:53 +00:00
|
|
|
- *)
|
|
|
|
- SILC_ADD_CFLAGS(-g)
|
|
|
|
- SILC_ADD_CFLAGS(-O2, SILC_ADD_CFLAGS(-O))
|
|
|
|
- ;;
|
|
|
|
- esac
|
|
|
|
-
|
|
|
|
- # Intel C++ Compiler needs -restrict
|
|
|
|
- if test "x$CC" = "xicc"; then
|
|
|
|
- SILC_ADD_CFLAGS(-restrict)
|
|
|
|
- fi
|
|
|
|
-fi
|
2003-10-29 04:12:47 +00:00
|
|
|
+SILC_ADD_CFLAGS(-Wall -finline-functions)
|
2005-07-24 00:28:33 +00:00
|
|
|
+SILC_ADD_CFLAGS(-Wno-pointer-sign)
|
2003-10-29 04:12:47 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Workaround a bug in GCC 2.x which causes memory exhaustion
|