]> granicus.if.org Git - libass/commitdiff
Compile the check with the g++ compiler now
authorStephan Vedder <stephan.vedder@gmail.com>
Mon, 18 May 2015 20:55:28 +0000 (22:55 +0200)
committerGrigori Goronzy <greg@chown.ath.cx>
Fri, 10 Jul 2015 08:42:40 +0000 (10:42 +0200)
configure.ac

index 9f8e7b22df03d8d76668eeb4586ee66cdf526aea..358349c3a0975b8be02b0f06338bdb472b5ecd9c 100644 (file)
@@ -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