On master (9ce1c506a3a5d20b1bf254235bfae48af592d86c) the ENABLE_ARM_SHANI, ENABLE_AVX2, ENABLE_SSE41, and ENABLE_X86_SHANI macros are defined twice in the build system. First time, using the AC_DEFINE macro in the configure script. And second time, in Makefile as a part of CPPFLAGS.
This PR removes such duplication.
This change is required for bitcoin/bitcoin#24773.