Skip to content
Snippets Groups Projects
Commit 2e96cdbf authored by Per Hedbor's avatar Per Hedbor
Browse files

Disabled the missing paranthesis warning due to the if else warning.

Added -mcpu=.. flags for gcc when running solaris by using isalist

Rev: src/configure.in:1.393
parent a3ff0285
Branches
Tags
No related merge requests found
AC_REVISION("$Id: configure.in,v 1.392 2000/08/07 11:35:52 grubba Exp $") AC_REVISION("$Id: configure.in,v 1.393 2000/08/11 23:49:31 per Exp $")
AC_INIT(interpret.c) AC_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h) AC_CONFIG_HEADER(machine.h)
...@@ -669,7 +669,10 @@ if test $cflags_is_set = no; then ...@@ -669,7 +669,10 @@ if test $cflags_is_set = no; then
if test "x${GCC-}" = xyes ; then if test "x${GCC-}" = xyes ; then
WARN="-W -Wall -Wpointer-arith -Wno-unused" # Do not use -Wall, since that produces a lot of warnings that are not
# really interresting (such as the warning for if( ... ) ... else if(
# ... ) .... else
WARN="-Wcomment -Wformat -Wimplicit-function-declaration -Wmultichar -Wswitch -Wuninitialized -Wpointer-arith -Wchar-subscripts -Wno-long-long"
if test "x${with_static_linking-}" = "xyes" ; then if test "x${with_static_linking-}" = "xyes" ; then
AC_SYS_COMPILER_FLAG(-static,link_static,CFLAGS) AC_SYS_COMPILER_FLAG(-static,link_static,CFLAGS)
...@@ -713,6 +716,20 @@ if test $cflags_is_set = no; then ...@@ -713,6 +716,20 @@ if test $cflags_is_set = no; then
AC_SYS_COMPILER_FLAG(-mpentium,pentium,OPTIMIZE) AC_SYS_COMPILER_FLAG(-mpentium,pentium,OPTIMIZE)
]) ])
;; ;;
i86pc)
case "`isalist 2>/dev/null`" in
*pentium_pro*)
AC_SYS_COMPILER_FLAG(-mcpu=pentiumpro,pentiumpro,OPTIMIZE,[
AC_SYS_COMPILER_FLAG(-mcpu=pentium,pentium,OPTIMIZE)
])
;;
*pentium*)
AC_SYS_COMPILER_FLAG(-mcpu=pentium,pentium,OPTIMIZE,[
AC_SYS_COMPILER_FLAG(-m486,486,OPTIMIZE)
])
;;
esac
;;
esac esac
# AIX # AIX
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment