tests: test read-through functionality
[dconf.git] / autogen.sh
blob3595fa12eadc6367674df99cb6f5be9dd043a7c6
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 2>&1; 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
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 "$@"