forked from Mirror/frr
grpc: improve checks for GRPC C++ requirements
Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
67bde476b5
commit
b256a06b22
|
@ -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 -----
|
||||||
|
|
Loading…
Reference in a new issue