build: Fix checks for c_ares

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
Martin Winter 2019-08-29 03:49:14 +02:00 committed by David Lamparter
parent 83c64a7d32
commit 2d82431a95

View file

@ -1535,13 +1535,13 @@ case "$host_os" in
no) no)
;; ;;
yes) yes)
if [ "$c_ares_found" != "true" ]; then if test "$c_ares_found" != "true" ; then
AC_MSG_ERROR([nhrpd requires libcares. Please install c-ares and its -dev headers.]) AC_MSG_ERROR([nhrpd requires libcares. Please install c-ares and its -dev headers.])
fi fi
NHRPD="nhrpd" NHRPD="nhrpd"
;; ;;
*) *)
if [ "$c_ares_found" = "true" ]; then if test "$c_ares_found" = "true" ; then
NHRPD="nhrpd" NHRPD="nhrpd"
fi fi
;; ;;
@ -1584,13 +1584,13 @@ case "${enable_bmp}" in
no) no)
;; ;;
yes) yes)
if [ "$c_ares_found" != "true" ]; then if test "$c_ares_found" != "true" ; then
AC_MSG_ERROR([BMP support requires libcares. Please install c-ares and its -dev headers.]) AC_MSG_ERROR([BMP support requires libcares. Please install c-ares and its -dev headers.])
fi fi
bgpd_bmp=true bgpd_bmp=true
;; ;;
*) *)
if [ "$c_ares_found" = "true" ]; then if test "$c_ares_found" = "true" ; then
bgpd_bmp=true bgpd_bmp=true
fi fi
;; ;;