From 8b12682035e2ae92a29a9ce12abc5fbcf38b1192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 26 Mar 2017 15:58:46 +0200 Subject: Initial cmake conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- xine_artsplugin/ConfigureChecks.cmake | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 xine_artsplugin/ConfigureChecks.cmake (limited to 'xine_artsplugin/ConfigureChecks.cmake') 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" ) -- cgit v1.2.1