configure.ac improved after lots of hints