assert_pkg_config Function

public function assert_pkg_config()

Check whether pkg-config is available on the local system

Arguments

None

Return Value logical


Source Code

logical function assert_pkg_config()

   integer :: exitcode
   logical :: success
   type(string_t) :: log

   call run_wrapper(wrapper=string_t('pkg-config'),args=[string_t('-h')], &
                    exitcode=exitcode,cmd_success=success,screen_output=log)
   
   assert_pkg_config = exitcode==0 .and. success 
    
end function assert_pkg_config