From: Tobias Burnus Date: Tue, 6 Oct 2020 09:49:34 +0000 (+0200) Subject: configure: Fix in-tree building of GMP on BSD [PR97302] X-Git-Tag: releases/gcc-10.3.0~806 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cacf5a576675109f3b081cbd436d1fbadad776d;p=thirdparty%2Fgcc.git configure: Fix in-tree building of GMP on BSD [PR97302] ChangeLog: PR target/97302 * configure.ac: Only set with_gmp to /usr/local if not building in tree. * configure: Regenerate. (cherry picked from commit c0d0a722da8583f74a0c192041be2f379cf487c1) --- diff --git a/configure b/configure index 4cc938ebb7d8..f2ec106a86e5 100755 --- a/configure +++ b/configure @@ -3762,6 +3762,7 @@ case "${target}" in ;; *-*-freebsd*) if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ + && ! test -d ${srcdir}/gmp \ && test -f /usr/local/include/gmp.h; then with_gmp=/usr/local fi diff --git a/configure.ac b/configure.ac index c78d9cbea62d..115db3f402a8 100644 --- a/configure.ac +++ b/configure.ac @@ -1037,6 +1037,7 @@ case "${target}" in ;; *-*-freebsd*) if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ + && ! test -d ${srcdir}/gmp \ && test -f /usr/local/include/gmp.h; then with_gmp=/usr/local fi