f0beb4e313970ffd075cd711ed6cfbac03ad5af6Christian HeimesAC_SUBST(HTTP_PARSER_LIBS)
f0beb4e313970ffd075cd711ed6cfbac03ad5af6Christian HeimesAC_SUBST(HTTP_PARSER_CFLAGS)
f0beb4e313970ffd075cd711ed6cfbac03ad5af6Christian HeimesPKG_CHECK_MODULES([HTTP_PARSER], [http_parser], [found_http_parser=yes], [found_http_parser=no])
f0beb4e313970ffd075cd711ed6cfbac03ad5af6Christian HeimesSSS_AC_EXPAND_LIB_DIR()
f0beb4e313970ffd075cd711ed6cfbac03ad5af6Christian HeimesAS_IF([test x"$found_http_parser" != xyes],
f0beb4e313970ffd075cd711ed6cfbac03ad5af6Christian Heimes [AC_CHECK_HEADERS([http_parser.h],
f0beb4e313970ffd075cd711ed6cfbac03ad5af6Christian Heimes [AC_CHECK_LIB([http_parser_strict],
f0beb4e313970ffd075cd711ed6cfbac03ad5af6Christian Heimes [http_parser_init],
f0beb4e313970ffd075cd711ed6cfbac03ad5af6Christian Heimes [HTTP_PARSER_LIBS="-L$sss_extra_libdir -lhttp_parser_strict"],
85bd23a89282c96487e64872ac955e271e445d0bJakub Hrozek [AC_CHECK_LIB([http_parser],
85bd23a89282c96487e64872ac955e271e445d0bJakub Hrozek [http_parser_init],
85bd23a89282c96487e64872ac955e271e445d0bJakub Hrozek [HTTP_PARSER_LIBS="-L$sss_extra_libdir -lhttp_parser"],
85bd23a89282c96487e64872ac955e271e445d0bJakub Hrozek [AC_MSG_ERROR([libhttp_parser missing http_parser_init])],
85bd23a89282c96487e64872ac955e271e445d0bJakub Hrozek [-L$sss_extra_libdir -lhttp_parser])
f0beb4e313970ffd075cd711ed6cfbac03ad5af6Christian Heimes [-L$sss_extra_libdir -lhttp_parser_strict])],
c5a47e4a809aca39669e26d6136f8056952efd74Lukas Slebodnik [AC_MSG_ERROR([
dc186bfe90665c13d589b3b4efd9009293e62c46Pavel BřezinaYou must have the header file http_parser.h installed to build sssd
c5a47e4a809aca39669e26d6136f8056952efd74Lukas Slebodnikwith secrets responder. If you want to build sssd without secret responder
c5a47e4a809aca39669e26d6136f8056952efd74Lukas Slebodnikthen specify --without-secrets when running configure.])])])