/rusxmms/rcctools

To get this branch, use:
bzr branch http://suren.me/webbzr/rusxmms/rcctools

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2007-04-15 01:10:43 UTC
  • Revision ID: Arch-1:ds@dside.dyndns.org--darksoft-2004%rcctools--main--0.1--base-0
initial import

(automatically generated log message)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
PROG=`basename $0`
 
4
 
 
5
KEYFILE=rcc-recode.c
 
6
 
 
7
# Some OS's have multiple versions (autoconf259, etc.) and don't have an 
 
8
# autoconf binary
 
9
 
 
10
AUTOCONF=`which autoconf`
 
11
if test x"${AUTOCONF}" != x -a -f ${AUTOCONF}
 
12
then
 
13
    AUTOCONF=autoconf
 
14
    AUTOMAKE=automake
 
15
    ACLOCAL=aclocal
 
16
    LIBTOOLIZE=libtoolize
 
17
    AUTOHEADER=autoheader
 
18
else
 
19
    FINDPATH=`echo ${PATH}|sed -e 's,:, ,g'` 
 
20
    AUTOCONF=`find ${FINDPATH} -name "autoconf*"|sort -r|head -1`
 
21
    AUTOMAKE=`find ${FINDPATH} -name "automake*"|sort -r|head -1`
 
22
    ACLOCAL=`find ${FINDPATH} -name "aclocal*"|sort -r|head -1`
 
23
    LIBTOOLIZE=`find ${FINDPATH} -name "libtoolize*"|sort -r|head -1`
 
24
    AUTOHEADER=`find /usr/bin /usr/local/bin -name "autoheader*"|sort -r|head -1`
 
25
    echo "$0: autoconf: using ${AUTOCONF}"
 
26
    echo "$0: automake: using ${AUTOMAKE}"
 
27
    echo "$0: aclocal: using ${ACLOCAL}"
 
28
    echo "$0: libtoolize: using ${LIBTOOLIZE}"
 
29
    echo "$0: autoheader: using ${AUTOHEADER}"
 
30
fi
 
31
 
 
32
GETTEXTIZE_FLAGS=--no-changelog
 
33
AUTOPOINT_FLAGS=
 
34
LIBTOOLIZE_FLAGS=--copy
 
35
 
 
36
# Some OS's require /usr/local/share/aclocal
 
37
 
 
38
if test ! -d /usr/local/share/aclocal
 
39
then
 
40
  ACLOCAL_FLAGS=''
 
41
else
 
42
  ACLOCAL_FLAGS='-I /usr/local/share/aclocal'
 
43
fi
 
44
AUTOHEADER_FLAGS=-Wall
 
45
AUTOMAKE_FLAGS='--add-missing --copy -Wall'
 
46
AUTOCONF_FLAGS=-Wno-obsolete
 
47
 
 
48
die()
 
49
{
 
50
    err=$?
 
51
    echo "$PROG: exited by previous error(s), return code was $err" >&2
 
52
    exit 1
 
53
}
 
54
 
 
55
if [ ! -f $KEYFILE ]
 
56
then
 
57
    echo "$PROG: key-file \`$KEYFILE' not found, exiting." >&2
 
58
    echo "$PROG: hint: you should run $PROG from top-level sourse directory." >&2
 
59
    exit 1
 
60
fi
 
61
 
 
62
# gettextize ${GETTEXTIZE_FLAGS}
 
63
# autopoint ${AUTOPOINT_FLAGS}
 
64
# xml-i18n-toolize       || die
 
65
# intltoolize            || die
 
66
${LIBTOOLIZE} ${LIBTOOLIZE_FLAGS} --force || die
 
67
${ACLOCAL} ${ACLOCAL_FLAGS}        || die
 
68
${AUTOHEADER} ${AUTOHEADER_FLAGS}  || die
 
69
${AUTOMAKE} ${AUTOMAKE_FLAGS}      || die
 
70
${AUTOCONF} ${AUTOCONF_FLAGS}      || die
 
71