configure.ac: moved more *FLAGS to AM_*FLAGS, added --with-$lib{,-include,-lib}=DIR options for $lib in gmp|mpfr
configure: usability: process arguments at the beginning