diff options
author | Jakub KulĂk <Kulikjak@gmail.com> | 2024-10-30 12:19:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 12:19:44 (GMT) |
commit | 1064141967a2d22c2ae9e22ae77e8c9616559947 (patch) | |
tree | 5249a8f08af471e3cdf072190c5a0903c455ea7b /configure.ac | |
parent | dcad8fecbd5c8f1542f7a46e0c7bb7e1f27ab115 (diff) | |
download | cpython-1064141967a2d22c2ae9e22ae77e8c9616559947.zip cpython-1064141967a2d22c2ae9e22ae77e8c9616559947.tar.gz cpython-1064141967a2d22c2ae9e22ae77e8c9616559947.tar.bz2 |
gh-91962: Fix `hstrerror` detection issues on Solaris (GH-91963)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 86e7075..caf0244 100644 --- a/configure.ac +++ b/configure.ac @@ -5311,10 +5311,13 @@ AS_VAR_IF([ac_cv_broken_unsetenv], [yes], [ dnl check for true AC_CHECK_PROGS([TRUE], [true], [/bin/true]) -dnl On some systems (e.g. Solaris 9), hstrerror and inet_aton are in -lresolv +dnl On some systems (e.g. Solaris), hstrerror and inet_aton are in -lresolv dnl On others, they are in the C library, so we to take no action AC_CHECK_LIB([c], [inet_aton], [$ac_cv_prog_TRUE], - AC_CHECK_LIB([resolv], [inet_aton]) + AC_CHECK_LIB([resolv], [inet_aton], [SOCKET_LIBS="-lresolv"]) +) +AC_CHECK_LIB([c], [hstrerror], [$ac_cv_prog_TRUE], + AC_CHECK_LIB([resolv], [hstrerror], [SOCKET_LIBS="-lresolv"]) ) # On Tru64, chflags seems to be present, but calling it will @@ -7789,7 +7792,7 @@ PY_STDLIB_MOD([mmap], PY_STDLIB_MOD([_socket], [], m4_flatten([test "$ac_cv_header_sys_socket_h" = "yes" -a "$ac_cv_header_sys_types_h" = "yes" - -a "$ac_cv_header_netinet_in_h" = "yes"])) + -a "$ac_cv_header_netinet_in_h" = "yes"]), [], [$SOCKET_LIBS]) dnl platform specific extensions PY_STDLIB_MOD([grp], [], |