diff --git a/MacOSX/configure b/MacOSX/configure index 9409c9f8..6600d9de 100755 --- a/MacOSX/configure +++ b/MacOSX/configure @@ -47,9 +47,10 @@ LIBUSB_DIR=$(pkg-config --variable=libdir libusb-1.0) LIBUSB_ARCHIVE="$LIBUSB_DIR"/libusb-1.0.a LIBUSB_CFLAGS=$(pkg-config --cflags --static libusb-1.0) LIBUSB_LIBS=$(pkg-config --libs --static libusb-1.0) +LIBUSB_IS_HOMEBREW=$(which brew 2> /dev/null) -if ls "$LIBUSB_DIR"/libusb-1.0*.dylib 2> /dev/null -then +ls -1 "$LIBUSB_DIR"/libusb-1.0*.dylib > /dev/null 2>&1 +if [ "$?" ] && [ ! -f $LIBUSB_IS_HOMEBREW ]; then echo -en $RED echo "*****************************" echo "Dynamic library libusb found in $LIBUSB_DIR"