+AC_MSG_CHECKING([for libftdi FT232H device support])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include <stdio.h>
+#include <ftdi.h>
+ ]], [[
+enum ftdi_chip_type x = TYPE_232H;
+ ]])], [
+ AC_DEFINE([HAS_ENUM_FT232H], [1],
+ [Support FT232H with FTD2XX or libftdi.])
+ has_enum_ft232h=yes
+ ], [
+ has_enum_ft232h=no
+ ])
+ AC_MSG_RESULT([$has_enum_ft232h])
+
+ if test $has_enum_ft232h = no; then
+ AC_MSG_WARN([You need a newer libftdi version (0.20 or later).])
+ fi
+