From: Eric Leblond Date: Mon, 14 Sep 2015 08:55:04 +0000 (+0200) Subject: configure: use pkg_config for libhtp X-Git-Tag: suricata-3.0RC1~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8b8b6f753d62ffe5469384b9c420a1f1acb25c2;p=thirdparty%2Fsuricata.git configure: use pkg_config for libhtp It was not possible to simply specify PKG_CONFIG_PATH to build with an non bundled libhtp. With this patch we don't need anymore the htp lib and include configure options. --- diff --git a/configure.ac b/configure.ac index ea819f4a80..ab2df12bc6 100644 --- a/configure.ac +++ b/configure.ac @@ -1113,6 +1113,12 @@ AC_ARG_ENABLE(non-bundled-htp, AS_HELP_STRING([--enable-non-bundled-htp], [Enable the use of an already installed version of htp]),,[enable_non_bundled_htp=no]) AS_IF([test "x$enable_non_bundled_htp" = "xyes"], [ + PKG_CHECK_MODULES([libhtp], htp,, [with_pkgconfig_htp=no]) + if test "$with_pkgconfig_htp" != "no"; then + CPPFLAGS="${CPPFLAGS} ${libhtp_CFLAGS}" + LIBS="${LIBS} ${libhtp_LIBS}" + fi + AC_ARG_WITH(libhtp_includes, [ --with-libhtp-includes=DIR libhtp include directory], [with_libhtp_includes="$withval"],[with_libhtp_includes=no])