|
|
|
@ -46,10 +46,14 @@ tde_setup_paths( )
|
|
|
|
|
|
|
|
|
|
##### optional stuff ############################
|
|
|
|
|
|
|
|
|
|
option( WITH_BACKEND_LIBBFD "Build with libbfd backend" "ON" )
|
|
|
|
|
option( WITH_BACKEND_LIBELF "Build with libelf backend" "OFF" )
|
|
|
|
|
option( WITH_BACKEND_READONLY "Build with read-only backend" "OFF" )
|
|
|
|
|
option( WITH_BACKEND_LIBBFD "Build with libbfd backend" ON )
|
|
|
|
|
option( WITH_BACKEND_LIBELF "Build with libelf backend" OFF )
|
|
|
|
|
option( WITH_BACKEND_READONLY "Build with read-only backend" OFF )
|
|
|
|
|
option( WITH_GTK "Build support for GTK" OFF )
|
|
|
|
|
|
|
|
|
|
# NOTE: WITH_GTK build gtk bindings to ease libr in gtk applications.
|
|
|
|
|
# It uses weak linkage, so gtk will be required during build
|
|
|
|
|
# only and not strictly necessary during runtime.
|
|
|
|
|
|
|
|
|
|
#### configure checks ###########################
|
|
|
|
|
|
|
|
|
@ -95,10 +99,12 @@ if( NOT ZLIB_FOUND )
|
|
|
|
|
tde_message_fatal( "zlib are required, but not found on your system" )
|
|
|
|
|
endif( NOT ZLIB_FOUND )
|
|
|
|
|
|
|
|
|
|
pkg_search_module( GTK gtk+-2.0 )
|
|
|
|
|
if( NOT GTK_FOUND )
|
|
|
|
|
if( WITH_GTK )
|
|
|
|
|
pkg_search_module( GTK gtk+-2.0 )
|
|
|
|
|
if( NOT GTK_FOUND )
|
|
|
|
|
tde_message_fatal( "gtk2 is required but was not found on your system" )
|
|
|
|
|
endif( )
|
|
|
|
|
endif( )
|
|
|
|
|
endif( WITH_GTK )
|
|
|
|
|
|
|
|
|
|
set( DL_LIBRARIES dl )
|
|
|
|
|
check_library_exists( ${DL_LIBRARIES} dlopen /lib HAVE_LIBDL )
|
|
|
|
|