Check if `pkg-config` is installed before using it.

Without this check, if tool is not present, `configure` command fails
with syntax error.