Skip to content

Commit

Permalink
Fix building _socket module
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen521kk authored and lazka committed Jul 19, 2023
1 parent 7d0c96a commit 780e392
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4005,6 +4005,12 @@ AS_CASE([$ac_sys_system],
[OSSAUDIODEV_LIBS=""]
)

dnl On MINGW, you need to link against ws2_32 and iphlpapi for sockets to work
AS_CASE([$ac_sys_system],
[MINGW], [SOCKET_LIBS="-lws2_32 -liphlpapi"],
[SOCKET_LIBS=""]
)

dnl detect sqlite3 from Emscripten emport
PY_CHECK_EMSCRIPTEN_PORT([LIBSQLITE3], [-sUSE_SQLITE3])

Expand Down Expand Up @@ -7454,7 +7460,9 @@ 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"
-o "$MACHDEP" = "win32"]),
[], [$SOCKET_LIBS])

dnl platform specific extensions
PY_STDLIB_MOD([grp], [], [test "$ac_cv_func_getgrgid" = yes -o "$ac_cv_func_getgrgid_r" = yes])
Expand Down

0 comments on commit 780e392

Please sign in to comment.