build: don't build cli libraries by default

When configuring with --enable-cli=no, we should not build
the libraries related the cli.

This fixes commit 3cb2853 (build: enable building cli during tests)
which enables building of cli during `make check`. However, during
regular build, these libraries should not get build.

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2017-05-12 12:40:45 +02:00
parent 286a86c75e
commit 144c6c5e6a

View File

@ -521,7 +521,7 @@ pkglib_qdiscdir = $(pkglibdir)/cli/qdisc
pkglib_cls_LTLIBRARIES = $(lib_cli_ltlibraries_cls)
pkglib_qdisc_LTLIBRARIES = $(lib_cli_ltlibraries_qdisc)
else
noinst_LTLIBRARIES += \
check_LTLIBRARIES += \
$(lib_cli_ltlibraries_cls) \
$(lib_cli_ltlibraries_qdisc)
endif