From: Michael R. <re...@eu...> - 2005-03-30 21:49:49
|
Hi Luis, > Although you do have ifdef's around my I2C functions, and after I > manually enable I2C by editing config.h, it seems to ignore the > drv_generic_i2c.h file, as it spews out errors at tthe end, and > drv_generic_i2c.c is not being compiled at all... > > What does the configure look for in order to detect I2C as present? Well, editing config.h isn't enough. The drv_generic_i2c.o will not be compiled and linked if configure cannot find the i2c includes (or thinks they're unusable, as it happens here). The detection is done within configure.in, line 57, which sets the variable "has_i2c" to true or false. This variable is checked in drivers.m4, at the very end, and ex-/includes drv_generic_i2c.o, and defines the WITH_I2C preprocessor symbol. configure checks for compiler.h, i2c.h and i2c-dev.h. Take a look at your config.log, it should contain some messages about i2c. bye, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |