Merge lp:~victored/indicator-sound/lp-1014955 into lp:indicator-sound/12.10
- lp-1014955
- Merge into trunk.12.10
Proposed by
Conor Curran
Status: | Merged |
---|---|
Merge reported by: | Conor Curran |
Merged at revision: | not available |
Proposed branch: | lp:~victored/indicator-sound/lp-1014955 |
Merge into: | lp:indicator-sound/12.10 |
Diff against target: |
66791 lines (+64977/-1041) (has conflicts) 72 files modified
.bzrignore (+0/-90) INSTALL (+370/-0) Makefile.am.coverage (+48/-0) Makefile.in (+853/-0) aclocal.m4 (+10680/-0) compile (+310/-0) config.guess (+1530/-0) config.h.in (+89/-0) config.sub (+1773/-0) configure (+17597/-0) data/Makefile.in (+689/-0) data/com.canonical.indicator.sound.gschema.xml (+7/-0) data/icons/16x16/Makefile.in (+620/-0) data/icons/16x16/status/Makefile.in (+474/-0) data/icons/Makefile.in (+635/-0) data/icons/scalable/Makefile.in (+620/-0) data/icons/scalable/status/Makefile.in (+474/-0) debian/changelog (+838/-0) debian/compat (+1/-0) debian/control (+48/-0) debian/copyright (+37/-0) debian/indicator-sound-gtk2.install (+1/-0) debian/indicator-sound.install (+1/-0) debian/patches/lp_902715.patch (+50/-0) debian/patches/lp_992262.patch (+365/-0) debian/patches/series (+5/-0) debian/patches/sound_nua.patch (+20/-0) debian/patches/sound_ubuntustudio.patch (+18/-0) debian/patches/sound_xubuntu.patch (+17/-0) debian/rules (+25/-0) debian/source/format (+1/-0) debian/watch (+2/-0) depcomp (+688/-0) install-sh (+527/-0) ltmain.sh (+9661/-0) missing (+331/-0) mkinstalldirs (+162/-0) po/Makefile.in.in (+222/-0) src/Makefile.in (+1314/-0) src/fetch-file.c (+561/-0) src/fetch-file.vala (+0/-86) src/freedesktop-interfaces.c (+862/-0) src/gen-sound-service.xml.c (+36/-0) src/gen-sound-service.xml.h (+1/-0) src/metadata-menu-item.c (+863/-0) src/mpris2-controller.c (+1769/-0) src/mpris2-interfaces.c (+2655/-0) src/mpris2-watcher.c (+838/-0) src/music-player-bridge.c (+1420/-0) src/music-player-bridge.h (+605/-0) src/music-player-bridge.vala (+84/-2) src/player-controller.c (+1082/-0) src/player-controller.vala (+21/-4) src/player-item.c (+598/-0) src/player-item.vala (+0/-104) src/playlists-menu-item.c (+873/-0) src/scrub-menu-item.vala (+0/-56) src/settings-manager.c (+491/-0) src/settings-manager.vala (+24/-2) src/sound-service-marshal.c (+89/-0) src/sound-service-marshal.h (+20/-0) src/specific-items-manager.c (+598/-0) src/transport-menu-item.c (+384/-0) tests/Makefile.am (+0/-151) tests/mockpulse.c (+0/-105) tests/mockpulse.h (+0/-26) tests/run-xvfb.sh (+0/-8) tests/test-defines.h (+0/-25) tests/test-indicator-sound-dbus-client.c (+0/-110) tests/test-indicator-sound-dbus-server.c (+0/-63) tests/test-pulse-manager.c (+0/-139) vapi/common-defs.vapi (+0/-70) Conflict adding file Makefile.am.coverage. Moved existing file to Makefile.am.coverage.moved. Text conflict in src/music-player-bridge.vala Text conflict in src/player-controller.vala Conflict: can't delete tests because it is not empty. Not deleting. Conflict because tests is not versioned, but has versioned children. Versioned directory. Contents conflict in tests/test-indicator-sound.c |
To merge this branch: | bzr merge lp:~victored/indicator-sound/lp-1014955 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Conor Curran (community) | Approve | ||
Review via email: mp+111439@code.launchpad.net |
Commit message
Description of the change
Allows easy access to change the preferred media player through gsettings. Very useful for the user who cares about their music player.
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 | === removed file '.bzrignore' |
2 | --- .bzrignore 2011-10-26 16:30:16 +0000 |
3 | +++ .bzrignore 1970-01-01 00:00:00 +0000 |
4 | @@ -1,90 +0,0 @@ |
5 | -*.o |
6 | -*~ |
7 | -compile |
8 | -m4 |
9 | -depcomp |
10 | -Makefile.in |
11 | -Makefile |
12 | -configure |
13 | -aclocal.m4 |
14 | -autom4te.cache |
15 | -config.guess |
16 | -config.h |
17 | -config.h.in |
18 | -config.log |
19 | -config.status |
20 | -config.ac |
21 | -configure |
22 | -config.sub.cdbs-orig |
23 | -install-sh |
24 | -INSTALL |
25 | -libtool |
26 | -ltmain.sh |
27 | -missing |
28 | -mkinstalldirs |
29 | -ruby_dbus_scripts |
30 | -stamp-h1 |
31 | -data/indicator-sound.schemas |
32 | -data/Makefile.in |
33 | -data/Makefile |
34 | -data/indicator-sound.service |
35 | -.deps |
36 | -.libs |
37 | -po/stamp-it |
38 | -po/POTFILES |
39 | -po/.intltool-merge-cache |
40 | -po/Makefile.in.in |
41 | -config.h |
42 | -config.log |
43 | -config.sub |
44 | -src/Makefile |
45 | -src/Makefile.in |
46 | -src/libsoundmenu.la |
47 | -src/indicator-sound-service |
48 | -src/sound-service-client.h |
49 | -src/sound-service-server.h |
50 | -src/sound-service-marshal.c |
51 | -src/sound-service-marshal.h |
52 | -src/sound_service_outtakes.txt |
53 | -src/libsoundmenu_la-indicator-sound.lo |
54 | -src/libsoundmenu_la-sound-service-marshal.lo |
55 | -ruby_dbus_scripts/dbus_monitor.rb |
56 | - |
57 | -.anjuta |
58 | -.anjuta_sym_db.db |
59 | -TODO.tasks |
60 | -make_output.txt |
61 | -swap-over.anjuta |
62 | -src/fetch-file.c |
63 | -src/freedesktop-interfaces.c |
64 | -src/gen-sound-service.xml.c |
65 | -src/gen-sound-service.xml.h |
66 | -src/libsoundmenu_la-metadata-widget.lo |
67 | -src/libsoundmenu_la-title-widget.lo |
68 | -src/libsoundmenu_la-transport-widget.lo |
69 | -src/libsoundmenu_la-volume-widget.lo |
70 | -src/metadata-menu-item.c |
71 | -src/mpris2-controller.c |
72 | -src/mpris2-interfaces.c |
73 | -src/mpris2-watcher.c |
74 | -src/music-player-bridge.c |
75 | -src/music-player-bridge.h |
76 | -src/music_bridge_vala.stamp |
77 | -src/player-controller.c |
78 | -src/player-item.c |
79 | -src/playlists-menu-item.c |
80 | -src/settings-manager.c |
81 | -src/title-menu-item.c |
82 | -src/transport-menu-item.c |
83 | -modified: |
84 | -src/indicator-sound.c |
85 | -data/com.canonical.indicators.sound.gschema.valid |
86 | -tests/libmockpulse.la |
87 | -tests/libmockpulse_la-mockpulse.lo |
88 | -src/libsoundmenu_la-gen-sound-service.xml.lo |
89 | -src/libsoundmenu_la-mute-widget.lo |
90 | -src/libsoundmenu_la-sound-state-manager.lo |
91 | -src/libsoundmenu_la-sound-state.lo |
92 | -src/libsoundmenu_la-voip-input-widget.lo |
93 | -src/specific-items-manager.c |
94 | -src/stamp-marshal |
95 | |
96 | === added file 'INSTALL' |
97 | --- INSTALL 1970-01-01 00:00:00 +0000 |
98 | +++ INSTALL 2012-06-21 16:16:33 +0000 |
99 | @@ -0,0 +1,370 @@ |
100 | +Installation Instructions |
101 | +************************* |
102 | + |
103 | +Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation, |
104 | +Inc. |
105 | + |
106 | + Copying and distribution of this file, with or without modification, |
107 | +are permitted in any medium without royalty provided the copyright |
108 | +notice and this notice are preserved. This file is offered as-is, |
109 | +without warranty of any kind. |
110 | + |
111 | +Basic Installation |
112 | +================== |
113 | + |
114 | + Briefly, the shell commands `./configure; make; make install' should |
115 | +configure, build, and install this package. The following |
116 | +more-detailed instructions are generic; see the `README' file for |
117 | +instructions specific to this package. Some packages provide this |
118 | +`INSTALL' file but do not implement all of the features documented |
119 | +below. The lack of an optional feature in a given package is not |
120 | +necessarily a bug. More recommendations for GNU packages can be found |
121 | +in *note Makefile Conventions: (standards)Makefile Conventions. |
122 | + |
123 | + The `configure' shell script attempts to guess correct values for |
124 | +various system-dependent variables used during compilation. It uses |
125 | +those values to create a `Makefile' in each directory of the package. |
126 | +It may also create one or more `.h' files containing system-dependent |
127 | +definitions. Finally, it creates a shell script `config.status' that |
128 | +you can run in the future to recreate the current configuration, and a |
129 | +file `config.log' containing compiler output (useful mainly for |
130 | +debugging `configure'). |
131 | + |
132 | + It can also use an optional file (typically called `config.cache' |
133 | +and enabled with `--cache-file=config.cache' or simply `-C') that saves |
134 | +the results of its tests to speed up reconfiguring. Caching is |
135 | +disabled by default to prevent problems with accidental use of stale |
136 | +cache files. |
137 | + |
138 | + If you need to do unusual things to compile the package, please try |
139 | +to figure out how `configure' could check whether to do them, and mail |
140 | +diffs or instructions to the address given in the `README' so they can |
141 | +be considered for the next release. If you are using the cache, and at |
142 | +some point `config.cache' contains results you don't want to keep, you |
143 | +may remove or edit it. |
144 | + |
145 | + The file `configure.ac' (or `configure.in') is used to create |
146 | +`configure' by a program called `autoconf'. You need `configure.ac' if |
147 | +you want to change it or regenerate `configure' using a newer version |
148 | +of `autoconf'. |
149 | + |
150 | + The simplest way to compile this package is: |
151 | + |
152 | + 1. `cd' to the directory containing the package's source code and type |
153 | + `./configure' to configure the package for your system. |
154 | + |
155 | + Running `configure' might take a while. While running, it prints |
156 | + some messages telling which features it is checking for. |
157 | + |
158 | + 2. Type `make' to compile the package. |
159 | + |
160 | + 3. Optionally, type `make check' to run any self-tests that come with |
161 | + the package, generally using the just-built uninstalled binaries. |
162 | + |
163 | + 4. Type `make install' to install the programs and any data files and |
164 | + documentation. When installing into a prefix owned by root, it is |
165 | + recommended that the package be configured and built as a regular |
166 | + user, and only the `make install' phase executed with root |
167 | + privileges. |
168 | + |
169 | + 5. Optionally, type `make installcheck' to repeat any self-tests, but |
170 | + this time using the binaries in their final installed location. |
171 | + This target does not install anything. Running this target as a |
172 | + regular user, particularly if the prior `make install' required |
173 | + root privileges, verifies that the installation completed |
174 | + correctly. |
175 | + |
176 | + 6. You can remove the program binaries and object files from the |
177 | + source code directory by typing `make clean'. To also remove the |
178 | + files that `configure' created (so you can compile the package for |
179 | + a different kind of computer), type `make distclean'. There is |
180 | + also a `make maintainer-clean' target, but that is intended mainly |
181 | + for the package's developers. If you use it, you may have to get |
182 | + all sorts of other programs in order to regenerate files that came |
183 | + with the distribution. |
184 | + |
185 | + 7. Often, you can also type `make uninstall' to remove the installed |
186 | + files again. In practice, not all packages have tested that |
187 | + uninstallation works correctly, even though it is required by the |
188 | + GNU Coding Standards. |
189 | + |
190 | + 8. Some packages, particularly those that use Automake, provide `make |
191 | + distcheck', which can by used by developers to test that all other |
192 | + targets like `make install' and `make uninstall' work correctly. |
193 | + This target is generally not run by end users. |
194 | + |
195 | +Compilers and Options |
196 | +===================== |
197 | + |
198 | + Some systems require unusual options for compilation or linking that |
199 | +the `configure' script does not know about. Run `./configure --help' |
200 | +for details on some of the pertinent environment variables. |
201 | + |
202 | + You can give `configure' initial values for configuration parameters |
203 | +by setting variables in the command line or in the environment. Here |
204 | +is an example: |
205 | + |
206 | + ./configure CC=c99 CFLAGS=-g LIBS=-lposix |
207 | + |
208 | + *Note Defining Variables::, for more details. |
209 | + |
210 | +Compiling For Multiple Architectures |
211 | +==================================== |
212 | + |
213 | + You can compile the package for more than one kind of computer at the |
214 | +same time, by placing the object files for each architecture in their |
215 | +own directory. To do this, you can use GNU `make'. `cd' to the |
216 | +directory where you want the object files and executables to go and run |
217 | +the `configure' script. `configure' automatically checks for the |
218 | +source code in the directory that `configure' is in and in `..'. This |
219 | +is known as a "VPATH" build. |
220 | + |
221 | + With a non-GNU `make', it is safer to compile the package for one |
222 | +architecture at a time in the source code directory. After you have |
223 | +installed the package for one architecture, use `make distclean' before |
224 | +reconfiguring for another architecture. |
225 | + |
226 | + On MacOS X 10.5 and later systems, you can create libraries and |
227 | +executables that work on multiple system types--known as "fat" or |
228 | +"universal" binaries--by specifying multiple `-arch' options to the |
229 | +compiler but only a single `-arch' option to the preprocessor. Like |
230 | +this: |
231 | + |
232 | + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ |
233 | + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ |
234 | + CPP="gcc -E" CXXCPP="g++ -E" |
235 | + |
236 | + This is not guaranteed to produce working output in all cases, you |
237 | +may have to build one architecture at a time and combine the results |
238 | +using the `lipo' tool if you have problems. |
239 | + |
240 | +Installation Names |
241 | +================== |
242 | + |
243 | + By default, `make install' installs the package's commands under |
244 | +`/usr/local/bin', include files under `/usr/local/include', etc. You |
245 | +can specify an installation prefix other than `/usr/local' by giving |
246 | +`configure' the option `--prefix=PREFIX', where PREFIX must be an |
247 | +absolute file name. |
248 | + |
249 | + You can specify separate installation prefixes for |
250 | +architecture-specific files and architecture-independent files. If you |
251 | +pass the option `--exec-prefix=PREFIX' to `configure', the package uses |
252 | +PREFIX as the prefix for installing programs and libraries. |
253 | +Documentation and other data files still use the regular prefix. |
254 | + |
255 | + In addition, if you use an unusual directory layout you can give |
256 | +options like `--bindir=DIR' to specify different values for particular |
257 | +kinds of files. Run `configure --help' for a list of the directories |
258 | +you can set and what kinds of files go in them. In general, the |
259 | +default for these options is expressed in terms of `${prefix}', so that |
260 | +specifying just `--prefix' will affect all of the other directory |
261 | +specifications that were not explicitly provided. |
262 | + |
263 | + The most portable way to affect installation locations is to pass the |
264 | +correct locations to `configure'; however, many packages provide one or |
265 | +both of the following shortcuts of passing variable assignments to the |
266 | +`make install' command line to change installation locations without |
267 | +having to reconfigure or recompile. |
268 | + |
269 | + The first method involves providing an override variable for each |
270 | +affected directory. For example, `make install |
271 | +prefix=/alternate/directory' will choose an alternate location for all |
272 | +directory configuration variables that were expressed in terms of |
273 | +`${prefix}'. Any directories that were specified during `configure', |
274 | +but not in terms of `${prefix}', must each be overridden at install |
275 | +time for the entire installation to be relocated. The approach of |
276 | +makefile variable overrides for each directory variable is required by |
277 | +the GNU Coding Standards, and ideally causes no recompilation. |
278 | +However, some platforms have known limitations with the semantics of |
279 | +shared libraries that end up requiring recompilation when using this |
280 | +method, particularly noticeable in packages that use GNU Libtool. |
281 | + |
282 | + The second method involves providing the `DESTDIR' variable. For |
283 | +example, `make install DESTDIR=/alternate/directory' will prepend |
284 | +`/alternate/directory' before all installation names. The approach of |
285 | +`DESTDIR' overrides is not required by the GNU Coding Standards, and |
286 | +does not work on platforms that have drive letters. On the other hand, |
287 | +it does better at avoiding recompilation issues, and works well even |
288 | +when some directory options were not specified in terms of `${prefix}' |
289 | +at `configure' time. |
290 | + |
291 | +Optional Features |
292 | +================= |
293 | + |
294 | + If the package supports it, you can cause programs to be installed |
295 | +with an extra prefix or suffix on their names by giving `configure' the |
296 | +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. |
297 | + |
298 | + Some packages pay attention to `--enable-FEATURE' options to |
299 | +`configure', where FEATURE indicates an optional part of the package. |
300 | +They may also pay attention to `--with-PACKAGE' options, where PACKAGE |
301 | +is something like `gnu-as' or `x' (for the X Window System). The |
302 | +`README' should mention any `--enable-' and `--with-' options that the |
303 | +package recognizes. |
304 | + |
305 | + For packages that use the X Window System, `configure' can usually |
306 | +find the X include and library files automatically, but if it doesn't, |
307 | +you can use the `configure' options `--x-includes=DIR' and |
308 | +`--x-libraries=DIR' to specify their locations. |
309 | + |
310 | + Some packages offer the ability to configure how verbose the |
311 | +execution of `make' will be. For these packages, running `./configure |
312 | +--enable-silent-rules' sets the default to minimal output, which can be |
313 | +overridden with `make V=1'; while running `./configure |
314 | +--disable-silent-rules' sets the default to verbose, which can be |
315 | +overridden with `make V=0'. |
316 | + |
317 | +Particular systems |
318 | +================== |
319 | + |
320 | + On HP-UX, the default C compiler is not ANSI C compatible. If GNU |
321 | +CC is not installed, it is recommended to use the following options in |
322 | +order to use an ANSI C compiler: |
323 | + |
324 | + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" |
325 | + |
326 | +and if that doesn't work, install pre-built binaries of GCC for HP-UX. |
327 | + |
328 | + HP-UX `make' updates targets which have the same time stamps as |
329 | +their prerequisites, which makes it generally unusable when shipped |
330 | +generated files such as `configure' are involved. Use GNU `make' |
331 | +instead. |
332 | + |
333 | + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot |
334 | +parse its `<wchar.h>' header file. The option `-nodtk' can be used as |
335 | +a workaround. If GNU CC is not installed, it is therefore recommended |
336 | +to try |
337 | + |
338 | + ./configure CC="cc" |
339 | + |
340 | +and if that doesn't work, try |
341 | + |
342 | + ./configure CC="cc -nodtk" |
343 | + |
344 | + On Solaris, don't put `/usr/ucb' early in your `PATH'. This |
345 | +directory contains several dysfunctional programs; working variants of |
346 | +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' |
347 | +in your `PATH', put it _after_ `/usr/bin'. |
348 | + |
349 | + On Haiku, software installed for all users goes in `/boot/common', |
350 | +not `/usr/local'. It is recommended to use the following options: |
351 | + |
352 | + ./configure --prefix=/boot/common |
353 | + |
354 | +Specifying the System Type |
355 | +========================== |
356 | + |
357 | + There may be some features `configure' cannot figure out |
358 | +automatically, but needs to determine by the type of machine the package |
359 | +will run on. Usually, assuming the package is built to be run on the |
360 | +_same_ architectures, `configure' can figure that out, but if it prints |
361 | +a message saying it cannot guess the machine type, give it the |
362 | +`--build=TYPE' option. TYPE can either be a short name for the system |
363 | +type, such as `sun4', or a canonical name which has the form: |
364 | + |
365 | + CPU-COMPANY-SYSTEM |
366 | + |
367 | +where SYSTEM can have one of these forms: |
368 | + |
369 | + OS |
370 | + KERNEL-OS |
371 | + |
372 | + See the file `config.sub' for the possible values of each field. If |
373 | +`config.sub' isn't included in this package, then this package doesn't |
374 | +need to know the machine type. |
375 | + |
376 | + If you are _building_ compiler tools for cross-compiling, you should |
377 | +use the option `--target=TYPE' to select the type of system they will |
378 | +produce code for. |
379 | + |
380 | + If you want to _use_ a cross compiler, that generates code for a |
381 | +platform different from the build platform, you should specify the |
382 | +"host" platform (i.e., that on which the generated programs will |
383 | +eventually be run) with `--host=TYPE'. |
384 | + |
385 | +Sharing Defaults |
386 | +================ |
387 | + |
388 | + If you want to set default values for `configure' scripts to share, |
389 | +you can create a site shell script called `config.site' that gives |
390 | +default values for variables like `CC', `cache_file', and `prefix'. |
391 | +`configure' looks for `PREFIX/share/config.site' if it exists, then |
392 | +`PREFIX/etc/config.site' if it exists. Or, you can set the |
393 | +`CONFIG_SITE' environment variable to the location of the site script. |
394 | +A warning: not all `configure' scripts look for a site script. |
395 | + |
396 | +Defining Variables |
397 | +================== |
398 | + |
399 | + Variables not defined in a site shell script can be set in the |
400 | +environment passed to `configure'. However, some packages may run |
401 | +configure again during the build, and the customized values of these |
402 | +variables may be lost. In order to avoid this problem, you should set |
403 | +them in the `configure' command line, using `VAR=value'. For example: |
404 | + |
405 | + ./configure CC=/usr/local2/bin/gcc |
406 | + |
407 | +causes the specified `gcc' to be used as the C compiler (unless it is |
408 | +overridden in the site shell script). |
409 | + |
410 | +Unfortunately, this technique does not work for `CONFIG_SHELL' due to |
411 | +an Autoconf bug. Until the bug is fixed you can use this workaround: |
412 | + |
413 | + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash |
414 | + |
415 | +`configure' Invocation |
416 | +====================== |
417 | + |
418 | + `configure' recognizes the following options to control how it |
419 | +operates. |
420 | + |
421 | +`--help' |
422 | +`-h' |
423 | + Print a summary of all of the options to `configure', and exit. |
424 | + |
425 | +`--help=short' |
426 | +`--help=recursive' |
427 | + Print a summary of the options unique to this package's |
428 | + `configure', and exit. The `short' variant lists options used |
429 | + only in the top level, while the `recursive' variant lists options |
430 | + also present in any nested packages. |
431 | + |
432 | +`--version' |
433 | +`-V' |
434 | + Print the version of Autoconf used to generate the `configure' |
435 | + script, and exit. |
436 | + |
437 | +`--cache-file=FILE' |
438 | + Enable the cache: use and save the results of the tests in FILE, |
439 | + traditionally `config.cache'. FILE defaults to `/dev/null' to |
440 | + disable caching. |
441 | + |
442 | +`--config-cache' |
443 | +`-C' |
444 | + Alias for `--cache-file=config.cache'. |
445 | + |
446 | +`--quiet' |
447 | +`--silent' |
448 | +`-q' |
449 | + Do not print messages saying which checks are being made. To |
450 | + suppress all normal output, redirect it to `/dev/null' (any error |
451 | + messages will still be shown). |
452 | + |
453 | +`--srcdir=DIR' |
454 | + Look for the package's source code in directory DIR. Usually |
455 | + `configure' can determine that directory automatically. |
456 | + |
457 | +`--prefix=DIR' |
458 | + Use DIR as the installation prefix. *note Installation Names:: |
459 | + for more details, including other options available for fine-tuning |
460 | + the installation locations. |
461 | + |
462 | +`--no-create' |
463 | +`-n' |
464 | + Run the configure checks, but stop before creating any output |
465 | + files. |
466 | + |
467 | +`configure' also accepts some other, not widely useful, options. Run |
468 | +`configure --help' for more details. |
469 | + |
470 | |
471 | === added file 'Makefile.am.coverage' |
472 | --- Makefile.am.coverage 1970-01-01 00:00:00 +0000 |
473 | +++ Makefile.am.coverage 2012-06-21 16:16:33 +0000 |
474 | @@ -0,0 +1,48 @@ |
475 | + |
476 | +# Coverage targets |
477 | + |
478 | +.PHONY: clean-gcno clean-gcda \ |
479 | + coverage-html generate-coverage-html clean-coverage-html \ |
480 | + coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr |
481 | + |
482 | +clean-local: clean-gcno clean-coverage-html clean-coverage-gcovr |
483 | + |
484 | +if HAVE_GCOV |
485 | + |
486 | +clean-gcno: |
487 | + @echo Removing old coverage instrumentation |
488 | + -find -name '*.gcno' -print | xargs -r rm |
489 | + |
490 | +clean-gcda: |
491 | + @echo Removing old coverage results |
492 | + -find -name '*.gcda' -print | xargs -r rm |
493 | + |
494 | +coverage-html: clean-gcda |
495 | + -$(MAKE) $(AM_MAKEFLAGS) -k check |
496 | + $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html |
497 | + |
498 | +generate-coverage-html: |
499 | + @echo Collecting coverage data |
500 | + $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool |
501 | + LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info |
502 | + |
503 | +clean-coverage-html: clean-gcda |
504 | + -$(LCOV) --directory $(top_builddir) -z |
505 | + -rm -rf coverage.info coveragereport |
506 | + |
507 | +if HAVE_GCOVR |
508 | + |
509 | +coverage-gcovr: clean-gcda |
510 | + -$(MAKE) $(AM_MAKEFLAGS) -k check |
511 | + $(MAKE) $(AM_MAKEFLAGS) generate-coverage-gcovr |
512 | + |
513 | +generate-coverage-gcovr: |
514 | + @echo Generating coverage GCOVR report |
515 | + $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml |
516 | + |
517 | +clean-coverage-gcovr: clean-gcda |
518 | + -rm -rf $(top_builddir)/coverage.xml |
519 | + |
520 | +endif # HAVE_GCOVR |
521 | + |
522 | +endif # HAVE_GCOV |
523 | |
524 | === renamed file 'Makefile.am.coverage' => 'Makefile.am.coverage.moved' |
525 | === added file 'Makefile.in' |
526 | --- Makefile.in 1970-01-01 00:00:00 +0000 |
527 | +++ Makefile.in 2012-06-21 16:16:33 +0000 |
528 | @@ -0,0 +1,853 @@ |
529 | +# Makefile.in generated by automake 1.11.3 from Makefile.am. |
530 | +# @configure_input@ |
531 | + |
532 | +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
533 | +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
534 | +# Foundation, Inc. |
535 | +# This Makefile.in is free software; the Free Software Foundation |
536 | +# gives unlimited permission to copy and/or distribute it, |
537 | +# with or without modifications, as long as this notice is preserved. |
538 | + |
539 | +# This program is distributed in the hope that it will be useful, |
540 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
541 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
542 | +# PARTICULAR PURPOSE. |
543 | + |
544 | +@SET_MAKE@ |
545 | + |
546 | +# Coverage targets |
547 | +VPATH = @srcdir@ |
548 | +pkgdatadir = $(datadir)/@PACKAGE@ |
549 | +pkgincludedir = $(includedir)/@PACKAGE@ |
550 | +pkglibdir = $(libdir)/@PACKAGE@ |
551 | +pkglibexecdir = $(libexecdir)/@PACKAGE@ |
552 | +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
553 | +install_sh_DATA = $(install_sh) -c -m 644 |
554 | +install_sh_PROGRAM = $(install_sh) -c |
555 | +install_sh_SCRIPT = $(install_sh) -c |
556 | +INSTALL_HEADER = $(INSTALL_DATA) |
557 | +transform = $(program_transform_name) |
558 | +NORMAL_INSTALL = : |
559 | +PRE_INSTALL = : |
560 | +POST_INSTALL = : |
561 | +NORMAL_UNINSTALL = : |
562 | +PRE_UNINSTALL = : |
563 | +POST_UNINSTALL = : |
564 | +build_triplet = @build@ |
565 | +host_triplet = @host@ |
566 | +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ |
567 | + $(srcdir)/Makefile.in $(srcdir)/config.h.in \ |
568 | + $(top_srcdir)/Makefile.am.coverage $(top_srcdir)/configure \ |
569 | + AUTHORS COPYING ChangeLog INSTALL NEWS compile config.guess \ |
570 | + config.sub depcomp install-sh ltmain.sh missing mkinstalldirs |
571 | +subdir = . |
572 | +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
573 | +am__aclocal_m4_deps = $(top_srcdir)/m4/gcov.m4 \ |
574 | + $(top_srcdir)/configure.ac |
575 | +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
576 | + $(ACLOCAL_M4) |
577 | +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
578 | + configure.lineno config.status.lineno |
579 | +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
580 | +CONFIG_HEADER = config.h |
581 | +CONFIG_CLEAN_FILES = |
582 | +CONFIG_CLEAN_VPATH_FILES = |
583 | +AM_V_GEN = $(am__v_GEN_@AM_V@) |
584 | +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) |
585 | +am__v_GEN_0 = @echo " GEN " $@; |
586 | +AM_V_at = $(am__v_at_@AM_V@) |
587 | +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
588 | +am__v_at_0 = @ |
589 | +SOURCES = |
590 | +DIST_SOURCES = |
591 | +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ |
592 | + html-recursive info-recursive install-data-recursive \ |
593 | + install-dvi-recursive install-exec-recursive \ |
594 | + install-html-recursive install-info-recursive \ |
595 | + install-pdf-recursive install-ps-recursive install-recursive \ |
596 | + installcheck-recursive installdirs-recursive pdf-recursive \ |
597 | + ps-recursive uninstall-recursive |
598 | +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ |
599 | + distclean-recursive maintainer-clean-recursive |
600 | +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ |
601 | + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ |
602 | + distdir dist dist-all distcheck |
603 | +ETAGS = etags |
604 | +CTAGS = ctags |
605 | +DIST_SUBDIRS = $(SUBDIRS) |
606 | +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
607 | +distdir = $(PACKAGE)-$(VERSION) |
608 | +top_distdir = $(distdir) |
609 | +am__remove_distdir = \ |
610 | + if test -d "$(distdir)"; then \ |
611 | + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ |
612 | + && rm -rf "$(distdir)" \ |
613 | + || { sleep 5 && rm -rf "$(distdir)"; }; \ |
614 | + else :; fi |
615 | +am__relativize = \ |
616 | + dir0=`pwd`; \ |
617 | + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ |
618 | + sed_rest='s,^[^/]*/*,,'; \ |
619 | + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ |
620 | + sed_butlast='s,/*[^/]*$$,,'; \ |
621 | + while test -n "$$dir1"; do \ |
622 | + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ |
623 | + if test "$$first" != "."; then \ |
624 | + if test "$$first" = ".."; then \ |
625 | + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ |
626 | + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ |
627 | + else \ |
628 | + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ |
629 | + if test "$$first2" = "$$first"; then \ |
630 | + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ |
631 | + else \ |
632 | + dir2="../$$dir2"; \ |
633 | + fi; \ |
634 | + dir0="$$dir0"/"$$first"; \ |
635 | + fi; \ |
636 | + fi; \ |
637 | + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ |
638 | + done; \ |
639 | + reldir="$$dir2" |
640 | +DIST_ARCHIVES = $(distdir).tar.gz |
641 | +GZIP_ENV = --best |
642 | +distuninstallcheck_listfiles = find . -type f -print |
643 | +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ |
644 | + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' |
645 | +distcleancheck_listfiles = find . -type f -print |
646 | +ACLOCAL = @ACLOCAL@ |
647 | +ALL_LINGUAS = @ALL_LINGUAS@ |
648 | +AMTAR = @AMTAR@ |
649 | +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ |
650 | +APPLET_CFLAGS = @APPLET_CFLAGS@ |
651 | +APPLET_LIBS = @APPLET_LIBS@ |
652 | +AR = @AR@ |
653 | +AUTOCONF = @AUTOCONF@ |
654 | +AUTOHEADER = @AUTOHEADER@ |
655 | +AUTOMAKE = @AUTOMAKE@ |
656 | +AWK = @AWK@ |
657 | +CATALOGS = @CATALOGS@ |
658 | +CATOBJEXT = @CATOBJEXT@ |
659 | +CC = @CC@ |
660 | +CCDEPMODE = @CCDEPMODE@ |
661 | +CFLAGS = @CFLAGS@ |
662 | +COVERAGE_CFLAGS = @COVERAGE_CFLAGS@ |
663 | +COVERAGE_CXXFLAGS = @COVERAGE_CXXFLAGS@ |
664 | +COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@ |
665 | +CPP = @CPP@ |
666 | +CPPFLAGS = @CPPFLAGS@ |
667 | +CYGPATH_W = @CYGPATH_W@ |
668 | +DATADIRNAME = @DATADIRNAME@ |
669 | +DBUSSERVICEDIR = @DBUSSERVICEDIR@ |
670 | +DEFS = @DEFS@ |
671 | +DEPDIR = @DEPDIR@ |
672 | +DLLTOOL = @DLLTOOL@ |
673 | +DSYMUTIL = @DSYMUTIL@ |
674 | +DUMPBIN = @DUMPBIN@ |
675 | +ECHO_C = @ECHO_C@ |
676 | +ECHO_N = @ECHO_N@ |
677 | +ECHO_T = @ECHO_T@ |
678 | +EGREP = @EGREP@ |
679 | +EXEEXT = @EXEEXT@ |
680 | +FGREP = @FGREP@ |
681 | +GCOVR = @GCOVR@ |
682 | +GENHTML = @GENHTML@ |
683 | +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
684 | +GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ |
685 | +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ |
686 | +GMOFILES = @GMOFILES@ |
687 | +GMSGFMT = @GMSGFMT@ |
688 | +GNOMELOCALEDIR = @GNOMELOCALEDIR@ |
689 | +GREP = @GREP@ |
690 | +GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ |
691 | +INDICATORDIR = @INDICATORDIR@ |
692 | +INDICATORICONSDIR = @INDICATORICONSDIR@ |
693 | +INSTALL = @INSTALL@ |
694 | +INSTALL_DATA = @INSTALL_DATA@ |
695 | +INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
696 | +INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
697 | +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
698 | +INSTOBJEXT = @INSTOBJEXT@ |
699 | +INTLLIBS = @INTLLIBS@ |
700 | +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ |
701 | +INTLTOOL_MERGE = @INTLTOOL_MERGE@ |
702 | +INTLTOOL_PERL = @INTLTOOL_PERL@ |
703 | +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ |
704 | +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ |
705 | +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ |
706 | +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ |
707 | +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ |
708 | +LCOV = @LCOV@ |
709 | +LD = @LD@ |
710 | +LDFLAGS = @LDFLAGS@ |
711 | +LIBOBJS = @LIBOBJS@ |
712 | +LIBS = @LIBS@ |
713 | +LIBTOOL = @LIBTOOL@ |
714 | +LIPO = @LIPO@ |
715 | +LN_S = @LN_S@ |
716 | +LTLIBOBJS = @LTLIBOBJS@ |
717 | +MAINT = @MAINT@ |
718 | +MAKEINFO = @MAKEINFO@ |
719 | +MANIFEST_TOOL = @MANIFEST_TOOL@ |
720 | +MKDIR_P = @MKDIR_P@ |
721 | +MKINSTALLDIRS = @MKINSTALLDIRS@ |
722 | +MSGFMT = @MSGFMT@ |
723 | +MSGFMT_OPTS = @MSGFMT_OPTS@ |
724 | +MSGMERGE = @MSGMERGE@ |
725 | +NM = @NM@ |
726 | +NMEDIT = @NMEDIT@ |
727 | +OBJDUMP = @OBJDUMP@ |
728 | +OBJEXT = @OBJEXT@ |
729 | +OTOOL = @OTOOL@ |
730 | +OTOOL64 = @OTOOL64@ |
731 | +PACKAGE = @PACKAGE@ |
732 | +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
733 | +PACKAGE_NAME = @PACKAGE_NAME@ |
734 | +PACKAGE_STRING = @PACKAGE_STRING@ |
735 | +PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
736 | +PACKAGE_URL = @PACKAGE_URL@ |
737 | +PACKAGE_VERSION = @PACKAGE_VERSION@ |
738 | +PATH_SEPARATOR = @PATH_SEPARATOR@ |
739 | +PKG_CONFIG = @PKG_CONFIG@ |
740 | +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ |
741 | +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ |
742 | +POFILES = @POFILES@ |
743 | +POSUB = @POSUB@ |
744 | +PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ |
745 | +PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ |
746 | +PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ |
747 | +PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ |
748 | +RANLIB = @RANLIB@ |
749 | +SED = @SED@ |
750 | +SET_MAKE = @SET_MAKE@ |
751 | +SHELL = @SHELL@ |
752 | +SHTOOL = @SHTOOL@ |
753 | +SOUNDSERVICE_CFLAGS = @SOUNDSERVICE_CFLAGS@ |
754 | +SOUNDSERVICE_LIBS = @SOUNDSERVICE_LIBS@ |
755 | +STRIP = @STRIP@ |
756 | +USE_NLS = @USE_NLS@ |
757 | +VALAC = @VALAC@ |
758 | +VERSION = @VERSION@ |
759 | +XGETTEXT = @XGETTEXT@ |
760 | +abs_builddir = @abs_builddir@ |
761 | +abs_srcdir = @abs_srcdir@ |
762 | +abs_top_builddir = @abs_top_builddir@ |
763 | +abs_top_srcdir = @abs_top_srcdir@ |
764 | +ac_ct_AR = @ac_ct_AR@ |
765 | +ac_ct_CC = @ac_ct_CC@ |
766 | +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
767 | +am__include = @am__include@ |
768 | +am__leading_dot = @am__leading_dot@ |
769 | +am__quote = @am__quote@ |
770 | +am__tar = @am__tar@ |
771 | +am__untar = @am__untar@ |
772 | +bindir = @bindir@ |
773 | +build = @build@ |
774 | +build_alias = @build_alias@ |
775 | +build_cpu = @build_cpu@ |
776 | +build_os = @build_os@ |
777 | +build_vendor = @build_vendor@ |
778 | +builddir = @builddir@ |
779 | +datadir = @datadir@ |
780 | +datarootdir = @datarootdir@ |
781 | +docdir = @docdir@ |
782 | +dvidir = @dvidir@ |
783 | +exec_prefix = @exec_prefix@ |
784 | +gsettingsschemadir = @gsettingsschemadir@ |
785 | +host = @host@ |
786 | +host_alias = @host_alias@ |
787 | +host_cpu = @host_cpu@ |
788 | +host_os = @host_os@ |
789 | +host_vendor = @host_vendor@ |
790 | +htmldir = @htmldir@ |
791 | +includedir = @includedir@ |
792 | +infodir = @infodir@ |
793 | +install_sh = @install_sh@ |
794 | +intltool__v_merge_options_ = @intltool__v_merge_options_@ |
795 | +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ |
796 | +libdir = @libdir@ |
797 | +libexecdir = @libexecdir@ |
798 | +localedir = @localedir@ |
799 | +localstatedir = @localstatedir@ |
800 | +mandir = @mandir@ |
801 | +mkdir_p = @mkdir_p@ |
802 | +oldincludedir = @oldincludedir@ |
803 | +pdfdir = @pdfdir@ |
804 | +prefix = @prefix@ |
805 | +program_transform_name = @program_transform_name@ |
806 | +psdir = @psdir@ |
807 | +sbindir = @sbindir@ |
808 | +sharedstatedir = @sharedstatedir@ |
809 | +srcdir = @srcdir@ |
810 | +sysconfdir = @sysconfdir@ |
811 | +target_alias = @target_alias@ |
812 | +top_build_prefix = @top_build_prefix@ |
813 | +top_builddir = @top_builddir@ |
814 | +top_srcdir = @top_srcdir@ |
815 | +SUBDIRS = \ |
816 | + src \ |
817 | + data \ |
818 | + po |
819 | + |
820 | +EXTRA_DIST = \ |
821 | + autogen.sh \ |
822 | + vapi/common-defs.vapi \ |
823 | + vapi/config.vapi |
824 | + |
825 | +DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall |
826 | +all: config.h |
827 | + $(MAKE) $(AM_MAKEFLAGS) all-recursive |
828 | + |
829 | +.SUFFIXES: |
830 | +am--refresh: Makefile |
831 | + @: |
832 | +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.coverage $(am__configure_deps) |
833 | + @for dep in $?; do \ |
834 | + case '$(am__configure_deps)' in \ |
835 | + *$$dep*) \ |
836 | + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ |
837 | + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ |
838 | + && exit 0; \ |
839 | + exit 1;; \ |
840 | + esac; \ |
841 | + done; \ |
842 | + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ |
843 | + $(am__cd) $(top_srcdir) && \ |
844 | + $(AUTOMAKE) --gnu Makefile |
845 | +.PRECIOUS: Makefile |
846 | +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
847 | + @case '$?' in \ |
848 | + *config.status*) \ |
849 | + echo ' $(SHELL) ./config.status'; \ |
850 | + $(SHELL) ./config.status;; \ |
851 | + *) \ |
852 | + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ |
853 | + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ |
854 | + esac; |
855 | +$(top_srcdir)/Makefile.am.coverage: |
856 | + |
857 | +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
858 | + $(SHELL) ./config.status --recheck |
859 | + |
860 | +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) |
861 | + $(am__cd) $(srcdir) && $(AUTOCONF) |
862 | +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) |
863 | + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
864 | +$(am__aclocal_m4_deps): |
865 | + |
866 | +config.h: stamp-h1 |
867 | + @if test ! -f $@; then rm -f stamp-h1; else :; fi |
868 | + @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi |
869 | + |
870 | +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
871 | + @rm -f stamp-h1 |
872 | + cd $(top_builddir) && $(SHELL) ./config.status config.h |
873 | +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) |
874 | + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) |
875 | + rm -f stamp-h1 |
876 | + touch $@ |
877 | + |
878 | +distclean-hdr: |
879 | + -rm -f config.h stamp-h1 |
880 | + |
881 | +mostlyclean-libtool: |
882 | + -rm -f *.lo |
883 | + |
884 | +clean-libtool: |
885 | + -rm -rf .libs _libs |
886 | + |
887 | +distclean-libtool: |
888 | + -rm -f libtool config.lt |
889 | + |
890 | +# This directory's subdirectories are mostly independent; you can cd |
891 | +# into them and run `make' without going through this Makefile. |
892 | +# To change the values of `make' variables: instead of editing Makefiles, |
893 | +# (1) if the variable is set in `config.status', edit `config.status' |
894 | +# (which will cause the Makefiles to be regenerated when you run `make'); |
895 | +# (2) otherwise, pass the desired values on the `make' command line. |
896 | +$(RECURSIVE_TARGETS): |
897 | + @fail= failcom='exit 1'; \ |
898 | + for f in x $$MAKEFLAGS; do \ |
899 | + case $$f in \ |
900 | + *=* | --[!k]*);; \ |
901 | + *k*) failcom='fail=yes';; \ |
902 | + esac; \ |
903 | + done; \ |
904 | + dot_seen=no; \ |
905 | + target=`echo $@ | sed s/-recursive//`; \ |
906 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
907 | + echo "Making $$target in $$subdir"; \ |
908 | + if test "$$subdir" = "."; then \ |
909 | + dot_seen=yes; \ |
910 | + local_target="$$target-am"; \ |
911 | + else \ |
912 | + local_target="$$target"; \ |
913 | + fi; \ |
914 | + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
915 | + || eval $$failcom; \ |
916 | + done; \ |
917 | + if test "$$dot_seen" = "no"; then \ |
918 | + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
919 | + fi; test -z "$$fail" |
920 | + |
921 | +$(RECURSIVE_CLEAN_TARGETS): |
922 | + @fail= failcom='exit 1'; \ |
923 | + for f in x $$MAKEFLAGS; do \ |
924 | + case $$f in \ |
925 | + *=* | --[!k]*);; \ |
926 | + *k*) failcom='fail=yes';; \ |
927 | + esac; \ |
928 | + done; \ |
929 | + dot_seen=no; \ |
930 | + case "$@" in \ |
931 | + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ |
932 | + *) list='$(SUBDIRS)' ;; \ |
933 | + esac; \ |
934 | + rev=''; for subdir in $$list; do \ |
935 | + if test "$$subdir" = "."; then :; else \ |
936 | + rev="$$subdir $$rev"; \ |
937 | + fi; \ |
938 | + done; \ |
939 | + rev="$$rev ."; \ |
940 | + target=`echo $@ | sed s/-recursive//`; \ |
941 | + for subdir in $$rev; do \ |
942 | + echo "Making $$target in $$subdir"; \ |
943 | + if test "$$subdir" = "."; then \ |
944 | + local_target="$$target-am"; \ |
945 | + else \ |
946 | + local_target="$$target"; \ |
947 | + fi; \ |
948 | + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
949 | + || eval $$failcom; \ |
950 | + done && test -z "$$fail" |
951 | +tags-recursive: |
952 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
953 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ |
954 | + done |
955 | +ctags-recursive: |
956 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
957 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ |
958 | + done |
959 | + |
960 | +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
961 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ |
962 | + unique=`for i in $$list; do \ |
963 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
964 | + done | \ |
965 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
966 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
967 | + mkid -fID $$unique |
968 | +tags: TAGS |
969 | + |
970 | +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
971 | + $(TAGS_FILES) $(LISP) |
972 | + set x; \ |
973 | + here=`pwd`; \ |
974 | + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ |
975 | + include_option=--etags-include; \ |
976 | + empty_fix=.; \ |
977 | + else \ |
978 | + include_option=--include; \ |
979 | + empty_fix=; \ |
980 | + fi; \ |
981 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
982 | + if test "$$subdir" = .; then :; else \ |
983 | + test ! -f $$subdir/TAGS || \ |
984 | + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ |
985 | + fi; \ |
986 | + done; \ |
987 | + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ |
988 | + unique=`for i in $$list; do \ |
989 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
990 | + done | \ |
991 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
992 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
993 | + shift; \ |
994 | + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
995 | + test -n "$$unique" || unique=$$empty_fix; \ |
996 | + if test $$# -gt 0; then \ |
997 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
998 | + "$$@" $$unique; \ |
999 | + else \ |
1000 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
1001 | + $$unique; \ |
1002 | + fi; \ |
1003 | + fi |
1004 | +ctags: CTAGS |
1005 | +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
1006 | + $(TAGS_FILES) $(LISP) |
1007 | + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ |
1008 | + unique=`for i in $$list; do \ |
1009 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
1010 | + done | \ |
1011 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
1012 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
1013 | + test -z "$(CTAGS_ARGS)$$unique" \ |
1014 | + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
1015 | + $$unique |
1016 | + |
1017 | +GTAGS: |
1018 | + here=`$(am__cd) $(top_builddir) && pwd` \ |
1019 | + && $(am__cd) $(top_srcdir) \ |
1020 | + && gtags -i $(GTAGS_ARGS) "$$here" |
1021 | + |
1022 | +distclean-tags: |
1023 | + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
1024 | + |
1025 | +distdir: $(DISTFILES) |
1026 | + $(am__remove_distdir) |
1027 | + test -d "$(distdir)" || mkdir "$(distdir)" |
1028 | + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
1029 | + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
1030 | + list='$(DISTFILES)'; \ |
1031 | + dist_files=`for file in $$list; do echo $$file; done | \ |
1032 | + sed -e "s|^$$srcdirstrip/||;t" \ |
1033 | + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ |
1034 | + case $$dist_files in \ |
1035 | + */*) $(MKDIR_P) `echo "$$dist_files" | \ |
1036 | + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ |
1037 | + sort -u` ;; \ |
1038 | + esac; \ |
1039 | + for file in $$dist_files; do \ |
1040 | + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ |
1041 | + if test -d $$d/$$file; then \ |
1042 | + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ |
1043 | + if test -d "$(distdir)/$$file"; then \ |
1044 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ |
1045 | + fi; \ |
1046 | + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ |
1047 | + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ |
1048 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ |
1049 | + fi; \ |
1050 | + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ |
1051 | + else \ |
1052 | + test -f "$(distdir)/$$file" \ |
1053 | + || cp -p $$d/$$file "$(distdir)/$$file" \ |
1054 | + || exit 1; \ |
1055 | + fi; \ |
1056 | + done |
1057 | + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
1058 | + if test "$$subdir" = .; then :; else \ |
1059 | + test -d "$(distdir)/$$subdir" \ |
1060 | + || $(MKDIR_P) "$(distdir)/$$subdir" \ |
1061 | + || exit 1; \ |
1062 | + fi; \ |
1063 | + done |
1064 | + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
1065 | + if test "$$subdir" = .; then :; else \ |
1066 | + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ |
1067 | + $(am__relativize); \ |
1068 | + new_distdir=$$reldir; \ |
1069 | + dir1=$$subdir; dir2="$(top_distdir)"; \ |
1070 | + $(am__relativize); \ |
1071 | + new_top_distdir=$$reldir; \ |
1072 | + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ |
1073 | + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ |
1074 | + ($(am__cd) $$subdir && \ |
1075 | + $(MAKE) $(AM_MAKEFLAGS) \ |
1076 | + top_distdir="$$new_top_distdir" \ |
1077 | + distdir="$$new_distdir" \ |
1078 | + am__remove_distdir=: \ |
1079 | + am__skip_length_check=: \ |
1080 | + am__skip_mode_fix=: \ |
1081 | + distdir) \ |
1082 | + || exit 1; \ |
1083 | + fi; \ |
1084 | + done |
1085 | + -test -n "$(am__skip_mode_fix)" \ |
1086 | + || find "$(distdir)" -type d ! -perm -755 \ |
1087 | + -exec chmod u+rwx,go+rx {} \; -o \ |
1088 | + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ |
1089 | + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ |
1090 | + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
1091 | + || chmod -R a+r "$(distdir)" |
1092 | +dist-gzip: distdir |
1093 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
1094 | + $(am__remove_distdir) |
1095 | + |
1096 | +dist-bzip2: distdir |
1097 | + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 |
1098 | + $(am__remove_distdir) |
1099 | + |
1100 | +dist-lzip: distdir |
1101 | + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz |
1102 | + $(am__remove_distdir) |
1103 | + |
1104 | +dist-lzma: distdir |
1105 | + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma |
1106 | + $(am__remove_distdir) |
1107 | + |
1108 | +dist-xz: distdir |
1109 | + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz |
1110 | + $(am__remove_distdir) |
1111 | + |
1112 | +dist-tarZ: distdir |
1113 | + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
1114 | + $(am__remove_distdir) |
1115 | + |
1116 | +dist-shar: distdir |
1117 | + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
1118 | + $(am__remove_distdir) |
1119 | + |
1120 | +dist-zip: distdir |
1121 | + -rm -f $(distdir).zip |
1122 | + zip -rq $(distdir).zip $(distdir) |
1123 | + $(am__remove_distdir) |
1124 | + |
1125 | +dist dist-all: distdir |
1126 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
1127 | + $(am__remove_distdir) |
1128 | + |
1129 | +# This target untars the dist file and tries a VPATH configuration. Then |
1130 | +# it guarantees that the distribution is self-contained by making another |
1131 | +# tarfile. |
1132 | +distcheck: dist |
1133 | + case '$(DIST_ARCHIVES)' in \ |
1134 | + *.tar.gz*) \ |
1135 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ |
1136 | + *.tar.bz2*) \ |
1137 | + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
1138 | + *.tar.lzma*) \ |
1139 | + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ |
1140 | + *.tar.lz*) \ |
1141 | + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ |
1142 | + *.tar.xz*) \ |
1143 | + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ |
1144 | + *.tar.Z*) \ |
1145 | + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
1146 | + *.shar.gz*) \ |
1147 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ |
1148 | + *.zip*) \ |
1149 | + unzip $(distdir).zip ;;\ |
1150 | + esac |
1151 | + chmod -R a-w $(distdir); chmod a+w $(distdir) |
1152 | + mkdir $(distdir)/_build |
1153 | + mkdir $(distdir)/_inst |
1154 | + chmod a-w $(distdir) |
1155 | + test -d $(distdir)/_build || exit 0; \ |
1156 | + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
1157 | + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ |
1158 | + && am__cwd=`pwd` \ |
1159 | + && $(am__cd) $(distdir)/_build \ |
1160 | + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ |
1161 | + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ |
1162 | + $(DISTCHECK_CONFIGURE_FLAGS) \ |
1163 | + && $(MAKE) $(AM_MAKEFLAGS) \ |
1164 | + && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
1165 | + && $(MAKE) $(AM_MAKEFLAGS) check \ |
1166 | + && $(MAKE) $(AM_MAKEFLAGS) install \ |
1167 | + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
1168 | + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ |
1169 | + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ |
1170 | + distuninstallcheck \ |
1171 | + && chmod -R a-w "$$dc_install_base" \ |
1172 | + && ({ \ |
1173 | + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ |
1174 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ |
1175 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ |
1176 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ |
1177 | + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ |
1178 | + } || { rm -rf "$$dc_destdir"; exit 1; }) \ |
1179 | + && rm -rf "$$dc_destdir" \ |
1180 | + && $(MAKE) $(AM_MAKEFLAGS) dist \ |
1181 | + && rm -rf $(DIST_ARCHIVES) \ |
1182 | + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ |
1183 | + && cd "$$am__cwd" \ |
1184 | + || exit 1 |
1185 | + $(am__remove_distdir) |
1186 | + @(echo "$(distdir) archives ready for distribution: "; \ |
1187 | + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
1188 | + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
1189 | +distuninstallcheck: |
1190 | + @test -n '$(distuninstallcheck_dir)' || { \ |
1191 | + echo 'ERROR: trying to run $@ with an empty' \ |
1192 | + '$$(distuninstallcheck_dir)' >&2; \ |
1193 | + exit 1; \ |
1194 | + }; \ |
1195 | + $(am__cd) '$(distuninstallcheck_dir)' || { \ |
1196 | + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ |
1197 | + exit 1; \ |
1198 | + }; \ |
1199 | + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ |
1200 | + || { echo "ERROR: files left after uninstall:" ; \ |
1201 | + if test -n "$(DESTDIR)"; then \ |
1202 | + echo " (check DESTDIR support)"; \ |
1203 | + fi ; \ |
1204 | + $(distuninstallcheck_listfiles) ; \ |
1205 | + exit 1; } >&2 |
1206 | +distcleancheck: distclean |
1207 | + @if test '$(srcdir)' = . ; then \ |
1208 | + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ |
1209 | + exit 1 ; \ |
1210 | + fi |
1211 | + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ |
1212 | + || { echo "ERROR: files left in build directory after distclean:" ; \ |
1213 | + $(distcleancheck_listfiles) ; \ |
1214 | + exit 1; } >&2 |
1215 | +check-am: all-am |
1216 | +check: check-recursive |
1217 | +all-am: Makefile config.h |
1218 | +installdirs: installdirs-recursive |
1219 | +installdirs-am: |
1220 | +install: install-recursive |
1221 | +install-exec: install-exec-recursive |
1222 | +install-data: install-data-recursive |
1223 | +uninstall: uninstall-recursive |
1224 | + |
1225 | +install-am: all-am |
1226 | + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
1227 | + |
1228 | +installcheck: installcheck-recursive |
1229 | +install-strip: |
1230 | + if test -z '$(STRIP)'; then \ |
1231 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ |
1232 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ |
1233 | + install; \ |
1234 | + else \ |
1235 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ |
1236 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ |
1237 | + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ |
1238 | + fi |
1239 | +mostlyclean-generic: |
1240 | + |
1241 | +clean-generic: |
1242 | + |
1243 | +distclean-generic: |
1244 | + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) |
1245 | + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) |
1246 | + |
1247 | +maintainer-clean-generic: |
1248 | + @echo "This command is intended for maintainers to use" |
1249 | + @echo "it deletes files that may require special tools to rebuild." |
1250 | +clean: clean-recursive |
1251 | + |
1252 | +clean-am: clean-generic clean-libtool clean-local mostlyclean-am |
1253 | + |
1254 | +distclean: distclean-recursive |
1255 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
1256 | + -rm -f Makefile |
1257 | +distclean-am: clean-am distclean-generic distclean-hdr \ |
1258 | + distclean-libtool distclean-tags |
1259 | + |
1260 | +dvi: dvi-recursive |
1261 | + |
1262 | +dvi-am: |
1263 | + |
1264 | +html: html-recursive |
1265 | + |
1266 | +html-am: |
1267 | + |
1268 | +info: info-recursive |
1269 | + |
1270 | +info-am: |
1271 | + |
1272 | +install-data-am: |
1273 | + |
1274 | +install-dvi: install-dvi-recursive |
1275 | + |
1276 | +install-dvi-am: |
1277 | + |
1278 | +install-exec-am: |
1279 | + |
1280 | +install-html: install-html-recursive |
1281 | + |
1282 | +install-html-am: |
1283 | + |
1284 | +install-info: install-info-recursive |
1285 | + |
1286 | +install-info-am: |
1287 | + |
1288 | +install-man: |
1289 | + |
1290 | +install-pdf: install-pdf-recursive |
1291 | + |
1292 | +install-pdf-am: |
1293 | + |
1294 | +install-ps: install-ps-recursive |
1295 | + |
1296 | +install-ps-am: |
1297 | + |
1298 | +installcheck-am: |
1299 | + |
1300 | +maintainer-clean: maintainer-clean-recursive |
1301 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
1302 | + -rm -rf $(top_srcdir)/autom4te.cache |
1303 | + -rm -f Makefile |
1304 | +maintainer-clean-am: distclean-am maintainer-clean-generic |
1305 | + |
1306 | +mostlyclean: mostlyclean-recursive |
1307 | + |
1308 | +mostlyclean-am: mostlyclean-generic mostlyclean-libtool |
1309 | + |
1310 | +pdf: pdf-recursive |
1311 | + |
1312 | +pdf-am: |
1313 | + |
1314 | +ps: ps-recursive |
1315 | + |
1316 | +ps-am: |
1317 | + |
1318 | +uninstall-am: |
1319 | + |
1320 | +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ |
1321 | + ctags-recursive install-am install-strip tags-recursive |
1322 | + |
1323 | +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ |
1324 | + all all-am am--refresh check check-am clean clean-generic \ |
1325 | + clean-libtool clean-local ctags ctags-recursive dist dist-all \ |
1326 | + dist-bzip2 dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ \ |
1327 | + dist-xz dist-zip distcheck distclean distclean-generic \ |
1328 | + distclean-hdr distclean-libtool distclean-tags distcleancheck \ |
1329 | + distdir distuninstallcheck dvi dvi-am html html-am info \ |
1330 | + info-am install install-am install-data install-data-am \ |
1331 | + install-dvi install-dvi-am install-exec install-exec-am \ |
1332 | + install-html install-html-am install-info install-info-am \ |
1333 | + install-man install-pdf install-pdf-am install-ps \ |
1334 | + install-ps-am install-strip installcheck installcheck-am \ |
1335 | + installdirs installdirs-am maintainer-clean \ |
1336 | + maintainer-clean-generic mostlyclean mostlyclean-generic \ |
1337 | + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ |
1338 | + uninstall uninstall-am |
1339 | + |
1340 | + |
1341 | +.PHONY: clean-gcno clean-gcda \ |
1342 | + coverage-html generate-coverage-html clean-coverage-html \ |
1343 | + coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr |
1344 | + |
1345 | +clean-local: clean-gcno clean-coverage-html clean-coverage-gcovr |
1346 | + |
1347 | +@HAVE_GCOV_TRUE@clean-gcno: |
1348 | +@HAVE_GCOV_TRUE@ @echo Removing old coverage instrumentation |
1349 | +@HAVE_GCOV_TRUE@ -find -name '*.gcno' -print | xargs -r rm |
1350 | + |
1351 | +@HAVE_GCOV_TRUE@clean-gcda: |
1352 | +@HAVE_GCOV_TRUE@ @echo Removing old coverage results |
1353 | +@HAVE_GCOV_TRUE@ -find -name '*.gcda' -print | xargs -r rm |
1354 | + |
1355 | +@HAVE_GCOV_TRUE@coverage-html: clean-gcda |
1356 | +@HAVE_GCOV_TRUE@ -$(MAKE) $(AM_MAKEFLAGS) -k check |
1357 | +@HAVE_GCOV_TRUE@ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html |
1358 | + |
1359 | +@HAVE_GCOV_TRUE@generate-coverage-html: |
1360 | +@HAVE_GCOV_TRUE@ @echo Collecting coverage data |
1361 | +@HAVE_GCOV_TRUE@ $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool |
1362 | +@HAVE_GCOV_TRUE@ LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info |
1363 | + |
1364 | +@HAVE_GCOV_TRUE@clean-coverage-html: clean-gcda |
1365 | +@HAVE_GCOV_TRUE@ -$(LCOV) --directory $(top_builddir) -z |
1366 | +@HAVE_GCOV_TRUE@ -rm -rf coverage.info coveragereport |
1367 | + |
1368 | +@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@coverage-gcovr: clean-gcda |
1369 | +@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ -$(MAKE) $(AM_MAKEFLAGS) -k check |
1370 | +@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-gcovr |
1371 | + |
1372 | +@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@generate-coverage-gcovr: |
1373 | +@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ @echo Generating coverage GCOVR report |
1374 | +@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml |
1375 | + |
1376 | +@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@clean-coverage-gcovr: clean-gcda |
1377 | +@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ -rm -rf $(top_builddir)/coverage.xml |
1378 | + |
1379 | +# Tell versions [3.59,3.63) of GNU make to not export all variables. |
1380 | +# Otherwise a system limit (for SysV at least) may be exceeded. |
1381 | +.NOEXPORT: |
1382 | |
1383 | === added file 'aclocal.m4' |
1384 | --- aclocal.m4 1970-01-01 00:00:00 +0000 |
1385 | +++ aclocal.m4 2012-06-21 16:16:33 +0000 |
1386 | @@ -0,0 +1,10680 @@ |
1387 | +# generated automatically by aclocal 1.11.3 -*- Autoconf -*- |
1388 | + |
1389 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
1390 | +# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, |
1391 | +# Inc. |
1392 | +# This file is free software; the Free Software Foundation |
1393 | +# gives unlimited permission to copy and/or distribute it, |
1394 | +# with or without modifications, as long as this notice is preserved. |
1395 | + |
1396 | +# This program is distributed in the hope that it will be useful, |
1397 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
1398 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
1399 | +# PARTICULAR PURPOSE. |
1400 | + |
1401 | +m4_ifndef([AC_AUTOCONF_VERSION], |
1402 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
1403 | +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, |
1404 | +[m4_warning([this file was generated for autoconf 2.68. |
1405 | +You have another version of autoconf. It may work, but is not guaranteed to. |
1406 | +If you have problems, you may need to regenerate the build system entirely. |
1407 | +To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
1408 | + |
1409 | +# Copyright (C) 1995-2002 Free Software Foundation, Inc. |
1410 | +# Copyright (C) 2001-2003,2004 Red Hat, Inc. |
1411 | +# |
1412 | +# This file is free software, distributed under the terms of the GNU |
1413 | +# General Public License. As a special exception to the GNU General |
1414 | +# Public License, this file may be distributed as part of a program |
1415 | +# that contains a configuration script generated by Autoconf, under |
1416 | +# the same distribution terms as the rest of that program. |
1417 | +# |
1418 | +# This file can be copied and used freely without restrictions. It can |
1419 | +# be used in projects which are not available under the GNU Public License |
1420 | +# but which still want to provide support for the GNU gettext functionality. |
1421 | +# |
1422 | +# Macro to add for using GNU gettext. |
1423 | +# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 |
1424 | +# |
1425 | +# Modified to never use included libintl. |
1426 | +# Owen Taylor <otaylor@redhat.com>, 12/15/1998 |
1427 | +# |
1428 | +# Major rework to remove unused code |
1429 | +# Owen Taylor <otaylor@redhat.com>, 12/11/2002 |
1430 | +# |
1431 | +# Added better handling of ALL_LINGUAS from GNU gettext version |
1432 | +# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 |
1433 | +# |
1434 | +# Modified to require ngettext |
1435 | +# Matthias Clasen <mclasen@redhat.com> 08/06/2004 |
1436 | +# |
1437 | +# We need this here as well, since someone might use autoconf-2.5x |
1438 | +# to configure GLib then an older version to configure a package |
1439 | +# using AM_GLIB_GNU_GETTEXT |
1440 | +AC_PREREQ(2.53) |
1441 | + |
1442 | +dnl |
1443 | +dnl We go to great lengths to make sure that aclocal won't |
1444 | +dnl try to pull in the installed version of these macros |
1445 | +dnl when running aclocal in the glib directory. |
1446 | +dnl |
1447 | +m4_copy([AC_DEFUN],[glib_DEFUN]) |
1448 | +m4_copy([AC_REQUIRE],[glib_REQUIRE]) |
1449 | +dnl |
1450 | +dnl At the end, if we're not within glib, we'll define the public |
1451 | +dnl definitions in terms of our private definitions. |
1452 | +dnl |
1453 | + |
1454 | +# GLIB_LC_MESSAGES |
1455 | +#-------------------- |
1456 | +glib_DEFUN([GLIB_LC_MESSAGES], |
1457 | + [AC_CHECK_HEADERS([locale.h]) |
1458 | + if test $ac_cv_header_locale_h = yes; then |
1459 | + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, |
1460 | + [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], |
1461 | + am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) |
1462 | + if test $am_cv_val_LC_MESSAGES = yes; then |
1463 | + AC_DEFINE(HAVE_LC_MESSAGES, 1, |
1464 | + [Define if your <locale.h> file defines LC_MESSAGES.]) |
1465 | + fi |
1466 | + fi]) |
1467 | + |
1468 | +# GLIB_PATH_PROG_WITH_TEST |
1469 | +#---------------------------- |
1470 | +dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, |
1471 | +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) |
1472 | +glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], |
1473 | +[# Extract the first word of "$2", so it can be a program name with args. |
1474 | +set dummy $2; ac_word=[$]2 |
1475 | +AC_MSG_CHECKING([for $ac_word]) |
1476 | +AC_CACHE_VAL(ac_cv_path_$1, |
1477 | +[case "[$]$1" in |
1478 | + /*) |
1479 | + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. |
1480 | + ;; |
1481 | + *) |
1482 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1483 | + for ac_dir in ifelse([$5], , $PATH, [$5]); do |
1484 | + test -z "$ac_dir" && ac_dir=. |
1485 | + if test -f $ac_dir/$ac_word; then |
1486 | + if [$3]; then |
1487 | + ac_cv_path_$1="$ac_dir/$ac_word" |
1488 | + break |
1489 | + fi |
1490 | + fi |
1491 | + done |
1492 | + IFS="$ac_save_ifs" |
1493 | +dnl If no 4th arg is given, leave the cache variable unset, |
1494 | +dnl so AC_PATH_PROGS will keep looking. |
1495 | +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" |
1496 | +])dnl |
1497 | + ;; |
1498 | +esac])dnl |
1499 | +$1="$ac_cv_path_$1" |
1500 | +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then |
1501 | + AC_MSG_RESULT([$]$1) |
1502 | +else |
1503 | + AC_MSG_RESULT(no) |
1504 | +fi |
1505 | +AC_SUBST($1)dnl |
1506 | +]) |
1507 | + |
1508 | +# GLIB_WITH_NLS |
1509 | +#----------------- |
1510 | +glib_DEFUN([GLIB_WITH_NLS], |
1511 | + dnl NLS is obligatory |
1512 | + [USE_NLS=yes |
1513 | + AC_SUBST(USE_NLS) |
1514 | + |
1515 | + gt_cv_have_gettext=no |
1516 | + |
1517 | + CATOBJEXT=NONE |
1518 | + XGETTEXT=: |
1519 | + INTLLIBS= |
1520 | + |
1521 | + AC_CHECK_HEADER(libintl.h, |
1522 | + [gt_cv_func_dgettext_libintl="no" |
1523 | + libintl_extra_libs="" |
1524 | + |
1525 | + # |
1526 | + # First check in libc |
1527 | + # |
1528 | + AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, |
1529 | + [AC_TRY_LINK([ |
1530 | +#include <libintl.h> |
1531 | +], |
1532 | + [return !ngettext ("","", 1)], |
1533 | + gt_cv_func_ngettext_libc=yes, |
1534 | + gt_cv_func_ngettext_libc=no) |
1535 | + ]) |
1536 | + |
1537 | + if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
1538 | + AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, |
1539 | + [AC_TRY_LINK([ |
1540 | +#include <libintl.h> |
1541 | +], |
1542 | + [return !dgettext ("","")], |
1543 | + gt_cv_func_dgettext_libc=yes, |
1544 | + gt_cv_func_dgettext_libc=no) |
1545 | + ]) |
1546 | + fi |
1547 | + |
1548 | + if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
1549 | + AC_CHECK_FUNCS(bind_textdomain_codeset) |
1550 | + fi |
1551 | + |
1552 | + # |
1553 | + # If we don't have everything we want, check in libintl |
1554 | + # |
1555 | + if test "$gt_cv_func_dgettext_libc" != "yes" \ |
1556 | + || test "$gt_cv_func_ngettext_libc" != "yes" \ |
1557 | + || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then |
1558 | + |
1559 | + AC_CHECK_LIB(intl, bindtextdomain, |
1560 | + [AC_CHECK_LIB(intl, ngettext, |
1561 | + [AC_CHECK_LIB(intl, dgettext, |
1562 | + gt_cv_func_dgettext_libintl=yes)])]) |
1563 | + |
1564 | + if test "$gt_cv_func_dgettext_libintl" != "yes" ; then |
1565 | + AC_MSG_CHECKING([if -liconv is needed to use gettext]) |
1566 | + AC_MSG_RESULT([]) |
1567 | + AC_CHECK_LIB(intl, ngettext, |
1568 | + [AC_CHECK_LIB(intl, dcgettext, |
1569 | + [gt_cv_func_dgettext_libintl=yes |
1570 | + libintl_extra_libs=-liconv], |
1571 | + :,-liconv)], |
1572 | + :,-liconv) |
1573 | + fi |
1574 | + |
1575 | + # |
1576 | + # If we found libintl, then check in it for bind_textdomain_codeset(); |
1577 | + # we'll prefer libc if neither have bind_textdomain_codeset(), |
1578 | + # and both have dgettext and ngettext |
1579 | + # |
1580 | + if test "$gt_cv_func_dgettext_libintl" = "yes" ; then |
1581 | + glib_save_LIBS="$LIBS" |
1582 | + LIBS="$LIBS -lintl $libintl_extra_libs" |
1583 | + unset ac_cv_func_bind_textdomain_codeset |
1584 | + AC_CHECK_FUNCS(bind_textdomain_codeset) |
1585 | + LIBS="$glib_save_LIBS" |
1586 | + |
1587 | + if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then |
1588 | + gt_cv_func_dgettext_libc=no |
1589 | + else |
1590 | + if test "$gt_cv_func_dgettext_libc" = "yes" \ |
1591 | + && test "$gt_cv_func_ngettext_libc" = "yes"; then |
1592 | + gt_cv_func_dgettext_libintl=no |
1593 | + fi |
1594 | + fi |
1595 | + fi |
1596 | + fi |
1597 | + |
1598 | + if test "$gt_cv_func_dgettext_libc" = "yes" \ |
1599 | + || test "$gt_cv_func_dgettext_libintl" = "yes"; then |
1600 | + gt_cv_have_gettext=yes |
1601 | + fi |
1602 | + |
1603 | + if test "$gt_cv_func_dgettext_libintl" = "yes"; then |
1604 | + INTLLIBS="-lintl $libintl_extra_libs" |
1605 | + fi |
1606 | + |
1607 | + if test "$gt_cv_have_gettext" = "yes"; then |
1608 | + AC_DEFINE(HAVE_GETTEXT,1, |
1609 | + [Define if the GNU gettext() function is already present or preinstalled.]) |
1610 | + GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
1611 | + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl |
1612 | + if test "$MSGFMT" != "no"; then |
1613 | + glib_save_LIBS="$LIBS" |
1614 | + LIBS="$LIBS $INTLLIBS" |
1615 | + AC_CHECK_FUNCS(dcgettext) |
1616 | + MSGFMT_OPTS= |
1617 | + AC_MSG_CHECKING([if msgfmt accepts -c]) |
1618 | + GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ |
1619 | +msgid "" |
1620 | +msgstr "" |
1621 | +"Content-Type: text/plain; charset=UTF-8\n" |
1622 | +"Project-Id-Version: test 1.0\n" |
1623 | +"PO-Revision-Date: 2007-02-15 12:01+0100\n" |
1624 | +"Last-Translator: test <foo@bar.xx>\n" |
1625 | +"Language-Team: C <LL@li.org>\n" |
1626 | +"MIME-Version: 1.0\n" |
1627 | +"Content-Transfer-Encoding: 8bit\n" |
1628 | +], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) |
1629 | + AC_SUBST(MSGFMT_OPTS) |
1630 | + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
1631 | + GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
1632 | + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
1633 | + AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; |
1634 | + return _nl_msg_cat_cntr], |
1635 | + [CATOBJEXT=.gmo |
1636 | + DATADIRNAME=share], |
1637 | + [case $host in |
1638 | + *-*-solaris*) |
1639 | + dnl On Solaris, if bind_textdomain_codeset is in libc, |
1640 | + dnl GNU format message catalog is always supported, |
1641 | + dnl since both are added to the libc all together. |
1642 | + dnl Hence, we'd like to go with DATADIRNAME=share and |
1643 | + dnl and CATOBJEXT=.gmo in this case. |
1644 | + AC_CHECK_FUNC(bind_textdomain_codeset, |
1645 | + [CATOBJEXT=.gmo |
1646 | + DATADIRNAME=share], |
1647 | + [CATOBJEXT=.mo |
1648 | + DATADIRNAME=lib]) |
1649 | + ;; |
1650 | + *-*-openbsd*) |
1651 | + CATOBJEXT=.mo |
1652 | + DATADIRNAME=share |
1653 | + ;; |
1654 | + *) |
1655 | + CATOBJEXT=.mo |
1656 | + DATADIRNAME=lib |
1657 | + ;; |
1658 | + esac]) |
1659 | + LIBS="$glib_save_LIBS" |
1660 | + INSTOBJEXT=.mo |
1661 | + else |
1662 | + gt_cv_have_gettext=no |
1663 | + fi |
1664 | + fi |
1665 | + ]) |
1666 | + |
1667 | + if test "$gt_cv_have_gettext" = "yes" ; then |
1668 | + AC_DEFINE(ENABLE_NLS, 1, |
1669 | + [always defined to indicate that i18n is enabled]) |
1670 | + fi |
1671 | + |
1672 | + dnl Test whether we really found GNU xgettext. |
1673 | + if test "$XGETTEXT" != ":"; then |
1674 | + dnl If it is not GNU xgettext we define it as : so that the |
1675 | + dnl Makefiles still can work. |
1676 | + if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
1677 | + : ; |
1678 | + else |
1679 | + AC_MSG_RESULT( |
1680 | + [found xgettext program is not GNU xgettext; ignore it]) |
1681 | + XGETTEXT=":" |
1682 | + fi |
1683 | + fi |
1684 | + |
1685 | + # We need to process the po/ directory. |
1686 | + POSUB=po |
1687 | + |
1688 | + AC_OUTPUT_COMMANDS( |
1689 | + [case "$CONFIG_FILES" in *po/Makefile.in*) |
1690 | + sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
1691 | + esac]) |
1692 | + |
1693 | + dnl These rules are solely for the distribution goal. While doing this |
1694 | + dnl we only have to keep exactly one list of the available catalogs |
1695 | + dnl in configure.ac. |
1696 | + for lang in $ALL_LINGUAS; do |
1697 | + GMOFILES="$GMOFILES $lang.gmo" |
1698 | + POFILES="$POFILES $lang.po" |
1699 | + done |
1700 | + |
1701 | + dnl Make all variables we use known to autoconf. |
1702 | + AC_SUBST(CATALOGS) |
1703 | + AC_SUBST(CATOBJEXT) |
1704 | + AC_SUBST(DATADIRNAME) |
1705 | + AC_SUBST(GMOFILES) |
1706 | + AC_SUBST(INSTOBJEXT) |
1707 | + AC_SUBST(INTLLIBS) |
1708 | + AC_SUBST(PO_IN_DATADIR_TRUE) |
1709 | + AC_SUBST(PO_IN_DATADIR_FALSE) |
1710 | + AC_SUBST(POFILES) |
1711 | + AC_SUBST(POSUB) |
1712 | + ]) |
1713 | + |
1714 | +# AM_GLIB_GNU_GETTEXT |
1715 | +# ------------------- |
1716 | +# Do checks necessary for use of gettext. If a suitable implementation |
1717 | +# of gettext is found in either in libintl or in the C library, |
1718 | +# it will set INTLLIBS to the libraries needed for use of gettext |
1719 | +# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable |
1720 | +# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() |
1721 | +# on various variables needed by the Makefile.in.in installed by |
1722 | +# glib-gettextize. |
1723 | +dnl |
1724 | +glib_DEFUN([GLIB_GNU_GETTEXT], |
1725 | + [AC_REQUIRE([AC_PROG_CC])dnl |
1726 | + AC_REQUIRE([AC_HEADER_STDC])dnl |
1727 | + |
1728 | + GLIB_LC_MESSAGES |
1729 | + GLIB_WITH_NLS |
1730 | + |
1731 | + if test "$gt_cv_have_gettext" = "yes"; then |
1732 | + if test "x$ALL_LINGUAS" = "x"; then |
1733 | + LINGUAS= |
1734 | + else |
1735 | + AC_MSG_CHECKING(for catalogs to be installed) |
1736 | + NEW_LINGUAS= |
1737 | + for presentlang in $ALL_LINGUAS; do |
1738 | + useit=no |
1739 | + if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then |
1740 | + desiredlanguages="$LINGUAS" |
1741 | + else |
1742 | + desiredlanguages="$ALL_LINGUAS" |
1743 | + fi |
1744 | + for desiredlang in $desiredlanguages; do |
1745 | + # Use the presentlang catalog if desiredlang is |
1746 | + # a. equal to presentlang, or |
1747 | + # b. a variant of presentlang (because in this case, |
1748 | + # presentlang can be used as a fallback for messages |
1749 | + # which are not translated in the desiredlang catalog). |
1750 | + case "$desiredlang" in |
1751 | + "$presentlang"*) useit=yes;; |
1752 | + esac |
1753 | + done |
1754 | + if test $useit = yes; then |
1755 | + NEW_LINGUAS="$NEW_LINGUAS $presentlang" |
1756 | + fi |
1757 | + done |
1758 | + LINGUAS=$NEW_LINGUAS |
1759 | + AC_MSG_RESULT($LINGUAS) |
1760 | + fi |
1761 | + |
1762 | + dnl Construct list of names of catalog files to be constructed. |
1763 | + if test -n "$LINGUAS"; then |
1764 | + for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
1765 | + fi |
1766 | + fi |
1767 | + |
1768 | + dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly |
1769 | + dnl find the mkinstalldirs script in another subdir but ($top_srcdir). |
1770 | + dnl Try to locate is. |
1771 | + MKINSTALLDIRS= |
1772 | + if test -n "$ac_aux_dir"; then |
1773 | + MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
1774 | + fi |
1775 | + if test -z "$MKINSTALLDIRS"; then |
1776 | + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
1777 | + fi |
1778 | + AC_SUBST(MKINSTALLDIRS) |
1779 | + |
1780 | + dnl Generate list of files to be processed by xgettext which will |
1781 | + dnl be included in po/Makefile. |
1782 | + test -d po || mkdir po |
1783 | + if test "x$srcdir" != "x."; then |
1784 | + if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
1785 | + posrcprefix="$srcdir/" |
1786 | + else |
1787 | + posrcprefix="../$srcdir/" |
1788 | + fi |
1789 | + else |
1790 | + posrcprefix="../" |
1791 | + fi |
1792 | + rm -f po/POTFILES |
1793 | + sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
1794 | + < $srcdir/po/POTFILES.in > po/POTFILES |
1795 | + ]) |
1796 | + |
1797 | +# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) |
1798 | +# ------------------------------- |
1799 | +# Define VARIABLE to the location where catalog files will |
1800 | +# be installed by po/Makefile. |
1801 | +glib_DEFUN([GLIB_DEFINE_LOCALEDIR], |
1802 | +[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl |
1803 | +glib_save_prefix="$prefix" |
1804 | +glib_save_exec_prefix="$exec_prefix" |
1805 | +glib_save_datarootdir="$datarootdir" |
1806 | +test "x$prefix" = xNONE && prefix=$ac_default_prefix |
1807 | +test "x$exec_prefix" = xNONE && exec_prefix=$prefix |
1808 | +datarootdir=`eval echo "${datarootdir}"` |
1809 | +if test "x$CATOBJEXT" = "x.mo" ; then |
1810 | + localedir=`eval echo "${libdir}/locale"` |
1811 | +else |
1812 | + localedir=`eval echo "${datadir}/locale"` |
1813 | +fi |
1814 | +prefix="$glib_save_prefix" |
1815 | +exec_prefix="$glib_save_exec_prefix" |
1816 | +datarootdir="$glib_save_datarootdir" |
1817 | +AC_DEFINE_UNQUOTED($1, "$localedir", |
1818 | + [Define the location where the catalogs will be installed]) |
1819 | +]) |
1820 | + |
1821 | +dnl |
1822 | +dnl Now the definitions that aclocal will find |
1823 | +dnl |
1824 | +ifdef(glib_configure_ac,[],[ |
1825 | +AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) |
1826 | +AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) |
1827 | +])dnl |
1828 | + |
1829 | +# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) |
1830 | +# |
1831 | +# Create a temporary file with TEST-FILE as its contents and pass the |
1832 | +# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with |
1833 | +# 0 and perform ACTION-IF-FAIL for any other exit status. |
1834 | +AC_DEFUN([GLIB_RUN_PROG], |
1835 | +[cat >conftest.foo <<_ACEOF |
1836 | +$2 |
1837 | +_ACEOF |
1838 | +if AC_RUN_LOG([$1 conftest.foo]); then |
1839 | + m4_ifval([$3], [$3], [:]) |
1840 | +m4_ifvaln([$4], [else $4])dnl |
1841 | +echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD |
1842 | +sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD |
1843 | +fi]) |
1844 | + |
1845 | + |
1846 | +dnl GLIB_GSETTINGS |
1847 | +dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether |
1848 | +dnl the schema should be compiled |
1849 | +dnl |
1850 | + |
1851 | +AC_DEFUN([GLIB_GSETTINGS], |
1852 | +[ |
1853 | + m4_pattern_allow([AM_V_GEN]) |
1854 | + AC_ARG_ENABLE(schemas-compile, |
1855 | + AS_HELP_STRING([--disable-schemas-compile], |
1856 | + [Disable regeneration of gschemas.compiled on install]), |
1857 | + [case ${enableval} in |
1858 | + yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; |
1859 | + no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; |
1860 | + *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;; |
1861 | + esac]) |
1862 | + AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE]) |
1863 | + PKG_PROG_PKG_CONFIG([0.16]) |
1864 | + AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas]) |
1865 | + if test x$cross_compiling != xyes; then |
1866 | + GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0` |
1867 | + else |
1868 | + AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas) |
1869 | + fi |
1870 | + AC_SUBST(GLIB_COMPILE_SCHEMAS) |
1871 | + if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then |
1872 | + ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2]) |
1873 | + else |
1874 | + ifelse([$1],,[:],[$1]) |
1875 | + fi |
1876 | + |
1877 | + GSETTINGS_RULES=' |
1878 | +.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas |
1879 | + |
1880 | +mostlyclean-am: clean-gsettings-schemas |
1881 | + |
1882 | +gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE)) |
1883 | + |
1884 | +%.gschema.valid: %.gschema.xml $(gsettings__enum_file) |
1885 | + $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@ |
1886 | + |
1887 | +all-am: $(gsettings_SCHEMAS:.xml=.valid) |
1888 | +uninstall-am: uninstall-gsettings-schemas |
1889 | +install-data-am: install-gsettings-schemas |
1890 | + |
1891 | +.SECONDARY: $(gsettings_SCHEMAS) |
1892 | + |
1893 | +install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) |
1894 | + @$(NORMAL_INSTALL) |
1895 | + if test -n "$^"; then \ |
1896 | + test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \ |
1897 | + $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \ |
1898 | + test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \ |
1899 | + fi |
1900 | + |
1901 | +uninstall-gsettings-schemas: |
1902 | + @$(NORMAL_UNINSTALL) |
1903 | + @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ |
1904 | + files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ |
1905 | + test -n "$$files" || exit 0; \ |
1906 | + echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ |
1907 | + cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files |
1908 | + test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) |
1909 | + |
1910 | +clean-gsettings-schemas: |
1911 | + rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) |
1912 | + |
1913 | +ifdef gsettings_ENUM_NAMESPACE |
1914 | +$(gsettings__enum_file): $(gsettings_ENUM_FILES) |
1915 | + $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@ |
1916 | +endif |
1917 | +' |
1918 | + _GSETTINGS_SUBST(GSETTINGS_RULES) |
1919 | +]) |
1920 | + |
1921 | +dnl _GSETTINGS_SUBST(VARIABLE) |
1922 | +dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST |
1923 | +AC_DEFUN([_GSETTINGS_SUBST], |
1924 | +[ |
1925 | +AC_SUBST([$1]) |
1926 | +m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) |
1927 | +] |
1928 | +) |
1929 | + |
1930 | + |
1931 | +dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) |
1932 | +# serial 42 IT_PROG_INTLTOOL |
1933 | +AC_DEFUN([IT_PROG_INTLTOOL], [ |
1934 | +AC_PREREQ([2.50])dnl |
1935 | +AC_REQUIRE([AM_NLS])dnl |
1936 | + |
1937 | +case "$am__api_version" in |
1938 | + 1.[01234]) |
1939 | + AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) |
1940 | + ;; |
1941 | + *) |
1942 | + ;; |
1943 | +esac |
1944 | + |
1945 | +INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
1946 | +INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` |
1947 | +INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
1948 | +if test -n "$1"; then |
1949 | + AC_MSG_CHECKING([for intltool >= $1]) |
1950 | + AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) |
1951 | + test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || |
1952 | + AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) |
1953 | +fi |
1954 | + |
1955 | +AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) |
1956 | +AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) |
1957 | +AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) |
1958 | +if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then |
1959 | + AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) |
1960 | +fi |
1961 | + |
1962 | +if test -z "$AM_DEFAULT_VERBOSITY"; then |
1963 | + AM_DEFAULT_VERBOSITY=1 |
1964 | +fi |
1965 | +AC_SUBST([AM_DEFAULT_VERBOSITY]) |
1966 | + |
1967 | +INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' |
1968 | +INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' |
1969 | +INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' |
1970 | +AC_SUBST(INTLTOOL_V_MERGE) |
1971 | +AC_SUBST(INTLTOOL__v_MERGE_) |
1972 | +AC_SUBST(INTLTOOL__v_MERGE_0) |
1973 | + |
1974 | +INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' |
1975 | +intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' |
1976 | +intltool__v_merge_options_0='-q' |
1977 | +AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) |
1978 | +AC_SUBST(intltool__v_merge_options_) |
1979 | +AC_SUBST(intltool__v_merge_options_0) |
1980 | + |
1981 | + INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1982 | +INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1983 | + INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1984 | + INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1985 | + INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' |
1986 | + INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1987 | + INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1988 | + INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1989 | +INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1990 | + INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1991 | + INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1992 | +if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then |
1993 | + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' |
1994 | +else |
1995 | + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' |
1996 | +fi |
1997 | + INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1998 | + INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1999 | + INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
2000 | + INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
2001 | + INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
2002 | + INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
2003 | + INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
2004 | + |
2005 | +_IT_SUBST(INTLTOOL_DESKTOP_RULE) |
2006 | +_IT_SUBST(INTLTOOL_DIRECTORY_RULE) |
2007 | +_IT_SUBST(INTLTOOL_KEYS_RULE) |
2008 | +_IT_SUBST(INTLTOOL_PROP_RULE) |
2009 | +_IT_SUBST(INTLTOOL_OAF_RULE) |
2010 | +_IT_SUBST(INTLTOOL_PONG_RULE) |
2011 | +_IT_SUBST(INTLTOOL_SERVER_RULE) |
2012 | +_IT_SUBST(INTLTOOL_SHEET_RULE) |
2013 | +_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) |
2014 | +_IT_SUBST(INTLTOOL_UI_RULE) |
2015 | +_IT_SUBST(INTLTOOL_XAM_RULE) |
2016 | +_IT_SUBST(INTLTOOL_KBD_RULE) |
2017 | +_IT_SUBST(INTLTOOL_XML_RULE) |
2018 | +_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) |
2019 | +_IT_SUBST(INTLTOOL_CAVES_RULE) |
2020 | +_IT_SUBST(INTLTOOL_SCHEMAS_RULE) |
2021 | +_IT_SUBST(INTLTOOL_THEME_RULE) |
2022 | +_IT_SUBST(INTLTOOL_SERVICE_RULE) |
2023 | +_IT_SUBST(INTLTOOL_POLICY_RULE) |
2024 | + |
2025 | +# Check the gettext tools to make sure they are GNU |
2026 | +AC_PATH_PROG(XGETTEXT, xgettext) |
2027 | +AC_PATH_PROG(MSGMERGE, msgmerge) |
2028 | +AC_PATH_PROG(MSGFMT, msgfmt) |
2029 | +AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
2030 | +if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then |
2031 | + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) |
2032 | +fi |
2033 | +xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" |
2034 | +mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" |
2035 | +mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" |
2036 | +if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then |
2037 | + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) |
2038 | +fi |
2039 | + |
2040 | +AC_PATH_PROG(INTLTOOL_PERL, perl) |
2041 | +if test -z "$INTLTOOL_PERL"; then |
2042 | + AC_MSG_ERROR([perl not found]) |
2043 | +fi |
2044 | +AC_MSG_CHECKING([for perl >= 5.8.1]) |
2045 | +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 |
2046 | +if test $? -ne 0; then |
2047 | + AC_MSG_ERROR([perl 5.8.1 is required for intltool]) |
2048 | +else |
2049 | + IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` |
2050 | + AC_MSG_RESULT([$IT_PERL_VERSION]) |
2051 | +fi |
2052 | +if test "x$2" != "xno-xml"; then |
2053 | + AC_MSG_CHECKING([for XML::Parser]) |
2054 | + if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then |
2055 | + AC_MSG_RESULT([ok]) |
2056 | + else |
2057 | + AC_MSG_ERROR([XML::Parser perl module is required for intltool]) |
2058 | + fi |
2059 | +fi |
2060 | + |
2061 | +# Substitute ALL_LINGUAS so we can use it in po/Makefile |
2062 | +AC_SUBST(ALL_LINGUAS) |
2063 | + |
2064 | +# Set DATADIRNAME correctly if it is not set yet |
2065 | +# (copied from glib-gettext.m4) |
2066 | +if test -z "$DATADIRNAME"; then |
2067 | + AC_LINK_IFELSE( |
2068 | + [AC_LANG_PROGRAM([[]], |
2069 | + [[extern int _nl_msg_cat_cntr; |
2070 | + return _nl_msg_cat_cntr]])], |
2071 | + [DATADIRNAME=share], |
2072 | + [case $host in |
2073 | + *-*-solaris*) |
2074 | + dnl On Solaris, if bind_textdomain_codeset is in libc, |
2075 | + dnl GNU format message catalog is always supported, |
2076 | + dnl since both are added to the libc all together. |
2077 | + dnl Hence, we'd like to go with DATADIRNAME=share |
2078 | + dnl in this case. |
2079 | + AC_CHECK_FUNC(bind_textdomain_codeset, |
2080 | + [DATADIRNAME=share], [DATADIRNAME=lib]) |
2081 | + ;; |
2082 | + *) |
2083 | + [DATADIRNAME=lib] |
2084 | + ;; |
2085 | + esac]) |
2086 | +fi |
2087 | +AC_SUBST(DATADIRNAME) |
2088 | + |
2089 | +IT_PO_SUBDIR([po]) |
2090 | + |
2091 | +]) |
2092 | + |
2093 | + |
2094 | +# IT_PO_SUBDIR(DIRNAME) |
2095 | +# --------------------- |
2096 | +# All po subdirs have to be declared with this macro; the subdir "po" is |
2097 | +# declared by IT_PROG_INTLTOOL. |
2098 | +# |
2099 | +AC_DEFUN([IT_PO_SUBDIR], |
2100 | +[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. |
2101 | +dnl |
2102 | +dnl The following CONFIG_COMMANDS should be executed at the very end |
2103 | +dnl of config.status. |
2104 | +AC_CONFIG_COMMANDS_PRE([ |
2105 | + AC_CONFIG_COMMANDS([$1/stamp-it], [ |
2106 | + if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then |
2107 | + AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) |
2108 | + fi |
2109 | + rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" |
2110 | + >"$1/stamp-it.tmp" |
2111 | + [sed '/^#/d |
2112 | + s/^[[].*] *// |
2113 | + /^[ ]*$/d |
2114 | + '"s|^| $ac_top_srcdir/|" \ |
2115 | + "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" |
2116 | + ] |
2117 | + [sed '/^POTFILES =/,/[^\\]$/ { |
2118 | + /^POTFILES =/!d |
2119 | + r $1/POTFILES |
2120 | + } |
2121 | + ' "$1/Makefile.in" >"$1/Makefile"] |
2122 | + rm -f "$1/Makefile.tmp" |
2123 | + mv "$1/stamp-it.tmp" "$1/stamp-it" |
2124 | + ]) |
2125 | +])dnl |
2126 | +]) |
2127 | + |
2128 | +# _IT_SUBST(VARIABLE) |
2129 | +# ------------------- |
2130 | +# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST |
2131 | +# |
2132 | +AC_DEFUN([_IT_SUBST], |
2133 | +[ |
2134 | +AC_SUBST([$1]) |
2135 | +m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) |
2136 | +] |
2137 | +) |
2138 | + |
2139 | +# deprecated macros |
2140 | +AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) |
2141 | +# A hint is needed for aclocal from Automake <= 1.9.4: |
2142 | +# AC_DEFUN([AC_PROG_INTLTOOL], ...) |
2143 | + |
2144 | + |
2145 | +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
2146 | +# |
2147 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
2148 | +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
2149 | +# Foundation, Inc. |
2150 | +# Written by Gordon Matzigkeit, 1996 |
2151 | +# |
2152 | +# This file is free software; the Free Software Foundation gives |
2153 | +# unlimited permission to copy and/or distribute it, with or without |
2154 | +# modifications, as long as this notice is preserved. |
2155 | + |
2156 | +m4_define([_LT_COPYING], [dnl |
2157 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
2158 | +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
2159 | +# Foundation, Inc. |
2160 | +# Written by Gordon Matzigkeit, 1996 |
2161 | +# |
2162 | +# This file is part of GNU Libtool. |
2163 | +# |
2164 | +# GNU Libtool is free software; you can redistribute it and/or |
2165 | +# modify it under the terms of the GNU General Public License as |
2166 | +# published by the Free Software Foundation; either version 2 of |
2167 | +# the License, or (at your option) any later version. |
2168 | +# |
2169 | +# As a special exception to the GNU General Public License, |
2170 | +# if you distribute this file as part of a program or library that |
2171 | +# is built using GNU Libtool, you may include this file under the |
2172 | +# same distribution terms that you use for the rest of that program. |
2173 | +# |
2174 | +# GNU Libtool is distributed in the hope that it will be useful, |
2175 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
2176 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2177 | +# GNU General Public License for more details. |
2178 | +# |
2179 | +# You should have received a copy of the GNU General Public License |
2180 | +# along with GNU Libtool; see the file COPYING. If not, a copy |
2181 | +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
2182 | +# obtained by writing to the Free Software Foundation, Inc., |
2183 | +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
2184 | +]) |
2185 | + |
2186 | +# serial 57 LT_INIT |
2187 | + |
2188 | + |
2189 | +# LT_PREREQ(VERSION) |
2190 | +# ------------------ |
2191 | +# Complain and exit if this libtool version is less that VERSION. |
2192 | +m4_defun([LT_PREREQ], |
2193 | +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
2194 | + [m4_default([$3], |
2195 | + [m4_fatal([Libtool version $1 or higher is required], |
2196 | + 63)])], |
2197 | + [$2])]) |
2198 | + |
2199 | + |
2200 | +# _LT_CHECK_BUILDDIR |
2201 | +# ------------------ |
2202 | +# Complain if the absolute build directory name contains unusual characters |
2203 | +m4_defun([_LT_CHECK_BUILDDIR], |
2204 | +[case `pwd` in |
2205 | + *\ * | *\ *) |
2206 | + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; |
2207 | +esac |
2208 | +]) |
2209 | + |
2210 | + |
2211 | +# LT_INIT([OPTIONS]) |
2212 | +# ------------------ |
2213 | +AC_DEFUN([LT_INIT], |
2214 | +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
2215 | +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl |
2216 | +AC_BEFORE([$0], [LT_LANG])dnl |
2217 | +AC_BEFORE([$0], [LT_OUTPUT])dnl |
2218 | +AC_BEFORE([$0], [LTDL_INIT])dnl |
2219 | +m4_require([_LT_CHECK_BUILDDIR])dnl |
2220 | + |
2221 | +dnl Autoconf doesn't catch unexpanded LT_ macros by default: |
2222 | +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
2223 | +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl |
2224 | +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 |
2225 | +dnl unless we require an AC_DEFUNed macro: |
2226 | +AC_REQUIRE([LTOPTIONS_VERSION])dnl |
2227 | +AC_REQUIRE([LTSUGAR_VERSION])dnl |
2228 | +AC_REQUIRE([LTVERSION_VERSION])dnl |
2229 | +AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
2230 | +m4_require([_LT_PROG_LTMAIN])dnl |
2231 | + |
2232 | +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) |
2233 | + |
2234 | +dnl Parse OPTIONS |
2235 | +_LT_SET_OPTIONS([$0], [$1]) |
2236 | + |
2237 | +# This can be used to rebuild libtool when needed |
2238 | +LIBTOOL_DEPS="$ltmain" |
2239 | + |
2240 | +# Always use our own libtool. |
2241 | +LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
2242 | +AC_SUBST(LIBTOOL)dnl |
2243 | + |
2244 | +_LT_SETUP |
2245 | + |
2246 | +# Only expand once: |
2247 | +m4_define([LT_INIT]) |
2248 | +])# LT_INIT |
2249 | + |
2250 | +# Old names: |
2251 | +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) |
2252 | +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) |
2253 | +dnl aclocal-1.4 backwards compatibility: |
2254 | +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) |
2255 | +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) |
2256 | + |
2257 | + |
2258 | +# _LT_CC_BASENAME(CC) |
2259 | +# ------------------- |
2260 | +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
2261 | +m4_defun([_LT_CC_BASENAME], |
2262 | +[for cc_temp in $1""; do |
2263 | + case $cc_temp in |
2264 | + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
2265 | + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
2266 | + \-*) ;; |
2267 | + *) break;; |
2268 | + esac |
2269 | +done |
2270 | +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
2271 | +]) |
2272 | + |
2273 | + |
2274 | +# _LT_FILEUTILS_DEFAULTS |
2275 | +# ---------------------- |
2276 | +# It is okay to use these file commands and assume they have been set |
2277 | +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. |
2278 | +m4_defun([_LT_FILEUTILS_DEFAULTS], |
2279 | +[: ${CP="cp -f"} |
2280 | +: ${MV="mv -f"} |
2281 | +: ${RM="rm -f"} |
2282 | +])# _LT_FILEUTILS_DEFAULTS |
2283 | + |
2284 | + |
2285 | +# _LT_SETUP |
2286 | +# --------- |
2287 | +m4_defun([_LT_SETUP], |
2288 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2289 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
2290 | +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
2291 | +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
2292 | + |
2293 | +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl |
2294 | +dnl |
2295 | +_LT_DECL([], [host_alias], [0], [The host system])dnl |
2296 | +_LT_DECL([], [host], [0])dnl |
2297 | +_LT_DECL([], [host_os], [0])dnl |
2298 | +dnl |
2299 | +_LT_DECL([], [build_alias], [0], [The build system])dnl |
2300 | +_LT_DECL([], [build], [0])dnl |
2301 | +_LT_DECL([], [build_os], [0])dnl |
2302 | +dnl |
2303 | +AC_REQUIRE([AC_PROG_CC])dnl |
2304 | +AC_REQUIRE([LT_PATH_LD])dnl |
2305 | +AC_REQUIRE([LT_PATH_NM])dnl |
2306 | +dnl |
2307 | +AC_REQUIRE([AC_PROG_LN_S])dnl |
2308 | +test -z "$LN_S" && LN_S="ln -s" |
2309 | +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
2310 | +dnl |
2311 | +AC_REQUIRE([LT_CMD_MAX_LEN])dnl |
2312 | +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
2313 | +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
2314 | +dnl |
2315 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2316 | +m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
2317 | +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl |
2318 | +m4_require([_LT_CMD_RELOAD])dnl |
2319 | +m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
2320 | +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl |
2321 | +m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
2322 | +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
2323 | +m4_require([_LT_WITH_SYSROOT])dnl |
2324 | + |
2325 | +_LT_CONFIG_LIBTOOL_INIT([ |
2326 | +# See if we are running on zsh, and set the options which allow our |
2327 | +# commands through without removal of \ escapes INIT. |
2328 | +if test -n "\${ZSH_VERSION+set}" ; then |
2329 | + setopt NO_GLOB_SUBST |
2330 | +fi |
2331 | +]) |
2332 | +if test -n "${ZSH_VERSION+set}" ; then |
2333 | + setopt NO_GLOB_SUBST |
2334 | +fi |
2335 | + |
2336 | +_LT_CHECK_OBJDIR |
2337 | + |
2338 | +m4_require([_LT_TAG_COMPILER])dnl |
2339 | + |
2340 | +case $host_os in |
2341 | +aix3*) |
2342 | + # AIX sometimes has problems with the GCC collect2 program. For some |
2343 | + # reason, if we set the COLLECT_NAMES environment variable, the problems |
2344 | + # vanish in a puff of smoke. |
2345 | + if test "X${COLLECT_NAMES+set}" != Xset; then |
2346 | + COLLECT_NAMES= |
2347 | + export COLLECT_NAMES |
2348 | + fi |
2349 | + ;; |
2350 | +esac |
2351 | + |
2352 | +# Global variables: |
2353 | +ofile=libtool |
2354 | +can_build_shared=yes |
2355 | + |
2356 | +# All known linkers require a `.a' archive for static linking (except MSVC, |
2357 | +# which needs '.lib'). |
2358 | +libext=a |
2359 | + |
2360 | +with_gnu_ld="$lt_cv_prog_gnu_ld" |
2361 | + |
2362 | +old_CC="$CC" |
2363 | +old_CFLAGS="$CFLAGS" |
2364 | + |
2365 | +# Set sane defaults for various variables |
2366 | +test -z "$CC" && CC=cc |
2367 | +test -z "$LTCC" && LTCC=$CC |
2368 | +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
2369 | +test -z "$LD" && LD=ld |
2370 | +test -z "$ac_objext" && ac_objext=o |
2371 | + |
2372 | +_LT_CC_BASENAME([$compiler]) |
2373 | + |
2374 | +# Only perform the check for file, if the check method requires it |
2375 | +test -z "$MAGIC_CMD" && MAGIC_CMD=file |
2376 | +case $deplibs_check_method in |
2377 | +file_magic*) |
2378 | + if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
2379 | + _LT_PATH_MAGIC |
2380 | + fi |
2381 | + ;; |
2382 | +esac |
2383 | + |
2384 | +# Use C for the default configuration in the libtool script |
2385 | +LT_SUPPORTED_TAG([CC]) |
2386 | +_LT_LANG_C_CONFIG |
2387 | +_LT_LANG_DEFAULT_CONFIG |
2388 | +_LT_CONFIG_COMMANDS |
2389 | +])# _LT_SETUP |
2390 | + |
2391 | + |
2392 | +# _LT_PREPARE_SED_QUOTE_VARS |
2393 | +# -------------------------- |
2394 | +# Define a few sed substitution that help us do robust quoting. |
2395 | +m4_defun([_LT_PREPARE_SED_QUOTE_VARS], |
2396 | +[# Backslashify metacharacters that are still active within |
2397 | +# double-quoted strings. |
2398 | +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
2399 | + |
2400 | +# Same as above, but do not quote variable references. |
2401 | +double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
2402 | + |
2403 | +# Sed substitution to delay expansion of an escaped shell variable in a |
2404 | +# double_quote_subst'ed string. |
2405 | +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
2406 | + |
2407 | +# Sed substitution to delay expansion of an escaped single quote. |
2408 | +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
2409 | + |
2410 | +# Sed substitution to avoid accidental globbing in evaled expressions |
2411 | +no_glob_subst='s/\*/\\\*/g' |
2412 | +]) |
2413 | + |
2414 | +# _LT_PROG_LTMAIN |
2415 | +# --------------- |
2416 | +# Note that this code is called both from `configure', and `config.status' |
2417 | +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
2418 | +# `config.status' has no value for ac_aux_dir unless we are using Automake, |
2419 | +# so we pass a copy along to make sure it has a sensible value anyway. |
2420 | +m4_defun([_LT_PROG_LTMAIN], |
2421 | +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl |
2422 | +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
2423 | +ltmain="$ac_aux_dir/ltmain.sh" |
2424 | +])# _LT_PROG_LTMAIN |
2425 | + |
2426 | + |
2427 | + |
2428 | +# So that we can recreate a full libtool script including additional |
2429 | +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS |
2430 | +# in macros and then make a single call at the end using the `libtool' |
2431 | +# label. |
2432 | + |
2433 | + |
2434 | +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
2435 | +# ---------------------------------------- |
2436 | +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
2437 | +m4_define([_LT_CONFIG_LIBTOOL_INIT], |
2438 | +[m4_ifval([$1], |
2439 | + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], |
2440 | + [$1 |
2441 | +])])]) |
2442 | + |
2443 | +# Initialize. |
2444 | +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) |
2445 | + |
2446 | + |
2447 | +# _LT_CONFIG_LIBTOOL([COMMANDS]) |
2448 | +# ------------------------------ |
2449 | +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
2450 | +m4_define([_LT_CONFIG_LIBTOOL], |
2451 | +[m4_ifval([$1], |
2452 | + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], |
2453 | + [$1 |
2454 | +])])]) |
2455 | + |
2456 | +# Initialize. |
2457 | +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) |
2458 | + |
2459 | + |
2460 | +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) |
2461 | +# ----------------------------------------------------- |
2462 | +m4_defun([_LT_CONFIG_SAVE_COMMANDS], |
2463 | +[_LT_CONFIG_LIBTOOL([$1]) |
2464 | +_LT_CONFIG_LIBTOOL_INIT([$2]) |
2465 | +]) |
2466 | + |
2467 | + |
2468 | +# _LT_FORMAT_COMMENT([COMMENT]) |
2469 | +# ----------------------------- |
2470 | +# Add leading comment marks to the start of each line, and a trailing |
2471 | +# full-stop to the whole comment if one is not present already. |
2472 | +m4_define([_LT_FORMAT_COMMENT], |
2473 | +[m4_ifval([$1], [ |
2474 | +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], |
2475 | + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) |
2476 | +)]) |
2477 | + |
2478 | + |
2479 | + |
2480 | + |
2481 | + |
2482 | +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) |
2483 | +# ------------------------------------------------------------------- |
2484 | +# CONFIGNAME is the name given to the value in the libtool script. |
2485 | +# VARNAME is the (base) name used in the configure script. |
2486 | +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on |
2487 | +# VARNAME. Any other value will be used directly. |
2488 | +m4_define([_LT_DECL], |
2489 | +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], |
2490 | + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], |
2491 | + [m4_ifval([$1], [$1], [$2])]) |
2492 | + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) |
2493 | + m4_ifval([$4], |
2494 | + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) |
2495 | + lt_dict_add_subkey([lt_decl_dict], [$2], |
2496 | + [tagged?], [m4_ifval([$5], [yes], [no])])]) |
2497 | +]) |
2498 | + |
2499 | + |
2500 | +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) |
2501 | +# -------------------------------------------------------- |
2502 | +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) |
2503 | + |
2504 | + |
2505 | +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) |
2506 | +# ------------------------------------------------ |
2507 | +m4_define([lt_decl_tag_varnames], |
2508 | +[_lt_decl_filter([tagged?], [yes], $@)]) |
2509 | + |
2510 | + |
2511 | +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) |
2512 | +# --------------------------------------------------------- |
2513 | +m4_define([_lt_decl_filter], |
2514 | +[m4_case([$#], |
2515 | + [0], [m4_fatal([$0: too few arguments: $#])], |
2516 | + [1], [m4_fatal([$0: too few arguments: $#: $1])], |
2517 | + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], |
2518 | + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], |
2519 | + [lt_dict_filter([lt_decl_dict], $@)])[]dnl |
2520 | +]) |
2521 | + |
2522 | + |
2523 | +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) |
2524 | +# -------------------------------------------------- |
2525 | +m4_define([lt_decl_quote_varnames], |
2526 | +[_lt_decl_filter([value], [1], $@)]) |
2527 | + |
2528 | + |
2529 | +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) |
2530 | +# --------------------------------------------------- |
2531 | +m4_define([lt_decl_dquote_varnames], |
2532 | +[_lt_decl_filter([value], [2], $@)]) |
2533 | + |
2534 | + |
2535 | +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) |
2536 | +# --------------------------------------------------- |
2537 | +m4_define([lt_decl_varnames_tagged], |
2538 | +[m4_assert([$# <= 2])dnl |
2539 | +_$0(m4_quote(m4_default([$1], [[, ]])), |
2540 | + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), |
2541 | + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) |
2542 | +m4_define([_lt_decl_varnames_tagged], |
2543 | +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) |
2544 | + |
2545 | + |
2546 | +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) |
2547 | +# ------------------------------------------------ |
2548 | +m4_define([lt_decl_all_varnames], |
2549 | +[_$0(m4_quote(m4_default([$1], [[, ]])), |
2550 | + m4_if([$2], [], |
2551 | + m4_quote(lt_decl_varnames), |
2552 | + m4_quote(m4_shift($@))))[]dnl |
2553 | +]) |
2554 | +m4_define([_lt_decl_all_varnames], |
2555 | +[lt_join($@, lt_decl_varnames_tagged([$1], |
2556 | + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
2557 | +]) |
2558 | + |
2559 | + |
2560 | +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
2561 | +# ------------------------------------ |
2562 | +# Quote a variable value, and forward it to `config.status' so that its |
2563 | +# declaration there will have the same value as in `configure'. VARNAME |
2564 | +# must have a single quote delimited value for this to work. |
2565 | +m4_define([_LT_CONFIG_STATUS_DECLARE], |
2566 | +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) |
2567 | + |
2568 | + |
2569 | +# _LT_CONFIG_STATUS_DECLARATIONS |
2570 | +# ------------------------------ |
2571 | +# We delimit libtool config variables with single quotes, so when |
2572 | +# we write them to config.status, we have to be sure to quote all |
2573 | +# embedded single quotes properly. In configure, this macro expands |
2574 | +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
2575 | +# |
2576 | +# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' |
2577 | +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
2578 | +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
2579 | + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
2580 | + |
2581 | + |
2582 | +# _LT_LIBTOOL_TAGS |
2583 | +# ---------------- |
2584 | +# Output comment and list of tags supported by the script |
2585 | +m4_defun([_LT_LIBTOOL_TAGS], |
2586 | +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl |
2587 | +available_tags="_LT_TAGS"dnl |
2588 | +]) |
2589 | + |
2590 | + |
2591 | +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
2592 | +# ----------------------------------- |
2593 | +# Extract the dictionary values for VARNAME (optionally with TAG) and |
2594 | +# expand to a commented shell variable setting: |
2595 | +# |
2596 | +# # Some comment about what VAR is for. |
2597 | +# visible_name=$lt_internal_name |
2598 | +m4_define([_LT_LIBTOOL_DECLARE], |
2599 | +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], |
2600 | + [description])))[]dnl |
2601 | +m4_pushdef([_libtool_name], |
2602 | + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl |
2603 | +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), |
2604 | + [0], [_libtool_name=[$]$1], |
2605 | + [1], [_libtool_name=$lt_[]$1], |
2606 | + [2], [_libtool_name=$lt_[]$1], |
2607 | + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl |
2608 | +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl |
2609 | +]) |
2610 | + |
2611 | + |
2612 | +# _LT_LIBTOOL_CONFIG_VARS |
2613 | +# ----------------------- |
2614 | +# Produce commented declarations of non-tagged libtool config variables |
2615 | +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' |
2616 | +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG |
2617 | +# section) are produced by _LT_LIBTOOL_TAG_VARS. |
2618 | +m4_defun([_LT_LIBTOOL_CONFIG_VARS], |
2619 | +[m4_foreach([_lt_var], |
2620 | + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), |
2621 | + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) |
2622 | + |
2623 | + |
2624 | +# _LT_LIBTOOL_TAG_VARS(TAG) |
2625 | +# ------------------------- |
2626 | +m4_define([_LT_LIBTOOL_TAG_VARS], |
2627 | +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), |
2628 | + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) |
2629 | + |
2630 | + |
2631 | +# _LT_TAGVAR(VARNAME, [TAGNAME]) |
2632 | +# ------------------------------ |
2633 | +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) |
2634 | + |
2635 | + |
2636 | +# _LT_CONFIG_COMMANDS |
2637 | +# ------------------- |
2638 | +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of |
2639 | +# variables for single and double quote escaping we saved from calls |
2640 | +# to _LT_DECL, we can put quote escaped variables declarations |
2641 | +# into `config.status', and then the shell code to quote escape them in |
2642 | +# for loops in `config.status'. Finally, any additional code accumulated |
2643 | +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. |
2644 | +m4_defun([_LT_CONFIG_COMMANDS], |
2645 | +[AC_PROVIDE_IFELSE([LT_OUTPUT], |
2646 | + dnl If the libtool generation code has been placed in $CONFIG_LT, |
2647 | + dnl instead of duplicating it all over again into config.status, |
2648 | + dnl then we will have config.status run $CONFIG_LT later, so it |
2649 | + dnl needs to know what name is stored there: |
2650 | + [AC_CONFIG_COMMANDS([libtool], |
2651 | + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], |
2652 | + dnl If the libtool generation code is destined for config.status, |
2653 | + dnl expand the accumulated commands and init code now: |
2654 | + [AC_CONFIG_COMMANDS([libtool], |
2655 | + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) |
2656 | +])#_LT_CONFIG_COMMANDS |
2657 | + |
2658 | + |
2659 | +# Initialize. |
2660 | +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], |
2661 | +[ |
2662 | + |
2663 | +# The HP-UX ksh and POSIX shell print the target directory to stdout |
2664 | +# if CDPATH is set. |
2665 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
2666 | + |
2667 | +sed_quote_subst='$sed_quote_subst' |
2668 | +double_quote_subst='$double_quote_subst' |
2669 | +delay_variable_subst='$delay_variable_subst' |
2670 | +_LT_CONFIG_STATUS_DECLARATIONS |
2671 | +LTCC='$LTCC' |
2672 | +LTCFLAGS='$LTCFLAGS' |
2673 | +compiler='$compiler_DEFAULT' |
2674 | + |
2675 | +# A function that is used when there is no print builtin or printf. |
2676 | +func_fallback_echo () |
2677 | +{ |
2678 | + eval 'cat <<_LTECHO_EOF |
2679 | +\$[]1 |
2680 | +_LTECHO_EOF' |
2681 | +} |
2682 | + |
2683 | +# Quote evaled strings. |
2684 | +for var in lt_decl_all_varnames([[ \ |
2685 | +]], lt_decl_quote_varnames); do |
2686 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
2687 | + *[[\\\\\\\`\\"\\\$]]*) |
2688 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
2689 | + ;; |
2690 | + *) |
2691 | + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
2692 | + ;; |
2693 | + esac |
2694 | +done |
2695 | + |
2696 | +# Double-quote double-evaled strings. |
2697 | +for var in lt_decl_all_varnames([[ \ |
2698 | +]], lt_decl_dquote_varnames); do |
2699 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
2700 | + *[[\\\\\\\`\\"\\\$]]*) |
2701 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
2702 | + ;; |
2703 | + *) |
2704 | + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
2705 | + ;; |
2706 | + esac |
2707 | +done |
2708 | + |
2709 | +_LT_OUTPUT_LIBTOOL_INIT |
2710 | +]) |
2711 | + |
2712 | +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) |
2713 | +# ------------------------------------ |
2714 | +# Generate a child script FILE with all initialization necessary to |
2715 | +# reuse the environment learned by the parent script, and make the |
2716 | +# file executable. If COMMENT is supplied, it is inserted after the |
2717 | +# `#!' sequence but before initialization text begins. After this |
2718 | +# macro, additional text can be appended to FILE to form the body of |
2719 | +# the child script. The macro ends with non-zero status if the |
2720 | +# file could not be fully written (such as if the disk is full). |
2721 | +m4_ifdef([AS_INIT_GENERATED], |
2722 | +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], |
2723 | +[m4_defun([_LT_GENERATED_FILE_INIT], |
2724 | +[m4_require([AS_PREPARE])]dnl |
2725 | +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl |
2726 | +[lt_write_fail=0 |
2727 | +cat >$1 <<_ASEOF || lt_write_fail=1 |
2728 | +#! $SHELL |
2729 | +# Generated by $as_me. |
2730 | +$2 |
2731 | +SHELL=\${CONFIG_SHELL-$SHELL} |
2732 | +export SHELL |
2733 | +_ASEOF |
2734 | +cat >>$1 <<\_ASEOF || lt_write_fail=1 |
2735 | +AS_SHELL_SANITIZE |
2736 | +_AS_PREPARE |
2737 | +exec AS_MESSAGE_FD>&1 |
2738 | +_ASEOF |
2739 | +test $lt_write_fail = 0 && chmod +x $1[]dnl |
2740 | +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT |
2741 | + |
2742 | +# LT_OUTPUT |
2743 | +# --------- |
2744 | +# This macro allows early generation of the libtool script (before |
2745 | +# AC_OUTPUT is called), incase it is used in configure for compilation |
2746 | +# tests. |
2747 | +AC_DEFUN([LT_OUTPUT], |
2748 | +[: ${CONFIG_LT=./config.lt} |
2749 | +AC_MSG_NOTICE([creating $CONFIG_LT]) |
2750 | +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], |
2751 | +[# Run this file to recreate a libtool stub with the current configuration.]) |
2752 | + |
2753 | +cat >>"$CONFIG_LT" <<\_LTEOF |
2754 | +lt_cl_silent=false |
2755 | +exec AS_MESSAGE_LOG_FD>>config.log |
2756 | +{ |
2757 | + echo |
2758 | + AS_BOX([Running $as_me.]) |
2759 | +} >&AS_MESSAGE_LOG_FD |
2760 | + |
2761 | +lt_cl_help="\ |
2762 | +\`$as_me' creates a local libtool stub from the current configuration, |
2763 | +for use in further configure time tests before the real libtool is |
2764 | +generated. |
2765 | + |
2766 | +Usage: $[0] [[OPTIONS]] |
2767 | + |
2768 | + -h, --help print this help, then exit |
2769 | + -V, --version print version number, then exit |
2770 | + -q, --quiet do not print progress messages |
2771 | + -d, --debug don't remove temporary files |
2772 | + |
2773 | +Report bugs to <bug-libtool@gnu.org>." |
2774 | + |
2775 | +lt_cl_version="\ |
2776 | +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
2777 | +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
2778 | +configured by $[0], generated by m4_PACKAGE_STRING. |
2779 | + |
2780 | +Copyright (C) 2011 Free Software Foundation, Inc. |
2781 | +This config.lt script is free software; the Free Software Foundation |
2782 | +gives unlimited permision to copy, distribute and modify it." |
2783 | + |
2784 | +while test $[#] != 0 |
2785 | +do |
2786 | + case $[1] in |
2787 | + --version | --v* | -V ) |
2788 | + echo "$lt_cl_version"; exit 0 ;; |
2789 | + --help | --h* | -h ) |
2790 | + echo "$lt_cl_help"; exit 0 ;; |
2791 | + --debug | --d* | -d ) |
2792 | + debug=: ;; |
2793 | + --quiet | --q* | --silent | --s* | -q ) |
2794 | + lt_cl_silent=: ;; |
2795 | + |
2796 | + -*) AC_MSG_ERROR([unrecognized option: $[1] |
2797 | +Try \`$[0] --help' for more information.]) ;; |
2798 | + |
2799 | + *) AC_MSG_ERROR([unrecognized argument: $[1] |
2800 | +Try \`$[0] --help' for more information.]) ;; |
2801 | + esac |
2802 | + shift |
2803 | +done |
2804 | + |
2805 | +if $lt_cl_silent; then |
2806 | + exec AS_MESSAGE_FD>/dev/null |
2807 | +fi |
2808 | +_LTEOF |
2809 | + |
2810 | +cat >>"$CONFIG_LT" <<_LTEOF |
2811 | +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT |
2812 | +_LTEOF |
2813 | + |
2814 | +cat >>"$CONFIG_LT" <<\_LTEOF |
2815 | +AC_MSG_NOTICE([creating $ofile]) |
2816 | +_LT_OUTPUT_LIBTOOL_COMMANDS |
2817 | +AS_EXIT(0) |
2818 | +_LTEOF |
2819 | +chmod +x "$CONFIG_LT" |
2820 | + |
2821 | +# configure is writing to config.log, but config.lt does its own redirection, |
2822 | +# appending to config.log, which fails on DOS, as config.log is still kept |
2823 | +# open by configure. Here we exec the FD to /dev/null, effectively closing |
2824 | +# config.log, so it can be properly (re)opened and appended to by config.lt. |
2825 | +lt_cl_success=: |
2826 | +test "$silent" = yes && |
2827 | + lt_config_lt_args="$lt_config_lt_args --quiet" |
2828 | +exec AS_MESSAGE_LOG_FD>/dev/null |
2829 | +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
2830 | +exec AS_MESSAGE_LOG_FD>>config.log |
2831 | +$lt_cl_success || AS_EXIT(1) |
2832 | +])# LT_OUTPUT |
2833 | + |
2834 | + |
2835 | +# _LT_CONFIG(TAG) |
2836 | +# --------------- |
2837 | +# If TAG is the built-in tag, create an initial libtool script with a |
2838 | +# default configuration from the untagged config vars. Otherwise add code |
2839 | +# to config.status for appending the configuration named by TAG from the |
2840 | +# matching tagged config vars. |
2841 | +m4_defun([_LT_CONFIG], |
2842 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2843 | +_LT_CONFIG_SAVE_COMMANDS([ |
2844 | + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl |
2845 | + m4_if(_LT_TAG, [C], [ |
2846 | + # See if we are running on zsh, and set the options which allow our |
2847 | + # commands through without removal of \ escapes. |
2848 | + if test -n "${ZSH_VERSION+set}" ; then |
2849 | + setopt NO_GLOB_SUBST |
2850 | + fi |
2851 | + |
2852 | + cfgfile="${ofile}T" |
2853 | + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
2854 | + $RM "$cfgfile" |
2855 | + |
2856 | + cat <<_LT_EOF >> "$cfgfile" |
2857 | +#! $SHELL |
2858 | + |
2859 | +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
2860 | +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
2861 | +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
2862 | +# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
2863 | +# |
2864 | +_LT_COPYING |
2865 | +_LT_LIBTOOL_TAGS |
2866 | + |
2867 | +# ### BEGIN LIBTOOL CONFIG |
2868 | +_LT_LIBTOOL_CONFIG_VARS |
2869 | +_LT_LIBTOOL_TAG_VARS |
2870 | +# ### END LIBTOOL CONFIG |
2871 | + |
2872 | +_LT_EOF |
2873 | + |
2874 | + case $host_os in |
2875 | + aix3*) |
2876 | + cat <<\_LT_EOF >> "$cfgfile" |
2877 | +# AIX sometimes has problems with the GCC collect2 program. For some |
2878 | +# reason, if we set the COLLECT_NAMES environment variable, the problems |
2879 | +# vanish in a puff of smoke. |
2880 | +if test "X${COLLECT_NAMES+set}" != Xset; then |
2881 | + COLLECT_NAMES= |
2882 | + export COLLECT_NAMES |
2883 | +fi |
2884 | +_LT_EOF |
2885 | + ;; |
2886 | + esac |
2887 | + |
2888 | + _LT_PROG_LTMAIN |
2889 | + |
2890 | + # We use sed instead of cat because bash on DJGPP gets confused if |
2891 | + # if finds mixed CR/LF and LF-only lines. Since sed operates in |
2892 | + # text mode, it properly converts lines to CR/LF. This bash problem |
2893 | + # is reportedly fixed, but why not run on old versions too? |
2894 | + sed '$q' "$ltmain" >> "$cfgfile" \ |
2895 | + || (rm -f "$cfgfile"; exit 1) |
2896 | + |
2897 | + _LT_PROG_REPLACE_SHELLFNS |
2898 | + |
2899 | + mv -f "$cfgfile" "$ofile" || |
2900 | + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
2901 | + chmod +x "$ofile" |
2902 | +], |
2903 | +[cat <<_LT_EOF >> "$ofile" |
2904 | + |
2905 | +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
2906 | +dnl in a comment (ie after a #). |
2907 | +# ### BEGIN LIBTOOL TAG CONFIG: $1 |
2908 | +_LT_LIBTOOL_TAG_VARS(_LT_TAG) |
2909 | +# ### END LIBTOOL TAG CONFIG: $1 |
2910 | +_LT_EOF |
2911 | +])dnl /m4_if |
2912 | +], |
2913 | +[m4_if([$1], [], [ |
2914 | + PACKAGE='$PACKAGE' |
2915 | + VERSION='$VERSION' |
2916 | + TIMESTAMP='$TIMESTAMP' |
2917 | + RM='$RM' |
2918 | + ofile='$ofile'], []) |
2919 | +])dnl /_LT_CONFIG_SAVE_COMMANDS |
2920 | +])# _LT_CONFIG |
2921 | + |
2922 | + |
2923 | +# LT_SUPPORTED_TAG(TAG) |
2924 | +# --------------------- |
2925 | +# Trace this macro to discover what tags are supported by the libtool |
2926 | +# --tag option, using: |
2927 | +# autoconf --trace 'LT_SUPPORTED_TAG:$1' |
2928 | +AC_DEFUN([LT_SUPPORTED_TAG], []) |
2929 | + |
2930 | + |
2931 | +# C support is built-in for now |
2932 | +m4_define([_LT_LANG_C_enabled], []) |
2933 | +m4_define([_LT_TAGS], []) |
2934 | + |
2935 | + |
2936 | +# LT_LANG(LANG) |
2937 | +# ------------- |
2938 | +# Enable libtool support for the given language if not already enabled. |
2939 | +AC_DEFUN([LT_LANG], |
2940 | +[AC_BEFORE([$0], [LT_OUTPUT])dnl |
2941 | +m4_case([$1], |
2942 | + [C], [_LT_LANG(C)], |
2943 | + [C++], [_LT_LANG(CXX)], |
2944 | + [Go], [_LT_LANG(GO)], |
2945 | + [Java], [_LT_LANG(GCJ)], |
2946 | + [Fortran 77], [_LT_LANG(F77)], |
2947 | + [Fortran], [_LT_LANG(FC)], |
2948 | + [Windows Resource], [_LT_LANG(RC)], |
2949 | + [m4_ifdef([_LT_LANG_]$1[_CONFIG], |
2950 | + [_LT_LANG($1)], |
2951 | + [m4_fatal([$0: unsupported language: "$1"])])])dnl |
2952 | +])# LT_LANG |
2953 | + |
2954 | + |
2955 | +# _LT_LANG(LANGNAME) |
2956 | +# ------------------ |
2957 | +m4_defun([_LT_LANG], |
2958 | +[m4_ifdef([_LT_LANG_]$1[_enabled], [], |
2959 | + [LT_SUPPORTED_TAG([$1])dnl |
2960 | + m4_append([_LT_TAGS], [$1 ])dnl |
2961 | + m4_define([_LT_LANG_]$1[_enabled], [])dnl |
2962 | + _LT_LANG_$1_CONFIG($1)])dnl |
2963 | +])# _LT_LANG |
2964 | + |
2965 | + |
2966 | +m4_ifndef([AC_PROG_GO], [ |
2967 | +# NOTE: This macro has been submitted for inclusion into # |
2968 | +# GNU Autoconf as AC_PROG_GO. When it is available in # |
2969 | +# a released version of Autoconf we should remove this # |
2970 | +# macro and use it instead. # |
2971 | +m4_defun([AC_PROG_GO], |
2972 | +[AC_LANG_PUSH(Go)dnl |
2973 | +AC_ARG_VAR([GOC], [Go compiler command])dnl |
2974 | +AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl |
2975 | +_AC_ARG_VAR_LDFLAGS()dnl |
2976 | +AC_CHECK_TOOL(GOC, gccgo) |
2977 | +if test -z "$GOC"; then |
2978 | + if test -n "$ac_tool_prefix"; then |
2979 | + AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) |
2980 | + fi |
2981 | +fi |
2982 | +if test -z "$GOC"; then |
2983 | + AC_CHECK_PROG(GOC, gccgo, gccgo, false) |
2984 | +fi |
2985 | +])#m4_defun |
2986 | +])#m4_ifndef |
2987 | + |
2988 | + |
2989 | +# _LT_LANG_DEFAULT_CONFIG |
2990 | +# ----------------------- |
2991 | +m4_defun([_LT_LANG_DEFAULT_CONFIG], |
2992 | +[AC_PROVIDE_IFELSE([AC_PROG_CXX], |
2993 | + [LT_LANG(CXX)], |
2994 | + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
2995 | + |
2996 | +AC_PROVIDE_IFELSE([AC_PROG_F77], |
2997 | + [LT_LANG(F77)], |
2998 | + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) |
2999 | + |
3000 | +AC_PROVIDE_IFELSE([AC_PROG_FC], |
3001 | + [LT_LANG(FC)], |
3002 | + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) |
3003 | + |
3004 | +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal |
3005 | +dnl pulling things in needlessly. |
3006 | +AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
3007 | + [LT_LANG(GCJ)], |
3008 | + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
3009 | + [LT_LANG(GCJ)], |
3010 | + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
3011 | + [LT_LANG(GCJ)], |
3012 | + [m4_ifdef([AC_PROG_GCJ], |
3013 | + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
3014 | + m4_ifdef([A][M_PROG_GCJ], |
3015 | + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
3016 | + m4_ifdef([LT_PROG_GCJ], |
3017 | + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
3018 | + |
3019 | +AC_PROVIDE_IFELSE([AC_PROG_GO], |
3020 | + [LT_LANG(GO)], |
3021 | + [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) |
3022 | + |
3023 | +AC_PROVIDE_IFELSE([LT_PROG_RC], |
3024 | + [LT_LANG(RC)], |
3025 | + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
3026 | +])# _LT_LANG_DEFAULT_CONFIG |
3027 | + |
3028 | +# Obsolete macros: |
3029 | +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
3030 | +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
3031 | +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
3032 | +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
3033 | +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) |
3034 | +dnl aclocal-1.4 backwards compatibility: |
3035 | +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
3036 | +dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
3037 | +dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
3038 | +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
3039 | +dnl AC_DEFUN([AC_LIBTOOL_RC], []) |
3040 | + |
3041 | + |
3042 | +# _LT_TAG_COMPILER |
3043 | +# ---------------- |
3044 | +m4_defun([_LT_TAG_COMPILER], |
3045 | +[AC_REQUIRE([AC_PROG_CC])dnl |
3046 | + |
3047 | +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl |
3048 | +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl |
3049 | +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
3050 | +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl |
3051 | + |
3052 | +# If no C compiler was specified, use CC. |
3053 | +LTCC=${LTCC-"$CC"} |
3054 | + |
3055 | +# If no C compiler flags were specified, use CFLAGS. |
3056 | +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
3057 | + |
3058 | +# Allow CC to be a program name with arguments. |
3059 | +compiler=$CC |
3060 | +])# _LT_TAG_COMPILER |
3061 | + |
3062 | + |
3063 | +# _LT_COMPILER_BOILERPLATE |
3064 | +# ------------------------ |
3065 | +# Check for compiler boilerplate output or warnings with |
3066 | +# the simple compiler test code. |
3067 | +m4_defun([_LT_COMPILER_BOILERPLATE], |
3068 | +[m4_require([_LT_DECL_SED])dnl |
3069 | +ac_outfile=conftest.$ac_objext |
3070 | +echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
3071 | +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
3072 | +_lt_compiler_boilerplate=`cat conftest.err` |
3073 | +$RM conftest* |
3074 | +])# _LT_COMPILER_BOILERPLATE |
3075 | + |
3076 | + |
3077 | +# _LT_LINKER_BOILERPLATE |
3078 | +# ---------------------- |
3079 | +# Check for linker boilerplate output or warnings with |
3080 | +# the simple link test code. |
3081 | +m4_defun([_LT_LINKER_BOILERPLATE], |
3082 | +[m4_require([_LT_DECL_SED])dnl |
3083 | +ac_outfile=conftest.$ac_objext |
3084 | +echo "$lt_simple_link_test_code" >conftest.$ac_ext |
3085 | +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
3086 | +_lt_linker_boilerplate=`cat conftest.err` |
3087 | +$RM -r conftest* |
3088 | +])# _LT_LINKER_BOILERPLATE |
3089 | + |
3090 | +# _LT_REQUIRED_DARWIN_CHECKS |
3091 | +# ------------------------- |
3092 | +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ |
3093 | + case $host_os in |
3094 | + rhapsody* | darwin*) |
3095 | + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) |
3096 | + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) |
3097 | + AC_CHECK_TOOL([LIPO], [lipo], [:]) |
3098 | + AC_CHECK_TOOL([OTOOL], [otool], [:]) |
3099 | + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) |
3100 | + _LT_DECL([], [DSYMUTIL], [1], |
3101 | + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) |
3102 | + _LT_DECL([], [NMEDIT], [1], |
3103 | + [Tool to change global to local symbols on Mac OS X]) |
3104 | + _LT_DECL([], [LIPO], [1], |
3105 | + [Tool to manipulate fat objects and archives on Mac OS X]) |
3106 | + _LT_DECL([], [OTOOL], [1], |
3107 | + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) |
3108 | + _LT_DECL([], [OTOOL64], [1], |
3109 | + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) |
3110 | + |
3111 | + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
3112 | + [lt_cv_apple_cc_single_mod=no |
3113 | + if test -z "${LT_MULTI_MODULE}"; then |
3114 | + # By default we will add the -single_module flag. You can override |
3115 | + # by either setting the environment variable LT_MULTI_MODULE |
3116 | + # non-empty at configure time, or by adding -multi_module to the |
3117 | + # link flags. |
3118 | + rm -rf libconftest.dylib* |
3119 | + echo "int foo(void){return 1;}" > conftest.c |
3120 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
3121 | +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD |
3122 | + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
3123 | + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
3124 | + _lt_result=$? |
3125 | + # If there is a non-empty error log, and "single_module" |
3126 | + # appears in it, assume the flag caused a linker warning |
3127 | + if test -s conftest.err && $GREP single_module conftest.err; then |
3128 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
3129 | + # Otherwise, if the output was created with a 0 exit code from |
3130 | + # the compiler, it worked. |
3131 | + elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
3132 | + lt_cv_apple_cc_single_mod=yes |
3133 | + else |
3134 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
3135 | + fi |
3136 | + rm -rf libconftest.dylib* |
3137 | + rm -f conftest.* |
3138 | + fi]) |
3139 | + |
3140 | + AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
3141 | + [lt_cv_ld_exported_symbols_list], |
3142 | + [lt_cv_ld_exported_symbols_list=no |
3143 | + save_LDFLAGS=$LDFLAGS |
3144 | + echo "_main" > conftest.sym |
3145 | + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
3146 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
3147 | + [lt_cv_ld_exported_symbols_list=yes], |
3148 | + [lt_cv_ld_exported_symbols_list=no]) |
3149 | + LDFLAGS="$save_LDFLAGS" |
3150 | + ]) |
3151 | + |
3152 | + AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], |
3153 | + [lt_cv_ld_force_load=no |
3154 | + cat > conftest.c << _LT_EOF |
3155 | +int forced_loaded() { return 2;} |
3156 | +_LT_EOF |
3157 | + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD |
3158 | + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD |
3159 | + echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD |
3160 | + $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD |
3161 | + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD |
3162 | + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD |
3163 | + cat > conftest.c << _LT_EOF |
3164 | +int main() { return 0;} |
3165 | +_LT_EOF |
3166 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD |
3167 | + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
3168 | + _lt_result=$? |
3169 | + if test -s conftest.err && $GREP force_load conftest.err; then |
3170 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
3171 | + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
3172 | + lt_cv_ld_force_load=yes |
3173 | + else |
3174 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
3175 | + fi |
3176 | + rm -f conftest.err libconftest.a conftest conftest.c |
3177 | + rm -rf conftest.dSYM |
3178 | + ]) |
3179 | + case $host_os in |
3180 | + rhapsody* | darwin1.[[012]]) |
3181 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
3182 | + darwin1.*) |
3183 | + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
3184 | + darwin*) # darwin 5.x on |
3185 | + # if running on 10.5 or later, the deployment target defaults |
3186 | + # to the OS version, if on x86, and 10.4, the deployment |
3187 | + # target defaults to 10.4. Don't you love it? |
3188 | + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
3189 | + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
3190 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
3191 | + 10.[[012]]*) |
3192 | + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
3193 | + 10.*) |
3194 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
3195 | + esac |
3196 | + ;; |
3197 | + esac |
3198 | + if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
3199 | + _lt_dar_single_mod='$single_module' |
3200 | + fi |
3201 | + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
3202 | + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
3203 | + else |
3204 | + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
3205 | + fi |
3206 | + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
3207 | + _lt_dsymutil='~$DSYMUTIL $lib || :' |
3208 | + else |
3209 | + _lt_dsymutil= |
3210 | + fi |
3211 | + ;; |
3212 | + esac |
3213 | +]) |
3214 | + |
3215 | + |
3216 | +# _LT_DARWIN_LINKER_FEATURES([TAG]) |
3217 | +# --------------------------------- |
3218 | +# Checks for linker and compiler features on darwin |
3219 | +m4_defun([_LT_DARWIN_LINKER_FEATURES], |
3220 | +[ |
3221 | + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
3222 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
3223 | + _LT_TAGVAR(hardcode_direct, $1)=no |
3224 | + _LT_TAGVAR(hardcode_automatic, $1)=yes |
3225 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
3226 | + if test "$lt_cv_ld_force_load" = "yes"; then |
3227 | + _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\"`' |
3228 | + m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], |
3229 | + [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) |
3230 | + else |
3231 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
3232 | + fi |
3233 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
3234 | + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
3235 | + case $cc_basename in |
3236 | + ifort*) _lt_dar_can_shared=yes ;; |
3237 | + *) _lt_dar_can_shared=$GCC ;; |
3238 | + esac |
3239 | + if test "$_lt_dar_can_shared" = "yes"; then |
3240 | + output_verbose_link_cmd=func_echo_all |
3241 | + _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}" |
3242 | + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
3243 | + _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}" |
3244 | + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
3245 | + m4_if([$1], [CXX], |
3246 | +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
3247 | + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" |
3248 | + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
3249 | + fi |
3250 | +],[]) |
3251 | + else |
3252 | + _LT_TAGVAR(ld_shlibs, $1)=no |
3253 | + fi |
3254 | +]) |
3255 | + |
3256 | +# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) |
3257 | +# ---------------------------------- |
3258 | +# Links a minimal program and checks the executable |
3259 | +# for the system default hardcoded library path. In most cases, |
3260 | +# this is /usr/lib:/lib, but when the MPI compilers are used |
3261 | +# the location of the communication and MPI libs are included too. |
3262 | +# If we don't find anything, use the default library path according |
3263 | +# to the aix ld manual. |
3264 | +# Store the results from the different compilers for each TAGNAME. |
3265 | +# Allow to override them for all tags through lt_cv_aix_libpath. |
3266 | +m4_defun([_LT_SYS_MODULE_PATH_AIX], |
3267 | +[m4_require([_LT_DECL_SED])dnl |
3268 | +if test "${lt_cv_aix_libpath+set}" = set; then |
3269 | + aix_libpath=$lt_cv_aix_libpath |
3270 | +else |
3271 | + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], |
3272 | + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ |
3273 | + lt_aix_libpath_sed='[ |
3274 | + /Import File Strings/,/^$/ { |
3275 | + /^0/ { |
3276 | + s/^0 *\([^ ]*\) *$/\1/ |
3277 | + p |
3278 | + } |
3279 | + }]' |
3280 | + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
3281 | + # Check for a 64-bit object if we didn't find anything. |
3282 | + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
3283 | + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
3284 | + fi],[]) |
3285 | + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
3286 | + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" |
3287 | + fi |
3288 | + ]) |
3289 | + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) |
3290 | +fi |
3291 | +])# _LT_SYS_MODULE_PATH_AIX |
3292 | + |
3293 | + |
3294 | +# _LT_SHELL_INIT(ARG) |
3295 | +# ------------------- |
3296 | +m4_define([_LT_SHELL_INIT], |
3297 | +[m4_divert_text([M4SH-INIT], [$1 |
3298 | +])])# _LT_SHELL_INIT |
3299 | + |
3300 | + |
3301 | + |
3302 | +# _LT_PROG_ECHO_BACKSLASH |
3303 | +# ----------------------- |
3304 | +# Find how we can fake an echo command that does not interpret backslash. |
3305 | +# In particular, with Autoconf 2.60 or later we add some code to the start |
3306 | +# of the generated configure script which will find a shell with a builtin |
3307 | +# printf (which we can use as an echo command). |
3308 | +m4_defun([_LT_PROG_ECHO_BACKSLASH], |
3309 | +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
3310 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
3311 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
3312 | + |
3313 | +AC_MSG_CHECKING([how to print strings]) |
3314 | +# Test print first, because it will be a builtin if present. |
3315 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
3316 | + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
3317 | + ECHO='print -r --' |
3318 | +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
3319 | + ECHO='printf %s\n' |
3320 | +else |
3321 | + # Use this function as a fallback that always works. |
3322 | + func_fallback_echo () |
3323 | + { |
3324 | + eval 'cat <<_LTECHO_EOF |
3325 | +$[]1 |
3326 | +_LTECHO_EOF' |
3327 | + } |
3328 | + ECHO='func_fallback_echo' |
3329 | +fi |
3330 | + |
3331 | +# func_echo_all arg... |
3332 | +# Invoke $ECHO with all args, space-separated. |
3333 | +func_echo_all () |
3334 | +{ |
3335 | + $ECHO "$*" |
3336 | +} |
3337 | + |
3338 | +case "$ECHO" in |
3339 | + printf*) AC_MSG_RESULT([printf]) ;; |
3340 | + print*) AC_MSG_RESULT([print -r]) ;; |
3341 | + *) AC_MSG_RESULT([cat]) ;; |
3342 | +esac |
3343 | + |
3344 | +m4_ifdef([_AS_DETECT_SUGGESTED], |
3345 | +[_AS_DETECT_SUGGESTED([ |
3346 | + test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( |
3347 | + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
3348 | + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
3349 | + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
3350 | + PATH=/empty FPATH=/empty; export PATH FPATH |
3351 | + test "X`printf %s $ECHO`" = "X$ECHO" \ |
3352 | + || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) |
3353 | + |
3354 | +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
3355 | +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) |
3356 | +])# _LT_PROG_ECHO_BACKSLASH |
3357 | + |
3358 | + |
3359 | +# _LT_WITH_SYSROOT |
3360 | +# ---------------- |
3361 | +AC_DEFUN([_LT_WITH_SYSROOT], |
3362 | +[AC_MSG_CHECKING([for sysroot]) |
3363 | +AC_ARG_WITH([sysroot], |
3364 | +[ --with-sysroot[=DIR] Search for dependent libraries within DIR |
3365 | + (or the compiler's sysroot if not specified).], |
3366 | +[], [with_sysroot=no]) |
3367 | + |
3368 | +dnl lt_sysroot will always be passed unquoted. We quote it here |
3369 | +dnl in case the user passed a directory name. |
3370 | +lt_sysroot= |
3371 | +case ${with_sysroot} in #( |
3372 | + yes) |
3373 | + if test "$GCC" = yes; then |
3374 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
3375 | + fi |
3376 | + ;; #( |
3377 | + /*) |
3378 | + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
3379 | + ;; #( |
3380 | + no|'') |
3381 | + ;; #( |
3382 | + *) |
3383 | + AC_MSG_RESULT([${with_sysroot}]) |
3384 | + AC_MSG_ERROR([The sysroot must be an absolute path.]) |
3385 | + ;; |
3386 | +esac |
3387 | + |
3388 | + AC_MSG_RESULT([${lt_sysroot:-no}]) |
3389 | +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl |
3390 | +[dependent libraries, and in which our libraries should be installed.])]) |
3391 | + |
3392 | +# _LT_ENABLE_LOCK |
3393 | +# --------------- |
3394 | +m4_defun([_LT_ENABLE_LOCK], |
3395 | +[AC_ARG_ENABLE([libtool-lock], |
3396 | + [AS_HELP_STRING([--disable-libtool-lock], |
3397 | + [avoid locking (might break parallel builds)])]) |
3398 | +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
3399 | + |
3400 | +# Some flags need to be propagated to the compiler or linker for good |
3401 | +# libtool support. |
3402 | +case $host in |
3403 | +ia64-*-hpux*) |
3404 | + # Find out which ABI we are using. |
3405 | + echo 'int i;' > conftest.$ac_ext |
3406 | + if AC_TRY_EVAL(ac_compile); then |
3407 | + case `/usr/bin/file conftest.$ac_objext` in |
3408 | + *ELF-32*) |
3409 | + HPUX_IA64_MODE="32" |
3410 | + ;; |
3411 | + *ELF-64*) |
3412 | + HPUX_IA64_MODE="64" |
3413 | + ;; |
3414 | + esac |
3415 | + fi |
3416 | + rm -rf conftest* |
3417 | + ;; |
3418 | +*-*-irix6*) |
3419 | + # Find out which ABI we are using. |
3420 | + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext |
3421 | + if AC_TRY_EVAL(ac_compile); then |
3422 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
3423 | + case `/usr/bin/file conftest.$ac_objext` in |
3424 | + *32-bit*) |
3425 | + LD="${LD-ld} -melf32bsmip" |
3426 | + ;; |
3427 | + *N32*) |
3428 | + LD="${LD-ld} -melf32bmipn32" |
3429 | + ;; |
3430 | + *64-bit*) |
3431 | + LD="${LD-ld} -melf64bmip" |
3432 | + ;; |
3433 | + esac |
3434 | + else |
3435 | + case `/usr/bin/file conftest.$ac_objext` in |
3436 | + *32-bit*) |
3437 | + LD="${LD-ld} -32" |
3438 | + ;; |
3439 | + *N32*) |
3440 | + LD="${LD-ld} -n32" |
3441 | + ;; |
3442 | + *64-bit*) |
3443 | + LD="${LD-ld} -64" |
3444 | + ;; |
3445 | + esac |
3446 | + fi |
3447 | + fi |
3448 | + rm -rf conftest* |
3449 | + ;; |
3450 | + |
3451 | +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
3452 | +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
3453 | + # Find out which ABI we are using. |
3454 | + echo 'int i;' > conftest.$ac_ext |
3455 | + if AC_TRY_EVAL(ac_compile); then |
3456 | + case `/usr/bin/file conftest.o` in |
3457 | + *32-bit*) |
3458 | + case $host in |
3459 | + x86_64-*kfreebsd*-gnu) |
3460 | + LD="${LD-ld} -m elf_i386_fbsd" |
3461 | + ;; |
3462 | + x86_64-*linux*) |
3463 | + LD="${LD-ld} -m elf_i386" |
3464 | + ;; |
3465 | + ppc64-*linux*|powerpc64-*linux*) |
3466 | + LD="${LD-ld} -m elf32ppclinux" |
3467 | + ;; |
3468 | + s390x-*linux*) |
3469 | + LD="${LD-ld} -m elf_s390" |
3470 | + ;; |
3471 | + sparc64-*linux*) |
3472 | + LD="${LD-ld} -m elf32_sparc" |
3473 | + ;; |
3474 | + esac |
3475 | + ;; |
3476 | + *64-bit*) |
3477 | + case $host in |
3478 | + x86_64-*kfreebsd*-gnu) |
3479 | + LD="${LD-ld} -m elf_x86_64_fbsd" |
3480 | + ;; |
3481 | + x86_64-*linux*) |
3482 | + LD="${LD-ld} -m elf_x86_64" |
3483 | + ;; |
3484 | + ppc*-*linux*|powerpc*-*linux*) |
3485 | + LD="${LD-ld} -m elf64ppc" |
3486 | + ;; |
3487 | + s390*-*linux*|s390*-*tpf*) |
3488 | + LD="${LD-ld} -m elf64_s390" |
3489 | + ;; |
3490 | + sparc*-*linux*) |
3491 | + LD="${LD-ld} -m elf64_sparc" |
3492 | + ;; |
3493 | + esac |
3494 | + ;; |
3495 | + esac |
3496 | + fi |
3497 | + rm -rf conftest* |
3498 | + ;; |
3499 | + |
3500 | +*-*-sco3.2v5*) |
3501 | + # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
3502 | + SAVE_CFLAGS="$CFLAGS" |
3503 | + CFLAGS="$CFLAGS -belf" |
3504 | + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
3505 | + [AC_LANG_PUSH(C) |
3506 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
3507 | + AC_LANG_POP]) |
3508 | + if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3509 | + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
3510 | + CFLAGS="$SAVE_CFLAGS" |
3511 | + fi |
3512 | + ;; |
3513 | +*-*solaris*) |
3514 | + # Find out which ABI we are using. |
3515 | + echo 'int i;' > conftest.$ac_ext |
3516 | + if AC_TRY_EVAL(ac_compile); then |
3517 | + case `/usr/bin/file conftest.o` in |
3518 | + *64-bit*) |
3519 | + case $lt_cv_prog_gnu_ld in |
3520 | + yes*) |
3521 | + case $host in |
3522 | + i?86-*-solaris*) |
3523 | + LD="${LD-ld} -m elf_x86_64" |
3524 | + ;; |
3525 | + sparc*-*-solaris*) |
3526 | + LD="${LD-ld} -m elf64_sparc" |
3527 | + ;; |
3528 | + esac |
3529 | + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
3530 | + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
3531 | + LD="${LD-ld}_sol2" |
3532 | + fi |
3533 | + ;; |
3534 | + *) |
3535 | + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
3536 | + LD="${LD-ld} -64" |
3537 | + fi |
3538 | + ;; |
3539 | + esac |
3540 | + ;; |
3541 | + esac |
3542 | + fi |
3543 | + rm -rf conftest* |
3544 | + ;; |
3545 | +esac |
3546 | + |
3547 | +need_locks="$enable_libtool_lock" |
3548 | +])# _LT_ENABLE_LOCK |
3549 | + |
3550 | + |
3551 | +# _LT_PROG_AR |
3552 | +# ----------- |
3553 | +m4_defun([_LT_PROG_AR], |
3554 | +[AC_CHECK_TOOLS(AR, [ar], false) |
3555 | +: ${AR=ar} |
3556 | +: ${AR_FLAGS=cru} |
3557 | +_LT_DECL([], [AR], [1], [The archiver]) |
3558 | +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) |
3559 | + |
3560 | +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], |
3561 | + [lt_cv_ar_at_file=no |
3562 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM], |
3563 | + [echo conftest.$ac_objext > conftest.lst |
3564 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' |
3565 | + AC_TRY_EVAL([lt_ar_try]) |
3566 | + if test "$ac_status" -eq 0; then |
3567 | + # Ensure the archiver fails upon bogus file names. |
3568 | + rm -f conftest.$ac_objext libconftest.a |
3569 | + AC_TRY_EVAL([lt_ar_try]) |
3570 | + if test "$ac_status" -ne 0; then |
3571 | + lt_cv_ar_at_file=@ |
3572 | + fi |
3573 | + fi |
3574 | + rm -f conftest.* libconftest.a |
3575 | + ]) |
3576 | + ]) |
3577 | + |
3578 | +if test "x$lt_cv_ar_at_file" = xno; then |
3579 | + archiver_list_spec= |
3580 | +else |
3581 | + archiver_list_spec=$lt_cv_ar_at_file |
3582 | +fi |
3583 | +_LT_DECL([], [archiver_list_spec], [1], |
3584 | + [How to feed a file listing to the archiver]) |
3585 | +])# _LT_PROG_AR |
3586 | + |
3587 | + |
3588 | +# _LT_CMD_OLD_ARCHIVE |
3589 | +# ------------------- |
3590 | +m4_defun([_LT_CMD_OLD_ARCHIVE], |
3591 | +[_LT_PROG_AR |
3592 | + |
3593 | +AC_CHECK_TOOL(STRIP, strip, :) |
3594 | +test -z "$STRIP" && STRIP=: |
3595 | +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
3596 | + |
3597 | +AC_CHECK_TOOL(RANLIB, ranlib, :) |
3598 | +test -z "$RANLIB" && RANLIB=: |
3599 | +_LT_DECL([], [RANLIB], [1], |
3600 | + [Commands used to install an old-style archive]) |
3601 | + |
3602 | +# Determine commands to create old-style static archives. |
3603 | +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
3604 | +old_postinstall_cmds='chmod 644 $oldlib' |
3605 | +old_postuninstall_cmds= |
3606 | + |
3607 | +if test -n "$RANLIB"; then |
3608 | + case $host_os in |
3609 | + openbsd*) |
3610 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
3611 | + ;; |
3612 | + *) |
3613 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
3614 | + ;; |
3615 | + esac |
3616 | + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
3617 | +fi |
3618 | + |
3619 | +case $host_os in |
3620 | + darwin*) |
3621 | + lock_old_archive_extraction=yes ;; |
3622 | + *) |
3623 | + lock_old_archive_extraction=no ;; |
3624 | +esac |
3625 | +_LT_DECL([], [old_postinstall_cmds], [2]) |
3626 | +_LT_DECL([], [old_postuninstall_cmds], [2]) |
3627 | +_LT_TAGDECL([], [old_archive_cmds], [2], |
3628 | + [Commands used to build an old-style archive]) |
3629 | +_LT_DECL([], [lock_old_archive_extraction], [0], |
3630 | + [Whether to use a lock for old archive extraction]) |
3631 | +])# _LT_CMD_OLD_ARCHIVE |
3632 | + |
3633 | + |
3634 | +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
3635 | +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
3636 | +# ---------------------------------------------------------------- |
3637 | +# Check whether the given compiler option works |
3638 | +AC_DEFUN([_LT_COMPILER_OPTION], |
3639 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
3640 | +m4_require([_LT_DECL_SED])dnl |
3641 | +AC_CACHE_CHECK([$1], [$2], |
3642 | + [$2=no |
3643 | + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
3644 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
3645 | + lt_compiler_flag="$3" |
3646 | + # Insert the option either (1) after the last *FLAGS variable, or |
3647 | + # (2) before a word containing "conftest.", or (3) at the end. |
3648 | + # Note that $ac_compile itself does not contain backslashes and begins |
3649 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
3650 | + # The option is referenced via a variable to avoid confusing sed. |
3651 | + lt_compile=`echo "$ac_compile" | $SED \ |
3652 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
3653 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
3654 | + -e 's:$: $lt_compiler_flag:'` |
3655 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
3656 | + (eval "$lt_compile" 2>conftest.err) |
3657 | + ac_status=$? |
3658 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
3659 | + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
3660 | + if (exit $ac_status) && test -s "$ac_outfile"; then |
3661 | + # The compiler can only warn and ignore the option if not recognized |
3662 | + # So say no if there are warnings other than the usual output. |
3663 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
3664 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
3665 | + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
3666 | + $2=yes |
3667 | + fi |
3668 | + fi |
3669 | + $RM conftest* |
3670 | +]) |
3671 | + |
3672 | +if test x"[$]$2" = xyes; then |
3673 | + m4_if([$5], , :, [$5]) |
3674 | +else |
3675 | + m4_if([$6], , :, [$6]) |
3676 | +fi |
3677 | +])# _LT_COMPILER_OPTION |
3678 | + |
3679 | +# Old name: |
3680 | +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) |
3681 | +dnl aclocal-1.4 backwards compatibility: |
3682 | +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) |
3683 | + |
3684 | + |
3685 | +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
3686 | +# [ACTION-SUCCESS], [ACTION-FAILURE]) |
3687 | +# ---------------------------------------------------- |
3688 | +# Check whether the given linker option works |
3689 | +AC_DEFUN([_LT_LINKER_OPTION], |
3690 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
3691 | +m4_require([_LT_DECL_SED])dnl |
3692 | +AC_CACHE_CHECK([$1], [$2], |
3693 | + [$2=no |
3694 | + save_LDFLAGS="$LDFLAGS" |
3695 | + LDFLAGS="$LDFLAGS $3" |
3696 | + echo "$lt_simple_link_test_code" > conftest.$ac_ext |
3697 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
3698 | + # The linker can only warn and ignore the option if not recognized |
3699 | + # So say no if there are warnings |
3700 | + if test -s conftest.err; then |
3701 | + # Append any errors to the config.log. |
3702 | + cat conftest.err 1>&AS_MESSAGE_LOG_FD |
3703 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
3704 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
3705 | + if diff conftest.exp conftest.er2 >/dev/null; then |
3706 | + $2=yes |
3707 | + fi |
3708 | + else |
3709 | + $2=yes |
3710 | + fi |
3711 | + fi |
3712 | + $RM -r conftest* |
3713 | + LDFLAGS="$save_LDFLAGS" |
3714 | +]) |
3715 | + |
3716 | +if test x"[$]$2" = xyes; then |
3717 | + m4_if([$4], , :, [$4]) |
3718 | +else |
3719 | + m4_if([$5], , :, [$5]) |
3720 | +fi |
3721 | +])# _LT_LINKER_OPTION |
3722 | + |
3723 | +# Old name: |
3724 | +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) |
3725 | +dnl aclocal-1.4 backwards compatibility: |
3726 | +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) |
3727 | + |
3728 | + |
3729 | +# LT_CMD_MAX_LEN |
3730 | +#--------------- |
3731 | +AC_DEFUN([LT_CMD_MAX_LEN], |
3732 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3733 | +# find the maximum length of command line arguments |
3734 | +AC_MSG_CHECKING([the maximum length of command line arguments]) |
3735 | +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
3736 | + i=0 |
3737 | + teststring="ABCD" |
3738 | + |
3739 | + case $build_os in |
3740 | + msdosdjgpp*) |
3741 | + # On DJGPP, this test can blow up pretty badly due to problems in libc |
3742 | + # (any single argument exceeding 2000 bytes causes a buffer overrun |
3743 | + # during glob expansion). Even if it were fixed, the result of this |
3744 | + # check would be larger than it should be. |
3745 | + lt_cv_sys_max_cmd_len=12288; # 12K is about right |
3746 | + ;; |
3747 | + |
3748 | + gnu*) |
3749 | + # Under GNU Hurd, this test is not required because there is |
3750 | + # no limit to the length of command line arguments. |
3751 | + # Libtool will interpret -1 as no limit whatsoever |
3752 | + lt_cv_sys_max_cmd_len=-1; |
3753 | + ;; |
3754 | + |
3755 | + cygwin* | mingw* | cegcc*) |
3756 | + # On Win9x/ME, this test blows up -- it succeeds, but takes |
3757 | + # about 5 minutes as the teststring grows exponentially. |
3758 | + # Worse, since 9x/ME are not pre-emptively multitasking, |
3759 | + # you end up with a "frozen" computer, even though with patience |
3760 | + # the test eventually succeeds (with a max line length of 256k). |
3761 | + # Instead, let's just punt: use the minimum linelength reported by |
3762 | + # all of the supported platforms: 8192 (on NT/2K/XP). |
3763 | + lt_cv_sys_max_cmd_len=8192; |
3764 | + ;; |
3765 | + |
3766 | + mint*) |
3767 | + # On MiNT this can take a long time and run out of memory. |
3768 | + lt_cv_sys_max_cmd_len=8192; |
3769 | + ;; |
3770 | + |
3771 | + amigaos*) |
3772 | + # On AmigaOS with pdksh, this test takes hours, literally. |
3773 | + # So we just punt and use a minimum line length of 8192. |
3774 | + lt_cv_sys_max_cmd_len=8192; |
3775 | + ;; |
3776 | + |
3777 | + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
3778 | + # This has been around since 386BSD, at least. Likely further. |
3779 | + if test -x /sbin/sysctl; then |
3780 | + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
3781 | + elif test -x /usr/sbin/sysctl; then |
3782 | + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
3783 | + else |
3784 | + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
3785 | + fi |
3786 | + # And add a safety zone |
3787 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
3788 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
3789 | + ;; |
3790 | + |
3791 | + interix*) |
3792 | + # We know the value 262144 and hardcode it with a safety zone (like BSD) |
3793 | + lt_cv_sys_max_cmd_len=196608 |
3794 | + ;; |
3795 | + |
3796 | + os2*) |
3797 | + # The test takes a long time on OS/2. |
3798 | + lt_cv_sys_max_cmd_len=8192 |
3799 | + ;; |
3800 | + |
3801 | + osf*) |
3802 | + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
3803 | + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
3804 | + # nice to cause kernel panics so lets avoid the loop below. |
3805 | + # First set a reasonable default. |
3806 | + lt_cv_sys_max_cmd_len=16384 |
3807 | + # |
3808 | + if test -x /sbin/sysconfig; then |
3809 | + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
3810 | + *1*) lt_cv_sys_max_cmd_len=-1 ;; |
3811 | + esac |
3812 | + fi |
3813 | + ;; |
3814 | + sco3.2v5*) |
3815 | + lt_cv_sys_max_cmd_len=102400 |
3816 | + ;; |
3817 | + sysv5* | sco5v6* | sysv4.2uw2*) |
3818 | + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
3819 | + if test -n "$kargmax"; then |
3820 | + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
3821 | + else |
3822 | + lt_cv_sys_max_cmd_len=32768 |
3823 | + fi |
3824 | + ;; |
3825 | + *) |
3826 | + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
3827 | + if test -n "$lt_cv_sys_max_cmd_len"; then |
3828 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
3829 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
3830 | + else |
3831 | + # Make teststring a little bigger before we do anything with it. |
3832 | + # a 1K string should be a reasonable start. |
3833 | + for i in 1 2 3 4 5 6 7 8 ; do |
3834 | + teststring=$teststring$teststring |
3835 | + done |
3836 | + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
3837 | + # If test is not a shell built-in, we'll probably end up computing a |
3838 | + # maximum length that is only half of the actual maximum length, but |
3839 | + # we can't tell. |
3840 | + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
3841 | + = "X$teststring$teststring"; } >/dev/null 2>&1 && |
3842 | + test $i != 17 # 1/2 MB should be enough |
3843 | + do |
3844 | + i=`expr $i + 1` |
3845 | + teststring=$teststring$teststring |
3846 | + done |
3847 | + # Only check the string length outside the loop. |
3848 | + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
3849 | + teststring= |
3850 | + # Add a significant safety factor because C++ compilers can tack on |
3851 | + # massive amounts of additional arguments before passing them to the |
3852 | + # linker. It appears as though 1/2 is a usable value. |
3853 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
3854 | + fi |
3855 | + ;; |
3856 | + esac |
3857 | +]) |
3858 | +if test -n $lt_cv_sys_max_cmd_len ; then |
3859 | + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
3860 | +else |
3861 | + AC_MSG_RESULT(none) |
3862 | +fi |
3863 | +max_cmd_len=$lt_cv_sys_max_cmd_len |
3864 | +_LT_DECL([], [max_cmd_len], [0], |
3865 | + [What is the maximum length of a command?]) |
3866 | +])# LT_CMD_MAX_LEN |
3867 | + |
3868 | +# Old name: |
3869 | +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) |
3870 | +dnl aclocal-1.4 backwards compatibility: |
3871 | +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) |
3872 | + |
3873 | + |
3874 | +# _LT_HEADER_DLFCN |
3875 | +# ---------------- |
3876 | +m4_defun([_LT_HEADER_DLFCN], |
3877 | +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl |
3878 | +])# _LT_HEADER_DLFCN |
3879 | + |
3880 | + |
3881 | +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
3882 | +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
3883 | +# ---------------------------------------------------------------- |
3884 | +m4_defun([_LT_TRY_DLOPEN_SELF], |
3885 | +[m4_require([_LT_HEADER_DLFCN])dnl |
3886 | +if test "$cross_compiling" = yes; then : |
3887 | + [$4] |
3888 | +else |
3889 | + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
3890 | + lt_status=$lt_dlunknown |
3891 | + cat > conftest.$ac_ext <<_LT_EOF |
3892 | +[#line $LINENO "configure" |
3893 | +#include "confdefs.h" |
3894 | + |
3895 | +#if HAVE_DLFCN_H |
3896 | +#include <dlfcn.h> |
3897 | +#endif |
3898 | + |
3899 | +#include <stdio.h> |
3900 | + |
3901 | +#ifdef RTLD_GLOBAL |
3902 | +# define LT_DLGLOBAL RTLD_GLOBAL |
3903 | +#else |
3904 | +# ifdef DL_GLOBAL |
3905 | +# define LT_DLGLOBAL DL_GLOBAL |
3906 | +# else |
3907 | +# define LT_DLGLOBAL 0 |
3908 | +# endif |
3909 | +#endif |
3910 | + |
3911 | +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
3912 | + find out it does not work in some platform. */ |
3913 | +#ifndef LT_DLLAZY_OR_NOW |
3914 | +# ifdef RTLD_LAZY |
3915 | +# define LT_DLLAZY_OR_NOW RTLD_LAZY |
3916 | +# else |
3917 | +# ifdef DL_LAZY |
3918 | +# define LT_DLLAZY_OR_NOW DL_LAZY |
3919 | +# else |
3920 | +# ifdef RTLD_NOW |
3921 | +# define LT_DLLAZY_OR_NOW RTLD_NOW |
3922 | +# else |
3923 | +# ifdef DL_NOW |
3924 | +# define LT_DLLAZY_OR_NOW DL_NOW |
3925 | +# else |
3926 | +# define LT_DLLAZY_OR_NOW 0 |
3927 | +# endif |
3928 | +# endif |
3929 | +# endif |
3930 | +# endif |
3931 | +#endif |
3932 | + |
3933 | +/* When -fvisbility=hidden is used, assume the code has been annotated |
3934 | + correspondingly for the symbols needed. */ |
3935 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
3936 | +int fnord () __attribute__((visibility("default"))); |
3937 | +#endif |
3938 | + |
3939 | +int fnord () { return 42; } |
3940 | +int main () |
3941 | +{ |
3942 | + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
3943 | + int status = $lt_dlunknown; |
3944 | + |
3945 | + if (self) |
3946 | + { |
3947 | + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
3948 | + else |
3949 | + { |
3950 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
3951 | + else puts (dlerror ()); |
3952 | + } |
3953 | + /* dlclose (self); */ |
3954 | + } |
3955 | + else |
3956 | + puts (dlerror ()); |
3957 | + |
3958 | + return status; |
3959 | +}] |
3960 | +_LT_EOF |
3961 | + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
3962 | + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
3963 | + lt_status=$? |
3964 | + case x$lt_status in |
3965 | + x$lt_dlno_uscore) $1 ;; |
3966 | + x$lt_dlneed_uscore) $2 ;; |
3967 | + x$lt_dlunknown|x*) $3 ;; |
3968 | + esac |
3969 | + else : |
3970 | + # compilation failed |
3971 | + $3 |
3972 | + fi |
3973 | +fi |
3974 | +rm -fr conftest* |
3975 | +])# _LT_TRY_DLOPEN_SELF |
3976 | + |
3977 | + |
3978 | +# LT_SYS_DLOPEN_SELF |
3979 | +# ------------------ |
3980 | +AC_DEFUN([LT_SYS_DLOPEN_SELF], |
3981 | +[m4_require([_LT_HEADER_DLFCN])dnl |
3982 | +if test "x$enable_dlopen" != xyes; then |
3983 | + enable_dlopen=unknown |
3984 | + enable_dlopen_self=unknown |
3985 | + enable_dlopen_self_static=unknown |
3986 | +else |
3987 | + lt_cv_dlopen=no |
3988 | + lt_cv_dlopen_libs= |
3989 | + |
3990 | + case $host_os in |
3991 | + beos*) |
3992 | + lt_cv_dlopen="load_add_on" |
3993 | + lt_cv_dlopen_libs= |
3994 | + lt_cv_dlopen_self=yes |
3995 | + ;; |
3996 | + |
3997 | + mingw* | pw32* | cegcc*) |
3998 | + lt_cv_dlopen="LoadLibrary" |
3999 | + lt_cv_dlopen_libs= |
4000 | + ;; |
4001 | + |
4002 | + cygwin*) |
4003 | + lt_cv_dlopen="dlopen" |
4004 | + lt_cv_dlopen_libs= |
4005 | + ;; |
4006 | + |
4007 | + darwin*) |
4008 | + # if libdl is installed we need to link against it |
4009 | + AC_CHECK_LIB([dl], [dlopen], |
4010 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
4011 | + lt_cv_dlopen="dyld" |
4012 | + lt_cv_dlopen_libs= |
4013 | + lt_cv_dlopen_self=yes |
4014 | + ]) |
4015 | + ;; |
4016 | + |
4017 | + *) |
4018 | + AC_CHECK_FUNC([shl_load], |
4019 | + [lt_cv_dlopen="shl_load"], |
4020 | + [AC_CHECK_LIB([dld], [shl_load], |
4021 | + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], |
4022 | + [AC_CHECK_FUNC([dlopen], |
4023 | + [lt_cv_dlopen="dlopen"], |
4024 | + [AC_CHECK_LIB([dl], [dlopen], |
4025 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
4026 | + [AC_CHECK_LIB([svld], [dlopen], |
4027 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
4028 | + [AC_CHECK_LIB([dld], [dld_link], |
4029 | + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
4030 | + ]) |
4031 | + ]) |
4032 | + ]) |
4033 | + ]) |
4034 | + ]) |
4035 | + ;; |
4036 | + esac |
4037 | + |
4038 | + if test "x$lt_cv_dlopen" != xno; then |
4039 | + enable_dlopen=yes |
4040 | + else |
4041 | + enable_dlopen=no |
4042 | + fi |
4043 | + |
4044 | + case $lt_cv_dlopen in |
4045 | + dlopen) |
4046 | + save_CPPFLAGS="$CPPFLAGS" |
4047 | + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
4048 | + |
4049 | + save_LDFLAGS="$LDFLAGS" |
4050 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
4051 | + |
4052 | + save_LIBS="$LIBS" |
4053 | + LIBS="$lt_cv_dlopen_libs $LIBS" |
4054 | + |
4055 | + AC_CACHE_CHECK([whether a program can dlopen itself], |
4056 | + lt_cv_dlopen_self, [dnl |
4057 | + _LT_TRY_DLOPEN_SELF( |
4058 | + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
4059 | + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
4060 | + ]) |
4061 | + |
4062 | + if test "x$lt_cv_dlopen_self" = xyes; then |
4063 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
4064 | + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
4065 | + lt_cv_dlopen_self_static, [dnl |
4066 | + _LT_TRY_DLOPEN_SELF( |
4067 | + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
4068 | + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
4069 | + ]) |
4070 | + fi |
4071 | + |
4072 | + CPPFLAGS="$save_CPPFLAGS" |
4073 | + LDFLAGS="$save_LDFLAGS" |
4074 | + LIBS="$save_LIBS" |
4075 | + ;; |
4076 | + esac |
4077 | + |
4078 | + case $lt_cv_dlopen_self in |
4079 | + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
4080 | + *) enable_dlopen_self=unknown ;; |
4081 | + esac |
4082 | + |
4083 | + case $lt_cv_dlopen_self_static in |
4084 | + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
4085 | + *) enable_dlopen_self_static=unknown ;; |
4086 | + esac |
4087 | +fi |
4088 | +_LT_DECL([dlopen_support], [enable_dlopen], [0], |
4089 | + [Whether dlopen is supported]) |
4090 | +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], |
4091 | + [Whether dlopen of programs is supported]) |
4092 | +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], |
4093 | + [Whether dlopen of statically linked programs is supported]) |
4094 | +])# LT_SYS_DLOPEN_SELF |
4095 | + |
4096 | +# Old name: |
4097 | +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) |
4098 | +dnl aclocal-1.4 backwards compatibility: |
4099 | +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) |
4100 | + |
4101 | + |
4102 | +# _LT_COMPILER_C_O([TAGNAME]) |
4103 | +# --------------------------- |
4104 | +# Check to see if options -c and -o are simultaneously supported by compiler. |
4105 | +# This macro does not hard code the compiler like AC_PROG_CC_C_O. |
4106 | +m4_defun([_LT_COMPILER_C_O], |
4107 | +[m4_require([_LT_DECL_SED])dnl |
4108 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
4109 | +m4_require([_LT_TAG_COMPILER])dnl |
4110 | +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
4111 | + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
4112 | + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
4113 | + $RM -r conftest 2>/dev/null |
4114 | + mkdir conftest |
4115 | + cd conftest |
4116 | + mkdir out |
4117 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
4118 | + |
4119 | + lt_compiler_flag="-o out/conftest2.$ac_objext" |
4120 | + # Insert the option either (1) after the last *FLAGS variable, or |
4121 | + # (2) before a word containing "conftest.", or (3) at the end. |
4122 | + # Note that $ac_compile itself does not contain backslashes and begins |
4123 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
4124 | + lt_compile=`echo "$ac_compile" | $SED \ |
4125 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
4126 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
4127 | + -e 's:$: $lt_compiler_flag:'` |
4128 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
4129 | + (eval "$lt_compile" 2>out/conftest.err) |
4130 | + ac_status=$? |
4131 | + cat out/conftest.err >&AS_MESSAGE_LOG_FD |
4132 | + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
4133 | + if (exit $ac_status) && test -s out/conftest2.$ac_objext |
4134 | + then |
4135 | + # The compiler can only warn and ignore the option if not recognized |
4136 | + # So say no if there are warnings |
4137 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
4138 | + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
4139 | + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
4140 | + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
4141 | + fi |
4142 | + fi |
4143 | + chmod u+w . 2>&AS_MESSAGE_LOG_FD |
4144 | + $RM conftest* |
4145 | + # SGI C++ compiler will create directory out/ii_files/ for |
4146 | + # template instantiation |
4147 | + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
4148 | + $RM out/* && rmdir out |
4149 | + cd .. |
4150 | + $RM -r conftest |
4151 | + $RM conftest* |
4152 | +]) |
4153 | +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], |
4154 | + [Does compiler simultaneously support -c and -o options?]) |
4155 | +])# _LT_COMPILER_C_O |
4156 | + |
4157 | + |
4158 | +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) |
4159 | +# ---------------------------------- |
4160 | +# Check to see if we can do hard links to lock some files if needed |
4161 | +m4_defun([_LT_COMPILER_FILE_LOCKS], |
4162 | +[m4_require([_LT_ENABLE_LOCK])dnl |
4163 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
4164 | +_LT_COMPILER_C_O([$1]) |
4165 | + |
4166 | +hard_links="nottested" |
4167 | +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
4168 | + # do not overwrite the value of need_locks provided by the user |
4169 | + AC_MSG_CHECKING([if we can lock with hard links]) |
4170 | + hard_links=yes |
4171 | + $RM conftest* |
4172 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
4173 | + touch conftest.a |
4174 | + ln conftest.a conftest.b 2>&5 || hard_links=no |
4175 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
4176 | + AC_MSG_RESULT([$hard_links]) |
4177 | + if test "$hard_links" = no; then |
4178 | + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
4179 | + need_locks=warn |
4180 | + fi |
4181 | +else |
4182 | + need_locks=no |
4183 | +fi |
4184 | +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) |
4185 | +])# _LT_COMPILER_FILE_LOCKS |
4186 | + |
4187 | + |
4188 | +# _LT_CHECK_OBJDIR |
4189 | +# ---------------- |
4190 | +m4_defun([_LT_CHECK_OBJDIR], |
4191 | +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
4192 | +[rm -f .libs 2>/dev/null |
4193 | +mkdir .libs 2>/dev/null |
4194 | +if test -d .libs; then |
4195 | + lt_cv_objdir=.libs |
4196 | +else |
4197 | + # MS-DOS does not allow filenames that begin with a dot. |
4198 | + lt_cv_objdir=_libs |
4199 | +fi |
4200 | +rmdir .libs 2>/dev/null]) |
4201 | +objdir=$lt_cv_objdir |
4202 | +_LT_DECL([], [objdir], [0], |
4203 | + [The name of the directory that contains temporary libtool files])dnl |
4204 | +m4_pattern_allow([LT_OBJDIR])dnl |
4205 | +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", |
4206 | + [Define to the sub-directory in which libtool stores uninstalled libraries.]) |
4207 | +])# _LT_CHECK_OBJDIR |
4208 | + |
4209 | + |
4210 | +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) |
4211 | +# -------------------------------------- |
4212 | +# Check hardcoding attributes. |
4213 | +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], |
4214 | +[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
4215 | +_LT_TAGVAR(hardcode_action, $1)= |
4216 | +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || |
4217 | + test -n "$_LT_TAGVAR(runpath_var, $1)" || |
4218 | + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
4219 | + |
4220 | + # We can hardcode non-existent directories. |
4221 | + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && |
4222 | + # If the only mechanism to avoid hardcoding is shlibpath_var, we |
4223 | + # have to relink, otherwise we might link with an installed library |
4224 | + # when we should be linking with a yet-to-be-installed one |
4225 | + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
4226 | + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then |
4227 | + # Linking always hardcodes the temporary library directory. |
4228 | + _LT_TAGVAR(hardcode_action, $1)=relink |
4229 | + else |
4230 | + # We can link without hardcoding, and we can hardcode nonexisting dirs. |
4231 | + _LT_TAGVAR(hardcode_action, $1)=immediate |
4232 | + fi |
4233 | +else |
4234 | + # We cannot hardcode anything, or else we can only hardcode existing |
4235 | + # directories. |
4236 | + _LT_TAGVAR(hardcode_action, $1)=unsupported |
4237 | +fi |
4238 | +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) |
4239 | + |
4240 | +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || |
4241 | + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then |
4242 | + # Fast installation is not supported |
4243 | + enable_fast_install=no |
4244 | +elif test "$shlibpath_overrides_runpath" = yes || |
4245 | + test "$enable_shared" = no; then |
4246 | + # Fast installation is not necessary |
4247 | + enable_fast_install=needless |
4248 | +fi |
4249 | +_LT_TAGDECL([], [hardcode_action], [0], |
4250 | + [How to hardcode a shared library path into an executable]) |
4251 | +])# _LT_LINKER_HARDCODE_LIBPATH |
4252 | + |
4253 | + |
4254 | +# _LT_CMD_STRIPLIB |
4255 | +# ---------------- |
4256 | +m4_defun([_LT_CMD_STRIPLIB], |
4257 | +[m4_require([_LT_DECL_EGREP]) |
4258 | +striplib= |
4259 | +old_striplib= |
4260 | +AC_MSG_CHECKING([whether stripping libraries is possible]) |
4261 | +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
4262 | + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
4263 | + test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
4264 | + AC_MSG_RESULT([yes]) |
4265 | +else |
4266 | +# FIXME - insert some real tests, host_os isn't really good enough |
4267 | + case $host_os in |
4268 | + darwin*) |
4269 | + if test -n "$STRIP" ; then |
4270 | + striplib="$STRIP -x" |
4271 | + old_striplib="$STRIP -S" |
4272 | + AC_MSG_RESULT([yes]) |
4273 | + else |
4274 | + AC_MSG_RESULT([no]) |
4275 | + fi |
4276 | + ;; |
4277 | + *) |
4278 | + AC_MSG_RESULT([no]) |
4279 | + ;; |
4280 | + esac |
4281 | +fi |
4282 | +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) |
4283 | +_LT_DECL([], [striplib], [1]) |
4284 | +])# _LT_CMD_STRIPLIB |
4285 | + |
4286 | + |
4287 | +# _LT_SYS_DYNAMIC_LINKER([TAG]) |
4288 | +# ----------------------------- |
4289 | +# PORTME Fill in your ld.so characteristics |
4290 | +m4_defun([_LT_SYS_DYNAMIC_LINKER], |
4291 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4292 | +m4_require([_LT_DECL_EGREP])dnl |
4293 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
4294 | +m4_require([_LT_DECL_OBJDUMP])dnl |
4295 | +m4_require([_LT_DECL_SED])dnl |
4296 | +m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
4297 | +AC_MSG_CHECKING([dynamic linker characteristics]) |
4298 | +m4_if([$1], |
4299 | + [], [ |
4300 | +if test "$GCC" = yes; then |
4301 | + case $host_os in |
4302 | + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
4303 | + *) lt_awk_arg="/^libraries:/" ;; |
4304 | + esac |
4305 | + case $host_os in |
4306 | + mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; |
4307 | + *) lt_sed_strip_eq="s,=/,/,g" ;; |
4308 | + esac |
4309 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
4310 | + case $lt_search_path_spec in |
4311 | + *\;*) |
4312 | + # if the path contains ";" then we assume it to be the separator |
4313 | + # otherwise default to the standard path separator (i.e. ":") - it is |
4314 | + # assumed that no part of a normal pathname contains ";" but that should |
4315 | + # okay in the real world where ";" in dirpaths is itself problematic. |
4316 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
4317 | + ;; |
4318 | + *) |
4319 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
4320 | + ;; |
4321 | + esac |
4322 | + # Ok, now we have the path, separated by spaces, we can step through it |
4323 | + # and add multilib dir if necessary. |
4324 | + lt_tmp_lt_search_path_spec= |
4325 | + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
4326 | + for lt_sys_path in $lt_search_path_spec; do |
4327 | + if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
4328 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
4329 | + else |
4330 | + test -d "$lt_sys_path" && \ |
4331 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
4332 | + fi |
4333 | + done |
4334 | + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
4335 | +BEGIN {RS=" "; FS="/|\n";} { |
4336 | + lt_foo=""; |
4337 | + lt_count=0; |
4338 | + for (lt_i = NF; lt_i > 0; lt_i--) { |
4339 | + if ($lt_i != "" && $lt_i != ".") { |
4340 | + if ($lt_i == "..") { |
4341 | + lt_count++; |
4342 | + } else { |
4343 | + if (lt_count == 0) { |
4344 | + lt_foo="/" $lt_i lt_foo; |
4345 | + } else { |
4346 | + lt_count--; |
4347 | + } |
4348 | + } |
4349 | + } |
4350 | + } |
4351 | + if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
4352 | + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
4353 | +}'` |
4354 | + # AWK program above erroneously prepends '/' to C:/dos/paths |
4355 | + # for these hosts. |
4356 | + case $host_os in |
4357 | + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
4358 | + $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; |
4359 | + esac |
4360 | + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
4361 | +else |
4362 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
4363 | +fi]) |
4364 | +library_names_spec= |
4365 | +libname_spec='lib$name' |
4366 | +soname_spec= |
4367 | +shrext_cmds=".so" |
4368 | +postinstall_cmds= |
4369 | +postuninstall_cmds= |
4370 | +finish_cmds= |
4371 | +finish_eval= |
4372 | +shlibpath_var= |
4373 | +shlibpath_overrides_runpath=unknown |
4374 | +version_type=none |
4375 | +dynamic_linker="$host_os ld.so" |
4376 | +sys_lib_dlsearch_path_spec="/lib /usr/lib" |
4377 | +need_lib_prefix=unknown |
4378 | +hardcode_into_libs=no |
4379 | + |
4380 | +# when you set need_version to no, make sure it does not cause -set_version |
4381 | +# flags to be left without arguments |
4382 | +need_version=unknown |
4383 | + |
4384 | +case $host_os in |
4385 | +aix3*) |
4386 | + version_type=linux # correct to gnu/linux during the next big refactor |
4387 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
4388 | + shlibpath_var=LIBPATH |
4389 | + |
4390 | + # AIX 3 has no versioning support, so we append a major version to the name. |
4391 | + soname_spec='${libname}${release}${shared_ext}$major' |
4392 | + ;; |
4393 | + |
4394 | +aix[[4-9]]*) |
4395 | + version_type=linux # correct to gnu/linux during the next big refactor |
4396 | + need_lib_prefix=no |
4397 | + need_version=no |
4398 | + hardcode_into_libs=yes |
4399 | + if test "$host_cpu" = ia64; then |
4400 | + # AIX 5 supports IA64 |
4401 | + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
4402 | + shlibpath_var=LD_LIBRARY_PATH |
4403 | + else |
4404 | + # With GCC up to 2.95.x, collect2 would create an import file |
4405 | + # for dependence libraries. The import file would start with |
4406 | + # the line `#! .'. This would cause the generated library to |
4407 | + # depend on `.', always an invalid library. This was fixed in |
4408 | + # development snapshots of GCC prior to 3.0. |
4409 | + case $host_os in |
4410 | + aix4 | aix4.[[01]] | aix4.[[01]].*) |
4411 | + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
4412 | + echo ' yes ' |
4413 | + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
4414 | + : |
4415 | + else |
4416 | + can_build_shared=no |
4417 | + fi |
4418 | + ;; |
4419 | + esac |
4420 | + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
4421 | + # soname into executable. Probably we can add versioning support to |
4422 | + # collect2, so additional links can be useful in future. |
4423 | + if test "$aix_use_runtimelinking" = yes; then |
4424 | + # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
4425 | + # instead of lib<name>.a to let people know that these are not |
4426 | + # typical AIX shared libraries. |
4427 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4428 | + else |
4429 | + # We preserve .a as extension for shared libraries through AIX4.2 |
4430 | + # and later when we are not doing run time linking. |
4431 | + library_names_spec='${libname}${release}.a $libname.a' |
4432 | + soname_spec='${libname}${release}${shared_ext}$major' |
4433 | + fi |
4434 | + shlibpath_var=LIBPATH |
4435 | + fi |
4436 | + ;; |
4437 | + |
4438 | +amigaos*) |
4439 | + case $host_cpu in |
4440 | + powerpc) |
4441 | + # Since July 2007 AmigaOS4 officially supports .so libraries. |
4442 | + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
4443 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4444 | + ;; |
4445 | + m68k) |
4446 | + library_names_spec='$libname.ixlibrary $libname.a' |
4447 | + # Create ${libname}_ixlibrary.a entries in /sys/libs. |
4448 | + 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' |
4449 | + ;; |
4450 | + esac |
4451 | + ;; |
4452 | + |
4453 | +beos*) |
4454 | + library_names_spec='${libname}${shared_ext}' |
4455 | + dynamic_linker="$host_os ld.so" |
4456 | + shlibpath_var=LIBRARY_PATH |
4457 | + ;; |
4458 | + |
4459 | +bsdi[[45]]*) |
4460 | + version_type=linux # correct to gnu/linux during the next big refactor |
4461 | + need_version=no |
4462 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4463 | + soname_spec='${libname}${release}${shared_ext}$major' |
4464 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
4465 | + shlibpath_var=LD_LIBRARY_PATH |
4466 | + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
4467 | + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
4468 | + # the default ld.so.conf also contains /usr/contrib/lib and |
4469 | + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
4470 | + # libtool to hard-code these into programs |
4471 | + ;; |
4472 | + |
4473 | +cygwin* | mingw* | pw32* | cegcc*) |
4474 | + version_type=windows |
4475 | + shrext_cmds=".dll" |
4476 | + need_version=no |
4477 | + need_lib_prefix=no |
4478 | + |
4479 | + case $GCC,$cc_basename in |
4480 | + yes,*) |
4481 | + # gcc |
4482 | + library_names_spec='$libname.dll.a' |
4483 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds |
4484 | + postinstall_cmds='base_file=`basename \${file}`~ |
4485 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
4486 | + dldir=$destdir/`dirname \$dlpath`~ |
4487 | + test -d \$dldir || mkdir -p \$dldir~ |
4488 | + $install_prog $dir/$dlname \$dldir/$dlname~ |
4489 | + chmod a+x \$dldir/$dlname~ |
4490 | + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
4491 | + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
4492 | + fi' |
4493 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
4494 | + dlpath=$dir/\$dldll~ |
4495 | + $RM \$dlpath' |
4496 | + shlibpath_overrides_runpath=yes |
4497 | + |
4498 | + case $host_os in |
4499 | + cygwin*) |
4500 | + # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
4501 | + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
4502 | +m4_if([$1], [],[ |
4503 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) |
4504 | + ;; |
4505 | + mingw* | cegcc*) |
4506 | + # MinGW DLLs use traditional 'lib' prefix |
4507 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
4508 | + ;; |
4509 | + pw32*) |
4510 | + # pw32 DLLs use 'pw' prefix rather than 'lib' |
4511 | + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
4512 | + ;; |
4513 | + esac |
4514 | + dynamic_linker='Win32 ld.exe' |
4515 | + ;; |
4516 | + |
4517 | + *,cl*) |
4518 | + # Native MSVC |
4519 | + libname_spec='$name' |
4520 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
4521 | + library_names_spec='${libname}.dll.lib' |
4522 | + |
4523 | + case $build_os in |
4524 | + mingw*) |
4525 | + sys_lib_search_path_spec= |
4526 | + lt_save_ifs=$IFS |
4527 | + IFS=';' |
4528 | + for lt_path in $LIB |
4529 | + do |
4530 | + IFS=$lt_save_ifs |
4531 | + # Let DOS variable expansion print the short 8.3 style file name. |
4532 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
4533 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
4534 | + done |
4535 | + IFS=$lt_save_ifs |
4536 | + # Convert to MSYS style. |
4537 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` |
4538 | + ;; |
4539 | + cygwin*) |
4540 | + # Convert to unix form, then to dos form, then back to unix form |
4541 | + # but this time dos style (no spaces!) so that the unix form looks |
4542 | + # like /cygdrive/c/PROGRA~1:/cygdr... |
4543 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
4544 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
4545 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
4546 | + ;; |
4547 | + *) |
4548 | + sys_lib_search_path_spec="$LIB" |
4549 | + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
4550 | + # It is most probably a Windows format PATH. |
4551 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
4552 | + else |
4553 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
4554 | + fi |
4555 | + # FIXME: find the short name or the path components, as spaces are |
4556 | + # common. (e.g. "Program Files" -> "PROGRA~1") |
4557 | + ;; |
4558 | + esac |
4559 | + |
4560 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds |
4561 | + postinstall_cmds='base_file=`basename \${file}`~ |
4562 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
4563 | + dldir=$destdir/`dirname \$dlpath`~ |
4564 | + test -d \$dldir || mkdir -p \$dldir~ |
4565 | + $install_prog $dir/$dlname \$dldir/$dlname' |
4566 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
4567 | + dlpath=$dir/\$dldll~ |
4568 | + $RM \$dlpath' |
4569 | + shlibpath_overrides_runpath=yes |
4570 | + dynamic_linker='Win32 link.exe' |
4571 | + ;; |
4572 | + |
4573 | + *) |
4574 | + # Assume MSVC wrapper |
4575 | + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
4576 | + dynamic_linker='Win32 ld.exe' |
4577 | + ;; |
4578 | + esac |
4579 | + # FIXME: first we should search . and the directory the executable is in |
4580 | + shlibpath_var=PATH |
4581 | + ;; |
4582 | + |
4583 | +darwin* | rhapsody*) |
4584 | + dynamic_linker="$host_os dyld" |
4585 | + version_type=darwin |
4586 | + need_lib_prefix=no |
4587 | + need_version=no |
4588 | + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
4589 | + soname_spec='${libname}${release}${major}$shared_ext' |
4590 | + shlibpath_overrides_runpath=yes |
4591 | + shlibpath_var=DYLD_LIBRARY_PATH |
4592 | + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
4593 | +m4_if([$1], [],[ |
4594 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
4595 | + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
4596 | + ;; |
4597 | + |
4598 | +dgux*) |
4599 | + version_type=linux # correct to gnu/linux during the next big refactor |
4600 | + need_lib_prefix=no |
4601 | + need_version=no |
4602 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
4603 | + soname_spec='${libname}${release}${shared_ext}$major' |
4604 | + shlibpath_var=LD_LIBRARY_PATH |
4605 | + ;; |
4606 | + |
4607 | +freebsd* | dragonfly*) |
4608 | + # DragonFly does not have aout. When/if they implement a new |
4609 | + # versioning mechanism, adjust this. |
4610 | + if test -x /usr/bin/objformat; then |
4611 | + objformat=`/usr/bin/objformat` |
4612 | + else |
4613 | + case $host_os in |
4614 | + freebsd[[23]].*) objformat=aout ;; |
4615 | + *) objformat=elf ;; |
4616 | + esac |
4617 | + fi |
4618 | + version_type=freebsd-$objformat |
4619 | + case $version_type in |
4620 | + freebsd-elf*) |
4621 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
4622 | + need_version=no |
4623 | + need_lib_prefix=no |
4624 | + ;; |
4625 | + freebsd-*) |
4626 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
4627 | + need_version=yes |
4628 | + ;; |
4629 | + esac |
4630 | + shlibpath_var=LD_LIBRARY_PATH |
4631 | + case $host_os in |
4632 | + freebsd2.*) |
4633 | + shlibpath_overrides_runpath=yes |
4634 | + ;; |
4635 | + freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
4636 | + shlibpath_overrides_runpath=yes |
4637 | + hardcode_into_libs=yes |
4638 | + ;; |
4639 | + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
4640 | + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
4641 | + shlibpath_overrides_runpath=no |
4642 | + hardcode_into_libs=yes |
4643 | + ;; |
4644 | + *) # from 4.6 on, and DragonFly |
4645 | + shlibpath_overrides_runpath=yes |
4646 | + hardcode_into_libs=yes |
4647 | + ;; |
4648 | + esac |
4649 | + ;; |
4650 | + |
4651 | +gnu*) |
4652 | + version_type=linux # correct to gnu/linux during the next big refactor |
4653 | + need_lib_prefix=no |
4654 | + need_version=no |
4655 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
4656 | + soname_spec='${libname}${release}${shared_ext}$major' |
4657 | + shlibpath_var=LD_LIBRARY_PATH |
4658 | + shlibpath_overrides_runpath=no |
4659 | + hardcode_into_libs=yes |
4660 | + ;; |
4661 | + |
4662 | +haiku*) |
4663 | + version_type=linux # correct to gnu/linux during the next big refactor |
4664 | + need_lib_prefix=no |
4665 | + need_version=no |
4666 | + dynamic_linker="$host_os runtime_loader" |
4667 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
4668 | + soname_spec='${libname}${release}${shared_ext}$major' |
4669 | + shlibpath_var=LIBRARY_PATH |
4670 | + shlibpath_overrides_runpath=yes |
4671 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
4672 | + hardcode_into_libs=yes |
4673 | + ;; |
4674 | + |
4675 | +hpux9* | hpux10* | hpux11*) |
4676 | + # Give a soname corresponding to the major version so that dld.sl refuses to |
4677 | + # link against other versions. |
4678 | + version_type=sunos |
4679 | + need_lib_prefix=no |
4680 | + need_version=no |
4681 | + case $host_cpu in |
4682 | + ia64*) |
4683 | + shrext_cmds='.so' |
4684 | + hardcode_into_libs=yes |
4685 | + dynamic_linker="$host_os dld.so" |
4686 | + shlibpath_var=LD_LIBRARY_PATH |
4687 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
4688 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4689 | + soname_spec='${libname}${release}${shared_ext}$major' |
4690 | + if test "X$HPUX_IA64_MODE" = X32; then |
4691 | + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
4692 | + else |
4693 | + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
4694 | + fi |
4695 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
4696 | + ;; |
4697 | + hppa*64*) |
4698 | + shrext_cmds='.sl' |
4699 | + hardcode_into_libs=yes |
4700 | + dynamic_linker="$host_os dld.sl" |
4701 | + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
4702 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
4703 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4704 | + soname_spec='${libname}${release}${shared_ext}$major' |
4705 | + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
4706 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
4707 | + ;; |
4708 | + *) |
4709 | + shrext_cmds='.sl' |
4710 | + dynamic_linker="$host_os dld.sl" |
4711 | + shlibpath_var=SHLIB_PATH |
4712 | + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
4713 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4714 | + soname_spec='${libname}${release}${shared_ext}$major' |
4715 | + ;; |
4716 | + esac |
4717 | + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
4718 | + postinstall_cmds='chmod 555 $lib' |
4719 | + # or fails outright, so override atomically: |
4720 | + install_override_mode=555 |
4721 | + ;; |
4722 | + |
4723 | +interix[[3-9]]*) |
4724 | + version_type=linux # correct to gnu/linux during the next big refactor |
4725 | + need_lib_prefix=no |
4726 | + need_version=no |
4727 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
4728 | + soname_spec='${libname}${release}${shared_ext}$major' |
4729 | + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
4730 | + shlibpath_var=LD_LIBRARY_PATH |
4731 | + shlibpath_overrides_runpath=no |
4732 | + hardcode_into_libs=yes |
4733 | + ;; |
4734 | + |
4735 | +irix5* | irix6* | nonstopux*) |
4736 | + case $host_os in |
4737 | + nonstopux*) version_type=nonstopux ;; |
4738 | + *) |
4739 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
4740 | + version_type=linux # correct to gnu/linux during the next big refactor |
4741 | + else |
4742 | + version_type=irix |
4743 | + fi ;; |
4744 | + esac |
4745 | + need_lib_prefix=no |
4746 | + need_version=no |
4747 | + soname_spec='${libname}${release}${shared_ext}$major' |
4748 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
4749 | + case $host_os in |
4750 | + irix5* | nonstopux*) |
4751 | + libsuff= shlibsuff= |
4752 | + ;; |
4753 | + *) |
4754 | + case $LD in # libtool.m4 will add one of these switches to LD |
4755 | + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
4756 | + libsuff= shlibsuff= libmagic=32-bit;; |
4757 | + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
4758 | + libsuff=32 shlibsuff=N32 libmagic=N32;; |
4759 | + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
4760 | + libsuff=64 shlibsuff=64 libmagic=64-bit;; |
4761 | + *) libsuff= shlibsuff= libmagic=never-match;; |
4762 | + esac |
4763 | + ;; |
4764 | + esac |
4765 | + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
4766 | + shlibpath_overrides_runpath=no |
4767 | + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
4768 | + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
4769 | + hardcode_into_libs=yes |
4770 | + ;; |
4771 | + |
4772 | +# No shared lib support for Linux oldld, aout, or coff. |
4773 | +linux*oldld* | linux*aout* | linux*coff*) |
4774 | + dynamic_linker=no |
4775 | + ;; |
4776 | + |
4777 | +# This must be glibc/ELF. |
4778 | +linux* | k*bsd*-gnu | kopensolaris*-gnu) |
4779 | + version_type=linux # correct to gnu/linux during the next big refactor |
4780 | + need_lib_prefix=no |
4781 | + need_version=no |
4782 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4783 | + soname_spec='${libname}${release}${shared_ext}$major' |
4784 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
4785 | + shlibpath_var=LD_LIBRARY_PATH |
4786 | + shlibpath_overrides_runpath=no |
4787 | + |
4788 | + # Some binutils ld are patched to set DT_RUNPATH |
4789 | + AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], |
4790 | + [lt_cv_shlibpath_overrides_runpath=no |
4791 | + save_LDFLAGS=$LDFLAGS |
4792 | + save_libdir=$libdir |
4793 | + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ |
4794 | + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" |
4795 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
4796 | + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], |
4797 | + [lt_cv_shlibpath_overrides_runpath=yes])]) |
4798 | + LDFLAGS=$save_LDFLAGS |
4799 | + libdir=$save_libdir |
4800 | + ]) |
4801 | + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
4802 | + |
4803 | + # This implies no fast_install, which is unacceptable. |
4804 | + # Some rework will be needed to allow for fast_install |
4805 | + # before this can be enabled. |
4806 | + hardcode_into_libs=yes |
4807 | + |
4808 | + # Append ld.so.conf contents to the search path |
4809 | + if test -f /etc/ld.so.conf; then |
4810 | + 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' ' '` |
4811 | + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
4812 | + fi |
4813 | + |
4814 | + # We used to test for /lib/ld.so.1 and disable shared libraries on |
4815 | + # powerpc, because MkLinux only supported shared libraries with the |
4816 | + # GNU dynamic linker. Since this was broken with cross compilers, |
4817 | + # most powerpc-linux boxes support dynamic linking these days and |
4818 | + # people can always --disable-shared, the test was removed, and we |
4819 | + # assume the GNU/Linux dynamic linker is in use. |
4820 | + dynamic_linker='GNU/Linux ld.so' |
4821 | + ;; |
4822 | + |
4823 | +netbsdelf*-gnu) |
4824 | + version_type=linux |
4825 | + need_lib_prefix=no |
4826 | + need_version=no |
4827 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
4828 | + soname_spec='${libname}${release}${shared_ext}$major' |
4829 | + shlibpath_var=LD_LIBRARY_PATH |
4830 | + shlibpath_overrides_runpath=no |
4831 | + hardcode_into_libs=yes |
4832 | + dynamic_linker='NetBSD ld.elf_so' |
4833 | + ;; |
4834 | + |
4835 | +netbsd*) |
4836 | + version_type=sunos |
4837 | + need_lib_prefix=no |
4838 | + need_version=no |
4839 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
4840 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
4841 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
4842 | + dynamic_linker='NetBSD (a.out) ld.so' |
4843 | + else |
4844 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
4845 | + soname_spec='${libname}${release}${shared_ext}$major' |
4846 | + dynamic_linker='NetBSD ld.elf_so' |
4847 | + fi |
4848 | + shlibpath_var=LD_LIBRARY_PATH |
4849 | + shlibpath_overrides_runpath=yes |
4850 | + hardcode_into_libs=yes |
4851 | + ;; |
4852 | + |
4853 | +newsos6) |
4854 | + version_type=linux # correct to gnu/linux during the next big refactor |
4855 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4856 | + shlibpath_var=LD_LIBRARY_PATH |
4857 | + shlibpath_overrides_runpath=yes |
4858 | + ;; |
4859 | + |
4860 | +*nto* | *qnx*) |
4861 | + version_type=qnx |
4862 | + need_lib_prefix=no |
4863 | + need_version=no |
4864 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4865 | + soname_spec='${libname}${release}${shared_ext}$major' |
4866 | + shlibpath_var=LD_LIBRARY_PATH |
4867 | + shlibpath_overrides_runpath=no |
4868 | + hardcode_into_libs=yes |
4869 | + dynamic_linker='ldqnx.so' |
4870 | + ;; |
4871 | + |
4872 | +openbsd*) |
4873 | + version_type=sunos |
4874 | + sys_lib_dlsearch_path_spec="/usr/lib" |
4875 | + need_lib_prefix=no |
4876 | + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
4877 | + case $host_os in |
4878 | + openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
4879 | + *) need_version=no ;; |
4880 | + esac |
4881 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
4882 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
4883 | + shlibpath_var=LD_LIBRARY_PATH |
4884 | + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4885 | + case $host_os in |
4886 | + openbsd2.[[89]] | openbsd2.[[89]].*) |
4887 | + shlibpath_overrides_runpath=no |
4888 | + ;; |
4889 | + *) |
4890 | + shlibpath_overrides_runpath=yes |
4891 | + ;; |
4892 | + esac |
4893 | + else |
4894 | + shlibpath_overrides_runpath=yes |
4895 | + fi |
4896 | + ;; |
4897 | + |
4898 | +os2*) |
4899 | + libname_spec='$name' |
4900 | + shrext_cmds=".dll" |
4901 | + need_lib_prefix=no |
4902 | + library_names_spec='$libname${shared_ext} $libname.a' |
4903 | + dynamic_linker='OS/2 ld.exe' |
4904 | + shlibpath_var=LIBPATH |
4905 | + ;; |
4906 | + |
4907 | +osf3* | osf4* | osf5*) |
4908 | + version_type=osf |
4909 | + need_lib_prefix=no |
4910 | + need_version=no |
4911 | + soname_spec='${libname}${release}${shared_ext}$major' |
4912 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4913 | + shlibpath_var=LD_LIBRARY_PATH |
4914 | + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
4915 | + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
4916 | + ;; |
4917 | + |
4918 | +rdos*) |
4919 | + dynamic_linker=no |
4920 | + ;; |
4921 | + |
4922 | +solaris*) |
4923 | + version_type=linux # correct to gnu/linux during the next big refactor |
4924 | + need_lib_prefix=no |
4925 | + need_version=no |
4926 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4927 | + soname_spec='${libname}${release}${shared_ext}$major' |
4928 | + shlibpath_var=LD_LIBRARY_PATH |
4929 | + shlibpath_overrides_runpath=yes |
4930 | + hardcode_into_libs=yes |
4931 | + # ldd complains unless libraries are executable |
4932 | + postinstall_cmds='chmod +x $lib' |
4933 | + ;; |
4934 | + |
4935 | +sunos4*) |
4936 | + version_type=sunos |
4937 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
4938 | + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
4939 | + shlibpath_var=LD_LIBRARY_PATH |
4940 | + shlibpath_overrides_runpath=yes |
4941 | + if test "$with_gnu_ld" = yes; then |
4942 | + need_lib_prefix=no |
4943 | + fi |
4944 | + need_version=yes |
4945 | + ;; |
4946 | + |
4947 | +sysv4 | sysv4.3*) |
4948 | + version_type=linux # correct to gnu/linux during the next big refactor |
4949 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4950 | + soname_spec='${libname}${release}${shared_ext}$major' |
4951 | + shlibpath_var=LD_LIBRARY_PATH |
4952 | + case $host_vendor in |
4953 | + sni) |
4954 | + shlibpath_overrides_runpath=no |
4955 | + need_lib_prefix=no |
4956 | + runpath_var=LD_RUN_PATH |
4957 | + ;; |
4958 | + siemens) |
4959 | + need_lib_prefix=no |
4960 | + ;; |
4961 | + motorola) |
4962 | + need_lib_prefix=no |
4963 | + need_version=no |
4964 | + shlibpath_overrides_runpath=no |
4965 | + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
4966 | + ;; |
4967 | + esac |
4968 | + ;; |
4969 | + |
4970 | +sysv4*MP*) |
4971 | + if test -d /usr/nec ;then |
4972 | + version_type=linux # correct to gnu/linux during the next big refactor |
4973 | + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
4974 | + soname_spec='$libname${shared_ext}.$major' |
4975 | + shlibpath_var=LD_LIBRARY_PATH |
4976 | + fi |
4977 | + ;; |
4978 | + |
4979 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4980 | + version_type=freebsd-elf |
4981 | + need_lib_prefix=no |
4982 | + need_version=no |
4983 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
4984 | + soname_spec='${libname}${release}${shared_ext}$major' |
4985 | + shlibpath_var=LD_LIBRARY_PATH |
4986 | + shlibpath_overrides_runpath=yes |
4987 | + hardcode_into_libs=yes |
4988 | + if test "$with_gnu_ld" = yes; then |
4989 | + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
4990 | + else |
4991 | + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
4992 | + case $host_os in |
4993 | + sco3.2v5*) |
4994 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
4995 | + ;; |
4996 | + esac |
4997 | + fi |
4998 | + sys_lib_dlsearch_path_spec='/usr/lib' |
4999 | + ;; |
5000 | + |
The diff has been truncated for viewing.
Lovely work, Thanks a million !