diff --git a/configure b/configure index 057b88966e4..a2ea1a329b6 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 392389fb2fb..44fa75f3a32 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