]> git.meshlink.io Git - catta/blob - bootstrap.sh
ada993ffa8bcd39c8dda51a9e710e4fbb114b2c2
[catta] / bootstrap.sh
1 #!/bin/sh
2 # $Id$
3
4 # This file is part of avahi.
5 #
6 # avahi is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU Lesser General Public License as
8 # published by the Free Software Foundation; either version 2 of the
9 # License, or (at your option) any later version.
10 #
11 # avahi is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 # License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with avahi; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19 # USA.
20
21 FLAGS="--sysconfdir=/etc --localstatedir=/var --enable-tests --enable-compat-howl --enable-compat-libdns_sd"
22
23 # Feel free to add your own custom flags in here -Lathiat
24
25 case `uname -s` in
26     Darwin)
27     export LIBTOOLIZE=/opt/local/bin/glibtoolize
28     export CFLAGS="-I/opt/local/include"
29     export LDFLAGS="-L/opt/local/lib"
30     export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig"
31     FLAGS="$FLAGS --prefix=/opt/local --disable-pygtk"
32     ;;
33     FreeBSD)
34     cp /usr/local/share/aclocal/libtool15.m4 common
35     cp /usr/local/share/aclocal/pkg.m4 common
36     export LIBTOOLIZE=/usr/local/bin/libtoolize15
37     export CFLAGS="-I/usr/local/include"
38     export LDFLAGS="-L/usr/local/lib"
39     export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
40     FLAGS="$FLAGS --prefix=/opt/ --with-distro=none --disable-python --disable-dbus --disable-glib --disable-gtk"
41     ;;
42     NetBSD)
43     export LIBTOOLIZE=libtoolize
44     export CFLAGS="-I/usr/pkg/include"
45     export LDFLAGS="-L/usr/pkg/lib"
46     export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
47     FLAGS="$FLAGS --disable-monodoc --disable-mono --disable-qt3 --disable-qt4 --disable-xmltoman --prefix=/opt --with-distro=none --disable-python --disable-glib --disable-gtk --disable-manpages"
48     ;;
49     Linux)
50     ;;
51 esac
52
53 case "$USER" in
54     lathiat|trentl)
55     FLAGS="$FLAGS --disable-qt4"
56     ;;
57     sebest)
58     FLAGS="$FLAGS --disable-monodoc --enable-dbus=no --enable-mono=no --enable-qt3=no --enable-qt4=no  --sysconfdir=/etc --localstatedir=/var --prefix=/usr  --disable-manpages --disable-xmltoman"
59     ;;
60 esac
61
62 CFLAGS="$CFLAGS -g -O0" exec ./autogen.sh $FLAGS "$@"