]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
gcc's optimiser is broken at -02 for ultrasparc
authorMark Andrews <marka@isc.org>
Tue, 21 Jan 2003 04:11:26 +0000 (04:11 +0000)
committerMark Andrews <marka@isc.org>
Tue, 21 Jan 2003 04:11:26 +0000 (04:11 +0000)
configure
configure.in

index 55fb9d112e0f0fb4812694c831c84caaf70047a0..3fdf637df060e9ff2f4c1a9bffa957d3815e8b1b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.335 .
+# From configure.in Revision: 1.336 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.53.
 #
@@ -2692,6 +2692,17 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
+#
+# gcc's optimiser is broken at -02 for ultrasparc
+#
+if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then
+       case "$host" in
+       sparc-*-solaris*)
+               CCFLAGS="-g -O1"
+               ;;
+       esac
+fi
+
 #
 #      OSF 5.0: recv/send are only avaliable with -D_POSIX_PII_SOCKET or
 #      -D_XOPEN_SOURCE_EXTENDED.
@@ -7594,7 +7605,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 case $host in
 *-*-irix6*)
   # Find out which ABI we are using.
-  echo '#line 7597 "configure"' > conftest.$ac_ext
+  echo '#line 7608 "configure"' > conftest.$ac_ext
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -8144,7 +8155,7 @@ chmod -w .
 save_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 compiler_c_o=no
-if { (eval echo configure:8147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
+if { (eval echo configure:8158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
   # The compiler can only warn and ignore the option if not recognized
   # So say no if there are warnings
   if test -s out/conftest.err; then
@@ -10011,7 +10022,7 @@ else
     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 10014 "configure"
+#line 10025 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -10109,7 +10120,7 @@ else
     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 10112 "configure"
+#line 10123 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index f9332382bb39f1f62dd95d6efc24743a7a09f142..ccdfc42545f81203dba2279485792113138fcf3e 100644 (file)
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
 esyscmd([sed "s/^/# /" COPYRIGHT])dnl
 AC_DIVERT_POP()dnl
 
-AC_REVISION($Revision: 1.335 $)
+AC_REVISION($Revision: 1.336 $)
 
 AC_INIT(lib/dns/name.c)
 AC_PREREQ(2.13)
@@ -192,6 +192,17 @@ fi
 
 AC_PROG_CC
 
+#
+# gcc's optimiser is broken at -02 for ultrasparc
+#
+if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then
+       case "$host" in
+       sparc-*-solaris*)
+               CCFLAGS="-g -O1"
+               ;;
+       esac
+fi
+
 #
 #      OSF 5.0: recv/send are only avaliable with -D_POSIX_PII_SOCKET or
 #      -D_XOPEN_SOURCE_EXTENDED.