From 170f601887e8e3bd21da7bf784a1cd2bf54c8d74 Mon Sep 17 00:00:00 2001 From: Brian Levin Date: Sat, 30 May 2020 11:51:01 +0200 Subject: [PATCH] Added code to allow homebrew dylib during installation. --- MacOSX/configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"