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

Changeset 6764


Ignore:
Timestamp:
Mar 4, 2014, 7:32:16 PM (4 years ago)
Author:
bless@…
Message:
  • added check for ssl, crypto, ipq, netfilter libs
Location:
qos-nslp/trunk
Files:
2 edited

Legend:

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

    r6459 r6764  
    1616AC_PROG_CPP
    1717
    18 #if test -d "../protlib"; then
    19 #   AC_CONFIG_SUBDIRS([../protlib])
    20 #fi
    21 #if test -d "../ntlp"; then
    22 #   AC_CONFIG_SUBDIRS([../ntlp])
    23 #fi
    24 #if test -d "../qspec"; then
    25 #   AC_CONFIG_SUBDIRS([../qspec])
    26 #fi
     18AM_PROG_AR
     19
    2720
    2821AC_CHECK_LIB([cppunit], [main])
     
    5144
    5245AC_PROG_RANLIB
     46
     47#check for C libs
     48AC_CHECK_LIB([ssl], [SSL_CTX_new],  , [AC_MSG_FAILURE("OpenSSL is not installed")])
     49AC_CHECK_LIB([crypto], [EVP_PKEY_new],  , [AC_MSG_FAILURE("OpenSSL is not installed")])
    5350
    5451#check for unordered map
     
    8885AM_CONDITIONAL(USE_WITH_FLOWINFO, test "$use_flowinfo" = yes)
    8986
     87## libnetfilter_queue or obsolete libipq
     88AC_ARG_ENABLE([nfq],
     89        [AS_HELP_STRING([--enable-nfq], [compile with libnetfilter_queue support (default: disabled)])],
     90        [protlib_with_nfq=$enableval],
     91        [protlib_with_nfq=no])
     92
     93
    9094# SCTP USE
    9195AC_ARG_ENABLE([sctp],
     
    101105        [qosnslp_logging=yes])
    102106AM_CONDITIONAL(QOSNSLP_DISABLE_LOGGING, test "$qosnslp_logging" = no)
     107
     108#LIB NETFILTER_QUEUE
     109AM_CONDITIONAL(PROTLIB_WITH_NFQ, test "$protlib_with_nfq" = yes)
     110if test $protlib_with_nfq = yes; then
     111        AC_CHECK_LIB([netfilter_queue],[nfq_get_payload],,[AC_MSG_ERROR([cannot find libnetfilter_queue, probably you need to install libnetfilter-queue-dev first])])
     112else
     113        AC_CHECK_LIB([ipq], [ipq_get_packet],,[AC_MSG_ERROR([cannot find libipq, probably you need to install iptables-dev(el) first])])
     114fi
    103115
    104116# Benchmark
  • qos-nslp/trunk/src/Makefile.am

    r6720 r6764  
    5454qosnslpd_SOURCES = qosnslpd.cpp
    5555
    56 qosnslpd_LDADD = -L. -l$(QOSNSLP_LLIB) $(LD_QSPEC_LIB) $(LD_AUTH_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lipq -lssl -lcrypto -lrt $(LD_SCTP_LIB)
     56# -lipq -lssl -lcrypto should be added by LIBS from configure.ac
     57qosnslpd_LDADD = -L. -l$(QOSNSLP_LLIB) $(LD_QSPEC_LIB) $(LD_AUTH_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lrt $(LD_SCTP_LIB)
    5758
    5859
    5960client_SOURCES = client.cpp
    6061
    61 client_LDADD = -L. -l$(QOSNSLP_LLIB) $(LD_QSPEC_LIB) $(LD_AUTH_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lipq -lssl -lcrypto -lrt $(LD_SCTP_LIB)
     62client_LDADD = -L. -l$(QOSNSLP_LLIB) $(LD_QSPEC_LIB) $(LD_AUTH_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lrt $(LD_SCTP_LIB)
    6263
    6364
    6465vlsp_client_SOURCES = vlsp-client.cpp
    6566
    66 vlsp_client_LDADD = -L. -l$(QOSNSLP_LLIB) $(LD_QSPEC_LIB) $(LD_AUTH_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lipq -lssl -lcrypto -lrt $(LD_SCTP_LIB)
     67vlsp_client_LDADD = -L. -l$(QOSNSLP_LLIB) $(LD_QSPEC_LIB) $(LD_AUTH_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lrt $(LD_SCTP_LIB)
    6768
    6869auth_client_SOURCES = auth-client.cpp
    6970
    70 auth_client_LDADD = -L. -l$(QOSNSLP_LLIB) $(LD_QSPEC_LIB) $(LD_AUTH_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lipq -lssl -lcrypto -lrt $(LD_SCTP_LIB)
     71auth_client_LDADD = -L. -l$(QOSNSLP_LLIB) $(LD_QSPEC_LIB) $(LD_AUTH_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lrt $(LD_SCTP_LIB)
    7172
    7273
Note: See TracChangeset for help on using the changeset viewer.