AC_CHECK_HEADERS([sys/socket.h], HAVE_SYS_SOCKET_H=yes)
AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
+if test "x$HAVE_WINSOCK2_H" = "xyes"; then
+ WIN32_LIBS="-lws2_32"
+ AC_SUBST(WIN32_LIBS)
+fi
+
dnl needed for festival
AM_CONDITIONAL(HAVE_WINSOCK2_H, test "x$HAVE_WINSOCK2_H" = "xyes")
-plugin_LTLIBRARIES = libgstacmencsink.la\r
-\r
-libgstacmencsink_la_SOURCES = acmenc.c\r
-libgstacmencsink_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) \\r
- $(GST_PLUGINS_BASE_CFLAGS) $(ACMENC_CFLAGS)\r
-libgstacmencsink_la_LIBADD = $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) \\r
- -lgstriff-$(GST_MAJORMINOR) -lmsacm32\r
-libgstacmencsink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)\r
-libgstacmencsink_la_LIBTOOLFLAGS = --tag=disable-static\r
-\r
+plugin_LTLIBRARIES = libgstacmenc.la
+
+libgstacmenc_la_SOURCES = acmenc.c
+libgstacmenc_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) \
+ $(GST_PLUGINS_BASE_CFLAGS) $(ACMENC_CFLAGS)
+libgstacmenc_la_LIBADD = \
+ $(GST_BASE_LIBS) \
+ $(GST_PLUGINS_BASE_LIBS) \
+ -lgstriff-$(GST_MAJORMINOR) \
+ -lgstaudio-$(GST_MAJORMINOR) \
+ -lgsttag-$(GST_MAJORMINOR) \
+ -lmsacm32
+
+libgstacmenc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+libgstacmenc_la_LIBTOOLFLAGS = --tag=disable-static
+
-plugin_LTLIBRARIES = libgstacmmp3dec.la\r
-\r
-libgstacmmp3dec_la_SOURCES = acmmp3dec.c\r
-libgstacmmp3dec_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) \\r
- $(GST_PLUGINS_BASE_CFLAGS) $(ACMMP3DEC_CFLAGS)\r
-libgstacmmp3dec_la_LIBADD = $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) \\r
- -lgstriff-$(GST_MAJORMINOR) -lmsacm32\r
-libgstacmmp3dec_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(DIRECTSOUND_LDFLAGS)\r
-\r
+plugin_LTLIBRARIES = libgstacmmp3dec.la
+
+libgstacmmp3dec_la_SOURCES = acmmp3dec.c
+libgstacmmp3dec_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) \
+ $(GST_PLUGINS_BASE_CFLAGS) $(ACMMP3DEC_CFLAGS)
+libgstacmmp3dec_la_LIBADD = \
+ $(GST_BASE_LIBS) \
+ $(GST_PLUGINS_BASE_LIBS) \
+ -lgstriff-$(GST_MAJORMINOR) \
+ -lgstaudio-$(GST_MAJORMINOR) \
+ -lgsttag-$(GST_MAJORMINOR) \
+ -lmsacm32
+libgstacmmp3dec_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(DIRECTSOUND_LDFLAGS)
+