X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=configure.ac;h=fb5514ee690714218590b4d9c09ebb38f072b87a;hp=fb01e1bfc7902ef9c68f15531ff23de7bf2e71bb;hb=18f7a2d07274d59c1e676455eae48a8aa450c761;hpb=442f1540d5066b9ef091cab677b505f2c8196313 diff --git a/configure.ac b/configure.ac index fb01e1bfc7..fb5514ee69 100644 --- a/configure.ac +++ b/configure.ac @@ -585,7 +585,7 @@ case $host in AC_DEFINE([IS_WIN32], [1], [1 if building for Win32.]) AC_DEFINE([IS_DARWIN], [0], [0 if not building for Darwin.]) ;; - *-mingw*) + *-mingw* | *-msys*) is_mingw=yes is_win32=yes parport_use_ppdev=no @@ -1142,6 +1142,8 @@ PKG_CHECK_MODULES([LIBUSB1], [libusb-1.0], [ [AC_MSG_WARN([libusb-1.x older than 1.0.9 detected, consider updating])]) LIBUSB1_CFLAGS=`echo $LIBUSB1_CFLAGS | sed 's/-I/-isystem /'` AC_MSG_NOTICE([libusb-1.0 header bug workaround: LIBUSB1_CFLAGS changed to "$LIBUSB1_CFLAGS"]) + PKG_CHECK_EXISTS([libusb-1.0 >= 1.0.16], + [AC_DEFINE([HAVE_LIBUSB_GET_PORT_NUMBERS], [1], [Define if your libusb has libusb_get_port_numbers()])]) ], [ use_libusb1=no AC_MSG_WARN([libusb-1.x not found, trying legacy libusb-0.1 as a fallback; consider installing libusb-1.x instead])