configure --with-gmp-lib=/usr/local/lib --with-gmp-include=/usr/local/include 或者 --with-gmp=/usr/local