3 AC_CONFIG_SRCDIR([main.c])
5 : ${CFLAGS="-O3 -march=native -fomit-frame-pointer"}
10 [AS_HELP_STRING([--enable-ref10],
11 [use ref10 ed25519 implementation @<:@default=yes@:>@])],
13 AS_IF([test "x$ed25519impl" != "x" -a "$ed25519impl" != "ref10"],
14 [AC_ERROR([only one ed25519 implementation can be defined])])
20 AC_ARG_ENABLE([amd64_51_30k],
21 [AS_HELP_STRING([--enable-amd64_51_30k],
22 [use amd64_51_30k ed25519 implementation @<:@default=no@:>@])],
24 AS_IF([test "x$ed25519impl" != "x" -a "$ed25519impl" != "amd64_51_30k"],
25 [AC_ERROR([only one ed25519 implementation can be defined])])
26 ed25519impl="amd64_51_30k"
31 AC_ARG_ENABLE([amd64_64_24k],
32 [AS_HELP_STRING([--enable-amd64_64_24k],
33 [use amd64_64_24k ed25519 implementation @<:@default=no@:>@])],
35 AS_IF([test "x$ed25519impl" != "x" -a "$ed25519impl" != "amd64_64_24k"],
36 [AC_ERROR([only one ed25519 implementation can be defined])])
37 ed25519impl="amd64_64_24k"
42 AS_IF([test "x$ed25519impl" == "x"],[ed25519impl=ref10])
44 AC_ARG_ENABLE([intfilter],
45 [AS_HELP_STRING([--enable-intfilter],
46 [use 64bit integers for filtering. faster but limits filter length @<:@default=no@:>@])],
47 [], [enable_intfilter=no]
49 if test "x$enable_intfilter" = "xyes"
51 FILTERDEF="-DINTFILTER"
56 AC_SUBST(ED25519IMPL,["$ed25519impl"])
57 AC_SUBST(FILTERDEF,["$FILTERDEF"])