mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
curl: Give netinet/ip.h it own configure check
On FreeBSD netinet/ip.h needs the sys/types.h and netinet/in.h header before it can be tested. https://bugzilla.gnome.org/show_bug.cgi?id=753944
This commit is contained in:
parent
4a9703b434
commit
98457cb6ea
1 changed files with 9 additions and 1 deletions
10
configure.ac
10
configure.ac
|
@ -1824,9 +1824,17 @@ translit(dnm, m, l) AM_CONDITIONAL(USE_CURL, true)
|
|||
AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [
|
||||
PKG_CHECK_MODULES(CURL, libcurl >= 7.35.0, [
|
||||
HAVE_CURL="yes"
|
||||
AC_CHECK_HEADERS([unistd.h sys/socket.h sys/types.h netinet/in.h netinet/ip.h netinet/tcp.h fcntl.h], [ ], [
|
||||
AC_CHECK_HEADERS([unistd.h sys/socket.h sys/types.h netinet/in.h netinet/tcp.h fcntl.h], [ ], [
|
||||
AC_CHECK_HEADERS([unistd.h sys/types.h winsock2.h ws2tcpip.h fcntl.h], [ ], [HAVE_CURL="no"])
|
||||
])
|
||||
AC_CHECK_HEADERS([netinet/ip.h], [], [HAVE_CURL="no"],
|
||||
[[#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
# include <netinet/in.h>
|
||||
#endif
|
||||
]])
|
||||
AC_MSG_CHECKING([for socket support needed by curlsink])
|
||||
AC_MSG_RESULT($HAVE_CURL)
|
||||
], [
|
||||
|
|
Loading…
Reference in a new issue