From 32e513226cea7c55f379d98460562c845405d97c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20=C3=85dahl?= Date: Sat, 29 Mar 2014 14:39:42 +0100 Subject: [PATCH] configure.ac: Always check for C++ compiler MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Even though libinput uses no C++, it should be supported to include libinput.h from C++. Therefore a build test ensuring this possibility exist. However, since we can not conditionally invoke AC_PROG_CXX in configure.ac just do it always. Signed-off-by: Jonas Ådahl --- configure.ac | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index e44adcb..faae148 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,7 @@ AM_SILENT_RULES([yes]) # Check for programs AC_PROG_CC_C99 +AC_PROG_CXX # Only used by build C++ test # Initialize libtool LT_PREREQ([2.2]) @@ -75,9 +76,6 @@ fi if test "x$build_tests" = "xyes" -a "x$HAVE_CHECK" = "xno"; then AC_MSG_ERROR([Cannot build tests, check is missing]) fi -if test "x$build_tests" = "xyes"; then - AC_PROG_CXX -fi AM_CONDITIONAL(BUILD_TESTS, [test "x$build_tests" = "xyes"]) -- 2.7.4