This module contains wrapper functions to interface with a pkg-config installation.
Check whether pkg-config is available on the local system
Get build flags (option to include flags from system directories, that gfortran does not look into by default)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
Package name |
||
logical, | intent(in) | :: | allow_system |
Should pkg-config look in system paths? This is necessary for gfortran that doesn’t otherwise look into them |
||
type(error_t), | intent(out), | allocatable | :: | error |
Error flag |
List of compile flags
Check if pkgcfg has package
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
Package name |
Return whole list of available pkg-cfg packages
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(error_t), | intent(out), | allocatable | :: | error |
Error handler |
|
type(string_t), | intent(out), | optional, | allocatable | :: | descriptions(:) |
An optional list of package descriptions |
A list of all available packages
Simple call to execute_command_line involving one mpi* wrapper
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(string_t), | intent(in) | :: | wrapper | |||
type(string_t), | intent(in), | optional | :: | args(:) | ||
logical, | intent(in), | optional | :: | verbose | ||
integer, | intent(out), | optional | :: | exitcode | ||
logical, | intent(out), | optional | :: | cmd_success | ||
type(string_t), | intent(out), | optional | :: | screen_output |