--- configure.ac (Asterisk 16.0) +++ configure.ac (working copy) @@ -627,2 +627,4 @@ +PKG_PROG_PKG_CONFIG() + # Find required NetBSD Editline library (libedit). @@ -665,2 +667,3 @@ if test "$JANSSON_BUNDLED" = "no" ; then + AST_PKG_CONFIG_CHECK([JANSSON], [jansson >= 2.11]) # json_sprintf is available in 2.11+ @@ -1494,5 +1497,2 @@ -# PKGCONFIG is used in later tests -PKG_PROG_PKG_CONFIG() -