summaryrefslogtreecommitdiff
path: root/bootstrap.sh
blob: 506440b9762f0fec96231efe6cbe2df0aaf39878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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

# run autotools on haiku package
cd libusb/os/haiku || exit 1
$LIBTOOLIZE --copy --force || exit 1
aclocal || exit 1
autoconf || exit 1
automake -a -c || exit 1
cd ../../..

$LIBTOOLIZE --copy --force || exit 1
aclocal || exit 1
autoheader || exit 1
autoconf || exit 1
automake -a -c || exit 1