X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=configure.ac;h=aec703a19f08c3f474dcfd052804bf91b24bd993;hb=43c40f3e43aea07477d025eedc818e1bd10385d0;hp=afceb19458b8accf9c4316944a569ef9f07ae6ca;hpb=5a79befbf444ecd99ed39bc4b9643c5ca5e0a447;p=thirdparty%2Fgcc.git diff --git a/configure.ac b/configure.ac index afceb19458b8..aec703a19f08 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++,*)