[PATCH] binutils/configure: look for msgpack-c.pc (in addition to msgpack.pc)

Simon Marchi simon.marchi@efficios.com
Mon May 18 20:30:32 GMT 2026



On 2026-05-16 00:12, Jiang, Haochen wrote:
>> From: Alan Modra <amodra@gmail.com>
>> Sent: Saturday, May 16, 2026 8:48 AM
>>
>> It needs this, to tell PKG_CHECK_MODULES that a missing module will be
>> handled by the caller.
>>
>> diff --git a/binutils/configure.ac b/binutils/configure.ac
>> index 234eeaadab3..74baea68529 100644
>> --- a/binutils/configure.ac
>> +++ b/binutils/configure.ac
>> @@ -300,7 +300,7 @@ AS_IF([test "$with_msgpack" != no],
>>     # msgpack.pc was renamed to msgpack-c.pc at some point, look for the new
>>     # one first.
>>     PKG_CHECK_MODULES([MSGPACK], [msgpack-c], [have_msgpack=yes],
>> -     [PKG_CHECK_MODULES([MSGPACK], [msgpack], [have_msgpack=yes])])
>> +     [PKG_CHECK_MODULES([MSGPACK], [msgpack], [have_msgpack=yes],
>> [:])])
>>
>>     AS_IF([test "$have_msgpack" = yes],
>>       [AC_DEFINE([HAVE_MSGPACK], [1], [Define to 1 if msgpack is available.])],
>>
> 
> That patch on trunk has fixed my issue. Thx for the help.
> 
> Thx,
> Haochen
> 
>> --
>> Alan Modra

Sorry for the breakage, and thanks for taking care of fixing it.

Simon


More information about the Binutils mailing list