Index: python3.8.git/configure.ac =================================================================== --- python3.8.git.orig/configure.ac +++ python3.8.git/configure.ac @@ -473,13 +473,6 @@ case $ac_sys_system/$ac_sys_release in # Marc Recht NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6@<:@A-S@:>@) define_xopen_source=no;; - # From the perspective of Solaris, _XOPEN_SOURCE is not so much a - # request to enable features supported by the standard as a request - # to disable features not supported by the standard. The best way - # for Python to use Solaris is simply to leave _XOPEN_SOURCE out - # entirely and define __EXTENSIONS__ instead. - SunOS/*) - define_xopen_source=no;; # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. # Reconfirmed for 7.1.4 by Martin v. Loewis. @@ -533,8 +526,6 @@ then # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else # several APIs are not declared. Since this is also needed in some # cases for HP-UX, we define it globally. - AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, - Define to activate Unix95-and-earlier features) AC_DEFINE(_POSIX_C_SOURCE, 200809L, Define to activate features from IEEE Stds 1003.1-2008) fi @@ -844,6 +835,14 @@ cat >> conftest.c <&1 | grep export-dynamic >/dev/null - then - LINKFORSHARED="-Xlinker --export-dynamic" - fi;; - esac;; CYGWIN*) if test $enable_shared = "no" then @@ -2770,9 +2752,9 @@ AC_MSG_RESULT($SHLIBS) # checks for libraries -AC_CHECK_LIB(sendfile, sendfile) -AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV -AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX +AC_SEARCH_LIBS(sendfile, sendfile) +AC_SEARCH_LIBS(dl, dlopen) +AC_SEARCH_LIBS(shl_load, dld) # Dynamic linking for HP-UX # checks for uuid.h location AC_CHECK_HEADERS([uuid/uuid.h uuid.h]) @@ -4657,7 +4639,7 @@ fi AC_SUBST(EXT_SUFFIX) case $ac_sys_system in - Linux*|GNU*|Darwin|VxWorks) + Linux*|GNU*|Darwin|VxWorks|SunOS*) EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; *) EXT_SUFFIX=${SHLIB_SUFFIX};;