diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-09-01 14:07:45 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-09-01 14:07:45 +0200 |
commit | 8c55294ea9134c32f80d1a399a6a49ecdc9264b2 (patch) | |
tree | a21f32ae1501abf56c21f49f588503580a2c12ba /ConfigureChecks.cmake | |
parent | 50d8d75d890e16e8d4d3f4dd51de05812c0c3a1f (diff) | |
download | libssh-8c55294ea9134c32f80d1a399a6a49ecdc9264b2.tar.gz libssh-8c55294ea9134c32f80d1a399a6a49ecdc9264b2.tar.xz libssh-8c55294ea9134c32f80d1a399a6a49ecdc9264b2.zip |
Openssl implementation of threading + default imp
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index e8f01a90..4a1738be 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -58,6 +58,12 @@ check_include_file(openssl/blowfish.h HAVE_OPENSSL_BLOWFISH_H) set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS}) check_include_file(openssl/des.h HAVE_OPENSSL_DES_H) +include(FindThreads) + +if(CMAKE_HAVE_PTHREAD_H) + set(HAVE_PTHREAD_H) +endif(CMAKE_HAVE_PTHREAD_H) + # FUNCTIONS if (UNIX) @@ -114,6 +120,10 @@ if (WITH_DEBUG_CALLTRACE) set(DEBUG_CALLTRACE 1) endif (WITH_DEBUG_CALLTRACE) +if (CMAKE_HAVE_PTHREAD_CREATE) + set(HAVE_PTHREAD) +endif (CMAKE_HAVE_PTHREAD_CREATE) + # ENDIAN if (NOT WIN32) test_big_endian(WORDS_BIGENDIAN) |