added MPTCP detection to cmake configuration
@@ -222,6 +222,10 @@ IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
MESSAGE(FATAL_ERROR "libmnl/libmnl.h not found - libmnl installed?")
ENDIF()
FIND_LIBRARY(SCTP_LIB sctp)
+ IF(EXISTS "/proc/sys/net/mptcp/mptcp_enabled")
+ MESSAGE(STATUS "MPTCP found")
+ ADD_DEFINITIONS(-DMPTCP_SUPPORT)
+ ENDIF()
ENDIF()
CHECK_INCLUDE_FILE(jansson.h HAVE_JANSSON_H)
