--- configure.orig 2020-03-04 19:32:13.000000000 +1100 +++ configure 2020-09-07 16:37:23.807957000 +1000 @@ -2960,7 +2960,7 @@ *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ - | *-*-solaris2* | *-*-nto* | *-*-nacl*) + | *-*-bsdsunix* | *-*-solaris2* | *-*-nto* | *-*-nacl*) case "${target}" in *-*-linux*aout* | *-*-linux*oldld*) ;; @@ -3154,7 +3154,7 @@ case "${target}" in *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) ;; - *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) + *-*-bsdsunix* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) ;; *-*-solaris2* | *-*-hpux11*) ;; @@ -3396,12 +3396,18 @@ *-*-vxworks*) noconfigdirs="$noconfigdirs target-libffi" ;; + aarch64*-*-bsdsunix*) + noconfigdirs="$noconfigdirs target-libffi" + ;; aarch64*-*-freebsd*) noconfigdirs="$noconfigdirs target-libffi" ;; alpha*-*-*vms*) noconfigdirs="$noconfigdirs target-libffi" ;; + arm*-*-bsdsunix*) + noconfigdirs="$noconfigdirs target-libffi" + ;; arm*-*-freebsd*) noconfigdirs="$noconfigdirs target-libffi" ;; @@ -3553,6 +3559,9 @@ *-*-dragonfly*) noconfigdirs="$noconfigdirs target-newlib target-libgloss" ;; + *-*-bsdsunix*) + noconfigdirs="$noconfigdirs target-newlib target-libgloss" + ;; *-*-freebsd*) noconfigdirs="$noconfigdirs target-newlib target-libgloss" ;; @@ -3611,6 +3620,12 @@ ;; *-*-dragonfly*) ;; + *-*-bsdsunix*) + if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ + && test -f /usr/local/include/gmp.h; then + with_gmp=/usr/local + fi + ;; *-*-freebsd*) if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ && test -f /usr/local/include/gmp.h; then