service: add support for service-db
[dconf.git] / autogen.sh
blob3973ddf9c632a27eb8e5c3462306296abe6f616e
1 #!/bin/sh
3 set -e
5 test -n "$srcdir" || srcdir=`dirname "$0"`
6 test -n "$srcdir" || srcdir=.
8 olddir=`pwd`
9 cd "$srcdir"
11 if automake-1.11 --version &> /dev/null; then
12 automake_suffix='-1.11'
13 else
14 automake_suffix=''
17 mkdir -p m4 aux
18 intltoolize --force
19 gtkdocize --docdir docs --flavour no-tmpl
20 aclocal${automake_suffix} ${ACLOCAL_FLAGS}
21 autoheader
22 automake${automake_suffix} --add-missing --foreign
23 autoconf
25 CFLAGS=${CFLAGS=-ggdb}
26 LDFLAGS=${LDFLAGS=-Wl,-O1}
27 export CFLAGS LDFLAGS
29 cd "$olddir"
31 if test -z "$NOCONFIGURE"; then
32 "$srcdir"/configure "$@"