diff options
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 45 |
1 files changed, 35 insertions, 10 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 03eeb89..1030fef 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -100,17 +100,26 @@ if ( WITH_SYSTEM_LIBSAMPLERATE ) endif ( ) -##### hal ####################################### - -if( WITH_HAL ) - pkg_search_module( HAL hal ) - if( HAL_FOUND ) - set ( HAVE_HAL 1 ) - else ( ) - tde_message_fatal( "hal is required, but was not found on your system" ) - endif( ) +##### tdehwlib ################################## + +if( WITH_TDEHWLIB ) + tde_save_and_set( CMAKE_REQUIRED_INCLUDES "${TDE_INCLUDE_DIR}" ) + check_cxx_source_compiles( " + #include <tdemacros.h> + #ifndef __TDE_HAVE_TDEHWLIB + #error tdecore is not build with tdehwlib + #endif + int main() { return 0; } " + HAVE_TDEHWLIB + ) + tde_restore( CMAKE_REQUIRED_INCLUDES ) + if( NOT HAVE_TDEHWLIB ) + tde_message_fatal( "tdehwlib is required, but not built in tdecore" ) + endif( NOT HAVE_TDEHWLIB ) + set( TDEHW_LIBRARIES "tdehw-shared" ) endif( ) + ##### arts ###################################### if( WITH_ARTS ) @@ -174,13 +183,14 @@ if( WITH_TAGLIB ) if( NOT TAGLIB_FOUND ) tde_message_fatal( "taglib is requested, but was not found on your system" ) endif( ) + set( HAVE_TAGLIB 1 ) endif( ) ##### mad ####################################### if( WITH_MAD ) - pkg_search_module( MAD mad ) + pkg_search_module( MAD libmad mad ) if( NOT MAD_FOUND ) tde_message_fatal( "mad is requested, but was not found on your system" ) endif( ) @@ -233,3 +243,18 @@ if( WITH_LAME ) tde_message_fatal( "lame is requested, but was not found on your system" ) endif( ) endif( ) + + +##### check specific architecture dependant support + +if( CMAKE_SYSTEM_PROCESSOR MATCHES "i.86" ) + + # MMX support + message( STATUS "Performing MMX support test" ) + cmake_host_system_information( RESULT HAVE_X86_MMX QUERY HAS_MMX ) + if( HAVE_X86_MMX ) + message( STATUS "Performing MMX support test - Success" ) + set( CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -DHAVE_X86_MMX" ) + endif( ) + +endif( ) |