Files
asterisk/bootstrap.sh
George Joseph 2afd523fc4 build_tools: Backport from 18
There are several build fixes that never made it into certified/18.9.
Unfortunately the commits that contained the fixes also contained other
stuff that won't cherry-pick into cert so the build files had to be
just copied from 18.

(cherry picked from commit fb966116fa)
2025-06-02 13:37:25 +00:00

36 lines
763 B
Bash
Executable File

#!/bin/sh
check_for_app() {
$1 --version 2>&1 >/dev/null
if [ $? != 0 ]
then
echo "Please install $1 and run bootstrap.sh again!"
exit 1
fi
}
# OpenBSD: pkg_add autoconf%2.69 automake%1.16 metaauto
test -n "$AUTOCONF_VERSION" || export AUTOCONF_VERSION=2.69
test -n "$AUTOMAKE_VERSION" || export AUTOMAKE_VERSION=1.16
check_for_app autoconf
check_for_app autoheader
check_for_app automake
check_for_app aclocal
gen_configure() {
echo "Generating the configure script for $1 ..."
shift
aclocal -I "$@"
autoconf
autoheader
automake --add-missing --copy 2>/dev/null
}
gen_configure "Asterisk" autoconf `find third-party -path '*/*/*' -prune -o -type d -print | xargs -I {} echo -I {}`
cd menuselect
gen_configure "menuselect" ../autoconf
exit 0