summaryrefslogtreecommitdiff
path: root/.pc/tizen.patch/autogen.sh
blob: 326c76a29a4246e62a1f39c38ff9fc6905b18cd2 (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
38
39
40
41
42
43
44
45
#! /bin/sh

LIBTOOLIZE=libtoolize
AUTOMAKE=automake
ACLOCAL=aclocal
AUTOCONF=autoconf
AUTOHEADER=autoheader
GTKDOCIZE=gtkdocize

# Check for binaries

[ "x$(which ${LIBTOOLIZE})x" = "xx" ] && {
    echo "${LIBTOOLIZE} not found. Please install it."
    exit 1
}

[ "x$(which ${AUTOMAKE})x" = "xx" ] && {
    echo "${AUTOMAKE} not found. Please install it."
    exit 1
}

[ "x$(which ${ACLOCAL})x" = "xx" ] && {
    echo "${ACLOCAL} not found. Please install it."
    exit 1
}

[ "x$(which ${AUTOCONF})x" = "xx" ] && {
    echo "${AUTOCONF} not found. Please install it."
    exit 1
}

[ "x$(which ${GTKDOCIZE})x" = "xx" ] && {
    echo "${GTKDOCIZE} not found. Please install it."
    exit 1
}

gtkdocize || exit 1

"${ACLOCAL}" \
&& "${LIBTOOLIZE}" \
&& "${AUTOHEADER}" \
&& "${AUTOMAKE}" --add-missing \
&& "${AUTOCONF}"

$(dirname "${0}")/configure "$@"