Josh Coalson | 176eb56 | 2001-06-06 19:54:54 +0000 | [diff] [blame] | 1 | #!/bin/sh |
Josh Coalson | c7c1a8a | 2006-11-17 06:50:19 +0000 | [diff] [blame] | 2 | # Run this to set up the build system: configure, makefiles, etc. |
Max Horn | 66c0a58 | 2012-12-12 21:33:52 +0100 | [diff] [blame] | 3 | # We trust that the user has a recent enough autoconf & automake setup |
| 4 | # (not older than a few years...) |
Timothy B. Terriberry | d75cb67 | 2013-02-07 12:33:03 -0800 | [diff] [blame] | 5 | set -e |
| 6 | |
Erik de Castro Lopo | 619b43d | 2013-03-18 19:35:30 +1100 | [diff] [blame^] | 7 | if test $(uname -s) = "OpenBSD" ; then |
| 8 | # OpenBSD needs these environment variables set. |
| 9 | AUTOCONF_VERSION=2.69 |
| 10 | AUTOMAKE_VERSION=1.11 |
| 11 | export AUTOCONF_VERSION |
| 12 | export AUTOMAKE_VERSION |
| 13 | fi |
| 14 | |
Timothy B. Terriberry | d75cb67 | 2013-02-07 12:33:03 -0800 | [diff] [blame] | 15 | srcdir=`dirname $0` |
| 16 | test -n "$srcdir" && cd "$srcdir" |
| 17 | |
| 18 | echo "Updating build configuration files for FLAC, please wait...." |
| 19 | |
Erik de Castro Lopo | a53e85b | 2013-01-17 20:13:33 +1100 | [diff] [blame] | 20 | touch config.rpath |
Timothy B. Terriberry | d75cb67 | 2013-02-07 12:33:03 -0800 | [diff] [blame] | 21 | autoreconf -isf |
| 22 | #./configure "$@" && echo |