cURL / Mailing Lists / curl-library / Single Mail


Overwriting PKGCONFIG when building curl

From: Rainer Jung <>
Date: Sat, 10 Oct 2015 18:31:53 +0200

Hi there,

the acinclude.m4 file contains the macro CURL_CHECK_PKGCONFIG to check
for installed libraries. The macro also searches for the pkg-config to
use by calling

AC_PATH_TOOL( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)

Before calling AC_PATH_TOOL, the macro explicitly sets


That means a user can not overwrite the result of AC_PATH_TOOL by simply
setting PKGCONFIG. I think such an overwrite feature is common, and I
don't see a good reason for the


line. You might want to simply remove it.

Currently the only way to use a special pkg-config is either using the
PATH - which might draw in many mire unwanted binaries, or set
ac_cv_path_PKGCONFIG, which is likely beyond knowledge of most builders.


List admin:
Received on 2015-10-10