annotate autogen.sh @ 72:af4f31bce461

Support API base message posting
author Konosuke Watanabe <sasugaanija@gmail.com>
date Thu, 26 Jun 2008 01:22:42 +0900
parents 71241cfaef1e
children c2620a99622b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
1 #!/bin/sh
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
2
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
3 [ -f configure.in ] || {
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
4 echo "autogen.sh: run this command only at the top of a pidgin-twitter source tree."
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
5 exit 1
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
6 }
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
7
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
8 DIE=0
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
9
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
10 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
11 echo
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
12 echo "You must have autoconf installed to compile pidgin-twitter."
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
13 echo "Get ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.62.tar.gz"
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
14 echo "(or a newer version if it is available)"
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
15 DIE=1
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
16 NO_AUTOCONF=yes
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
17 }
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
18
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
19 (automake --version) < /dev/null > /dev/null 2>&1 || {
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
20 echo
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
21 echo "You must have automake installed to compile pidgin-twitter."
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
22 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.10.1.tar.gz"
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
23 echo "(or a newer version if it is available)"
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
24 DIE=1
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
25 NO_AUTOMAKE=yes
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
26 }
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
27
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
28 # if no automake, don't bother testing for aclocal
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
29 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
30 echo
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
31 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
32 echo "installed doesn't appear recent enough."
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
33 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.10.1.tar.gz"
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
34 echo "(or a newer version if it is available)"
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
35 DIE=1
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
36 }
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
37
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
38 # if no autoconf, don't bother testing for autoheader
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
39 test -n "$NO_AUTOCONF" || (autoheader --version) < /dev/null > /dev/null 2>&1 || {
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
40 echo
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
41 echo "**Error**: Missing \`autoheader'. The version of \`autoheader'"
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
42 echo "installed doesn't appear recent enough."
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
43 echo "Get ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.62.tar.gz"
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
44 echo "(or a newer version if it is available)"
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
45 DIE=1
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
46 }
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
47
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
48 if test "$DIE" -eq 1; then
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
49 exit 1
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
50 fi
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
51
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
52 echo "Generating configure script and Makefiles for pidgin-twitter."
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
53
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
54 echo "Running aclocal ..."
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
55 aclocal -I .
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
56 echo "Running autoconf ..."
71241cfaef1e - added custom autogen.sh
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
57 autoconf