summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-06-08 02:08:01 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-06-08 02:08:08 +0200
commitb42e97be7195ea6106468a70cb68981a6472ad0e (patch)
treea69d729fe7cc7f325af28e82a25a8a15c19d5965 /ConfigureChecks.cmake
parent68c89a9ce90e6911364e2e69305dcb43274eb650 (diff)
downloadtdemultimedia-b42e97be7195ea6106468a70cb68981a6472ad0e.tar.gz
tdemultimedia-b42e97be7195ea6106468a70cb68981a6472ad0e.zip
cmake: Add other missing checks
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e67c454194b6b4a2ed68b4e1124613a0b05a4d69)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake13
1 files changed, 11 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 12c977ef..c5b7c0fe 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -85,7 +85,11 @@ find_package( TDE )
check_include_file( stdint.h HAVE_STDINT_H )
check_include_file( inttypes.h HAVE_INTTYPES_H )
+check_include_file( getopt.h HAVE_GETOPT_H )
+check_include_file( pthread.h HAVE_LIBPTHREAD )
+check_include_file( alsa/asoundlib.h HAVE_ALSA_ASOUNDLIB_H )
+check_include_file( sys/asoundlib.h HAVE_SYS_ASOUNDLIB_H )
check_include_file( soundcard.h HAVE_SOUNDCARD_H )
check_include_file( sys/soundcard.h HAVE_SYS_SOUNDCARD_H )
check_include_file( machine/soundcard.h HAVE_MACHINE_SOUNDCARD_H )
@@ -106,11 +110,16 @@ endif( NOT HAVE_LIBDL )
# ALSA
if( WITH_ALSA )
- find_package( ALSA )
+ pkg_check_modules( ALSA alsa>=0.5 )
if( NOT ALSA_FOUND )
tde_message_fatal( "ALSA support is requested, but was not found on your system" )
endif( NOT ALSA_FOUND )
- set( HAVE_LIBASOUND2 1 )
+ if( NOT ALSA_VERSION VERSION_LESS "0.9" )
+ set( HAVE_LIBASOUND2 1 )
+ set( HAVE_ARTS_LIBASOUND2 1 )
+ else()
+ set( HAVE_ARTS_LIBASOUND 1 )
+ endif()
endif( WITH_ALSA )