AC_PREREQ(2.60)
-AC_INIT([openocd], [0.6.0-dev],
+AC_INIT([openocd], [0.6.0-rc2-dev],
[OpenOCD Mailing List <openocd-devel@lists.sourceforge.net>])
AC_CONFIG_SRCDIR([src/openocd.c])
# In case (1) and (2) we need to know where the package was unpacked.
AC_ARG_WITH(ftd2xx-win32-zipdir,
- AS_HELP_STRING([--with-ftd2xx-win32-zipdir],[Where (CYGWIN/MINGW) the zip file from ftdichip.com was unpacked <default=search>]),
+ AS_HELP_STRING([--with-ftd2xx-win32-zipdir],[Where (CYGWIN/MINGW) the zip file from ftdichip.com was unpacked (default=search)]),
[
# option present
if test -d $with_ftd2xx_win32_zipdir
], [true])
AC_ARG_WITH(ftd2xx-linux-tardir,
- AS_HELP_STRING([--with-ftd2xx-linux-tardir], [Where (Linux/Unix) the tar file from ftdichip.com was unpacked <default=search>]),
+ AS_HELP_STRING([--with-ftd2xx-linux-tardir], [Where (Linux/Unix) the tar file from ftdichip.com was unpacked (default=search)]),
[
# Option present
if test $is_win32 = yes ; then
AC_ARG_WITH(ftd2xx-lib,
AS_HELP_STRING([--with-ftd2xx-lib],
- [Use static or shared ftd2xx libs on default static]),
+ [Use static or shared ftd2xx libs (default=static)]),
[
case "$withval" in
static)
build_bitbang=yes
AC_DEFINE([BUILD_REMOTE_BITBANG], [1], [1 if you want the Remote Bitbang JTAG driver.])
else
- AC_DEFINE([BUILD_REMOTE_BITBNAG], [0], [0 if you don't want the Remote Bitbang JTAG driver.])
+ AC_DEFINE([BUILD_REMOTE_BITBANG], [0], [0 if you don't want the Remote Bitbang JTAG driver.])
fi
#-- Deal with MingW/Cygwin FTD2XX issues
AC_MSG_WARN([You need a newer FTD2XX driver (version 2.04.16 or later).])
fi
+AC_MSG_CHECKING([for ftd2xx FT232H device support])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include "confdefs.h"
+#if IS_WIN32
+#include "windows.h"
+#endif
+#include <stdio.h>
+#include <ftd2xx.h>
+
+DWORD x = FT_DEVICE_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 FTD2XX driver (version 2.08.12 or later).])
+ fi
+
LDFLAGS=$LDFLAGS_SAVE
CFLAGS=$CFLAGS_SAVE
fi
AC_MSG_WARN([You need a newer libftdi version (0.16 or later).])
fi
+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
+
# Restore the 'unexpanded ldflags'
LDFLAGS=$LDFLAGS_SAVE
CFLAGS=$CFLAGS_SAVE