From: Stephan Vedder Date: Mon, 18 May 2015 20:55:28 +0000 (+0200) Subject: Compile the check with the g++ compiler now X-Git-Tag: 0.13.0~28^2~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c9068c135414a6157b93200ff81bdbb9c5cb81c;p=libass Compile the check with the g++ compiler now --- diff --git a/configure.ac b/configure.ac index 9f8e7b2..358349c 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,7 @@ AC_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CC +AC_PROG_CXX AC_PROG_CPP AM_PROG_CC_C_O AM_PROG_AS @@ -174,7 +175,10 @@ AC_LINK_IFELSE([ ]) fi + + if test x$enable_directwrite != xno; then +AC_LANG_PUSH([C++]) OLDLIBS="$LIBS" # Linking to DirectWrite directly only works from Windows LIBS="$LIBS -ldwrite" @@ -192,6 +196,7 @@ AC_LINK_IFELSE([ directwrite=false AC_MSG_RESULT([no]) ]) +AC_LANG_POP() fi if test x$enable_harfbuzz != xno; then