forked from corellium/usbfluxd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·36 lines (31 loc) · 1.04 KB
/
autogen.sh
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
28
29
30
31
32
33
34
35
36
#!/bin/sh
echo "You could also just run autoreconf instead of this script, but whatever"
# shellcheck disable=SC2181
gprefix=$(which glibtoolize 2>&1 >/dev/null)
if [ $? -eq 0 ]; then
echo "Running glibtoolize"
glibtoolize --force --install --copy --automake
else
echo "Running libtoolize"
libtoolize --force --install --copy --automake
fi
echo "Running aclocal"
aclocal -I m4 --install
echo "Running autoheader"
autoheader --force -Wall
echo "Running automake"
automake --add-missing --force-missing --copy -Wall
echo "Running autoconf"
autoconf --force -Wall
requires_pkgconfig=$(which pkg-config 2>&1 >/dev/null)
if [ $? -ne 0 ]; then
echo "Missing required pkg-config. Please install it on your system and run again."
fi
if test -n "${gprefix}"; then export gprefix; fi
if test -n "{requires_pkgconfig}"; then export requires_pkgconfig; fi
if [ -z "${NOCONFIGURE}" ]; then
echo "Running generated configure script..."
./configure "$@"
else
echo "NOCONFIGURE set; skipping running configure script (from autogen.sh, at least)"
fi