diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-06-08 02:08:01 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-06-08 02:08:01 +0200 |
commit | e67c454194b6b4a2ed68b4e1124613a0b05a4d69 (patch) | |
tree | e503f43e4b7bbd7e2c0dd27cb2f2d94948d1b02b /ConfigureChecks.cmake | |
parent | d81209c6f41eb3f939b8d380c4326adf8b886403 (diff) | |
download | tdemultimedia-e67c454194b6b4a2ed68b4e1124613a0b05a4d69.tar.gz tdemultimedia-e67c454194b6b4a2ed68b4e1124613a0b05a4d69.zip |
cmake: Add other missing checks
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 13 |
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 ) |