mirror of
https://github.com/Cxbx-Reloaded/libusb.git
synced 2025-03-04 07:57:30 +00:00

* Fix naked "exit", which no exit code, to prevent a build failure from being noticed automatically if a build dependency is lacking. * Also printed error message to stderr rather than stdout.
20 lines
481 B
Bash
Executable File
20 lines
481 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# 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." 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
$LIBTOOLIZE --copy --force || exit 1
|
|
aclocal || exit 1
|
|
autoheader || exit 1
|
|
autoconf || exit 1
|
|
automake -a -c || exit 1
|