1 #ifdef SILC_DIST_CRYPTO
3 # lib/silccrypt/configure.ad
5 # Author: Pekka Riikonen <priikone@silcnet.org>
7 # Copyright (C) 2006 - 2007 Pekka Riikonen
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
19 if test x$compile_libs = xtrue; then
21 AC_MSG_NOTICE([configuring crypto library])
26 if test "${pic_mode:-default}" != "yes" ; then
29 # Don't enable ASM AES with shared libs as the code doesn't support PIC.
30 if test x$have_assembler = xtrue -a "$enable_shared" != "yes"; then
32 AC_DEFINE([SILC_AES_ASM], [], [SILC_AES_ASM])
36 if test x$have_assembler = xtrue -a "$enable_shared" != "yes"; then
38 AC_DEFINE([SILC_AES_ASM], [], [SILC_AES_ASM])
47 SILC_ADD_CC_FLAGS(SILC_CRYPTO, -fno-regmove)
48 if test x$summary_debug = xno -a x$want_cc_optimizations = xtrue; then
49 SILC_ADD_CC_FLAGS(SILC_CRYPTO, -fomit-frame-pointer -O3)
52 AC_SUBST(SILC_CRYPTO_CFLAGS)
55 lib/silccrypt/Makefile
56 #ifdef SILC_DIST_INPLACE
57 lib/silccrypt/tests/Makefile
58 #endif SILC_DIST_INPLACE
63 # AM_CONDITIONAL is so bad that it itself cannot be defined in conditional
64 AM_CONDITIONAL(SILC_AES_ASM, test x$aes_asm = xtrue)
66 #endif SILC_DIST_CRYPTO