clippy: fail libcap test only when !enable_clippy_only

when building native clippy we don't need libcap

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
This commit is contained in:
Lucian Cristian 2019-09-13 07:16:18 +03:00
parent 2163a630eb
commit 2cd3abe419

View file

@ -2043,9 +2043,11 @@ if test "${enable_capabilities}" != "no"; then
case "$host_os" in case "$host_os" in
linux*) linux*)
if test "${enable_clippy_only}" != "yes"; then
if test "$frr_ac_lcaps" != "yes"; then if test "$frr_ac_lcaps" != "yes"; then
AC_MSG_ERROR([libcap and/or its headers were not found. Running FRR without libcap support built in causes a huge performance penalty.]) AC_MSG_ERROR([libcap and/or its headers were not found. Running FRR without libcap support built in causes a huge performance penalty.])
fi fi
fi
;; ;;
esac esac
else else