aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSergio Campama <kaipi@google.com>2016-12-07 17:53:17 -0500
committerSergio Campama <kaipi@google.com>2016-12-07 17:59:42 -0500
commit1d91c2588c425761bc1f1824cdc55c43ea0b34f3 (patch)
tree89da33fcfac8fe330775d585736e84d63cd24219 /configure.ac
parent607b92149948393311d66329b9851f5971662f19 (diff)
downloadprotobuf-1d91c2588c425761bc1f1824cdc55c43ea0b34f3.tar.gz
protobuf-1d91c2588c425761bc1f1824cdc55c43ea0b34f3.tar.bz2
protobuf-1d91c2588c425761bc1f1824cdc55c43ea0b34f3.zip
Include -std=c++11 when compiling protobuf if available.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
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.