summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2019-04-06 19:01:11 +0900
committerSlávek Banko <slavek.banko@axis.cz>2019-05-04 17:25:51 +0200
commite2e56f4e616b111f263627abdc6293b598b31037 (patch)
treeab3d1ce13ed1b0a627e61a9e90c3e9f39f0b778c /ConfigureChecks.cmake
parent145adceab1c03df193c66249badc2a768f142ba0 (diff)
downloadtdeutils-e2e56f4e616b111f263627abdc6293b598b31037.tar.gz
tdeutils-e2e56f4e616b111f263627abdc6293b598b31037.zip
Fix NetBSD APM support
NetBSD APM is supported other than i386 too, emulate API, so change to detect with MI support header. Additionally, catch up support codes to others. Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit f8424834b6a36b4d3e43e3af199e55c18fb913b8)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 44ca497..1b48407 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -80,6 +80,10 @@ if( BUILD_KLAPTOPDAEMON )
tde_message_fatal( "stdint.h header is required, but was not found on your system" )
endif( NOT HAVE_STDINT_H )
+# NetBSD apm support
+ check_include_files( "unistd.h;machine/apm_bios.h" HAVE_MACHINE_APM_BIOS_H )
+ check_include_files( "unistd.h;dev/apm/apmio.h" HAVE_DEV_APM_APMIO_H )
+
# xtest
pkg_search_module( XTEST xtst )
if( XTEST_FOUND )