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...)
6 use_symlinks
=" --symlink"
11 echo "Copying autotool files instead of using symlinks."
14 echo "Using symlinks to autotool files (use --no-symlinks to copy instead)."
21 if ! command -v $1 >/dev
/null
2>&1 ; then
22 echo "Missing program '$1'."
27 for prog
in autoconf automake libtool pkg-config
; do
31 if test $
(uname
-s) != "Darwin" ; then
35 test $test_program_errors -ne 1 ||
exit 1
37 #-------------------------------------------------------------------------------
41 if test $
(uname
-s) = "OpenBSD" ; then
42 # OpenBSD needs these environment variables set.
43 if test -z "$AUTOCONF_VERSION" ; then
45 export AUTOCONF_VERSION
46 echo "Defaulting to use AUTOCONF_VERSION version ${AUTOCONF_VERSION}."
48 echo "Using AUTOCONF_VERSION version ${AUTOCONF_VERSION}."
50 if test -z "$AUTOMAKE_VERSION" ; then
52 export AUTOMAKE_VERSION
53 echo "Defaulting to use AUTOMAKE_VERSION version ${AUTOMAKE_VERSION}."
55 echo "Using AUTOMAKE_VERSION version ${AUTOMAKE_VERSION}."
60 test -n "$srcdir" && cd "$srcdir"
62 echo "Updating build configuration files for FLAC, please wait...."
65 autoreconf
--install $use_symlinks --force
66 #./configure "$@" && echo