top-level configure.ac: factor the libgomp check for posix-like OS
Thomas Schwinge
thomas@codesourcery.com
Tue Aug 18 07:25:00 GMT 2015
Hi!
On Mon, 17 Aug 2015 06:46:32 -0700, Gary Funck <gary@intrepid.com> wrote:
> I'm working on a patch set for GUPC, and as part of that work,
> I may have a couple changes to trunk that will improve the fit
> with the GUPC changes. Here's one in configure.ac.
>
> At the moment, there is a check to see if $enable_libgom
> is not set, followed by a case statement which adds
> libgomp to $noconfigdirs on non POSIX-like OS's.
Hmm...
> We'd like to re-use that logic for libgupc,
> which has a similar requirement and propose this
> re-factoring for trunk.
> --- configure.ac (revision 226928)
> +++ configure.ac (working copy)
> @@ -529,9 +529,8 @@ if test x$enable_static_libjava != xyes
> fi
> AC_SUBST(EXTRA_CONFIGARGS_LIBJAVA)
>
> -# Enable libgomp by default on hosted POSIX systems, and a few others.
> -if test x$enable_libgomp = x ; then
> - case "${target}" in
> +posix_like_os="yes"
> +case "${target}" in
> *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
> ;;
> *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
> @@ -543,9 +542,14 @@ if test x$enable_libgomp = x ; then
> nvptx*-*-*)
> ;;
> *)
> - noconfigdirs="$noconfigdirs target-libgomp"
> - ;;
> - esac
> + posix_like_os="no"
> + ;;
> +esac
Even if applicable regarding the libgomp configuration (because
nvptx-none has its own libgomp "port": libgomp/config/nvptx/), it seems a
bit strange to qualify nvptx-none as a POSIX-like system.
> +
> +# Enable libgomp by default on POSIX hosted systems.
> +if test x$enable_libgomp = x && test $posix_like_os = "no" ; then
> + # Disable libgomp on non POSIX hosted systems.
> + noconfigdirs="$noconfigdirs target-libgomp"
> fi
So, we'll have to see whether that applies to libgupc for nvptx-none,
too.
Grüße,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150818/173da872/attachment.sig>
More information about the Gcc-patches
mailing list