- # Don't enable ASM AES with shared libs as the code doesn't support PIC.
- if test x$have_assembler = xtrue -a "$enable_shared" != "yes"; then
- aes_asm=true
- AC_DEFINE([SILC_AES_ASM], [], [SILC_AES_ASM])
+ AC_DEFINE([SILC_SHA256_ASM], [], [SILC_SHA256_ASM])
+
+ if test "${pic_mode:-default}" != "yes" ; then
+ # Don't enable ASM AES with shared libs as the code doesn't support PIC.
+ if test x$have_assembler = xtrue -a "$enable_shared" != "yes"; then
+ aes_asm=true
+ AC_DEFINE([SILC_AES_ASM], [], [SILC_AES_ASM])
+ fi