configure.ac: print useful build config info

Inspired by the GNOME Shell configure.ac