configure.ac: Don't try to run pkg-config if it is not available

Status Job ID Name Coverage
  Build
failed #238
build

 
  Test
skipped #240
allowed to fail
code_quality
skipped #239
test
 
Name Stage Failure
failed
build Build There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job trace