check for alsa-lib 1.0.18, now required
[jack.git] / autogen.sh
blob27c201141c0430420e78cf20814ac782acb7df1b
1 #!/bin/sh
4 # on OS X, which(1) returns 0 even when it can't find a program
7 if type libtoolize >/dev/null 2>&1
8 then
9 LIBTOOLIZE=libtoolize
10 else
11 if which glibtoolize >/dev/null
12 then
13 # on the Mac it's called glibtoolize for some reason
14 LIBTOOLIZE=glibtoolize
15 else
16 echo "libtoolize not found"
17 exit 1
21 $LIBTOOLIZE --force 2>&1 | sed '/^You should/d' || {
22 echo "libtool failed, exiting..."
23 exit 1
26 aclocal $ACLOCAL_FLAGS || {
27 echo "aclocal \$ACLOCAL_FLAGS where \$ACLOCAL_FLAGS= failed, exiting..."
28 exit 1
31 autoheader || {
32 echo "autoheader failed, exiting..."
33 exit 1
36 automake --add-missing --foreign || {
37 echo "automake --add-missing --foreign failed, exiting..."
38 exit 1
41 autoconf || {
42 echo "autoconf failed, exiting..."
43 exit 1
46 if test x$1 = x--run-conf; then
47 echo "because of \"$1\" Running ./configure --enable-maintainer-mode $@..."
48 ./configure --enable-maintainer-mode $@