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: basepoints/gcc-12~4582 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0d0a722da8583f74a0c192041be2f379cf487c1;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. --- diff --git a/configure b/configure index 057b88966e42..a2ea1a329b69 100755 --- a/configure +++ b/configure @@ -3764,6 +3764,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 392389fb2fb8..44fa75f3a329 100644 --- a/configure.ac +++ b/configure.ac @@ -1038,6 +1038,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