This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Disable libitm if unsupported
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Henderson <rth at redhat dot com>
- Date: Tue, 8 Nov 2011 17:26:23 +0000
- Subject: Re: Disable libitm if unsupported
- References: <4EB959F0.60301@redhat.com>
On Tuesday 08 November 2011 16:33:52, Richard Henderson wrote:
> toplevel/
> * configure.ac: Adjust srcdir for running libitm/configure.tgt.
> +# Disable libitm on unsupported hosted systems.
> +if test x$enable_libitm = x; then
> + AC_MSG_CHECKING([for libitm support])
> + if (srcdir=${srcdir}/libitm; \
> + . ${srcdir}/configure.tgt; \
This should check that libitm exists before sourcing the script,
as otherwise it will error out on src tree
checkouts (binutils, gdb, ...), given that the libitm directory
doesn't exist there.
> + test -n "$UNSUPPORTED"); then
> + AC_MSG_RESULT([no])
> noconfigdirs="$noconfigdir
--
Pedro Alves