Differences From Artifact [a4388d2557]:
- File configure.ac — part of check-in [cddfc2ed56] at 2018-08-27 22:48:50 on branch trunk — Improve objfw-config flags (user: js, size: 46878) [annotate] [blame] [check-ins using]
To Artifact [0dca5ff784]:
- File
configure.ac
— part of check-in
[fd6a6cbafd]
at
2018-09-05 20:27:55
on branch trunk
— configure: Only use -lnetwork on Haiku
libnetwork also exists on Darwin, but is for different things.
While at it, only add the Windows-specific libraries on Windows. (user: js, size: 46838) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1193 1194 1195 1196 1197 1198 1199 | AC_ARG_ENABLE(sockets, AS_HELP_STRING([--disable-sockets], [disable socket support])) AS_IF([test x"$enable_sockets" != x"no"], [ AC_DEFINE(OF_HAVE_SOCKETS, 1, [Whether we have sockets]) AC_SUBST(USE_SRCS_SOCKETS, '${SRCS_SOCKETS}') AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") | | > > | > > | > > | 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 | AC_ARG_ENABLE(sockets, AS_HELP_STRING([--disable-sockets], [disable socket support])) AS_IF([test x"$enable_sockets" != x"no"], [ AC_DEFINE(OF_HAVE_SOCKETS, 1, [Whether we have sockets]) AC_SUBST(USE_SRCS_SOCKETS, '${SRCS_SOCKETS}') AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") case "$host_os" in mingw*) LIBS="$LIBS -lws2_32 -liphlpapi" ;; haiku*) LIBS="$LIBS -lnetwork" ;; esac AC_CHECK_HEADER(sys/socket.h, [ AC_DEFINE(OF_HAVE_SYS_SOCKET_H, 1, [Whether we have sys/socket.h]) ]) AC_CHECK_HEADER(netinet/in.h, [ AC_DEFINE(OF_HAVE_NETINET_IN_H, 1, |
︙ | ︙ |