]> git.sesse.net Git - vlc/commitdiff
Check for -ldl. Now I can compile a few objects on Linux...
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 4 Feb 2008 18:58:19 +0000 (18:58 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 4 Feb 2008 18:58:19 +0000 (18:58 +0000)
extras/buildsystem/cmake/include/config.cmake

index abcdb15ece11b35ed71b4e8af2b3d32d9cf2ed5a..5425556d8b486f6045fce2354b3d4fd5e9c59cde 100644 (file)
@@ -74,8 +74,11 @@ if(NOT HAVE_GETADDRINFO)
 endif(NOT HAVE_GETADDRINFO)
 
 find_library(HAVE_ICONV iconv)
+# FIXME: this will break on *BSD:
 set( ICONV_CONST " " )
 
+check_library_exists(dl dlopen "" HAVE_DL_DLOPEN)
+
 ###########################################################
 # Other check
 ###########################################################
@@ -152,6 +155,7 @@ command_to_configvar( "whoami" VLC_COMPILE_BY )
 command_to_configvar( "hostname" VLC_COMPILE_HOST )
 command_to_configvar( "hostname" VLC_COMPILE_DOMAIN )
 command_to_configvar( "${CMAKE_C_COMPILER} --version" VLC_COMPILER )
+# FIXME: WTF? this is not the configure line!
 command_to_configvar( "${CMAKE_C_COMPILER} --version" CONFIGURE_LINE )
 set( VLC_COMPILER "${CMAKE_C_COMPILER}" )