diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2014-10-30 17:09:41 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-11-05 17:04:10 -0500 |
commit | 44e7ea310559b9dbea0bae27fce60e602913f316 (patch) | |
tree | dee59900fde1eb5c7bede5f08c5f52116565d28e /configure.ac | |
parent | 3528654e7d2082d5bdda1e6f47357105f91af68c (diff) |
Add ability to build static GST plugins
Note that this only works for 1.0 plugin.
https://bugs.freedesktop.org/show_bug.cgi?id=85929
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d915b27..4c942fd 100644 --- a/configure.ac +++ b/configure.ac @@ -301,6 +301,24 @@ AS_IF([test "${enable_coverage}" != "no"], [ ]) AC_SUBST(CCACHE_DISABLE) +dnl build static plugins or not +AC_MSG_CHECKING([whether to build static plugins or not]) +AC_ARG_ENABLE( + static-plugins, + AC_HELP_STRING( + [--enable-static-plugins], + [build static plugins @<:@default=no@:>@]), + [AS_CASE( + [$enableval], [no], [], [yes], [], + [AC_MSG_ERROR([bad value "$enableval" for --enable-static-plugins])])], + [enable_static_plugins=no]) +AC_MSG_RESULT([$enable_static_plugins]) +if test "x$enable_static_plugins" = xyes; then + AC_DEFINE(GST_PLUGIN_BUILD_STATIC, 1, + [Define if static plugins should be built]) +fi +AM_CONDITIONAL(GST_PLUGIN_BUILD_STATIC, test "x$enable_static_plugins" = "xyes") + case $host_os in solaris*) LDFLAGS="$LDFLAGS -lsocket -lnls" |