Mercurial > pidgin
annotate autogen.sh @ 3411:5df423e0bca8
[gaim-migrate @ 3430]
This hopefully adds automake 1.6 support to gaim. I have not tested it,
though it came from a guy who uses 1.6, so I'd hope it works.
It doesn't break 1.4.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 18 Aug 2002 19:32:05 +0000 |
parents | ba6d0856c8e4 |
children | ccf479022081 |
rev | line source |
---|---|
2275
f7bf34a3b535
[gaim-migrate @ 2285]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2177
diff
changeset
|
1 #!/bin/sh |
1863 | 2 |
3388
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
3 abort() { |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
4 # Don't break the tree if something goes wrong. |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
5 if [ -e m4~ ]; then |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
6 rm -rf m4 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
7 mv m4~ m4 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
8 fi |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
9 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
10 exit 1 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
11 } |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
12 |
3407
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
13 USE_AUTOPOINT=1 |
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
14 |
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
15 (autopoint --version) < /dev/null > /dev/null 2>&1 || { |
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
16 |
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
17 USE_AUTOPOINT=0 |
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
18 |
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
19 (gettextize --version) < /dev/null > /dev/null 2>&1 || { |
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
20 echo; |
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
21 echo "You must have gettext installed to compile Gaim"; |
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
22 echo; |
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
23 exit; |
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
24 } |
1863 | 25 } |
26 | |
27 (libtoolize --version) < /dev/null > /dev/null 2>&1 || { | |
28 echo; | |
29 echo "You must have libtool installed to compile Gaim"; | |
30 echo; | |
31 exit; | |
32 } | |
33 | |
34 (automake --version) < /dev/null > /dev/null 2>&1 || { | |
35 echo; | |
36 echo "You must have automake installed to compile Gaim"; | |
37 echo; | |
38 exit; | |
39 } | |
40 | |
41 (autoconf --version) < /dev/null > /dev/null 2>&1 || { | |
42 echo; | |
43 echo "You must have autoconf installed to compile Gaim"; | |
44 echo; | |
45 exit; | |
46 } | |
47 | |
2129
7b68621e26db
[gaim-migrate @ 2139]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1863
diff
changeset
|
48 # Thanks decklin |
3174 | 49 if test -f configure.ac ; then |
2176
fd0b454ad4c5
[gaim-migrate @ 2186]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2175
diff
changeset
|
50 if autoconf --version | grep '2\.[01]' > /dev/null 2>&1 ; then |
3174 | 51 mv configure.ac configure.2.1x; |
52 echo "configure.ac has been moved to configure.2.1x to retain compatibility with autoconf 2.1x" | |
53 echo "Future versions of Gaim will not support autoconf versions older than 2.50" | |
54 | |
2176
fd0b454ad4c5
[gaim-migrate @ 2186]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2175
diff
changeset
|
55 fi |
2129
7b68621e26db
[gaim-migrate @ 2139]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1863
diff
changeset
|
56 fi |
7b68621e26db
[gaim-migrate @ 2139]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1863
diff
changeset
|
57 |
1863 | 58 echo "Generating configuration files for Gaim, please wait...." |
59 echo; | |
60 | |
61 echo "Running gettextize, please ignore non-fatal messages...." | |
3388
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
62 |
3407
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
63 if [ $USE_AUTOPOINT -eq 1 ]; then |
3388
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
64 mv -f m4 m4~ |
3408
ba6d0856c8e4
[gaim-migrate @ 3427]
Christian Hammond <chipx86@chipx86.com>
parents:
3407
diff
changeset
|
65 echo n | autopoint --force || abort; |
3388
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
66 rm -rf m4 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
67 mv -f m4~ m4 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
68 else |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
69 echo n | gettextize --copy --force || exit; |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
70 fi |
3407
02a10c03e3e1
[gaim-migrate @ 3426]
Christian Hammond <chipx86@chipx86.com>
parents:
3405
diff
changeset
|
71 |
1863 | 72 echo "Running libtoolize, please ignore non-fatal messages...." |
2754
642413968b03
[gaim-migrate @ 2767]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2415
diff
changeset
|
73 echo n | libtoolize --copy --force || exit; |
2162
a464da684307
[gaim-migrate @ 2172]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2157
diff
changeset
|
74 |
2754
642413968b03
[gaim-migrate @ 2767]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2415
diff
changeset
|
75 aclocal -I m4 $ACLOCAL_FLAGS || exit; |
642413968b03
[gaim-migrate @ 2767]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2415
diff
changeset
|
76 autoheader || exit; |
2770
24ebd5e321e4
[gaim-migrate @ 2783]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2754
diff
changeset
|
77 automake --add-missing --copy; |
2754
642413968b03
[gaim-migrate @ 2767]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2415
diff
changeset
|
78 autoconf || exit; |
642413968b03
[gaim-migrate @ 2767]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2415
diff
changeset
|
79 automake || exit; |
1863 | 80 ./configure $@ |
81 |