From daddab4c52d91c83444ccef8eeefdc6d4c54cdcc Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Tue, 6 May 2014 22:19:47 +0200 Subject: [PATCH] autotools: make it possible to disable support for C++11. --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ed1e97f9f7..9dc0a052b3 100644 --- a/configure.ac +++ b/configure.ac @@ -952,7 +952,13 @@ EFL_LIB_END([Eina]) EFL_LIB_START([Eina_Cxx]) EFL_CXX_COMPILE_STDCXX_11([ext]) -if test "x${HAVE_CXX11}" = "x1"; then +want_cxx11="yes" +AC_ARG_ENABLE([c++11], + [AC_HELP_STRING([--disable-c++11], + [disable C++11 bindings. @<:@default=enabled@:>@])], + [want_cxx11="${enableval}"]) + +if test "x${HAVE_CXX11}" = "x1" -a "x${want_cxx11}" = "xyes"; then have_cxx11="yes" else have_cxx11="no"