diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-09-05 19:03:23 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-09-05 19:04:40 +0200 |
commit | c5f992c51377c8735682d49a1ceef88db39d41ac (patch) | |
tree | bdec1286c70ea3cb5841b2b0c56683f7a65fa957 | |
parent | 3e62695bb13452e5d4dd671aa9d95e225bfe7fbb (diff) |
build: display configuration after ./configure
libnftables configuration:
XML support: no
JSON support: no
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | configure.ac | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 834c0a3..4d601a6 100644 --- a/configure.ac +++ b/configure.ac @@ -14,11 +14,16 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) dnl Dependencies PKG_CHECK_MODULES([LIBMNL], [libmnl >= 1.0.0]) -AC_ARG_WITH([xml-parsing], AS_HELP_STRING([--with-xml-parsing], [XML parsing support])) +AC_ARG_WITH([xml-parsing], + AS_HELP_STRING([--with-xml-parsing], [XML parsing support]), + [with_xml_parsing="yes"], [with_xml_parsing="no"]) +AC_ARG_WITH([json-parsing], + AS_HELP_STRING([--with-json-parsing], [JSON parsing support]), + [with_json_parsing="yes"], [with_json_parsing="no"]) + AS_IF([test "x$with_xml_parsing" = "xyes"], [ PKG_CHECK_MODULES([LIBXML], [mxml >= 2.6]) ]) -AC_ARG_WITH([json-parsing], AS_HELP_STRING([--with-json-parsing], [JSON parsing support])) AS_IF([test "x$with_json_parsing" = "xyes"], [ PKG_CHECK_MODULES([LIBJSON], [jansson >= 2.3]) ]) @@ -47,3 +52,8 @@ AC_SUBST([regular_CPPFLAGS]) AC_SUBST([regular_CFLAGS]) AC_CONFIG_FILES([Makefile src/Makefile include/Makefile include/libnftables/Makefile include/linux/Makefile include/linux/netfilter/Makefile examples/Makefile tests/Makefile libnftables.pc doxygen.cfg]) AC_OUTPUT + +echo " +libnftables configuration: + XML support: ${with_xml_parsing} + JSON support: ${with_json_parsing}" |