dconf cli: more cleanups
[dconf.git] / autogen.sh
blobaaf6544cc75e462c6d80b7abedbc2d5efe847f22
1 #!/bin/sh
3 set -e
5 if [ "$1" = "clean" ]; then
6 rm -f aclocal.m4 configure config.* `find . -name Makefile.in` libtool
7 rm -rf autom4te.cache m4 aux
8 exit
9 fi
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 gtkdocize --docdir docs --flavour no-tmpl
19 aclocal${automake_suffix} ${ACLOCAL_FLAGS}
20 autoheader
21 automake${automake_suffix} --add-missing --foreign
22 autoconf
24 CFLAGS=${CFLAGS=-ggdb -Werror}
25 LDFLAGS=${LDFLAGS=-Wl,-O1}
26 export CFLAGS LDFLAGS
28 if test -z "$NOCONFIGURE"; then
29 ./configure "$@"