--- configure.orig 2016-10-02 18:19:29.235779000 +0200 +++ configure 2016-10-02 18:20:57.585596000 +0200 @@ -8054,7 +8054,7 @@ esac case "$target_os" in #( - freebsd*) : + bsdsunix*|freebsd*) : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread should be enabled by default" >&5 $as_echo_n "checking whether pthread should be enabled by default... " >&6; } @@ -8065,7 +8065,7 @@ /* end confdefs.h. */ #include -#if __FreeBSD_version < 502102 +#if __FreeBSD_version < 502102 && !defined(__BSDSUniX__) #error pthread should be disabled on this platform #endif @@ -8366,7 +8366,7 @@ $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h ac_cv_sizeof_rlim_t=8 ;; #( - freebsd*) : + bsdsunix*|freebsd*) : LIBS="-lm $LIBS" ac_cv_func_getpeername=no ac_cv_func_getsockname=no @@ -15542,7 +15542,7 @@ esac case "$target_os" in #( - freebsd*) : + bsdsunix*|freebsd*) : $as_echo "#define BROKEN_CLOSE 1" >>confdefs.h @@ -17627,7 +17627,7 @@ XLDFLAGS="$XLDFLAGS -Wl,-E" LIBPATHFLAG=" -L%1\$-s" rb_cv_dlopen=yes ;; #( - freebsd*|dragonfly*) : + bsdsunix*|freebsd*|dragonfly*) : : ${LDSHARED='$(CC) -shared'} if test "$rb_cv_binary_elf" = yes; then @@ -17789,7 +17789,7 @@ case "$target_cpu-$target_os" in #( - *-freebsd*|x86_64-netbsd*) : + *-bsdsunix*|*-freebsd*|x86_64-netbsd*) : for ac_header in execinfo.h do : @@ -18364,7 +18364,7 @@ case "$target_os" in #( - freebsd*|dragonfly*) : + bsdsunix*|freebsd*|dragonfly*) : ;; #( *) : @@ -18445,7 +18445,7 @@ LIBRUBY_RELATIVE=yes fi ;; #( - freebsd*|dragonfly*) : + bsdsunix*|freebsd*|dragonfly*) : SOLIBS='$(LIBS)' LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)' @@ -18804,7 +18804,7 @@ LIBRUBY_A_OBJS='$(DTRACE_GLOMMED_OBJ)' fi case "${target_os}" in #( - freebsd*) : + bsdsunix*|freebsd*) : # FreeBSD's dtrace requires libelf LIBS="-lelf $LIBS"