Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
autoconf: Re-direct error messages if pkg-config cannot be found
Else it will print something like ./configure: line 4426: --exists: command not found which isn't really helpful, either.
- Loading branch information
2efd8ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...so, let's reimplement PKG_CHECK_EXISTS, because.
2efd8ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can suggest improvements without being aggressively sarcastic.
2efd8ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PKG_* macros are only available if pkg-config is installed. If it is not installed, running
./configure
will fail and we did not (yet?) want to make pkg-config a mandatory dependency.2efd8ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there'd be much harm in that.
2efd8ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really true, unless meant to mean "autoreconf will generate broken configure if the macro isn't
found".
However the part that irks me most here is that it deals with a cosmetic problem by dropping info that might have been useful (PKG_CHECK_EXISTS is pretty much trivial, but what it does is redirect the error messages to config.log).
2efd8ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, whatever.
What is so useful about
?
2efd8ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, that outright quote mining - you've skipped the preceding "if test -n "$PKG_CONFIG" &&"