Change the check for libusb from using usb_open() to

usb_get_string_simple() as the latter is only found in recent enough
versions of libusb.  That way, silently build without USB support
unless a recent version is available.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@480 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2005-06-20 18:15:13 +00:00
parent 899ef71424
commit 556eb032ef
1 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,9 @@ AM_PROG_LEX
AC_CHECK_LIB([termcap], [tputs])
AC_CHECK_LIB([ncurses], [tputs])
AC_CHECK_LIB([readline], [readline])
AC_CHECK_LIB([usb], [usb_open])
# usb_get_string_simple is only available in recent enough
# versions of libusb, so use that as a decision base.
AC_CHECK_LIB([usb], [usb_get_string_simple])
# Checks for header files.
AC_HEADER_STDC