]> git.ipfire.org Git - thirdparty/suricata.git/commit
examples/lib: work with bundled libhtp
authorJason Ish <jason.ish@oisf.net>
Thu, 22 Feb 2024 17:24:52 +0000 (11:24 -0600)
committerVictor Julien <victor@inliniac.net>
Sat, 24 Feb 2024 07:41:05 +0000 (08:41 +0100)
commit5ed3f905acf41eafd1ec276c2cd1331d17da5eec
tree5f9e259460946bc72d2368a62601f48f5855173d
parent69f0e85785e03ef344e56c16929a9e803c2894ab
examples/lib: work with bundled libhtp

The simple example Makefile.am was unconditionally including
$(HTP_LDADD) which might be empty resulting in "../.." ending up in the
Makefile causing the build to fail.

Instead, also make HTP_LDADD a conditional, so we can only include it
when actually set, and its only set when libhtp is bundled.

The reason this Makefile needs to include the path components "../.."
is because the HTP_LDADD value is relative to the top level "src/"
directory.
configure.ac
examples/lib/simple/Makefile.am