configure: let define pkg-config directory with `--with-pkgconfigdir`

This needs a recent version of pkg.m4. However, we provide a fallback if
not present.

Closes: #87