Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure.ac: simplify the CUnit check by pkg-config
The old behaviour on testing for CUnit library and header files (that are needed while building the internal testbinary) was done on manually search for the header and the library file without a real need because CUnit ships a pkg-config file with a version for longer time. By using the PKG_CHECK_MODULES macro the check is much easier as the pkg-config file is serving all the needed information like the search path for the header files as also LDFLAGS for linking against. This ensures the environment variables are always setup correctly. Note that FreeBSD uses for example /usr/include and /user/local/include for the header files, the pkg-config files can be found in /usr{/local}/libdata/pkgconfig. The pkg-config file will pick up the right places then.
- Loading branch information
Showing
2 changed files
with
19 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters