2 # Run this to set up the build system: configure, makefiles, etc.
3 # We trust that the user has a recent enough autoconf & automake setup
4 # (not older than a few years...)
8 function test_program {
9 if ! command -v $1 >/dev/null 2>&1 ; then
10 echo "Missing program '$1'."
15 for prog in autoconf automake libtool pkg-config ; do
19 if test $(uname -s) != "Darwin" ; then
23 test $test_program_errors -ne 1 || exit 1
25 #-------------------------------------------------------------------------------
29 if test $(uname -s) = "OpenBSD" ; then
30 # OpenBSD needs these environment variables set.
33 export AUTOCONF_VERSION
34 export AUTOMAKE_VERSION
38 test -n "$srcdir" && cd "$srcdir"
40 echo "Updating build configuration files for FLAC, please wait...."
44 #./configure "$@" && echo