From 8d63798f744cd7232b37e38939517353be111ff0 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 5 Feb 2007 06:26:10 +0000 Subject: only use picoLCD if libusb is available git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@763 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drivers.m4 | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'drivers.m4') diff --git a/drivers.m4 b/drivers.m4 index 32a624e..756e2b7 100644 --- a/drivers.m4 +++ b/drivers.m4 @@ -392,12 +392,15 @@ if test "$NULL" = "yes"; then fi if test "$picoLCD" = "yes"; then - TEXT="yes" - GPIO="yes" - SERIAL="yes" - #I2C="yes" - DRIVERS="$DRIVERS drv_picoLCD.o" - AC_DEFINE(WITH_picoLCD,1,[picoLCD driver]) + if test "$has_usb" = "true"; then + TEXT="yes" + GPIO="yes" + SERIAL="yes" + DRIVERS="$DRIVERS drv_picoLCD.o" + AC_DEFINE(WITH_picoLCD,1,[picoLCD driver]) + else + AC_MSG_WARN(usb.h not found: picoLCD driver disabled) + fi fi if test "$PNG" = "yes"; then -- cgit v1.2.3