more consistent naming of MIDI ports (vs. audio); drop use of ALSA seq client ID...
[jack.git] / autogen.sh
blobf57c472991dc97e3a79f8179110bcaec89b977d7
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--no-conf; then
47 echo "Running ./configure --enable-maintainer-mode $@..."
48 ./configure --enable-maintainer-mode $@