autogen.sh: Check for pkg-config before calling automake

Signed-off-by: Uli Schlachter <psychon@znc.in>