diff options
author | Stephan Vedder <stephan.vedder@gmail.com> | 2015-05-18 22:21:05 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2015-07-10 10:42:40 +0200 |
commit | 139ffe10497b3b4dde972e74b57c072965e53aa7 (patch) | |
tree | 140d94abda7793a503001f2e2a7b2e07641e993e | |
parent | f72f47fd5e2ab3832bdc3024b3a8f85d570492f6 (diff) | |
download | libass-139ffe10497b3b4dde972e74b57c072965e53aa7.tar.bz2 libass-139ffe10497b3b4dde972e74b57c072965e53aa7.tar.xz |
Added directwrite check
-rw-r--r-- | configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b5c9f4e..9f8e7b2 100644 --- a/configure.ac +++ b/configure.ac @@ -174,6 +174,26 @@ AC_LINK_IFELSE([ ]) fi +if test x$enable_directwrite != xno; then +OLDLIBS="$LIBS" +# Linking to DirectWrite directly only works from Windows +LIBS="$LIBS -ldwrite" +AC_MSG_CHECKING([for DIRECTWRITE]) +AC_LINK_IFELSE([ + AC_LANG_PROGRAM( + [[#include <dwrite.h>]], + [[DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, __uuidof(IDWriteFactory), NULL);]],) + ], [ + AC_DEFINE(CONFIG_DIRECTWRITE, 1, [found DirectWrite]) + directwrite=true + AC_MSG_RESULT([yes]) + ], [ + LIBS="$OLDLIBS" + directwrite=false + AC_MSG_RESULT([no]) + ]) +fi + if test x$enable_harfbuzz != xno; then PKG_CHECK_MODULES([HARFBUZZ], harfbuzz >= 0.9.5, [ CFLAGS="$CFLAGS $HARFBUZZ_CFLAGS" |