dconf 0.23.2
[dconf.git] / autogen.sh
blob831054a878237821700b2ee5b0469fdf6ca35ab1
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 build-aux
18 gtkdocize --docdir docs --flavour no-tmpl
19 aclocal${automake_suffix}
20 autoheader
21 automake${automake_suffix} --add-missing
22 autoconf
24 CFLAGS=${CFLAGS=-ggdb}
25 LDFLAGS=${LDFLAGS=-Wl,-O1}
26 export CFLAGS LDFLAGS
28 cd "$olddir"
30 if test -z "$NOCONFIGURE"; then
31 "$srcdir"/configure "$@"