[vlc-commits] decklink: fix detection

Rafaël Carré git at videolan.org
Sat Dec 8 03:25:11 CET 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Dec  8 03:24:49 2012 +0100| [a762948c0907461b380c2ddbad847069c62a899d] | committer: Rafaël Carré

decklink: fix detection

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a762948c0907461b380c2ddbad847069c62a899d
---

 configure.ac |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 512ee5a..c0fe42a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1745,6 +1745,7 @@ AC_ARG_ENABLE(decklink,
 AC_ARG_WITH(decklink_sdk,
   [AS_HELP_STRING[--with-decklink-sdk=DIR],
     [                        location of Blackmagic DeckLink SDI SDK])])
+have_decklink=no
 if test "${enable_decklink}" != "no"
 then
   if test "${with_decklink_sdk}" != "no" -a -n "${with_decklink_sdk}"
@@ -1754,8 +1755,9 @@ then
   VLC_SAVE_FLAGS
   CXXFLAGS="${CXXFLAGS} ${CXXFLAGS_decklink}"
   AC_LANG_PUSH(C++)
-  AC_CHECK_HEADERS(DeckLinkAPIDispatch.cpp, [], [
-      have_decklink=no
+  AC_CHECK_HEADERS(DeckLinkAPIDispatch.cpp, [
+      have_decklink=yes
+  ], [
       AC_MSG_WARN(Blackmagic DeckLink SDI include files not found, decklink disabled)
   ])
   AC_LANG_POP(C++)



More information about the vlc-commits mailing list