|
|
@ -79,6 +79,10 @@ set( DL_LIBRARIES dl )
|
|
|
|
check_library_exists( ${DL_LIBRARIES} dlopen /lib HAVE_LIBDL )
|
|
|
|
check_library_exists( ${DL_LIBRARIES} dlopen /lib HAVE_LIBDL )
|
|
|
|
if( NOT HAVE_LIBDL )
|
|
|
|
if( NOT HAVE_LIBDL )
|
|
|
|
unset( DL_LIBRARIES )
|
|
|
|
unset( DL_LIBRARIES )
|
|
|
|
|
|
|
|
check_function_exists( dlopen HAVE_DLOPEN )
|
|
|
|
|
|
|
|
if( HAVE_DLOPEN )
|
|
|
|
|
|
|
|
set( HAVE_LIBDL 1 )
|
|
|
|
|
|
|
|
endif( HAVE_DLOPEN )
|
|
|
|
endif( NOT HAVE_LIBDL )
|
|
|
|
endif( NOT HAVE_LIBDL )
|
|
|
|
|
|
|
|
|
|
|
|
find_package( Threads )
|
|
|
|
find_package( Threads )
|
|
|
@ -88,7 +92,7 @@ find_package( Threads )
|
|
|
|
include( CheckFunctionExists )
|
|
|
|
include( CheckFunctionExists )
|
|
|
|
|
|
|
|
|
|
|
|
set( bak_CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} )
|
|
|
|
set( bak_CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} )
|
|
|
|
set( CMAKE_REQUIRED_LIBRARIES dl )
|
|
|
|
set( CMAKE_REQUIRED_LIBRARIES ${DL_LIBRARIES} )
|
|
|
|
check_function_exists( dlerror HAVE_DLERROR )
|
|
|
|
check_function_exists( dlerror HAVE_DLERROR )
|
|
|
|
check_function_exists( strcmp HAVE_STRCMP )
|
|
|
|
check_function_exists( strcmp HAVE_STRCMP )
|
|
|
|
check_function_exists( strchr HAVE_STRCHR )
|
|
|
|
check_function_exists( strchr HAVE_STRCHR )
|
|
|
|