aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 3b929eea6d1b386a51a527f86a5cacb8cf3263b0 (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
34
35
36
37
#!/bin/sh
set -e

cd $(dirname $0)
mkdir -p libcontextsubscriber/m4

. tools/autogen-helpers.sh

version_check valac VALAC 'valac' 0.7.1 "http://vala-project.org"
version_check asciidoc ASCIIDOC 'asciidoc' 8.2.7 "http://www.methods.co.nz/asciidoc/"
existence_check gtkdocize   
existence_check dot
existence_check source-highlight

gtkdocize

# Autoreconf will overwrite INSTALL, but we have our own version of
# it.

autoreconf -i -f
cp INSTALL.real INSTALL

run_configure=true
for arg in $*; do
    case $arg in
        --no-configure)
            run_configure=false
            ;;
        *)
            ;;
    esac
done

if test $run_configure = true; then
    ./configure "$@"
fi