]> sjero.net Git - linphone/blob - autogen.sh
Merge branch 'master' of git.linphone.org:linphone-private
[linphone] / autogen.sh
1 #!/bin/sh
2
3 #AM_VERSION="1.10"
4 if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
5         # automake-1.10 (recommended) is not available on Fedora 8
6         AUTOMAKE=automake
7         ACLOCAL=aclocal
8 else
9         ACLOCAL=aclocal-${AM_VERSION}
10         AUTOMAKE=automake-${AM_VERSION}
11 fi
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
31 echo "Generating build scripts in linphone..."
32 set -x
33 $LIBTOOLIZE --copy --force
34
35 $INTLTOOLIZE -c --force --automake
36 $ACLOCAL -I m4 $ACLOCAL_ARGS
37 autoheader
38 $AUTOMAKE --force-missing --add-missing --copy
39 autoconf
40
41 echo "Generating build scripts in oRTP..."
42 cd oRTP && ./autogen.sh && cd -
43
44 echo "Generating build scripts in mediastreamer2..."
45 cd mediastreamer2 && ./autogen.sh && cd -