summaryrefslogtreecommitdiffstats
path: root/src/external/libhttp_parser.m4
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2016-01-08 13:26:22 +0100
committerJakub Hrozek <jhrozek@redhat.com>2016-06-29 21:46:29 +0200
commitf0beb4e313970ffd075cd711ed6cfbac03ad5af6 (patch)
tree26d2f60919f18967b378ea45c7f4d6d3e8654f72 /src/external/libhttp_parser.m4
parentb1ce544568eff89f2263ae180e323f263f1cff3a (diff)
downloadsssd-f0beb4e313970ffd075cd711ed6cfbac03ad5af6.tar.gz
sssd-f0beb4e313970ffd075cd711ed6cfbac03ad5af6.tar.xz
sssd-f0beb4e313970ffd075cd711ed6cfbac03ad5af6.zip
Secrets: m4 macros for jansson and http-parser
Prepares autoconf for the new Secrets Provider dependencies Related: https://fedorahosted.org/sssd/ticket/2913 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/external/libhttp_parser.m4')
-rw-r--r--src/external/libhttp_parser.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/src/external/libhttp_parser.m4 b/src/external/libhttp_parser.m4
new file mode 100644
index 000000000..34c41e8b1
--- /dev/null
+++ b/src/external/libhttp_parser.m4
@@ -0,0 +1,15 @@
+AC_SUBST(HTTP_PARSER_LIBS)
+AC_SUBST(HTTP_PARSER_CFLAGS)
+
+PKG_CHECK_MODULES([HTTP_PARSER], [http_parser], [found_http_parser=yes], [found_http_parser=no])
+
+SSS_AC_EXPAND_LIB_DIR()
+AS_IF([test x"$found_http_parser" != xyes],
+ [AC_CHECK_HEADERS([http_parser.h],
+ [AC_CHECK_LIB([http_parser_strict],
+ [http_parser_init],
+ [HTTP_PARSER_LIBS="-L$sss_extra_libdir -lhttp_parser_strict"],
+ [AC_MSG_ERROR([libhttp_parser_strict missing http_parser_init])],
+ [-L$sss_extra_libdir -lhttp_parser_strict])],
+ [AC_MSG_ERROR([http_parser header files are not installed])])]
+)