2009-09-16 10:04:24 +00:00
|
|
|
AC_INIT(gstreamer-sharp, 0.9.1.1,
|
2009-06-21 08:00:34 +00:00
|
|
|
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer&component=gst-sharp,
|
|
|
|
gstreamer-sharp)
|
2006-05-19 19:24:35 +00:00
|
|
|
AC_CANONICAL_SYSTEM
|
2009-06-21 08:00:34 +00:00
|
|
|
AC_CONFIG_SRCDIR([README])
|
2006-05-19 19:24:35 +00:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
2009-06-21 08:00:34 +00:00
|
|
|
AM_INIT_AUTOMAKE([-Wno-portability])
|
2006-05-19 19:24:35 +00:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2009-04-07 07:45:54 +00:00
|
|
|
AC_PROG_CC
|
2006-05-19 19:24:35 +00:00
|
|
|
AC_PROG_INSTALL
|
2009-04-07 07:45:54 +00:00
|
|
|
AC_HEADER_STDC
|
2006-05-19 19:24:35 +00:00
|
|
|
|
|
|
|
PACKAGE_VERSION=gstreamer-sharp-0.10
|
|
|
|
AC_SUBST(PACKAGE_VERSION)
|
|
|
|
|
2009-09-22 05:40:57 +00:00
|
|
|
API_VERSION=0.9.2.0
|
2009-09-11 08:14:05 +00:00
|
|
|
AC_SUBST(API_VERSION)
|
|
|
|
|
2009-05-28 08:19:19 +00:00
|
|
|
MONO_REQUIRED_VERSION=2.4
|
2006-05-19 19:24:35 +00:00
|
|
|
AC_SUBST(MONO_REQUIRED_VERSION)
|
|
|
|
PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
|
|
|
|
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
if test "x$has_mono" = "xtrue"; then
|
2009-04-07 07:45:54 +00:00
|
|
|
GACUTIL_FLAGS='/package $(PACKAGE_VERSION) /gacdir $(libdir) /root $(DESTDIR)/$(libdir)'
|
|
|
|
GENERATED_SOURCES=generated/*.cs
|
2009-09-04 04:57:03 +00:00
|
|
|
AC_PATH_PROG(MONO, mono, no)
|
2009-07-31 08:01:30 +00:00
|
|
|
AC_PATH_PROG(CSC, gmcs, no)
|
2009-04-07 07:45:54 +00:00
|
|
|
if test `uname -s` = "Darwin"; then
|
|
|
|
LIB_PREFIX=
|
|
|
|
LIB_SUFFIX=.dylib
|
|
|
|
else
|
|
|
|
LIB_PREFIX=.so
|
|
|
|
LIB_SUFFIX=
|
|
|
|
fi
|
2006-05-19 19:24:35 +00:00
|
|
|
else
|
2009-04-07 07:45:54 +00:00
|
|
|
AC_PATH_PROG(CSC, csc.exe, no)
|
|
|
|
GACUTIL_FLAGS=
|
|
|
|
GENERATED_SOURCES=generated\\\\*.cs
|
|
|
|
|
|
|
|
if test x$CSC = "xno"; then
|
|
|
|
AC_MSG_ERROR([You need to install either mono or .Net])
|
|
|
|
else
|
|
|
|
RUNTIME=
|
|
|
|
LIB_PREFIX=
|
|
|
|
LIB_SUFFIX=.dll
|
|
|
|
fi
|
2006-05-19 19:24:35 +00:00
|
|
|
fi
|
2009-05-26 13:35:00 +00:00
|
|
|
AM_CONDITIONAL(USE_MONO_COMPILER, test "x$has_mono" = "xtrue")
|
2009-09-04 04:57:03 +00:00
|
|
|
AC_SUBST(MONO)
|
2009-05-26 13:35:00 +00:00
|
|
|
|
2006-05-19 19:24:35 +00:00
|
|
|
CS="C#"
|
|
|
|
if test "x$CSC" = "xno" ; then
|
|
|
|
AC_MSG_ERROR([No $CS compiler found])
|
|
|
|
fi
|
2009-05-26 13:35:00 +00:00
|
|
|
|
2006-05-19 19:24:35 +00:00
|
|
|
AC_PATH_PROG(GACUTIL, gacutil, no)
|
|
|
|
if test "x$GACUTIL" = "xno" ; then
|
|
|
|
AC_MSG_ERROR([No gacutil tool found])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(RUNTIME)
|
|
|
|
AC_SUBST(CSC)
|
|
|
|
AC_SUBST(GACUTIL)
|
|
|
|
AC_SUBST(GACUTIL_FLAGS)
|
|
|
|
AC_SUBST(LIB_PREFIX)
|
|
|
|
AC_SUBST(LIB_SUFFIX)
|
|
|
|
AC_SUBST(GENERATED_SOURCES)
|
|
|
|
|
|
|
|
MONODOC_REQUIRED_VERSION=1.1
|
|
|
|
AC_SUBST(MONODOC_REQUIRED_VERSION)
|
|
|
|
PKG_CHECK_MODULES(MONODOC_DEPENDENCY, monodoc >= $MONODOC_REQUIRED_VERSION, enable_monodoc=yes, enable_monodoc=no)
|
|
|
|
|
|
|
|
if test "x$enable_monodoc" = "xyes"; then
|
|
|
|
AC_PATH_PROG(MONODOCER, monodocer, no)
|
|
|
|
AC_PATH_PROG(MDASSEMBLER, mdassembler, no)
|
2009-04-07 12:44:30 +00:00
|
|
|
AC_PATH_PROG(MONODOCS2HTML, monodocs2html, no)
|
|
|
|
if test x$MONODOCER = xno -o x$MDASSEMBLER = xno -o x$MONODOCS2HTML = xno; then
|
2009-04-07 07:45:54 +00:00
|
|
|
enable_monodoc=no
|
2006-05-19 19:24:35 +00:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
MONODOCER=
|
|
|
|
MDASSEMBLER=
|
2009-04-07 12:44:30 +00:00
|
|
|
MONODOCS2HTML=
|
2006-05-19 19:24:35 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(MONODOCER)
|
|
|
|
AC_SUBST(MDASSEMBLER)
|
2009-04-07 12:44:30 +00:00
|
|
|
AC_SUBST(MONODOCS2HTML)
|
2006-05-19 19:24:35 +00:00
|
|
|
|
|
|
|
## Versions of dependencies
|
2009-08-05 14:57:20 +00:00
|
|
|
#GLIBSHARP_REQUIRED_VERSION=2.12.9.90
|
|
|
|
#PKG_CHECK_MODULES(GLIBSHARP, glib-sharp-2.0 >= $GLIBSHARP_REQUIRED_VERSION)
|
|
|
|
#AC_SUBST(GLIBSHARP_LIBS)
|
2006-05-19 19:24:35 +00:00
|
|
|
|
2009-09-11 06:38:20 +00:00
|
|
|
GLIB_REQUIRED_VERSION=2.18.1
|
2009-04-07 07:45:54 +00:00
|
|
|
PKG_CHECK_MODULES(GLIB,
|
|
|
|
glib-2.0 >= $GLIB_REQUIRED_VERSION
|
|
|
|
gobject-2.0 >= $GLIB_REQUIRED_VERSION
|
|
|
|
)
|
|
|
|
AC_SUBST(GLIB_LIBS)
|
|
|
|
AC_SUBST(GLIB_CFLAGS)
|
|
|
|
|
2009-09-11 06:30:14 +00:00
|
|
|
GSTREAMER_REQUIRED_VERSION=0.10.24
|
|
|
|
GSTREAMER_PLUGINS_REQUIRED_VERSION=0.10.24
|
2006-05-19 19:24:35 +00:00
|
|
|
AC_SUBST(GSTREAMER_REQUIRED_VERSION)
|
|
|
|
AC_SUBST(GSTREAMER_PLUGINS_REQUIRED_VERSION)
|
|
|
|
PKG_CHECK_MODULES(GST,
|
2009-05-06 11:57:23 +00:00
|
|
|
gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
|
2009-04-07 07:45:54 +00:00
|
|
|
gstreamer-base-0.10 >= $GSTREAMER_REQUIRED_VERSION
|
2009-05-06 11:57:23 +00:00
|
|
|
gstreamer-controller-0.10 >= $GSTREAMER_REQUIRED_VERSION
|
|
|
|
gstreamer-app-0.10 >= $GSTREAMER_REQUIRED_VERSION
|
|
|
|
gstreamer-audio-0.10 >= $GSTREAMER_REQUIRED_VERSION
|
|
|
|
gstreamer-cdda-0.10 >= $GSTREAMER_REQUIRED_VERSION
|
|
|
|
gstreamer-interfaces-0.10 >= $GSTREAMER_REQUIRED_VERSION
|
|
|
|
gstreamer-pbutils-0.10 >= $GSTREAMER_REQUIRED_VERSION
|
|
|
|
gstreamer-tag-0.10 >= $GSTREAMER_REQUIRED_VERSION
|
|
|
|
gstreamer-video-0.10 >= $GSTREAMER_REQUIRED_VERSION
|
2006-05-19 19:24:35 +00:00
|
|
|
)
|
|
|
|
AC_SUBST(GST_LIBS)
|
|
|
|
AC_SUBST(GST_CFLAGS)
|
|
|
|
|
2009-08-14 05:27:42 +00:00
|
|
|
# glib-sharp and gtk-sharp and mono-cairo are currently only needed for the samples
|
|
|
|
PKG_CHECK_MODULES(GLIB_SHARP, glib-sharp-2.0 >= 2.12, have_glibsharp=yes, have_glibsharp=no)
|
|
|
|
PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= 2.12, have_gtksharp=yes, have_gtksharp=no)
|
|
|
|
PKG_CHECK_MODULES(MONO_CAIRO, mono-cairo, have_monocairo=yes, have_monocairo=no)
|
|
|
|
AC_SUBST(GLIB_SHARP_LIBS)
|
|
|
|
AC_SUBST(GTK_SHARP_LIBS)
|
|
|
|
AC_SUBST(MONO_CAIRO_LIBS)
|
2009-08-14 05:21:54 +00:00
|
|
|
AM_CONDITIONAL(HAVE_GLIB_SHARP, test "x$have_glibsharp" = "xyes")
|
|
|
|
AM_CONDITIONAL(HAVE_GTK_SHARP, test "x$have_gtksharp" = "xyes")
|
2009-08-14 05:27:42 +00:00
|
|
|
AM_CONDITIONAL(HAVE_MONO_CAIRO, test "x$have_monocairo" = "xyes")
|
2009-08-14 05:21:54 +00:00
|
|
|
|
2006-05-19 19:24:35 +00:00
|
|
|
AM_CONDITIONAL(ENABLE_MONODOC, test "x$enable_monodoc" = "xyes")
|
|
|
|
|
2009-09-11 08:20:30 +00:00
|
|
|
WIN64DEFINES=
|
|
|
|
case "$host" in
|
|
|
|
x86_64-*-mingw*|x86_64-*-cygwin*)
|
|
|
|
WIN64DEFINES="-define:WIN64LONGS"
|
|
|
|
platform_win32=yes
|
|
|
|
AC_DEFINE(PLATFORM_WIN32,1,[Platform is Win32])
|
|
|
|
if test "x$cross_compiling" = "xno"; then
|
|
|
|
CC="gcc -mno-cygwin -g"
|
|
|
|
HOST_CC="gcc"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*-*-mingw*|*-*-cygwin*)
|
|
|
|
platform_win32=yes
|
|
|
|
AC_DEFINE(PLATFORM_WIN32,1,[Platform is Win32])
|
|
|
|
if test "x$cross_compiling" = "xno"; then
|
|
|
|
CC="gcc -mno-cygwin -g"
|
|
|
|
HOST_CC="gcc"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
platform_win32=no
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(WIN64DEFINES)
|
|
|
|
|
2006-05-19 19:24:35 +00:00
|
|
|
## Check for the gapi programs
|
2009-08-05 14:57:20 +00:00
|
|
|
#PKG_CHECK_MODULES(GAPI, gapi-2.0 >= $GLIBSHARP_REQUIRED_VERSION)
|
2006-05-19 19:24:35 +00:00
|
|
|
|
2009-06-15 05:47:54 +00:00
|
|
|
## NUnit tests
|
|
|
|
AC_PATH_PROG(NUNIT_TESTER, nunit-console, no)
|
|
|
|
if test "x$NUNIT_TESTER" = "xno" ; then
|
|
|
|
AC_MSG_WARN([Could not find nunit-console: unit tests cannot be executed])
|
|
|
|
fi
|
|
|
|
AC_SUBST(NUNIT_TESTER)
|
|
|
|
|
2009-08-14 06:56:58 +00:00
|
|
|
PKG_CHECK_MODULES(MONO_NUNIT, nunit >= 2.4,
|
|
|
|
do_tests="yes",
|
|
|
|
[ PKG_CHECK_MODULES(MONO_NUNIT, mono-nunit >= 2.4,
|
|
|
|
do_tests="yes", do_tests="no")
|
|
|
|
])
|
2006-05-20 22:35:40 +00:00
|
|
|
AC_SUBST(MONO_NUNIT_LIBS)
|
|
|
|
AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes")
|
|
|
|
if test "x$do_tests" = "xno"; then
|
2009-08-14 06:56:58 +00:00
|
|
|
AC_MSG_WARN([Could not find mono-nunit or nunit: tests will not be available])
|
2006-05-20 22:35:40 +00:00
|
|
|
fi
|
|
|
|
|
2009-05-14 19:38:28 +00:00
|
|
|
AC_CHECK_SIZEOF(off_t)
|
|
|
|
OFF_T_FLAGS="-define:OFF_T_$ac_cv_sizeof_off_t"
|
|
|
|
AC_SUBST(OFF_T_FLAGS)
|
|
|
|
|
2006-05-19 19:24:35 +00:00
|
|
|
AC_OUTPUT([
|
|
|
|
source/Makefile
|
2009-04-07 07:45:54 +00:00
|
|
|
parser/Makefile
|
2009-05-26 13:32:27 +00:00
|
|
|
elementgen/Makefile
|
2009-05-14 19:38:28 +00:00
|
|
|
generator/Makefile
|
2006-05-19 19:24:35 +00:00
|
|
|
gstreamer-sharp/Makefile
|
|
|
|
gstreamer-sharp/AssemblyInfo.cs
|
|
|
|
gstreamer-sharp/gstreamer-sharp.dll.config
|
2009-05-26 13:32:27 +00:00
|
|
|
gstreamer-sharp/coreplugins/Makefile
|
|
|
|
gstreamer-sharp/baseplugins/Makefile
|
2006-05-19 19:24:35 +00:00
|
|
|
gstreamer-sharp/glue/Makefile
|
|
|
|
doc/Makefile
|
2006-05-20 22:35:40 +00:00
|
|
|
tests/Makefile
|
2009-04-07 07:45:54 +00:00
|
|
|
samples/Makefile
|
2006-05-19 19:24:35 +00:00
|
|
|
gstreamer-sharp-0.10.pc
|
2009-10-01 07:12:52 +00:00
|
|
|
gstreamer-sharp-0.10-uninstalled.pc
|
2006-05-19 19:24:35 +00:00
|
|
|
Makefile
|
|
|
|
])
|
|
|
|
|
|
|
|
echo "---"
|
|
|
|
echo "Configuration summary"
|
|
|
|
echo ""
|
|
|
|
echo " * Installation prefix = $prefix"
|
|
|
|
echo " * $CS compiler: $CSC"
|
|
|
|
echo " * Documentation: $enable_monodoc ($MONODOC)"
|
|
|
|
echo ""
|
|
|
|
echo "---"
|
|
|
|
|