darwin: downgrade error message on failure to open interface to info
[platform/upstream/libusb.git] / autogen.sh
index 782bec7..2ffb10e 100755 (executable)
@@ -1,18 +1,10 @@
 #!/bin/sh
 
-# use libtoolize if available, otherwise look for glibtoolize (darwin)
-if (libtoolize --version) < /dev/null > /dev/null 2>&1; then
-  LIBTOOLIZE=libtoolize
-elif (glibtoolize --version) < /dev/null > /dev/null 2>&1; then
-  LIBTOOLIZE=glibtoolize
-else
-  echo "libtoolize or glibtoolize was not found! Please install libtool."
-  exit
-fi
+set -e
+
+srcdir="$(dirname "$0")"
 
-$LIBTOOLIZE --copy --force || exit 1
-aclocal || exit 1
-autoheader || exit 1
-autoconf || exit 1
-automake -a -c || exit 1
-./configure --enable-maintainer-mode --enable-examples-build $*
+"$srcdir"/bootstrap.sh
+if [ -z "$NOCONFIGURE" ]; then
+    exec "$srcdir"/configure --enable-examples-build --enable-tests-build "$@"
+fi