* configure.ac (CFLAGS): Add -O flag if Solaris SunCC (i.e., not GCC)
regardless of threads support (i.e., even in case it is off).
;;
esac
case "$host" in
- sparc*-*-solaris*)
+ sparc*-*-solaris*)
if test "$GCC" != yes; then
- CFLAGS="-O $CFLAGS"
need_atomic_ops_asm=true
fi
;;
powerpc-*-darwin*)
powerpc_darwin=true
;;
+ *-*-solaris*)
+ if test "$GCC" != yes; then
+ # Solaris SunCC
+ CFLAGS="-O $CFLAGS"
+ fi
+ ;;
*-*-wince*)
if test "$enable_gc_debug" != "no"; then
AC_DEFINE([GC_READ_ENV_FILE], 1,