Created attachment 49838 [details] [review]
patch to check pkg-config availability before autoreconf
To generate configure script by autoconf correctly, pkg.m4 is required.
It is difficult for users to understand the error message when pkg.m4 is missing,
it is expected that autogen.sh checks pkg-config availability.
configure itself uses pkg-config too, so the dependency is not harmful.
Attachment is a patch to check pkg-config. However, if some systems separate
pkg-config command and pkg.m4 macro, further improvement is needed.
Humm, I'll check that pkg-config is installed. That doesn't necessary mean that pkg.m4 is available, but it's probably good enough.
This is fixed already.