Commit 99050a07 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix d2d1.h detection: C++ is required

parent 92695765
...@@ -3334,18 +3334,21 @@ dnl ...@@ -3334,18 +3334,21 @@ dnl
dnl Windows Direct2D plugin dnl Windows Direct2D plugin
dnl dnl
AC_ARG_ENABLE(direct2d, AC_ARG_ENABLE(direct2d,
[ --enable-direct2d Win7/VistaPU Direct2D support (default auto on Win32)]) [ --enable-direct2d Win7/VistaPU Direct2D support (default auto on Win32)],, [
if test "${enable_direct2d}" != "no"; then AS_IF([test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"], [
if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" enable_direct2d="no"
then ])
AC_CHECK_HEADERS(d2d1.h, ])
[ AS_IF([test "${enable_direct2d}" != "no"], [
AC_LANG_PUSH([C++])
AC_CHECK_HEADERS(d2d1.h, [
VLC_ADD_PLUGIN([direct2d]) VLC_ADD_PLUGIN([direct2d])
VLC_ADD_LIBS([direct2d],[-lgdi32 -lole32]) VLC_ADD_LIBS([direct2d],[-lgdi32 -lole32])
], [AC_MSG_WARN([Cannot find Direct2D headers!])] ], [
) AC_MSG_WARN([Cannot find Direct2D headers!])
fi ])
fi AC_LANG_POP([C++])
])
dnl dnl
dnl win32 GDI plugin dnl win32 GDI plugin
......
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