Commit a762948c authored by Rafaël Carré's avatar Rafaël Carré

decklink: fix detection

parent b67f9a62
......@@ -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++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment