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 37
|
#!/bin/bash
if automake --version >/dev/null 2>&1; then
:
else
echo "You need to have automake installed to build this package"
DIE=1
fi
if autoconf --version >/dev/null 2>&1; then
:
else
echo "You need to have autoconf installed to build this package"
DIE=1
fi
if libtoolize --version >/dev/null 2>&1; then
:
elif glibtoolize --version >/dev/null 2>&1; then # macOS
:
else
echo "You need to have libtool installed to build this package"
DIE=1
fi
if pkg-config --version >/dev/null 2>&1; then
:
else
echo "You need to have pkg-config installed to build this package"
DIE=1
fi
# bail out as scheduled
test "0$DIE" -gt 0 && exit 1
echo "Running: autoreconf -i && ./configure $@"
autoreconf -f -i -Wno-portability && ./configure "$@"
|