From: Marco Trevisan (TreviƱo) Date: Tue, 13 Apr 2021 17:07:46 +0000 (+0200) Subject: autogen: Support being called from external build dir X-Git-Tag: upstream/1.0.25~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1001cb5558cf6679af7bce3114bba1d3bb7b6f7f;p=platform%2Fupstream%2Flibusb.git autogen: Support being called from external build dir Building libusb from another build directory doesn't properly work right now, as calling autogen.sh from there won't work. An example is when using jhbuild to build it. So always use absolute paths to call configure and bootstrap scripts Signed-off-by: Ludovic Rousseau --- diff --git a/autogen.sh b/autogen.sh index 62d68e5..2ffb10e 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,7 +2,9 @@ set -e -./bootstrap.sh +srcdir="$(dirname "$0")" + +"$srcdir"/bootstrap.sh if [ -z "$NOCONFIGURE" ]; then - exec ./configure --enable-examples-build --enable-tests-build "$@" + exec "$srcdir"/configure --enable-examples-build --enable-tests-build "$@" fi diff --git a/bootstrap.sh b/bootstrap.sh index cfd2b45..fc555d5 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -2,6 +2,8 @@ set -e +cd "$(dirname "$0")" + if [ ! -d m4 ]; then mkdir m4 fi diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 1dd1b6a..8d36b28 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11608 +#define LIBUSB_NANO 11609