]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: check for iconv in htp embedded mode 445/head
authorEric Leblond <eric@regit.org>
Wed, 17 Jul 2013 11:28:09 +0000 (13:28 +0200)
committerEric Leblond <eric@regit.org>
Wed, 17 Jul 2013 11:28:09 +0000 (13:28 +0200)
At least on freebsd, suricata fails to build in htp embedded mode
due to iconv linking issue.

configure.ac

index 59d8632b6eaea535943f500da9106ce130570cc1..bd1e0ee8613a2976505366e6df28fba5f2008285 100644 (file)
@@ -1076,6 +1076,7 @@ AC_INIT(configure.ac)
             # make sure libhtp is added to the includes
             CPPFLAGS="-I${srcdir}/../libhtp/ ${CPPFLAGS}"
 
+            AC_CHECK_LIB(iconv, libiconv_close)
             AC_DEFINE_UNQUOTED([HAVE_HTP_URI_NORMALIZE_HOOK],[1],[Assuming htp_config_register_request_uri_normalize function in bundled libhtp])
             AC_DEFINE_UNQUOTED([HAVE_HTP_TX_GET_RESPONSE_HEADERS_RAW],[1],[Assuming htp_tx_get_response_headers_raw function in bundled libhtp])
             AC_DEFINE_UNQUOTED([HAVE_HTP_DECODE_QUERY_INPLACE],[1],[Assuming htp_decode_query_inplace function in bundled libhtp])