mirror of
https://github.com/RPCS3/libusb.git
synced 2026-08-25 10:39:32 -04:00
c74fe3ab70
* The script will not continue if something fails (like a command not found)
20 lines
474 B
Bash
Executable File
20 lines
474 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."
|
|
exit
|
|
fi
|
|
|
|
$LIBTOOLIZE --copy --force || exit 1
|
|
aclocal || exit 1
|
|
autoheader || exit 1
|
|
autoconf || exit 1
|
|
automake -a -c || exit 1
|