From 1d91c2588c425761bc1f1824cdc55c43ea0b34f3 Mon Sep 17 00:00:00 2001 From: Sergio Campama Date: Wed, 7 Dec 2016 17:53:17 -0500 Subject: Include -std=c++11 when compiling protobuf if available. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 896f3471..d1e913c6 100644 --- a/configure.ac +++ b/configure.ac @@ -178,6 +178,8 @@ case "$target_os" in esac AM_CONDITIONAL([OBJC_CONFORMANCE_TEST], [test $OBJC_CONFORMANCE_TEST = 1]) +AX_CXX_COMPILE_STDCXX([11], [noext], [optional]) + # HACK: Make gmock's configure script pick up our copy of CFLAGS and CXXFLAGS, # since the flags added by ACX_CHECK_SUNCC must be used when compiling gmock # too. -- cgit v1.2.3