Skip to content

Commit

Permalink
Fix finding msgpack 6+
Browse files Browse the repository at this point in the history
`msgpack.pc` was renamed to `msgpack-c.pc` upstream in msgpack/msgpack-c#1053.
  • Loading branch information
carlocab committed Mar 5, 2023
1 parent ac91951 commit a5c6e80
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,17 @@ PKG_CHECK_MODULES(
],
found_msgpack=no
)
# msgpack.pc was renamed to msgpack-c.pc in 6.0.0.
PKG_CHECK_MODULES(
MSGPACKC,
msgpack-c >= 1.1.0,
[
CPPFLAGS="$MSGPACKC_CFLAGS $CPPFLAGS"
LIBS="$MSGPACKC_LIBS $LIBS"
found_msgpack=yes
],
found_msgpack=no
)
if test "x$found_msgpack" = xno; then
AC_MSG_ERROR("msgpack >= 1.1.0 not found")
fi
Expand Down

0 comments on commit a5c6e80

Please sign in to comment.