diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2016-10-04 09:00:27 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2016-10-04 09:00:27 +0000 |
commit | 43c40f3e43aea07477d025eedc818e1bd10385d0 (patch) | |
tree | 18515e3301c39e5d8ac8443beb123b3d2e09a74c /configure.ac | |
parent | 5a79befbf444ecd99ed39bc4b9643c5ca5e0a447 (diff) | |
download | gcc-43c40f3e43aea07477d025eedc818e1bd10385d0.tar.gz |
Restore --enable-objc-gc support
* configure.ac (target_libraries): Readd target-boehm-gc.
Restore --enable-objc-gc handling.
* configure: Regenerate.
From-SVN: r240740
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index afceb19458b..aec703a19f0 100644 --- a/configure.ac +++ b/configure.ac @@ -161,6 +161,7 @@ target_libraries="target-libgcc \ target-libssp \ target-libquadmath \ target-libgfortran \ + target-boehm-gc \ target-libffi \ target-libobjc \ target-libada \ @@ -2054,6 +2055,28 @@ for dir in $configdirs $build_configdirs $target_configdirs ; do fi done +# Check for Boehm's garbage collector +AC_ARG_ENABLE(objc-gc, +[AS_HELP_STRING([--enable-objc-gc], + [enable use of Boehm's garbage collector with the + GNU Objective-C runtime])], +[case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in + *,objc,*:*:yes:*target-boehm-gc*) + AC_MSG_ERROR([Boehm's garbage collector was requested yet not supported in this configuration]) + ;; +esac]) + +# Make sure we only build Boehm's garbage collector if required. +case ,${enable_languages},:${enable_objc_gc} in + *,objc,*:yes) + # Keep target-boehm-gc if requested for Objective-C. + ;; + *) + # Otherwise remove target-boehm-gc. + noconfigdirs="$noconfigdirs target-boehm-gc" + ;; +esac + # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ case ,${enable_languages}, in *,c++,*) |