diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-03-30 21:38:25 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-03-30 21:38:25 +0200 |
commit | ef92c2b00d6b9085b392da3708d2e6a7aabdb65e (patch) | |
tree | 97aaa354f7581e61b361e2f07091dce1c1150245 /kstars/ConfigureChecks.cmake | |
parent | 324c040645bcaa127717113a4a6cf6cf8693f938 (diff) | |
download | tdeedu-ef92c2b00d6b9085b392da3708d2e6a7aabdb65e.tar.gz tdeedu-ef92c2b00d6b9085b392da3708d2e6a7aabdb65e.zip |
Detect the presence of the sys/io.h header and the ioperm function
instead of listing a long list of architectures.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kstars/ConfigureChecks.cmake')
-rw-r--r-- | kstars/ConfigureChecks.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kstars/ConfigureChecks.cmake b/kstars/ConfigureChecks.cmake index 41184537..4df776a8 100644 --- a/kstars/ConfigureChecks.cmake +++ b/kstars/ConfigureChecks.cmake @@ -48,6 +48,11 @@ if( WITH_V4L ) tde_message_fatal( "video4linux support is requested, but videodev2.h or videodev.h was not found on your system" ) endif( ) endif( ) + + check_include_file( "sys/io.h" HAVE_SYS_IO_H ) + if( HAVE_SYS_IO_H ) + check_symbol_exists( "ioperm" "sys/io.h" HAVE_IOPERM ) + endif( ) endif( ) |