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

Changeset 4566


Ignore:
Timestamp:
Oct 16, 2009, 12:18:25 AM (8 years ago)
Author:
bless
Message:

still trying

Location:
ntlp/branches/20091014-autotools
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • ntlp/branches/20091014-autotools/configure.ac

    r4560 r4566  
    44AC_PREREQ(2.61)
    55AC_INIT(gist-ka, 0.97, roland.bless@kit.edu)
     6AM_INIT_AUTOMAKE([-Wall -Werror foreign])
    67
    78# Checks for programs.
     
    1112AC_PROG_CPP
    1213
     14AC_CHECK_LIB([ssl], [SSL_CTX_new])
     15AC_CHECK_LIB([ipq], [ipq_get_packet],,[AC_MSG_ERROR([cannot find libipq, probably you need to install iptables-dev(el) first])])
     16AC_CHECK_LIB([pthread], [pthread_create])
     17AC_CHECK_LIB([rt], [clock_gettime])
     18
     19AC_ARG_ENABLE([debug],
     20        [AS_HELP_STRING([--disable-debug], [disable debug code (default: enabled)])],
     21        [protlib_debug=$enableval],
     22        [protlib_debug=yes])
     23AM_CONDITIONAL(PROTLIB_DEBUG, test "$protlib_debug" = yes)
     24
     25AC_ARG_ENABLE([sctp-kern],
     26        [AS_HELP_STRING([--enable-sctp-kern], [compile with SCTP support (default: disabled)])],
     27        [protlib_with_sctp_kern=$enableval],
     28        [protlib_with_sctp_kern=no])
     29AM_CONDITIONAL(PROTLIB_WITH_SCTP_KERN, test "$protlib_with_sctp_kern" = yes)
     30if test $protlib_with_sctp_kern = yes; then
     31        AC_CHECK_HEADERS([netinet/sctp.h], [],
     32                [AC_MSG_ERROR([cannot find netinet/sctp.h in include path.
     33You should consider to compile without SCTP support.])])
     34fi
     35
     36AC_ARG_ENABLE([logging],
     37        [AS_HELP_STRING([--disable-logging], [disable logging output (default: enabled)])],
     38        [protlib_logging=$enableval],
     39        [protlib_logging=yes])
     40AM_CONDITIONAL(PROTLIB_DISABLE_LOGGING, test "$protlib_logging" = no)
     41
     42# check for libipq include directory
     43AC_CHECK_FILE([/usr/include/libipq], [LIBIPQ_INCLUDE=" -I /usr/include/libipq"], [])
     44AC_SUBST([LIBIPQ_INCLUDE])
     45
     46
     47[SAVECXXFLAGS=$CXXFLAGS; CXXFLAGS="-std=c++0x"]
     48AC_LANG_CPLUSPLUS
     49
     50AC_CACHE_CHECK([whether unordered_map is available],
     51                        [ac_cv_unordered_map_exists],
     52[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unordered_map>]],
     53                                [[std::unordered_map<int,int> testmap;]])],
     54                                [ac_cv_unordered_map_exists=yes],
     55                                [ac_cv_unordered_map_exists=no])])
     56[CXXFLAGS=$SAVECXXFLAGS]
     57
     58
     59AM_CONDITIONAL(PROTLIB_NO_WARN_HASHMAP, test "$ac_cv_unordered_map_exists" = yes)
     60
     61
     62# check for RFC3542 availability, if not, we assume at least RFC 2292
     63AC_CHECK_FUNC([inet6_opt_init],[use_rfc2292=no],[use_rfc2292=yes])
     64AM_CONDITIONAL([USE_RFC2292], test "$use_rfc2292" = yes)
     65
     66# Checks for header files.
     67AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
    1368
    1469# Checks for header files.
  • ntlp/branches/20091014-autotools/src/Makefile.am

    r4560 r4566  
    3030dist_gistka_scripts = intercept loadmodules flush gist
    3131
     32LDADD = ../protlib/libprotlib.a
    3233
    33 lib_LIBRARIES = libGIST.a
     34lib_LIBRARIES = libgist.a
     35
    3436
    3537libgist_a_SOURCES = apimessage.cpp apiwrapper.cpp capability.cpp        \
     
    4446        secretmanager.h capability.h gist_exceptions.h routingentry.h   \
    4547        signalingmodule_ntlp.h general_objects.h ntlp_proto.h           \
    46         routingtable.h
     48        routingtable.h pdu/ntlp_pdu.cpp pdu/ntlp_ie.cpp                 \
     49        pdu/nattraversal.cpp pdu/hello.cpp pdu/stackconf.cpp            \
     50        pdu/query_cookie.cpp pdu/mri_est.cpp pdu/stackprop.cpp          \
     51        pdu/nslpdata.cpp pdu/helloid.cpp pdu/resp_cookie.cpp            \
     52        pdu/mri_pc.cpp pdu/mri.cpp pdu/nli.cpp pdu/confirm.cpp          \
     53        pdu/data.cpp pdu/query.cpp pdu/ntlp_errorobject.cpp             \
     54        pdu/sessionid.cpp pdu/response.cpp pdu/ntlp_object.cpp          \
     55        pdu/ntlp_error.cpp
     56
    4757
    4858include_HEADERS = apimessage.h apiwrapper.h flowinfo.h gist_conf.h      \
     
    5060        mri_pc.h msghandle.h nslpdata.h ntlp_global_constants.h         \
    5161        ntlp_ie.h ntlp_object.h ntlp_starter.h objectpool.h             \
    52         poolobject.h sessionid.h
    53 
     62        poolobject.h sessionid.h pdu/query.h pdu/ntlp_pdu.h             \
     63        pdu/hello.cpp pdu/stackprop.h pdu/nattraversal.h                \
     64        pdu/stackconf.h pdu/confirm.h pdu/data.h pdu/helloid.cpp        \
     65        pdu/helloid.h pdu/query_cookie.h pdu/response.h                 \
     66        pdu/ntlp_errorobject.h pdu/hello.h pdu/ntlp_error.h pdu/nli.h   \
     67        pdu/resp_cookie.h
Note: See TracChangeset for help on using the changeset viewer.