mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 12:41:50 +01:00
configure: fix win32 build
Only require -lresolv on unix, like before https://bugzilla.gnome.org/show_bug.cgi?id=645336
This commit is contained in:
parent
2d7051e3a3
commit
e943366de5
@ -1072,6 +1072,7 @@ AC_CHECK_FUNCS(getprotobyname_r endservent)
|
|||||||
AC_CHECK_HEADERS([netdb.h wspiapi.h arpa/nameser_compat.h])
|
AC_CHECK_HEADERS([netdb.h wspiapi.h arpa/nameser_compat.h])
|
||||||
|
|
||||||
# For gio/libasyncns
|
# For gio/libasyncns
|
||||||
|
if test $glib_native_win32 = no; then
|
||||||
AC_CHECK_FUNCS(strndup setresuid setreuid)
|
AC_CHECK_FUNCS(strndup setresuid setreuid)
|
||||||
AC_CHECK_HEADERS(sys/prctl.h)
|
AC_CHECK_HEADERS(sys/prctl.h)
|
||||||
|
|
||||||
@ -1105,6 +1106,7 @@ AC_TRY_LINK([#include <sys/types.h>
|
|||||||
AC_CHECK_FUNC(socket, :, AC_CHECK_LIB(socket, socket,
|
AC_CHECK_FUNC(socket, :, AC_CHECK_LIB(socket, socket,
|
||||||
[NETWORK_LIBS="-lsocket $NETWORK_LIBS"],
|
[NETWORK_LIBS="-lsocket $NETWORK_LIBS"],
|
||||||
[AC_MSG_ERROR(Could not find socket())]))
|
[AC_MSG_ERROR(Could not find socket())]))
|
||||||
|
fi
|
||||||
AC_SUBST(NETWORK_LIBS)
|
AC_SUBST(NETWORK_LIBS)
|
||||||
|
|
||||||
case $host in
|
case $host in
|
||||||
|
Loading…
Reference in New Issue
Block a user