Specify C linkage for af_vfs.h.
[mirror-ossqm-audiofile.git] / autogen.sh
blob7050ba907fd22937b8cd67bb478809a8b2e867be
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 DIE=0
9 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
10 echo
11 echo "You must have autoconf installed to compile libaudiofile."
12 echo "Download the appropriate package for your distribution,"
13 echo "or get ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.57.tar.gz"
14 echo "(or a newer version if it is available)."
15 DIE=1
18 (libtool --version) < /dev/null > /dev/null 2>&1 || {
19 echo
20 echo "You must have libtool installed to compile libaudiofile."
21 echo "Get ftp://ftp.gnu.org/gnu/libtool/libtool-1.4.2.tar.gz"
22 echo "(or a newer version if it is available)."
23 DIE=1
26 (automake --version) < /dev/null > /dev/null 2>&1 || {
27 echo
28 echo "You must have automake installed to compile libaudiofile."
29 echo "Get ftp://ftp.gnu.org/gnu/automake/automake-1.5.tar.gz"
30 echo "(or a newer version if it is available)."
31 DIE=1
34 if test "$DIE" -eq 1; then
35 exit 1
38 if test -z "$*"; then
39 echo "I am going to run ./configure with no arguments - if you wish "
40 echo "to pass any to it, please specify them on the $0 command line."
43 rootme=`pwd`
44 cd $srcdir
45 libtoolize --copy --force
46 aclocal $ACLOCAL_FLAGS
47 autoheader
48 automake --add-missing
49 autoconf
50 cd $rootme
52 $srcdir/configure "$@"
54 echo
55 echo "Now type 'make' to compile libaudiofile."