summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 62380353bd5981d0c5880ab7911251615c1d084e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

set -e

test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.

olddir=`pwd`
cd "$srcdir"

if automake-1.11 --version > /dev/null 2>&1; then
  automake_suffix='-1.11'
else
  automake_suffix=''
fi

mkdir -p m4 aux
intltoolize --force
gtkdocize --docdir docs --flavour no-tmpl
aclocal${automake_suffix}
autoheader
automake${automake_suffix} --add-missing
autoconf

CFLAGS=${CFLAGS=-ggdb}
LDFLAGS=${LDFLAGS=-Wl,-O1}
export CFLAGS LDFLAGS

cd "$olddir"

if test -z "$NOCONFIGURE"; then
  "$srcdir"/configure "$@"
fi