diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 4d1454bf..6e20b958 100644 --- a/configure.ac +++ b/configure.ac @@ -125,13 +125,16 @@ dnl disable gst plugins we might not be able to build on this dnl platform: udp and rtsp (ugly but minimally invasive) dnl FIXME: maybe move to sys AC_CHECK_HEADERS([sys/socket.h], HAVE_SYS_SOCKET_H=yes) -AM_CONDITIONAL(HAVE_SYS_SOCKET_H, test "x$HAVE_SYS_SOCKET_H" = "xyes") +AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes) -if test "x$HAVE_SYS_SOCKET_H" != "xyes"; then +if test "x$HAVE_SYS_SOCKET_H" != "xyes" -a "x$HAVE_WINSOCK2_H" != "xyes"; then GST_PLUGINS_SELECTED=`echo $GST_PLUGINS_SELECTED | $SED -e s/udp//` GST_PLUGINS_SELECTED=`echo $GST_PLUGINS_SELECTED | $SED -e s/rtsp//` - GST_PLUGINS_NO="\tudp\n$GST_PLUGINS_NO" - GST_PLUGINS_NO="\trtsp\n$GST_PLUGINS_NO" +fi + +if test "x$HAVE_WINSOCK2_H" = "xyes"; then + WIN32_LIBS="-lws2_32" + AC_SUBST(WIN32_LIBS) fi dnl disable monoscope plugin |
