Use AC_PATH_TOOL() instead of AC_PATH_PROG() so that we handle cross-compiling sanely.

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1187 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 17 years ago
parent 715abd1fed
commit 63e181fe3f

@ -2,6 +2,8 @@
* configure.ac: Check for libusb before libftdi since the latter needs
the former.
* configure.ac: Use AC_PATH_TOOL() instead of AC_PATH_PROG() so that we
handle cross-compiling sanely.
2008-04-26 Kolja Waschk <kawk>

@ -133,7 +133,7 @@ AS_IF([test "x$with_libusb" != xno], [
esac
LIBS="$LIBS -lusb"
],[
AC_PATH_PROG(LIBUSB_CONFIG, libusb-config, no)
AC_PATH_TOOL(LIBUSB_CONFIG, libusb-config, no)
AS_IF([test "$LIBUSB_CONFIG" != "no"],[
USBLIBS=`$LIBUSB_CONFIG --libs`
USBCFLAGS=`$LIBUSB_CONFIG --cflags`
@ -172,7 +172,7 @@ AS_IF([test "x$with_libftdi" != xno], [
CFLAGS="$CFLAGS -I$with_libftdi -L$with_libftdi"
LIBS="$LIBS -lftdi"
],[
AC_PATH_PROG(LIBFTDI_CONFIG, libftdi-config, no)
AC_PATH_TOOL(LIBFTDI_CONFIG, libftdi-config, no)
AS_IF([test "$LIBFTDI_CONFIG" != "no"],[
LIBS="$LIBS `$LIBFTDI_CONFIG --libs`"
CFLAGS="$CFLAGS `$LIBFTDI_CONFIG --cflags`"

Loading…
Cancel
Save