Correctly check for pkg-config#1885sardemff7 wants to merge 1 commit intophp:masterfrom sardemff7:wip/pkg-configsardemff7/php-src:wip/pkg-config
Conversation
It is a tool, and needs the correct prefix for cross-compiling. Also, if $PKG_CONFIG is set, either by the user or AC_PATh_TOOL, we can consider it will be executable. A bare "test -x" is not enough for package managers which set $PKG_CONFIG to <prefix>-pkg-config (not absolute). Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
8cfe0db to
8ec9a74
Compare
|
@remicollet can I ask that you review this please ? |
|
You switched from |
|
Nevermind, I see it now: the |
|
What kind of failures are you trying to catch here? This check just seems annoying, since every other good user of Autotools just use the |
|
You're right that the actual invocation of pkgconfig will fail if it's not executable, I just think it's a slightly better design to decide up front what the If, on the other hand, we let I just happened across this issue by accident and decided to look over the change, so my suggestion isn't the law =) I do however agree with the goal. |
|
I see. However, |
|
@remicollet with the recent changes to use pkg-config in curl I think it was, I suppose this could be merged as well? |
|
@eli-schwartz Is this PR obsolete due to PR #3632 and #3654? |
|
Yes.
|
It is a tool, and needs the correct prefix for cross-compiling.
Also, if
$PKG_CONFIGis set, either by the user orAC_PATH_TOOL, we canconsider it will be executable.
A bare
test -xis not enough for package managers which set$PKG_CONFIGto<prefix>-pkg-config(not absolute).