3
|
1 #!/bin/sh
|
|
2
|
|
3 [ -f configure.in ] || {
|
|
4 echo "autogen.sh: run this command only at the top of a pidgin-twitter source tree."
|
|
5 exit 1
|
|
6 }
|
|
7
|
|
8 DIE=0
|
|
9
|
|
10 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
|
11 echo
|
|
12 echo "You must have autoconf installed to compile pidgin-twitter."
|
|
13 echo "Get ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.62.tar.gz"
|
|
14 echo "(or a newer version if it is available)"
|
|
15 DIE=1
|
|
16 NO_AUTOCONF=yes
|
|
17 }
|
|
18
|
|
19 (automake --version) < /dev/null > /dev/null 2>&1 || {
|
|
20 echo
|
|
21 echo "You must have automake installed to compile pidgin-twitter."
|
|
22 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.10.1.tar.gz"
|
|
23 echo "(or a newer version if it is available)"
|
|
24 DIE=1
|
|
25 NO_AUTOMAKE=yes
|
|
26 }
|
|
27
|
|
28 # if no automake, don't bother testing for aclocal
|
|
29 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
|
|
30 echo
|
|
31 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
|
|
32 echo "installed doesn't appear recent enough."
|
|
33 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.10.1.tar.gz"
|
|
34 echo "(or a newer version if it is available)"
|
|
35 DIE=1
|
|
36 }
|
|
37
|
|
38 # if no autoconf, don't bother testing for autoheader
|
|
39 test -n "$NO_AUTOCONF" || (autoheader --version) < /dev/null > /dev/null 2>&1 || {
|
|
40 echo
|
|
41 echo "**Error**: Missing \`autoheader'. The version of \`autoheader'"
|
|
42 echo "installed doesn't appear recent enough."
|
|
43 echo "Get ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.62.tar.gz"
|
|
44 echo "(or a newer version if it is available)"
|
|
45 DIE=1
|
|
46 }
|
|
47
|
|
48 if test "$DIE" -eq 1; then
|
|
49 exit 1
|
|
50 fi
|
|
51
|
|
52 echo "Generating configure script and Makefiles for pidgin-twitter."
|
|
53
|
|
54 echo "Running aclocal ..."
|
|
55 aclocal -I .
|
|
56 echo "Running autoconf ..."
|
|
57 autoconf
|