]> sigrok.org Git - libsigrok.git/commit - configure.ac
configure.ac: Improve pkg-config related checks.
authorUwe Hermann <redacted>
Mon, 8 Apr 2013 12:46:13 +0000 (14:46 +0200)
committerUwe Hermann <redacted>
Tue, 9 Apr 2013 15:46:33 +0000 (17:46 +0200)
commitaba692624593131b9f1ea7cd63d1f88b9e09b668
tree21a6f66d34c62ad59b0ff4a3f5e84d35450aff49
parent3f98bf7017341f70ceb92f98b976d972254c3ba0
configure.ac: Improve pkg-config related checks.

Until now, we checked for certain (optional) libraries via pkg-config and
the configure script would abort if any of them was not found, even
though they were optional. It was up to the user to then figure out which
combination of --disable-<drivername> switches were required for his
specific OS (and set of installed libs) to get a working configure run.

Only if the user already specified enough --disable-<drivername>
switches beforehand, so that all drivers which require a missing library
were disabled, would the configure run not check for that specific lib
(and would thus not fail).

With this change, we now always unconditionally check for all libs
(required and optional) via pkg-config. However, whether an (optional) lib
is found or not, configure will not abort. Instead, it'll just disable
all drivers which need a lib that cannot be found.

The user will no longer have to supply --disable-<drivername> parameters
in order to get a working build.
configure.ac