ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/autogen.sh
(Generate patch)

Comparing gvpe/autogen.sh (file contents):
Revision 1.1 by pcg, Sat Mar 1 15:53:02 2003 UTC vs.
Revision 1.8 by pcg, Sun Nov 11 04:08:58 2007 UTC

2 2
3AUTOCONF_REQUIRED_VERSION=2.57 3AUTOCONF_REQUIRED_VERSION=2.57
4AUTOMAKE_REQUIRED_VERSION=1.7 4AUTOMAKE_REQUIRED_VERSION=1.7
5INTLTOOL_REQUIRED_VERSION=0.17 5INTLTOOL_REQUIRED_VERSION=0.17
6 6
7if ! [ -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**
15EOF
16 exit 1
17fi
7 18
8srcdir=`dirname $0` 19srcdir=`dirname $0`
9test -z "$srcdir" && srcdir=. 20test -z "$srcdir" && srcdir=.
10ORIGDIR=`pwd` 21ORIGDIR=`pwd`
11cd $srcdir 22cd $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
24DIE=0 35DIE=0
25 36
41 AUTOMAKE=automake-1.7 52 AUTOMAKE=automake-1.7
42 ACLOCAL=aclocal-1.7 53 ACLOCAL=aclocal-1.7
43else 54else
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
48fi 58fi
49 59
50if test x$AUTOMAKE != x; then 60if 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)
101touch doc/gvpe.texi
90$AUTOMAKE --add-missing 102$AUTOMAKE -f --add-missing
103rm doc/gvpe.texi
91autoconf 104autoconf
92autoheader 105autoheader
93(cd m4 && make -f Makefile.am.in Makefile.am)
94 106
95#intltoolize --copy --force --automake 107#intltoolize --copy --force --automake
96 108
97cd $ORIGDIR 109cd $ORIGDIR
98 110
111if [ -e reconf ]; then
112 ./reconf "$@"
99if $srcdir/configure --enable-maintainer-mode "$@"; then 113elif $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."
102else 116else
103 echo 117 echo
104 echo "Configure failed or did not finish!" 118 echo "Configure failed or did not finish!"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines