configure.ac: Add a few more checks

Mostly to make autoscan a little more calm.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>