autoconf
[platform/upstream/pulseaudio.git] / bootstrap.sh
1 #!/bin/bash
2 # $Id$
3
4 # This file is part of polypaudio.
5 #
6 # polypaudio is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # polypaudio is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with polypaudio; if not, write to the Free Software Foundation,
18 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19
20 if [ "x$1" = "xam" ] ; then
21     set -ex
22     automake -a -c --foreign
23     ./config.status
24 else 
25     set -ex
26
27     rm -rf autom4te.cache
28     rm -f config.cache
29
30     aclocal
31     libtoolize -c --force
32     autoheader
33     automake -a -c
34     autoconf -Wall
35
36     ./configure --sysconfdir=/etc "$@"
37
38     make clean
39 fi