]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
Fix make check when using --disable-cli
authorGilles Espinasse <g.esp@free.fr>
Tue, 4 Dec 2012 23:08:00 +0000 (00:08 +0100)
committerThomas Graf <tgraf@suug.ch>
Wed, 5 Dec 2012 06:55:45 +0000 (07:55 +0100)
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
tests/Makefile.am

index 1272f981d654daf537ec608018c2d6d3870d835c..9c0ab8d2568d396ef7c164ec9551e3ae7528769f 100644 (file)
@@ -3,22 +3,26 @@
 AM_CPPFLAGS  = -Wall -I${top_srcdir}/include -I${top_builddir}/include -D_GNU_SOURCE -DSYSCONFDIR=\"$(sysconfdir)/libnl\"
 
 LDADD = \
-       ${top_builddir}/src/lib/libnl-cli-3.la \
        ${top_builddir}/lib/libnl-3.la \
        ${top_builddir}/lib/libnl-nf-3.la \
        ${top_builddir}/lib/libnl-genl-3.la \
        ${top_builddir}/lib/libnl-route-3.la
 
 check_PROGRAMS = \
-       test-cache-mngr \
        test-create-bond \
        test-create-vlan \
        test-delete-link \
-       test-genl \
-       test-nf-cache-mngr \
        test-socket-creation \
        test-complex-HTB-with-hash-filters
 
+if ENABLE_CLI
+LDADD += ${top_builddir}/src/lib/libnl-cli-3.la
+check_PROGRAMS += \
+       test-cache-mngr \
+       test-genl \
+       test-nf-cache-mngr
+endif
+
 # Eventually add these to TESTS once converted to be real
 # test programs
 # TESTS = $(check_PROGRAMS)