Merge lp:~bcurtiswx/ubuntu/maverick/libgnomecanvas/libgnomecanvas-2.30.2 into lp:ubuntu/maverick/libgnomecanvas
- Maverick (10.10)
- libgnomecanvas-2.30.2
- Merge into maverick
Proposed by
Brian Curtis
Status: | Merged |
---|---|
Merge reported by: | Sebastien Bacher |
Merged at revision: | not available |
Proposed branch: | lp:~bcurtiswx/ubuntu/maverick/libgnomecanvas/libgnomecanvas-2.30.2 |
Merge into: | lp:ubuntu/maverick/libgnomecanvas |
Diff against target: | 32575 lines |
To merge this branch: | bzr merge lp:~bcurtiswx/ubuntu/maverick/libgnomecanvas/libgnomecanvas-2.30.2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Development Team | Pending | ||
Review via email: mp+36785@code.launchpad.net |
Commit message
Description of the change
* New Upstream Release
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'INSTALL' | |||
2 | --- INSTALL 2009-02-09 10:31:45 +0000 | |||
3 | +++ INSTALL 2010-09-27 20:34:40 +0000 | |||
4 | @@ -2,15 +2,15 @@ | |||
5 | 2 | ************************* | 2 | ************************* |
6 | 3 | 3 | ||
7 | 4 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, | 4 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, |
9 | 5 | 2006, 2007 Free Software Foundation, Inc. | 5 | 2006, 2007, 2008 Free Software Foundation, Inc. |
10 | 6 | 6 | ||
12 | 7 | This file is free documentation; the Free Software Foundation gives | 7 | This file is free documentation; the Free Software Foundation gives |
13 | 8 | unlimited permission to copy, distribute and modify it. | 8 | unlimited permission to copy, distribute and modify it. |
14 | 9 | 9 | ||
15 | 10 | Basic Installation | 10 | Basic Installation |
16 | 11 | ================== | 11 | ================== |
17 | 12 | 12 | ||
19 | 13 | Briefly, the shell commands `./configure; make; make install' should | 13 | Briefly, the shell commands `./configure; make; make install' should |
20 | 14 | configure, build, and install this package. The following | 14 | configure, build, and install this package. The following |
21 | 15 | more-detailed instructions are generic; see the `README' file for | 15 | more-detailed instructions are generic; see the `README' file for |
22 | 16 | instructions specific to this package. | 16 | instructions specific to this package. |
23 | @@ -73,9 +73,9 @@ | |||
24 | 73 | Compilers and Options | 73 | Compilers and Options |
25 | 74 | ===================== | 74 | ===================== |
26 | 75 | 75 | ||
30 | 76 | Some systems require unusual options for compilation or linking that the | 76 | Some systems require unusual options for compilation or linking that |
31 | 77 | `configure' script does not know about. Run `./configure --help' for | 77 | the `configure' script does not know about. Run `./configure --help' |
32 | 78 | details on some of the pertinent environment variables. | 78 | for details on some of the pertinent environment variables. |
33 | 79 | 79 | ||
34 | 80 | You can give `configure' initial values for configuration parameters | 80 | You can give `configure' initial values for configuration parameters |
35 | 81 | by setting variables in the command line or in the environment. Here | 81 | by setting variables in the command line or in the environment. Here |
36 | @@ -88,7 +88,7 @@ | |||
37 | 88 | Compiling For Multiple Architectures | 88 | Compiling For Multiple Architectures |
38 | 89 | ==================================== | 89 | ==================================== |
39 | 90 | 90 | ||
41 | 91 | You can compile the package for more than one kind of computer at the | 91 | You can compile the package for more than one kind of computer at the |
42 | 92 | same time, by placing the object files for each architecture in their | 92 | same time, by placing the object files for each architecture in their |
43 | 93 | own directory. To do this, you can use GNU `make'. `cd' to the | 93 | own directory. To do this, you can use GNU `make'. `cd' to the |
44 | 94 | directory where you want the object files and executables to go and run | 94 | directory where you want the object files and executables to go and run |
45 | @@ -100,10 +100,24 @@ | |||
46 | 100 | installed the package for one architecture, use `make distclean' before | 100 | installed the package for one architecture, use `make distclean' before |
47 | 101 | reconfiguring for another architecture. | 101 | reconfiguring for another architecture. |
48 | 102 | 102 | ||
49 | 103 | On MacOS X 10.5 and later systems, you can create libraries and | ||
50 | 104 | executables that work on multiple system types--known as "fat" or | ||
51 | 105 | "universal" binaries--by specifying multiple `-arch' options to the | ||
52 | 106 | compiler but only a single `-arch' option to the preprocessor. Like | ||
53 | 107 | this: | ||
54 | 108 | |||
55 | 109 | ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | ||
56 | 110 | CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | ||
57 | 111 | CPP="gcc -E" CXXCPP="g++ -E" | ||
58 | 112 | |||
59 | 113 | This is not guaranteed to produce working output in all cases, you | ||
60 | 114 | may have to build one architecture at a time and combine the results | ||
61 | 115 | using the `lipo' tool if you have problems. | ||
62 | 116 | |||
63 | 103 | Installation Names | 117 | Installation Names |
64 | 104 | ================== | 118 | ================== |
65 | 105 | 119 | ||
67 | 106 | By default, `make install' installs the package's commands under | 120 | By default, `make install' installs the package's commands under |
68 | 107 | `/usr/local/bin', include files under `/usr/local/include', etc. You | 121 | `/usr/local/bin', include files under `/usr/local/include', etc. You |
69 | 108 | can specify an installation prefix other than `/usr/local' by giving | 122 | can specify an installation prefix other than `/usr/local' by giving |
70 | 109 | `configure' the option `--prefix=PREFIX'. | 123 | `configure' the option `--prefix=PREFIX'. |
71 | @@ -126,7 +140,7 @@ | |||
72 | 126 | Optional Features | 140 | Optional Features |
73 | 127 | ================= | 141 | ================= |
74 | 128 | 142 | ||
76 | 129 | Some packages pay attention to `--enable-FEATURE' options to | 143 | Some packages pay attention to `--enable-FEATURE' options to |
77 | 130 | `configure', where FEATURE indicates an optional part of the package. | 144 | `configure', where FEATURE indicates an optional part of the package. |
78 | 131 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE | 145 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE |
79 | 132 | is something like `gnu-as' or `x' (for the X Window System). The | 146 | is something like `gnu-as' or `x' (for the X Window System). The |
80 | @@ -138,14 +152,36 @@ | |||
81 | 138 | you can use the `configure' options `--x-includes=DIR' and | 152 | you can use the `configure' options `--x-includes=DIR' and |
82 | 139 | `--x-libraries=DIR' to specify their locations. | 153 | `--x-libraries=DIR' to specify their locations. |
83 | 140 | 154 | ||
84 | 155 | Particular systems | ||
85 | 156 | ================== | ||
86 | 157 | |||
87 | 158 | On HP-UX, the default C compiler is not ANSI C compatible. If GNU | ||
88 | 159 | CC is not installed, it is recommended to use the following options in | ||
89 | 160 | order to use an ANSI C compiler: | ||
90 | 161 | |||
91 | 162 | ./configure CC="cc -Ae" | ||
92 | 163 | |||
93 | 164 | and if that doesn't work, install pre-built binaries of GCC for HP-UX. | ||
94 | 165 | |||
95 | 166 | On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot | ||
96 | 167 | parse its `<wchar.h>' header file. The option `-nodtk' can be used as | ||
97 | 168 | a workaround. If GNU CC is not installed, it is therefore recommended | ||
98 | 169 | to try | ||
99 | 170 | |||
100 | 171 | ./configure CC="cc" | ||
101 | 172 | |||
102 | 173 | and if that doesn't work, try | ||
103 | 174 | |||
104 | 175 | ./configure CC="cc -nodtk" | ||
105 | 176 | |||
106 | 141 | Specifying the System Type | 177 | Specifying the System Type |
107 | 142 | ========================== | 178 | ========================== |
108 | 143 | 179 | ||
114 | 144 | There may be some features `configure' cannot figure out automatically, | 180 | There may be some features `configure' cannot figure out |
115 | 145 | but needs to determine by the type of machine the package will run on. | 181 | automatically, but needs to determine by the type of machine the package |
116 | 146 | Usually, assuming the package is built to be run on the _same_ | 182 | will run on. Usually, assuming the package is built to be run on the |
117 | 147 | architectures, `configure' can figure that out, but if it prints a | 183 | _same_ architectures, `configure' can figure that out, but if it prints |
118 | 148 | message saying it cannot guess the machine type, give it the | 184 | a message saying it cannot guess the machine type, give it the |
119 | 149 | `--build=TYPE' option. TYPE can either be a short name for the system | 185 | `--build=TYPE' option. TYPE can either be a short name for the system |
120 | 150 | type, such as `sun4', or a canonical name which has the form: | 186 | type, such as `sun4', or a canonical name which has the form: |
121 | 151 | 187 | ||
122 | @@ -171,9 +207,9 @@ | |||
123 | 171 | Sharing Defaults | 207 | Sharing Defaults |
124 | 172 | ================ | 208 | ================ |
125 | 173 | 209 | ||
129 | 174 | If you want to set default values for `configure' scripts to share, you | 210 | If you want to set default values for `configure' scripts to share, |
130 | 175 | can create a site shell script called `config.site' that gives default | 211 | you can create a site shell script called `config.site' that gives |
131 | 176 | values for variables like `CC', `cache_file', and `prefix'. | 212 | default values for variables like `CC', `cache_file', and `prefix'. |
132 | 177 | `configure' looks for `PREFIX/share/config.site' if it exists, then | 213 | `configure' looks for `PREFIX/share/config.site' if it exists, then |
133 | 178 | `PREFIX/etc/config.site' if it exists. Or, you can set the | 214 | `PREFIX/etc/config.site' if it exists. Or, you can set the |
134 | 179 | `CONFIG_SITE' environment variable to the location of the site script. | 215 | `CONFIG_SITE' environment variable to the location of the site script. |
135 | @@ -182,7 +218,7 @@ | |||
136 | 182 | Defining Variables | 218 | Defining Variables |
137 | 183 | ================== | 219 | ================== |
138 | 184 | 220 | ||
140 | 185 | Variables not defined in a site shell script can be set in the | 221 | Variables not defined in a site shell script can be set in the |
141 | 186 | environment passed to `configure'. However, some packages may run | 222 | environment passed to `configure'. However, some packages may run |
142 | 187 | configure again during the build, and the customized values of these | 223 | configure again during the build, and the customized values of these |
143 | 188 | variables may be lost. In order to avoid this problem, you should set | 224 | variables may be lost. In order to avoid this problem, you should set |
144 | @@ -201,11 +237,19 @@ | |||
145 | 201 | `configure' Invocation | 237 | `configure' Invocation |
146 | 202 | ====================== | 238 | ====================== |
147 | 203 | 239 | ||
149 | 204 | `configure' recognizes the following options to control how it operates. | 240 | `configure' recognizes the following options to control how it |
150 | 241 | operates. | ||
151 | 205 | 242 | ||
152 | 206 | `--help' | 243 | `--help' |
153 | 207 | `-h' | 244 | `-h' |
155 | 208 | Print a summary of the options to `configure', and exit. | 245 | Print a summary of all of the options to `configure', and exit. |
156 | 246 | |||
157 | 247 | `--help=short' | ||
158 | 248 | `--help=recursive' | ||
159 | 249 | Print a summary of the options unique to this package's | ||
160 | 250 | `configure', and exit. The `short' variant lists options used | ||
161 | 251 | only in the top level, while the `recursive' variant lists options | ||
162 | 252 | also present in any nested packages. | ||
163 | 209 | 253 | ||
164 | 210 | `--version' | 254 | `--version' |
165 | 211 | `-V' | 255 | `-V' |
166 | @@ -232,6 +276,16 @@ | |||
167 | 232 | Look for the package's source code in directory DIR. Usually | 276 | Look for the package's source code in directory DIR. Usually |
168 | 233 | `configure' can determine that directory automatically. | 277 | `configure' can determine that directory automatically. |
169 | 234 | 278 | ||
170 | 279 | `--prefix=DIR' | ||
171 | 280 | Use DIR as the installation prefix. *Note Installation Names:: | ||
172 | 281 | for more details, including other options available for fine-tuning | ||
173 | 282 | the installation locations. | ||
174 | 283 | |||
175 | 284 | `--no-create' | ||
176 | 285 | `-n' | ||
177 | 286 | Run the configure checks, but stop before creating any output | ||
178 | 287 | files. | ||
179 | 288 | |||
180 | 235 | `configure' also accepts some other, not widely useful, options. Run | 289 | `configure' also accepts some other, not widely useful, options. Run |
181 | 236 | `configure --help' for more details. | 290 | `configure --help' for more details. |
182 | 237 | 291 | ||
183 | 238 | 292 | ||
184 | === modified file 'Makefile.in' | |||
185 | --- Makefile.in 2010-03-30 19:58:47 +0000 | |||
186 | +++ Makefile.in 2010-09-27 20:34:40 +0000 | |||
187 | @@ -1,4 +1,4 @@ | |||
189 | 1 | # Makefile.in generated by automake 1.11 from Makefile.am. | 1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. |
190 | 2 | # @configure_input@ | 2 | # @configure_input@ |
191 | 3 | 3 | ||
192 | 4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | 4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
193 | @@ -189,10 +189,13 @@ | |||
194 | 189 | PACKAGE_NAME = @PACKAGE_NAME@ | 189 | PACKAGE_NAME = @PACKAGE_NAME@ |
195 | 190 | PACKAGE_STRING = @PACKAGE_STRING@ | 190 | PACKAGE_STRING = @PACKAGE_STRING@ |
196 | 191 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | 191 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
197 | 192 | PACKAGE_URL = @PACKAGE_URL@ | ||
198 | 192 | PACKAGE_VERSION = @PACKAGE_VERSION@ | 193 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
199 | 193 | PATH_SEPARATOR = @PATH_SEPARATOR@ | 194 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
200 | 194 | PERL = @PERL@ | 195 | PERL = @PERL@ |
201 | 195 | PKG_CONFIG = @PKG_CONFIG@ | 196 | PKG_CONFIG = @PKG_CONFIG@ |
202 | 197 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
203 | 198 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
204 | 196 | POFILES = @POFILES@ | 199 | POFILES = @POFILES@ |
205 | 197 | POSUB = @POSUB@ | 200 | POSUB = @POSUB@ |
206 | 198 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ | 201 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ |
207 | @@ -243,7 +246,6 @@ | |||
208 | 243 | libexecdir = @libexecdir@ | 246 | libexecdir = @libexecdir@ |
209 | 244 | localedir = @localedir@ | 247 | localedir = @localedir@ |
210 | 245 | localstatedir = @localstatedir@ | 248 | localstatedir = @localstatedir@ |
211 | 246 | lt_ECHO = @lt_ECHO@ | ||
212 | 247 | mandir = @mandir@ | 249 | mandir = @mandir@ |
213 | 248 | mkdir_p = @mkdir_p@ | 250 | mkdir_p = @mkdir_p@ |
214 | 249 | oldincludedir = @oldincludedir@ | 251 | oldincludedir = @oldincludedir@ |
215 | @@ -348,7 +350,7 @@ | |||
216 | 348 | # (which will cause the Makefiles to be regenerated when you run `make'); | 350 | # (which will cause the Makefiles to be regenerated when you run `make'); |
217 | 349 | # (2) otherwise, pass the desired values on the `make' command line. | 351 | # (2) otherwise, pass the desired values on the `make' command line. |
218 | 350 | $(RECURSIVE_TARGETS): | 352 | $(RECURSIVE_TARGETS): |
220 | 351 | @failcom='exit 1'; \ | 353 | @fail= failcom='exit 1'; \ |
221 | 352 | for f in x $$MAKEFLAGS; do \ | 354 | for f in x $$MAKEFLAGS; do \ |
222 | 353 | case $$f in \ | 355 | case $$f in \ |
223 | 354 | *=* | --[!k]*);; \ | 356 | *=* | --[!k]*);; \ |
224 | @@ -373,7 +375,7 @@ | |||
225 | 373 | fi; test -z "$$fail" | 375 | fi; test -z "$$fail" |
226 | 374 | 376 | ||
227 | 375 | $(RECURSIVE_CLEAN_TARGETS): | 377 | $(RECURSIVE_CLEAN_TARGETS): |
229 | 376 | @failcom='exit 1'; \ | 378 | @fail= failcom='exit 1'; \ |
230 | 377 | for f in x $$MAKEFLAGS; do \ | 379 | for f in x $$MAKEFLAGS; do \ |
231 | 378 | case $$f in \ | 380 | case $$f in \ |
232 | 379 | *=* | --[!k]*);; \ | 381 | *=* | --[!k]*);; \ |
233 | @@ -537,7 +539,8 @@ | |||
234 | 537 | fi; \ | 539 | fi; \ |
235 | 538 | done | 540 | done |
236 | 539 | -test -n "$(am__skip_mode_fix)" \ | 541 | -test -n "$(am__skip_mode_fix)" \ |
238 | 540 | || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ | 542 | || find "$(distdir)" -type d ! -perm -755 \ |
239 | 543 | -exec chmod u+rwx,go+rx {} \; -o \ | ||
240 | 541 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | 544 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ |
241 | 542 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | 545 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ |
242 | 543 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ | 546 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
243 | @@ -581,17 +584,17 @@ | |||
244 | 581 | distcheck: dist | 584 | distcheck: dist |
245 | 582 | case '$(DIST_ARCHIVES)' in \ | 585 | case '$(DIST_ARCHIVES)' in \ |
246 | 583 | *.tar.gz*) \ | 586 | *.tar.gz*) \ |
248 | 584 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ | 587 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ |
249 | 585 | *.tar.bz2*) \ | 588 | *.tar.bz2*) \ |
251 | 586 | bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ | 589 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
252 | 587 | *.tar.lzma*) \ | 590 | *.tar.lzma*) \ |
254 | 588 | unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ | 591 | lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ |
255 | 589 | *.tar.xz*) \ | 592 | *.tar.xz*) \ |
256 | 590 | xz -dc $(distdir).tar.xz | $(am__untar) ;;\ | 593 | xz -dc $(distdir).tar.xz | $(am__untar) ;;\ |
257 | 591 | *.tar.Z*) \ | 594 | *.tar.Z*) \ |
258 | 592 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | 595 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
259 | 593 | *.shar.gz*) \ | 596 | *.shar.gz*) \ |
261 | 594 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ | 597 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ |
262 | 595 | *.zip*) \ | 598 | *.zip*) \ |
263 | 596 | unzip $(distdir).zip ;;\ | 599 | unzip $(distdir).zip ;;\ |
264 | 597 | esac | 600 | esac |
265 | 598 | 601 | ||
266 | === modified file 'NEWS' | |||
267 | --- NEWS 2010-04-01 21:42:40 +0000 | |||
268 | +++ NEWS 2010-09-27 20:34:40 +0000 | |||
269 | @@ -1,3 +1,19 @@ | |||
270 | 1 | libgnomecanvas 2.30.2 | ||
271 | 2 | --------------------- | ||
272 | 3 | |||
273 | 4 | What's new since 2.30.1 | ||
274 | 5 | |||
275 | 6 | Translations | ||
276 | 7 | * Takayuki KUSANO (ja) | ||
277 | 8 | * Dirgita (in) | ||
278 | 9 | * Fran Diéguez (ga) | ||
279 | 10 | * Matej Urbančič (sl) | ||
280 | 11 | * Kristjan Schmidt (eo) | ||
281 | 12 | * Thomas Thurman (sh) | ||
282 | 13 | * Andika Triwidada (in) | ||
283 | 14 | * Peteris Krisjanis (lv) | ||
284 | 15 | * Shankar Prasad (ka) | ||
285 | 16 | |||
286 | 1 | libgnomecanvas 2.30.1 | 17 | libgnomecanvas 2.30.1 |
287 | 2 | --------------------- | 18 | --------------------- |
288 | 3 | 19 | ||
289 | 4 | 20 | ||
290 | === modified file 'aclocal.m4' | |||
291 | --- aclocal.m4 2010-03-30 19:58:47 +0000 | |||
292 | +++ aclocal.m4 2010-09-27 20:34:40 +0000 | |||
293 | @@ -1,4 +1,4 @@ | |||
295 | 1 | # generated automatically by aclocal 1.11 -*- Autoconf -*- | 1 | # generated automatically by aclocal 1.11.1 -*- Autoconf -*- |
296 | 2 | 2 | ||
297 | 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
298 | 4 | # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 4 | # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
299 | @@ -13,8 +13,8 @@ | |||
300 | 13 | 13 | ||
301 | 14 | m4_ifndef([AC_AUTOCONF_VERSION], | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
302 | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
305 | 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, | 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],, |
306 | 17 | [m4_warning([this file was generated for autoconf 2.63. | 17 | [m4_warning([this file was generated for autoconf 2.66. |
307 | 18 | You have another version of autoconf. It may work, but is not guaranteed to. | 18 | You have another version of autoconf. It may work, but is not guaranteed to. |
308 | 19 | If you have problems, you may need to regenerate the build system entirely. | 19 | If you have problems, you may need to regenerate the build system entirely. |
309 | 20 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) | 20 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
310 | @@ -34,7 +34,7 @@ | |||
311 | 34 | [am__api_version='1.11' | 34 | [am__api_version='1.11' |
312 | 35 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | 35 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
313 | 36 | dnl require some minimum version. Point them to the right macro. | 36 | dnl require some minimum version. Point them to the right macro. |
315 | 37 | m4_if([$1], [1.11], [], | 37 | m4_if([$1], [1.11.1], [], |
316 | 38 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | 38 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
317 | 39 | ]) | 39 | ]) |
318 | 40 | 40 | ||
319 | @@ -50,7 +50,7 @@ | |||
320 | 50 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | 50 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
321 | 51 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | 51 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
322 | 52 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | 52 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
324 | 53 | [AM_AUTOMAKE_VERSION([1.11])dnl | 53 | [AM_AUTOMAKE_VERSION([1.11.1])dnl |
325 | 54 | m4_ifndef([AC_AUTOCONF_VERSION], | 54 | m4_ifndef([AC_AUTOCONF_VERSION], |
326 | 55 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | 55 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
327 | 56 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | 56 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
328 | @@ -1001,841 +1001,11 @@ | |||
329 | 1001 | AC_SUBST([am__untar]) | 1001 | AC_SUBST([am__untar]) |
330 | 1002 | ]) # _AM_PROG_TAR | 1002 | ]) # _AM_PROG_TAR |
331 | 1003 | 1003 | ||
332 | 1004 | # Copyright (C) 1995-2002 Free Software Foundation, Inc. | ||
333 | 1005 | # Copyright (C) 2001-2003,2004 Red Hat, Inc. | ||
334 | 1006 | # | ||
335 | 1007 | # This file is free software, distributed under the terms of the GNU | ||
336 | 1008 | # General Public License. As a special exception to the GNU General | ||
337 | 1009 | # Public License, this file may be distributed as part of a program | ||
338 | 1010 | # that contains a configuration script generated by Autoconf, under | ||
339 | 1011 | # the same distribution terms as the rest of that program. | ||
340 | 1012 | # | ||
341 | 1013 | # This file can be copied and used freely without restrictions. It can | ||
342 | 1014 | # be used in projects which are not available under the GNU Public License | ||
343 | 1015 | # but which still want to provide support for the GNU gettext functionality. | ||
344 | 1016 | # | ||
345 | 1017 | # Macro to add for using GNU gettext. | ||
346 | 1018 | # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 | ||
347 | 1019 | # | ||
348 | 1020 | # Modified to never use included libintl. | ||
349 | 1021 | # Owen Taylor <otaylor@redhat.com>, 12/15/1998 | ||
350 | 1022 | # | ||
351 | 1023 | # Major rework to remove unused code | ||
352 | 1024 | # Owen Taylor <otaylor@redhat.com>, 12/11/2002 | ||
353 | 1025 | # | ||
354 | 1026 | # Added better handling of ALL_LINGUAS from GNU gettext version | ||
355 | 1027 | # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 | ||
356 | 1028 | # | ||
357 | 1029 | # Modified to require ngettext | ||
358 | 1030 | # Matthias Clasen <mclasen@redhat.com> 08/06/2004 | ||
359 | 1031 | # | ||
360 | 1032 | # We need this here as well, since someone might use autoconf-2.5x | ||
361 | 1033 | # to configure GLib then an older version to configure a package | ||
362 | 1034 | # using AM_GLIB_GNU_GETTEXT | ||
363 | 1035 | AC_PREREQ(2.53) | ||
364 | 1036 | |||
365 | 1037 | dnl | ||
366 | 1038 | dnl We go to great lengths to make sure that aclocal won't | ||
367 | 1039 | dnl try to pull in the installed version of these macros | ||
368 | 1040 | dnl when running aclocal in the glib directory. | ||
369 | 1041 | dnl | ||
370 | 1042 | m4_copy([AC_DEFUN],[glib_DEFUN]) | ||
371 | 1043 | m4_copy([AC_REQUIRE],[glib_REQUIRE]) | ||
372 | 1044 | dnl | ||
373 | 1045 | dnl At the end, if we're not within glib, we'll define the public | ||
374 | 1046 | dnl definitions in terms of our private definitions. | ||
375 | 1047 | dnl | ||
376 | 1048 | |||
377 | 1049 | # GLIB_LC_MESSAGES | ||
378 | 1050 | #-------------------- | ||
379 | 1051 | glib_DEFUN([GLIB_LC_MESSAGES], | ||
380 | 1052 | [AC_CHECK_HEADERS([locale.h]) | ||
381 | 1053 | if test $ac_cv_header_locale_h = yes; then | ||
382 | 1054 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, | ||
383 | 1055 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | ||
384 | 1056 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) | ||
385 | 1057 | if test $am_cv_val_LC_MESSAGES = yes; then | ||
386 | 1058 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | ||
387 | 1059 | [Define if your <locale.h> file defines LC_MESSAGES.]) | ||
388 | 1060 | fi | ||
389 | 1061 | fi]) | ||
390 | 1062 | |||
391 | 1063 | # GLIB_PATH_PROG_WITH_TEST | ||
392 | 1064 | #---------------------------- | ||
393 | 1065 | dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, | ||
394 | 1066 | dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) | ||
395 | 1067 | glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], | ||
396 | 1068 | [# Extract the first word of "$2", so it can be a program name with args. | ||
397 | 1069 | set dummy $2; ac_word=[$]2 | ||
398 | 1070 | AC_MSG_CHECKING([for $ac_word]) | ||
399 | 1071 | AC_CACHE_VAL(ac_cv_path_$1, | ||
400 | 1072 | [case "[$]$1" in | ||
401 | 1073 | /*) | ||
402 | 1074 | ac_cv_path_$1="[$]$1" # Let the user override the test with a path. | ||
403 | 1075 | ;; | ||
404 | 1076 | *) | ||
405 | 1077 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | ||
406 | 1078 | for ac_dir in ifelse([$5], , $PATH, [$5]); do | ||
407 | 1079 | test -z "$ac_dir" && ac_dir=. | ||
408 | 1080 | if test -f $ac_dir/$ac_word; then | ||
409 | 1081 | if [$3]; then | ||
410 | 1082 | ac_cv_path_$1="$ac_dir/$ac_word" | ||
411 | 1083 | break | ||
412 | 1084 | fi | ||
413 | 1085 | fi | ||
414 | 1086 | done | ||
415 | 1087 | IFS="$ac_save_ifs" | ||
416 | 1088 | dnl If no 4th arg is given, leave the cache variable unset, | ||
417 | 1089 | dnl so AC_PATH_PROGS will keep looking. | ||
418 | 1090 | ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" | ||
419 | 1091 | ])dnl | ||
420 | 1092 | ;; | ||
421 | 1093 | esac])dnl | ||
422 | 1094 | $1="$ac_cv_path_$1" | ||
423 | 1095 | if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then | ||
424 | 1096 | AC_MSG_RESULT([$]$1) | ||
425 | 1097 | else | ||
426 | 1098 | AC_MSG_RESULT(no) | ||
427 | 1099 | fi | ||
428 | 1100 | AC_SUBST($1)dnl | ||
429 | 1101 | ]) | ||
430 | 1102 | |||
431 | 1103 | # GLIB_WITH_NLS | ||
432 | 1104 | #----------------- | ||
433 | 1105 | glib_DEFUN([GLIB_WITH_NLS], | ||
434 | 1106 | dnl NLS is obligatory | ||
435 | 1107 | [USE_NLS=yes | ||
436 | 1108 | AC_SUBST(USE_NLS) | ||
437 | 1109 | |||
438 | 1110 | gt_cv_have_gettext=no | ||
439 | 1111 | |||
440 | 1112 | CATOBJEXT=NONE | ||
441 | 1113 | XGETTEXT=: | ||
442 | 1114 | INTLLIBS= | ||
443 | 1115 | |||
444 | 1116 | AC_CHECK_HEADER(libintl.h, | ||
445 | 1117 | [gt_cv_func_dgettext_libintl="no" | ||
446 | 1118 | libintl_extra_libs="" | ||
447 | 1119 | |||
448 | 1120 | # | ||
449 | 1121 | # First check in libc | ||
450 | 1122 | # | ||
451 | 1123 | AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, | ||
452 | 1124 | [AC_TRY_LINK([ | ||
453 | 1125 | #include <libintl.h> | ||
454 | 1126 | ], | ||
455 | 1127 | [return !ngettext ("","", 1)], | ||
456 | 1128 | gt_cv_func_ngettext_libc=yes, | ||
457 | 1129 | gt_cv_func_ngettext_libc=no) | ||
458 | 1130 | ]) | ||
459 | 1131 | |||
460 | 1132 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
461 | 1133 | AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, | ||
462 | 1134 | [AC_TRY_LINK([ | ||
463 | 1135 | #include <libintl.h> | ||
464 | 1136 | ], | ||
465 | 1137 | [return !dgettext ("","")], | ||
466 | 1138 | gt_cv_func_dgettext_libc=yes, | ||
467 | 1139 | gt_cv_func_dgettext_libc=no) | ||
468 | 1140 | ]) | ||
469 | 1141 | fi | ||
470 | 1142 | |||
471 | 1143 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
472 | 1144 | AC_CHECK_FUNCS(bind_textdomain_codeset) | ||
473 | 1145 | fi | ||
474 | 1146 | |||
475 | 1147 | # | ||
476 | 1148 | # If we don't have everything we want, check in libintl | ||
477 | 1149 | # | ||
478 | 1150 | if test "$gt_cv_func_dgettext_libc" != "yes" \ | ||
479 | 1151 | || test "$gt_cv_func_ngettext_libc" != "yes" \ | ||
480 | 1152 | || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then | ||
481 | 1153 | |||
482 | 1154 | AC_CHECK_LIB(intl, bindtextdomain, | ||
483 | 1155 | [AC_CHECK_LIB(intl, ngettext, | ||
484 | 1156 | [AC_CHECK_LIB(intl, dgettext, | ||
485 | 1157 | gt_cv_func_dgettext_libintl=yes)])]) | ||
486 | 1158 | |||
487 | 1159 | if test "$gt_cv_func_dgettext_libintl" != "yes" ; then | ||
488 | 1160 | AC_MSG_CHECKING([if -liconv is needed to use gettext]) | ||
489 | 1161 | AC_MSG_RESULT([]) | ||
490 | 1162 | AC_CHECK_LIB(intl, ngettext, | ||
491 | 1163 | [AC_CHECK_LIB(intl, dcgettext, | ||
492 | 1164 | [gt_cv_func_dgettext_libintl=yes | ||
493 | 1165 | libintl_extra_libs=-liconv], | ||
494 | 1166 | :,-liconv)], | ||
495 | 1167 | :,-liconv) | ||
496 | 1168 | fi | ||
497 | 1169 | |||
498 | 1170 | # | ||
499 | 1171 | # If we found libintl, then check in it for bind_textdomain_codeset(); | ||
500 | 1172 | # we'll prefer libc if neither have bind_textdomain_codeset(), | ||
501 | 1173 | # and both have dgettext and ngettext | ||
502 | 1174 | # | ||
503 | 1175 | if test "$gt_cv_func_dgettext_libintl" = "yes" ; then | ||
504 | 1176 | glib_save_LIBS="$LIBS" | ||
505 | 1177 | LIBS="$LIBS -lintl $libintl_extra_libs" | ||
506 | 1178 | unset ac_cv_func_bind_textdomain_codeset | ||
507 | 1179 | AC_CHECK_FUNCS(bind_textdomain_codeset) | ||
508 | 1180 | LIBS="$glib_save_LIBS" | ||
509 | 1181 | |||
510 | 1182 | if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then | ||
511 | 1183 | gt_cv_func_dgettext_libc=no | ||
512 | 1184 | else | ||
513 | 1185 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
514 | 1186 | && test "$gt_cv_func_ngettext_libc" = "yes"; then | ||
515 | 1187 | gt_cv_func_dgettext_libintl=no | ||
516 | 1188 | fi | ||
517 | 1189 | fi | ||
518 | 1190 | fi | ||
519 | 1191 | fi | ||
520 | 1192 | |||
521 | 1193 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
522 | 1194 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
523 | 1195 | gt_cv_have_gettext=yes | ||
524 | 1196 | fi | ||
525 | 1197 | |||
526 | 1198 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
527 | 1199 | INTLLIBS="-lintl $libintl_extra_libs" | ||
528 | 1200 | fi | ||
529 | 1201 | |||
530 | 1202 | if test "$gt_cv_have_gettext" = "yes"; then | ||
531 | 1203 | AC_DEFINE(HAVE_GETTEXT,1, | ||
532 | 1204 | [Define if the GNU gettext() function is already present or preinstalled.]) | ||
533 | 1205 | GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | ||
534 | 1206 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl | ||
535 | 1207 | if test "$MSGFMT" != "no"; then | ||
536 | 1208 | glib_save_LIBS="$LIBS" | ||
537 | 1209 | LIBS="$LIBS $INTLLIBS" | ||
538 | 1210 | AC_CHECK_FUNCS(dcgettext) | ||
539 | 1211 | MSGFMT_OPTS= | ||
540 | 1212 | AC_MSG_CHECKING([if msgfmt accepts -c]) | ||
541 | 1213 | GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ | ||
542 | 1214 | msgid "" | ||
543 | 1215 | msgstr "" | ||
544 | 1216 | "Content-Type: text/plain; charset=UTF-8\n" | ||
545 | 1217 | "Project-Id-Version: test 1.0\n" | ||
546 | 1218 | "PO-Revision-Date: 2007-02-15 12:01+0100\n" | ||
547 | 1219 | "Last-Translator: test <foo@bar.xx>\n" | ||
548 | 1220 | "Language-Team: C <LL@li.org>\n" | ||
549 | 1221 | "MIME-Version: 1.0\n" | ||
550 | 1222 | "Content-Transfer-Encoding: 8bit\n" | ||
551 | 1223 | ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) | ||
552 | 1224 | AC_SUBST(MSGFMT_OPTS) | ||
553 | 1225 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
554 | 1226 | GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, | ||
555 | 1227 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) | ||
556 | 1228 | AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; | ||
557 | 1229 | return _nl_msg_cat_cntr], | ||
558 | 1230 | [CATOBJEXT=.gmo | ||
559 | 1231 | DATADIRNAME=share], | ||
560 | 1232 | [case $host in | ||
561 | 1233 | *-*-solaris*) | ||
562 | 1234 | dnl On Solaris, if bind_textdomain_codeset is in libc, | ||
563 | 1235 | dnl GNU format message catalog is always supported, | ||
564 | 1236 | dnl since both are added to the libc all together. | ||
565 | 1237 | dnl Hence, we'd like to go with DATADIRNAME=share and | ||
566 | 1238 | dnl and CATOBJEXT=.gmo in this case. | ||
567 | 1239 | AC_CHECK_FUNC(bind_textdomain_codeset, | ||
568 | 1240 | [CATOBJEXT=.gmo | ||
569 | 1241 | DATADIRNAME=share], | ||
570 | 1242 | [CATOBJEXT=.mo | ||
571 | 1243 | DATADIRNAME=lib]) | ||
572 | 1244 | ;; | ||
573 | 1245 | *) | ||
574 | 1246 | CATOBJEXT=.mo | ||
575 | 1247 | DATADIRNAME=lib | ||
576 | 1248 | ;; | ||
577 | 1249 | esac]) | ||
578 | 1250 | LIBS="$glib_save_LIBS" | ||
579 | 1251 | INSTOBJEXT=.mo | ||
580 | 1252 | else | ||
581 | 1253 | gt_cv_have_gettext=no | ||
582 | 1254 | fi | ||
583 | 1255 | fi | ||
584 | 1256 | ]) | ||
585 | 1257 | |||
586 | 1258 | if test "$gt_cv_have_gettext" = "yes" ; then | ||
587 | 1259 | AC_DEFINE(ENABLE_NLS, 1, | ||
588 | 1260 | [always defined to indicate that i18n is enabled]) | ||
589 | 1261 | fi | ||
590 | 1262 | |||
591 | 1263 | dnl Test whether we really found GNU xgettext. | ||
592 | 1264 | if test "$XGETTEXT" != ":"; then | ||
593 | 1265 | dnl If it is not GNU xgettext we define it as : so that the | ||
594 | 1266 | dnl Makefiles still can work. | ||
595 | 1267 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | ||
596 | 1268 | : ; | ||
597 | 1269 | else | ||
598 | 1270 | AC_MSG_RESULT( | ||
599 | 1271 | [found xgettext program is not GNU xgettext; ignore it]) | ||
600 | 1272 | XGETTEXT=":" | ||
601 | 1273 | fi | ||
602 | 1274 | fi | ||
603 | 1275 | |||
604 | 1276 | # We need to process the po/ directory. | ||
605 | 1277 | POSUB=po | ||
606 | 1278 | |||
607 | 1279 | AC_OUTPUT_COMMANDS( | ||
608 | 1280 | [case "$CONFIG_FILES" in *po/Makefile.in*) | ||
609 | 1281 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | ||
610 | 1282 | esac]) | ||
611 | 1283 | |||
612 | 1284 | dnl These rules are solely for the distribution goal. While doing this | ||
613 | 1285 | dnl we only have to keep exactly one list of the available catalogs | ||
614 | 1286 | dnl in configure.in. | ||
615 | 1287 | for lang in $ALL_LINGUAS; do | ||
616 | 1288 | GMOFILES="$GMOFILES $lang.gmo" | ||
617 | 1289 | POFILES="$POFILES $lang.po" | ||
618 | 1290 | done | ||
619 | 1291 | |||
620 | 1292 | dnl Make all variables we use known to autoconf. | ||
621 | 1293 | AC_SUBST(CATALOGS) | ||
622 | 1294 | AC_SUBST(CATOBJEXT) | ||
623 | 1295 | AC_SUBST(DATADIRNAME) | ||
624 | 1296 | AC_SUBST(GMOFILES) | ||
625 | 1297 | AC_SUBST(INSTOBJEXT) | ||
626 | 1298 | AC_SUBST(INTLLIBS) | ||
627 | 1299 | AC_SUBST(PO_IN_DATADIR_TRUE) | ||
628 | 1300 | AC_SUBST(PO_IN_DATADIR_FALSE) | ||
629 | 1301 | AC_SUBST(POFILES) | ||
630 | 1302 | AC_SUBST(POSUB) | ||
631 | 1303 | ]) | ||
632 | 1304 | |||
633 | 1305 | # AM_GLIB_GNU_GETTEXT | ||
634 | 1306 | # ------------------- | ||
635 | 1307 | # Do checks necessary for use of gettext. If a suitable implementation | ||
636 | 1308 | # of gettext is found in either in libintl or in the C library, | ||
637 | 1309 | # it will set INTLLIBS to the libraries needed for use of gettext | ||
638 | 1310 | # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable | ||
639 | 1311 | # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() | ||
640 | 1312 | # on various variables needed by the Makefile.in.in installed by | ||
641 | 1313 | # glib-gettextize. | ||
642 | 1314 | dnl | ||
643 | 1315 | glib_DEFUN([GLIB_GNU_GETTEXT], | ||
644 | 1316 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
645 | 1317 | AC_REQUIRE([AC_HEADER_STDC])dnl | ||
646 | 1318 | |||
647 | 1319 | GLIB_LC_MESSAGES | ||
648 | 1320 | GLIB_WITH_NLS | ||
649 | 1321 | |||
650 | 1322 | if test "$gt_cv_have_gettext" = "yes"; then | ||
651 | 1323 | if test "x$ALL_LINGUAS" = "x"; then | ||
652 | 1324 | LINGUAS= | ||
653 | 1325 | else | ||
654 | 1326 | AC_MSG_CHECKING(for catalogs to be installed) | ||
655 | 1327 | NEW_LINGUAS= | ||
656 | 1328 | for presentlang in $ALL_LINGUAS; do | ||
657 | 1329 | useit=no | ||
658 | 1330 | if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then | ||
659 | 1331 | desiredlanguages="$LINGUAS" | ||
660 | 1332 | else | ||
661 | 1333 | desiredlanguages="$ALL_LINGUAS" | ||
662 | 1334 | fi | ||
663 | 1335 | for desiredlang in $desiredlanguages; do | ||
664 | 1336 | # Use the presentlang catalog if desiredlang is | ||
665 | 1337 | # a. equal to presentlang, or | ||
666 | 1338 | # b. a variant of presentlang (because in this case, | ||
667 | 1339 | # presentlang can be used as a fallback for messages | ||
668 | 1340 | # which are not translated in the desiredlang catalog). | ||
669 | 1341 | case "$desiredlang" in | ||
670 | 1342 | "$presentlang"*) useit=yes;; | ||
671 | 1343 | esac | ||
672 | 1344 | done | ||
673 | 1345 | if test $useit = yes; then | ||
674 | 1346 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | ||
675 | 1347 | fi | ||
676 | 1348 | done | ||
677 | 1349 | LINGUAS=$NEW_LINGUAS | ||
678 | 1350 | AC_MSG_RESULT($LINGUAS) | ||
679 | 1351 | fi | ||
680 | 1352 | |||
681 | 1353 | dnl Construct list of names of catalog files to be constructed. | ||
682 | 1354 | if test -n "$LINGUAS"; then | ||
683 | 1355 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | ||
684 | 1356 | fi | ||
685 | 1357 | fi | ||
686 | 1358 | |||
687 | 1359 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly | ||
688 | 1360 | dnl find the mkinstalldirs script in another subdir but ($top_srcdir). | ||
689 | 1361 | dnl Try to locate is. | ||
690 | 1362 | MKINSTALLDIRS= | ||
691 | 1363 | if test -n "$ac_aux_dir"; then | ||
692 | 1364 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | ||
693 | 1365 | fi | ||
694 | 1366 | if test -z "$MKINSTALLDIRS"; then | ||
695 | 1367 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | ||
696 | 1368 | fi | ||
697 | 1369 | AC_SUBST(MKINSTALLDIRS) | ||
698 | 1370 | |||
699 | 1371 | dnl Generate list of files to be processed by xgettext which will | ||
700 | 1372 | dnl be included in po/Makefile. | ||
701 | 1373 | test -d po || mkdir po | ||
702 | 1374 | if test "x$srcdir" != "x."; then | ||
703 | 1375 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | ||
704 | 1376 | posrcprefix="$srcdir/" | ||
705 | 1377 | else | ||
706 | 1378 | posrcprefix="../$srcdir/" | ||
707 | 1379 | fi | ||
708 | 1380 | else | ||
709 | 1381 | posrcprefix="../" | ||
710 | 1382 | fi | ||
711 | 1383 | rm -f po/POTFILES | ||
712 | 1384 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | ||
713 | 1385 | < $srcdir/po/POTFILES.in > po/POTFILES | ||
714 | 1386 | ]) | ||
715 | 1387 | |||
716 | 1388 | # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) | ||
717 | 1389 | # ------------------------------- | ||
718 | 1390 | # Define VARIABLE to the location where catalog files will | ||
719 | 1391 | # be installed by po/Makefile. | ||
720 | 1392 | glib_DEFUN([GLIB_DEFINE_LOCALEDIR], | ||
721 | 1393 | [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl | ||
722 | 1394 | glib_save_prefix="$prefix" | ||
723 | 1395 | glib_save_exec_prefix="$exec_prefix" | ||
724 | 1396 | glib_save_datarootdir="$datarootdir" | ||
725 | 1397 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
726 | 1398 | test "x$exec_prefix" = xNONE && exec_prefix=$prefix | ||
727 | 1399 | datarootdir=`eval echo "${datarootdir}"` | ||
728 | 1400 | if test "x$CATOBJEXT" = "x.mo" ; then | ||
729 | 1401 | localedir=`eval echo "${libdir}/locale"` | ||
730 | 1402 | else | ||
731 | 1403 | localedir=`eval echo "${datadir}/locale"` | ||
732 | 1404 | fi | ||
733 | 1405 | prefix="$glib_save_prefix" | ||
734 | 1406 | exec_prefix="$glib_save_exec_prefix" | ||
735 | 1407 | datarootdir="$glib_save_datarootdir" | ||
736 | 1408 | AC_DEFINE_UNQUOTED($1, "$localedir", | ||
737 | 1409 | [Define the location where the catalogs will be installed]) | ||
738 | 1410 | ]) | ||
739 | 1411 | |||
740 | 1412 | dnl | ||
741 | 1413 | dnl Now the definitions that aclocal will find | ||
742 | 1414 | dnl | ||
743 | 1415 | ifdef(glib_configure_in,[],[ | ||
744 | 1416 | AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) | ||
745 | 1417 | AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) | ||
746 | 1418 | ])dnl | ||
747 | 1419 | |||
748 | 1420 | # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) | ||
749 | 1421 | # | ||
750 | 1422 | # Create a temporary file with TEST-FILE as its contents and pass the | ||
751 | 1423 | # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with | ||
752 | 1424 | # 0 and perform ACTION-IF-FAIL for any other exit status. | ||
753 | 1425 | AC_DEFUN([GLIB_RUN_PROG], | ||
754 | 1426 | [cat >conftest.foo <<_ACEOF | ||
755 | 1427 | $2 | ||
756 | 1428 | _ACEOF | ||
757 | 1429 | if AC_RUN_LOG([$1 conftest.foo]); then | ||
758 | 1430 | m4_ifval([$3], [$3], [:]) | ||
759 | 1431 | m4_ifvaln([$4], [else $4])dnl | ||
760 | 1432 | echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD | ||
761 | 1433 | sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD | ||
762 | 1434 | fi]) | ||
763 | 1435 | |||
764 | 1436 | |||
765 | 1437 | dnl GNOME_COMPILE_WARNINGS | ||
766 | 1438 | dnl Turn on many useful compiler warnings | ||
767 | 1439 | dnl For now, only works on GCC | ||
768 | 1440 | AC_DEFUN([GNOME_COMPILE_WARNINGS],[ | ||
769 | 1441 | dnl ****************************** | ||
770 | 1442 | dnl More compiler warnings | ||
771 | 1443 | dnl ****************************** | ||
772 | 1444 | |||
773 | 1445 | AC_ARG_ENABLE(compile-warnings, | ||
774 | 1446 | AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@], | ||
775 | 1447 | [Turn on compiler warnings]),, | ||
776 | 1448 | [enable_compile_warnings="m4_default([$1],[yes])"]) | ||
777 | 1449 | |||
778 | 1450 | warnCFLAGS= | ||
779 | 1451 | if test "x$GCC" != xyes; then | ||
780 | 1452 | enable_compile_warnings=no | ||
781 | 1453 | fi | ||
782 | 1454 | |||
783 | 1455 | warning_flags= | ||
784 | 1456 | realsave_CFLAGS="$CFLAGS" | ||
785 | 1457 | |||
786 | 1458 | case "$enable_compile_warnings" in | ||
787 | 1459 | no) | ||
788 | 1460 | warning_flags= | ||
789 | 1461 | ;; | ||
790 | 1462 | minimum) | ||
791 | 1463 | warning_flags="-Wall" | ||
792 | 1464 | ;; | ||
793 | 1465 | yes) | ||
794 | 1466 | warning_flags="-Wall -Wmissing-prototypes" | ||
795 | 1467 | ;; | ||
796 | 1468 | maximum|error) | ||
797 | 1469 | warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith" | ||
798 | 1470 | CFLAGS="$warning_flags $CFLAGS" | ||
799 | 1471 | for option in -Wno-sign-compare; do | ||
800 | 1472 | SAVE_CFLAGS="$CFLAGS" | ||
801 | 1473 | CFLAGS="$CFLAGS $option" | ||
802 | 1474 | AC_MSG_CHECKING([whether gcc understands $option]) | ||
803 | 1475 | AC_TRY_COMPILE([], [], | ||
804 | 1476 | has_option=yes, | ||
805 | 1477 | has_option=no,) | ||
806 | 1478 | CFLAGS="$SAVE_CFLAGS" | ||
807 | 1479 | AC_MSG_RESULT($has_option) | ||
808 | 1480 | if test $has_option = yes; then | ||
809 | 1481 | warning_flags="$warning_flags $option" | ||
810 | 1482 | fi | ||
811 | 1483 | unset has_option | ||
812 | 1484 | unset SAVE_CFLAGS | ||
813 | 1485 | done | ||
814 | 1486 | unset option | ||
815 | 1487 | if test "$enable_compile_warnings" = "error" ; then | ||
816 | 1488 | warning_flags="$warning_flags -Werror" | ||
817 | 1489 | fi | ||
818 | 1490 | ;; | ||
819 | 1491 | *) | ||
820 | 1492 | AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings) | ||
821 | 1493 | ;; | ||
822 | 1494 | esac | ||
823 | 1495 | CFLAGS="$realsave_CFLAGS" | ||
824 | 1496 | AC_MSG_CHECKING(what warning flags to pass to the C compiler) | ||
825 | 1497 | AC_MSG_RESULT($warning_flags) | ||
826 | 1498 | |||
827 | 1499 | AC_ARG_ENABLE(iso-c, | ||
828 | 1500 | AC_HELP_STRING([--enable-iso-c], | ||
829 | 1501 | [Try to warn if code is not ISO C ]),, | ||
830 | 1502 | [enable_iso_c=no]) | ||
831 | 1503 | |||
832 | 1504 | AC_MSG_CHECKING(what language compliance flags to pass to the C compiler) | ||
833 | 1505 | complCFLAGS= | ||
834 | 1506 | if test "x$enable_iso_c" != "xno"; then | ||
835 | 1507 | if test "x$GCC" = "xyes"; then | ||
836 | 1508 | case " $CFLAGS " in | ||
837 | 1509 | *[\ \ ]-ansi[\ \ ]*) ;; | ||
838 | 1510 | *) complCFLAGS="$complCFLAGS -ansi" ;; | ||
839 | 1511 | esac | ||
840 | 1512 | case " $CFLAGS " in | ||
841 | 1513 | *[\ \ ]-pedantic[\ \ ]*) ;; | ||
842 | 1514 | *) complCFLAGS="$complCFLAGS -pedantic" ;; | ||
843 | 1515 | esac | ||
844 | 1516 | fi | ||
845 | 1517 | fi | ||
846 | 1518 | AC_MSG_RESULT($complCFLAGS) | ||
847 | 1519 | |||
848 | 1520 | WARN_CFLAGS="$warning_flags $complCFLAGS" | ||
849 | 1521 | AC_SUBST(WARN_CFLAGS) | ||
850 | 1522 | ]) | ||
851 | 1523 | |||
852 | 1524 | dnl For C++, do basically the same thing. | ||
853 | 1525 | |||
854 | 1526 | AC_DEFUN([GNOME_CXX_WARNINGS],[ | ||
855 | 1527 | AC_ARG_ENABLE(cxx-warnings, | ||
856 | 1528 | AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@] | ||
857 | 1529 | [Turn on compiler warnings.]),, | ||
858 | 1530 | [enable_cxx_warnings="m4_default([$1],[minimum])"]) | ||
859 | 1531 | |||
860 | 1532 | AC_MSG_CHECKING(what warning flags to pass to the C++ compiler) | ||
861 | 1533 | warnCXXFLAGS= | ||
862 | 1534 | if test "x$GXX" != xyes; then | ||
863 | 1535 | enable_cxx_warnings=no | ||
864 | 1536 | fi | ||
865 | 1537 | if test "x$enable_cxx_warnings" != "xno"; then | ||
866 | 1538 | if test "x$GXX" = "xyes"; then | ||
867 | 1539 | case " $CXXFLAGS " in | ||
868 | 1540 | *[\ \ ]-Wall[\ \ ]*) ;; | ||
869 | 1541 | *) warnCXXFLAGS="-Wall -Wno-unused" ;; | ||
870 | 1542 | esac | ||
871 | 1543 | |||
872 | 1544 | ## -W is not all that useful. And it cannot be controlled | ||
873 | 1545 | ## with individual -Wno-xxx flags, unlike -Wall | ||
874 | 1546 | if test "x$enable_cxx_warnings" = "xyes"; then | ||
875 | 1547 | warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual" | ||
876 | 1548 | fi | ||
877 | 1549 | fi | ||
878 | 1550 | fi | ||
879 | 1551 | AC_MSG_RESULT($warnCXXFLAGS) | ||
880 | 1552 | |||
881 | 1553 | AC_ARG_ENABLE(iso-cxx, | ||
882 | 1554 | AC_HELP_STRING([--enable-iso-cxx], | ||
883 | 1555 | [Try to warn if code is not ISO C++ ]),, | ||
884 | 1556 | [enable_iso_cxx=no]) | ||
885 | 1557 | |||
886 | 1558 | AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler) | ||
887 | 1559 | complCXXFLAGS= | ||
888 | 1560 | if test "x$enable_iso_cxx" != "xno"; then | ||
889 | 1561 | if test "x$GXX" = "xyes"; then | ||
890 | 1562 | case " $CXXFLAGS " in | ||
891 | 1563 | *[\ \ ]-ansi[\ \ ]*) ;; | ||
892 | 1564 | *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; | ||
893 | 1565 | esac | ||
894 | 1566 | |||
895 | 1567 | case " $CXXFLAGS " in | ||
896 | 1568 | *[\ \ ]-pedantic[\ \ ]*) ;; | ||
897 | 1569 | *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;; | ||
898 | 1570 | esac | ||
899 | 1571 | fi | ||
900 | 1572 | fi | ||
901 | 1573 | AC_MSG_RESULT($complCXXFLAGS) | ||
902 | 1574 | |||
903 | 1575 | WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" | ||
904 | 1576 | AC_SUBST(WARN_CXXFLAGS) | ||
905 | 1577 | ]) | ||
906 | 1578 | |||
907 | 1579 | dnl -*- mode: autoconf -*- | ||
908 | 1580 | |||
909 | 1581 | # serial 1 | ||
910 | 1582 | |||
911 | 1583 | dnl Usage: | ||
912 | 1584 | dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) | ||
913 | 1585 | AC_DEFUN([GTK_DOC_CHECK], | ||
914 | 1586 | [ | ||
915 | 1587 | AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
916 | 1588 | AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
917 | 1589 | |||
918 | 1590 | dnl check for tools we added during development | ||
919 | 1591 | AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check]) | ||
920 | 1592 | AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true]) | ||
921 | 1593 | AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf]) | ||
922 | 1594 | |||
923 | 1595 | dnl for overriding the documentation installation directory | ||
924 | 1596 | AC_ARG_WITH([html-dir], | ||
925 | 1597 | AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, | ||
926 | 1598 | [with_html_dir='${datadir}/gtk-doc/html']) | ||
927 | 1599 | HTML_DIR="$with_html_dir" | ||
928 | 1600 | AC_SUBST([HTML_DIR]) | ||
929 | 1601 | |||
930 | 1602 | dnl enable/disable documentation building | ||
931 | 1603 | AC_ARG_ENABLE([gtk-doc], | ||
932 | 1604 | AS_HELP_STRING([--enable-gtk-doc], | ||
933 | 1605 | [use gtk-doc to build documentation [[default=no]]]),, | ||
934 | 1606 | [enable_gtk_doc=no]) | ||
935 | 1607 | |||
936 | 1608 | if test x$enable_gtk_doc = xyes; then | ||
937 | 1609 | ifelse([$1],[], | ||
938 | 1610 | [PKG_CHECK_EXISTS([gtk-doc],, | ||
939 | 1611 | AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))], | ||
940 | 1612 | [PKG_CHECK_EXISTS([gtk-doc >= $1],, | ||
941 | 1613 | AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))]) | ||
942 | 1614 | fi | ||
943 | 1615 | |||
944 | 1616 | AC_MSG_CHECKING([whether to build gtk-doc documentation]) | ||
945 | 1617 | AC_MSG_RESULT($enable_gtk_doc) | ||
946 | 1618 | |||
947 | 1619 | dnl enable/disable output formats | ||
948 | 1620 | AC_ARG_ENABLE([gtk-doc-html], | ||
949 | 1621 | AS_HELP_STRING([--enable-gtk-doc-html], | ||
950 | 1622 | [build documentation in html format [[default=yes]]]),, | ||
951 | 1623 | [enable_gtk_doc_html=yes]) | ||
952 | 1624 | AC_ARG_ENABLE([gtk-doc-pdf], | ||
953 | 1625 | AS_HELP_STRING([--enable-gtk-doc-pdf], | ||
954 | 1626 | [build documentation in pdf format [[default=no]]]),, | ||
955 | 1627 | [enable_gtk_doc_pdf=no]) | ||
956 | 1628 | |||
957 | 1629 | if test -z "$GTKDOC_MKPDF"; then | ||
958 | 1630 | enable_gtk_doc_pdf=no | ||
959 | 1631 | fi | ||
960 | 1632 | |||
961 | 1633 | |||
962 | 1634 | AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) | ||
963 | 1635 | AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes]) | ||
964 | 1636 | AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes]) | ||
965 | 1637 | AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) | ||
966 | 1638 | AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"]) | ||
967 | 1639 | ]) | ||
968 | 1640 | |||
969 | 1641 | |||
970 | 1642 | dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) | ||
971 | 1643 | # serial 40 IT_PROG_INTLTOOL | ||
972 | 1644 | AC_DEFUN([IT_PROG_INTLTOOL], [ | ||
973 | 1645 | AC_PREREQ([2.50])dnl | ||
974 | 1646 | AC_REQUIRE([AM_NLS])dnl | ||
975 | 1647 | |||
976 | 1648 | case "$am__api_version" in | ||
977 | 1649 | 1.[01234]) | ||
978 | 1650 | AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) | ||
979 | 1651 | ;; | ||
980 | 1652 | *) | ||
981 | 1653 | ;; | ||
982 | 1654 | esac | ||
983 | 1655 | |||
984 | 1656 | if test -n "$1"; then | ||
985 | 1657 | AC_MSG_CHECKING([for intltool >= $1]) | ||
986 | 1658 | |||
987 | 1659 | INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` | ||
988 | 1660 | INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` | ||
989 | 1661 | [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` | ||
990 | 1662 | ] | ||
991 | 1663 | AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) | ||
992 | 1664 | test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || | ||
993 | 1665 | AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) | ||
994 | 1666 | fi | ||
995 | 1667 | |||
996 | 1668 | AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) | ||
997 | 1669 | AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) | ||
998 | 1670 | AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) | ||
999 | 1671 | if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then | ||
1000 | 1672 | AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) | ||
1001 | 1673 | fi | ||
1002 | 1674 | |||
1003 | 1675 | INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1004 | 1676 | INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1005 | 1677 | INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1006 | 1678 | INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1007 | 1679 | INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' | ||
1008 | 1680 | INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1009 | 1681 | INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1010 | 1682 | INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1011 | 1683 | INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1012 | 1684 | INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1013 | 1685 | INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1014 | 1686 | INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' | ||
1015 | 1687 | INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1016 | 1688 | INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1017 | 1689 | INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1018 | 1690 | INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1019 | 1691 | INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1020 | 1692 | INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1021 | 1693 | INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
1022 | 1694 | |||
1023 | 1695 | _IT_SUBST(INTLTOOL_DESKTOP_RULE) | ||
1024 | 1696 | _IT_SUBST(INTLTOOL_DIRECTORY_RULE) | ||
1025 | 1697 | _IT_SUBST(INTLTOOL_KEYS_RULE) | ||
1026 | 1698 | _IT_SUBST(INTLTOOL_PROP_RULE) | ||
1027 | 1699 | _IT_SUBST(INTLTOOL_OAF_RULE) | ||
1028 | 1700 | _IT_SUBST(INTLTOOL_PONG_RULE) | ||
1029 | 1701 | _IT_SUBST(INTLTOOL_SERVER_RULE) | ||
1030 | 1702 | _IT_SUBST(INTLTOOL_SHEET_RULE) | ||
1031 | 1703 | _IT_SUBST(INTLTOOL_SOUNDLIST_RULE) | ||
1032 | 1704 | _IT_SUBST(INTLTOOL_UI_RULE) | ||
1033 | 1705 | _IT_SUBST(INTLTOOL_XAM_RULE) | ||
1034 | 1706 | _IT_SUBST(INTLTOOL_KBD_RULE) | ||
1035 | 1707 | _IT_SUBST(INTLTOOL_XML_RULE) | ||
1036 | 1708 | _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) | ||
1037 | 1709 | _IT_SUBST(INTLTOOL_CAVES_RULE) | ||
1038 | 1710 | _IT_SUBST(INTLTOOL_SCHEMAS_RULE) | ||
1039 | 1711 | _IT_SUBST(INTLTOOL_THEME_RULE) | ||
1040 | 1712 | _IT_SUBST(INTLTOOL_SERVICE_RULE) | ||
1041 | 1713 | _IT_SUBST(INTLTOOL_POLICY_RULE) | ||
1042 | 1714 | |||
1043 | 1715 | # Check the gettext tools to make sure they are GNU | ||
1044 | 1716 | AC_PATH_PROG(XGETTEXT, xgettext) | ||
1045 | 1717 | AC_PATH_PROG(MSGMERGE, msgmerge) | ||
1046 | 1718 | AC_PATH_PROG(MSGFMT, msgfmt) | ||
1047 | 1719 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
1048 | 1720 | if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then | ||
1049 | 1721 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | ||
1050 | 1722 | fi | ||
1051 | 1723 | xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" | ||
1052 | 1724 | mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" | ||
1053 | 1725 | mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" | ||
1054 | 1726 | if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then | ||
1055 | 1727 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | ||
1056 | 1728 | fi | ||
1057 | 1729 | |||
1058 | 1730 | AC_PATH_PROG(INTLTOOL_PERL, perl) | ||
1059 | 1731 | if test -z "$INTLTOOL_PERL"; then | ||
1060 | 1732 | AC_MSG_ERROR([perl not found]) | ||
1061 | 1733 | fi | ||
1062 | 1734 | AC_MSG_CHECKING([for perl >= 5.8.1]) | ||
1063 | 1735 | $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 | ||
1064 | 1736 | if test $? -ne 0; then | ||
1065 | 1737 | AC_MSG_ERROR([perl 5.8.1 is required for intltool]) | ||
1066 | 1738 | else | ||
1067 | 1739 | IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" | ||
1068 | 1740 | AC_MSG_RESULT([$IT_PERL_VERSION]) | ||
1069 | 1741 | fi | ||
1070 | 1742 | if test "x$2" != "xno-xml"; then | ||
1071 | 1743 | AC_MSG_CHECKING([for XML::Parser]) | ||
1072 | 1744 | if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then | ||
1073 | 1745 | AC_MSG_RESULT([ok]) | ||
1074 | 1746 | else | ||
1075 | 1747 | AC_MSG_ERROR([XML::Parser perl module is required for intltool]) | ||
1076 | 1748 | fi | ||
1077 | 1749 | fi | ||
1078 | 1750 | |||
1079 | 1751 | # Substitute ALL_LINGUAS so we can use it in po/Makefile | ||
1080 | 1752 | AC_SUBST(ALL_LINGUAS) | ||
1081 | 1753 | |||
1082 | 1754 | # Set DATADIRNAME correctly if it is not set yet | ||
1083 | 1755 | # (copied from glib-gettext.m4) | ||
1084 | 1756 | if test -z "$DATADIRNAME"; then | ||
1085 | 1757 | AC_LINK_IFELSE( | ||
1086 | 1758 | [AC_LANG_PROGRAM([[]], | ||
1087 | 1759 | [[extern int _nl_msg_cat_cntr; | ||
1088 | 1760 | return _nl_msg_cat_cntr]])], | ||
1089 | 1761 | [DATADIRNAME=share], | ||
1090 | 1762 | [case $host in | ||
1091 | 1763 | *-*-solaris*) | ||
1092 | 1764 | dnl On Solaris, if bind_textdomain_codeset is in libc, | ||
1093 | 1765 | dnl GNU format message catalog is always supported, | ||
1094 | 1766 | dnl since both are added to the libc all together. | ||
1095 | 1767 | dnl Hence, we'd like to go with DATADIRNAME=share | ||
1096 | 1768 | dnl in this case. | ||
1097 | 1769 | AC_CHECK_FUNC(bind_textdomain_codeset, | ||
1098 | 1770 | [DATADIRNAME=share], [DATADIRNAME=lib]) | ||
1099 | 1771 | ;; | ||
1100 | 1772 | *) | ||
1101 | 1773 | [DATADIRNAME=lib] | ||
1102 | 1774 | ;; | ||
1103 | 1775 | esac]) | ||
1104 | 1776 | fi | ||
1105 | 1777 | AC_SUBST(DATADIRNAME) | ||
1106 | 1778 | |||
1107 | 1779 | IT_PO_SUBDIR([po]) | ||
1108 | 1780 | |||
1109 | 1781 | ]) | ||
1110 | 1782 | |||
1111 | 1783 | |||
1112 | 1784 | # IT_PO_SUBDIR(DIRNAME) | ||
1113 | 1785 | # --------------------- | ||
1114 | 1786 | # All po subdirs have to be declared with this macro; the subdir "po" is | ||
1115 | 1787 | # declared by IT_PROG_INTLTOOL. | ||
1116 | 1788 | # | ||
1117 | 1789 | AC_DEFUN([IT_PO_SUBDIR], | ||
1118 | 1790 | [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. | ||
1119 | 1791 | dnl | ||
1120 | 1792 | dnl The following CONFIG_COMMANDS should be exetuted at the very end | ||
1121 | 1793 | dnl of config.status. | ||
1122 | 1794 | AC_CONFIG_COMMANDS_PRE([ | ||
1123 | 1795 | AC_CONFIG_COMMANDS([$1/stamp-it], [ | ||
1124 | 1796 | if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then | ||
1125 | 1797 | AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) | ||
1126 | 1798 | fi | ||
1127 | 1799 | rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" | ||
1128 | 1800 | >"$1/stamp-it.tmp" | ||
1129 | 1801 | [sed '/^#/d | ||
1130 | 1802 | s/^[[].*] *// | ||
1131 | 1803 | /^[ ]*$/d | ||
1132 | 1804 | '"s|^| $ac_top_srcdir/|" \ | ||
1133 | 1805 | "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" | ||
1134 | 1806 | ] | ||
1135 | 1807 | [sed '/^POTFILES =/,/[^\\]$/ { | ||
1136 | 1808 | /^POTFILES =/!d | ||
1137 | 1809 | r $1/POTFILES | ||
1138 | 1810 | } | ||
1139 | 1811 | ' "$1/Makefile.in" >"$1/Makefile"] | ||
1140 | 1812 | rm -f "$1/Makefile.tmp" | ||
1141 | 1813 | mv "$1/stamp-it.tmp" "$1/stamp-it" | ||
1142 | 1814 | ]) | ||
1143 | 1815 | ])dnl | ||
1144 | 1816 | ]) | ||
1145 | 1817 | |||
1146 | 1818 | # _IT_SUBST(VARIABLE) | ||
1147 | 1819 | # ------------------- | ||
1148 | 1820 | # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST | ||
1149 | 1821 | # | ||
1150 | 1822 | AC_DEFUN([_IT_SUBST], | ||
1151 | 1823 | [ | ||
1152 | 1824 | AC_SUBST([$1]) | ||
1153 | 1825 | m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) | ||
1154 | 1826 | ] | ||
1155 | 1827 | ) | ||
1156 | 1828 | |||
1157 | 1829 | # deprecated macros | ||
1158 | 1830 | AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) | ||
1159 | 1831 | # A hint is needed for aclocal from Automake <= 1.9.4: | ||
1160 | 1832 | # AC_DEFUN([AC_PROG_INTLTOOL], ...) | ||
1161 | 1833 | |||
1162 | 1834 | |||
1163 | 1835 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | 1004 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
1164 | 1836 | # | 1005 | # |
1165 | 1837 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 1006 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
1167 | 1838 | # 2006, 2007, 2008 Free Software Foundation, Inc. | 1007 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
1168 | 1008 | # Inc. | ||
1169 | 1839 | # Written by Gordon Matzigkeit, 1996 | 1009 | # Written by Gordon Matzigkeit, 1996 |
1170 | 1840 | # | 1010 | # |
1171 | 1841 | # This file is free software; the Free Software Foundation gives | 1011 | # This file is free software; the Free Software Foundation gives |
1172 | @@ -1844,7 +1014,8 @@ | |||
1173 | 1844 | 1014 | ||
1174 | 1845 | m4_define([_LT_COPYING], [dnl | 1015 | m4_define([_LT_COPYING], [dnl |
1175 | 1846 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 1016 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
1177 | 1847 | # 2006, 2007, 2008 Free Software Foundation, Inc. | 1017 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
1178 | 1018 | # Inc. | ||
1179 | 1848 | # Written by Gordon Matzigkeit, 1996 | 1019 | # Written by Gordon Matzigkeit, 1996 |
1180 | 1849 | # | 1020 | # |
1181 | 1850 | # This file is part of GNU Libtool. | 1021 | # This file is part of GNU Libtool. |
1182 | @@ -1871,7 +1042,7 @@ | |||
1183 | 1871 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 1042 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
1184 | 1872 | ]) | 1043 | ]) |
1185 | 1873 | 1044 | ||
1187 | 1874 | # serial 56 LT_INIT | 1045 | # serial 57 LT_INIT |
1188 | 1875 | 1046 | ||
1189 | 1876 | 1047 | ||
1190 | 1877 | # LT_PREREQ(VERSION) | 1048 | # LT_PREREQ(VERSION) |
1191 | @@ -1900,6 +1071,7 @@ | |||
1192 | 1900 | # ------------------ | 1071 | # ------------------ |
1193 | 1901 | AC_DEFUN([LT_INIT], | 1072 | AC_DEFUN([LT_INIT], |
1194 | 1902 | [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT | 1073 | [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
1195 | 1074 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | ||
1196 | 1903 | AC_BEFORE([$0], [LT_LANG])dnl | 1075 | AC_BEFORE([$0], [LT_LANG])dnl |
1197 | 1904 | AC_BEFORE([$0], [LT_OUTPUT])dnl | 1076 | AC_BEFORE([$0], [LT_OUTPUT])dnl |
1198 | 1905 | AC_BEFORE([$0], [LTDL_INIT])dnl | 1077 | AC_BEFORE([$0], [LTDL_INIT])dnl |
1199 | @@ -1916,6 +1088,8 @@ | |||
1200 | 1916 | AC_REQUIRE([LTOBSOLETE_VERSION])dnl | 1088 | AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
1201 | 1917 | m4_require([_LT_PROG_LTMAIN])dnl | 1089 | m4_require([_LT_PROG_LTMAIN])dnl |
1202 | 1918 | 1090 | ||
1203 | 1091 | _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) | ||
1204 | 1092 | |||
1205 | 1919 | dnl Parse OPTIONS | 1093 | dnl Parse OPTIONS |
1206 | 1920 | _LT_SET_OPTIONS([$0], [$1]) | 1094 | _LT_SET_OPTIONS([$0], [$1]) |
1207 | 1921 | 1095 | ||
1208 | @@ -1952,7 +1126,7 @@ | |||
1209 | 1952 | *) break;; | 1126 | *) break;; |
1210 | 1953 | esac | 1127 | esac |
1211 | 1954 | done | 1128 | done |
1213 | 1955 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | 1129 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1214 | 1956 | ]) | 1130 | ]) |
1215 | 1957 | 1131 | ||
1216 | 1958 | 1132 | ||
1217 | @@ -1972,6 +1146,9 @@ | |||
1218 | 1972 | m4_defun([_LT_SETUP], | 1146 | m4_defun([_LT_SETUP], |
1219 | 1973 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 1147 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
1220 | 1974 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | 1148 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
1221 | 1149 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | ||
1222 | 1150 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | ||
1223 | 1151 | |||
1224 | 1975 | _LT_DECL([], [host_alias], [0], [The host system])dnl | 1152 | _LT_DECL([], [host_alias], [0], [The host system])dnl |
1225 | 1976 | _LT_DECL([], [host], [0])dnl | 1153 | _LT_DECL([], [host], [0])dnl |
1226 | 1977 | _LT_DECL([], [host_os], [0])dnl | 1154 | _LT_DECL([], [host_os], [0])dnl |
1227 | @@ -2013,7 +1190,6 @@ | |||
1228 | 2013 | _LT_CHECK_OBJDIR | 1190 | _LT_CHECK_OBJDIR |
1229 | 2014 | 1191 | ||
1230 | 2015 | m4_require([_LT_TAG_COMPILER])dnl | 1192 | m4_require([_LT_TAG_COMPILER])dnl |
1231 | 2016 | _LT_PROG_ECHO_BACKSLASH | ||
1232 | 2017 | 1193 | ||
1233 | 2018 | case $host_os in | 1194 | case $host_os in |
1234 | 2019 | aix3*) | 1195 | aix3*) |
1235 | @@ -2027,23 +1203,6 @@ | |||
1236 | 2027 | ;; | 1203 | ;; |
1237 | 2028 | esac | 1204 | esac |
1238 | 2029 | 1205 | ||
1239 | 2030 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
1240 | 2031 | # metacharacters that are still active within double-quoted strings. | ||
1241 | 2032 | sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | ||
1242 | 2033 | |||
1243 | 2034 | # Same as above, but do not quote variable references. | ||
1244 | 2035 | double_quote_subst='s/\([["`\\]]\)/\\\1/g' | ||
1245 | 2036 | |||
1246 | 2037 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
1247 | 2038 | # double_quote_subst'ed string. | ||
1248 | 2039 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
1249 | 2040 | |||
1250 | 2041 | # Sed substitution to delay expansion of an escaped single quote. | ||
1251 | 2042 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
1252 | 2043 | |||
1253 | 2044 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
1254 | 2045 | no_glob_subst='s/\*/\\\*/g' | ||
1255 | 2046 | |||
1256 | 2047 | # Global variables: | 1206 | # Global variables: |
1257 | 2048 | ofile=libtool | 1207 | ofile=libtool |
1258 | 2049 | can_build_shared=yes | 1208 | can_build_shared=yes |
1259 | @@ -2084,6 +1243,28 @@ | |||
1260 | 2084 | ])# _LT_SETUP | 1243 | ])# _LT_SETUP |
1261 | 2085 | 1244 | ||
1262 | 2086 | 1245 | ||
1263 | 1246 | # _LT_PREPARE_SED_QUOTE_VARS | ||
1264 | 1247 | # -------------------------- | ||
1265 | 1248 | # Define a few sed substitution that help us do robust quoting. | ||
1266 | 1249 | m4_defun([_LT_PREPARE_SED_QUOTE_VARS], | ||
1267 | 1250 | [# Backslashify metacharacters that are still active within | ||
1268 | 1251 | # double-quoted strings. | ||
1269 | 1252 | sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | ||
1270 | 1253 | |||
1271 | 1254 | # Same as above, but do not quote variable references. | ||
1272 | 1255 | double_quote_subst='s/\([["`\\]]\)/\\\1/g' | ||
1273 | 1256 | |||
1274 | 1257 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
1275 | 1258 | # double_quote_subst'ed string. | ||
1276 | 1259 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
1277 | 1260 | |||
1278 | 1261 | # Sed substitution to delay expansion of an escaped single quote. | ||
1279 | 1262 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
1280 | 1263 | |||
1281 | 1264 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
1282 | 1265 | no_glob_subst='s/\*/\\\*/g' | ||
1283 | 1266 | ]) | ||
1284 | 1267 | |||
1285 | 2087 | # _LT_PROG_LTMAIN | 1268 | # _LT_PROG_LTMAIN |
1286 | 2088 | # --------------- | 1269 | # --------------- |
1287 | 2089 | # Note that this code is called both from `configure', and `config.status' | 1270 | # Note that this code is called both from `configure', and `config.status' |
1288 | @@ -2236,7 +1417,7 @@ | |||
1289 | 2236 | # declaration there will have the same value as in `configure'. VARNAME | 1417 | # declaration there will have the same value as in `configure'. VARNAME |
1290 | 2237 | # must have a single quote delimited value for this to work. | 1418 | # must have a single quote delimited value for this to work. |
1291 | 2238 | m4_define([_LT_CONFIG_STATUS_DECLARE], | 1419 | m4_define([_LT_CONFIG_STATUS_DECLARE], |
1293 | 2239 | [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) | 1420 | [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) |
1294 | 2240 | 1421 | ||
1295 | 2241 | 1422 | ||
1296 | 2242 | # _LT_CONFIG_STATUS_DECLARATIONS | 1423 | # _LT_CONFIG_STATUS_DECLARATIONS |
1297 | @@ -2246,7 +1427,7 @@ | |||
1298 | 2246 | # embedded single quotes properly. In configure, this macro expands | 1427 | # embedded single quotes properly. In configure, this macro expands |
1299 | 2247 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | 1428 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
1300 | 2248 | # | 1429 | # |
1302 | 2249 | # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' | 1430 | # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' |
1303 | 2250 | m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], | 1431 | m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
1304 | 2251 | [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | 1432 | [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
1305 | 2252 | [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | 1433 | [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
1306 | @@ -2345,12 +1526,20 @@ | |||
1307 | 2345 | LTCFLAGS='$LTCFLAGS' | 1526 | LTCFLAGS='$LTCFLAGS' |
1308 | 2346 | compiler='$compiler_DEFAULT' | 1527 | compiler='$compiler_DEFAULT' |
1309 | 2347 | 1528 | ||
1310 | 1529 | # A function that is used when there is no print builtin or printf. | ||
1311 | 1530 | func_fallback_echo () | ||
1312 | 1531 | { | ||
1313 | 1532 | eval 'cat <<_LTECHO_EOF | ||
1314 | 1533 | \$[]1 | ||
1315 | 1534 | _LTECHO_EOF' | ||
1316 | 1535 | } | ||
1317 | 1536 | |||
1318 | 2348 | # Quote evaled strings. | 1537 | # Quote evaled strings. |
1319 | 2349 | for var in lt_decl_all_varnames([[ \ | 1538 | for var in lt_decl_all_varnames([[ \ |
1320 | 2350 | ]], lt_decl_quote_varnames); do | 1539 | ]], lt_decl_quote_varnames); do |
1322 | 2351 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | 1540 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1323 | 2352 | *[[\\\\\\\`\\"\\\$]]*) | 1541 | *[[\\\\\\\`\\"\\\$]]*) |
1325 | 2353 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | 1542 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1326 | 2354 | ;; | 1543 | ;; |
1327 | 2355 | *) | 1544 | *) |
1328 | 2356 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 1545 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
1329 | @@ -2361,9 +1550,9 @@ | |||
1330 | 2361 | # Double-quote double-evaled strings. | 1550 | # Double-quote double-evaled strings. |
1331 | 2362 | for var in lt_decl_all_varnames([[ \ | 1551 | for var in lt_decl_all_varnames([[ \ |
1332 | 2363 | ]], lt_decl_dquote_varnames); do | 1552 | ]], lt_decl_dquote_varnames); do |
1334 | 2364 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | 1553 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1335 | 2365 | *[[\\\\\\\`\\"\\\$]]*) | 1554 | *[[\\\\\\\`\\"\\\$]]*) |
1337 | 2366 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | 1555 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1338 | 2367 | ;; | 1556 | ;; |
1339 | 2368 | *) | 1557 | *) |
1340 | 2369 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 1558 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
1341 | @@ -2371,16 +1560,38 @@ | |||
1342 | 2371 | esac | 1560 | esac |
1343 | 2372 | done | 1561 | done |
1344 | 2373 | 1562 | ||
1345 | 2374 | # Fix-up fallback echo if it was mangled by the above quoting rules. | ||
1346 | 2375 | case \$lt_ECHO in | ||
1347 | 2376 | *'\\\[$]0 --fallback-echo"')dnl " | ||
1348 | 2377 | lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` | ||
1349 | 2378 | ;; | ||
1350 | 2379 | esac | ||
1351 | 2380 | |||
1352 | 2381 | _LT_OUTPUT_LIBTOOL_INIT | 1563 | _LT_OUTPUT_LIBTOOL_INIT |
1353 | 2382 | ]) | 1564 | ]) |
1354 | 2383 | 1565 | ||
1355 | 1566 | # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) | ||
1356 | 1567 | # ------------------------------------ | ||
1357 | 1568 | # Generate a child script FILE with all initialization necessary to | ||
1358 | 1569 | # reuse the environment learned by the parent script, and make the | ||
1359 | 1570 | # file executable. If COMMENT is supplied, it is inserted after the | ||
1360 | 1571 | # `#!' sequence but before initialization text begins. After this | ||
1361 | 1572 | # macro, additional text can be appended to FILE to form the body of | ||
1362 | 1573 | # the child script. The macro ends with non-zero status if the | ||
1363 | 1574 | # file could not be fully written (such as if the disk is full). | ||
1364 | 1575 | m4_ifdef([AS_INIT_GENERATED], | ||
1365 | 1576 | [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], | ||
1366 | 1577 | [m4_defun([_LT_GENERATED_FILE_INIT], | ||
1367 | 1578 | [m4_require([AS_PREPARE])]dnl | ||
1368 | 1579 | [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl | ||
1369 | 1580 | [lt_write_fail=0 | ||
1370 | 1581 | cat >$1 <<_ASEOF || lt_write_fail=1 | ||
1371 | 1582 | #! $SHELL | ||
1372 | 1583 | # Generated by $as_me. | ||
1373 | 1584 | $2 | ||
1374 | 1585 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
1375 | 1586 | export SHELL | ||
1376 | 1587 | _ASEOF | ||
1377 | 1588 | cat >>$1 <<\_ASEOF || lt_write_fail=1 | ||
1378 | 1589 | AS_SHELL_SANITIZE | ||
1379 | 1590 | _AS_PREPARE | ||
1380 | 1591 | exec AS_MESSAGE_FD>&1 | ||
1381 | 1592 | _ASEOF | ||
1382 | 1593 | test $lt_write_fail = 0 && chmod +x $1[]dnl | ||
1383 | 1594 | m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT | ||
1384 | 2384 | 1595 | ||
1385 | 2385 | # LT_OUTPUT | 1596 | # LT_OUTPUT |
1386 | 2386 | # --------- | 1597 | # --------- |
1387 | @@ -2390,20 +1601,11 @@ | |||
1388 | 2390 | AC_DEFUN([LT_OUTPUT], | 1601 | AC_DEFUN([LT_OUTPUT], |
1389 | 2391 | [: ${CONFIG_LT=./config.lt} | 1602 | [: ${CONFIG_LT=./config.lt} |
1390 | 2392 | AC_MSG_NOTICE([creating $CONFIG_LT]) | 1603 | AC_MSG_NOTICE([creating $CONFIG_LT]) |
1395 | 2393 | cat >"$CONFIG_LT" <<_LTEOF | 1604 | _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], |
1396 | 2394 | #! $SHELL | 1605 | [# Run this file to recreate a libtool stub with the current configuration.]) |
1393 | 2395 | # Generated by $as_me. | ||
1394 | 2396 | # Run this file to recreate a libtool stub with the current configuration. | ||
1397 | 2397 | 1606 | ||
1398 | 1607 | cat >>"$CONFIG_LT" <<\_LTEOF | ||
1399 | 2398 | lt_cl_silent=false | 1608 | lt_cl_silent=false |
1400 | 2399 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
1401 | 2400 | _LTEOF | ||
1402 | 2401 | |||
1403 | 2402 | cat >>"$CONFIG_LT" <<\_LTEOF | ||
1404 | 2403 | AS_SHELL_SANITIZE | ||
1405 | 2404 | _AS_PREPARE | ||
1406 | 2405 | |||
1407 | 2406 | exec AS_MESSAGE_FD>&1 | ||
1408 | 2407 | exec AS_MESSAGE_LOG_FD>>config.log | 1609 | exec AS_MESSAGE_LOG_FD>>config.log |
1409 | 2408 | { | 1610 | { |
1410 | 2409 | echo | 1611 | echo |
1411 | @@ -2429,7 +1631,7 @@ | |||
1412 | 2429 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | 1631 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
1413 | 2430 | configured by $[0], generated by m4_PACKAGE_STRING. | 1632 | configured by $[0], generated by m4_PACKAGE_STRING. |
1414 | 2431 | 1633 | ||
1416 | 2432 | Copyright (C) 2008 Free Software Foundation, Inc. | 1634 | Copyright (C) 2010 Free Software Foundation, Inc. |
1417 | 2433 | This config.lt script is free software; the Free Software Foundation | 1635 | This config.lt script is free software; the Free Software Foundation |
1418 | 2434 | gives unlimited permision to copy, distribute and modify it." | 1636 | gives unlimited permision to copy, distribute and modify it." |
1419 | 2435 | 1637 | ||
1420 | @@ -2474,15 +1676,13 @@ | |||
1421 | 2474 | # appending to config.log, which fails on DOS, as config.log is still kept | 1676 | # appending to config.log, which fails on DOS, as config.log is still kept |
1422 | 2475 | # open by configure. Here we exec the FD to /dev/null, effectively closing | 1677 | # open by configure. Here we exec the FD to /dev/null, effectively closing |
1423 | 2476 | # config.log, so it can be properly (re)opened and appended to by config.lt. | 1678 | # config.log, so it can be properly (re)opened and appended to by config.lt. |
1433 | 2477 | if test "$no_create" != yes; then | 1679 | lt_cl_success=: |
1434 | 2478 | lt_cl_success=: | 1680 | test "$silent" = yes && |
1435 | 2479 | test "$silent" = yes && | 1681 | lt_config_lt_args="$lt_config_lt_args --quiet" |
1436 | 2480 | lt_config_lt_args="$lt_config_lt_args --quiet" | 1682 | exec AS_MESSAGE_LOG_FD>/dev/null |
1437 | 2481 | exec AS_MESSAGE_LOG_FD>/dev/null | 1683 | $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
1438 | 2482 | $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | 1684 | exec AS_MESSAGE_LOG_FD>>config.log |
1439 | 2483 | exec AS_MESSAGE_LOG_FD>>config.log | 1685 | $lt_cl_success || AS_EXIT(1) |
1431 | 2484 | $lt_cl_success || AS_EXIT(1) | ||
1432 | 2485 | fi | ||
1440 | 2486 | ])# LT_OUTPUT | 1686 | ])# LT_OUTPUT |
1441 | 2487 | 1687 | ||
1442 | 2488 | 1688 | ||
1443 | @@ -2659,11 +1859,13 @@ | |||
1444 | 2659 | AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) | 1859 | AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
1445 | 2660 | AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) | 1860 | AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
1446 | 2661 | AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) | 1861 | AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
1447 | 1862 | AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) | ||
1448 | 2662 | dnl aclocal-1.4 backwards compatibility: | 1863 | dnl aclocal-1.4 backwards compatibility: |
1449 | 2663 | dnl AC_DEFUN([AC_LIBTOOL_CXX], []) | 1864 | dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
1450 | 2664 | dnl AC_DEFUN([AC_LIBTOOL_F77], []) | 1865 | dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
1451 | 2665 | dnl AC_DEFUN([AC_LIBTOOL_FC], []) | 1866 | dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
1452 | 2666 | dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | 1867 | dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
1453 | 1868 | dnl AC_DEFUN([AC_LIBTOOL_RC], []) | ||
1454 | 2667 | 1869 | ||
1455 | 2668 | 1870 | ||
1456 | 2669 | # _LT_TAG_COMPILER | 1871 | # _LT_TAG_COMPILER |
1457 | @@ -2768,6 +1970,31 @@ | |||
1458 | 2768 | [lt_cv_ld_exported_symbols_list=no]) | 1970 | [lt_cv_ld_exported_symbols_list=no]) |
1459 | 2769 | LDFLAGS="$save_LDFLAGS" | 1971 | LDFLAGS="$save_LDFLAGS" |
1460 | 2770 | ]) | 1972 | ]) |
1461 | 1973 | AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], | ||
1462 | 1974 | [lt_cv_ld_force_load=no | ||
1463 | 1975 | cat > conftest.c << _LT_EOF | ||
1464 | 1976 | int forced_loaded() { return 2;} | ||
1465 | 1977 | _LT_EOF | ||
1466 | 1978 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD | ||
1467 | 1979 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD | ||
1468 | 1980 | echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | ||
1469 | 1981 | $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | ||
1470 | 1982 | echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD | ||
1471 | 1983 | $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD | ||
1472 | 1984 | cat > conftest.c << _LT_EOF | ||
1473 | 1985 | int main() { return 0;} | ||
1474 | 1986 | _LT_EOF | ||
1475 | 1987 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD | ||
1476 | 1988 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | ||
1477 | 1989 | _lt_result=$? | ||
1478 | 1990 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | ||
1479 | 1991 | lt_cv_ld_force_load=yes | ||
1480 | 1992 | else | ||
1481 | 1993 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1482 | 1994 | fi | ||
1483 | 1995 | rm -f conftest.err libconftest.a conftest conftest.c | ||
1484 | 1996 | rm -rf conftest.dSYM | ||
1485 | 1997 | ]) | ||
1486 | 2771 | case $host_os in | 1998 | case $host_os in |
1487 | 2772 | rhapsody* | darwin1.[[012]]) | 1999 | rhapsody* | darwin1.[[012]]) |
1488 | 2773 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | 2000 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1489 | @@ -2795,7 +2022,7 @@ | |||
1490 | 2795 | else | 2022 | else |
1491 | 2796 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | 2023 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
1492 | 2797 | fi | 2024 | fi |
1494 | 2798 | if test "$DSYMUTIL" != ":"; then | 2025 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
1495 | 2799 | _lt_dsymutil='~$DSYMUTIL $lib || :' | 2026 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
1496 | 2800 | else | 2027 | else |
1497 | 2801 | _lt_dsymutil= | 2028 | _lt_dsymutil= |
1498 | @@ -2815,7 +2042,11 @@ | |||
1499 | 2815 | _LT_TAGVAR(hardcode_direct, $1)=no | 2042 | _LT_TAGVAR(hardcode_direct, $1)=no |
1500 | 2816 | _LT_TAGVAR(hardcode_automatic, $1)=yes | 2043 | _LT_TAGVAR(hardcode_automatic, $1)=yes |
1501 | 2817 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 2044 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
1503 | 2818 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' | 2045 | if test "$lt_cv_ld_force_load" = "yes"; then |
1504 | 2046 | _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | ||
1505 | 2047 | else | ||
1506 | 2048 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' | ||
1507 | 2049 | fi | ||
1508 | 2819 | _LT_TAGVAR(link_all_deplibs, $1)=yes | 2050 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
1509 | 2820 | _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" | 2051 | _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
1510 | 2821 | case $cc_basename in | 2052 | case $cc_basename in |
1511 | @@ -2823,7 +2054,7 @@ | |||
1512 | 2823 | *) _lt_dar_can_shared=$GCC ;; | 2054 | *) _lt_dar_can_shared=$GCC ;; |
1513 | 2824 | esac | 2055 | esac |
1514 | 2825 | if test "$_lt_dar_can_shared" = "yes"; then | 2056 | if test "$_lt_dar_can_shared" = "yes"; then |
1516 | 2826 | output_verbose_link_cmd=echo | 2057 | output_verbose_link_cmd=func_echo_all |
1517 | 2827 | _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | 2058 | _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
1518 | 2828 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | 2059 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
1519 | 2829 | _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | 2060 | _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
1520 | @@ -2869,170 +2100,65 @@ | |||
1521 | 2869 | # _LT_SHELL_INIT(ARG) | 2100 | # _LT_SHELL_INIT(ARG) |
1522 | 2870 | # ------------------- | 2101 | # ------------------- |
1523 | 2871 | m4_define([_LT_SHELL_INIT], | 2102 | m4_define([_LT_SHELL_INIT], |
1530 | 2872 | [ifdef([AC_DIVERSION_NOTICE], | 2103 | [m4_divert_text([M4SH-INIT], [$1 |
1531 | 2873 | [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | 2104 | ])])# _LT_SHELL_INIT |
1532 | 2874 | [AC_DIVERT_PUSH(NOTICE)]) | 2105 | |
1527 | 2875 | $1 | ||
1528 | 2876 | AC_DIVERT_POP | ||
1529 | 2877 | ])# _LT_SHELL_INIT | ||
1533 | 2878 | 2106 | ||
1534 | 2879 | 2107 | ||
1535 | 2880 | # _LT_PROG_ECHO_BACKSLASH | 2108 | # _LT_PROG_ECHO_BACKSLASH |
1536 | 2881 | # ----------------------- | 2109 | # ----------------------- |
1539 | 2882 | # Add some code to the start of the generated configure script which | 2110 | # Find how we can fake an echo command that does not interpret backslash. |
1540 | 2883 | # will find an echo command which doesn't interpret backslashes. | 2111 | # In particular, with Autoconf 2.60 or later we add some code to the start |
1541 | 2112 | # of the generated configure script which will find a shell with a builtin | ||
1542 | 2113 | # printf (which we can use as an echo command). | ||
1543 | 2884 | m4_defun([_LT_PROG_ECHO_BACKSLASH], | 2114 | m4_defun([_LT_PROG_ECHO_BACKSLASH], |
1553 | 2885 | [_LT_SHELL_INIT([ | 2115 | [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1554 | 2886 | # Check that we are running under the correct shell. | 2116 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
1555 | 2887 | SHELL=${CONFIG_SHELL-/bin/sh} | 2117 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
1556 | 2888 | 2118 | ||
1557 | 2889 | case X$lt_ECHO in | 2119 | AC_MSG_CHECKING([how to print strings]) |
1558 | 2890 | X*--fallback-echo) | 2120 | # Test print first, because it will be a builtin if present. |
1559 | 2891 | # Remove one level of quotation (which was required for Make). | 2121 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ |
1560 | 2892 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | 2122 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
1561 | 2893 | ;; | 2123 | ECHO='print -r --' |
1562 | 2124 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
1563 | 2125 | ECHO='printf %s\n' | ||
1564 | 2126 | else | ||
1565 | 2127 | # Use this function as a fallback that always works. | ||
1566 | 2128 | func_fallback_echo () | ||
1567 | 2129 | { | ||
1568 | 2130 | eval 'cat <<_LTECHO_EOF | ||
1569 | 2131 | $[]1 | ||
1570 | 2132 | _LTECHO_EOF' | ||
1571 | 2133 | } | ||
1572 | 2134 | ECHO='func_fallback_echo' | ||
1573 | 2135 | fi | ||
1574 | 2136 | |||
1575 | 2137 | # func_echo_all arg... | ||
1576 | 2138 | # Invoke $ECHO with all args, space-separated. | ||
1577 | 2139 | func_echo_all () | ||
1578 | 2140 | { | ||
1579 | 2141 | $ECHO "$*" | ||
1580 | 2142 | } | ||
1581 | 2143 | |||
1582 | 2144 | case "$ECHO" in | ||
1583 | 2145 | printf*) AC_MSG_RESULT([printf]) ;; | ||
1584 | 2146 | print*) AC_MSG_RESULT([print -r]) ;; | ||
1585 | 2147 | *) AC_MSG_RESULT([cat]) ;; | ||
1586 | 2894 | esac | 2148 | esac |
1587 | 2895 | 2149 | ||
1725 | 2896 | ECHO=${lt_ECHO-echo} | 2150 | m4_ifdef([_AS_DETECT_SUGGESTED], |
1726 | 2897 | if test "X[$]1" = X--no-reexec; then | 2151 | [_AS_DETECT_SUGGESTED([ |
1727 | 2898 | # Discard the --no-reexec flag, and continue. | 2152 | test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( |
1728 | 2899 | shift | 2153 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1729 | 2900 | elif test "X[$]1" = X--fallback-echo; then | 2154 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
1730 | 2901 | # Avoid inline document here, it may be left over | 2155 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
1731 | 2902 | : | 2156 | PATH=/empty FPATH=/empty; export PATH FPATH |
1732 | 2903 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | 2157 | test "X`printf %s $ECHO`" = "X$ECHO" \ |
1733 | 2904 | # Yippee, $ECHO works! | 2158 | || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) |
1734 | 2905 | : | 2159 | |
1598 | 2906 | else | ||
1599 | 2907 | # Restart under the correct shell. | ||
1600 | 2908 | exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
1601 | 2909 | fi | ||
1602 | 2910 | |||
1603 | 2911 | if test "X[$]1" = X--fallback-echo; then | ||
1604 | 2912 | # used as fallback echo | ||
1605 | 2913 | shift | ||
1606 | 2914 | cat <<_LT_EOF | ||
1607 | 2915 | [$]* | ||
1608 | 2916 | _LT_EOF | ||
1609 | 2917 | exit 0 | ||
1610 | 2918 | fi | ||
1611 | 2919 | |||
1612 | 2920 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
1613 | 2921 | # if CDPATH is set. | ||
1614 | 2922 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
1615 | 2923 | |||
1616 | 2924 | if test -z "$lt_ECHO"; then | ||
1617 | 2925 | if test "X${echo_test_string+set}" != Xset; then | ||
1618 | 2926 | # find a string as large as possible, as long as the shell can cope with it | ||
1619 | 2927 | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | ||
1620 | 2928 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
1621 | 2929 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
1622 | 2930 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
1623 | 2931 | then | ||
1624 | 2932 | break | ||
1625 | 2933 | fi | ||
1626 | 2934 | done | ||
1627 | 2935 | fi | ||
1628 | 2936 | |||
1629 | 2937 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
1630 | 2938 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
1631 | 2939 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1632 | 2940 | : | ||
1633 | 2941 | else | ||
1634 | 2942 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
1635 | 2943 | # backslashes. This makes it impossible to quote backslashes using | ||
1636 | 2944 | # echo "$something" | sed 's/\\/\\\\/g' | ||
1637 | 2945 | # | ||
1638 | 2946 | # So, first we look for a working echo in the user's PATH. | ||
1639 | 2947 | |||
1640 | 2948 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
1641 | 2949 | for dir in $PATH /usr/ucb; do | ||
1642 | 2950 | IFS="$lt_save_ifs" | ||
1643 | 2951 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
1644 | 2952 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
1645 | 2953 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
1646 | 2954 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1647 | 2955 | ECHO="$dir/echo" | ||
1648 | 2956 | break | ||
1649 | 2957 | fi | ||
1650 | 2958 | done | ||
1651 | 2959 | IFS="$lt_save_ifs" | ||
1652 | 2960 | |||
1653 | 2961 | if test "X$ECHO" = Xecho; then | ||
1654 | 2962 | # We didn't find a better echo, so look for alternatives. | ||
1655 | 2963 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
1656 | 2964 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
1657 | 2965 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1658 | 2966 | # This shell has a builtin print -r that does the trick. | ||
1659 | 2967 | ECHO='print -r' | ||
1660 | 2968 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
1661 | 2969 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
1662 | 2970 | # If we have ksh, try running configure again with it. | ||
1663 | 2971 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
1664 | 2972 | export ORIGINAL_CONFIG_SHELL | ||
1665 | 2973 | CONFIG_SHELL=/bin/ksh | ||
1666 | 2974 | export CONFIG_SHELL | ||
1667 | 2975 | exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
1668 | 2976 | else | ||
1669 | 2977 | # Try using printf. | ||
1670 | 2978 | ECHO='printf %s\n' | ||
1671 | 2979 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
1672 | 2980 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
1673 | 2981 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1674 | 2982 | # Cool, printf works | ||
1675 | 2983 | : | ||
1676 | 2984 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
1677 | 2985 | test "X$echo_testing_string" = 'X\t' && | ||
1678 | 2986 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
1679 | 2987 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1680 | 2988 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
1681 | 2989 | export CONFIG_SHELL | ||
1682 | 2990 | SHELL="$CONFIG_SHELL" | ||
1683 | 2991 | export SHELL | ||
1684 | 2992 | ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | ||
1685 | 2993 | elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
1686 | 2994 | test "X$echo_testing_string" = 'X\t' && | ||
1687 | 2995 | echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
1688 | 2996 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1689 | 2997 | ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | ||
1690 | 2998 | else | ||
1691 | 2999 | # maybe with a smaller string... | ||
1692 | 3000 | prev=: | ||
1693 | 3001 | |||
1694 | 3002 | for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | ||
1695 | 3003 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
1696 | 3004 | then | ||
1697 | 3005 | break | ||
1698 | 3006 | fi | ||
1699 | 3007 | prev="$cmd" | ||
1700 | 3008 | done | ||
1701 | 3009 | |||
1702 | 3010 | if test "$prev" != 'sed 50q "[$]0"'; then | ||
1703 | 3011 | echo_test_string=`eval $prev` | ||
1704 | 3012 | export echo_test_string | ||
1705 | 3013 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | ||
1706 | 3014 | else | ||
1707 | 3015 | # Oops. We lost completely, so just stick with echo. | ||
1708 | 3016 | ECHO=echo | ||
1709 | 3017 | fi | ||
1710 | 3018 | fi | ||
1711 | 3019 | fi | ||
1712 | 3020 | fi | ||
1713 | 3021 | fi | ||
1714 | 3022 | fi | ||
1715 | 3023 | |||
1716 | 3024 | # Copy echo and quote the copy suitably for passing to libtool from | ||
1717 | 3025 | # the Makefile, instead of quoting the original, which is used later. | ||
1718 | 3026 | lt_ECHO=$ECHO | ||
1719 | 3027 | if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | ||
1720 | 3028 | lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | ||
1721 | 3029 | fi | ||
1722 | 3030 | |||
1723 | 3031 | AC_SUBST(lt_ECHO) | ||
1724 | 3032 | ]) | ||
1735 | 3033 | _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) | 2160 | _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
1738 | 3034 | _LT_DECL([], [ECHO], [1], | 2161 | _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) |
1737 | 3035 | [An echo program that does not interpret backslashes]) | ||
1739 | 3036 | ])# _LT_PROG_ECHO_BACKSLASH | 2162 | ])# _LT_PROG_ECHO_BACKSLASH |
1740 | 3037 | 2163 | ||
1741 | 3038 | 2164 | ||
1742 | @@ -3064,7 +2190,7 @@ | |||
1743 | 3064 | ;; | 2190 | ;; |
1744 | 3065 | *-*-irix6*) | 2191 | *-*-irix6*) |
1745 | 3066 | # Find out which ABI we are using. | 2192 | # Find out which ABI we are using. |
1747 | 3067 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext | 2193 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext |
1748 | 3068 | if AC_TRY_EVAL(ac_compile); then | 2194 | if AC_TRY_EVAL(ac_compile); then |
1749 | 3069 | if test "$lt_cv_prog_gnu_ld" = yes; then | 2195 | if test "$lt_cv_prog_gnu_ld" = yes; then |
1750 | 3070 | case `/usr/bin/file conftest.$ac_objext` in | 2196 | case `/usr/bin/file conftest.$ac_objext` in |
1751 | @@ -3216,10 +2342,19 @@ | |||
1752 | 3216 | esac | 2342 | esac |
1753 | 3217 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 2343 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
1754 | 3218 | fi | 2344 | fi |
1755 | 2345 | |||
1756 | 2346 | case $host_os in | ||
1757 | 2347 | darwin*) | ||
1758 | 2348 | lock_old_archive_extraction=yes ;; | ||
1759 | 2349 | *) | ||
1760 | 2350 | lock_old_archive_extraction=no ;; | ||
1761 | 2351 | esac | ||
1762 | 3219 | _LT_DECL([], [old_postinstall_cmds], [2]) | 2352 | _LT_DECL([], [old_postinstall_cmds], [2]) |
1763 | 3220 | _LT_DECL([], [old_postuninstall_cmds], [2]) | 2353 | _LT_DECL([], [old_postuninstall_cmds], [2]) |
1764 | 3221 | _LT_TAGDECL([], [old_archive_cmds], [2], | 2354 | _LT_TAGDECL([], [old_archive_cmds], [2], |
1765 | 3222 | [Commands used to build an old-style archive]) | 2355 | [Commands used to build an old-style archive]) |
1766 | 2356 | _LT_DECL([], [lock_old_archive_extraction], [0], | ||
1767 | 2357 | [Whether to use a lock for old archive extraction]) | ||
1768 | 3223 | ])# _LT_CMD_OLD_ARCHIVE | 2358 | ])# _LT_CMD_OLD_ARCHIVE |
1769 | 3224 | 2359 | ||
1770 | 3225 | 2360 | ||
1771 | @@ -3244,15 +2379,15 @@ | |||
1772 | 3244 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 2379 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1773 | 3245 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 2380 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1774 | 3246 | -e 's:$: $lt_compiler_flag:'` | 2381 | -e 's:$: $lt_compiler_flag:'` |
1776 | 3247 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 2382 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1777 | 3248 | (eval "$lt_compile" 2>conftest.err) | 2383 | (eval "$lt_compile" 2>conftest.err) |
1778 | 3249 | ac_status=$? | 2384 | ac_status=$? |
1779 | 3250 | cat conftest.err >&AS_MESSAGE_LOG_FD | 2385 | cat conftest.err >&AS_MESSAGE_LOG_FD |
1781 | 3251 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1782 | 3252 | if (exit $ac_status) && test -s "$ac_outfile"; then | 2387 | if (exit $ac_status) && test -s "$ac_outfile"; then |
1783 | 3253 | # The compiler can only warn and ignore the option if not recognized | 2388 | # The compiler can only warn and ignore the option if not recognized |
1784 | 3254 | # So say no if there are warnings other than the usual output. | 2389 | # So say no if there are warnings other than the usual output. |
1786 | 3255 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 2390 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1787 | 3256 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 2391 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1788 | 3257 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 2392 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
1789 | 3258 | $2=yes | 2393 | $2=yes |
1790 | @@ -3292,7 +2427,7 @@ | |||
1791 | 3292 | if test -s conftest.err; then | 2427 | if test -s conftest.err; then |
1792 | 3293 | # Append any errors to the config.log. | 2428 | # Append any errors to the config.log. |
1793 | 3294 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | 2429 | cat conftest.err 1>&AS_MESSAGE_LOG_FD |
1795 | 3295 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | 2430 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1796 | 3296 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 2431 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1797 | 3297 | if diff conftest.exp conftest.er2 >/dev/null; then | 2432 | if diff conftest.exp conftest.er2 >/dev/null; then |
1798 | 3298 | $2=yes | 2433 | $2=yes |
1799 | @@ -3355,6 +2490,11 @@ | |||
1800 | 3355 | lt_cv_sys_max_cmd_len=8192; | 2490 | lt_cv_sys_max_cmd_len=8192; |
1801 | 3356 | ;; | 2491 | ;; |
1802 | 3357 | 2492 | ||
1803 | 2493 | mint*) | ||
1804 | 2494 | # On MiNT this can take a long time and run out of memory. | ||
1805 | 2495 | lt_cv_sys_max_cmd_len=8192; | ||
1806 | 2496 | ;; | ||
1807 | 2497 | |||
1808 | 3358 | amigaos*) | 2498 | amigaos*) |
1809 | 3359 | # On AmigaOS with pdksh, this test takes hours, literally. | 2499 | # On AmigaOS with pdksh, this test takes hours, literally. |
1810 | 3360 | # So we just punt and use a minimum line length of 8192. | 2500 | # So we just punt and use a minimum line length of 8192. |
1811 | @@ -3419,8 +2559,8 @@ | |||
1812 | 3419 | # If test is not a shell built-in, we'll probably end up computing a | 2559 | # If test is not a shell built-in, we'll probably end up computing a |
1813 | 3420 | # maximum length that is only half of the actual maximum length, but | 2560 | # maximum length that is only half of the actual maximum length, but |
1814 | 3421 | # we can't tell. | 2561 | # we can't tell. |
1817 | 3422 | while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | 2562 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
1818 | 3423 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | 2563 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
1819 | 3424 | test $i != 17 # 1/2 MB should be enough | 2564 | test $i != 17 # 1/2 MB should be enough |
1820 | 3425 | do | 2565 | do |
1821 | 3426 | i=`expr $i + 1` | 2566 | i=`expr $i + 1` |
1822 | @@ -3471,7 +2611,7 @@ | |||
1823 | 3471 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 2611 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
1824 | 3472 | lt_status=$lt_dlunknown | 2612 | lt_status=$lt_dlunknown |
1825 | 3473 | cat > conftest.$ac_ext <<_LT_EOF | 2613 | cat > conftest.$ac_ext <<_LT_EOF |
1827 | 3474 | [#line __oline__ "configure" | 2614 | [#line $LINENO "configure" |
1828 | 3475 | #include "confdefs.h" | 2615 | #include "confdefs.h" |
1829 | 3476 | 2616 | ||
1830 | 3477 | #if HAVE_DLFCN_H | 2617 | #if HAVE_DLFCN_H |
1831 | @@ -3512,7 +2652,13 @@ | |||
1832 | 3512 | # endif | 2652 | # endif |
1833 | 3513 | #endif | 2653 | #endif |
1834 | 3514 | 2654 | ||
1836 | 3515 | void fnord() { int i=42;} | 2655 | /* When -fvisbility=hidden is used, assume the code has been annotated |
1837 | 2656 | correspondingly for the symbols needed. */ | ||
1838 | 2657 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
1839 | 2658 | void fnord () __attribute__((visibility("default"))); | ||
1840 | 2659 | #endif | ||
1841 | 2660 | |||
1842 | 2661 | void fnord () { int i=42; } | ||
1843 | 3516 | int main () | 2662 | int main () |
1844 | 3517 | { | 2663 | { |
1845 | 3518 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 2664 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
1846 | @@ -3521,7 +2667,11 @@ | |||
1847 | 3521 | if (self) | 2667 | if (self) |
1848 | 3522 | { | 2668 | { |
1849 | 3523 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | 2669 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
1851 | 3524 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 2670 | else |
1852 | 2671 | { | ||
1853 | 2672 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
1854 | 2673 | else puts (dlerror ()); | ||
1855 | 2674 | } | ||
1856 | 3525 | /* dlclose (self); */ | 2675 | /* dlclose (self); */ |
1857 | 3526 | } | 2676 | } |
1858 | 3527 | else | 2677 | else |
1859 | @@ -3697,16 +2847,16 @@ | |||
1860 | 3697 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 2847 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1861 | 3698 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 2848 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1862 | 3699 | -e 's:$: $lt_compiler_flag:'` | 2849 | -e 's:$: $lt_compiler_flag:'` |
1864 | 3700 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 2850 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1865 | 3701 | (eval "$lt_compile" 2>out/conftest.err) | 2851 | (eval "$lt_compile" 2>out/conftest.err) |
1866 | 3702 | ac_status=$? | 2852 | ac_status=$? |
1867 | 3703 | cat out/conftest.err >&AS_MESSAGE_LOG_FD | 2853 | cat out/conftest.err >&AS_MESSAGE_LOG_FD |
1869 | 3704 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 2854 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1870 | 3705 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 2855 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
1871 | 3706 | then | 2856 | then |
1872 | 3707 | # The compiler can only warn and ignore the option if not recognized | 2857 | # The compiler can only warn and ignore the option if not recognized |
1873 | 3708 | # So say no if there are warnings | 2858 | # So say no if there are warnings |
1875 | 3709 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 2859 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1876 | 3710 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 2860 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
1877 | 3711 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 2861 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
1878 | 3712 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 2862 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
1879 | @@ -3865,6 +3015,7 @@ | |||
1880 | 3865 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 3015 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1881 | 3866 | m4_require([_LT_DECL_OBJDUMP])dnl | 3016 | m4_require([_LT_DECL_OBJDUMP])dnl |
1882 | 3867 | m4_require([_LT_DECL_SED])dnl | 3017 | m4_require([_LT_DECL_SED])dnl |
1883 | 3018 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | ||
1884 | 3868 | AC_MSG_CHECKING([dynamic linker characteristics]) | 3019 | AC_MSG_CHECKING([dynamic linker characteristics]) |
1885 | 3869 | m4_if([$1], | 3020 | m4_if([$1], |
1886 | 3870 | [], [ | 3021 | [], [ |
1887 | @@ -3873,16 +3024,23 @@ | |||
1888 | 3873 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | 3024 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
1889 | 3874 | *) lt_awk_arg="/^libraries:/" ;; | 3025 | *) lt_awk_arg="/^libraries:/" ;; |
1890 | 3875 | esac | 3026 | esac |
1893 | 3876 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 3027 | case $host_os in |
1894 | 3877 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | 3028 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; |
1895 | 3029 | *) lt_sed_strip_eq="s,=/,/,g" ;; | ||
1896 | 3030 | esac | ||
1897 | 3031 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | ||
1898 | 3032 | case $lt_search_path_spec in | ||
1899 | 3033 | *\;*) | ||
1900 | 3878 | # if the path contains ";" then we assume it to be the separator | 3034 | # if the path contains ";" then we assume it to be the separator |
1901 | 3879 | # otherwise default to the standard path separator (i.e. ":") - it is | 3035 | # otherwise default to the standard path separator (i.e. ":") - it is |
1902 | 3880 | # assumed that no part of a normal pathname contains ";" but that should | 3036 | # assumed that no part of a normal pathname contains ";" but that should |
1903 | 3881 | # okay in the real world where ";" in dirpaths is itself problematic. | 3037 | # okay in the real world where ";" in dirpaths is itself problematic. |
1908 | 3882 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | 3038 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
1909 | 3883 | else | 3039 | ;; |
1910 | 3884 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 3040 | *) |
1911 | 3885 | fi | 3041 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
1912 | 3042 | ;; | ||
1913 | 3043 | esac | ||
1914 | 3886 | # Ok, now we have the path, separated by spaces, we can step through it | 3044 | # Ok, now we have the path, separated by spaces, we can step through it |
1915 | 3887 | # and add multilib dir if necessary. | 3045 | # and add multilib dir if necessary. |
1916 | 3888 | lt_tmp_lt_search_path_spec= | 3046 | lt_tmp_lt_search_path_spec= |
1917 | @@ -3895,7 +3053,7 @@ | |||
1918 | 3895 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | 3053 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
1919 | 3896 | fi | 3054 | fi |
1920 | 3897 | done | 3055 | done |
1922 | 3898 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | 3056 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
1923 | 3899 | BEGIN {RS=" "; FS="/|\n";} { | 3057 | BEGIN {RS=" "; FS="/|\n";} { |
1924 | 3900 | lt_foo=""; | 3058 | lt_foo=""; |
1925 | 3901 | lt_count=0; | 3059 | lt_count=0; |
1926 | @@ -3915,7 +3073,13 @@ | |||
1927 | 3915 | if (lt_foo != "") { lt_freq[[lt_foo]]++; } | 3073 | if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
1928 | 3916 | if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | 3074 | if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
1929 | 3917 | }'` | 3075 | }'` |
1931 | 3918 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | 3076 | # AWK program above erroneously prepends '/' to C:/dos/paths |
1932 | 3077 | # for these hosts. | ||
1933 | 3078 | case $host_os in | ||
1934 | 3079 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | ||
1935 | 3080 | $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; | ||
1936 | 3081 | esac | ||
1937 | 3082 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | ||
1938 | 3919 | else | 3083 | else |
1939 | 3920 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 3084 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
1940 | 3921 | fi]) | 3085 | fi]) |
1941 | @@ -4003,7 +3167,7 @@ | |||
1942 | 4003 | m68k) | 3167 | m68k) |
1943 | 4004 | library_names_spec='$libname.ixlibrary $libname.a' | 3168 | library_names_spec='$libname.ixlibrary $libname.a' |
1944 | 4005 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 3169 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
1946 | 4006 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 3170 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
1947 | 4007 | ;; | 3171 | ;; |
1948 | 4008 | esac | 3172 | esac |
1949 | 4009 | ;; | 3173 | ;; |
1950 | @@ -4056,23 +3220,12 @@ | |||
1951 | 4056 | cygwin*) | 3220 | cygwin*) |
1952 | 4057 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 3221 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
1953 | 4058 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 3222 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
1955 | 4059 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 3223 | m4_if([$1], [],[ |
1956 | 3224 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) | ||
1957 | 4060 | ;; | 3225 | ;; |
1958 | 4061 | mingw* | cegcc*) | 3226 | mingw* | cegcc*) |
1959 | 4062 | # MinGW DLLs use traditional 'lib' prefix | 3227 | # MinGW DLLs use traditional 'lib' prefix |
1960 | 4063 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 3228 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
1961 | 4064 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
1962 | 4065 | if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | ||
1963 | 4066 | # It is most probably a Windows format PATH printed by | ||
1964 | 4067 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
1965 | 4068 | # path with ; separators, and with drive letters. We can handle the | ||
1966 | 4069 | # drive letters (cygwin fileutils understands them), so leave them, | ||
1967 | 4070 | # especially as we might pass files found there to a mingw objdump, | ||
1968 | 4071 | # which wouldn't understand a cygwinified path. Ahh. | ||
1969 | 4072 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
1970 | 4073 | else | ||
1971 | 4074 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
1972 | 4075 | fi | ||
1973 | 4076 | ;; | 3229 | ;; |
1974 | 4077 | pw32*) | 3230 | pw32*) |
1975 | 4078 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 3231 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
1976 | @@ -4172,6 +3325,19 @@ | |||
1977 | 4172 | hardcode_into_libs=yes | 3325 | hardcode_into_libs=yes |
1978 | 4173 | ;; | 3326 | ;; |
1979 | 4174 | 3327 | ||
1980 | 3328 | haiku*) | ||
1981 | 3329 | version_type=linux | ||
1982 | 3330 | need_lib_prefix=no | ||
1983 | 3331 | need_version=no | ||
1984 | 3332 | dynamic_linker="$host_os runtime_loader" | ||
1985 | 3333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
1986 | 3334 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1987 | 3335 | shlibpath_var=LIBRARY_PATH | ||
1988 | 3336 | shlibpath_overrides_runpath=yes | ||
1989 | 3337 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
1990 | 3338 | hardcode_into_libs=yes | ||
1991 | 3339 | ;; | ||
1992 | 3340 | |||
1993 | 4175 | hpux9* | hpux10* | hpux11*) | 3341 | hpux9* | hpux10* | hpux11*) |
1994 | 4176 | # Give a soname corresponding to the major version so that dld.sl refuses to | 3342 | # Give a soname corresponding to the major version so that dld.sl refuses to |
1995 | 4177 | # link against other versions. | 3343 | # link against other versions. |
1996 | @@ -4214,8 +3380,10 @@ | |||
1997 | 4214 | soname_spec='${libname}${release}${shared_ext}$major' | 3380 | soname_spec='${libname}${release}${shared_ext}$major' |
1998 | 4215 | ;; | 3381 | ;; |
1999 | 4216 | esac | 3382 | esac |
2001 | 4217 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 3383 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
2002 | 4218 | postinstall_cmds='chmod 555 $lib' | 3384 | postinstall_cmds='chmod 555 $lib' |
2003 | 3385 | # or fails outright, so override atomically: | ||
2004 | 3386 | install_override_mode=555 | ||
2005 | 4219 | ;; | 3387 | ;; |
2006 | 4220 | 3388 | ||
2007 | 4221 | interix[[3-9]]*) | 3389 | interix[[3-9]]*) |
2008 | @@ -4273,7 +3441,7 @@ | |||
2009 | 4273 | ;; | 3441 | ;; |
2010 | 4274 | 3442 | ||
2011 | 4275 | # This must be Linux ELF. | 3443 | # This must be Linux ELF. |
2013 | 4276 | linux* | k*bsd*-gnu) | 3444 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
2014 | 4277 | version_type=linux | 3445 | version_type=linux |
2015 | 4278 | need_lib_prefix=no | 3446 | need_lib_prefix=no |
2016 | 4279 | need_version=no | 3447 | need_version=no |
2017 | @@ -4282,26 +3450,35 @@ | |||
2018 | 4282 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 3450 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
2019 | 4283 | shlibpath_var=LD_LIBRARY_PATH | 3451 | shlibpath_var=LD_LIBRARY_PATH |
2020 | 4284 | shlibpath_overrides_runpath=no | 3452 | shlibpath_overrides_runpath=no |
2021 | 3453 | |||
2022 | 4285 | # Some binutils ld are patched to set DT_RUNPATH | 3454 | # Some binutils ld are patched to set DT_RUNPATH |
2032 | 4286 | save_LDFLAGS=$LDFLAGS | 3455 | AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], |
2033 | 4287 | save_libdir=$libdir | 3456 | [lt_cv_shlibpath_overrides_runpath=no |
2034 | 4288 | eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ | 3457 | save_LDFLAGS=$LDFLAGS |
2035 | 4289 | LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" | 3458 | save_libdir=$libdir |
2036 | 4290 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | 3459 | eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ |
2037 | 4291 | [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], | 3460 | LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" |
2038 | 4292 | [shlibpath_overrides_runpath=yes])]) | 3461 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
2039 | 4293 | LDFLAGS=$save_LDFLAGS | 3462 | [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], |
2040 | 4294 | libdir=$save_libdir | 3463 | [lt_cv_shlibpath_overrides_runpath=yes])]) |
2041 | 3464 | LDFLAGS=$save_LDFLAGS | ||
2042 | 3465 | libdir=$save_libdir | ||
2043 | 3466 | ]) | ||
2044 | 3467 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | ||
2045 | 4295 | 3468 | ||
2046 | 4296 | # This implies no fast_install, which is unacceptable. | 3469 | # This implies no fast_install, which is unacceptable. |
2047 | 4297 | # Some rework will be needed to allow for fast_install | 3470 | # Some rework will be needed to allow for fast_install |
2048 | 4298 | # before this can be enabled. | 3471 | # before this can be enabled. |
2049 | 4299 | hardcode_into_libs=yes | 3472 | hardcode_into_libs=yes |
2050 | 4300 | 3473 | ||
2051 | 3474 | # Add ABI-specific directories to the system library path. | ||
2052 | 3475 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | ||
2053 | 3476 | |||
2054 | 4301 | # Append ld.so.conf contents to the search path | 3477 | # Append ld.so.conf contents to the search path |
2055 | 4302 | if test -f /etc/ld.so.conf; then | 3478 | if test -f /etc/ld.so.conf; then |
2058 | 4303 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | 3479 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
2059 | 4304 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 3480 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
2060 | 3481 | |||
2061 | 4305 | fi | 3482 | fi |
2062 | 4306 | 3483 | ||
2063 | 4307 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 3484 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
2064 | @@ -4533,6 +3710,8 @@ | |||
2065 | 4533 | The last name is the one that the linker finds with -lNAME]]) | 3710 | The last name is the one that the linker finds with -lNAME]]) |
2066 | 4534 | _LT_DECL([], [soname_spec], [1], | 3711 | _LT_DECL([], [soname_spec], [1], |
2067 | 4535 | [[The coded name of the library, if different from the real name]]) | 3712 | [[The coded name of the library, if different from the real name]]) |
2068 | 3713 | _LT_DECL([], [install_override_mode], [1], | ||
2069 | 3714 | [Permission mode override for installation of shared libraries]) | ||
2070 | 4536 | _LT_DECL([], [postinstall_cmds], [2], | 3715 | _LT_DECL([], [postinstall_cmds], [2], |
2071 | 4537 | [Command to use after installation of a shared archive]) | 3716 | [Command to use after installation of a shared archive]) |
2072 | 4538 | _LT_DECL([], [postuninstall_cmds], [2], | 3717 | _LT_DECL([], [postuninstall_cmds], [2], |
2073 | @@ -4645,6 +3824,7 @@ | |||
2074 | 4645 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | 3824 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
2075 | 4646 | m4_require([_LT_DECL_SED])dnl | 3825 | m4_require([_LT_DECL_SED])dnl |
2076 | 4647 | m4_require([_LT_DECL_EGREP])dnl | 3826 | m4_require([_LT_DECL_EGREP])dnl |
2077 | 3827 | m4_require([_LT_PROG_ECHO_BACKSLASH])dnl | ||
2078 | 4648 | 3828 | ||
2079 | 4649 | AC_ARG_WITH([gnu-ld], | 3829 | AC_ARG_WITH([gnu-ld], |
2080 | 4650 | [AS_HELP_STRING([--with-gnu-ld], | 3830 | [AS_HELP_STRING([--with-gnu-ld], |
2081 | @@ -4774,8 +3954,8 @@ | |||
2082 | 4774 | fi | 3954 | fi |
2083 | 4775 | ;; | 3955 | ;; |
2084 | 4776 | esac | 3956 | esac |
2087 | 4777 | _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl | 3957 | _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
2088 | 4778 | _LT_DECL([], [reload_cmds], [2])dnl | 3958 | _LT_TAGDECL([], [reload_cmds], [2])dnl |
2089 | 4779 | ])# _LT_CMD_RELOAD | 3959 | ])# _LT_CMD_RELOAD |
2090 | 4780 | 3960 | ||
2091 | 4781 | 3961 | ||
2092 | @@ -4827,16 +4007,18 @@ | |||
2093 | 4827 | # Base MSYS/MinGW do not provide the 'file' command needed by | 4007 | # Base MSYS/MinGW do not provide the 'file' command needed by |
2094 | 4828 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | 4008 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
2095 | 4829 | # unless we find 'file', for example because we are cross-compiling. | 4009 | # unless we find 'file', for example because we are cross-compiling. |
2097 | 4830 | if ( file / ) >/dev/null 2>&1; then | 4010 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
2098 | 4011 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | ||
2099 | 4831 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 4012 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
2100 | 4832 | lt_cv_file_magic_cmd='func_win32_libid' | 4013 | lt_cv_file_magic_cmd='func_win32_libid' |
2101 | 4833 | else | 4014 | else |
2103 | 4834 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 4015 | # Keep this pattern in sync with the one in func_win32_libid. |
2104 | 4016 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
2105 | 4835 | lt_cv_file_magic_cmd='$OBJDUMP -f' | 4017 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
2106 | 4836 | fi | 4018 | fi |
2107 | 4837 | ;; | 4019 | ;; |
2108 | 4838 | 4020 | ||
2110 | 4839 | cegcc) | 4021 | cegcc*) |
2111 | 4840 | # use the weaker test based on 'objdump'. See mingw*. | 4022 | # use the weaker test based on 'objdump'. See mingw*. |
2112 | 4841 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | 4023 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
2113 | 4842 | lt_cv_file_magic_cmd='$OBJDUMP -f' | 4024 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
2114 | @@ -4866,6 +4048,10 @@ | |||
2115 | 4866 | lt_cv_deplibs_check_method=pass_all | 4048 | lt_cv_deplibs_check_method=pass_all |
2116 | 4867 | ;; | 4049 | ;; |
2117 | 4868 | 4050 | ||
2118 | 4051 | haiku*) | ||
2119 | 4052 | lt_cv_deplibs_check_method=pass_all | ||
2120 | 4053 | ;; | ||
2121 | 4054 | |||
2122 | 4869 | hpux10.20* | hpux11*) | 4055 | hpux10.20* | hpux11*) |
2123 | 4870 | lt_cv_file_magic_cmd=/usr/bin/file | 4056 | lt_cv_file_magic_cmd=/usr/bin/file |
2124 | 4871 | case $host_cpu in | 4057 | case $host_cpu in |
2125 | @@ -4874,11 +4060,11 @@ | |||
2126 | 4874 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 4060 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
2127 | 4875 | ;; | 4061 | ;; |
2128 | 4876 | hppa*64*) | 4062 | hppa*64*) |
2130 | 4877 | [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] | 4063 | [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] |
2131 | 4878 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 4064 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
2132 | 4879 | ;; | 4065 | ;; |
2133 | 4880 | *) | 4066 | *) |
2135 | 4881 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' | 4067 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' |
2136 | 4882 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | 4068 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
2137 | 4883 | ;; | 4069 | ;; |
2138 | 4884 | esac | 4070 | esac |
2139 | @@ -4900,7 +4086,7 @@ | |||
2140 | 4900 | ;; | 4086 | ;; |
2141 | 4901 | 4087 | ||
2142 | 4902 | # This must be Linux ELF. | 4088 | # This must be Linux ELF. |
2144 | 4903 | linux* | k*bsd*-gnu) | 4089 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
2145 | 4904 | lt_cv_deplibs_check_method=pass_all | 4090 | lt_cv_deplibs_check_method=pass_all |
2146 | 4905 | ;; | 4091 | ;; |
2147 | 4906 | 4092 | ||
2148 | @@ -5042,7 +4228,19 @@ | |||
2149 | 5042 | NM="$lt_cv_path_NM" | 4228 | NM="$lt_cv_path_NM" |
2150 | 5043 | else | 4229 | else |
2151 | 5044 | # Didn't find any BSD compatible name lister, look for dumpbin. | 4230 | # Didn't find any BSD compatible name lister, look for dumpbin. |
2153 | 5045 | AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) | 4231 | if test -n "$DUMPBIN"; then : |
2154 | 4232 | # Let the user override the test. | ||
2155 | 4233 | else | ||
2156 | 4234 | AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) | ||
2157 | 4235 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | ||
2158 | 4236 | *COFF*) | ||
2159 | 4237 | DUMPBIN="$DUMPBIN -symbols" | ||
2160 | 4238 | ;; | ||
2161 | 4239 | *) | ||
2162 | 4240 | DUMPBIN=: | ||
2163 | 4241 | ;; | ||
2164 | 4242 | esac | ||
2165 | 4243 | fi | ||
2166 | 5046 | AC_SUBST([DUMPBIN]) | 4244 | AC_SUBST([DUMPBIN]) |
2167 | 5047 | if test "$DUMPBIN" != ":"; then | 4245 | if test "$DUMPBIN" != ":"; then |
2168 | 5048 | NM="$DUMPBIN" | 4246 | NM="$DUMPBIN" |
2169 | @@ -5055,13 +4253,13 @@ | |||
2170 | 5055 | AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], | 4253 | AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
2171 | 5056 | [lt_cv_nm_interface="BSD nm" | 4254 | [lt_cv_nm_interface="BSD nm" |
2172 | 5057 | echo "int some_variable = 0;" > conftest.$ac_ext | 4255 | echo "int some_variable = 0;" > conftest.$ac_ext |
2174 | 5058 | (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | 4256 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) |
2175 | 5059 | (eval "$ac_compile" 2>conftest.err) | 4257 | (eval "$ac_compile" 2>conftest.err) |
2176 | 5060 | cat conftest.err >&AS_MESSAGE_LOG_FD | 4258 | cat conftest.err >&AS_MESSAGE_LOG_FD |
2178 | 5061 | (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) | 4259 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) |
2179 | 5062 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | 4260 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
2180 | 5063 | cat conftest.err >&AS_MESSAGE_LOG_FD | 4261 | cat conftest.err >&AS_MESSAGE_LOG_FD |
2182 | 5064 | (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) | 4262 | (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) |
2183 | 5065 | cat conftest.out >&AS_MESSAGE_LOG_FD | 4263 | cat conftest.out >&AS_MESSAGE_LOG_FD |
2184 | 5066 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | 4264 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
2185 | 5067 | lt_cv_nm_interface="MS dumpbin" | 4265 | lt_cv_nm_interface="MS dumpbin" |
2186 | @@ -5084,7 +4282,7 @@ | |||
2187 | 5084 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 4282 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2188 | 5085 | LIBM= | 4283 | LIBM= |
2189 | 5086 | case $host in | 4284 | case $host in |
2191 | 5087 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | 4285 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
2192 | 5088 | # These system don't have libm, or don't need it | 4286 | # These system don't have libm, or don't need it |
2193 | 5089 | ;; | 4287 | ;; |
2194 | 5090 | *-ncr-sysv4.3*) | 4288 | *-ncr-sysv4.3*) |
2195 | @@ -5112,7 +4310,12 @@ | |||
2196 | 5112 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | 4310 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
2197 | 5113 | 4311 | ||
2198 | 5114 | if test "$GCC" = yes; then | 4312 | if test "$GCC" = yes; then |
2200 | 5115 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | 4313 | case $cc_basename in |
2201 | 4314 | nvcc*) | ||
2202 | 4315 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; | ||
2203 | 4316 | *) | ||
2204 | 4317 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; | ||
2205 | 4318 | esac | ||
2206 | 5116 | 4319 | ||
2207 | 5117 | _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | 4320 | _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
2208 | 5118 | lt_cv_prog_compiler_rtti_exceptions, | 4321 | lt_cv_prog_compiler_rtti_exceptions, |
2209 | @@ -5129,6 +4332,7 @@ | |||
2210 | 5129 | m4_defun([_LT_CMD_GLOBAL_SYMBOLS], | 4332 | m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
2211 | 5130 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 4333 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2212 | 5131 | AC_REQUIRE([AC_PROG_CC])dnl | 4334 | AC_REQUIRE([AC_PROG_CC])dnl |
2213 | 4335 | AC_REQUIRE([AC_PROG_AWK])dnl | ||
2214 | 5132 | AC_REQUIRE([LT_PATH_NM])dnl | 4336 | AC_REQUIRE([LT_PATH_NM])dnl |
2215 | 5133 | AC_REQUIRE([LT_PATH_LD])dnl | 4337 | AC_REQUIRE([LT_PATH_LD])dnl |
2216 | 5134 | m4_require([_LT_DECL_SED])dnl | 4338 | m4_require([_LT_DECL_SED])dnl |
2217 | @@ -5254,7 +4458,7 @@ | |||
2218 | 5254 | if AC_TRY_EVAL(ac_compile); then | 4458 | if AC_TRY_EVAL(ac_compile); then |
2219 | 5255 | # Now try to grab the symbols. | 4459 | # Now try to grab the symbols. |
2220 | 5256 | nlist=conftest.nm | 4460 | nlist=conftest.nm |
2222 | 5257 | if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then | 4461 | if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then |
2223 | 5258 | # Try sorting and uniquifying the output. | 4462 | # Try sorting and uniquifying the output. |
2224 | 5259 | if sort "$nlist" | uniq > "$nlist"T; then | 4463 | if sort "$nlist" | uniq > "$nlist"T; then |
2225 | 5260 | mv -f "$nlist"T "$nlist" | 4464 | mv -f "$nlist"T "$nlist" |
2226 | @@ -5416,6 +4620,11 @@ | |||
2227 | 5416 | # DJGPP does not support shared libraries at all | 4620 | # DJGPP does not support shared libraries at all |
2228 | 5417 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | 4621 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
2229 | 5418 | ;; | 4622 | ;; |
2230 | 4623 | haiku*) | ||
2231 | 4624 | # PIC is the default for Haiku. | ||
2232 | 4625 | # The "-static" flag exists, but is broken. | ||
2233 | 4626 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
2234 | 4627 | ;; | ||
2235 | 5419 | interix[[3-9]]*) | 4628 | interix[[3-9]]*) |
2236 | 5420 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 4629 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
2237 | 5421 | # Instead, we relocate shared libraries at runtime. | 4630 | # Instead, we relocate shared libraries at runtime. |
2238 | @@ -5521,7 +4730,7 @@ | |||
2239 | 5521 | ;; | 4730 | ;; |
2240 | 5522 | esac | 4731 | esac |
2241 | 5523 | ;; | 4732 | ;; |
2243 | 5524 | linux* | k*bsd*-gnu) | 4733 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
2244 | 5525 | case $cc_basename in | 4734 | case $cc_basename in |
2245 | 5526 | KCC*) | 4735 | KCC*) |
2246 | 5527 | # KAI C++ Compiler | 4736 | # KAI C++ Compiler |
2247 | @@ -5554,8 +4763,8 @@ | |||
2248 | 5554 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | 4763 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
2249 | 5555 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4764 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
2250 | 5556 | ;; | 4765 | ;; |
2253 | 5557 | xlc* | xlC*) | 4766 | xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) |
2254 | 5558 | # IBM XL 8.0 on PPC | 4767 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
2255 | 5559 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4768 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
2256 | 5560 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | 4769 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
2257 | 5561 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | 4770 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
2258 | @@ -5617,7 +4826,7 @@ | |||
2259 | 5617 | ;; | 4826 | ;; |
2260 | 5618 | solaris*) | 4827 | solaris*) |
2261 | 5619 | case $cc_basename in | 4828 | case $cc_basename in |
2263 | 5620 | CC*) | 4829 | CC* | sunCC*) |
2264 | 5621 | # Sun C++ 4.2, 5.x and Centerline C++ | 4830 | # Sun C++ 4.2, 5.x and Centerline C++ |
2265 | 5622 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4831 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
2266 | 5623 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4832 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
2267 | @@ -5721,6 +4930,12 @@ | |||
2268 | 5721 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 4930 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
2269 | 5722 | ;; | 4931 | ;; |
2270 | 5723 | 4932 | ||
2271 | 4933 | haiku*) | ||
2272 | 4934 | # PIC is the default for Haiku. | ||
2273 | 4935 | # The "-static" flag exists, but is broken. | ||
2274 | 4936 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
2275 | 4937 | ;; | ||
2276 | 4938 | |||
2277 | 5724 | hpux*) | 4939 | hpux*) |
2278 | 5725 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | 4940 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
2279 | 5726 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | 4941 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
2280 | @@ -5763,6 +4978,13 @@ | |||
2281 | 5763 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4978 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
2282 | 5764 | ;; | 4979 | ;; |
2283 | 5765 | esac | 4980 | esac |
2284 | 4981 | |||
2285 | 4982 | case $cc_basename in | ||
2286 | 4983 | nvcc*) # Cuda Compiler Driver 2.2 | ||
2287 | 4984 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' | ||
2288 | 4985 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' | ||
2289 | 4986 | ;; | ||
2290 | 4987 | esac | ||
2291 | 5766 | else | 4988 | else |
2292 | 5767 | # PORTME Check for flag to pass linker flags through the system compiler. | 4989 | # PORTME Check for flag to pass linker flags through the system compiler. |
2293 | 5768 | case $host_os in | 4990 | case $host_os in |
2294 | @@ -5805,7 +5027,7 @@ | |||
2295 | 5805 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 5027 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
2296 | 5806 | ;; | 5028 | ;; |
2297 | 5807 | 5029 | ||
2299 | 5808 | linux* | k*bsd*-gnu) | 5030 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
2300 | 5809 | case $cc_basename in | 5031 | case $cc_basename in |
2301 | 5810 | # old Intel for x86_64 which still supported -KPIC. | 5032 | # old Intel for x86_64 which still supported -KPIC. |
2302 | 5811 | ecc*) | 5033 | ecc*) |
2303 | @@ -5826,7 +5048,7 @@ | |||
2304 | 5826 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' | 5048 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
2305 | 5827 | _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' | 5049 | _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
2306 | 5828 | ;; | 5050 | ;; |
2308 | 5829 | pgcc* | pgf77* | pgf90* | pgf95*) | 5051 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
2309 | 5830 | # Portland Group compilers (*not* the Pentium gcc compiler, | 5052 | # Portland Group compilers (*not* the Pentium gcc compiler, |
2310 | 5831 | # which looks to be a dead project) | 5053 | # which looks to be a dead project) |
2311 | 5832 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5054 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
2312 | @@ -5838,26 +5060,26 @@ | |||
2313 | 5838 | # All Alpha code is PIC. | 5060 | # All Alpha code is PIC. |
2314 | 5839 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 5061 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
2315 | 5840 | ;; | 5062 | ;; |
2318 | 5841 | xl*) | 5063 | xl* | bgxl* | bgf* | mpixl*) |
2319 | 5842 | # IBM XL C 8.0/Fortran 10.1 on PPC | 5064 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
2320 | 5843 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5065 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
2321 | 5844 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | 5066 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
2322 | 5845 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | 5067 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
2323 | 5846 | ;; | 5068 | ;; |
2324 | 5847 | *) | 5069 | *) |
2325 | 5848 | case `$CC -V 2>&1 | sed 5q` in | 5070 | case `$CC -V 2>&1 | sed 5q` in |
2326 | 5071 | *Sun\ F* | *Sun*Fortran*) | ||
2327 | 5072 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
2328 | 5073 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
2329 | 5074 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
2330 | 5075 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | ||
2331 | 5076 | ;; | ||
2332 | 5849 | *Sun\ C*) | 5077 | *Sun\ C*) |
2333 | 5850 | # Sun C 5.9 | 5078 | # Sun C 5.9 |
2334 | 5851 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5079 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
2335 | 5852 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5080 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
2336 | 5853 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5081 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
2337 | 5854 | ;; | 5082 | ;; |
2338 | 5855 | *Sun\ F*) | ||
2339 | 5856 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
2340 | 5857 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
2341 | 5858 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
2342 | 5859 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | ||
2343 | 5860 | ;; | ||
2344 | 5861 | esac | 5083 | esac |
2345 | 5862 | ;; | 5084 | ;; |
2346 | 5863 | esac | 5085 | esac |
2347 | @@ -5888,7 +5110,7 @@ | |||
2348 | 5888 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5110 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
2349 | 5889 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5111 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
2350 | 5890 | case $cc_basename in | 5112 | case $cc_basename in |
2352 | 5891 | f77* | f90* | f95*) | 5113 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
2353 | 5892 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | 5114 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
2354 | 5893 | *) | 5115 | *) |
2355 | 5894 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | 5116 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
2356 | @@ -5998,8 +5220,10 @@ | |||
2357 | 5998 | aix[[4-9]]*) | 5220 | aix[[4-9]]*) |
2358 | 5999 | # If we're using GNU nm, then we don't want the "-C" option. | 5221 | # If we're using GNU nm, then we don't want the "-C" option. |
2359 | 6000 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 5222 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
2360 | 5223 | # Also, AIX nm treats weak defined symbols like other global defined | ||
2361 | 5224 | # symbols, whereas GNU nm marks them as "W". | ||
2362 | 6001 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 5225 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
2364 | 6002 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 5226 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
2365 | 6003 | else | 5227 | else |
2366 | 6004 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 5228 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
2367 | 6005 | fi | 5229 | fi |
2368 | @@ -6077,7 +5301,33 @@ | |||
2369 | 6077 | esac | 5301 | esac |
2370 | 6078 | 5302 | ||
2371 | 6079 | _LT_TAGVAR(ld_shlibs, $1)=yes | 5303 | _LT_TAGVAR(ld_shlibs, $1)=yes |
2372 | 5304 | |||
2373 | 5305 | # On some targets, GNU ld is compatible enough with the native linker | ||
2374 | 5306 | # that we're better off using the native interface for both. | ||
2375 | 5307 | lt_use_gnu_ld_interface=no | ||
2376 | 6080 | if test "$with_gnu_ld" = yes; then | 5308 | if test "$with_gnu_ld" = yes; then |
2377 | 5309 | case $host_os in | ||
2378 | 5310 | aix*) | ||
2379 | 5311 | # The AIX port of GNU ld has always aspired to compatibility | ||
2380 | 5312 | # with the native linker. However, as the warning in the GNU ld | ||
2381 | 5313 | # block says, versions before 2.19.5* couldn't really create working | ||
2382 | 5314 | # shared libraries, regardless of the interface used. | ||
2383 | 5315 | case `$LD -v 2>&1` in | ||
2384 | 5316 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | ||
2385 | 5317 | *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; | ||
2386 | 5318 | *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; | ||
2387 | 5319 | *) | ||
2388 | 5320 | lt_use_gnu_ld_interface=yes | ||
2389 | 5321 | ;; | ||
2390 | 5322 | esac | ||
2391 | 5323 | ;; | ||
2392 | 5324 | *) | ||
2393 | 5325 | lt_use_gnu_ld_interface=yes | ||
2394 | 5326 | ;; | ||
2395 | 5327 | esac | ||
2396 | 5328 | fi | ||
2397 | 5329 | |||
2398 | 5330 | if test "$lt_use_gnu_ld_interface" = yes; then | ||
2399 | 6081 | # If archive_cmds runs LD, not CC, wlarc should be empty | 5331 | # If archive_cmds runs LD, not CC, wlarc should be empty |
2400 | 6082 | wlarc='${wl}' | 5332 | wlarc='${wl}' |
2401 | 6083 | 5333 | ||
2402 | @@ -6095,6 +5345,7 @@ | |||
2403 | 6095 | fi | 5345 | fi |
2404 | 6096 | supports_anon_versioning=no | 5346 | supports_anon_versioning=no |
2405 | 6097 | case `$LD -v 2>&1` in | 5347 | case `$LD -v 2>&1` in |
2406 | 5348 | *GNU\ gold*) supports_anon_versioning=yes ;; | ||
2407 | 6098 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | 5349 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
2408 | 6099 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 5350 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
2409 | 6100 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 5351 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
2410 | @@ -6110,11 +5361,12 @@ | |||
2411 | 6110 | _LT_TAGVAR(ld_shlibs, $1)=no | 5361 | _LT_TAGVAR(ld_shlibs, $1)=no |
2412 | 6111 | cat <<_LT_EOF 1>&2 | 5362 | cat <<_LT_EOF 1>&2 |
2413 | 6112 | 5363 | ||
2415 | 6113 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 5364 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
2416 | 6114 | *** to be unable to reliably create shared libraries on AIX. | 5365 | *** to be unable to reliably create shared libraries on AIX. |
2417 | 6115 | *** Therefore, libtool is disabling shared libraries support. If you | 5366 | *** Therefore, libtool is disabling shared libraries support. If you |
2420 | 6116 | *** really care for shared libraries, you may want to modify your PATH | 5367 | *** really care for shared libraries, you may want to install binutils |
2421 | 6117 | *** so that a non-GNU linker is found, and then restart. | 5368 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
2422 | 5369 | *** You will then need to restart the configuration process. | ||
2423 | 6118 | 5370 | ||
2424 | 6119 | _LT_EOF | 5371 | _LT_EOF |
2425 | 6120 | fi | 5372 | fi |
2426 | @@ -6150,6 +5402,7 @@ | |||
2427 | 6150 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 5402 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
2428 | 6151 | # as there is no search path for DLLs. | 5403 | # as there is no search path for DLLs. |
2429 | 6152 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5404 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
2430 | 5405 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | ||
2431 | 6153 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 5406 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
2432 | 6154 | _LT_TAGVAR(always_export_symbols, $1)=no | 5407 | _LT_TAGVAR(always_export_symbols, $1)=no |
2433 | 6155 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5408 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
2434 | @@ -6171,6 +5424,11 @@ | |||
2435 | 6171 | fi | 5424 | fi |
2436 | 6172 | ;; | 5425 | ;; |
2437 | 6173 | 5426 | ||
2438 | 5427 | haiku*) | ||
2439 | 5428 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
2440 | 5429 | _LT_TAGVAR(link_all_deplibs, $1)=yes | ||
2441 | 5430 | ;; | ||
2442 | 5431 | |||
2443 | 6174 | interix[[3-9]]*) | 5432 | interix[[3-9]]*) |
2444 | 6175 | _LT_TAGVAR(hardcode_direct, $1)=no | 5433 | _LT_TAGVAR(hardcode_direct, $1)=no |
2445 | 6176 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5434 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
2446 | @@ -6186,7 +5444,7 @@ | |||
2447 | 6186 | _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 5444 | _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
2448 | 6187 | ;; | 5445 | ;; |
2449 | 6188 | 5446 | ||
2451 | 6189 | gnu* | linux* | tpf* | k*bsd*-gnu) | 5447 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
2452 | 6190 | tmp_diet=no | 5448 | tmp_diet=no |
2453 | 6191 | if test "$host_os" = linux-dietlibc; then | 5449 | if test "$host_os" = linux-dietlibc; then |
2454 | 6192 | case $cc_basename in | 5450 | case $cc_basename in |
2455 | @@ -6200,11 +5458,12 @@ | |||
2456 | 6200 | tmp_sharedflag='-shared' | 5458 | tmp_sharedflag='-shared' |
2457 | 6201 | case $cc_basename,$host_cpu in | 5459 | case $cc_basename,$host_cpu in |
2458 | 6202 | pgcc*) # Portland Group C compiler | 5460 | pgcc*) # Portland Group C compiler |
2460 | 6203 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | 5461 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
2461 | 6204 | tmp_addflag=' $pic_flag' | 5462 | tmp_addflag=' $pic_flag' |
2462 | 6205 | ;; | 5463 | ;; |
2465 | 6206 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | 5464 | pgf77* | pgf90* | pgf95* | pgfortran*) |
2466 | 6207 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | 5465 | # Portland Group f77 and f90 compilers |
2467 | 5466 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
2468 | 6208 | tmp_addflag=' $pic_flag -Mnomain' ;; | 5467 | tmp_addflag=' $pic_flag -Mnomain' ;; |
2469 | 6209 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | 5468 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
2470 | 6210 | tmp_addflag=' -i_dynamic' ;; | 5469 | tmp_addflag=' -i_dynamic' ;; |
2471 | @@ -6215,13 +5474,17 @@ | |||
2472 | 6215 | lf95*) # Lahey Fortran 8.1 | 5474 | lf95*) # Lahey Fortran 8.1 |
2473 | 6216 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | 5475 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
2474 | 6217 | tmp_sharedflag='--shared' ;; | 5476 | tmp_sharedflag='--shared' ;; |
2476 | 6218 | xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) | 5477 | xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
2477 | 6219 | tmp_sharedflag='-qmkshrobj' | 5478 | tmp_sharedflag='-qmkshrobj' |
2478 | 6220 | tmp_addflag= ;; | 5479 | tmp_addflag= ;; |
2479 | 5480 | nvcc*) # Cuda Compiler Driver 2.2 | ||
2480 | 5481 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
2481 | 5482 | _LT_TAGVAR(compiler_needs_object, $1)=yes | ||
2482 | 5483 | ;; | ||
2483 | 6221 | esac | 5484 | esac |
2484 | 6222 | case `$CC -V 2>&1 | sed 5q` in | 5485 | case `$CC -V 2>&1 | sed 5q` in |
2485 | 6223 | *Sun\ C*) # Sun C 5.9 | 5486 | *Sun\ C*) # Sun C 5.9 |
2487 | 6224 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | 5487 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
2488 | 6225 | _LT_TAGVAR(compiler_needs_object, $1)=yes | 5488 | _LT_TAGVAR(compiler_needs_object, $1)=yes |
2489 | 6226 | tmp_sharedflag='-G' ;; | 5489 | tmp_sharedflag='-G' ;; |
2490 | 6227 | *Sun\ F*) # Sun Fortran 8.3 | 5490 | *Sun\ F*) # Sun Fortran 8.3 |
2491 | @@ -6237,17 +5500,17 @@ | |||
2492 | 6237 | fi | 5500 | fi |
2493 | 6238 | 5501 | ||
2494 | 6239 | case $cc_basename in | 5502 | case $cc_basename in |
2496 | 6240 | xlf*) | 5503 | xlf* | bgf* | bgxlf* | mpixlf*) |
2497 | 6241 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | 5504 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
2498 | 6242 | _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' | 5505 | _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
2499 | 6243 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 5506 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
2500 | 6244 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | 5507 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
2502 | 6245 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | 5508 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
2503 | 6246 | if test "x$supports_anon_versioning" = xyes; then | 5509 | if test "x$supports_anon_versioning" = xyes; then |
2504 | 6247 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | 5510 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
2505 | 6248 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 5511 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
2506 | 6249 | echo "local: *; };" >> $output_objdir/$libname.ver~ | 5512 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
2508 | 6250 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | 5513 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
2509 | 6251 | fi | 5514 | fi |
2510 | 6252 | ;; | 5515 | ;; |
2511 | 6253 | esac | 5516 | esac |
2512 | @@ -6368,8 +5631,10 @@ | |||
2513 | 6368 | else | 5631 | else |
2514 | 6369 | # If we're using GNU nm, then we don't want the "-C" option. | 5632 | # If we're using GNU nm, then we don't want the "-C" option. |
2515 | 6370 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 5633 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
2516 | 5634 | # Also, AIX nm treats weak defined symbols like other global | ||
2517 | 5635 | # defined symbols, whereas GNU nm marks them as "W". | ||
2518 | 6371 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 5636 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
2520 | 6372 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 5637 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
2521 | 6373 | else | 5638 | else |
2522 | 6374 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 5639 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
2523 | 6375 | fi | 5640 | fi |
2524 | @@ -6458,7 +5723,7 @@ | |||
2525 | 6458 | # empty executable. | 5723 | # empty executable. |
2526 | 6459 | _LT_SYS_MODULE_PATH_AIX | 5724 | _LT_SYS_MODULE_PATH_AIX |
2527 | 6460 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 5725 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
2529 | 6461 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 5726 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
2530 | 6462 | else | 5727 | else |
2531 | 6463 | if test "$host_cpu" = ia64; then | 5728 | if test "$host_cpu" = ia64; then |
2532 | 6464 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 5729 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
2533 | @@ -6473,8 +5738,13 @@ | |||
2534 | 6473 | # -berok will link without error, but may produce a broken library. | 5738 | # -berok will link without error, but may produce a broken library. |
2535 | 6474 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 5739 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
2536 | 6475 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 5740 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
2539 | 6476 | # Exported symbols can be pulled into shared objects from archives | 5741 | if test "$with_gnu_ld" = yes; then |
2540 | 6477 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | 5742 | # We only use this code for GNU lds that support --whole-archive. |
2541 | 5743 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
2542 | 5744 | else | ||
2543 | 5745 | # Exported symbols can be pulled into shared objects from archives | ||
2544 | 5746 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
2545 | 5747 | fi | ||
2546 | 6478 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 5748 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
2547 | 6479 | # This is similar to how AIX traditionally builds its shared libraries. | 5749 | # This is similar to how AIX traditionally builds its shared libraries. |
2548 | 6480 | _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 5750 | _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
2549 | @@ -6513,7 +5783,7 @@ | |||
2550 | 6513 | # Tell ltmain to make .dll files, not .so files. | 5783 | # Tell ltmain to make .dll files, not .so files. |
2551 | 6514 | shrext_cmds=".dll" | 5784 | shrext_cmds=".dll" |
2552 | 6515 | # FIXME: Setting linknames here is a bad hack. | 5785 | # FIXME: Setting linknames here is a bad hack. |
2554 | 6516 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 5786 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
2555 | 6517 | # The linker will automatically build a .lib file if we build a DLL. | 5787 | # The linker will automatically build a .lib file if we build a DLL. |
2556 | 6518 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | 5788 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
2557 | 6519 | # FIXME: Should let the user specify the lib program. | 5789 | # FIXME: Should let the user specify the lib program. |
2558 | @@ -6580,7 +5850,7 @@ | |||
2559 | 6580 | ;; | 5850 | ;; |
2560 | 6581 | 5851 | ||
2561 | 6582 | hpux10*) | 5852 | hpux10*) |
2563 | 6583 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 5853 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
2564 | 6584 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5854 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
2565 | 6585 | else | 5855 | else |
2566 | 6586 | _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 5856 | _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
2567 | @@ -6599,7 +5869,7 @@ | |||
2568 | 6599 | ;; | 5869 | ;; |
2569 | 6600 | 5870 | ||
2570 | 6601 | hpux11*) | 5871 | hpux11*) |
2572 | 6602 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 5872 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
2573 | 6603 | case $host_cpu in | 5873 | case $host_cpu in |
2574 | 6604 | hppa*64*) | 5874 | hppa*64*) |
2575 | 6605 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5875 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
2576 | @@ -6620,7 +5890,14 @@ | |||
2577 | 6620 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 5890 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
2578 | 6621 | ;; | 5891 | ;; |
2579 | 6622 | *) | 5892 | *) |
2581 | 6623 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5893 | m4_if($1, [], [ |
2582 | 5894 | # Older versions of the 11.00 compiler do not understand -b yet | ||
2583 | 5895 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | ||
2584 | 5896 | _LT_LINKER_OPTION([if $CC understands -b], | ||
2585 | 5897 | _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], | ||
2586 | 5898 | [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], | ||
2587 | 5899 | [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], | ||
2588 | 5900 | [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) | ||
2589 | 6624 | ;; | 5901 | ;; |
2590 | 6625 | esac | 5902 | esac |
2591 | 6626 | fi | 5903 | fi |
2592 | @@ -6648,19 +5925,19 @@ | |||
2593 | 6648 | 5925 | ||
2594 | 6649 | irix5* | irix6* | nonstopux*) | 5926 | irix5* | irix6* | nonstopux*) |
2595 | 6650 | if test "$GCC" = yes; then | 5927 | if test "$GCC" = yes; then |
2597 | 6651 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 5928 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
2598 | 6652 | # Try to use the -exported_symbol ld option, if it does not | 5929 | # Try to use the -exported_symbol ld option, if it does not |
2599 | 6653 | # work, assume that -exports_file does not work either and | 5930 | # work, assume that -exports_file does not work either and |
2600 | 6654 | # implicitly export all symbols. | 5931 | # implicitly export all symbols. |
2601 | 6655 | save_LDFLAGS="$LDFLAGS" | 5932 | save_LDFLAGS="$LDFLAGS" |
2602 | 6656 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | 5933 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
2603 | 6657 | AC_LINK_IFELSE(int foo(void) {}, | 5934 | AC_LINK_IFELSE(int foo(void) {}, |
2605 | 6658 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | 5935 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
2606 | 6659 | ) | 5936 | ) |
2607 | 6660 | LDFLAGS="$save_LDFLAGS" | 5937 | LDFLAGS="$save_LDFLAGS" |
2608 | 6661 | else | 5938 | else |
2611 | 6662 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | 5939 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
2612 | 6663 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | 5940 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
2613 | 6664 | fi | 5941 | fi |
2614 | 6665 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 5942 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
2615 | 6666 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5943 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
2616 | @@ -6722,17 +5999,17 @@ | |||
2617 | 6722 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5999 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
2618 | 6723 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | 6000 | _LT_TAGVAR(hardcode_minus_L, $1)=yes |
2619 | 6724 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 6001 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
2621 | 6725 | _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 6002 | _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
2622 | 6726 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 6003 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
2623 | 6727 | ;; | 6004 | ;; |
2624 | 6728 | 6005 | ||
2625 | 6729 | osf3*) | 6006 | osf3*) |
2626 | 6730 | if test "$GCC" = yes; then | 6007 | if test "$GCC" = yes; then |
2627 | 6731 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 6008 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
2629 | 6732 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 6009 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
2630 | 6733 | else | 6010 | else |
2631 | 6734 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 6011 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
2633 | 6735 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | 6012 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
2634 | 6736 | fi | 6013 | fi |
2635 | 6737 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 6014 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
2636 | 6738 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6015 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
2637 | @@ -6742,13 +6019,13 @@ | |||
2638 | 6742 | osf4* | osf5*) # as osf3* with the addition of -msym flag | 6019 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
2639 | 6743 | if test "$GCC" = yes; then | 6020 | if test "$GCC" = yes; then |
2640 | 6744 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 6021 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
2642 | 6745 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 6022 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
2643 | 6746 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6023 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
2644 | 6747 | else | 6024 | else |
2645 | 6748 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 6025 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
2647 | 6749 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | 6026 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
2648 | 6750 | _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | 6027 | _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
2650 | 6751 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | 6028 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
2651 | 6752 | 6029 | ||
2652 | 6753 | # Both c and cxx compiler support -rpath directly | 6030 | # Both c and cxx compiler support -rpath directly |
2653 | 6754 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 6031 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
2654 | @@ -6939,36 +6216,38 @@ | |||
2655 | 6939 | # Test whether the compiler implicitly links with -lc since on some | 6216 | # Test whether the compiler implicitly links with -lc since on some |
2656 | 6940 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 6217 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
2657 | 6941 | # to ld, don't add -lc before -lgcc. | 6218 | # to ld, don't add -lc before -lgcc. |
2661 | 6942 | AC_MSG_CHECKING([whether -lc should be explicitly linked in]) | 6219 | AC_CACHE_CHECK([whether -lc should be explicitly linked in], |
2662 | 6943 | $RM conftest* | 6220 | [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), |
2663 | 6944 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 6221 | [$RM conftest* |
2664 | 6222 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
2665 | 6945 | 6223 | ||
2692 | 6946 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | 6224 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
2693 | 6947 | soname=conftest | 6225 | soname=conftest |
2694 | 6948 | lib=conftest | 6226 | lib=conftest |
2695 | 6949 | libobjs=conftest.$ac_objext | 6227 | libobjs=conftest.$ac_objext |
2696 | 6950 | deplibs= | 6228 | deplibs= |
2697 | 6951 | wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) | 6229 | wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) |
2698 | 6952 | pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) | 6230 | pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) |
2699 | 6953 | compiler_flags=-v | 6231 | compiler_flags=-v |
2700 | 6954 | linker_flags=-v | 6232 | linker_flags=-v |
2701 | 6955 | verstring= | 6233 | verstring= |
2702 | 6956 | output_objdir=. | 6234 | output_objdir=. |
2703 | 6957 | libname=conftest | 6235 | libname=conftest |
2704 | 6958 | lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) | 6236 | lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) |
2705 | 6959 | _LT_TAGVAR(allow_undefined_flag, $1)= | 6237 | _LT_TAGVAR(allow_undefined_flag, $1)= |
2706 | 6960 | if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) | 6238 | if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) |
2707 | 6961 | then | 6239 | then |
2708 | 6962 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6240 | lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
2709 | 6963 | else | 6241 | else |
2710 | 6964 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 6242 | lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
2711 | 6965 | fi | 6243 | fi |
2712 | 6966 | _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | 6244 | _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag |
2713 | 6967 | else | 6245 | else |
2714 | 6968 | cat conftest.err 1>&5 | 6246 | cat conftest.err 1>&5 |
2715 | 6969 | fi | 6247 | fi |
2716 | 6970 | $RM conftest* | 6248 | $RM conftest* |
2717 | 6971 | AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) | 6249 | ]) |
2718 | 6250 | _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) | ||
2719 | 6972 | ;; | 6251 | ;; |
2720 | 6973 | esac | 6252 | esac |
2721 | 6974 | fi | 6253 | fi |
2722 | @@ -7134,14 +6413,14 @@ | |||
2723 | 7134 | ])# _LT_LANG_C_CONFIG | 6413 | ])# _LT_LANG_C_CONFIG |
2724 | 7135 | 6414 | ||
2725 | 7136 | 6415 | ||
2734 | 7137 | # _LT_PROG_CXX | 6416 | # _LT_LANG_CXX_CONFIG([TAG]) |
2735 | 7138 | # ------------ | 6417 | # -------------------------- |
2736 | 7139 | # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ | 6418 | # Ensure that the configuration variables for a C++ compiler are suitably |
2737 | 7140 | # compiler, we have our own version here. | 6419 | # defined. These variables are subsequently used by _LT_CONFIG to write |
2738 | 7141 | m4_defun([_LT_PROG_CXX], | 6420 | # the compiler configuration to `libtool'. |
2739 | 7142 | [ | 6421 | m4_defun([_LT_LANG_CXX_CONFIG], |
2740 | 7143 | pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) | 6422 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2741 | 7144 | AC_PROG_CXX | 6423 | m4_require([_LT_DECL_EGREP])dnl |
2742 | 7145 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 6424 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
2743 | 7146 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 6425 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
2744 | 7147 | (test "X$CXX" != "Xg++"))) ; then | 6426 | (test "X$CXX" != "Xg++"))) ; then |
2745 | @@ -7149,22 +6428,6 @@ | |||
2746 | 7149 | else | 6428 | else |
2747 | 7150 | _lt_caught_CXX_error=yes | 6429 | _lt_caught_CXX_error=yes |
2748 | 7151 | fi | 6430 | fi |
2749 | 7152 | popdef([AC_MSG_ERROR]) | ||
2750 | 7153 | ])# _LT_PROG_CXX | ||
2751 | 7154 | |||
2752 | 7155 | dnl aclocal-1.4 backwards compatibility: | ||
2753 | 7156 | dnl AC_DEFUN([_LT_PROG_CXX], []) | ||
2754 | 7157 | |||
2755 | 7158 | |||
2756 | 7159 | # _LT_LANG_CXX_CONFIG([TAG]) | ||
2757 | 7160 | # -------------------------- | ||
2758 | 7161 | # Ensure that the configuration variables for a C++ compiler are suitably | ||
2759 | 7162 | # defined. These variables are subsequently used by _LT_CONFIG to write | ||
2760 | 7163 | # the compiler configuration to `libtool'. | ||
2761 | 7164 | m4_defun([_LT_LANG_CXX_CONFIG], | ||
2762 | 7165 | [AC_REQUIRE([_LT_PROG_CXX])dnl | ||
2763 | 7166 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
2764 | 7167 | m4_require([_LT_DECL_EGREP])dnl | ||
2765 | 7168 | 6431 | ||
2766 | 7169 | AC_LANG_PUSH(C++) | 6432 | AC_LANG_PUSH(C++) |
2767 | 7170 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6433 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
2768 | @@ -7186,6 +6449,8 @@ | |||
2769 | 7186 | _LT_TAGVAR(module_expsym_cmds, $1)= | 6449 | _LT_TAGVAR(module_expsym_cmds, $1)= |
2770 | 7187 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | 6450 | _LT_TAGVAR(link_all_deplibs, $1)=unknown |
2771 | 7188 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 6451 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
2772 | 6452 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | ||
2773 | 6453 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | ||
2774 | 7189 | _LT_TAGVAR(no_undefined_flag, $1)= | 6454 | _LT_TAGVAR(no_undefined_flag, $1)= |
2775 | 7190 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | 6455 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
2776 | 7191 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 6456 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
2777 | @@ -7288,7 +6553,7 @@ | |||
2778 | 7288 | # Commands to make compiler produce verbose output that lists | 6553 | # Commands to make compiler produce verbose output that lists |
2779 | 7289 | # what "hidden" libraries, object files and flags are used when | 6554 | # what "hidden" libraries, object files and flags are used when |
2780 | 7290 | # linking a shared library. | 6555 | # linking a shared library. |
2782 | 7291 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | 6556 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
2783 | 7292 | 6557 | ||
2784 | 7293 | else | 6558 | else |
2785 | 7294 | GXX=no | 6559 | GXX=no |
2786 | @@ -7400,7 +6665,7 @@ | |||
2787 | 7400 | _LT_SYS_MODULE_PATH_AIX | 6665 | _LT_SYS_MODULE_PATH_AIX |
2788 | 7401 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 6666 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
2789 | 7402 | 6667 | ||
2791 | 7403 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 6668 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
2792 | 7404 | else | 6669 | else |
2793 | 7405 | if test "$host_cpu" = ia64; then | 6670 | if test "$host_cpu" = ia64; then |
2794 | 7406 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 6671 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
2795 | @@ -7415,8 +6680,13 @@ | |||
2796 | 7415 | # -berok will link without error, but may produce a broken library. | 6680 | # -berok will link without error, but may produce a broken library. |
2797 | 7416 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 6681 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
2798 | 7417 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 6682 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
2801 | 7418 | # Exported symbols can be pulled into shared objects from archives | 6683 | if test "$with_gnu_ld" = yes; then |
2802 | 7419 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | 6684 | # We only use this code for GNU lds that support --whole-archive. |
2803 | 6685 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
2804 | 6686 | else | ||
2805 | 6687 | # Exported symbols can be pulled into shared objects from archives | ||
2806 | 6688 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
2807 | 6689 | fi | ||
2808 | 7420 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 6690 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
2809 | 7421 | # This is similar to how AIX traditionally builds its shared | 6691 | # This is similar to how AIX traditionally builds its shared |
2810 | 7422 | # libraries. | 6692 | # libraries. |
2811 | @@ -7449,6 +6719,7 @@ | |||
2812 | 7449 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 6719 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
2813 | 7450 | # as there is no search path for DLLs. | 6720 | # as there is no search path for DLLs. |
2814 | 7451 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 6721 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
2815 | 6722 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | ||
2816 | 7452 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 6723 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
2817 | 7453 | _LT_TAGVAR(always_export_symbols, $1)=no | 6724 | _LT_TAGVAR(always_export_symbols, $1)=no |
2818 | 7454 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 6725 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
2819 | @@ -7509,6 +6780,11 @@ | |||
2820 | 7509 | gnu*) | 6780 | gnu*) |
2821 | 7510 | ;; | 6781 | ;; |
2822 | 7511 | 6782 | ||
2823 | 6783 | haiku*) | ||
2824 | 6784 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
2825 | 6785 | _LT_TAGVAR(link_all_deplibs, $1)=yes | ||
2826 | 6786 | ;; | ||
2827 | 6787 | |||
2828 | 7512 | hpux9*) | 6788 | hpux9*) |
2829 | 7513 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 6789 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
2830 | 7514 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 6790 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
2831 | @@ -7533,7 +6809,7 @@ | |||
2832 | 7533 | # explicitly linking system object files so we need to strip them | 6809 | # explicitly linking system object files so we need to strip them |
2833 | 7534 | # from the output so that they don't get included in the library | 6810 | # from the output so that they don't get included in the library |
2834 | 7535 | # dependencies. | 6811 | # dependencies. |
2836 | 7536 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | 6812 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
2837 | 7537 | ;; | 6813 | ;; |
2838 | 7538 | *) | 6814 | *) |
2839 | 7539 | if test "$GXX" = yes; then | 6815 | if test "$GXX" = yes; then |
2840 | @@ -7598,7 +6874,7 @@ | |||
2841 | 7598 | # explicitly linking system object files so we need to strip them | 6874 | # explicitly linking system object files so we need to strip them |
2842 | 7599 | # from the output so that they don't get included in the library | 6875 | # from the output so that they don't get included in the library |
2843 | 7600 | # dependencies. | 6876 | # dependencies. |
2845 | 7601 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | 6877 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
2846 | 7602 | ;; | 6878 | ;; |
2847 | 7603 | *) | 6879 | *) |
2848 | 7604 | if test "$GXX" = yes; then | 6880 | if test "$GXX" = yes; then |
2849 | @@ -7641,7 +6917,7 @@ | |||
2850 | 7641 | case $cc_basename in | 6917 | case $cc_basename in |
2851 | 7642 | CC*) | 6918 | CC*) |
2852 | 7643 | # SGI C++ | 6919 | # SGI C++ |
2854 | 7644 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | 6920 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
2855 | 7645 | 6921 | ||
2856 | 7646 | # Archives containing C++ object files must be created using | 6922 | # Archives containing C++ object files must be created using |
2857 | 7647 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | 6923 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
2858 | @@ -7652,9 +6928,9 @@ | |||
2859 | 7652 | *) | 6928 | *) |
2860 | 7653 | if test "$GXX" = yes; then | 6929 | if test "$GXX" = yes; then |
2861 | 7654 | if test "$with_gnu_ld" = no; then | 6930 | if test "$with_gnu_ld" = no; then |
2863 | 7655 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 6931 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
2864 | 7656 | else | 6932 | else |
2866 | 7657 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | 6933 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' |
2867 | 7658 | fi | 6934 | fi |
2868 | 7659 | fi | 6935 | fi |
2869 | 7660 | _LT_TAGVAR(link_all_deplibs, $1)=yes | 6936 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
2870 | @@ -7665,7 +6941,7 @@ | |||
2871 | 7665 | _LT_TAGVAR(inherit_rpath, $1)=yes | 6941 | _LT_TAGVAR(inherit_rpath, $1)=yes |
2872 | 7666 | ;; | 6942 | ;; |
2873 | 7667 | 6943 | ||
2875 | 7668 | linux* | k*bsd*-gnu) | 6944 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
2876 | 7669 | case $cc_basename in | 6945 | case $cc_basename in |
2877 | 7670 | KCC*) | 6946 | KCC*) |
2878 | 7671 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 6947 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
2879 | @@ -7683,7 +6959,7 @@ | |||
2880 | 7683 | # explicitly linking system object files so we need to strip them | 6959 | # explicitly linking system object files so we need to strip them |
2881 | 7684 | # from the output so that they don't get included in the library | 6960 | # from the output so that they don't get included in the library |
2882 | 7685 | # dependencies. | 6961 | # dependencies. |
2884 | 7686 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | 6962 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
2885 | 7687 | 6963 | ||
2886 | 7688 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 6964 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
2887 | 7689 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 6965 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
2888 | @@ -7720,26 +6996,26 @@ | |||
2889 | 7720 | pgCC* | pgcpp*) | 6996 | pgCC* | pgcpp*) |
2890 | 7721 | # Portland Group C++ compiler | 6997 | # Portland Group C++ compiler |
2891 | 7722 | case `$CC -V` in | 6998 | case `$CC -V` in |
2893 | 7723 | *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) | 6999 | *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) |
2894 | 7724 | _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ | 7000 | _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ |
2895 | 7725 | rm -rf $tpldir~ | 7001 | rm -rf $tpldir~ |
2896 | 7726 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | 7002 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
2898 | 7727 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | 7003 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
2899 | 7728 | _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ | 7004 | _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ |
2900 | 7729 | rm -rf $tpldir~ | 7005 | rm -rf $tpldir~ |
2901 | 7730 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | 7006 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
2903 | 7731 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | 7007 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
2904 | 7732 | $RANLIB $oldlib' | 7008 | $RANLIB $oldlib' |
2905 | 7733 | _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ | 7009 | _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ |
2906 | 7734 | rm -rf $tpldir~ | 7010 | rm -rf $tpldir~ |
2907 | 7735 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | 7011 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
2909 | 7736 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | 7012 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
2910 | 7737 | _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ | 7013 | _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ |
2911 | 7738 | rm -rf $tpldir~ | 7014 | rm -rf $tpldir~ |
2912 | 7739 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | 7015 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
2914 | 7740 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | 7016 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
2915 | 7741 | ;; | 7017 | ;; |
2917 | 7742 | *) # Version 6 will use weak symbols | 7018 | *) # Version 6 and above use weak symbols |
2918 | 7743 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | 7019 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
2919 | 7744 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | 7020 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
2920 | 7745 | ;; | 7021 | ;; |
2921 | @@ -7747,7 +7023,7 @@ | |||
2922 | 7747 | 7023 | ||
2923 | 7748 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | 7024 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
2924 | 7749 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 7025 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
2926 | 7750 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | 7026 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
2927 | 7751 | ;; | 7027 | ;; |
2928 | 7752 | cxx*) | 7028 | cxx*) |
2929 | 7753 | # Compaq C++ | 7029 | # Compaq C++ |
2930 | @@ -7766,9 +7042,9 @@ | |||
2931 | 7766 | # explicitly linking system object files so we need to strip them | 7042 | # explicitly linking system object files so we need to strip them |
2932 | 7767 | # from the output so that they don't get included in the library | 7043 | # from the output so that they don't get included in the library |
2933 | 7768 | # dependencies. | 7044 | # dependencies. |
2935 | 7769 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | 7045 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' |
2936 | 7770 | ;; | 7046 | ;; |
2938 | 7771 | xl*) | 7047 | xl* | mpixl* | bgxl*) |
2939 | 7772 | # IBM XL 8.0 on PPC, with GNU ld | 7048 | # IBM XL 8.0 on PPC, with GNU ld |
2940 | 7773 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 7049 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
2941 | 7774 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 7050 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
2942 | @@ -7788,13 +7064,13 @@ | |||
2943 | 7788 | _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 7064 | _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
2944 | 7789 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | 7065 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
2945 | 7790 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 7066 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
2947 | 7791 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | 7067 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
2948 | 7792 | _LT_TAGVAR(compiler_needs_object, $1)=yes | 7068 | _LT_TAGVAR(compiler_needs_object, $1)=yes |
2949 | 7793 | 7069 | ||
2950 | 7794 | # Not sure whether something based on | 7070 | # Not sure whether something based on |
2951 | 7795 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | 7071 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
2952 | 7796 | # would be better. | 7072 | # would be better. |
2954 | 7797 | output_verbose_link_cmd='echo' | 7073 | output_verbose_link_cmd='func_echo_all' |
2955 | 7798 | 7074 | ||
2956 | 7799 | # Archives containing C++ object files must be created using | 7075 | # Archives containing C++ object files must be created using |
2957 | 7800 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | 7076 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
2958 | @@ -7863,7 +7139,7 @@ | |||
2959 | 7863 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 7139 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
2960 | 7864 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 7140 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
2961 | 7865 | fi | 7141 | fi |
2963 | 7866 | output_verbose_link_cmd=echo | 7142 | output_verbose_link_cmd=func_echo_all |
2964 | 7867 | else | 7143 | else |
2965 | 7868 | _LT_TAGVAR(ld_shlibs, $1)=no | 7144 | _LT_TAGVAR(ld_shlibs, $1)=no |
2966 | 7869 | fi | 7145 | fi |
2967 | @@ -7898,15 +7174,15 @@ | |||
2968 | 7898 | case $host in | 7174 | case $host in |
2969 | 7899 | osf3*) | 7175 | osf3*) |
2970 | 7900 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 7176 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
2972 | 7901 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | 7177 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
2973 | 7902 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 7178 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
2974 | 7903 | ;; | 7179 | ;; |
2975 | 7904 | *) | 7180 | *) |
2976 | 7905 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 7181 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
2978 | 7906 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | 7182 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
2979 | 7907 | _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 7183 | _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
2980 | 7908 | echo "-hidden">> $lib.exp~ | 7184 | echo "-hidden">> $lib.exp~ |
2982 | 7909 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | 7185 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ |
2983 | 7910 | $RM $lib.exp' | 7186 | $RM $lib.exp' |
2984 | 7911 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 7187 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
2985 | 7912 | ;; | 7188 | ;; |
2986 | @@ -7922,17 +7198,17 @@ | |||
2987 | 7922 | # explicitly linking system object files so we need to strip them | 7198 | # explicitly linking system object files so we need to strip them |
2988 | 7923 | # from the output so that they don't get included in the library | 7199 | # from the output so that they don't get included in the library |
2989 | 7924 | # dependencies. | 7200 | # dependencies. |
2991 | 7925 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | 7201 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
2992 | 7926 | ;; | 7202 | ;; |
2993 | 7927 | *) | 7203 | *) |
2994 | 7928 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 7204 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
2995 | 7929 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 7205 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
2996 | 7930 | case $host in | 7206 | case $host in |
2997 | 7931 | osf3*) | 7207 | osf3*) |
2999 | 7932 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 7208 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
3000 | 7933 | ;; | 7209 | ;; |
3001 | 7934 | *) | 7210 | *) |
3003 | 7935 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 7211 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
3004 | 7936 | ;; | 7212 | ;; |
3005 | 7937 | esac | 7213 | esac |
3006 | 7938 | 7214 | ||
3007 | @@ -7942,7 +7218,7 @@ | |||
3008 | 7942 | # Commands to make compiler produce verbose output that lists | 7218 | # Commands to make compiler produce verbose output that lists |
3009 | 7943 | # what "hidden" libraries, object files and flags are used when | 7219 | # what "hidden" libraries, object files and flags are used when |
3010 | 7944 | # linking a shared library. | 7220 | # linking a shared library. |
3012 | 7945 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | 7221 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
3013 | 7946 | 7222 | ||
3014 | 7947 | else | 7223 | else |
3015 | 7948 | # FIXME: insert proper C++ library support | 7224 | # FIXME: insert proper C++ library support |
3016 | @@ -7978,7 +7254,7 @@ | |||
3017 | 7978 | 7254 | ||
3018 | 7979 | solaris*) | 7255 | solaris*) |
3019 | 7980 | case $cc_basename in | 7256 | case $cc_basename in |
3021 | 7981 | CC*) | 7257 | CC* | sunCC*) |
3022 | 7982 | # Sun C++ 4.2, 5.x and Centerline C++ | 7258 | # Sun C++ 4.2, 5.x and Centerline C++ |
3023 | 7983 | _LT_TAGVAR(archive_cmds_need_lc,$1)=yes | 7259 | _LT_TAGVAR(archive_cmds_need_lc,$1)=yes |
3024 | 7984 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | 7260 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
3025 | @@ -7999,7 +7275,7 @@ | |||
3026 | 7999 | esac | 7275 | esac |
3027 | 8000 | _LT_TAGVAR(link_all_deplibs, $1)=yes | 7276 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
3028 | 8001 | 7277 | ||
3030 | 8002 | output_verbose_link_cmd='echo' | 7278 | output_verbose_link_cmd='func_echo_all' |
3031 | 8003 | 7279 | ||
3032 | 8004 | # Archives containing C++ object files must be created using | 7280 | # Archives containing C++ object files must be created using |
3033 | 8005 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | 7281 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
3034 | @@ -8026,7 +7302,7 @@ | |||
3035 | 8026 | # Commands to make compiler produce verbose output that lists | 7302 | # Commands to make compiler produce verbose output that lists |
3036 | 8027 | # what "hidden" libraries, object files and flags are used when | 7303 | # what "hidden" libraries, object files and flags are used when |
3037 | 8028 | # linking a shared library. | 7304 | # linking a shared library. |
3039 | 8029 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | 7305 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
3040 | 8030 | else | 7306 | else |
3041 | 8031 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | 7307 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
3042 | 8032 | # platform. | 7308 | # platform. |
3043 | @@ -8037,7 +7313,7 @@ | |||
3044 | 8037 | # Commands to make compiler produce verbose output that lists | 7313 | # Commands to make compiler produce verbose output that lists |
3045 | 8038 | # what "hidden" libraries, object files and flags are used when | 7314 | # what "hidden" libraries, object files and flags are used when |
3046 | 8039 | # linking a shared library. | 7315 | # linking a shared library. |
3048 | 8040 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | 7316 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
3049 | 8041 | fi | 7317 | fi |
3050 | 8042 | 7318 | ||
3051 | 8043 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | 7319 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
3052 | @@ -8091,6 +7367,10 @@ | |||
3053 | 8091 | CC*) | 7367 | CC*) |
3054 | 8092 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7368 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
3055 | 8093 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7369 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
3056 | 7370 | _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ | ||
3057 | 7371 | '"$_LT_TAGVAR(old_archive_cmds, $1)" | ||
3058 | 7372 | _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ | ||
3059 | 7373 | '"$_LT_TAGVAR(reload_cmds, $1)" | ||
3060 | 8094 | ;; | 7374 | ;; |
3061 | 8095 | *) | 7375 | *) |
3062 | 8096 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7376 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
3063 | @@ -8337,7 +7617,7 @@ | |||
3064 | 8337 | 7617 | ||
3065 | 8338 | solaris*) | 7618 | solaris*) |
3066 | 8339 | case $cc_basename in | 7619 | case $cc_basename in |
3068 | 8340 | CC*) | 7620 | CC* | sunCC*) |
3069 | 8341 | # The more standards-conforming stlport4 library is | 7621 | # The more standards-conforming stlport4 library is |
3070 | 8342 | # incompatible with the Cstd library. Avoid specifying | 7622 | # incompatible with the Cstd library. Avoid specifying |
3071 | 8343 | # it if it's in CXXFLAGS. Ignore libCrun as | 7623 | # it if it's in CXXFLAGS. Ignore libCrun as |
3072 | @@ -8381,32 +7661,16 @@ | |||
3073 | 8381 | ])# _LT_SYS_HIDDEN_LIBDEPS | 7661 | ])# _LT_SYS_HIDDEN_LIBDEPS |
3074 | 8382 | 7662 | ||
3075 | 8383 | 7663 | ||
3076 | 8384 | # _LT_PROG_F77 | ||
3077 | 8385 | # ------------ | ||
3078 | 8386 | # Since AC_PROG_F77 is broken, in that it returns the empty string | ||
3079 | 8387 | # if there is no fortran compiler, we have our own version here. | ||
3080 | 8388 | m4_defun([_LT_PROG_F77], | ||
3081 | 8389 | [ | ||
3082 | 8390 | pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) | ||
3083 | 8391 | AC_PROG_F77 | ||
3084 | 8392 | if test -z "$F77" || test "X$F77" = "Xno"; then | ||
3085 | 8393 | _lt_disable_F77=yes | ||
3086 | 8394 | fi | ||
3087 | 8395 | popdef([AC_MSG_ERROR]) | ||
3088 | 8396 | ])# _LT_PROG_F77 | ||
3089 | 8397 | |||
3090 | 8398 | dnl aclocal-1.4 backwards compatibility: | ||
3091 | 8399 | dnl AC_DEFUN([_LT_PROG_F77], []) | ||
3092 | 8400 | |||
3093 | 8401 | |||
3094 | 8402 | # _LT_LANG_F77_CONFIG([TAG]) | 7664 | # _LT_LANG_F77_CONFIG([TAG]) |
3095 | 8403 | # -------------------------- | 7665 | # -------------------------- |
3096 | 8404 | # Ensure that the configuration variables for a Fortran 77 compiler are | 7666 | # Ensure that the configuration variables for a Fortran 77 compiler are |
3097 | 8405 | # suitably defined. These variables are subsequently used by _LT_CONFIG | 7667 | # suitably defined. These variables are subsequently used by _LT_CONFIG |
3098 | 8406 | # to write the compiler configuration to `libtool'. | 7668 | # to write the compiler configuration to `libtool'. |
3099 | 8407 | m4_defun([_LT_LANG_F77_CONFIG], | 7669 | m4_defun([_LT_LANG_F77_CONFIG], |
3102 | 8408 | [AC_REQUIRE([_LT_PROG_F77])dnl | 7670 | [AC_LANG_PUSH(Fortran 77) |
3103 | 8409 | AC_LANG_PUSH(Fortran 77) | 7671 | if test -z "$F77" || test "X$F77" = "Xno"; then |
3104 | 7672 | _lt_disable_F77=yes | ||
3105 | 7673 | fi | ||
3106 | 8410 | 7674 | ||
3107 | 8411 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 7675 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
3108 | 8412 | _LT_TAGVAR(allow_undefined_flag, $1)= | 7676 | _LT_TAGVAR(allow_undefined_flag, $1)= |
3109 | @@ -8425,6 +7689,8 @@ | |||
3110 | 8425 | _LT_TAGVAR(module_expsym_cmds, $1)= | 7689 | _LT_TAGVAR(module_expsym_cmds, $1)= |
3111 | 8426 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | 7690 | _LT_TAGVAR(link_all_deplibs, $1)=unknown |
3112 | 8427 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 7691 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
3113 | 7692 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | ||
3114 | 7693 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | ||
3115 | 8428 | _LT_TAGVAR(no_undefined_flag, $1)= | 7694 | _LT_TAGVAR(no_undefined_flag, $1)= |
3116 | 8429 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | 7695 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
3117 | 8430 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 7696 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
3118 | @@ -8524,32 +7790,17 @@ | |||
3119 | 8524 | ])# _LT_LANG_F77_CONFIG | 7790 | ])# _LT_LANG_F77_CONFIG |
3120 | 8525 | 7791 | ||
3121 | 8526 | 7792 | ||
3122 | 8527 | # _LT_PROG_FC | ||
3123 | 8528 | # ----------- | ||
3124 | 8529 | # Since AC_PROG_FC is broken, in that it returns the empty string | ||
3125 | 8530 | # if there is no fortran compiler, we have our own version here. | ||
3126 | 8531 | m4_defun([_LT_PROG_FC], | ||
3127 | 8532 | [ | ||
3128 | 8533 | pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) | ||
3129 | 8534 | AC_PROG_FC | ||
3130 | 8535 | if test -z "$FC" || test "X$FC" = "Xno"; then | ||
3131 | 8536 | _lt_disable_FC=yes | ||
3132 | 8537 | fi | ||
3133 | 8538 | popdef([AC_MSG_ERROR]) | ||
3134 | 8539 | ])# _LT_PROG_FC | ||
3135 | 8540 | |||
3136 | 8541 | dnl aclocal-1.4 backwards compatibility: | ||
3137 | 8542 | dnl AC_DEFUN([_LT_PROG_FC], []) | ||
3138 | 8543 | |||
3139 | 8544 | |||
3140 | 8545 | # _LT_LANG_FC_CONFIG([TAG]) | 7793 | # _LT_LANG_FC_CONFIG([TAG]) |
3141 | 8546 | # ------------------------- | 7794 | # ------------------------- |
3142 | 8547 | # Ensure that the configuration variables for a Fortran compiler are | 7795 | # Ensure that the configuration variables for a Fortran compiler are |
3143 | 8548 | # suitably defined. These variables are subsequently used by _LT_CONFIG | 7796 | # suitably defined. These variables are subsequently used by _LT_CONFIG |
3144 | 8549 | # to write the compiler configuration to `libtool'. | 7797 | # to write the compiler configuration to `libtool'. |
3145 | 8550 | m4_defun([_LT_LANG_FC_CONFIG], | 7798 | m4_defun([_LT_LANG_FC_CONFIG], |
3148 | 8551 | [AC_REQUIRE([_LT_PROG_FC])dnl | 7799 | [AC_LANG_PUSH(Fortran) |
3149 | 8552 | AC_LANG_PUSH(Fortran) | 7800 | |
3150 | 7801 | if test -z "$FC" || test "X$FC" = "Xno"; then | ||
3151 | 7802 | _lt_disable_FC=yes | ||
3152 | 7803 | fi | ||
3153 | 8553 | 7804 | ||
3154 | 8554 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 7805 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
3155 | 8555 | _LT_TAGVAR(allow_undefined_flag, $1)= | 7806 | _LT_TAGVAR(allow_undefined_flag, $1)= |
3156 | @@ -8568,6 +7819,8 @@ | |||
3157 | 8568 | _LT_TAGVAR(module_expsym_cmds, $1)= | 7819 | _LT_TAGVAR(module_expsym_cmds, $1)= |
3158 | 8569 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | 7820 | _LT_TAGVAR(link_all_deplibs, $1)=unknown |
3159 | 8570 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 7821 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
3160 | 7822 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | ||
3161 | 7823 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | ||
3162 | 8571 | _LT_TAGVAR(no_undefined_flag, $1)= | 7824 | _LT_TAGVAR(no_undefined_flag, $1)= |
3163 | 8572 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | 7825 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
3164 | 8573 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 7826 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
3165 | @@ -8713,6 +7966,8 @@ | |||
3166 | 8713 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 7966 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
3167 | 8714 | 7967 | ||
3168 | 8715 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 7968 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
3169 | 7969 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | ||
3170 | 7970 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | ||
3171 | 8716 | 7971 | ||
3172 | 8717 | if test -n "$compiler"; then | 7972 | if test -n "$compiler"; then |
3173 | 8718 | _LT_COMPILER_NO_RTTI($1) | 7973 | _LT_COMPILER_NO_RTTI($1) |
3174 | @@ -9074,7 +8329,7 @@ | |||
3175 | 9074 | func_dirname () | 8329 | func_dirname () |
3176 | 9075 | { | 8330 | { |
3177 | 9076 | # Extract subdirectory from the argument. | 8331 | # Extract subdirectory from the argument. |
3179 | 9077 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | 8332 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
3180 | 9078 | if test "X$func_dirname_result" = "X${1}"; then | 8333 | if test "X$func_dirname_result" = "X${1}"; then |
3181 | 9079 | func_dirname_result="${3}" | 8334 | func_dirname_result="${3}" |
3182 | 9080 | else | 8335 | else |
3183 | @@ -9085,7 +8340,7 @@ | |||
3184 | 9085 | # func_basename file | 8340 | # func_basename file |
3185 | 9086 | func_basename () | 8341 | func_basename () |
3186 | 9087 | { | 8342 | { |
3188 | 9088 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | 8343 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
3189 | 9089 | } | 8344 | } |
3190 | 9090 | 8345 | ||
3191 | 9091 | dnl func_dirname_and_basename | 8346 | dnl func_dirname_and_basename |
3192 | @@ -9101,10 +8356,8 @@ | |||
3193 | 9101 | func_stripname () | 8356 | func_stripname () |
3194 | 9102 | { | 8357 | { |
3195 | 9103 | case ${2} in | 8358 | case ${2} in |
3200 | 9104 | .*) func_stripname_result=`$ECHO "X${3}" \ | 8359 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
3201 | 9105 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | 8360 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
3198 | 9106 | *) func_stripname_result=`$ECHO "X${3}" \ | ||
3199 | 9107 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
3202 | 9108 | esac | 8361 | esac |
3203 | 9109 | } | 8362 | } |
3204 | 9110 | 8363 | ||
3205 | @@ -9115,20 +8368,20 @@ | |||
3206 | 9115 | # func_opt_split | 8368 | # func_opt_split |
3207 | 9116 | func_opt_split () | 8369 | func_opt_split () |
3208 | 9117 | { | 8370 | { |
3211 | 9118 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | 8371 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
3212 | 9119 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | 8372 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` |
3213 | 9120 | } | 8373 | } |
3214 | 9121 | 8374 | ||
3215 | 9122 | # func_lo2o object | 8375 | # func_lo2o object |
3216 | 9123 | func_lo2o () | 8376 | func_lo2o () |
3217 | 9124 | { | 8377 | { |
3219 | 9125 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | 8378 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
3220 | 9126 | } | 8379 | } |
3221 | 9127 | 8380 | ||
3222 | 9128 | # func_xform libobj-or-source | 8381 | # func_xform libobj-or-source |
3223 | 9129 | func_xform () | 8382 | func_xform () |
3224 | 9130 | { | 8383 | { |
3226 | 9131 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` | 8384 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'` |
3227 | 9132 | } | 8385 | } |
3228 | 9133 | 8386 | ||
3229 | 9134 | # func_arith arithmetic-term... | 8387 | # func_arith arithmetic-term... |
3230 | @@ -9176,14 +8429,15 @@ | |||
3231 | 9176 | 8429 | ||
3232 | 9177 | # Helper functions for option handling. -*- Autoconf -*- | 8430 | # Helper functions for option handling. -*- Autoconf -*- |
3233 | 9178 | # | 8431 | # |
3235 | 9179 | # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | 8432 | # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, |
3236 | 8433 | # Inc. | ||
3237 | 9180 | # Written by Gary V. Vaughan, 2004 | 8434 | # Written by Gary V. Vaughan, 2004 |
3238 | 9181 | # | 8435 | # |
3239 | 9182 | # This file is free software; the Free Software Foundation gives | 8436 | # This file is free software; the Free Software Foundation gives |
3240 | 9183 | # unlimited permission to copy and/or distribute it, with or without | 8437 | # unlimited permission to copy and/or distribute it, with or without |
3241 | 9184 | # modifications, as long as this notice is preserved. | 8438 | # modifications, as long as this notice is preserved. |
3242 | 9185 | 8439 | ||
3244 | 9186 | # serial 6 ltoptions.m4 | 8440 | # serial 7 ltoptions.m4 |
3245 | 9187 | 8441 | ||
3246 | 9188 | # This is to help aclocal find these macros, as it can't see m4_define. | 8442 | # This is to help aclocal find these macros, as it can't see m4_define. |
3247 | 9189 | AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) | 8443 | AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) |
3248 | @@ -9298,7 +8552,7 @@ | |||
3249 | 9298 | [enable_win32_dll=yes | 8552 | [enable_win32_dll=yes |
3250 | 9299 | 8553 | ||
3251 | 9300 | case $host in | 8554 | case $host in |
3253 | 9301 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | 8555 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
3254 | 9302 | AC_CHECK_TOOL(AS, as, false) | 8556 | AC_CHECK_TOOL(AS, as, false) |
3255 | 9303 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) | 8557 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
3256 | 9304 | AC_CHECK_TOOL(OBJDUMP, objdump, false) | 8558 | AC_CHECK_TOOL(OBJDUMP, objdump, false) |
3257 | @@ -9306,13 +8560,13 @@ | |||
3258 | 9306 | esac | 8560 | esac |
3259 | 9307 | 8561 | ||
3260 | 9308 | test -z "$AS" && AS=as | 8562 | test -z "$AS" && AS=as |
3262 | 9309 | _LT_DECL([], [AS], [0], [Assembler program])dnl | 8563 | _LT_DECL([], [AS], [1], [Assembler program])dnl |
3263 | 9310 | 8564 | ||
3264 | 9311 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 8565 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
3266 | 9312 | _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl | 8566 | _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl |
3267 | 9313 | 8567 | ||
3268 | 9314 | test -z "$OBJDUMP" && OBJDUMP=objdump | 8568 | test -z "$OBJDUMP" && OBJDUMP=objdump |
3270 | 9315 | _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl | 8569 | _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl |
3271 | 9316 | ])# win32-dll | 8570 | ])# win32-dll |
3272 | 9317 | 8571 | ||
3273 | 9318 | AU_DEFUN([AC_LIBTOOL_WIN32_DLL], | 8572 | AU_DEFUN([AC_LIBTOOL_WIN32_DLL], |
3274 | @@ -9672,29 +8926,29 @@ | |||
3275 | 9672 | 8926 | ||
3276 | 9673 | # Generated from ltversion.in. | 8927 | # Generated from ltversion.in. |
3277 | 9674 | 8928 | ||
3279 | 9675 | # serial 3012 ltversion.m4 | 8929 | # serial 3175 ltversion.m4 |
3280 | 9676 | # This file is part of GNU Libtool | 8930 | # This file is part of GNU Libtool |
3281 | 9677 | 8931 | ||
3284 | 9678 | m4_define([LT_PACKAGE_VERSION], [2.2.6]) | 8932 | m4_define([LT_PACKAGE_VERSION], [2.2.10]) |
3285 | 9679 | m4_define([LT_PACKAGE_REVISION], [1.3012]) | 8933 | m4_define([LT_PACKAGE_REVISION], [1.3175]) |
3286 | 9680 | 8934 | ||
3287 | 9681 | AC_DEFUN([LTVERSION_VERSION], | 8935 | AC_DEFUN([LTVERSION_VERSION], |
3290 | 9682 | [macro_version='2.2.6' | 8936 | [macro_version='2.2.10' |
3291 | 9683 | macro_revision='1.3012' | 8937 | macro_revision='1.3175' |
3292 | 9684 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) | 8938 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
3293 | 9685 | _LT_DECL(, macro_revision, 0) | 8939 | _LT_DECL(, macro_revision, 0) |
3294 | 9686 | ]) | 8940 | ]) |
3295 | 9687 | 8941 | ||
3296 | 9688 | # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- | 8942 | # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- |
3297 | 9689 | # | 8943 | # |
3299 | 9690 | # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. | 8944 | # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. |
3300 | 9691 | # Written by Scott James Remnant, 2004. | 8945 | # Written by Scott James Remnant, 2004. |
3301 | 9692 | # | 8946 | # |
3302 | 9693 | # This file is free software; the Free Software Foundation gives | 8947 | # This file is free software; the Free Software Foundation gives |
3303 | 9694 | # unlimited permission to copy and/or distribute it, with or without | 8948 | # unlimited permission to copy and/or distribute it, with or without |
3304 | 9695 | # modifications, as long as this notice is preserved. | 8949 | # modifications, as long as this notice is preserved. |
3305 | 9696 | 8950 | ||
3307 | 9697 | # serial 4 lt~obsolete.m4 | 8951 | # serial 5 lt~obsolete.m4 |
3308 | 9698 | 8952 | ||
3309 | 9699 | # These exist entirely to fool aclocal when bootstrapping libtool. | 8953 | # These exist entirely to fool aclocal when bootstrapping libtool. |
3310 | 9700 | # | 8954 | # |
3311 | @@ -9764,7 +9018,6 @@ | |||
3312 | 9764 | m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) | 9018 | m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) |
3313 | 9765 | m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) | 9019 | m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) |
3314 | 9766 | m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) | 9020 | m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) |
3315 | 9767 | m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) | ||
3316 | 9768 | m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) | 9021 | m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) |
3317 | 9769 | m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) | 9022 | m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) |
3318 | 9770 | m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) | 9023 | m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) |
3319 | @@ -9777,9 +9030,17 @@ | |||
3320 | 9777 | m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) | 9030 | m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) |
3321 | 9778 | m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) | 9031 | m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) |
3322 | 9779 | m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) | 9032 | m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) |
3323 | 9033 | m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) | ||
3324 | 9034 | m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) | ||
3325 | 9035 | m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) | ||
3326 | 9036 | m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) | ||
3327 | 9037 | m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) | ||
3328 | 9038 | m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) | ||
3329 | 9039 | m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) | ||
3330 | 9780 | 9040 | ||
3333 | 9781 | # nls.m4 serial 3 (gettext-0.15) | 9041 | # nls.m4 serial 5 (gettext-0.18) |
3334 | 9782 | dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. | 9042 | dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, |
3335 | 9043 | dnl Inc. | ||
3336 | 9783 | dnl This file is free software; the Free Software Foundation | 9044 | dnl This file is free software; the Free Software Foundation |
3337 | 9784 | dnl gives unlimited permission to copy and/or distribute it, | 9045 | dnl gives unlimited permission to copy and/or distribute it, |
3338 | 9785 | dnl with or without modifications, as long as this notice is preserved. | 9046 | dnl with or without modifications, as long as this notice is preserved. |
3339 | @@ -9797,20 +9058,21 @@ | |||
3340 | 9797 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. | 9058 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
3341 | 9798 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. | 9059 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
3342 | 9799 | 9060 | ||
3344 | 9800 | AC_PREREQ(2.50) | 9061 | AC_PREREQ([2.50]) |
3345 | 9801 | 9062 | ||
3346 | 9802 | AC_DEFUN([AM_NLS], | 9063 | AC_DEFUN([AM_NLS], |
3347 | 9803 | [ | 9064 | [ |
3348 | 9804 | AC_MSG_CHECKING([whether NLS is requested]) | 9065 | AC_MSG_CHECKING([whether NLS is requested]) |
3349 | 9805 | dnl Default is enabled NLS | 9066 | dnl Default is enabled NLS |
3351 | 9806 | AC_ARG_ENABLE(nls, | 9067 | AC_ARG_ENABLE([nls], |
3352 | 9807 | [ --disable-nls do not use Native Language Support], | 9068 | [ --disable-nls do not use Native Language Support], |
3353 | 9808 | USE_NLS=$enableval, USE_NLS=yes) | 9069 | USE_NLS=$enableval, USE_NLS=yes) |
3356 | 9809 | AC_MSG_RESULT($USE_NLS) | 9070 | AC_MSG_RESULT([$USE_NLS]) |
3357 | 9810 | AC_SUBST(USE_NLS) | 9071 | AC_SUBST([USE_NLS]) |
3358 | 9811 | ]) | 9072 | ]) |
3359 | 9812 | 9073 | ||
3360 | 9813 | # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | 9074 | # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
3361 | 9075 | # serial 1 (pkg-config-0.24) | ||
3362 | 9814 | # | 9076 | # |
3363 | 9815 | # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | 9077 | # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. |
3364 | 9816 | # | 9078 | # |
3365 | @@ -9838,7 +9100,10 @@ | |||
3366 | 9838 | AC_DEFUN([PKG_PROG_PKG_CONFIG], | 9100 | AC_DEFUN([PKG_PROG_PKG_CONFIG], |
3367 | 9839 | [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) | 9101 | [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
3368 | 9840 | m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) | 9102 | m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) |
3370 | 9841 | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl | 9103 | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) |
3371 | 9104 | AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) | ||
3372 | 9105 | AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) | ||
3373 | 9106 | |||
3374 | 9842 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 9107 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
3375 | 9843 | AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) | 9108 | AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
3376 | 9844 | fi | 9109 | fi |
3377 | @@ -9851,7 +9116,6 @@ | |||
3378 | 9851 | AC_MSG_RESULT([no]) | 9116 | AC_MSG_RESULT([no]) |
3379 | 9852 | PKG_CONFIG="" | 9117 | PKG_CONFIG="" |
3380 | 9853 | fi | 9118 | fi |
3381 | 9854 | |||
3382 | 9855 | fi[]dnl | 9119 | fi[]dnl |
3383 | 9856 | ])# PKG_PROG_PKG_CONFIG | 9120 | ])# PKG_PROG_PKG_CONFIG |
3384 | 9857 | 9121 | ||
3385 | @@ -9860,21 +9124,20 @@ | |||
3386 | 9860 | # Check to see whether a particular set of modules exists. Similar | 9124 | # Check to see whether a particular set of modules exists. Similar |
3387 | 9861 | # to PKG_CHECK_MODULES(), but does not set variables or print errors. | 9125 | # to PKG_CHECK_MODULES(), but does not set variables or print errors. |
3388 | 9862 | # | 9126 | # |
3393 | 9863 | # | 9127 | # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
3394 | 9864 | # Similar to PKG_CHECK_MODULES, make sure that the first instance of | 9128 | # only at the first occurence in configure.ac, so if the first place |
3395 | 9865 | # this or PKG_CHECK_MODULES is called, or make sure to call | 9129 | # it's called might be skipped (such as if it is within an "if", you |
3396 | 9866 | # PKG_CHECK_EXISTS manually | 9130 | # have to call PKG_CHECK_EXISTS manually |
3397 | 9867 | # -------------------------------------------------------------- | 9131 | # -------------------------------------------------------------- |
3398 | 9868 | AC_DEFUN([PKG_CHECK_EXISTS], | 9132 | AC_DEFUN([PKG_CHECK_EXISTS], |
3399 | 9869 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | 9133 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
3400 | 9870 | if test -n "$PKG_CONFIG" && \ | 9134 | if test -n "$PKG_CONFIG" && \ |
3401 | 9871 | AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then | 9135 | AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
3403 | 9872 | m4_ifval([$2], [$2], [:]) | 9136 | m4_default([$2], [:]) |
3404 | 9873 | m4_ifvaln([$3], [else | 9137 | m4_ifvaln([$3], [else |
3405 | 9874 | $3])dnl | 9138 | $3])dnl |
3406 | 9875 | fi]) | 9139 | fi]) |
3407 | 9876 | 9140 | ||
3408 | 9877 | |||
3409 | 9878 | # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) | 9141 | # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
3410 | 9879 | # --------------------------------------------- | 9142 | # --------------------------------------------- |
3411 | 9880 | m4_define([_PKG_CONFIG], | 9143 | m4_define([_PKG_CONFIG], |
3412 | @@ -9927,6 +9190,7 @@ | |||
3413 | 9927 | See the pkg-config man page for more details.]) | 9190 | See the pkg-config man page for more details.]) |
3414 | 9928 | 9191 | ||
3415 | 9929 | if test $pkg_failed = yes; then | 9192 | if test $pkg_failed = yes; then |
3416 | 9193 | AC_MSG_RESULT([no]) | ||
3417 | 9930 | _PKG_SHORT_ERRORS_SUPPORTED | 9194 | _PKG_SHORT_ERRORS_SUPPORTED |
3418 | 9931 | if test $_pkg_short_errors_supported = yes; then | 9195 | if test $_pkg_short_errors_supported = yes; then |
3419 | 9932 | $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` | 9196 | $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` |
3420 | @@ -9936,7 +9200,7 @@ | |||
3421 | 9936 | # Put the nasty error message in config.log where it belongs | 9200 | # Put the nasty error message in config.log where it belongs |
3422 | 9937 | echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD | 9201 | echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
3423 | 9938 | 9202 | ||
3425 | 9939 | ifelse([$4], , [AC_MSG_ERROR(dnl | 9203 | m4_default([$4], [AC_MSG_ERROR( |
3426 | 9940 | [Package requirements ($2) were not met: | 9204 | [Package requirements ($2) were not met: |
3427 | 9941 | 9205 | ||
3428 | 9942 | $$1_PKG_ERRORS | 9206 | $$1_PKG_ERRORS |
3429 | @@ -9944,25 +9208,855 @@ | |||
3430 | 9944 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | 9208 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
3431 | 9945 | installed software in a non-standard prefix. | 9209 | installed software in a non-standard prefix. |
3432 | 9946 | 9210 | ||
3437 | 9947 | _PKG_TEXT | 9211 | _PKG_TEXT]) |
3438 | 9948 | ])], | 9212 | ]) |
3435 | 9949 | [AC_MSG_RESULT([no]) | ||
3436 | 9950 | $4]) | ||
3439 | 9951 | elif test $pkg_failed = untried; then | 9213 | elif test $pkg_failed = untried; then |
3441 | 9952 | ifelse([$4], , [AC_MSG_FAILURE(dnl | 9214 | AC_MSG_RESULT([no]) |
3442 | 9215 | m4_default([$4], [AC_MSG_FAILURE( | ||
3443 | 9953 | [The pkg-config script could not be found or is too old. Make sure it | 9216 | [The pkg-config script could not be found or is too old. Make sure it |
3444 | 9954 | is in your PATH or set the PKG_CONFIG environment variable to the full | 9217 | is in your PATH or set the PKG_CONFIG environment variable to the full |
3445 | 9955 | path to pkg-config. | 9218 | path to pkg-config. |
3446 | 9956 | 9219 | ||
3447 | 9957 | _PKG_TEXT | 9220 | _PKG_TEXT |
3448 | 9958 | 9221 | ||
3451 | 9959 | To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], | 9222 | To get pkg-config, see <http://pkg-config.freedesktop.org/>.]) |
3452 | 9960 | [$4]) | 9223 | ]) |
3453 | 9961 | else | 9224 | else |
3454 | 9962 | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS | 9225 | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
3455 | 9963 | $1[]_LIBS=$pkg_cv_[]$1[]_LIBS | 9226 | $1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
3456 | 9964 | AC_MSG_RESULT([yes]) | 9227 | AC_MSG_RESULT([yes]) |
3458 | 9965 | ifelse([$3], , :, [$3]) | 9228 | $3 |
3459 | 9966 | fi[]dnl | 9229 | fi[]dnl |
3460 | 9967 | ])# PKG_CHECK_MODULES | 9230 | ])# PKG_CHECK_MODULES |
3461 | 9968 | 9231 | ||
3462 | 9232 | # Copyright (C) 1995-2002 Free Software Foundation, Inc. | ||
3463 | 9233 | # Copyright (C) 2001-2003,2004 Red Hat, Inc. | ||
3464 | 9234 | # | ||
3465 | 9235 | # This file is free software, distributed under the terms of the GNU | ||
3466 | 9236 | # General Public License. As a special exception to the GNU General | ||
3467 | 9237 | # Public License, this file may be distributed as part of a program | ||
3468 | 9238 | # that contains a configuration script generated by Autoconf, under | ||
3469 | 9239 | # the same distribution terms as the rest of that program. | ||
3470 | 9240 | # | ||
3471 | 9241 | # This file can be copied and used freely without restrictions. It can | ||
3472 | 9242 | # be used in projects which are not available under the GNU Public License | ||
3473 | 9243 | # but which still want to provide support for the GNU gettext functionality. | ||
3474 | 9244 | # | ||
3475 | 9245 | # Macro to add for using GNU gettext. | ||
3476 | 9246 | # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 | ||
3477 | 9247 | # | ||
3478 | 9248 | # Modified to never use included libintl. | ||
3479 | 9249 | # Owen Taylor <otaylor@redhat.com>, 12/15/1998 | ||
3480 | 9250 | # | ||
3481 | 9251 | # Major rework to remove unused code | ||
3482 | 9252 | # Owen Taylor <otaylor@redhat.com>, 12/11/2002 | ||
3483 | 9253 | # | ||
3484 | 9254 | # Added better handling of ALL_LINGUAS from GNU gettext version | ||
3485 | 9255 | # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 | ||
3486 | 9256 | # | ||
3487 | 9257 | # Modified to require ngettext | ||
3488 | 9258 | # Matthias Clasen <mclasen@redhat.com> 08/06/2004 | ||
3489 | 9259 | # | ||
3490 | 9260 | # We need this here as well, since someone might use autoconf-2.5x | ||
3491 | 9261 | # to configure GLib then an older version to configure a package | ||
3492 | 9262 | # using AM_GLIB_GNU_GETTEXT | ||
3493 | 9263 | AC_PREREQ(2.53) | ||
3494 | 9264 | |||
3495 | 9265 | dnl | ||
3496 | 9266 | dnl We go to great lengths to make sure that aclocal won't | ||
3497 | 9267 | dnl try to pull in the installed version of these macros | ||
3498 | 9268 | dnl when running aclocal in the glib directory. | ||
3499 | 9269 | dnl | ||
3500 | 9270 | m4_copy([AC_DEFUN],[glib_DEFUN]) | ||
3501 | 9271 | m4_copy([AC_REQUIRE],[glib_REQUIRE]) | ||
3502 | 9272 | dnl | ||
3503 | 9273 | dnl At the end, if we're not within glib, we'll define the public | ||
3504 | 9274 | dnl definitions in terms of our private definitions. | ||
3505 | 9275 | dnl | ||
3506 | 9276 | |||
3507 | 9277 | # GLIB_LC_MESSAGES | ||
3508 | 9278 | #-------------------- | ||
3509 | 9279 | glib_DEFUN([GLIB_LC_MESSAGES], | ||
3510 | 9280 | [AC_CHECK_HEADERS([locale.h]) | ||
3511 | 9281 | if test $ac_cv_header_locale_h = yes; then | ||
3512 | 9282 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, | ||
3513 | 9283 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | ||
3514 | 9284 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) | ||
3515 | 9285 | if test $am_cv_val_LC_MESSAGES = yes; then | ||
3516 | 9286 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | ||
3517 | 9287 | [Define if your <locale.h> file defines LC_MESSAGES.]) | ||
3518 | 9288 | fi | ||
3519 | 9289 | fi]) | ||
3520 | 9290 | |||
3521 | 9291 | # GLIB_PATH_PROG_WITH_TEST | ||
3522 | 9292 | #---------------------------- | ||
3523 | 9293 | dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, | ||
3524 | 9294 | dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) | ||
3525 | 9295 | glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], | ||
3526 | 9296 | [# Extract the first word of "$2", so it can be a program name with args. | ||
3527 | 9297 | set dummy $2; ac_word=[$]2 | ||
3528 | 9298 | AC_MSG_CHECKING([for $ac_word]) | ||
3529 | 9299 | AC_CACHE_VAL(ac_cv_path_$1, | ||
3530 | 9300 | [case "[$]$1" in | ||
3531 | 9301 | /*) | ||
3532 | 9302 | ac_cv_path_$1="[$]$1" # Let the user override the test with a path. | ||
3533 | 9303 | ;; | ||
3534 | 9304 | *) | ||
3535 | 9305 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | ||
3536 | 9306 | for ac_dir in ifelse([$5], , $PATH, [$5]); do | ||
3537 | 9307 | test -z "$ac_dir" && ac_dir=. | ||
3538 | 9308 | if test -f $ac_dir/$ac_word; then | ||
3539 | 9309 | if [$3]; then | ||
3540 | 9310 | ac_cv_path_$1="$ac_dir/$ac_word" | ||
3541 | 9311 | break | ||
3542 | 9312 | fi | ||
3543 | 9313 | fi | ||
3544 | 9314 | done | ||
3545 | 9315 | IFS="$ac_save_ifs" | ||
3546 | 9316 | dnl If no 4th arg is given, leave the cache variable unset, | ||
3547 | 9317 | dnl so AC_PATH_PROGS will keep looking. | ||
3548 | 9318 | ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" | ||
3549 | 9319 | ])dnl | ||
3550 | 9320 | ;; | ||
3551 | 9321 | esac])dnl | ||
3552 | 9322 | $1="$ac_cv_path_$1" | ||
3553 | 9323 | if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then | ||
3554 | 9324 | AC_MSG_RESULT([$]$1) | ||
3555 | 9325 | else | ||
3556 | 9326 | AC_MSG_RESULT(no) | ||
3557 | 9327 | fi | ||
3558 | 9328 | AC_SUBST($1)dnl | ||
3559 | 9329 | ]) | ||
3560 | 9330 | |||
3561 | 9331 | # GLIB_WITH_NLS | ||
3562 | 9332 | #----------------- | ||
3563 | 9333 | glib_DEFUN([GLIB_WITH_NLS], | ||
3564 | 9334 | dnl NLS is obligatory | ||
3565 | 9335 | [USE_NLS=yes | ||
3566 | 9336 | AC_SUBST(USE_NLS) | ||
3567 | 9337 | |||
3568 | 9338 | gt_cv_have_gettext=no | ||
3569 | 9339 | |||
3570 | 9340 | CATOBJEXT=NONE | ||
3571 | 9341 | XGETTEXT=: | ||
3572 | 9342 | INTLLIBS= | ||
3573 | 9343 | |||
3574 | 9344 | AC_CHECK_HEADER(libintl.h, | ||
3575 | 9345 | [gt_cv_func_dgettext_libintl="no" | ||
3576 | 9346 | libintl_extra_libs="" | ||
3577 | 9347 | |||
3578 | 9348 | # | ||
3579 | 9349 | # First check in libc | ||
3580 | 9350 | # | ||
3581 | 9351 | AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, | ||
3582 | 9352 | [AC_TRY_LINK([ | ||
3583 | 9353 | #include <libintl.h> | ||
3584 | 9354 | ], | ||
3585 | 9355 | [return !ngettext ("","", 1)], | ||
3586 | 9356 | gt_cv_func_ngettext_libc=yes, | ||
3587 | 9357 | gt_cv_func_ngettext_libc=no) | ||
3588 | 9358 | ]) | ||
3589 | 9359 | |||
3590 | 9360 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
3591 | 9361 | AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, | ||
3592 | 9362 | [AC_TRY_LINK([ | ||
3593 | 9363 | #include <libintl.h> | ||
3594 | 9364 | ], | ||
3595 | 9365 | [return !dgettext ("","")], | ||
3596 | 9366 | gt_cv_func_dgettext_libc=yes, | ||
3597 | 9367 | gt_cv_func_dgettext_libc=no) | ||
3598 | 9368 | ]) | ||
3599 | 9369 | fi | ||
3600 | 9370 | |||
3601 | 9371 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
3602 | 9372 | AC_CHECK_FUNCS(bind_textdomain_codeset) | ||
3603 | 9373 | fi | ||
3604 | 9374 | |||
3605 | 9375 | # | ||
3606 | 9376 | # If we don't have everything we want, check in libintl | ||
3607 | 9377 | # | ||
3608 | 9378 | if test "$gt_cv_func_dgettext_libc" != "yes" \ | ||
3609 | 9379 | || test "$gt_cv_func_ngettext_libc" != "yes" \ | ||
3610 | 9380 | || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then | ||
3611 | 9381 | |||
3612 | 9382 | AC_CHECK_LIB(intl, bindtextdomain, | ||
3613 | 9383 | [AC_CHECK_LIB(intl, ngettext, | ||
3614 | 9384 | [AC_CHECK_LIB(intl, dgettext, | ||
3615 | 9385 | gt_cv_func_dgettext_libintl=yes)])]) | ||
3616 | 9386 | |||
3617 | 9387 | if test "$gt_cv_func_dgettext_libintl" != "yes" ; then | ||
3618 | 9388 | AC_MSG_CHECKING([if -liconv is needed to use gettext]) | ||
3619 | 9389 | AC_MSG_RESULT([]) | ||
3620 | 9390 | AC_CHECK_LIB(intl, ngettext, | ||
3621 | 9391 | [AC_CHECK_LIB(intl, dcgettext, | ||
3622 | 9392 | [gt_cv_func_dgettext_libintl=yes | ||
3623 | 9393 | libintl_extra_libs=-liconv], | ||
3624 | 9394 | :,-liconv)], | ||
3625 | 9395 | :,-liconv) | ||
3626 | 9396 | fi | ||
3627 | 9397 | |||
3628 | 9398 | # | ||
3629 | 9399 | # If we found libintl, then check in it for bind_textdomain_codeset(); | ||
3630 | 9400 | # we'll prefer libc if neither have bind_textdomain_codeset(), | ||
3631 | 9401 | # and both have dgettext and ngettext | ||
3632 | 9402 | # | ||
3633 | 9403 | if test "$gt_cv_func_dgettext_libintl" = "yes" ; then | ||
3634 | 9404 | glib_save_LIBS="$LIBS" | ||
3635 | 9405 | LIBS="$LIBS -lintl $libintl_extra_libs" | ||
3636 | 9406 | unset ac_cv_func_bind_textdomain_codeset | ||
3637 | 9407 | AC_CHECK_FUNCS(bind_textdomain_codeset) | ||
3638 | 9408 | LIBS="$glib_save_LIBS" | ||
3639 | 9409 | |||
3640 | 9410 | if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then | ||
3641 | 9411 | gt_cv_func_dgettext_libc=no | ||
3642 | 9412 | else | ||
3643 | 9413 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
3644 | 9414 | && test "$gt_cv_func_ngettext_libc" = "yes"; then | ||
3645 | 9415 | gt_cv_func_dgettext_libintl=no | ||
3646 | 9416 | fi | ||
3647 | 9417 | fi | ||
3648 | 9418 | fi | ||
3649 | 9419 | fi | ||
3650 | 9420 | |||
3651 | 9421 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
3652 | 9422 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
3653 | 9423 | gt_cv_have_gettext=yes | ||
3654 | 9424 | fi | ||
3655 | 9425 | |||
3656 | 9426 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
3657 | 9427 | INTLLIBS="-lintl $libintl_extra_libs" | ||
3658 | 9428 | fi | ||
3659 | 9429 | |||
3660 | 9430 | if test "$gt_cv_have_gettext" = "yes"; then | ||
3661 | 9431 | AC_DEFINE(HAVE_GETTEXT,1, | ||
3662 | 9432 | [Define if the GNU gettext() function is already present or preinstalled.]) | ||
3663 | 9433 | GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | ||
3664 | 9434 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl | ||
3665 | 9435 | if test "$MSGFMT" != "no"; then | ||
3666 | 9436 | glib_save_LIBS="$LIBS" | ||
3667 | 9437 | LIBS="$LIBS $INTLLIBS" | ||
3668 | 9438 | AC_CHECK_FUNCS(dcgettext) | ||
3669 | 9439 | MSGFMT_OPTS= | ||
3670 | 9440 | AC_MSG_CHECKING([if msgfmt accepts -c]) | ||
3671 | 9441 | GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ | ||
3672 | 9442 | msgid "" | ||
3673 | 9443 | msgstr "" | ||
3674 | 9444 | "Content-Type: text/plain; charset=UTF-8\n" | ||
3675 | 9445 | "Project-Id-Version: test 1.0\n" | ||
3676 | 9446 | "PO-Revision-Date: 2007-02-15 12:01+0100\n" | ||
3677 | 9447 | "Last-Translator: test <foo@bar.xx>\n" | ||
3678 | 9448 | "Language-Team: C <LL@li.org>\n" | ||
3679 | 9449 | "MIME-Version: 1.0\n" | ||
3680 | 9450 | "Content-Transfer-Encoding: 8bit\n" | ||
3681 | 9451 | ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) | ||
3682 | 9452 | AC_SUBST(MSGFMT_OPTS) | ||
3683 | 9453 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
3684 | 9454 | GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, | ||
3685 | 9455 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) | ||
3686 | 9456 | AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; | ||
3687 | 9457 | return _nl_msg_cat_cntr], | ||
3688 | 9458 | [CATOBJEXT=.gmo | ||
3689 | 9459 | DATADIRNAME=share], | ||
3690 | 9460 | [case $host in | ||
3691 | 9461 | *-*-solaris*) | ||
3692 | 9462 | dnl On Solaris, if bind_textdomain_codeset is in libc, | ||
3693 | 9463 | dnl GNU format message catalog is always supported, | ||
3694 | 9464 | dnl since both are added to the libc all together. | ||
3695 | 9465 | dnl Hence, we'd like to go with DATADIRNAME=share and | ||
3696 | 9466 | dnl and CATOBJEXT=.gmo in this case. | ||
3697 | 9467 | AC_CHECK_FUNC(bind_textdomain_codeset, | ||
3698 | 9468 | [CATOBJEXT=.gmo | ||
3699 | 9469 | DATADIRNAME=share], | ||
3700 | 9470 | [CATOBJEXT=.mo | ||
3701 | 9471 | DATADIRNAME=lib]) | ||
3702 | 9472 | ;; | ||
3703 | 9473 | *) | ||
3704 | 9474 | CATOBJEXT=.mo | ||
3705 | 9475 | DATADIRNAME=lib | ||
3706 | 9476 | ;; | ||
3707 | 9477 | esac]) | ||
3708 | 9478 | LIBS="$glib_save_LIBS" | ||
3709 | 9479 | INSTOBJEXT=.mo | ||
3710 | 9480 | else | ||
3711 | 9481 | gt_cv_have_gettext=no | ||
3712 | 9482 | fi | ||
3713 | 9483 | fi | ||
3714 | 9484 | ]) | ||
3715 | 9485 | |||
3716 | 9486 | if test "$gt_cv_have_gettext" = "yes" ; then | ||
3717 | 9487 | AC_DEFINE(ENABLE_NLS, 1, | ||
3718 | 9488 | [always defined to indicate that i18n is enabled]) | ||
3719 | 9489 | fi | ||
3720 | 9490 | |||
3721 | 9491 | dnl Test whether we really found GNU xgettext. | ||
3722 | 9492 | if test "$XGETTEXT" != ":"; then | ||
3723 | 9493 | dnl If it is not GNU xgettext we define it as : so that the | ||
3724 | 9494 | dnl Makefiles still can work. | ||
3725 | 9495 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | ||
3726 | 9496 | : ; | ||
3727 | 9497 | else | ||
3728 | 9498 | AC_MSG_RESULT( | ||
3729 | 9499 | [found xgettext program is not GNU xgettext; ignore it]) | ||
3730 | 9500 | XGETTEXT=":" | ||
3731 | 9501 | fi | ||
3732 | 9502 | fi | ||
3733 | 9503 | |||
3734 | 9504 | # We need to process the po/ directory. | ||
3735 | 9505 | POSUB=po | ||
3736 | 9506 | |||
3737 | 9507 | AC_OUTPUT_COMMANDS( | ||
3738 | 9508 | [case "$CONFIG_FILES" in *po/Makefile.in*) | ||
3739 | 9509 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | ||
3740 | 9510 | esac]) | ||
3741 | 9511 | |||
3742 | 9512 | dnl These rules are solely for the distribution goal. While doing this | ||
3743 | 9513 | dnl we only have to keep exactly one list of the available catalogs | ||
3744 | 9514 | dnl in configure.ac. | ||
3745 | 9515 | for lang in $ALL_LINGUAS; do | ||
3746 | 9516 | GMOFILES="$GMOFILES $lang.gmo" | ||
3747 | 9517 | POFILES="$POFILES $lang.po" | ||
3748 | 9518 | done | ||
3749 | 9519 | |||
3750 | 9520 | dnl Make all variables we use known to autoconf. | ||
3751 | 9521 | AC_SUBST(CATALOGS) | ||
3752 | 9522 | AC_SUBST(CATOBJEXT) | ||
3753 | 9523 | AC_SUBST(DATADIRNAME) | ||
3754 | 9524 | AC_SUBST(GMOFILES) | ||
3755 | 9525 | AC_SUBST(INSTOBJEXT) | ||
3756 | 9526 | AC_SUBST(INTLLIBS) | ||
3757 | 9527 | AC_SUBST(PO_IN_DATADIR_TRUE) | ||
3758 | 9528 | AC_SUBST(PO_IN_DATADIR_FALSE) | ||
3759 | 9529 | AC_SUBST(POFILES) | ||
3760 | 9530 | AC_SUBST(POSUB) | ||
3761 | 9531 | ]) | ||
3762 | 9532 | |||
3763 | 9533 | # AM_GLIB_GNU_GETTEXT | ||
3764 | 9534 | # ------------------- | ||
3765 | 9535 | # Do checks necessary for use of gettext. If a suitable implementation | ||
3766 | 9536 | # of gettext is found in either in libintl or in the C library, | ||
3767 | 9537 | # it will set INTLLIBS to the libraries needed for use of gettext | ||
3768 | 9538 | # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable | ||
3769 | 9539 | # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() | ||
3770 | 9540 | # on various variables needed by the Makefile.in.in installed by | ||
3771 | 9541 | # glib-gettextize. | ||
3772 | 9542 | dnl | ||
3773 | 9543 | glib_DEFUN([GLIB_GNU_GETTEXT], | ||
3774 | 9544 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
3775 | 9545 | AC_REQUIRE([AC_HEADER_STDC])dnl | ||
3776 | 9546 | |||
3777 | 9547 | GLIB_LC_MESSAGES | ||
3778 | 9548 | GLIB_WITH_NLS | ||
3779 | 9549 | |||
3780 | 9550 | if test "$gt_cv_have_gettext" = "yes"; then | ||
3781 | 9551 | if test "x$ALL_LINGUAS" = "x"; then | ||
3782 | 9552 | LINGUAS= | ||
3783 | 9553 | else | ||
3784 | 9554 | AC_MSG_CHECKING(for catalogs to be installed) | ||
3785 | 9555 | NEW_LINGUAS= | ||
3786 | 9556 | for presentlang in $ALL_LINGUAS; do | ||
3787 | 9557 | useit=no | ||
3788 | 9558 | if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then | ||
3789 | 9559 | desiredlanguages="$LINGUAS" | ||
3790 | 9560 | else | ||
3791 | 9561 | desiredlanguages="$ALL_LINGUAS" | ||
3792 | 9562 | fi | ||
3793 | 9563 | for desiredlang in $desiredlanguages; do | ||
3794 | 9564 | # Use the presentlang catalog if desiredlang is | ||
3795 | 9565 | # a. equal to presentlang, or | ||
3796 | 9566 | # b. a variant of presentlang (because in this case, | ||
3797 | 9567 | # presentlang can be used as a fallback for messages | ||
3798 | 9568 | # which are not translated in the desiredlang catalog). | ||
3799 | 9569 | case "$desiredlang" in | ||
3800 | 9570 | "$presentlang"*) useit=yes;; | ||
3801 | 9571 | esac | ||
3802 | 9572 | done | ||
3803 | 9573 | if test $useit = yes; then | ||
3804 | 9574 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | ||
3805 | 9575 | fi | ||
3806 | 9576 | done | ||
3807 | 9577 | LINGUAS=$NEW_LINGUAS | ||
3808 | 9578 | AC_MSG_RESULT($LINGUAS) | ||
3809 | 9579 | fi | ||
3810 | 9580 | |||
3811 | 9581 | dnl Construct list of names of catalog files to be constructed. | ||
3812 | 9582 | if test -n "$LINGUAS"; then | ||
3813 | 9583 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | ||
3814 | 9584 | fi | ||
3815 | 9585 | fi | ||
3816 | 9586 | |||
3817 | 9587 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly | ||
3818 | 9588 | dnl find the mkinstalldirs script in another subdir but ($top_srcdir). | ||
3819 | 9589 | dnl Try to locate is. | ||
3820 | 9590 | MKINSTALLDIRS= | ||
3821 | 9591 | if test -n "$ac_aux_dir"; then | ||
3822 | 9592 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | ||
3823 | 9593 | fi | ||
3824 | 9594 | if test -z "$MKINSTALLDIRS"; then | ||
3825 | 9595 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | ||
3826 | 9596 | fi | ||
3827 | 9597 | AC_SUBST(MKINSTALLDIRS) | ||
3828 | 9598 | |||
3829 | 9599 | dnl Generate list of files to be processed by xgettext which will | ||
3830 | 9600 | dnl be included in po/Makefile. | ||
3831 | 9601 | test -d po || mkdir po | ||
3832 | 9602 | if test "x$srcdir" != "x."; then | ||
3833 | 9603 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | ||
3834 | 9604 | posrcprefix="$srcdir/" | ||
3835 | 9605 | else | ||
3836 | 9606 | posrcprefix="../$srcdir/" | ||
3837 | 9607 | fi | ||
3838 | 9608 | else | ||
3839 | 9609 | posrcprefix="../" | ||
3840 | 9610 | fi | ||
3841 | 9611 | rm -f po/POTFILES | ||
3842 | 9612 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | ||
3843 | 9613 | < $srcdir/po/POTFILES.in > po/POTFILES | ||
3844 | 9614 | ]) | ||
3845 | 9615 | |||
3846 | 9616 | # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) | ||
3847 | 9617 | # ------------------------------- | ||
3848 | 9618 | # Define VARIABLE to the location where catalog files will | ||
3849 | 9619 | # be installed by po/Makefile. | ||
3850 | 9620 | glib_DEFUN([GLIB_DEFINE_LOCALEDIR], | ||
3851 | 9621 | [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl | ||
3852 | 9622 | glib_save_prefix="$prefix" | ||
3853 | 9623 | glib_save_exec_prefix="$exec_prefix" | ||
3854 | 9624 | glib_save_datarootdir="$datarootdir" | ||
3855 | 9625 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
3856 | 9626 | test "x$exec_prefix" = xNONE && exec_prefix=$prefix | ||
3857 | 9627 | datarootdir=`eval echo "${datarootdir}"` | ||
3858 | 9628 | if test "x$CATOBJEXT" = "x.mo" ; then | ||
3859 | 9629 | localedir=`eval echo "${libdir}/locale"` | ||
3860 | 9630 | else | ||
3861 | 9631 | localedir=`eval echo "${datadir}/locale"` | ||
3862 | 9632 | fi | ||
3863 | 9633 | prefix="$glib_save_prefix" | ||
3864 | 9634 | exec_prefix="$glib_save_exec_prefix" | ||
3865 | 9635 | datarootdir="$glib_save_datarootdir" | ||
3866 | 9636 | AC_DEFINE_UNQUOTED($1, "$localedir", | ||
3867 | 9637 | [Define the location where the catalogs will be installed]) | ||
3868 | 9638 | ]) | ||
3869 | 9639 | |||
3870 | 9640 | dnl | ||
3871 | 9641 | dnl Now the definitions that aclocal will find | ||
3872 | 9642 | dnl | ||
3873 | 9643 | ifdef(glib_configure_ac,[],[ | ||
3874 | 9644 | AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) | ||
3875 | 9645 | AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) | ||
3876 | 9646 | ])dnl | ||
3877 | 9647 | |||
3878 | 9648 | # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) | ||
3879 | 9649 | # | ||
3880 | 9650 | # Create a temporary file with TEST-FILE as its contents and pass the | ||
3881 | 9651 | # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with | ||
3882 | 9652 | # 0 and perform ACTION-IF-FAIL for any other exit status. | ||
3883 | 9653 | AC_DEFUN([GLIB_RUN_PROG], | ||
3884 | 9654 | [cat >conftest.foo <<_ACEOF | ||
3885 | 9655 | $2 | ||
3886 | 9656 | _ACEOF | ||
3887 | 9657 | if AC_RUN_LOG([$1 conftest.foo]); then | ||
3888 | 9658 | m4_ifval([$3], [$3], [:]) | ||
3889 | 9659 | m4_ifvaln([$4], [else $4])dnl | ||
3890 | 9660 | echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD | ||
3891 | 9661 | sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD | ||
3892 | 9662 | fi]) | ||
3893 | 9663 | |||
3894 | 9664 | |||
3895 | 9665 | dnl GNOME_COMPILE_WARNINGS | ||
3896 | 9666 | dnl Turn on many useful compiler warnings | ||
3897 | 9667 | dnl For now, only works on GCC | ||
3898 | 9668 | AC_DEFUN([GNOME_COMPILE_WARNINGS],[ | ||
3899 | 9669 | dnl ****************************** | ||
3900 | 9670 | dnl More compiler warnings | ||
3901 | 9671 | dnl ****************************** | ||
3902 | 9672 | |||
3903 | 9673 | AC_ARG_ENABLE(compile-warnings, | ||
3904 | 9674 | AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@], | ||
3905 | 9675 | [Turn on compiler warnings]),, | ||
3906 | 9676 | [enable_compile_warnings="m4_default([$1],[yes])"]) | ||
3907 | 9677 | |||
3908 | 9678 | warnCFLAGS= | ||
3909 | 9679 | if test "x$GCC" != xyes; then | ||
3910 | 9680 | enable_compile_warnings=no | ||
3911 | 9681 | fi | ||
3912 | 9682 | |||
3913 | 9683 | warning_flags= | ||
3914 | 9684 | realsave_CFLAGS="$CFLAGS" | ||
3915 | 9685 | |||
3916 | 9686 | case "$enable_compile_warnings" in | ||
3917 | 9687 | no) | ||
3918 | 9688 | warning_flags= | ||
3919 | 9689 | ;; | ||
3920 | 9690 | minimum) | ||
3921 | 9691 | warning_flags="-Wall" | ||
3922 | 9692 | ;; | ||
3923 | 9693 | yes) | ||
3924 | 9694 | warning_flags="-Wall -Wmissing-prototypes" | ||
3925 | 9695 | ;; | ||
3926 | 9696 | maximum|error) | ||
3927 | 9697 | warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith" | ||
3928 | 9698 | CFLAGS="$warning_flags $CFLAGS" | ||
3929 | 9699 | for option in -Wno-sign-compare; do | ||
3930 | 9700 | SAVE_CFLAGS="$CFLAGS" | ||
3931 | 9701 | CFLAGS="$CFLAGS $option" | ||
3932 | 9702 | AC_MSG_CHECKING([whether gcc understands $option]) | ||
3933 | 9703 | AC_TRY_COMPILE([], [], | ||
3934 | 9704 | has_option=yes, | ||
3935 | 9705 | has_option=no,) | ||
3936 | 9706 | CFLAGS="$SAVE_CFLAGS" | ||
3937 | 9707 | AC_MSG_RESULT($has_option) | ||
3938 | 9708 | if test $has_option = yes; then | ||
3939 | 9709 | warning_flags="$warning_flags $option" | ||
3940 | 9710 | fi | ||
3941 | 9711 | unset has_option | ||
3942 | 9712 | unset SAVE_CFLAGS | ||
3943 | 9713 | done | ||
3944 | 9714 | unset option | ||
3945 | 9715 | if test "$enable_compile_warnings" = "error" ; then | ||
3946 | 9716 | warning_flags="$warning_flags -Werror" | ||
3947 | 9717 | fi | ||
3948 | 9718 | ;; | ||
3949 | 9719 | *) | ||
3950 | 9720 | AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings) | ||
3951 | 9721 | ;; | ||
3952 | 9722 | esac | ||
3953 | 9723 | CFLAGS="$realsave_CFLAGS" | ||
3954 | 9724 | AC_MSG_CHECKING(what warning flags to pass to the C compiler) | ||
3955 | 9725 | AC_MSG_RESULT($warning_flags) | ||
3956 | 9726 | |||
3957 | 9727 | AC_ARG_ENABLE(iso-c, | ||
3958 | 9728 | AC_HELP_STRING([--enable-iso-c], | ||
3959 | 9729 | [Try to warn if code is not ISO C ]),, | ||
3960 | 9730 | [enable_iso_c=no]) | ||
3961 | 9731 | |||
3962 | 9732 | AC_MSG_CHECKING(what language compliance flags to pass to the C compiler) | ||
3963 | 9733 | complCFLAGS= | ||
3964 | 9734 | if test "x$enable_iso_c" != "xno"; then | ||
3965 | 9735 | if test "x$GCC" = "xyes"; then | ||
3966 | 9736 | case " $CFLAGS " in | ||
3967 | 9737 | *[\ \ ]-ansi[\ \ ]*) ;; | ||
3968 | 9738 | *) complCFLAGS="$complCFLAGS -ansi" ;; | ||
3969 | 9739 | esac | ||
3970 | 9740 | case " $CFLAGS " in | ||
3971 | 9741 | *[\ \ ]-pedantic[\ \ ]*) ;; | ||
3972 | 9742 | *) complCFLAGS="$complCFLAGS -pedantic" ;; | ||
3973 | 9743 | esac | ||
3974 | 9744 | fi | ||
3975 | 9745 | fi | ||
3976 | 9746 | AC_MSG_RESULT($complCFLAGS) | ||
3977 | 9747 | |||
3978 | 9748 | WARN_CFLAGS="$warning_flags $complCFLAGS" | ||
3979 | 9749 | AC_SUBST(WARN_CFLAGS) | ||
3980 | 9750 | ]) | ||
3981 | 9751 | |||
3982 | 9752 | dnl For C++, do basically the same thing. | ||
3983 | 9753 | |||
3984 | 9754 | AC_DEFUN([GNOME_CXX_WARNINGS],[ | ||
3985 | 9755 | AC_ARG_ENABLE(cxx-warnings, | ||
3986 | 9756 | AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@] | ||
3987 | 9757 | [Turn on compiler warnings.]),, | ||
3988 | 9758 | [enable_cxx_warnings="m4_default([$1],[minimum])"]) | ||
3989 | 9759 | |||
3990 | 9760 | AC_MSG_CHECKING(what warning flags to pass to the C++ compiler) | ||
3991 | 9761 | warnCXXFLAGS= | ||
3992 | 9762 | if test "x$GXX" != xyes; then | ||
3993 | 9763 | enable_cxx_warnings=no | ||
3994 | 9764 | fi | ||
3995 | 9765 | if test "x$enable_cxx_warnings" != "xno"; then | ||
3996 | 9766 | if test "x$GXX" = "xyes"; then | ||
3997 | 9767 | case " $CXXFLAGS " in | ||
3998 | 9768 | *[\ \ ]-Wall[\ \ ]*) ;; | ||
3999 | 9769 | *) warnCXXFLAGS="-Wall -Wno-unused" ;; | ||
4000 | 9770 | esac | ||
4001 | 9771 | |||
4002 | 9772 | ## -W is not all that useful. And it cannot be controlled | ||
4003 | 9773 | ## with individual -Wno-xxx flags, unlike -Wall | ||
4004 | 9774 | if test "x$enable_cxx_warnings" = "xyes"; then | ||
4005 | 9775 | warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual" | ||
4006 | 9776 | fi | ||
4007 | 9777 | fi | ||
4008 | 9778 | fi | ||
4009 | 9779 | AC_MSG_RESULT($warnCXXFLAGS) | ||
4010 | 9780 | |||
4011 | 9781 | AC_ARG_ENABLE(iso-cxx, | ||
4012 | 9782 | AC_HELP_STRING([--enable-iso-cxx], | ||
4013 | 9783 | [Try to warn if code is not ISO C++ ]),, | ||
4014 | 9784 | [enable_iso_cxx=no]) | ||
4015 | 9785 | |||
4016 | 9786 | AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler) | ||
4017 | 9787 | complCXXFLAGS= | ||
4018 | 9788 | if test "x$enable_iso_cxx" != "xno"; then | ||
4019 | 9789 | if test "x$GXX" = "xyes"; then | ||
4020 | 9790 | case " $CXXFLAGS " in | ||
4021 | 9791 | *[\ \ ]-ansi[\ \ ]*) ;; | ||
4022 | 9792 | *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; | ||
4023 | 9793 | esac | ||
4024 | 9794 | |||
4025 | 9795 | case " $CXXFLAGS " in | ||
4026 | 9796 | *[\ \ ]-pedantic[\ \ ]*) ;; | ||
4027 | 9797 | *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;; | ||
4028 | 9798 | esac | ||
4029 | 9799 | fi | ||
4030 | 9800 | fi | ||
4031 | 9801 | AC_MSG_RESULT($complCXXFLAGS) | ||
4032 | 9802 | |||
4033 | 9803 | WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" | ||
4034 | 9804 | AC_SUBST(WARN_CXXFLAGS) | ||
4035 | 9805 | ]) | ||
4036 | 9806 | |||
4037 | 9807 | dnl -*- mode: autoconf -*- | ||
4038 | 9808 | |||
4039 | 9809 | # serial 1 | ||
4040 | 9810 | |||
4041 | 9811 | dnl Usage: | ||
4042 | 9812 | dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) | ||
4043 | 9813 | AC_DEFUN([GTK_DOC_CHECK], | ||
4044 | 9814 | [ | ||
4045 | 9815 | AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
4046 | 9816 | AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
4047 | 9817 | |||
4048 | 9818 | dnl check for tools we added during development | ||
4049 | 9819 | AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check]) | ||
4050 | 9820 | AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true]) | ||
4051 | 9821 | AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf]) | ||
4052 | 9822 | |||
4053 | 9823 | dnl for overriding the documentation installation directory | ||
4054 | 9824 | AC_ARG_WITH([html-dir], | ||
4055 | 9825 | AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, | ||
4056 | 9826 | [with_html_dir='${datadir}/gtk-doc/html']) | ||
4057 | 9827 | HTML_DIR="$with_html_dir" | ||
4058 | 9828 | AC_SUBST([HTML_DIR]) | ||
4059 | 9829 | |||
4060 | 9830 | dnl enable/disable documentation building | ||
4061 | 9831 | AC_ARG_ENABLE([gtk-doc], | ||
4062 | 9832 | AS_HELP_STRING([--enable-gtk-doc], | ||
4063 | 9833 | [use gtk-doc to build documentation [[default=no]]]),, | ||
4064 | 9834 | [enable_gtk_doc=no]) | ||
4065 | 9835 | |||
4066 | 9836 | if test x$enable_gtk_doc = xyes; then | ||
4067 | 9837 | ifelse([$1],[], | ||
4068 | 9838 | [PKG_CHECK_EXISTS([gtk-doc],, | ||
4069 | 9839 | AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))], | ||
4070 | 9840 | [PKG_CHECK_EXISTS([gtk-doc >= $1],, | ||
4071 | 9841 | AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))]) | ||
4072 | 9842 | fi | ||
4073 | 9843 | |||
4074 | 9844 | AC_MSG_CHECKING([whether to build gtk-doc documentation]) | ||
4075 | 9845 | AC_MSG_RESULT($enable_gtk_doc) | ||
4076 | 9846 | |||
4077 | 9847 | dnl enable/disable output formats | ||
4078 | 9848 | AC_ARG_ENABLE([gtk-doc-html], | ||
4079 | 9849 | AS_HELP_STRING([--enable-gtk-doc-html], | ||
4080 | 9850 | [build documentation in html format [[default=yes]]]),, | ||
4081 | 9851 | [enable_gtk_doc_html=yes]) | ||
4082 | 9852 | AC_ARG_ENABLE([gtk-doc-pdf], | ||
4083 | 9853 | AS_HELP_STRING([--enable-gtk-doc-pdf], | ||
4084 | 9854 | [build documentation in pdf format [[default=no]]]),, | ||
4085 | 9855 | [enable_gtk_doc_pdf=no]) | ||
4086 | 9856 | |||
4087 | 9857 | if test -z "$GTKDOC_MKPDF"; then | ||
4088 | 9858 | enable_gtk_doc_pdf=no | ||
4089 | 9859 | fi | ||
4090 | 9860 | |||
4091 | 9861 | |||
4092 | 9862 | AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) | ||
4093 | 9863 | AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes]) | ||
4094 | 9864 | AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes]) | ||
4095 | 9865 | AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) | ||
4096 | 9866 | AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"]) | ||
4097 | 9867 | ]) | ||
4098 | 9868 | |||
4099 | 9869 | |||
4100 | 9870 | dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) | ||
4101 | 9871 | # serial 40 IT_PROG_INTLTOOL | ||
4102 | 9872 | AC_DEFUN([IT_PROG_INTLTOOL], [ | ||
4103 | 9873 | AC_PREREQ([2.50])dnl | ||
4104 | 9874 | AC_REQUIRE([AM_NLS])dnl | ||
4105 | 9875 | |||
4106 | 9876 | case "$am__api_version" in | ||
4107 | 9877 | 1.[01234]) | ||
4108 | 9878 | AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) | ||
4109 | 9879 | ;; | ||
4110 | 9880 | *) | ||
4111 | 9881 | ;; | ||
4112 | 9882 | esac | ||
4113 | 9883 | |||
4114 | 9884 | if test -n "$1"; then | ||
4115 | 9885 | AC_MSG_CHECKING([for intltool >= $1]) | ||
4116 | 9886 | |||
4117 | 9887 | INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` | ||
4118 | 9888 | INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` | ||
4119 | 9889 | [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` | ||
4120 | 9890 | ] | ||
4121 | 9891 | AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) | ||
4122 | 9892 | test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || | ||
4123 | 9893 | AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) | ||
4124 | 9894 | fi | ||
4125 | 9895 | |||
4126 | 9896 | AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) | ||
4127 | 9897 | AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) | ||
4128 | 9898 | AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) | ||
4129 | 9899 | if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then | ||
4130 | 9900 | AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) | ||
4131 | 9901 | fi | ||
4132 | 9902 | |||
4133 | 9903 | INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4134 | 9904 | INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4135 | 9905 | INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4136 | 9906 | INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4137 | 9907 | INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' | ||
4138 | 9908 | INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4139 | 9909 | INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4140 | 9910 | INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4141 | 9911 | INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4142 | 9912 | INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4143 | 9913 | INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4144 | 9914 | INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' | ||
4145 | 9915 | INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4146 | 9916 | INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4147 | 9917 | INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4148 | 9918 | INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4149 | 9919 | INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4150 | 9920 | INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4151 | 9921 | INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
4152 | 9922 | |||
4153 | 9923 | _IT_SUBST(INTLTOOL_DESKTOP_RULE) | ||
4154 | 9924 | _IT_SUBST(INTLTOOL_DIRECTORY_RULE) | ||
4155 | 9925 | _IT_SUBST(INTLTOOL_KEYS_RULE) | ||
4156 | 9926 | _IT_SUBST(INTLTOOL_PROP_RULE) | ||
4157 | 9927 | _IT_SUBST(INTLTOOL_OAF_RULE) | ||
4158 | 9928 | _IT_SUBST(INTLTOOL_PONG_RULE) | ||
4159 | 9929 | _IT_SUBST(INTLTOOL_SERVER_RULE) | ||
4160 | 9930 | _IT_SUBST(INTLTOOL_SHEET_RULE) | ||
4161 | 9931 | _IT_SUBST(INTLTOOL_SOUNDLIST_RULE) | ||
4162 | 9932 | _IT_SUBST(INTLTOOL_UI_RULE) | ||
4163 | 9933 | _IT_SUBST(INTLTOOL_XAM_RULE) | ||
4164 | 9934 | _IT_SUBST(INTLTOOL_KBD_RULE) | ||
4165 | 9935 | _IT_SUBST(INTLTOOL_XML_RULE) | ||
4166 | 9936 | _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) | ||
4167 | 9937 | _IT_SUBST(INTLTOOL_CAVES_RULE) | ||
4168 | 9938 | _IT_SUBST(INTLTOOL_SCHEMAS_RULE) | ||
4169 | 9939 | _IT_SUBST(INTLTOOL_THEME_RULE) | ||
4170 | 9940 | _IT_SUBST(INTLTOOL_SERVICE_RULE) | ||
4171 | 9941 | _IT_SUBST(INTLTOOL_POLICY_RULE) | ||
4172 | 9942 | |||
4173 | 9943 | # Check the gettext tools to make sure they are GNU | ||
4174 | 9944 | AC_PATH_PROG(XGETTEXT, xgettext) | ||
4175 | 9945 | AC_PATH_PROG(MSGMERGE, msgmerge) | ||
4176 | 9946 | AC_PATH_PROG(MSGFMT, msgfmt) | ||
4177 | 9947 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
4178 | 9948 | if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then | ||
4179 | 9949 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | ||
4180 | 9950 | fi | ||
4181 | 9951 | xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" | ||
4182 | 9952 | mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" | ||
4183 | 9953 | mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" | ||
4184 | 9954 | if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then | ||
4185 | 9955 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | ||
4186 | 9956 | fi | ||
4187 | 9957 | |||
4188 | 9958 | AC_PATH_PROG(INTLTOOL_PERL, perl) | ||
4189 | 9959 | if test -z "$INTLTOOL_PERL"; then | ||
4190 | 9960 | AC_MSG_ERROR([perl not found]) | ||
4191 | 9961 | fi | ||
4192 | 9962 | AC_MSG_CHECKING([for perl >= 5.8.1]) | ||
4193 | 9963 | $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 | ||
4194 | 9964 | if test $? -ne 0; then | ||
4195 | 9965 | AC_MSG_ERROR([perl 5.8.1 is required for intltool]) | ||
4196 | 9966 | else | ||
4197 | 9967 | IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" | ||
4198 | 9968 | AC_MSG_RESULT([$IT_PERL_VERSION]) | ||
4199 | 9969 | fi | ||
4200 | 9970 | if test "x$2" != "xno-xml"; then | ||
4201 | 9971 | AC_MSG_CHECKING([for XML::Parser]) | ||
4202 | 9972 | if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then | ||
4203 | 9973 | AC_MSG_RESULT([ok]) | ||
4204 | 9974 | else | ||
4205 | 9975 | AC_MSG_ERROR([XML::Parser perl module is required for intltool]) | ||
4206 | 9976 | fi | ||
4207 | 9977 | fi | ||
4208 | 9978 | |||
4209 | 9979 | # Substitute ALL_LINGUAS so we can use it in po/Makefile | ||
4210 | 9980 | AC_SUBST(ALL_LINGUAS) | ||
4211 | 9981 | |||
4212 | 9982 | # Set DATADIRNAME correctly if it is not set yet | ||
4213 | 9983 | # (copied from glib-gettext.m4) | ||
4214 | 9984 | if test -z "$DATADIRNAME"; then | ||
4215 | 9985 | AC_LINK_IFELSE( | ||
4216 | 9986 | [AC_LANG_PROGRAM([[]], | ||
4217 | 9987 | [[extern int _nl_msg_cat_cntr; | ||
4218 | 9988 | return _nl_msg_cat_cntr]])], | ||
4219 | 9989 | [DATADIRNAME=share], | ||
4220 | 9990 | [case $host in | ||
4221 | 9991 | *-*-solaris*) | ||
4222 | 9992 | dnl On Solaris, if bind_textdomain_codeset is in libc, | ||
4223 | 9993 | dnl GNU format message catalog is always supported, | ||
4224 | 9994 | dnl since both are added to the libc all together. | ||
4225 | 9995 | dnl Hence, we'd like to go with DATADIRNAME=share | ||
4226 | 9996 | dnl in this case. | ||
4227 | 9997 | AC_CHECK_FUNC(bind_textdomain_codeset, | ||
4228 | 9998 | [DATADIRNAME=share], [DATADIRNAME=lib]) | ||
4229 | 9999 | ;; | ||
4230 | 10000 | *) | ||
4231 | 10001 | [DATADIRNAME=lib] | ||
4232 | 10002 | ;; | ||
4233 | 10003 | esac]) | ||
4234 | 10004 | fi | ||
4235 | 10005 | AC_SUBST(DATADIRNAME) | ||
4236 | 10006 | |||
4237 | 10007 | IT_PO_SUBDIR([po]) | ||
4238 | 10008 | |||
4239 | 10009 | ]) | ||
4240 | 10010 | |||
4241 | 10011 | |||
4242 | 10012 | # IT_PO_SUBDIR(DIRNAME) | ||
4243 | 10013 | # --------------------- | ||
4244 | 10014 | # All po subdirs have to be declared with this macro; the subdir "po" is | ||
4245 | 10015 | # declared by IT_PROG_INTLTOOL. | ||
4246 | 10016 | # | ||
4247 | 10017 | AC_DEFUN([IT_PO_SUBDIR], | ||
4248 | 10018 | [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. | ||
4249 | 10019 | dnl | ||
4250 | 10020 | dnl The following CONFIG_COMMANDS should be executed at the very end | ||
4251 | 10021 | dnl of config.status. | ||
4252 | 10022 | AC_CONFIG_COMMANDS_PRE([ | ||
4253 | 10023 | AC_CONFIG_COMMANDS([$1/stamp-it], [ | ||
4254 | 10024 | if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then | ||
4255 | 10025 | AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) | ||
4256 | 10026 | fi | ||
4257 | 10027 | rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" | ||
4258 | 10028 | >"$1/stamp-it.tmp" | ||
4259 | 10029 | [sed '/^#/d | ||
4260 | 10030 | s/^[[].*] *// | ||
4261 | 10031 | /^[ ]*$/d | ||
4262 | 10032 | '"s|^| $ac_top_srcdir/|" \ | ||
4263 | 10033 | "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" | ||
4264 | 10034 | ] | ||
4265 | 10035 | [sed '/^POTFILES =/,/[^\\]$/ { | ||
4266 | 10036 | /^POTFILES =/!d | ||
4267 | 10037 | r $1/POTFILES | ||
4268 | 10038 | } | ||
4269 | 10039 | ' "$1/Makefile.in" >"$1/Makefile"] | ||
4270 | 10040 | rm -f "$1/Makefile.tmp" | ||
4271 | 10041 | mv "$1/stamp-it.tmp" "$1/stamp-it" | ||
4272 | 10042 | ]) | ||
4273 | 10043 | ])dnl | ||
4274 | 10044 | ]) | ||
4275 | 10045 | |||
4276 | 10046 | # _IT_SUBST(VARIABLE) | ||
4277 | 10047 | # ------------------- | ||
4278 | 10048 | # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST | ||
4279 | 10049 | # | ||
4280 | 10050 | AC_DEFUN([_IT_SUBST], | ||
4281 | 10051 | [ | ||
4282 | 10052 | AC_SUBST([$1]) | ||
4283 | 10053 | m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) | ||
4284 | 10054 | ] | ||
4285 | 10055 | ) | ||
4286 | 10056 | |||
4287 | 10057 | # deprecated macros | ||
4288 | 10058 | AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) | ||
4289 | 10059 | # A hint is needed for aclocal from Automake <= 1.9.4: | ||
4290 | 10060 | # AC_DEFUN([AC_PROG_INTLTOOL], ...) | ||
4291 | 10061 | |||
4292 | 10062 | |||
4293 | 9969 | 10063 | ||
4294 | === modified file 'config.guess' | |||
4295 | --- config.guess 2010-03-30 19:58:47 +0000 | |||
4296 | +++ config.guess 2010-09-27 20:34:40 +0000 | |||
4297 | @@ -1,10 +1,10 @@ | |||
4298 | 1 | #! /bin/sh | 1 | #! /bin/sh |
4299 | 2 | # Attempt to guess a canonical system name. | 2 | # Attempt to guess a canonical system name. |
4300 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4302 | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
4303 | 5 | # Free Software Foundation, Inc. | 5 | # Free Software Foundation, Inc. |
4304 | 6 | 6 | ||
4306 | 7 | timestamp='2009-04-27' | 7 | timestamp='2009-11-20' |
4307 | 8 | 8 | ||
4308 | 9 | # This file is free software; you can redistribute it and/or modify it | 9 | # This file is free software; you can redistribute it and/or modify it |
4309 | 10 | # under the terms of the GNU General Public License as published by | 10 | # under the terms of the GNU General Public License as published by |
4310 | @@ -27,16 +27,16 @@ | |||
4311 | 27 | # the same distribution terms that you use for the rest of that program. | 27 | # the same distribution terms that you use for the rest of that program. |
4312 | 28 | 28 | ||
4313 | 29 | 29 | ||
4317 | 30 | # Originally written by Per Bothner <per@bothner.com>. | 30 | # Originally written by Per Bothner. Please send patches (context |
4318 | 31 | # Please send patches to <config-patches@gnu.org>. Submit a context | 31 | # diff format) to <config-patches@gnu.org> and include a ChangeLog |
4319 | 32 | # diff and a properly formatted ChangeLog entry. | 32 | # entry. |
4320 | 33 | # | 33 | # |
4321 | 34 | # This script attempts to guess a canonical system name similar to | 34 | # This script attempts to guess a canonical system name similar to |
4322 | 35 | # config.sub. If it succeeds, it prints the system name on stdout, and | 35 | # config.sub. If it succeeds, it prints the system name on stdout, and |
4323 | 36 | # exits with 0. Otherwise, it exits with 1. | 36 | # exits with 0. Otherwise, it exits with 1. |
4324 | 37 | # | 37 | # |
4327 | 38 | # The plan is that this can be called by configure scripts if you | 38 | # You can get the latest version of this script from: |
4328 | 39 | # don't specify an explicit build system type. | 39 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
4329 | 40 | 40 | ||
4330 | 41 | me=`echo "$0" | sed -e 's,.*/,,'` | 41 | me=`echo "$0" | sed -e 's,.*/,,'` |
4331 | 42 | 42 | ||
4332 | @@ -170,7 +170,7 @@ | |||
4333 | 170 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) | 170 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
4334 | 171 | eval $set_cc_for_build | 171 | eval $set_cc_for_build |
4335 | 172 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | 172 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
4337 | 173 | | grep __ELF__ >/dev/null | 173 | | grep -q __ELF__ |
4338 | 174 | then | 174 | then |
4339 | 175 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | 175 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
4340 | 176 | # Return netbsd for either. FIX? | 176 | # Return netbsd for either. FIX? |
4341 | @@ -333,6 +333,9 @@ | |||
4342 | 333 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | 333 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
4343 | 334 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 334 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
4344 | 335 | exit ;; | 335 | exit ;; |
4345 | 336 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | ||
4346 | 337 | echo i386-pc-auroraux${UNAME_RELEASE} | ||
4347 | 338 | exit ;; | ||
4348 | 336 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | 339 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
4349 | 337 | eval $set_cc_for_build | 340 | eval $set_cc_for_build |
4350 | 338 | SUN_ARCH="i386" | 341 | SUN_ARCH="i386" |
4351 | @@ -656,7 +659,7 @@ | |||
4352 | 656 | # => hppa64-hp-hpux11.23 | 659 | # => hppa64-hp-hpux11.23 |
4353 | 657 | 660 | ||
4354 | 658 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | 661 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
4356 | 659 | grep __LP64__ >/dev/null | 662 | grep -q __LP64__ |
4357 | 660 | then | 663 | then |
4358 | 661 | HP_ARCH="hppa2.0w" | 664 | HP_ARCH="hppa2.0w" |
4359 | 662 | else | 665 | else |
4360 | @@ -807,12 +810,12 @@ | |||
4361 | 807 | i*:PW*:*) | 810 | i*:PW*:*) |
4362 | 808 | echo ${UNAME_MACHINE}-pc-pw32 | 811 | echo ${UNAME_MACHINE}-pc-pw32 |
4363 | 809 | exit ;; | 812 | exit ;; |
4365 | 810 | *:Interix*:[3456]*) | 813 | *:Interix*:*) |
4366 | 811 | case ${UNAME_MACHINE} in | 814 | case ${UNAME_MACHINE} in |
4367 | 812 | x86) | 815 | x86) |
4368 | 813 | echo i586-pc-interix${UNAME_RELEASE} | 816 | echo i586-pc-interix${UNAME_RELEASE} |
4369 | 814 | exit ;; | 817 | exit ;; |
4371 | 815 | EM64T | authenticamd | genuineintel) | 818 | authenticamd | genuineintel | EM64T) |
4372 | 816 | echo x86_64-unknown-interix${UNAME_RELEASE} | 819 | echo x86_64-unknown-interix${UNAME_RELEASE} |
4373 | 817 | exit ;; | 820 | exit ;; |
4374 | 818 | IA64) | 821 | IA64) |
4375 | @@ -822,6 +825,9 @@ | |||
4376 | 822 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | 825 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
4377 | 823 | echo i${UNAME_MACHINE}-pc-mks | 826 | echo i${UNAME_MACHINE}-pc-mks |
4378 | 824 | exit ;; | 827 | exit ;; |
4379 | 828 | 8664:Windows_NT:*) | ||
4380 | 829 | echo x86_64-pc-mks | ||
4381 | 830 | exit ;; | ||
4382 | 825 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | 831 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
4383 | 826 | # How do we know it's Interix rather than the generic POSIX subsystem? | 832 | # How do we know it's Interix rather than the generic POSIX subsystem? |
4384 | 827 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | 833 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
4385 | @@ -851,6 +857,20 @@ | |||
4386 | 851 | i*86:Minix:*:*) | 857 | i*86:Minix:*:*) |
4387 | 852 | echo ${UNAME_MACHINE}-pc-minix | 858 | echo ${UNAME_MACHINE}-pc-minix |
4388 | 853 | exit ;; | 859 | exit ;; |
4389 | 860 | alpha:Linux:*:*) | ||
4390 | 861 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | ||
4391 | 862 | EV5) UNAME_MACHINE=alphaev5 ;; | ||
4392 | 863 | EV56) UNAME_MACHINE=alphaev56 ;; | ||
4393 | 864 | PCA56) UNAME_MACHINE=alphapca56 ;; | ||
4394 | 865 | PCA57) UNAME_MACHINE=alphapca56 ;; | ||
4395 | 866 | EV6) UNAME_MACHINE=alphaev6 ;; | ||
4396 | 867 | EV67) UNAME_MACHINE=alphaev67 ;; | ||
4397 | 868 | EV68*) UNAME_MACHINE=alphaev68 ;; | ||
4398 | 869 | esac | ||
4399 | 870 | objdump --private-headers /bin/sh | grep -q ld.so.1 | ||
4400 | 871 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | ||
4401 | 872 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | ||
4402 | 873 | exit ;; | ||
4403 | 854 | arm*:Linux:*:*) | 874 | arm*:Linux:*:*) |
4404 | 855 | eval $set_cc_for_build | 875 | eval $set_cc_for_build |
4405 | 856 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | 876 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
4406 | @@ -873,6 +893,17 @@ | |||
4407 | 873 | frv:Linux:*:*) | 893 | frv:Linux:*:*) |
4408 | 874 | echo frv-unknown-linux-gnu | 894 | echo frv-unknown-linux-gnu |
4409 | 875 | exit ;; | 895 | exit ;; |
4410 | 896 | i*86:Linux:*:*) | ||
4411 | 897 | LIBC=gnu | ||
4412 | 898 | eval $set_cc_for_build | ||
4413 | 899 | sed 's/^ //' << EOF >$dummy.c | ||
4414 | 900 | #ifdef __dietlibc__ | ||
4415 | 901 | LIBC=dietlibc | ||
4416 | 902 | #endif | ||
4417 | 903 | EOF | ||
4418 | 904 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | ||
4419 | 905 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | ||
4420 | 906 | exit ;; | ||
4421 | 876 | ia64:Linux:*:*) | 907 | ia64:Linux:*:*) |
4422 | 877 | echo ${UNAME_MACHINE}-unknown-linux-gnu | 908 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
4423 | 878 | exit ;; | 909 | exit ;; |
4424 | @@ -882,78 +913,34 @@ | |||
4425 | 882 | m68*:Linux:*:*) | 913 | m68*:Linux:*:*) |
4426 | 883 | echo ${UNAME_MACHINE}-unknown-linux-gnu | 914 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
4427 | 884 | exit ;; | 915 | exit ;; |
4472 | 885 | mips:Linux:*:*) | 916 | mips:Linux:*:* | mips64:Linux:*:*) |
4473 | 886 | eval $set_cc_for_build | 917 | eval $set_cc_for_build |
4474 | 887 | sed 's/^ //' << EOF >$dummy.c | 918 | sed 's/^ //' << EOF >$dummy.c |
4475 | 888 | #undef CPU | 919 | #undef CPU |
4476 | 889 | #undef mips | 920 | #undef ${UNAME_MACHINE} |
4477 | 890 | #undef mipsel | 921 | #undef ${UNAME_MACHINE}el |
4478 | 891 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | 922 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
4479 | 892 | CPU=mipsel | 923 | CPU=${UNAME_MACHINE}el |
4480 | 893 | #else | 924 | #else |
4481 | 894 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | 925 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
4482 | 895 | CPU=mips | 926 | CPU=${UNAME_MACHINE} |
4483 | 896 | #else | 927 | #else |
4484 | 897 | CPU= | 928 | CPU= |
4485 | 898 | #endif | 929 | #endif |
4486 | 899 | #endif | 930 | #endif |
4487 | 900 | EOF | 931 | EOF |
4488 | 901 | eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | 932 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
4445 | 902 | /^CPU/{ | ||
4446 | 903 | s: ::g | ||
4447 | 904 | p | ||
4448 | 905 | }'`" | ||
4449 | 906 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | ||
4450 | 907 | ;; | ||
4451 | 908 | mips64:Linux:*:*) | ||
4452 | 909 | eval $set_cc_for_build | ||
4453 | 910 | sed 's/^ //' << EOF >$dummy.c | ||
4454 | 911 | #undef CPU | ||
4455 | 912 | #undef mips64 | ||
4456 | 913 | #undef mips64el | ||
4457 | 914 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | ||
4458 | 915 | CPU=mips64el | ||
4459 | 916 | #else | ||
4460 | 917 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | ||
4461 | 918 | CPU=mips64 | ||
4462 | 919 | #else | ||
4463 | 920 | CPU= | ||
4464 | 921 | #endif | ||
4465 | 922 | #endif | ||
4466 | 923 | EOF | ||
4467 | 924 | eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | ||
4468 | 925 | /^CPU/{ | ||
4469 | 926 | s: ::g | ||
4470 | 927 | p | ||
4471 | 928 | }'`" | ||
4489 | 929 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | 933 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
4490 | 930 | ;; | 934 | ;; |
4491 | 931 | or32:Linux:*:*) | 935 | or32:Linux:*:*) |
4492 | 932 | echo or32-unknown-linux-gnu | 936 | echo or32-unknown-linux-gnu |
4493 | 933 | exit ;; | 937 | exit ;; |
4494 | 934 | ppc:Linux:*:*) | ||
4495 | 935 | echo powerpc-unknown-linux-gnu | ||
4496 | 936 | exit ;; | ||
4497 | 937 | ppc64:Linux:*:*) | ||
4498 | 938 | echo powerpc64-unknown-linux-gnu | ||
4499 | 939 | exit ;; | ||
4500 | 940 | alpha:Linux:*:*) | ||
4501 | 941 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | ||
4502 | 942 | EV5) UNAME_MACHINE=alphaev5 ;; | ||
4503 | 943 | EV56) UNAME_MACHINE=alphaev56 ;; | ||
4504 | 944 | PCA56) UNAME_MACHINE=alphapca56 ;; | ||
4505 | 945 | PCA57) UNAME_MACHINE=alphapca56 ;; | ||
4506 | 946 | EV6) UNAME_MACHINE=alphaev6 ;; | ||
4507 | 947 | EV67) UNAME_MACHINE=alphaev67 ;; | ||
4508 | 948 | EV68*) UNAME_MACHINE=alphaev68 ;; | ||
4509 | 949 | esac | ||
4510 | 950 | objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null | ||
4511 | 951 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | ||
4512 | 952 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | ||
4513 | 953 | exit ;; | ||
4514 | 954 | padre:Linux:*:*) | 938 | padre:Linux:*:*) |
4515 | 955 | echo sparc-unknown-linux-gnu | 939 | echo sparc-unknown-linux-gnu |
4516 | 956 | exit ;; | 940 | exit ;; |
4517 | 941 | parisc64:Linux:*:* | hppa64:Linux:*:*) | ||
4518 | 942 | echo hppa64-unknown-linux-gnu | ||
4519 | 943 | exit ;; | ||
4520 | 957 | parisc:Linux:*:* | hppa:Linux:*:*) | 944 | parisc:Linux:*:* | hppa:Linux:*:*) |
4521 | 958 | # Look for CPU level | 945 | # Look for CPU level |
4522 | 959 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | 946 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
4523 | @@ -962,8 +949,11 @@ | |||
4524 | 962 | *) echo hppa-unknown-linux-gnu ;; | 949 | *) echo hppa-unknown-linux-gnu ;; |
4525 | 963 | esac | 950 | esac |
4526 | 964 | exit ;; | 951 | exit ;; |
4529 | 965 | parisc64:Linux:*:* | hppa64:Linux:*:*) | 952 | ppc64:Linux:*:*) |
4530 | 966 | echo hppa64-unknown-linux-gnu | 953 | echo powerpc64-unknown-linux-gnu |
4531 | 954 | exit ;; | ||
4532 | 955 | ppc:Linux:*:*) | ||
4533 | 956 | echo powerpc-unknown-linux-gnu | ||
4534 | 967 | exit ;; | 957 | exit ;; |
4535 | 968 | s390:Linux:*:* | s390x:Linux:*:*) | 958 | s390:Linux:*:* | s390x:Linux:*:*) |
4536 | 969 | echo ${UNAME_MACHINE}-ibm-linux | 959 | echo ${UNAME_MACHINE}-ibm-linux |
4537 | @@ -986,66 +976,6 @@ | |||
4538 | 986 | xtensa*:Linux:*:*) | 976 | xtensa*:Linux:*:*) |
4539 | 987 | echo ${UNAME_MACHINE}-unknown-linux-gnu | 977 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
4540 | 988 | exit ;; | 978 | exit ;; |
4541 | 989 | i*86:Linux:*:*) | ||
4542 | 990 | # The BFD linker knows what the default object file format is, so | ||
4543 | 991 | # first see if it will tell us. cd to the root directory to prevent | ||
4544 | 992 | # problems with other programs or directories called `ld' in the path. | ||
4545 | 993 | # Set LC_ALL=C to ensure ld outputs messages in English. | ||
4546 | 994 | ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | ||
4547 | 995 | | sed -ne '/supported targets:/!d | ||
4548 | 996 | s/[ ][ ]*/ /g | ||
4549 | 997 | s/.*supported targets: *// | ||
4550 | 998 | s/ .*// | ||
4551 | 999 | p'` | ||
4552 | 1000 | case "$ld_supported_targets" in | ||
4553 | 1001 | elf32-i386) | ||
4554 | 1002 | TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" | ||
4555 | 1003 | ;; | ||
4556 | 1004 | a.out-i386-linux) | ||
4557 | 1005 | echo "${UNAME_MACHINE}-pc-linux-gnuaout" | ||
4558 | 1006 | exit ;; | ||
4559 | 1007 | "") | ||
4560 | 1008 | # Either a pre-BFD a.out linker (linux-gnuoldld) or | ||
4561 | 1009 | # one that does not give us useful --help. | ||
4562 | 1010 | echo "${UNAME_MACHINE}-pc-linux-gnuoldld" | ||
4563 | 1011 | exit ;; | ||
4564 | 1012 | esac | ||
4565 | 1013 | # Determine whether the default compiler is a.out or elf | ||
4566 | 1014 | eval $set_cc_for_build | ||
4567 | 1015 | sed 's/^ //' << EOF >$dummy.c | ||
4568 | 1016 | #include <features.h> | ||
4569 | 1017 | #ifdef __ELF__ | ||
4570 | 1018 | # ifdef __GLIBC__ | ||
4571 | 1019 | # if __GLIBC__ >= 2 | ||
4572 | 1020 | LIBC=gnu | ||
4573 | 1021 | # else | ||
4574 | 1022 | LIBC=gnulibc1 | ||
4575 | 1023 | # endif | ||
4576 | 1024 | # else | ||
4577 | 1025 | LIBC=gnulibc1 | ||
4578 | 1026 | # endif | ||
4579 | 1027 | #else | ||
4580 | 1028 | #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) | ||
4581 | 1029 | LIBC=gnu | ||
4582 | 1030 | #else | ||
4583 | 1031 | LIBC=gnuaout | ||
4584 | 1032 | #endif | ||
4585 | 1033 | #endif | ||
4586 | 1034 | #ifdef __dietlibc__ | ||
4587 | 1035 | LIBC=dietlibc | ||
4588 | 1036 | #endif | ||
4589 | 1037 | EOF | ||
4590 | 1038 | eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | ||
4591 | 1039 | /^LIBC/{ | ||
4592 | 1040 | s: ::g | ||
4593 | 1041 | p | ||
4594 | 1042 | }'`" | ||
4595 | 1043 | test x"${LIBC}" != x && { | ||
4596 | 1044 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | ||
4597 | 1045 | exit | ||
4598 | 1046 | } | ||
4599 | 1047 | test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } | ||
4600 | 1048 | ;; | ||
4601 | 1049 | i*86:DYNIX/ptx:4*:*) | 979 | i*86:DYNIX/ptx:4*:*) |
4602 | 1050 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | 980 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
4603 | 1051 | # earlier versions are messed up and put the nodename in both | 981 | # earlier versions are messed up and put the nodename in both |
4604 | @@ -1074,7 +1004,7 @@ | |||
4605 | 1074 | i*86:syllable:*:*) | 1004 | i*86:syllable:*:*) |
4606 | 1075 | echo ${UNAME_MACHINE}-pc-syllable | 1005 | echo ${UNAME_MACHINE}-pc-syllable |
4607 | 1076 | exit ;; | 1006 | exit ;; |
4609 | 1077 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) | 1007 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
4610 | 1078 | echo i386-unknown-lynxos${UNAME_RELEASE} | 1008 | echo i386-unknown-lynxos${UNAME_RELEASE} |
4611 | 1079 | exit ;; | 1009 | exit ;; |
4612 | 1080 | i*86:*DOS:*:*) | 1010 | i*86:*DOS:*:*) |
4613 | @@ -1182,7 +1112,7 @@ | |||
4614 | 1182 | rs6000:LynxOS:2.*:*) | 1112 | rs6000:LynxOS:2.*:*) |
4615 | 1183 | echo rs6000-unknown-lynxos${UNAME_RELEASE} | 1113 | echo rs6000-unknown-lynxos${UNAME_RELEASE} |
4616 | 1184 | exit ;; | 1114 | exit ;; |
4618 | 1185 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) | 1115 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
4619 | 1186 | echo powerpc-unknown-lynxos${UNAME_RELEASE} | 1116 | echo powerpc-unknown-lynxos${UNAME_RELEASE} |
4620 | 1187 | exit ;; | 1117 | exit ;; |
4621 | 1188 | SM[BE]S:UNIX_SV:*:*) | 1118 | SM[BE]S:UNIX_SV:*:*) |
4622 | @@ -1275,6 +1205,16 @@ | |||
4623 | 1275 | *:Darwin:*:*) | 1205 | *:Darwin:*:*) |
4624 | 1276 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | 1206 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
4625 | 1277 | case $UNAME_PROCESSOR in | 1207 | case $UNAME_PROCESSOR in |
4626 | 1208 | i386) | ||
4627 | 1209 | eval $set_cc_for_build | ||
4628 | 1210 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | ||
4629 | 1211 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | ||
4630 | 1212 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | ||
4631 | 1213 | grep IS_64BIT_ARCH >/dev/null | ||
4632 | 1214 | then | ||
4633 | 1215 | UNAME_PROCESSOR="x86_64" | ||
4634 | 1216 | fi | ||
4635 | 1217 | fi ;; | ||
4636 | 1278 | unknown) UNAME_PROCESSOR=powerpc ;; | 1218 | unknown) UNAME_PROCESSOR=powerpc ;; |
4637 | 1279 | esac | 1219 | esac |
4638 | 1280 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | 1220 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
4639 | 1281 | 1221 | ||
4640 | === modified file 'config.h.in' | |||
4641 | --- config.h.in 2010-03-30 19:58:47 +0000 | |||
4642 | +++ config.h.in 2010-09-27 20:34:40 +0000 | |||
4643 | @@ -73,6 +73,9 @@ | |||
4644 | 73 | /* Define to the one symbol short name of this package. */ | 73 | /* Define to the one symbol short name of this package. */ |
4645 | 74 | #undef PACKAGE_TARNAME | 74 | #undef PACKAGE_TARNAME |
4646 | 75 | 75 | ||
4647 | 76 | /* Define to the home page for this package. */ | ||
4648 | 77 | #undef PACKAGE_URL | ||
4649 | 78 | |||
4650 | 76 | /* Define to the version of this package. */ | 79 | /* Define to the version of this package. */ |
4651 | 77 | #undef PACKAGE_VERSION | 80 | #undef PACKAGE_VERSION |
4652 | 78 | 81 | ||
4653 | 79 | 82 | ||
4654 | === modified file 'config.sub' | |||
4655 | --- config.sub 2010-03-30 19:58:47 +0000 | |||
4656 | +++ config.sub 2010-09-27 20:34:40 +0000 | |||
4657 | @@ -1,10 +1,10 @@ | |||
4658 | 1 | #! /bin/sh | 1 | #! /bin/sh |
4659 | 2 | # Configuration validation subroutine script. | 2 | # Configuration validation subroutine script. |
4660 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4662 | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
4663 | 5 | # Free Software Foundation, Inc. | 5 | # Free Software Foundation, Inc. |
4664 | 6 | 6 | ||
4666 | 7 | timestamp='2009-04-17' | 7 | timestamp='2009-11-20' |
4667 | 8 | 8 | ||
4668 | 9 | # This file is (in principle) common to ALL GNU software. | 9 | # This file is (in principle) common to ALL GNU software. |
4669 | 10 | # The presence of a machine in this file suggests that SOME GNU software | 10 | # The presence of a machine in this file suggests that SOME GNU software |
4670 | @@ -32,13 +32,16 @@ | |||
4671 | 32 | 32 | ||
4672 | 33 | 33 | ||
4673 | 34 | # Please send patches to <config-patches@gnu.org>. Submit a context | 34 | # Please send patches to <config-patches@gnu.org>. Submit a context |
4675 | 35 | # diff and a properly formatted ChangeLog entry. | 35 | # diff and a properly formatted GNU ChangeLog entry. |
4676 | 36 | # | 36 | # |
4677 | 37 | # Configuration subroutine to validate and canonicalize a configuration type. | 37 | # Configuration subroutine to validate and canonicalize a configuration type. |
4678 | 38 | # Supply the specified configuration type as an argument. | 38 | # Supply the specified configuration type as an argument. |
4679 | 39 | # If it is invalid, we print an error message on stderr and exit with code 1. | 39 | # If it is invalid, we print an error message on stderr and exit with code 1. |
4680 | 40 | # Otherwise, we print the canonical config type on stdout and succeed. | 40 | # Otherwise, we print the canonical config type on stdout and succeed. |
4681 | 41 | 41 | ||
4682 | 42 | # You can get the latest version of this script from: | ||
4683 | 43 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | ||
4684 | 44 | |||
4685 | 42 | # This file is supposed to be the same for all GNU packages | 45 | # This file is supposed to be the same for all GNU packages |
4686 | 43 | # and recognize all the CPU types, system types and aliases | 46 | # and recognize all the CPU types, system types and aliases |
4687 | 44 | # that are meaningful with *any* GNU software. | 47 | # that are meaningful with *any* GNU software. |
4688 | @@ -149,10 +152,13 @@ | |||
4689 | 149 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | 152 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
4690 | 150 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | 153 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
4691 | 151 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | 154 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
4693 | 152 | -apple | -axis | -knuth | -cray) | 155 | -apple | -axis | -knuth | -cray | -microblaze) |
4694 | 153 | os= | 156 | os= |
4695 | 154 | basic_machine=$1 | 157 | basic_machine=$1 |
4696 | 155 | ;; | 158 | ;; |
4697 | 159 | -bluegene*) | ||
4698 | 160 | os=-cnk | ||
4699 | 161 | ;; | ||
4700 | 156 | -sim | -cisco | -oki | -wec | -winbond) | 162 | -sim | -cisco | -oki | -wec | -winbond) |
4701 | 157 | os= | 163 | os= |
4702 | 158 | basic_machine=$1 | 164 | basic_machine=$1 |
4703 | @@ -281,6 +287,7 @@ | |||
4704 | 281 | | pdp10 | pdp11 | pj | pjl \ | 287 | | pdp10 | pdp11 | pj | pjl \ |
4705 | 282 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | 288 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
4706 | 283 | | pyramid \ | 289 | | pyramid \ |
4707 | 290 | | rx \ | ||
4708 | 284 | | score \ | 291 | | score \ |
4709 | 285 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | 292 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
4710 | 286 | | sh64 | sh64le \ | 293 | | sh64 | sh64le \ |
4711 | @@ -288,13 +295,14 @@ | |||
4712 | 288 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | 295 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
4713 | 289 | | spu | strongarm \ | 296 | | spu | strongarm \ |
4714 | 290 | | tahoe | thumb | tic4x | tic80 | tron \ | 297 | | tahoe | thumb | tic4x | tic80 | tron \ |
4715 | 298 | | ubicom32 \ | ||
4716 | 291 | | v850 | v850e \ | 299 | | v850 | v850e \ |
4717 | 292 | | we32k \ | 300 | | we32k \ |
4718 | 293 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | 301 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ |
4719 | 294 | | z8k | z80) | 302 | | z8k | z80) |
4720 | 295 | basic_machine=$basic_machine-unknown | 303 | basic_machine=$basic_machine-unknown |
4721 | 296 | ;; | 304 | ;; |
4723 | 297 | m6811 | m68hc11 | m6812 | m68hc12) | 305 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
4724 | 298 | # Motorola 68HC11/12. | 306 | # Motorola 68HC11/12. |
4725 | 299 | basic_machine=$basic_machine-unknown | 307 | basic_machine=$basic_machine-unknown |
4726 | 300 | os=-none | 308 | os=-none |
4727 | @@ -337,7 +345,7 @@ | |||
4728 | 337 | | lm32-* \ | 345 | | lm32-* \ |
4729 | 338 | | m32c-* | m32r-* | m32rle-* \ | 346 | | m32c-* | m32r-* | m32rle-* \ |
4730 | 339 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | 347 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
4732 | 340 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | 348 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ |
4733 | 341 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | 349 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
4734 | 342 | | mips16-* \ | 350 | | mips16-* \ |
4735 | 343 | | mips64-* | mips64el-* \ | 351 | | mips64-* | mips64el-* \ |
4736 | @@ -365,7 +373,7 @@ | |||
4737 | 365 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | 373 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
4738 | 366 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | 374 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
4739 | 367 | | pyramid-* \ | 375 | | pyramid-* \ |
4741 | 368 | | romp-* | rs6000-* \ | 376 | | romp-* | rs6000-* | rx-* \ |
4742 | 369 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | 377 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
4743 | 370 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | 378 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
4744 | 371 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | 379 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
4745 | @@ -374,6 +382,7 @@ | |||
4746 | 374 | | tahoe-* | thumb-* \ | 382 | | tahoe-* | thumb-* \ |
4747 | 375 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | 383 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ |
4748 | 376 | | tron-* \ | 384 | | tron-* \ |
4749 | 385 | | ubicom32-* \ | ||
4750 | 377 | | v850-* | v850e-* | vax-* \ | 386 | | v850-* | v850e-* | vax-* \ |
4751 | 378 | | we32k-* \ | 387 | | we32k-* \ |
4752 | 379 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | 388 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
4753 | @@ -467,6 +476,10 @@ | |||
4754 | 467 | basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | 476 | basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` |
4755 | 468 | os=-linux | 477 | os=-linux |
4756 | 469 | ;; | 478 | ;; |
4757 | 479 | bluegene*) | ||
4758 | 480 | basic_machine=powerpc-ibm | ||
4759 | 481 | os=-cnk | ||
4760 | 482 | ;; | ||
4761 | 470 | c90) | 483 | c90) |
4762 | 471 | basic_machine=c90-cray | 484 | basic_machine=c90-cray |
4763 | 472 | os=-unicos | 485 | os=-unicos |
4764 | @@ -719,6 +732,9 @@ | |||
4765 | 719 | basic_machine=ns32k-utek | 732 | basic_machine=ns32k-utek |
4766 | 720 | os=-sysv | 733 | os=-sysv |
4767 | 721 | ;; | 734 | ;; |
4768 | 735 | microblaze) | ||
4769 | 736 | basic_machine=microblaze-xilinx | ||
4770 | 737 | ;; | ||
4771 | 722 | mingw32) | 738 | mingw32) |
4772 | 723 | basic_machine=i386-pc | 739 | basic_machine=i386-pc |
4773 | 724 | os=-mingw32 | 740 | os=-mingw32 |
4774 | @@ -1240,6 +1256,9 @@ | |||
4775 | 1240 | # First match some system type aliases | 1256 | # First match some system type aliases |
4776 | 1241 | # that might get confused with valid system types. | 1257 | # that might get confused with valid system types. |
4777 | 1242 | # -solaris* is a basic system type, with this one exception. | 1258 | # -solaris* is a basic system type, with this one exception. |
4778 | 1259 | -auroraux) | ||
4779 | 1260 | os=-auroraux | ||
4780 | 1261 | ;; | ||
4781 | 1243 | -solaris1 | -solaris1.*) | 1262 | -solaris1 | -solaris1.*) |
4782 | 1244 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | 1263 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
4783 | 1245 | ;; | 1264 | ;; |
4784 | @@ -1260,9 +1279,9 @@ | |||
4785 | 1260 | # Each alternative MUST END IN A *, to match a version number. | 1279 | # Each alternative MUST END IN A *, to match a version number. |
4786 | 1261 | # -sysv* is not here because it comes later, after sysvr4. | 1280 | # -sysv* is not here because it comes later, after sysvr4. |
4787 | 1262 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | 1281 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
4791 | 1263 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | 1282 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
4792 | 1264 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | 1283 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
4793 | 1265 | | -kopensolaris* \ | 1284 | | -sym* | -kopensolaris* \ |
4794 | 1266 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | 1285 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
4795 | 1267 | | -aos* | -aros* \ | 1286 | | -aos* | -aros* \ |
4796 | 1268 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | 1287 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
4797 | @@ -1283,7 +1302,7 @@ | |||
4798 | 1283 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | 1302 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
4799 | 1284 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | 1303 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
4800 | 1285 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | 1304 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
4802 | 1286 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) | 1305 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) |
4803 | 1287 | # Remember, each alternative MUST END IN *, to match a version number. | 1306 | # Remember, each alternative MUST END IN *, to match a version number. |
4804 | 1288 | ;; | 1307 | ;; |
4805 | 1289 | -qnx*) | 1308 | -qnx*) |
4806 | @@ -1613,7 +1632,7 @@ | |||
4807 | 1613 | -sunos*) | 1632 | -sunos*) |
4808 | 1614 | vendor=sun | 1633 | vendor=sun |
4809 | 1615 | ;; | 1634 | ;; |
4811 | 1616 | -aix*) | 1635 | -cnk*|-aix*) |
4812 | 1617 | vendor=ibm | 1636 | vendor=ibm |
4813 | 1618 | ;; | 1637 | ;; |
4814 | 1619 | -beos*) | 1638 | -beos*) |
4815 | 1620 | 1639 | ||
4816 | === modified file 'configure' | |||
4817 | --- configure 2010-04-01 21:42:40 +0000 | |||
4818 | +++ configure 2010-09-27 20:34:40 +0000 | |||
4819 | @@ -1,20 +1,24 @@ | |||
4820 | 1 | #! /bin/sh | 1 | #! /bin/sh |
4821 | 2 | # Guess values for system-dependent variables and create Makefiles. | 2 | # Guess values for system-dependent variables and create Makefiles. |
4823 | 3 | # Generated by GNU Autoconf 2.63 for libgnomecanvas 2.30.1. | 3 | # Generated by GNU Autoconf 2.66 for libgnomecanvas 2.30.2. |
4824 | 4 | # | 4 | # |
4825 | 5 | # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas>. | 5 | # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas>. |
4826 | 6 | # | 6 | # |
4827 | 7 | # | ||
4828 | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
4830 | 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
4831 | 10 | # Foundation, Inc. | ||
4832 | 11 | # | ||
4833 | 12 | # | ||
4834 | 9 | # This configure script is free software; the Free Software Foundation | 13 | # This configure script is free software; the Free Software Foundation |
4835 | 10 | # gives unlimited permission to copy, distribute and modify it. | 14 | # gives unlimited permission to copy, distribute and modify it. |
4839 | 11 | ## --------------------- ## | 15 | ## -------------------- ## |
4840 | 12 | ## M4sh Initialization. ## | 16 | ## M4sh Initialization. ## |
4841 | 13 | ## --------------------- ## | 17 | ## -------------------- ## |
4842 | 14 | 18 | ||
4843 | 15 | # Be more Bourne compatible | 19 | # Be more Bourne compatible |
4844 | 16 | DUALCASE=1; export DUALCASE # for MKS sh | 20 | DUALCASE=1; export DUALCASE # for MKS sh |
4846 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
4847 | 18 | emulate sh | 22 | emulate sh |
4848 | 19 | NULLCMD=: | 23 | NULLCMD=: |
4849 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4850 | @@ -22,23 +26,15 @@ | |||
4851 | 22 | alias -g '${1+"$@"}'='"$@"' | 26 | alias -g '${1+"$@"}'='"$@"' |
4852 | 23 | setopt NO_GLOB_SUBST | 27 | setopt NO_GLOB_SUBST |
4853 | 24 | else | 28 | else |
4856 | 25 | case `(set -o) 2>/dev/null` in | 29 | case `(set -o) 2>/dev/null` in #( |
4857 | 26 | *posix*) set -o posix ;; | 30 | *posix*) : |
4858 | 31 | set -o posix ;; #( | ||
4859 | 32 | *) : | ||
4860 | 33 | ;; | ||
4861 | 27 | esac | 34 | esac |
4862 | 28 | |||
4863 | 29 | fi | 35 | fi |
4864 | 30 | 36 | ||
4865 | 31 | 37 | ||
4866 | 32 | |||
4867 | 33 | |||
4868 | 34 | # PATH needs CR | ||
4869 | 35 | # Avoid depending upon Character Ranges. | ||
4870 | 36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
4871 | 37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
4872 | 38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
4873 | 39 | as_cr_digits='0123456789' | ||
4874 | 40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
4875 | 41 | |||
4876 | 42 | as_nl=' | 38 | as_nl=' |
4877 | 43 | ' | 39 | ' |
4878 | 44 | export as_nl | 40 | export as_nl |
4879 | @@ -46,7 +42,13 @@ | |||
4880 | 46 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
4881 | 47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
4882 | 48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
4884 | 49 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
4885 | 46 | # but without wasting forks for bash or zsh. | ||
4886 | 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
4887 | 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
4888 | 49 | as_echo='print -r --' | ||
4889 | 50 | as_echo_n='print -rn --' | ||
4890 | 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
4891 | 50 | as_echo='printf %s\n' | 52 | as_echo='printf %s\n' |
4892 | 51 | as_echo_n='printf %s' | 53 | as_echo_n='printf %s' |
4893 | 52 | else | 54 | else |
4894 | @@ -57,7 +59,7 @@ | |||
4895 | 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
4896 | 58 | as_echo_n_body='eval | 60 | as_echo_n_body='eval |
4897 | 59 | arg=$1; | 61 | arg=$1; |
4899 | 60 | case $arg in | 62 | case $arg in #( |
4900 | 61 | *"$as_nl"*) | 63 | *"$as_nl"*) |
4901 | 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
4902 | 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
4903 | @@ -80,13 +82,6 @@ | |||
4904 | 80 | } | 82 | } |
4905 | 81 | fi | 83 | fi |
4906 | 82 | 84 | ||
4907 | 83 | # Support unset when possible. | ||
4908 | 84 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
4909 | 85 | as_unset=unset | ||
4910 | 86 | else | ||
4911 | 87 | as_unset=false | ||
4912 | 88 | fi | ||
4913 | 89 | |||
4914 | 90 | 85 | ||
4915 | 91 | # IFS | 86 | # IFS |
4916 | 92 | # We need space, tab and new line, in precisely that order. Quoting is | 87 | # We need space, tab and new line, in precisely that order. Quoting is |
4917 | @@ -96,15 +91,15 @@ | |||
4918 | 96 | IFS=" "" $as_nl" | 91 | IFS=" "" $as_nl" |
4919 | 97 | 92 | ||
4920 | 98 | # Find who we are. Look in the path if we contain no directory separator. | 93 | # Find who we are. Look in the path if we contain no directory separator. |
4922 | 99 | case $0 in | 94 | case $0 in #(( |
4923 | 100 | *[\\/]* ) as_myself=$0 ;; | 95 | *[\\/]* ) as_myself=$0 ;; |
4924 | 101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4925 | 102 | for as_dir in $PATH | 97 | for as_dir in $PATH |
4926 | 103 | do | 98 | do |
4927 | 104 | IFS=$as_save_IFS | 99 | IFS=$as_save_IFS |
4928 | 105 | test -z "$as_dir" && as_dir=. | 100 | test -z "$as_dir" && as_dir=. |
4931 | 106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
4932 | 107 | done | 102 | done |
4933 | 108 | IFS=$as_save_IFS | 103 | IFS=$as_save_IFS |
4934 | 109 | 104 | ||
4935 | 110 | ;; | 105 | ;; |
4936 | @@ -116,12 +111,16 @@ | |||
4937 | 116 | fi | 111 | fi |
4938 | 117 | if test ! -f "$as_myself"; then | 112 | if test ! -f "$as_myself"; then |
4939 | 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
4941 | 119 | { (exit 1); exit 1; } | 114 | exit 1 |
4942 | 120 | fi | 115 | fi |
4943 | 121 | 116 | ||
4947 | 122 | # Work around bugs in pre-3.0 UWIN ksh. | 117 | # Unset variables that we do not need and which cause bugs (e.g. in |
4948 | 123 | for as_var in ENV MAIL MAILPATH | 118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
4949 | 124 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 119 | # suppresses any "Segmentation fault" message there. '((' could |
4950 | 120 | # trigger a bug in pdksh 5.2.14. | ||
4951 | 121 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
4952 | 122 | do eval test x\${$as_var+set} = xset \ | ||
4953 | 123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
4954 | 125 | done | 124 | done |
4955 | 126 | PS1='$ ' | 125 | PS1='$ ' |
4956 | 127 | PS2='> ' | 126 | PS2='> ' |
4957 | @@ -133,330 +132,309 @@ | |||
4958 | 133 | LANGUAGE=C | 132 | LANGUAGE=C |
4959 | 134 | export LANGUAGE | 133 | export LANGUAGE |
4960 | 135 | 134 | ||
4961 | 136 | # Required to use basename. | ||
4962 | 137 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
4963 | 138 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
4964 | 139 | as_expr=expr | ||
4965 | 140 | else | ||
4966 | 141 | as_expr=false | ||
4967 | 142 | fi | ||
4968 | 143 | |||
4969 | 144 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
4970 | 145 | as_basename=basename | ||
4971 | 146 | else | ||
4972 | 147 | as_basename=false | ||
4973 | 148 | fi | ||
4974 | 149 | |||
4975 | 150 | |||
4976 | 151 | # Name of the executable. | ||
4977 | 152 | as_me=`$as_basename -- "$0" || | ||
4978 | 153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
4979 | 154 | X"$0" : 'X\(//\)$' \| \ | ||
4980 | 155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
4981 | 156 | $as_echo X/"$0" | | ||
4982 | 157 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
4983 | 158 | s//\1/ | ||
4984 | 159 | q | ||
4985 | 160 | } | ||
4986 | 161 | /^X\/\(\/\/\)$/{ | ||
4987 | 162 | s//\1/ | ||
4988 | 163 | q | ||
4989 | 164 | } | ||
4990 | 165 | /^X\/\(\/\).*/{ | ||
4991 | 166 | s//\1/ | ||
4992 | 167 | q | ||
4993 | 168 | } | ||
4994 | 169 | s/.*/./; q'` | ||
4995 | 170 | |||
4996 | 171 | # CDPATH. | 135 | # CDPATH. |
4999 | 172 | $as_unset CDPATH | 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
4998 | 173 | |||
5000 | 174 | 137 |
The diff has been truncated for viewing.