--- configure.orig 2016-10-24 12:26:59 UTC +++ configure @@ -2951,7 +2951,7 @@ case "${ENABLE_GOLD}" in case "${target}" in *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ - | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ + | *-*-netbsd* | *-*-openbsd* | *-*-bsdsunix* | *-*-freebsd* | *-*-dragonfly* \ | *-*-solaris2* | *-*-nto* | *-*-nacl*) case "${target}" in *-*-linux*aout* | *-*-linux*oldld*) @@ -3130,7 +3130,7 @@ if test x$enable_libmudflap = x ; then *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu) # Enable libmudflap by default in GNU and friends. ;; - *-*-freebsd*) + *-*-freebsd* | *-*-bsdsunix*) # Enable libmudflap by default in FreeBSD. ;; *) @@ -3146,7 +3146,7 @@ if test x$enable_libgomp = x ; then case "${target}" in *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) ;; - *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) + *-*-netbsd* | *-*-freebsd* | *-*-bsdsunix* | *-*-openbsd* | *-*-dragonfly*) ;; *-*-solaris2* | *-*-hpux11*) ;; @@ -3302,6 +3302,10 @@ case "${target}" in ;; powerpc-*-aix* | rs6000-*-aix*) ;; + powerpc-*-bsdsunix*) + ;; + powerpc64-*-bsdsunix*) + ;; powerpc-*-freebsd*) ;; powerpc64-*-freebsd*) @@ -3352,6 +3356,9 @@ case "${target}" in alpha*-*-*vms*) noconfigdirs="$noconfigdirs ${libgcj}" ;; + arm*-*-bsdsunix*) + noconfigdirs="$noconfigdirs ${libgcj}" + ;; arm*-*-freebsd*) noconfigdirs="$noconfigdirs ${libgcj}" ;; @@ -3510,6 +3517,9 @@ case "${target}" in *-*-dragonfly*) noconfigdirs="$noconfigdirs target-newlib target-libgloss" ;; + *-*-bsdsunix*) + noconfigdirs="$noconfigdirs target-newlib target-libgloss" + ;; *-*-freebsd*) noconfigdirs="$noconfigdirs target-newlib target-libgloss" ;; @@ -3560,6 +3570,12 @@ case "${target}" in ;; *-*-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