Move checking for I2C headers to configure.in. Check for FreeBSD's iic
headers as well.
This commit is contained in:
@@ -160,6 +160,12 @@ else
|
||||
AC_MSG_WARN([Can't talk to the parallel port, disabling drivers that use it.])
|
||||
fi
|
||||
|
||||
x_ac_have_i2c=no
|
||||
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
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_DIRENT
|
||||
AC_HEADER_STDC
|
||||
|
||||
Reference in New Issue
Block a user