diff options
author | Slávek Banko <[email protected]> | 2017-03-26 15:58:46 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2017-03-26 15:58:46 +0200 |
commit | 8b12682035e2ae92a29a9ce12abc5fbcf38b1192 (patch) | |
tree | 1cc5c3fe9ef3b23557fc4e9e507fd0d23d007160 /xine_artsplugin/ConfigureChecks.cmake | |
parent | 250d713ff809fa943f614459009d1160e269dcef (diff) | |
download | tdemultimedia-8b12682035e2ae92a29a9ce12abc5fbcf38b1192.tar.gz tdemultimedia-8b12682035e2ae92a29a9ce12abc5fbcf38b1192.zip |
Initial cmake conversion
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'xine_artsplugin/ConfigureChecks.cmake')
-rw-r--r-- | xine_artsplugin/ConfigureChecks.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/xine_artsplugin/ConfigureChecks.cmake b/xine_artsplugin/ConfigureChecks.cmake new file mode 100644 index 00000000..9a1c6c6e --- /dev/null +++ b/xine_artsplugin/ConfigureChecks.cmake @@ -0,0 +1,27 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_save_and_set( CMAKE_REQUIRED_FLAGS "-include X11/Xlib.h" ) +tde_save_and_set( CMAKE_REQUIRED_LIBRARIES "${XEXT_LIBRARIES}" ) +check_symbol_exists( XShmGetEventBase "X11/extensions/XShm.h" HAVE_XSHMGETEVENTBASE ) +tde_restore( CMAKE_REQUIRED_FLAGS ) +tde_restore( CMAKE_REQUIRED_LIBRARIES ) + +if( ${XINE_VERSION} VERSION_LESS "1.2" ) + tde_save_and_set( CMAKE_REQUIRED_LIBRARIES "xine" ) + check_function_exists( _x_ao_new_port HAVE_XINE_X_AO_NEW_PORT ) + if( HAVE_XINE_X_AO_NEW_PORT ) + set( ao_new_port "_x_ao_new_port" CACHE INTERNAL "" FORCE) + else() + check_function_exists( ao_new_port HAVE_XINE_AO_NEW_PORT ) + endif() + tde_restore( CMAKE_REQUIRED_LIBRARIES ) +endif( ${XINE_VERSION} VERSION_LESS "1.2" ) |