use AC_CHECK_TOOL for libusb-config
authorMike Frysinger <vapier@gentoo.org>
Tue, 22 Jun 2010 22:36:00 +0000 (18:36 -0400)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 25 Jun 2010 07:43:21 +0000 (09:43 +0200)
commita7d6d342469d298ef1307b58cfc098fe711f03ab
treea9a1a1623e95fc4b333722cddbf219f762eee425
parent4aee4ad2acf69807605ced163e54667265100273
use AC_CHECK_TOOL for libusb-config

AC_PATH_PROG is for build tools while AC_PATH_TOOL is for the host tools.
Since we want a libusb that is for the host machine and not the build
machine, use the TOOL variant.

I don't personally see the point in using the full path either since the
short name will be found in a PATH lookup, so further change the macro
from the PATH variant to the CHECK variant.

Also drop the incorrect third argument of $PATH.  The third argument is
a fall back value, not the path to search.  Ignoring that, $PATH is the
default value anyways, so no need to specify it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
configure.in