~ubuntu-branches/ubuntu/vivid/linphone/vivid

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2009-10-14 08:26:02 UTC
  • mfrom: (1.3.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20091014082602-751618nxdjooja3l
Tags: 3.2.1-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
 
AM_VERSION="1.9"
 
3
AM_VERSION="1.10"
4
4
if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
5
 
        # automake-1.9 (recommended) is not available on Fedora 8
 
5
        # automake-1.10 (recommended) is not available on Fedora 8
6
6
        AUTOMAKE=automake
7
7
        ACLOCAL=aclocal
8
8
else
10
10
        AUTOMAKE=automake-${AM_VERSION}
11
11
fi
12
12
 
 
13
if test -f /opt/local/bin/glibtoolize ; then
 
14
        # darwin
 
15
        LIBTOOLIZE=/opt/local/bin/glibtoolize
 
16
else
 
17
        LIBTOOLIZE=libtoolize
 
18
fi
 
19
if test -d /opt/local/share/aclocal ; then
 
20
        ACLOCAL_ARGS="-I /opt/local/share/aclocal"
 
21
fi
 
22
 
 
23
if test -f /opt/local/bin/intltoolize ; then
 
24
        #darwin
 
25
        INTLTOOLIZE=/opt/local/bin/intltoolize
 
26
else
 
27
        #on mingw, it is important to invoke intltoolize with an absolute path to avoid a bug
 
28
        INTLTOOLIZE=/usr/bin/intltoolize
 
29
fi
 
30
 
13
31
echo "Generating build scripts in linphone..."
14
32
set -x
15
 
libtoolize --copy --force
16
 
intltoolize -c --force --automake
 
33
$LIBTOOLIZE --copy --force
 
34
 
 
35
$INTLTOOLIZE -c --force --automake
 
36
$ACLOCAL -I m4 $ACLOCAL_ARGS
17
37
autoheader
18
 
$ACLOCAL -I m4
19
38
$AUTOMAKE --force-missing --add-missing --copy
20
39
autoconf
21
 
rm -rf config.cache
22
40
 
23
41
echo "Generating build scripts in oRTP..."
24
42
cd oRTP && ./autogen.sh && cd -