diff --git a/configure.ac b/configure.ac index f2ecb22..6477ec1 100644 --- a/configure.ac +++ b/configure.ac @@ -121,6 +121,8 @@ then CFLAGS="$CFLAGS -msse2" fi + + AC_ARG_ENABLE([intfilter], [AS_HELP_STRING([--enable-intfilter@<:@=(32|64|128|native)@:>@], [use integers of specific size @<:@default=64@:>@ for filtering. faster but limits filter length to: 6 for 32-bit, 12 for 64-bit, 24 for 128-bit @<:@default=no@:>@])], @@ -310,6 +312,19 @@ yes|pcre2) ;; esac + +AC_MSG_CHECKING([whether ARGON2ID13 is supported by libsodium]) +AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[int alg = crypto_pwhash_ALG_ARGON2ID13;(void) alg;]] + )], + [AC_MSG_RESULT([yes])] + [MYDEFS="$MYDEFS -DPASSPHRASE"], + [AC_MSG_RESULT([no])] +) + + # recreate dir tree, because otherwise gcc will fuck up (cd "$srcdir" && find ed25519 -type d) | xargs mkdir -p