diff --git a/config.h.in b/config.h.in index f465cc08e7a6758e51a627eaf63bbb7223bbf949..0973c936bb2fb6efc208e1a574aeb455cd2acc46 100644 --- a/config.h.in +++ b/config.h.in @@ -114,12 +114,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H -/* Define to 1 if you have the header file. */ -#undef HAVE_USP10_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_WINDOWS_H - /* Define to 1 if you have the `_setmode' function. */ #undef HAVE__SETMODE diff --git a/configure.ac b/configure.ac index 49accd7fff8ff04c0b1d4bdae10a21514ddb5e55..963af2e91cf27f2b2af727ab9884e7ad5b6d691e 100644 --- a/configure.ac +++ b/configure.ac @@ -208,7 +208,19 @@ AM_CONDITIONAL(HAVE_FREETYPE, $have_freetype) dnl =========================================================================== -AC_CHECK_HEADERS(usp10.h windows.h, have_uniscribe=true, have_uniscribe=false) +AC_MSG_CHECKING([for ScriptShapeOpenType in usp10]) +saved_LIBS=$LIBS +LIBS="$LIBS -lusp10 -lgdi32" +AC_LINK_IFELSE([AC_LANG_PROGRAM( + [[ + #define _WIN32_WINNT 0x0600 + #include + #include + ]], + ScriptShapeOpenType)], + [have_uniscribe=true; AC_MSG_RESULT(yes)], + [have_uniscribe=false;AC_MSG_RESULT(no)]) +LIBS=$saved_LIBS if $have_uniscribe; then UNISCRIBE_CFLAGS= UNISCRIBE_LIBS="-lusp10 -lgdi32"