summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake105
1 files changed, 105 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..1e09437
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,105 @@
+###########################################
+# #
+# Improvements and feedback are welcome #
+# #
+# This file is released under GPL >= 3 #
+# #
+###########################################
+
+# required stuff
+find_package( TQt )
+find_package( TDE )
+
+tde_setup_architecture_flags( )
+
+include(TestBigEndian)
+test_big_endian(WORDS_BIGENDIAN)
+
+tde_setup_largefiles( )
+
+
+##### check for gcc visibility support
+
+if( WITH_GCC_VISIBILITY )
+ tde_setup_gcc_visibility( )
+endif( WITH_GCC_VISIBILITY )
+
+
+##### check for aRts
+
+pkg_search_module( ARTS arts )
+find_library( ARTSKDE artskde )
+
+if( ARTS_FOUND AND ARTSKDE )
+ set( ARTS_LIBRARIES artskde-shared artsflow artsflow_idl kmedia2_idl soundserver_idl )
+ else()
+ tde_message_fatal( "aRts is required but was not found on your system." )
+endif()
+
+
+##### check for X11
+
+find_package( X11 )
+message( STATUS "Found X11_XTest_INCLUDE_PATH: ${X11_XTest_INCLUDE_PATH}" )
+message( STATUS "Found X11_XTest_LIB: ${X11_XTest_LIB}" )
+message( STATUS "Found X11_dpms_INCLUDE_PATH: ${X11_dpms_INCLUDE_PATH}" ) #kmousetool.cpp kmousetoolui.ui
+message( STATUS "Found X11_Xext_LIB: ${X11_Xext_LIB}" )
+
+
+##### check for akode
+
+if( WITH_AKODE )
+pkg_search_module( AKODE akode )
+
+if( NOT AKODE_FOUND )
+ tde_message_fatal( "akode support has been requested but was not found on your system" )
+endif()
+endif( WITH_AKODE )
+
+
+
+
+
+##### check for alsa
+
+if( WITH_ALSA )
+pkg_search_module( ALSA alsa )
+
+if( ALSA_FOUND )
+ check_include_file( "sys/time.h" HAVE_SYS_TIME )
+ check_include_file( "time.h" HAVE_TIME )
+
+ if( HAVE_SYS_TIME AND HAVE_TIME )
+ set( TIME_WITH_SYS_TIME 1 )
+ elseif( HAVE_SYS_TIME OR HAVE_TIME )
+ set( HAVE_SYS_TIME_H 1 )
+ endif()
+ else()
+ tde_message_fatal( "alsa support has been requested but was not found on your system." )
+endif()
+endif( WITH_ALSA )
+
+
+##### check for gstreamer
+
+if( WITH_GSTREAMER )
+pkg_search_module( GSTREAMER gstreamer-1.0>=1.0.0 gstreamer-0.10>=0.10.0 )
+pkg_search_module( GLIB2 glib-2.0 )
+
+if( NOT GSTREAMER_FOUND )
+ tde_message_fatal( "Gstreamer support has been requested but gstreamer was not found on your system." )
+endif()
+
+message( STATUS "gstreamer version: ${GSTREAMER_VERSION}" )
+endif( WITH_GSTREAMER )
+
+
+##### look for <kspeech.h> header
+
+find_path( KTTS_KSPEECH_DIR NAMES kspeech.h
+HINTS
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+ ${TDE_INCLUDE_DIR}/tde
+)
+message( STATUS "KTTS_KSPEECH_DIR header's path: ${KTTS_KSPEECH_DIR}" )