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
gettext ; do
19 test $test_program_errors -ne 1 ||
exit 1
21 #-------------------------------------------------------------------------------
25 if test $
(uname
-s) = "OpenBSD" ; then
26 # OpenBSD needs these environment variables set.
29 export AUTOCONF_VERSION
30 export AUTOMAKE_VERSION
34 test -n "$srcdir" && cd "$srcdir"
36 echo "Updating build configuration files for FLAC, please wait...."
40 #./configure "$@" && echo