I've been doing autoconf hacking on another project lately, so I'm fairly fresh on autoconf weirdness. I'll take a stab at making configure do these things, perhaps this weekend?, unless someone else wants to.