]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[65-libyang-generic] Extra fixes
authorFrancis Dupont <fdupont@isc.org>
Fri, 31 Aug 2018 15:56:15 +0000 (17:56 +0200)
committerFrancis Dupont <fdupont@isc.org>
Fri, 31 Aug 2018 15:56:15 +0000 (17:56 +0200)
configure.ac
src/lib/Makefile.am
src/lib/yang/tests/Makefile.am

index 51a56741a0e1e09db636e4e606397f63f39a1060..77090df37225411d3485b51e9949f78bacdcd021 100644 (file)
@@ -74,6 +74,9 @@ if test "$cross_compiling" = "yes"; then
 fi
 AM_CONDITIONAL([CROSS_COMPILING], [test "$cross_compiling" = "yes"])
 
+# pkg-config can be required.
+AC_PATH_PROG([PKG_CONFIG], [pkg-config])
+
 # Enable low-performing debugging facilities? This option optionally
 # enables some debugging aids that perform slowly and hence aren't built
 # by default.
@@ -817,7 +820,6 @@ AC_ARG_WITH([cql],
     [cql_config="$withval"])
 
 if test "${cql_config}" = "yes" ; then
-    AC_PATH_PROG([PKG_CONFIG], [pkg-config])
     CQL_CONFIG="$PKG_CONFIG"
 elif test "${cql_config}" != "no" ; then
     CQL_CONFIG="${cql_config}"
index 9de3269c323b393724c0278d18e75430836dbdc4..72176d47e2b75b6e5a7c1af8ce234cb6cd49fc0f 100644 (file)
@@ -1,3 +1,9 @@
 # The following build order must be maintained.
 SUBDIRS = exceptions util log cryptolink dns asiolink cc testutils hooks dhcp \
-          config stats asiodns dhcp_ddns eval dhcpsrv cfgrpt process http
+          config stats
+
+if HAVE_SYSREPO
+SUBDIRS += yang
+endif
+
+SUBDIRS += asiodns dhcp_ddns eval dhcpsrv cfgrpt process http
index 6e8ddef064bf2874ade9afeb218346e0896f445c..4391cddf84a9e3a7ab9d3f8f1f55c75158c54fed 100644 (file)
@@ -20,8 +20,7 @@ run_unittests_SOURCES += run_unittests.cc
 run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
 run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
 
-run_unittests_LDADD =  $(top_builddir)/src/lib/yang/testutils/libyangtest.la
-run_unittests_LDADD += $(top_builddir)/src/lib/yang/libkea-yang.la
+run_unittests_LDADD  = $(top_builddir)/src/lib/yang/libkea-yang.la
 run_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
 run_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
 run_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la