diff options
author | reinelt <> | 2005-03-28 19:39:23 +0000 |
---|---|---|
committer | reinelt <> | 2005-03-28 19:39:23 +0000 |
commit | af796d8411d9bac1143ba6deaf43a2275704a1da (patch) | |
tree | c57f210e1737e6fefd97492e849cc593ec59532a /drivers.m4 | |
parent | 55476cb223f943a19effc402d2f3021df4cf7474 (diff) | |
download | lcd4linux-af796d8411d9bac1143ba6deaf43a2275704a1da.tar.gz |
[lcd4linux @ 2005-03-28 19:39:14 by reinelt]
HD44780/I2C patch from Luis merged (still does not work for me)
Diffstat (limited to 'drivers.m4')
-rw-r--r-- | drivers.m4 | 30 |
1 files changed, 26 insertions, 4 deletions
@@ -137,12 +137,18 @@ done AC_MSG_RESULT([done]) -PARPORT="no" -SERIAL="no" + +# generic display drivers TEXT="no" GRAPHIC="no" IMAGE="no" +# generiv I/O drivers +PARPORT="no" +SERIAL="no" +I2C="no" + + if test "$BECKMANNEGLE" = "yes"; then TEXT="yes" SERIAL="yes" @@ -189,6 +195,7 @@ fi if test "$HD44780" = "yes"; then TEXT="yes" PARPORT="yes" + I2C="yes" DRIVERS="$DRIVERS drv_HD44780.o" AC_DEFINE(WITH_HD44780,1,[HD44780 driver]) fi @@ -287,14 +294,16 @@ if test "$X11" = "yes"; then GRAPHIC="yes" DRIVERS="$DRIVERS drv_X11.o" DRVLIBS="$DRVLIBS -L$ac_x_libraries -lX11" - AC_DEFINE(WITH_X11,1,[X11 driver]) + AC_DEFINE(WITH_X11, 1, [X11 driver]) fi fi + if test "$DRIVERS" = ""; then - AC_MSG_ERROR([You should include at least one driver...]) + AC_MSG_ERROR([You should activate at least one driver...]) fi + # generic text driver if test "$TEXT" = "yes"; then DRIVERS="$DRIVERS drv_generic_text.o" @@ -306,6 +315,7 @@ if test "$GRAPHIC" = "yes"; then DRIVERS="$DRIVERS drv_generic_graphic.o" fi + # generic parport driver if test "$PARPORT" = "yes"; then DRIVERS="$DRIVERS drv_generic_parport.o" @@ -316,5 +326,17 @@ if test "$SERIAL" = "yes"; then DRIVERS="$DRIVERS drv_generic_serial.o" fi +# generic i2c driver +if test "$I2C" = "yes"; then + if test "$has_i2c" = true; then + AC_DEFINE(WITH_I2C, 1, [I2C bus driver]) + DRIVERS="$DRIVERS drv_generic_i2c.o" + else + I2C="no" + AC_MSG_WARN(I2C include files not found: I2C bus driver disabled) + fi +fi + + AC_SUBST(DRIVERS) AC_SUBST(DRVLIBS) |