summaryrefslogtreecommitdiffstats
path: root/m4/pdns_with_nghttp2.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/pdns_with_nghttp2.m4')
-rw-r--r--m4/pdns_with_nghttp2.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/pdns_with_nghttp2.m4 b/m4/pdns_with_nghttp2.m4
index 8305b2b..273385c 100644
--- a/m4/pdns_with_nghttp2.m4
+++ b/m4/pdns_with_nghttp2.m4
@@ -13,6 +13,13 @@ AC_DEFUN([PDNS_WITH_NGHTTP2], [
PKG_CHECK_MODULES([NGHTTP2], [libnghttp2], [
[HAVE_NGHTTP2=1]
AC_DEFINE([HAVE_NGHTTP2], [1], [Define to 1 if you have nghttp2])
+ save_CFLAGS=$CFLAGS
+ save_LIBS=$LIBS
+ CFLAGS="$NGHTTP2_CFLAGS $CFLAGS"
+ LIBS="$NGHTTP2_LIBS $LIBS"
+ AC_CHECK_FUNCS([nghttp2_check_header_value_rfc9113 nghttp2_check_method nghttp2_check_path])
+ CFLAGS=$save_CFLAGS
+ LIBS=$save_LIBS
], [ : ])
])
])