Require C++11 if protobuf version >= 3.6.0 is installed

This shouldn't require C++11 when not required.

This hack may not always detect when C++11 *is* required,
in which case a little autoconf tweaking may be needed
to get a good compile.
This commit is contained in:
John Hood
2018-07-23 01:37:26 -04:00
parent 60859e9d09
commit 6fe7cde94d
2 changed files with 951 additions and 0 deletions
+3
View File
@@ -20,6 +20,9 @@ AS_IF([test x"$PROTOC" = x],
# automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AS_IF([pkg-config --atleast-version 3.6.0 protobuf],
[AX_CXX_COMPILE_STDCXX([11], [noext])])
WARNING_CXXFLAGS=""
PICKY_CXXFLAGS=""
DISTCHECK_CXXFLAGS=""