X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=configure.ac;h=44351937f64146e38c56c511a175d1890465a401;hb=8737bfd2e356a35bbef30ed2185c566cd61bca0b;hp=1bacddd1b482af00dbe8b15bc103f68176b7d2df;hpb=37d3677e95febc653d8f67fc19f67eb4110910eb;p=collectd.git diff --git a/configure.ac b/configure.ac index 1bacddd1..44351937 100644 --- a/configure.ac +++ b/configure.ac @@ -2376,7 +2376,7 @@ if test "x$with_libgrpcpp" = "xyes" then AC_LANG_PUSH(C++) SAVE_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$with_libgrpcpp_cppflags $GRPCPP_CFLAGS $CPPFLAGS -std=c++11" + CPPFLAGS="-std=c++11 $with_libgrpcpp_cppflags $GRPCPP_CFLAGS $CPPFLAGS" AC_CHECK_HEADERS([grpc++/grpc++.h], [], [with_libgrpcpp="no ( not found)"] ) @@ -2386,8 +2386,10 @@ fi if test "x$with_libgrpcpp" = "xyes" then AC_LANG_PUSH(C++) + SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" SAVE_LIBS="$LIBS" + CPPFLAGS="-std=c++11 $with_libgrpcpp_cppflags $GRPCPP_CFLAGS $CPPFLAGS" LDFLAGS="$with_libgrpcpp_ldflags" if test "x$GRPCPP_LIBS" = "x" then @@ -2409,6 +2411,7 @@ then ], [with_libgrpcpp="no (libgrpc++ not found)"] ) + CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" LIBS="$SAVE_LIBS" AC_LANG_POP(C++)