remove check for version > 0.100 (fails with jacknone)
[libflashsupport-jack.git] / bootstrap.sh
blobf8e4e8217397fbd5479d877f53032edb4f04c0a2
1 #!/bin/bash
3 # This file is part of libflashsupport-pulse.
5 # libflashsupport-pulse is free software; you can redistribute it
6 # and/or modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either version
8 # 2 of the License, or (at your option) any later version.
10 # libflashsupport-pulse is distributed in the hope that it will be
11 # useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with libflashsupport-pulse; if not, write to the Free
17 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 # 02111-1307 USA.
20 VERSION=1.9
22 run_versioned() {
23 local P
24 local V
26 V=$(echo "$2" | sed -e 's,\.,,g')
28 if [ -e "`which $1$V 2> /dev/null`" ] ; then
29 P="$1$V"
30 else
31 if [ -e "`which $1-$2 2> /dev/null`" ] ; then
32 P="$1-$2"
33 else
34 P="$1"
38 shift 2
39 "$P" "$@"
42 set -ex
44 if [ "x$1" = "xam" ] ; then
45 run_versioned automake "$VERSION" -a -c --foreign
46 ./config.status
47 else
48 rm -rf autom4te.cache
49 rm -f config.cache
51 test "x$LIBTOOLIZE" = "x" && LIBTOOLIZE=libtoolize
53 "$LIBTOOLIZE" -c --force
54 run_versioned aclocal "$VERSION"
55 run_versioned autoconf 2.59 -Wall
56 run_versioned autoheader 2.59
57 run_versioned automake "$VERSION" --copy --foreign --add-missing
59 if test "x$NOCONFIGURE" = "x"; then
60 CFLAGS="-g -O0" ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var "$@"
61 make clean