2005-10-15 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:
+ check for some headers
+ * gst/elements/Makefile.am:
+ * gst/elements/gstelements.c:
+ don't compile fdsrc without sys/socket.h
+ * gst/indexers/Makefile.am:
+ * gst/indexers/gstindexers.c: (plugin_init):
+ don't compile fileindex without mmap
+
+2005-10-15 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * configure.ac:
reorganize
clean up
document more
dnl Check for ucontext.h
AC_CHECK_HEADERS([ucontext.h])
+AC_CHECK_HEADERS([sys/socket.h])
+AM_CONDITIONAL(HAVE_SYS_SOCKET_H, test "x$HAVE_SYS_SOCKET_H" = "xyes")
dnl *** checks for library functions ***
dnl check for mmap()
AC_FUNC_MMAP
+AM_CONDITIONAL(HAVE_MMAP, test "x$HAVE_MMAP" = "xyes")
dnl common/m4/gst-mcsc.m4
dnl check for makecontext and define HAVE_MAKECONTEXT if we have it
GST_OBJ_LDFLAGS="$GST_LT_LDFLAGS $GST_ALL_LDFLAGS"
AC_SUBST(GST_OBJ_CFLAGS)
AC_SUBST(GST_OBJ_LIBS)
+AC_SUBST(GST_OBJ_LDFLAGS)
dnl GST_PLUGIN_LDFLAGS
dnl LDFLAGS for plugins; include GST_ALL_LDFLAGS
plugin_LTLIBRARIES = libgstelements.la
+if HAVE_SYS_SOCKET_H
+GSTFDSRC = gstfdsrc.c
+else
+GSTFDSRC =
+endif
+
libgstelements_la_DEPENDENCIES = ../libgstreamer-@GST_MAJORMINOR@.la
libgstelements_la_SOURCES = \
gstbufferstore.c \
gstcapsfilter.c \
gstfakesrc.c \
gstfakesink.c \
- gstfdsrc.c \
+ $(GSTFDRSRC) \
gstfilesink.c \
gstfilesrc.c \
gstidentity.c \
gsttee.h \
gsttypefindelement.h
+EXTRA_DIST = gstfdsrc.c
{"capsfilter", GST_RANK_NONE, gst_capsfilter_get_type},
{"fakesrc", GST_RANK_NONE, gst_fake_src_get_type},
{"fakesink", GST_RANK_NONE, gst_fake_sink_get_type},
-#ifndef HAVE_WIN32
+#ifdef HAVE_SYS_SOCKET_H
{"fdsrc", GST_RANK_NONE, gst_fdsrc_get_type},
#endif
{"filesrc", GST_RANK_NONE, gst_file_src_get_type},
plugin_LTLIBRARIES = libgstindexers.la
-
# file index uses xml
if GST_DISABLE_LOADSAVE
GST_LOADSAVE_SRC =
else
GST_LOADSAVE_SRC = gstfileindex.c
endif
+if HAVE_MMAP
+else
+GST_LOADSAVE_SRC =
+endif
libgstindexers_la_SOURCES = gstindexers.c gstmemindex.c $(GST_LOADSAVE_SRC)
libgstindexers_la_CFLAGS = $(GST_OBJ_CFLAGS)
libgstindexers_la_LIBADD = $(GST_OBJ_LIBS)
gboolean res = TRUE;
res &= gst_mem_index_plugin_init (plugin);
+#ifdef HAVE_MMAP
res &= gst_file_index_plugin_init (plugin);
+#endif
return res;
}
plugin_LTLIBRARIES = libgstelements.la
+if HAVE_SYS_SOCKET_H
+GSTFDSRC = gstfdsrc.c
+else
+GSTFDSRC =
+endif
+
libgstelements_la_DEPENDENCIES = ../libgstreamer-@GST_MAJORMINOR@.la
libgstelements_la_SOURCES = \
gstbufferstore.c \
gstcapsfilter.c \
gstfakesrc.c \
gstfakesink.c \
- gstfdsrc.c \
+ $(GSTFDRSRC) \
gstfilesink.c \
gstfilesrc.c \
gstidentity.c \
gsttee.h \
gsttypefindelement.h
+EXTRA_DIST = gstfdsrc.c
{"capsfilter", GST_RANK_NONE, gst_capsfilter_get_type},
{"fakesrc", GST_RANK_NONE, gst_fake_src_get_type},
{"fakesink", GST_RANK_NONE, gst_fake_sink_get_type},
-#ifndef HAVE_WIN32
+#ifdef HAVE_SYS_SOCKET_H
{"fdsrc", GST_RANK_NONE, gst_fdsrc_get_type},
#endif
{"filesrc", GST_RANK_NONE, gst_file_src_get_type},
plugin_LTLIBRARIES = libgstindexers.la
-
# file index uses xml
if GST_DISABLE_LOADSAVE
GST_LOADSAVE_SRC =
else
GST_LOADSAVE_SRC = gstfileindex.c
endif
+if HAVE_MMAP
+else
+GST_LOADSAVE_SRC =
+endif
libgstindexers_la_SOURCES = gstindexers.c gstmemindex.c $(GST_LOADSAVE_SRC)
libgstindexers_la_CFLAGS = $(GST_OBJ_CFLAGS)
libgstindexers_la_LIBADD = $(GST_OBJ_LIBS)
gboolean res = TRUE;
res &= gst_mem_index_plugin_init (plugin);
+#ifdef HAVE_MMAP
res &= gst_file_index_plugin_init (plugin);
+#endif
return res;
}