summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 33eb9dff692fb5582a0f17359154db6fd8d39b19 (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
#!/bin/sh
set -e

echo 'Running gtkdocize'
gtkdocize

echo 'Running autoreconf -i --force'
autoreconf -i --force

# Honor NOCONFIGURE for compatibility with gnome-autogen.sh
if test x"$NOCONFIGURE" = x; then
    run_configure=true
    for arg in $*; do
        case $arg in
            --no-configure)
                run_configure=false
                ;;
            *)
                ;;
        esac
    done
else
    run_configure=false
fi

default_args="--enable-gtk-doc --enable-mcd-plugins --enable-gnome-keyring=auto"

if test $run_configure = true; then
    echo "Running ./configure $default_args $*"
    ./configure $default_args "$@"
fi