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 abcdb15..5425556 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}" )