notmuch uses pkg-config

Closes #17833.