aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-10-01 00:46:39 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-10-01 00:46:39 +0200
commit012447ea171dfbac808e5cbc5e0191c3b8680c22 (patch)
tree2f9bb66e2b8590e6ed3f744d0c3e81870b546cb0
parentb06f87c7eb14eb7806cd1fafa779bde8792ed874 (diff)
downloadgcc-012447ea171dfbac808e5cbc5e0191c3b8680c22.zip
gcc-012447ea171dfbac808e5cbc5e0191c3b8680c22.tar.gz
gcc-012447ea171dfbac808e5cbc5e0191c3b8680c22.tar.bz2
configure.ac: Add target-libffi to target_libraries.
* configure.ac: Add target-libffi to target_libraries. Readd libgcj target disablings, modified to only target-libffi. Readd target addition of go to unsupported languages. * configure: Regenerated. From-SVN: r240684
-rw-r--r--ChangeLog7
-rwxr-xr-xconfigure141
-rw-r--r--configure.ac96
3 files changed, 199 insertions, 45 deletions
diff --git a/ChangeLog b/ChangeLog
index 366c029..b766b54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-09-30 Jakub Jelinek <jakub@redhat.com>
+
+ * configure.ac: Add target-libffi to target_libraries.
+ Readd libgcj target disablings, modified to only target-libffi.
+ Readd target addition of go to unsupported languages.
+ * configure: Regenerated.
+
2016-09-30 Steve Ellcey <sellcey@caviumnetworks.com>
* MAINTAINERS: Update email address.
diff --git a/configure b/configure
index 0522f41..122ec4e 100755
--- a/configure
+++ b/configure
@@ -2748,6 +2748,7 @@ target_libraries="target-libgcc \
target-libssp \
target-libquadmath \
target-libgfortran \
+ target-libffi \
target-libobjc \
target-libada \
target-libgo"
@@ -3351,6 +3352,101 @@ case "${target}" in
;;
esac
+# Disable libffi for some systems.
+case "${target}" in
+ powerpc-*-darwin*)
+ ;;
+ i[3456789]86-*-darwin*)
+ ;;
+ x86_64-*-darwin[912]*)
+ ;;
+ *-*-darwin*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-netware*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-phoenix*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-rtems*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-tpf*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-uclinux*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-vxworks*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ alpha*-*-*vms*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ arm*-*-freebsd*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ arm-wince-pe)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ arm*-*-symbianelf*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ cris-*-* | crisv32-*-*)
+ case "${target}" in
+ *-*-linux*)
+ ;;
+ *) # See PR46792 regarding target-libffi.
+ noconfigdirs="$noconfigdirs target-libffi";;
+ esac
+ ;;
+ hppa*64*-*-hpux*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ hppa*-hp-hpux11*)
+ ;;
+ hppa*-*-hpux*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ ia64*-*-*vms*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ i[3456789]86-w64-mingw*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ i[3456789]86-*-mingw*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ x86_64-*-mingw*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ mmix-*-*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ powerpc-*-aix*)
+ # copied from rs6000-*-* entry
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ rs6000-*-aix*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ ft32-*-*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-lynxos*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+esac
+
+# Disable the go frontend on systems where it is known to not work. Please keep
+# this in sync with contrib/config-list.mk.
+case "${target}" in
+*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
+ unsupported_languages="$unsupported_languages go"
+ ;;
+esac
+
# Disable libgo for some systems where it is known to not work.
# For testing, you can easily override this with --enable-libgo.
if test x$enable_libgo = x; then
@@ -13983,51 +14079,6 @@ $as_echo "pre-installed" >&6; }
fi
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
-$as_echo_n "checking where to find the target gcj... " >&6; }
-if test "x${build}" != "x${host}" ; then
- if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
- # We already found the complete path
- ac_dir=`dirname $GCJ_FOR_TARGET`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
-$as_echo "pre-installed in $ac_dir" >&6; }
- else
- # Canadian cross, just use what we found
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
-$as_echo "pre-installed" >&6; }
- fi
-else
- ok=yes
- case " ${configdirs} " in
- *" gcc "*) ;;
- *) ok=no ;;
- esac
- case ,${enable_languages}, in
- *,java,*) ;;
- *) ok=no ;;
- esac
- if test $ok = yes; then
- # An in-tree tool is available and we can use it
- GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
-$as_echo "just compiled" >&6; }
- elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
- # We already found the complete path
- ac_dir=`dirname $GCJ_FOR_TARGET`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
-$as_echo "pre-installed in $ac_dir" >&6; }
- elif test "x$target" = "x$host"; then
- # We can use an host tool
- GCJ_FOR_TARGET='$(GCJ)'
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
-$as_echo "host tool" >&6; }
- else
- # We need a cross tool
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
-$as_echo "pre-installed" >&6; }
- fi
-fi
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
$as_echo_n "checking where to find the target gfortran... " >&6; }
if test "x${build}" != "x${host}" ; then
diff --git a/configure.ac b/configure.ac
index d09796e..afceb19 100644
--- a/configure.ac
+++ b/configure.ac
@@ -161,6 +161,7 @@ target_libraries="target-libgcc \
target-libssp \
target-libquadmath \
target-libgfortran \
+ target-libffi \
target-libobjc \
target-libada \
target-libgo"
@@ -696,6 +697,101 @@ case "${target}" in
;;
esac
+# Disable libffi for some systems.
+case "${target}" in
+ powerpc-*-darwin*)
+ ;;
+ i[[3456789]]86-*-darwin*)
+ ;;
+ x86_64-*-darwin[[912]]*)
+ ;;
+ *-*-darwin*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-netware*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-phoenix*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-rtems*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-tpf*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-uclinux*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-vxworks*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ alpha*-*-*vms*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ arm*-*-freebsd*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ arm-wince-pe)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ arm*-*-symbianelf*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ cris-*-* | crisv32-*-*)
+ case "${target}" in
+ *-*-linux*)
+ ;;
+ *) # See PR46792 regarding target-libffi.
+ noconfigdirs="$noconfigdirs target-libffi";;
+ esac
+ ;;
+ hppa*64*-*-hpux*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ hppa*-hp-hpux11*)
+ ;;
+ hppa*-*-hpux*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ ia64*-*-*vms*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ i[[3456789]]86-w64-mingw*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ i[[3456789]]86-*-mingw*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ x86_64-*-mingw*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ mmix-*-*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ powerpc-*-aix*)
+ # copied from rs6000-*-* entry
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ rs6000-*-aix*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ ft32-*-*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+ *-*-lynxos*)
+ noconfigdirs="$noconfigdirs target-libffi"
+ ;;
+esac
+
+# Disable the go frontend on systems where it is known to not work. Please keep
+# this in sync with contrib/config-list.mk.
+case "${target}" in
+*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
+ unsupported_languages="$unsupported_languages go"
+ ;;
+esac
+
# Disable libgo for some systems where it is known to not work.
# For testing, you can easily override this with --enable-libgo.
if test x$enable_libgo = x; then