NSIS-ka
A free C++ implementation of NSIS protocols

Ignore:
Timestamp:
Mar 5, 2014, 4:01:52 PM (4 years ago)
Author:
bless@…
Message:
  • better autotools checks for libraries
File:
1 edited

Legend:

Unmodified
Added
Removed
  • natfw-nslp/trunk/configure.ac

    r6282 r6768  
    1515AC_PROG_MAKE_SET
    1616AC_PROG_CPP
     17AM_PROG_AR
     18
    1719
    1820AC_CHECK_LIB([cppunit], [main])
     
    4244AC_PROG_RANLIB
    4345
     46#check for C libs
     47AC_CHECK_LIB([ssl], [SSL_CTX_new],  , [AC_MSG_FAILURE("OpenSSL is not installed")])
     48AC_CHECK_LIB([crypto], [EVP_PKEY_new],  , [AC_MSG_FAILURE("OpenSSL is not installed")])
     49
     50
    4451#check for unordered map
    4552[SAVECXXFLAGS=$CXXFLAGS; CXXFLAGS="-std=c++0x"]
    4653AC_LANG_CPLUSPLUS
     54
    4755
    4856AC_CACHE_CHECK([whether unordered_map is available],
     
    6270
    6371AM_CONDITIONAL(NSIS_NO_WARN_HASHMAP, test "$ac_cv_unordered_map_exists" = yes)
     72
     73## libnetfilter_queue or obsolete libipq
     74AC_ARG_ENABLE([nfq],
     75        [AS_HELP_STRING([--enable-nfq], [compile with libnetfilter_queue support (default: disabled)])],
     76        [protlib_with_nfq=$enableval],
     77        [protlib_with_nfq=no])
     78
     79
     80
     81#LIB NETFILTER_QUEUE
     82AM_CONDITIONAL(PROTLIB_WITH_NFQ, test "$protlib_with_nfq" = yes)
     83if test $protlib_with_nfq = yes; then
     84        AC_CHECK_LIB([netfilter_queue],[nfq_get_payload],,[AC_MSG_ERROR([cannot find libnetfilter_queue, probably you need to install libnetfilter-queue-dev first])])
     85else
     86        AC_CHECK_LIB([ipq], [ipq_get_packet],,[AC_MSG_ERROR([cannot find libipq, probably you need to install iptables-dev(el) first])])
     87fi
    6488
    6589AC_ARG_ENABLE([sctp],
Note: See TracChangeset for help on using the changeset viewer.