From 93d751a7c3d5c6c1db576460a7f08bd80a0f3bb9 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 17 May 2007 05:23:46 +0000 Subject: compile error on m68k fixed (debian bug 405898) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@799 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drivers.m4 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'drivers.m4') 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 -- cgit v1.2.3