diff --git a/ChangeLog b/ChangeLog
index c4c02c308bd96aaff56b50f760582461b0684a86..a75fea1e0aa9800d82a31b294d740da8e53b025c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+	PR target/27540
+	* configure.in: Only enable libgomp on IRIX 6.
+	* configure: Regenerate.
+
 2006-06-15  Paolo Bonzini  <bonzini@gnu.org>
 
 	* Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Export CFLAGS and LDFLAGS
diff --git a/configure b/configure
index 5ac0fd4d44b5a51a411f66c835e96ae4fa8bd5db..800379e796fbe7e9e4207d42d25a541691c902af 100755
--- a/configure
+++ b/configure
@@ -1157,7 +1157,7 @@ if test x$enable_libgomp = x ; then
 	;;
     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
 	;;
-    *-*-solaris2* | *-*-sysv4* | *-*-irix* | *-*-osf* | *-*-hpux11*)
+    *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
 	;;
     *-*-darwin* | *-*-aix*)
 	;;
diff --git a/configure.in b/configure.in
index 2ff8aa5c64683e62ea1e7aa39ed69891971215a0..6775f3c1001ea856925e4b8274148124fe4695ba 100644
--- a/configure.in
+++ b/configure.in
@@ -353,7 +353,7 @@ if test x$enable_libgomp = x ; then
 	;;
     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
 	;;
-    *-*-solaris2* | *-*-sysv4* | *-*-irix* | *-*-osf* | *-*-hpux11*)
+    *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
 	;;
     *-*-darwin* | *-*-aix*)
 	;;