aboutsummaryrefslogtreecommitdiffstats
path: root/drivers.m4
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--drivers.m412
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers.m4 b/drivers.m4
index b844b0f..7c7b942 100644
--- a/drivers.m4
+++ b/drivers.m4
@@ -420,10 +420,14 @@ if test "$PPM" = "yes"; then
fi
if test "$ROUTERBOARD" = "yes"; then
- TEXT="yes"
- GPIO="yes"
- DRIVERS="$DRIVERS drv_RouterBoard.o"
- AC_DEFINE(WITH_ROUTERBOARD,1,[RouterBoard driver])
+ if test "$has_io_h" = "true"; then
+ TEXT="yes"
+ GPIO="yes"
+ DRIVERS="$DRIVERS drv_RouterBoard.o"
+ AC_DEFINE(WITH_ROUTERBOARD,1,[RouterBoard driver])
+ else
+ AC_MSG_WARN(sys/io.h not found: RouterBoard driver disabled)
+ fi
fi
if test "$SAMPLE" = "yes"; then