summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2014-10-30 21:09:41 (GMT)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2014-10-30 21:09:41 (GMT)
commite8ee43bd369ea451604f7b8be89918d489a0185b (patch)
treed129595ae4641b6204c2402c9abf02cec89eac95
parent1a339513b0c3d685def4a5814f25f855d95c2762 (diff)
downloadlibnice-static.tar.gz
libnice-static.tar.xz
Add ability to build static GST pluginsstatic
Note that this only works for 1.0 plugin.
-rw-r--r--configure.ac18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5021a1f..744d407 100644
--- a/configure.ac
+++ b/configure.ac
@@ -286,6 +286,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"