From: Steinar Gunderson Date: Sat, 25 Sep 2010 16:43:31 +0000 (+0200) Subject: Add an autoconf check for the BlackMagic SDK. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=07201c94570ea252ba07d50be8cc49f0946e799c;p=vlc Add an autoconf check for the BlackMagic SDK. --- diff --git a/configure.ac b/configure.ac index 0d38fa9f68..28f9d0d924 100644 --- a/configure.ac +++ b/configure.ac @@ -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 @@ -4452,8 +4475,6 @@ fi AC_LANG_POP(C++) AM_CONDITIONAL(BUILD_MOZILLA,${mozilla}) -VLC_ADD_PLUGIN([sdi]) - dnl dnl Plugin and builtin checks dnl