summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-12 17:56:39 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-12 17:56:39 -0500
commite2c5ea4cdad7dbb560be87a7d3c894e980b5ab6f (patch)
treeb2717634a496f982c82b13c6aa67252caad85268 /ConfigureChecks.cmake
parent1346f6898707e6a4d95abee07c3d1608fc056998 (diff)
parent68cfc4fec0fed7ef4da9f03da68bd61900654ee3 (diff)
downloadtdebase-e2c5ea4cdad7dbb560be87a7d3c894e980b5ab6f.tar.gz
tdebase-e2c5ea4cdad7dbb560be87a7d3c894e980b5ab6f.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdebase
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 6e35ca7db..21ec42001 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -14,6 +14,20 @@
tde_setup_architecture_flags( )
+
+##### check for libdl ###########################
+
+set( DL_LIBRARIES dl )
+check_library_exists( ${DL_LIBRARIES} dlopen /lib HAVE_LIBDL )
+if( NOT HAVE_LIBDL )
+ unset( DL_LIBRARIES )
+ check_function_exists( dlopen HAVE_DLOPEN )
+ if( HAVE_DLOPEN )
+ set( HAVE_LIBDL 1 )
+ endif( HAVE_DLOPEN )
+endif( NOT HAVE_LIBDL )
+
+
# termios.h (tdm, tdeioslave)
if( BUILD_TDM OR BUILD_TDEIOSLAVES )
check_include_file( termios.h HAVE_TERMIOS_H )