From: Eric Leblond Date: Mon, 18 Feb 2013 09:51:20 +0000 (+0100) Subject: configure: update htp version dependancy X-Git-Tag: suricata-1.4.1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d472d606e95e4a22393a9aad6bb07e7983216c90;p=thirdparty%2Fsuricata.git configure: update htp version dependancy --- diff --git a/configure.ac b/configure.ac index 8ed39655b4..e5f0abb481 100644 --- a/configure.ac +++ b/configure.ac @@ -1013,6 +1013,15 @@ AC_INIT(configure.ac) echo exit 1 fi + PKG_CHECK_MODULES(LIBHTPMAXVERSION, htp <= 0.3.0,[libhtp_maxver_found="yes"],[libhtp_maxver_found="no"]) + if test "$libhtp_maxver_found" = "no"; then + echo + echo " ERROR! libhtp 0.3.x was found but only 0.2.x is supported" + echo + exit 1 + fi + + AC_CHECK_LIB([htp], [htp_config_register_request_uri_normalize],AC_DEFINE_UNQUOTED([HAVE_HTP_URI_NORMALIZE_HOOK],[1],[Found htp_config_register_request_uri_normalize function in libhtp]) ,,[-lhtp]) # check for htp_tx_get_response_headers_raw