gives error during configure
./configure: line 12234: SECP_64BIT_ASM_CHECK: command not found
./configure: line 12263: SECP_INT128_CHECK: command not found
./configure: line 12291: SECP_INT128_CHECK: command not found
./configure: line 12316: SECP_GMP_CHECK: command not found
./configure: line 12422: SECP_OPENSSL_CHECK: command not found
The messages suggests that autoconf isn't finding the relevant m4 macros which suggests there's a missing file or an existing file has missing stanzas. Cross-referencing the m4 contents with those of a successfully-compiling coin of similar vintage and configuration might help you fill in the missing bits.
Cheers
Graham