Changeset 67dc06e


Ignore:
Timestamp:
09/14/15 17:45:26 (5 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
91c2acc
Parents:
2b4444f
Message:

Add configure check for libcrypto

traceanon is going to use libcrypto to do the AES operations, so we need
to be able to check if it is available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    ra2dcdad r67dc06e  
    210210        AC_DEFINE([HAVE_LIBWANDIO],1,[compile with libwandio support])
    211211fi
     212
     213AC_CHECK_LIB(crypto, EVP_EncryptInit_ex, cryptofound=1, cryptofound=0)
    212214
    213215# Check for libpcap
     
    472474fi
    473475
     476if test "$cryptofound" = 1; then
     477        AC_DEFINE(HAVE_LIBCRYPTO, 1, [Set to 1 if libcrypto is available])
     478        TOOLS_LIBS="$TOOLS_LIBS -lcrypto"
     479        have_crypto=yes
     480else
     481        have_crypto=no
     482fi
    474483
    475484if test "$have_nsl" = 1; then
     
    654663reportopt "Building man pages/documentation" $libtrace_doxygen
    655664reportopt "Building tracetop (requires libncurses)" $with_ncurses
     665reportopt "Building traceanon with CryptoPan (requires libcrypto)" $have_crypto
    656666
    657667# Report any errors relating to missing bison, flex, etc.
Note: See TracChangeset for help on using the changeset viewer.