Log Message: Fix check of gmp in configure, taken from 0.33 pre release. This problem was reported in PR 35211. Also add test make target.