$OpenBSD: patch-configure_ac,v 1.8 2012/10/21 15:22:05 jasper Exp $

From ed542779a5d35c3cdef3567a9c1aaaf8cfa23b19 Mon Sep 17 00:00:00 2001
From: Sbastien Granjoux <seb.sfo@free.fr>
Date: Sat, 13 Oct 2012 20:35:09 +0000
Subject: build: bgo#684758 - anjuta-3.5.91 fails to configure due to ac_ct_CXX check

--- configure.ac.orig	Sun Oct 21 17:18:52 2012
+++ configure.ac	Sun Oct 21 17:19:54 2012
@@ -80,10 +80,8 @@ fi
 AC_LANG([C])
 AC_LANG([C++])
 AC_PROG_CXX
-if test "x$ac_ct_CXX" = "x"
-then
-  AC_MSG_ERROR([C++ Compiler required to compile Anjuta])
-fi
+AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],,
+   AC_MSG_ERROR([C++ Compiler required to compile Anjuta]))
 AM_PROG_CC_C_O
 
 GNOME_COMPILE_WARNINGS([maximum])
