endif()
endif()
-# Try again to see if we have libboost-context
-find_package(Boost 1.42 COMPONENTS context)
-set(Boost_FOUND 1) # We don't care of whether this component is missing
-
-if(Boost_FOUND AND Boost_CONTEXT_FOUND)
- # We should use feature detection for this instead:
- if (Boost_VERSION LESS 105600)
- message("Found Boost.Context API v1")
- set(HAVE_BOOST_CONTEXT 1)
+# Try again to see if we have libboost-context,
+# but only if the lib is not embeeded in the jar file to reduce the dependencies from the Java point of view
+if(enable_lib_in_jar)
+ message(" (do not check for boost-context as you are building a full jarfile)")
+ set(HAVE_BOOST_CONTEXT 0)
+else()
+ find_package(Boost 1.42 COMPONENTS context)
+ set(Boost_FOUND 1) # We don't care of whether this component is missing
+
+ if(Boost_FOUND AND Boost_CONTEXT_FOUND)
+ # We should use feature detection for this instead:
+ if (Boost_VERSION LESS 105600)
+ message("Found Boost.Context API v1")
+ set(HAVE_BOOST_CONTEXT 1)
+ else()
+ message("Found Boost.Context API v2")
+ set(HAVE_BOOST_CONTEXT 2)
+ endif()
else()
- message("Found Boost.Context API v2")
- set(HAVE_BOOST_CONTEXT 2)
+ message (" boost : found.")
+ message (" boost-context: missing. Install libboost-context-dev for this optional feature.")
+ set(HAVE_BOOST_CONTEXT 0)
endif()
-else()
- message (" boost : found.")
- message (" boost-context: missing. Install libboost-context-dev for this optional feature.")
- set(HAVE_BOOST_CONTEXT 0)
endif()
# Checks for header libraries functions.
CHECK_INCLUDE_FILE("socket.h" HAVE_SOCKET_H)
CHECK_INCLUDE_FILE("stat.h" HAVE_STAT_H)
CHECK_INCLUDE_FILE("sys/stat.h" HAVE_SYS_STAT_H)
+CHECK_INCLUDE_FILE("sys/ptrace.h" HAVE_SYS_PTRACE_H)
CHECK_INCLUDE_FILE("windows.h" HAVE_WINDOWS_H)
CHECK_INCLUDE_FILE("errno.h" HAVE_ERRNO_H)
CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
if(enable_smpi)
include(FindGFortran)
- #really checks for objdump for privatization
- find_package(BinUtils QUIET)
- mark_as_advanced(BinUtils_DIR)
SET(HAVE_SMPI 1)
-
- if( NOT "${CMAKE_OBJDUMP}" MATCHES "CMAKE_OBJDUMP-NOTFOUND" AND HAVE_MMAP)
+ if("${CMAKE_SYSTEM}" MATCHES "Linux")
+ SET(USE_LIBUTIL 0)
SET(HAVE_PRIVATIZATION 1)
- else()
+ elseif("${CMAKE_SYSTEM}" MATCHES "^FreeBSD")
+ SET(USE_LIBUTIL 0)
SET(HAVE_PRIVATIZATION 0)
endif()
endif()