Add support for FreeBSD's iic I2C framework.

This commit is contained in:
mmdolze
2013-04-07 11:45:27 +00:00
parent 1bc222b080
commit 03bc533aff
3 changed files with 52 additions and 11 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ else
fi
x_ac_have_i2c=no
AC_CHECK_HEADERS([linux/i2c-dev.h], [x_ac_have_i2c=yes])
AC_CHECK_HEADERS([linux/i2c-dev.h dev/iicbus/iic.h], [x_ac_have_i2c=yes])
if test "$x_ac_have_i2c" = yes; then
AC_DEFINE(HAVE_I2C,[1],[Define to 1 if you have the i2c headers])
fi