… | |
… | |
15 | { |
15 | { |
16 | if expr $1 \>= $2 > /dev/null; then |
16 | if expr $1 \>= $2 > /dev/null; then |
17 | echo "yes (version $1)" |
17 | echo "yes (version $1)" |
18 | else |
18 | else |
19 | echo "Too old (found version $1)!" |
19 | echo "Too old (found version $1)!" |
20 | DIE=1 |
20 | # DIE=1 |
21 | fi |
21 | fi |
22 | } |
22 | } |
23 | |
23 | |
24 | DIE=0 |
24 | DIE=0 |
25 | |
25 | |
… | |
… | |
41 | AUTOMAKE=automake-1.7 |
41 | AUTOMAKE=automake-1.7 |
42 | ACLOCAL=aclocal-1.7 |
42 | ACLOCAL=aclocal-1.7 |
43 | else |
43 | else |
44 | echo |
44 | echo |
45 | echo " You must have automake 1.7 installed to compile $PROJECT." |
45 | echo " You must have automake 1.7 installed to compile $PROJECT." |
46 | echo " (or a newer version if it is available)" |
|
|
47 | DIE=1 |
46 | # DIE=1 |
48 | fi |
47 | fi |
49 | |
48 | |
50 | if test x$AUTOMAKE != x; then |
49 | if test x$AUTOMAKE != x; then |
51 | VER=`$AUTOMAKE --version \ |
50 | VER=`$AUTOMAKE --version \ |
52 | | grep automake | sed "s/.* \([0-9.]*\)[-a-z0-9]*$/\1/"` |
51 | | grep automake | sed "s/.* \([0-9.]*\)[-a-z0-9]*$/\1/"` |
… | |
… | |
85 | $ACLOCAL -I m4 |
84 | $ACLOCAL -I m4 |
86 | |
85 | |
87 | # optionally feature autoheader |
86 | # optionally feature autoheader |
88 | (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader |
87 | (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader |
89 | |
88 | |
|
|
89 | (cd m4 && make -f Makefile.am.in Makefile.am) |
|
|
90 | touch doc/gvpe.texi |
90 | $AUTOMAKE --add-missing |
91 | $AUTOMAKE -f --add-missing |
|
|
92 | rm doc/gvpe.texi |
91 | autoconf |
93 | autoconf |
92 | autoheader |
94 | autoheader |
93 | (cd m4 && make -f Makefile.am.in Makefile.am) |
|
|
94 | |
95 | |
95 | #intltoolize --copy --force --automake |
96 | #intltoolize --copy --force --automake |
96 | |
97 | |
97 | cd $ORIGDIR |
98 | cd $ORIGDIR |
98 | |
99 | |
|
|
100 | if [ -e reconf ]; then |
|
|
101 | ./reconf "$@" |
99 | if $srcdir/configure --enable-maintainer-mode "$@"; then |
102 | elif $srcdir/configure --enable-maintainer-mode "$@"; then |
100 | echo |
103 | echo |
101 | echo "Now type 'make' to compile $PROJECT." |
104 | echo "Now type 'make' to compile $PROJECT." |
102 | else |
105 | else |
103 | echo |
106 | echo |
104 | echo "Configure failed or did not finish!" |
107 | echo "Configure failed or did not finish!" |