OSDN Git Service

Merge from transactional-memory branch.
[pf3gnuchains/gcc-fork.git] / configure.ac
index 337e11d..4bca6d8 100644 (file)
@@ -154,6 +154,7 @@ target_libraries="target-libgcc \
                target-libgloss \
                target-newlib \
                target-libgomp \
+               target-libitm \
                target-libstdc++-v3 \
                target-libmudflap \
                target-libssp \
@@ -492,6 +493,24 @@ if test x$enable_libgomp = x ; then
     esac
 fi
 
+# Disable libitm on non POSIX hosted systems.
+if test x$enable_libitm = x ; then
+    # Enable libitm by default on hosted POSIX systems.
+    case "${target}" in
+    *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
+       ;;
+    *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
+       ;;
+    *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
+       ;;
+    *-*-darwin* | *-*-aix*)
+       ;;
+    *)
+       noconfigdirs="$noconfigdirs target-libitm"
+       ;;
+    esac
+fi
+
 # Disable libssp for some systems.
 case "${target}" in
   avr-*-*)