Initial commit for the telepathy-people library
[platform/upstream/folks.git] / autogen.sh
1 #!/bin/sh
2 set -e
3
4 gtkdocize || exit 1
5
6 if test -n "$AUTOMAKE"; then
7     : # don't override an explicit user request
8 elif automake-1.11 --version >/dev/null 2>/dev/null && \
9      aclocal-1.11 --version >/dev/null 2>/dev/null; then
10     # If we have automake-1.11, use it. This is the oldest version (=> least
11     # likely to introduce undeclared dependencies) that will give us
12     # --enable-silent-rules support.
13     AUTOMAKE=automake-1.11
14     export AUTOMAKE
15     ACLOCAL=aclocal-1.11
16     export ACLOCAL
17 fi
18
19 autoreconf -i -f
20
21 run_configure=true
22 for arg in $*; do
23     case $arg in
24         --no-configure)
25             run_configure=false
26             ;;
27         *)
28             ;;
29     esac
30 done
31
32 if test $run_configure = true; then
33     ./configure "$@"
34 fi