I am working from a shell script (and not an Autotools script). According to the
pkg-config(1) man page, "Return meta information about installed libraries". For example, here is a check of Nettle 3.4 installed in
$ pkg-config --exists --print-errors "nettle >= 3.1" $ echo $? 0
When I try to check Autoconf it returns an error. This is expected based on the man page:
$ pkg-config --exists --print-errors "autoconf >= 2.63" Package autoconf was not found in the pkg-config search path. Perhaps you should add the directory containing `autoconf.pc' to the PKG_CONFIG_PATH environment variable No package 'autoconf' found
Is it possible to use
pkg-config to test non-library packages? If not, is there a similar tool to supply information about installed programs?