aboutsummaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct12
1 files changed, 11 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index b5020601..cc098b85 100644
--- a/SConstruct
+++ b/SConstruct
@@ -151,6 +151,7 @@ libvmime_sources = [
'utility/progressListener.cpp', 'utility/progressListener.hpp',
'utility/random.cpp', 'utility/random.hpp',
'utility/smartPtr.cpp', 'utility/smartPtr.hpp',
+ 'utility/smartPtrInt.cpp', 'utility/smartPtrInt.hpp',
'utility/stream.cpp', 'utility/stream.hpp',
'utility/stringProxy.cpp', 'utility/stringProxy.hpp',
'utility/stringUtils.cpp', 'utility/stringUtils.hpp',
@@ -634,6 +635,8 @@ if env['with_tls'] == 'yes':
env.ParseConfig('pkg-config --cflags --libs ' + libgnutls_pc)
+env.Append(CXXFLAGS = ['-pthread'])
+
# Generate help text for command line options
Help(opts.GenerateHelpText(env))
@@ -860,6 +863,7 @@ config_hpp.write("""
// Additional defines
#define VMIME_HAVE_GETADDRINFO 1
+#define VMIME_HAVE_PTHREAD 1
#endif // VMIME_CONFIG_HPP_INCLUDED
@@ -961,7 +965,7 @@ Default(libVmime)
if env['build_tests'] == 'yes':
if env['debug'] == 'yes':
env = env.Copy()
- env.Append(LIBS = ['cppunit', 'dl', packageVersionedGenericName + '-debug'])
+ env.Append(LIBS = ['cppunit', 'dl', packageVersionedGenericName + '-debug', 'pthread'])
env.Append(LIBPATH=['.'])
Default(
env.Program(
@@ -1320,6 +1324,8 @@ AM_PROG_CC_C_O
AM_ICONV
+OST_LIB_PTHREAD # from GNU Commons C++
+
#
# Some checks
@@ -1713,6 +1719,10 @@ if test "x$VMIME_DETECT_PLATFORM" = "xposix"; then
AC_CHECK_FUNC(getaddrinfo, [VMIME_ADDITIONAL_DEFINES="$VMIME_ADDITIONAL_DEFINES HAVE_GETADDRINFO"])
fi
+# -- pthreads (POSIX)
+
+ACX_PTHREAD([VMIME_ADDITIONAL_DEFINES="$VMIME_ADDITIONAL_DEFINES HAVE_PTHREAD"])
+
""")