(AC_CHECK_LIB[usb]) Fix the generation of HAVE_LIBUSB in ac_cfg.h.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@612 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch
2006-08-17 22:44:34 +00:00
parent 5091836671
commit 74d9580d30
2 changed files with 6 additions and 1 deletions

View File

@@ -47,7 +47,10 @@ AC_CHECK_LIB([readline], [readline])
# 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],
[LIBUSB=-lusb],
[LIBUSB=-lusb
AC_DEFINE([HAVE_LIBUSB],
[1],
[Define to 1 if libusb is available.])],
[LIBUSB=])
AC_SUBST(LIBUSB, $LIBUSB)