2007-08-30 Stefan Kost <ensonic@users.sf.net>
+ * configure.ac:
+ * gst/Makefile.am:
+ The tcp and subparse plugins are under gst, but not totaly free of
+ dependencies. Handle selection inconfigure.ac, so that they show up
+ on the final list of what is build and what is not. Maybe they should
+ better be moved to ext.
+
+2007-08-30 Stefan Kost <ensonic@users.sf.net>
+
Patch by: Daniel Díaz <yosoy@danieldiaz.org>
* configure.ac:
]), HAVE_LIBXML_HTML=yes, HAVE_LIBXML_HTML=no)
AM_CONDITIONAL(HAVE_LIBXML_HTML, test "x$HAVE_LIBXML_HTML" = "xyes")
CPPFLAGS="$ac_cppflags_save"
+
+ if test "x$HAVE_LIBXML_HTML" = "xyes"; then
+ GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED subparse"
+ else
+ GST_PLUGINS_NO="\t[subparse]\n$GST_PLUGINS_NO"
+ fi
+else
+ GST_PLUGINS_NO="\t[subparse]\n$GST_PLUGINS_NO"
fi
dnl used in gst/tcp
AC_CHECK_HEADERS([sys/socket.h],
HAVE_SYS_SOCKET_H="yes", HAVE_SYS_SOCKET_H="no")
AM_CONDITIONAL(HAVE_SYS_SOCKET_H, test "x$HAVE_SYS_SOCKET_H" = "xyes")
+if test "x$HAVE_SYS_SOCKET_H" = "xyes"; then
+ GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED tcp"
+else
+ GST_PLUGINS_NO="\t[tcp]\n$GST_PLUGINS_NO"
+fi
dnl used in gst-libs/gst/rtsp
AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
-if HAVE_REGEX_H
-if HAVE_LIBXML_HTML
-SUBPARSE = subparse
-else
-SUBPARSE =
-endif
-else
-SUBPARSE =
-endif
-
-if HAVE_SYS_SOCKET_H
-TCP = tcp
-else
-TCP =
-endif
-
-SUBDIRS = $(GST_PLUGINS_SELECTED) $(SUBPARSE) $(TCP)
+SUBDIRS = $(GST_PLUGINS_SELECTED)
DIST_SUBDIRS = $(GST_PLUGINS_ALL) subparse tcp