--- configure.orig 2018-04-29 22:47:33 UTC +++ configure @@ -3007,13 +3007,6 @@ $as_echo "#define _NETBSD_SOURCE 1" >>co # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables -# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable -# them. - -$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h - - -# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. $as_echo "#define _BSD_TYPES 1" >>confdefs.h @@ -3394,9 +3387,11 @@ $as_echo "#define _BSD_SOURCE 1" >>confd # but used in struct sockaddr.sa_family. Reported by Tim Rice. SCO_SV/3.2) define_xopen_source=no;; - # On FreeBSD 4, the math functions C89 does not cover are never defined - # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. - FreeBSD/4.*) + # On BSDSUniX, defining _XOPEN_SOURCE to 600 requests a strict environment. + BSDSUniX/*) + define_xopen_source=no;; + # On FreeBSD, defining _XOPEN_SOURCE to 600 requests a strict environment. + FreeBSD/*) define_xopen_source=no;; # On MacOS X 10.2, a bug in ncurses.h means that it craps out if # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which @@ -5481,12 +5476,12 @@ $as_echo "#define Py_ENABLE_SHARED 1" >> RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} INSTSONAME="$LDLIBRARY".$SOVERSION ;; - Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) + Linux*|GNU*|NetBSD*|BSDSUniX*|FreeBSD*|DragonFly*|OpenBSD*) LDLIBRARY='libpython$(VERSION).so' BLDLIBRARY='-L. -lpython$(VERSION)' RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} case $ac_sys_system in - FreeBSD*) + BSDSUniX*|FreeBSD*) SOVERSION=`echo $SOVERSION|cut -d "." -f 1` ;; esac @@ -8659,7 +8654,7 @@ then BSD/OS*/4*) LDSHARED="gcc -shared" LDCXXSHARED="g++ -shared";; - FreeBSD*) + BSDSUniX*|FreeBSD*) if [ "`$CC -dM -E -