Libedit deps fix
Configuration fix
Situation:
Currently there are three problems when configuring the sources:
-
When configuring with
--with-libedit=/is/somewhere/else
the header files location is not passed into appropriate translation units and the compilation fails on missing header filehistedit.h
. -
Compilation fails with
--disable-daemon
and--enable-utilities
because libedit is pulled by static dependencies of utilities but is not detected in the configuration because of disabled daemon. -
Sources of
knotc
are compiled with daemon but the resulting binary is only built(linked) when utilities are also enabled, because utilisties provide necessary staticlibknotus.la
.
Solution:
- Add missing
$(libedit_CFLAGS)
intosrc/Makefile.am
on relevant places. - Presence of libedit is checked when configuring with daemon or utilities.
- Changes in
src/Makefile.am
so thatlibknotus.la
is built whenHAVE_DAEMON
orHAVE_UTILS
. Utilityknotc
is compiled and built withknotd
.