libusb-win32 recently changed the name of their header file from usb.h

to lusb0_usb.h (for whatever reason).  Autoprobe for the filename
during configure, and include whatever is appropriate.



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1043 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch
2012-01-20 09:39:56 +00:00
parent 7c85f6875e
commit 9250b467f7
7 changed files with 47 additions and 5 deletions

View File

@@ -69,6 +69,8 @@ if test x$have_libusb = xyes; then
;;
esac
AC_DEFINE([HAVE_LIBUSB])
AC_CHECK_HEADERS([usb.h])
AC_CHECK_HEADERS([lusb0_usb.h])
fi
AC_SUBST(LIBUSB, $LIBUSB)