Install Vala bindings if vala is available
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 8 Jan 2009 13:49:57 +0000 (14:49 +0100)
committerWim Taymans <wim@wtay.(none)>
Thu, 8 Jan 2009 13:49:57 +0000 (14:49 +0100)
bindings/Makefile.am [new file with mode: 0644]
bindings/vala/Makefile.am [new file with mode: 0644]
configure.ac

diff --git a/bindings/Makefile.am b/bindings/Makefile.am
new file mode 100644 (file)
index 0000000..7a9ca5a
--- /dev/null
@@ -0,0 +1,5 @@
+SUBDIRS = 
+
+if WITH_VALA
+    SUBDIRS += vala
+endif
diff --git a/bindings/vala/Makefile.am b/bindings/vala/Makefile.am
new file mode 100644 (file)
index 0000000..cd80cd4
--- /dev/null
@@ -0,0 +1,9 @@
+
+VAPI_FILES = gst-rtsp-server-0.10.deps
+DEPS_FILES = gst-rtsp-server-0.10.vapi
+
+gst-rtsp-server-0.10.deps:
+       cp packages/gst-rtsp-server-0.10.deps $@
+    
+vapidir = $(VAPIDIR)
+vapi_DATA = $(VAPI_FILES) $(DEPS_FILES)
index 1612636..cd78495 100644 (file)
@@ -81,6 +81,24 @@ HAVE_GTK=NO
 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.8.0, HAVE_GTK=yes, HAVE_GTK=no)
 AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
 
+dnl Check for vala
+PKG_CHECK_EXISTS([vala-1.0], [HAVE_VALA="yes"], [HAVE_VALA="no"])
+
+AM_CONDITIONAL(WITH_VALA, [test "x$HAVE_VALA" = "xyes"])
+
+AC_ARG_WITH([vapidir],
+  AS_HELP_STRING([--with-vapidir], [Define where to install the VAPI files]))
+       
+if test "x$HAVE_VALA" = "xyes"; then
+  if test "x$with_vapidir" = "x"; then
+       VAPIDIR="`pkg-config --variable vapidir vala-1.0`" 
+  else
+    VAPIDIR="$with_vapidir"
+  fi
+fi
+AC_SUBST(VAPIDIR)
+       
+
 dnl *** checks for libraries ***
 
 dnl *** checks for header files ***
@@ -219,11 +237,20 @@ gst/Makefile
 gst/rtsp-server/Makefile
 examples/Makefile
 bindings/Makefile
-bindings/python/Makefile
-bindings/python/codegen/Makefile
+bindings/vala/Makefile
 pkgconfig/Makefile
 pkgconfig/gst-rtsp-server.pc
 ])
 AC_OUTPUT
 
-echo "Gst-rtsp-server configured. Type 'make' to build."
+echo "
+
+Configuration
+       Version                    : ${VERSION}
+       Source code location       : ${srcdir}
+       Prefix                     : ${prefix}
+       Compiler                   : ${CC}
+       Vala bindings              : ${HAVE_VALA}
+
+Gst-rtsp-server configured. Type 'make' to build.
+"