Mercurial > pidgin
annotate autogen.sh @ 25633:c384d62009c0
*** Plucked rev b932d4f94f9c771877b6a8a6a1d7dd3ea9c08005 (qulogic@pidgin.im):
Treat FQY responses with no network ID as on the Passport network.
Fixes #9240.
*** Plucked rev 76f13d0fc7fbff369d01187fcc1b8f517854e119 (qulogic@pidgin.im):
These strcmp checks are for equality, meaning a return of 0.
*** Plucked rev a7bd74cbe46498f1390a4d33cce115bdd123a68d (qulogic@pidgin.im):
Add a data parameter for FQY callbacks and remove the pending users list
that was previously used instead.
*** Plucked rev 84f6765b71f2ad2d6c7cddd461114ab5fc758b72 (qulogic@pidgin.im):
We can't get an ADD error if we never send an ADD command.
*** Plucked rev 6d3a0b29b22baeedf393b76044dde689caef3b45 (qulogic@pidgin.im):
Add a msn_notification_post_rml analog.
*** Plucked rev 0e2af7d2799397628273f534fac31e6dd7c6fe14 (qulogic@pidgin.im):
Remove some left over code.
*** Plucked rev 0841af13da028245cc279ce8f927ff05c0367ae1 (qulogic@pidgin.im):
Check network type, and send an FQY if necessary, when modifying the allow
and block lists. Before, users who were not added by you (i.e. spammers)
would have no network type and cause disconnects. This should fix it.
Fixes #8977.
*** Plucked rev a1463341c3bf211c429282870babdb4785c7d817 (qulogic@pidgin.im):
Remove notification-server group commands ADG, REG, RMG as groups are now
handled in the AddressBook with SOAP calls.
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sat, 20 Jun 2009 18:27:49 +0000 |
parents | eb1bf40d6fd0 |
children | a709dc0bb3f3 |
rev | line source |
---|---|
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
1 #! /bin/sh |
22587
4074bfe17e6c
Thanks for pointing this out, grim.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22584
diff
changeset
|
2 # Pidgin and Finch: The Pimpin' Penguin IM Clients That're Good for the Soul |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
3 # Copyright (C) 2003-2008 Gary Kramlich <grim@reaperworld.com> |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
4 # |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
5 # This program is free software; you can redistribute it and/or modify it |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
6 # under the terms of the GNU General Public License as published by the Free |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
7 # Software Foundation; either version 2 of the License, or (at your option) |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
8 # any later version. |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
9 # |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
10 # This program is distributed in the hope that it will be useful, but WITHOUT |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
13 # more details. |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
14 # |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
15 # You should have received a copy of the GNU General Public License along with |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
16 # this program; if not, write to the Free Software Foundation, Inc., 51 |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
17 # Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
14228 | 18 |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
19 ############################################################################### |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
20 # Usage |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
21 ############################################################################### |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
22 # This script uses a config file that can be used to stash common arguments |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
23 # passed to configure or environment variables that need to be set before |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
24 # configure is called. The configuration file is a simple shell script that |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
25 # gets sourced. |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
26 # |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
27 # By default, the config file that is used is named 'autogen.args'. This can |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
28 # be configured below. |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
29 # |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
30 # Available options that are handled are as follow: |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
31 # ACLOCAL_FLAGS - command line arguments to pass to aclocal |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
32 # AUTOCONF_FLAGS - command line arguments to pass to autoconf |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
33 # AUTOHEADER_FLAGS - command line arguments to pass to autoheader |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
34 # AUTOMAKE_FLAGS - command line arguments to pass to automake flags |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
35 # CONFIGURE_FLAGS - command line arguments to pass to configure |
22600
34111ec2a6eb
Make the new autogen.sh behave more like the old one - run glib-gettextize,
Stu Tomlinson <stu@nosnilmot.com>
parents:
22599
diff
changeset
|
36 # GLIB_GETTEXTIZE_FLAGS - command line arguments to pass to glib-gettextize |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
37 # INTLTOOLIZE_FLAGS - command line arguments to pass to intltoolize |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
38 # LIBTOOLIZE_FLAGS - command line arguments to pass to libtoolize |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
39 # |
24341
a41e0d8ddae4
- Make autogen.sh find autogen.args when /bin/sh is not bash.
Richard Laager <rlaager@wiktel.com>
parents:
22906
diff
changeset
|
40 # Other helpful notes: |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
41 # If you're using a different c compiler, you can override the environment |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
42 # variable in 'autogen.args'. For example, say you're using distcc, just add |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
43 # the following to 'autogen.args': |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
44 # |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
45 # CC="distcc" |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
46 # |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
47 # This will work for any influential environment variable to configure. |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
48 ############################################################################### |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
49 PACKAGE="Pidgin" |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
50 ARGS_FILE="autogen.args" |
24341
a41e0d8ddae4
- Make autogen.sh find autogen.args when /bin/sh is not bash.
Richard Laager <rlaager@wiktel.com>
parents:
22906
diff
changeset
|
51 export CFLAGS |
a41e0d8ddae4
- Make autogen.sh find autogen.args when /bin/sh is not bash.
Richard Laager <rlaager@wiktel.com>
parents:
22906
diff
changeset
|
52 export LDFLAGS |
1863 | 53 |
22721
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
54 libtoolize="libtoolize" |
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
55 case $(uname -s) in |
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
56 Darwin*) |
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
57 libtoolize="glibtoolize" |
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
58 ;; |
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
59 *) |
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
60 esac |
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
61 |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
62 ############################################################################### |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
63 # Some helper functions |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
64 ############################################################################### |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
65 check () { |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
66 CMD=$1 |
1863 | 67 |
22721
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
68 printf "%s" "checking for ${CMD}... " |
24539
eb1bf40d6fd0
Remove a space to eliminate a spurious diff between Pidgin's autogen.sh
Richard Laager <rlaager@wiktel.com>
parents:
24341
diff
changeset
|
69 BIN=`which ${CMD} 2>/dev/null` |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
70 |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
71 if [ x"${BIN}" = x"" ] ; then |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
72 echo "not found." |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
73 echo "${CMD} is required to build ${PACKAGE}!" |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
74 exit 1; |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
75 fi |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
76 |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
77 echo "${BIN}" |
1863 | 78 } |
79 | |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
80 run_or_die () { # beotch |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
81 CMD=$1 |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
82 shift |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
83 |
22890
5513f1f5f4bc
Some versions of mktemp require at least 6 X's in the template
Stu Tomlinson <stu@nosnilmot.com>
parents:
22844
diff
changeset
|
84 OUTPUT=`mktemp autogen-XXXXXX` |
22844
78ee2ec009e8
Make error output during autogen actually readable...
Gary Kramlich <grim@reaperworld.com>
parents:
22748
diff
changeset
|
85 |
22721
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
86 printf "%s" "running ${CMD} ${@}... " |
22844
78ee2ec009e8
Make error output during autogen actually readable...
Gary Kramlich <grim@reaperworld.com>
parents:
22748
diff
changeset
|
87 ${CMD} ${@} >${OUTPUT} 2>&1 |
78ee2ec009e8
Make error output during autogen actually readable...
Gary Kramlich <grim@reaperworld.com>
parents:
22748
diff
changeset
|
88 |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
89 if [ $? != 0 ] ; then |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
90 echo "failed." |
22844
78ee2ec009e8
Make error output during autogen actually readable...
Gary Kramlich <grim@reaperworld.com>
parents:
22748
diff
changeset
|
91 cat ${OUTPUT} |
78ee2ec009e8
Make error output during autogen actually readable...
Gary Kramlich <grim@reaperworld.com>
parents:
22748
diff
changeset
|
92 rm -f ${OUTPUT} |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
93 exit 1 |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
94 else |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
95 echo "done." |
22906
67148f43fd2f
Remove the stat check that isn't useful and breaks on OS X.
Richard Laager <rlaager@wiktel.com>
parents:
22890
diff
changeset
|
96 cat ${OUTPUT} |
22844
78ee2ec009e8
Make error output during autogen actually readable...
Gary Kramlich <grim@reaperworld.com>
parents:
22748
diff
changeset
|
97 |
78ee2ec009e8
Make error output during autogen actually readable...
Gary Kramlich <grim@reaperworld.com>
parents:
22748
diff
changeset
|
98 rm -f ${OUTPUT} |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
99 fi |
1863 | 100 } |
101 | |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
102 ############################################################################### |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
103 # We really start here, yes, very sneaky! |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
104 ############################################################################### |
22599
bc8768537a85
Hush you noisy little script
Stu Tomlinson <stu@nosnilmot.com>
parents:
22587
diff
changeset
|
105 FIGLET=`which figlet 2> /dev/null` |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
106 if [ x"${FIGLET}" != x"" ] ; then |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
107 ${FIGLET} -f small ${PACKAGE} |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
108 echo "build system is being generated" |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
109 else |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
110 echo "autogenerating build system for '${PACKAGE}'" |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
111 fi |
1863 | 112 |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
113 ############################################################################### |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
114 # Look for our args file |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
115 ############################################################################### |
22721
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
116 printf "%s" "checking for ${ARGS_FILE}: " |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
117 if [ -f ${ARGS_FILE} ] ; then |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
118 echo "found." |
22721
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
119 printf "%s" "sourcing ${ARGS_FILE}: " |
24341
a41e0d8ddae4
- Make autogen.sh find autogen.args when /bin/sh is not bash.
Richard Laager <rlaager@wiktel.com>
parents:
22906
diff
changeset
|
120 . "`dirname "$0"`"/${ARGS_FILE} |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
121 echo "done." |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
122 else |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
123 echo "not found." |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
124 fi |
2162
a464da684307
[gaim-migrate @ 2172]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2157
diff
changeset
|
125 |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
126 ############################################################################### |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
127 # Check for our required helpers |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
128 ############################################################################### |
22721
d146e87ba40d
echo -n is not portable, and OSX has libtoolize installed as glibtoolize
Stu Tomlinson <stu@nosnilmot.com>
parents:
22616
diff
changeset
|
129 check "$libtoolize"; LIBTOOLIZE=${BIN}; |
24341
a41e0d8ddae4
- Make autogen.sh find autogen.args when /bin/sh is not bash.
Richard Laager <rlaager@wiktel.com>
parents:
22906
diff
changeset
|
130 check "glib-gettextize"; GLIB_GETTEXTIZE=${BIN}; |
a41e0d8ddae4
- Make autogen.sh find autogen.args when /bin/sh is not bash.
Richard Laager <rlaager@wiktel.com>
parents:
22906
diff
changeset
|
131 check "intltoolize"; INTLTOOLIZE=${BIN}; |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
132 check "aclocal"; ACLOCAL=${BIN}; |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
133 check "autoheader"; AUTOHEADER=${BIN}; |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
134 check "automake"; AUTOMAKE=${BIN}; |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
135 check "autoconf"; AUTOCONF=${BIN}; |
3505 | 136 |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
137 ############################################################################### |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
138 # Run all of our helpers |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
139 ############################################################################### |
22604
4989639b6ede
I think this syntax is more correct
Stu Tomlinson <stu@nosnilmot.com>
parents:
22600
diff
changeset
|
140 run_or_die ${LIBTOOLIZE} ${LIBTOOLIZE_FLAGS:-"-c -f --automake"} |
4989639b6ede
I think this syntax is more correct
Stu Tomlinson <stu@nosnilmot.com>
parents:
22600
diff
changeset
|
141 run_or_die ${GLIB_GETTEXTIZE} ${GLIB_GETTEXTIZE_FLAGS:-"--force --copy"} |
4989639b6ede
I think this syntax is more correct
Stu Tomlinson <stu@nosnilmot.com>
parents:
22600
diff
changeset
|
142 run_or_die ${INTLTOOLIZE} ${INTLTOOLIZE_FLAGS:-"-c -f --automake"} |
4989639b6ede
I think this syntax is more correct
Stu Tomlinson <stu@nosnilmot.com>
parents:
22600
diff
changeset
|
143 run_or_die ${ACLOCAL} ${ACLOCAL_FLAGS:-"-I m4macros"} |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
144 run_or_die ${AUTOHEADER} ${AUTOHEADER_FLAGS} |
22604
4989639b6ede
I think this syntax is more correct
Stu Tomlinson <stu@nosnilmot.com>
parents:
22600
diff
changeset
|
145 run_or_die ${AUTOMAKE} ${AUTOMAKE_FLAGS:-"-a -c --gnu"} |
22600
34111ec2a6eb
Make the new autogen.sh behave more like the old one - run glib-gettextize,
Stu Tomlinson <stu@nosnilmot.com>
parents:
22599
diff
changeset
|
146 run_or_die ${AUTOCONF} ${AUTOCONF_FLAGS} |
1863 | 147 |
22583
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
148 ############################################################################### |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
149 # Run configure |
375a101c5d7b
A more verbose autogen.sh that Gary and I have been using for Guifications
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22209
diff
changeset
|
150 ############################################################################### |
22616
185b37776140
It is good when documentation matches reality. I figured all the other env
Etan Reisner <pidgin@unreliablesource.net>
parents:
22604
diff
changeset
|
151 echo "running ./configure ${CONFIGURE_FLAGS} $@" |
185b37776140
It is good when documentation matches reality. I figured all the other env
Etan Reisner <pidgin@unreliablesource.net>
parents:
22604
diff
changeset
|
152 ./configure ${CONFIGURE_FLAGS} $@ |