summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2015-06-16 17:43:43 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2015-06-16 17:43:43 -0400
commitf74b2df7a2e18b56c7eef9cae0810c505d2fc9e1 (patch)
tree78d6a60ee76ec283cbaa496e2c738cc4e8047af5
parent6015d26443b063bc71e87e979ece5511f25fd2be (diff)
introspection: Add INTROSPECTION_INIT
This is the appropriate value to use for g-ir-scanner option --add-init-section. This is also a single location in case we get it wrong again.
-rw-r--r--m4/introspection.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/introspection.m4 b/m4/introspection.m4
index 589721c..162be57 100644
--- a/m4/introspection.m4
+++ b/m4/introspection.m4
@@ -62,6 +62,7 @@ m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
+ INTROSPECTION_INIT="extern void gst_init(gint*,gchar**); gst_init(NULL,NULL);"
fi
AC_SUBST(INTROSPECTION_SCANNER)
AC_SUBST(INTROSPECTION_COMPILER)
@@ -71,6 +72,7 @@ m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
AC_SUBST(INTROSPECTION_CFLAGS)
AC_SUBST(INTROSPECTION_LIBS)
AC_SUBST(INTROSPECTION_MAKEFILE)
+ AC_SUBST(INTROSPECTION_INIT)
AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
])