]> git.proxmox.com Git - mirror_frr.git/commitdiff
build: Fix checks for c_ares
authorMartin Winter <mwinter@opensourcerouting.org>
Thu, 29 Aug 2019 01:49:14 +0000 (03:49 +0200)
committerDavid Lamparter <equinox@diac24.net>
Fri, 30 Aug 2019 17:22:29 +0000 (19:22 +0200)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
configure.ac

index 02deac909a142051d3768519bf1f1a0b2ec7eca9..a940739ae4db41764e50c60dfc4d352b4a6cbeb6 100755 (executable)
@@ -1535,13 +1535,13 @@ case "$host_os" in
       no)
         ;;
       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.])
         fi
         NHRPD="nhrpd"
         ;;
       *)
-        if [ "$c_ares_found" = "true" ]; then
+        if test "$c_ares_found" = "true" ; then
           NHRPD="nhrpd"
         fi
         ;;
@@ -1584,13 +1584,13 @@ case "${enable_bmp}" in
   no)
     ;;
   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.])
     fi
     bgpd_bmp=true
     ;;
   *)
-    if [ "$c_ares_found" = "true" ]; then
+    if test "$c_ares_found" = "true" ; then
       bgpd_bmp=true
     fi
     ;;