aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0935c75..f7deae4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -316,6 +316,14 @@ AC_ARG_ENABLE([sysfsgpio],
AS_HELP_STRING([--enable-sysfsgpio], [Enable building support for programming driven via sysfs gpios.]),
[build_sysfsgpio=$enableval], [build_sysfsgpio=no])
+AS_CASE([$host_os],
+ [linux*], [],
+ [
+ AS_IF([test "x$build_sysfsgpio" = "xyes"], [
+ AC_MSG_ERROR([sysfsgpio is only available on linux])
+ ])
+])
+
AC_ARG_ENABLE([minidriver_dummy],
AS_HELP_STRING([--enable-minidriver-dummy], [Enable the dummy minidriver.]),
[build_minidriver_dummy=$enableval], [build_minidriver_dummy=no])