]> git.sesse.net Git - vlc/blobdiff - configure.ac
Make AddRef() and Release() atomic.
[vlc] / configure.ac
index 28948801d65bbe9220a97334569edd54041f5ebc..f0db14862ad87f9ade7c568d498bc95aa2ed6af9 100644 (file)
@@ -2133,6 +2133,29 @@ then
   fi
 fi
 
+dnl
+dnl special access module for Blackmagic SDI cards
+dnl
+AC_ARG_ENABLE(sdi,
+  [  --enable-sdi            Blackmagic SDI access module (default disabled)])
+if test "${enable_sdi}" = "yes"
+then
+  AC_ARG_WITH(sdi_sdk,
+    [  --with-sdi-sdk=DIR      Location of Blackmagic SDI SDK],[],[])
+  if test "${with_sdi_sdk}" != "no" -a -n "${with_sdi_sdk}"
+  then
+    VLC_ADD_CPPFLAGS([sdi],[-I${with_sdi_sdk}/include])
+  fi
+  CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_sdi}"
+  AC_LANG_PUSH(C++)
+  AC_CHECK_HEADERS(DeckLinkAPIDispatch.cpp, [
+    VLC_ADD_PLUGIN([sdi])
+  ],[AC_MSG_WARN(Blackmagic SDI include files not found, sdi disabled)])
+  AC_LANG_POP(C++)
+  CPPFLAGS="${CPPFLAGS_save}"
+fi
+
+
 dnl
 dnl  gnomeVFS access module
 dnl