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:
parent
888273589d
commit
aa61cc4b61
|
@ -44,7 +44,9 @@ AM_PROG_LEX
|
||||||
AC_CHECK_LIB([termcap], [tputs])
|
AC_CHECK_LIB([termcap], [tputs])
|
||||||
AC_CHECK_LIB([ncurses], [tputs])
|
AC_CHECK_LIB([ncurses], [tputs])
|
||||||
AC_CHECK_LIB([readline], [readline])
|
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.
|
# Checks for header files.
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
|
|
Loading…
Reference in New Issue