… | |
… | |
2 | |
2 | |
3 | AUTOCONF_REQUIRED_VERSION=2.57 |
3 | AUTOCONF_REQUIRED_VERSION=2.57 |
4 | AUTOMAKE_REQUIRED_VERSION=1.7 |
4 | AUTOMAKE_REQUIRED_VERSION=1.7 |
5 | INTLTOOL_REQUIRED_VERSION=0.17 |
5 | INTLTOOL_REQUIRED_VERSION=0.17 |
6 | |
6 | |
|
|
7 | if ! [ -e libev/ev++.h ]; then |
|
|
8 | cat <<EOF |
|
|
9 | ** |
|
|
10 | ** libev/ directory is missing |
|
|
11 | ** |
|
|
12 | ** you need a checkout of libev (http://software.schmorp.de/pkg/libev) |
|
|
13 | ** in the top-level build directory. |
|
|
14 | ** |
|
|
15 | EOF |
|
|
16 | exit 1 |
|
|
17 | fi |
7 | |
18 | |
8 | srcdir=`dirname $0` |
19 | srcdir=`dirname $0` |
9 | test -z "$srcdir" && srcdir=. |
20 | test -z "$srcdir" && srcdir=. |
10 | ORIGDIR=`pwd` |
21 | ORIGDIR=`pwd` |
11 | cd $srcdir |
22 | cd $srcdir |
… | |
… | |
15 | { |
26 | { |
16 | if expr $1 \>= $2 > /dev/null; then |
27 | if expr $1 \>= $2 > /dev/null; then |
17 | echo "yes (version $1)" |
28 | echo "yes (version $1)" |
18 | else |
29 | else |
19 | echo "Too old (found version $1)!" |
30 | echo "Too old (found version $1)!" |
20 | DIE=1 |
31 | # DIE=1 |
21 | fi |
32 | fi |
22 | } |
33 | } |
23 | |
34 | |
24 | DIE=0 |
35 | DIE=0 |
25 | |
36 | |
… | |
… | |
41 | AUTOMAKE=automake-1.7 |
52 | AUTOMAKE=automake-1.7 |
42 | ACLOCAL=aclocal-1.7 |
53 | ACLOCAL=aclocal-1.7 |
43 | else |
54 | else |
44 | echo |
55 | echo |
45 | echo " You must have automake 1.7 installed to compile $PROJECT." |
56 | echo " You must have automake 1.7 installed to compile $PROJECT." |
46 | echo " (or a newer version if it is available)" |
|
|
47 | DIE=1 |
57 | # DIE=1 |
48 | fi |
58 | fi |
49 | |
59 | |
50 | if test x$AUTOMAKE != x; then |
60 | if test x$AUTOMAKE != x; then |
51 | VER=`$AUTOMAKE --version \ |
61 | VER=`$AUTOMAKE --version \ |
52 | | grep automake | sed "s/.* \([0-9.]*\)[-a-z0-9]*$/\1/"` |
62 | | grep automake | sed "s/.* \([0-9.]*\)[-a-z0-9]*$/\1/"` |
… | |
… | |
85 | $ACLOCAL -I m4 |
95 | $ACLOCAL -I m4 |
86 | |
96 | |
87 | # optionally feature autoheader |
97 | # optionally feature autoheader |
88 | (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader |
98 | (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader |
89 | |
99 | |
|
|
100 | (cd m4 && make -f Makefile.am.in Makefile.am) |
|
|
101 | touch doc/gvpe.texi |
90 | $AUTOMAKE --add-missing |
102 | $AUTOMAKE -f --add-missing |
|
|
103 | rm doc/gvpe.texi |
91 | autoconf |
104 | autoconf |
92 | autoheader |
105 | autoheader |
93 | (cd m4 && make -f Makefile.am.in Makefile.am) |
|
|
94 | |
106 | |
95 | #intltoolize --copy --force --automake |
107 | #intltoolize --copy --force --automake |
96 | |
108 | |
97 | cd $ORIGDIR |
109 | cd $ORIGDIR |
98 | |
110 | |
|
|
111 | if [ -e reconf ]; then |
|
|
112 | ./reconf "$@" |
99 | if $srcdir/configure --enable-maintainer-mode "$@"; then |
113 | elif $srcdir/configure --enable-maintainer-mode "$@"; then |
100 | echo |
114 | echo |
101 | echo "Now type 'make' to compile $PROJECT." |
115 | echo "Now type 'make' to compile $PROJECT." |
102 | else |
116 | else |
103 | echo |
117 | echo |
104 | echo "Configure failed or did not finish!" |
118 | echo "Configure failed or did not finish!" |