grpc: improve checks for GRPC C++ requirements

Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
Christian Hopps 2021-05-20 06:46:34 +00:00
parent 67bde476b5
commit b256a06b22

View file

@ -1924,7 +1924,7 @@ dnl ---------------
dnl gRPC dnl gRPC
dnl --------------- dnl ---------------
if test "$enable_grpc" = "yes"; then if test "$enable_grpc" = "yes"; then
AC_LANG([C++]) AC_LANG_PUSH([C++])
AX_CXX_COMPILE_STDCXX([11], [ext]) AX_CXX_COMPILE_STDCXX([11], [ext])
PKG_CHECK_MODULES([GRPC], [grpc >= 6.0.0 grpc++ >= 1.16.1 protobuf >= 3.6.1 ], [ PKG_CHECK_MODULES([GRPC], [grpc >= 6.0.0 grpc++ >= 1.16.1 protobuf >= 3.6.1 ], [
AC_CHECK_PROGS([PROTOC], [protoc], [/bin/false]) AC_CHECK_PROGS([PROTOC], [protoc], [/bin/false])
@ -1938,6 +1938,7 @@ if test "$enable_grpc" = "yes"; then
GRPC=false GRPC=false
AC_MSG_ERROR([grpc/grpc++ were not found on your system.]) AC_MSG_ERROR([grpc/grpc++ were not found on your system.])
]) ])
AC_LANG_POP([C++])
fi fi
dnl ----- dnl -----