Codebase list ibus-input-pad / 2afa322
Update upstream source from tag 'upstream/1.4.99.20140916' Update to upstream version '1.4.99.20140916' with Debian dir 34dc92fbd88f2974bb35fbc4dbaab8bfc985c61e Boyuan Yang 2 years ago
49 changed file(s) with 2047 addition(s) and 52733 deletion(s). Raw diff Collapse all Expand all
(New empty file)
0 commit ee268114f11d7c537e652e2b964bad4425a9b8c2
1 Author: fujiwarat <takao.fujiwara1@gmail.com>
2 Date: 2013-12-27 13:05:42 +0900
3
4 Released 1.4.2
5
6 Removed shared_type tag in input-pad.xml, which is not upstreamed.
7
8 M configure.ac
9 M engine/input-pad.xml.in
10
11 commit 3c607f7ce66c90aa222bcb62a7e59708aa6f74a3
12 Author: fujiwarat <takao.fujiwara1@gmail.com>
13 Date: 2013-12-06 15:33:02 +0900
14
15 Released 1.4.1
16
17 Added ibus-setup-input-pad.desktop
18 Enabled GTK3 by default.
19
20 M configure.ac
21
22 commit de3e9fe89ca12ecb0d9ef1303a16e9bed00868cc
23 Author: fujiwarat <takao.fujiwara1@gmail.com>
24 Date: 2013-12-06 15:29:56 +0900
25
26 Updated translations.
27
28 Updated po/ja.po po/pl.po
29
30 M po/ja.po
31 M po/pl.po
32
33 commit 11c139b6ccade3dfaa7ff5f7bcb1df64497171fa
34 Author: fujiwarat <takao.fujiwara1@gmail.com>
35 Date: 2013-12-03 15:32:26 +0900
36
37 Enabled GTK3 by default.
38
39 M configure.ac
40
41 commit f0022e1363e3c52676593faa717c9538f4b0c3de
42 Author: fujiwarat <takao.fujiwara1@gmail.com>
43 Date: 2013-12-03 15:21:41 +0900
44
45 Revised CFLAGS in autogen.sh .
46
47 M autogen.sh
48
49 commit a1bf3af97a0eaa6145f536c62c045ddf10887434
50 Author: fujiwarat <takao.fujiwara1@gmail.com>
51 Date: 2013-12-03 15:12:49 +0900
52
53 Enabled maintainer-mode in configure.ac.
54
55 M autogen.sh
56 M configure.ac
57
58 commit 762fcbbfc4888ab2d699214e95a097255c3a1757
59 Author: fujiwarat <takao.fujiwara1@gmail.com>
60 Date: 2013-10-08 14:38:05 +0900
61
62 Added ibus-setup-input-pad.desktop
63
64 M engine/Makefile.am
65 M po/POTFILES.in
66 A po/POTFILES.skip
67 M po/ibus-input-pad.pot
68 M setup/Makefile.am
69 A setup/ibus-setup-input-pad.desktop.in.in
70
71 commit b56cce950a820d05f3b27781220d6b3c3cc012de
72 Author: fujiwarat <takao.fujiwara1@gmail.com>
73 Date: 2012-12-17 20:24:00 +0900
74
75 Updated translations.
76
77 M po/LINGUAS
78 M po/fr.po
79 M po/ibus-input-pad.pot
80 M po/ja.po
81 A po/pl.po
82 A po/te.po
83 A po/uk.po
84 A po/zh_TW.po
85
86 commit ad82a14da0060a906e870cb02129df2840474ba5
87 Author: fujiwarat <takao.fujiwara1@gmail.com>
88 Date: 2011-03-08 12:11:06 +0900
89
90 Fixed typo
91
92 M po/ibus-input-pad.pot
93
94 commit a88253d3da7178931d99d93d0934e90f7049ee8f
95 Author: fujiwarat <takao.fujiwara1@gmail.com>
96 Date: 2011-03-08 11:51:07 +0900
97
98 Reverted again.
99
100 D po/ibus-input-pad.po
101 A po/ibus-input-pad.pot
102
103 commit 2f02fb107384d7e176283527d761c6407fadc879
104 Author: fujiwarat <takao.fujiwara1@gmail.com>
105 Date: 2011-03-08 11:48:59 +0900
106
107 Renamed po/ibus-input-pad.po
108
109 A po/ibus-input-pad.po
110 D po/ibus-input-pad.pot
111
112 commit 24804a5968f768722b055fc7d5d583552d29049e
113 Author: fujiwarat <takao.fujiwara1@gmail.com>
114 Date: 2011-03-08 11:43:12 +0900
115
116 Added ibus-input-pad.pot
117
118 M .gitignore
119 A po/ibus-input-pad.pot
120
121 commit 4888b0e6aa48c391a796c70dc8c624680b87f998
122 Author: fujiwarat <takao.fujiwara1@gmail.com>
123 Date: 2011-01-17 12:48:51 +0900
124
125 Updated copyright.
126
127 M Makefile.am
128 M configure.ac
129 M engine/Makefile.am
130 M engine/engine.c
131 M engine/engine.h
132 M engine/i18n.h
133 M engine/main.c
134 M po/fr.po
135 M po/ja.po
136 M setup/Makefile.am
137 M setup/iconfig-gtk2.c
138 M setup/iconfig-gtk2.h
139 M setup/main.c
140 M setup/setup-gtk2.c
141 M setup/setup-gtk2.h
142
143 commit e68fd848c1d7b00a11b51e7bd39887b172b9f4bc
144 Author: fujiwarat <takao.fujiwara1@gmail.com>
145 Date: 2010-12-22 13:32:19 +0900
146
147 Updated debian build.
148
149 M debian/changelog
150 M debian/control
151
152 commit c2bec278b43a888a9c496e0ad6c125275d2a19ee
153 Author: fujiwarat <takao.fujiwara1@gmail.com>
154 Date: 2010-12-03 15:27:18 +0900
155
156 Released 1.4.0
157
158 M README
159 M configure.ac
160
161 commit d447097f46e71bae95136c4254b397b553d4c8ec
162 Author: fujiwarat <takao.fujiwara1@gmail.com>
163 Date: 2010-12-03 15:27:14 +0900
164
165 Changed GTK+ configure option.
166
167 M configure.ac
168
169 commit 4dcc13b93296673ec80a3cb6c3e1dd826fca8f7b
170 Author: fujiwarat <takao.fujiwara1@gmail.com>
171 Date: 2010-11-09 17:51:50 +0900
172
173 Supported GTK3.
174
175 M configure.ac
176 M setup/Makefile.am
177 M setup/setup-gtk2.c
178
179 commit 647815dcc289e788628b5a333f5869520f97ef08
180 Author: fujiwarat <takao.fujiwara1@gmail.com>
181 Date: 2010-11-08 15:03:59 +0900
182
183 Integrated gdbus for IBus 1.4
184
185 M setup/iconfig-gtk2.c
186
187 commit 49fcd3d7c22667947f9388795582f6e09593613f
188 Author: fujiwarat <takao.fujiwara1@gmail.com>
189 Date: 2010-11-08 14:43:04 +0900
190
191 Fixed focused label.
192
193 M setup/setup-gtk2.ui
194
195 commit aed7bb90f1bd9c9d4fe1f3778096522550c94328
196 Author: fujiwarat <takao.fujiwara1@gmail.com>
197 Date: 2010-10-08 16:38:45 +0900
198
199 Fixed typo.
200
201 M Makefile.am
202 M README
203 M configure.ac
204 M engine/Makefile.am
205 M engine/engine.c
206 M engine/engine.h
207 M engine/i18n.h
208 M engine/input-pad.xml.in
209 M engine/main.c
210 M ibus-input-pad.spec.in
211 M po/Makevars
212 M po/fr.po
213 M po/ja.po
214 M setup/Makefile.am
215 M setup/iconfig-gtk2.c
216 M setup/iconfig-gtk2.h
217 M setup/main.c
218 M setup/setup-gtk2.c
219 M setup/setup-gtk2.h
220
221 commit ea2efb1b0bfeb9414cc24270530db405afe2da5c
222 Author: fujiwarat <takao.fujiwara1@gmail.com>
223 Date: 2010-07-26 13:08:02 +0900
224
225 Removed workaround.
226
227 M debian/rules
228
229 commit 8fe08316ec52ef562443353f56a7f0fc45baff76
230 Author: fujiwarat <takao.fujiwara1@gmail.com>
231 Date: 2010-07-26 11:45:46 +0900
232
233 Released 0.1.3
234
235 M configure.ac
236 M debian/changelog
237
238 commit 94640944eace2dac175370238b769340b4e838e9
239 Author: fujiwarat <takao.fujiwara1@gmail.com>
240 Date: 2010-07-26 11:19:03 +0900
241
242 Fix not to call disconnect signals out of destory signal #3.
243
244 M engine/engine.c
245
246 commit 5b0d161356820f537975446a75f068ed294e8a02
247 Author: fujiwarat <takao.fujiwara1@gmail.com>
248 Date: 2010-07-16 11:05:12 +0900
249
250 Added debian build.
251
252 A debian/README.source
253 A debian/changelog
254 A debian/compat
255 A debian/control
256 A debian/copyright
257 A debian/docs
258 A debian/ibus-input-pad.install
259 A debian/rules
260 A debian/source/format
261 A debian/watch
262
263 commit f471d4d1419876093b1955346b733de4840504f2
264 Author: fujiwarat <takao.fujiwara1@gmail.com>
265 Date: 2010-07-16 11:04:16 +0900
266
267 Fixed #2 ibus-inpput-pad has unnecessary rpath.
268
269 M engine/Makefile.am
270 M setup/Makefile.am
271
272 commit 23aebb27e72691ee98a7e4d394caaa979d7b00c4
273 Author: fujiwarat <takao.fujiwara1@gmail.com>
274 Date: 2010-07-08 19:17:39 +0900
275
276 Released 0.1.2 . Fixed a build error.
277
278 M configure.ac
279 M setup/Makefile.am
280
281 commit dd679802cab16df3be62ff5a88d23e519c6f53af
282 Author: fujiwarat <takao.fujiwara1@gmail.com>
283 Date: 2010-07-08 19:00:20 +0900
284
285 Released 0.1.1
286
287 M configure.ac
288
289 commit e3161d491351f6b3051b0f179e4c370ee4f8052f
290 Author: fujiwarat <takao.fujiwara1@gmail.com>
291 Date: 2010-07-08 18:56:08 +0900
292
293 Added deprecated ibus menu item code for other platforms.
294
295 M configure.ac
296 M engine/engine.c
297 M setup/setup-gtk2.c
298
299 commit bb897adbc4a35af1d280d1349ffc7a58dfa4885a
300 Author: fujiwarat <takao.fujiwara1@gmail.com>
301 Date: 2010-07-08 12:10:14 +0900
302
303 Added setup dialog.
304
305 M Makefile.am
306 M configure.ac
307 M engine/Makefile.am
308 M engine/engine.c
309 M ibus-input-pad.spec.in
310 M po/POTFILES.in
311 M po/fr.po
312 M po/ja.po
313 A setup/Makefile.am
314 A setup/iconfig-gtk2.c
315 A setup/iconfig-gtk2.h
316 A setup/main.c
317 A setup/setup-gtk2.c
318 A setup/setup-gtk2.h
319 A setup/setup-gtk2.ui
320
321 commit 707cf1faaff0fb13eed87327ec37b6639fc7f746
322 Author: fujiwarat <takao.fujiwara1@gmail.com>
323 Date: 2010-06-29 15:54:01 +0900
324
325 Fixed not to show window until you click menu item.
326
327 A .gitignore
328 M AUTHORS
329 M engine/engine.c
330 M po/fr.po
331 D po/ibus-input-pad.pot
332 M po/ja.po
333
334 commit 09563be22d1936b1966c19a52b765621beb05a71
335 Author: fujiwarat <takao.fujiwara1@gmail.com>
336 Date: 2010-06-22 19:09:08 +0900
337
338 Followed Fedora spec policy.
339
340 M ibus-input-pad.spec.in
341
342 commit 89bf90b730c10d8c0875946168fd2a3db48d60f6
343 Author: fujiwarat <takao.fujiwara1@gmail.com>
344 Date: 2010-06-08 18:55:07 +0900
345
346 Added shared_type property with property_activate().
347
348 M engine/engine.c
349 M engine/input-pad.xml.in
350 M engine/main.c
351 M po/POTFILES.in
352 M po/fr.po
353 M po/ibus-input-pad.pot
354 M po/ja.po
355
356 commit 7b316e7cfdb142d803a6f4247e79a3d56434ea7c
357 Author: fujiwarat <takao.fujiwara1@gmail.com>
358 Date: 2010-06-03 16:09:41 +0900
359
360 Followed Fedora spec policy.
361
362 M ibus-input-pad.spec.in
363
364 commit 4c1a44694742cfc8c5e55f31396b80faaef29eb2
365 Author: fujiwarat <takao.fujiwara1@gmail.com>
366 Date: 2010-06-03 12:33:44 +0900
367
368 Initial Implementation.
369
370 A AUTHORS
371 A COPYING
372 A ChangeLog
373 A Makefile.am
374 A NEWS
375 A README
376 A TODO
377 A autogen.sh
378 A configure.ac
379 A engine/Makefile.am
380 A engine/engine.c
381 A engine/engine.h
382 A engine/i18n.h
383 A engine/input-pad.xml.in
384 A engine/main.c
385 A ibus-input-pad.spec.in
386 A po/LINGUAS
387 A po/Makevars
388 A po/POTFILES.in
389 A po/fr.po
390 A po/ibus-input-pad.pot
391 A po/ja.po
+0
-370
INSTALL less more
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
4 Inc.
5
6 Copying and distribution of this file, with or without modification,
7 are permitted in any medium without royalty provided the copyright
8 notice and this notice are preserved. This file is offered as-is,
9 without warranty of any kind.
10
11 Basic Installation
12 ==================
13
14 Briefly, the shell commands `./configure; make; make install' should
15 configure, build, and install this package. The following
16 more-detailed instructions are generic; see the `README' file for
17 instructions specific to this package. Some packages provide this
18 `INSTALL' file but do not implement all of the features documented
19 below. The lack of an optional feature in a given package is not
20 necessarily a bug. More recommendations for GNU packages can be found
21 in *note Makefile Conventions: (standards)Makefile Conventions.
22
23 The `configure' shell script attempts to guess correct values for
24 various system-dependent variables used during compilation. It uses
25 those values to create a `Makefile' in each directory of the package.
26 It may also create one or more `.h' files containing system-dependent
27 definitions. Finally, it creates a shell script `config.status' that
28 you can run in the future to recreate the current configuration, and a
29 file `config.log' containing compiler output (useful mainly for
30 debugging `configure').
31
32 It can also use an optional file (typically called `config.cache'
33 and enabled with `--cache-file=config.cache' or simply `-C') that saves
34 the results of its tests to speed up reconfiguring. Caching is
35 disabled by default to prevent problems with accidental use of stale
36 cache files.
37
38 If you need to do unusual things to compile the package, please try
39 to figure out how `configure' could check whether to do them, and mail
40 diffs or instructions to the address given in the `README' so they can
41 be considered for the next release. If you are using the cache, and at
42 some point `config.cache' contains results you don't want to keep, you
43 may remove or edit it.
44
45 The file `configure.ac' (or `configure.in') is used to create
46 `configure' by a program called `autoconf'. You need `configure.ac' if
47 you want to change it or regenerate `configure' using a newer version
48 of `autoconf'.
49
50 The simplest way to compile this package is:
51
52 1. `cd' to the directory containing the package's source code and type
53 `./configure' to configure the package for your system.
54
55 Running `configure' might take a while. While running, it prints
56 some messages telling which features it is checking for.
57
58 2. Type `make' to compile the package.
59
60 3. Optionally, type `make check' to run any self-tests that come with
61 the package, generally using the just-built uninstalled binaries.
62
63 4. Type `make install' to install the programs and any data files and
64 documentation. When installing into a prefix owned by root, it is
65 recommended that the package be configured and built as a regular
66 user, and only the `make install' phase executed with root
67 privileges.
68
69 5. Optionally, type `make installcheck' to repeat any self-tests, but
70 this time using the binaries in their final installed location.
71 This target does not install anything. Running this target as a
72 regular user, particularly if the prior `make install' required
73 root privileges, verifies that the installation completed
74 correctly.
75
76 6. You can remove the program binaries and object files from the
77 source code directory by typing `make clean'. To also remove the
78 files that `configure' created (so you can compile the package for
79 a different kind of computer), type `make distclean'. There is
80 also a `make maintainer-clean' target, but that is intended mainly
81 for the package's developers. If you use it, you may have to get
82 all sorts of other programs in order to regenerate files that came
83 with the distribution.
84
85 7. Often, you can also type `make uninstall' to remove the installed
86 files again. In practice, not all packages have tested that
87 uninstallation works correctly, even though it is required by the
88 GNU Coding Standards.
89
90 8. Some packages, particularly those that use Automake, provide `make
91 distcheck', which can by used by developers to test that all other
92 targets like `make install' and `make uninstall' work correctly.
93 This target is generally not run by end users.
94
95 Compilers and Options
96 =====================
97
98 Some systems require unusual options for compilation or linking that
99 the `configure' script does not know about. Run `./configure --help'
100 for details on some of the pertinent environment variables.
101
102 You can give `configure' initial values for configuration parameters
103 by setting variables in the command line or in the environment. Here
104 is an example:
105
106 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
107
108 *Note Defining Variables::, for more details.
109
110 Compiling For Multiple Architectures
111 ====================================
112
113 You can compile the package for more than one kind of computer at the
114 same time, by placing the object files for each architecture in their
115 own directory. To do this, you can use GNU `make'. `cd' to the
116 directory where you want the object files and executables to go and run
117 the `configure' script. `configure' automatically checks for the
118 source code in the directory that `configure' is in and in `..'. This
119 is known as a "VPATH" build.
120
121 With a non-GNU `make', it is safer to compile the package for one
122 architecture at a time in the source code directory. After you have
123 installed the package for one architecture, use `make distclean' before
124 reconfiguring for another architecture.
125
126 On MacOS X 10.5 and later systems, you can create libraries and
127 executables that work on multiple system types--known as "fat" or
128 "universal" binaries--by specifying multiple `-arch' options to the
129 compiler but only a single `-arch' option to the preprocessor. Like
130 this:
131
132 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
133 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
134 CPP="gcc -E" CXXCPP="g++ -E"
135
136 This is not guaranteed to produce working output in all cases, you
137 may have to build one architecture at a time and combine the results
138 using the `lipo' tool if you have problems.
139
140 Installation Names
141 ==================
142
143 By default, `make install' installs the package's commands under
144 `/usr/local/bin', include files under `/usr/local/include', etc. You
145 can specify an installation prefix other than `/usr/local' by giving
146 `configure' the option `--prefix=PREFIX', where PREFIX must be an
147 absolute file name.
148
149 You can specify separate installation prefixes for
150 architecture-specific files and architecture-independent files. If you
151 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
152 PREFIX as the prefix for installing programs and libraries.
153 Documentation and other data files still use the regular prefix.
154
155 In addition, if you use an unusual directory layout you can give
156 options like `--bindir=DIR' to specify different values for particular
157 kinds of files. Run `configure --help' for a list of the directories
158 you can set and what kinds of files go in them. In general, the
159 default for these options is expressed in terms of `${prefix}', so that
160 specifying just `--prefix' will affect all of the other directory
161 specifications that were not explicitly provided.
162
163 The most portable way to affect installation locations is to pass the
164 correct locations to `configure'; however, many packages provide one or
165 both of the following shortcuts of passing variable assignments to the
166 `make install' command line to change installation locations without
167 having to reconfigure or recompile.
168
169 The first method involves providing an override variable for each
170 affected directory. For example, `make install
171 prefix=/alternate/directory' will choose an alternate location for all
172 directory configuration variables that were expressed in terms of
173 `${prefix}'. Any directories that were specified during `configure',
174 but not in terms of `${prefix}', must each be overridden at install
175 time for the entire installation to be relocated. The approach of
176 makefile variable overrides for each directory variable is required by
177 the GNU Coding Standards, and ideally causes no recompilation.
178 However, some platforms have known limitations with the semantics of
179 shared libraries that end up requiring recompilation when using this
180 method, particularly noticeable in packages that use GNU Libtool.
181
182 The second method involves providing the `DESTDIR' variable. For
183 example, `make install DESTDIR=/alternate/directory' will prepend
184 `/alternate/directory' before all installation names. The approach of
185 `DESTDIR' overrides is not required by the GNU Coding Standards, and
186 does not work on platforms that have drive letters. On the other hand,
187 it does better at avoiding recompilation issues, and works well even
188 when some directory options were not specified in terms of `${prefix}'
189 at `configure' time.
190
191 Optional Features
192 =================
193
194 If the package supports it, you can cause programs to be installed
195 with an extra prefix or suffix on their names by giving `configure' the
196 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
197
198 Some packages pay attention to `--enable-FEATURE' options to
199 `configure', where FEATURE indicates an optional part of the package.
200 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
201 is something like `gnu-as' or `x' (for the X Window System). The
202 `README' should mention any `--enable-' and `--with-' options that the
203 package recognizes.
204
205 For packages that use the X Window System, `configure' can usually
206 find the X include and library files automatically, but if it doesn't,
207 you can use the `configure' options `--x-includes=DIR' and
208 `--x-libraries=DIR' to specify their locations.
209
210 Some packages offer the ability to configure how verbose the
211 execution of `make' will be. For these packages, running `./configure
212 --enable-silent-rules' sets the default to minimal output, which can be
213 overridden with `make V=1'; while running `./configure
214 --disable-silent-rules' sets the default to verbose, which can be
215 overridden with `make V=0'.
216
217 Particular systems
218 ==================
219
220 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
221 CC is not installed, it is recommended to use the following options in
222 order to use an ANSI C compiler:
223
224 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
225
226 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227
228 HP-UX `make' updates targets which have the same time stamps as
229 their prerequisites, which makes it generally unusable when shipped
230 generated files such as `configure' are involved. Use GNU `make'
231 instead.
232
233 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
234 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
235 a workaround. If GNU CC is not installed, it is therefore recommended
236 to try
237
238 ./configure CC="cc"
239
240 and if that doesn't work, try
241
242 ./configure CC="cc -nodtk"
243
244 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
245 directory contains several dysfunctional programs; working variants of
246 these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
247 in your `PATH', put it _after_ `/usr/bin'.
248
249 On Haiku, software installed for all users goes in `/boot/common',
250 not `/usr/local'. It is recommended to use the following options:
251
252 ./configure --prefix=/boot/common
253
254 Specifying the System Type
255 ==========================
256
257 There may be some features `configure' cannot figure out
258 automatically, but needs to determine by the type of machine the package
259 will run on. Usually, assuming the package is built to be run on the
260 _same_ architectures, `configure' can figure that out, but if it prints
261 a message saying it cannot guess the machine type, give it the
262 `--build=TYPE' option. TYPE can either be a short name for the system
263 type, such as `sun4', or a canonical name which has the form:
264
265 CPU-COMPANY-SYSTEM
266
267 where SYSTEM can have one of these forms:
268
269 OS
270 KERNEL-OS
271
272 See the file `config.sub' for the possible values of each field. If
273 `config.sub' isn't included in this package, then this package doesn't
274 need to know the machine type.
275
276 If you are _building_ compiler tools for cross-compiling, you should
277 use the option `--target=TYPE' to select the type of system they will
278 produce code for.
279
280 If you want to _use_ a cross compiler, that generates code for a
281 platform different from the build platform, you should specify the
282 "host" platform (i.e., that on which the generated programs will
283 eventually be run) with `--host=TYPE'.
284
285 Sharing Defaults
286 ================
287
288 If you want to set default values for `configure' scripts to share,
289 you can create a site shell script called `config.site' that gives
290 default values for variables like `CC', `cache_file', and `prefix'.
291 `configure' looks for `PREFIX/share/config.site' if it exists, then
292 `PREFIX/etc/config.site' if it exists. Or, you can set the
293 `CONFIG_SITE' environment variable to the location of the site script.
294 A warning: not all `configure' scripts look for a site script.
295
296 Defining Variables
297 ==================
298
299 Variables not defined in a site shell script can be set in the
300 environment passed to `configure'. However, some packages may run
301 configure again during the build, and the customized values of these
302 variables may be lost. In order to avoid this problem, you should set
303 them in the `configure' command line, using `VAR=value'. For example:
304
305 ./configure CC=/usr/local2/bin/gcc
306
307 causes the specified `gcc' to be used as the C compiler (unless it is
308 overridden in the site shell script).
309
310 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
311 an Autoconf limitation. Until the limitation is lifted, you can use
312 this workaround:
313
314 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
315
316 `configure' Invocation
317 ======================
318
319 `configure' recognizes the following options to control how it
320 operates.
321
322 `--help'
323 `-h'
324 Print a summary of all of the options to `configure', and exit.
325
326 `--help=short'
327 `--help=recursive'
328 Print a summary of the options unique to this package's
329 `configure', and exit. The `short' variant lists options used
330 only in the top level, while the `recursive' variant lists options
331 also present in any nested packages.
332
333 `--version'
334 `-V'
335 Print the version of Autoconf used to generate the `configure'
336 script, and exit.
337
338 `--cache-file=FILE'
339 Enable the cache: use and save the results of the tests in FILE,
340 traditionally `config.cache'. FILE defaults to `/dev/null' to
341 disable caching.
342
343 `--config-cache'
344 `-C'
345 Alias for `--cache-file=config.cache'.
346
347 `--quiet'
348 `--silent'
349 `-q'
350 Do not print messages saying which checks are being made. To
351 suppress all normal output, redirect it to `/dev/null' (any error
352 messages will still be shown).
353
354 `--srcdir=DIR'
355 Look for the package's source code in directory DIR. Usually
356 `configure' can determine that directory automatically.
357
358 `--prefix=DIR'
359 Use DIR as the installation prefix. *note Installation Names::
360 for more details, including other options available for fine-tuning
361 the installation locations.
362
363 `--no-create'
364 `-n'
365 Run the configure checks, but stop before creating any output
366 files.
367
368 `configure' also accepts some other, not widely useful, options. Run
369 `configure --help' for more details.
+0
-913
Makefile.in less more
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # vim:set noet ts=4:
17 #
18 # ibus-input-pad - Input pad for IBus
19 #
20 # Copyright (c) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
21 # Copyright (c) 2010-2011 Red Hat, Inc.
22 #
23 # This program is free software; you can redistribute it and/or modify
24 # it under the terms of the GNU General Public License as published by
25 # the Free Software Foundation; either version 2 of the License, or
26 # (at your option) any later version.
27 #
28 # This program is distributed in the hope that it will be useful,
29 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 # GNU General Public License for more details.
32 #
33 # You should have received a copy of the GNU General Public License along
34 # with this program; if not, write to the Free Software Foundation, Inc.,
35 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
36 VPATH = @srcdir@
37 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
38 am__make_running_with_option = \
39 case $${target_option-} in \
40 ?) ;; \
41 *) echo "am__make_running_with_option: internal error: invalid" \
42 "target option '$${target_option-}' specified" >&2; \
43 exit 1;; \
44 esac; \
45 has_opt=no; \
46 sane_makeflags=$$MAKEFLAGS; \
47 if $(am__is_gnu_make); then \
48 sane_makeflags=$$MFLAGS; \
49 else \
50 case $$MAKEFLAGS in \
51 *\\[\ \ ]*) \
52 bs=\\; \
53 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
54 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
55 esac; \
56 fi; \
57 skip_next=no; \
58 strip_trailopt () \
59 { \
60 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
61 }; \
62 for flg in $$sane_makeflags; do \
63 test $$skip_next = yes && { skip_next=no; continue; }; \
64 case $$flg in \
65 *=*|--*) continue;; \
66 -*I) strip_trailopt 'I'; skip_next=yes;; \
67 -*I?*) strip_trailopt 'I';; \
68 -*O) strip_trailopt 'O'; skip_next=yes;; \
69 -*O?*) strip_trailopt 'O';; \
70 -*l) strip_trailopt 'l'; skip_next=yes;; \
71 -*l?*) strip_trailopt 'l';; \
72 -[dEDm]) skip_next=yes;; \
73 -[JT]) skip_next=yes;; \
74 esac; \
75 case $$flg in \
76 *$$target_option*) has_opt=yes; break;; \
77 esac; \
78 done; \
79 test $$has_opt = yes
80 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
81 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
82 pkgdatadir = $(datadir)/@PACKAGE@
83 pkgincludedir = $(includedir)/@PACKAGE@
84 pkglibdir = $(libdir)/@PACKAGE@
85 pkglibexecdir = $(libexecdir)/@PACKAGE@
86 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
87 install_sh_DATA = $(install_sh) -c -m 644
88 install_sh_PROGRAM = $(install_sh) -c
89 install_sh_SCRIPT = $(install_sh) -c
90 INSTALL_HEADER = $(INSTALL_DATA)
91 transform = $(program_transform_name)
92 NORMAL_INSTALL = :
93 PRE_INSTALL = :
94 POST_INSTALL = :
95 NORMAL_UNINSTALL = :
96 PRE_UNINSTALL = :
97 POST_UNINSTALL = :
98 build_triplet = @build@
99 host_triplet = @host@
100 subdir = .
101 DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \
102 $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
103 $(top_srcdir)/configure $(am__configure_deps) \
104 $(srcdir)/config.h.in $(srcdir)/ibus-input-pad.spec.in COPYING \
105 TODO compile config.guess config.sub install-sh missing \
106 ltmain.sh
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
109 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
110 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
111 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
112 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
113 $(ACLOCAL_M4)
114 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
115 configure.lineno config.status.lineno
116 mkinstalldirs = $(install_sh) -d
117 CONFIG_HEADER = config.h
118 CONFIG_CLEAN_FILES = ibus-input-pad.spec
119 CONFIG_CLEAN_VPATH_FILES =
120 AM_V_P = $(am__v_P_@AM_V@)
121 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
122 am__v_P_0 = false
123 am__v_P_1 = :
124 AM_V_GEN = $(am__v_GEN_@AM_V@)
125 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
126 am__v_GEN_0 = @echo " GEN " $@;
127 am__v_GEN_1 =
128 AM_V_at = $(am__v_at_@AM_V@)
129 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
130 am__v_at_0 = @
131 am__v_at_1 =
132 SOURCES =
133 DIST_SOURCES =
134 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
135 ctags-recursive dvi-recursive html-recursive info-recursive \
136 install-data-recursive install-dvi-recursive \
137 install-exec-recursive install-html-recursive \
138 install-info-recursive install-pdf-recursive \
139 install-ps-recursive install-recursive installcheck-recursive \
140 installdirs-recursive pdf-recursive ps-recursive \
141 tags-recursive uninstall-recursive
142 am__can_run_installinfo = \
143 case $$AM_UPDATE_INFO_DIR in \
144 n|no|NO) false;; \
145 *) (install-info --version) >/dev/null 2>&1;; \
146 esac
147 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
148 distclean-recursive maintainer-clean-recursive
149 am__recursive_targets = \
150 $(RECURSIVE_TARGETS) \
151 $(RECURSIVE_CLEAN_TARGETS) \
152 $(am__extra_recursive_targets)
153 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
154 cscope distdir dist dist-all distcheck
155 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
156 $(LISP)config.h.in
157 # Read a list of newline-separated strings from the standard input,
158 # and print each of them once, without duplicates. Input order is
159 # *not* preserved.
160 am__uniquify_input = $(AWK) '\
161 BEGIN { nonempty = 0; } \
162 { items[$$0] = 1; nonempty = 1; } \
163 END { if (nonempty) { for (i in items) print i; }; } \
164 '
165 # Make sure the list of sources is unique. This is necessary because,
166 # e.g., the same source file might be shared among _SOURCES variables
167 # for different programs/libraries.
168 am__define_uniq_tagged_files = \
169 list='$(am__tagged_files)'; \
170 unique=`for i in $$list; do \
171 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
172 done | $(am__uniquify_input)`
173 ETAGS = etags
174 CTAGS = ctags
175 CSCOPE = cscope
176 DIST_SUBDIRS = $(SUBDIRS)
177 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
178 distdir = $(PACKAGE)-$(VERSION)
179 top_distdir = $(distdir)
180 am__remove_distdir = \
181 if test -d "$(distdir)"; then \
182 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
183 && rm -rf "$(distdir)" \
184 || { sleep 5 && rm -rf "$(distdir)"; }; \
185 else :; fi
186 am__post_remove_distdir = $(am__remove_distdir)
187 am__relativize = \
188 dir0=`pwd`; \
189 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
190 sed_rest='s,^[^/]*/*,,'; \
191 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
192 sed_butlast='s,/*[^/]*$$,,'; \
193 while test -n "$$dir1"; do \
194 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
195 if test "$$first" != "."; then \
196 if test "$$first" = ".."; then \
197 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
198 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
199 else \
200 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
201 if test "$$first2" = "$$first"; then \
202 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
203 else \
204 dir2="../$$dir2"; \
205 fi; \
206 dir0="$$dir0"/"$$first"; \
207 fi; \
208 fi; \
209 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
210 done; \
211 reldir="$$dir2"
212 DIST_ARCHIVES = $(distdir).tar.gz
213 GZIP_ENV = --best
214 DIST_TARGETS = dist-gzip
215 distuninstallcheck_listfiles = find . -type f -print
216 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
217 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
218 distcleancheck_listfiles = find . -type f -print
219 ACLOCAL = @ACLOCAL@
220 ALL_LINGUAS = @ALL_LINGUAS@
221 AMTAR = @AMTAR@
222 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
223 AR = @AR@
224 AUTOCONF = @AUTOCONF@
225 AUTOHEADER = @AUTOHEADER@
226 AUTOMAKE = @AUTOMAKE@
227 AWK = @AWK@
228 CATALOGS = @CATALOGS@
229 CATOBJEXT = @CATOBJEXT@
230 CC = @CC@
231 CCDEPMODE = @CCDEPMODE@
232 CFLAGS = @CFLAGS@
233 CPP = @CPP@
234 CPPFLAGS = @CPPFLAGS@
235 CXX = @CXX@
236 CXXCPP = @CXXCPP@
237 CXXDEPMODE = @CXXDEPMODE@
238 CXXFLAGS = @CXXFLAGS@
239 CYGPATH_W = @CYGPATH_W@
240 DATADIRNAME = @DATADIRNAME@
241 DATE_DISPLAY = @DATE_DISPLAY@
242 DEFS = @DEFS@
243 DEPDIR = @DEPDIR@
244 DLLTOOL = @DLLTOOL@
245 DSYMUTIL = @DSYMUTIL@
246 DUMPBIN = @DUMPBIN@
247 ECHO_C = @ECHO_C@
248 ECHO_N = @ECHO_N@
249 ECHO_T = @ECHO_T@
250 EGREP = @EGREP@
251 EXEEXT = @EXEEXT@
252 FGREP = @FGREP@
253 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
254 GLIB2_CFLAGS = @GLIB2_CFLAGS@
255 GLIB2_LIBS = @GLIB2_LIBS@
256 GLIB_CFLAGS = @GLIB_CFLAGS@
257 GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
258 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
259 GLIB_LIBS = @GLIB_LIBS@
260 GLIB_MKENUMS = @GLIB_MKENUMS@
261 GMOFILES = @GMOFILES@
262 GMSGFMT = @GMSGFMT@
263 GOBJECT_QUERY = @GOBJECT_QUERY@
264 GREP = @GREP@
265 GTK2_CFLAGS = @GTK2_CFLAGS@
266 GTK2_LIBS = @GTK2_LIBS@
267 GTK3_CFLAGS = @GTK3_CFLAGS@
268 GTK3_LIBS = @GTK3_LIBS@
269 IBUS_CFLAGS = @IBUS_CFLAGS@
270 IBUS_LIBS = @IBUS_LIBS@
271 INPUT_PAD_CFLAGS = @INPUT_PAD_CFLAGS@
272 INPUT_PAD_LIBS = @INPUT_PAD_LIBS@
273 INSTALL = @INSTALL@
274 INSTALL_DATA = @INSTALL_DATA@
275 INSTALL_PROGRAM = @INSTALL_PROGRAM@
276 INSTALL_SCRIPT = @INSTALL_SCRIPT@
277 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
278 INSTOBJEXT = @INSTOBJEXT@
279 INTLLIBS = @INTLLIBS@
280 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
281 INTLTOOL_MERGE = @INTLTOOL_MERGE@
282 INTLTOOL_PERL = @INTLTOOL_PERL@
283 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
284 INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
285 INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
286 INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
287 INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
288 LD = @LD@
289 LDFLAGS = @LDFLAGS@
290 LIBOBJS = @LIBOBJS@
291 LIBS = @LIBS@
292 LIBTOOL = @LIBTOOL@
293 LIPO = @LIPO@
294 LN_S = @LN_S@
295 LTLIBOBJS = @LTLIBOBJS@
296 MAINT = @MAINT@
297 MAKEINFO = @MAKEINFO@
298 MANIFEST_TOOL = @MANIFEST_TOOL@
299 MKDIR_P = @MKDIR_P@
300 MKINSTALLDIRS = @MKINSTALLDIRS@
301 MSGFMT = @MSGFMT@
302 MSGFMT_OPTS = @MSGFMT_OPTS@
303 MSGMERGE = @MSGMERGE@
304 NM = @NM@
305 NMEDIT = @NMEDIT@
306 OBJDUMP = @OBJDUMP@
307 OBJEXT = @OBJEXT@
308 OTOOL = @OTOOL@
309 OTOOL64 = @OTOOL64@
310 PACKAGE = @PACKAGE@
311 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
312 PACKAGE_NAME = @PACKAGE_NAME@
313 PACKAGE_STRING = @PACKAGE_STRING@
314 PACKAGE_TARNAME = @PACKAGE_TARNAME@
315 PACKAGE_URL = @PACKAGE_URL@
316 PACKAGE_VERSION = @PACKAGE_VERSION@
317 PATH_SEPARATOR = @PATH_SEPARATOR@
318 PKG_CONFIG = @PKG_CONFIG@
319 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
320 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
321 POFILES = @POFILES@
322 POSUB = @POSUB@
323 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
324 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
325 RANLIB = @RANLIB@
326 SED = @SED@
327 SET_MAKE = @SET_MAKE@
328 SHELL = @SHELL@
329 STRIP = @STRIP@
330 USE_NLS = @USE_NLS@
331 VERSION = @VERSION@
332 XGETTEXT = @XGETTEXT@
333 abs_builddir = @abs_builddir@
334 abs_srcdir = @abs_srcdir@
335 abs_top_builddir = @abs_top_builddir@
336 abs_top_srcdir = @abs_top_srcdir@
337 ac_ct_AR = @ac_ct_AR@
338 ac_ct_CC = @ac_ct_CC@
339 ac_ct_CXX = @ac_ct_CXX@
340 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
341 am__include = @am__include@
342 am__leading_dot = @am__leading_dot@
343 am__quote = @am__quote@
344 am__tar = @am__tar@
345 am__untar = @am__untar@
346 bindir = @bindir@
347 build = @build@
348 build_alias = @build_alias@
349 build_cpu = @build_cpu@
350 build_os = @build_os@
351 build_vendor = @build_vendor@
352 builddir = @builddir@
353 datadir = @datadir@
354 datarootdir = @datarootdir@
355 docdir = @docdir@
356 dvidir = @dvidir@
357 exec_prefix = @exec_prefix@
358 host = @host@
359 host_alias = @host_alias@
360 host_cpu = @host_cpu@
361 host_os = @host_os@
362 host_vendor = @host_vendor@
363 htmldir = @htmldir@
364 includedir = @includedir@
365 infodir = @infodir@
366 install_sh = @install_sh@
367 intltool__v_merge_options_ = @intltool__v_merge_options_@
368 intltool__v_merge_options_0 = @intltool__v_merge_options_0@
369 libdir = @libdir@
370 libexecdir = @libexecdir@
371 libinput_pad_VERSION = @libinput_pad_VERSION@
372 localedir = @localedir@
373 localstatedir = @localstatedir@
374 mandir = @mandir@
375 mkdir_p = @mkdir_p@
376 oldincludedir = @oldincludedir@
377 pdfdir = @pdfdir@
378 prefix = @prefix@
379 program_transform_name = @program_transform_name@
380 psdir = @psdir@
381 sbindir = @sbindir@
382 sharedstatedir = @sharedstatedir@
383 srcdir = @srcdir@
384 sysconfdir = @sysconfdir@
385 target_alias = @target_alias@
386 top_build_prefix = @top_build_prefix@
387 top_builddir = @top_builddir@
388 top_srcdir = @top_srcdir@
389 SUBDIRS = \
390 po \
391 setup \
392 engine \
393 $(NULL)
394
395 EXTRA_DIST = \
396 ibus-input-pad.spec.in \
397 $(NULL)
398
399 noinst_DIST = \
400 $(NULL)
401
402 all: config.h
403 $(MAKE) $(AM_MAKEFLAGS) all-recursive
404
405 .SUFFIXES:
406 am--refresh: Makefile
407 @:
408 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
409 @for dep in $?; do \
410 case '$(am__configure_deps)' in \
411 *$$dep*) \
412 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
413 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
414 && exit 0; \
415 exit 1;; \
416 esac; \
417 done; \
418 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
419 $(am__cd) $(top_srcdir) && \
420 $(AUTOMAKE) --gnu Makefile
421 .PRECIOUS: Makefile
422 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
423 @case '$?' in \
424 *config.status*) \
425 echo ' $(SHELL) ./config.status'; \
426 $(SHELL) ./config.status;; \
427 *) \
428 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
429 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
430 esac;
431
432 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
433 $(SHELL) ./config.status --recheck
434
435 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
436 $(am__cd) $(srcdir) && $(AUTOCONF)
437 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
438 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
439 $(am__aclocal_m4_deps):
440
441 config.h: stamp-h1
442 @if test ! -f $@; then rm -f stamp-h1; else :; fi
443 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
444
445 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
446 @rm -f stamp-h1
447 cd $(top_builddir) && $(SHELL) ./config.status config.h
448 $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
449 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
450 rm -f stamp-h1
451 touch $@
452
453 distclean-hdr:
454 -rm -f config.h stamp-h1
455 ibus-input-pad.spec: $(top_builddir)/config.status $(srcdir)/ibus-input-pad.spec.in
456 cd $(top_builddir) && $(SHELL) ./config.status $@
457
458 mostlyclean-libtool:
459 -rm -f *.lo
460
461 clean-libtool:
462 -rm -rf .libs _libs
463
464 distclean-libtool:
465 -rm -f libtool config.lt
466
467 # This directory's subdirectories are mostly independent; you can cd
468 # into them and run 'make' without going through this Makefile.
469 # To change the values of 'make' variables: instead of editing Makefiles,
470 # (1) if the variable is set in 'config.status', edit 'config.status'
471 # (which will cause the Makefiles to be regenerated when you run 'make');
472 # (2) otherwise, pass the desired values on the 'make' command line.
473 $(am__recursive_targets):
474 @fail=; \
475 if $(am__make_keepgoing); then \
476 failcom='fail=yes'; \
477 else \
478 failcom='exit 1'; \
479 fi; \
480 dot_seen=no; \
481 target=`echo $@ | sed s/-recursive//`; \
482 case "$@" in \
483 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
484 *) list='$(SUBDIRS)' ;; \
485 esac; \
486 for subdir in $$list; do \
487 echo "Making $$target in $$subdir"; \
488 if test "$$subdir" = "."; then \
489 dot_seen=yes; \
490 local_target="$$target-am"; \
491 else \
492 local_target="$$target"; \
493 fi; \
494 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
495 || eval $$failcom; \
496 done; \
497 if test "$$dot_seen" = "no"; then \
498 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
499 fi; test -z "$$fail"
500
501 ID: $(am__tagged_files)
502 $(am__define_uniq_tagged_files); mkid -fID $$unique
503 tags: tags-recursive
504 TAGS: tags
505
506 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
507 set x; \
508 here=`pwd`; \
509 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
510 include_option=--etags-include; \
511 empty_fix=.; \
512 else \
513 include_option=--include; \
514 empty_fix=; \
515 fi; \
516 list='$(SUBDIRS)'; for subdir in $$list; do \
517 if test "$$subdir" = .; then :; else \
518 test ! -f $$subdir/TAGS || \
519 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
520 fi; \
521 done; \
522 $(am__define_uniq_tagged_files); \
523 shift; \
524 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
525 test -n "$$unique" || unique=$$empty_fix; \
526 if test $$# -gt 0; then \
527 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
528 "$$@" $$unique; \
529 else \
530 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
531 $$unique; \
532 fi; \
533 fi
534 ctags: ctags-recursive
535
536 CTAGS: ctags
537 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
538 $(am__define_uniq_tagged_files); \
539 test -z "$(CTAGS_ARGS)$$unique" \
540 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
541 $$unique
542
543 GTAGS:
544 here=`$(am__cd) $(top_builddir) && pwd` \
545 && $(am__cd) $(top_srcdir) \
546 && gtags -i $(GTAGS_ARGS) "$$here"
547 cscope: cscope.files
548 test ! -s cscope.files \
549 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
550 clean-cscope:
551 -rm -f cscope.files
552 cscope.files: clean-cscope cscopelist
553 cscopelist: cscopelist-recursive
554
555 cscopelist-am: $(am__tagged_files)
556 list='$(am__tagged_files)'; \
557 case "$(srcdir)" in \
558 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
559 *) sdir=$(subdir)/$(srcdir) ;; \
560 esac; \
561 for i in $$list; do \
562 if test -f "$$i"; then \
563 echo "$(subdir)/$$i"; \
564 else \
565 echo "$$sdir/$$i"; \
566 fi; \
567 done >> $(top_builddir)/cscope.files
568
569 distclean-tags:
570 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
571 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
572
573 distdir: $(DISTFILES)
574 $(am__remove_distdir)
575 test -d "$(distdir)" || mkdir "$(distdir)"
576 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
577 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
578 list='$(DISTFILES)'; \
579 dist_files=`for file in $$list; do echo $$file; done | \
580 sed -e "s|^$$srcdirstrip/||;t" \
581 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
582 case $$dist_files in \
583 */*) $(MKDIR_P) `echo "$$dist_files" | \
584 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
585 sort -u` ;; \
586 esac; \
587 for file in $$dist_files; do \
588 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
589 if test -d $$d/$$file; then \
590 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
591 if test -d "$(distdir)/$$file"; then \
592 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
593 fi; \
594 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
595 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
596 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
597 fi; \
598 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
599 else \
600 test -f "$(distdir)/$$file" \
601 || cp -p $$d/$$file "$(distdir)/$$file" \
602 || exit 1; \
603 fi; \
604 done
605 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
606 if test "$$subdir" = .; then :; else \
607 $(am__make_dryrun) \
608 || test -d "$(distdir)/$$subdir" \
609 || $(MKDIR_P) "$(distdir)/$$subdir" \
610 || exit 1; \
611 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
612 $(am__relativize); \
613 new_distdir=$$reldir; \
614 dir1=$$subdir; dir2="$(top_distdir)"; \
615 $(am__relativize); \
616 new_top_distdir=$$reldir; \
617 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
618 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
619 ($(am__cd) $$subdir && \
620 $(MAKE) $(AM_MAKEFLAGS) \
621 top_distdir="$$new_top_distdir" \
622 distdir="$$new_distdir" \
623 am__remove_distdir=: \
624 am__skip_length_check=: \
625 am__skip_mode_fix=: \
626 distdir) \
627 || exit 1; \
628 fi; \
629 done
630 $(MAKE) $(AM_MAKEFLAGS) \
631 top_distdir="$(top_distdir)" distdir="$(distdir)" \
632 dist-hook
633 -test -n "$(am__skip_mode_fix)" \
634 || find "$(distdir)" -type d ! -perm -755 \
635 -exec chmod u+rwx,go+rx {} \; -o \
636 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
637 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
638 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
639 || chmod -R a+r "$(distdir)"
640 dist-gzip: distdir
641 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
642 $(am__post_remove_distdir)
643
644 dist-bzip2: distdir
645 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
646 $(am__post_remove_distdir)
647
648 dist-lzip: distdir
649 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
650 $(am__post_remove_distdir)
651
652 dist-xz: distdir
653 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
654 $(am__post_remove_distdir)
655
656 dist-tarZ: distdir
657 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
658 $(am__post_remove_distdir)
659
660 dist-shar: distdir
661 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
662 $(am__post_remove_distdir)
663
664 dist-zip: distdir
665 -rm -f $(distdir).zip
666 zip -rq $(distdir).zip $(distdir)
667 $(am__post_remove_distdir)
668
669 dist dist-all:
670 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
671 $(am__post_remove_distdir)
672
673 # This target untars the dist file and tries a VPATH configuration. Then
674 # it guarantees that the distribution is self-contained by making another
675 # tarfile.
676 distcheck: dist
677 case '$(DIST_ARCHIVES)' in \
678 *.tar.gz*) \
679 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
680 *.tar.bz2*) \
681 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
682 *.tar.lz*) \
683 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
684 *.tar.xz*) \
685 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
686 *.tar.Z*) \
687 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
688 *.shar.gz*) \
689 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
690 *.zip*) \
691 unzip $(distdir).zip ;;\
692 esac
693 chmod -R a-w $(distdir)
694 chmod u+w $(distdir)
695 mkdir $(distdir)/_build $(distdir)/_inst
696 chmod a-w $(distdir)
697 test -d $(distdir)/_build || exit 0; \
698 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
699 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
700 && am__cwd=`pwd` \
701 && $(am__cd) $(distdir)/_build \
702 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
703 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
704 $(DISTCHECK_CONFIGURE_FLAGS) \
705 && $(MAKE) $(AM_MAKEFLAGS) \
706 && $(MAKE) $(AM_MAKEFLAGS) dvi \
707 && $(MAKE) $(AM_MAKEFLAGS) check \
708 && $(MAKE) $(AM_MAKEFLAGS) install \
709 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
710 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
711 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
712 distuninstallcheck \
713 && chmod -R a-w "$$dc_install_base" \
714 && ({ \
715 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
716 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
717 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
718 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
719 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
720 } || { rm -rf "$$dc_destdir"; exit 1; }) \
721 && rm -rf "$$dc_destdir" \
722 && $(MAKE) $(AM_MAKEFLAGS) dist \
723 && rm -rf $(DIST_ARCHIVES) \
724 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
725 && cd "$$am__cwd" \
726 || exit 1
727 $(am__post_remove_distdir)
728 @(echo "$(distdir) archives ready for distribution: "; \
729 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
730 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
731 distuninstallcheck:
732 @test -n '$(distuninstallcheck_dir)' || { \
733 echo 'ERROR: trying to run $@ with an empty' \
734 '$$(distuninstallcheck_dir)' >&2; \
735 exit 1; \
736 }; \
737 $(am__cd) '$(distuninstallcheck_dir)' || { \
738 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
739 exit 1; \
740 }; \
741 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
742 || { echo "ERROR: files left after uninstall:" ; \
743 if test -n "$(DESTDIR)"; then \
744 echo " (check DESTDIR support)"; \
745 fi ; \
746 $(distuninstallcheck_listfiles) ; \
747 exit 1; } >&2
748 distcleancheck: distclean
749 @if test '$(srcdir)' = . ; then \
750 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
751 exit 1 ; \
752 fi
753 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
754 || { echo "ERROR: files left in build directory after distclean:" ; \
755 $(distcleancheck_listfiles) ; \
756 exit 1; } >&2
757 check-am: all-am
758 check: check-recursive
759 all-am: Makefile config.h
760 installdirs: installdirs-recursive
761 installdirs-am:
762 install: install-recursive
763 install-exec: install-exec-recursive
764 install-data: install-data-recursive
765 uninstall: uninstall-recursive
766
767 install-am: all-am
768 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
769
770 installcheck: installcheck-recursive
771 install-strip:
772 if test -z '$(STRIP)'; then \
773 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
774 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
775 install; \
776 else \
777 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
778 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
779 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
780 fi
781 mostlyclean-generic:
782
783 clean-generic:
784
785 distclean-generic:
786 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
787 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
788
789 maintainer-clean-generic:
790 @echo "This command is intended for maintainers to use"
791 @echo "it deletes files that may require special tools to rebuild."
792 clean: clean-recursive
793
794 clean-am: clean-generic clean-libtool clean-local mostlyclean-am
795
796 distclean: distclean-recursive
797 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
798 -rm -f Makefile
799 distclean-am: clean-am distclean-generic distclean-hdr \
800 distclean-libtool distclean-tags
801
802 dvi: dvi-recursive
803
804 dvi-am:
805
806 html: html-recursive
807
808 html-am:
809
810 info: info-recursive
811
812 info-am:
813
814 install-data-am:
815
816 install-dvi: install-dvi-recursive
817
818 install-dvi-am:
819
820 install-exec-am:
821
822 install-html: install-html-recursive
823
824 install-html-am:
825
826 install-info: install-info-recursive
827
828 install-info-am:
829
830 install-man:
831
832 install-pdf: install-pdf-recursive
833
834 install-pdf-am:
835
836 install-ps: install-ps-recursive
837
838 install-ps-am:
839
840 installcheck-am:
841
842 maintainer-clean: maintainer-clean-recursive
843 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
844 -rm -rf $(top_srcdir)/autom4te.cache
845 -rm -f Makefile
846 maintainer-clean-am: distclean-am maintainer-clean-generic
847
848 mostlyclean: mostlyclean-recursive
849
850 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
851
852 pdf: pdf-recursive
853
854 pdf-am:
855
856 ps: ps-recursive
857
858 ps-am:
859
860 uninstall-am:
861
862 .MAKE: $(am__recursive_targets) all install-am install-strip
863
864 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
865 am--refresh check check-am clean clean-cscope clean-generic \
866 clean-libtool clean-local cscope cscopelist-am ctags ctags-am \
867 dist dist-all dist-bzip2 dist-gzip dist-hook dist-lzip \
868 dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
869 distclean-generic distclean-hdr distclean-libtool \
870 distclean-tags distcleancheck distdir distuninstallcheck dvi \
871 dvi-am html html-am info info-am install install-am \
872 install-data install-data-am install-dvi install-dvi-am \
873 install-exec install-exec-am install-html install-html-am \
874 install-info install-info-am install-man install-pdf \
875 install-pdf-am install-ps install-ps-am install-strip \
876 installcheck installcheck-am installdirs installdirs-am \
877 maintainer-clean maintainer-clean-generic mostlyclean \
878 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
879 tags tags-am uninstall uninstall-am
880
881
882 dist-hook:
883 if test -d .git ; then \
884 git log --name-status --date=iso > $(distdir)/ChangeLog ; \
885 fi
886
887 rpm: dist @PACKAGE_NAME@.spec
888 rpmbuild -bb \
889 --define "_sourcedir `pwd`" \
890 --define "_builddir `pwd`" \
891 --define "_srcrpmdir `pwd`" \
892 --define "_rpmdir `pwd`" \
893 --define "_specdir `pwd`" \
894 @PACKAGE_NAME@.spec
895
896 srpm: dist @PACKAGE_NAME@.spec
897 rpmbuild -bs \
898 --define "_sourcedir `pwd`" \
899 --define "_builddir `pwd`" \
900 --define "_srcrpmdir `pwd`" \
901 --define "_rpmdir `pwd`" \
902 --define "_specdir `pwd`" \
903 @PACKAGE_NAME@.spec
904
905 clean-rpm:
906 $(RM) -r "`uname -i`"
907
908 clean-local: clean-rpm
909
910 # Tell versions [3.59,3.63) of GNU make to not export all variables.
911 # Otherwise a system limit (for SysV at least) may be exceeded.
912 .NOEXPORT:
+0
-2012
aclocal.m4 less more
0 # generated automatically by aclocal 1.13.4 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22 # Configure paths for GLIB
23 # Owen Taylor 1997-2001
24
25 dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
26 dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject,
27 dnl gthread, or gio is specified in MODULES, pass to pkg-config
28 dnl
29 AC_DEFUN([AM_PATH_GLIB_2_0],
30 [dnl
31 dnl Get the cflags and libraries from pkg-config
32 dnl
33 AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program],
34 , enable_glibtest=yes)
35
36 pkg_config_args=glib-2.0
37 for module in . $4
38 do
39 case "$module" in
40 gmodule)
41 pkg_config_args="$pkg_config_args gmodule-2.0"
42 ;;
43 gmodule-no-export)
44 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
45 ;;
46 gobject)
47 pkg_config_args="$pkg_config_args gobject-2.0"
48 ;;
49 gthread)
50 pkg_config_args="$pkg_config_args gthread-2.0"
51 ;;
52 gio*)
53 pkg_config_args="$pkg_config_args $module-2.0"
54 ;;
55 esac
56 done
57
58 PKG_PROG_PKG_CONFIG([0.16])
59
60 no_glib=""
61
62 if test "x$PKG_CONFIG" = x ; then
63 no_glib=yes
64 PKG_CONFIG=no
65 fi
66
67 min_glib_version=ifelse([$1], ,2.0.0,$1)
68 AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
69
70 if test x$PKG_CONFIG != xno ; then
71 ## don't try to run the test against uninstalled libtool libs
72 if $PKG_CONFIG --uninstalled $pkg_config_args; then
73 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
74 enable_glibtest=no
75 fi
76
77 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
78 :
79 else
80 no_glib=yes
81 fi
82 fi
83
84 if test x"$no_glib" = x ; then
85 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
86 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
87 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
88 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
89
90 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
91 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
92 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
93 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
94 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
95 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
96 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
97 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
98 if test "x$enable_glibtest" = "xyes" ; then
99 ac_save_CFLAGS="$CFLAGS"
100 ac_save_LIBS="$LIBS"
101 CFLAGS="$CFLAGS $GLIB_CFLAGS"
102 LIBS="$GLIB_LIBS $LIBS"
103 dnl
104 dnl Now check if the installed GLIB is sufficiently new. (Also sanity
105 dnl checks the results of pkg-config to some extent)
106 dnl
107 rm -f conf.glibtest
108 AC_TRY_RUN([
109 #include <glib.h>
110 #include <stdio.h>
111 #include <stdlib.h>
112
113 int
114 main ()
115 {
116 unsigned int major, minor, micro;
117 char *tmp_version;
118
119 fclose (fopen ("conf.glibtest", "w"));
120
121 /* HP/UX 9 (%@#!) writes to sscanf strings */
122 tmp_version = g_strdup("$min_glib_version");
123 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
124 printf("%s, bad version string\n", "$min_glib_version");
125 exit(1);
126 }
127
128 if ((glib_major_version != $glib_config_major_version) ||
129 (glib_minor_version != $glib_config_minor_version) ||
130 (glib_micro_version != $glib_config_micro_version))
131 {
132 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
133 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
134 glib_major_version, glib_minor_version, glib_micro_version);
135 printf ("*** was found! If pkg-config was correct, then it is best\n");
136 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
137 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
138 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
139 printf("*** required on your system.\n");
140 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
141 printf("*** to point to the correct configuration files\n");
142 }
143 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
144 (glib_minor_version != GLIB_MINOR_VERSION) ||
145 (glib_micro_version != GLIB_MICRO_VERSION))
146 {
147 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
148 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
149 printf("*** library (version %d.%d.%d)\n",
150 glib_major_version, glib_minor_version, glib_micro_version);
151 }
152 else
153 {
154 if ((glib_major_version > major) ||
155 ((glib_major_version == major) && (glib_minor_version > minor)) ||
156 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
157 {
158 return 0;
159 }
160 else
161 {
162 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
163 glib_major_version, glib_minor_version, glib_micro_version);
164 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
165 major, minor, micro);
166 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
167 printf("***\n");
168 printf("*** If you have already installed a sufficiently new version, this error\n");
169 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
170 printf("*** being found. The easiest way to fix this is to remove the old version\n");
171 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
172 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
173 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
174 printf("*** so that the correct libraries are found at run-time))\n");
175 }
176 }
177 return 1;
178 }
179 ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
180 CFLAGS="$ac_save_CFLAGS"
181 LIBS="$ac_save_LIBS"
182 fi
183 fi
184 if test "x$no_glib" = x ; then
185 AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
186 ifelse([$2], , :, [$2])
187 else
188 AC_MSG_RESULT(no)
189 if test "$PKG_CONFIG" = "no" ; then
190 echo "*** A new enough version of pkg-config was not found."
191 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
192 else
193 if test -f conf.glibtest ; then
194 :
195 else
196 echo "*** Could not run GLIB test program, checking why..."
197 ac_save_CFLAGS="$CFLAGS"
198 ac_save_LIBS="$LIBS"
199 CFLAGS="$CFLAGS $GLIB_CFLAGS"
200 LIBS="$LIBS $GLIB_LIBS"
201 AC_TRY_LINK([
202 #include <glib.h>
203 #include <stdio.h>
204 ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
205 [ echo "*** The test program compiled, but did not run. This usually means"
206 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
207 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
208 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
209 echo "*** to the installed location Also, make sure you have run ldconfig if that"
210 echo "*** is required on your system"
211 echo "***"
212 echo "*** If you have an old version installed, it is best to remove it, although"
213 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
214 [ echo "*** The test program failed to compile or link. See the file config.log for the"
215 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
216 CFLAGS="$ac_save_CFLAGS"
217 LIBS="$ac_save_LIBS"
218 fi
219 fi
220 GLIB_CFLAGS=""
221 GLIB_LIBS=""
222 GLIB_GENMARSHAL=""
223 GOBJECT_QUERY=""
224 GLIB_MKENUMS=""
225 GLIB_COMPILE_RESOURCES=""
226 ifelse([$3], , :, [$3])
227 fi
228 AC_SUBST(GLIB_CFLAGS)
229 AC_SUBST(GLIB_LIBS)
230 AC_SUBST(GLIB_GENMARSHAL)
231 AC_SUBST(GOBJECT_QUERY)
232 AC_SUBST(GLIB_MKENUMS)
233 AC_SUBST(GLIB_COMPILE_RESOURCES)
234 rm -f conf.glibtest
235 ])
236
237 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
238 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
239 #
240 # This file is free software, distributed under the terms of the GNU
241 # General Public License. As a special exception to the GNU General
242 # Public License, this file may be distributed as part of a program
243 # that contains a configuration script generated by Autoconf, under
244 # the same distribution terms as the rest of that program.
245 #
246 # This file can be copied and used freely without restrictions. It can
247 # be used in projects which are not available under the GNU Public License
248 # but which still want to provide support for the GNU gettext functionality.
249 #
250 # Macro to add for using GNU gettext.
251 # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
252 #
253 # Modified to never use included libintl.
254 # Owen Taylor <otaylor@redhat.com>, 12/15/1998
255 #
256 # Major rework to remove unused code
257 # Owen Taylor <otaylor@redhat.com>, 12/11/2002
258 #
259 # Added better handling of ALL_LINGUAS from GNU gettext version
260 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
261 #
262 # Modified to require ngettext
263 # Matthias Clasen <mclasen@redhat.com> 08/06/2004
264 #
265 # We need this here as well, since someone might use autoconf-2.5x
266 # to configure GLib then an older version to configure a package
267 # using AM_GLIB_GNU_GETTEXT
268 AC_PREREQ(2.53)
269
270 dnl
271 dnl We go to great lengths to make sure that aclocal won't
272 dnl try to pull in the installed version of these macros
273 dnl when running aclocal in the glib directory.
274 dnl
275 m4_copy([AC_DEFUN],[glib_DEFUN])
276 m4_copy([AC_REQUIRE],[glib_REQUIRE])
277 dnl
278 dnl At the end, if we're not within glib, we'll define the public
279 dnl definitions in terms of our private definitions.
280 dnl
281
282 # GLIB_LC_MESSAGES
283 #--------------------
284 glib_DEFUN([GLIB_LC_MESSAGES],
285 [AC_CHECK_HEADERS([locale.h])
286 if test $ac_cv_header_locale_h = yes; then
287 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
288 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
289 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
290 if test $am_cv_val_LC_MESSAGES = yes; then
291 AC_DEFINE(HAVE_LC_MESSAGES, 1,
292 [Define if your <locale.h> file defines LC_MESSAGES.])
293 fi
294 fi])
295
296 # GLIB_PATH_PROG_WITH_TEST
297 #----------------------------
298 dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
299 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
300 glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
301 [# Extract the first word of "$2", so it can be a program name with args.
302 set dummy $2; ac_word=[$]2
303 AC_MSG_CHECKING([for $ac_word])
304 AC_CACHE_VAL(ac_cv_path_$1,
305 [case "[$]$1" in
306 /*)
307 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
308 ;;
309 *)
310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
311 for ac_dir in ifelse([$5], , $PATH, [$5]); do
312 test -z "$ac_dir" && ac_dir=.
313 if test -f $ac_dir/$ac_word; then
314 if [$3]; then
315 ac_cv_path_$1="$ac_dir/$ac_word"
316 break
317 fi
318 fi
319 done
320 IFS="$ac_save_ifs"
321 dnl If no 4th arg is given, leave the cache variable unset,
322 dnl so AC_PATH_PROGS will keep looking.
323 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
324 ])dnl
325 ;;
326 esac])dnl
327 $1="$ac_cv_path_$1"
328 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
329 AC_MSG_RESULT([$]$1)
330 else
331 AC_MSG_RESULT(no)
332 fi
333 AC_SUBST($1)dnl
334 ])
335
336 # GLIB_WITH_NLS
337 #-----------------
338 glib_DEFUN([GLIB_WITH_NLS],
339 dnl NLS is obligatory
340 [USE_NLS=yes
341 AC_SUBST(USE_NLS)
342
343 gt_cv_have_gettext=no
344
345 CATOBJEXT=NONE
346 XGETTEXT=:
347 INTLLIBS=
348
349 AC_CHECK_HEADER(libintl.h,
350 [gt_cv_func_dgettext_libintl="no"
351 libintl_extra_libs=""
352
353 #
354 # First check in libc
355 #
356 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
357 [AC_TRY_LINK([
358 #include <libintl.h>
359 ],
360 [return !ngettext ("","", 1)],
361 gt_cv_func_ngettext_libc=yes,
362 gt_cv_func_ngettext_libc=no)
363 ])
364
365 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
366 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
367 [AC_TRY_LINK([
368 #include <libintl.h>
369 ],
370 [return !dgettext ("","")],
371 gt_cv_func_dgettext_libc=yes,
372 gt_cv_func_dgettext_libc=no)
373 ])
374 fi
375
376 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
377 AC_CHECK_FUNCS(bind_textdomain_codeset)
378 fi
379
380 #
381 # If we don't have everything we want, check in libintl
382 #
383 if test "$gt_cv_func_dgettext_libc" != "yes" \
384 || test "$gt_cv_func_ngettext_libc" != "yes" \
385 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
386
387 AC_CHECK_LIB(intl, bindtextdomain,
388 [AC_CHECK_LIB(intl, ngettext,
389 [AC_CHECK_LIB(intl, dgettext,
390 gt_cv_func_dgettext_libintl=yes)])])
391
392 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
393 AC_MSG_CHECKING([if -liconv is needed to use gettext])
394 AC_MSG_RESULT([])
395 AC_CHECK_LIB(intl, ngettext,
396 [AC_CHECK_LIB(intl, dcgettext,
397 [gt_cv_func_dgettext_libintl=yes
398 libintl_extra_libs=-liconv],
399 :,-liconv)],
400 :,-liconv)
401 fi
402
403 #
404 # If we found libintl, then check in it for bind_textdomain_codeset();
405 # we'll prefer libc if neither have bind_textdomain_codeset(),
406 # and both have dgettext and ngettext
407 #
408 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
409 glib_save_LIBS="$LIBS"
410 LIBS="$LIBS -lintl $libintl_extra_libs"
411 unset ac_cv_func_bind_textdomain_codeset
412 AC_CHECK_FUNCS(bind_textdomain_codeset)
413 LIBS="$glib_save_LIBS"
414
415 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
416 gt_cv_func_dgettext_libc=no
417 else
418 if test "$gt_cv_func_dgettext_libc" = "yes" \
419 && test "$gt_cv_func_ngettext_libc" = "yes"; then
420 gt_cv_func_dgettext_libintl=no
421 fi
422 fi
423 fi
424 fi
425
426 if test "$gt_cv_func_dgettext_libc" = "yes" \
427 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
428 gt_cv_have_gettext=yes
429 fi
430
431 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
432 INTLLIBS="-lintl $libintl_extra_libs"
433 fi
434
435 if test "$gt_cv_have_gettext" = "yes"; then
436 AC_DEFINE(HAVE_GETTEXT,1,
437 [Define if the GNU gettext() function is already present or preinstalled.])
438 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
439 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
440 if test "$MSGFMT" != "no"; then
441 glib_save_LIBS="$LIBS"
442 LIBS="$LIBS $INTLLIBS"
443 AC_CHECK_FUNCS(dcgettext)
444 MSGFMT_OPTS=
445 AC_MSG_CHECKING([if msgfmt accepts -c])
446 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
447 msgid ""
448 msgstr ""
449 "Content-Type: text/plain; charset=UTF-8\n"
450 "Project-Id-Version: test 1.0\n"
451 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
452 "Last-Translator: test <foo@bar.xx>\n"
453 "Language-Team: C <LL@li.org>\n"
454 "MIME-Version: 1.0\n"
455 "Content-Transfer-Encoding: 8bit\n"
456 ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
457 AC_SUBST(MSGFMT_OPTS)
458 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
459 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
460 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
461 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
462 return _nl_msg_cat_cntr],
463 [CATOBJEXT=.gmo
464 DATADIRNAME=share],
465 [case $host in
466 *-*-solaris*)
467 dnl On Solaris, if bind_textdomain_codeset is in libc,
468 dnl GNU format message catalog is always supported,
469 dnl since both are added to the libc all together.
470 dnl Hence, we'd like to go with DATADIRNAME=share and
471 dnl and CATOBJEXT=.gmo in this case.
472 AC_CHECK_FUNC(bind_textdomain_codeset,
473 [CATOBJEXT=.gmo
474 DATADIRNAME=share],
475 [CATOBJEXT=.mo
476 DATADIRNAME=lib])
477 ;;
478 *-*-openbsd*)
479 CATOBJEXT=.mo
480 DATADIRNAME=share
481 ;;
482 *)
483 CATOBJEXT=.mo
484 DATADIRNAME=lib
485 ;;
486 esac])
487 LIBS="$glib_save_LIBS"
488 INSTOBJEXT=.mo
489 else
490 gt_cv_have_gettext=no
491 fi
492 fi
493 ])
494
495 if test "$gt_cv_have_gettext" = "yes" ; then
496 AC_DEFINE(ENABLE_NLS, 1,
497 [always defined to indicate that i18n is enabled])
498 fi
499
500 dnl Test whether we really found GNU xgettext.
501 if test "$XGETTEXT" != ":"; then
502 dnl If it is not GNU xgettext we define it as : so that the
503 dnl Makefiles still can work.
504 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
505 : ;
506 else
507 AC_MSG_RESULT(
508 [found xgettext program is not GNU xgettext; ignore it])
509 XGETTEXT=":"
510 fi
511 fi
512
513 # We need to process the po/ directory.
514 POSUB=po
515
516 AC_OUTPUT_COMMANDS(
517 [case "$CONFIG_FILES" in *po/Makefile.in*)
518 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
519 esac])
520
521 dnl These rules are solely for the distribution goal. While doing this
522 dnl we only have to keep exactly one list of the available catalogs
523 dnl in configure.ac.
524 for lang in $ALL_LINGUAS; do
525 GMOFILES="$GMOFILES $lang.gmo"
526 POFILES="$POFILES $lang.po"
527 done
528
529 dnl Make all variables we use known to autoconf.
530 AC_SUBST(CATALOGS)
531 AC_SUBST(CATOBJEXT)
532 AC_SUBST(DATADIRNAME)
533 AC_SUBST(GMOFILES)
534 AC_SUBST(INSTOBJEXT)
535 AC_SUBST(INTLLIBS)
536 AC_SUBST(PO_IN_DATADIR_TRUE)
537 AC_SUBST(PO_IN_DATADIR_FALSE)
538 AC_SUBST(POFILES)
539 AC_SUBST(POSUB)
540 ])
541
542 # AM_GLIB_GNU_GETTEXT
543 # -------------------
544 # Do checks necessary for use of gettext. If a suitable implementation
545 # of gettext is found in either in libintl or in the C library,
546 # it will set INTLLIBS to the libraries needed for use of gettext
547 # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
548 # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
549 # on various variables needed by the Makefile.in.in installed by
550 # glib-gettextize.
551 dnl
552 glib_DEFUN([GLIB_GNU_GETTEXT],
553 [AC_REQUIRE([AC_PROG_CC])dnl
554
555 GLIB_LC_MESSAGES
556 GLIB_WITH_NLS
557
558 if test "$gt_cv_have_gettext" = "yes"; then
559 if test "x$ALL_LINGUAS" = "x"; then
560 LINGUAS=
561 else
562 AC_MSG_CHECKING(for catalogs to be installed)
563 NEW_LINGUAS=
564 for presentlang in $ALL_LINGUAS; do
565 useit=no
566 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
567 desiredlanguages="$LINGUAS"
568 else
569 desiredlanguages="$ALL_LINGUAS"
570 fi
571 for desiredlang in $desiredlanguages; do
572 # Use the presentlang catalog if desiredlang is
573 # a. equal to presentlang, or
574 # b. a variant of presentlang (because in this case,
575 # presentlang can be used as a fallback for messages
576 # which are not translated in the desiredlang catalog).
577 case "$desiredlang" in
578 "$presentlang"*) useit=yes;;
579 esac
580 done
581 if test $useit = yes; then
582 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
583 fi
584 done
585 LINGUAS=$NEW_LINGUAS
586 AC_MSG_RESULT($LINGUAS)
587 fi
588
589 dnl Construct list of names of catalog files to be constructed.
590 if test -n "$LINGUAS"; then
591 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
592 fi
593 fi
594
595 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
596 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
597 dnl Try to locate is.
598 MKINSTALLDIRS=
599 if test -n "$ac_aux_dir"; then
600 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
601 fi
602 if test -z "$MKINSTALLDIRS"; then
603 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
604 fi
605 AC_SUBST(MKINSTALLDIRS)
606
607 dnl Generate list of files to be processed by xgettext which will
608 dnl be included in po/Makefile.
609 test -d po || mkdir po
610 if test "x$srcdir" != "x."; then
611 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
612 posrcprefix="$srcdir/"
613 else
614 posrcprefix="../$srcdir/"
615 fi
616 else
617 posrcprefix="../"
618 fi
619 rm -f po/POTFILES
620 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
621 < $srcdir/po/POTFILES.in > po/POTFILES
622 ])
623
624 # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
625 # -------------------------------
626 # Define VARIABLE to the location where catalog files will
627 # be installed by po/Makefile.
628 glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
629 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
630 glib_save_prefix="$prefix"
631 glib_save_exec_prefix="$exec_prefix"
632 glib_save_datarootdir="$datarootdir"
633 test "x$prefix" = xNONE && prefix=$ac_default_prefix
634 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
635 datarootdir=`eval echo "${datarootdir}"`
636 if test "x$CATOBJEXT" = "x.mo" ; then
637 localedir=`eval echo "${libdir}/locale"`
638 else
639 localedir=`eval echo "${datadir}/locale"`
640 fi
641 prefix="$glib_save_prefix"
642 exec_prefix="$glib_save_exec_prefix"
643 datarootdir="$glib_save_datarootdir"
644 AC_DEFINE_UNQUOTED($1, "$localedir",
645 [Define the location where the catalogs will be installed])
646 ])
647
648 dnl
649 dnl Now the definitions that aclocal will find
650 dnl
651 ifdef(glib_configure_ac,[],[
652 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
653 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
654 ])dnl
655
656 # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
657 #
658 # Create a temporary file with TEST-FILE as its contents and pass the
659 # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
660 # 0 and perform ACTION-IF-FAIL for any other exit status.
661 AC_DEFUN([GLIB_RUN_PROG],
662 [cat >conftest.foo <<_ACEOF
663 $2
664 _ACEOF
665 if AC_RUN_LOG([$1 conftest.foo]); then
666 m4_ifval([$3], [$3], [:])
667 m4_ifvaln([$4], [else $4])dnl
668 echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
669 sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
670 fi])
671
672
673 # nls.m4 serial 5 (gettext-0.18)
674 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
675 dnl Inc.
676 dnl This file is free software; the Free Software Foundation
677 dnl gives unlimited permission to copy and/or distribute it,
678 dnl with or without modifications, as long as this notice is preserved.
679 dnl
680 dnl This file can can be used in projects which are not available under
681 dnl the GNU General Public License or the GNU Library General Public
682 dnl License but which still want to provide support for the GNU gettext
683 dnl functionality.
684 dnl Please note that the actual code of the GNU gettext library is covered
685 dnl by the GNU Library General Public License, and the rest of the GNU
686 dnl gettext package package is covered by the GNU General Public License.
687 dnl They are *not* in the public domain.
688
689 dnl Authors:
690 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
691 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
692
693 AC_PREREQ([2.50])
694
695 AC_DEFUN([AM_NLS],
696 [
697 AC_MSG_CHECKING([whether NLS is requested])
698 dnl Default is enabled NLS
699 AC_ARG_ENABLE([nls],
700 [ --disable-nls do not use Native Language Support],
701 USE_NLS=$enableval, USE_NLS=yes)
702 AC_MSG_RESULT([$USE_NLS])
703 AC_SUBST([USE_NLS])
704 ])
705
706 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
707 # serial 1 (pkg-config-0.24)
708 #
709 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
710 #
711 # This program is free software; you can redistribute it and/or modify
712 # it under the terms of the GNU General Public License as published by
713 # the Free Software Foundation; either version 2 of the License, or
714 # (at your option) any later version.
715 #
716 # This program is distributed in the hope that it will be useful, but
717 # WITHOUT ANY WARRANTY; without even the implied warranty of
718 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
719 # General Public License for more details.
720 #
721 # You should have received a copy of the GNU General Public License
722 # along with this program; if not, write to the Free Software
723 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
724 #
725 # As a special exception to the GNU General Public License, if you
726 # distribute this file as part of a program that contains a
727 # configuration script generated by Autoconf, you may include it under
728 # the same distribution terms that you use for the rest of that program.
729
730 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
731 # ----------------------------------
732 AC_DEFUN([PKG_PROG_PKG_CONFIG],
733 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
734 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
735 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
736 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
737 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
738 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
739
740 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
741 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
742 fi
743 if test -n "$PKG_CONFIG"; then
744 _pkg_min_version=m4_default([$1], [0.9.0])
745 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
746 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
747 AC_MSG_RESULT([yes])
748 else
749 AC_MSG_RESULT([no])
750 PKG_CONFIG=""
751 fi
752 fi[]dnl
753 ])# PKG_PROG_PKG_CONFIG
754
755 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
756 #
757 # Check to see whether a particular set of modules exists. Similar
758 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
759 #
760 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
761 # only at the first occurence in configure.ac, so if the first place
762 # it's called might be skipped (such as if it is within an "if", you
763 # have to call PKG_CHECK_EXISTS manually
764 # --------------------------------------------------------------
765 AC_DEFUN([PKG_CHECK_EXISTS],
766 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
767 if test -n "$PKG_CONFIG" && \
768 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
769 m4_default([$2], [:])
770 m4_ifvaln([$3], [else
771 $3])dnl
772 fi])
773
774 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
775 # ---------------------------------------------
776 m4_define([_PKG_CONFIG],
777 [if test -n "$$1"; then
778 pkg_cv_[]$1="$$1"
779 elif test -n "$PKG_CONFIG"; then
780 PKG_CHECK_EXISTS([$3],
781 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
782 test "x$?" != "x0" && pkg_failed=yes ],
783 [pkg_failed=yes])
784 else
785 pkg_failed=untried
786 fi[]dnl
787 ])# _PKG_CONFIG
788
789 # _PKG_SHORT_ERRORS_SUPPORTED
790 # -----------------------------
791 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
792 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
793 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
794 _pkg_short_errors_supported=yes
795 else
796 _pkg_short_errors_supported=no
797 fi[]dnl
798 ])# _PKG_SHORT_ERRORS_SUPPORTED
799
800
801 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
802 # [ACTION-IF-NOT-FOUND])
803 #
804 #
805 # Note that if there is a possibility the first call to
806 # PKG_CHECK_MODULES might not happen, you should be sure to include an
807 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
808 #
809 #
810 # --------------------------------------------------------------
811 AC_DEFUN([PKG_CHECK_MODULES],
812 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
813 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
814 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
815
816 pkg_failed=no
817 AC_MSG_CHECKING([for $1])
818
819 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
820 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
821
822 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
823 and $1[]_LIBS to avoid the need to call pkg-config.
824 See the pkg-config man page for more details.])
825
826 if test $pkg_failed = yes; then
827 AC_MSG_RESULT([no])
828 _PKG_SHORT_ERRORS_SUPPORTED
829 if test $_pkg_short_errors_supported = yes; then
830 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
831 else
832 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
833 fi
834 # Put the nasty error message in config.log where it belongs
835 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
836
837 m4_default([$4], [AC_MSG_ERROR(
838 [Package requirements ($2) were not met:
839
840 $$1_PKG_ERRORS
841
842 Consider adjusting the PKG_CONFIG_PATH environment variable if you
843 installed software in a non-standard prefix.
844
845 _PKG_TEXT])[]dnl
846 ])
847 elif test $pkg_failed = untried; then
848 AC_MSG_RESULT([no])
849 m4_default([$4], [AC_MSG_FAILURE(
850 [The pkg-config script could not be found or is too old. Make sure it
851 is in your PATH or set the PKG_CONFIG environment variable to the full
852 path to pkg-config.
853
854 _PKG_TEXT
855
856 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
857 ])
858 else
859 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
860 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
861 AC_MSG_RESULT([yes])
862 $3
863 fi[]dnl
864 ])# PKG_CHECK_MODULES
865
866
867 # PKG_INSTALLDIR(DIRECTORY)
868 # -------------------------
869 # Substitutes the variable pkgconfigdir as the location where a module
870 # should install pkg-config .pc files. By default the directory is
871 # $libdir/pkgconfig, but the default can be changed by passing
872 # DIRECTORY. The user can override through the --with-pkgconfigdir
873 # parameter.
874 AC_DEFUN([PKG_INSTALLDIR],
875 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
876 m4_pushdef([pkg_description],
877 [pkg-config installation directory @<:@]pkg_default[@:>@])
878 AC_ARG_WITH([pkgconfigdir],
879 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
880 [with_pkgconfigdir=]pkg_default)
881 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
882 m4_popdef([pkg_default])
883 m4_popdef([pkg_description])
884 ]) dnl PKG_INSTALLDIR
885
886
887 # PKG_NOARCH_INSTALLDIR(DIRECTORY)
888 # -------------------------
889 # Substitutes the variable noarch_pkgconfigdir as the location where a
890 # module should install arch-independent pkg-config .pc files. By
891 # default the directory is $datadir/pkgconfig, but the default can be
892 # changed by passing DIRECTORY. The user can override through the
893 # --with-noarch-pkgconfigdir parameter.
894 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
895 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
896 m4_pushdef([pkg_description],
897 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
898 AC_ARG_WITH([noarch-pkgconfigdir],
899 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
900 [with_noarch_pkgconfigdir=]pkg_default)
901 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
902 m4_popdef([pkg_default])
903 m4_popdef([pkg_description])
904 ]) dnl PKG_NOARCH_INSTALLDIR
905
906
907 # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
908 # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
909 # -------------------------------------------
910 # Retrieves the value of the pkg-config variable for the given module.
911 AC_DEFUN([PKG_CHECK_VAR],
912 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
913 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
914
915 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
916 AS_VAR_COPY([$1], [pkg_cv_][$1])
917
918 AS_VAR_IF([$1], [""], [$5], [$4])dnl
919 ])# PKG_CHECK_VAR
920
921 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
922 #
923 # This file is free software; the Free Software Foundation
924 # gives unlimited permission to copy and/or distribute it,
925 # with or without modifications, as long as this notice is preserved.
926
927 # AM_AUTOMAKE_VERSION(VERSION)
928 # ----------------------------
929 # Automake X.Y traces this macro to ensure aclocal.m4 has been
930 # generated from the m4 files accompanying Automake X.Y.
931 # (This private macro should not be called outside this file.)
932 AC_DEFUN([AM_AUTOMAKE_VERSION],
933 [am__api_version='1.13'
934 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
935 dnl require some minimum version. Point them to the right macro.
936 m4_if([$1], [1.13.4], [],
937 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
938 ])
939
940 # _AM_AUTOCONF_VERSION(VERSION)
941 # -----------------------------
942 # aclocal traces this macro to find the Autoconf version.
943 # This is a private macro too. Using m4_define simplifies
944 # the logic in aclocal, which can simply ignore this definition.
945 m4_define([_AM_AUTOCONF_VERSION], [])
946
947 # AM_SET_CURRENT_AUTOMAKE_VERSION
948 # -------------------------------
949 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
950 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
951 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
952 [AM_AUTOMAKE_VERSION([1.13.4])dnl
953 m4_ifndef([AC_AUTOCONF_VERSION],
954 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
955 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
956
957 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
958
959 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
960 #
961 # This file is free software; the Free Software Foundation
962 # gives unlimited permission to copy and/or distribute it,
963 # with or without modifications, as long as this notice is preserved.
964
965 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
966 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
967 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
968 #
969 # Of course, Automake must honor this variable whenever it calls a
970 # tool from the auxiliary directory. The problem is that $srcdir (and
971 # therefore $ac_aux_dir as well) can be either absolute or relative,
972 # depending on how configure is run. This is pretty annoying, since
973 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
974 # source directory, any form will work fine, but in subdirectories a
975 # relative path needs to be adjusted first.
976 #
977 # $ac_aux_dir/missing
978 # fails when called from a subdirectory if $ac_aux_dir is relative
979 # $top_srcdir/$ac_aux_dir/missing
980 # fails if $ac_aux_dir is absolute,
981 # fails when called from a subdirectory in a VPATH build with
982 # a relative $ac_aux_dir
983 #
984 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
985 # are both prefixed by $srcdir. In an in-source build this is usually
986 # harmless because $srcdir is '.', but things will broke when you
987 # start a VPATH build or use an absolute $srcdir.
988 #
989 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
990 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
991 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
992 # and then we would define $MISSING as
993 # MISSING="\${SHELL} $am_aux_dir/missing"
994 # This will work as long as MISSING is not called from configure, because
995 # unfortunately $(top_srcdir) has no meaning in configure.
996 # However there are other variables, like CC, which are often used in
997 # configure, and could therefore not use this "fixed" $ac_aux_dir.
998 #
999 # Another solution, used here, is to always expand $ac_aux_dir to an
1000 # absolute PATH. The drawback is that using absolute paths prevent a
1001 # configured tree to be moved without reconfiguration.
1002
1003 AC_DEFUN([AM_AUX_DIR_EXPAND],
1004 [dnl Rely on autoconf to set up CDPATH properly.
1005 AC_PREREQ([2.50])dnl
1006 # expand $ac_aux_dir to an absolute path
1007 am_aux_dir=`cd $ac_aux_dir && pwd`
1008 ])
1009
1010 # AM_CONDITIONAL -*- Autoconf -*-
1011
1012 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
1013 #
1014 # This file is free software; the Free Software Foundation
1015 # gives unlimited permission to copy and/or distribute it,
1016 # with or without modifications, as long as this notice is preserved.
1017
1018 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
1019 # -------------------------------------
1020 # Define a conditional.
1021 AC_DEFUN([AM_CONDITIONAL],
1022 [AC_PREREQ([2.52])dnl
1023 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1024 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1025 AC_SUBST([$1_TRUE])dnl
1026 AC_SUBST([$1_FALSE])dnl
1027 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
1028 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
1029 m4_define([_AM_COND_VALUE_$1], [$2])dnl
1030 if $2; then
1031 $1_TRUE=
1032 $1_FALSE='#'
1033 else
1034 $1_TRUE='#'
1035 $1_FALSE=
1036 fi
1037 AC_CONFIG_COMMANDS_PRE(
1038 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1039 AC_MSG_ERROR([[conditional "$1" was never defined.
1040 Usually this means the macro was only invoked conditionally.]])
1041 fi])])
1042
1043 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1044 #
1045 # This file is free software; the Free Software Foundation
1046 # gives unlimited permission to copy and/or distribute it,
1047 # with or without modifications, as long as this notice is preserved.
1048
1049
1050 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
1051 # written in clear, in which case automake, when reading aclocal.m4,
1052 # will think it sees a *use*, and therefore will trigger all it's
1053 # C support machinery. Also note that it means that autoscan, seeing
1054 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1055
1056
1057 # _AM_DEPENDENCIES(NAME)
1058 # ----------------------
1059 # See how the compiler implements dependency checking.
1060 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
1061 # We try a few techniques and use that to set a single cache variable.
1062 #
1063 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1064 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1065 # dependency, and given that the user is not expected to run this macro,
1066 # just rely on AC_PROG_CC.
1067 AC_DEFUN([_AM_DEPENDENCIES],
1068 [AC_REQUIRE([AM_SET_DEPDIR])dnl
1069 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1070 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1071 AC_REQUIRE([AM_DEP_TRACK])dnl
1072
1073 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
1074 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
1075 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1076 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
1077 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
1078 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1079 [depcc="$$1" am_compiler_list=])
1080
1081 AC_CACHE_CHECK([dependency style of $depcc],
1082 [am_cv_$1_dependencies_compiler_type],
1083 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1084 # We make a subdir and do the tests there. Otherwise we can end up
1085 # making bogus files that we don't know about and never remove. For
1086 # instance it was reported that on HP-UX the gcc test will end up
1087 # making a dummy file named 'D' -- because '-MD' means "put the output
1088 # in D".
1089 rm -rf conftest.dir
1090 mkdir conftest.dir
1091 # Copy depcomp to subdir because otherwise we won't find it if we're
1092 # using a relative directory.
1093 cp "$am_depcomp" conftest.dir
1094 cd conftest.dir
1095 # We will build objects and dependencies in a subdirectory because
1096 # it helps to detect inapplicable dependency modes. For instance
1097 # both Tru64's cc and ICC support -MD to output dependencies as a
1098 # side effect of compilation, but ICC will put the dependencies in
1099 # the current directory while Tru64 will put them in the object
1100 # directory.
1101 mkdir sub
1102
1103 am_cv_$1_dependencies_compiler_type=none
1104 if test "$am_compiler_list" = ""; then
1105 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1106 fi
1107 am__universal=false
1108 m4_case([$1], [CC],
1109 [case " $depcc " in #(
1110 *\ -arch\ *\ -arch\ *) am__universal=true ;;
1111 esac],
1112 [CXX],
1113 [case " $depcc " in #(
1114 *\ -arch\ *\ -arch\ *) am__universal=true ;;
1115 esac])
1116
1117 for depmode in $am_compiler_list; do
1118 # Setup a source with many dependencies, because some compilers
1119 # like to wrap large dependency lists on column 80 (with \), and
1120 # we should not choose a depcomp mode which is confused by this.
1121 #
1122 # We need to recreate these files for each test, as the compiler may
1123 # overwrite some of them when testing with obscure command lines.
1124 # This happens at least with the AIX C compiler.
1125 : > sub/conftest.c
1126 for i in 1 2 3 4 5 6; do
1127 echo '#include "conftst'$i'.h"' >> sub/conftest.c
1128 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
1129 # Solaris 10 /bin/sh.
1130 echo '/* dummy */' > sub/conftst$i.h
1131 done
1132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1133
1134 # We check with '-c' and '-o' for the sake of the "dashmstdout"
1135 # mode. It turns out that the SunPro C++ compiler does not properly
1136 # handle '-M -o', and we need to detect this. Also, some Intel
1137 # versions had trouble with output in subdirs.
1138 am__obj=sub/conftest.${OBJEXT-o}
1139 am__minus_obj="-o $am__obj"
1140 case $depmode in
1141 gcc)
1142 # This depmode causes a compiler race in universal mode.
1143 test "$am__universal" = false || continue
1144 ;;
1145 nosideeffect)
1146 # After this tag, mechanisms are not by side-effect, so they'll
1147 # only be used when explicitly requested.
1148 if test "x$enable_dependency_tracking" = xyes; then
1149 continue
1150 else
1151 break
1152 fi
1153 ;;
1154 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1155 # This compiler won't grok '-c -o', but also, the minuso test has
1156 # not run yet. These depmodes are late enough in the game, and
1157 # so weak that their functioning should not be impacted.
1158 am__obj=conftest.${OBJEXT-o}
1159 am__minus_obj=
1160 ;;
1161 none) break ;;
1162 esac
1163 if depmode=$depmode \
1164 source=sub/conftest.c object=$am__obj \
1165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1166 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1167 >/dev/null 2>conftest.err &&
1168 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1170 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1172 # icc doesn't choke on unknown options, it will just issue warnings
1173 # or remarks (even with -Werror). So we grep stderr for any message
1174 # that says an option was ignored or not supported.
1175 # When given -MP, icc 7.0 and 7.1 complain thusly:
1176 # icc: Command line warning: ignoring option '-M'; no argument required
1177 # The diagnosis changed in icc 8.0:
1178 # icc: Command line remark: option '-MP' not supported
1179 if (grep 'ignoring option' conftest.err ||
1180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1181 am_cv_$1_dependencies_compiler_type=$depmode
1182 break
1183 fi
1184 fi
1185 done
1186
1187 cd ..
1188 rm -rf conftest.dir
1189 else
1190 am_cv_$1_dependencies_compiler_type=none
1191 fi
1192 ])
1193 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1194 AM_CONDITIONAL([am__fastdep$1], [
1195 test "x$enable_dependency_tracking" != xno \
1196 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1197 ])
1198
1199
1200 # AM_SET_DEPDIR
1201 # -------------
1202 # Choose a directory name for dependency files.
1203 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
1204 AC_DEFUN([AM_SET_DEPDIR],
1205 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1206 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1207 ])
1208
1209
1210 # AM_DEP_TRACK
1211 # ------------
1212 AC_DEFUN([AM_DEP_TRACK],
1213 [AC_ARG_ENABLE([dependency-tracking], [dnl
1214 AS_HELP_STRING(
1215 [--enable-dependency-tracking],
1216 [do not reject slow dependency extractors])
1217 AS_HELP_STRING(
1218 [--disable-dependency-tracking],
1219 [speeds up one-time build])])
1220 if test "x$enable_dependency_tracking" != xno; then
1221 am_depcomp="$ac_aux_dir/depcomp"
1222 AMDEPBACKSLASH='\'
1223 am__nodep='_no'
1224 fi
1225 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1226 AC_SUBST([AMDEPBACKSLASH])dnl
1227 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1228 AC_SUBST([am__nodep])dnl
1229 _AM_SUBST_NOTMAKE([am__nodep])dnl
1230 ])
1231
1232 # Generate code to set up dependency tracking. -*- Autoconf -*-
1233
1234 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1235 #
1236 # This file is free software; the Free Software Foundation
1237 # gives unlimited permission to copy and/or distribute it,
1238 # with or without modifications, as long as this notice is preserved.
1239
1240
1241 # _AM_OUTPUT_DEPENDENCY_COMMANDS
1242 # ------------------------------
1243 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1244 [{
1245 # Older Autoconf quotes --file arguments for eval, but not when files
1246 # are listed without --file. Let's play safe and only enable the eval
1247 # if we detect the quoting.
1248 case $CONFIG_FILES in
1249 *\'*) eval set x "$CONFIG_FILES" ;;
1250 *) set x $CONFIG_FILES ;;
1251 esac
1252 shift
1253 for mf
1254 do
1255 # Strip MF so we end up with the name of the file.
1256 mf=`echo "$mf" | sed -e 's/:.*$//'`
1257 # Check whether this is an Automake generated Makefile or not.
1258 # We used to match only the files named 'Makefile.in', but
1259 # some people rename them; so instead we look at the file content.
1260 # Grep'ing the first line is not enough: some people post-process
1261 # each Makefile.in and add a new line on top of each file to say so.
1262 # Grep'ing the whole file is not good either: AIX grep has a line
1263 # limit of 2048, but all sed's we know have understand at least 4000.
1264 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1265 dirpart=`AS_DIRNAME("$mf")`
1266 else
1267 continue
1268 fi
1269 # Extract the definition of DEPDIR, am__include, and am__quote
1270 # from the Makefile without running 'make'.
1271 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1272 test -z "$DEPDIR" && continue
1273 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1274 test -z "$am__include" && continue
1275 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1276 # Find all dependency output files, they are included files with
1277 # $(DEPDIR) in their names. We invoke sed twice because it is the
1278 # simplest approach to changing $(DEPDIR) to its actual value in the
1279 # expansion.
1280 for file in `sed -n "
1281 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1282 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1283 # Make sure the directory exists.
1284 test -f "$dirpart/$file" && continue
1285 fdir=`AS_DIRNAME(["$file"])`
1286 AS_MKDIR_P([$dirpart/$fdir])
1287 # echo "creating $dirpart/$file"
1288 echo '# dummy' > "$dirpart/$file"
1289 done
1290 done
1291 }
1292 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1293
1294
1295 # AM_OUTPUT_DEPENDENCY_COMMANDS
1296 # -----------------------------
1297 # This macro should only be invoked once -- use via AC_REQUIRE.
1298 #
1299 # This code is only required when automatic dependency tracking
1300 # is enabled. FIXME. This creates each '.P' file that we will
1301 # need in order to bootstrap the dependency handling code.
1302 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1303 [AC_CONFIG_COMMANDS([depfiles],
1304 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1305 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1306 ])
1307
1308 # Do all the work for Automake. -*- Autoconf -*-
1309
1310 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1311 #
1312 # This file is free software; the Free Software Foundation
1313 # gives unlimited permission to copy and/or distribute it,
1314 # with or without modifications, as long as this notice is preserved.
1315
1316 # This macro actually does too much. Some checks are only needed if
1317 # your package does certain things. But this isn't really a big deal.
1318
1319 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1320 # AM_INIT_AUTOMAKE([OPTIONS])
1321 # -----------------------------------------------
1322 # The call with PACKAGE and VERSION arguments is the old style
1323 # call (pre autoconf-2.50), which is being phased out. PACKAGE
1324 # and VERSION should now be passed to AC_INIT and removed from
1325 # the call to AM_INIT_AUTOMAKE.
1326 # We support both call styles for the transition. After
1327 # the next Automake release, Autoconf can make the AC_INIT
1328 # arguments mandatory, and then we can depend on a new Autoconf
1329 # release and drop the old call support.
1330 AC_DEFUN([AM_INIT_AUTOMAKE],
1331 [AC_PREREQ([2.65])dnl
1332 dnl Autoconf wants to disallow AM_ names. We explicitly allow
1333 dnl the ones we care about.
1334 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1335 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1336 AC_REQUIRE([AC_PROG_INSTALL])dnl
1337 if test "`cd $srcdir && pwd`" != "`pwd`"; then
1338 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1339 # is not polluted with repeated "-I."
1340 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1341 # test to see if srcdir already configured
1342 if test -f $srcdir/config.status; then
1343 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1344 fi
1345 fi
1346
1347 # test whether we have cygpath
1348 if test -z "$CYGPATH_W"; then
1349 if (cygpath --version) >/dev/null 2>/dev/null; then
1350 CYGPATH_W='cygpath -w'
1351 else
1352 CYGPATH_W=echo
1353 fi
1354 fi
1355 AC_SUBST([CYGPATH_W])
1356
1357 # Define the identity of the package.
1358 dnl Distinguish between old-style and new-style calls.
1359 m4_ifval([$2],
1360 [AC_DIAGNOSE([obsolete],
1361 [$0: two- and three-arguments forms are deprecated.])
1362 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1363 AC_SUBST([PACKAGE], [$1])dnl
1364 AC_SUBST([VERSION], [$2])],
1365 [_AM_SET_OPTIONS([$1])dnl
1366 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1367 m4_if(
1368 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
1369 [ok:ok],,
1370 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1371 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1372 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1373
1374 _AM_IF_OPTION([no-define],,
1375 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
1376 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1377
1378 # Some tools Automake needs.
1379 AC_REQUIRE([AM_SANITY_CHECK])dnl
1380 AC_REQUIRE([AC_ARG_PROGRAM])dnl
1381 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
1382 AM_MISSING_PROG([AUTOCONF], [autoconf])
1383 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
1384 AM_MISSING_PROG([AUTOHEADER], [autoheader])
1385 AM_MISSING_PROG([MAKEINFO], [makeinfo])
1386 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1387 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1388 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1389 # For better backward compatibility. To be removed once Automake 1.9.x
1390 # dies out for good. For more background, see:
1391 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1392 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1393 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
1394 # We need awk for the "check" target. The system "awk" is bad on
1395 # some platforms.
1396 AC_REQUIRE([AC_PROG_AWK])dnl
1397 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1398 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1399 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1400 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1401 [_AM_PROG_TAR([v7])])])
1402 _AM_IF_OPTION([no-dependencies],,
1403 [AC_PROVIDE_IFELSE([AC_PROG_CC],
1404 [_AM_DEPENDENCIES([CC])],
1405 [m4_define([AC_PROG_CC],
1406 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1407 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1408 [_AM_DEPENDENCIES([CXX])],
1409 [m4_define([AC_PROG_CXX],
1410 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1411 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1412 [_AM_DEPENDENCIES([OBJC])],
1413 [m4_define([AC_PROG_OBJC],
1414 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1415 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1416 [_AM_DEPENDENCIES([OBJCXX])],
1417 [m4_define([AC_PROG_OBJCXX],
1418 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1419 ])
1420 AC_REQUIRE([AM_SILENT_RULES])dnl
1421 dnl The testsuite driver may need to know about EXEEXT, so add the
1422 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
1423 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1424 AC_CONFIG_COMMANDS_PRE(dnl
1425 [m4_provide_if([_AM_COMPILER_EXEEXT],
1426 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1427 ])
1428
1429 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1430 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1431 dnl mangled by Autoconf and run in a shell conditional statement.
1432 m4_define([_AC_COMPILER_EXEEXT],
1433 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1434
1435
1436 # When config.status generates a header, we must update the stamp-h file.
1437 # This file resides in the same directory as the config header
1438 # that is generated. The stamp files are numbered to have different names.
1439
1440 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1441 # loop where config.status creates the headers, so we can generate
1442 # our stamp files there.
1443 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1444 [# Compute $1's index in $config_headers.
1445 _am_arg=$1
1446 _am_stamp_count=1
1447 for _am_header in $config_headers :; do
1448 case $_am_header in
1449 $_am_arg | $_am_arg:* )
1450 break ;;
1451 * )
1452 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1453 esac
1454 done
1455 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1456
1457 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1458 #
1459 # This file is free software; the Free Software Foundation
1460 # gives unlimited permission to copy and/or distribute it,
1461 # with or without modifications, as long as this notice is preserved.
1462
1463 # AM_PROG_INSTALL_SH
1464 # ------------------
1465 # Define $install_sh.
1466 AC_DEFUN([AM_PROG_INSTALL_SH],
1467 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1468 if test x"${install_sh}" != xset; then
1469 case $am_aux_dir in
1470 *\ * | *\ *)
1471 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1472 *)
1473 install_sh="\${SHELL} $am_aux_dir/install-sh"
1474 esac
1475 fi
1476 AC_SUBST([install_sh])])
1477
1478 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
1479 #
1480 # This file is free software; the Free Software Foundation
1481 # gives unlimited permission to copy and/or distribute it,
1482 # with or without modifications, as long as this notice is preserved.
1483
1484 # Check whether the underlying file-system supports filenames
1485 # with a leading dot. For instance MS-DOS doesn't.
1486 AC_DEFUN([AM_SET_LEADING_DOT],
1487 [rm -rf .tst 2>/dev/null
1488 mkdir .tst 2>/dev/null
1489 if test -d .tst; then
1490 am__leading_dot=.
1491 else
1492 am__leading_dot=_
1493 fi
1494 rmdir .tst 2>/dev/null
1495 AC_SUBST([am__leading_dot])])
1496
1497 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
1498 # From Jim Meyering
1499
1500 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1501 #
1502 # This file is free software; the Free Software Foundation
1503 # gives unlimited permission to copy and/or distribute it,
1504 # with or without modifications, as long as this notice is preserved.
1505
1506 # AM_MAINTAINER_MODE([DEFAULT-MODE])
1507 # ----------------------------------
1508 # Control maintainer-specific portions of Makefiles.
1509 # Default is to disable them, unless 'enable' is passed literally.
1510 # For symmetry, 'disable' may be passed as well. Anyway, the user
1511 # can override the default with the --enable/--disable switch.
1512 AC_DEFUN([AM_MAINTAINER_MODE],
1513 [m4_case(m4_default([$1], [disable]),
1514 [enable], [m4_define([am_maintainer_other], [disable])],
1515 [disable], [m4_define([am_maintainer_other], [enable])],
1516 [m4_define([am_maintainer_other], [enable])
1517 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1518 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1519 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1520 AC_ARG_ENABLE([maintainer-mode],
1521 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
1522 am_maintainer_other[ make rules and dependencies not useful
1523 (and sometimes confusing) to the casual installer])],
1524 [USE_MAINTAINER_MODE=$enableval],
1525 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1526 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1527 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1528 MAINT=$MAINTAINER_MODE_TRUE
1529 AC_SUBST([MAINT])dnl
1530 ]
1531 )
1532
1533 # Check to see how 'make' treats includes. -*- Autoconf -*-
1534
1535 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1536 #
1537 # This file is free software; the Free Software Foundation
1538 # gives unlimited permission to copy and/or distribute it,
1539 # with or without modifications, as long as this notice is preserved.
1540
1541 # AM_MAKE_INCLUDE()
1542 # -----------------
1543 # Check to see how make treats includes.
1544 AC_DEFUN([AM_MAKE_INCLUDE],
1545 [am_make=${MAKE-make}
1546 cat > confinc << 'END'
1547 am__doit:
1548 @echo this is the am__doit target
1549 .PHONY: am__doit
1550 END
1551 # If we don't find an include directive, just comment out the code.
1552 AC_MSG_CHECKING([for style of include used by $am_make])
1553 am__include="#"
1554 am__quote=
1555 _am_result=none
1556 # First try GNU make style include.
1557 echo "include confinc" > confmf
1558 # Ignore all kinds of additional output from 'make'.
1559 case `$am_make -s -f confmf 2> /dev/null` in #(
1560 *the\ am__doit\ target*)
1561 am__include=include
1562 am__quote=
1563 _am_result=GNU
1564 ;;
1565 esac
1566 # Now try BSD make style include.
1567 if test "$am__include" = "#"; then
1568 echo '.include "confinc"' > confmf
1569 case `$am_make -s -f confmf 2> /dev/null` in #(
1570 *the\ am__doit\ target*)
1571 am__include=.include
1572 am__quote="\""
1573 _am_result=BSD
1574 ;;
1575 esac
1576 fi
1577 AC_SUBST([am__include])
1578 AC_SUBST([am__quote])
1579 AC_MSG_RESULT([$_am_result])
1580 rm -f confinc confmf
1581 ])
1582
1583 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1584 #
1585 # This file is free software; the Free Software Foundation
1586 # gives unlimited permission to copy and/or distribute it,
1587 # with or without modifications, as long as this notice is preserved.
1588
1589 # AM_PROG_CC_C_O
1590 # --------------
1591 # Like AC_PROG_CC_C_O, but changed for automake.
1592 AC_DEFUN([AM_PROG_CC_C_O],
1593 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
1594 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1595 AC_REQUIRE_AUX_FILE([compile])dnl
1596 # FIXME: we rely on the cache variable name because
1597 # there is no other way.
1598 set dummy $CC
1599 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1600 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1601 if test "$am_t" != yes; then
1602 # Losing compiler, so override with the script.
1603 # FIXME: It is wrong to rewrite CC.
1604 # But if we don't then we get into trouble of one sort or another.
1605 # A longer-term fix would be to have automake use am__CC in this case,
1606 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1607 CC="$am_aux_dir/compile $CC"
1608 fi
1609 dnl Make sure AC_PROG_CC is never called again, or it will override our
1610 dnl setting of CC.
1611 m4_define([AC_PROG_CC],
1612 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1613 ])
1614
1615 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1616
1617 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
1618 #
1619 # This file is free software; the Free Software Foundation
1620 # gives unlimited permission to copy and/or distribute it,
1621 # with or without modifications, as long as this notice is preserved.
1622
1623 # AM_MISSING_PROG(NAME, PROGRAM)
1624 # ------------------------------
1625 AC_DEFUN([AM_MISSING_PROG],
1626 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1627 $1=${$1-"${am_missing_run}$2"}
1628 AC_SUBST($1)])
1629
1630 # AM_MISSING_HAS_RUN
1631 # ------------------
1632 # Define MISSING if not defined so far and test if it is modern enough.
1633 # If it is, set am_missing_run to use it, otherwise, to nothing.
1634 AC_DEFUN([AM_MISSING_HAS_RUN],
1635 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1636 AC_REQUIRE_AUX_FILE([missing])dnl
1637 if test x"${MISSING+set}" != xset; then
1638 case $am_aux_dir in
1639 *\ * | *\ *)
1640 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1641 *)
1642 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1643 esac
1644 fi
1645 # Use eval to expand $SHELL
1646 if eval "$MISSING --is-lightweight"; then
1647 am_missing_run="$MISSING "
1648 else
1649 am_missing_run=
1650 AC_MSG_WARN(['missing' script is too old or missing])
1651 fi
1652 ])
1653
1654 # Helper functions for option handling. -*- Autoconf -*-
1655
1656 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1657 #
1658 # This file is free software; the Free Software Foundation
1659 # gives unlimited permission to copy and/or distribute it,
1660 # with or without modifications, as long as this notice is preserved.
1661
1662 # _AM_MANGLE_OPTION(NAME)
1663 # -----------------------
1664 AC_DEFUN([_AM_MANGLE_OPTION],
1665 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1666
1667 # _AM_SET_OPTION(NAME)
1668 # --------------------
1669 # Set option NAME. Presently that only means defining a flag for this option.
1670 AC_DEFUN([_AM_SET_OPTION],
1671 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1672
1673 # _AM_SET_OPTIONS(OPTIONS)
1674 # ------------------------
1675 # OPTIONS is a space-separated list of Automake options.
1676 AC_DEFUN([_AM_SET_OPTIONS],
1677 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1678
1679 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1680 # -------------------------------------------
1681 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1682 AC_DEFUN([_AM_IF_OPTION],
1683 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1684
1685 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1686
1687 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1688 #
1689 # This file is free software; the Free Software Foundation
1690 # gives unlimited permission to copy and/or distribute it,
1691 # with or without modifications, as long as this notice is preserved.
1692
1693 # AM_SANITY_CHECK
1694 # ---------------
1695 AC_DEFUN([AM_SANITY_CHECK],
1696 [AC_MSG_CHECKING([whether build environment is sane])
1697 # Reject unsafe characters in $srcdir or the absolute working directory
1698 # name. Accept space and tab only in the latter.
1699 am_lf='
1700 '
1701 case `pwd` in
1702 *[[\\\"\#\$\&\'\`$am_lf]]*)
1703 AC_MSG_ERROR([unsafe absolute working directory name]);;
1704 esac
1705 case $srcdir in
1706 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1707 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1708 esac
1709
1710 # Do 'set' in a subshell so we don't clobber the current shell's
1711 # arguments. Must try -L first in case configure is actually a
1712 # symlink; some systems play weird games with the mod time of symlinks
1713 # (eg FreeBSD returns the mod time of the symlink's containing
1714 # directory).
1715 if (
1716 am_has_slept=no
1717 for am_try in 1 2; do
1718 echo "timestamp, slept: $am_has_slept" > conftest.file
1719 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1720 if test "$[*]" = "X"; then
1721 # -L didn't work.
1722 set X `ls -t "$srcdir/configure" conftest.file`
1723 fi
1724 if test "$[*]" != "X $srcdir/configure conftest.file" \
1725 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1726
1727 # If neither matched, then we have a broken ls. This can happen
1728 # if, for instance, CONFIG_SHELL is bash and it inherits a
1729 # broken ls alias from the environment. This has actually
1730 # happened. Such a system could not be considered "sane".
1731 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1732 alias in your environment])
1733 fi
1734 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1735 break
1736 fi
1737 # Just in case.
1738 sleep 1
1739 am_has_slept=yes
1740 done
1741 test "$[2]" = conftest.file
1742 )
1743 then
1744 # Ok.
1745 :
1746 else
1747 AC_MSG_ERROR([newly created file is older than distributed files!
1748 Check your system clock])
1749 fi
1750 AC_MSG_RESULT([yes])
1751 # If we didn't sleep, we still need to ensure time stamps of config.status and
1752 # generated files are strictly newer.
1753 am_sleep_pid=
1754 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1755 ( sleep 1 ) &
1756 am_sleep_pid=$!
1757 fi
1758 AC_CONFIG_COMMANDS_PRE(
1759 [AC_MSG_CHECKING([that generated files are newer than configure])
1760 if test -n "$am_sleep_pid"; then
1761 # Hide warnings about reused PIDs.
1762 wait $am_sleep_pid 2>/dev/null
1763 fi
1764 AC_MSG_RESULT([done])])
1765 rm -f conftest.file
1766 ])
1767
1768 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
1769 #
1770 # This file is free software; the Free Software Foundation
1771 # gives unlimited permission to copy and/or distribute it,
1772 # with or without modifications, as long as this notice is preserved.
1773
1774 # AM_SILENT_RULES([DEFAULT])
1775 # --------------------------
1776 # Enable less verbose build rules; with the default set to DEFAULT
1777 # ("yes" being less verbose, "no" or empty being verbose).
1778 AC_DEFUN([AM_SILENT_RULES],
1779 [AC_ARG_ENABLE([silent-rules], [dnl
1780 AS_HELP_STRING(
1781 [--enable-silent-rules],
1782 [less verbose build output (undo: "make V=1")])
1783 AS_HELP_STRING(
1784 [--disable-silent-rules],
1785 [verbose build output (undo: "make V=0")])dnl
1786 ])
1787 case $enable_silent_rules in @%:@ (((
1788 yes) AM_DEFAULT_VERBOSITY=0;;
1789 no) AM_DEFAULT_VERBOSITY=1;;
1790 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1791 esac
1792 dnl
1793 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1794 dnl do not support nested variable expansions.
1795 dnl See automake bug#9928 and bug#10237.
1796 am_make=${MAKE-make}
1797 AC_CACHE_CHECK([whether $am_make supports nested variables],
1798 [am_cv_make_support_nested_variables],
1799 [if AS_ECHO([['TRUE=$(BAR$(V))
1800 BAR0=false
1801 BAR1=true
1802 V=1
1803 am__doit:
1804 @$(TRUE)
1805 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1806 am_cv_make_support_nested_variables=yes
1807 else
1808 am_cv_make_support_nested_variables=no
1809 fi])
1810 if test $am_cv_make_support_nested_variables = yes; then
1811 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1812 AM_V='$(V)'
1813 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1814 else
1815 AM_V=$AM_DEFAULT_VERBOSITY
1816 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1817 fi
1818 AC_SUBST([AM_V])dnl
1819 AM_SUBST_NOTMAKE([AM_V])dnl
1820 AC_SUBST([AM_DEFAULT_V])dnl
1821 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1822 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1823 AM_BACKSLASH='\'
1824 AC_SUBST([AM_BACKSLASH])dnl
1825 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1826 ])
1827
1828 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1829 #
1830 # This file is free software; the Free Software Foundation
1831 # gives unlimited permission to copy and/or distribute it,
1832 # with or without modifications, as long as this notice is preserved.
1833
1834 # AM_PROG_INSTALL_STRIP
1835 # ---------------------
1836 # One issue with vendor 'install' (even GNU) is that you can't
1837 # specify the program used to strip binaries. This is especially
1838 # annoying in cross-compiling environments, where the build's strip
1839 # is unlikely to handle the host's binaries.
1840 # Fortunately install-sh will honor a STRIPPROG variable, so we
1841 # always use install-sh in "make install-strip", and initialize
1842 # STRIPPROG with the value of the STRIP variable (set by the user).
1843 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1844 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1845 # Installed binaries are usually stripped using 'strip' when the user
1846 # run "make install-strip". However 'strip' might not be the right
1847 # tool to use in cross-compilation environments, therefore Automake
1848 # will honor the 'STRIP' environment variable to overrule this program.
1849 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1850 if test "$cross_compiling" != no; then
1851 AC_CHECK_TOOL([STRIP], [strip], :)
1852 fi
1853 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1854 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1855
1856 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1857 #
1858 # This file is free software; the Free Software Foundation
1859 # gives unlimited permission to copy and/or distribute it,
1860 # with or without modifications, as long as this notice is preserved.
1861
1862 # _AM_SUBST_NOTMAKE(VARIABLE)
1863 # ---------------------------
1864 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1865 # This macro is traced by Automake.
1866 AC_DEFUN([_AM_SUBST_NOTMAKE])
1867
1868 # AM_SUBST_NOTMAKE(VARIABLE)
1869 # --------------------------
1870 # Public sister of _AM_SUBST_NOTMAKE.
1871 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1872
1873 # Check how to create a tarball. -*- Autoconf -*-
1874
1875 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1876 #
1877 # This file is free software; the Free Software Foundation
1878 # gives unlimited permission to copy and/or distribute it,
1879 # with or without modifications, as long as this notice is preserved.
1880
1881 # _AM_PROG_TAR(FORMAT)
1882 # --------------------
1883 # Check how to create a tarball in format FORMAT.
1884 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1885 #
1886 # Substitute a variable $(am__tar) that is a command
1887 # writing to stdout a FORMAT-tarball containing the directory
1888 # $tardir.
1889 # tardir=directory && $(am__tar) > result.tar
1890 #
1891 # Substitute a variable $(am__untar) that extract such
1892 # a tarball read from stdin.
1893 # $(am__untar) < result.tar
1894 #
1895 AC_DEFUN([_AM_PROG_TAR],
1896 [# Always define AMTAR for backward compatibility. Yes, it's still used
1897 # in the wild :-( We should find a proper way to deprecate it ...
1898 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1899
1900 # We'll loop over all known methods to create a tar archive until one works.
1901 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1902
1903 m4_if([$1], [v7],
1904 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1905
1906 [m4_case([$1],
1907 [ustar],
1908 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1909 # There is notably a 21 bits limit for the UID and the GID. In fact,
1910 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1911 # and bug#13588).
1912 am_max_uid=2097151 # 2^21 - 1
1913 am_max_gid=$am_max_uid
1914 # The $UID and $GID variables are not portable, so we need to resort
1915 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1916 # below are definitely unexpected, so allow the users to see them
1917 # (that is, avoid stderr redirection).
1918 am_uid=`id -u || echo unknown`
1919 am_gid=`id -g || echo unknown`
1920 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1921 if test $am_uid -le $am_max_uid; then
1922 AC_MSG_RESULT([yes])
1923 else
1924 AC_MSG_RESULT([no])
1925 _am_tools=none
1926 fi
1927 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1928 if test $am_gid -le $am_max_gid; then
1929 AC_MSG_RESULT([yes])
1930 else
1931 AC_MSG_RESULT([no])
1932 _am_tools=none
1933 fi],
1934
1935 [pax],
1936 [],
1937
1938 [m4_fatal([Unknown tar format])])
1939
1940 AC_MSG_CHECKING([how to create a $1 tar archive])
1941
1942 # Go ahead even if we have the value already cached. We do so because we
1943 # need to set the values for the 'am__tar' and 'am__untar' variables.
1944 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1945
1946 for _am_tool in $_am_tools; do
1947 case $_am_tool in
1948 gnutar)
1949 for _am_tar in tar gnutar gtar; do
1950 AM_RUN_LOG([$_am_tar --version]) && break
1951 done
1952 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1953 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1954 am__untar="$_am_tar -xf -"
1955 ;;
1956 plaintar)
1957 # Must skip GNU tar: if it does not support --format= it doesn't create
1958 # ustar tarball either.
1959 (tar --version) >/dev/null 2>&1 && continue
1960 am__tar='tar chf - "$$tardir"'
1961 am__tar_='tar chf - "$tardir"'
1962 am__untar='tar xf -'
1963 ;;
1964 pax)
1965 am__tar='pax -L -x $1 -w "$$tardir"'
1966 am__tar_='pax -L -x $1 -w "$tardir"'
1967 am__untar='pax -r'
1968 ;;
1969 cpio)
1970 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1971 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1972 am__untar='cpio -i -H $1 -d'
1973 ;;
1974 none)
1975 am__tar=false
1976 am__tar_=false
1977 am__untar=false
1978 ;;
1979 esac
1980
1981 # If the value was cached, stop now. We just wanted to have am__tar
1982 # and am__untar set.
1983 test -n "${am_cv_prog_tar_$1}" && break
1984
1985 # tar/untar a dummy directory, and stop if the command works.
1986 rm -rf conftest.dir
1987 mkdir conftest.dir
1988 echo GrepMe > conftest.dir/file
1989 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1990 rm -rf conftest.dir
1991 if test -s conftest.tar; then
1992 AM_RUN_LOG([$am__untar <conftest.tar])
1993 AM_RUN_LOG([cat conftest.dir/file])
1994 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1995 fi
1996 done
1997 rm -rf conftest.dir
1998
1999 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
2000 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
2001
2002 AC_SUBST([am__tar])
2003 AC_SUBST([am__untar])
2004 ]) # _AM_PROG_TAR
2005
2006 m4_include([m4/intltool.m4])
2007 m4_include([m4/libtool.m4])
2008 m4_include([m4/ltoptions.m4])
2009 m4_include([m4/ltsugar.m4])
2010 m4_include([m4/ltversion.m4])
2011 m4_include([m4/lt~obsolete.m4])
0 #!/bin/sh
1 set -e
2 set -x
3
4 libtoolize --automake --copy --force || exit 1
5 mkdir -p m4
6 intltoolize --copy --force || exit 1
7 aclocal --force || exit 1
8 autoheader --force || exit 1
9 automake --add-missing --copy --force || exit 1
10 autoconf --force || exit 1
11
12 if `echo "$@" | grep -q CFLAGS > /dev/null` ; then
13 ./configure "$@" || exit 1
14 else
15 CFLAGS=${CFLAGS-"-Wall -Wformat -Werror=format-security"}
16 CXXFLAGS="$CFLAGS"
17 ./configure "$@" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" || exit 1
18 fi
+0
-347
compile less more
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <bug-automake@gnu.org>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
258 func_cl_wrapper "$@" # Doesn't return...
259 ;;
260 esac
261
262 ofile=
263 cfile=
264
265 for arg
266 do
267 if test -n "$eat"; then
268 eat=
269 else
270 case $1 in
271 -o)
272 # configure might choose to run compile as 'compile cc -o foo foo.c'.
273 # So we strip '-o arg' only if arg is an object.
274 eat=1
275 case $2 in
276 *.o | *.obj)
277 ofile=$2
278 ;;
279 *)
280 set x "$@" -o "$2"
281 shift
282 ;;
283 esac
284 ;;
285 *.c)
286 cfile=$1
287 set x "$@" "$1"
288 shift
289 ;;
290 *)
291 set x "$@" "$1"
292 shift
293 ;;
294 esac
295 fi
296 shift
297 done
298
299 if test -z "$ofile" || test -z "$cfile"; then
300 # If no '-o' option was seen then we might have been invoked from a
301 # pattern rule where we don't need one. That is ok -- this is a
302 # normal compilation that the losing compiler can handle. If no
303 # '.c' file was seen then we are probably linking. That is also
304 # ok.
305 exec "$@"
306 fi
307
308 # Name of file we expect compiler to create.
309 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
310
311 # Create the lock directory.
312 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
313 # that we are using for the .o file. Also, base the name on the expected
314 # object file name, since that is what matters with a parallel build.
315 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
316 while true; do
317 if mkdir "$lockdir" >/dev/null 2>&1; then
318 break
319 fi
320 sleep 1
321 done
322 # FIXME: race condition here if user kills between mkdir and trap.
323 trap "rmdir '$lockdir'; exit 1" 1 2 15
324
325 # Run the compile.
326 "$@"
327 ret=$?
328
329 if test -f "$cofile"; then
330 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
331 elif test -f "${cofile}bj"; then
332 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
333 fi
334
335 rmdir "$lockdir"
336 exit $ret
337
338 # Local Variables:
339 # mode: shell-script
340 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # time-stamp-start: "scriptversion="
343 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-end: "; # UTC"
346 # End:
+0
-1535
config.guess less more
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012, 2013 Free Software Foundation, Inc.
5
6 timestamp='2012-12-29'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that
25 # program. This Exception is an additional permission under section 7
26 # of the GNU General Public License, version 3 ("GPLv3").
27 #
28 # Originally written by Per Bothner.
29 #
30 # You can get the latest version of this script from:
31 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
32 #
33 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
34
35
36 me=`echo "$0" | sed -e 's,.*/,,'`
37
38 usage="\
39 Usage: $0 [OPTION]
40
41 Output the configuration name of the system \`$me' is run on.
42
43 Operation modes:
44 -h, --help print this help, then exit
45 -t, --time-stamp print date of last modification, then exit
46 -v, --version print version number, then exit
47
48 Report bugs and patches to <config-patches@gnu.org>."
49
50 version="\
51 GNU config.guess ($timestamp)
52
53 Originally written by Per Bothner.
54 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
55 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
56 2012, 2013 Free Software Foundation, Inc.
57
58 This is free software; see the source for copying conditions. There is NO
59 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
60
61 help="
62 Try \`$me --help' for more information."
63
64 # Parse command line
65 while test $# -gt 0 ; do
66 case $1 in
67 --time-stamp | --time* | -t )
68 echo "$timestamp" ; exit ;;
69 --version | -v )
70 echo "$version" ; exit ;;
71 --help | --h* | -h )
72 echo "$usage"; exit ;;
73 -- ) # Stop option processing
74 shift; break ;;
75 - ) # Use stdin as input.
76 break ;;
77 -* )
78 echo "$me: invalid option $1$help" >&2
79 exit 1 ;;
80 * )
81 break ;;
82 esac
83 done
84
85 if test $# != 0; then
86 echo "$me: too many arguments$help" >&2
87 exit 1
88 fi
89
90 trap 'exit 1' 1 2 15
91
92 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
93 # compiler to aid in system detection is discouraged as it requires
94 # temporary files to be created and, as you can see below, it is a
95 # headache to deal with in a portable fashion.
96
97 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
98 # use `HOST_CC' if defined, but it is deprecated.
99
100 # Portable tmp directory creation inspired by the Autoconf team.
101
102 set_cc_for_build='
103 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
104 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
105 : ${TMPDIR=/tmp} ;
106 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
107 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
108 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
109 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
110 dummy=$tmp/dummy ;
111 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
112 case $CC_FOR_BUILD,$HOST_CC,$CC in
113 ,,) echo "int x;" > $dummy.c ;
114 for c in cc gcc c89 c99 ; do
115 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
116 CC_FOR_BUILD="$c"; break ;
117 fi ;
118 done ;
119 if test x"$CC_FOR_BUILD" = x ; then
120 CC_FOR_BUILD=no_compiler_found ;
121 fi
122 ;;
123 ,,*) CC_FOR_BUILD=$CC ;;
124 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
125 esac ; set_cc_for_build= ;'
126
127 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
128 # (ghazi@noc.rutgers.edu 1994-08-24)
129 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
130 PATH=$PATH:/.attbin ; export PATH
131 fi
132
133 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
134 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
135 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
136 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
137
138 # Note: order is significant - the case branches are not exclusive.
139
140 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
141 *:NetBSD:*:*)
142 # NetBSD (nbsd) targets should (where applicable) match one or
143 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
144 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
145 # switched to ELF, *-*-netbsd* would select the old
146 # object file format. This provides both forward
147 # compatibility and a consistent mechanism for selecting the
148 # object file format.
149 #
150 # Note: NetBSD doesn't particularly care about the vendor
151 # portion of the name. We always set it to "unknown".
152 sysctl="sysctl -n hw.machine_arch"
153 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
154 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
155 case "${UNAME_MACHINE_ARCH}" in
156 armeb) machine=armeb-unknown ;;
157 arm*) machine=arm-unknown ;;
158 sh3el) machine=shl-unknown ;;
159 sh3eb) machine=sh-unknown ;;
160 sh5el) machine=sh5le-unknown ;;
161 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
162 esac
163 # The Operating System including object format, if it has switched
164 # to ELF recently, or will in the future.
165 case "${UNAME_MACHINE_ARCH}" in
166 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
167 eval $set_cc_for_build
168 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
169 | grep -q __ELF__
170 then
171 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
172 # Return netbsd for either. FIX?
173 os=netbsd
174 else
175 os=netbsdelf
176 fi
177 ;;
178 *)
179 os=netbsd
180 ;;
181 esac
182 # The OS release
183 # Debian GNU/NetBSD machines have a different userland, and
184 # thus, need a distinct triplet. However, they do not need
185 # kernel version information, so it can be replaced with a
186 # suitable tag, in the style of linux-gnu.
187 case "${UNAME_VERSION}" in
188 Debian*)
189 release='-gnu'
190 ;;
191 *)
192 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
193 ;;
194 esac
195 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
196 # contains redundant information, the shorter form:
197 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
198 echo "${machine}-${os}${release}"
199 exit ;;
200 *:Bitrig:*:*)
201 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
202 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
203 exit ;;
204 *:OpenBSD:*:*)
205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
207 exit ;;
208 *:ekkoBSD:*:*)
209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
210 exit ;;
211 *:SolidBSD:*:*)
212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
213 exit ;;
214 macppc:MirBSD:*:*)
215 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
216 exit ;;
217 *:MirBSD:*:*)
218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
219 exit ;;
220 alpha:OSF1:*:*)
221 case $UNAME_RELEASE in
222 *4.0)
223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224 ;;
225 *5.*)
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227 ;;
228 esac
229 # According to Compaq, /usr/sbin/psrinfo has been available on
230 # OSF/1 and Tru64 systems produced since 1995. I hope that
231 # covers most systems running today. This code pipes the CPU
232 # types through head -n 1, so we only detect the type of CPU 0.
233 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
234 case "$ALPHA_CPU_TYPE" in
235 "EV4 (21064)")
236 UNAME_MACHINE="alpha" ;;
237 "EV4.5 (21064)")
238 UNAME_MACHINE="alpha" ;;
239 "LCA4 (21066/21068)")
240 UNAME_MACHINE="alpha" ;;
241 "EV5 (21164)")
242 UNAME_MACHINE="alphaev5" ;;
243 "EV5.6 (21164A)")
244 UNAME_MACHINE="alphaev56" ;;
245 "EV5.6 (21164PC)")
246 UNAME_MACHINE="alphapca56" ;;
247 "EV5.7 (21164PC)")
248 UNAME_MACHINE="alphapca57" ;;
249 "EV6 (21264)")
250 UNAME_MACHINE="alphaev6" ;;
251 "EV6.7 (21264A)")
252 UNAME_MACHINE="alphaev67" ;;
253 "EV6.8CB (21264C)")
254 UNAME_MACHINE="alphaev68" ;;
255 "EV6.8AL (21264B)")
256 UNAME_MACHINE="alphaev68" ;;
257 "EV6.8CX (21264D)")
258 UNAME_MACHINE="alphaev68" ;;
259 "EV6.9A (21264/EV69A)")
260 UNAME_MACHINE="alphaev69" ;;
261 "EV7 (21364)")
262 UNAME_MACHINE="alphaev7" ;;
263 "EV7.9 (21364A)")
264 UNAME_MACHINE="alphaev79" ;;
265 esac
266 # A Pn.n version is a patched version.
267 # A Vn.n version is a released version.
268 # A Tn.n version is a released field test version.
269 # A Xn.n version is an unreleased experimental baselevel.
270 # 1.2 uses "1.2" for uname -r.
271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
273 exitcode=$?
274 trap '' 0
275 exit $exitcode ;;
276 Alpha\ *:Windows_NT*:*)
277 # How do we know it's Interix rather than the generic POSIX subsystem?
278 # Should we change UNAME_MACHINE based on the output of uname instead
279 # of the specific Alpha model?
280 echo alpha-pc-interix
281 exit ;;
282 21064:Windows_NT:50:3)
283 echo alpha-dec-winnt3.5
284 exit ;;
285 Amiga*:UNIX_System_V:4.0:*)
286 echo m68k-unknown-sysv4
287 exit ;;
288 *:[Aa]miga[Oo][Ss]:*:*)
289 echo ${UNAME_MACHINE}-unknown-amigaos
290 exit ;;
291 *:[Mm]orph[Oo][Ss]:*:*)
292 echo ${UNAME_MACHINE}-unknown-morphos
293 exit ;;
294 *:OS/390:*:*)
295 echo i370-ibm-openedition
296 exit ;;
297 *:z/VM:*:*)
298 echo s390-ibm-zvmoe
299 exit ;;
300 *:OS400:*:*)
301 echo powerpc-ibm-os400
302 exit ;;
303 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
304 echo arm-acorn-riscix${UNAME_RELEASE}
305 exit ;;
306 arm*:riscos:*:*|arm*:RISCOS:*:*)
307 echo arm-unknown-riscos
308 exit ;;
309 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
310 echo hppa1.1-hitachi-hiuxmpp
311 exit ;;
312 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
313 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
314 if test "`(/bin/universe) 2>/dev/null`" = att ; then
315 echo pyramid-pyramid-sysv3
316 else
317 echo pyramid-pyramid-bsd
318 fi
319 exit ;;
320 NILE*:*:*:dcosx)
321 echo pyramid-pyramid-svr4
322 exit ;;
323 DRS?6000:unix:4.0:6*)
324 echo sparc-icl-nx6
325 exit ;;
326 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
327 case `/usr/bin/uname -p` in
328 sparc) echo sparc-icl-nx7; exit ;;
329 esac ;;
330 s390x:SunOS:*:*)
331 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 exit ;;
333 sun4H:SunOS:5.*:*)
334 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 exit ;;
336 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
337 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
338 exit ;;
339 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
340 echo i386-pc-auroraux${UNAME_RELEASE}
341 exit ;;
342 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
343 eval $set_cc_for_build
344 SUN_ARCH="i386"
345 # If there is a compiler, see if it is configured for 64-bit objects.
346 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
347 # This test works for both compilers.
348 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
349 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
350 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
351 grep IS_64BIT_ARCH >/dev/null
352 then
353 SUN_ARCH="x86_64"
354 fi
355 fi
356 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
357 exit ;;
358 sun4*:SunOS:6*:*)
359 # According to config.sub, this is the proper way to canonicalize
360 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
361 # it's likely to be more like Solaris than SunOS4.
362 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
363 exit ;;
364 sun4*:SunOS:*:*)
365 case "`/usr/bin/arch -k`" in
366 Series*|S4*)
367 UNAME_RELEASE=`uname -v`
368 ;;
369 esac
370 # Japanese Language versions have a version number like `4.1.3-JL'.
371 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
372 exit ;;
373 sun3*:SunOS:*:*)
374 echo m68k-sun-sunos${UNAME_RELEASE}
375 exit ;;
376 sun*:*:4.2BSD:*)
377 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
378 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
379 case "`/bin/arch`" in
380 sun3)
381 echo m68k-sun-sunos${UNAME_RELEASE}
382 ;;
383 sun4)
384 echo sparc-sun-sunos${UNAME_RELEASE}
385 ;;
386 esac
387 exit ;;
388 aushp:SunOS:*:*)
389 echo sparc-auspex-sunos${UNAME_RELEASE}
390 exit ;;
391 # The situation for MiNT is a little confusing. The machine name
392 # can be virtually everything (everything which is not
393 # "atarist" or "atariste" at least should have a processor
394 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
395 # to the lowercase version "mint" (or "freemint"). Finally
396 # the system name "TOS" denotes a system which is actually not
397 # MiNT. But MiNT is downward compatible to TOS, so this should
398 # be no problem.
399 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
400 echo m68k-atari-mint${UNAME_RELEASE}
401 exit ;;
402 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
403 echo m68k-atari-mint${UNAME_RELEASE}
404 exit ;;
405 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
406 echo m68k-atari-mint${UNAME_RELEASE}
407 exit ;;
408 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
409 echo m68k-milan-mint${UNAME_RELEASE}
410 exit ;;
411 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
412 echo m68k-hades-mint${UNAME_RELEASE}
413 exit ;;
414 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
415 echo m68k-unknown-mint${UNAME_RELEASE}
416 exit ;;
417 m68k:machten:*:*)
418 echo m68k-apple-machten${UNAME_RELEASE}
419 exit ;;
420 powerpc:machten:*:*)
421 echo powerpc-apple-machten${UNAME_RELEASE}
422 exit ;;
423 RISC*:Mach:*:*)
424 echo mips-dec-mach_bsd4.3
425 exit ;;
426 RISC*:ULTRIX:*:*)
427 echo mips-dec-ultrix${UNAME_RELEASE}
428 exit ;;
429 VAX*:ULTRIX*:*:*)
430 echo vax-dec-ultrix${UNAME_RELEASE}
431 exit ;;
432 2020:CLIX:*:* | 2430:CLIX:*:*)
433 echo clipper-intergraph-clix${UNAME_RELEASE}
434 exit ;;
435 mips:*:*:UMIPS | mips:*:*:RISCos)
436 eval $set_cc_for_build
437 sed 's/^ //' << EOF >$dummy.c
438 #ifdef __cplusplus
439 #include <stdio.h> /* for printf() prototype */
440 int main (int argc, char *argv[]) {
441 #else
442 int main (argc, argv) int argc; char *argv[]; {
443 #endif
444 #if defined (host_mips) && defined (MIPSEB)
445 #if defined (SYSTYPE_SYSV)
446 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
447 #endif
448 #if defined (SYSTYPE_SVR4)
449 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
450 #endif
451 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
452 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
453 #endif
454 #endif
455 exit (-1);
456 }
457 EOF
458 $CC_FOR_BUILD -o $dummy $dummy.c &&
459 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
460 SYSTEM_NAME=`$dummy $dummyarg` &&
461 { echo "$SYSTEM_NAME"; exit; }
462 echo mips-mips-riscos${UNAME_RELEASE}
463 exit ;;
464 Motorola:PowerMAX_OS:*:*)
465 echo powerpc-motorola-powermax
466 exit ;;
467 Motorola:*:4.3:PL8-*)
468 echo powerpc-harris-powermax
469 exit ;;
470 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
471 echo powerpc-harris-powermax
472 exit ;;
473 Night_Hawk:Power_UNIX:*:*)
474 echo powerpc-harris-powerunix
475 exit ;;
476 m88k:CX/UX:7*:*)
477 echo m88k-harris-cxux7
478 exit ;;
479 m88k:*:4*:R4*)
480 echo m88k-motorola-sysv4
481 exit ;;
482 m88k:*:3*:R3*)
483 echo m88k-motorola-sysv3
484 exit ;;
485 AViiON:dgux:*:*)
486 # DG/UX returns AViiON for all architectures
487 UNAME_PROCESSOR=`/usr/bin/uname -p`
488 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
489 then
490 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
491 [ ${TARGET_BINARY_INTERFACE}x = x ]
492 then
493 echo m88k-dg-dgux${UNAME_RELEASE}
494 else
495 echo m88k-dg-dguxbcs${UNAME_RELEASE}
496 fi
497 else
498 echo i586-dg-dgux${UNAME_RELEASE}
499 fi
500 exit ;;
501 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
502 echo m88k-dolphin-sysv3
503 exit ;;
504 M88*:*:R3*:*)
505 # Delta 88k system running SVR3
506 echo m88k-motorola-sysv3
507 exit ;;
508 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
509 echo m88k-tektronix-sysv3
510 exit ;;
511 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
512 echo m68k-tektronix-bsd
513 exit ;;
514 *:IRIX*:*:*)
515 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
516 exit ;;
517 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
518 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
519 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
520 i*86:AIX:*:*)
521 echo i386-ibm-aix
522 exit ;;
523 ia64:AIX:*:*)
524 if [ -x /usr/bin/oslevel ] ; then
525 IBM_REV=`/usr/bin/oslevel`
526 else
527 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
528 fi
529 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
530 exit ;;
531 *:AIX:2:3)
532 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
533 eval $set_cc_for_build
534 sed 's/^ //' << EOF >$dummy.c
535 #include <sys/systemcfg.h>
536
537 main()
538 {
539 if (!__power_pc())
540 exit(1);
541 puts("powerpc-ibm-aix3.2.5");
542 exit(0);
543 }
544 EOF
545 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
546 then
547 echo "$SYSTEM_NAME"
548 else
549 echo rs6000-ibm-aix3.2.5
550 fi
551 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
552 echo rs6000-ibm-aix3.2.4
553 else
554 echo rs6000-ibm-aix3.2
555 fi
556 exit ;;
557 *:AIX:*:[4567])
558 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
559 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
560 IBM_ARCH=rs6000
561 else
562 IBM_ARCH=powerpc
563 fi
564 if [ -x /usr/bin/oslevel ] ; then
565 IBM_REV=`/usr/bin/oslevel`
566 else
567 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
568 fi
569 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
570 exit ;;
571 *:AIX:*:*)
572 echo rs6000-ibm-aix
573 exit ;;
574 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
575 echo romp-ibm-bsd4.4
576 exit ;;
577 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
578 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
579 exit ;; # report: romp-ibm BSD 4.3
580 *:BOSX:*:*)
581 echo rs6000-bull-bosx
582 exit ;;
583 DPX/2?00:B.O.S.:*:*)
584 echo m68k-bull-sysv3
585 exit ;;
586 9000/[34]??:4.3bsd:1.*:*)
587 echo m68k-hp-bsd
588 exit ;;
589 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
590 echo m68k-hp-bsd4.4
591 exit ;;
592 9000/[34678]??:HP-UX:*:*)
593 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
594 case "${UNAME_MACHINE}" in
595 9000/31? ) HP_ARCH=m68000 ;;
596 9000/[34]?? ) HP_ARCH=m68k ;;
597 9000/[678][0-9][0-9])
598 if [ -x /usr/bin/getconf ]; then
599 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
600 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
601 case "${sc_cpu_version}" in
602 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
603 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
604 532) # CPU_PA_RISC2_0
605 case "${sc_kernel_bits}" in
606 32) HP_ARCH="hppa2.0n" ;;
607 64) HP_ARCH="hppa2.0w" ;;
608 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
609 esac ;;
610 esac
611 fi
612 if [ "${HP_ARCH}" = "" ]; then
613 eval $set_cc_for_build
614 sed 's/^ //' << EOF >$dummy.c
615
616 #define _HPUX_SOURCE
617 #include <stdlib.h>
618 #include <unistd.h>
619
620 int main ()
621 {
622 #if defined(_SC_KERNEL_BITS)
623 long bits = sysconf(_SC_KERNEL_BITS);
624 #endif
625 long cpu = sysconf (_SC_CPU_VERSION);
626
627 switch (cpu)
628 {
629 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
630 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
631 case CPU_PA_RISC2_0:
632 #if defined(_SC_KERNEL_BITS)
633 switch (bits)
634 {
635 case 64: puts ("hppa2.0w"); break;
636 case 32: puts ("hppa2.0n"); break;
637 default: puts ("hppa2.0"); break;
638 } break;
639 #else /* !defined(_SC_KERNEL_BITS) */
640 puts ("hppa2.0"); break;
641 #endif
642 default: puts ("hppa1.0"); break;
643 }
644 exit (0);
645 }
646 EOF
647 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
648 test -z "$HP_ARCH" && HP_ARCH=hppa
649 fi ;;
650 esac
651 if [ ${HP_ARCH} = "hppa2.0w" ]
652 then
653 eval $set_cc_for_build
654
655 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
656 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
657 # generating 64-bit code. GNU and HP use different nomenclature:
658 #
659 # $ CC_FOR_BUILD=cc ./config.guess
660 # => hppa2.0w-hp-hpux11.23
661 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
662 # => hppa64-hp-hpux11.23
663
664 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
665 grep -q __LP64__
666 then
667 HP_ARCH="hppa2.0w"
668 else
669 HP_ARCH="hppa64"
670 fi
671 fi
672 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
673 exit ;;
674 ia64:HP-UX:*:*)
675 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
676 echo ia64-hp-hpux${HPUX_REV}
677 exit ;;
678 3050*:HI-UX:*:*)
679 eval $set_cc_for_build
680 sed 's/^ //' << EOF >$dummy.c
681 #include <unistd.h>
682 int
683 main ()
684 {
685 long cpu = sysconf (_SC_CPU_VERSION);
686 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
687 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
688 results, however. */
689 if (CPU_IS_PA_RISC (cpu))
690 {
691 switch (cpu)
692 {
693 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
694 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
695 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
696 default: puts ("hppa-hitachi-hiuxwe2"); break;
697 }
698 }
699 else if (CPU_IS_HP_MC68K (cpu))
700 puts ("m68k-hitachi-hiuxwe2");
701 else puts ("unknown-hitachi-hiuxwe2");
702 exit (0);
703 }
704 EOF
705 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
706 { echo "$SYSTEM_NAME"; exit; }
707 echo unknown-hitachi-hiuxwe2
708 exit ;;
709 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
710 echo hppa1.1-hp-bsd
711 exit ;;
712 9000/8??:4.3bsd:*:*)
713 echo hppa1.0-hp-bsd
714 exit ;;
715 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
716 echo hppa1.0-hp-mpeix
717 exit ;;
718 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
719 echo hppa1.1-hp-osf
720 exit ;;
721 hp8??:OSF1:*:*)
722 echo hppa1.0-hp-osf
723 exit ;;
724 i*86:OSF1:*:*)
725 if [ -x /usr/sbin/sysversion ] ; then
726 echo ${UNAME_MACHINE}-unknown-osf1mk
727 else
728 echo ${UNAME_MACHINE}-unknown-osf1
729 fi
730 exit ;;
731 parisc*:Lites*:*:*)
732 echo hppa1.1-hp-lites
733 exit ;;
734 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
735 echo c1-convex-bsd
736 exit ;;
737 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
738 if getsysinfo -f scalar_acc
739 then echo c32-convex-bsd
740 else echo c2-convex-bsd
741 fi
742 exit ;;
743 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
744 echo c34-convex-bsd
745 exit ;;
746 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
747 echo c38-convex-bsd
748 exit ;;
749 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
750 echo c4-convex-bsd
751 exit ;;
752 CRAY*Y-MP:*:*:*)
753 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
754 exit ;;
755 CRAY*[A-Z]90:*:*:*)
756 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
757 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
758 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
759 -e 's/\.[^.]*$/.X/'
760 exit ;;
761 CRAY*TS:*:*:*)
762 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
763 exit ;;
764 CRAY*T3E:*:*:*)
765 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
766 exit ;;
767 CRAY*SV1:*:*:*)
768 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
769 exit ;;
770 *:UNICOS/mp:*:*)
771 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
772 exit ;;
773 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
774 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
775 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
776 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
777 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778 exit ;;
779 5000:UNIX_System_V:4.*:*)
780 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
781 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
782 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
783 exit ;;
784 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
785 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
786 exit ;;
787 sparc*:BSD/OS:*:*)
788 echo sparc-unknown-bsdi${UNAME_RELEASE}
789 exit ;;
790 *:BSD/OS:*:*)
791 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
792 exit ;;
793 *:FreeBSD:*:*)
794 UNAME_PROCESSOR=`/usr/bin/uname -p`
795 case ${UNAME_PROCESSOR} in
796 amd64)
797 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798 *)
799 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
800 esac
801 exit ;;
802 i*:CYGWIN*:*)
803 echo ${UNAME_MACHINE}-pc-cygwin
804 exit ;;
805 *:MINGW64*:*)
806 echo ${UNAME_MACHINE}-pc-mingw64
807 exit ;;
808 *:MINGW*:*)
809 echo ${UNAME_MACHINE}-pc-mingw32
810 exit ;;
811 i*:MSYS*:*)
812 echo ${UNAME_MACHINE}-pc-msys
813 exit ;;
814 i*:windows32*:*)
815 # uname -m includes "-pc" on this system.
816 echo ${UNAME_MACHINE}-mingw32
817 exit ;;
818 i*:PW*:*)
819 echo ${UNAME_MACHINE}-pc-pw32
820 exit ;;
821 *:Interix*:*)
822 case ${UNAME_MACHINE} in
823 x86)
824 echo i586-pc-interix${UNAME_RELEASE}
825 exit ;;
826 authenticamd | genuineintel | EM64T)
827 echo x86_64-unknown-interix${UNAME_RELEASE}
828 exit ;;
829 IA64)
830 echo ia64-unknown-interix${UNAME_RELEASE}
831 exit ;;
832 esac ;;
833 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
834 echo i${UNAME_MACHINE}-pc-mks
835 exit ;;
836 8664:Windows_NT:*)
837 echo x86_64-pc-mks
838 exit ;;
839 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
840 # How do we know it's Interix rather than the generic POSIX subsystem?
841 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
842 # UNAME_MACHINE based on the output of uname instead of i386?
843 echo i586-pc-interix
844 exit ;;
845 i*:UWIN*:*)
846 echo ${UNAME_MACHINE}-pc-uwin
847 exit ;;
848 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
849 echo x86_64-unknown-cygwin
850 exit ;;
851 p*:CYGWIN*:*)
852 echo powerpcle-unknown-cygwin
853 exit ;;
854 prep*:SunOS:5.*:*)
855 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
856 exit ;;
857 *:GNU:*:*)
858 # the GNU system
859 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
860 exit ;;
861 *:GNU/*:*:*)
862 # other systems with GNU libc and userland
863 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
864 exit ;;
865 i*86:Minix:*:*)
866 echo ${UNAME_MACHINE}-pc-minix
867 exit ;;
868 aarch64:Linux:*:*)
869 echo ${UNAME_MACHINE}-unknown-linux-gnu
870 exit ;;
871 aarch64_be:Linux:*:*)
872 UNAME_MACHINE=aarch64_be
873 echo ${UNAME_MACHINE}-unknown-linux-gnu
874 exit ;;
875 alpha:Linux:*:*)
876 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
877 EV5) UNAME_MACHINE=alphaev5 ;;
878 EV56) UNAME_MACHINE=alphaev56 ;;
879 PCA56) UNAME_MACHINE=alphapca56 ;;
880 PCA57) UNAME_MACHINE=alphapca56 ;;
881 EV6) UNAME_MACHINE=alphaev6 ;;
882 EV67) UNAME_MACHINE=alphaev67 ;;
883 EV68*) UNAME_MACHINE=alphaev68 ;;
884 esac
885 objdump --private-headers /bin/sh | grep -q ld.so.1
886 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
887 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
888 exit ;;
889 arm*:Linux:*:*)
890 eval $set_cc_for_build
891 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
892 | grep -q __ARM_EABI__
893 then
894 echo ${UNAME_MACHINE}-unknown-linux-gnu
895 else
896 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
897 | grep -q __ARM_PCS_VFP
898 then
899 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
900 else
901 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
902 fi
903 fi
904 exit ;;
905 avr32*:Linux:*:*)
906 echo ${UNAME_MACHINE}-unknown-linux-gnu
907 exit ;;
908 cris:Linux:*:*)
909 echo ${UNAME_MACHINE}-axis-linux-gnu
910 exit ;;
911 crisv32:Linux:*:*)
912 echo ${UNAME_MACHINE}-axis-linux-gnu
913 exit ;;
914 frv:Linux:*:*)
915 echo ${UNAME_MACHINE}-unknown-linux-gnu
916 exit ;;
917 hexagon:Linux:*:*)
918 echo ${UNAME_MACHINE}-unknown-linux-gnu
919 exit ;;
920 i*86:Linux:*:*)
921 LIBC=gnu
922 eval $set_cc_for_build
923 sed 's/^ //' << EOF >$dummy.c
924 #ifdef __dietlibc__
925 LIBC=dietlibc
926 #endif
927 EOF
928 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
929 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
930 exit ;;
931 ia64:Linux:*:*)
932 echo ${UNAME_MACHINE}-unknown-linux-gnu
933 exit ;;
934 m32r*:Linux:*:*)
935 echo ${UNAME_MACHINE}-unknown-linux-gnu
936 exit ;;
937 m68*:Linux:*:*)
938 echo ${UNAME_MACHINE}-unknown-linux-gnu
939 exit ;;
940 mips:Linux:*:* | mips64:Linux:*:*)
941 eval $set_cc_for_build
942 sed 's/^ //' << EOF >$dummy.c
943 #undef CPU
944 #undef ${UNAME_MACHINE}
945 #undef ${UNAME_MACHINE}el
946 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
947 CPU=${UNAME_MACHINE}el
948 #else
949 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
950 CPU=${UNAME_MACHINE}
951 #else
952 CPU=
953 #endif
954 #endif
955 EOF
956 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
957 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
958 ;;
959 or32:Linux:*:*)
960 echo ${UNAME_MACHINE}-unknown-linux-gnu
961 exit ;;
962 padre:Linux:*:*)
963 echo sparc-unknown-linux-gnu
964 exit ;;
965 parisc64:Linux:*:* | hppa64:Linux:*:*)
966 echo hppa64-unknown-linux-gnu
967 exit ;;
968 parisc:Linux:*:* | hppa:Linux:*:*)
969 # Look for CPU level
970 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
971 PA7*) echo hppa1.1-unknown-linux-gnu ;;
972 PA8*) echo hppa2.0-unknown-linux-gnu ;;
973 *) echo hppa-unknown-linux-gnu ;;
974 esac
975 exit ;;
976 ppc64:Linux:*:*)
977 echo powerpc64-unknown-linux-gnu
978 exit ;;
979 ppc:Linux:*:*)
980 echo powerpc-unknown-linux-gnu
981 exit ;;
982 s390:Linux:*:* | s390x:Linux:*:*)
983 echo ${UNAME_MACHINE}-ibm-linux
984 exit ;;
985 sh64*:Linux:*:*)
986 echo ${UNAME_MACHINE}-unknown-linux-gnu
987 exit ;;
988 sh*:Linux:*:*)
989 echo ${UNAME_MACHINE}-unknown-linux-gnu
990 exit ;;
991 sparc:Linux:*:* | sparc64:Linux:*:*)
992 echo ${UNAME_MACHINE}-unknown-linux-gnu
993 exit ;;
994 tile*:Linux:*:*)
995 echo ${UNAME_MACHINE}-unknown-linux-gnu
996 exit ;;
997 vax:Linux:*:*)
998 echo ${UNAME_MACHINE}-dec-linux-gnu
999 exit ;;
1000 x86_64:Linux:*:*)
1001 echo ${UNAME_MACHINE}-unknown-linux-gnu
1002 exit ;;
1003 xtensa*:Linux:*:*)
1004 echo ${UNAME_MACHINE}-unknown-linux-gnu
1005 exit ;;
1006 i*86:DYNIX/ptx:4*:*)
1007 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1008 # earlier versions are messed up and put the nodename in both
1009 # sysname and nodename.
1010 echo i386-sequent-sysv4
1011 exit ;;
1012 i*86:UNIX_SV:4.2MP:2.*)
1013 # Unixware is an offshoot of SVR4, but it has its own version
1014 # number series starting with 2...
1015 # I am not positive that other SVR4 systems won't match this,
1016 # I just have to hope. -- rms.
1017 # Use sysv4.2uw... so that sysv4* matches it.
1018 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1019 exit ;;
1020 i*86:OS/2:*:*)
1021 # If we were able to find `uname', then EMX Unix compatibility
1022 # is probably installed.
1023 echo ${UNAME_MACHINE}-pc-os2-emx
1024 exit ;;
1025 i*86:XTS-300:*:STOP)
1026 echo ${UNAME_MACHINE}-unknown-stop
1027 exit ;;
1028 i*86:atheos:*:*)
1029 echo ${UNAME_MACHINE}-unknown-atheos
1030 exit ;;
1031 i*86:syllable:*:*)
1032 echo ${UNAME_MACHINE}-pc-syllable
1033 exit ;;
1034 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1035 echo i386-unknown-lynxos${UNAME_RELEASE}
1036 exit ;;
1037 i*86:*DOS:*:*)
1038 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1039 exit ;;
1040 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1041 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1042 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1043 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1044 else
1045 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1046 fi
1047 exit ;;
1048 i*86:*:5:[678]*)
1049 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1050 case `/bin/uname -X | grep "^Machine"` in
1051 *486*) UNAME_MACHINE=i486 ;;
1052 *Pentium) UNAME_MACHINE=i586 ;;
1053 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1054 esac
1055 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1056 exit ;;
1057 i*86:*:3.2:*)
1058 if test -f /usr/options/cb.name; then
1059 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1060 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1061 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1062 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1063 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1064 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1065 && UNAME_MACHINE=i586
1066 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1067 && UNAME_MACHINE=i686
1068 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1069 && UNAME_MACHINE=i686
1070 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1071 else
1072 echo ${UNAME_MACHINE}-pc-sysv32
1073 fi
1074 exit ;;
1075 pc:*:*:*)
1076 # Left here for compatibility:
1077 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1078 # the processor, so we play safe by assuming i586.
1079 # Note: whatever this is, it MUST be the same as what config.sub
1080 # prints for the "djgpp" host, or else GDB configury will decide that
1081 # this is a cross-build.
1082 echo i586-pc-msdosdjgpp
1083 exit ;;
1084 Intel:Mach:3*:*)
1085 echo i386-pc-mach3
1086 exit ;;
1087 paragon:*:*:*)
1088 echo i860-intel-osf1
1089 exit ;;
1090 i860:*:4.*:*) # i860-SVR4
1091 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1092 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1093 else # Add other i860-SVR4 vendors below as they are discovered.
1094 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1095 fi
1096 exit ;;
1097 mini*:CTIX:SYS*5:*)
1098 # "miniframe"
1099 echo m68010-convergent-sysv
1100 exit ;;
1101 mc68k:UNIX:SYSTEM5:3.51m)
1102 echo m68k-convergent-sysv
1103 exit ;;
1104 M680?0:D-NIX:5.3:*)
1105 echo m68k-diab-dnix
1106 exit ;;
1107 M68*:*:R3V[5678]*:*)
1108 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1109 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1110 OS_REL=''
1111 test -r /etc/.relid \
1112 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1113 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1114 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1115 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1116 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1117 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1118 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1119 && { echo i486-ncr-sysv4; exit; } ;;
1120 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1121 OS_REL='.3'
1122 test -r /etc/.relid \
1123 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1124 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1125 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1126 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1127 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1128 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1129 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1130 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1131 echo m68k-unknown-lynxos${UNAME_RELEASE}
1132 exit ;;
1133 mc68030:UNIX_System_V:4.*:*)
1134 echo m68k-atari-sysv4
1135 exit ;;
1136 TSUNAMI:LynxOS:2.*:*)
1137 echo sparc-unknown-lynxos${UNAME_RELEASE}
1138 exit ;;
1139 rs6000:LynxOS:2.*:*)
1140 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1141 exit ;;
1142 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1143 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1144 exit ;;
1145 SM[BE]S:UNIX_SV:*:*)
1146 echo mips-dde-sysv${UNAME_RELEASE}
1147 exit ;;
1148 RM*:ReliantUNIX-*:*:*)
1149 echo mips-sni-sysv4
1150 exit ;;
1151 RM*:SINIX-*:*:*)
1152 echo mips-sni-sysv4
1153 exit ;;
1154 *:SINIX-*:*:*)
1155 if uname -p 2>/dev/null >/dev/null ; then
1156 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1157 echo ${UNAME_MACHINE}-sni-sysv4
1158 else
1159 echo ns32k-sni-sysv
1160 fi
1161 exit ;;
1162 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1163 # says <Richard.M.Bartel@ccMail.Census.GOV>
1164 echo i586-unisys-sysv4
1165 exit ;;
1166 *:UNIX_System_V:4*:FTX*)
1167 # From Gerald Hewes <hewes@openmarket.com>.
1168 # How about differentiating between stratus architectures? -djm
1169 echo hppa1.1-stratus-sysv4
1170 exit ;;
1171 *:*:*:FTX*)
1172 # From seanf@swdc.stratus.com.
1173 echo i860-stratus-sysv4
1174 exit ;;
1175 i*86:VOS:*:*)
1176 # From Paul.Green@stratus.com.
1177 echo ${UNAME_MACHINE}-stratus-vos
1178 exit ;;
1179 *:VOS:*:*)
1180 # From Paul.Green@stratus.com.
1181 echo hppa1.1-stratus-vos
1182 exit ;;
1183 mc68*:A/UX:*:*)
1184 echo m68k-apple-aux${UNAME_RELEASE}
1185 exit ;;
1186 news*:NEWS-OS:6*:*)
1187 echo mips-sony-newsos6
1188 exit ;;
1189 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1190 if [ -d /usr/nec ]; then
1191 echo mips-nec-sysv${UNAME_RELEASE}
1192 else
1193 echo mips-unknown-sysv${UNAME_RELEASE}
1194 fi
1195 exit ;;
1196 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1197 echo powerpc-be-beos
1198 exit ;;
1199 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1200 echo powerpc-apple-beos
1201 exit ;;
1202 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1203 echo i586-pc-beos
1204 exit ;;
1205 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1206 echo i586-pc-haiku
1207 exit ;;
1208 x86_64:Haiku:*:*)
1209 echo x86_64-unknown-haiku
1210 exit ;;
1211 SX-4:SUPER-UX:*:*)
1212 echo sx4-nec-superux${UNAME_RELEASE}
1213 exit ;;
1214 SX-5:SUPER-UX:*:*)
1215 echo sx5-nec-superux${UNAME_RELEASE}
1216 exit ;;
1217 SX-6:SUPER-UX:*:*)
1218 echo sx6-nec-superux${UNAME_RELEASE}
1219 exit ;;
1220 SX-7:SUPER-UX:*:*)
1221 echo sx7-nec-superux${UNAME_RELEASE}
1222 exit ;;
1223 SX-8:SUPER-UX:*:*)
1224 echo sx8-nec-superux${UNAME_RELEASE}
1225 exit ;;
1226 SX-8R:SUPER-UX:*:*)
1227 echo sx8r-nec-superux${UNAME_RELEASE}
1228 exit ;;
1229 Power*:Rhapsody:*:*)
1230 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1231 exit ;;
1232 *:Rhapsody:*:*)
1233 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1234 exit ;;
1235 *:Darwin:*:*)
1236 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1237 case $UNAME_PROCESSOR in
1238 i386)
1239 eval $set_cc_for_build
1240 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1241 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1242 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1243 grep IS_64BIT_ARCH >/dev/null
1244 then
1245 UNAME_PROCESSOR="x86_64"
1246 fi
1247 fi ;;
1248 unknown) UNAME_PROCESSOR=powerpc ;;
1249 esac
1250 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1251 exit ;;
1252 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1253 UNAME_PROCESSOR=`uname -p`
1254 if test "$UNAME_PROCESSOR" = "x86"; then
1255 UNAME_PROCESSOR=i386
1256 UNAME_MACHINE=pc
1257 fi
1258 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1259 exit ;;
1260 *:QNX:*:4*)
1261 echo i386-pc-qnx
1262 exit ;;
1263 NEO-?:NONSTOP_KERNEL:*:*)
1264 echo neo-tandem-nsk${UNAME_RELEASE}
1265 exit ;;
1266 NSE-*:NONSTOP_KERNEL:*:*)
1267 echo nse-tandem-nsk${UNAME_RELEASE}
1268 exit ;;
1269 NSR-?:NONSTOP_KERNEL:*:*)
1270 echo nsr-tandem-nsk${UNAME_RELEASE}
1271 exit ;;
1272 *:NonStop-UX:*:*)
1273 echo mips-compaq-nonstopux
1274 exit ;;
1275 BS2000:POSIX*:*:*)
1276 echo bs2000-siemens-sysv
1277 exit ;;
1278 DS/*:UNIX_System_V:*:*)
1279 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1280 exit ;;
1281 *:Plan9:*:*)
1282 # "uname -m" is not consistent, so use $cputype instead. 386
1283 # is converted to i386 for consistency with other x86
1284 # operating systems.
1285 if test "$cputype" = "386"; then
1286 UNAME_MACHINE=i386
1287 else
1288 UNAME_MACHINE="$cputype"
1289 fi
1290 echo ${UNAME_MACHINE}-unknown-plan9
1291 exit ;;
1292 *:TOPS-10:*:*)
1293 echo pdp10-unknown-tops10
1294 exit ;;
1295 *:TENEX:*:*)
1296 echo pdp10-unknown-tenex
1297 exit ;;
1298 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1299 echo pdp10-dec-tops20
1300 exit ;;
1301 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1302 echo pdp10-xkl-tops20
1303 exit ;;
1304 *:TOPS-20:*:*)
1305 echo pdp10-unknown-tops20
1306 exit ;;
1307 *:ITS:*:*)
1308 echo pdp10-unknown-its
1309 exit ;;
1310 SEI:*:*:SEIUX)
1311 echo mips-sei-seiux${UNAME_RELEASE}
1312 exit ;;
1313 *:DragonFly:*:*)
1314 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1315 exit ;;
1316 *:*VMS:*:*)
1317 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1318 case "${UNAME_MACHINE}" in
1319 A*) echo alpha-dec-vms ; exit ;;
1320 I*) echo ia64-dec-vms ; exit ;;
1321 V*) echo vax-dec-vms ; exit ;;
1322 esac ;;
1323 *:XENIX:*:SysV)
1324 echo i386-pc-xenix
1325 exit ;;
1326 i*86:skyos:*:*)
1327 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1328 exit ;;
1329 i*86:rdos:*:*)
1330 echo ${UNAME_MACHINE}-pc-rdos
1331 exit ;;
1332 i*86:AROS:*:*)
1333 echo ${UNAME_MACHINE}-pc-aros
1334 exit ;;
1335 x86_64:VMkernel:*:*)
1336 echo ${UNAME_MACHINE}-unknown-esx
1337 exit ;;
1338 esac
1339
1340 eval $set_cc_for_build
1341 cat >$dummy.c <<EOF
1342 #ifdef _SEQUENT_
1343 # include <sys/types.h>
1344 # include <sys/utsname.h>
1345 #endif
1346 main ()
1347 {
1348 #if defined (sony)
1349 #if defined (MIPSEB)
1350 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1351 I don't know.... */
1352 printf ("mips-sony-bsd\n"); exit (0);
1353 #else
1354 #include <sys/param.h>
1355 printf ("m68k-sony-newsos%s\n",
1356 #ifdef NEWSOS4
1357 "4"
1358 #else
1359 ""
1360 #endif
1361 ); exit (0);
1362 #endif
1363 #endif
1364
1365 #if defined (__arm) && defined (__acorn) && defined (__unix)
1366 printf ("arm-acorn-riscix\n"); exit (0);
1367 #endif
1368
1369 #if defined (hp300) && !defined (hpux)
1370 printf ("m68k-hp-bsd\n"); exit (0);
1371 #endif
1372
1373 #if defined (NeXT)
1374 #if !defined (__ARCHITECTURE__)
1375 #define __ARCHITECTURE__ "m68k"
1376 #endif
1377 int version;
1378 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1379 if (version < 4)
1380 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1381 else
1382 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1383 exit (0);
1384 #endif
1385
1386 #if defined (MULTIMAX) || defined (n16)
1387 #if defined (UMAXV)
1388 printf ("ns32k-encore-sysv\n"); exit (0);
1389 #else
1390 #if defined (CMU)
1391 printf ("ns32k-encore-mach\n"); exit (0);
1392 #else
1393 printf ("ns32k-encore-bsd\n"); exit (0);
1394 #endif
1395 #endif
1396 #endif
1397
1398 #if defined (__386BSD__)
1399 printf ("i386-pc-bsd\n"); exit (0);
1400 #endif
1401
1402 #if defined (sequent)
1403 #if defined (i386)
1404 printf ("i386-sequent-dynix\n"); exit (0);
1405 #endif
1406 #if defined (ns32000)
1407 printf ("ns32k-sequent-dynix\n"); exit (0);
1408 #endif
1409 #endif
1410
1411 #if defined (_SEQUENT_)
1412 struct utsname un;
1413
1414 uname(&un);
1415
1416 if (strncmp(un.version, "V2", 2) == 0) {
1417 printf ("i386-sequent-ptx2\n"); exit (0);
1418 }
1419 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1420 printf ("i386-sequent-ptx1\n"); exit (0);
1421 }
1422 printf ("i386-sequent-ptx\n"); exit (0);
1423
1424 #endif
1425
1426 #if defined (vax)
1427 # if !defined (ultrix)
1428 # include <sys/param.h>
1429 # if defined (BSD)
1430 # if BSD == 43
1431 printf ("vax-dec-bsd4.3\n"); exit (0);
1432 # else
1433 # if BSD == 199006
1434 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1435 # else
1436 printf ("vax-dec-bsd\n"); exit (0);
1437 # endif
1438 # endif
1439 # else
1440 printf ("vax-dec-bsd\n"); exit (0);
1441 # endif
1442 # else
1443 printf ("vax-dec-ultrix\n"); exit (0);
1444 # endif
1445 #endif
1446
1447 #if defined (alliant) && defined (i860)
1448 printf ("i860-alliant-bsd\n"); exit (0);
1449 #endif
1450
1451 exit (1);
1452 }
1453 EOF
1454
1455 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1456 { echo "$SYSTEM_NAME"; exit; }
1457
1458 # Apollos put the system type in the environment.
1459
1460 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1461
1462 # Convex versions that predate uname can use getsysinfo(1)
1463
1464 if [ -x /usr/convex/getsysinfo ]
1465 then
1466 case `getsysinfo -f cpu_type` in
1467 c1*)
1468 echo c1-convex-bsd
1469 exit ;;
1470 c2*)
1471 if getsysinfo -f scalar_acc
1472 then echo c32-convex-bsd
1473 else echo c2-convex-bsd
1474 fi
1475 exit ;;
1476 c34*)
1477 echo c34-convex-bsd
1478 exit ;;
1479 c38*)
1480 echo c38-convex-bsd
1481 exit ;;
1482 c4*)
1483 echo c4-convex-bsd
1484 exit ;;
1485 esac
1486 fi
1487
1488 cat >&2 <<EOF
1489 $0: unable to guess system type
1490
1491 This script, last modified $timestamp, has failed to recognize
1492 the operating system you are using. It is advised that you
1493 download the most up to date version of the config scripts from
1494
1495 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1496 and
1497 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1498
1499 If the version you run ($0) is already up to date, please
1500 send the following data and any information you think might be
1501 pertinent to <config-patches@gnu.org> in order to provide the needed
1502 information to handle your system.
1503
1504 config.guess timestamp = $timestamp
1505
1506 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1507 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1508 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1509 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1510
1511 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1512 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1513
1514 hostinfo = `(hostinfo) 2>/dev/null`
1515 /bin/universe = `(/bin/universe) 2>/dev/null`
1516 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1517 /bin/arch = `(/bin/arch) 2>/dev/null`
1518 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1519 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1520
1521 UNAME_MACHINE = ${UNAME_MACHINE}
1522 UNAME_RELEASE = ${UNAME_RELEASE}
1523 UNAME_SYSTEM = ${UNAME_SYSTEM}
1524 UNAME_VERSION = ${UNAME_VERSION}
1525 EOF
1526
1527 exit 1
1528
1529 # Local variables:
1530 # eval: (add-hook 'write-file-hooks 'time-stamp)
1531 # time-stamp-start: "timestamp='"
1532 # time-stamp-format: "%:y-%02m-%02d"
1533 # time-stamp-end: "'"
1534 # End:
+0
-124
config.h.in less more
0 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* always defined to indicate that i18n is enabled */
3 #undef ENABLE_NLS
4
5 /* Gettext package */
6 #undef GETTEXT_PACKAGE
7
8 /* Define to 1 if you have the `bind_textdomain_codeset' function. */
9 #undef HAVE_BIND_TEXTDOMAIN_CODESET
10
11 /* Define to 1 if you have the `dcgettext' function. */
12 #undef HAVE_DCGETTEXT
13
14 /* Define to 1 if you have the <dlfcn.h> header file. */
15 #undef HAVE_DLFCN_H
16
17 /* Define if the GNU gettext() function is already present or preinstalled. */
18 #undef HAVE_GETTEXT
19
20 /* Define to 1 if you have the <inttypes.h> header file. */
21 #undef HAVE_INTTYPES_H
22
23 /* Define if your <locale.h> file defines LC_MESSAGES. */
24 #undef HAVE_LC_MESSAGES
25
26 /* Define to 1 if you have the <locale.h> header file. */
27 #undef HAVE_LOCALE_H
28
29 /* Define to 1 if you have the <memory.h> header file. */
30 #undef HAVE_MEMORY_H
31
32 /* Define to 1 if you have the <stdint.h> header file. */
33 #undef HAVE_STDINT_H
34
35 /* Define to 1 if you have the <stdlib.h> header file. */
36 #undef HAVE_STDLIB_H
37
38 /* Define to 1 if you have the <strings.h> header file. */
39 #undef HAVE_STRINGS_H
40
41 /* Define to 1 if you have the <string.h> header file. */
42 #undef HAVE_STRING_H
43
44 /* Define to 1 if you have the <sys/stat.h> header file. */
45 #undef HAVE_SYS_STAT_H
46
47 /* Define to 1 if you have the <sys/types.h> header file. */
48 #undef HAVE_SYS_TYPES_H
49
50 /* Define to 1 if you have the <unistd.h> header file. */
51 #undef HAVE_UNISTD_H
52
53 /* Define if old ibus */
54 #undef IBUS_DEPRECATED_LANGUAGE_MENU_ITEM
55
56 /* Define the location where the catalogs will be installed */
57 #undef IBUS_LOCALEDIR
58
59 /* Define to the sub-directory in which libtool stores uninstalled libraries.
60 */
61 #undef LT_OBJDIR
62
63 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
64 #undef NO_MINUS_C_MINUS_O
65
66 /* Name of package */
67 #undef PACKAGE
68
69 /* Define to the address where bug reports for this package should be sent. */
70 #undef PACKAGE_BUGREPORT
71
72 /* Define to the full name of this package. */
73 #undef PACKAGE_NAME
74
75 /* Define to the full name and version of this package. */
76 #undef PACKAGE_STRING
77
78 /* Define to the one symbol short name of this package. */
79 #undef PACKAGE_TARNAME
80
81 /* Define to the home page for this package. */
82 #undef PACKAGE_URL
83
84 /* Define to the version of this package. */
85 #undef PACKAGE_VERSION
86
87 /* Define to 1 if you have the ANSI C header files. */
88 #undef STDC_HEADERS
89
90 /* Enable extensions on AIX 3, Interix. */
91 #ifndef _ALL_SOURCE
92 # undef _ALL_SOURCE
93 #endif
94 /* Enable GNU extensions on systems that have them. */
95 #ifndef _GNU_SOURCE
96 # undef _GNU_SOURCE
97 #endif
98 /* Enable threading extensions on Solaris. */
99 #ifndef _POSIX_PTHREAD_SEMANTICS
100 # undef _POSIX_PTHREAD_SEMANTICS
101 #endif
102 /* Enable extensions on HP NonStop. */
103 #ifndef _TANDEM_SOURCE
104 # undef _TANDEM_SOURCE
105 #endif
106 /* Enable general extensions on Solaris. */
107 #ifndef __EXTENSIONS__
108 # undef __EXTENSIONS__
109 #endif
110
111
112 /* Version number of package */
113 #undef VERSION
114
115 /* Define to 1 if on MINIX. */
116 #undef _MINIX
117
118 /* Define to 2 if the system does not provide POSIX.1 features except with
119 this defined. */
120 #undef _POSIX_1_SOURCE
121
122 /* Define to 1 if you need to in order for `stat' and other things to work. */
123 #undef _POSIX_SOURCE
+0
-1790
config.sub less more
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012, 2013 Free Software Foundation, Inc.
5
6 timestamp='2012-12-29'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that
25 # program. This Exception is an additional permission under section 7
26 # of the GNU General Public License, version 3 ("GPLv3").
27
28
29 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
30 #
31 # Configuration subroutine to validate and canonicalize a configuration type.
32 # Supply the specified configuration type as an argument.
33 # If it is invalid, we print an error message on stderr and exit with code 1.
34 # Otherwise, we print the canonical config type on stdout and succeed.
35
36 # You can get the latest version of this script from:
37 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
38
39 # This file is supposed to be the same for all GNU packages
40 # and recognize all the CPU types, system types and aliases
41 # that are meaningful with *any* GNU software.
42 # Each package is responsible for reporting which valid configurations
43 # it does not support. The user should be able to distinguish
44 # a failure to support a valid configuration from a meaningless
45 # configuration.
46
47 # The goal of this file is to map all the various variations of a given
48 # machine specification into a single specification in the form:
49 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
50 # or in some cases, the newer four-part form:
51 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
52 # It is wrong to echo any other type of specification.
53
54 me=`echo "$0" | sed -e 's,.*/,,'`
55
56 usage="\
57 Usage: $0 [OPTION] CPU-MFR-OPSYS
58 $0 [OPTION] ALIAS
59
60 Canonicalize a configuration name.
61
62 Operation modes:
63 -h, --help print this help, then exit
64 -t, --time-stamp print date of last modification, then exit
65 -v, --version print version number, then exit
66
67 Report bugs and patches to <config-patches@gnu.org>."
68
69 version="\
70 GNU config.sub ($timestamp)
71
72 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
73 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
74 2012, 2013 Free Software Foundation, Inc.
75
76 This is free software; see the source for copying conditions. There is NO
77 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
78
79 help="
80 Try \`$me --help' for more information."
81
82 # Parse command line
83 while test $# -gt 0 ; do
84 case $1 in
85 --time-stamp | --time* | -t )
86 echo "$timestamp" ; exit ;;
87 --version | -v )
88 echo "$version" ; exit ;;
89 --help | --h* | -h )
90 echo "$usage"; exit ;;
91 -- ) # Stop option processing
92 shift; break ;;
93 - ) # Use stdin as input.
94 break ;;
95 -* )
96 echo "$me: invalid option $1$help"
97 exit 1 ;;
98
99 *local*)
100 # First pass through any local machine types.
101 echo $1
102 exit ;;
103
104 * )
105 break ;;
106 esac
107 done
108
109 case $# in
110 0) echo "$me: missing argument$help" >&2
111 exit 1;;
112 1) ;;
113 *) echo "$me: too many arguments$help" >&2
114 exit 1;;
115 esac
116
117 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
118 # Here we must recognize all the valid KERNEL-OS combinations.
119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120 case $maybe_os in
121 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
122 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
123 knetbsd*-gnu* | netbsd*-gnu* | \
124 kopensolaris*-gnu* | \
125 storm-chaos* | os2-emx* | rtmk-nova*)
126 os=-$maybe_os
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
128 ;;
129 android-linux)
130 os=-linux-android
131 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
132 ;;
133 *)
134 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
135 if [ $basic_machine != $1 ]
136 then os=`echo $1 | sed 's/.*-/-/'`
137 else os=; fi
138 ;;
139 esac
140
141 ### Let's recognize common machines as not being operating systems so
142 ### that things like config.sub decstation-3100 work. We also
143 ### recognize some manufacturers as not being operating systems, so we
144 ### can provide default operating systems below.
145 case $os in
146 -sun*os*)
147 # Prevent following clause from handling this invalid input.
148 ;;
149 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
150 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
151 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
152 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
153 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
154 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
155 -apple | -axis | -knuth | -cray | -microblaze*)
156 os=
157 basic_machine=$1
158 ;;
159 -bluegene*)
160 os=-cnk
161 ;;
162 -sim | -cisco | -oki | -wec | -winbond)
163 os=
164 basic_machine=$1
165 ;;
166 -scout)
167 ;;
168 -wrs)
169 os=-vxworks
170 basic_machine=$1
171 ;;
172 -chorusos*)
173 os=-chorusos
174 basic_machine=$1
175 ;;
176 -chorusrdb)
177 os=-chorusrdb
178 basic_machine=$1
179 ;;
180 -hiux*)
181 os=-hiuxwe2
182 ;;
183 -sco6)
184 os=-sco5v6
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco5)
188 os=-sco3.2v5
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco4)
192 os=-sco3.2v4
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco3.2.[4-9]*)
196 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -sco3.2v[4-9]*)
200 # Don't forget version if it is 3.2v4 or newer.
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 ;;
203 -sco5v6*)
204 # Don't forget version if it is 3.2v4 or newer.
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206 ;;
207 -sco*)
208 os=-sco3.2v2
209 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
210 ;;
211 -udk*)
212 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
213 ;;
214 -isc)
215 os=-isc2.2
216 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
217 ;;
218 -clix*)
219 basic_machine=clipper-intergraph
220 ;;
221 -isc*)
222 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
223 ;;
224 -lynx*178)
225 os=-lynxos178
226 ;;
227 -lynx*5)
228 os=-lynxos5
229 ;;
230 -lynx*)
231 os=-lynxos
232 ;;
233 -ptx*)
234 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
235 ;;
236 -windowsnt*)
237 os=`echo $os | sed -e 's/windowsnt/winnt/'`
238 ;;
239 -psos*)
240 os=-psos
241 ;;
242 -mint | -mint[0-9]*)
243 basic_machine=m68k-atari
244 os=-mint
245 ;;
246 esac
247
248 # Decode aliases for certain CPU-COMPANY combinations.
249 case $basic_machine in
250 # Recognize the basic CPU types without company name.
251 # Some are omitted here because they have special meanings below.
252 1750a | 580 \
253 | a29k \
254 | aarch64 | aarch64_be \
255 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
256 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
257 | am33_2.0 \
258 | arc \
259 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
260 | avr | avr32 \
261 | be32 | be64 \
262 | bfin \
263 | c4x | clipper \
264 | d10v | d30v | dlx | dsp16xx \
265 | epiphany \
266 | fido | fr30 | frv \
267 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
268 | hexagon \
269 | i370 | i860 | i960 | ia64 \
270 | ip2k | iq2000 \
271 | le32 | le64 \
272 | lm32 \
273 | m32c | m32r | m32rle | m68000 | m68k | m88k \
274 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
275 | mips | mipsbe | mipseb | mipsel | mipsle \
276 | mips16 \
277 | mips64 | mips64el \
278 | mips64octeon | mips64octeonel \
279 | mips64orion | mips64orionel \
280 | mips64r5900 | mips64r5900el \
281 | mips64vr | mips64vrel \
282 | mips64vr4100 | mips64vr4100el \
283 | mips64vr4300 | mips64vr4300el \
284 | mips64vr5000 | mips64vr5000el \
285 | mips64vr5900 | mips64vr5900el \
286 | mipsisa32 | mipsisa32el \
287 | mipsisa32r2 | mipsisa32r2el \
288 | mipsisa64 | mipsisa64el \
289 | mipsisa64r2 | mipsisa64r2el \
290 | mipsisa64sb1 | mipsisa64sb1el \
291 | mipsisa64sr71k | mipsisa64sr71kel \
292 | mipstx39 | mipstx39el \
293 | mn10200 | mn10300 \
294 | moxie \
295 | mt \
296 | msp430 \
297 | nds32 | nds32le | nds32be \
298 | nios | nios2 \
299 | ns16k | ns32k \
300 | open8 \
301 | or32 \
302 | pdp10 | pdp11 | pj | pjl \
303 | powerpc | powerpc64 | powerpc64le | powerpcle \
304 | pyramid \
305 | rl78 | rx \
306 | score \
307 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
308 | sh64 | sh64le \
309 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
310 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
311 | spu \
312 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
313 | ubicom32 \
314 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
315 | we32k \
316 | x86 | xc16x | xstormy16 | xtensa \
317 | z8k | z80)
318 basic_machine=$basic_machine-unknown
319 ;;
320 c54x)
321 basic_machine=tic54x-unknown
322 ;;
323 c55x)
324 basic_machine=tic55x-unknown
325 ;;
326 c6x)
327 basic_machine=tic6x-unknown
328 ;;
329 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
330 basic_machine=$basic_machine-unknown
331 os=-none
332 ;;
333 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
334 ;;
335 ms1)
336 basic_machine=mt-unknown
337 ;;
338
339 strongarm | thumb | xscale)
340 basic_machine=arm-unknown
341 ;;
342 xgate)
343 basic_machine=$basic_machine-unknown
344 os=-none
345 ;;
346 xscaleeb)
347 basic_machine=armeb-unknown
348 ;;
349
350 xscaleel)
351 basic_machine=armel-unknown
352 ;;
353
354 # We use `pc' rather than `unknown'
355 # because (1) that's what they normally are, and
356 # (2) the word "unknown" tends to confuse beginning users.
357 i*86 | x86_64)
358 basic_machine=$basic_machine-pc
359 ;;
360 # Object if more than one company name word.
361 *-*-*)
362 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
363 exit 1
364 ;;
365 # Recognize the basic CPU types with company name.
366 580-* \
367 | a29k-* \
368 | aarch64-* | aarch64_be-* \
369 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
370 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
371 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
372 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
373 | avr-* | avr32-* \
374 | be32-* | be64-* \
375 | bfin-* | bs2000-* \
376 | c[123]* | c30-* | [cjt]90-* | c4x-* \
377 | clipper-* | craynv-* | cydra-* \
378 | d10v-* | d30v-* | dlx-* \
379 | elxsi-* \
380 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
381 | h8300-* | h8500-* \
382 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
383 | hexagon-* \
384 | i*86-* | i860-* | i960-* | ia64-* \
385 | ip2k-* | iq2000-* \
386 | le32-* | le64-* \
387 | lm32-* \
388 | m32c-* | m32r-* | m32rle-* \
389 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
390 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
391 | microblaze-* | microblazeel-* \
392 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
393 | mips16-* \
394 | mips64-* | mips64el-* \
395 | mips64octeon-* | mips64octeonel-* \
396 | mips64orion-* | mips64orionel-* \
397 | mips64r5900-* | mips64r5900el-* \
398 | mips64vr-* | mips64vrel-* \
399 | mips64vr4100-* | mips64vr4100el-* \
400 | mips64vr4300-* | mips64vr4300el-* \
401 | mips64vr5000-* | mips64vr5000el-* \
402 | mips64vr5900-* | mips64vr5900el-* \
403 | mipsisa32-* | mipsisa32el-* \
404 | mipsisa32r2-* | mipsisa32r2el-* \
405 | mipsisa64-* | mipsisa64el-* \
406 | mipsisa64r2-* | mipsisa64r2el-* \
407 | mipsisa64sb1-* | mipsisa64sb1el-* \
408 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
409 | mipstx39-* | mipstx39el-* \
410 | mmix-* \
411 | mt-* \
412 | msp430-* \
413 | nds32-* | nds32le-* | nds32be-* \
414 | nios-* | nios2-* \
415 | none-* | np1-* | ns16k-* | ns32k-* \
416 | open8-* \
417 | orion-* \
418 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
419 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
420 | pyramid-* \
421 | rl78-* | romp-* | rs6000-* | rx-* \
422 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
423 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
424 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
425 | sparclite-* \
426 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
427 | tahoe-* \
428 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
429 | tile*-* \
430 | tron-* \
431 | ubicom32-* \
432 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
433 | vax-* \
434 | we32k-* \
435 | x86-* | x86_64-* | xc16x-* | xps100-* \
436 | xstormy16-* | xtensa*-* \
437 | ymp-* \
438 | z8k-* | z80-*)
439 ;;
440 # Recognize the basic CPU types without company name, with glob match.
441 xtensa*)
442 basic_machine=$basic_machine-unknown
443 ;;
444 # Recognize the various machine names and aliases which stand
445 # for a CPU type and a company and sometimes even an OS.
446 386bsd)
447 basic_machine=i386-unknown
448 os=-bsd
449 ;;
450 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
451 basic_machine=m68000-att
452 ;;
453 3b*)
454 basic_machine=we32k-att
455 ;;
456 a29khif)
457 basic_machine=a29k-amd
458 os=-udi
459 ;;
460 abacus)
461 basic_machine=abacus-unknown
462 ;;
463 adobe68k)
464 basic_machine=m68010-adobe
465 os=-scout
466 ;;
467 alliant | fx80)
468 basic_machine=fx80-alliant
469 ;;
470 altos | altos3068)
471 basic_machine=m68k-altos
472 ;;
473 am29k)
474 basic_machine=a29k-none
475 os=-bsd
476 ;;
477 amd64)
478 basic_machine=x86_64-pc
479 ;;
480 amd64-*)
481 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
482 ;;
483 amdahl)
484 basic_machine=580-amdahl
485 os=-sysv
486 ;;
487 amiga | amiga-*)
488 basic_machine=m68k-unknown
489 ;;
490 amigaos | amigados)
491 basic_machine=m68k-unknown
492 os=-amigaos
493 ;;
494 amigaunix | amix)
495 basic_machine=m68k-unknown
496 os=-sysv4
497 ;;
498 apollo68)
499 basic_machine=m68k-apollo
500 os=-sysv
501 ;;
502 apollo68bsd)
503 basic_machine=m68k-apollo
504 os=-bsd
505 ;;
506 aros)
507 basic_machine=i386-pc
508 os=-aros
509 ;;
510 aux)
511 basic_machine=m68k-apple
512 os=-aux
513 ;;
514 balance)
515 basic_machine=ns32k-sequent
516 os=-dynix
517 ;;
518 blackfin)
519 basic_machine=bfin-unknown
520 os=-linux
521 ;;
522 blackfin-*)
523 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
524 os=-linux
525 ;;
526 bluegene*)
527 basic_machine=powerpc-ibm
528 os=-cnk
529 ;;
530 c54x-*)
531 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
532 ;;
533 c55x-*)
534 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
535 ;;
536 c6x-*)
537 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
538 ;;
539 c90)
540 basic_machine=c90-cray
541 os=-unicos
542 ;;
543 cegcc)
544 basic_machine=arm-unknown
545 os=-cegcc
546 ;;
547 convex-c1)
548 basic_machine=c1-convex
549 os=-bsd
550 ;;
551 convex-c2)
552 basic_machine=c2-convex
553 os=-bsd
554 ;;
555 convex-c32)
556 basic_machine=c32-convex
557 os=-bsd
558 ;;
559 convex-c34)
560 basic_machine=c34-convex
561 os=-bsd
562 ;;
563 convex-c38)
564 basic_machine=c38-convex
565 os=-bsd
566 ;;
567 cray | j90)
568 basic_machine=j90-cray
569 os=-unicos
570 ;;
571 craynv)
572 basic_machine=craynv-cray
573 os=-unicosmp
574 ;;
575 cr16 | cr16-*)
576 basic_machine=cr16-unknown
577 os=-elf
578 ;;
579 crds | unos)
580 basic_machine=m68k-crds
581 ;;
582 crisv32 | crisv32-* | etraxfs*)
583 basic_machine=crisv32-axis
584 ;;
585 cris | cris-* | etrax*)
586 basic_machine=cris-axis
587 ;;
588 crx)
589 basic_machine=crx-unknown
590 os=-elf
591 ;;
592 da30 | da30-*)
593 basic_machine=m68k-da30
594 ;;
595 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
596 basic_machine=mips-dec
597 ;;
598 decsystem10* | dec10*)
599 basic_machine=pdp10-dec
600 os=-tops10
601 ;;
602 decsystem20* | dec20*)
603 basic_machine=pdp10-dec
604 os=-tops20
605 ;;
606 delta | 3300 | motorola-3300 | motorola-delta \
607 | 3300-motorola | delta-motorola)
608 basic_machine=m68k-motorola
609 ;;
610 delta88)
611 basic_machine=m88k-motorola
612 os=-sysv3
613 ;;
614 dicos)
615 basic_machine=i686-pc
616 os=-dicos
617 ;;
618 djgpp)
619 basic_machine=i586-pc
620 os=-msdosdjgpp
621 ;;
622 dpx20 | dpx20-*)
623 basic_machine=rs6000-bull
624 os=-bosx
625 ;;
626 dpx2* | dpx2*-bull)
627 basic_machine=m68k-bull
628 os=-sysv3
629 ;;
630 ebmon29k)
631 basic_machine=a29k-amd
632 os=-ebmon
633 ;;
634 elxsi)
635 basic_machine=elxsi-elxsi
636 os=-bsd
637 ;;
638 encore | umax | mmax)
639 basic_machine=ns32k-encore
640 ;;
641 es1800 | OSE68k | ose68k | ose | OSE)
642 basic_machine=m68k-ericsson
643 os=-ose
644 ;;
645 fx2800)
646 basic_machine=i860-alliant
647 ;;
648 genix)
649 basic_machine=ns32k-ns
650 ;;
651 gmicro)
652 basic_machine=tron-gmicro
653 os=-sysv
654 ;;
655 go32)
656 basic_machine=i386-pc
657 os=-go32
658 ;;
659 h3050r* | hiux*)
660 basic_machine=hppa1.1-hitachi
661 os=-hiuxwe2
662 ;;
663 h8300hms)
664 basic_machine=h8300-hitachi
665 os=-hms
666 ;;
667 h8300xray)
668 basic_machine=h8300-hitachi
669 os=-xray
670 ;;
671 h8500hms)
672 basic_machine=h8500-hitachi
673 os=-hms
674 ;;
675 harris)
676 basic_machine=m88k-harris
677 os=-sysv3
678 ;;
679 hp300-*)
680 basic_machine=m68k-hp
681 ;;
682 hp300bsd)
683 basic_machine=m68k-hp
684 os=-bsd
685 ;;
686 hp300hpux)
687 basic_machine=m68k-hp
688 os=-hpux
689 ;;
690 hp3k9[0-9][0-9] | hp9[0-9][0-9])
691 basic_machine=hppa1.0-hp
692 ;;
693 hp9k2[0-9][0-9] | hp9k31[0-9])
694 basic_machine=m68000-hp
695 ;;
696 hp9k3[2-9][0-9])
697 basic_machine=m68k-hp
698 ;;
699 hp9k6[0-9][0-9] | hp6[0-9][0-9])
700 basic_machine=hppa1.0-hp
701 ;;
702 hp9k7[0-79][0-9] | hp7[0-79][0-9])
703 basic_machine=hppa1.1-hp
704 ;;
705 hp9k78[0-9] | hp78[0-9])
706 # FIXME: really hppa2.0-hp
707 basic_machine=hppa1.1-hp
708 ;;
709 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
710 # FIXME: really hppa2.0-hp
711 basic_machine=hppa1.1-hp
712 ;;
713 hp9k8[0-9][13679] | hp8[0-9][13679])
714 basic_machine=hppa1.1-hp
715 ;;
716 hp9k8[0-9][0-9] | hp8[0-9][0-9])
717 basic_machine=hppa1.0-hp
718 ;;
719 hppa-next)
720 os=-nextstep3
721 ;;
722 hppaosf)
723 basic_machine=hppa1.1-hp
724 os=-osf
725 ;;
726 hppro)
727 basic_machine=hppa1.1-hp
728 os=-proelf
729 ;;
730 i370-ibm* | ibm*)
731 basic_machine=i370-ibm
732 ;;
733 i*86v32)
734 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
735 os=-sysv32
736 ;;
737 i*86v4*)
738 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
739 os=-sysv4
740 ;;
741 i*86v)
742 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
743 os=-sysv
744 ;;
745 i*86sol2)
746 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
747 os=-solaris2
748 ;;
749 i386mach)
750 basic_machine=i386-mach
751 os=-mach
752 ;;
753 i386-vsta | vsta)
754 basic_machine=i386-unknown
755 os=-vsta
756 ;;
757 iris | iris4d)
758 basic_machine=mips-sgi
759 case $os in
760 -irix*)
761 ;;
762 *)
763 os=-irix4
764 ;;
765 esac
766 ;;
767 isi68 | isi)
768 basic_machine=m68k-isi
769 os=-sysv
770 ;;
771 m68knommu)
772 basic_machine=m68k-unknown
773 os=-linux
774 ;;
775 m68knommu-*)
776 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
777 os=-linux
778 ;;
779 m88k-omron*)
780 basic_machine=m88k-omron
781 ;;
782 magnum | m3230)
783 basic_machine=mips-mips
784 os=-sysv
785 ;;
786 merlin)
787 basic_machine=ns32k-utek
788 os=-sysv
789 ;;
790 microblaze*)
791 basic_machine=microblaze-xilinx
792 ;;
793 mingw64)
794 basic_machine=x86_64-pc
795 os=-mingw64
796 ;;
797 mingw32)
798 basic_machine=i386-pc
799 os=-mingw32
800 ;;
801 mingw32ce)
802 basic_machine=arm-unknown
803 os=-mingw32ce
804 ;;
805 miniframe)
806 basic_machine=m68000-convergent
807 ;;
808 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
809 basic_machine=m68k-atari
810 os=-mint
811 ;;
812 mips3*-*)
813 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
814 ;;
815 mips3*)
816 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
817 ;;
818 monitor)
819 basic_machine=m68k-rom68k
820 os=-coff
821 ;;
822 morphos)
823 basic_machine=powerpc-unknown
824 os=-morphos
825 ;;
826 msdos)
827 basic_machine=i386-pc
828 os=-msdos
829 ;;
830 ms1-*)
831 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
832 ;;
833 msys)
834 basic_machine=i386-pc
835 os=-msys
836 ;;
837 mvs)
838 basic_machine=i370-ibm
839 os=-mvs
840 ;;
841 nacl)
842 basic_machine=le32-unknown
843 os=-nacl
844 ;;
845 ncr3000)
846 basic_machine=i486-ncr
847 os=-sysv4
848 ;;
849 netbsd386)
850 basic_machine=i386-unknown
851 os=-netbsd
852 ;;
853 netwinder)
854 basic_machine=armv4l-rebel
855 os=-linux
856 ;;
857 news | news700 | news800 | news900)
858 basic_machine=m68k-sony
859 os=-newsos
860 ;;
861 news1000)
862 basic_machine=m68030-sony
863 os=-newsos
864 ;;
865 news-3600 | risc-news)
866 basic_machine=mips-sony
867 os=-newsos
868 ;;
869 necv70)
870 basic_machine=v70-nec
871 os=-sysv
872 ;;
873 next | m*-next )
874 basic_machine=m68k-next
875 case $os in
876 -nextstep* )
877 ;;
878 -ns2*)
879 os=-nextstep2
880 ;;
881 *)
882 os=-nextstep3
883 ;;
884 esac
885 ;;
886 nh3000)
887 basic_machine=m68k-harris
888 os=-cxux
889 ;;
890 nh[45]000)
891 basic_machine=m88k-harris
892 os=-cxux
893 ;;
894 nindy960)
895 basic_machine=i960-intel
896 os=-nindy
897 ;;
898 mon960)
899 basic_machine=i960-intel
900 os=-mon960
901 ;;
902 nonstopux)
903 basic_machine=mips-compaq
904 os=-nonstopux
905 ;;
906 np1)
907 basic_machine=np1-gould
908 ;;
909 neo-tandem)
910 basic_machine=neo-tandem
911 ;;
912 nse-tandem)
913 basic_machine=nse-tandem
914 ;;
915 nsr-tandem)
916 basic_machine=nsr-tandem
917 ;;
918 op50n-* | op60c-*)
919 basic_machine=hppa1.1-oki
920 os=-proelf
921 ;;
922 openrisc | openrisc-*)
923 basic_machine=or32-unknown
924 ;;
925 os400)
926 basic_machine=powerpc-ibm
927 os=-os400
928 ;;
929 OSE68000 | ose68000)
930 basic_machine=m68000-ericsson
931 os=-ose
932 ;;
933 os68k)
934 basic_machine=m68k-none
935 os=-os68k
936 ;;
937 pa-hitachi)
938 basic_machine=hppa1.1-hitachi
939 os=-hiuxwe2
940 ;;
941 paragon)
942 basic_machine=i860-intel
943 os=-osf
944 ;;
945 parisc)
946 basic_machine=hppa-unknown
947 os=-linux
948 ;;
949 parisc-*)
950 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
951 os=-linux
952 ;;
953 pbd)
954 basic_machine=sparc-tti
955 ;;
956 pbb)
957 basic_machine=m68k-tti
958 ;;
959 pc532 | pc532-*)
960 basic_machine=ns32k-pc532
961 ;;
962 pc98)
963 basic_machine=i386-pc
964 ;;
965 pc98-*)
966 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
967 ;;
968 pentium | p5 | k5 | k6 | nexgen | viac3)
969 basic_machine=i586-pc
970 ;;
971 pentiumpro | p6 | 6x86 | athlon | athlon_*)
972 basic_machine=i686-pc
973 ;;
974 pentiumii | pentium2 | pentiumiii | pentium3)
975 basic_machine=i686-pc
976 ;;
977 pentium4)
978 basic_machine=i786-pc
979 ;;
980 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
981 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
982 ;;
983 pentiumpro-* | p6-* | 6x86-* | athlon-*)
984 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
985 ;;
986 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
987 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
988 ;;
989 pentium4-*)
990 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
991 ;;
992 pn)
993 basic_machine=pn-gould
994 ;;
995 power) basic_machine=power-ibm
996 ;;
997 ppc | ppcbe) basic_machine=powerpc-unknown
998 ;;
999 ppc-* | ppcbe-*)
1000 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1001 ;;
1002 ppcle | powerpclittle | ppc-le | powerpc-little)
1003 basic_machine=powerpcle-unknown
1004 ;;
1005 ppcle-* | powerpclittle-*)
1006 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1007 ;;
1008 ppc64) basic_machine=powerpc64-unknown
1009 ;;
1010 ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1011 ;;
1012 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1013 basic_machine=powerpc64le-unknown
1014 ;;
1015 ppc64le-* | powerpc64little-*)
1016 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1017 ;;
1018 ps2)
1019 basic_machine=i386-ibm
1020 ;;
1021 pw32)
1022 basic_machine=i586-unknown
1023 os=-pw32
1024 ;;
1025 rdos | rdos64)
1026 basic_machine=x86_64-pc
1027 os=-rdos
1028 ;;
1029 rdos32)
1030 basic_machine=i386-pc
1031 os=-rdos
1032 ;;
1033 rom68k)
1034 basic_machine=m68k-rom68k
1035 os=-coff
1036 ;;
1037 rm[46]00)
1038 basic_machine=mips-siemens
1039 ;;
1040 rtpc | rtpc-*)
1041 basic_machine=romp-ibm
1042 ;;
1043 s390 | s390-*)
1044 basic_machine=s390-ibm
1045 ;;
1046 s390x | s390x-*)
1047 basic_machine=s390x-ibm
1048 ;;
1049 sa29200)
1050 basic_machine=a29k-amd
1051 os=-udi
1052 ;;
1053 sb1)
1054 basic_machine=mipsisa64sb1-unknown
1055 ;;
1056 sb1el)
1057 basic_machine=mipsisa64sb1el-unknown
1058 ;;
1059 sde)
1060 basic_machine=mipsisa32-sde
1061 os=-elf
1062 ;;
1063 sei)
1064 basic_machine=mips-sei
1065 os=-seiux
1066 ;;
1067 sequent)
1068 basic_machine=i386-sequent
1069 ;;
1070 sh)
1071 basic_machine=sh-hitachi
1072 os=-hms
1073 ;;
1074 sh5el)
1075 basic_machine=sh5le-unknown
1076 ;;
1077 sh64)
1078 basic_machine=sh64-unknown
1079 ;;
1080 sparclite-wrs | simso-wrs)
1081 basic_machine=sparclite-wrs
1082 os=-vxworks
1083 ;;
1084 sps7)
1085 basic_machine=m68k-bull
1086 os=-sysv2
1087 ;;
1088 spur)
1089 basic_machine=spur-unknown
1090 ;;
1091 st2000)
1092 basic_machine=m68k-tandem
1093 ;;
1094 stratus)
1095 basic_machine=i860-stratus
1096 os=-sysv4
1097 ;;
1098 strongarm-* | thumb-*)
1099 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1100 ;;
1101 sun2)
1102 basic_machine=m68000-sun
1103 ;;
1104 sun2os3)
1105 basic_machine=m68000-sun
1106 os=-sunos3
1107 ;;
1108 sun2os4)
1109 basic_machine=m68000-sun
1110 os=-sunos4
1111 ;;
1112 sun3os3)
1113 basic_machine=m68k-sun
1114 os=-sunos3
1115 ;;
1116 sun3os4)
1117 basic_machine=m68k-sun
1118 os=-sunos4
1119 ;;
1120 sun4os3)
1121 basic_machine=sparc-sun
1122 os=-sunos3
1123 ;;
1124 sun4os4)
1125 basic_machine=sparc-sun
1126 os=-sunos4
1127 ;;
1128 sun4sol2)
1129 basic_machine=sparc-sun
1130 os=-solaris2
1131 ;;
1132 sun3 | sun3-*)
1133 basic_machine=m68k-sun
1134 ;;
1135 sun4)
1136 basic_machine=sparc-sun
1137 ;;
1138 sun386 | sun386i | roadrunner)
1139 basic_machine=i386-sun
1140 ;;
1141 sv1)
1142 basic_machine=sv1-cray
1143 os=-unicos
1144 ;;
1145 symmetry)
1146 basic_machine=i386-sequent
1147 os=-dynix
1148 ;;
1149 t3e)
1150 basic_machine=alphaev5-cray
1151 os=-unicos
1152 ;;
1153 t90)
1154 basic_machine=t90-cray
1155 os=-unicos
1156 ;;
1157 tile*)
1158 basic_machine=$basic_machine-unknown
1159 os=-linux-gnu
1160 ;;
1161 tx39)
1162 basic_machine=mipstx39-unknown
1163 ;;
1164 tx39el)
1165 basic_machine=mipstx39el-unknown
1166 ;;
1167 toad1)
1168 basic_machine=pdp10-xkl
1169 os=-tops20
1170 ;;
1171 tower | tower-32)
1172 basic_machine=m68k-ncr
1173 ;;
1174 tpf)
1175 basic_machine=s390x-ibm
1176 os=-tpf
1177 ;;
1178 udi29k)
1179 basic_machine=a29k-amd
1180 os=-udi
1181 ;;
1182 ultra3)
1183 basic_machine=a29k-nyu
1184 os=-sym1
1185 ;;
1186 v810 | necv810)
1187 basic_machine=v810-nec
1188 os=-none
1189 ;;
1190 vaxv)
1191 basic_machine=vax-dec
1192 os=-sysv
1193 ;;
1194 vms)
1195 basic_machine=vax-dec
1196 os=-vms
1197 ;;
1198 vpp*|vx|vx-*)
1199 basic_machine=f301-fujitsu
1200 ;;
1201 vxworks960)
1202 basic_machine=i960-wrs
1203 os=-vxworks
1204 ;;
1205 vxworks68)
1206 basic_machine=m68k-wrs
1207 os=-vxworks
1208 ;;
1209 vxworks29k)
1210 basic_machine=a29k-wrs
1211 os=-vxworks
1212 ;;
1213 w65*)
1214 basic_machine=w65-wdc
1215 os=-none
1216 ;;
1217 w89k-*)
1218 basic_machine=hppa1.1-winbond
1219 os=-proelf
1220 ;;
1221 xbox)
1222 basic_machine=i686-pc
1223 os=-mingw32
1224 ;;
1225 xps | xps100)
1226 basic_machine=xps100-honeywell
1227 ;;
1228 xscale-* | xscalee[bl]-*)
1229 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1230 ;;
1231 ymp)
1232 basic_machine=ymp-cray
1233 os=-unicos
1234 ;;
1235 z8k-*-coff)
1236 basic_machine=z8k-unknown
1237 os=-sim
1238 ;;
1239 z80-*-coff)
1240 basic_machine=z80-unknown
1241 os=-sim
1242 ;;
1243 none)
1244 basic_machine=none-none
1245 os=-none
1246 ;;
1247
1248 # Here we handle the default manufacturer of certain CPU types. It is in
1249 # some cases the only manufacturer, in others, it is the most popular.
1250 w89k)
1251 basic_machine=hppa1.1-winbond
1252 ;;
1253 op50n)
1254 basic_machine=hppa1.1-oki
1255 ;;
1256 op60c)
1257 basic_machine=hppa1.1-oki
1258 ;;
1259 romp)
1260 basic_machine=romp-ibm
1261 ;;
1262 mmix)
1263 basic_machine=mmix-knuth
1264 ;;
1265 rs6000)
1266 basic_machine=rs6000-ibm
1267 ;;
1268 vax)
1269 basic_machine=vax-dec
1270 ;;
1271 pdp10)
1272 # there are many clones, so DEC is not a safe bet
1273 basic_machine=pdp10-unknown
1274 ;;
1275 pdp11)
1276 basic_machine=pdp11-dec
1277 ;;
1278 we32k)
1279 basic_machine=we32k-att
1280 ;;
1281 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1282 basic_machine=sh-unknown
1283 ;;
1284 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1285 basic_machine=sparc-sun
1286 ;;
1287 cydra)
1288 basic_machine=cydra-cydrome
1289 ;;
1290 orion)
1291 basic_machine=orion-highlevel
1292 ;;
1293 orion105)
1294 basic_machine=clipper-highlevel
1295 ;;
1296 mac | mpw | mac-mpw)
1297 basic_machine=m68k-apple
1298 ;;
1299 pmac | pmac-mpw)
1300 basic_machine=powerpc-apple
1301 ;;
1302 *-unknown)
1303 # Make sure to match an already-canonicalized machine name.
1304 ;;
1305 *)
1306 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1307 exit 1
1308 ;;
1309 esac
1310
1311 # Here we canonicalize certain aliases for manufacturers.
1312 case $basic_machine in
1313 *-digital*)
1314 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1315 ;;
1316 *-commodore*)
1317 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1318 ;;
1319 *)
1320 ;;
1321 esac
1322
1323 # Decode manufacturer-specific aliases for certain operating systems.
1324
1325 if [ x"$os" != x"" ]
1326 then
1327 case $os in
1328 # First match some system type aliases
1329 # that might get confused with valid system types.
1330 # -solaris* is a basic system type, with this one exception.
1331 -auroraux)
1332 os=-auroraux
1333 ;;
1334 -solaris1 | -solaris1.*)
1335 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1336 ;;
1337 -solaris)
1338 os=-solaris2
1339 ;;
1340 -svr4*)
1341 os=-sysv4
1342 ;;
1343 -unixware*)
1344 os=-sysv4.2uw
1345 ;;
1346 -gnu/linux*)
1347 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1348 ;;
1349 # First accept the basic system types.
1350 # The portable systems comes first.
1351 # Each alternative MUST END IN A *, to match a version number.
1352 # -sysv* is not here because it comes later, after sysvr4.
1353 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1354 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1355 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1356 | -sym* | -kopensolaris* \
1357 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1358 | -aos* | -aros* \
1359 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1360 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1361 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1362 | -bitrig* | -openbsd* | -solidbsd* \
1363 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1364 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1365 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1366 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1367 | -chorusos* | -chorusrdb* | -cegcc* \
1368 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1369 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1370 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1371 | -uxpv* | -beos* | -mpeix* | -udk* \
1372 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1373 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1374 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1375 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1376 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1377 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1378 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1379 # Remember, each alternative MUST END IN *, to match a version number.
1380 ;;
1381 -qnx*)
1382 case $basic_machine in
1383 x86-* | i*86-*)
1384 ;;
1385 *)
1386 os=-nto$os
1387 ;;
1388 esac
1389 ;;
1390 -nto-qnx*)
1391 ;;
1392 -nto*)
1393 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1394 ;;
1395 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1396 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1397 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1398 ;;
1399 -mac*)
1400 os=`echo $os | sed -e 's|mac|macos|'`
1401 ;;
1402 -linux-dietlibc)
1403 os=-linux-dietlibc
1404 ;;
1405 -linux*)
1406 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1407 ;;
1408 -sunos5*)
1409 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1410 ;;
1411 -sunos6*)
1412 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1413 ;;
1414 -opened*)
1415 os=-openedition
1416 ;;
1417 -os400*)
1418 os=-os400
1419 ;;
1420 -wince*)
1421 os=-wince
1422 ;;
1423 -osfrose*)
1424 os=-osfrose
1425 ;;
1426 -osf*)
1427 os=-osf
1428 ;;
1429 -utek*)
1430 os=-bsd
1431 ;;
1432 -dynix*)
1433 os=-bsd
1434 ;;
1435 -acis*)
1436 os=-aos
1437 ;;
1438 -atheos*)
1439 os=-atheos
1440 ;;
1441 -syllable*)
1442 os=-syllable
1443 ;;
1444 -386bsd)
1445 os=-bsd
1446 ;;
1447 -ctix* | -uts*)
1448 os=-sysv
1449 ;;
1450 -nova*)
1451 os=-rtmk-nova
1452 ;;
1453 -ns2 )
1454 os=-nextstep2
1455 ;;
1456 -nsk*)
1457 os=-nsk
1458 ;;
1459 # Preserve the version number of sinix5.
1460 -sinix5.*)
1461 os=`echo $os | sed -e 's|sinix|sysv|'`
1462 ;;
1463 -sinix*)
1464 os=-sysv4
1465 ;;
1466 -tpf*)
1467 os=-tpf
1468 ;;
1469 -triton*)
1470 os=-sysv3
1471 ;;
1472 -oss*)
1473 os=-sysv3
1474 ;;
1475 -svr4)
1476 os=-sysv4
1477 ;;
1478 -svr3)
1479 os=-sysv3
1480 ;;
1481 -sysvr4)
1482 os=-sysv4
1483 ;;
1484 # This must come after -sysvr4.
1485 -sysv*)
1486 ;;
1487 -ose*)
1488 os=-ose
1489 ;;
1490 -es1800*)
1491 os=-ose
1492 ;;
1493 -xenix)
1494 os=-xenix
1495 ;;
1496 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1497 os=-mint
1498 ;;
1499 -aros*)
1500 os=-aros
1501 ;;
1502 -kaos*)
1503 os=-kaos
1504 ;;
1505 -zvmoe)
1506 os=-zvmoe
1507 ;;
1508 -dicos*)
1509 os=-dicos
1510 ;;
1511 -nacl*)
1512 ;;
1513 -none)
1514 ;;
1515 *)
1516 # Get rid of the `-' at the beginning of $os.
1517 os=`echo $os | sed 's/[^-]*-//'`
1518 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1519 exit 1
1520 ;;
1521 esac
1522 else
1523
1524 # Here we handle the default operating systems that come with various machines.
1525 # The value should be what the vendor currently ships out the door with their
1526 # machine or put another way, the most popular os provided with the machine.
1527
1528 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1529 # "-sun"), then you have to tell the case statement up towards the top
1530 # that MANUFACTURER isn't an operating system. Otherwise, code above
1531 # will signal an error saying that MANUFACTURER isn't an operating
1532 # system, and we'll never get to this point.
1533
1534 case $basic_machine in
1535 score-*)
1536 os=-elf
1537 ;;
1538 spu-*)
1539 os=-elf
1540 ;;
1541 *-acorn)
1542 os=-riscix1.2
1543 ;;
1544 arm*-rebel)
1545 os=-linux
1546 ;;
1547 arm*-semi)
1548 os=-aout
1549 ;;
1550 c4x-* | tic4x-*)
1551 os=-coff
1552 ;;
1553 hexagon-*)
1554 os=-elf
1555 ;;
1556 tic54x-*)
1557 os=-coff
1558 ;;
1559 tic55x-*)
1560 os=-coff
1561 ;;
1562 tic6x-*)
1563 os=-coff
1564 ;;
1565 # This must come before the *-dec entry.
1566 pdp10-*)
1567 os=-tops20
1568 ;;
1569 pdp11-*)
1570 os=-none
1571 ;;
1572 *-dec | vax-*)
1573 os=-ultrix4.2
1574 ;;
1575 m68*-apollo)
1576 os=-domain
1577 ;;
1578 i386-sun)
1579 os=-sunos4.0.2
1580 ;;
1581 m68000-sun)
1582 os=-sunos3
1583 ;;
1584 m68*-cisco)
1585 os=-aout
1586 ;;
1587 mep-*)
1588 os=-elf
1589 ;;
1590 mips*-cisco)
1591 os=-elf
1592 ;;
1593 mips*-*)
1594 os=-elf
1595 ;;
1596 or32-*)
1597 os=-coff
1598 ;;
1599 *-tti) # must be before sparc entry or we get the wrong os.
1600 os=-sysv3
1601 ;;
1602 sparc-* | *-sun)
1603 os=-sunos4.1.1
1604 ;;
1605 *-be)
1606 os=-beos
1607 ;;
1608 *-haiku)
1609 os=-haiku
1610 ;;
1611 *-ibm)
1612 os=-aix
1613 ;;
1614 *-knuth)
1615 os=-mmixware
1616 ;;
1617 *-wec)
1618 os=-proelf
1619 ;;
1620 *-winbond)
1621 os=-proelf
1622 ;;
1623 *-oki)
1624 os=-proelf
1625 ;;
1626 *-hp)
1627 os=-hpux
1628 ;;
1629 *-hitachi)
1630 os=-hiux
1631 ;;
1632 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1633 os=-sysv
1634 ;;
1635 *-cbm)
1636 os=-amigaos
1637 ;;
1638 *-dg)
1639 os=-dgux
1640 ;;
1641 *-dolphin)
1642 os=-sysv3
1643 ;;
1644 m68k-ccur)
1645 os=-rtu
1646 ;;
1647 m88k-omron*)
1648 os=-luna
1649 ;;
1650 *-next )
1651 os=-nextstep
1652 ;;
1653 *-sequent)
1654 os=-ptx
1655 ;;
1656 *-crds)
1657 os=-unos
1658 ;;
1659 *-ns)
1660 os=-genix
1661 ;;
1662 i370-*)
1663 os=-mvs
1664 ;;
1665 *-next)
1666 os=-nextstep3
1667 ;;
1668 *-gould)
1669 os=-sysv
1670 ;;
1671 *-highlevel)
1672 os=-bsd
1673 ;;
1674 *-encore)
1675 os=-bsd
1676 ;;
1677 *-sgi)
1678 os=-irix
1679 ;;
1680 *-siemens)
1681 os=-sysv4
1682 ;;
1683 *-masscomp)
1684 os=-rtu
1685 ;;
1686 f30[01]-fujitsu | f700-fujitsu)
1687 os=-uxpv
1688 ;;
1689 *-rom68k)
1690 os=-coff
1691 ;;
1692 *-*bug)
1693 os=-coff
1694 ;;
1695 *-apple)
1696 os=-macos
1697 ;;
1698 *-atari*)
1699 os=-mint
1700 ;;
1701 *)
1702 os=-none
1703 ;;
1704 esac
1705 fi
1706
1707 # Here we handle the case where we know the os, and the CPU type, but not the
1708 # manufacturer. We pick the logical manufacturer.
1709 vendor=unknown
1710 case $basic_machine in
1711 *-unknown)
1712 case $os in
1713 -riscix*)
1714 vendor=acorn
1715 ;;
1716 -sunos*)
1717 vendor=sun
1718 ;;
1719 -cnk*|-aix*)
1720 vendor=ibm
1721 ;;
1722 -beos*)
1723 vendor=be
1724 ;;
1725 -hpux*)
1726 vendor=hp
1727 ;;
1728 -mpeix*)
1729 vendor=hp
1730 ;;
1731 -hiux*)
1732 vendor=hitachi
1733 ;;
1734 -unos*)
1735 vendor=crds
1736 ;;
1737 -dgux*)
1738 vendor=dg
1739 ;;
1740 -luna*)
1741 vendor=omron
1742 ;;
1743 -genix*)
1744 vendor=ns
1745 ;;
1746 -mvs* | -opened*)
1747 vendor=ibm
1748 ;;
1749 -os400*)
1750 vendor=ibm
1751 ;;
1752 -ptx*)
1753 vendor=sequent
1754 ;;
1755 -tpf*)
1756 vendor=ibm
1757 ;;
1758 -vxsim* | -vxworks* | -windiss*)
1759 vendor=wrs
1760 ;;
1761 -aux*)
1762 vendor=apple
1763 ;;
1764 -hms*)
1765 vendor=hitachi
1766 ;;
1767 -mpw* | -macos*)
1768 vendor=apple
1769 ;;
1770 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1771 vendor=atari
1772 ;;
1773 -vos*)
1774 vendor=stratus
1775 ;;
1776 esac
1777 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1778 ;;
1779 esac
1780
1781 echo $basic_machine$os
1782 exit
1783
1784 # Local variables:
1785 # eval: (add-hook 'write-file-hooks 'time-stamp)
1786 # time-stamp-start: "timestamp='"
1787 # time-stamp-format: "%:y-%02m-%02d"
1788 # time-stamp-end: "'"
1789 # End:
+0
-21389
configure less more
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for ibus-input-pad 1.4.2.
3 #
4 # Report bugs to <http://code.google.com/p/input-pad/issues/entry>.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163 emulate sh
164 NULLCMD=:
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168 setopt NO_GLOB_SUBST
169 else
170 case \`(set -o) 2>/dev/null\` in #(
171 *posix*) :
172 set -o posix ;; #(
173 *) :
174 ;;
175 esac
176 fi
177 "
178 as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
192 exitcode=1; echo positional parameters were not saved.
193 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test \$(( 1 + 1 )) = 2 || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
209 if (eval "$as_required") 2>/dev/null; then :
210 as_have_required=yes
211 else
212 as_have_required=no
213 fi
214 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215
216 else
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 as_found=false
219 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 do
221 IFS=$as_save_IFS
222 test -z "$as_dir" && as_dir=.
223 as_found=:
224 case $as_dir in #(
225 /*)
226 for as_base in sh bash ksh sh5; do
227 # Try only shells that exist, to save several forks.
228 as_shell=$as_dir/$as_base
229 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
230 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 CONFIG_SHELL=$as_shell as_have_required=yes
232 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 break 2
234 fi
235 fi
236 done;;
237 esac
238 as_found=false
239 done
240 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
241 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi; }
244 IFS=$as_save_IFS
245
246
247 if test "x$CONFIG_SHELL" != x; then :
248 export CONFIG_SHELL
249 # We cannot yet assume a decent shell, so we have to provide a
250 # neutralization value for shells without unset; and this also
251 # works around shells that cannot unset nonexistent variables.
252 # Preserve -v and -x to the replacement shell.
253 BASH_ENV=/dev/null
254 ENV=/dev/null
255 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 case $- in # ((((
257 *v*x* | *x*v* ) as_opts=-vx ;;
258 *v* ) as_opts=-v ;;
259 *x* ) as_opts=-x ;;
260 * ) as_opts= ;;
261 esac
262 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
263 # Admittedly, this is quite paranoid, since all the known shells bail
264 # out after a failed `exec'.
265 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
266 exit 255
267 fi
268
269 if test x$as_have_required = xno; then :
270 $as_echo "$0: This script requires a shell more modern than all"
271 $as_echo "$0: the shells that I found on your system."
272 if test x${ZSH_VERSION+set} = xset ; then
273 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 $as_echo "$0: Please tell bug-autoconf@gnu.org and
277 $0: http://code.google.com/p/input-pad/issues/entry about
278 $0: your system, including any error possibly output before
279 $0: this message. Then install a modern shell, or manually
280 $0: run the script under such a shell if you do have one."
281 fi
282 exit 1
283 fi
284 fi
285 fi
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
291
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
299 {
300 { eval $1=; unset $1;}
301 }
302 as_unset=as_fn_unset
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405 else
406 as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 }
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
487 b
488 :lineno
489 N
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
508 }
509
510 ECHO_C= ECHO_N= ECHO_T=
511 case `echo -n x` in #(((((
512 -n*)
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
518 esac;;
519 *)
520 ECHO_N='-n';;
521 esac
522
523 rm -f conf$$ conf$$.exe conf$$.file
524 if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526 else
527 rm -f conf$$.dir
528 mkdir conf$$.dir 2>/dev/null
529 fi
530 if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538 as_ln_s='cp -pR'
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
542 as_ln_s='cp -pR'
543 fi
544 else
545 as_ln_s='cp -pR'
546 fi
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
549
550 if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
552 else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
555 fi
556
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
559
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
566 SHELL=${CONFIG_SHELL-/bin/sh}
567
568
569 test -n "$DJDIR" || exec 7<&0 </dev/null
570 exec 6>&1
571
572 # Name of the host.
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577 #
578 # Initializations.
579 #
580 ac_default_prefix=/usr/local
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='ibus-input-pad'
591 PACKAGE_TARNAME='ibus-input-pad'
592 PACKAGE_VERSION='1.4.2'
593 PACKAGE_STRING='ibus-input-pad 1.4.2'
594 PACKAGE_BUGREPORT='http://code.google.com/p/input-pad/issues/entry'
595 PACKAGE_URL=''
596
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 # include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 # include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 MKINSTALLDIRS
638 POSUB
639 POFILES
640 PO_IN_DATADIR_FALSE
641 PO_IN_DATADIR_TRUE
642 INTLLIBS
643 INSTOBJEXT
644 GMOFILES
645 CATOBJEXT
646 CATALOGS
647 MSGFMT_OPTS
648 GETTEXT_PACKAGE
649 INPUT_PAD_LIBS
650 INPUT_PAD_CFLAGS
651 IBUS_LIBS
652 IBUS_CFLAGS
653 GTK3_LIBS
654 GTK3_CFLAGS
655 HAVE_GTK2_FALSE
656 HAVE_GTK2_TRUE
657 HAVE_GTK3_FALSE
658 HAVE_GTK3_TRUE
659 GTK2_LIBS
660 GTK2_CFLAGS
661 GLIB2_LIBS
662 GLIB2_CFLAGS
663 GLIB_COMPILE_RESOURCES
664 GLIB_MKENUMS
665 GOBJECT_QUERY
666 GLIB_GENMARSHAL
667 GLIB_LIBS
668 GLIB_CFLAGS
669 PKG_CONFIG_LIBDIR
670 PKG_CONFIG_PATH
671 PKG_CONFIG
672 DATE_DISPLAY
673 DATADIRNAME
674 ALL_LINGUAS
675 INTLTOOL_PERL
676 GMSGFMT
677 MSGFMT
678 MSGMERGE
679 XGETTEXT
680 INTLTOOL_POLICY_RULE
681 INTLTOOL_SERVICE_RULE
682 INTLTOOL_THEME_RULE
683 INTLTOOL_SCHEMAS_RULE
684 INTLTOOL_CAVES_RULE
685 INTLTOOL_XML_NOMERGE_RULE
686 INTLTOOL_XML_RULE
687 INTLTOOL_KBD_RULE
688 INTLTOOL_XAM_RULE
689 INTLTOOL_UI_RULE
690 INTLTOOL_SOUNDLIST_RULE
691 INTLTOOL_SHEET_RULE
692 INTLTOOL_SERVER_RULE
693 INTLTOOL_PONG_RULE
694 INTLTOOL_OAF_RULE
695 INTLTOOL_PROP_RULE
696 INTLTOOL_KEYS_RULE
697 INTLTOOL_DIRECTORY_RULE
698 INTLTOOL_DESKTOP_RULE
699 intltool__v_merge_options_0
700 intltool__v_merge_options_
701 INTLTOOL_V_MERGE_OPTIONS
702 INTLTOOL__v_MERGE_0
703 INTLTOOL__v_MERGE_
704 INTLTOOL_V_MERGE
705 INTLTOOL_EXTRACT
706 INTLTOOL_MERGE
707 INTLTOOL_UPDATE
708 USE_NLS
709 CXXCPP
710 OTOOL64
711 OTOOL
712 LIPO
713 NMEDIT
714 DSYMUTIL
715 MANIFEST_TOOL
716 RANLIB
717 ac_ct_AR
718 AR
719 DLLTOOL
720 OBJDUMP
721 LN_S
722 NM
723 ac_ct_DUMPBIN
724 DUMPBIN
725 LD
726 FGREP
727 SED
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 LIBTOOL
737 am__fastdepCXX_FALSE
738 am__fastdepCXX_TRUE
739 CXXDEPMODE
740 ac_ct_CXX
741 CXXFLAGS
742 CXX
743 MAINT
744 MAINTAINER_MODE_FALSE
745 MAINTAINER_MODE_TRUE
746 libinput_pad_VERSION
747 EGREP
748 GREP
749 CPP
750 am__fastdepCC_FALSE
751 am__fastdepCC_TRUE
752 CCDEPMODE
753 am__nodep
754 AMDEPBACKSLASH
755 AMDEP_FALSE
756 AMDEP_TRUE
757 am__quote
758 am__include
759 DEPDIR
760 OBJEXT
761 EXEEXT
762 ac_ct_CC
763 CPPFLAGS
764 LDFLAGS
765 CFLAGS
766 CC
767 AM_BACKSLASH
768 AM_DEFAULT_VERBOSITY
769 AM_DEFAULT_V
770 AM_V
771 am__untar
772 am__tar
773 AMTAR
774 am__leading_dot
775 SET_MAKE
776 AWK
777 mkdir_p
778 MKDIR_P
779 INSTALL_STRIP_PROGRAM
780 STRIP
781 install_sh
782 MAKEINFO
783 AUTOHEADER
784 AUTOMAKE
785 AUTOCONF
786 ACLOCAL
787 VERSION
788 PACKAGE
789 CYGPATH_W
790 am__isrc
791 INSTALL_DATA
792 INSTALL_SCRIPT
793 INSTALL_PROGRAM
794 target_alias
795 host_alias
796 build_alias
797 LIBS
798 ECHO_T
799 ECHO_N
800 ECHO_C
801 DEFS
802 mandir
803 localedir
804 libdir
805 psdir
806 pdfdir
807 dvidir
808 htmldir
809 infodir
810 docdir
811 oldincludedir
812 includedir
813 localstatedir
814 sharedstatedir
815 sysconfdir
816 datadir
817 datarootdir
818 libexecdir
819 sbindir
820 bindir
821 program_transform_name
822 prefix
823 exec_prefix
824 PACKAGE_URL
825 PACKAGE_BUGREPORT
826 PACKAGE_STRING
827 PACKAGE_VERSION
828 PACKAGE_TARNAME
829 PACKAGE_NAME
830 PATH_SEPARATOR
831 SHELL'
832 ac_subst_files=''
833 ac_user_opts='
834 enable_option_checking
835 enable_silent_rules
836 enable_dependency_tracking
837 enable_maintainer_mode
838 enable_static
839 enable_shared
840 with_pic
841 enable_fast_install
842 with_gnu_ld
843 with_sysroot
844 enable_libtool_lock
845 enable_nls
846 enable_glibtest
847 with_gtk
848 '
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 CPP
858 CXX
859 CXXFLAGS
860 CCC
861 CXXCPP
862 PKG_CONFIG
863 PKG_CONFIG_PATH
864 PKG_CONFIG_LIBDIR
865 GLIB2_CFLAGS
866 GLIB2_LIBS
867 GTK2_CFLAGS
868 GTK2_LIBS
869 GTK3_CFLAGS
870 GTK3_LIBS
871 IBUS_CFLAGS
872 IBUS_LIBS
873 INPUT_PAD_CFLAGS
874 INPUT_PAD_LIBS'
875
876
877 # Initialize some variables set by options.
878 ac_init_help=
879 ac_init_version=false
880 ac_unrecognized_opts=
881 ac_unrecognized_sep=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
932 ac_prev=
933 continue
934 fi
935
936 case $ac_option in
937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *=) ac_optarg= ;;
939 *) ac_optarg=yes ;;
940 esac
941
942 # Accept the important Cygnus configure options, so we can diagnose typos.
943
944 case $ac_dashdash$ac_option in
945 --)
946 ac_dashdash=yes ;;
947
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 ac_prev=bindir ;;
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 bindir=$ac_optarg ;;
952
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
957
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
964
965 --config-cache | -C)
966 cache_file=config.cache ;;
967
968 -datadir | --datadir | --datadi | --datad)
969 ac_prev=datadir ;;
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
972
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
979
980 -disable-* | --disable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=no ;;
995
996 -docdir | --docdir | --docdi | --doc | --do)
997 ac_prev=docdir ;;
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 docdir=$ac_optarg ;;
1000
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 ac_prev=dvidir ;;
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1005
1006 -enable-* | --enable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015 "enable_$ac_useropt"
1016 "*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=\$ac_optarg ;;
1021
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1030
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1033 with_gas=yes ;;
1034
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1041
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1046
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 ac_prev=htmldir ;;
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 | --ht=*)
1051 htmldir=$ac_optarg ;;
1052
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1059
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 ac_prev=infodir ;;
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1064
1065 -libdir | --libdir | --libdi | --libd)
1066 ac_prev=libdir ;;
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1069
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1076
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1081
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1088
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 ac_prev=mandir ;;
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1093
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1096 with_fp=no ;;
1097
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1100 no_create=yes ;;
1101
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 no_recursion=yes ;;
1105
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1114
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 ac_prev=prefix ;;
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1119
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1126
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1133
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1150
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 ac_prev=pdfdir ;;
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1155
1156 -psdir | --psdir | --psdi | --psd | --ps)
1157 ac_prev=psdir ;;
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 psdir=$ac_optarg ;;
1160
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1163 silent=yes ;;
1164
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 ac_prev=sbindir ;;
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 | --sbi=* | --sb=*)
1169 sbindir=$ac_optarg ;;
1170
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1174 | --sha | --sh)
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 | --sha=* | --sh=*)
1180 sharedstatedir=$ac_optarg ;;
1181
1182 -site | --site | --sit)
1183 ac_prev=site ;;
1184 -site=* | --site=* | --sit=*)
1185 site=$ac_optarg ;;
1186
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 ac_prev=srcdir ;;
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1191
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1198
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1203
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 verbose=yes ;;
1206
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1209
1210 -with-* | --with-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=\$ac_optarg ;;
1225
1226 -without-* | --without-*)
1227 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230 as_fn_error $? "invalid package name: $ac_useropt"
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1234 *"
1235 "with_$ac_useropt"
1236 "*) ;;
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1239 esac
1240 eval with_$ac_useropt=no ;;
1241
1242 --x)
1243 # Obsolete; use --with-x.
1244 with_x=yes ;;
1245
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1252
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1259
1260 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information"
1262 ;;
1263
1264 *=*)
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' | [0-9]* | *[!_$as_cr_alnum]* )
1269 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270 esac
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1273
1274 *)
1275 # FIXME: should be removed in autoconf 3.0.
1276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280 ;;
1281
1282 esac
1283 done
1284
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error $? "missing argument to $ac_option"
1288 fi
1289
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1292 no) ;;
1293 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 esac
1296 fi
1297
1298 # Check all directory arguments for consistency.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1303 do
1304 eval ac_val=\$$ac_var
1305 # Remove trailing slashes.
1306 case $ac_val in
1307 */ )
1308 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\$ac_val;;
1310 esac
1311 # Be sure to have absolute directory names.
1312 case $ac_val in
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 esac
1316 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 done
1318
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1325
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 elif test "x$build_alias" != "x$host_alias"; then
1331 cross_compiling=yes
1332 fi
1333 fi
1334
1335 ac_tool_prefix=
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338 test "$silent" = yes && exec 6>/dev/null
1339
1340
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 as_fn_error $? "working directory cannot be determined"
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 as_fn_error $? "pwd does not report name of working directory"
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 $as_echo X"$as_myself" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)[^/].*/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\).*/{
1372 s//\1/
1373 q
1374 }
1375 s/.*/./; q'`
1376 srcdir=$ac_confdir
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 srcdir=..
1379 fi
1380 else
1381 ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390 pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1394 fi
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1407
1408 #
1409 # Report the --help message.
1410 #
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415 \`configure' configures ibus-input-pad 1.4.2 to adapt to many kinds of systems.
1416
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1421
1422 Defaults for the options are specified in brackets.
1423
1424 Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking ...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1440
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1445
1446 For better control, use the options below.
1447
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/ibus-input-pad]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1469
1470 cat <<\_ACEOF
1471
1472 Program names:
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476
1477 System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of ibus-input-pad 1.4.2:";;
1486 esac
1487 cat <<\_ACEOF
1488
1489 Optional Features:
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-silent-rules less verbose build output (undo: "make V=1")
1494 --disable-silent-rules verbose build output (undo: "make V=0")
1495 --enable-dependency-tracking
1496 do not reject slow dependency extractors
1497 --disable-dependency-tracking
1498 speeds up one-time build
1499 --disable-maintainer-mode
1500 disable make rules and dependencies not useful (and
1501 sometimes confusing) to the casual installer
1502 --enable-static[=PKGS] build static libraries [default=no]
1503 --enable-shared[=PKGS] build shared libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1507 --disable-nls do not use Native Language Support
1508 --disable-glibtest do not try to compile and run a test GLIB program
1509
1510 Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1514 both]
1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1516 --with-sysroot=DIR Search for dependent libraries within DIR
1517 (or the compiler's sysroot if not specified).
1518 --with-gtk=2.0|3.0 Select GTK+ version. The default is 3.0
1519
1520 Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1528 CPP C preprocessor
1529 CXX C++ compiler command
1530 CXXFLAGS C++ compiler flags
1531 CXXCPP C++ preprocessor
1532 PKG_CONFIG path to pkg-config utility
1533 PKG_CONFIG_PATH
1534 directories to add to pkg-config's search path
1535 PKG_CONFIG_LIBDIR
1536 path overriding pkg-config's built-in search path
1537 GLIB2_CFLAGS
1538 C compiler flags for GLIB2, overriding pkg-config
1539 GLIB2_LIBS linker flags for GLIB2, overriding pkg-config
1540 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1541 GTK2_LIBS linker flags for GTK2, overriding pkg-config
1542 GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config
1543 GTK3_LIBS linker flags for GTK3, overriding pkg-config
1544 IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
1545 IBUS_LIBS linker flags for IBUS, overriding pkg-config
1546 INPUT_PAD_CFLAGS
1547 C compiler flags for INPUT_PAD, overriding pkg-config
1548 INPUT_PAD_LIBS
1549 linker flags for INPUT_PAD, overriding pkg-config
1550
1551 Use these variables to override the choices made by `configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1553
1554 Report bugs to <http://code.google.com/p/input-pad/issues/entry>.
1555 _ACEOF
1556 ac_status=$?
1557 fi
1558
1559 if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 continue
1565 ac_builddir=.
1566
1567 case "$ac_dir" in
1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *)
1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577 esac
1578 ac_abs_top_builddir=$ac_pwd
1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580 # for backward compatibility:
1581 ac_top_builddir=$ac_top_build_prefix
1582
1583 case $srcdir in
1584 .) # We are building in place.
1585 ac_srcdir=.
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
1589 ac_srcdir=$srcdir$ac_dir_suffix;
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 esac
1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1607 else
1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1611 done
1612 fi
1613
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1616 cat <<\_ACEOF
1617 ibus-input-pad configure 1.4.2
1618 generated by GNU Autoconf 2.69
1619
1620 Copyright (C) 2012 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624 exit
1625 fi
1626
1627 ## ------------------------ ##
1628 ## Autoconf initialization. ##
1629 ## ------------------------ ##
1630
1631 # ac_fn_c_try_compile LINENO
1632 # --------------------------
1633 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_compile ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663 fi
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_compile
1668
1669 # ac_fn_c_try_cpp LINENO
1670 # ----------------------
1671 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_cpp ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } > conftest.i && {
1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700 fi
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_cpp
1705
1706 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1709 # the include files in INCLUDES and setting the cache variable VAR
1710 # accordingly.
1711 ac_fn_c_check_header_mongrel ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if eval \${$3+:} false; then :
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1719 fi
1720 eval ac_res=\$$3
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1723 else
1724 # Is the header compilable?
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1726 $as_echo_n "checking $2 usability... " >&6; }
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 $4
1730 #include <$2>
1731 _ACEOF
1732 if ac_fn_c_try_compile "$LINENO"; then :
1733 ac_header_compiler=yes
1734 else
1735 ac_header_compiler=no
1736 fi
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1739 $as_echo "$ac_header_compiler" >&6; }
1740
1741 # Is the header present?
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1743 $as_echo_n "checking $2 presence... " >&6; }
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_cpp "$LINENO"; then :
1749 ac_header_preproc=yes
1750 else
1751 ac_header_preproc=no
1752 fi
1753 rm -f conftest.err conftest.i conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1755 $as_echo "$ac_header_preproc" >&6; }
1756
1757 # So? What about this header?
1758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1759 yes:no: )
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1761 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1763 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1764 ;;
1765 no:yes:* )
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1767 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1769 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1771 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1773 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1775 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1776 ( $as_echo "## -------------------------------------------------------------- ##
1777 ## Report this to http://code.google.com/p/input-pad/issues/entry ##
1778 ## -------------------------------------------------------------- ##"
1779 ) | sed "s/^/$as_me: WARNING: /" >&2
1780 ;;
1781 esac
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1786 else
1787 eval "$3=\$ac_header_compiler"
1788 fi
1789 eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 fi
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_header_mongrel
1796
1797 # ac_fn_c_try_run LINENO
1798 # ----------------------
1799 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1800 # that executables *can* be run.
1801 ac_fn_c_try_run ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 if { { ac_try="$ac_link"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>&5
1812 ac_status=$?
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1815 { { case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_try") 2>&5
1822 ac_status=$?
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; }; }; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: program exited with status $ac_status" >&5
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=$ac_status
1832 fi
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_run
1838
1839 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1840 # -------------------------------------------------------
1841 # Tests whether HEADER exists and can be compiled using the include files in
1842 # INCLUDES, setting the cache variable VAR accordingly.
1843 ac_fn_c_check_header_compile ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850 else
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 $4
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857 eval "$3=yes"
1858 else
1859 eval "$3=no"
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 fi
1863 eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868 } # ac_fn_c_check_header_compile
1869
1870 # ac_fn_cxx_try_compile LINENO
1871 # ----------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_compile ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1890 fi
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.$ac_objext; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=1
1902 fi
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1905
1906 } # ac_fn_cxx_try_compile
1907
1908 # ac_fn_c_try_link LINENO
1909 # -----------------------
1910 # Try to link conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_c_try_link ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 rm -f conftest.$ac_objext conftest$ac_exeext
1915 if { { ac_try="$ac_link"
1916 case "(($ac_try" in
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_link") 2>conftest.err
1923 ac_status=$?
1924 if test -s conftest.err; then
1925 grep -v '^ *+' conftest.err >conftest.er1
1926 cat conftest.er1 >&5
1927 mv -f conftest.er1 conftest.err
1928 fi
1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; } && {
1931 test -z "$ac_c_werror_flag" ||
1932 test ! -s conftest.err
1933 } && test -s conftest$ac_exeext && {
1934 test "$cross_compiling" = yes ||
1935 test -x conftest$ac_exeext
1936 }; then :
1937 ac_retval=0
1938 else
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942 ac_retval=1
1943 fi
1944 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1945 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1946 # interfere with the next link command; also delete a directory that is
1947 # left behind by Apple's compiler. We do this before executing the actions.
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1951
1952 } # ac_fn_c_try_link
1953
1954 # ac_fn_c_check_func LINENO FUNC VAR
1955 # ----------------------------------
1956 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1957 ac_fn_c_check_func ()
1958 {
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if eval \${$3+:} false; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1967 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1969 #define $2 innocuous_$2
1970
1971 /* System header to define __stub macros and hopefully few prototypes,
1972 which can conflict with char $2 (); below.
1973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1974 <limits.h> exists even on freestanding compilers. */
1975
1976 #ifdef __STDC__
1977 # include <limits.h>
1978 #else
1979 # include <assert.h>
1980 #endif
1981
1982 #undef $2
1983
1984 /* Override any GCC internal prototype to avoid an error.
1985 Use char because int might match the return type of a GCC
1986 builtin and then its argument prototype would still apply. */
1987 #ifdef __cplusplus
1988 extern "C"
1989 #endif
1990 char $2 ();
1991 /* The GNU C library defines this for functions which it implements
1992 to always fail with ENOSYS. Some functions are actually named
1993 something starting with __ and the normal name is an alias. */
1994 #if defined __stub_$2 || defined __stub___$2
1995 choke me
1996 #endif
1997
1998 int
1999 main ()
2000 {
2001 return $2 ();
2002 ;
2003 return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_link "$LINENO"; then :
2007 eval "$3=yes"
2008 else
2009 eval "$3=no"
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext \
2012 conftest$ac_exeext conftest.$ac_ext
2013 fi
2014 eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019 } # ac_fn_c_check_func
2020
2021 # ac_fn_cxx_try_cpp LINENO
2022 # ------------------------
2023 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2024 ac_fn_cxx_try_cpp ()
2025 {
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 if { { ac_try="$ac_cpp conftest.$ac_ext"
2028 case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2031 esac
2032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033 $as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2035 ac_status=$?
2036 if test -s conftest.err; then
2037 grep -v '^ *+' conftest.err >conftest.er1
2038 cat conftest.er1 >&5
2039 mv -f conftest.er1 conftest.err
2040 fi
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; } > conftest.i && {
2043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2044 test ! -s conftest.err
2045 }; then :
2046 ac_retval=0
2047 else
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_retval=1
2052 fi
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 as_fn_set_status $ac_retval
2055
2056 } # ac_fn_cxx_try_cpp
2057
2058 # ac_fn_cxx_try_link LINENO
2059 # -------------------------
2060 # Try to link conftest.$ac_ext, and return whether this succeeded.
2061 ac_fn_cxx_try_link ()
2062 {
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 rm -f conftest.$ac_objext conftest$ac_exeext
2065 if { { ac_try="$ac_link"
2066 case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_link") 2>conftest.err
2073 ac_status=$?
2074 if test -s conftest.err; then
2075 grep -v '^ *+' conftest.err >conftest.er1
2076 cat conftest.er1 >&5
2077 mv -f conftest.er1 conftest.err
2078 fi
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && {
2081 test -z "$ac_cxx_werror_flag" ||
2082 test ! -s conftest.err
2083 } && test -s conftest$ac_exeext && {
2084 test "$cross_compiling" = yes ||
2085 test -x conftest$ac_exeext
2086 }; then :
2087 ac_retval=0
2088 else
2089 $as_echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2091
2092 ac_retval=1
2093 fi
2094 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2095 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2096 # interfere with the next link command; also delete a directory that is
2097 # left behind by Apple's compiler. We do this before executing the actions.
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2101
2102 } # ac_fn_cxx_try_link
2103 cat >config.log <<_ACEOF
2104 This file contains any messages produced by compilers while
2105 running configure, to aid debugging if configure makes a mistake.
2106
2107 It was created by ibus-input-pad $as_me 1.4.2, which was
2108 generated by GNU Autoconf 2.69. Invocation command line was
2109
2110 $ $0 $@
2111
2112 _ACEOF
2113 exec 5>>config.log
2114 {
2115 cat <<_ASUNAME
2116 ## --------- ##
2117 ## Platform. ##
2118 ## --------- ##
2119
2120 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2121 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2122 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2123 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2124 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2125
2126 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2127 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2128
2129 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2130 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2131 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2132 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2133 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2134 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2135 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2136
2137 _ASUNAME
2138
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 $as_echo "PATH: $as_dir"
2145 done
2146 IFS=$as_save_IFS
2147
2148 } >&5
2149
2150 cat >&5 <<_ACEOF
2151
2152
2153 ## ----------- ##
2154 ## Core tests. ##
2155 ## ----------- ##
2156
2157 _ACEOF
2158
2159
2160 # Keep a trace of the command line.
2161 # Strip out --no-create and --no-recursion so they do not pile up.
2162 # Strip out --silent because we don't want to record it for future runs.
2163 # Also quote any args containing shell meta-characters.
2164 # Make two passes to allow for proper duplicate-argument suppression.
2165 ac_configure_args=
2166 ac_configure_args0=
2167 ac_configure_args1=
2168 ac_must_keep_next=false
2169 for ac_pass in 1 2
2170 do
2171 for ac_arg
2172 do
2173 case $ac_arg in
2174 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2176 | -silent | --silent | --silen | --sile | --sil)
2177 continue ;;
2178 *\'*)
2179 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2180 esac
2181 case $ac_pass in
2182 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2183 2)
2184 as_fn_append ac_configure_args1 " '$ac_arg'"
2185 if test $ac_must_keep_next = true; then
2186 ac_must_keep_next=false # Got value, back to normal.
2187 else
2188 case $ac_arg in
2189 *=* | --config-cache | -C | -disable-* | --disable-* \
2190 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2191 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2192 | -with-* | --with-* | -without-* | --without-* | --x)
2193 case "$ac_configure_args0 " in
2194 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2195 esac
2196 ;;
2197 -* ) ac_must_keep_next=true ;;
2198 esac
2199 fi
2200 as_fn_append ac_configure_args " '$ac_arg'"
2201 ;;
2202 esac
2203 done
2204 done
2205 { ac_configure_args0=; unset ac_configure_args0;}
2206 { ac_configure_args1=; unset ac_configure_args1;}
2207
2208 # When interrupted or exit'd, cleanup temporary files, and complete
2209 # config.log. We remove comments because anyway the quotes in there
2210 # would cause problems or look ugly.
2211 # WARNING: Use '\'' to represent an apostrophe within the trap.
2212 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2213 trap 'exit_status=$?
2214 # Save into config.log some information that might help in debugging.
2215 {
2216 echo
2217
2218 $as_echo "## ---------------- ##
2219 ## Cache variables. ##
2220 ## ---------------- ##"
2221 echo
2222 # The following way of writing the cache mishandles newlines in values,
2223 (
2224 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2225 eval ac_val=\$$ac_var
2226 case $ac_val in #(
2227 *${as_nl}*)
2228 case $ac_var in #(
2229 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2230 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2231 esac
2232 case $ac_var in #(
2233 _ | IFS | as_nl) ;; #(
2234 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2235 *) { eval $ac_var=; unset $ac_var;} ;;
2236 esac ;;
2237 esac
2238 done
2239 (set) 2>&1 |
2240 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2241 *${as_nl}ac_space=\ *)
2242 sed -n \
2243 "s/'\''/'\''\\\\'\'''\''/g;
2244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2245 ;; #(
2246 *)
2247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2248 ;;
2249 esac |
2250 sort
2251 )
2252 echo
2253
2254 $as_echo "## ----------------- ##
2255 ## Output variables. ##
2256 ## ----------------- ##"
2257 echo
2258 for ac_var in $ac_subst_vars
2259 do
2260 eval ac_val=\$$ac_var
2261 case $ac_val in
2262 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263 esac
2264 $as_echo "$ac_var='\''$ac_val'\''"
2265 done | sort
2266 echo
2267
2268 if test -n "$ac_subst_files"; then
2269 $as_echo "## ------------------- ##
2270 ## File substitutions. ##
2271 ## ------------------- ##"
2272 echo
2273 for ac_var in $ac_subst_files
2274 do
2275 eval ac_val=\$$ac_var
2276 case $ac_val in
2277 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 esac
2279 $as_echo "$ac_var='\''$ac_val'\''"
2280 done | sort
2281 echo
2282 fi
2283
2284 if test -s confdefs.h; then
2285 $as_echo "## ----------- ##
2286 ## confdefs.h. ##
2287 ## ----------- ##"
2288 echo
2289 cat confdefs.h
2290 echo
2291 fi
2292 test "$ac_signal" != 0 &&
2293 $as_echo "$as_me: caught signal $ac_signal"
2294 $as_echo "$as_me: exit $exit_status"
2295 } >&5
2296 rm -f core *.core core.conftest.* &&
2297 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2298 exit $exit_status
2299 ' 0
2300 for ac_signal in 1 2 13 15; do
2301 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2302 done
2303 ac_signal=0
2304
2305 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2306 rm -f -r conftest* confdefs.h
2307
2308 $as_echo "/* confdefs.h */" > confdefs.h
2309
2310 # Predefined preprocessor variables.
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_NAME "$PACKAGE_NAME"
2314 _ACEOF
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_STRING "$PACKAGE_STRING"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_URL "$PACKAGE_URL"
2334 _ACEOF
2335
2336
2337 # Let the site file select an alternate cache file if it wants to.
2338 # Prefer an explicitly selected file to automatically selected ones.
2339 ac_site_file1=NONE
2340 ac_site_file2=NONE
2341 if test -n "$CONFIG_SITE"; then
2342 # We do not want a PATH search for config.site.
2343 case $CONFIG_SITE in #((
2344 -*) ac_site_file1=./$CONFIG_SITE;;
2345 */*) ac_site_file1=$CONFIG_SITE;;
2346 *) ac_site_file1=./$CONFIG_SITE;;
2347 esac
2348 elif test "x$prefix" != xNONE; then
2349 ac_site_file1=$prefix/share/config.site
2350 ac_site_file2=$prefix/etc/config.site
2351 else
2352 ac_site_file1=$ac_default_prefix/share/config.site
2353 ac_site_file2=$ac_default_prefix/etc/config.site
2354 fi
2355 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2356 do
2357 test "x$ac_site_file" = xNONE && continue
2358 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2360 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2361 sed 's/^/| /' "$ac_site_file" >&5
2362 . "$ac_site_file" \
2363 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365 as_fn_error $? "failed to load site script $ac_site_file
2366 See \`config.log' for more details" "$LINENO" 5; }
2367 fi
2368 done
2369
2370 if test -r "$cache_file"; then
2371 # Some versions of bash will fail to source /dev/null (special files
2372 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2373 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2375 $as_echo "$as_me: loading cache $cache_file" >&6;}
2376 case $cache_file in
2377 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2378 *) . "./$cache_file";;
2379 esac
2380 fi
2381 else
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2383 $as_echo "$as_me: creating cache $cache_file" >&6;}
2384 >$cache_file
2385 fi
2386
2387 # Check that the precious variables saved in the cache have kept the same
2388 # value.
2389 ac_cache_corrupted=false
2390 for ac_var in $ac_precious_vars; do
2391 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2392 eval ac_new_set=\$ac_env_${ac_var}_set
2393 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2394 eval ac_new_val=\$ac_env_${ac_var}_value
2395 case $ac_old_set,$ac_new_set in
2396 set,)
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2398 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2399 ac_cache_corrupted=: ;;
2400 ,set)
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2402 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2403 ac_cache_corrupted=: ;;
2404 ,);;
2405 *)
2406 if test "x$ac_old_val" != "x$ac_new_val"; then
2407 # differences in whitespace do not lead to failure.
2408 ac_old_val_w=`echo x $ac_old_val`
2409 ac_new_val_w=`echo x $ac_new_val`
2410 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2412 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2413 ac_cache_corrupted=:
2414 else
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2416 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2417 eval $ac_var=\$ac_old_val
2418 fi
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2420 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2422 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2423 fi;;
2424 esac
2425 # Pass precious variables to config.status.
2426 if test "$ac_new_set" = set; then
2427 case $ac_new_val in
2428 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2429 *) ac_arg=$ac_var=$ac_new_val ;;
2430 esac
2431 case " $ac_configure_args " in
2432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2433 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2434 esac
2435 fi
2436 done
2437 if $ac_cache_corrupted; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2441 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2442 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2443 fi
2444 ## -------------------- ##
2445 ## Main body of script. ##
2446 ## -------------------- ##
2447
2448 ac_ext=c
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453
2454
2455 am__api_version='1.13'
2456
2457 ac_aux_dir=
2458 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2459 if test -f "$ac_dir/install-sh"; then
2460 ac_aux_dir=$ac_dir
2461 ac_install_sh="$ac_aux_dir/install-sh -c"
2462 break
2463 elif test -f "$ac_dir/install.sh"; then
2464 ac_aux_dir=$ac_dir
2465 ac_install_sh="$ac_aux_dir/install.sh -c"
2466 break
2467 elif test -f "$ac_dir/shtool"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/shtool install -c"
2470 break
2471 fi
2472 done
2473 if test -z "$ac_aux_dir"; then
2474 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2475 fi
2476
2477 # These three variables are undocumented and unsupported,
2478 # and are intended to be withdrawn in a future Autoconf release.
2479 # They can cause serious problems if a builder's source tree is in a directory
2480 # whose full name contains unusual characters.
2481 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2482 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2483 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2484
2485
2486 # Find a good install program. We prefer a C program (faster),
2487 # so one script is as good as another. But avoid the broken or
2488 # incompatible versions:
2489 # SysV /etc/install, /usr/sbin/install
2490 # SunOS /usr/etc/install
2491 # IRIX /sbin/install
2492 # AIX /bin/install
2493 # AmigaOS /C/install, which installs bootblocks on floppy discs
2494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2497 # OS/2's system install, which has a completely different semantic
2498 # ./install, which can be erroneously created by make from ./install.sh.
2499 # Reject install programs that cannot install multiple files.
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2502 if test -z "$INSTALL"; then
2503 if ${ac_cv_path_install+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 # Account for people who put trailing slashes in PATH elements.
2512 case $as_dir/ in #((
2513 ./ | .// | /[cC]/* | \
2514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2516 /usr/ucb/* ) ;;
2517 *)
2518 # OSF1 and SCO ODT 3.0 have their own names for install.
2519 # Don't use installbsd from OSF since it installs stuff as root
2520 # by default.
2521 for ac_prog in ginstall scoinst install; do
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2524 if test $ac_prog = install &&
2525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # AIX install. It has an incompatible calling convention.
2527 :
2528 elif test $ac_prog = install &&
2529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530 # program-specific install script used by HP pwplus--don't use.
2531 :
2532 else
2533 rm -rf conftest.one conftest.two conftest.dir
2534 echo one > conftest.one
2535 echo two > conftest.two
2536 mkdir conftest.dir
2537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2538 test -s conftest.one && test -s conftest.two &&
2539 test -s conftest.dir/conftest.one &&
2540 test -s conftest.dir/conftest.two
2541 then
2542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543 break 3
2544 fi
2545 fi
2546 fi
2547 done
2548 done
2549 ;;
2550 esac
2551
2552 done
2553 IFS=$as_save_IFS
2554
2555 rm -rf conftest.one conftest.two conftest.dir
2556
2557 fi
2558 if test "${ac_cv_path_install+set}" = set; then
2559 INSTALL=$ac_cv_path_install
2560 else
2561 # As a last resort, use the slow shell script. Don't cache a
2562 # value for INSTALL within a source directory, because that will
2563 # break other packages using the cache if that directory is
2564 # removed, or if the value is a relative name.
2565 INSTALL=$ac_install_sh
2566 fi
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2569 $as_echo "$INSTALL" >&6; }
2570
2571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572 # It thinks the first close brace ends the variable substitution.
2573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574
2575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576
2577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2580 $as_echo_n "checking whether build environment is sane... " >&6; }
2581 # Reject unsafe characters in $srcdir or the absolute working directory
2582 # name. Accept space and tab only in the latter.
2583 am_lf='
2584 '
2585 case `pwd` in
2586 *[\\\"\#\$\&\'\`$am_lf]*)
2587 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2588 esac
2589 case $srcdir in
2590 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2591 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2592 esac
2593
2594 # Do 'set' in a subshell so we don't clobber the current shell's
2595 # arguments. Must try -L first in case configure is actually a
2596 # symlink; some systems play weird games with the mod time of symlinks
2597 # (eg FreeBSD returns the mod time of the symlink's containing
2598 # directory).
2599 if (
2600 am_has_slept=no
2601 for am_try in 1 2; do
2602 echo "timestamp, slept: $am_has_slept" > conftest.file
2603 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2604 if test "$*" = "X"; then
2605 # -L didn't work.
2606 set X `ls -t "$srcdir/configure" conftest.file`
2607 fi
2608 if test "$*" != "X $srcdir/configure conftest.file" \
2609 && test "$*" != "X conftest.file $srcdir/configure"; then
2610
2611 # If neither matched, then we have a broken ls. This can happen
2612 # if, for instance, CONFIG_SHELL is bash and it inherits a
2613 # broken ls alias from the environment. This has actually
2614 # happened. Such a system could not be considered "sane".
2615 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2616 alias in your environment" "$LINENO" 5
2617 fi
2618 if test "$2" = conftest.file || test $am_try -eq 2; then
2619 break
2620 fi
2621 # Just in case.
2622 sleep 1
2623 am_has_slept=yes
2624 done
2625 test "$2" = conftest.file
2626 )
2627 then
2628 # Ok.
2629 :
2630 else
2631 as_fn_error $? "newly created file is older than distributed files!
2632 Check your system clock" "$LINENO" 5
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636 # If we didn't sleep, we still need to ensure time stamps of config.status and
2637 # generated files are strictly newer.
2638 am_sleep_pid=
2639 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2640 ( sleep 1 ) &
2641 am_sleep_pid=$!
2642 fi
2643
2644 rm -f conftest.file
2645
2646 test "$program_prefix" != NONE &&
2647 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2648 # Use a double $ so make ignores it.
2649 test "$program_suffix" != NONE &&
2650 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2651 # Double any \ or $.
2652 # By default was `s,x,x', remove it if useless.
2653 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2654 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2655
2656 # expand $ac_aux_dir to an absolute path
2657 am_aux_dir=`cd $ac_aux_dir && pwd`
2658
2659 if test x"${MISSING+set}" != xset; then
2660 case $am_aux_dir in
2661 *\ * | *\ *)
2662 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2663 *)
2664 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2665 esac
2666 fi
2667 # Use eval to expand $SHELL
2668 if eval "$MISSING --is-lightweight"; then
2669 am_missing_run="$MISSING "
2670 else
2671 am_missing_run=
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2673 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2674 fi
2675
2676 if test x"${install_sh}" != xset; then
2677 case $am_aux_dir in
2678 *\ * | *\ *)
2679 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2680 *)
2681 install_sh="\${SHELL} $am_aux_dir/install-sh"
2682 esac
2683 fi
2684
2685 # Installed binaries are usually stripped using 'strip' when the user
2686 # run "make install-strip". However 'strip' might not be the right
2687 # tool to use in cross-compilation environments, therefore Automake
2688 # will honor the 'STRIP' environment variable to overrule this program.
2689 if test "$cross_compiling" != no; then
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}strip; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_STRIP+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test -n "$STRIP"; then
2699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 STRIP=$ac_cv_prog_STRIP
2719 if test -n "$STRIP"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2721 $as_echo "$STRIP" >&6; }
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2725 fi
2726
2727
2728 fi
2729 if test -z "$ac_cv_prog_STRIP"; then
2730 ac_ct_STRIP=$STRIP
2731 # Extract the first word of "strip", so it can be a program name with args.
2732 set dummy strip; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$ac_ct_STRIP"; then
2739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_ac_ct_STRIP="strip"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2759 if test -n "$ac_ct_STRIP"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2761 $as_echo "$ac_ct_STRIP" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 fi
2766
2767 if test "x$ac_ct_STRIP" = x; then
2768 STRIP=":"
2769 else
2770 case $cross_compiling:$ac_tool_warned in
2771 yes:)
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774 ac_tool_warned=yes ;;
2775 esac
2776 STRIP=$ac_ct_STRIP
2777 fi
2778 else
2779 STRIP="$ac_cv_prog_STRIP"
2780 fi
2781
2782 fi
2783 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2784
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2786 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2787 if test -z "$MKDIR_P"; then
2788 if ${ac_cv_path_mkdir+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2793 do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_prog in mkdir gmkdir; do
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2799 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2800 'mkdir (GNU coreutils) '* | \
2801 'mkdir (coreutils) '* | \
2802 'mkdir (fileutils) '4.1*)
2803 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2804 break 3;;
2805 esac
2806 done
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812
2813 test -d ./--version && rmdir ./--version
2814 if test "${ac_cv_path_mkdir+set}" = set; then
2815 MKDIR_P="$ac_cv_path_mkdir -p"
2816 else
2817 # As a last resort, use the slow shell script. Don't cache a
2818 # value for MKDIR_P within a source directory, because that will
2819 # break other packages using the cache if that directory is
2820 # removed, or if the value is a relative name.
2821 MKDIR_P="$ac_install_sh -d"
2822 fi
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2825 $as_echo "$MKDIR_P" >&6; }
2826
2827 for ac_prog in gawk mawk nawk awk
2828 do
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_AWK+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$AWK"; then
2837 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_AWK="$ac_prog"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 AWK=$ac_cv_prog_AWK
2857 if test -n "$AWK"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2859 $as_echo "$AWK" >&6; }
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865
2866 test -n "$AWK" && break
2867 done
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2870 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2871 set x ${MAKE-make}
2872 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2873 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 cat >conftest.make <<\_ACEOF
2877 SHELL = /bin/sh
2878 all:
2879 @echo '@@@%%%=$(MAKE)=@@@%%%'
2880 _ACEOF
2881 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2882 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2883 *@@@%%%=?*=@@@%%%*)
2884 eval ac_cv_prog_make_${ac_make}_set=yes;;
2885 *)
2886 eval ac_cv_prog_make_${ac_make}_set=no;;
2887 esac
2888 rm -f conftest.make
2889 fi
2890 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2893 SET_MAKE=
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 SET_MAKE="MAKE=${MAKE-make}"
2898 fi
2899
2900 rm -rf .tst 2>/dev/null
2901 mkdir .tst 2>/dev/null
2902 if test -d .tst; then
2903 am__leading_dot=.
2904 else
2905 am__leading_dot=_
2906 fi
2907 rmdir .tst 2>/dev/null
2908
2909 # Check whether --enable-silent-rules was given.
2910 if test "${enable_silent_rules+set}" = set; then :
2911 enableval=$enable_silent_rules;
2912 fi
2913
2914 case $enable_silent_rules in # (((
2915 yes) AM_DEFAULT_VERBOSITY=0;;
2916 no) AM_DEFAULT_VERBOSITY=1;;
2917 *) AM_DEFAULT_VERBOSITY=1;;
2918 esac
2919 am_make=${MAKE-make}
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2921 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2922 if ${am_cv_make_support_nested_variables+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if $as_echo 'TRUE=$(BAR$(V))
2926 BAR0=false
2927 BAR1=true
2928 V=1
2929 am__doit:
2930 @$(TRUE)
2931 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2932 am_cv_make_support_nested_variables=yes
2933 else
2934 am_cv_make_support_nested_variables=no
2935 fi
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2938 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2939 if test $am_cv_make_support_nested_variables = yes; then
2940 AM_V='$(V)'
2941 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2942 else
2943 AM_V=$AM_DEFAULT_VERBOSITY
2944 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2945 fi
2946 AM_BACKSLASH='\'
2947
2948 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2949 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2950 # is not polluted with repeated "-I."
2951 am__isrc=' -I$(srcdir)'
2952 # test to see if srcdir already configured
2953 if test -f $srcdir/config.status; then
2954 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2955 fi
2956 fi
2957
2958 # test whether we have cygpath
2959 if test -z "$CYGPATH_W"; then
2960 if (cygpath --version) >/dev/null 2>/dev/null; then
2961 CYGPATH_W='cygpath -w'
2962 else
2963 CYGPATH_W=echo
2964 fi
2965 fi
2966
2967
2968 # Define the identity of the package.
2969 PACKAGE='ibus-input-pad'
2970 VERSION='1.4.2'
2971
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE "$PACKAGE"
2975 _ACEOF
2976
2977
2978 cat >>confdefs.h <<_ACEOF
2979 #define VERSION "$VERSION"
2980 _ACEOF
2981
2982 # Some tools Automake needs.
2983
2984 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2985
2986
2987 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2988
2989
2990 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2991
2992
2993 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2994
2995
2996 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2997
2998 # For better backward compatibility. To be removed once Automake 1.9.x
2999 # dies out for good. For more background, see:
3000 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3001 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3002 mkdir_p='$(MKDIR_P)'
3003
3004 # We need awk for the "check" target. The system "awk" is bad on
3005 # some platforms.
3006 # Always define AMTAR for backward compatibility. Yes, it's still used
3007 # in the wild :-( We should find a proper way to deprecate it ...
3008 AMTAR='$${TAR-tar}'
3009
3010
3011 # We'll loop over all known methods to create a tar archive until one works.
3012 _am_tools='gnutar pax cpio none'
3013
3014 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3015
3016
3017
3018
3019
3020
3021 DEPDIR="${am__leading_dot}deps"
3022
3023 ac_config_commands="$ac_config_commands depfiles"
3024
3025
3026 am_make=${MAKE-make}
3027 cat > confinc << 'END'
3028 am__doit:
3029 @echo this is the am__doit target
3030 .PHONY: am__doit
3031 END
3032 # If we don't find an include directive, just comment out the code.
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3034 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3035 am__include="#"
3036 am__quote=
3037 _am_result=none
3038 # First try GNU make style include.
3039 echo "include confinc" > confmf
3040 # Ignore all kinds of additional output from 'make'.
3041 case `$am_make -s -f confmf 2> /dev/null` in #(
3042 *the\ am__doit\ target*)
3043 am__include=include
3044 am__quote=
3045 _am_result=GNU
3046 ;;
3047 esac
3048 # Now try BSD make style include.
3049 if test "$am__include" = "#"; then
3050 echo '.include "confinc"' > confmf
3051 case `$am_make -s -f confmf 2> /dev/null` in #(
3052 *the\ am__doit\ target*)
3053 am__include=.include
3054 am__quote="\""
3055 _am_result=BSD
3056 ;;
3057 esac
3058 fi
3059
3060
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3062 $as_echo "$_am_result" >&6; }
3063 rm -f confinc confmf
3064
3065 # Check whether --enable-dependency-tracking was given.
3066 if test "${enable_dependency_tracking+set}" = set; then :
3067 enableval=$enable_dependency_tracking;
3068 fi
3069
3070 if test "x$enable_dependency_tracking" != xno; then
3071 am_depcomp="$ac_aux_dir/depcomp"
3072 AMDEPBACKSLASH='\'
3073 am__nodep='_no'
3074 fi
3075 if test "x$enable_dependency_tracking" != xno; then
3076 AMDEP_TRUE=
3077 AMDEP_FALSE='#'
3078 else
3079 AMDEP_TRUE='#'
3080 AMDEP_FALSE=
3081 fi
3082
3083
3084 ac_ext=c
3085 ac_cpp='$CPP $CPPFLAGS'
3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089 if test -n "$ac_tool_prefix"; then
3090 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3091 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_CC+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
3110 fi
3111 done
3112 done
3113 IFS=$as_save_IFS
3114
3115 fi
3116 fi
3117 CC=$ac_cv_prog_CC
3118 if test -n "$CC"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120 $as_echo "$CC" >&6; }
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126
3127 fi
3128 if test -z "$ac_cv_prog_CC"; then
3129 ac_ct_CC=$CC
3130 # Extract the first word of "gcc", so it can be a program name with args.
3131 set dummy gcc; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_ac_ct_CC="gcc"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3150 fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166 if test "x$ac_ct_CC" = x; then
3167 CC=""
3168 else
3169 case $cross_compiling:$ac_tool_warned in
3170 yes:)
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned=yes ;;
3174 esac
3175 CC=$ac_ct_CC
3176 fi
3177 else
3178 CC="$ac_cv_prog_CC"
3179 fi
3180
3181 if test -z "$CC"; then
3182 if test -n "$ac_tool_prefix"; then
3183 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}cc; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_CC+:} false; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 if test -n "$CC"; then
3191 ac_cv_prog_CC="$CC" # Let the user override the test.
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_CC="${ac_tool_prefix}cc"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 fi
3209 fi
3210 CC=$ac_cv_prog_CC
3211 if test -n "$CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3214 else
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220 fi
3221 fi
3222 if test -z "$CC"; then
3223 # Extract the first word of "cc", so it can be a program name with args.
3224 set dummy cc; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_CC+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 if test -n "$CC"; then
3231 ac_cv_prog_CC="$CC" # Let the user override the test.
3232 else
3233 ac_prog_rejected=no
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3242 ac_prog_rejected=yes
3243 continue
3244 fi
3245 ac_cv_prog_CC="cc"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 if test $ac_prog_rejected = yes; then
3254 # We found a bogon in the path, so make sure we never use it.
3255 set dummy $ac_cv_prog_CC
3256 shift
3257 if test $# != 0; then
3258 # We chose a different compiler from the bogus one.
3259 # However, it has the same basename, so the bogon will be chosen
3260 # first if we set CC to just the basename; use the full file name.
3261 shift
3262 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3263 fi
3264 fi
3265 fi
3266 fi
3267 CC=$ac_cv_prog_CC
3268 if test -n "$CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276
3277 fi
3278 if test -z "$CC"; then
3279 if test -n "$ac_tool_prefix"; then
3280 for ac_prog in cl.exe
3281 do
3282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_CC+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3306
3307 fi
3308 fi
3309 CC=$ac_cv_prog_CC
3310 if test -n "$CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312 $as_echo "$CC" >&6; }
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3316 fi
3317
3318
3319 test -n "$CC" && break
3320 done
3321 fi
3322 if test -z "$CC"; then
3323 ac_ct_CC=$CC
3324 for ac_prog in cl.exe
3325 do
3326 # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 if test -n "$ac_ct_CC"; then
3334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_ac_ct_CC="$ac_prog"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347 done
3348 done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3354 if test -n "$ac_ct_CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3356 $as_echo "$ac_ct_CC" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363 test -n "$ac_ct_CC" && break
3364 done
3365
3366 if test "x$ac_ct_CC" = x; then
3367 CC=""
3368 else
3369 case $cross_compiling:$ac_tool_warned in
3370 yes:)
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3373 ac_tool_warned=yes ;;
3374 esac
3375 CC=$ac_ct_CC
3376 fi
3377 fi
3378
3379 fi
3380
3381
3382 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 as_fn_error $? "no acceptable C compiler found in \$PATH
3385 See \`config.log' for more details" "$LINENO" 5; }
3386
3387 # Provide some information about the compiler.
3388 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3389 set X $ac_compile
3390 ac_compiler=$2
3391 for ac_option in --version -v -V -qversion; do
3392 { { ac_try="$ac_compiler $ac_option >&5"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3400 ac_status=$?
3401 if test -s conftest.err; then
3402 sed '10a\
3403 ... rest of stderr output deleted ...
3404 10q' conftest.err >conftest.er1
3405 cat conftest.er1 >&5
3406 fi
3407 rm -f conftest.er1 conftest.err
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }
3410 done
3411
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414
3415 int
3416 main ()
3417 {
3418
3419 ;
3420 return 0;
3421 }
3422 _ACEOF
3423 ac_clean_files_save=$ac_clean_files
3424 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3425 # Try to create an executable without -o first, disregard a.out.
3426 # It will help us diagnose broken compilers, and finding out an intuition
3427 # of exeext.
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3429 $as_echo_n "checking whether the C compiler works... " >&6; }
3430 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3431
3432 # The possible output files:
3433 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3434
3435 ac_rmfiles=
3436 for ac_file in $ac_files
3437 do
3438 case $ac_file in
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3440 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3441 esac
3442 done
3443 rm -f $ac_rmfiles
3444
3445 if { { ac_try="$ac_link_default"
3446 case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452 (eval "$ac_link_default") 2>&5
3453 ac_status=$?
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }; then :
3456 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3457 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3458 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3459 # so that the user can short-circuit this test for compilers unknown to
3460 # Autoconf.
3461 for ac_file in $ac_files ''
3462 do
3463 test -f "$ac_file" || continue
3464 case $ac_file in
3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3466 ;;
3467 [ab].out )
3468 # We found the default executable, but exeext='' is most
3469 # certainly right.
3470 break;;
3471 *.* )
3472 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3473 then :; else
3474 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3475 fi
3476 # We set ac_cv_exeext here because the later test for it is not
3477 # safe: cross compilers may not add the suffix if given an `-o'
3478 # argument, so we may need to know it at that point already.
3479 # Even if this section looks crufty: it has the advantage of
3480 # actually working.
3481 break;;
3482 * )
3483 break;;
3484 esac
3485 done
3486 test "$ac_cv_exeext" = no && ac_cv_exeext=
3487
3488 else
3489 ac_file=''
3490 fi
3491 if test -z "$ac_file"; then :
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3494 $as_echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error 77 "C compiler cannot create executables
3500 See \`config.log' for more details" "$LINENO" 5; }
3501 else
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3503 $as_echo "yes" >&6; }
3504 fi
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3506 $as_echo_n "checking for C compiler default output file name... " >&6; }
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3508 $as_echo "$ac_file" >&6; }
3509 ac_exeext=$ac_cv_exeext
3510
3511 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3512 ac_clean_files=$ac_clean_files_save
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3514 $as_echo_n "checking for suffix of executables... " >&6; }
3515 if { { ac_try="$ac_link"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_link") 2>&5
3523 ac_status=$?
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }; then :
3526 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3527 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3528 # work properly (i.e., refer to `conftest.exe'), while it won't with
3529 # `rm'.
3530 for ac_file in conftest.exe conftest conftest.*; do
3531 test -f "$ac_file" || continue
3532 case $ac_file in
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535 break;;
3536 * ) break;;
3537 esac
3538 done
3539 else
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3543 See \`config.log' for more details" "$LINENO" 5; }
3544 fi
3545 rm -f conftest conftest$ac_cv_exeext
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3547 $as_echo "$ac_cv_exeext" >&6; }
3548
3549 rm -f conftest.$ac_ext
3550 EXEEXT=$ac_cv_exeext
3551 ac_exeext=$EXEEXT
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554 #include <stdio.h>
3555 int
3556 main ()
3557 {
3558 FILE *f = fopen ("conftest.out", "w");
3559 return ferror (f) || fclose (f) != 0;
3560
3561 ;
3562 return 0;
3563 }
3564 _ACEOF
3565 ac_clean_files="$ac_clean_files conftest.out"
3566 # Check that the compiler produces executables we can run. If not, either
3567 # the compiler is broken, or we cross compile.
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3569 $as_echo_n "checking whether we are cross compiling... " >&6; }
3570 if test "$cross_compiling" != yes; then
3571 { { ac_try="$ac_link"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_link") 2>&5
3579 ac_status=$?
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }
3582 if { ac_try='./conftest$ac_cv_exeext'
3583 { { case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_try") 2>&5
3590 ac_status=$?
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; }; then
3593 cross_compiling=no
3594 else
3595 if test "$cross_compiling" = maybe; then
3596 cross_compiling=yes
3597 else
3598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 as_fn_error $? "cannot run C compiled programs.
3601 If you meant to cross compile, use \`--host'.
3602 See \`config.log' for more details" "$LINENO" 5; }
3603 fi
3604 fi
3605 fi
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3607 $as_echo "$cross_compiling" >&6; }
3608
3609 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3610 ac_clean_files=$ac_clean_files_save
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3612 $as_echo_n "checking for suffix of object files... " >&6; }
3613 if ${ac_cv_objext+:} false; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3618
3619 int
3620 main ()
3621 {
3622
3623 ;
3624 return 0;
3625 }
3626 _ACEOF
3627 rm -f conftest.o conftest.obj
3628 if { { ac_try="$ac_compile"
3629 case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634 $as_echo "$ac_try_echo"; } >&5
3635 (eval "$ac_compile") 2>&5
3636 ac_status=$?
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }; then :
3639 for ac_file in conftest.o conftest.obj conftest.*; do
3640 test -f "$ac_file" || continue;
3641 case $ac_file in
3642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3643 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3644 break;;
3645 esac
3646 done
3647 else
3648 $as_echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 as_fn_error $? "cannot compute suffix of object files: cannot compile
3654 See \`config.log' for more details" "$LINENO" 5; }
3655 fi
3656 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3659 $as_echo "$ac_cv_objext" >&6; }
3660 OBJEXT=$ac_cv_objext
3661 ac_objext=$OBJEXT
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3663 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3664 if ${ac_cv_c_compiler_gnu+:} false; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3669
3670 int
3671 main ()
3672 {
3673 #ifndef __GNUC__
3674 choke me
3675 #endif
3676
3677 ;
3678 return 0;
3679 }
3680 _ACEOF
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682 ac_compiler_gnu=yes
3683 else
3684 ac_compiler_gnu=no
3685 fi
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3688
3689 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3691 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3692 if test $ac_compiler_gnu = yes; then
3693 GCC=yes
3694 else
3695 GCC=
3696 fi
3697 ac_test_CFLAGS=${CFLAGS+set}
3698 ac_save_CFLAGS=$CFLAGS
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3700 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3701 if ${ac_cv_prog_cc_g+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 ac_save_c_werror_flag=$ac_c_werror_flag
3705 ac_c_werror_flag=yes
3706 ac_cv_prog_cc_g=no
3707 CFLAGS="-g"
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main ()
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720 ac_cv_prog_cc_g=yes
3721 else
3722 CFLAGS=""
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725
3726 int
3727 main ()
3728 {
3729
3730 ;
3731 return 0;
3732 }
3733 _ACEOF
3734 if ac_fn_c_try_compile "$LINENO"; then :
3735
3736 else
3737 ac_c_werror_flag=$ac_save_c_werror_flag
3738 CFLAGS="-g"
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741
3742 int
3743 main ()
3744 {
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_prog_cc_g=yes
3752 fi
3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 fi
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 ac_c_werror_flag=$ac_save_c_werror_flag
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3761 $as_echo "$ac_cv_prog_cc_g" >&6; }
3762 if test "$ac_test_CFLAGS" = set; then
3763 CFLAGS=$ac_save_CFLAGS
3764 elif test $ac_cv_prog_cc_g = yes; then
3765 if test "$GCC" = yes; then
3766 CFLAGS="-g -O2"
3767 else
3768 CFLAGS="-g"
3769 fi
3770 else
3771 if test "$GCC" = yes; then
3772 CFLAGS="-O2"
3773 else
3774 CFLAGS=
3775 fi
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3778 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3779 if ${ac_cv_prog_cc_c89+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 ac_cv_prog_cc_c89=no
3783 ac_save_CC=$CC
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3786 #include <stdarg.h>
3787 #include <stdio.h>
3788 struct stat;
3789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3790 struct buf { int x; };
3791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3792 static char *e (p, i)
3793 char **p;
3794 int i;
3795 {
3796 return p[i];
3797 }
3798 static char *f (char * (*g) (char **, int), char **p, ...)
3799 {
3800 char *s;
3801 va_list v;
3802 va_start (v,p);
3803 s = g (p, va_arg (v,int));
3804 va_end (v);
3805 return s;
3806 }
3807
3808 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3809 function prototypes and stuff, but not '\xHH' hex character constants.
3810 These don't provoke an error unfortunately, instead are silently treated
3811 as 'x'. The following induces an error, until -std is added to get
3812 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3813 array size at least. It's necessary to write '\x00'==0 to get something
3814 that's true only with -std. */
3815 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3816
3817 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3818 inside strings and character constants. */
3819 #define FOO(x) 'x'
3820 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3821
3822 int test (int i, double x);
3823 struct s1 {int (*f) (int a);};
3824 struct s2 {int (*f) (double a);};
3825 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3826 int argc;
3827 char **argv;
3828 int
3829 main ()
3830 {
3831 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3837 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3838 do
3839 CC="$ac_save_CC $ac_arg"
3840 if ac_fn_c_try_compile "$LINENO"; then :
3841 ac_cv_prog_cc_c89=$ac_arg
3842 fi
3843 rm -f core conftest.err conftest.$ac_objext
3844 test "x$ac_cv_prog_cc_c89" != "xno" && break
3845 done
3846 rm -f conftest.$ac_ext
3847 CC=$ac_save_CC
3848
3849 fi
3850 # AC_CACHE_VAL
3851 case "x$ac_cv_prog_cc_c89" in
3852 x)
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3854 $as_echo "none needed" >&6; } ;;
3855 xno)
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3857 $as_echo "unsupported" >&6; } ;;
3858 *)
3859 CC="$CC $ac_cv_prog_cc_c89"
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3861 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3862 esac
3863 if test "x$ac_cv_prog_cc_c89" != xno; then :
3864
3865 fi
3866
3867 ac_ext=c
3868 ac_cpp='$CPP $CPPFLAGS'
3869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872
3873 depcc="$CC" am_compiler_list=
3874
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3876 $as_echo_n "checking dependency style of $depcc... " >&6; }
3877 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3881 # We make a subdir and do the tests there. Otherwise we can end up
3882 # making bogus files that we don't know about and never remove. For
3883 # instance it was reported that on HP-UX the gcc test will end up
3884 # making a dummy file named 'D' -- because '-MD' means "put the output
3885 # in D".
3886 rm -rf conftest.dir
3887 mkdir conftest.dir
3888 # Copy depcomp to subdir because otherwise we won't find it if we're
3889 # using a relative directory.
3890 cp "$am_depcomp" conftest.dir
3891 cd conftest.dir
3892 # We will build objects and dependencies in a subdirectory because
3893 # it helps to detect inapplicable dependency modes. For instance
3894 # both Tru64's cc and ICC support -MD to output dependencies as a
3895 # side effect of compilation, but ICC will put the dependencies in
3896 # the current directory while Tru64 will put them in the object
3897 # directory.
3898 mkdir sub
3899
3900 am_cv_CC_dependencies_compiler_type=none
3901 if test "$am_compiler_list" = ""; then
3902 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3903 fi
3904 am__universal=false
3905 case " $depcc " in #(
3906 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3907 esac
3908
3909 for depmode in $am_compiler_list; do
3910 # Setup a source with many dependencies, because some compilers
3911 # like to wrap large dependency lists on column 80 (with \), and
3912 # we should not choose a depcomp mode which is confused by this.
3913 #
3914 # We need to recreate these files for each test, as the compiler may
3915 # overwrite some of them when testing with obscure command lines.
3916 # This happens at least with the AIX C compiler.
3917 : > sub/conftest.c
3918 for i in 1 2 3 4 5 6; do
3919 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3920 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3921 # Solaris 10 /bin/sh.
3922 echo '/* dummy */' > sub/conftst$i.h
3923 done
3924 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3925
3926 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3927 # mode. It turns out that the SunPro C++ compiler does not properly
3928 # handle '-M -o', and we need to detect this. Also, some Intel
3929 # versions had trouble with output in subdirs.
3930 am__obj=sub/conftest.${OBJEXT-o}
3931 am__minus_obj="-o $am__obj"
3932 case $depmode in
3933 gcc)
3934 # This depmode causes a compiler race in universal mode.
3935 test "$am__universal" = false || continue
3936 ;;
3937 nosideeffect)
3938 # After this tag, mechanisms are not by side-effect, so they'll
3939 # only be used when explicitly requested.
3940 if test "x$enable_dependency_tracking" = xyes; then
3941 continue
3942 else
3943 break
3944 fi
3945 ;;
3946 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3947 # This compiler won't grok '-c -o', but also, the minuso test has
3948 # not run yet. These depmodes are late enough in the game, and
3949 # so weak that their functioning should not be impacted.
3950 am__obj=conftest.${OBJEXT-o}
3951 am__minus_obj=
3952 ;;
3953 none) break ;;
3954 esac
3955 if depmode=$depmode \
3956 source=sub/conftest.c object=$am__obj \
3957 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3958 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3959 >/dev/null 2>conftest.err &&
3960 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3961 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3962 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3963 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3964 # icc doesn't choke on unknown options, it will just issue warnings
3965 # or remarks (even with -Werror). So we grep stderr for any message
3966 # that says an option was ignored or not supported.
3967 # When given -MP, icc 7.0 and 7.1 complain thusly:
3968 # icc: Command line warning: ignoring option '-M'; no argument required
3969 # The diagnosis changed in icc 8.0:
3970 # icc: Command line remark: option '-MP' not supported
3971 if (grep 'ignoring option' conftest.err ||
3972 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3973 am_cv_CC_dependencies_compiler_type=$depmode
3974 break
3975 fi
3976 fi
3977 done
3978
3979 cd ..
3980 rm -rf conftest.dir
3981 else
3982 am_cv_CC_dependencies_compiler_type=none
3983 fi
3984
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3987 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3988 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3989
3990 if
3991 test "x$enable_dependency_tracking" != xno \
3992 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3993 am__fastdepCC_TRUE=
3994 am__fastdepCC_FALSE='#'
3995 else
3996 am__fastdepCC_TRUE='#'
3997 am__fastdepCC_FALSE=
3998 fi
3999
4000
4001
4002 ac_ext=c
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4008 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4009 # On Suns, sometimes $CPP names a directory.
4010 if test -n "$CPP" && test -d "$CPP"; then
4011 CPP=
4012 fi
4013 if test -z "$CPP"; then
4014 if ${ac_cv_prog_CPP+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 # Double quotes because CPP needs to be expanded
4018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4019 do
4020 ac_preproc_ok=false
4021 for ac_c_preproc_warn_flag in '' yes
4022 do
4023 # Use a header file that comes with gcc, so configuring glibc
4024 # with a fresh cross-compiler works.
4025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026 # <limits.h> exists even on freestanding compilers.
4027 # On the NeXT, cc -E runs the code through the compiler's parser,
4028 # not just through cpp. "Syntax error" is here to catch this case.
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031 #ifdef __STDC__
4032 # include <limits.h>
4033 #else
4034 # include <assert.h>
4035 #endif
4036 Syntax error
4037 _ACEOF
4038 if ac_fn_c_try_cpp "$LINENO"; then :
4039
4040 else
4041 # Broken: fails on valid input.
4042 continue
4043 fi
4044 rm -f conftest.err conftest.i conftest.$ac_ext
4045
4046 # OK, works on sane cases. Now check whether nonexistent headers
4047 # can be detected and how.
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050 #include <ac_nonexistent.h>
4051 _ACEOF
4052 if ac_fn_c_try_cpp "$LINENO"; then :
4053 # Broken: success on invalid input.
4054 continue
4055 else
4056 # Passes both tests.
4057 ac_preproc_ok=:
4058 break
4059 fi
4060 rm -f conftest.err conftest.i conftest.$ac_ext
4061
4062 done
4063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4064 rm -f conftest.i conftest.err conftest.$ac_ext
4065 if $ac_preproc_ok; then :
4066 break
4067 fi
4068
4069 done
4070 ac_cv_prog_CPP=$CPP
4071
4072 fi
4073 CPP=$ac_cv_prog_CPP
4074 else
4075 ac_cv_prog_CPP=$CPP
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4078 $as_echo "$CPP" >&6; }
4079 ac_preproc_ok=false
4080 for ac_c_preproc_warn_flag in '' yes
4081 do
4082 # Use a header file that comes with gcc, so configuring glibc
4083 # with a fresh cross-compiler works.
4084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085 # <limits.h> exists even on freestanding compilers.
4086 # On the NeXT, cc -E runs the code through the compiler's parser,
4087 # not just through cpp. "Syntax error" is here to catch this case.
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090 #ifdef __STDC__
4091 # include <limits.h>
4092 #else
4093 # include <assert.h>
4094 #endif
4095 Syntax error
4096 _ACEOF
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098
4099 else
4100 # Broken: fails on valid input.
4101 continue
4102 fi
4103 rm -f conftest.err conftest.i conftest.$ac_ext
4104
4105 # OK, works on sane cases. Now check whether nonexistent headers
4106 # can be detected and how.
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4110 _ACEOF
4111 if ac_fn_c_try_cpp "$LINENO"; then :
4112 # Broken: success on invalid input.
4113 continue
4114 else
4115 # Passes both tests.
4116 ac_preproc_ok=:
4117 break
4118 fi
4119 rm -f conftest.err conftest.i conftest.$ac_ext
4120
4121 done
4122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123 rm -f conftest.i conftest.err conftest.$ac_ext
4124 if $ac_preproc_ok; then :
4125
4126 else
4127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4130 See \`config.log' for more details" "$LINENO" 5; }
4131 fi
4132
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4141 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4142 if ${ac_cv_path_GREP+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 if test -z "$GREP"; then
4146 ac_path_GREP_found=false
4147 # Loop through the user's path and test for each of PROGNAME-LIST
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4150 do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_prog in grep ggrep; do
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4156 as_fn_executable_p "$ac_path_GREP" || continue
4157 # Check for GNU ac_path_GREP and select it if it is found.
4158 # Check for GNU $ac_path_GREP
4159 case `"$ac_path_GREP" --version 2>&1` in
4160 *GNU*)
4161 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4162 *)
4163 ac_count=0
4164 $as_echo_n 0123456789 >"conftest.in"
4165 while :
4166 do
4167 cat "conftest.in" "conftest.in" >"conftest.tmp"
4168 mv "conftest.tmp" "conftest.in"
4169 cp "conftest.in" "conftest.nl"
4170 $as_echo 'GREP' >> "conftest.nl"
4171 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4173 as_fn_arith $ac_count + 1 && ac_count=$as_val
4174 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4175 # Best one so far, save it but keep looking for a better one
4176 ac_cv_path_GREP="$ac_path_GREP"
4177 ac_path_GREP_max=$ac_count
4178 fi
4179 # 10*(2^10) chars as input seems more than enough
4180 test $ac_count -gt 10 && break
4181 done
4182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4183 esac
4184
4185 $ac_path_GREP_found && break 3
4186 done
4187 done
4188 done
4189 IFS=$as_save_IFS
4190 if test -z "$ac_cv_path_GREP"; then
4191 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4192 fi
4193 else
4194 ac_cv_path_GREP=$GREP
4195 fi
4196
4197 fi
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4199 $as_echo "$ac_cv_path_GREP" >&6; }
4200 GREP="$ac_cv_path_GREP"
4201
4202
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4204 $as_echo_n "checking for egrep... " >&6; }
4205 if ${ac_cv_path_EGREP+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4209 then ac_cv_path_EGREP="$GREP -E"
4210 else
4211 if test -z "$EGREP"; then
4212 ac_path_EGREP_found=false
4213 # Loop through the user's path and test for each of PROGNAME-LIST
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4216 do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_prog in egrep; do
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4222 as_fn_executable_p "$ac_path_EGREP" || continue
4223 # Check for GNU ac_path_EGREP and select it if it is found.
4224 # Check for GNU $ac_path_EGREP
4225 case `"$ac_path_EGREP" --version 2>&1` in
4226 *GNU*)
4227 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4228 *)
4229 ac_count=0
4230 $as_echo_n 0123456789 >"conftest.in"
4231 while :
4232 do
4233 cat "conftest.in" "conftest.in" >"conftest.tmp"
4234 mv "conftest.tmp" "conftest.in"
4235 cp "conftest.in" "conftest.nl"
4236 $as_echo 'EGREP' >> "conftest.nl"
4237 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4239 as_fn_arith $ac_count + 1 && ac_count=$as_val
4240 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4241 # Best one so far, save it but keep looking for a better one
4242 ac_cv_path_EGREP="$ac_path_EGREP"
4243 ac_path_EGREP_max=$ac_count
4244 fi
4245 # 10*(2^10) chars as input seems more than enough
4246 test $ac_count -gt 10 && break
4247 done
4248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249 esac
4250
4251 $ac_path_EGREP_found && break 3
4252 done
4253 done
4254 done
4255 IFS=$as_save_IFS
4256 if test -z "$ac_cv_path_EGREP"; then
4257 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4258 fi
4259 else
4260 ac_cv_path_EGREP=$EGREP
4261 fi
4262
4263 fi
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4266 $as_echo "$ac_cv_path_EGREP" >&6; }
4267 EGREP="$ac_cv_path_EGREP"
4268
4269
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4271 $as_echo_n "checking for ANSI C header files... " >&6; }
4272 if ${ac_cv_header_stdc+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277 #include <stdlib.h>
4278 #include <stdarg.h>
4279 #include <string.h>
4280 #include <float.h>
4281
4282 int
4283 main ()
4284 {
4285
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 ac_cv_header_stdc=yes
4292 else
4293 ac_cv_header_stdc=no
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296
4297 if test $ac_cv_header_stdc = yes; then
4298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301 #include <string.h>
4302
4303 _ACEOF
4304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4305 $EGREP "memchr" >/dev/null 2>&1; then :
4306
4307 else
4308 ac_cv_header_stdc=no
4309 fi
4310 rm -f conftest*
4311
4312 fi
4313
4314 if test $ac_cv_header_stdc = yes; then
4315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4318 #include <stdlib.h>
4319
4320 _ACEOF
4321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322 $EGREP "free" >/dev/null 2>&1; then :
4323
4324 else
4325 ac_cv_header_stdc=no
4326 fi
4327 rm -f conftest*
4328
4329 fi
4330
4331 if test $ac_cv_header_stdc = yes; then
4332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4333 if test "$cross_compiling" = yes; then :
4334 :
4335 else
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338 #include <ctype.h>
4339 #include <stdlib.h>
4340 #if ((' ' & 0x0FF) == 0x020)
4341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4343 #else
4344 # define ISLOWER(c) \
4345 (('a' <= (c) && (c) <= 'i') \
4346 || ('j' <= (c) && (c) <= 'r') \
4347 || ('s' <= (c) && (c) <= 'z'))
4348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4349 #endif
4350
4351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4352 int
4353 main ()
4354 {
4355 int i;
4356 for (i = 0; i < 256; i++)
4357 if (XOR (islower (i), ISLOWER (i))
4358 || toupper (i) != TOUPPER (i))
4359 return 2;
4360 return 0;
4361 }
4362 _ACEOF
4363 if ac_fn_c_try_run "$LINENO"; then :
4364
4365 else
4366 ac_cv_header_stdc=no
4367 fi
4368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4369 conftest.$ac_objext conftest.beam conftest.$ac_ext
4370 fi
4371
4372 fi
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4375 $as_echo "$ac_cv_header_stdc" >&6; }
4376 if test $ac_cv_header_stdc = yes; then
4377
4378 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4379
4380 fi
4381
4382 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4383 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4384 inttypes.h stdint.h unistd.h
4385 do :
4386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4387 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4388 "
4389 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4390 cat >>confdefs.h <<_ACEOF
4391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4392 _ACEOF
4393
4394 fi
4395
4396 done
4397
4398
4399
4400 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4401 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4402 MINIX=yes
4403 else
4404 MINIX=
4405 fi
4406
4407
4408 if test "$MINIX" = yes; then
4409
4410 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4411
4412
4413 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4414
4415
4416 $as_echo "#define _MINIX 1" >>confdefs.h
4417
4418 fi
4419
4420
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4422 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4423 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428
4429 # define __EXTENSIONS__ 1
4430 $ac_includes_default
4431 int
4432 main ()
4433 {
4434
4435 ;
4436 return 0;
4437 }
4438 _ACEOF
4439 if ac_fn_c_try_compile "$LINENO"; then :
4440 ac_cv_safe_to_define___extensions__=yes
4441 else
4442 ac_cv_safe_to_define___extensions__=no
4443 fi
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4447 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4448 test $ac_cv_safe_to_define___extensions__ = yes &&
4449 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4450
4451 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4452
4453 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4454
4455 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4456
4457 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4458
4459
4460
4461
4462 ac_config_headers="$ac_config_headers config.h"
4463
4464
4465
4466 libinput_pad_VERSION="1.4"
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: $PACKAGE sub version $libinput_pad_VERSION" >&5
4469 $as_echo "$as_me: $PACKAGE sub version $libinput_pad_VERSION" >&6;}
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4472 $as_echo_n "checking whether build environment is sane... " >&6; }
4473 # Reject unsafe characters in $srcdir or the absolute working directory
4474 # name. Accept space and tab only in the latter.
4475 am_lf='
4476 '
4477 case `pwd` in
4478 *[\\\"\#\$\&\'\`$am_lf]*)
4479 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4480 esac
4481 case $srcdir in
4482 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4483 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4484 esac
4485
4486 # Do 'set' in a subshell so we don't clobber the current shell's
4487 # arguments. Must try -L first in case configure is actually a
4488 # symlink; some systems play weird games with the mod time of symlinks
4489 # (eg FreeBSD returns the mod time of the symlink's containing
4490 # directory).
4491 if (
4492 am_has_slept=no
4493 for am_try in 1 2; do
4494 echo "timestamp, slept: $am_has_slept" > conftest.file
4495 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4496 if test "$*" = "X"; then
4497 # -L didn't work.
4498 set X `ls -t "$srcdir/configure" conftest.file`
4499 fi
4500 if test "$*" != "X $srcdir/configure conftest.file" \
4501 && test "$*" != "X conftest.file $srcdir/configure"; then
4502
4503 # If neither matched, then we have a broken ls. This can happen
4504 # if, for instance, CONFIG_SHELL is bash and it inherits a
4505 # broken ls alias from the environment. This has actually
4506 # happened. Such a system could not be considered "sane".
4507 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4508 alias in your environment" "$LINENO" 5
4509 fi
4510 if test "$2" = conftest.file || test $am_try -eq 2; then
4511 break
4512 fi
4513 # Just in case.
4514 sleep 1
4515 am_has_slept=yes
4516 done
4517 test "$2" = conftest.file
4518 )
4519 then
4520 # Ok.
4521 :
4522 else
4523 as_fn_error $? "newly created file is older than distributed files!
4524 Check your system clock" "$LINENO" 5
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4527 $as_echo "yes" >&6; }
4528 # If we didn't sleep, we still need to ensure time stamps of config.status and
4529 # generated files are strictly newer.
4530 am_sleep_pid=
4531 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4532 ( sleep 1 ) &
4533 am_sleep_pid=$!
4534 fi
4535
4536 rm -f conftest.file
4537
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4540 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4541 # Check whether --enable-maintainer-mode was given.
4542 if test "${enable_maintainer_mode+set}" = set; then :
4543 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4544 else
4545 USE_MAINTAINER_MODE=yes
4546 fi
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4549 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4550 if test $USE_MAINTAINER_MODE = yes; then
4551 MAINTAINER_MODE_TRUE=
4552 MAINTAINER_MODE_FALSE='#'
4553 else
4554 MAINTAINER_MODE_TRUE='#'
4555 MAINTAINER_MODE_FALSE=
4556 fi
4557
4558 MAINT=$MAINTAINER_MODE_TRUE
4559
4560
4561 # Check whether --enable-static was given.
4562 if test "${enable_static+set}" = set; then :
4563 enableval=$enable_static; p=${PACKAGE-default}
4564 case $enableval in
4565 yes) enable_static=yes ;;
4566 no) enable_static=no ;;
4567 *)
4568 enable_static=no
4569 # Look at the argument we got. We use all the common list separators.
4570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4571 for pkg in $enableval; do
4572 IFS="$lt_save_ifs"
4573 if test "X$pkg" = "X$p"; then
4574 enable_static=yes
4575 fi
4576 done
4577 IFS="$lt_save_ifs"
4578 ;;
4579 esac
4580 else
4581 enable_static=no
4582 fi
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592 ac_ext=c
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597 if test -n "$ac_tool_prefix"; then
4598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4599 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if ${ac_cv_prog_CC+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 if test -n "$CC"; then
4606 ac_cv_prog_CC="$CC" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619 done
4620 done
4621 IFS=$as_save_IFS
4622
4623 fi
4624 fi
4625 CC=$ac_cv_prog_CC
4626 if test -n "$CC"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4628 $as_echo "$CC" >&6; }
4629 else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633
4634
4635 fi
4636 if test -z "$ac_cv_prog_CC"; then
4637 ac_ct_CC=$CC
4638 # Extract the first word of "gcc", so it can be a program name with args.
4639 set dummy gcc; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$ac_ct_CC"; then
4646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4650 do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_ac_ct_CC="gcc"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4658 fi
4659 done
4660 done
4661 IFS=$as_save_IFS
4662
4663 fi
4664 fi
4665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4666 if test -n "$ac_ct_CC"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4668 $as_echo "$ac_ct_CC" >&6; }
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4672 fi
4673
4674 if test "x$ac_ct_CC" = x; then
4675 CC=""
4676 else
4677 case $cross_compiling:$ac_tool_warned in
4678 yes:)
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4681 ac_tool_warned=yes ;;
4682 esac
4683 CC=$ac_ct_CC
4684 fi
4685 else
4686 CC="$ac_cv_prog_CC"
4687 fi
4688
4689 if test -z "$CC"; then
4690 if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4692 set dummy ${ac_tool_prefix}cc; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_CC+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$CC"; then
4699 ac_cv_prog_CC="$CC" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_CC="${ac_tool_prefix}cc"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712 done
4713 done
4714 IFS=$as_save_IFS
4715
4716 fi
4717 fi
4718 CC=$ac_cv_prog_CC
4719 if test -n "$CC"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4721 $as_echo "$CC" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4725 fi
4726
4727
4728 fi
4729 fi
4730 if test -z "$CC"; then
4731 # Extract the first word of "cc", so it can be a program name with args.
4732 set dummy cc; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_prog_CC+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$CC"; then
4739 ac_cv_prog_CC="$CC" # Let the user override the test.
4740 else
4741 ac_prog_rejected=no
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4750 ac_prog_rejected=yes
4751 continue
4752 fi
4753 ac_cv_prog_CC="cc"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 if test $ac_prog_rejected = yes; then
4762 # We found a bogon in the path, so make sure we never use it.
4763 set dummy $ac_cv_prog_CC
4764 shift
4765 if test $# != 0; then
4766 # We chose a different compiler from the bogus one.
4767 # However, it has the same basename, so the bogon will be chosen
4768 # first if we set CC to just the basename; use the full file name.
4769 shift
4770 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4771 fi
4772 fi
4773 fi
4774 fi
4775 CC=$ac_cv_prog_CC
4776 if test -n "$CC"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4778 $as_echo "$CC" >&6; }
4779 else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4782 fi
4783
4784
4785 fi
4786 if test -z "$CC"; then
4787 if test -n "$ac_tool_prefix"; then
4788 for ac_prog in cl.exe
4789 do
4790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if ${ac_cv_prog_CC+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$CC"; then
4798 ac_cv_prog_CC="$CC" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4810 fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 CC=$ac_cv_prog_CC
4818 if test -n "$CC"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4820 $as_echo "$CC" >&6; }
4821 else
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4824 fi
4825
4826
4827 test -n "$CC" && break
4828 done
4829 fi
4830 if test -z "$CC"; then
4831 ac_ct_CC=$CC
4832 for ac_prog in cl.exe
4833 do
4834 # Extract the first word of "$ac_prog", so it can be a program name with args.
4835 set dummy $ac_prog; ac_word=$2
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 $as_echo_n "checking for $ac_word... " >&6; }
4838 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 if test -n "$ac_ct_CC"; then
4842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4846 do
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851 ac_cv_prog_ac_ct_CC="$ac_prog"
4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 break 2
4854 fi
4855 done
4856 done
4857 IFS=$as_save_IFS
4858
4859 fi
4860 fi
4861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4862 if test -n "$ac_ct_CC"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4864 $as_echo "$ac_ct_CC" >&6; }
4865 else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4868 fi
4869
4870
4871 test -n "$ac_ct_CC" && break
4872 done
4873
4874 if test "x$ac_ct_CC" = x; then
4875 CC=""
4876 else
4877 case $cross_compiling:$ac_tool_warned in
4878 yes:)
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4881 ac_tool_warned=yes ;;
4882 esac
4883 CC=$ac_ct_CC
4884 fi
4885 fi
4886
4887 fi
4888
4889
4890 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4892 as_fn_error $? "no acceptable C compiler found in \$PATH
4893 See \`config.log' for more details" "$LINENO" 5; }
4894
4895 # Provide some information about the compiler.
4896 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4897 set X $ac_compile
4898 ac_compiler=$2
4899 for ac_option in --version -v -V -qversion; do
4900 { { ac_try="$ac_compiler $ac_option >&5"
4901 case "(($ac_try" in
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4904 esac
4905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4906 $as_echo "$ac_try_echo"; } >&5
4907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4908 ac_status=$?
4909 if test -s conftest.err; then
4910 sed '10a\
4911 ... rest of stderr output deleted ...
4912 10q' conftest.err >conftest.er1
4913 cat conftest.er1 >&5
4914 fi
4915 rm -f conftest.er1 conftest.err
4916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4917 test $ac_status = 0; }
4918 done
4919
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4921 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4922 if ${ac_cv_c_compiler_gnu+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927
4928 int
4929 main ()
4930 {
4931 #ifndef __GNUC__
4932 choke me
4933 #endif
4934
4935 ;
4936 return 0;
4937 }
4938 _ACEOF
4939 if ac_fn_c_try_compile "$LINENO"; then :
4940 ac_compiler_gnu=yes
4941 else
4942 ac_compiler_gnu=no
4943 fi
4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4946
4947 fi
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4949 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4950 if test $ac_compiler_gnu = yes; then
4951 GCC=yes
4952 else
4953 GCC=
4954 fi
4955 ac_test_CFLAGS=${CFLAGS+set}
4956 ac_save_CFLAGS=$CFLAGS
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4958 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4959 if ${ac_cv_prog_cc_g+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 ac_save_c_werror_flag=$ac_c_werror_flag
4963 ac_c_werror_flag=yes
4964 ac_cv_prog_cc_g=no
4965 CFLAGS="-g"
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4968
4969 int
4970 main ()
4971 {
4972
4973 ;
4974 return 0;
4975 }
4976 _ACEOF
4977 if ac_fn_c_try_compile "$LINENO"; then :
4978 ac_cv_prog_cc_g=yes
4979 else
4980 CFLAGS=""
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4983
4984 int
4985 main ()
4986 {
4987
4988 ;
4989 return 0;
4990 }
4991 _ACEOF
4992 if ac_fn_c_try_compile "$LINENO"; then :
4993
4994 else
4995 ac_c_werror_flag=$ac_save_c_werror_flag
4996 CFLAGS="-g"
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999
5000 int
5001 main ()
5002 {
5003
5004 ;
5005 return 0;
5006 }
5007 _ACEOF
5008 if ac_fn_c_try_compile "$LINENO"; then :
5009 ac_cv_prog_cc_g=yes
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 fi
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 fi
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 ac_c_werror_flag=$ac_save_c_werror_flag
5017 fi
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5019 $as_echo "$ac_cv_prog_cc_g" >&6; }
5020 if test "$ac_test_CFLAGS" = set; then
5021 CFLAGS=$ac_save_CFLAGS
5022 elif test $ac_cv_prog_cc_g = yes; then
5023 if test "$GCC" = yes; then
5024 CFLAGS="-g -O2"
5025 else
5026 CFLAGS="-g"
5027 fi
5028 else
5029 if test "$GCC" = yes; then
5030 CFLAGS="-O2"
5031 else
5032 CFLAGS=
5033 fi
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5036 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5037 if ${ac_cv_prog_cc_c89+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 ac_cv_prog_cc_c89=no
5041 ac_save_CC=$CC
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5044 #include <stdarg.h>
5045 #include <stdio.h>
5046 struct stat;
5047 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5048 struct buf { int x; };
5049 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5050 static char *e (p, i)
5051 char **p;
5052 int i;
5053 {
5054 return p[i];
5055 }
5056 static char *f (char * (*g) (char **, int), char **p, ...)
5057 {
5058 char *s;
5059 va_list v;
5060 va_start (v,p);
5061 s = g (p, va_arg (v,int));
5062 va_end (v);
5063 return s;
5064 }
5065
5066 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5067 function prototypes and stuff, but not '\xHH' hex character constants.
5068 These don't provoke an error unfortunately, instead are silently treated
5069 as 'x'. The following induces an error, until -std is added to get
5070 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5071 array size at least. It's necessary to write '\x00'==0 to get something
5072 that's true only with -std. */
5073 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5074
5075 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5076 inside strings and character constants. */
5077 #define FOO(x) 'x'
5078 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5079
5080 int test (int i, double x);
5081 struct s1 {int (*f) (int a);};
5082 struct s2 {int (*f) (double a);};
5083 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5084 int argc;
5085 char **argv;
5086 int
5087 main ()
5088 {
5089 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5095 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5096 do
5097 CC="$ac_save_CC $ac_arg"
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 ac_cv_prog_cc_c89=$ac_arg
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext
5102 test "x$ac_cv_prog_cc_c89" != "xno" && break
5103 done
5104 rm -f conftest.$ac_ext
5105 CC=$ac_save_CC
5106
5107 fi
5108 # AC_CACHE_VAL
5109 case "x$ac_cv_prog_cc_c89" in
5110 x)
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5112 $as_echo "none needed" >&6; } ;;
5113 xno)
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5115 $as_echo "unsupported" >&6; } ;;
5116 *)
5117 CC="$CC $ac_cv_prog_cc_c89"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5119 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5120 esac
5121 if test "x$ac_cv_prog_cc_c89" != xno; then :
5122
5123 fi
5124
5125 ac_ext=c
5126 ac_cpp='$CPP $CPPFLAGS'
5127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5130
5131 depcc="$CC" am_compiler_list=
5132
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5134 $as_echo_n "checking dependency style of $depcc... " >&6; }
5135 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5139 # We make a subdir and do the tests there. Otherwise we can end up
5140 # making bogus files that we don't know about and never remove. For
5141 # instance it was reported that on HP-UX the gcc test will end up
5142 # making a dummy file named 'D' -- because '-MD' means "put the output
5143 # in D".
5144 rm -rf conftest.dir
5145 mkdir conftest.dir
5146 # Copy depcomp to subdir because otherwise we won't find it if we're
5147 # using a relative directory.
5148 cp "$am_depcomp" conftest.dir
5149 cd conftest.dir
5150 # We will build objects and dependencies in a subdirectory because
5151 # it helps to detect inapplicable dependency modes. For instance
5152 # both Tru64's cc and ICC support -MD to output dependencies as a
5153 # side effect of compilation, but ICC will put the dependencies in
5154 # the current directory while Tru64 will put them in the object
5155 # directory.
5156 mkdir sub
5157
5158 am_cv_CC_dependencies_compiler_type=none
5159 if test "$am_compiler_list" = ""; then
5160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5161 fi
5162 am__universal=false
5163 case " $depcc " in #(
5164 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5165 esac
5166
5167 for depmode in $am_compiler_list; do
5168 # Setup a source with many dependencies, because some compilers
5169 # like to wrap large dependency lists on column 80 (with \), and
5170 # we should not choose a depcomp mode which is confused by this.
5171 #
5172 # We need to recreate these files for each test, as the compiler may
5173 # overwrite some of them when testing with obscure command lines.
5174 # This happens at least with the AIX C compiler.
5175 : > sub/conftest.c
5176 for i in 1 2 3 4 5 6; do
5177 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5178 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5179 # Solaris 10 /bin/sh.
5180 echo '/* dummy */' > sub/conftst$i.h
5181 done
5182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5183
5184 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5185 # mode. It turns out that the SunPro C++ compiler does not properly
5186 # handle '-M -o', and we need to detect this. Also, some Intel
5187 # versions had trouble with output in subdirs.
5188 am__obj=sub/conftest.${OBJEXT-o}
5189 am__minus_obj="-o $am__obj"
5190 case $depmode in
5191 gcc)
5192 # This depmode causes a compiler race in universal mode.
5193 test "$am__universal" = false || continue
5194 ;;
5195 nosideeffect)
5196 # After this tag, mechanisms are not by side-effect, so they'll
5197 # only be used when explicitly requested.
5198 if test "x$enable_dependency_tracking" = xyes; then
5199 continue
5200 else
5201 break
5202 fi
5203 ;;
5204 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5205 # This compiler won't grok '-c -o', but also, the minuso test has
5206 # not run yet. These depmodes are late enough in the game, and
5207 # so weak that their functioning should not be impacted.
5208 am__obj=conftest.${OBJEXT-o}
5209 am__minus_obj=
5210 ;;
5211 none) break ;;
5212 esac
5213 if depmode=$depmode \
5214 source=sub/conftest.c object=$am__obj \
5215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5216 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5217 >/dev/null 2>conftest.err &&
5218 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5220 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5222 # icc doesn't choke on unknown options, it will just issue warnings
5223 # or remarks (even with -Werror). So we grep stderr for any message
5224 # that says an option was ignored or not supported.
5225 # When given -MP, icc 7.0 and 7.1 complain thusly:
5226 # icc: Command line warning: ignoring option '-M'; no argument required
5227 # The diagnosis changed in icc 8.0:
5228 # icc: Command line remark: option '-MP' not supported
5229 if (grep 'ignoring option' conftest.err ||
5230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5231 am_cv_CC_dependencies_compiler_type=$depmode
5232 break
5233 fi
5234 fi
5235 done
5236
5237 cd ..
5238 rm -rf conftest.dir
5239 else
5240 am_cv_CC_dependencies_compiler_type=none
5241 fi
5242
5243 fi
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5245 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5246 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5247
5248 if
5249 test "x$enable_dependency_tracking" != xno \
5250 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5251 am__fastdepCC_TRUE=
5252 am__fastdepCC_FALSE='#'
5253 else
5254 am__fastdepCC_TRUE='#'
5255 am__fastdepCC_FALSE=
5256 fi
5257
5258
5259 if test "x$CC" != xcc; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5261 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5262 else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5264 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5265 fi
5266 set dummy $CC; ac_cc=`$as_echo "$2" |
5267 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5268 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273
5274 int
5275 main ()
5276 {
5277
5278 ;
5279 return 0;
5280 }
5281 _ACEOF
5282 # Make sure it works both with $CC and with simple cc.
5283 # We do the test twice because some compilers refuse to overwrite an
5284 # existing .o file with -o, though they will create one.
5285 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5286 rm -f conftest2.*
5287 if { { case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5290 esac
5291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5292 $as_echo "$ac_try_echo"; } >&5
5293 (eval "$ac_try") 2>&5
5294 ac_status=$?
5295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5296 test $ac_status = 0; } &&
5297 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5300 esac
5301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5302 $as_echo "$ac_try_echo"; } >&5
5303 (eval "$ac_try") 2>&5
5304 ac_status=$?
5305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5306 test $ac_status = 0; };
5307 then
5308 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5309 if test "x$CC" != xcc; then
5310 # Test first that cc exists at all.
5311 if { ac_try='cc -c conftest.$ac_ext >&5'
5312 { { case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5315 esac
5316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5317 $as_echo "$ac_try_echo"; } >&5
5318 (eval "$ac_try") 2>&5
5319 ac_status=$?
5320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5321 test $ac_status = 0; }; }; then
5322 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5323 rm -f conftest2.*
5324 if { { case "(($ac_try" in
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5327 esac
5328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5329 $as_echo "$ac_try_echo"; } >&5
5330 (eval "$ac_try") 2>&5
5331 ac_status=$?
5332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5333 test $ac_status = 0; } &&
5334 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337 esac
5338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5339 $as_echo "$ac_try_echo"; } >&5
5340 (eval "$ac_try") 2>&5
5341 ac_status=$?
5342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5343 test $ac_status = 0; };
5344 then
5345 # cc works too.
5346 :
5347 else
5348 # cc exists but doesn't like -o.
5349 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5350 fi
5351 fi
5352 fi
5353 else
5354 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5355 fi
5356 rm -f core conftest*
5357
5358 fi
5359 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5361 $as_echo "yes" >&6; }
5362 else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5365
5366 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5367
5368 fi
5369
5370 # FIXME: we rely on the cache variable name because
5371 # there is no other way.
5372 set dummy $CC
5373 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5374 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5375 if test "$am_t" != yes; then
5376 # Losing compiler, so override with the script.
5377 # FIXME: It is wrong to rewrite CC.
5378 # But if we don't then we get into trouble of one sort or another.
5379 # A longer-term fix would be to have automake use am__CC in this case,
5380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5381 CC="$am_aux_dir/compile $CC"
5382 fi
5383
5384
5385 ac_ext=cpp
5386 ac_cpp='$CXXCPP $CPPFLAGS'
5387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5390 if test -z "$CXX"; then
5391 if test -n "$CCC"; then
5392 CXX=$CCC
5393 else
5394 if test -n "$ac_tool_prefix"; then
5395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5396 do
5397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_prog_CXX+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$CXX"; then
5405 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 CXX=$ac_cv_prog_CXX
5425 if test -n "$CXX"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5427 $as_echo "$CXX" >&6; }
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5431 fi
5432
5433
5434 test -n "$CXX" && break
5435 done
5436 fi
5437 if test -z "$CXX"; then
5438 ac_ct_CXX=$CXX
5439 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5440 do
5441 # Extract the first word of "$ac_prog", so it can be a program name with args.
5442 set dummy $ac_prog; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if test -n "$ac_ct_CXX"; then
5449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458 ac_cv_prog_ac_ct_CXX="$ac_prog"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5461 fi
5462 done
5463 done
5464 IFS=$as_save_IFS
5465
5466 fi
5467 fi
5468 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5469 if test -n "$ac_ct_CXX"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5471 $as_echo "$ac_ct_CXX" >&6; }
5472 else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477
5478 test -n "$ac_ct_CXX" && break
5479 done
5480
5481 if test "x$ac_ct_CXX" = x; then
5482 CXX="g++"
5483 else
5484 case $cross_compiling:$ac_tool_warned in
5485 yes:)
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488 ac_tool_warned=yes ;;
5489 esac
5490 CXX=$ac_ct_CXX
5491 fi
5492 fi
5493
5494 fi
5495 fi
5496 # Provide some information about the compiler.
5497 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5498 set X $ac_compile
5499 ac_compiler=$2
5500 for ac_option in --version -v -V -qversion; do
5501 { { ac_try="$ac_compiler $ac_option >&5"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5507 $as_echo "$ac_try_echo"; } >&5
5508 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5509 ac_status=$?
5510 if test -s conftest.err; then
5511 sed '10a\
5512 ... rest of stderr output deleted ...
5513 10q' conftest.err >conftest.er1
5514 cat conftest.er1 >&5
5515 fi
5516 rm -f conftest.er1 conftest.err
5517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5518 test $ac_status = 0; }
5519 done
5520
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5522 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5523 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528
5529 int
5530 main ()
5531 {
5532 #ifndef __GNUC__
5533 choke me
5534 #endif
5535
5536 ;
5537 return 0;
5538 }
5539 _ACEOF
5540 if ac_fn_cxx_try_compile "$LINENO"; then :
5541 ac_compiler_gnu=yes
5542 else
5543 ac_compiler_gnu=no
5544 fi
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5547
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5550 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5551 if test $ac_compiler_gnu = yes; then
5552 GXX=yes
5553 else
5554 GXX=
5555 fi
5556 ac_test_CXXFLAGS=${CXXFLAGS+set}
5557 ac_save_CXXFLAGS=$CXXFLAGS
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5559 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5560 if ${ac_cv_prog_cxx_g+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5564 ac_cxx_werror_flag=yes
5565 ac_cv_prog_cxx_g=no
5566 CXXFLAGS="-g"
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569
5570 int
5571 main ()
5572 {
5573
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 if ac_fn_cxx_try_compile "$LINENO"; then :
5579 ac_cv_prog_cxx_g=yes
5580 else
5581 CXXFLAGS=""
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584
5585 int
5586 main ()
5587 {
5588
5589 ;
5590 return 0;
5591 }
5592 _ACEOF
5593 if ac_fn_cxx_try_compile "$LINENO"; then :
5594
5595 else
5596 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5597 CXXFLAGS="-g"
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600
5601 int
5602 main ()
5603 {
5604
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_cxx_try_compile "$LINENO"; then :
5610 ac_cv_prog_cxx_g=yes
5611 fi
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 fi
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5620 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5621 if test "$ac_test_CXXFLAGS" = set; then
5622 CXXFLAGS=$ac_save_CXXFLAGS
5623 elif test $ac_cv_prog_cxx_g = yes; then
5624 if test "$GXX" = yes; then
5625 CXXFLAGS="-g -O2"
5626 else
5627 CXXFLAGS="-g"
5628 fi
5629 else
5630 if test "$GXX" = yes; then
5631 CXXFLAGS="-O2"
5632 else
5633 CXXFLAGS=
5634 fi
5635 fi
5636 ac_ext=c
5637 ac_cpp='$CPP $CPPFLAGS'
5638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641
5642 depcc="$CXX" am_compiler_list=
5643
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5645 $as_echo_n "checking dependency style of $depcc... " >&6; }
5646 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5650 # We make a subdir and do the tests there. Otherwise we can end up
5651 # making bogus files that we don't know about and never remove. For
5652 # instance it was reported that on HP-UX the gcc test will end up
5653 # making a dummy file named 'D' -- because '-MD' means "put the output
5654 # in D".
5655 rm -rf conftest.dir
5656 mkdir conftest.dir
5657 # Copy depcomp to subdir because otherwise we won't find it if we're
5658 # using a relative directory.
5659 cp "$am_depcomp" conftest.dir
5660 cd conftest.dir
5661 # We will build objects and dependencies in a subdirectory because
5662 # it helps to detect inapplicable dependency modes. For instance
5663 # both Tru64's cc and ICC support -MD to output dependencies as a
5664 # side effect of compilation, but ICC will put the dependencies in
5665 # the current directory while Tru64 will put them in the object
5666 # directory.
5667 mkdir sub
5668
5669 am_cv_CXX_dependencies_compiler_type=none
5670 if test "$am_compiler_list" = ""; then
5671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5672 fi
5673 am__universal=false
5674 case " $depcc " in #(
5675 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5676 esac
5677
5678 for depmode in $am_compiler_list; do
5679 # Setup a source with many dependencies, because some compilers
5680 # like to wrap large dependency lists on column 80 (with \), and
5681 # we should not choose a depcomp mode which is confused by this.
5682 #
5683 # We need to recreate these files for each test, as the compiler may
5684 # overwrite some of them when testing with obscure command lines.
5685 # This happens at least with the AIX C compiler.
5686 : > sub/conftest.c
5687 for i in 1 2 3 4 5 6; do
5688 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5689 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5690 # Solaris 10 /bin/sh.
5691 echo '/* dummy */' > sub/conftst$i.h
5692 done
5693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5694
5695 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5696 # mode. It turns out that the SunPro C++ compiler does not properly
5697 # handle '-M -o', and we need to detect this. Also, some Intel
5698 # versions had trouble with output in subdirs.
5699 am__obj=sub/conftest.${OBJEXT-o}
5700 am__minus_obj="-o $am__obj"
5701 case $depmode in
5702 gcc)
5703 # This depmode causes a compiler race in universal mode.
5704 test "$am__universal" = false || continue
5705 ;;
5706 nosideeffect)
5707 # After this tag, mechanisms are not by side-effect, so they'll
5708 # only be used when explicitly requested.
5709 if test "x$enable_dependency_tracking" = xyes; then
5710 continue
5711 else
5712 break
5713 fi
5714 ;;
5715 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5716 # This compiler won't grok '-c -o', but also, the minuso test has
5717 # not run yet. These depmodes are late enough in the game, and
5718 # so weak that their functioning should not be impacted.
5719 am__obj=conftest.${OBJEXT-o}
5720 am__minus_obj=
5721 ;;
5722 none) break ;;
5723 esac
5724 if depmode=$depmode \
5725 source=sub/conftest.c object=$am__obj \
5726 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5727 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5728 >/dev/null 2>conftest.err &&
5729 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5730 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5731 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5732 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5733 # icc doesn't choke on unknown options, it will just issue warnings
5734 # or remarks (even with -Werror). So we grep stderr for any message
5735 # that says an option was ignored or not supported.
5736 # When given -MP, icc 7.0 and 7.1 complain thusly:
5737 # icc: Command line warning: ignoring option '-M'; no argument required
5738 # The diagnosis changed in icc 8.0:
5739 # icc: Command line remark: option '-MP' not supported
5740 if (grep 'ignoring option' conftest.err ||
5741 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5742 am_cv_CXX_dependencies_compiler_type=$depmode
5743 break
5744 fi
5745 fi
5746 done
5747
5748 cd ..
5749 rm -rf conftest.dir
5750 else
5751 am_cv_CXX_dependencies_compiler_type=none
5752 fi
5753
5754 fi
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5756 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5757 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5758
5759 if
5760 test "x$enable_dependency_tracking" != xno \
5761 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5762 am__fastdepCXX_TRUE=
5763 am__fastdepCXX_FALSE='#'
5764 else
5765 am__fastdepCXX_TRUE='#'
5766 am__fastdepCXX_FALSE=
5767 fi
5768
5769
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5771 $as_echo_n "checking for ANSI C header files... " >&6; }
5772 if ${ac_cv_header_stdc+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 #include <stdlib.h>
5778 #include <stdarg.h>
5779 #include <string.h>
5780 #include <float.h>
5781
5782 int
5783 main ()
5784 {
5785
5786 ;
5787 return 0;
5788 }
5789 _ACEOF
5790 if ac_fn_c_try_compile "$LINENO"; then :
5791 ac_cv_header_stdc=yes
5792 else
5793 ac_cv_header_stdc=no
5794 fi
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796
5797 if test $ac_cv_header_stdc = yes; then
5798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #include <string.h>
5802
5803 _ACEOF
5804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5805 $EGREP "memchr" >/dev/null 2>&1; then :
5806
5807 else
5808 ac_cv_header_stdc=no
5809 fi
5810 rm -f conftest*
5811
5812 fi
5813
5814 if test $ac_cv_header_stdc = yes; then
5815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 #include <stdlib.h>
5819
5820 _ACEOF
5821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822 $EGREP "free" >/dev/null 2>&1; then :
5823
5824 else
5825 ac_cv_header_stdc=no
5826 fi
5827 rm -f conftest*
5828
5829 fi
5830
5831 if test $ac_cv_header_stdc = yes; then
5832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5833 if test "$cross_compiling" = yes; then :
5834 :
5835 else
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 #include <ctype.h>
5839 #include <stdlib.h>
5840 #if ((' ' & 0x0FF) == 0x020)
5841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5843 #else
5844 # define ISLOWER(c) \
5845 (('a' <= (c) && (c) <= 'i') \
5846 || ('j' <= (c) && (c) <= 'r') \
5847 || ('s' <= (c) && (c) <= 'z'))
5848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5849 #endif
5850
5851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5852 int
5853 main ()
5854 {
5855 int i;
5856 for (i = 0; i < 256; i++)
5857 if (XOR (islower (i), ISLOWER (i))
5858 || toupper (i) != TOUPPER (i))
5859 return 2;
5860 return 0;
5861 }
5862 _ACEOF
5863 if ac_fn_c_try_run "$LINENO"; then :
5864
5865 else
5866 ac_cv_header_stdc=no
5867 fi
5868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5869 conftest.$ac_objext conftest.beam conftest.$ac_ext
5870 fi
5871
5872 fi
5873 fi
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5875 $as_echo "$ac_cv_header_stdc" >&6; }
5876 if test $ac_cv_header_stdc = yes; then
5877
5878 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5879
5880 fi
5881
5882 case `pwd` in
5883 *\ * | *\ *)
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5885 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5886 esac
5887
5888
5889
5890 macro_version='2.4.2'
5891 macro_revision='1.3337'
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905 ltmain="$ac_aux_dir/ltmain.sh"
5906
5907 # Make sure we can run config.sub.
5908 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5909 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5910
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5912 $as_echo_n "checking build system type... " >&6; }
5913 if ${ac_cv_build+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 ac_build_alias=$build_alias
5917 test "x$ac_build_alias" = x &&
5918 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5919 test "x$ac_build_alias" = x &&
5920 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5921 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5922 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5923
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5926 $as_echo "$ac_cv_build" >&6; }
5927 case $ac_cv_build in
5928 *-*-*) ;;
5929 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5930 esac
5931 build=$ac_cv_build
5932 ac_save_IFS=$IFS; IFS='-'
5933 set x $ac_cv_build
5934 shift
5935 build_cpu=$1
5936 build_vendor=$2
5937 shift; shift
5938 # Remember, the first character of IFS is used to create $*,
5939 # except with old shells:
5940 build_os=$*
5941 IFS=$ac_save_IFS
5942 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5943
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5946 $as_echo_n "checking host system type... " >&6; }
5947 if ${ac_cv_host+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test "x$host_alias" = x; then
5951 ac_cv_host=$ac_cv_build
5952 else
5953 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5954 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5955 fi
5956
5957 fi
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5959 $as_echo "$ac_cv_host" >&6; }
5960 case $ac_cv_host in
5961 *-*-*) ;;
5962 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5963 esac
5964 host=$ac_cv_host
5965 ac_save_IFS=$IFS; IFS='-'
5966 set x $ac_cv_host
5967 shift
5968 host_cpu=$1
5969 host_vendor=$2
5970 shift; shift
5971 # Remember, the first character of IFS is used to create $*,
5972 # except with old shells:
5973 host_os=$*
5974 IFS=$ac_save_IFS
5975 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5976
5977
5978 # Backslashify metacharacters that are still active within
5979 # double-quoted strings.
5980 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5981
5982 # Same as above, but do not quote variable references.
5983 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5984
5985 # Sed substitution to delay expansion of an escaped shell variable in a
5986 # double_quote_subst'ed string.
5987 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5988
5989 # Sed substitution to delay expansion of an escaped single quote.
5990 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5991
5992 # Sed substitution to avoid accidental globbing in evaled expressions
5993 no_glob_subst='s/\*/\\\*/g'
5994
5995 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5996 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5997 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6000 $as_echo_n "checking how to print strings... " >&6; }
6001 # Test print first, because it will be a builtin if present.
6002 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6003 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6004 ECHO='print -r --'
6005 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6006 ECHO='printf %s\n'
6007 else
6008 # Use this function as a fallback that always works.
6009 func_fallback_echo ()
6010 {
6011 eval 'cat <<_LTECHO_EOF
6012 $1
6013 _LTECHO_EOF'
6014 }
6015 ECHO='func_fallback_echo'
6016 fi
6017
6018 # func_echo_all arg...
6019 # Invoke $ECHO with all args, space-separated.
6020 func_echo_all ()
6021 {
6022 $ECHO ""
6023 }
6024
6025 case "$ECHO" in
6026 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6027 $as_echo "printf" >&6; } ;;
6028 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6029 $as_echo "print -r" >&6; } ;;
6030 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6031 $as_echo "cat" >&6; } ;;
6032 esac
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6048 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6049 if ${ac_cv_path_SED+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6053 for ac_i in 1 2 3 4 5 6 7; do
6054 ac_script="$ac_script$as_nl$ac_script"
6055 done
6056 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6057 { ac_script=; unset ac_script;}
6058 if test -z "$SED"; then
6059 ac_path_SED_found=false
6060 # Loop through the user's path and test for each of PROGNAME-LIST
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_prog in sed gsed; do
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6069 as_fn_executable_p "$ac_path_SED" || continue
6070 # Check for GNU ac_path_SED and select it if it is found.
6071 # Check for GNU $ac_path_SED
6072 case `"$ac_path_SED" --version 2>&1` in
6073 *GNU*)
6074 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6075 *)
6076 ac_count=0
6077 $as_echo_n 0123456789 >"conftest.in"
6078 while :
6079 do
6080 cat "conftest.in" "conftest.in" >"conftest.tmp"
6081 mv "conftest.tmp" "conftest.in"
6082 cp "conftest.in" "conftest.nl"
6083 $as_echo '' >> "conftest.nl"
6084 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6086 as_fn_arith $ac_count + 1 && ac_count=$as_val
6087 if test $ac_count -gt ${ac_path_SED_max-0}; then
6088 # Best one so far, save it but keep looking for a better one
6089 ac_cv_path_SED="$ac_path_SED"
6090 ac_path_SED_max=$ac_count
6091 fi
6092 # 10*(2^10) chars as input seems more than enough
6093 test $ac_count -gt 10 && break
6094 done
6095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6096 esac
6097
6098 $ac_path_SED_found && break 3
6099 done
6100 done
6101 done
6102 IFS=$as_save_IFS
6103 if test -z "$ac_cv_path_SED"; then
6104 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6105 fi
6106 else
6107 ac_cv_path_SED=$SED
6108 fi
6109
6110 fi
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6112 $as_echo "$ac_cv_path_SED" >&6; }
6113 SED="$ac_cv_path_SED"
6114 rm -f conftest.sed
6115
6116 test -z "$SED" && SED=sed
6117 Xsed="$SED -e 1s/^X//"
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6130 $as_echo_n "checking for fgrep... " >&6; }
6131 if ${ac_cv_path_FGREP+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6135 then ac_cv_path_FGREP="$GREP -F"
6136 else
6137 if test -z "$FGREP"; then
6138 ac_path_FGREP_found=false
6139 # Loop through the user's path and test for each of PROGNAME-LIST
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6142 do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_prog in fgrep; do
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6148 as_fn_executable_p "$ac_path_FGREP" || continue
6149 # Check for GNU ac_path_FGREP and select it if it is found.
6150 # Check for GNU $ac_path_FGREP
6151 case `"$ac_path_FGREP" --version 2>&1` in
6152 *GNU*)
6153 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6154 *)
6155 ac_count=0
6156 $as_echo_n 0123456789 >"conftest.in"
6157 while :
6158 do
6159 cat "conftest.in" "conftest.in" >"conftest.tmp"
6160 mv "conftest.tmp" "conftest.in"
6161 cp "conftest.in" "conftest.nl"
6162 $as_echo 'FGREP' >> "conftest.nl"
6163 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6165 as_fn_arith $ac_count + 1 && ac_count=$as_val
6166 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6167 # Best one so far, save it but keep looking for a better one
6168 ac_cv_path_FGREP="$ac_path_FGREP"
6169 ac_path_FGREP_max=$ac_count
6170 fi
6171 # 10*(2^10) chars as input seems more than enough
6172 test $ac_count -gt 10 && break
6173 done
6174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6175 esac
6176
6177 $ac_path_FGREP_found && break 3
6178 done
6179 done
6180 done
6181 IFS=$as_save_IFS
6182 if test -z "$ac_cv_path_FGREP"; then
6183 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6184 fi
6185 else
6186 ac_cv_path_FGREP=$FGREP
6187 fi
6188
6189 fi
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6192 $as_echo "$ac_cv_path_FGREP" >&6; }
6193 FGREP="$ac_cv_path_FGREP"
6194
6195
6196 test -z "$GREP" && GREP=grep
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 # Check whether --with-gnu-ld was given.
6217 if test "${with_gnu_ld+set}" = set; then :
6218 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6219 else
6220 with_gnu_ld=no
6221 fi
6222
6223 ac_prog=ld
6224 if test "$GCC" = yes; then
6225 # Check if gcc -print-prog-name=ld gives a path.
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6227 $as_echo_n "checking for ld used by $CC... " >&6; }
6228 case $host in
6229 *-*-mingw*)
6230 # gcc leaves a trailing carriage return which upsets mingw
6231 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6232 *)
6233 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6234 esac
6235 case $ac_prog in
6236 # Accept absolute paths.
6237 [\\/]* | ?:[\\/]*)
6238 re_direlt='/[^/][^/]*/\.\./'
6239 # Canonicalize the pathname of ld
6240 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6241 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6242 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6243 done
6244 test -z "$LD" && LD="$ac_prog"
6245 ;;
6246 "")
6247 # If it fails, then pretend we aren't using GCC.
6248 ac_prog=ld
6249 ;;
6250 *)
6251 # If it is relative, then search for the first ld in PATH.
6252 with_gnu_ld=unknown
6253 ;;
6254 esac
6255 elif test "$with_gnu_ld" = yes; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6257 $as_echo_n "checking for GNU ld... " >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6260 $as_echo_n "checking for non-GNU ld... " >&6; }
6261 fi
6262 if ${lt_cv_path_LD+:} false; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 if test -z "$LD"; then
6266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6267 for ac_dir in $PATH; do
6268 IFS="$lt_save_ifs"
6269 test -z "$ac_dir" && ac_dir=.
6270 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6271 lt_cv_path_LD="$ac_dir/$ac_prog"
6272 # Check to see if the program is GNU ld. I'd rather use --version,
6273 # but apparently some variants of GNU ld only accept -v.
6274 # Break only if it was the GNU/non-GNU ld that we prefer.
6275 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6276 *GNU* | *'with BFD'*)
6277 test "$with_gnu_ld" != no && break
6278 ;;
6279 *)
6280 test "$with_gnu_ld" != yes && break
6281 ;;
6282 esac
6283 fi
6284 done
6285 IFS="$lt_save_ifs"
6286 else
6287 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6288 fi
6289 fi
6290
6291 LD="$lt_cv_path_LD"
6292 if test -n "$LD"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6294 $as_echo "$LD" >&6; }
6295 else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6298 fi
6299 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6301 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6302 if ${lt_cv_prog_gnu_ld+:} false; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6306 case `$LD -v 2>&1 </dev/null` in
6307 *GNU* | *'with BFD'*)
6308 lt_cv_prog_gnu_ld=yes
6309 ;;
6310 *)
6311 lt_cv_prog_gnu_ld=no
6312 ;;
6313 esac
6314 fi
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6316 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6317 with_gnu_ld=$lt_cv_prog_gnu_ld
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6328 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6329 if ${lt_cv_path_NM+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$NM"; then
6333 # Let the user override the test.
6334 lt_cv_path_NM="$NM"
6335 else
6336 lt_nm_to_check="${ac_tool_prefix}nm"
6337 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6338 lt_nm_to_check="$lt_nm_to_check nm"
6339 fi
6340 for lt_tmp_nm in $lt_nm_to_check; do
6341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6342 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6343 IFS="$lt_save_ifs"
6344 test -z "$ac_dir" && ac_dir=.
6345 tmp_nm="$ac_dir/$lt_tmp_nm"
6346 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6347 # Check to see if the nm accepts a BSD-compat flag.
6348 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6349 # nm: unknown option "B" ignored
6350 # Tru64's nm complains that /dev/null is an invalid object file
6351 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6352 */dev/null* | *'Invalid file or object type'*)
6353 lt_cv_path_NM="$tmp_nm -B"
6354 break
6355 ;;
6356 *)
6357 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6358 */dev/null*)
6359 lt_cv_path_NM="$tmp_nm -p"
6360 break
6361 ;;
6362 *)
6363 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6364 continue # so that we can try to find one that supports BSD flags
6365 ;;
6366 esac
6367 ;;
6368 esac
6369 fi
6370 done
6371 IFS="$lt_save_ifs"
6372 done
6373 : ${lt_cv_path_NM=no}
6374 fi
6375 fi
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6377 $as_echo "$lt_cv_path_NM" >&6; }
6378 if test "$lt_cv_path_NM" != "no"; then
6379 NM="$lt_cv_path_NM"
6380 else
6381 # Didn't find any BSD compatible name lister, look for dumpbin.
6382 if test -n "$DUMPBIN"; then :
6383 # Let the user override the test.
6384 else
6385 if test -n "$ac_tool_prefix"; then
6386 for ac_prog in dumpbin "link -dump"
6387 do
6388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_DUMPBIN+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 if test -n "$DUMPBIN"; then
6396 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409 done
6410 done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 DUMPBIN=$ac_cv_prog_DUMPBIN
6416 if test -n "$DUMPBIN"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6418 $as_echo "$DUMPBIN" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425 test -n "$DUMPBIN" && break
6426 done
6427 fi
6428 if test -z "$DUMPBIN"; then
6429 ac_ct_DUMPBIN=$DUMPBIN
6430 for ac_prog in dumpbin "link -dump"
6431 do
6432 # Extract the first word of "$ac_prog", so it can be a program name with args.
6433 set dummy $ac_prog; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 if test -n "$ac_ct_DUMPBIN"; then
6440 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6449 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453 done
6454 done
6455 IFS=$as_save_IFS
6456
6457 fi
6458 fi
6459 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6460 if test -n "$ac_ct_DUMPBIN"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6462 $as_echo "$ac_ct_DUMPBIN" >&6; }
6463 else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467
6468
6469 test -n "$ac_ct_DUMPBIN" && break
6470 done
6471
6472 if test "x$ac_ct_DUMPBIN" = x; then
6473 DUMPBIN=":"
6474 else
6475 case $cross_compiling:$ac_tool_warned in
6476 yes:)
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479 ac_tool_warned=yes ;;
6480 esac
6481 DUMPBIN=$ac_ct_DUMPBIN
6482 fi
6483 fi
6484
6485 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6486 *COFF*)
6487 DUMPBIN="$DUMPBIN -symbols"
6488 ;;
6489 *)
6490 DUMPBIN=:
6491 ;;
6492 esac
6493 fi
6494
6495 if test "$DUMPBIN" != ":"; then
6496 NM="$DUMPBIN"
6497 fi
6498 fi
6499 test -z "$NM" && NM=nm
6500
6501
6502
6503
6504
6505
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6507 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6508 if ${lt_cv_nm_interface+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 lt_cv_nm_interface="BSD nm"
6512 echo "int some_variable = 0;" > conftest.$ac_ext
6513 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6514 (eval "$ac_compile" 2>conftest.err)
6515 cat conftest.err >&5
6516 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6517 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6518 cat conftest.err >&5
6519 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6520 cat conftest.out >&5
6521 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6522 lt_cv_nm_interface="MS dumpbin"
6523 fi
6524 rm -f conftest*
6525 fi
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6527 $as_echo "$lt_cv_nm_interface" >&6; }
6528
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6530 $as_echo_n "checking whether ln -s works... " >&6; }
6531 LN_S=$as_ln_s
6532 if test "$LN_S" = "ln -s"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6534 $as_echo "yes" >&6; }
6535 else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6537 $as_echo "no, using $LN_S" >&6; }
6538 fi
6539
6540 # find the maximum length of command line arguments
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6542 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6543 if ${lt_cv_sys_max_cmd_len+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 i=0
6547 teststring="ABCD"
6548
6549 case $build_os in
6550 msdosdjgpp*)
6551 # On DJGPP, this test can blow up pretty badly due to problems in libc
6552 # (any single argument exceeding 2000 bytes causes a buffer overrun
6553 # during glob expansion). Even if it were fixed, the result of this
6554 # check would be larger than it should be.
6555 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6556 ;;
6557
6558 gnu*)
6559 # Under GNU Hurd, this test is not required because there is
6560 # no limit to the length of command line arguments.
6561 # Libtool will interpret -1 as no limit whatsoever
6562 lt_cv_sys_max_cmd_len=-1;
6563 ;;
6564
6565 cygwin* | mingw* | cegcc*)
6566 # On Win9x/ME, this test blows up -- it succeeds, but takes
6567 # about 5 minutes as the teststring grows exponentially.
6568 # Worse, since 9x/ME are not pre-emptively multitasking,
6569 # you end up with a "frozen" computer, even though with patience
6570 # the test eventually succeeds (with a max line length of 256k).
6571 # Instead, let's just punt: use the minimum linelength reported by
6572 # all of the supported platforms: 8192 (on NT/2K/XP).
6573 lt_cv_sys_max_cmd_len=8192;
6574 ;;
6575
6576 mint*)
6577 # On MiNT this can take a long time and run out of memory.
6578 lt_cv_sys_max_cmd_len=8192;
6579 ;;
6580
6581 amigaos*)
6582 # On AmigaOS with pdksh, this test takes hours, literally.
6583 # So we just punt and use a minimum line length of 8192.
6584 lt_cv_sys_max_cmd_len=8192;
6585 ;;
6586
6587 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6588 # This has been around since 386BSD, at least. Likely further.
6589 if test -x /sbin/sysctl; then
6590 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6591 elif test -x /usr/sbin/sysctl; then
6592 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6593 else
6594 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6595 fi
6596 # And add a safety zone
6597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6599 ;;
6600
6601 interix*)
6602 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6603 lt_cv_sys_max_cmd_len=196608
6604 ;;
6605
6606 os2*)
6607 # The test takes a long time on OS/2.
6608 lt_cv_sys_max_cmd_len=8192
6609 ;;
6610
6611 osf*)
6612 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6613 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6614 # nice to cause kernel panics so lets avoid the loop below.
6615 # First set a reasonable default.
6616 lt_cv_sys_max_cmd_len=16384
6617 #
6618 if test -x /sbin/sysconfig; then
6619 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6620 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6621 esac
6622 fi
6623 ;;
6624 sco3.2v5*)
6625 lt_cv_sys_max_cmd_len=102400
6626 ;;
6627 sysv5* | sco5v6* | sysv4.2uw2*)
6628 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6629 if test -n "$kargmax"; then
6630 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6631 else
6632 lt_cv_sys_max_cmd_len=32768
6633 fi
6634 ;;
6635 *)
6636 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6637 if test -n "$lt_cv_sys_max_cmd_len"; then
6638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6640 else
6641 # Make teststring a little bigger before we do anything with it.
6642 # a 1K string should be a reasonable start.
6643 for i in 1 2 3 4 5 6 7 8 ; do
6644 teststring=$teststring$teststring
6645 done
6646 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6647 # If test is not a shell built-in, we'll probably end up computing a
6648 # maximum length that is only half of the actual maximum length, but
6649 # we can't tell.
6650 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6651 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6652 test $i != 17 # 1/2 MB should be enough
6653 do
6654 i=`expr $i + 1`
6655 teststring=$teststring$teststring
6656 done
6657 # Only check the string length outside the loop.
6658 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6659 teststring=
6660 # Add a significant safety factor because C++ compilers can tack on
6661 # massive amounts of additional arguments before passing them to the
6662 # linker. It appears as though 1/2 is a usable value.
6663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6664 fi
6665 ;;
6666 esac
6667
6668 fi
6669
6670 if test -n $lt_cv_sys_max_cmd_len ; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6672 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6673 else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6675 $as_echo "none" >&6; }
6676 fi
6677 max_cmd_len=$lt_cv_sys_max_cmd_len
6678
6679
6680
6681
6682
6683
6684 : ${CP="cp -f"}
6685 : ${MV="mv -f"}
6686 : ${RM="rm -f"}
6687
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6689 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6690 # Try some XSI features
6691 xsi_shell=no
6692 ( _lt_dummy="a/b/c"
6693 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6694 = c,a/b,b/c, \
6695 && eval 'test $(( 1 + 1 )) -eq 2 \
6696 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6697 && xsi_shell=yes
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6699 $as_echo "$xsi_shell" >&6; }
6700
6701
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6703 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6704 lt_shell_append=no
6705 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6706 >/dev/null 2>&1 \
6707 && lt_shell_append=yes
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6709 $as_echo "$lt_shell_append" >&6; }
6710
6711
6712 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6713 lt_unset=unset
6714 else
6715 lt_unset=false
6716 fi
6717
6718
6719
6720
6721
6722 # test EBCDIC or ASCII
6723 case `echo X|tr X '\101'` in
6724 A) # ASCII based system
6725 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6726 lt_SP2NL='tr \040 \012'
6727 lt_NL2SP='tr \015\012 \040\040'
6728 ;;
6729 *) # EBCDIC based system
6730 lt_SP2NL='tr \100 \n'
6731 lt_NL2SP='tr \r\n \100\100'
6732 ;;
6733 esac
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6744 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6745 if ${lt_cv_to_host_file_cmd+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 case $host in
6749 *-*-mingw* )
6750 case $build in
6751 *-*-mingw* ) # actually msys
6752 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6753 ;;
6754 *-*-cygwin* )
6755 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6756 ;;
6757 * ) # otherwise, assume *nix
6758 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6759 ;;
6760 esac
6761 ;;
6762 *-*-cygwin* )
6763 case $build in
6764 *-*-mingw* ) # actually msys
6765 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6766 ;;
6767 *-*-cygwin* )
6768 lt_cv_to_host_file_cmd=func_convert_file_noop
6769 ;;
6770 * ) # otherwise, assume *nix
6771 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6772 ;;
6773 esac
6774 ;;
6775 * ) # unhandled hosts (and "normal" native builds)
6776 lt_cv_to_host_file_cmd=func_convert_file_noop
6777 ;;
6778 esac
6779
6780 fi
6781
6782 to_host_file_cmd=$lt_cv_to_host_file_cmd
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6784 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6785
6786
6787
6788
6789
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6791 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6792 if ${lt_cv_to_tool_file_cmd+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 #assume ordinary cross tools, or native build.
6796 lt_cv_to_tool_file_cmd=func_convert_file_noop
6797 case $host in
6798 *-*-mingw* )
6799 case $build in
6800 *-*-mingw* ) # actually msys
6801 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6802 ;;
6803 esac
6804 ;;
6805 esac
6806
6807 fi
6808
6809 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6811 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6812
6813
6814
6815
6816
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6818 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6819 if ${lt_cv_ld_reload_flag+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 lt_cv_ld_reload_flag='-r'
6823 fi
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6825 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6826 reload_flag=$lt_cv_ld_reload_flag
6827 case $reload_flag in
6828 "" | " "*) ;;
6829 *) reload_flag=" $reload_flag" ;;
6830 esac
6831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6832 case $host_os in
6833 cygwin* | mingw* | pw32* | cegcc*)
6834 if test "$GCC" != yes; then
6835 reload_cmds=false
6836 fi
6837 ;;
6838 darwin*)
6839 if test "$GCC" = yes; then
6840 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6841 else
6842 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6843 fi
6844 ;;
6845 esac
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855 if test -n "$ac_tool_prefix"; then
6856 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6857 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_prog_OBJDUMP+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test -n "$OBJDUMP"; then
6864 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 OBJDUMP=$ac_cv_prog_OBJDUMP
6884 if test -n "$OBJDUMP"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6886 $as_echo "$OBJDUMP" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6890 fi
6891
6892
6893 fi
6894 if test -z "$ac_cv_prog_OBJDUMP"; then
6895 ac_ct_OBJDUMP=$OBJDUMP
6896 # Extract the first word of "objdump", so it can be a program name with args.
6897 set dummy objdump; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 if test -n "$ac_ct_OBJDUMP"; then
6904 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6916 fi
6917 done
6918 done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6924 if test -n "$ac_ct_OBJDUMP"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6926 $as_echo "$ac_ct_OBJDUMP" >&6; }
6927 else
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931
6932 if test "x$ac_ct_OBJDUMP" = x; then
6933 OBJDUMP="false"
6934 else
6935 case $cross_compiling:$ac_tool_warned in
6936 yes:)
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6939 ac_tool_warned=yes ;;
6940 esac
6941 OBJDUMP=$ac_ct_OBJDUMP
6942 fi
6943 else
6944 OBJDUMP="$ac_cv_prog_OBJDUMP"
6945 fi
6946
6947 test -z "$OBJDUMP" && OBJDUMP=objdump
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6958 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6959 if ${lt_cv_deplibs_check_method+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 lt_cv_file_magic_cmd='$MAGIC_CMD'
6963 lt_cv_file_magic_test_file=
6964 lt_cv_deplibs_check_method='unknown'
6965 # Need to set the preceding variable on all platforms that support
6966 # interlibrary dependencies.
6967 # 'none' -- dependencies not supported.
6968 # `unknown' -- same as none, but documents that we really don't know.
6969 # 'pass_all' -- all dependencies passed with no checks.
6970 # 'test_compile' -- check by making test program.
6971 # 'file_magic [[regex]]' -- check by looking for files in library path
6972 # which responds to the $file_magic_cmd with a given extended regex.
6973 # If you have `file' or equivalent on your system and you're not sure
6974 # whether `pass_all' will *always* work, you probably want this one.
6975
6976 case $host_os in
6977 aix[4-9]*)
6978 lt_cv_deplibs_check_method=pass_all
6979 ;;
6980
6981 beos*)
6982 lt_cv_deplibs_check_method=pass_all
6983 ;;
6984
6985 bsdi[45]*)
6986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6987 lt_cv_file_magic_cmd='/usr/bin/file -L'
6988 lt_cv_file_magic_test_file=/shlib/libc.so
6989 ;;
6990
6991 cygwin*)
6992 # func_win32_libid is a shell function defined in ltmain.sh
6993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6994 lt_cv_file_magic_cmd='func_win32_libid'
6995 ;;
6996
6997 mingw* | pw32*)
6998 # Base MSYS/MinGW do not provide the 'file' command needed by
6999 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7000 # unless we find 'file', for example because we are cross-compiling.
7001 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7002 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7003 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7004 lt_cv_file_magic_cmd='func_win32_libid'
7005 else
7006 # Keep this pattern in sync with the one in func_win32_libid.
7007 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7008 lt_cv_file_magic_cmd='$OBJDUMP -f'
7009 fi
7010 ;;
7011
7012 cegcc*)
7013 # use the weaker test based on 'objdump'. See mingw*.
7014 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7015 lt_cv_file_magic_cmd='$OBJDUMP -f'
7016 ;;
7017
7018 darwin* | rhapsody*)
7019 lt_cv_deplibs_check_method=pass_all
7020 ;;
7021
7022 freebsd* | dragonfly*)
7023 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7024 case $host_cpu in
7025 i*86 )
7026 # Not sure whether the presence of OpenBSD here was a mistake.
7027 # Let's accept both of them until this is cleared up.
7028 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7029 lt_cv_file_magic_cmd=/usr/bin/file
7030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7031 ;;
7032 esac
7033 else
7034 lt_cv_deplibs_check_method=pass_all
7035 fi
7036 ;;
7037
7038 gnu*)
7039 lt_cv_deplibs_check_method=pass_all
7040 ;;
7041
7042 haiku*)
7043 lt_cv_deplibs_check_method=pass_all
7044 ;;
7045
7046 hpux10.20* | hpux11*)
7047 lt_cv_file_magic_cmd=/usr/bin/file
7048 case $host_cpu in
7049 ia64*)
7050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7051 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7052 ;;
7053 hppa*64*)
7054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7055 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7056 ;;
7057 *)
7058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7059 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7060 ;;
7061 esac
7062 ;;
7063
7064 interix[3-9]*)
7065 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7067 ;;
7068
7069 irix5* | irix6* | nonstopux*)
7070 case $LD in
7071 *-32|*"-32 ") libmagic=32-bit;;
7072 *-n32|*"-n32 ") libmagic=N32;;
7073 *-64|*"-64 ") libmagic=64-bit;;
7074 *) libmagic=never-match;;
7075 esac
7076 lt_cv_deplibs_check_method=pass_all
7077 ;;
7078
7079 # This must be glibc/ELF.
7080 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7081 lt_cv_deplibs_check_method=pass_all
7082 ;;
7083
7084 netbsd*)
7085 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7087 else
7088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7089 fi
7090 ;;
7091
7092 newos6*)
7093 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7094 lt_cv_file_magic_cmd=/usr/bin/file
7095 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7096 ;;
7097
7098 *nto* | *qnx*)
7099 lt_cv_deplibs_check_method=pass_all
7100 ;;
7101
7102 openbsd*)
7103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7105 else
7106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7107 fi
7108 ;;
7109
7110 osf3* | osf4* | osf5*)
7111 lt_cv_deplibs_check_method=pass_all
7112 ;;
7113
7114 rdos*)
7115 lt_cv_deplibs_check_method=pass_all
7116 ;;
7117
7118 solaris*)
7119 lt_cv_deplibs_check_method=pass_all
7120 ;;
7121
7122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7123 lt_cv_deplibs_check_method=pass_all
7124 ;;
7125
7126 sysv4 | sysv4.3*)
7127 case $host_vendor in
7128 motorola)
7129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7130 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7131 ;;
7132 ncr)
7133 lt_cv_deplibs_check_method=pass_all
7134 ;;
7135 sequent)
7136 lt_cv_file_magic_cmd='/bin/file'
7137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7138 ;;
7139 sni)
7140 lt_cv_file_magic_cmd='/bin/file'
7141 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7142 lt_cv_file_magic_test_file=/lib/libc.so
7143 ;;
7144 siemens)
7145 lt_cv_deplibs_check_method=pass_all
7146 ;;
7147 pc)
7148 lt_cv_deplibs_check_method=pass_all
7149 ;;
7150 esac
7151 ;;
7152
7153 tpf*)
7154 lt_cv_deplibs_check_method=pass_all
7155 ;;
7156 esac
7157
7158 fi
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7160 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7161
7162 file_magic_glob=
7163 want_nocaseglob=no
7164 if test "$build" = "$host"; then
7165 case $host_os in
7166 mingw* | pw32*)
7167 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7168 want_nocaseglob=yes
7169 else
7170 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7171 fi
7172 ;;
7173 esac
7174 fi
7175
7176 file_magic_cmd=$lt_cv_file_magic_cmd
7177 deplibs_check_method=$lt_cv_deplibs_check_method
7178 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201 if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_DLLTOOL+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 if test -n "$DLLTOOL"; then
7210 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223 done
7224 done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 DLLTOOL=$ac_cv_prog_DLLTOOL
7230 if test -n "$DLLTOOL"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7232 $as_echo "$DLLTOOL" >&6; }
7233 else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238
7239 fi
7240 if test -z "$ac_cv_prog_DLLTOOL"; then
7241 ac_ct_DLLTOOL=$DLLTOOL
7242 # Extract the first word of "dlltool", so it can be a program name with args.
7243 set dummy dlltool; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$ac_ct_DLLTOOL"; then
7250 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7270 if test -n "$ac_ct_DLLTOOL"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7272 $as_echo "$ac_ct_DLLTOOL" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278 if test "x$ac_ct_DLLTOOL" = x; then
7279 DLLTOOL="false"
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287 DLLTOOL=$ac_ct_DLLTOOL
7288 fi
7289 else
7290 DLLTOOL="$ac_cv_prog_DLLTOOL"
7291 fi
7292
7293 test -z "$DLLTOOL" && DLLTOOL=dlltool
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7305 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7306 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 lt_cv_sharedlib_from_linklib_cmd='unknown'
7310
7311 case $host_os in
7312 cygwin* | mingw* | pw32* | cegcc*)
7313 # two different shell functions defined in ltmain.sh
7314 # decide which to use based on capabilities of $DLLTOOL
7315 case `$DLLTOOL --help 2>&1` in
7316 *--identify-strict*)
7317 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7318 ;;
7319 *)
7320 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7321 ;;
7322 esac
7323 ;;
7324 *)
7325 # fallback: assume linklib IS sharedlib
7326 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7327 ;;
7328 esac
7329
7330 fi
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7332 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7333 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7334 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7335
7336
7337
7338
7339
7340
7341
7342 if test -n "$ac_tool_prefix"; then
7343 for ac_prog in ar
7344 do
7345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_AR+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 if test -n "$AR"; then
7353 ac_cv_prog_AR="$AR" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370 fi
7371 fi
7372 AR=$ac_cv_prog_AR
7373 if test -n "$AR"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7375 $as_echo "$AR" >&6; }
7376 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7379 fi
7380
7381
7382 test -n "$AR" && break
7383 done
7384 fi
7385 if test -z "$AR"; then
7386 ac_ct_AR=$AR
7387 for ac_prog in ar
7388 do
7389 # Extract the first word of "$ac_prog", so it can be a program name with args.
7390 set dummy $ac_prog; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7394 $as_echo_n "(cached) " >&6
7395 else
7396 if test -n "$ac_ct_AR"; then
7397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_ac_ct_AR="$ac_prog"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410 done
7411 done
7412 IFS=$as_save_IFS
7413
7414 fi
7415 fi
7416 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7417 if test -n "$ac_ct_AR"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7419 $as_echo "$ac_ct_AR" >&6; }
7420 else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 fi
7424
7425
7426 test -n "$ac_ct_AR" && break
7427 done
7428
7429 if test "x$ac_ct_AR" = x; then
7430 AR="false"
7431 else
7432 case $cross_compiling:$ac_tool_warned in
7433 yes:)
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned=yes ;;
7437 esac
7438 AR=$ac_ct_AR
7439 fi
7440 fi
7441
7442 : ${AR=ar}
7443 : ${AR_FLAGS=cru}
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7456 $as_echo_n "checking for archiver @FILE support... " >&6; }
7457 if ${lt_cv_ar_at_file+:} false; then :
7458 $as_echo_n "(cached) " >&6
7459 else
7460 lt_cv_ar_at_file=no
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463
7464 int
7465 main ()
7466 {
7467
7468 ;
7469 return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"; then :
7473 echo conftest.$ac_objext > conftest.lst
7474 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7476 (eval $lt_ar_try) 2>&5
7477 ac_status=$?
7478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479 test $ac_status = 0; }
7480 if test "$ac_status" -eq 0; then
7481 # Ensure the archiver fails upon bogus file names.
7482 rm -f conftest.$ac_objext libconftest.a
7483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7484 (eval $lt_ar_try) 2>&5
7485 ac_status=$?
7486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7487 test $ac_status = 0; }
7488 if test "$ac_status" -ne 0; then
7489 lt_cv_ar_at_file=@
7490 fi
7491 fi
7492 rm -f conftest.* libconftest.a
7493
7494 fi
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496
7497 fi
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7499 $as_echo "$lt_cv_ar_at_file" >&6; }
7500
7501 if test "x$lt_cv_ar_at_file" = xno; then
7502 archiver_list_spec=
7503 else
7504 archiver_list_spec=$lt_cv_ar_at_file
7505 fi
7506
7507
7508
7509
7510
7511
7512
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7515 set dummy ${ac_tool_prefix}strip; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_STRIP+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$STRIP"; then
7522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7534 fi
7535 done
7536 done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 STRIP=$ac_cv_prog_STRIP
7542 if test -n "$STRIP"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7544 $as_echo "$STRIP" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550
7551 fi
7552 if test -z "$ac_cv_prog_STRIP"; then
7553 ac_ct_STRIP=$STRIP
7554 # Extract the first word of "strip", so it can be a program name with args.
7555 set dummy strip; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$ac_ct_STRIP"; then
7562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_ac_ct_STRIP="strip"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7574 fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579 fi
7580 fi
7581 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7582 if test -n "$ac_ct_STRIP"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7584 $as_echo "$ac_ct_STRIP" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7588 fi
7589
7590 if test "x$ac_ct_STRIP" = x; then
7591 STRIP=":"
7592 else
7593 case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned=yes ;;
7598 esac
7599 STRIP=$ac_ct_STRIP
7600 fi
7601 else
7602 STRIP="$ac_cv_prog_STRIP"
7603 fi
7604
7605 test -z "$STRIP" && STRIP=:
7606
7607
7608
7609
7610
7611
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_RANLIB+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 if test -n "$RANLIB"; then
7621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7633 fi
7634 done
7635 done
7636 IFS=$as_save_IFS
7637
7638 fi
7639 fi
7640 RANLIB=$ac_cv_prog_RANLIB
7641 if test -n "$RANLIB"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7643 $as_echo "$RANLIB" >&6; }
7644 else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649
7650 fi
7651 if test -z "$ac_cv_prog_RANLIB"; then
7652 ac_ct_RANLIB=$RANLIB
7653 # Extract the first word of "ranlib", so it can be a program name with args.
7654 set dummy ranlib; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 if test -n "$ac_ct_RANLIB"; then
7661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_ac_ct_RANLIB="ranlib"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674 done
7675 done
7676 IFS=$as_save_IFS
7677
7678 fi
7679 fi
7680 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7681 if test -n "$ac_ct_RANLIB"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7683 $as_echo "$ac_ct_RANLIB" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7687 fi
7688
7689 if test "x$ac_ct_RANLIB" = x; then
7690 RANLIB=":"
7691 else
7692 case $cross_compiling:$ac_tool_warned in
7693 yes:)
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7697 esac
7698 RANLIB=$ac_ct_RANLIB
7699 fi
7700 else
7701 RANLIB="$ac_cv_prog_RANLIB"
7702 fi
7703
7704 test -z "$RANLIB" && RANLIB=:
7705
7706
7707
7708
7709
7710
7711 # Determine commands to create old-style static archives.
7712 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7713 old_postinstall_cmds='chmod 644 $oldlib'
7714 old_postuninstall_cmds=
7715
7716 if test -n "$RANLIB"; then
7717 case $host_os in
7718 openbsd*)
7719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7720 ;;
7721 *)
7722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7723 ;;
7724 esac
7725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7726 fi
7727
7728 case $host_os in
7729 darwin*)
7730 lock_old_archive_extraction=yes ;;
7731 *)
7732 lock_old_archive_extraction=no ;;
7733 esac
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773 # If no C compiler was specified, use CC.
7774 LTCC=${LTCC-"$CC"}
7775
7776 # If no C compiler flags were specified, use CFLAGS.
7777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7778
7779 # Allow CC to be a program name with arguments.
7780 compiler=$CC
7781
7782
7783 # Check for command to grab the raw symbol name followed by C symbol from nm.
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7785 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7786 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789
7790 # These are sane defaults that work on at least a few old systems.
7791 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7792
7793 # Character class describing NM global symbol codes.
7794 symcode='[BCDEGRST]'
7795
7796 # Regexp to match symbols that can be accessed directly from C.
7797 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7798
7799 # Define system-specific variables.
7800 case $host_os in
7801 aix*)
7802 symcode='[BCDT]'
7803 ;;
7804 cygwin* | mingw* | pw32* | cegcc*)
7805 symcode='[ABCDGISTW]'
7806 ;;
7807 hpux*)
7808 if test "$host_cpu" = ia64; then
7809 symcode='[ABCDEGRST]'
7810 fi
7811 ;;
7812 irix* | nonstopux*)
7813 symcode='[BCDEGRST]'
7814 ;;
7815 osf*)
7816 symcode='[BCDEGQRST]'
7817 ;;
7818 solaris*)
7819 symcode='[BDRT]'
7820 ;;
7821 sco3.2v5*)
7822 symcode='[DT]'
7823 ;;
7824 sysv4.2uw2*)
7825 symcode='[DT]'
7826 ;;
7827 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7828 symcode='[ABDT]'
7829 ;;
7830 sysv4)
7831 symcode='[DFNSTU]'
7832 ;;
7833 esac
7834
7835 # If we're using GNU nm, then use its standard symbol codes.
7836 case `$NM -V 2>&1` in
7837 *GNU* | *'with BFD'*)
7838 symcode='[ABCDGIRSTW]' ;;
7839 esac
7840
7841 # Transform an extracted symbol line into a proper C declaration.
7842 # Some systems (esp. on ia64) link data and code symbols differently,
7843 # so use this general approach.
7844 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7845
7846 # Transform an extracted symbol line into symbol name and symbol address
7847 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7848 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7849
7850 # Handle CRLF in mingw tool chain
7851 opt_cr=
7852 case $build_os in
7853 mingw*)
7854 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7855 ;;
7856 esac
7857
7858 # Try without a prefix underscore, then with it.
7859 for ac_symprfx in "" "_"; do
7860
7861 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7862 symxfrm="\\1 $ac_symprfx\\2 \\2"
7863
7864 # Write the raw and C identifiers.
7865 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7866 # Fake it for dumpbin and say T for any non-static function
7867 # and D for any global variable.
7868 # Also find C++ and __fastcall symbols from MSVC++,
7869 # which start with @ or ?.
7870 lt_cv_sys_global_symbol_pipe="$AWK '"\
7871 " {last_section=section; section=\$ 3};"\
7872 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7873 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7874 " \$ 0!~/External *\|/{next};"\
7875 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7876 " {if(hide[section]) next};"\
7877 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7878 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7879 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7880 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7881 " ' prfx=^$ac_symprfx"
7882 else
7883 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7884 fi
7885 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7886
7887 # Check to see that the pipe works correctly.
7888 pipe_works=no
7889
7890 rm -f conftest*
7891 cat > conftest.$ac_ext <<_LT_EOF
7892 #ifdef __cplusplus
7893 extern "C" {
7894 #endif
7895 char nm_test_var;
7896 void nm_test_func(void);
7897 void nm_test_func(void){}
7898 #ifdef __cplusplus
7899 }
7900 #endif
7901 int main(){nm_test_var='a';nm_test_func();return(0);}
7902 _LT_EOF
7903
7904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7905 (eval $ac_compile) 2>&5
7906 ac_status=$?
7907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7908 test $ac_status = 0; }; then
7909 # Now try to grab the symbols.
7910 nlist=conftest.nm
7911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7912 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7913 ac_status=$?
7914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7915 test $ac_status = 0; } && test -s "$nlist"; then
7916 # Try sorting and uniquifying the output.
7917 if sort "$nlist" | uniq > "$nlist"T; then
7918 mv -f "$nlist"T "$nlist"
7919 else
7920 rm -f "$nlist"T
7921 fi
7922
7923 # Make sure that we snagged all the symbols we need.
7924 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7925 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7926 cat <<_LT_EOF > conftest.$ac_ext
7927 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7928 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7929 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7930 relocations are performed -- see ld's documentation on pseudo-relocs. */
7931 # define LT_DLSYM_CONST
7932 #elif defined(__osf__)
7933 /* This system does not cope well with relocations in const data. */
7934 # define LT_DLSYM_CONST
7935 #else
7936 # define LT_DLSYM_CONST const
7937 #endif
7938
7939 #ifdef __cplusplus
7940 extern "C" {
7941 #endif
7942
7943 _LT_EOF
7944 # Now generate the symbol file.
7945 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7946
7947 cat <<_LT_EOF >> conftest.$ac_ext
7948
7949 /* The mapping between symbol names and symbols. */
7950 LT_DLSYM_CONST struct {
7951 const char *name;
7952 void *address;
7953 }
7954 lt__PROGRAM__LTX_preloaded_symbols[] =
7955 {
7956 { "@PROGRAM@", (void *) 0 },
7957 _LT_EOF
7958 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7959 cat <<\_LT_EOF >> conftest.$ac_ext
7960 {0, (void *) 0}
7961 };
7962
7963 /* This works around a problem in FreeBSD linker */
7964 #ifdef FREEBSD_WORKAROUND
7965 static const void *lt_preloaded_setup() {
7966 return lt__PROGRAM__LTX_preloaded_symbols;
7967 }
7968 #endif
7969
7970 #ifdef __cplusplus
7971 }
7972 #endif
7973 _LT_EOF
7974 # Now try linking the two files.
7975 mv conftest.$ac_objext conftstm.$ac_objext
7976 lt_globsym_save_LIBS=$LIBS
7977 lt_globsym_save_CFLAGS=$CFLAGS
7978 LIBS="conftstm.$ac_objext"
7979 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7981 (eval $ac_link) 2>&5
7982 ac_status=$?
7983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7984 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7985 pipe_works=yes
7986 fi
7987 LIBS=$lt_globsym_save_LIBS
7988 CFLAGS=$lt_globsym_save_CFLAGS
7989 else
7990 echo "cannot find nm_test_func in $nlist" >&5
7991 fi
7992 else
7993 echo "cannot find nm_test_var in $nlist" >&5
7994 fi
7995 else
7996 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7997 fi
7998 else
7999 echo "$progname: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8001 fi
8002 rm -rf conftest* conftst*
8003
8004 # Do not use the global_symbol_pipe unless it works.
8005 if test "$pipe_works" = yes; then
8006 break
8007 else
8008 lt_cv_sys_global_symbol_pipe=
8009 fi
8010 done
8011
8012 fi
8013
8014 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8015 lt_cv_sys_global_symbol_to_cdecl=
8016 fi
8017 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8019 $as_echo "failed" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8022 $as_echo "ok" >&6; }
8023 fi
8024
8025 # Response file support.
8026 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8027 nm_file_list_spec='@'
8028 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8029 nm_file_list_spec='@'
8030 fi
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8059 $as_echo_n "checking for sysroot... " >&6; }
8060
8061 # Check whether --with-sysroot was given.
8062 if test "${with_sysroot+set}" = set; then :
8063 withval=$with_sysroot;
8064 else
8065 with_sysroot=no
8066 fi
8067
8068
8069 lt_sysroot=
8070 case ${with_sysroot} in #(
8071 yes)
8072 if test "$GCC" = yes; then
8073 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8074 fi
8075 ;; #(
8076 /*)
8077 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8078 ;; #(
8079 no|'')
8080 ;; #(
8081 *)
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8083 $as_echo "${with_sysroot}" >&6; }
8084 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8085 ;;
8086 esac
8087
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8089 $as_echo "${lt_sysroot:-no}" >&6; }
8090
8091
8092
8093
8094
8095 # Check whether --enable-libtool-lock was given.
8096 if test "${enable_libtool_lock+set}" = set; then :
8097 enableval=$enable_libtool_lock;
8098 fi
8099
8100 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8101
8102 # Some flags need to be propagated to the compiler or linker for good
8103 # libtool support.
8104 case $host in
8105 ia64-*-hpux*)
8106 # Find out which ABI we are using.
8107 echo 'int i;' > conftest.$ac_ext
8108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8109 (eval $ac_compile) 2>&5
8110 ac_status=$?
8111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8112 test $ac_status = 0; }; then
8113 case `/usr/bin/file conftest.$ac_objext` in
8114 *ELF-32*)
8115 HPUX_IA64_MODE="32"
8116 ;;
8117 *ELF-64*)
8118 HPUX_IA64_MODE="64"
8119 ;;
8120 esac
8121 fi
8122 rm -rf conftest*
8123 ;;
8124 *-*-irix6*)
8125 # Find out which ABI we are using.
8126 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8128 (eval $ac_compile) 2>&5
8129 ac_status=$?
8130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8131 test $ac_status = 0; }; then
8132 if test "$lt_cv_prog_gnu_ld" = yes; then
8133 case `/usr/bin/file conftest.$ac_objext` in
8134 *32-bit*)
8135 LD="${LD-ld} -melf32bsmip"
8136 ;;
8137 *N32*)
8138 LD="${LD-ld} -melf32bmipn32"
8139 ;;
8140 *64-bit*)
8141 LD="${LD-ld} -melf64bmip"
8142 ;;
8143 esac
8144 else
8145 case `/usr/bin/file conftest.$ac_objext` in
8146 *32-bit*)
8147 LD="${LD-ld} -32"
8148 ;;
8149 *N32*)
8150 LD="${LD-ld} -n32"
8151 ;;
8152 *64-bit*)
8153 LD="${LD-ld} -64"
8154 ;;
8155 esac
8156 fi
8157 fi
8158 rm -rf conftest*
8159 ;;
8160
8161 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8162 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8163 # Find out which ABI we are using.
8164 echo 'int i;' > conftest.$ac_ext
8165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8166 (eval $ac_compile) 2>&5
8167 ac_status=$?
8168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8169 test $ac_status = 0; }; then
8170 case `/usr/bin/file conftest.o` in
8171 *32-bit*)
8172 case $host in
8173 x86_64-*kfreebsd*-gnu)
8174 LD="${LD-ld} -m elf_i386_fbsd"
8175 ;;
8176 x86_64-*linux*)
8177 LD="${LD-ld} -m elf_i386"
8178 ;;
8179 powerpcle-*linux*)
8180 LD="${LD-ld} -m elf32lppclinux"
8181 ;;
8182 powerpc-*linux*)
8183 LD="${LD-ld} -m elf32ppclinux"
8184 ;;
8185 s390x-*linux*)
8186 LD="${LD-ld} -m elf_s390"
8187 ;;
8188 sparc64-*linux*)
8189 LD="${LD-ld} -m elf32_sparc"
8190 ;;
8191 esac
8192 ;;
8193 *64-bit*)
8194 case $host in
8195 x86_64-*kfreebsd*-gnu)
8196 LD="${LD-ld} -m elf_x86_64_fbsd"
8197 ;;
8198 x86_64-*linux*)
8199 LD="${LD-ld} -m elf_x86_64"
8200 ;;
8201 powerpcle-*linux*)
8202 LD="${LD-ld} -m elf64lppc"
8203 ;;
8204 powerpc-*linux*)
8205 LD="${LD-ld} -m elf64ppc"
8206 ;;
8207 s390*-*linux*|s390*-*tpf*)
8208 LD="${LD-ld} -m elf64_s390"
8209 ;;
8210 sparc*-*linux*)
8211 LD="${LD-ld} -m elf64_sparc"
8212 ;;
8213 esac
8214 ;;
8215 esac
8216 fi
8217 rm -rf conftest*
8218 ;;
8219
8220 *-*-sco3.2v5*)
8221 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8222 SAVE_CFLAGS="$CFLAGS"
8223 CFLAGS="$CFLAGS -belf"
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8225 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8226 if ${lt_cv_cc_needs_belf+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 ac_ext=c
8230 ac_cpp='$CPP $CPPFLAGS'
8231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8234
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237
8238 int
8239 main ()
8240 {
8241
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 if ac_fn_c_try_link "$LINENO"; then :
8247 lt_cv_cc_needs_belf=yes
8248 else
8249 lt_cv_cc_needs_belf=no
8250 fi
8251 rm -f core conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8253 ac_ext=c
8254 ac_cpp='$CPP $CPPFLAGS'
8255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8258
8259 fi
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8261 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8262 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8263 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8264 CFLAGS="$SAVE_CFLAGS"
8265 fi
8266 ;;
8267 *-*solaris*)
8268 # Find out which ABI we are using.
8269 echo 'int i;' > conftest.$ac_ext
8270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8271 (eval $ac_compile) 2>&5
8272 ac_status=$?
8273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8274 test $ac_status = 0; }; then
8275 case `/usr/bin/file conftest.o` in
8276 *64-bit*)
8277 case $lt_cv_prog_gnu_ld in
8278 yes*)
8279 case $host in
8280 i?86-*-solaris*)
8281 LD="${LD-ld} -m elf_x86_64"
8282 ;;
8283 sparc*-*-solaris*)
8284 LD="${LD-ld} -m elf64_sparc"
8285 ;;
8286 esac
8287 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8288 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8289 LD="${LD-ld}_sol2"
8290 fi
8291 ;;
8292 *)
8293 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8294 LD="${LD-ld} -64"
8295 fi
8296 ;;
8297 esac
8298 ;;
8299 esac
8300 fi
8301 rm -rf conftest*
8302 ;;
8303 esac
8304
8305 need_locks="$enable_libtool_lock"
8306
8307 if test -n "$ac_tool_prefix"; then
8308 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8309 set dummy ${ac_tool_prefix}mt; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 if test -n "$MANIFEST_TOOL"; then
8316 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8328 fi
8329 done
8330 done
8331 IFS=$as_save_IFS
8332
8333 fi
8334 fi
8335 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8336 if test -n "$MANIFEST_TOOL"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8338 $as_echo "$MANIFEST_TOOL" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8342 fi
8343
8344
8345 fi
8346 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8347 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8348 # Extract the first word of "mt", so it can be a program name with args.
8349 set dummy mt; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 if test -n "$ac_ct_MANIFEST_TOOL"; then
8356 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8360 do
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8365 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8368 fi
8369 done
8370 done
8371 IFS=$as_save_IFS
8372
8373 fi
8374 fi
8375 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8376 if test -n "$ac_ct_MANIFEST_TOOL"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8378 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8379 else
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8382 fi
8383
8384 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8385 MANIFEST_TOOL=":"
8386 else
8387 case $cross_compiling:$ac_tool_warned in
8388 yes:)
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8391 ac_tool_warned=yes ;;
8392 esac
8393 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8394 fi
8395 else
8396 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8397 fi
8398
8399 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8401 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8402 if ${lt_cv_path_mainfest_tool+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 lt_cv_path_mainfest_tool=no
8406 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8407 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8408 cat conftest.err >&5
8409 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8410 lt_cv_path_mainfest_tool=yes
8411 fi
8412 rm -f conftest*
8413 fi
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8415 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8416 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8417 MANIFEST_TOOL=:
8418 fi
8419
8420
8421
8422
8423
8424
8425 case $host_os in
8426 rhapsody* | darwin*)
8427 if test -n "$ac_tool_prefix"; then
8428 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8429 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 if test -n "$DSYMUTIL"; then
8436 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8437 else
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8440 do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449 done
8450 done
8451 IFS=$as_save_IFS
8452
8453 fi
8454 fi
8455 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8456 if test -n "$DSYMUTIL"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8458 $as_echo "$DSYMUTIL" >&6; }
8459 else
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8462 fi
8463
8464
8465 fi
8466 if test -z "$ac_cv_prog_DSYMUTIL"; then
8467 ac_ct_DSYMUTIL=$DSYMUTIL
8468 # Extract the first word of "dsymutil", so it can be a program name with args.
8469 set dummy dsymutil; ac_word=$2
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 $as_echo_n "checking for $ac_word... " >&6; }
8472 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 if test -n "$ac_ct_DSYMUTIL"; then
8476 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8477 else
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8480 do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489 done
8490 done
8491 IFS=$as_save_IFS
8492
8493 fi
8494 fi
8495 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8496 if test -n "$ac_ct_DSYMUTIL"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8498 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8499 else
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8502 fi
8503
8504 if test "x$ac_ct_DSYMUTIL" = x; then
8505 DSYMUTIL=":"
8506 else
8507 case $cross_compiling:$ac_tool_warned in
8508 yes:)
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8511 ac_tool_warned=yes ;;
8512 esac
8513 DSYMUTIL=$ac_ct_DSYMUTIL
8514 fi
8515 else
8516 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8517 fi
8518
8519 if test -n "$ac_tool_prefix"; then
8520 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8521 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if ${ac_cv_prog_NMEDIT+:} false; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 if test -n "$NMEDIT"; then
8528 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8532 do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 break 2
8540 fi
8541 done
8542 done
8543 IFS=$as_save_IFS
8544
8545 fi
8546 fi
8547 NMEDIT=$ac_cv_prog_NMEDIT
8548 if test -n "$NMEDIT"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8550 $as_echo "$NMEDIT" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8554 fi
8555
8556
8557 fi
8558 if test -z "$ac_cv_prog_NMEDIT"; then
8559 ac_ct_NMEDIT=$NMEDIT
8560 # Extract the first word of "nmedit", so it can be a program name with args.
8561 set dummy nmedit; ac_word=$2
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 $as_echo_n "checking for $ac_word... " >&6; }
8564 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 if test -n "$ac_ct_NMEDIT"; then
8568 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8569 else
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 for as_dir in $PATH
8572 do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
8581 done
8582 done
8583 IFS=$as_save_IFS
8584
8585 fi
8586 fi
8587 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8588 if test -n "$ac_ct_NMEDIT"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8590 $as_echo "$ac_ct_NMEDIT" >&6; }
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8594 fi
8595
8596 if test "x$ac_ct_NMEDIT" = x; then
8597 NMEDIT=":"
8598 else
8599 case $cross_compiling:$ac_tool_warned in
8600 yes:)
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8603 ac_tool_warned=yes ;;
8604 esac
8605 NMEDIT=$ac_ct_NMEDIT
8606 fi
8607 else
8608 NMEDIT="$ac_cv_prog_NMEDIT"
8609 fi
8610
8611 if test -n "$ac_tool_prefix"; then
8612 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8613 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if ${ac_cv_prog_LIPO+:} false; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 if test -n "$LIPO"; then
8620 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8621 else
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in $PATH
8624 do
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8629 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 break 2
8632 fi
8633 done
8634 done
8635 IFS=$as_save_IFS
8636
8637 fi
8638 fi
8639 LIPO=$ac_cv_prog_LIPO
8640 if test -n "$LIPO"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8642 $as_echo "$LIPO" >&6; }
8643 else
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 $as_echo "no" >&6; }
8646 fi
8647
8648
8649 fi
8650 if test -z "$ac_cv_prog_LIPO"; then
8651 ac_ct_LIPO=$LIPO
8652 # Extract the first word of "lipo", so it can be a program name with args.
8653 set dummy lipo; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 if test -n "$ac_ct_LIPO"; then
8660 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8661 else
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 for as_dir in $PATH
8664 do
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669 ac_cv_prog_ac_ct_LIPO="lipo"
8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 break 2
8672 fi
8673 done
8674 done
8675 IFS=$as_save_IFS
8676
8677 fi
8678 fi
8679 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8680 if test -n "$ac_ct_LIPO"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8682 $as_echo "$ac_ct_LIPO" >&6; }
8683 else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8686 fi
8687
8688 if test "x$ac_ct_LIPO" = x; then
8689 LIPO=":"
8690 else
8691 case $cross_compiling:$ac_tool_warned in
8692 yes:)
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8695 ac_tool_warned=yes ;;
8696 esac
8697 LIPO=$ac_ct_LIPO
8698 fi
8699 else
8700 LIPO="$ac_cv_prog_LIPO"
8701 fi
8702
8703 if test -n "$ac_tool_prefix"; then
8704 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8705 set dummy ${ac_tool_prefix}otool; ac_word=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if ${ac_cv_prog_OTOOL+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 if test -n "$OTOOL"; then
8712 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8713 else
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 for as_dir in $PATH
8716 do
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8721 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 break 2
8724 fi
8725 done
8726 done
8727 IFS=$as_save_IFS
8728
8729 fi
8730 fi
8731 OTOOL=$ac_cv_prog_OTOOL
8732 if test -n "$OTOOL"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8734 $as_echo "$OTOOL" >&6; }
8735 else
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8738 fi
8739
8740
8741 fi
8742 if test -z "$ac_cv_prog_OTOOL"; then
8743 ac_ct_OTOOL=$OTOOL
8744 # Extract the first word of "otool", so it can be a program name with args.
8745 set dummy otool; ac_word=$2
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747 $as_echo_n "checking for $ac_word... " >&6; }
8748 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 if test -n "$ac_ct_OTOOL"; then
8752 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8753 else
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8756 do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761 ac_cv_prog_ac_ct_OTOOL="otool"
8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 break 2
8764 fi
8765 done
8766 done
8767 IFS=$as_save_IFS
8768
8769 fi
8770 fi
8771 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8772 if test -n "$ac_ct_OTOOL"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8774 $as_echo "$ac_ct_OTOOL" >&6; }
8775 else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8778 fi
8779
8780 if test "x$ac_ct_OTOOL" = x; then
8781 OTOOL=":"
8782 else
8783 case $cross_compiling:$ac_tool_warned in
8784 yes:)
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8787 ac_tool_warned=yes ;;
8788 esac
8789 OTOOL=$ac_ct_OTOOL
8790 fi
8791 else
8792 OTOOL="$ac_cv_prog_OTOOL"
8793 fi
8794
8795 if test -n "$ac_tool_prefix"; then
8796 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8797 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799 $as_echo_n "checking for $ac_word... " >&6; }
8800 if ${ac_cv_prog_OTOOL64+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 if test -n "$OTOOL64"; then
8804 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8805 else
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807 for as_dir in $PATH
8808 do
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8816 fi
8817 done
8818 done
8819 IFS=$as_save_IFS
8820
8821 fi
8822 fi
8823 OTOOL64=$ac_cv_prog_OTOOL64
8824 if test -n "$OTOOL64"; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8826 $as_echo "$OTOOL64" >&6; }
8827 else
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829 $as_echo "no" >&6; }
8830 fi
8831
8832
8833 fi
8834 if test -z "$ac_cv_prog_OTOOL64"; then
8835 ac_ct_OTOOL64=$OTOOL64
8836 # Extract the first word of "otool64", so it can be a program name with args.
8837 set dummy otool64; ac_word=$2
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839 $as_echo_n "checking for $ac_word... " >&6; }
8840 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 if test -n "$ac_ct_OTOOL64"; then
8844 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8845 else
8846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847 for as_dir in $PATH
8848 do
8849 IFS=$as_save_IFS
8850 test -z "$as_dir" && as_dir=.
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8853 ac_cv_prog_ac_ct_OTOOL64="otool64"
8854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8855 break 2
8856 fi
8857 done
8858 done
8859 IFS=$as_save_IFS
8860
8861 fi
8862 fi
8863 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8864 if test -n "$ac_ct_OTOOL64"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8866 $as_echo "$ac_ct_OTOOL64" >&6; }
8867 else
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869 $as_echo "no" >&6; }
8870 fi
8871
8872 if test "x$ac_ct_OTOOL64" = x; then
8873 OTOOL64=":"
8874 else
8875 case $cross_compiling:$ac_tool_warned in
8876 yes:)
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8879 ac_tool_warned=yes ;;
8880 esac
8881 OTOOL64=$ac_ct_OTOOL64
8882 fi
8883 else
8884 OTOOL64="$ac_cv_prog_OTOOL64"
8885 fi
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8914 $as_echo_n "checking for -single_module linker flag... " >&6; }
8915 if ${lt_cv_apple_cc_single_mod+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 lt_cv_apple_cc_single_mod=no
8919 if test -z "${LT_MULTI_MODULE}"; then
8920 # By default we will add the -single_module flag. You can override
8921 # by either setting the environment variable LT_MULTI_MODULE
8922 # non-empty at configure time, or by adding -multi_module to the
8923 # link flags.
8924 rm -rf libconftest.dylib*
8925 echo "int foo(void){return 1;}" > conftest.c
8926 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8927 -dynamiclib -Wl,-single_module conftest.c" >&5
8928 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8929 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8930 _lt_result=$?
8931 # If there is a non-empty error log, and "single_module"
8932 # appears in it, assume the flag caused a linker warning
8933 if test -s conftest.err && $GREP single_module conftest.err; then
8934 cat conftest.err >&5
8935 # Otherwise, if the output was created with a 0 exit code from
8936 # the compiler, it worked.
8937 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8938 lt_cv_apple_cc_single_mod=yes
8939 else
8940 cat conftest.err >&5
8941 fi
8942 rm -rf libconftest.dylib*
8943 rm -f conftest.*
8944 fi
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8947 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8948
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8950 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8951 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 lt_cv_ld_exported_symbols_list=no
8955 save_LDFLAGS=$LDFLAGS
8956 echo "_main" > conftest.sym
8957 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960
8961 int
8962 main ()
8963 {
8964
8965 ;
8966 return 0;
8967 }
8968 _ACEOF
8969 if ac_fn_c_try_link "$LINENO"; then :
8970 lt_cv_ld_exported_symbols_list=yes
8971 else
8972 lt_cv_ld_exported_symbols_list=no
8973 fi
8974 rm -f core conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976 LDFLAGS="$save_LDFLAGS"
8977
8978 fi
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8980 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8981
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8983 $as_echo_n "checking for -force_load linker flag... " >&6; }
8984 if ${lt_cv_ld_force_load+:} false; then :
8985 $as_echo_n "(cached) " >&6
8986 else
8987 lt_cv_ld_force_load=no
8988 cat > conftest.c << _LT_EOF
8989 int forced_loaded() { return 2;}
8990 _LT_EOF
8991 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8992 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8993 echo "$AR cru libconftest.a conftest.o" >&5
8994 $AR cru libconftest.a conftest.o 2>&5
8995 echo "$RANLIB libconftest.a" >&5
8996 $RANLIB libconftest.a 2>&5
8997 cat > conftest.c << _LT_EOF
8998 int main() { return 0;}
8999 _LT_EOF
9000 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9001 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9002 _lt_result=$?
9003 if test -s conftest.err && $GREP force_load conftest.err; then
9004 cat conftest.err >&5
9005 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9006 lt_cv_ld_force_load=yes
9007 else
9008 cat conftest.err >&5
9009 fi
9010 rm -f conftest.err libconftest.a conftest conftest.c
9011 rm -rf conftest.dSYM
9012
9013 fi
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9015 $as_echo "$lt_cv_ld_force_load" >&6; }
9016 case $host_os in
9017 rhapsody* | darwin1.[012])
9018 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9019 darwin1.*)
9020 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9021 darwin*) # darwin 5.x on
9022 # if running on 10.5 or later, the deployment target defaults
9023 # to the OS version, if on x86, and 10.4, the deployment
9024 # target defaults to 10.4. Don't you love it?
9025 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9026 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9027 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9028 10.[012]*)
9029 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9030 10.*)
9031 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9032 esac
9033 ;;
9034 esac
9035 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9036 _lt_dar_single_mod='$single_module'
9037 fi
9038 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9039 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9040 else
9041 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9042 fi
9043 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9044 _lt_dsymutil='~$DSYMUTIL $lib || :'
9045 else
9046 _lt_dsymutil=
9047 fi
9048 ;;
9049 esac
9050
9051 for ac_header in dlfcn.h
9052 do :
9053 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9054 "
9055 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9056 cat >>confdefs.h <<_ACEOF
9057 #define HAVE_DLFCN_H 1
9058 _ACEOF
9059
9060 fi
9061
9062 done
9063
9064
9065
9066
9067 func_stripname_cnf ()
9068 {
9069 case ${2} in
9070 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9071 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9072 esac
9073 } # func_stripname_cnf
9074
9075
9076
9077
9078
9079 # Set options
9080
9081
9082
9083 enable_dlopen=no
9084
9085
9086 enable_win32_dll=no
9087
9088
9089 # Check whether --enable-shared was given.
9090 if test "${enable_shared+set}" = set; then :
9091 enableval=$enable_shared; p=${PACKAGE-default}
9092 case $enableval in
9093 yes) enable_shared=yes ;;
9094 no) enable_shared=no ;;
9095 *)
9096 enable_shared=no
9097 # Look at the argument we got. We use all the common list separators.
9098 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9099 for pkg in $enableval; do
9100 IFS="$lt_save_ifs"
9101 if test "X$pkg" = "X$p"; then
9102 enable_shared=yes
9103 fi
9104 done
9105 IFS="$lt_save_ifs"
9106 ;;
9107 esac
9108 else
9109 enable_shared=yes
9110 fi
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122 # Check whether --with-pic was given.
9123 if test "${with_pic+set}" = set; then :
9124 withval=$with_pic; lt_p=${PACKAGE-default}
9125 case $withval in
9126 yes|no) pic_mode=$withval ;;
9127 *)
9128 pic_mode=default
9129 # Look at the argument we got. We use all the common list separators.
9130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9131 for lt_pkg in $withval; do
9132 IFS="$lt_save_ifs"
9133 if test "X$lt_pkg" = "X$lt_p"; then
9134 pic_mode=yes
9135 fi
9136 done
9137 IFS="$lt_save_ifs"
9138 ;;
9139 esac
9140 else
9141 pic_mode=default
9142 fi
9143
9144
9145 test -z "$pic_mode" && pic_mode=default
9146
9147
9148
9149
9150
9151
9152
9153 # Check whether --enable-fast-install was given.
9154 if test "${enable_fast_install+set}" = set; then :
9155 enableval=$enable_fast_install; p=${PACKAGE-default}
9156 case $enableval in
9157 yes) enable_fast_install=yes ;;
9158 no) enable_fast_install=no ;;
9159 *)
9160 enable_fast_install=no
9161 # Look at the argument we got. We use all the common list separators.
9162 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9163 for pkg in $enableval; do
9164 IFS="$lt_save_ifs"
9165 if test "X$pkg" = "X$p"; then
9166 enable_fast_install=yes
9167 fi
9168 done
9169 IFS="$lt_save_ifs"
9170 ;;
9171 esac
9172 else
9173 enable_fast_install=yes
9174 fi
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186 # This can be used to rebuild libtool when needed
9187 LIBTOOL_DEPS="$ltmain"
9188
9189 # Always use our own libtool.
9190 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221 test -z "$LN_S" && LN_S="ln -s"
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236 if test -n "${ZSH_VERSION+set}" ; then
9237 setopt NO_GLOB_SUBST
9238 fi
9239
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9241 $as_echo_n "checking for objdir... " >&6; }
9242 if ${lt_cv_objdir+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 rm -f .libs 2>/dev/null
9246 mkdir .libs 2>/dev/null
9247 if test -d .libs; then
9248 lt_cv_objdir=.libs
9249 else
9250 # MS-DOS does not allow filenames that begin with a dot.
9251 lt_cv_objdir=_libs
9252 fi
9253 rmdir .libs 2>/dev/null
9254 fi
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9256 $as_echo "$lt_cv_objdir" >&6; }
9257 objdir=$lt_cv_objdir
9258
9259
9260
9261
9262
9263 cat >>confdefs.h <<_ACEOF
9264 #define LT_OBJDIR "$lt_cv_objdir/"
9265 _ACEOF
9266
9267
9268
9269
9270 case $host_os in
9271 aix3*)
9272 # AIX sometimes has problems with the GCC collect2 program. For some
9273 # reason, if we set the COLLECT_NAMES environment variable, the problems
9274 # vanish in a puff of smoke.
9275 if test "X${COLLECT_NAMES+set}" != Xset; then
9276 COLLECT_NAMES=
9277 export COLLECT_NAMES
9278 fi
9279 ;;
9280 esac
9281
9282 # Global variables:
9283 ofile=libtool
9284 can_build_shared=yes
9285
9286 # All known linkers require a `.a' archive for static linking (except MSVC,
9287 # which needs '.lib').
9288 libext=a
9289
9290 with_gnu_ld="$lt_cv_prog_gnu_ld"
9291
9292 old_CC="$CC"
9293 old_CFLAGS="$CFLAGS"
9294
9295 # Set sane defaults for various variables
9296 test -z "$CC" && CC=cc
9297 test -z "$LTCC" && LTCC=$CC
9298 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9299 test -z "$LD" && LD=ld
9300 test -z "$ac_objext" && ac_objext=o
9301
9302 for cc_temp in $compiler""; do
9303 case $cc_temp in
9304 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9305 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9306 \-*) ;;
9307 *) break;;
9308 esac
9309 done
9310 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9311
9312
9313 # Only perform the check for file, if the check method requires it
9314 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9315 case $deplibs_check_method in
9316 file_magic*)
9317 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9319 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9320 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 case $MAGIC_CMD in
9324 [\\/*] | ?:[\\/]*)
9325 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9326 ;;
9327 *)
9328 lt_save_MAGIC_CMD="$MAGIC_CMD"
9329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9330 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9331 for ac_dir in $ac_dummy; do
9332 IFS="$lt_save_ifs"
9333 test -z "$ac_dir" && ac_dir=.
9334 if test -f $ac_dir/${ac_tool_prefix}file; then
9335 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9336 if test -n "$file_magic_test_file"; then
9337 case $deplibs_check_method in
9338 "file_magic "*)
9339 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9341 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9342 $EGREP "$file_magic_regex" > /dev/null; then
9343 :
9344 else
9345 cat <<_LT_EOF 1>&2
9346
9347 *** Warning: the command libtool uses to detect shared libraries,
9348 *** $file_magic_cmd, produces output that libtool cannot recognize.
9349 *** The result is that libtool may fail to recognize shared libraries
9350 *** as such. This will affect the creation of libtool libraries that
9351 *** depend on shared libraries, but programs linked with such libtool
9352 *** libraries will work regardless of this problem. Nevertheless, you
9353 *** may want to report the problem to your system manager and/or to
9354 *** bug-libtool@gnu.org
9355
9356 _LT_EOF
9357 fi ;;
9358 esac
9359 fi
9360 break
9361 fi
9362 done
9363 IFS="$lt_save_ifs"
9364 MAGIC_CMD="$lt_save_MAGIC_CMD"
9365 ;;
9366 esac
9367 fi
9368
9369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9370 if test -n "$MAGIC_CMD"; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9372 $as_echo "$MAGIC_CMD" >&6; }
9373 else
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375 $as_echo "no" >&6; }
9376 fi
9377
9378
9379
9380
9381
9382 if test -z "$lt_cv_path_MAGIC_CMD"; then
9383 if test -n "$ac_tool_prefix"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9385 $as_echo_n "checking for file... " >&6; }
9386 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 case $MAGIC_CMD in
9390 [\\/*] | ?:[\\/]*)
9391 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9392 ;;
9393 *)
9394 lt_save_MAGIC_CMD="$MAGIC_CMD"
9395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9396 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9397 for ac_dir in $ac_dummy; do
9398 IFS="$lt_save_ifs"
9399 test -z "$ac_dir" && ac_dir=.
9400 if test -f $ac_dir/file; then
9401 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9402 if test -n "$file_magic_test_file"; then
9403 case $deplibs_check_method in
9404 "file_magic "*)
9405 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9407 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9408 $EGREP "$file_magic_regex" > /dev/null; then
9409 :
9410 else
9411 cat <<_LT_EOF 1>&2
9412
9413 *** Warning: the command libtool uses to detect shared libraries,
9414 *** $file_magic_cmd, produces output that libtool cannot recognize.
9415 *** The result is that libtool may fail to recognize shared libraries
9416 *** as such. This will affect the creation of libtool libraries that
9417 *** depend on shared libraries, but programs linked with such libtool
9418 *** libraries will work regardless of this problem. Nevertheless, you
9419 *** may want to report the problem to your system manager and/or to
9420 *** bug-libtool@gnu.org
9421
9422 _LT_EOF
9423 fi ;;
9424 esac
9425 fi
9426 break
9427 fi
9428 done
9429 IFS="$lt_save_ifs"
9430 MAGIC_CMD="$lt_save_MAGIC_CMD"
9431 ;;
9432 esac
9433 fi
9434
9435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9436 if test -n "$MAGIC_CMD"; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9438 $as_echo "$MAGIC_CMD" >&6; }
9439 else
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9441 $as_echo "no" >&6; }
9442 fi
9443
9444
9445 else
9446 MAGIC_CMD=:
9447 fi
9448 fi
9449
9450 fi
9451 ;;
9452 esac
9453
9454 # Use C for the default configuration in the libtool script
9455
9456 lt_save_CC="$CC"
9457 ac_ext=c
9458 ac_cpp='$CPP $CPPFLAGS'
9459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9462
9463
9464 # Source file extension for C test sources.
9465 ac_ext=c
9466
9467 # Object file extension for compiled C test sources.
9468 objext=o
9469 objext=$objext
9470
9471 # Code to be used in simple compile tests
9472 lt_simple_compile_test_code="int some_variable = 0;"
9473
9474 # Code to be used in simple link tests
9475 lt_simple_link_test_code='int main(){return(0);}'
9476
9477
9478
9479
9480
9481
9482
9483 # If no C compiler was specified, use CC.
9484 LTCC=${LTCC-"$CC"}
9485
9486 # If no C compiler flags were specified, use CFLAGS.
9487 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9488
9489 # Allow CC to be a program name with arguments.
9490 compiler=$CC
9491
9492 # Save the default compiler, since it gets overwritten when the other
9493 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9494 compiler_DEFAULT=$CC
9495
9496 # save warnings/boilerplate of simple test code
9497 ac_outfile=conftest.$ac_objext
9498 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9499 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9500 _lt_compiler_boilerplate=`cat conftest.err`
9501 $RM conftest*
9502
9503 ac_outfile=conftest.$ac_objext
9504 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9505 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9506 _lt_linker_boilerplate=`cat conftest.err`
9507 $RM -r conftest*
9508
9509
9510 ## CAVEAT EMPTOR:
9511 ## There is no encapsulation within the following macros, do not change
9512 ## the running order or otherwise move them around unless you know exactly
9513 ## what you are doing...
9514 if test -n "$compiler"; then
9515
9516 lt_prog_compiler_no_builtin_flag=
9517
9518 if test "$GCC" = yes; then
9519 case $cc_basename in
9520 nvcc*)
9521 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9522 *)
9523 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9524 esac
9525
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9527 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9528 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 lt_cv_prog_compiler_rtti_exceptions=no
9532 ac_outfile=conftest.$ac_objext
9533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9534 lt_compiler_flag="-fno-rtti -fno-exceptions"
9535 # Insert the option either (1) after the last *FLAGS variable, or
9536 # (2) before a word containing "conftest.", or (3) at the end.
9537 # Note that $ac_compile itself does not contain backslashes and begins
9538 # with a dollar sign (not a hyphen), so the echo should work correctly.
9539 # The option is referenced via a variable to avoid confusing sed.
9540 lt_compile=`echo "$ac_compile" | $SED \
9541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9543 -e 's:$: $lt_compiler_flag:'`
9544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9545 (eval "$lt_compile" 2>conftest.err)
9546 ac_status=$?
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 if (exit $ac_status) && test -s "$ac_outfile"; then
9550 # The compiler can only warn and ignore the option if not recognized
9551 # So say no if there are warnings other than the usual output.
9552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9555 lt_cv_prog_compiler_rtti_exceptions=yes
9556 fi
9557 fi
9558 $RM conftest*
9559
9560 fi
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9562 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9563
9564 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9565 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9566 else
9567 :
9568 fi
9569
9570 fi
9571
9572
9573
9574
9575
9576
9577 lt_prog_compiler_wl=
9578 lt_prog_compiler_pic=
9579 lt_prog_compiler_static=
9580
9581
9582 if test "$GCC" = yes; then
9583 lt_prog_compiler_wl='-Wl,'
9584 lt_prog_compiler_static='-static'
9585
9586 case $host_os in
9587 aix*)
9588 # All AIX code is PIC.
9589 if test "$host_cpu" = ia64; then
9590 # AIX 5 now supports IA64 processor
9591 lt_prog_compiler_static='-Bstatic'
9592 fi
9593 ;;
9594
9595 amigaos*)
9596 case $host_cpu in
9597 powerpc)
9598 # see comment about AmigaOS4 .so support
9599 lt_prog_compiler_pic='-fPIC'
9600 ;;
9601 m68k)
9602 # FIXME: we need at least 68020 code to build shared libraries, but
9603 # adding the `-m68020' flag to GCC prevents building anything better,
9604 # like `-m68040'.
9605 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9606 ;;
9607 esac
9608 ;;
9609
9610 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9611 # PIC is the default for these OSes.
9612 ;;
9613
9614 mingw* | cygwin* | pw32* | os2* | cegcc*)
9615 # This hack is so that the source file can tell whether it is being
9616 # built for inclusion in a dll (and should export symbols for example).
9617 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9618 # (--disable-auto-import) libraries
9619 lt_prog_compiler_pic='-DDLL_EXPORT'
9620 ;;
9621
9622 darwin* | rhapsody*)
9623 # PIC is the default on this platform
9624 # Common symbols not allowed in MH_DYLIB files
9625 lt_prog_compiler_pic='-fno-common'
9626 ;;
9627
9628 haiku*)
9629 # PIC is the default for Haiku.
9630 # The "-static" flag exists, but is broken.
9631 lt_prog_compiler_static=
9632 ;;
9633
9634 hpux*)
9635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9637 # sets the default TLS model and affects inlining.
9638 case $host_cpu in
9639 hppa*64*)
9640 # +Z the default
9641 ;;
9642 *)
9643 lt_prog_compiler_pic='-fPIC'
9644 ;;
9645 esac
9646 ;;
9647
9648 interix[3-9]*)
9649 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9650 # Instead, we relocate shared libraries at runtime.
9651 ;;
9652
9653 msdosdjgpp*)
9654 # Just because we use GCC doesn't mean we suddenly get shared libraries
9655 # on systems that don't support them.
9656 lt_prog_compiler_can_build_shared=no
9657 enable_shared=no
9658 ;;
9659
9660 *nto* | *qnx*)
9661 # QNX uses GNU C++, but need to define -shared option too, otherwise
9662 # it will coredump.
9663 lt_prog_compiler_pic='-fPIC -shared'
9664 ;;
9665
9666 sysv4*MP*)
9667 if test -d /usr/nec; then
9668 lt_prog_compiler_pic=-Kconform_pic
9669 fi
9670 ;;
9671
9672 *)
9673 lt_prog_compiler_pic='-fPIC'
9674 ;;
9675 esac
9676
9677 case $cc_basename in
9678 nvcc*) # Cuda Compiler Driver 2.2
9679 lt_prog_compiler_wl='-Xlinker '
9680 if test -n "$lt_prog_compiler_pic"; then
9681 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9682 fi
9683 ;;
9684 esac
9685 else
9686 # PORTME Check for flag to pass linker flags through the system compiler.
9687 case $host_os in
9688 aix*)
9689 lt_prog_compiler_wl='-Wl,'
9690 if test "$host_cpu" = ia64; then
9691 # AIX 5 now supports IA64 processor
9692 lt_prog_compiler_static='-Bstatic'
9693 else
9694 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9695 fi
9696 ;;
9697
9698 mingw* | cygwin* | pw32* | os2* | cegcc*)
9699 # This hack is so that the source file can tell whether it is being
9700 # built for inclusion in a dll (and should export symbols for example).
9701 lt_prog_compiler_pic='-DDLL_EXPORT'
9702 ;;
9703
9704 hpux9* | hpux10* | hpux11*)
9705 lt_prog_compiler_wl='-Wl,'
9706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9707 # not for PA HP-UX.
9708 case $host_cpu in
9709 hppa*64*|ia64*)
9710 # +Z the default
9711 ;;
9712 *)
9713 lt_prog_compiler_pic='+Z'
9714 ;;
9715 esac
9716 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9717 lt_prog_compiler_static='${wl}-a ${wl}archive'
9718 ;;
9719
9720 irix5* | irix6* | nonstopux*)
9721 lt_prog_compiler_wl='-Wl,'
9722 # PIC (with -KPIC) is the default.
9723 lt_prog_compiler_static='-non_shared'
9724 ;;
9725
9726 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9727 case $cc_basename in
9728 # old Intel for x86_64 which still supported -KPIC.
9729 ecc*)
9730 lt_prog_compiler_wl='-Wl,'
9731 lt_prog_compiler_pic='-KPIC'
9732 lt_prog_compiler_static='-static'
9733 ;;
9734 # icc used to be incompatible with GCC.
9735 # ICC 10 doesn't accept -KPIC any more.
9736 icc* | ifort*)
9737 lt_prog_compiler_wl='-Wl,'
9738 lt_prog_compiler_pic='-fPIC'
9739 lt_prog_compiler_static='-static'
9740 ;;
9741 # Lahey Fortran 8.1.
9742 lf95*)
9743 lt_prog_compiler_wl='-Wl,'
9744 lt_prog_compiler_pic='--shared'
9745 lt_prog_compiler_static='--static'
9746 ;;
9747 nagfor*)
9748 # NAG Fortran compiler
9749 lt_prog_compiler_wl='-Wl,-Wl,,'
9750 lt_prog_compiler_pic='-PIC'
9751 lt_prog_compiler_static='-Bstatic'
9752 ;;
9753 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9754 # Portland Group compilers (*not* the Pentium gcc compiler,
9755 # which looks to be a dead project)
9756 lt_prog_compiler_wl='-Wl,'
9757 lt_prog_compiler_pic='-fpic'
9758 lt_prog_compiler_static='-Bstatic'
9759 ;;
9760 ccc*)
9761 lt_prog_compiler_wl='-Wl,'
9762 # All Alpha code is PIC.
9763 lt_prog_compiler_static='-non_shared'
9764 ;;
9765 xl* | bgxl* | bgf* | mpixl*)
9766 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9767 lt_prog_compiler_wl='-Wl,'
9768 lt_prog_compiler_pic='-qpic'
9769 lt_prog_compiler_static='-qstaticlink'
9770 ;;
9771 *)
9772 case `$CC -V 2>&1 | sed 5q` in
9773 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9774 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9775 lt_prog_compiler_pic='-KPIC'
9776 lt_prog_compiler_static='-Bstatic'
9777 lt_prog_compiler_wl=''
9778 ;;
9779 *Sun\ F* | *Sun*Fortran*)
9780 lt_prog_compiler_pic='-KPIC'
9781 lt_prog_compiler_static='-Bstatic'
9782 lt_prog_compiler_wl='-Qoption ld '
9783 ;;
9784 *Sun\ C*)
9785 # Sun C 5.9
9786 lt_prog_compiler_pic='-KPIC'
9787 lt_prog_compiler_static='-Bstatic'
9788 lt_prog_compiler_wl='-Wl,'
9789 ;;
9790 *Intel*\ [CF]*Compiler*)
9791 lt_prog_compiler_wl='-Wl,'
9792 lt_prog_compiler_pic='-fPIC'
9793 lt_prog_compiler_static='-static'
9794 ;;
9795 *Portland\ Group*)
9796 lt_prog_compiler_wl='-Wl,'
9797 lt_prog_compiler_pic='-fpic'
9798 lt_prog_compiler_static='-Bstatic'
9799 ;;
9800 esac
9801 ;;
9802 esac
9803 ;;
9804
9805 newsos6)
9806 lt_prog_compiler_pic='-KPIC'
9807 lt_prog_compiler_static='-Bstatic'
9808 ;;
9809
9810 *nto* | *qnx*)
9811 # QNX uses GNU C++, but need to define -shared option too, otherwise
9812 # it will coredump.
9813 lt_prog_compiler_pic='-fPIC -shared'
9814 ;;
9815
9816 osf3* | osf4* | osf5*)
9817 lt_prog_compiler_wl='-Wl,'
9818 # All OSF/1 code is PIC.
9819 lt_prog_compiler_static='-non_shared'
9820 ;;
9821
9822 rdos*)
9823 lt_prog_compiler_static='-non_shared'
9824 ;;
9825
9826 solaris*)
9827 lt_prog_compiler_pic='-KPIC'
9828 lt_prog_compiler_static='-Bstatic'
9829 case $cc_basename in
9830 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9831 lt_prog_compiler_wl='-Qoption ld ';;
9832 *)
9833 lt_prog_compiler_wl='-Wl,';;
9834 esac
9835 ;;
9836
9837 sunos4*)
9838 lt_prog_compiler_wl='-Qoption ld '
9839 lt_prog_compiler_pic='-PIC'
9840 lt_prog_compiler_static='-Bstatic'
9841 ;;
9842
9843 sysv4 | sysv4.2uw2* | sysv4.3*)
9844 lt_prog_compiler_wl='-Wl,'
9845 lt_prog_compiler_pic='-KPIC'
9846 lt_prog_compiler_static='-Bstatic'
9847 ;;
9848
9849 sysv4*MP*)
9850 if test -d /usr/nec ;then
9851 lt_prog_compiler_pic='-Kconform_pic'
9852 lt_prog_compiler_static='-Bstatic'
9853 fi
9854 ;;
9855
9856 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9857 lt_prog_compiler_wl='-Wl,'
9858 lt_prog_compiler_pic='-KPIC'
9859 lt_prog_compiler_static='-Bstatic'
9860 ;;
9861
9862 unicos*)
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_can_build_shared=no
9865 ;;
9866
9867 uts4*)
9868 lt_prog_compiler_pic='-pic'
9869 lt_prog_compiler_static='-Bstatic'
9870 ;;
9871
9872 *)
9873 lt_prog_compiler_can_build_shared=no
9874 ;;
9875 esac
9876 fi
9877
9878 case $host_os in
9879 # For platforms which do not support PIC, -DPIC is meaningless:
9880 *djgpp*)
9881 lt_prog_compiler_pic=
9882 ;;
9883 *)
9884 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9885 ;;
9886 esac
9887
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9889 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9890 if ${lt_cv_prog_compiler_pic+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9894 fi
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9896 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9897 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9898
9899 #
9900 # Check to make sure the PIC flag actually works.
9901 #
9902 if test -n "$lt_prog_compiler_pic"; then
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9904 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9905 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 lt_cv_prog_compiler_pic_works=no
9909 ac_outfile=conftest.$ac_objext
9910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9911 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9912 # Insert the option either (1) after the last *FLAGS variable, or
9913 # (2) before a word containing "conftest.", or (3) at the end.
9914 # Note that $ac_compile itself does not contain backslashes and begins
9915 # with a dollar sign (not a hyphen), so the echo should work correctly.
9916 # The option is referenced via a variable to avoid confusing sed.
9917 lt_compile=`echo "$ac_compile" | $SED \
9918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9920 -e 's:$: $lt_compiler_flag:'`
9921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9922 (eval "$lt_compile" 2>conftest.err)
9923 ac_status=$?
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 if (exit $ac_status) && test -s "$ac_outfile"; then
9927 # The compiler can only warn and ignore the option if not recognized
9928 # So say no if there are warnings other than the usual output.
9929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9932 lt_cv_prog_compiler_pic_works=yes
9933 fi
9934 fi
9935 $RM conftest*
9936
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9939 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9940
9941 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9942 case $lt_prog_compiler_pic in
9943 "" | " "*) ;;
9944 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9945 esac
9946 else
9947 lt_prog_compiler_pic=
9948 lt_prog_compiler_can_build_shared=no
9949 fi
9950
9951 fi
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963 #
9964 # Check to make sure the static flag actually works.
9965 #
9966 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9968 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9969 if ${lt_cv_prog_compiler_static_works+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 lt_cv_prog_compiler_static_works=no
9973 save_LDFLAGS="$LDFLAGS"
9974 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9975 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9976 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9977 # The linker can only warn and ignore the option if not recognized
9978 # So say no if there are warnings
9979 if test -s conftest.err; then
9980 # Append any errors to the config.log.
9981 cat conftest.err 1>&5
9982 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9984 if diff conftest.exp conftest.er2 >/dev/null; then
9985 lt_cv_prog_compiler_static_works=yes
9986 fi
9987 else
9988 lt_cv_prog_compiler_static_works=yes
9989 fi
9990 fi
9991 $RM -r conftest*
9992 LDFLAGS="$save_LDFLAGS"
9993
9994 fi
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9996 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9997
9998 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9999 :
10000 else
10001 lt_prog_compiler_static=
10002 fi
10003
10004
10005
10006
10007
10008
10009
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10011 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10012 if ${lt_cv_prog_compiler_c_o+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 lt_cv_prog_compiler_c_o=no
10016 $RM -r conftest 2>/dev/null
10017 mkdir conftest
10018 cd conftest
10019 mkdir out
10020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10021
10022 lt_compiler_flag="-o out/conftest2.$ac_objext"
10023 # Insert the option either (1) after the last *FLAGS variable, or
10024 # (2) before a word containing "conftest.", or (3) at the end.
10025 # Note that $ac_compile itself does not contain backslashes and begins
10026 # with a dollar sign (not a hyphen), so the echo should work correctly.
10027 lt_compile=`echo "$ac_compile" | $SED \
10028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10030 -e 's:$: $lt_compiler_flag:'`
10031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10032 (eval "$lt_compile" 2>out/conftest.err)
10033 ac_status=$?
10034 cat out/conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10037 then
10038 # The compiler can only warn and ignore the option if not recognized
10039 # So say no if there are warnings
10040 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10041 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10042 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10043 lt_cv_prog_compiler_c_o=yes
10044 fi
10045 fi
10046 chmod u+w . 2>&5
10047 $RM conftest*
10048 # SGI C++ compiler will create directory out/ii_files/ for
10049 # template instantiation
10050 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10051 $RM out/* && rmdir out
10052 cd ..
10053 $RM -r conftest
10054 $RM conftest*
10055
10056 fi
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10058 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10059
10060
10061
10062
10063
10064
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10067 if ${lt_cv_prog_compiler_c_o+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 lt_cv_prog_compiler_c_o=no
10071 $RM -r conftest 2>/dev/null
10072 mkdir conftest
10073 cd conftest
10074 mkdir out
10075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10076
10077 lt_compiler_flag="-o out/conftest2.$ac_objext"
10078 # Insert the option either (1) after the last *FLAGS variable, or
10079 # (2) before a word containing "conftest.", or (3) at the end.
10080 # Note that $ac_compile itself does not contain backslashes and begins
10081 # with a dollar sign (not a hyphen), so the echo should work correctly.
10082 lt_compile=`echo "$ac_compile" | $SED \
10083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10085 -e 's:$: $lt_compiler_flag:'`
10086 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10087 (eval "$lt_compile" 2>out/conftest.err)
10088 ac_status=$?
10089 cat out/conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10092 then
10093 # The compiler can only warn and ignore the option if not recognized
10094 # So say no if there are warnings
10095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10098 lt_cv_prog_compiler_c_o=yes
10099 fi
10100 fi
10101 chmod u+w . 2>&5
10102 $RM conftest*
10103 # SGI C++ compiler will create directory out/ii_files/ for
10104 # template instantiation
10105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10106 $RM out/* && rmdir out
10107 cd ..
10108 $RM -r conftest
10109 $RM conftest*
10110
10111 fi
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10114
10115
10116
10117
10118 hard_links="nottested"
10119 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10120 # do not overwrite the value of need_locks provided by the user
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10122 $as_echo_n "checking if we can lock with hard links... " >&6; }
10123 hard_links=yes
10124 $RM conftest*
10125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10126 touch conftest.a
10127 ln conftest.a conftest.b 2>&5 || hard_links=no
10128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10130 $as_echo "$hard_links" >&6; }
10131 if test "$hard_links" = no; then
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10133 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10134 need_locks=warn
10135 fi
10136 else
10137 need_locks=no
10138 fi
10139
10140
10141
10142
10143
10144
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10146 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10147
10148 runpath_var=
10149 allow_undefined_flag=
10150 always_export_symbols=no
10151 archive_cmds=
10152 archive_expsym_cmds=
10153 compiler_needs_object=no
10154 enable_shared_with_static_runtimes=no
10155 export_dynamic_flag_spec=
10156 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10157 hardcode_automatic=no
10158 hardcode_direct=no
10159 hardcode_direct_absolute=no
10160 hardcode_libdir_flag_spec=
10161 hardcode_libdir_separator=
10162 hardcode_minus_L=no
10163 hardcode_shlibpath_var=unsupported
10164 inherit_rpath=no
10165 link_all_deplibs=unknown
10166 module_cmds=
10167 module_expsym_cmds=
10168 old_archive_from_new_cmds=
10169 old_archive_from_expsyms_cmds=
10170 thread_safe_flag_spec=
10171 whole_archive_flag_spec=
10172 # include_expsyms should be a list of space-separated symbols to be *always*
10173 # included in the symbol list
10174 include_expsyms=
10175 # exclude_expsyms can be an extended regexp of symbols to exclude
10176 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10177 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10178 # as well as any symbol that contains `d'.
10179 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10180 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10181 # platforms (ab)use it in PIC code, but their linkers get confused if
10182 # the symbol is explicitly referenced. Since portable code cannot
10183 # rely on this symbol name, it's probably fine to never include it in
10184 # preloaded symbol tables.
10185 # Exclude shared library initialization/finalization symbols.
10186 extract_expsyms_cmds=
10187
10188 case $host_os in
10189 cygwin* | mingw* | pw32* | cegcc*)
10190 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10191 # When not using gcc, we currently assume that we are using
10192 # Microsoft Visual C++.
10193 if test "$GCC" != yes; then
10194 with_gnu_ld=no
10195 fi
10196 ;;
10197 interix*)
10198 # we just hope/assume this is gcc and not c89 (= MSVC++)
10199 with_gnu_ld=yes
10200 ;;
10201 openbsd*)
10202 with_gnu_ld=no
10203 ;;
10204 esac
10205
10206 ld_shlibs=yes
10207
10208 # On some targets, GNU ld is compatible enough with the native linker
10209 # that we're better off using the native interface for both.
10210 lt_use_gnu_ld_interface=no
10211 if test "$with_gnu_ld" = yes; then
10212 case $host_os in
10213 aix*)
10214 # The AIX port of GNU ld has always aspired to compatibility
10215 # with the native linker. However, as the warning in the GNU ld
10216 # block says, versions before 2.19.5* couldn't really create working
10217 # shared libraries, regardless of the interface used.
10218 case `$LD -v 2>&1` in
10219 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10220 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10221 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10222 *)
10223 lt_use_gnu_ld_interface=yes
10224 ;;
10225 esac
10226 ;;
10227 *)
10228 lt_use_gnu_ld_interface=yes
10229 ;;
10230 esac
10231 fi
10232
10233 if test "$lt_use_gnu_ld_interface" = yes; then
10234 # If archive_cmds runs LD, not CC, wlarc should be empty
10235 wlarc='${wl}'
10236
10237 # Set some defaults for GNU ld with shared library support. These
10238 # are reset later if shared libraries are not supported. Putting them
10239 # here allows them to be overridden if necessary.
10240 runpath_var=LD_RUN_PATH
10241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10242 export_dynamic_flag_spec='${wl}--export-dynamic'
10243 # ancient GNU ld didn't support --whole-archive et. al.
10244 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10245 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10246 else
10247 whole_archive_flag_spec=
10248 fi
10249 supports_anon_versioning=no
10250 case `$LD -v 2>&1` in
10251 *GNU\ gold*) supports_anon_versioning=yes ;;
10252 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10253 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10254 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10255 *\ 2.11.*) ;; # other 2.11 versions
10256 *) supports_anon_versioning=yes ;;
10257 esac
10258
10259 # See if GNU ld supports shared libraries.
10260 case $host_os in
10261 aix[3-9]*)
10262 # On AIX/PPC, the GNU linker is very broken
10263 if test "$host_cpu" != ia64; then
10264 ld_shlibs=no
10265 cat <<_LT_EOF 1>&2
10266
10267 *** Warning: the GNU linker, at least up to release 2.19, is reported
10268 *** to be unable to reliably create shared libraries on AIX.
10269 *** Therefore, libtool is disabling shared libraries support. If you
10270 *** really care for shared libraries, you may want to install binutils
10271 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10272 *** You will then need to restart the configuration process.
10273
10274 _LT_EOF
10275 fi
10276 ;;
10277
10278 amigaos*)
10279 case $host_cpu in
10280 powerpc)
10281 # see comment about AmigaOS4 .so support
10282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10283 archive_expsym_cmds=''
10284 ;;
10285 m68k)
10286 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10287 hardcode_libdir_flag_spec='-L$libdir'
10288 hardcode_minus_L=yes
10289 ;;
10290 esac
10291 ;;
10292
10293 beos*)
10294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10295 allow_undefined_flag=unsupported
10296 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10297 # support --undefined. This deserves some investigation. FIXME
10298 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10299 else
10300 ld_shlibs=no
10301 fi
10302 ;;
10303
10304 cygwin* | mingw* | pw32* | cegcc*)
10305 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10306 # as there is no search path for DLLs.
10307 hardcode_libdir_flag_spec='-L$libdir'
10308 export_dynamic_flag_spec='${wl}--export-all-symbols'
10309 allow_undefined_flag=unsupported
10310 always_export_symbols=no
10311 enable_shared_with_static_runtimes=yes
10312 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10313 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10314
10315 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10317 # If the export-symbols file already is a .def file (1st line
10318 # is EXPORTS), use it as is; otherwise, prepend...
10319 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10320 cp $export_symbols $output_objdir/$soname.def;
10321 else
10322 echo EXPORTS > $output_objdir/$soname.def;
10323 cat $export_symbols >> $output_objdir/$soname.def;
10324 fi~
10325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10326 else
10327 ld_shlibs=no
10328 fi
10329 ;;
10330
10331 haiku*)
10332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10333 link_all_deplibs=yes
10334 ;;
10335
10336 interix[3-9]*)
10337 hardcode_direct=no
10338 hardcode_shlibpath_var=no
10339 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10340 export_dynamic_flag_spec='${wl}-E'
10341 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10342 # Instead, shared libraries are loaded at an image base (0x10000000 by
10343 # default) and relocated if they conflict, which is a slow very memory
10344 # consuming and fragmenting process. To avoid this, we pick a random,
10345 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10346 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10347 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10348 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10349 ;;
10350
10351 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10352 tmp_diet=no
10353 if test "$host_os" = linux-dietlibc; then
10354 case $cc_basename in
10355 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10356 esac
10357 fi
10358 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10359 && test "$tmp_diet" = no
10360 then
10361 tmp_addflag=' $pic_flag'
10362 tmp_sharedflag='-shared'
10363 case $cc_basename,$host_cpu in
10364 pgcc*) # Portland Group C compiler
10365 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10366 tmp_addflag=' $pic_flag'
10367 ;;
10368 pgf77* | pgf90* | pgf95* | pgfortran*)
10369 # Portland Group f77 and f90 compilers
10370 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10371 tmp_addflag=' $pic_flag -Mnomain' ;;
10372 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10373 tmp_addflag=' -i_dynamic' ;;
10374 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10375 tmp_addflag=' -i_dynamic -nofor_main' ;;
10376 ifc* | ifort*) # Intel Fortran compiler
10377 tmp_addflag=' -nofor_main' ;;
10378 lf95*) # Lahey Fortran 8.1
10379 whole_archive_flag_spec=
10380 tmp_sharedflag='--shared' ;;
10381 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10382 tmp_sharedflag='-qmkshrobj'
10383 tmp_addflag= ;;
10384 nvcc*) # Cuda Compiler Driver 2.2
10385 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10386 compiler_needs_object=yes
10387 ;;
10388 esac
10389 case `$CC -V 2>&1 | sed 5q` in
10390 *Sun\ C*) # Sun C 5.9
10391 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10392 compiler_needs_object=yes
10393 tmp_sharedflag='-G' ;;
10394 *Sun\ F*) # Sun Fortran 8.3
10395 tmp_sharedflag='-G' ;;
10396 esac
10397 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10398
10399 if test "x$supports_anon_versioning" = xyes; then
10400 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10402 echo "local: *; };" >> $output_objdir/$libname.ver~
10403 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10404 fi
10405
10406 case $cc_basename in
10407 xlf* | bgf* | bgxlf* | mpixlf*)
10408 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10409 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10411 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10412 if test "x$supports_anon_versioning" = xyes; then
10413 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10414 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10415 echo "local: *; };" >> $output_objdir/$libname.ver~
10416 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10417 fi
10418 ;;
10419 esac
10420 else
10421 ld_shlibs=no
10422 fi
10423 ;;
10424
10425 netbsd*)
10426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10427 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10428 wlarc=
10429 else
10430 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10431 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10432 fi
10433 ;;
10434
10435 solaris*)
10436 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10437 ld_shlibs=no
10438 cat <<_LT_EOF 1>&2
10439
10440 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10441 *** create shared libraries on Solaris systems. Therefore, libtool
10442 *** is disabling shared libraries support. We urge you to upgrade GNU
10443 *** binutils to release 2.9.1 or newer. Another option is to modify
10444 *** your PATH or compiler configuration so that the native linker is
10445 *** used, and then restart.
10446
10447 _LT_EOF
10448 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10449 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10450 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10451 else
10452 ld_shlibs=no
10453 fi
10454 ;;
10455
10456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10457 case `$LD -v 2>&1` in
10458 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10459 ld_shlibs=no
10460 cat <<_LT_EOF 1>&2
10461
10462 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10463 *** reliably create shared libraries on SCO systems. Therefore, libtool
10464 *** is disabling shared libraries support. We urge you to upgrade GNU
10465 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10466 *** your PATH or compiler configuration so that the native linker is
10467 *** used, and then restart.
10468
10469 _LT_EOF
10470 ;;
10471 *)
10472 # For security reasons, it is highly recommended that you always
10473 # use absolute paths for naming shared libraries, and exclude the
10474 # DT_RUNPATH tag from executables and libraries. But doing so
10475 # requires that you compile everything twice, which is a pain.
10476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10480 else
10481 ld_shlibs=no
10482 fi
10483 ;;
10484 esac
10485 ;;
10486
10487 sunos4*)
10488 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10489 wlarc=
10490 hardcode_direct=yes
10491 hardcode_shlibpath_var=no
10492 ;;
10493
10494 *)
10495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10496 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10497 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10498 else
10499 ld_shlibs=no
10500 fi
10501 ;;
10502 esac
10503
10504 if test "$ld_shlibs" = no; then
10505 runpath_var=
10506 hardcode_libdir_flag_spec=
10507 export_dynamic_flag_spec=
10508 whole_archive_flag_spec=
10509 fi
10510 else
10511 # PORTME fill in a description of your system's linker (not GNU ld)
10512 case $host_os in
10513 aix3*)
10514 allow_undefined_flag=unsupported
10515 always_export_symbols=yes
10516 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10517 # Note: this linker hardcodes the directories in LIBPATH if there
10518 # are no directories specified by -L.
10519 hardcode_minus_L=yes
10520 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10521 # Neither direct hardcoding nor static linking is supported with a
10522 # broken collect2.
10523 hardcode_direct=unsupported
10524 fi
10525 ;;
10526
10527 aix[4-9]*)
10528 if test "$host_cpu" = ia64; then
10529 # On IA64, the linker does run time linking by default, so we don't
10530 # have to do anything special.
10531 aix_use_runtimelinking=no
10532 exp_sym_flag='-Bexport'
10533 no_entry_flag=""
10534 else
10535 # If we're using GNU nm, then we don't want the "-C" option.
10536 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10537 # Also, AIX nm treats weak defined symbols like other global
10538 # defined symbols, whereas GNU nm marks them as "W".
10539 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10540 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10541 else
10542 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10543 fi
10544 aix_use_runtimelinking=no
10545
10546 # Test if we are trying to use run time linking or normal
10547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10548 # need to do runtime linking.
10549 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10550 for ld_flag in $LDFLAGS; do
10551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10552 aix_use_runtimelinking=yes
10553 break
10554 fi
10555 done
10556 ;;
10557 esac
10558
10559 exp_sym_flag='-bexport'
10560 no_entry_flag='-bnoentry'
10561 fi
10562
10563 # When large executables or shared objects are built, AIX ld can
10564 # have problems creating the table of contents. If linking a library
10565 # or program results in "error TOC overflow" add -mminimal-toc to
10566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10568
10569 archive_cmds=''
10570 hardcode_direct=yes
10571 hardcode_direct_absolute=yes
10572 hardcode_libdir_separator=':'
10573 link_all_deplibs=yes
10574 file_list_spec='${wl}-f,'
10575
10576 if test "$GCC" = yes; then
10577 case $host_os in aix4.[012]|aix4.[012].*)
10578 # We only want to do this on AIX 4.2 and lower, the check
10579 # below for broken collect2 doesn't work under 4.3+
10580 collect2name=`${CC} -print-prog-name=collect2`
10581 if test -f "$collect2name" &&
10582 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10583 then
10584 # We have reworked collect2
10585 :
10586 else
10587 # We have old collect2
10588 hardcode_direct=unsupported
10589 # It fails to find uninstalled libraries when the uninstalled
10590 # path is not listed in the libpath. Setting hardcode_minus_L
10591 # to unsupported forces relinking
10592 hardcode_minus_L=yes
10593 hardcode_libdir_flag_spec='-L$libdir'
10594 hardcode_libdir_separator=
10595 fi
10596 ;;
10597 esac
10598 shared_flag='-shared'
10599 if test "$aix_use_runtimelinking" = yes; then
10600 shared_flag="$shared_flag "'${wl}-G'
10601 fi
10602 else
10603 # not using gcc
10604 if test "$host_cpu" = ia64; then
10605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10606 # chokes on -Wl,-G. The following line is correct:
10607 shared_flag='-G'
10608 else
10609 if test "$aix_use_runtimelinking" = yes; then
10610 shared_flag='${wl}-G'
10611 else
10612 shared_flag='${wl}-bM:SRE'
10613 fi
10614 fi
10615 fi
10616
10617 export_dynamic_flag_spec='${wl}-bexpall'
10618 # It seems that -bexpall does not export symbols beginning with
10619 # underscore (_), so it is better to generate a list of symbols to export.
10620 always_export_symbols=yes
10621 if test "$aix_use_runtimelinking" = yes; then
10622 # Warning - without using the other runtime loading flags (-brtl),
10623 # -berok will link without error, but may produce a broken library.
10624 allow_undefined_flag='-berok'
10625 # Determine the default libpath from the value encoded in an
10626 # empty executable.
10627 if test "${lt_cv_aix_libpath+set}" = set; then
10628 aix_libpath=$lt_cv_aix_libpath
10629 else
10630 if ${lt_cv_aix_libpath_+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635
10636 int
10637 main ()
10638 {
10639
10640 ;
10641 return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645
10646 lt_aix_libpath_sed='
10647 /Import File Strings/,/^$/ {
10648 /^0/ {
10649 s/^0 *\([^ ]*\) *$/\1/
10650 p
10651 }
10652 }'
10653 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10654 # Check for a 64-bit object if we didn't find anything.
10655 if test -z "$lt_cv_aix_libpath_"; then
10656 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10657 fi
10658 fi
10659 rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10661 if test -z "$lt_cv_aix_libpath_"; then
10662 lt_cv_aix_libpath_="/usr/lib:/lib"
10663 fi
10664
10665 fi
10666
10667 aix_libpath=$lt_cv_aix_libpath_
10668 fi
10669
10670 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10671 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10672 else
10673 if test "$host_cpu" = ia64; then
10674 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10675 allow_undefined_flag="-z nodefs"
10676 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10677 else
10678 # Determine the default libpath from the value encoded in an
10679 # empty executable.
10680 if test "${lt_cv_aix_libpath+set}" = set; then
10681 aix_libpath=$lt_cv_aix_libpath
10682 else
10683 if ${lt_cv_aix_libpath_+:} false; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688
10689 int
10690 main ()
10691 {
10692
10693 ;
10694 return 0;
10695 }
10696 _ACEOF
10697 if ac_fn_c_try_link "$LINENO"; then :
10698
10699 lt_aix_libpath_sed='
10700 /Import File Strings/,/^$/ {
10701 /^0/ {
10702 s/^0 *\([^ ]*\) *$/\1/
10703 p
10704 }
10705 }'
10706 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10707 # Check for a 64-bit object if we didn't find anything.
10708 if test -z "$lt_cv_aix_libpath_"; then
10709 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10710 fi
10711 fi
10712 rm -f core conftest.err conftest.$ac_objext \
10713 conftest$ac_exeext conftest.$ac_ext
10714 if test -z "$lt_cv_aix_libpath_"; then
10715 lt_cv_aix_libpath_="/usr/lib:/lib"
10716 fi
10717
10718 fi
10719
10720 aix_libpath=$lt_cv_aix_libpath_
10721 fi
10722
10723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10724 # Warning - without using the other run time loading flags,
10725 # -berok will link without error, but may produce a broken library.
10726 no_undefined_flag=' ${wl}-bernotok'
10727 allow_undefined_flag=' ${wl}-berok'
10728 if test "$with_gnu_ld" = yes; then
10729 # We only use this code for GNU lds that support --whole-archive.
10730 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10731 else
10732 # Exported symbols can be pulled into shared objects from archives
10733 whole_archive_flag_spec='$convenience'
10734 fi
10735 archive_cmds_need_lc=yes
10736 # This is similar to how AIX traditionally builds its shared libraries.
10737 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10738 fi
10739 fi
10740 ;;
10741
10742 amigaos*)
10743 case $host_cpu in
10744 powerpc)
10745 # see comment about AmigaOS4 .so support
10746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10747 archive_expsym_cmds=''
10748 ;;
10749 m68k)
10750 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10751 hardcode_libdir_flag_spec='-L$libdir'
10752 hardcode_minus_L=yes
10753 ;;
10754 esac
10755 ;;
10756
10757 bsdi[45]*)
10758 export_dynamic_flag_spec=-rdynamic
10759 ;;
10760
10761 cygwin* | mingw* | pw32* | cegcc*)
10762 # When not using gcc, we currently assume that we are using
10763 # Microsoft Visual C++.
10764 # hardcode_libdir_flag_spec is actually meaningless, as there is
10765 # no search path for DLLs.
10766 case $cc_basename in
10767 cl*)
10768 # Native MSVC
10769 hardcode_libdir_flag_spec=' '
10770 allow_undefined_flag=unsupported
10771 always_export_symbols=yes
10772 file_list_spec='@'
10773 # Tell ltmain to make .lib files, not .a files.
10774 libext=lib
10775 # Tell ltmain to make .dll files, not .so files.
10776 shrext_cmds=".dll"
10777 # FIXME: Setting linknames here is a bad hack.
10778 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10779 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10780 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10781 else
10782 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10783 fi~
10784 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10785 linknames='
10786 # The linker will not automatically build a static lib if we build a DLL.
10787 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10788 enable_shared_with_static_runtimes=yes
10789 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10791 # Don't use ranlib
10792 old_postinstall_cmds='chmod 644 $oldlib'
10793 postlink_cmds='lt_outputfile="@OUTPUT@"~
10794 lt_tool_outputfile="@TOOL_OUTPUT@"~
10795 case $lt_outputfile in
10796 *.exe|*.EXE) ;;
10797 *)
10798 lt_outputfile="$lt_outputfile.exe"
10799 lt_tool_outputfile="$lt_tool_outputfile.exe"
10800 ;;
10801 esac~
10802 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10803 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10804 $RM "$lt_outputfile.manifest";
10805 fi'
10806 ;;
10807 *)
10808 # Assume MSVC wrapper
10809 hardcode_libdir_flag_spec=' '
10810 allow_undefined_flag=unsupported
10811 # Tell ltmain to make .lib files, not .a files.
10812 libext=lib
10813 # Tell ltmain to make .dll files, not .so files.
10814 shrext_cmds=".dll"
10815 # FIXME: Setting linknames here is a bad hack.
10816 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10817 # The linker will automatically build a .lib file if we build a DLL.
10818 old_archive_from_new_cmds='true'
10819 # FIXME: Should let the user specify the lib program.
10820 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10821 enable_shared_with_static_runtimes=yes
10822 ;;
10823 esac
10824 ;;
10825
10826 darwin* | rhapsody*)
10827
10828
10829 archive_cmds_need_lc=no
10830 hardcode_direct=no
10831 hardcode_automatic=yes
10832 hardcode_shlibpath_var=unsupported
10833 if test "$lt_cv_ld_force_load" = "yes"; then
10834 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10835
10836 else
10837 whole_archive_flag_spec=''
10838 fi
10839 link_all_deplibs=yes
10840 allow_undefined_flag="$_lt_dar_allow_undefined"
10841 case $cc_basename in
10842 ifort*) _lt_dar_can_shared=yes ;;
10843 *) _lt_dar_can_shared=$GCC ;;
10844 esac
10845 if test "$_lt_dar_can_shared" = "yes"; then
10846 output_verbose_link_cmd=func_echo_all
10847 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10848 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10849 archive_expsym_cmds="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}"
10850 module_expsym_cmds="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}"
10851
10852 else
10853 ld_shlibs=no
10854 fi
10855
10856 ;;
10857
10858 dgux*)
10859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10860 hardcode_libdir_flag_spec='-L$libdir'
10861 hardcode_shlibpath_var=no
10862 ;;
10863
10864 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10865 # support. Future versions do this automatically, but an explicit c++rt0.o
10866 # does not break anything, and helps significantly (at the cost of a little
10867 # extra space).
10868 freebsd2.2*)
10869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10870 hardcode_libdir_flag_spec='-R$libdir'
10871 hardcode_direct=yes
10872 hardcode_shlibpath_var=no
10873 ;;
10874
10875 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10876 freebsd2.*)
10877 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10878 hardcode_direct=yes
10879 hardcode_minus_L=yes
10880 hardcode_shlibpath_var=no
10881 ;;
10882
10883 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10884 freebsd* | dragonfly*)
10885 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10886 hardcode_libdir_flag_spec='-R$libdir'
10887 hardcode_direct=yes
10888 hardcode_shlibpath_var=no
10889 ;;
10890
10891 hpux9*)
10892 if test "$GCC" = yes; then
10893 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10894 else
10895 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10896 fi
10897 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10898 hardcode_libdir_separator=:
10899 hardcode_direct=yes
10900
10901 # hardcode_minus_L: Not really in the search PATH,
10902 # but as the default location of the library.
10903 hardcode_minus_L=yes
10904 export_dynamic_flag_spec='${wl}-E'
10905 ;;
10906
10907 hpux10*)
10908 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10909 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10910 else
10911 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10912 fi
10913 if test "$with_gnu_ld" = no; then
10914 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10915 hardcode_libdir_separator=:
10916 hardcode_direct=yes
10917 hardcode_direct_absolute=yes
10918 export_dynamic_flag_spec='${wl}-E'
10919 # hardcode_minus_L: Not really in the search PATH,
10920 # but as the default location of the library.
10921 hardcode_minus_L=yes
10922 fi
10923 ;;
10924
10925 hpux11*)
10926 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10927 case $host_cpu in
10928 hppa*64*)
10929 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10930 ;;
10931 ia64*)
10932 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10933 ;;
10934 *)
10935 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10936 ;;
10937 esac
10938 else
10939 case $host_cpu in
10940 hppa*64*)
10941 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10942 ;;
10943 ia64*)
10944 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10945 ;;
10946 *)
10947
10948 # Older versions of the 11.00 compiler do not understand -b yet
10949 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10951 $as_echo_n "checking if $CC understands -b... " >&6; }
10952 if ${lt_cv_prog_compiler__b+:} false; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 lt_cv_prog_compiler__b=no
10956 save_LDFLAGS="$LDFLAGS"
10957 LDFLAGS="$LDFLAGS -b"
10958 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10960 # The linker can only warn and ignore the option if not recognized
10961 # So say no if there are warnings
10962 if test -s conftest.err; then
10963 # Append any errors to the config.log.
10964 cat conftest.err 1>&5
10965 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10967 if diff conftest.exp conftest.er2 >/dev/null; then
10968 lt_cv_prog_compiler__b=yes
10969 fi
10970 else
10971 lt_cv_prog_compiler__b=yes
10972 fi
10973 fi
10974 $RM -r conftest*
10975 LDFLAGS="$save_LDFLAGS"
10976
10977 fi
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10979 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10980
10981 if test x"$lt_cv_prog_compiler__b" = xyes; then
10982 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10983 else
10984 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10985 fi
10986
10987 ;;
10988 esac
10989 fi
10990 if test "$with_gnu_ld" = no; then
10991 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10992 hardcode_libdir_separator=:
10993
10994 case $host_cpu in
10995 hppa*64*|ia64*)
10996 hardcode_direct=no
10997 hardcode_shlibpath_var=no
10998 ;;
10999 *)
11000 hardcode_direct=yes
11001 hardcode_direct_absolute=yes
11002 export_dynamic_flag_spec='${wl}-E'
11003
11004 # hardcode_minus_L: Not really in the search PATH,
11005 # but as the default location of the library.
11006 hardcode_minus_L=yes
11007 ;;
11008 esac
11009 fi
11010 ;;
11011
11012 irix5* | irix6* | nonstopux*)
11013 if test "$GCC" = yes; then
11014 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11015 # Try to use the -exported_symbol ld option, if it does not
11016 # work, assume that -exports_file does not work either and
11017 # implicitly export all symbols.
11018 # This should be the same for all languages, so no per-tag cache variable.
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11020 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11021 if ${lt_cv_irix_exported_symbol+:} false; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 save_LDFLAGS="$LDFLAGS"
11025 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11028 int foo (void) { return 0; }
11029 _ACEOF
11030 if ac_fn_c_try_link "$LINENO"; then :
11031 lt_cv_irix_exported_symbol=yes
11032 else
11033 lt_cv_irix_exported_symbol=no
11034 fi
11035 rm -f core conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11037 LDFLAGS="$save_LDFLAGS"
11038 fi
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11040 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11041 if test "$lt_cv_irix_exported_symbol" = yes; then
11042 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11043 fi
11044 else
11045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11047 fi
11048 archive_cmds_need_lc='no'
11049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11050 hardcode_libdir_separator=:
11051 inherit_rpath=yes
11052 link_all_deplibs=yes
11053 ;;
11054
11055 netbsd*)
11056 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11058 else
11059 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11060 fi
11061 hardcode_libdir_flag_spec='-R$libdir'
11062 hardcode_direct=yes
11063 hardcode_shlibpath_var=no
11064 ;;
11065
11066 newsos6)
11067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11068 hardcode_direct=yes
11069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11070 hardcode_libdir_separator=:
11071 hardcode_shlibpath_var=no
11072 ;;
11073
11074 *nto* | *qnx*)
11075 ;;
11076
11077 openbsd*)
11078 if test -f /usr/libexec/ld.so; then
11079 hardcode_direct=yes
11080 hardcode_shlibpath_var=no
11081 hardcode_direct_absolute=yes
11082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11083 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11084 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11086 export_dynamic_flag_spec='${wl}-E'
11087 else
11088 case $host_os in
11089 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11091 hardcode_libdir_flag_spec='-R$libdir'
11092 ;;
11093 *)
11094 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11095 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11096 ;;
11097 esac
11098 fi
11099 else
11100 ld_shlibs=no
11101 fi
11102 ;;
11103
11104 os2*)
11105 hardcode_libdir_flag_spec='-L$libdir'
11106 hardcode_minus_L=yes
11107 allow_undefined_flag=unsupported
11108 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11109 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11110 ;;
11111
11112 osf3*)
11113 if test "$GCC" = yes; then
11114 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11115 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11116 else
11117 allow_undefined_flag=' -expect_unresolved \*'
11118 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11119 fi
11120 archive_cmds_need_lc='no'
11121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11122 hardcode_libdir_separator=:
11123 ;;
11124
11125 osf4* | osf5*) # as osf3* with the addition of -msym flag
11126 if test "$GCC" = yes; then
11127 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11128 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11129 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11130 else
11131 allow_undefined_flag=' -expect_unresolved \*'
11132 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11133 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11134 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11135
11136 # Both c and cxx compiler support -rpath directly
11137 hardcode_libdir_flag_spec='-rpath $libdir'
11138 fi
11139 archive_cmds_need_lc='no'
11140 hardcode_libdir_separator=:
11141 ;;
11142
11143 solaris*)
11144 no_undefined_flag=' -z defs'
11145 if test "$GCC" = yes; then
11146 wlarc='${wl}'
11147 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11148 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11149 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11150 else
11151 case `$CC -V 2>&1` in
11152 *"Compilers 5.0"*)
11153 wlarc=''
11154 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11156 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11157 ;;
11158 *)
11159 wlarc='${wl}'
11160 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11161 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11162 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11163 ;;
11164 esac
11165 fi
11166 hardcode_libdir_flag_spec='-R$libdir'
11167 hardcode_shlibpath_var=no
11168 case $host_os in
11169 solaris2.[0-5] | solaris2.[0-5].*) ;;
11170 *)
11171 # The compiler driver will combine and reorder linker options,
11172 # but understands `-z linker_flag'. GCC discards it without `$wl',
11173 # but is careful enough not to reorder.
11174 # Supported since Solaris 2.6 (maybe 2.5.1?)
11175 if test "$GCC" = yes; then
11176 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11177 else
11178 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11179 fi
11180 ;;
11181 esac
11182 link_all_deplibs=yes
11183 ;;
11184
11185 sunos4*)
11186 if test "x$host_vendor" = xsequent; then
11187 # Use $CC to link under sequent, because it throws in some extra .o
11188 # files that make .init and .fini sections work.
11189 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11190 else
11191 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11192 fi
11193 hardcode_libdir_flag_spec='-L$libdir'
11194 hardcode_direct=yes
11195 hardcode_minus_L=yes
11196 hardcode_shlibpath_var=no
11197 ;;
11198
11199 sysv4)
11200 case $host_vendor in
11201 sni)
11202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11203 hardcode_direct=yes # is this really true???
11204 ;;
11205 siemens)
11206 ## LD is ld it makes a PLAMLIB
11207 ## CC just makes a GrossModule.
11208 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11209 reload_cmds='$CC -r -o $output$reload_objs'
11210 hardcode_direct=no
11211 ;;
11212 motorola)
11213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11214 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11215 ;;
11216 esac
11217 runpath_var='LD_RUN_PATH'
11218 hardcode_shlibpath_var=no
11219 ;;
11220
11221 sysv4.3*)
11222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11223 hardcode_shlibpath_var=no
11224 export_dynamic_flag_spec='-Bexport'
11225 ;;
11226
11227 sysv4*MP*)
11228 if test -d /usr/nec; then
11229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11230 hardcode_shlibpath_var=no
11231 runpath_var=LD_RUN_PATH
11232 hardcode_runpath_var=yes
11233 ld_shlibs=yes
11234 fi
11235 ;;
11236
11237 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11238 no_undefined_flag='${wl}-z,text'
11239 archive_cmds_need_lc=no
11240 hardcode_shlibpath_var=no
11241 runpath_var='LD_RUN_PATH'
11242
11243 if test "$GCC" = yes; then
11244 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11245 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11246 else
11247 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11248 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11249 fi
11250 ;;
11251
11252 sysv5* | sco3.2v5* | sco5v6*)
11253 # Note: We can NOT use -z defs as we might desire, because we do not
11254 # link with -lc, and that would cause any symbols used from libc to
11255 # always be unresolved, which means just about no library would
11256 # ever link correctly. If we're not using GNU ld we use -z text
11257 # though, which does catch some bad symbols but isn't as heavy-handed
11258 # as -z defs.
11259 no_undefined_flag='${wl}-z,text'
11260 allow_undefined_flag='${wl}-z,nodefs'
11261 archive_cmds_need_lc=no
11262 hardcode_shlibpath_var=no
11263 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11264 hardcode_libdir_separator=':'
11265 link_all_deplibs=yes
11266 export_dynamic_flag_spec='${wl}-Bexport'
11267 runpath_var='LD_RUN_PATH'
11268
11269 if test "$GCC" = yes; then
11270 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11271 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11272 else
11273 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11274 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11275 fi
11276 ;;
11277
11278 uts4*)
11279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11280 hardcode_libdir_flag_spec='-L$libdir'
11281 hardcode_shlibpath_var=no
11282 ;;
11283
11284 *)
11285 ld_shlibs=no
11286 ;;
11287 esac
11288
11289 if test x$host_vendor = xsni; then
11290 case $host in
11291 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11292 export_dynamic_flag_spec='${wl}-Blargedynsym'
11293 ;;
11294 esac
11295 fi
11296 fi
11297
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11299 $as_echo "$ld_shlibs" >&6; }
11300 test "$ld_shlibs" = no && can_build_shared=no
11301
11302 with_gnu_ld=$with_gnu_ld
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318 #
11319 # Do we need to explicitly link libc?
11320 #
11321 case "x$archive_cmds_need_lc" in
11322 x|xyes)
11323 # Assume -lc should be added
11324 archive_cmds_need_lc=yes
11325
11326 if test "$enable_shared" = yes && test "$GCC" = yes; then
11327 case $archive_cmds in
11328 *'~'*)
11329 # FIXME: we may have to deal with multi-command sequences.
11330 ;;
11331 '$CC '*)
11332 # Test whether the compiler implicitly links with -lc since on some
11333 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11334 # to ld, don't add -lc before -lgcc.
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11336 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11337 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 $RM conftest*
11341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11342
11343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11344 (eval $ac_compile) 2>&5
11345 ac_status=$?
11346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11347 test $ac_status = 0; } 2>conftest.err; then
11348 soname=conftest
11349 lib=conftest
11350 libobjs=conftest.$ac_objext
11351 deplibs=
11352 wl=$lt_prog_compiler_wl
11353 pic_flag=$lt_prog_compiler_pic
11354 compiler_flags=-v
11355 linker_flags=-v
11356 verstring=
11357 output_objdir=.
11358 libname=conftest
11359 lt_save_allow_undefined_flag=$allow_undefined_flag
11360 allow_undefined_flag=
11361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11362 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11363 ac_status=$?
11364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11365 test $ac_status = 0; }
11366 then
11367 lt_cv_archive_cmds_need_lc=no
11368 else
11369 lt_cv_archive_cmds_need_lc=yes
11370 fi
11371 allow_undefined_flag=$lt_save_allow_undefined_flag
11372 else
11373 cat conftest.err 1>&5
11374 fi
11375 $RM conftest*
11376
11377 fi
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11379 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11380 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11381 ;;
11382 esac
11383 fi
11384 ;;
11385 esac
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11539 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11540
11541 if test "$GCC" = yes; then
11542 case $host_os in
11543 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11544 *) lt_awk_arg="/^libraries:/" ;;
11545 esac
11546 case $host_os in
11547 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11548 *) lt_sed_strip_eq="s,=/,/,g" ;;
11549 esac
11550 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11551 case $lt_search_path_spec in
11552 *\;*)
11553 # if the path contains ";" then we assume it to be the separator
11554 # otherwise default to the standard path separator (i.e. ":") - it is
11555 # assumed that no part of a normal pathname contains ";" but that should
11556 # okay in the real world where ";" in dirpaths is itself problematic.
11557 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11558 ;;
11559 *)
11560 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11561 ;;
11562 esac
11563 # Ok, now we have the path, separated by spaces, we can step through it
11564 # and add multilib dir if necessary.
11565 lt_tmp_lt_search_path_spec=
11566 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11567 for lt_sys_path in $lt_search_path_spec; do
11568 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11569 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11570 else
11571 test -d "$lt_sys_path" && \
11572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11573 fi
11574 done
11575 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11576 BEGIN {RS=" "; FS="/|\n";} {
11577 lt_foo="";
11578 lt_count=0;
11579 for (lt_i = NF; lt_i > 0; lt_i--) {
11580 if ($lt_i != "" && $lt_i != ".") {
11581 if ($lt_i == "..") {
11582 lt_count++;
11583 } else {
11584 if (lt_count == 0) {
11585 lt_foo="/" $lt_i lt_foo;
11586 } else {
11587 lt_count--;
11588 }
11589 }
11590 }
11591 }
11592 if (lt_foo != "") { lt_freq[lt_foo]++; }
11593 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11594 }'`
11595 # AWK program above erroneously prepends '/' to C:/dos/paths
11596 # for these hosts.
11597 case $host_os in
11598 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11599 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11600 esac
11601 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11602 else
11603 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11604 fi
11605 library_names_spec=
11606 libname_spec='lib$name'
11607 soname_spec=
11608 shrext_cmds=".so"
11609 postinstall_cmds=
11610 postuninstall_cmds=
11611 finish_cmds=
11612 finish_eval=
11613 shlibpath_var=
11614 shlibpath_overrides_runpath=unknown
11615 version_type=none
11616 dynamic_linker="$host_os ld.so"
11617 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11618 need_lib_prefix=unknown
11619 hardcode_into_libs=no
11620
11621 # when you set need_version to no, make sure it does not cause -set_version
11622 # flags to be left without arguments
11623 need_version=unknown
11624
11625 case $host_os in
11626 aix3*)
11627 version_type=linux # correct to gnu/linux during the next big refactor
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11629 shlibpath_var=LIBPATH
11630
11631 # AIX 3 has no versioning support, so we append a major version to the name.
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 ;;
11634
11635 aix[4-9]*)
11636 version_type=linux # correct to gnu/linux during the next big refactor
11637 need_lib_prefix=no
11638 need_version=no
11639 hardcode_into_libs=yes
11640 if test "$host_cpu" = ia64; then
11641 # AIX 5 supports IA64
11642 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 else
11645 # With GCC up to 2.95.x, collect2 would create an import file
11646 # for dependence libraries. The import file would start with
11647 # the line `#! .'. This would cause the generated library to
11648 # depend on `.', always an invalid library. This was fixed in
11649 # development snapshots of GCC prior to 3.0.
11650 case $host_os in
11651 aix4 | aix4.[01] | aix4.[01].*)
11652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11653 echo ' yes '
11654 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11655 :
11656 else
11657 can_build_shared=no
11658 fi
11659 ;;
11660 esac
11661 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11662 # soname into executable. Probably we can add versioning support to
11663 # collect2, so additional links can be useful in future.
11664 if test "$aix_use_runtimelinking" = yes; then
11665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11666 # instead of lib<name>.a to let people know that these are not
11667 # typical AIX shared libraries.
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11669 else
11670 # We preserve .a as extension for shared libraries through AIX4.2
11671 # and later when we are not doing run time linking.
11672 library_names_spec='${libname}${release}.a $libname.a'
11673 soname_spec='${libname}${release}${shared_ext}$major'
11674 fi
11675 shlibpath_var=LIBPATH
11676 fi
11677 ;;
11678
11679 amigaos*)
11680 case $host_cpu in
11681 powerpc)
11682 # Since July 2007 AmigaOS4 officially supports .so libraries.
11683 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11685 ;;
11686 m68k)
11687 library_names_spec='$libname.ixlibrary $libname.a'
11688 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11689 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'
11690 ;;
11691 esac
11692 ;;
11693
11694 beos*)
11695 library_names_spec='${libname}${shared_ext}'
11696 dynamic_linker="$host_os ld.so"
11697 shlibpath_var=LIBRARY_PATH
11698 ;;
11699
11700 bsdi[45]*)
11701 version_type=linux # correct to gnu/linux during the next big refactor
11702 need_version=no
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11708 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11709 # the default ld.so.conf also contains /usr/contrib/lib and
11710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11711 # libtool to hard-code these into programs
11712 ;;
11713
11714 cygwin* | mingw* | pw32* | cegcc*)
11715 version_type=windows
11716 shrext_cmds=".dll"
11717 need_version=no
11718 need_lib_prefix=no
11719
11720 case $GCC,$cc_basename in
11721 yes,*)
11722 # gcc
11723 library_names_spec='$libname.dll.a'
11724 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11725 postinstall_cmds='base_file=`basename \${file}`~
11726 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11727 dldir=$destdir/`dirname \$dlpath`~
11728 test -d \$dldir || mkdir -p \$dldir~
11729 $install_prog $dir/$dlname \$dldir/$dlname~
11730 chmod a+x \$dldir/$dlname~
11731 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11732 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11733 fi'
11734 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11735 dlpath=$dir/\$dldll~
11736 $RM \$dlpath'
11737 shlibpath_overrides_runpath=yes
11738
11739 case $host_os in
11740 cygwin*)
11741 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11742 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11743
11744 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11745 ;;
11746 mingw* | cegcc*)
11747 # MinGW DLLs use traditional 'lib' prefix
11748 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11749 ;;
11750 pw32*)
11751 # pw32 DLLs use 'pw' prefix rather than 'lib'
11752 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11753 ;;
11754 esac
11755 dynamic_linker='Win32 ld.exe'
11756 ;;
11757
11758 *,cl*)
11759 # Native MSVC
11760 libname_spec='$name'
11761 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11762 library_names_spec='${libname}.dll.lib'
11763
11764 case $build_os in
11765 mingw*)
11766 sys_lib_search_path_spec=
11767 lt_save_ifs=$IFS
11768 IFS=';'
11769 for lt_path in $LIB
11770 do
11771 IFS=$lt_save_ifs
11772 # Let DOS variable expansion print the short 8.3 style file name.
11773 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11774 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11775 done
11776 IFS=$lt_save_ifs
11777 # Convert to MSYS style.
11778 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11779 ;;
11780 cygwin*)
11781 # Convert to unix form, then to dos form, then back to unix form
11782 # but this time dos style (no spaces!) so that the unix form looks
11783 # like /cygdrive/c/PROGRA~1:/cygdr...
11784 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11785 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11786 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11787 ;;
11788 *)
11789 sys_lib_search_path_spec="$LIB"
11790 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11791 # It is most probably a Windows format PATH.
11792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11793 else
11794 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11795 fi
11796 # FIXME: find the short name or the path components, as spaces are
11797 # common. (e.g. "Program Files" -> "PROGRA~1")
11798 ;;
11799 esac
11800
11801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11802 postinstall_cmds='base_file=`basename \${file}`~
11803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11804 dldir=$destdir/`dirname \$dlpath`~
11805 test -d \$dldir || mkdir -p \$dldir~
11806 $install_prog $dir/$dlname \$dldir/$dlname'
11807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11808 dlpath=$dir/\$dldll~
11809 $RM \$dlpath'
11810 shlibpath_overrides_runpath=yes
11811 dynamic_linker='Win32 link.exe'
11812 ;;
11813
11814 *)
11815 # Assume MSVC wrapper
11816 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11817 dynamic_linker='Win32 ld.exe'
11818 ;;
11819 esac
11820 # FIXME: first we should search . and the directory the executable is in
11821 shlibpath_var=PATH
11822 ;;
11823
11824 darwin* | rhapsody*)
11825 dynamic_linker="$host_os dyld"
11826 version_type=darwin
11827 need_lib_prefix=no
11828 need_version=no
11829 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11830 soname_spec='${libname}${release}${major}$shared_ext'
11831 shlibpath_overrides_runpath=yes
11832 shlibpath_var=DYLD_LIBRARY_PATH
11833 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11834
11835 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11836 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11837 ;;
11838
11839 dgux*)
11840 version_type=linux # correct to gnu/linux during the next big refactor
11841 need_lib_prefix=no
11842 need_version=no
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11844 soname_spec='${libname}${release}${shared_ext}$major'
11845 shlibpath_var=LD_LIBRARY_PATH
11846 ;;
11847
11848 freebsd* | dragonfly*)
11849 # DragonFly does not have aout. When/if they implement a new
11850 # versioning mechanism, adjust this.
11851 if test -x /usr/bin/objformat; then
11852 objformat=`/usr/bin/objformat`
11853 else
11854 case $host_os in
11855 freebsd[23].*) objformat=aout ;;
11856 *) objformat=elf ;;
11857 esac
11858 fi
11859 version_type=freebsd-$objformat
11860 case $version_type in
11861 freebsd-elf*)
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11863 need_version=no
11864 need_lib_prefix=no
11865 ;;
11866 freebsd-*)
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11868 need_version=yes
11869 ;;
11870 esac
11871 shlibpath_var=LD_LIBRARY_PATH
11872 case $host_os in
11873 freebsd2.*)
11874 shlibpath_overrides_runpath=yes
11875 ;;
11876 freebsd3.[01]* | freebsdelf3.[01]*)
11877 shlibpath_overrides_runpath=yes
11878 hardcode_into_libs=yes
11879 ;;
11880 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11881 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11882 shlibpath_overrides_runpath=no
11883 hardcode_into_libs=yes
11884 ;;
11885 *) # from 4.6 on, and DragonFly
11886 shlibpath_overrides_runpath=yes
11887 hardcode_into_libs=yes
11888 ;;
11889 esac
11890 ;;
11891
11892 gnu*)
11893 version_type=linux # correct to gnu/linux during the next big refactor
11894 need_lib_prefix=no
11895 need_version=no
11896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11897 soname_spec='${libname}${release}${shared_ext}$major'
11898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=no
11900 hardcode_into_libs=yes
11901 ;;
11902
11903 haiku*)
11904 version_type=linux # correct to gnu/linux during the next big refactor
11905 need_lib_prefix=no
11906 need_version=no
11907 dynamic_linker="$host_os runtime_loader"
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 shlibpath_var=LIBRARY_PATH
11911 shlibpath_overrides_runpath=yes
11912 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11913 hardcode_into_libs=yes
11914 ;;
11915
11916 hpux9* | hpux10* | hpux11*)
11917 # Give a soname corresponding to the major version so that dld.sl refuses to
11918 # link against other versions.
11919 version_type=sunos
11920 need_lib_prefix=no
11921 need_version=no
11922 case $host_cpu in
11923 ia64*)
11924 shrext_cmds='.so'
11925 hardcode_into_libs=yes
11926 dynamic_linker="$host_os dld.so"
11927 shlibpath_var=LD_LIBRARY_PATH
11928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930 soname_spec='${libname}${release}${shared_ext}$major'
11931 if test "X$HPUX_IA64_MODE" = X32; then
11932 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11933 else
11934 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11935 fi
11936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11937 ;;
11938 hppa*64*)
11939 shrext_cmds='.sl'
11940 hardcode_into_libs=yes
11941 dynamic_linker="$host_os dld.sl"
11942 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11945 soname_spec='${libname}${release}${shared_ext}$major'
11946 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11948 ;;
11949 *)
11950 shrext_cmds='.sl'
11951 dynamic_linker="$host_os dld.sl"
11952 shlibpath_var=SHLIB_PATH
11953 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955 soname_spec='${libname}${release}${shared_ext}$major'
11956 ;;
11957 esac
11958 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11959 postinstall_cmds='chmod 555 $lib'
11960 # or fails outright, so override atomically:
11961 install_override_mode=555
11962 ;;
11963
11964 interix[3-9]*)
11965 version_type=linux # correct to gnu/linux during the next big refactor
11966 need_lib_prefix=no
11967 need_version=no
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11969 soname_spec='${libname}${release}${shared_ext}$major'
11970 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11971 shlibpath_var=LD_LIBRARY_PATH
11972 shlibpath_overrides_runpath=no
11973 hardcode_into_libs=yes
11974 ;;
11975
11976 irix5* | irix6* | nonstopux*)
11977 case $host_os in
11978 nonstopux*) version_type=nonstopux ;;
11979 *)
11980 if test "$lt_cv_prog_gnu_ld" = yes; then
11981 version_type=linux # correct to gnu/linux during the next big refactor
11982 else
11983 version_type=irix
11984 fi ;;
11985 esac
11986 need_lib_prefix=no
11987 need_version=no
11988 soname_spec='${libname}${release}${shared_ext}$major'
11989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11990 case $host_os in
11991 irix5* | nonstopux*)
11992 libsuff= shlibsuff=
11993 ;;
11994 *)
11995 case $LD in # libtool.m4 will add one of these switches to LD
11996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11997 libsuff= shlibsuff= libmagic=32-bit;;
11998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11999 libsuff=32 shlibsuff=N32 libmagic=N32;;
12000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12001 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12002 *) libsuff= shlibsuff= libmagic=never-match;;
12003 esac
12004 ;;
12005 esac
12006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12007 shlibpath_overrides_runpath=no
12008 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12009 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12010 hardcode_into_libs=yes
12011 ;;
12012
12013 # No shared lib support for Linux oldld, aout, or coff.
12014 linux*oldld* | linux*aout* | linux*coff*)
12015 dynamic_linker=no
12016 ;;
12017
12018 # This must be glibc/ELF.
12019 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12020 version_type=linux # correct to gnu/linux during the next big refactor
12021 need_lib_prefix=no
12022 need_version=no
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12024 soname_spec='${libname}${release}${shared_ext}$major'
12025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12026 shlibpath_var=LD_LIBRARY_PATH
12027 shlibpath_overrides_runpath=no
12028
12029 # Some binutils ld are patched to set DT_RUNPATH
12030 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 lt_cv_shlibpath_overrides_runpath=no
12034 save_LDFLAGS=$LDFLAGS
12035 save_libdir=$libdir
12036 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12037 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040
12041 int
12042 main ()
12043 {
12044
12045 ;
12046 return 0;
12047 }
12048 _ACEOF
12049 if ac_fn_c_try_link "$LINENO"; then :
12050 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12051 lt_cv_shlibpath_overrides_runpath=yes
12052 fi
12053 fi
12054 rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12056 LDFLAGS=$save_LDFLAGS
12057 libdir=$save_libdir
12058
12059 fi
12060
12061 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12062
12063 # This implies no fast_install, which is unacceptable.
12064 # Some rework will be needed to allow for fast_install
12065 # before this can be enabled.
12066 hardcode_into_libs=yes
12067
12068 # Add ABI-specific directories to the system library path.
12069 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12070
12071 # Append ld.so.conf contents to the search path
12072 if test -f /etc/ld.so.conf; then
12073 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' ' '`
12074 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12075
12076 fi
12077
12078 # We used to test for /lib/ld.so.1 and disable shared libraries on
12079 # powerpc, because MkLinux only supported shared libraries with the
12080 # GNU dynamic linker. Since this was broken with cross compilers,
12081 # most powerpc-linux boxes support dynamic linking these days and
12082 # people can always --disable-shared, the test was removed, and we
12083 # assume the GNU/Linux dynamic linker is in use.
12084 dynamic_linker='GNU/Linux ld.so'
12085 ;;
12086
12087 netbsd*)
12088 version_type=sunos
12089 need_lib_prefix=no
12090 need_version=no
12091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12094 dynamic_linker='NetBSD (a.out) ld.so'
12095 else
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12097 soname_spec='${libname}${release}${shared_ext}$major'
12098 dynamic_linker='NetBSD ld.elf_so'
12099 fi
12100 shlibpath_var=LD_LIBRARY_PATH
12101 shlibpath_overrides_runpath=yes
12102 hardcode_into_libs=yes
12103 ;;
12104
12105 newsos6)
12106 version_type=linux # correct to gnu/linux during the next big refactor
12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12108 shlibpath_var=LD_LIBRARY_PATH
12109 shlibpath_overrides_runpath=yes
12110 ;;
12111
12112 *nto* | *qnx*)
12113 version_type=qnx
12114 need_lib_prefix=no
12115 need_version=no
12116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12117 soname_spec='${libname}${release}${shared_ext}$major'
12118 shlibpath_var=LD_LIBRARY_PATH
12119 shlibpath_overrides_runpath=no
12120 hardcode_into_libs=yes
12121 dynamic_linker='ldqnx.so'
12122 ;;
12123
12124 openbsd*)
12125 version_type=sunos
12126 sys_lib_dlsearch_path_spec="/usr/lib"
12127 need_lib_prefix=no
12128 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12129 case $host_os in
12130 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12131 *) need_version=no ;;
12132 esac
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12135 shlibpath_var=LD_LIBRARY_PATH
12136 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12137 case $host_os in
12138 openbsd2.[89] | openbsd2.[89].*)
12139 shlibpath_overrides_runpath=no
12140 ;;
12141 *)
12142 shlibpath_overrides_runpath=yes
12143 ;;
12144 esac
12145 else
12146 shlibpath_overrides_runpath=yes
12147 fi
12148 ;;
12149
12150 os2*)
12151 libname_spec='$name'
12152 shrext_cmds=".dll"
12153 need_lib_prefix=no
12154 library_names_spec='$libname${shared_ext} $libname.a'
12155 dynamic_linker='OS/2 ld.exe'
12156 shlibpath_var=LIBPATH
12157 ;;
12158
12159 osf3* | osf4* | osf5*)
12160 version_type=osf
12161 need_lib_prefix=no
12162 need_version=no
12163 soname_spec='${libname}${release}${shared_ext}$major'
12164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12165 shlibpath_var=LD_LIBRARY_PATH
12166 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12167 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12168 ;;
12169
12170 rdos*)
12171 dynamic_linker=no
12172 ;;
12173
12174 solaris*)
12175 version_type=linux # correct to gnu/linux during the next big refactor
12176 need_lib_prefix=no
12177 need_version=no
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12179 soname_spec='${libname}${release}${shared_ext}$major'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 shlibpath_overrides_runpath=yes
12182 hardcode_into_libs=yes
12183 # ldd complains unless libraries are executable
12184 postinstall_cmds='chmod +x $lib'
12185 ;;
12186
12187 sunos4*)
12188 version_type=sunos
12189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12190 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12191 shlibpath_var=LD_LIBRARY_PATH
12192 shlibpath_overrides_runpath=yes
12193 if test "$with_gnu_ld" = yes; then
12194 need_lib_prefix=no
12195 fi
12196 need_version=yes
12197 ;;
12198
12199 sysv4 | sysv4.3*)
12200 version_type=linux # correct to gnu/linux during the next big refactor
12201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12202 soname_spec='${libname}${release}${shared_ext}$major'
12203 shlibpath_var=LD_LIBRARY_PATH
12204 case $host_vendor in
12205 sni)
12206 shlibpath_overrides_runpath=no
12207 need_lib_prefix=no
12208 runpath_var=LD_RUN_PATH
12209 ;;
12210 siemens)
12211 need_lib_prefix=no
12212 ;;
12213 motorola)
12214 need_lib_prefix=no
12215 need_version=no
12216 shlibpath_overrides_runpath=no
12217 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12218 ;;
12219 esac
12220 ;;
12221
12222 sysv4*MP*)
12223 if test -d /usr/nec ;then
12224 version_type=linux # correct to gnu/linux during the next big refactor
12225 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12226 soname_spec='$libname${shared_ext}.$major'
12227 shlibpath_var=LD_LIBRARY_PATH
12228 fi
12229 ;;
12230
12231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12232 version_type=freebsd-elf
12233 need_lib_prefix=no
12234 need_version=no
12235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12236 soname_spec='${libname}${release}${shared_ext}$major'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=yes
12239 hardcode_into_libs=yes
12240 if test "$with_gnu_ld" = yes; then
12241 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12242 else
12243 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12244 case $host_os in
12245 sco3.2v5*)
12246 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12247 ;;
12248 esac
12249 fi
12250 sys_lib_dlsearch_path_spec='/usr/lib'
12251 ;;
12252
12253 tpf*)
12254 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12255 version_type=linux # correct to gnu/linux during the next big refactor
12256 need_lib_prefix=no
12257 need_version=no
12258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259 shlibpath_var=LD_LIBRARY_PATH
12260 shlibpath_overrides_runpath=no
12261 hardcode_into_libs=yes
12262 ;;
12263
12264 uts4*)
12265 version_type=linux # correct to gnu/linux during the next big refactor
12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12267 soname_spec='${libname}${release}${shared_ext}$major'
12268 shlibpath_var=LD_LIBRARY_PATH
12269 ;;
12270
12271 *)
12272 dynamic_linker=no
12273 ;;
12274 esac
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12276 $as_echo "$dynamic_linker" >&6; }
12277 test "$dynamic_linker" = no && can_build_shared=no
12278
12279 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12280 if test "$GCC" = yes; then
12281 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12282 fi
12283
12284 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12285 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12286 fi
12287 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12288 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12289 fi
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12383 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12384 hardcode_action=
12385 if test -n "$hardcode_libdir_flag_spec" ||
12386 test -n "$runpath_var" ||
12387 test "X$hardcode_automatic" = "Xyes" ; then
12388
12389 # We can hardcode non-existent directories.
12390 if test "$hardcode_direct" != no &&
12391 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12392 # have to relink, otherwise we might link with an installed library
12393 # when we should be linking with a yet-to-be-installed one
12394 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12395 test "$hardcode_minus_L" != no; then
12396 # Linking always hardcodes the temporary library directory.
12397 hardcode_action=relink
12398 else
12399 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12400 hardcode_action=immediate
12401 fi
12402 else
12403 # We cannot hardcode anything, or else we can only hardcode existing
12404 # directories.
12405 hardcode_action=unsupported
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12408 $as_echo "$hardcode_action" >&6; }
12409
12410 if test "$hardcode_action" = relink ||
12411 test "$inherit_rpath" = yes; then
12412 # Fast installation is not supported
12413 enable_fast_install=no
12414 elif test "$shlibpath_overrides_runpath" = yes ||
12415 test "$enable_shared" = no; then
12416 # Fast installation is not necessary
12417 enable_fast_install=needless
12418 fi
12419
12420
12421
12422
12423
12424
12425 if test "x$enable_dlopen" != xyes; then
12426 enable_dlopen=unknown
12427 enable_dlopen_self=unknown
12428 enable_dlopen_self_static=unknown
12429 else
12430 lt_cv_dlopen=no
12431 lt_cv_dlopen_libs=
12432
12433 case $host_os in
12434 beos*)
12435 lt_cv_dlopen="load_add_on"
12436 lt_cv_dlopen_libs=
12437 lt_cv_dlopen_self=yes
12438 ;;
12439
12440 mingw* | pw32* | cegcc*)
12441 lt_cv_dlopen="LoadLibrary"
12442 lt_cv_dlopen_libs=
12443 ;;
12444
12445 cygwin*)
12446 lt_cv_dlopen="dlopen"
12447 lt_cv_dlopen_libs=
12448 ;;
12449
12450 darwin*)
12451 # if libdl is installed we need to link against it
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12453 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12454 if ${ac_cv_lib_dl_dlopen+:} false; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-ldl $LIBS"
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461
12462 /* Override any GCC internal prototype to avoid an error.
12463 Use char because int might match the return type of a GCC
12464 builtin and then its argument prototype would still apply. */
12465 #ifdef __cplusplus
12466 extern "C"
12467 #endif
12468 char dlopen ();
12469 int
12470 main ()
12471 {
12472 return dlopen ();
12473 ;
12474 return 0;
12475 }
12476 _ACEOF
12477 if ac_fn_c_try_link "$LINENO"; then :
12478 ac_cv_lib_dl_dlopen=yes
12479 else
12480 ac_cv_lib_dl_dlopen=no
12481 fi
12482 rm -f core conftest.err conftest.$ac_objext \
12483 conftest$ac_exeext conftest.$ac_ext
12484 LIBS=$ac_check_lib_save_LIBS
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12487 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12488 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12489 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12490 else
12491
12492 lt_cv_dlopen="dyld"
12493 lt_cv_dlopen_libs=
12494 lt_cv_dlopen_self=yes
12495
12496 fi
12497
12498 ;;
12499
12500 *)
12501 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12502 if test "x$ac_cv_func_shl_load" = xyes; then :
12503 lt_cv_dlopen="shl_load"
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12506 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12507 if ${ac_cv_lib_dld_shl_load+:} false; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 ac_check_lib_save_LIBS=$LIBS
12511 LIBS="-ldld $LIBS"
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12514
12515 /* Override any GCC internal prototype to avoid an error.
12516 Use char because int might match the return type of a GCC
12517 builtin and then its argument prototype would still apply. */
12518 #ifdef __cplusplus
12519 extern "C"
12520 #endif
12521 char shl_load ();
12522 int
12523 main ()
12524 {
12525 return shl_load ();
12526 ;
12527 return 0;
12528 }
12529 _ACEOF
12530 if ac_fn_c_try_link "$LINENO"; then :
12531 ac_cv_lib_dld_shl_load=yes
12532 else
12533 ac_cv_lib_dld_shl_load=no
12534 fi
12535 rm -f core conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12538 fi
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12540 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12541 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12542 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12543 else
12544 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12545 if test "x$ac_cv_func_dlopen" = xyes; then :
12546 lt_cv_dlopen="dlopen"
12547 else
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12549 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12550 if ${ac_cv_lib_dl_dlopen+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 ac_check_lib_save_LIBS=$LIBS
12554 LIBS="-ldl $LIBS"
12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h. */
12557
12558 /* Override any GCC internal prototype to avoid an error.
12559 Use char because int might match the return type of a GCC
12560 builtin and then its argument prototype would still apply. */
12561 #ifdef __cplusplus
12562 extern "C"
12563 #endif
12564 char dlopen ();
12565 int
12566 main ()
12567 {
12568 return dlopen ();
12569 ;
12570 return 0;
12571 }
12572 _ACEOF
12573 if ac_fn_c_try_link "$LINENO"; then :
12574 ac_cv_lib_dl_dlopen=yes
12575 else
12576 ac_cv_lib_dl_dlopen=no
12577 fi
12578 rm -f core conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_lib_save_LIBS
12581 fi
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12583 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12584 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12585 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12586 else
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12588 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12589 if ${ac_cv_lib_svld_dlopen+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 ac_check_lib_save_LIBS=$LIBS
12593 LIBS="-lsvld $LIBS"
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596
12597 /* Override any GCC internal prototype to avoid an error.
12598 Use char because int might match the return type of a GCC
12599 builtin and then its argument prototype would still apply. */
12600 #ifdef __cplusplus
12601 extern "C"
12602 #endif
12603 char dlopen ();
12604 int
12605 main ()
12606 {
12607 return dlopen ();
12608 ;
12609 return 0;
12610 }
12611 _ACEOF
12612 if ac_fn_c_try_link "$LINENO"; then :
12613 ac_cv_lib_svld_dlopen=yes
12614 else
12615 ac_cv_lib_svld_dlopen=no
12616 fi
12617 rm -f core conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext conftest.$ac_ext
12619 LIBS=$ac_check_lib_save_LIBS
12620 fi
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12622 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12623 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12625 else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12627 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12628 if ${ac_cv_lib_dld_dld_link+:} false; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 ac_check_lib_save_LIBS=$LIBS
12632 LIBS="-ldld $LIBS"
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12635
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12639 #ifdef __cplusplus
12640 extern "C"
12641 #endif
12642 char dld_link ();
12643 int
12644 main ()
12645 {
12646 return dld_link ();
12647 ;
12648 return 0;
12649 }
12650 _ACEOF
12651 if ac_fn_c_try_link "$LINENO"; then :
12652 ac_cv_lib_dld_dld_link=yes
12653 else
12654 ac_cv_lib_dld_dld_link=no
12655 fi
12656 rm -f core conftest.err conftest.$ac_objext \
12657 conftest$ac_exeext conftest.$ac_ext
12658 LIBS=$ac_check_lib_save_LIBS
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12661 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12662 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12663 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12664 fi
12665
12666
12667 fi
12668
12669
12670 fi
12671
12672
12673 fi
12674
12675
12676 fi
12677
12678
12679 fi
12680
12681 ;;
12682 esac
12683
12684 if test "x$lt_cv_dlopen" != xno; then
12685 enable_dlopen=yes
12686 else
12687 enable_dlopen=no
12688 fi
12689
12690 case $lt_cv_dlopen in
12691 dlopen)
12692 save_CPPFLAGS="$CPPFLAGS"
12693 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12694
12695 save_LDFLAGS="$LDFLAGS"
12696 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12697
12698 save_LIBS="$LIBS"
12699 LIBS="$lt_cv_dlopen_libs $LIBS"
12700
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12702 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12703 if ${lt_cv_dlopen_self+:} false; then :
12704 $as_echo_n "(cached) " >&6
12705 else
12706 if test "$cross_compiling" = yes; then :
12707 lt_cv_dlopen_self=cross
12708 else
12709 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12710 lt_status=$lt_dlunknown
12711 cat > conftest.$ac_ext <<_LT_EOF
12712 #line $LINENO "configure"
12713 #include "confdefs.h"
12714
12715 #if HAVE_DLFCN_H
12716 #include <dlfcn.h>
12717 #endif
12718
12719 #include <stdio.h>
12720
12721 #ifdef RTLD_GLOBAL
12722 # define LT_DLGLOBAL RTLD_GLOBAL
12723 #else
12724 # ifdef DL_GLOBAL
12725 # define LT_DLGLOBAL DL_GLOBAL
12726 # else
12727 # define LT_DLGLOBAL 0
12728 # endif
12729 #endif
12730
12731 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12732 find out it does not work in some platform. */
12733 #ifndef LT_DLLAZY_OR_NOW
12734 # ifdef RTLD_LAZY
12735 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12736 # else
12737 # ifdef DL_LAZY
12738 # define LT_DLLAZY_OR_NOW DL_LAZY
12739 # else
12740 # ifdef RTLD_NOW
12741 # define LT_DLLAZY_OR_NOW RTLD_NOW
12742 # else
12743 # ifdef DL_NOW
12744 # define LT_DLLAZY_OR_NOW DL_NOW
12745 # else
12746 # define LT_DLLAZY_OR_NOW 0
12747 # endif
12748 # endif
12749 # endif
12750 # endif
12751 #endif
12752
12753 /* When -fvisbility=hidden is used, assume the code has been annotated
12754 correspondingly for the symbols needed. */
12755 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12756 int fnord () __attribute__((visibility("default")));
12757 #endif
12758
12759 int fnord () { return 42; }
12760 int main ()
12761 {
12762 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12763 int status = $lt_dlunknown;
12764
12765 if (self)
12766 {
12767 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12768 else
12769 {
12770 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12771 else puts (dlerror ());
12772 }
12773 /* dlclose (self); */
12774 }
12775 else
12776 puts (dlerror ());
12777
12778 return status;
12779 }
12780 _LT_EOF
12781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12782 (eval $ac_link) 2>&5
12783 ac_status=$?
12784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12785 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12786 (./conftest; exit; ) >&5 2>/dev/null
12787 lt_status=$?
12788 case x$lt_status in
12789 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12790 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12791 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12792 esac
12793 else :
12794 # compilation failed
12795 lt_cv_dlopen_self=no
12796 fi
12797 fi
12798 rm -fr conftest*
12799
12800
12801 fi
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12803 $as_echo "$lt_cv_dlopen_self" >&6; }
12804
12805 if test "x$lt_cv_dlopen_self" = xyes; then
12806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12808 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12809 if ${lt_cv_dlopen_self_static+:} false; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 if test "$cross_compiling" = yes; then :
12813 lt_cv_dlopen_self_static=cross
12814 else
12815 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12816 lt_status=$lt_dlunknown
12817 cat > conftest.$ac_ext <<_LT_EOF
12818 #line $LINENO "configure"
12819 #include "confdefs.h"
12820
12821 #if HAVE_DLFCN_H
12822 #include <dlfcn.h>
12823 #endif
12824
12825 #include <stdio.h>
12826
12827 #ifdef RTLD_GLOBAL
12828 # define LT_DLGLOBAL RTLD_GLOBAL
12829 #else
12830 # ifdef DL_GLOBAL
12831 # define LT_DLGLOBAL DL_GLOBAL
12832 # else
12833 # define LT_DLGLOBAL 0
12834 # endif
12835 #endif
12836
12837 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12838 find out it does not work in some platform. */
12839 #ifndef LT_DLLAZY_OR_NOW
12840 # ifdef RTLD_LAZY
12841 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12842 # else
12843 # ifdef DL_LAZY
12844 # define LT_DLLAZY_OR_NOW DL_LAZY
12845 # else
12846 # ifdef RTLD_NOW
12847 # define LT_DLLAZY_OR_NOW RTLD_NOW
12848 # else
12849 # ifdef DL_NOW
12850 # define LT_DLLAZY_OR_NOW DL_NOW
12851 # else
12852 # define LT_DLLAZY_OR_NOW 0
12853 # endif
12854 # endif
12855 # endif
12856 # endif
12857 #endif
12858
12859 /* When -fvisbility=hidden is used, assume the code has been annotated
12860 correspondingly for the symbols needed. */
12861 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12862 int fnord () __attribute__((visibility("default")));
12863 #endif
12864
12865 int fnord () { return 42; }
12866 int main ()
12867 {
12868 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12869 int status = $lt_dlunknown;
12870
12871 if (self)
12872 {
12873 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12874 else
12875 {
12876 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12877 else puts (dlerror ());
12878 }
12879 /* dlclose (self); */
12880 }
12881 else
12882 puts (dlerror ());
12883
12884 return status;
12885 }
12886 _LT_EOF
12887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12888 (eval $ac_link) 2>&5
12889 ac_status=$?
12890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12891 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12892 (./conftest; exit; ) >&5 2>/dev/null
12893 lt_status=$?
12894 case x$lt_status in
12895 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12896 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12897 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12898 esac
12899 else :
12900 # compilation failed
12901 lt_cv_dlopen_self_static=no
12902 fi
12903 fi
12904 rm -fr conftest*
12905
12906
12907 fi
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12909 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12910 fi
12911
12912 CPPFLAGS="$save_CPPFLAGS"
12913 LDFLAGS="$save_LDFLAGS"
12914 LIBS="$save_LIBS"
12915 ;;
12916 esac
12917
12918 case $lt_cv_dlopen_self in
12919 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12920 *) enable_dlopen_self=unknown ;;
12921 esac
12922
12923 case $lt_cv_dlopen_self_static in
12924 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12925 *) enable_dlopen_self_static=unknown ;;
12926 esac
12927 fi
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945 striplib=
12946 old_striplib=
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12948 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12949 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12950 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12951 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12953 $as_echo "yes" >&6; }
12954 else
12955 # FIXME - insert some real tests, host_os isn't really good enough
12956 case $host_os in
12957 darwin*)
12958 if test -n "$STRIP" ; then
12959 striplib="$STRIP -x"
12960 old_striplib="$STRIP -S"
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12962 $as_echo "yes" >&6; }
12963 else
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12966 fi
12967 ;;
12968 *)
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 $as_echo "no" >&6; }
12971 ;;
12972 esac
12973 fi
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986 # Report which library types will actually be built
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12988 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12990 $as_echo "$can_build_shared" >&6; }
12991
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12993 $as_echo_n "checking whether to build shared libraries... " >&6; }
12994 test "$can_build_shared" = "no" && enable_shared=no
12995
12996 # On AIX, shared libraries and static libraries use the same namespace, and
12997 # are all built from PIC.
12998 case $host_os in
12999 aix3*)
13000 test "$enable_shared" = yes && enable_static=no
13001 if test -n "$RANLIB"; then
13002 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13003 postinstall_cmds='$RANLIB $lib'
13004 fi
13005 ;;
13006
13007 aix[4-9]*)
13008 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13009 test "$enable_shared" = yes && enable_static=no
13010 fi
13011 ;;
13012 esac
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13014 $as_echo "$enable_shared" >&6; }
13015
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13017 $as_echo_n "checking whether to build static libraries... " >&6; }
13018 # Make sure either enable_shared or enable_static is yes.
13019 test "$enable_shared" = yes || enable_static=yes
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13021 $as_echo "$enable_static" >&6; }
13022
13023
13024
13025
13026 fi
13027 ac_ext=c
13028 ac_cpp='$CPP $CPPFLAGS'
13029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13032
13033 CC="$lt_save_CC"
13034
13035 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13036 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13037 (test "X$CXX" != "Xg++"))) ; then
13038 ac_ext=cpp
13039 ac_cpp='$CXXCPP $CPPFLAGS'
13040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13044 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13045 if test -z "$CXXCPP"; then
13046 if ${ac_cv_prog_CXXCPP+:} false; then :
13047 $as_echo_n "(cached) " >&6
13048 else
13049 # Double quotes because CXXCPP needs to be expanded
13050 for CXXCPP in "$CXX -E" "/lib/cpp"
13051 do
13052 ac_preproc_ok=false
13053 for ac_cxx_preproc_warn_flag in '' yes
13054 do
13055 # Use a header file that comes with gcc, so configuring glibc
13056 # with a fresh cross-compiler works.
13057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13058 # <limits.h> exists even on freestanding compilers.
13059 # On the NeXT, cc -E runs the code through the compiler's parser,
13060 # not just through cpp. "Syntax error" is here to catch this case.
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13063 #ifdef __STDC__
13064 # include <limits.h>
13065 #else
13066 # include <assert.h>
13067 #endif
13068 Syntax error
13069 _ACEOF
13070 if ac_fn_cxx_try_cpp "$LINENO"; then :
13071
13072 else
13073 # Broken: fails on valid input.
13074 continue
13075 fi
13076 rm -f conftest.err conftest.i conftest.$ac_ext
13077
13078 # OK, works on sane cases. Now check whether nonexistent headers
13079 # can be detected and how.
13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081 /* end confdefs.h. */
13082 #include <ac_nonexistent.h>
13083 _ACEOF
13084 if ac_fn_cxx_try_cpp "$LINENO"; then :
13085 # Broken: success on invalid input.
13086 continue
13087 else
13088 # Passes both tests.
13089 ac_preproc_ok=:
13090 break
13091 fi
13092 rm -f conftest.err conftest.i conftest.$ac_ext
13093
13094 done
13095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13096 rm -f conftest.i conftest.err conftest.$ac_ext
13097 if $ac_preproc_ok; then :
13098 break
13099 fi
13100
13101 done
13102 ac_cv_prog_CXXCPP=$CXXCPP
13103
13104 fi
13105 CXXCPP=$ac_cv_prog_CXXCPP
13106 else
13107 ac_cv_prog_CXXCPP=$CXXCPP
13108 fi
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13110 $as_echo "$CXXCPP" >&6; }
13111 ac_preproc_ok=false
13112 for ac_cxx_preproc_warn_flag in '' yes
13113 do
13114 # Use a header file that comes with gcc, so configuring glibc
13115 # with a fresh cross-compiler works.
13116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13117 # <limits.h> exists even on freestanding compilers.
13118 # On the NeXT, cc -E runs the code through the compiler's parser,
13119 # not just through cpp. "Syntax error" is here to catch this case.
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13122 #ifdef __STDC__
13123 # include <limits.h>
13124 #else
13125 # include <assert.h>
13126 #endif
13127 Syntax error
13128 _ACEOF
13129 if ac_fn_cxx_try_cpp "$LINENO"; then :
13130
13131 else
13132 # Broken: fails on valid input.
13133 continue
13134 fi
13135 rm -f conftest.err conftest.i conftest.$ac_ext
13136
13137 # OK, works on sane cases. Now check whether nonexistent headers
13138 # can be detected and how.
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141 #include <ac_nonexistent.h>
13142 _ACEOF
13143 if ac_fn_cxx_try_cpp "$LINENO"; then :
13144 # Broken: success on invalid input.
13145 continue
13146 else
13147 # Passes both tests.
13148 ac_preproc_ok=:
13149 break
13150 fi
13151 rm -f conftest.err conftest.i conftest.$ac_ext
13152
13153 done
13154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13155 rm -f conftest.i conftest.err conftest.$ac_ext
13156 if $ac_preproc_ok; then :
13157
13158 else
13159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13161 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13162 See \`config.log' for more details" "$LINENO" 5; }
13163 fi
13164
13165 ac_ext=c
13166 ac_cpp='$CPP $CPPFLAGS'
13167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13170
13171 else
13172 _lt_caught_CXX_error=yes
13173 fi
13174
13175 ac_ext=cpp
13176 ac_cpp='$CXXCPP $CPPFLAGS'
13177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13180
13181 archive_cmds_need_lc_CXX=no
13182 allow_undefined_flag_CXX=
13183 always_export_symbols_CXX=no
13184 archive_expsym_cmds_CXX=
13185 compiler_needs_object_CXX=no
13186 export_dynamic_flag_spec_CXX=
13187 hardcode_direct_CXX=no
13188 hardcode_direct_absolute_CXX=no
13189 hardcode_libdir_flag_spec_CXX=
13190 hardcode_libdir_separator_CXX=
13191 hardcode_minus_L_CXX=no
13192 hardcode_shlibpath_var_CXX=unsupported
13193 hardcode_automatic_CXX=no
13194 inherit_rpath_CXX=no
13195 module_cmds_CXX=
13196 module_expsym_cmds_CXX=
13197 link_all_deplibs_CXX=unknown
13198 old_archive_cmds_CXX=$old_archive_cmds
13199 reload_flag_CXX=$reload_flag
13200 reload_cmds_CXX=$reload_cmds
13201 no_undefined_flag_CXX=
13202 whole_archive_flag_spec_CXX=
13203 enable_shared_with_static_runtimes_CXX=no
13204
13205 # Source file extension for C++ test sources.
13206 ac_ext=cpp
13207
13208 # Object file extension for compiled C++ test sources.
13209 objext=o
13210 objext_CXX=$objext
13211
13212 # No sense in running all these tests if we already determined that
13213 # the CXX compiler isn't working. Some variables (like enable_shared)
13214 # are currently assumed to apply to all compilers on this platform,
13215 # and will be corrupted by setting them based on a non-working compiler.
13216 if test "$_lt_caught_CXX_error" != yes; then
13217 # Code to be used in simple compile tests
13218 lt_simple_compile_test_code="int some_variable = 0;"
13219
13220 # Code to be used in simple link tests
13221 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13222
13223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13224
13225
13226
13227
13228
13229
13230 # If no C compiler was specified, use CC.
13231 LTCC=${LTCC-"$CC"}
13232
13233 # If no C compiler flags were specified, use CFLAGS.
13234 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13235
13236 # Allow CC to be a program name with arguments.
13237 compiler=$CC
13238
13239
13240 # save warnings/boilerplate of simple test code
13241 ac_outfile=conftest.$ac_objext
13242 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13243 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13244 _lt_compiler_boilerplate=`cat conftest.err`
13245 $RM conftest*
13246
13247 ac_outfile=conftest.$ac_objext
13248 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13249 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13250 _lt_linker_boilerplate=`cat conftest.err`
13251 $RM -r conftest*
13252
13253
13254 # Allow CC to be a program name with arguments.
13255 lt_save_CC=$CC
13256 lt_save_CFLAGS=$CFLAGS
13257 lt_save_LD=$LD
13258 lt_save_GCC=$GCC
13259 GCC=$GXX
13260 lt_save_with_gnu_ld=$with_gnu_ld
13261 lt_save_path_LD=$lt_cv_path_LD
13262 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13263 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13264 else
13265 $as_unset lt_cv_prog_gnu_ld
13266 fi
13267 if test -n "${lt_cv_path_LDCXX+set}"; then
13268 lt_cv_path_LD=$lt_cv_path_LDCXX
13269 else
13270 $as_unset lt_cv_path_LD
13271 fi
13272 test -z "${LDCXX+set}" || LD=$LDCXX
13273 CC=${CXX-"c++"}
13274 CFLAGS=$CXXFLAGS
13275 compiler=$CC
13276 compiler_CXX=$CC
13277 for cc_temp in $compiler""; do
13278 case $cc_temp in
13279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13281 \-*) ;;
13282 *) break;;
13283 esac
13284 done
13285 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13286
13287
13288 if test -n "$compiler"; then
13289 # We don't want -fno-exception when compiling C++ code, so set the
13290 # no_builtin_flag separately
13291 if test "$GXX" = yes; then
13292 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13293 else
13294 lt_prog_compiler_no_builtin_flag_CXX=
13295 fi
13296
13297 if test "$GXX" = yes; then
13298 # Set up default GNU C++ configuration
13299
13300
13301
13302 # Check whether --with-gnu-ld was given.
13303 if test "${with_gnu_ld+set}" = set; then :
13304 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13305 else
13306 with_gnu_ld=no
13307 fi
13308
13309 ac_prog=ld
13310 if test "$GCC" = yes; then
13311 # Check if gcc -print-prog-name=ld gives a path.
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13313 $as_echo_n "checking for ld used by $CC... " >&6; }
13314 case $host in
13315 *-*-mingw*)
13316 # gcc leaves a trailing carriage return which upsets mingw
13317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13318 *)
13319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13320 esac
13321 case $ac_prog in
13322 # Accept absolute paths.
13323 [\\/]* | ?:[\\/]*)
13324 re_direlt='/[^/][^/]*/\.\./'
13325 # Canonicalize the pathname of ld
13326 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13327 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13328 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13329 done
13330 test -z "$LD" && LD="$ac_prog"
13331 ;;
13332 "")
13333 # If it fails, then pretend we aren't using GCC.
13334 ac_prog=ld
13335 ;;
13336 *)
13337 # If it is relative, then search for the first ld in PATH.
13338 with_gnu_ld=unknown
13339 ;;
13340 esac
13341 elif test "$with_gnu_ld" = yes; then
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13343 $as_echo_n "checking for GNU ld... " >&6; }
13344 else
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13346 $as_echo_n "checking for non-GNU ld... " >&6; }
13347 fi
13348 if ${lt_cv_path_LD+:} false; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 if test -z "$LD"; then
13352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13353 for ac_dir in $PATH; do
13354 IFS="$lt_save_ifs"
13355 test -z "$ac_dir" && ac_dir=.
13356 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13357 lt_cv_path_LD="$ac_dir/$ac_prog"
13358 # Check to see if the program is GNU ld. I'd rather use --version,
13359 # but apparently some variants of GNU ld only accept -v.
13360 # Break only if it was the GNU/non-GNU ld that we prefer.
13361 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13362 *GNU* | *'with BFD'*)
13363 test "$with_gnu_ld" != no && break
13364 ;;
13365 *)
13366 test "$with_gnu_ld" != yes && break
13367 ;;
13368 esac
13369 fi
13370 done
13371 IFS="$lt_save_ifs"
13372 else
13373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13374 fi
13375 fi
13376
13377 LD="$lt_cv_path_LD"
13378 if test -n "$LD"; then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13380 $as_echo "$LD" >&6; }
13381 else
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383 $as_echo "no" >&6; }
13384 fi
13385 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13387 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13388 if ${lt_cv_prog_gnu_ld+:} false; then :
13389 $as_echo_n "(cached) " >&6
13390 else
13391 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13392 case `$LD -v 2>&1 </dev/null` in
13393 *GNU* | *'with BFD'*)
13394 lt_cv_prog_gnu_ld=yes
13395 ;;
13396 *)
13397 lt_cv_prog_gnu_ld=no
13398 ;;
13399 esac
13400 fi
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13402 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13403 with_gnu_ld=$lt_cv_prog_gnu_ld
13404
13405
13406
13407
13408
13409
13410
13411 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13412 # archiving commands below assume that GNU ld is being used.
13413 if test "$with_gnu_ld" = yes; then
13414 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13415 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13416
13417 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13418 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13419
13420 # If archive_cmds runs LD, not CC, wlarc should be empty
13421 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13422 # investigate it a little bit more. (MM)
13423 wlarc='${wl}'
13424
13425 # ancient GNU ld didn't support --whole-archive et. al.
13426 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13427 $GREP 'no-whole-archive' > /dev/null; then
13428 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13429 else
13430 whole_archive_flag_spec_CXX=
13431 fi
13432 else
13433 with_gnu_ld=no
13434 wlarc=
13435
13436 # A generic and very simple default shared library creation
13437 # command for GNU C++ for the case where it uses the native
13438 # linker, instead of GNU ld. If possible, this setting should
13439 # overridden to take advantage of the native linker features on
13440 # the platform it is being used on.
13441 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13442 fi
13443
13444 # Commands to make compiler produce verbose output that lists
13445 # what "hidden" libraries, object files and flags are used when
13446 # linking a shared library.
13447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13448
13449 else
13450 GXX=no
13451 with_gnu_ld=no
13452 wlarc=
13453 fi
13454
13455 # PORTME: fill in a description of your system's C++ link characteristics
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13457 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13458 ld_shlibs_CXX=yes
13459 case $host_os in
13460 aix3*)
13461 # FIXME: insert proper C++ library support
13462 ld_shlibs_CXX=no
13463 ;;
13464 aix[4-9]*)
13465 if test "$host_cpu" = ia64; then
13466 # On IA64, the linker does run time linking by default, so we don't
13467 # have to do anything special.
13468 aix_use_runtimelinking=no
13469 exp_sym_flag='-Bexport'
13470 no_entry_flag=""
13471 else
13472 aix_use_runtimelinking=no
13473
13474 # Test if we are trying to use run time linking or normal
13475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13476 # need to do runtime linking.
13477 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13478 for ld_flag in $LDFLAGS; do
13479 case $ld_flag in
13480 *-brtl*)
13481 aix_use_runtimelinking=yes
13482 break
13483 ;;
13484 esac
13485 done
13486 ;;
13487 esac
13488
13489 exp_sym_flag='-bexport'
13490 no_entry_flag='-bnoentry'
13491 fi
13492
13493 # When large executables or shared objects are built, AIX ld can
13494 # have problems creating the table of contents. If linking a library
13495 # or program results in "error TOC overflow" add -mminimal-toc to
13496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13498
13499 archive_cmds_CXX=''
13500 hardcode_direct_CXX=yes
13501 hardcode_direct_absolute_CXX=yes
13502 hardcode_libdir_separator_CXX=':'
13503 link_all_deplibs_CXX=yes
13504 file_list_spec_CXX='${wl}-f,'
13505
13506 if test "$GXX" = yes; then
13507 case $host_os in aix4.[012]|aix4.[012].*)
13508 # We only want to do this on AIX 4.2 and lower, the check
13509 # below for broken collect2 doesn't work under 4.3+
13510 collect2name=`${CC} -print-prog-name=collect2`
13511 if test -f "$collect2name" &&
13512 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13513 then
13514 # We have reworked collect2
13515 :
13516 else
13517 # We have old collect2
13518 hardcode_direct_CXX=unsupported
13519 # It fails to find uninstalled libraries when the uninstalled
13520 # path is not listed in the libpath. Setting hardcode_minus_L
13521 # to unsupported forces relinking
13522 hardcode_minus_L_CXX=yes
13523 hardcode_libdir_flag_spec_CXX='-L$libdir'
13524 hardcode_libdir_separator_CXX=
13525 fi
13526 esac
13527 shared_flag='-shared'
13528 if test "$aix_use_runtimelinking" = yes; then
13529 shared_flag="$shared_flag "'${wl}-G'
13530 fi
13531 else
13532 # not using gcc
13533 if test "$host_cpu" = ia64; then
13534 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13535 # chokes on -Wl,-G. The following line is correct:
13536 shared_flag='-G'
13537 else
13538 if test "$aix_use_runtimelinking" = yes; then
13539 shared_flag='${wl}-G'
13540 else
13541 shared_flag='${wl}-bM:SRE'
13542 fi
13543 fi
13544 fi
13545
13546 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13547 # It seems that -bexpall does not export symbols beginning with
13548 # underscore (_), so it is better to generate a list of symbols to
13549 # export.
13550 always_export_symbols_CXX=yes
13551 if test "$aix_use_runtimelinking" = yes; then
13552 # Warning - without using the other runtime loading flags (-brtl),
13553 # -berok will link without error, but may produce a broken library.
13554 allow_undefined_flag_CXX='-berok'
13555 # Determine the default libpath from the value encoded in an empty
13556 # executable.
13557 if test "${lt_cv_aix_libpath+set}" = set; then
13558 aix_libpath=$lt_cv_aix_libpath
13559 else
13560 if ${lt_cv_aix_libpath__CXX+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565
13566 int
13567 main ()
13568 {
13569
13570 ;
13571 return 0;
13572 }
13573 _ACEOF
13574 if ac_fn_cxx_try_link "$LINENO"; then :
13575
13576 lt_aix_libpath_sed='
13577 /Import File Strings/,/^$/ {
13578 /^0/ {
13579 s/^0 *\([^ ]*\) *$/\1/
13580 p
13581 }
13582 }'
13583 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13584 # Check for a 64-bit object if we didn't find anything.
13585 if test -z "$lt_cv_aix_libpath__CXX"; then
13586 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13587 fi
13588 fi
13589 rm -f core conftest.err conftest.$ac_objext \
13590 conftest$ac_exeext conftest.$ac_ext
13591 if test -z "$lt_cv_aix_libpath__CXX"; then
13592 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13593 fi
13594
13595 fi
13596
13597 aix_libpath=$lt_cv_aix_libpath__CXX
13598 fi
13599
13600 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13601
13602 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13603 else
13604 if test "$host_cpu" = ia64; then
13605 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13606 allow_undefined_flag_CXX="-z nodefs"
13607 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13608 else
13609 # Determine the default libpath from the value encoded in an
13610 # empty executable.
13611 if test "${lt_cv_aix_libpath+set}" = set; then
13612 aix_libpath=$lt_cv_aix_libpath
13613 else
13614 if ${lt_cv_aix_libpath__CXX+:} false; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13619
13620 int
13621 main ()
13622 {
13623
13624 ;
13625 return 0;
13626 }
13627 _ACEOF
13628 if ac_fn_cxx_try_link "$LINENO"; then :
13629
13630 lt_aix_libpath_sed='
13631 /Import File Strings/,/^$/ {
13632 /^0/ {
13633 s/^0 *\([^ ]*\) *$/\1/
13634 p
13635 }
13636 }'
13637 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13638 # Check for a 64-bit object if we didn't find anything.
13639 if test -z "$lt_cv_aix_libpath__CXX"; then
13640 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13641 fi
13642 fi
13643 rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13645 if test -z "$lt_cv_aix_libpath__CXX"; then
13646 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13647 fi
13648
13649 fi
13650
13651 aix_libpath=$lt_cv_aix_libpath__CXX
13652 fi
13653
13654 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13655 # Warning - without using the other run time loading flags,
13656 # -berok will link without error, but may produce a broken library.
13657 no_undefined_flag_CXX=' ${wl}-bernotok'
13658 allow_undefined_flag_CXX=' ${wl}-berok'
13659 if test "$with_gnu_ld" = yes; then
13660 # We only use this code for GNU lds that support --whole-archive.
13661 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13662 else
13663 # Exported symbols can be pulled into shared objects from archives
13664 whole_archive_flag_spec_CXX='$convenience'
13665 fi
13666 archive_cmds_need_lc_CXX=yes
13667 # This is similar to how AIX traditionally builds its shared
13668 # libraries.
13669 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13670 fi
13671 fi
13672 ;;
13673
13674 beos*)
13675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13676 allow_undefined_flag_CXX=unsupported
13677 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13678 # support --undefined. This deserves some investigation. FIXME
13679 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13680 else
13681 ld_shlibs_CXX=no
13682 fi
13683 ;;
13684
13685 chorus*)
13686 case $cc_basename in
13687 *)
13688 # FIXME: insert proper C++ library support
13689 ld_shlibs_CXX=no
13690 ;;
13691 esac
13692 ;;
13693
13694 cygwin* | mingw* | pw32* | cegcc*)
13695 case $GXX,$cc_basename in
13696 ,cl* | no,cl*)
13697 # Native MSVC
13698 # hardcode_libdir_flag_spec is actually meaningless, as there is
13699 # no search path for DLLs.
13700 hardcode_libdir_flag_spec_CXX=' '
13701 allow_undefined_flag_CXX=unsupported
13702 always_export_symbols_CXX=yes
13703 file_list_spec_CXX='@'
13704 # Tell ltmain to make .lib files, not .a files.
13705 libext=lib
13706 # Tell ltmain to make .dll files, not .so files.
13707 shrext_cmds=".dll"
13708 # FIXME: Setting linknames here is a bad hack.
13709 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13710 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13711 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13712 else
13713 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13714 fi~
13715 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13716 linknames='
13717 # The linker will not automatically build a static lib if we build a DLL.
13718 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13719 enable_shared_with_static_runtimes_CXX=yes
13720 # Don't use ranlib
13721 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13722 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13723 lt_tool_outputfile="@TOOL_OUTPUT@"~
13724 case $lt_outputfile in
13725 *.exe|*.EXE) ;;
13726 *)
13727 lt_outputfile="$lt_outputfile.exe"
13728 lt_tool_outputfile="$lt_tool_outputfile.exe"
13729 ;;
13730 esac~
13731 func_to_tool_file "$lt_outputfile"~
13732 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13733 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13734 $RM "$lt_outputfile.manifest";
13735 fi'
13736 ;;
13737 *)
13738 # g++
13739 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13740 # as there is no search path for DLLs.
13741 hardcode_libdir_flag_spec_CXX='-L$libdir'
13742 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13743 allow_undefined_flag_CXX=unsupported
13744 always_export_symbols_CXX=no
13745 enable_shared_with_static_runtimes_CXX=yes
13746
13747 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13748 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13749 # If the export-symbols file already is a .def file (1st line
13750 # is EXPORTS), use it as is; otherwise, prepend...
13751 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13752 cp $export_symbols $output_objdir/$soname.def;
13753 else
13754 echo EXPORTS > $output_objdir/$soname.def;
13755 cat $export_symbols >> $output_objdir/$soname.def;
13756 fi~
13757 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13758 else
13759 ld_shlibs_CXX=no
13760 fi
13761 ;;
13762 esac
13763 ;;
13764 darwin* | rhapsody*)
13765
13766
13767 archive_cmds_need_lc_CXX=no
13768 hardcode_direct_CXX=no
13769 hardcode_automatic_CXX=yes
13770 hardcode_shlibpath_var_CXX=unsupported
13771 if test "$lt_cv_ld_force_load" = "yes"; then
13772 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13773
13774 else
13775 whole_archive_flag_spec_CXX=''
13776 fi
13777 link_all_deplibs_CXX=yes
13778 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13779 case $cc_basename in
13780 ifort*) _lt_dar_can_shared=yes ;;
13781 *) _lt_dar_can_shared=$GCC ;;
13782 esac
13783 if test "$_lt_dar_can_shared" = "yes"; then
13784 output_verbose_link_cmd=func_echo_all
13785 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13786 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13787 archive_expsym_cmds_CXX="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}"
13788 module_expsym_cmds_CXX="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}"
13789 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13790 archive_cmds_CXX="\$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}"
13791 archive_expsym_cmds_CXX="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}"
13792 fi
13793
13794 else
13795 ld_shlibs_CXX=no
13796 fi
13797
13798 ;;
13799
13800 dgux*)
13801 case $cc_basename in
13802 ec++*)
13803 # FIXME: insert proper C++ library support
13804 ld_shlibs_CXX=no
13805 ;;
13806 ghcx*)
13807 # Green Hills C++ Compiler
13808 # FIXME: insert proper C++ library support
13809 ld_shlibs_CXX=no
13810 ;;
13811 *)
13812 # FIXME: insert proper C++ library support
13813 ld_shlibs_CXX=no
13814 ;;
13815 esac
13816 ;;
13817
13818 freebsd2.*)
13819 # C++ shared libraries reported to be fairly broken before
13820 # switch to ELF
13821 ld_shlibs_CXX=no
13822 ;;
13823
13824 freebsd-elf*)
13825 archive_cmds_need_lc_CXX=no
13826 ;;
13827
13828 freebsd* | dragonfly*)
13829 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13830 # conventions
13831 ld_shlibs_CXX=yes
13832 ;;
13833
13834 gnu*)
13835 ;;
13836
13837 haiku*)
13838 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13839 link_all_deplibs_CXX=yes
13840 ;;
13841
13842 hpux9*)
13843 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13844 hardcode_libdir_separator_CXX=:
13845 export_dynamic_flag_spec_CXX='${wl}-E'
13846 hardcode_direct_CXX=yes
13847 hardcode_minus_L_CXX=yes # Not in the search PATH,
13848 # but as the default
13849 # location of the library.
13850
13851 case $cc_basename in
13852 CC*)
13853 # FIXME: insert proper C++ library support
13854 ld_shlibs_CXX=no
13855 ;;
13856 aCC*)
13857 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13858 # Commands to make compiler produce verbose output that lists
13859 # what "hidden" libraries, object files and flags are used when
13860 # linking a shared library.
13861 #
13862 # There doesn't appear to be a way to prevent this compiler from
13863 # explicitly linking system object files so we need to strip them
13864 # from the output so that they don't get included in the library
13865 # dependencies.
13866 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13867 ;;
13868 *)
13869 if test "$GXX" = yes; then
13870 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13871 else
13872 # FIXME: insert proper C++ library support
13873 ld_shlibs_CXX=no
13874 fi
13875 ;;
13876 esac
13877 ;;
13878
13879 hpux10*|hpux11*)
13880 if test $with_gnu_ld = no; then
13881 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13882 hardcode_libdir_separator_CXX=:
13883
13884 case $host_cpu in
13885 hppa*64*|ia64*)
13886 ;;
13887 *)
13888 export_dynamic_flag_spec_CXX='${wl}-E'
13889 ;;
13890 esac
13891 fi
13892 case $host_cpu in
13893 hppa*64*|ia64*)
13894 hardcode_direct_CXX=no
13895 hardcode_shlibpath_var_CXX=no
13896 ;;
13897 *)
13898 hardcode_direct_CXX=yes
13899 hardcode_direct_absolute_CXX=yes
13900 hardcode_minus_L_CXX=yes # Not in the search PATH,
13901 # but as the default
13902 # location of the library.
13903 ;;
13904 esac
13905
13906 case $cc_basename in
13907 CC*)
13908 # FIXME: insert proper C++ library support
13909 ld_shlibs_CXX=no
13910 ;;
13911 aCC*)
13912 case $host_cpu in
13913 hppa*64*)
13914 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13915 ;;
13916 ia64*)
13917 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13918 ;;
13919 *)
13920 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13921 ;;
13922 esac
13923 # Commands to make compiler produce verbose output that lists
13924 # what "hidden" libraries, object files and flags are used when
13925 # linking a shared library.
13926 #
13927 # There doesn't appear to be a way to prevent this compiler from
13928 # explicitly linking system object files so we need to strip them
13929 # from the output so that they don't get included in the library
13930 # dependencies.
13931 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13932 ;;
13933 *)
13934 if test "$GXX" = yes; then
13935 if test $with_gnu_ld = no; then
13936 case $host_cpu in
13937 hppa*64*)
13938 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13939 ;;
13940 ia64*)
13941 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13942 ;;
13943 *)
13944 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13945 ;;
13946 esac
13947 fi
13948 else
13949 # FIXME: insert proper C++ library support
13950 ld_shlibs_CXX=no
13951 fi
13952 ;;
13953 esac
13954 ;;
13955
13956 interix[3-9]*)
13957 hardcode_direct_CXX=no
13958 hardcode_shlibpath_var_CXX=no
13959 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13960 export_dynamic_flag_spec_CXX='${wl}-E'
13961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13962 # Instead, shared libraries are loaded at an image base (0x10000000 by
13963 # default) and relocated if they conflict, which is a slow very memory
13964 # consuming and fragmenting process. To avoid this, we pick a random,
13965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13966 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13967 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13968 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13969 ;;
13970 irix5* | irix6*)
13971 case $cc_basename in
13972 CC*)
13973 # SGI C++
13974 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13975
13976 # Archives containing C++ object files must be created using
13977 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13978 # necessary to make sure instantiated templates are included
13979 # in the archive.
13980 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13981 ;;
13982 *)
13983 if test "$GXX" = yes; then
13984 if test "$with_gnu_ld" = no; then
13985 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13986 else
13987 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13988 fi
13989 fi
13990 link_all_deplibs_CXX=yes
13991 ;;
13992 esac
13993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13994 hardcode_libdir_separator_CXX=:
13995 inherit_rpath_CXX=yes
13996 ;;
13997
13998 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13999 case $cc_basename in
14000 KCC*)
14001 # Kuck and Associates, Inc. (KAI) C++ Compiler
14002
14003 # KCC will only create a shared library if the output file
14004 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14005 # to its proper name (with version) after linking.
14006 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14007 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14008 # Commands to make compiler produce verbose output that lists
14009 # what "hidden" libraries, object files and flags are used when
14010 # linking a shared library.
14011 #
14012 # There doesn't appear to be a way to prevent this compiler from
14013 # explicitly linking system object files so we need to strip them
14014 # from the output so that they don't get included in the library
14015 # dependencies.
14016 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14017
14018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14020
14021 # Archives containing C++ object files must be created using
14022 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14023 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14024 ;;
14025 icpc* | ecpc* )
14026 # Intel C++
14027 with_gnu_ld=yes
14028 # version 8.0 and above of icpc choke on multiply defined symbols
14029 # if we add $predep_objects and $postdep_objects, however 7.1 and
14030 # earlier do not add the objects themselves.
14031 case `$CC -V 2>&1` in
14032 *"Version 7."*)
14033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14034 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14035 ;;
14036 *) # Version 8.0 or newer
14037 tmp_idyn=
14038 case $host_cpu in
14039 ia64*) tmp_idyn=' -i_dynamic';;
14040 esac
14041 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14042 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14043 ;;
14044 esac
14045 archive_cmds_need_lc_CXX=no
14046 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14047 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14048 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14049 ;;
14050 pgCC* | pgcpp*)
14051 # Portland Group C++ compiler
14052 case `$CC -V` in
14053 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14054 prelink_cmds_CXX='tpldir=Template.dir~
14055 rm -rf $tpldir~
14056 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14057 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14058 old_archive_cmds_CXX='tpldir=Template.dir~
14059 rm -rf $tpldir~
14060 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14061 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14062 $RANLIB $oldlib'
14063 archive_cmds_CXX='tpldir=Template.dir~
14064 rm -rf $tpldir~
14065 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14066 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14067 archive_expsym_cmds_CXX='tpldir=Template.dir~
14068 rm -rf $tpldir~
14069 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14070 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14071 ;;
14072 *) # Version 6 and above use weak symbols
14073 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14074 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14075 ;;
14076 esac
14077
14078 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14079 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14080 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14081 ;;
14082 cxx*)
14083 # Compaq C++
14084 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14085 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14086
14087 runpath_var=LD_RUN_PATH
14088 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14089 hardcode_libdir_separator_CXX=:
14090
14091 # Commands to make compiler produce verbose output that lists
14092 # what "hidden" libraries, object files and flags are used when
14093 # linking a shared library.
14094 #
14095 # There doesn't appear to be a way to prevent this compiler from
14096 # explicitly linking system object files so we need to strip them
14097 # from the output so that they don't get included in the library
14098 # dependencies.
14099 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14100 ;;
14101 xl* | mpixl* | bgxl*)
14102 # IBM XL 8.0 on PPC, with GNU ld
14103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14104 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14105 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14106 if test "x$supports_anon_versioning" = xyes; then
14107 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14109 echo "local: *; };" >> $output_objdir/$libname.ver~
14110 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14111 fi
14112 ;;
14113 *)
14114 case `$CC -V 2>&1 | sed 5q` in
14115 *Sun\ C*)
14116 # Sun C++ 5.9
14117 no_undefined_flag_CXX=' -zdefs'
14118 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14119 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14120 hardcode_libdir_flag_spec_CXX='-R$libdir'
14121 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14122 compiler_needs_object_CXX=yes
14123
14124 # Not sure whether something based on
14125 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14126 # would be better.
14127 output_verbose_link_cmd='func_echo_all'
14128
14129 # Archives containing C++ object files must be created using
14130 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14131 # necessary to make sure instantiated templates are included
14132 # in the archive.
14133 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14134 ;;
14135 esac
14136 ;;
14137 esac
14138 ;;
14139
14140 lynxos*)
14141 # FIXME: insert proper C++ library support
14142 ld_shlibs_CXX=no
14143 ;;
14144
14145 m88k*)
14146 # FIXME: insert proper C++ library support
14147 ld_shlibs_CXX=no
14148 ;;
14149
14150 mvs*)
14151 case $cc_basename in
14152 cxx*)
14153 # FIXME: insert proper C++ library support
14154 ld_shlibs_CXX=no
14155 ;;
14156 *)
14157 # FIXME: insert proper C++ library support
14158 ld_shlibs_CXX=no
14159 ;;
14160 esac
14161 ;;
14162
14163 netbsd*)
14164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14165 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14166 wlarc=
14167 hardcode_libdir_flag_spec_CXX='-R$libdir'
14168 hardcode_direct_CXX=yes
14169 hardcode_shlibpath_var_CXX=no
14170 fi
14171 # Workaround some broken pre-1.5 toolchains
14172 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14173 ;;
14174
14175 *nto* | *qnx*)
14176 ld_shlibs_CXX=yes
14177 ;;
14178
14179 openbsd2*)
14180 # C++ shared libraries are fairly broken
14181 ld_shlibs_CXX=no
14182 ;;
14183
14184 openbsd*)
14185 if test -f /usr/libexec/ld.so; then
14186 hardcode_direct_CXX=yes
14187 hardcode_shlibpath_var_CXX=no
14188 hardcode_direct_absolute_CXX=yes
14189 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14190 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14191 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14192 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14193 export_dynamic_flag_spec_CXX='${wl}-E'
14194 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14195 fi
14196 output_verbose_link_cmd=func_echo_all
14197 else
14198 ld_shlibs_CXX=no
14199 fi
14200 ;;
14201
14202 osf3* | osf4* | osf5*)
14203 case $cc_basename in
14204 KCC*)
14205 # Kuck and Associates, Inc. (KAI) C++ Compiler
14206
14207 # KCC will only create a shared library if the output file
14208 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14209 # to its proper name (with version) after linking.
14210 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14211
14212 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14213 hardcode_libdir_separator_CXX=:
14214
14215 # Archives containing C++ object files must be created using
14216 # the KAI C++ compiler.
14217 case $host in
14218 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14219 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14220 esac
14221 ;;
14222 RCC*)
14223 # Rational C++ 2.4.1
14224 # FIXME: insert proper C++ library support
14225 ld_shlibs_CXX=no
14226 ;;
14227 cxx*)
14228 case $host in
14229 osf3*)
14230 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14231 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14232 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14233 ;;
14234 *)
14235 allow_undefined_flag_CXX=' -expect_unresolved \*'
14236 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14237 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14238 echo "-hidden">> $lib.exp~
14239 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14240 $RM $lib.exp'
14241 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14242 ;;
14243 esac
14244
14245 hardcode_libdir_separator_CXX=:
14246
14247 # Commands to make compiler produce verbose output that lists
14248 # what "hidden" libraries, object files and flags are used when
14249 # linking a shared library.
14250 #
14251 # There doesn't appear to be a way to prevent this compiler from
14252 # explicitly linking system object files so we need to strip them
14253 # from the output so that they don't get included in the library
14254 # dependencies.
14255 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14256 ;;
14257 *)
14258 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14259 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14260 case $host in
14261 osf3*)
14262 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14263 ;;
14264 *)
14265 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14266 ;;
14267 esac
14268
14269 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14270 hardcode_libdir_separator_CXX=:
14271
14272 # Commands to make compiler produce verbose output that lists
14273 # what "hidden" libraries, object files and flags are used when
14274 # linking a shared library.
14275 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14276
14277 else
14278 # FIXME: insert proper C++ library support
14279 ld_shlibs_CXX=no
14280 fi
14281 ;;
14282 esac
14283 ;;
14284
14285 psos*)
14286 # FIXME: insert proper C++ library support
14287 ld_shlibs_CXX=no
14288 ;;
14289
14290 sunos4*)
14291 case $cc_basename in
14292 CC*)
14293 # Sun C++ 4.x
14294 # FIXME: insert proper C++ library support
14295 ld_shlibs_CXX=no
14296 ;;
14297 lcc*)
14298 # Lucid
14299 # FIXME: insert proper C++ library support
14300 ld_shlibs_CXX=no
14301 ;;
14302 *)
14303 # FIXME: insert proper C++ library support
14304 ld_shlibs_CXX=no
14305 ;;
14306 esac
14307 ;;
14308
14309 solaris*)
14310 case $cc_basename in
14311 CC* | sunCC*)
14312 # Sun C++ 4.2, 5.x and Centerline C++
14313 archive_cmds_need_lc_CXX=yes
14314 no_undefined_flag_CXX=' -zdefs'
14315 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14316 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14317 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14318
14319 hardcode_libdir_flag_spec_CXX='-R$libdir'
14320 hardcode_shlibpath_var_CXX=no
14321 case $host_os in
14322 solaris2.[0-5] | solaris2.[0-5].*) ;;
14323 *)
14324 # The compiler driver will combine and reorder linker options,
14325 # but understands `-z linker_flag'.
14326 # Supported since Solaris 2.6 (maybe 2.5.1?)
14327 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14328 ;;
14329 esac
14330 link_all_deplibs_CXX=yes
14331
14332 output_verbose_link_cmd='func_echo_all'
14333
14334 # Archives containing C++ object files must be created using
14335 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14336 # necessary to make sure instantiated templates are included
14337 # in the archive.
14338 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14339 ;;
14340 gcx*)
14341 # Green Hills C++ Compiler
14342 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14343
14344 # The C++ compiler must be used to create the archive.
14345 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14346 ;;
14347 *)
14348 # GNU C++ compiler with Solaris linker
14349 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14350 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14351 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14352 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14353 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14354 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14355
14356 # Commands to make compiler produce verbose output that lists
14357 # what "hidden" libraries, object files and flags are used when
14358 # linking a shared library.
14359 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14360 else
14361 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14362 # platform.
14363 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14364 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14365 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14366
14367 # Commands to make compiler produce verbose output that lists
14368 # what "hidden" libraries, object files and flags are used when
14369 # linking a shared library.
14370 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14371 fi
14372
14373 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14374 case $host_os in
14375 solaris2.[0-5] | solaris2.[0-5].*) ;;
14376 *)
14377 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14378 ;;
14379 esac
14380 fi
14381 ;;
14382 esac
14383 ;;
14384
14385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14386 no_undefined_flag_CXX='${wl}-z,text'
14387 archive_cmds_need_lc_CXX=no
14388 hardcode_shlibpath_var_CXX=no
14389 runpath_var='LD_RUN_PATH'
14390
14391 case $cc_basename in
14392 CC*)
14393 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14394 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14395 ;;
14396 *)
14397 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14398 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14399 ;;
14400 esac
14401 ;;
14402
14403 sysv5* | sco3.2v5* | sco5v6*)
14404 # Note: We can NOT use -z defs as we might desire, because we do not
14405 # link with -lc, and that would cause any symbols used from libc to
14406 # always be unresolved, which means just about no library would
14407 # ever link correctly. If we're not using GNU ld we use -z text
14408 # though, which does catch some bad symbols but isn't as heavy-handed
14409 # as -z defs.
14410 no_undefined_flag_CXX='${wl}-z,text'
14411 allow_undefined_flag_CXX='${wl}-z,nodefs'
14412 archive_cmds_need_lc_CXX=no
14413 hardcode_shlibpath_var_CXX=no
14414 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14415 hardcode_libdir_separator_CXX=':'
14416 link_all_deplibs_CXX=yes
14417 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14418 runpath_var='LD_RUN_PATH'
14419
14420 case $cc_basename in
14421 CC*)
14422 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14423 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14424 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14425 '"$old_archive_cmds_CXX"
14426 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14427 '"$reload_cmds_CXX"
14428 ;;
14429 *)
14430 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14431 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14432 ;;
14433 esac
14434 ;;
14435
14436 tandem*)
14437 case $cc_basename in
14438 NCC*)
14439 # NonStop-UX NCC 3.20
14440 # FIXME: insert proper C++ library support
14441 ld_shlibs_CXX=no
14442 ;;
14443 *)
14444 # FIXME: insert proper C++ library support
14445 ld_shlibs_CXX=no
14446 ;;
14447 esac
14448 ;;
14449
14450 vxworks*)
14451 # FIXME: insert proper C++ library support
14452 ld_shlibs_CXX=no
14453 ;;
14454
14455 *)
14456 # FIXME: insert proper C++ library support
14457 ld_shlibs_CXX=no
14458 ;;
14459 esac
14460
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14462 $as_echo "$ld_shlibs_CXX" >&6; }
14463 test "$ld_shlibs_CXX" = no && can_build_shared=no
14464
14465 GCC_CXX="$GXX"
14466 LD_CXX="$LD"
14467
14468 ## CAVEAT EMPTOR:
14469 ## There is no encapsulation within the following macros, do not change
14470 ## the running order or otherwise move them around unless you know exactly
14471 ## what you are doing...
14472 # Dependencies to place before and after the object being linked:
14473 predep_objects_CXX=
14474 postdep_objects_CXX=
14475 predeps_CXX=
14476 postdeps_CXX=
14477 compiler_lib_search_path_CXX=
14478
14479 cat > conftest.$ac_ext <<_LT_EOF
14480 class Foo
14481 {
14482 public:
14483 Foo (void) { a = 0; }
14484 private:
14485 int a;
14486 };
14487 _LT_EOF
14488
14489
14490 _lt_libdeps_save_CFLAGS=$CFLAGS
14491 case "$CC $CFLAGS " in #(
14492 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14493 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14494 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14495 esac
14496
14497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14498 (eval $ac_compile) 2>&5
14499 ac_status=$?
14500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14501 test $ac_status = 0; }; then
14502 # Parse the compiler output and extract the necessary
14503 # objects, libraries and library flags.
14504
14505 # Sentinel used to keep track of whether or not we are before
14506 # the conftest object file.
14507 pre_test_object_deps_done=no
14508
14509 for p in `eval "$output_verbose_link_cmd"`; do
14510 case ${prev}${p} in
14511
14512 -L* | -R* | -l*)
14513 # Some compilers place space between "-{L,R}" and the path.
14514 # Remove the space.
14515 if test $p = "-L" ||
14516 test $p = "-R"; then
14517 prev=$p
14518 continue
14519 fi
14520
14521 # Expand the sysroot to ease extracting the directories later.
14522 if test -z "$prev"; then
14523 case $p in
14524 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14525 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14526 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14527 esac
14528 fi
14529 case $p in
14530 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14531 esac
14532 if test "$pre_test_object_deps_done" = no; then
14533 case ${prev} in
14534 -L | -R)
14535 # Internal compiler library paths should come after those
14536 # provided the user. The postdeps already come after the
14537 # user supplied libs so there is no need to process them.
14538 if test -z "$compiler_lib_search_path_CXX"; then
14539 compiler_lib_search_path_CXX="${prev}${p}"
14540 else
14541 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14542 fi
14543 ;;
14544 # The "-l" case would never come before the object being
14545 # linked, so don't bother handling this case.
14546 esac
14547 else
14548 if test -z "$postdeps_CXX"; then
14549 postdeps_CXX="${prev}${p}"
14550 else
14551 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14552 fi
14553 fi
14554 prev=
14555 ;;
14556
14557 *.lto.$objext) ;; # Ignore GCC LTO objects
14558 *.$objext)
14559 # This assumes that the test object file only shows up
14560 # once in the compiler output.
14561 if test "$p" = "conftest.$objext"; then
14562 pre_test_object_deps_done=yes
14563 continue
14564 fi
14565
14566 if test "$pre_test_object_deps_done" = no; then
14567 if test -z "$predep_objects_CXX"; then
14568 predep_objects_CXX="$p"
14569 else
14570 predep_objects_CXX="$predep_objects_CXX $p"
14571 fi
14572 else
14573 if test -z "$postdep_objects_CXX"; then
14574 postdep_objects_CXX="$p"
14575 else
14576 postdep_objects_CXX="$postdep_objects_CXX $p"
14577 fi
14578 fi
14579 ;;
14580
14581 *) ;; # Ignore the rest.
14582
14583 esac
14584 done
14585
14586 # Clean up.
14587 rm -f a.out a.exe
14588 else
14589 echo "libtool.m4: error: problem compiling CXX test program"
14590 fi
14591
14592 $RM -f confest.$objext
14593 CFLAGS=$_lt_libdeps_save_CFLAGS
14594
14595 # PORTME: override above test on systems where it is broken
14596 case $host_os in
14597 interix[3-9]*)
14598 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14599 # hack all around it, let's just trust "g++" to DTRT.
14600 predep_objects_CXX=
14601 postdep_objects_CXX=
14602 postdeps_CXX=
14603 ;;
14604
14605 linux*)
14606 case `$CC -V 2>&1 | sed 5q` in
14607 *Sun\ C*)
14608 # Sun C++ 5.9
14609
14610 # The more standards-conforming stlport4 library is
14611 # incompatible with the Cstd library. Avoid specifying
14612 # it if it's in CXXFLAGS. Ignore libCrun as
14613 # -library=stlport4 depends on it.
14614 case " $CXX $CXXFLAGS " in
14615 *" -library=stlport4 "*)
14616 solaris_use_stlport4=yes
14617 ;;
14618 esac
14619
14620 if test "$solaris_use_stlport4" != yes; then
14621 postdeps_CXX='-library=Cstd -library=Crun'
14622 fi
14623 ;;
14624 esac
14625 ;;
14626
14627 solaris*)
14628 case $cc_basename in
14629 CC* | sunCC*)
14630 # The more standards-conforming stlport4 library is
14631 # incompatible with the Cstd library. Avoid specifying
14632 # it if it's in CXXFLAGS. Ignore libCrun as
14633 # -library=stlport4 depends on it.
14634 case " $CXX $CXXFLAGS " in
14635 *" -library=stlport4 "*)
14636 solaris_use_stlport4=yes
14637 ;;
14638 esac
14639
14640 # Adding this requires a known-good setup of shared libraries for
14641 # Sun compiler versions before 5.6, else PIC objects from an old
14642 # archive will be linked into the output, leading to subtle bugs.
14643 if test "$solaris_use_stlport4" != yes; then
14644 postdeps_CXX='-library=Cstd -library=Crun'
14645 fi
14646 ;;
14647 esac
14648 ;;
14649 esac
14650
14651
14652 case " $postdeps_CXX " in
14653 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14654 esac
14655 compiler_lib_search_dirs_CXX=
14656 if test -n "${compiler_lib_search_path_CXX}"; then
14657 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14658 fi
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690 lt_prog_compiler_wl_CXX=
14691 lt_prog_compiler_pic_CXX=
14692 lt_prog_compiler_static_CXX=
14693
14694
14695 # C++ specific cases for pic, static, wl, etc.
14696 if test "$GXX" = yes; then
14697 lt_prog_compiler_wl_CXX='-Wl,'
14698 lt_prog_compiler_static_CXX='-static'
14699
14700 case $host_os in
14701 aix*)
14702 # All AIX code is PIC.
14703 if test "$host_cpu" = ia64; then
14704 # AIX 5 now supports IA64 processor
14705 lt_prog_compiler_static_CXX='-Bstatic'
14706 fi
14707 ;;
14708
14709 amigaos*)
14710 case $host_cpu in
14711 powerpc)
14712 # see comment about AmigaOS4 .so support
14713 lt_prog_compiler_pic_CXX='-fPIC'
14714 ;;
14715 m68k)
14716 # FIXME: we need at least 68020 code to build shared libraries, but
14717 # adding the `-m68020' flag to GCC prevents building anything better,
14718 # like `-m68040'.
14719 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14720 ;;
14721 esac
14722 ;;
14723
14724 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14725 # PIC is the default for these OSes.
14726 ;;
14727 mingw* | cygwin* | os2* | pw32* | cegcc*)
14728 # This hack is so that the source file can tell whether it is being
14729 # built for inclusion in a dll (and should export symbols for example).
14730 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14731 # (--disable-auto-import) libraries
14732 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14733 ;;
14734 darwin* | rhapsody*)
14735 # PIC is the default on this platform
14736 # Common symbols not allowed in MH_DYLIB files
14737 lt_prog_compiler_pic_CXX='-fno-common'
14738 ;;
14739 *djgpp*)
14740 # DJGPP does not support shared libraries at all
14741 lt_prog_compiler_pic_CXX=
14742 ;;
14743 haiku*)
14744 # PIC is the default for Haiku.
14745 # The "-static" flag exists, but is broken.
14746 lt_prog_compiler_static_CXX=
14747 ;;
14748 interix[3-9]*)
14749 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14750 # Instead, we relocate shared libraries at runtime.
14751 ;;
14752 sysv4*MP*)
14753 if test -d /usr/nec; then
14754 lt_prog_compiler_pic_CXX=-Kconform_pic
14755 fi
14756 ;;
14757 hpux*)
14758 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14759 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14760 # sets the default TLS model and affects inlining.
14761 case $host_cpu in
14762 hppa*64*)
14763 ;;
14764 *)
14765 lt_prog_compiler_pic_CXX='-fPIC'
14766 ;;
14767 esac
14768 ;;
14769 *qnx* | *nto*)
14770 # QNX uses GNU C++, but need to define -shared option too, otherwise
14771 # it will coredump.
14772 lt_prog_compiler_pic_CXX='-fPIC -shared'
14773 ;;
14774 *)
14775 lt_prog_compiler_pic_CXX='-fPIC'
14776 ;;
14777 esac
14778 else
14779 case $host_os in
14780 aix[4-9]*)
14781 # All AIX code is PIC.
14782 if test "$host_cpu" = ia64; then
14783 # AIX 5 now supports IA64 processor
14784 lt_prog_compiler_static_CXX='-Bstatic'
14785 else
14786 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14787 fi
14788 ;;
14789 chorus*)
14790 case $cc_basename in
14791 cxch68*)
14792 # Green Hills C++ Compiler
14793 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14794 ;;
14795 esac
14796 ;;
14797 mingw* | cygwin* | os2* | pw32* | cegcc*)
14798 # This hack is so that the source file can tell whether it is being
14799 # built for inclusion in a dll (and should export symbols for example).
14800 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14801 ;;
14802 dgux*)
14803 case $cc_basename in
14804 ec++*)
14805 lt_prog_compiler_pic_CXX='-KPIC'
14806 ;;
14807 ghcx*)
14808 # Green Hills C++ Compiler
14809 lt_prog_compiler_pic_CXX='-pic'
14810 ;;
14811 *)
14812 ;;
14813 esac
14814 ;;
14815 freebsd* | dragonfly*)
14816 # FreeBSD uses GNU C++
14817 ;;
14818 hpux9* | hpux10* | hpux11*)
14819 case $cc_basename in
14820 CC*)
14821 lt_prog_compiler_wl_CXX='-Wl,'
14822 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14823 if test "$host_cpu" != ia64; then
14824 lt_prog_compiler_pic_CXX='+Z'
14825 fi
14826 ;;
14827 aCC*)
14828 lt_prog_compiler_wl_CXX='-Wl,'
14829 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14830 case $host_cpu in
14831 hppa*64*|ia64*)
14832 # +Z the default
14833 ;;
14834 *)
14835 lt_prog_compiler_pic_CXX='+Z'
14836 ;;
14837 esac
14838 ;;
14839 *)
14840 ;;
14841 esac
14842 ;;
14843 interix*)
14844 # This is c89, which is MS Visual C++ (no shared libs)
14845 # Anyone wants to do a port?
14846 ;;
14847 irix5* | irix6* | nonstopux*)
14848 case $cc_basename in
14849 CC*)
14850 lt_prog_compiler_wl_CXX='-Wl,'
14851 lt_prog_compiler_static_CXX='-non_shared'
14852 # CC pic flag -KPIC is the default.
14853 ;;
14854 *)
14855 ;;
14856 esac
14857 ;;
14858 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14859 case $cc_basename in
14860 KCC*)
14861 # KAI C++ Compiler
14862 lt_prog_compiler_wl_CXX='--backend -Wl,'
14863 lt_prog_compiler_pic_CXX='-fPIC'
14864 ;;
14865 ecpc* )
14866 # old Intel C++ for x86_64 which still supported -KPIC.
14867 lt_prog_compiler_wl_CXX='-Wl,'
14868 lt_prog_compiler_pic_CXX='-KPIC'
14869 lt_prog_compiler_static_CXX='-static'
14870 ;;
14871 icpc* )
14872 # Intel C++, used to be incompatible with GCC.
14873 # ICC 10 doesn't accept -KPIC any more.
14874 lt_prog_compiler_wl_CXX='-Wl,'
14875 lt_prog_compiler_pic_CXX='-fPIC'
14876 lt_prog_compiler_static_CXX='-static'
14877 ;;
14878 pgCC* | pgcpp*)
14879 # Portland Group C++ compiler
14880 lt_prog_compiler_wl_CXX='-Wl,'
14881 lt_prog_compiler_pic_CXX='-fpic'
14882 lt_prog_compiler_static_CXX='-Bstatic'
14883 ;;
14884 cxx*)
14885 # Compaq C++
14886 # Make sure the PIC flag is empty. It appears that all Alpha
14887 # Linux and Compaq Tru64 Unix objects are PIC.
14888 lt_prog_compiler_pic_CXX=
14889 lt_prog_compiler_static_CXX='-non_shared'
14890 ;;
14891 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14892 # IBM XL 8.0, 9.0 on PPC and BlueGene
14893 lt_prog_compiler_wl_CXX='-Wl,'
14894 lt_prog_compiler_pic_CXX='-qpic'
14895 lt_prog_compiler_static_CXX='-qstaticlink'
14896 ;;
14897 *)
14898 case `$CC -V 2>&1 | sed 5q` in
14899 *Sun\ C*)
14900 # Sun C++ 5.9
14901 lt_prog_compiler_pic_CXX='-KPIC'
14902 lt_prog_compiler_static_CXX='-Bstatic'
14903 lt_prog_compiler_wl_CXX='-Qoption ld '
14904 ;;
14905 esac
14906 ;;
14907 esac
14908 ;;
14909 lynxos*)
14910 ;;
14911 m88k*)
14912 ;;
14913 mvs*)
14914 case $cc_basename in
14915 cxx*)
14916 lt_prog_compiler_pic_CXX='-W c,exportall'
14917 ;;
14918 *)
14919 ;;
14920 esac
14921 ;;
14922 netbsd*)
14923 ;;
14924 *qnx* | *nto*)
14925 # QNX uses GNU C++, but need to define -shared option too, otherwise
14926 # it will coredump.
14927 lt_prog_compiler_pic_CXX='-fPIC -shared'
14928 ;;
14929 osf3* | osf4* | osf5*)
14930 case $cc_basename in
14931 KCC*)
14932 lt_prog_compiler_wl_CXX='--backend -Wl,'
14933 ;;
14934 RCC*)
14935 # Rational C++ 2.4.1
14936 lt_prog_compiler_pic_CXX='-pic'
14937 ;;
14938 cxx*)
14939 # Digital/Compaq C++
14940 lt_prog_compiler_wl_CXX='-Wl,'
14941 # Make sure the PIC flag is empty. It appears that all Alpha
14942 # Linux and Compaq Tru64 Unix objects are PIC.
14943 lt_prog_compiler_pic_CXX=
14944 lt_prog_compiler_static_CXX='-non_shared'
14945 ;;
14946 *)
14947 ;;
14948 esac
14949 ;;
14950 psos*)
14951 ;;
14952 solaris*)
14953 case $cc_basename in
14954 CC* | sunCC*)
14955 # Sun C++ 4.2, 5.x and Centerline C++
14956 lt_prog_compiler_pic_CXX='-KPIC'
14957 lt_prog_compiler_static_CXX='-Bstatic'
14958 lt_prog_compiler_wl_CXX='-Qoption ld '
14959 ;;
14960 gcx*)
14961 # Green Hills C++ Compiler
14962 lt_prog_compiler_pic_CXX='-PIC'
14963 ;;
14964 *)
14965 ;;
14966 esac
14967 ;;
14968 sunos4*)
14969 case $cc_basename in
14970 CC*)
14971 # Sun C++ 4.x
14972 lt_prog_compiler_pic_CXX='-pic'
14973 lt_prog_compiler_static_CXX='-Bstatic'
14974 ;;
14975 lcc*)
14976 # Lucid
14977 lt_prog_compiler_pic_CXX='-pic'
14978 ;;
14979 *)
14980 ;;
14981 esac
14982 ;;
14983 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14984 case $cc_basename in
14985 CC*)
14986 lt_prog_compiler_wl_CXX='-Wl,'
14987 lt_prog_compiler_pic_CXX='-KPIC'
14988 lt_prog_compiler_static_CXX='-Bstatic'
14989 ;;
14990 esac
14991 ;;
14992 tandem*)
14993 case $cc_basename in
14994 NCC*)
14995 # NonStop-UX NCC 3.20
14996 lt_prog_compiler_pic_CXX='-KPIC'
14997 ;;
14998 *)
14999 ;;
15000 esac
15001 ;;
15002 vxworks*)
15003 ;;
15004 *)
15005 lt_prog_compiler_can_build_shared_CXX=no
15006 ;;
15007 esac
15008 fi
15009
15010 case $host_os in
15011 # For platforms which do not support PIC, -DPIC is meaningless:
15012 *djgpp*)
15013 lt_prog_compiler_pic_CXX=
15014 ;;
15015 *)
15016 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15017 ;;
15018 esac
15019
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15021 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15022 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15026 fi
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15028 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15029 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15030
15031 #
15032 # Check to make sure the PIC flag actually works.
15033 #
15034 if test -n "$lt_prog_compiler_pic_CXX"; then
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15036 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15037 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15038 $as_echo_n "(cached) " >&6
15039 else
15040 lt_cv_prog_compiler_pic_works_CXX=no
15041 ac_outfile=conftest.$ac_objext
15042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15043 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15044 # Insert the option either (1) after the last *FLAGS variable, or
15045 # (2) before a word containing "conftest.", or (3) at the end.
15046 # Note that $ac_compile itself does not contain backslashes and begins
15047 # with a dollar sign (not a hyphen), so the echo should work correctly.
15048 # The option is referenced via a variable to avoid confusing sed.
15049 lt_compile=`echo "$ac_compile" | $SED \
15050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15052 -e 's:$: $lt_compiler_flag:'`
15053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15054 (eval "$lt_compile" 2>conftest.err)
15055 ac_status=$?
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 if (exit $ac_status) && test -s "$ac_outfile"; then
15059 # The compiler can only warn and ignore the option if not recognized
15060 # So say no if there are warnings other than the usual output.
15061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15064 lt_cv_prog_compiler_pic_works_CXX=yes
15065 fi
15066 fi
15067 $RM conftest*
15068
15069 fi
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15071 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15072
15073 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15074 case $lt_prog_compiler_pic_CXX in
15075 "" | " "*) ;;
15076 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15077 esac
15078 else
15079 lt_prog_compiler_pic_CXX=
15080 lt_prog_compiler_can_build_shared_CXX=no
15081 fi
15082
15083 fi
15084
15085
15086
15087
15088
15089 #
15090 # Check to make sure the static flag actually works.
15091 #
15092 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15095 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15096 $as_echo_n "(cached) " >&6
15097 else
15098 lt_cv_prog_compiler_static_works_CXX=no
15099 save_LDFLAGS="$LDFLAGS"
15100 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15101 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15102 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15103 # The linker can only warn and ignore the option if not recognized
15104 # So say no if there are warnings
15105 if test -s conftest.err; then
15106 # Append any errors to the config.log.
15107 cat conftest.err 1>&5
15108 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15110 if diff conftest.exp conftest.er2 >/dev/null; then
15111 lt_cv_prog_compiler_static_works_CXX=yes
15112 fi
15113 else
15114 lt_cv_prog_compiler_static_works_CXX=yes
15115 fi
15116 fi
15117 $RM -r conftest*
15118 LDFLAGS="$save_LDFLAGS"
15119
15120 fi
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15122 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15123
15124 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15125 :
15126 else
15127 lt_prog_compiler_static_CXX=
15128 fi
15129
15130
15131
15132
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15134 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15135 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15136 $as_echo_n "(cached) " >&6
15137 else
15138 lt_cv_prog_compiler_c_o_CXX=no
15139 $RM -r conftest 2>/dev/null
15140 mkdir conftest
15141 cd conftest
15142 mkdir out
15143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15144
15145 lt_compiler_flag="-o out/conftest2.$ac_objext"
15146 # Insert the option either (1) after the last *FLAGS variable, or
15147 # (2) before a word containing "conftest.", or (3) at the end.
15148 # Note that $ac_compile itself does not contain backslashes and begins
15149 # with a dollar sign (not a hyphen), so the echo should work correctly.
15150 lt_compile=`echo "$ac_compile" | $SED \
15151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15153 -e 's:$: $lt_compiler_flag:'`
15154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15155 (eval "$lt_compile" 2>out/conftest.err)
15156 ac_status=$?
15157 cat out/conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15160 then
15161 # The compiler can only warn and ignore the option if not recognized
15162 # So say no if there are warnings
15163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15166 lt_cv_prog_compiler_c_o_CXX=yes
15167 fi
15168 fi
15169 chmod u+w . 2>&5
15170 $RM conftest*
15171 # SGI C++ compiler will create directory out/ii_files/ for
15172 # template instantiation
15173 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15174 $RM out/* && rmdir out
15175 cd ..
15176 $RM -r conftest
15177 $RM conftest*
15178
15179 fi
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15181 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15182
15183
15184
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15187 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15188 $as_echo_n "(cached) " >&6
15189 else
15190 lt_cv_prog_compiler_c_o_CXX=no
15191 $RM -r conftest 2>/dev/null
15192 mkdir conftest
15193 cd conftest
15194 mkdir out
15195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15196
15197 lt_compiler_flag="-o out/conftest2.$ac_objext"
15198 # Insert the option either (1) after the last *FLAGS variable, or
15199 # (2) before a word containing "conftest.", or (3) at the end.
15200 # Note that $ac_compile itself does not contain backslashes and begins
15201 # with a dollar sign (not a hyphen), so the echo should work correctly.
15202 lt_compile=`echo "$ac_compile" | $SED \
15203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15205 -e 's:$: $lt_compiler_flag:'`
15206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15207 (eval "$lt_compile" 2>out/conftest.err)
15208 ac_status=$?
15209 cat out/conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15212 then
15213 # The compiler can only warn and ignore the option if not recognized
15214 # So say no if there are warnings
15215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15216 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15217 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15218 lt_cv_prog_compiler_c_o_CXX=yes
15219 fi
15220 fi
15221 chmod u+w . 2>&5
15222 $RM conftest*
15223 # SGI C++ compiler will create directory out/ii_files/ for
15224 # template instantiation
15225 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15226 $RM out/* && rmdir out
15227 cd ..
15228 $RM -r conftest
15229 $RM conftest*
15230
15231 fi
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15233 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15234
15235
15236
15237
15238 hard_links="nottested"
15239 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15240 # do not overwrite the value of need_locks provided by the user
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15242 $as_echo_n "checking if we can lock with hard links... " >&6; }
15243 hard_links=yes
15244 $RM conftest*
15245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15246 touch conftest.a
15247 ln conftest.a conftest.b 2>&5 || hard_links=no
15248 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15250 $as_echo "$hard_links" >&6; }
15251 if test "$hard_links" = no; then
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15253 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15254 need_locks=warn
15255 fi
15256 else
15257 need_locks=no
15258 fi
15259
15260
15261
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15263 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15264
15265 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15266 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15267 case $host_os in
15268 aix[4-9]*)
15269 # If we're using GNU nm, then we don't want the "-C" option.
15270 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15271 # Also, AIX nm treats weak defined symbols like other global defined
15272 # symbols, whereas GNU nm marks them as "W".
15273 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15274 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15275 else
15276 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15277 fi
15278 ;;
15279 pw32*)
15280 export_symbols_cmds_CXX="$ltdll_cmds"
15281 ;;
15282 cygwin* | mingw* | cegcc*)
15283 case $cc_basename in
15284 cl*)
15285 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15286 ;;
15287 *)
15288 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15289 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15290 ;;
15291 esac
15292 ;;
15293 *)
15294 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15295 ;;
15296 esac
15297
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15299 $as_echo "$ld_shlibs_CXX" >&6; }
15300 test "$ld_shlibs_CXX" = no && can_build_shared=no
15301
15302 with_gnu_ld_CXX=$with_gnu_ld
15303
15304
15305
15306
15307
15308
15309 #
15310 # Do we need to explicitly link libc?
15311 #
15312 case "x$archive_cmds_need_lc_CXX" in
15313 x|xyes)
15314 # Assume -lc should be added
15315 archive_cmds_need_lc_CXX=yes
15316
15317 if test "$enable_shared" = yes && test "$GCC" = yes; then
15318 case $archive_cmds_CXX in
15319 *'~'*)
15320 # FIXME: we may have to deal with multi-command sequences.
15321 ;;
15322 '$CC '*)
15323 # Test whether the compiler implicitly links with -lc since on some
15324 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15325 # to ld, don't add -lc before -lgcc.
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15327 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15328 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15329 $as_echo_n "(cached) " >&6
15330 else
15331 $RM conftest*
15332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15333
15334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15335 (eval $ac_compile) 2>&5
15336 ac_status=$?
15337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15338 test $ac_status = 0; } 2>conftest.err; then
15339 soname=conftest
15340 lib=conftest
15341 libobjs=conftest.$ac_objext
15342 deplibs=
15343 wl=$lt_prog_compiler_wl_CXX
15344 pic_flag=$lt_prog_compiler_pic_CXX
15345 compiler_flags=-v
15346 linker_flags=-v
15347 verstring=
15348 output_objdir=.
15349 libname=conftest
15350 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15351 allow_undefined_flag_CXX=
15352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15353 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15354 ac_status=$?
15355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15356 test $ac_status = 0; }
15357 then
15358 lt_cv_archive_cmds_need_lc_CXX=no
15359 else
15360 lt_cv_archive_cmds_need_lc_CXX=yes
15361 fi
15362 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15363 else
15364 cat conftest.err 1>&5
15365 fi
15366 $RM conftest*
15367
15368 fi
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15370 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15371 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15372 ;;
15373 esac
15374 fi
15375 ;;
15376 esac
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15440 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15441
15442 library_names_spec=
15443 libname_spec='lib$name'
15444 soname_spec=
15445 shrext_cmds=".so"
15446 postinstall_cmds=
15447 postuninstall_cmds=
15448 finish_cmds=
15449 finish_eval=
15450 shlibpath_var=
15451 shlibpath_overrides_runpath=unknown
15452 version_type=none
15453 dynamic_linker="$host_os ld.so"
15454 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15455 need_lib_prefix=unknown
15456 hardcode_into_libs=no
15457
15458 # when you set need_version to no, make sure it does not cause -set_version
15459 # flags to be left without arguments
15460 need_version=unknown
15461
15462 case $host_os in
15463 aix3*)
15464 version_type=linux # correct to gnu/linux during the next big refactor
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15466 shlibpath_var=LIBPATH
15467
15468 # AIX 3 has no versioning support, so we append a major version to the name.
15469 soname_spec='${libname}${release}${shared_ext}$major'
15470 ;;
15471
15472 aix[4-9]*)
15473 version_type=linux # correct to gnu/linux during the next big refactor
15474 need_lib_prefix=no
15475 need_version=no
15476 hardcode_into_libs=yes
15477 if test "$host_cpu" = ia64; then
15478 # AIX 5 supports IA64
15479 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 else
15482 # With GCC up to 2.95.x, collect2 would create an import file
15483 # for dependence libraries. The import file would start with
15484 # the line `#! .'. This would cause the generated library to
15485 # depend on `.', always an invalid library. This was fixed in
15486 # development snapshots of GCC prior to 3.0.
15487 case $host_os in
15488 aix4 | aix4.[01] | aix4.[01].*)
15489 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15490 echo ' yes '
15491 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15492 :
15493 else
15494 can_build_shared=no
15495 fi
15496 ;;
15497 esac
15498 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15499 # soname into executable. Probably we can add versioning support to
15500 # collect2, so additional links can be useful in future.
15501 if test "$aix_use_runtimelinking" = yes; then
15502 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15503 # instead of lib<name>.a to let people know that these are not
15504 # typical AIX shared libraries.
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506 else
15507 # We preserve .a as extension for shared libraries through AIX4.2
15508 # and later when we are not doing run time linking.
15509 library_names_spec='${libname}${release}.a $libname.a'
15510 soname_spec='${libname}${release}${shared_ext}$major'
15511 fi
15512 shlibpath_var=LIBPATH
15513 fi
15514 ;;
15515
15516 amigaos*)
15517 case $host_cpu in
15518 powerpc)
15519 # Since July 2007 AmigaOS4 officially supports .so libraries.
15520 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522 ;;
15523 m68k)
15524 library_names_spec='$libname.ixlibrary $libname.a'
15525 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15526 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'
15527 ;;
15528 esac
15529 ;;
15530
15531 beos*)
15532 library_names_spec='${libname}${shared_ext}'
15533 dynamic_linker="$host_os ld.so"
15534 shlibpath_var=LIBRARY_PATH
15535 ;;
15536
15537 bsdi[45]*)
15538 version_type=linux # correct to gnu/linux during the next big refactor
15539 need_version=no
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541 soname_spec='${libname}${release}${shared_ext}$major'
15542 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15543 shlibpath_var=LD_LIBRARY_PATH
15544 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15545 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15546 # the default ld.so.conf also contains /usr/contrib/lib and
15547 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15548 # libtool to hard-code these into programs
15549 ;;
15550
15551 cygwin* | mingw* | pw32* | cegcc*)
15552 version_type=windows
15553 shrext_cmds=".dll"
15554 need_version=no
15555 need_lib_prefix=no
15556
15557 case $GCC,$cc_basename in
15558 yes,*)
15559 # gcc
15560 library_names_spec='$libname.dll.a'
15561 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15562 postinstall_cmds='base_file=`basename \${file}`~
15563 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15564 dldir=$destdir/`dirname \$dlpath`~
15565 test -d \$dldir || mkdir -p \$dldir~
15566 $install_prog $dir/$dlname \$dldir/$dlname~
15567 chmod a+x \$dldir/$dlname~
15568 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15569 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15570 fi'
15571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15572 dlpath=$dir/\$dldll~
15573 $RM \$dlpath'
15574 shlibpath_overrides_runpath=yes
15575
15576 case $host_os in
15577 cygwin*)
15578 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15579 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15580
15581 ;;
15582 mingw* | cegcc*)
15583 # MinGW DLLs use traditional 'lib' prefix
15584 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15585 ;;
15586 pw32*)
15587 # pw32 DLLs use 'pw' prefix rather than 'lib'
15588 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15589 ;;
15590 esac
15591 dynamic_linker='Win32 ld.exe'
15592 ;;
15593
15594 *,cl*)
15595 # Native MSVC
15596 libname_spec='$name'
15597 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15598 library_names_spec='${libname}.dll.lib'
15599
15600 case $build_os in
15601 mingw*)
15602 sys_lib_search_path_spec=
15603 lt_save_ifs=$IFS
15604 IFS=';'
15605 for lt_path in $LIB
15606 do
15607 IFS=$lt_save_ifs
15608 # Let DOS variable expansion print the short 8.3 style file name.
15609 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15610 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15611 done
15612 IFS=$lt_save_ifs
15613 # Convert to MSYS style.
15614 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15615 ;;
15616 cygwin*)
15617 # Convert to unix form, then to dos form, then back to unix form
15618 # but this time dos style (no spaces!) so that the unix form looks
15619 # like /cygdrive/c/PROGRA~1:/cygdr...
15620 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15621 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15622 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15623 ;;
15624 *)
15625 sys_lib_search_path_spec="$LIB"
15626 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15627 # It is most probably a Windows format PATH.
15628 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15629 else
15630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15631 fi
15632 # FIXME: find the short name or the path components, as spaces are
15633 # common. (e.g. "Program Files" -> "PROGRA~1")
15634 ;;
15635 esac
15636
15637 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15638 postinstall_cmds='base_file=`basename \${file}`~
15639 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15640 dldir=$destdir/`dirname \$dlpath`~
15641 test -d \$dldir || mkdir -p \$dldir~
15642 $install_prog $dir/$dlname \$dldir/$dlname'
15643 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15644 dlpath=$dir/\$dldll~
15645 $RM \$dlpath'
15646 shlibpath_overrides_runpath=yes
15647 dynamic_linker='Win32 link.exe'
15648 ;;
15649
15650 *)
15651 # Assume MSVC wrapper
15652 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15653 dynamic_linker='Win32 ld.exe'
15654 ;;
15655 esac
15656 # FIXME: first we should search . and the directory the executable is in
15657 shlibpath_var=PATH
15658 ;;
15659
15660 darwin* | rhapsody*)
15661 dynamic_linker="$host_os dyld"
15662 version_type=darwin
15663 need_lib_prefix=no
15664 need_version=no
15665 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15666 soname_spec='${libname}${release}${major}$shared_ext'
15667 shlibpath_overrides_runpath=yes
15668 shlibpath_var=DYLD_LIBRARY_PATH
15669 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15670
15671 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15672 ;;
15673
15674 dgux*)
15675 version_type=linux # correct to gnu/linux during the next big refactor
15676 need_lib_prefix=no
15677 need_version=no
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 ;;
15682
15683 freebsd* | dragonfly*)
15684 # DragonFly does not have aout. When/if they implement a new
15685 # versioning mechanism, adjust this.
15686 if test -x /usr/bin/objformat; then
15687 objformat=`/usr/bin/objformat`
15688 else
15689 case $host_os in
15690 freebsd[23].*) objformat=aout ;;
15691 *) objformat=elf ;;
15692 esac
15693 fi
15694 version_type=freebsd-$objformat
15695 case $version_type in
15696 freebsd-elf*)
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15698 need_version=no
15699 need_lib_prefix=no
15700 ;;
15701 freebsd-*)
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15703 need_version=yes
15704 ;;
15705 esac
15706 shlibpath_var=LD_LIBRARY_PATH
15707 case $host_os in
15708 freebsd2.*)
15709 shlibpath_overrides_runpath=yes
15710 ;;
15711 freebsd3.[01]* | freebsdelf3.[01]*)
15712 shlibpath_overrides_runpath=yes
15713 hardcode_into_libs=yes
15714 ;;
15715 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15716 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15717 shlibpath_overrides_runpath=no
15718 hardcode_into_libs=yes
15719 ;;
15720 *) # from 4.6 on, and DragonFly
15721 shlibpath_overrides_runpath=yes
15722 hardcode_into_libs=yes
15723 ;;
15724 esac
15725 ;;
15726
15727 gnu*)
15728 version_type=linux # correct to gnu/linux during the next big refactor
15729 need_lib_prefix=no
15730 need_version=no
15731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15732 soname_spec='${libname}${release}${shared_ext}$major'
15733 shlibpath_var=LD_LIBRARY_PATH
15734 shlibpath_overrides_runpath=no
15735 hardcode_into_libs=yes
15736 ;;
15737
15738 haiku*)
15739 version_type=linux # correct to gnu/linux during the next big refactor
15740 need_lib_prefix=no
15741 need_version=no
15742 dynamic_linker="$host_os runtime_loader"
15743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15744 soname_spec='${libname}${release}${shared_ext}$major'
15745 shlibpath_var=LIBRARY_PATH
15746 shlibpath_overrides_runpath=yes
15747 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15748 hardcode_into_libs=yes
15749 ;;
15750
15751 hpux9* | hpux10* | hpux11*)
15752 # Give a soname corresponding to the major version so that dld.sl refuses to
15753 # link against other versions.
15754 version_type=sunos
15755 need_lib_prefix=no
15756 need_version=no
15757 case $host_cpu in
15758 ia64*)
15759 shrext_cmds='.so'
15760 hardcode_into_libs=yes
15761 dynamic_linker="$host_os dld.so"
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765 soname_spec='${libname}${release}${shared_ext}$major'
15766 if test "X$HPUX_IA64_MODE" = X32; then
15767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15768 else
15769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15770 fi
15771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15772 ;;
15773 hppa*64*)
15774 shrext_cmds='.sl'
15775 hardcode_into_libs=yes
15776 dynamic_linker="$host_os dld.sl"
15777 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780 soname_spec='${libname}${release}${shared_ext}$major'
15781 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15783 ;;
15784 *)
15785 shrext_cmds='.sl'
15786 dynamic_linker="$host_os dld.sl"
15787 shlibpath_var=SHLIB_PATH
15788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790 soname_spec='${libname}${release}${shared_ext}$major'
15791 ;;
15792 esac
15793 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15794 postinstall_cmds='chmod 555 $lib'
15795 # or fails outright, so override atomically:
15796 install_override_mode=555
15797 ;;
15798
15799 interix[3-9]*)
15800 version_type=linux # correct to gnu/linux during the next big refactor
15801 need_lib_prefix=no
15802 need_version=no
15803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15804 soname_spec='${libname}${release}${shared_ext}$major'
15805 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15806 shlibpath_var=LD_LIBRARY_PATH
15807 shlibpath_overrides_runpath=no
15808 hardcode_into_libs=yes
15809 ;;
15810
15811 irix5* | irix6* | nonstopux*)
15812 case $host_os in
15813 nonstopux*) version_type=nonstopux ;;
15814 *)
15815 if test "$lt_cv_prog_gnu_ld" = yes; then
15816 version_type=linux # correct to gnu/linux during the next big refactor
15817 else
15818 version_type=irix
15819 fi ;;
15820 esac
15821 need_lib_prefix=no
15822 need_version=no
15823 soname_spec='${libname}${release}${shared_ext}$major'
15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15825 case $host_os in
15826 irix5* | nonstopux*)
15827 libsuff= shlibsuff=
15828 ;;
15829 *)
15830 case $LD in # libtool.m4 will add one of these switches to LD
15831 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15832 libsuff= shlibsuff= libmagic=32-bit;;
15833 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15834 libsuff=32 shlibsuff=N32 libmagic=N32;;
15835 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15836 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15837 *) libsuff= shlibsuff= libmagic=never-match;;
15838 esac
15839 ;;
15840 esac
15841 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15842 shlibpath_overrides_runpath=no
15843 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15844 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15845 hardcode_into_libs=yes
15846 ;;
15847
15848 # No shared lib support for Linux oldld, aout, or coff.
15849 linux*oldld* | linux*aout* | linux*coff*)
15850 dynamic_linker=no
15851 ;;
15852
15853 # This must be glibc/ELF.
15854 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15855 version_type=linux # correct to gnu/linux during the next big refactor
15856 need_lib_prefix=no
15857 need_version=no
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15859 soname_spec='${libname}${release}${shared_ext}$major'
15860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15861 shlibpath_var=LD_LIBRARY_PATH
15862 shlibpath_overrides_runpath=no
15863
15864 # Some binutils ld are patched to set DT_RUNPATH
15865 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 lt_cv_shlibpath_overrides_runpath=no
15869 save_LDFLAGS=$LDFLAGS
15870 save_libdir=$libdir
15871 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15872 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15874 /* end confdefs.h. */
15875
15876 int
15877 main ()
15878 {
15879
15880 ;
15881 return 0;
15882 }
15883 _ACEOF
15884 if ac_fn_cxx_try_link "$LINENO"; then :
15885 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15886 lt_cv_shlibpath_overrides_runpath=yes
15887 fi
15888 fi
15889 rm -f core conftest.err conftest.$ac_objext \
15890 conftest$ac_exeext conftest.$ac_ext
15891 LDFLAGS=$save_LDFLAGS
15892 libdir=$save_libdir
15893
15894 fi
15895
15896 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15897
15898 # This implies no fast_install, which is unacceptable.
15899 # Some rework will be needed to allow for fast_install
15900 # before this can be enabled.
15901 hardcode_into_libs=yes
15902
15903 # Add ABI-specific directories to the system library path.
15904 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15905
15906 # Append ld.so.conf contents to the search path
15907 if test -f /etc/ld.so.conf; then
15908 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' ' '`
15909 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15910
15911 fi
15912
15913 # We used to test for /lib/ld.so.1 and disable shared libraries on
15914 # powerpc, because MkLinux only supported shared libraries with the
15915 # GNU dynamic linker. Since this was broken with cross compilers,
15916 # most powerpc-linux boxes support dynamic linking these days and
15917 # people can always --disable-shared, the test was removed, and we
15918 # assume the GNU/Linux dynamic linker is in use.
15919 dynamic_linker='GNU/Linux ld.so'
15920 ;;
15921
15922 netbsd*)
15923 version_type=sunos
15924 need_lib_prefix=no
15925 need_version=no
15926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15929 dynamic_linker='NetBSD (a.out) ld.so'
15930 else
15931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15932 soname_spec='${libname}${release}${shared_ext}$major'
15933 dynamic_linker='NetBSD ld.elf_so'
15934 fi
15935 shlibpath_var=LD_LIBRARY_PATH
15936 shlibpath_overrides_runpath=yes
15937 hardcode_into_libs=yes
15938 ;;
15939
15940 newsos6)
15941 version_type=linux # correct to gnu/linux during the next big refactor
15942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15943 shlibpath_var=LD_LIBRARY_PATH
15944 shlibpath_overrides_runpath=yes
15945 ;;
15946
15947 *nto* | *qnx*)
15948 version_type=qnx
15949 need_lib_prefix=no
15950 need_version=no
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952 soname_spec='${libname}${release}${shared_ext}$major'
15953 shlibpath_var=LD_LIBRARY_PATH
15954 shlibpath_overrides_runpath=no
15955 hardcode_into_libs=yes
15956 dynamic_linker='ldqnx.so'
15957 ;;
15958
15959 openbsd*)
15960 version_type=sunos
15961 sys_lib_dlsearch_path_spec="/usr/lib"
15962 need_lib_prefix=no
15963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15964 case $host_os in
15965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15966 *) need_version=no ;;
15967 esac
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15970 shlibpath_var=LD_LIBRARY_PATH
15971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15972 case $host_os in
15973 openbsd2.[89] | openbsd2.[89].*)
15974 shlibpath_overrides_runpath=no
15975 ;;
15976 *)
15977 shlibpath_overrides_runpath=yes
15978 ;;
15979 esac
15980 else
15981 shlibpath_overrides_runpath=yes
15982 fi
15983 ;;
15984
15985 os2*)
15986 libname_spec='$name'
15987 shrext_cmds=".dll"
15988 need_lib_prefix=no
15989 library_names_spec='$libname${shared_ext} $libname.a'
15990 dynamic_linker='OS/2 ld.exe'
15991 shlibpath_var=LIBPATH
15992 ;;
15993
15994 osf3* | osf4* | osf5*)
15995 version_type=osf
15996 need_lib_prefix=no
15997 need_version=no
15998 soname_spec='${libname}${release}${shared_ext}$major'
15999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16000 shlibpath_var=LD_LIBRARY_PATH
16001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16003 ;;
16004
16005 rdos*)
16006 dynamic_linker=no
16007 ;;
16008
16009 solaris*)
16010 version_type=linux # correct to gnu/linux during the next big refactor
16011 need_lib_prefix=no
16012 need_version=no
16013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16014 soname_spec='${libname}${release}${shared_ext}$major'
16015 shlibpath_var=LD_LIBRARY_PATH
16016 shlibpath_overrides_runpath=yes
16017 hardcode_into_libs=yes
16018 # ldd complains unless libraries are executable
16019 postinstall_cmds='chmod +x $lib'
16020 ;;
16021
16022 sunos4*)
16023 version_type=sunos
16024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16026 shlibpath_var=LD_LIBRARY_PATH
16027 shlibpath_overrides_runpath=yes
16028 if test "$with_gnu_ld" = yes; then
16029 need_lib_prefix=no
16030 fi
16031 need_version=yes
16032 ;;
16033
16034 sysv4 | sysv4.3*)
16035 version_type=linux # correct to gnu/linux during the next big refactor
16036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037 soname_spec='${libname}${release}${shared_ext}$major'
16038 shlibpath_var=LD_LIBRARY_PATH
16039 case $host_vendor in
16040 sni)
16041 shlibpath_overrides_runpath=no
16042 need_lib_prefix=no
16043 runpath_var=LD_RUN_PATH
16044 ;;
16045 siemens)
16046 need_lib_prefix=no
16047 ;;
16048 motorola)
16049 need_lib_prefix=no
16050 need_version=no
16051 shlibpath_overrides_runpath=no
16052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16053 ;;
16054 esac
16055 ;;
16056
16057 sysv4*MP*)
16058 if test -d /usr/nec ;then
16059 version_type=linux # correct to gnu/linux during the next big refactor
16060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16061 soname_spec='$libname${shared_ext}.$major'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 fi
16064 ;;
16065
16066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16067 version_type=freebsd-elf
16068 need_lib_prefix=no
16069 need_version=no
16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16071 soname_spec='${libname}${release}${shared_ext}$major'
16072 shlibpath_var=LD_LIBRARY_PATH
16073 shlibpath_overrides_runpath=yes
16074 hardcode_into_libs=yes
16075 if test "$with_gnu_ld" = yes; then
16076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16077 else
16078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16079 case $host_os in
16080 sco3.2v5*)
16081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16082 ;;
16083 esac
16084 fi
16085 sys_lib_dlsearch_path_spec='/usr/lib'
16086 ;;
16087
16088 tpf*)
16089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16090 version_type=linux # correct to gnu/linux during the next big refactor
16091 need_lib_prefix=no
16092 need_version=no
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 shlibpath_overrides_runpath=no
16096 hardcode_into_libs=yes
16097 ;;
16098
16099 uts4*)
16100 version_type=linux # correct to gnu/linux during the next big refactor
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102 soname_spec='${libname}${release}${shared_ext}$major'
16103 shlibpath_var=LD_LIBRARY_PATH
16104 ;;
16105
16106 *)
16107 dynamic_linker=no
16108 ;;
16109 esac
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16111 $as_echo "$dynamic_linker" >&6; }
16112 test "$dynamic_linker" = no && can_build_shared=no
16113
16114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16115 if test "$GCC" = yes; then
16116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16117 fi
16118
16119 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16120 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16121 fi
16122 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16123 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16124 fi
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16164 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16165 hardcode_action_CXX=
16166 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16167 test -n "$runpath_var_CXX" ||
16168 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16169
16170 # We can hardcode non-existent directories.
16171 if test "$hardcode_direct_CXX" != no &&
16172 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16173 # have to relink, otherwise we might link with an installed library
16174 # when we should be linking with a yet-to-be-installed one
16175 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16176 test "$hardcode_minus_L_CXX" != no; then
16177 # Linking always hardcodes the temporary library directory.
16178 hardcode_action_CXX=relink
16179 else
16180 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16181 hardcode_action_CXX=immediate
16182 fi
16183 else
16184 # We cannot hardcode anything, or else we can only hardcode existing
16185 # directories.
16186 hardcode_action_CXX=unsupported
16187 fi
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16189 $as_echo "$hardcode_action_CXX" >&6; }
16190
16191 if test "$hardcode_action_CXX" = relink ||
16192 test "$inherit_rpath_CXX" = yes; then
16193 # Fast installation is not supported
16194 enable_fast_install=no
16195 elif test "$shlibpath_overrides_runpath" = yes ||
16196 test "$enable_shared" = no; then
16197 # Fast installation is not necessary
16198 enable_fast_install=needless
16199 fi
16200
16201
16202
16203
16204
16205
16206
16207 fi # test -n "$compiler"
16208
16209 CC=$lt_save_CC
16210 CFLAGS=$lt_save_CFLAGS
16211 LDCXX=$LD
16212 LD=$lt_save_LD
16213 GCC=$lt_save_GCC
16214 with_gnu_ld=$lt_save_with_gnu_ld
16215 lt_cv_path_LDCXX=$lt_cv_path_LD
16216 lt_cv_path_LD=$lt_save_path_LD
16217 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16218 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16219 fi # test "$_lt_caught_CXX_error" != yes
16220
16221 ac_ext=c
16222 ac_cpp='$CPP $CPPFLAGS'
16223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241 ac_config_commands="$ac_config_commands libtool"
16242
16243
16244
16245
16246 # Only expand once:
16247
16248
16249
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16251 $as_echo_n "checking whether NLS is requested... " >&6; }
16252 # Check whether --enable-nls was given.
16253 if test "${enable_nls+set}" = set; then :
16254 enableval=$enable_nls; USE_NLS=$enableval
16255 else
16256 USE_NLS=yes
16257 fi
16258
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16260 $as_echo "$USE_NLS" >&6; }
16261
16262
16263
16264
16265 case "$am__api_version" in
16266 1.01234)
16267 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
16268 ;;
16269 *)
16270 ;;
16271 esac
16272
16273 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
16274 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
16275 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
16276 if test -n "0.35.0"; then
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
16278 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
16280 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
16281 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
16282 as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
16283 fi
16284
16285 # Extract the first word of "intltool-update", so it can be a program name with args.
16286 set dummy intltool-update; ac_word=$2
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16288 $as_echo_n "checking for $ac_word... " >&6; }
16289 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
16290 $as_echo_n "(cached) " >&6
16291 else
16292 case $INTLTOOL_UPDATE in
16293 [\\/]* | ?:[\\/]*)
16294 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
16295 ;;
16296 *)
16297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16298 for as_dir in $PATH
16299 do
16300 IFS=$as_save_IFS
16301 test -z "$as_dir" && as_dir=.
16302 for ac_exec_ext in '' $ac_executable_extensions; do
16303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16304 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
16305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16306 break 2
16307 fi
16308 done
16309 done
16310 IFS=$as_save_IFS
16311
16312 ;;
16313 esac
16314 fi
16315 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
16316 if test -n "$INTLTOOL_UPDATE"; then
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
16318 $as_echo "$INTLTOOL_UPDATE" >&6; }
16319 else
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16321 $as_echo "no" >&6; }
16322 fi
16323
16324
16325 # Extract the first word of "intltool-merge", so it can be a program name with args.
16326 set dummy intltool-merge; ac_word=$2
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16328 $as_echo_n "checking for $ac_word... " >&6; }
16329 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
16330 $as_echo_n "(cached) " >&6
16331 else
16332 case $INTLTOOL_MERGE in
16333 [\\/]* | ?:[\\/]*)
16334 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
16335 ;;
16336 *)
16337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16338 for as_dir in $PATH
16339 do
16340 IFS=$as_save_IFS
16341 test -z "$as_dir" && as_dir=.
16342 for ac_exec_ext in '' $ac_executable_extensions; do
16343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16344 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
16345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16346 break 2
16347 fi
16348 done
16349 done
16350 IFS=$as_save_IFS
16351
16352 ;;
16353 esac
16354 fi
16355 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
16356 if test -n "$INTLTOOL_MERGE"; then
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
16358 $as_echo "$INTLTOOL_MERGE" >&6; }
16359 else
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16361 $as_echo "no" >&6; }
16362 fi
16363
16364
16365 # Extract the first word of "intltool-extract", so it can be a program name with args.
16366 set dummy intltool-extract; ac_word=$2
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16368 $as_echo_n "checking for $ac_word... " >&6; }
16369 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
16370 $as_echo_n "(cached) " >&6
16371 else
16372 case $INTLTOOL_EXTRACT in
16373 [\\/]* | ?:[\\/]*)
16374 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
16375 ;;
16376 *)
16377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16378 for as_dir in $PATH
16379 do
16380 IFS=$as_save_IFS
16381 test -z "$as_dir" && as_dir=.
16382 for ac_exec_ext in '' $ac_executable_extensions; do
16383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16384 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
16385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16386 break 2
16387 fi
16388 done
16389 done
16390 IFS=$as_save_IFS
16391
16392 ;;
16393 esac
16394 fi
16395 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
16396 if test -n "$INTLTOOL_EXTRACT"; then
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
16398 $as_echo "$INTLTOOL_EXTRACT" >&6; }
16399 else
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16401 $as_echo "no" >&6; }
16402 fi
16403
16404
16405 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
16406 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
16407 fi
16408
16409 if test -z "$AM_DEFAULT_VERBOSITY"; then
16410 AM_DEFAULT_VERBOSITY=1
16411 fi
16412
16413
16414 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
16415 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
16416 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
16417
16418
16419
16420
16421 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
16422 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
16423 intltool__v_merge_options_0='-q'
16424
16425
16426
16427
16428 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 $< $@'
16429 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 $< $@'
16430 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 $< $@'
16431 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 $< $@'
16432 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 $< $@'
16433 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 $< $@'
16434 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 $< $@'
16435 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 $< $@'
16436 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 $< $@'
16437 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 $< $@'
16438 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 $< $@'
16439 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
16440 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 $< $@'
16441 else
16442 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'
16443 fi
16444 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 $< $@'
16445 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 $< $@'
16446 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 $< $@'
16447 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 $< $@'
16448 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 $< $@'
16449 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 $< $@'
16450 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 $< $@'
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548 # Check the gettext tools to make sure they are GNU
16549 # Extract the first word of "xgettext", so it can be a program name with args.
16550 set dummy xgettext; ac_word=$2
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16552 $as_echo_n "checking for $ac_word... " >&6; }
16553 if ${ac_cv_path_XGETTEXT+:} false; then :
16554 $as_echo_n "(cached) " >&6
16555 else
16556 case $XGETTEXT in
16557 [\\/]* | ?:[\\/]*)
16558 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16559 ;;
16560 *)
16561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16562 for as_dir in $PATH
16563 do
16564 IFS=$as_save_IFS
16565 test -z "$as_dir" && as_dir=.
16566 for ac_exec_ext in '' $ac_executable_extensions; do
16567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16568 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
16569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16570 break 2
16571 fi
16572 done
16573 done
16574 IFS=$as_save_IFS
16575
16576 ;;
16577 esac
16578 fi
16579 XGETTEXT=$ac_cv_path_XGETTEXT
16580 if test -n "$XGETTEXT"; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16582 $as_echo "$XGETTEXT" >&6; }
16583 else
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16585 $as_echo "no" >&6; }
16586 fi
16587
16588
16589 # Extract the first word of "msgmerge", so it can be a program name with args.
16590 set dummy msgmerge; ac_word=$2
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16592 $as_echo_n "checking for $ac_word... " >&6; }
16593 if ${ac_cv_path_MSGMERGE+:} false; then :
16594 $as_echo_n "(cached) " >&6
16595 else
16596 case $MSGMERGE in
16597 [\\/]* | ?:[\\/]*)
16598 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16599 ;;
16600 *)
16601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16602 for as_dir in $PATH
16603 do
16604 IFS=$as_save_IFS
16605 test -z "$as_dir" && as_dir=.
16606 for ac_exec_ext in '' $ac_executable_extensions; do
16607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16608 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
16609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16610 break 2
16611 fi
16612 done
16613 done
16614 IFS=$as_save_IFS
16615
16616 ;;
16617 esac
16618 fi
16619 MSGMERGE=$ac_cv_path_MSGMERGE
16620 if test -n "$MSGMERGE"; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16622 $as_echo "$MSGMERGE" >&6; }
16623 else
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16625 $as_echo "no" >&6; }
16626 fi
16627
16628
16629 # Extract the first word of "msgfmt", so it can be a program name with args.
16630 set dummy msgfmt; ac_word=$2
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16632 $as_echo_n "checking for $ac_word... " >&6; }
16633 if ${ac_cv_path_MSGFMT+:} false; then :
16634 $as_echo_n "(cached) " >&6
16635 else
16636 case $MSGFMT in
16637 [\\/]* | ?:[\\/]*)
16638 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16639 ;;
16640 *)
16641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16642 for as_dir in $PATH
16643 do
16644 IFS=$as_save_IFS
16645 test -z "$as_dir" && as_dir=.
16646 for ac_exec_ext in '' $ac_executable_extensions; do
16647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16648 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
16649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16650 break 2
16651 fi
16652 done
16653 done
16654 IFS=$as_save_IFS
16655
16656 ;;
16657 esac
16658 fi
16659 MSGFMT=$ac_cv_path_MSGFMT
16660 if test -n "$MSGFMT"; then
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16662 $as_echo "$MSGFMT" >&6; }
16663 else
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16665 $as_echo "no" >&6; }
16666 fi
16667
16668
16669 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16670 set dummy gmsgfmt; ac_word=$2
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16672 $as_echo_n "checking for $ac_word... " >&6; }
16673 if ${ac_cv_path_GMSGFMT+:} false; then :
16674 $as_echo_n "(cached) " >&6
16675 else
16676 case $GMSGFMT in
16677 [\\/]* | ?:[\\/]*)
16678 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16679 ;;
16680 *)
16681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16682 for as_dir in $PATH
16683 do
16684 IFS=$as_save_IFS
16685 test -z "$as_dir" && as_dir=.
16686 for ac_exec_ext in '' $ac_executable_extensions; do
16687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16688 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16690 break 2
16691 fi
16692 done
16693 done
16694 IFS=$as_save_IFS
16695
16696 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16697 ;;
16698 esac
16699 fi
16700 GMSGFMT=$ac_cv_path_GMSGFMT
16701 if test -n "$GMSGFMT"; then
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16703 $as_echo "$GMSGFMT" >&6; }
16704 else
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16706 $as_echo "no" >&6; }
16707 fi
16708
16709
16710 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
16711 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
16712 fi
16713 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
16714 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
16715 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
16716 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
16717 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
16718 fi
16719
16720 # Extract the first word of "perl", so it can be a program name with args.
16721 set dummy perl; ac_word=$2
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16723 $as_echo_n "checking for $ac_word... " >&6; }
16724 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
16725 $as_echo_n "(cached) " >&6
16726 else
16727 case $INTLTOOL_PERL in
16728 [\\/]* | ?:[\\/]*)
16729 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
16730 ;;
16731 *)
16732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16733 for as_dir in $PATH
16734 do
16735 IFS=$as_save_IFS
16736 test -z "$as_dir" && as_dir=.
16737 for ac_exec_ext in '' $ac_executable_extensions; do
16738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16739 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
16740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16741 break 2
16742 fi
16743 done
16744 done
16745 IFS=$as_save_IFS
16746
16747 ;;
16748 esac
16749 fi
16750 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
16751 if test -n "$INTLTOOL_PERL"; then
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
16753 $as_echo "$INTLTOOL_PERL" >&6; }
16754 else
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16756 $as_echo "no" >&6; }
16757 fi
16758
16759
16760 if test -z "$INTLTOOL_PERL"; then
16761 as_fn_error $? "perl not found" "$LINENO" 5
16762 fi
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
16764 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
16765 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
16766 if test $? -ne 0; then
16767 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
16768 else
16769 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
16771 $as_echo "$IT_PERL_VERSION" >&6; }
16772 fi
16773 if test "x" != "xno-xml"; then
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
16775 $as_echo_n "checking for XML::Parser... " >&6; }
16776 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16778 $as_echo "ok" >&6; }
16779 else
16780 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
16781 fi
16782 fi
16783
16784 # Substitute ALL_LINGUAS so we can use it in po/Makefile
16785
16786
16787 # Set DATADIRNAME correctly if it is not set yet
16788 # (copied from glib-gettext.m4)
16789 if test -z "$DATADIRNAME"; then
16790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16791 /* end confdefs.h. */
16792
16793 int
16794 main ()
16795 {
16796 extern int _nl_msg_cat_cntr;
16797 return _nl_msg_cat_cntr
16798 ;
16799 return 0;
16800 }
16801 _ACEOF
16802 if ac_fn_c_try_link "$LINENO"; then :
16803 DATADIRNAME=share
16804 else
16805 case $host in
16806 *-*-solaris*)
16807 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16808 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
16809 DATADIRNAME=share
16810 else
16811 DATADIRNAME=lib
16812 fi
16813
16814 ;;
16815 *)
16816 DATADIRNAME=lib
16817 ;;
16818 esac
16819 fi
16820 rm -f core conftest.err conftest.$ac_objext \
16821 conftest$ac_exeext conftest.$ac_ext
16822 fi
16823
16824
16825
16826
16827
16828
16829
16830 DATE_DISPLAY="Fri Dec 27 2013"
16831
16832
16833 # Check whether --enable-glibtest was given.
16834 if test "${enable_glibtest+set}" = set; then :
16835 enableval=$enable_glibtest;
16836 else
16837 enable_glibtest=yes
16838 fi
16839
16840
16841 pkg_config_args=glib-2.0
16842 for module in .
16843 do
16844 case "$module" in
16845 gmodule)
16846 pkg_config_args="$pkg_config_args gmodule-2.0"
16847 ;;
16848 gmodule-no-export)
16849 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
16850 ;;
16851 gobject)
16852 pkg_config_args="$pkg_config_args gobject-2.0"
16853 ;;
16854 gthread)
16855 pkg_config_args="$pkg_config_args gthread-2.0"
16856 ;;
16857 gio*)
16858 pkg_config_args="$pkg_config_args $module-2.0"
16859 ;;
16860 esac
16861 done
16862
16863
16864
16865
16866
16867
16868
16869
16870 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16871 if test -n "$ac_tool_prefix"; then
16872 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16873 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16875 $as_echo_n "checking for $ac_word... " >&6; }
16876 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16877 $as_echo_n "(cached) " >&6
16878 else
16879 case $PKG_CONFIG in
16880 [\\/]* | ?:[\\/]*)
16881 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16882 ;;
16883 *)
16884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16885 for as_dir in $PATH
16886 do
16887 IFS=$as_save_IFS
16888 test -z "$as_dir" && as_dir=.
16889 for ac_exec_ext in '' $ac_executable_extensions; do
16890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16891 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16893 break 2
16894 fi
16895 done
16896 done
16897 IFS=$as_save_IFS
16898
16899 ;;
16900 esac
16901 fi
16902 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16903 if test -n "$PKG_CONFIG"; then
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16905 $as_echo "$PKG_CONFIG" >&6; }
16906 else
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16908 $as_echo "no" >&6; }
16909 fi
16910
16911
16912 fi
16913 if test -z "$ac_cv_path_PKG_CONFIG"; then
16914 ac_pt_PKG_CONFIG=$PKG_CONFIG
16915 # Extract the first word of "pkg-config", so it can be a program name with args.
16916 set dummy pkg-config; ac_word=$2
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16918 $as_echo_n "checking for $ac_word... " >&6; }
16919 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16920 $as_echo_n "(cached) " >&6
16921 else
16922 case $ac_pt_PKG_CONFIG in
16923 [\\/]* | ?:[\\/]*)
16924 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16925 ;;
16926 *)
16927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16928 for as_dir in $PATH
16929 do
16930 IFS=$as_save_IFS
16931 test -z "$as_dir" && as_dir=.
16932 for ac_exec_ext in '' $ac_executable_extensions; do
16933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16934 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16936 break 2
16937 fi
16938 done
16939 done
16940 IFS=$as_save_IFS
16941
16942 ;;
16943 esac
16944 fi
16945 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16946 if test -n "$ac_pt_PKG_CONFIG"; then
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16948 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16949 else
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16951 $as_echo "no" >&6; }
16952 fi
16953
16954 if test "x$ac_pt_PKG_CONFIG" = x; then
16955 PKG_CONFIG=""
16956 else
16957 case $cross_compiling:$ac_tool_warned in
16958 yes:)
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16961 ac_tool_warned=yes ;;
16962 esac
16963 PKG_CONFIG=$ac_pt_PKG_CONFIG
16964 fi
16965 else
16966 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16967 fi
16968
16969 fi
16970 if test -n "$PKG_CONFIG"; then
16971 _pkg_min_version=0.16
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16973 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16974 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16976 $as_echo "yes" >&6; }
16977 else
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16979 $as_echo "no" >&6; }
16980 PKG_CONFIG=""
16981 fi
16982 fi
16983
16984 no_glib=""
16985
16986 if test "x$PKG_CONFIG" = x ; then
16987 no_glib=yes
16988 PKG_CONFIG=no
16989 fi
16990
16991 min_glib_version=2.0.0
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
16993 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
16994
16995 if test x$PKG_CONFIG != xno ; then
16996 ## don't try to run the test against uninstalled libtool libs
16997 if $PKG_CONFIG --uninstalled $pkg_config_args; then
16998 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
16999 enable_glibtest=no
17000 fi
17001
17002 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17003 :
17004 else
17005 no_glib=yes
17006 fi
17007 fi
17008
17009 if test x"$no_glib" = x ; then
17010 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17011 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17012 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17013 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
17014
17015 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17016 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17017 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17018 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17019 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17020 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17021 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17022 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17023 if test "x$enable_glibtest" = "xyes" ; then
17024 ac_save_CFLAGS="$CFLAGS"
17025 ac_save_LIBS="$LIBS"
17026 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17027 LIBS="$GLIB_LIBS $LIBS"
17028 rm -f conf.glibtest
17029 if test "$cross_compiling" = yes; then :
17030 echo $ac_n "cross compiling; assumed OK... $ac_c"
17031 else
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034
17035 #include <glib.h>
17036 #include <stdio.h>
17037 #include <stdlib.h>
17038
17039 int
17040 main ()
17041 {
17042 unsigned int major, minor, micro;
17043 char *tmp_version;
17044
17045 fclose (fopen ("conf.glibtest", "w"));
17046
17047 /* HP/UX 9 (%@#!) writes to sscanf strings */
17048 tmp_version = g_strdup("$min_glib_version");
17049 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
17050 printf("%s, bad version string\n", "$min_glib_version");
17051 exit(1);
17052 }
17053
17054 if ((glib_major_version != $glib_config_major_version) ||
17055 (glib_minor_version != $glib_config_minor_version) ||
17056 (glib_micro_version != $glib_config_micro_version))
17057 {
17058 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17059 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17060 glib_major_version, glib_minor_version, glib_micro_version);
17061 printf ("*** was found! If pkg-config was correct, then it is best\n");
17062 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17063 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17064 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17065 printf("*** required on your system.\n");
17066 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17067 printf("*** to point to the correct configuration files\n");
17068 }
17069 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17070 (glib_minor_version != GLIB_MINOR_VERSION) ||
17071 (glib_micro_version != GLIB_MICRO_VERSION))
17072 {
17073 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17074 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17075 printf("*** library (version %d.%d.%d)\n",
17076 glib_major_version, glib_minor_version, glib_micro_version);
17077 }
17078 else
17079 {
17080 if ((glib_major_version > major) ||
17081 ((glib_major_version == major) && (glib_minor_version > minor)) ||
17082 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17083 {
17084 return 0;
17085 }
17086 else
17087 {
17088 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
17089 glib_major_version, glib_minor_version, glib_micro_version);
17090 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
17091 major, minor, micro);
17092 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17093 printf("***\n");
17094 printf("*** If you have already installed a sufficiently new version, this error\n");
17095 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17096 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17097 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17098 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17099 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17100 printf("*** so that the correct libraries are found at run-time))\n");
17101 }
17102 }
17103 return 1;
17104 }
17105
17106 _ACEOF
17107 if ac_fn_c_try_run "$LINENO"; then :
17108
17109 else
17110 no_glib=yes
17111 fi
17112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17113 conftest.$ac_objext conftest.beam conftest.$ac_ext
17114 fi
17115
17116 CFLAGS="$ac_save_CFLAGS"
17117 LIBS="$ac_save_LIBS"
17118 fi
17119 fi
17120 if test "x$no_glib" = x ; then
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17122 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17123 :
17124 else
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17127 if test "$PKG_CONFIG" = "no" ; then
17128 echo "*** A new enough version of pkg-config was not found."
17129 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
17130 else
17131 if test -f conf.glibtest ; then
17132 :
17133 else
17134 echo "*** Could not run GLIB test program, checking why..."
17135 ac_save_CFLAGS="$CFLAGS"
17136 ac_save_LIBS="$LIBS"
17137 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17138 LIBS="$LIBS $GLIB_LIBS"
17139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17140 /* end confdefs.h. */
17141
17142 #include <glib.h>
17143 #include <stdio.h>
17144
17145 int
17146 main ()
17147 {
17148 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17149 ;
17150 return 0;
17151 }
17152 _ACEOF
17153 if ac_fn_c_try_link "$LINENO"; then :
17154 echo "*** The test program compiled, but did not run. This usually means"
17155 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17156 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17157 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17158 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17159 echo "*** is required on your system"
17160 echo "***"
17161 echo "*** If you have an old version installed, it is best to remove it, although"
17162 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17163 else
17164 echo "*** The test program failed to compile or link. See the file config.log for the"
17165 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
17166 fi
17167 rm -f core conftest.err conftest.$ac_objext \
17168 conftest$ac_exeext conftest.$ac_ext
17169 CFLAGS="$ac_save_CFLAGS"
17170 LIBS="$ac_save_LIBS"
17171 fi
17172 fi
17173 GLIB_CFLAGS=""
17174 GLIB_LIBS=""
17175 GLIB_GENMARSHAL=""
17176 GOBJECT_QUERY=""
17177 GLIB_MKENUMS=""
17178 GLIB_COMPILE_RESOURCES=""
17179 :
17180 fi
17181
17182
17183
17184
17185
17186
17187 rm -f conf.glibtest
17188
17189
17190 pkg_failed=no
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5
17192 $as_echo_n "checking for GLIB2... " >&6; }
17193
17194 if test -n "$GLIB2_CFLAGS"; then
17195 pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
17196 elif test -n "$PKG_CONFIG"; then
17197 if test -n "$PKG_CONFIG" && \
17198 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17199 glib-2.0 >= 2.8
17200 \""; } >&5
17201 ($PKG_CONFIG --exists --print-errors "
17202 glib-2.0 >= 2.8
17203 ") 2>&5
17204 ac_status=$?
17205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17206 test $ac_status = 0; }; then
17207 pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "
17208 glib-2.0 >= 2.8
17209 " 2>/dev/null`
17210 test "x$?" != "x0" && pkg_failed=yes
17211 else
17212 pkg_failed=yes
17213 fi
17214 else
17215 pkg_failed=untried
17216 fi
17217 if test -n "$GLIB2_LIBS"; then
17218 pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
17219 elif test -n "$PKG_CONFIG"; then
17220 if test -n "$PKG_CONFIG" && \
17221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17222 glib-2.0 >= 2.8
17223 \""; } >&5
17224 ($PKG_CONFIG --exists --print-errors "
17225 glib-2.0 >= 2.8
17226 ") 2>&5
17227 ac_status=$?
17228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17229 test $ac_status = 0; }; then
17230 pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "
17231 glib-2.0 >= 2.8
17232 " 2>/dev/null`
17233 test "x$?" != "x0" && pkg_failed=yes
17234 else
17235 pkg_failed=yes
17236 fi
17237 else
17238 pkg_failed=untried
17239 fi
17240
17241
17242
17243 if test $pkg_failed = yes; then
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17245 $as_echo "no" >&6; }
17246
17247 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17248 _pkg_short_errors_supported=yes
17249 else
17250 _pkg_short_errors_supported=no
17251 fi
17252 if test $_pkg_short_errors_supported = yes; then
17253 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17254 glib-2.0 >= 2.8
17255 " 2>&1`
17256 else
17257 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17258 glib-2.0 >= 2.8
17259 " 2>&1`
17260 fi
17261 # Put the nasty error message in config.log where it belongs
17262 echo "$GLIB2_PKG_ERRORS" >&5
17263
17264 as_fn_error $? "Package requirements (
17265 glib-2.0 >= 2.8
17266 ) were not met:
17267
17268 $GLIB2_PKG_ERRORS
17269
17270 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17271 installed software in a non-standard prefix.
17272
17273 Alternatively, you may set the environment variables GLIB2_CFLAGS
17274 and GLIB2_LIBS to avoid the need to call pkg-config.
17275 See the pkg-config man page for more details." "$LINENO" 5
17276 elif test $pkg_failed = untried; then
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17278 $as_echo "no" >&6; }
17279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17281 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17282 is in your PATH or set the PKG_CONFIG environment variable to the full
17283 path to pkg-config.
17284
17285 Alternatively, you may set the environment variables GLIB2_CFLAGS
17286 and GLIB2_LIBS to avoid the need to call pkg-config.
17287 See the pkg-config man page for more details.
17288
17289 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17290 See \`config.log' for more details" "$LINENO" 5; }
17291 else
17292 GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
17293 GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17295 $as_echo "yes" >&6; }
17296
17297 fi
17298
17299
17300 # Check whether --with-gtk was given.
17301 if test "${with_gtk+set}" = set; then :
17302 withval=$with_gtk; case "$with_gtk" in
17303 2.0|3.0) ;;
17304 *) as_fn_error $? "invalid gtk version specified" "$LINENO" 5 ;;
17305 esac
17306 else
17307 with_gtk=3.0
17308
17309 fi
17310
17311
17312 case "$with_gtk" in
17313 2.0)
17314
17315 pkg_failed=no
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
17317 $as_echo_n "checking for GTK2... " >&6; }
17318
17319 if test -n "$GTK2_CFLAGS"; then
17320 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
17321 elif test -n "$PKG_CONFIG"; then
17322 if test -n "$PKG_CONFIG" && \
17323 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17324 gtk+-2.0
17325 \""; } >&5
17326 ($PKG_CONFIG --exists --print-errors "
17327 gtk+-2.0
17328 ") 2>&5
17329 ac_status=$?
17330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17331 test $ac_status = 0; }; then
17332 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "
17333 gtk+-2.0
17334 " 2>/dev/null`
17335 test "x$?" != "x0" && pkg_failed=yes
17336 else
17337 pkg_failed=yes
17338 fi
17339 else
17340 pkg_failed=untried
17341 fi
17342 if test -n "$GTK2_LIBS"; then
17343 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
17344 elif test -n "$PKG_CONFIG"; then
17345 if test -n "$PKG_CONFIG" && \
17346 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17347 gtk+-2.0
17348 \""; } >&5
17349 ($PKG_CONFIG --exists --print-errors "
17350 gtk+-2.0
17351 ") 2>&5
17352 ac_status=$?
17353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17354 test $ac_status = 0; }; then
17355 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "
17356 gtk+-2.0
17357 " 2>/dev/null`
17358 test "x$?" != "x0" && pkg_failed=yes
17359 else
17360 pkg_failed=yes
17361 fi
17362 else
17363 pkg_failed=untried
17364 fi
17365
17366
17367
17368 if test $pkg_failed = yes; then
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17370 $as_echo "no" >&6; }
17371
17372 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17373 _pkg_short_errors_supported=yes
17374 else
17375 _pkg_short_errors_supported=no
17376 fi
17377 if test $_pkg_short_errors_supported = yes; then
17378 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17379 gtk+-2.0
17380 " 2>&1`
17381 else
17382 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17383 gtk+-2.0
17384 " 2>&1`
17385 fi
17386 # Put the nasty error message in config.log where it belongs
17387 echo "$GTK2_PKG_ERRORS" >&5
17388
17389 as_fn_error $? "Package requirements (
17390 gtk+-2.0
17391 ) were not met:
17392
17393 $GTK2_PKG_ERRORS
17394
17395 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17396 installed software in a non-standard prefix.
17397
17398 Alternatively, you may set the environment variables GTK2_CFLAGS
17399 and GTK2_LIBS to avoid the need to call pkg-config.
17400 See the pkg-config man page for more details." "$LINENO" 5
17401 elif test $pkg_failed = untried; then
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17403 $as_echo "no" >&6; }
17404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17406 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17407 is in your PATH or set the PKG_CONFIG environment variable to the full
17408 path to pkg-config.
17409
17410 Alternatively, you may set the environment variables GTK2_CFLAGS
17411 and GTK2_LIBS to avoid the need to call pkg-config.
17412 See the pkg-config man page for more details.
17413
17414 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17415 See \`config.log' for more details" "$LINENO" 5; }
17416 else
17417 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
17418 GTK2_LIBS=$pkg_cv_GTK2_LIBS
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17420 $as_echo "yes" >&6; }
17421
17422 fi
17423 if false; then
17424 HAVE_GTK3_TRUE=
17425 HAVE_GTK3_FALSE='#'
17426 else
17427 HAVE_GTK3_TRUE='#'
17428 HAVE_GTK3_FALSE=
17429 fi
17430
17431 if true; then
17432 HAVE_GTK2_TRUE=
17433 HAVE_GTK2_FALSE='#'
17434 else
17435 HAVE_GTK2_TRUE='#'
17436 HAVE_GTK2_FALSE=
17437 fi
17438
17439 ;;
17440 3.0)
17441
17442 pkg_failed=no
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5
17444 $as_echo_n "checking for GTK3... " >&6; }
17445
17446 if test -n "$GTK3_CFLAGS"; then
17447 pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS"
17448 elif test -n "$PKG_CONFIG"; then
17449 if test -n "$PKG_CONFIG" && \
17450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17451 gtk+-3.0
17452 \""; } >&5
17453 ($PKG_CONFIG --exists --print-errors "
17454 gtk+-3.0
17455 ") 2>&5
17456 ac_status=$?
17457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17458 test $ac_status = 0; }; then
17459 pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "
17460 gtk+-3.0
17461 " 2>/dev/null`
17462 test "x$?" != "x0" && pkg_failed=yes
17463 else
17464 pkg_failed=yes
17465 fi
17466 else
17467 pkg_failed=untried
17468 fi
17469 if test -n "$GTK3_LIBS"; then
17470 pkg_cv_GTK3_LIBS="$GTK3_LIBS"
17471 elif test -n "$PKG_CONFIG"; then
17472 if test -n "$PKG_CONFIG" && \
17473 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17474 gtk+-3.0
17475 \""; } >&5
17476 ($PKG_CONFIG --exists --print-errors "
17477 gtk+-3.0
17478 ") 2>&5
17479 ac_status=$?
17480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17481 test $ac_status = 0; }; then
17482 pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "
17483 gtk+-3.0
17484 " 2>/dev/null`
17485 test "x$?" != "x0" && pkg_failed=yes
17486 else
17487 pkg_failed=yes
17488 fi
17489 else
17490 pkg_failed=untried
17491 fi
17492
17493
17494
17495 if test $pkg_failed = yes; then
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17497 $as_echo "no" >&6; }
17498
17499 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17500 _pkg_short_errors_supported=yes
17501 else
17502 _pkg_short_errors_supported=no
17503 fi
17504 if test $_pkg_short_errors_supported = yes; then
17505 GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17506 gtk+-3.0
17507 " 2>&1`
17508 else
17509 GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17510 gtk+-3.0
17511 " 2>&1`
17512 fi
17513 # Put the nasty error message in config.log where it belongs
17514 echo "$GTK3_PKG_ERRORS" >&5
17515
17516 as_fn_error $? "Package requirements (
17517 gtk+-3.0
17518 ) were not met:
17519
17520 $GTK3_PKG_ERRORS
17521
17522 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17523 installed software in a non-standard prefix.
17524
17525 Alternatively, you may set the environment variables GTK3_CFLAGS
17526 and GTK3_LIBS to avoid the need to call pkg-config.
17527 See the pkg-config man page for more details." "$LINENO" 5
17528 elif test $pkg_failed = untried; then
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17530 $as_echo "no" >&6; }
17531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17533 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17534 is in your PATH or set the PKG_CONFIG environment variable to the full
17535 path to pkg-config.
17536
17537 Alternatively, you may set the environment variables GTK3_CFLAGS
17538 and GTK3_LIBS to avoid the need to call pkg-config.
17539 See the pkg-config man page for more details.
17540
17541 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17542 See \`config.log' for more details" "$LINENO" 5; }
17543 else
17544 GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS
17545 GTK3_LIBS=$pkg_cv_GTK3_LIBS
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17547 $as_echo "yes" >&6; }
17548
17549 fi
17550 if true; then
17551 HAVE_GTK3_TRUE=
17552 HAVE_GTK3_FALSE='#'
17553 else
17554 HAVE_GTK3_TRUE='#'
17555 HAVE_GTK3_FALSE=
17556 fi
17557
17558 if false; then
17559 HAVE_GTK2_TRUE=
17560 HAVE_GTK2_FALSE='#'
17561 else
17562 HAVE_GTK2_TRUE='#'
17563 HAVE_GTK2_FALSE=
17564 fi
17565
17566 ;;
17567 esac
17568
17569
17570
17571 pkg_failed=no
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
17573 $as_echo_n "checking for IBUS... " >&6; }
17574
17575 if test -n "$IBUS_CFLAGS"; then
17576 pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
17577 elif test -n "$PKG_CONFIG"; then
17578 if test -n "$PKG_CONFIG" && \
17579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0 >= 1.2.0.20100111\""; } >&5
17580 ($PKG_CONFIG --exists --print-errors "ibus-1.0 >= 1.2.0.20100111") 2>&5
17581 ac_status=$?
17582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17583 test $ac_status = 0; }; then
17584 pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0 >= 1.2.0.20100111" 2>/dev/null`
17585 test "x$?" != "x0" && pkg_failed=yes
17586 else
17587 pkg_failed=yes
17588 fi
17589 else
17590 pkg_failed=untried
17591 fi
17592 if test -n "$IBUS_LIBS"; then
17593 pkg_cv_IBUS_LIBS="$IBUS_LIBS"
17594 elif test -n "$PKG_CONFIG"; then
17595 if test -n "$PKG_CONFIG" && \
17596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0 >= 1.2.0.20100111\""; } >&5
17597 ($PKG_CONFIG --exists --print-errors "ibus-1.0 >= 1.2.0.20100111") 2>&5
17598 ac_status=$?
17599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17600 test $ac_status = 0; }; then
17601 pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0 >= 1.2.0.20100111" 2>/dev/null`
17602 test "x$?" != "x0" && pkg_failed=yes
17603 else
17604 pkg_failed=yes
17605 fi
17606 else
17607 pkg_failed=untried
17608 fi
17609
17610
17611
17612 if test $pkg_failed = yes; then
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17614 $as_echo "no" >&6; }
17615
17616 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17617 _pkg_short_errors_supported=yes
17618 else
17619 _pkg_short_errors_supported=no
17620 fi
17621 if test $_pkg_short_errors_supported = yes; then
17622 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0 >= 1.2.0.20100111" 2>&1`
17623 else
17624 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0 >= 1.2.0.20100111" 2>&1`
17625 fi
17626 # Put the nasty error message in config.log where it belongs
17627 echo "$IBUS_PKG_ERRORS" >&5
17628
17629
17630 pkg_failed=no
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
17632 $as_echo_n "checking for IBUS... " >&6; }
17633
17634 if test -n "$IBUS_CFLAGS"; then
17635 pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
17636 elif test -n "$PKG_CONFIG"; then
17637 if test -n "$PKG_CONFIG" && \
17638 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
17639 ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
17640 ac_status=$?
17641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17642 test $ac_status = 0; }; then
17643 pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
17644 test "x$?" != "x0" && pkg_failed=yes
17645 else
17646 pkg_failed=yes
17647 fi
17648 else
17649 pkg_failed=untried
17650 fi
17651 if test -n "$IBUS_LIBS"; then
17652 pkg_cv_IBUS_LIBS="$IBUS_LIBS"
17653 elif test -n "$PKG_CONFIG"; then
17654 if test -n "$PKG_CONFIG" && \
17655 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
17656 ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
17657 ac_status=$?
17658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17659 test $ac_status = 0; }; then
17660 pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
17661 test "x$?" != "x0" && pkg_failed=yes
17662 else
17663 pkg_failed=yes
17664 fi
17665 else
17666 pkg_failed=untried
17667 fi
17668
17669
17670
17671 if test $pkg_failed = yes; then
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17673 $as_echo "no" >&6; }
17674
17675 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17676 _pkg_short_errors_supported=yes
17677 else
17678 _pkg_short_errors_supported=no
17679 fi
17680 if test $_pkg_short_errors_supported = yes; then
17681 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
17682 else
17683 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
17684 fi
17685 # Put the nasty error message in config.log where it belongs
17686 echo "$IBUS_PKG_ERRORS" >&5
17687
17688 as_fn_error $? "Package requirements (ibus-1.0) were not met:
17689
17690 $IBUS_PKG_ERRORS
17691
17692 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17693 installed software in a non-standard prefix.
17694
17695 Alternatively, you may set the environment variables IBUS_CFLAGS
17696 and IBUS_LIBS to avoid the need to call pkg-config.
17697 See the pkg-config man page for more details." "$LINENO" 5
17698 elif test $pkg_failed = untried; then
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17700 $as_echo "no" >&6; }
17701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17703 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17704 is in your PATH or set the PKG_CONFIG environment variable to the full
17705 path to pkg-config.
17706
17707 Alternatively, you may set the environment variables IBUS_CFLAGS
17708 and IBUS_LIBS to avoid the need to call pkg-config.
17709 See the pkg-config man page for more details.
17710
17711 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17712 See \`config.log' for more details" "$LINENO" 5; }
17713 else
17714 IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
17715 IBUS_LIBS=$pkg_cv_IBUS_LIBS
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17717 $as_echo "yes" >&6; }
17718
17719 fi
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: IBUS version is old" >&5
17721 $as_echo "$as_me: IBUS version is old" >&6;}
17722
17723 $as_echo "#define IBUS_DEPRECATED_LANGUAGE_MENU_ITEM 1" >>confdefs.h
17724
17725
17726 elif test $pkg_failed = untried; then
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17728 $as_echo "no" >&6; }
17729
17730 pkg_failed=no
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
17732 $as_echo_n "checking for IBUS... " >&6; }
17733
17734 if test -n "$IBUS_CFLAGS"; then
17735 pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
17736 elif test -n "$PKG_CONFIG"; then
17737 if test -n "$PKG_CONFIG" && \
17738 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
17739 ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
17740 ac_status=$?
17741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17742 test $ac_status = 0; }; then
17743 pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
17744 test "x$?" != "x0" && pkg_failed=yes
17745 else
17746 pkg_failed=yes
17747 fi
17748 else
17749 pkg_failed=untried
17750 fi
17751 if test -n "$IBUS_LIBS"; then
17752 pkg_cv_IBUS_LIBS="$IBUS_LIBS"
17753 elif test -n "$PKG_CONFIG"; then
17754 if test -n "$PKG_CONFIG" && \
17755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
17756 ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
17757 ac_status=$?
17758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17759 test $ac_status = 0; }; then
17760 pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
17761 test "x$?" != "x0" && pkg_failed=yes
17762 else
17763 pkg_failed=yes
17764 fi
17765 else
17766 pkg_failed=untried
17767 fi
17768
17769
17770
17771 if test $pkg_failed = yes; then
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17773 $as_echo "no" >&6; }
17774
17775 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17776 _pkg_short_errors_supported=yes
17777 else
17778 _pkg_short_errors_supported=no
17779 fi
17780 if test $_pkg_short_errors_supported = yes; then
17781 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
17782 else
17783 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
17784 fi
17785 # Put the nasty error message in config.log where it belongs
17786 echo "$IBUS_PKG_ERRORS" >&5
17787
17788 as_fn_error $? "Package requirements (ibus-1.0) were not met:
17789
17790 $IBUS_PKG_ERRORS
17791
17792 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17793 installed software in a non-standard prefix.
17794
17795 Alternatively, you may set the environment variables IBUS_CFLAGS
17796 and IBUS_LIBS to avoid the need to call pkg-config.
17797 See the pkg-config man page for more details." "$LINENO" 5
17798 elif test $pkg_failed = untried; then
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17800 $as_echo "no" >&6; }
17801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17803 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17804 is in your PATH or set the PKG_CONFIG environment variable to the full
17805 path to pkg-config.
17806
17807 Alternatively, you may set the environment variables IBUS_CFLAGS
17808 and IBUS_LIBS to avoid the need to call pkg-config.
17809 See the pkg-config man page for more details.
17810
17811 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17812 See \`config.log' for more details" "$LINENO" 5; }
17813 else
17814 IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
17815 IBUS_LIBS=$pkg_cv_IBUS_LIBS
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17817 $as_echo "yes" >&6; }
17818
17819 fi
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: IBUS version is old" >&5
17821 $as_echo "$as_me: IBUS version is old" >&6;}
17822
17823 $as_echo "#define IBUS_DEPRECATED_LANGUAGE_MENU_ITEM 1" >>confdefs.h
17824
17825
17826 else
17827 IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
17828 IBUS_LIBS=$pkg_cv_IBUS_LIBS
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17830 $as_echo "yes" >&6; }
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: IBUS version is ok" >&5
17832 $as_echo "$as_me: IBUS version is ok" >&6;}
17833 fi
17834
17835
17836 pkg_failed=no
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INPUT_PAD" >&5
17838 $as_echo_n "checking for INPUT_PAD... " >&6; }
17839
17840 if test -n "$INPUT_PAD_CFLAGS"; then
17841 pkg_cv_INPUT_PAD_CFLAGS="$INPUT_PAD_CFLAGS"
17842 elif test -n "$PKG_CONFIG"; then
17843 if test -n "$PKG_CONFIG" && \
17844 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17845 input-pad
17846 \""; } >&5
17847 ($PKG_CONFIG --exists --print-errors "
17848 input-pad
17849 ") 2>&5
17850 ac_status=$?
17851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17852 test $ac_status = 0; }; then
17853 pkg_cv_INPUT_PAD_CFLAGS=`$PKG_CONFIG --cflags "
17854 input-pad
17855 " 2>/dev/null`
17856 test "x$?" != "x0" && pkg_failed=yes
17857 else
17858 pkg_failed=yes
17859 fi
17860 else
17861 pkg_failed=untried
17862 fi
17863 if test -n "$INPUT_PAD_LIBS"; then
17864 pkg_cv_INPUT_PAD_LIBS="$INPUT_PAD_LIBS"
17865 elif test -n "$PKG_CONFIG"; then
17866 if test -n "$PKG_CONFIG" && \
17867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17868 input-pad
17869 \""; } >&5
17870 ($PKG_CONFIG --exists --print-errors "
17871 input-pad
17872 ") 2>&5
17873 ac_status=$?
17874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17875 test $ac_status = 0; }; then
17876 pkg_cv_INPUT_PAD_LIBS=`$PKG_CONFIG --libs "
17877 input-pad
17878 " 2>/dev/null`
17879 test "x$?" != "x0" && pkg_failed=yes
17880 else
17881 pkg_failed=yes
17882 fi
17883 else
17884 pkg_failed=untried
17885 fi
17886
17887
17888
17889 if test $pkg_failed = yes; then
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891 $as_echo "no" >&6; }
17892
17893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17894 _pkg_short_errors_supported=yes
17895 else
17896 _pkg_short_errors_supported=no
17897 fi
17898 if test $_pkg_short_errors_supported = yes; then
17899 INPUT_PAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17900 input-pad
17901 " 2>&1`
17902 else
17903 INPUT_PAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17904 input-pad
17905 " 2>&1`
17906 fi
17907 # Put the nasty error message in config.log where it belongs
17908 echo "$INPUT_PAD_PKG_ERRORS" >&5
17909
17910 as_fn_error $? "Package requirements (
17911 input-pad
17912 ) were not met:
17913
17914 $INPUT_PAD_PKG_ERRORS
17915
17916 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17917 installed software in a non-standard prefix.
17918
17919 Alternatively, you may set the environment variables INPUT_PAD_CFLAGS
17920 and INPUT_PAD_LIBS to avoid the need to call pkg-config.
17921 See the pkg-config man page for more details." "$LINENO" 5
17922 elif test $pkg_failed = untried; then
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17924 $as_echo "no" >&6; }
17925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17927 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17928 is in your PATH or set the PKG_CONFIG environment variable to the full
17929 path to pkg-config.
17930
17931 Alternatively, you may set the environment variables INPUT_PAD_CFLAGS
17932 and INPUT_PAD_LIBS to avoid the need to call pkg-config.
17933 See the pkg-config man page for more details.
17934
17935 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17936 See \`config.log' for more details" "$LINENO" 5; }
17937 else
17938 INPUT_PAD_CFLAGS=$pkg_cv_INPUT_PAD_CFLAGS
17939 INPUT_PAD_LIBS=$pkg_cv_INPUT_PAD_LIBS
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17941 $as_echo "yes" >&6; }
17942
17943 fi
17944
17945 GETTEXT_PACKAGE=ibus-input-pad
17946
17947
17948 cat >>confdefs.h <<_ACEOF
17949 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
17950 _ACEOF
17951
17952
17953
17954 for ac_header in locale.h
17955 do :
17956 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
17957 if test "x$ac_cv_header_locale_h" = xyes; then :
17958 cat >>confdefs.h <<_ACEOF
17959 #define HAVE_LOCALE_H 1
17960 _ACEOF
17961
17962 fi
17963
17964 done
17965
17966 if test $ac_cv_header_locale_h = yes; then
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
17968 $as_echo_n "checking for LC_MESSAGES... " >&6; }
17969 if ${am_cv_val_LC_MESSAGES+:} false; then :
17970 $as_echo_n "(cached) " >&6
17971 else
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17974 #include <locale.h>
17975 int
17976 main ()
17977 {
17978 return LC_MESSAGES
17979 ;
17980 return 0;
17981 }
17982 _ACEOF
17983 if ac_fn_c_try_link "$LINENO"; then :
17984 am_cv_val_LC_MESSAGES=yes
17985 else
17986 am_cv_val_LC_MESSAGES=no
17987 fi
17988 rm -f core conftest.err conftest.$ac_objext \
17989 conftest$ac_exeext conftest.$ac_ext
17990 fi
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
17992 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
17993 if test $am_cv_val_LC_MESSAGES = yes; then
17994
17995 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
17996
17997 fi
17998 fi
17999 USE_NLS=yes
18000
18001
18002 gt_cv_have_gettext=no
18003
18004 CATOBJEXT=NONE
18005 XGETTEXT=:
18006 INTLLIBS=
18007
18008 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18009 if test "x$ac_cv_header_libintl_h" = xyes; then :
18010 gt_cv_func_dgettext_libintl="no"
18011 libintl_extra_libs=""
18012
18013 #
18014 # First check in libc
18015 #
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
18017 $as_echo_n "checking for ngettext in libc... " >&6; }
18018 if ${gt_cv_func_ngettext_libc+:} false; then :
18019 $as_echo_n "(cached) " >&6
18020 else
18021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18022 /* end confdefs.h. */
18023
18024 #include <libintl.h>
18025
18026 int
18027 main ()
18028 {
18029 return !ngettext ("","", 1)
18030 ;
18031 return 0;
18032 }
18033 _ACEOF
18034 if ac_fn_c_try_link "$LINENO"; then :
18035 gt_cv_func_ngettext_libc=yes
18036 else
18037 gt_cv_func_ngettext_libc=no
18038 fi
18039 rm -f core conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18041
18042 fi
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
18044 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
18045
18046 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
18048 $as_echo_n "checking for dgettext in libc... " >&6; }
18049 if ${gt_cv_func_dgettext_libc+:} false; then :
18050 $as_echo_n "(cached) " >&6
18051 else
18052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h. */
18054
18055 #include <libintl.h>
18056
18057 int
18058 main ()
18059 {
18060 return !dgettext ("","")
18061 ;
18062 return 0;
18063 }
18064 _ACEOF
18065 if ac_fn_c_try_link "$LINENO"; then :
18066 gt_cv_func_dgettext_libc=yes
18067 else
18068 gt_cv_func_dgettext_libc=no
18069 fi
18070 rm -f core conftest.err conftest.$ac_objext \
18071 conftest$ac_exeext conftest.$ac_ext
18072
18073 fi
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
18075 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
18076 fi
18077
18078 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
18079 for ac_func in bind_textdomain_codeset
18080 do :
18081 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18082 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
18083 cat >>confdefs.h <<_ACEOF
18084 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
18085 _ACEOF
18086
18087 fi
18088 done
18089
18090 fi
18091
18092 #
18093 # If we don't have everything we want, check in libintl
18094 #
18095 if test "$gt_cv_func_dgettext_libc" != "yes" \
18096 || test "$gt_cv_func_ngettext_libc" != "yes" \
18097 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
18098
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
18100 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
18101 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
18102 $as_echo_n "(cached) " >&6
18103 else
18104 ac_check_lib_save_LIBS=$LIBS
18105 LIBS="-lintl $LIBS"
18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107 /* end confdefs.h. */
18108
18109 /* Override any GCC internal prototype to avoid an error.
18110 Use char because int might match the return type of a GCC
18111 builtin and then its argument prototype would still apply. */
18112 #ifdef __cplusplus
18113 extern "C"
18114 #endif
18115 char bindtextdomain ();
18116 int
18117 main ()
18118 {
18119 return bindtextdomain ();
18120 ;
18121 return 0;
18122 }
18123 _ACEOF
18124 if ac_fn_c_try_link "$LINENO"; then :
18125 ac_cv_lib_intl_bindtextdomain=yes
18126 else
18127 ac_cv_lib_intl_bindtextdomain=no
18128 fi
18129 rm -f core conftest.err conftest.$ac_objext \
18130 conftest$ac_exeext conftest.$ac_ext
18131 LIBS=$ac_check_lib_save_LIBS
18132 fi
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
18134 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
18135 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
18137 $as_echo_n "checking for ngettext in -lintl... " >&6; }
18138 if ${ac_cv_lib_intl_ngettext+:} false; then :
18139 $as_echo_n "(cached) " >&6
18140 else
18141 ac_check_lib_save_LIBS=$LIBS
18142 LIBS="-lintl $LIBS"
18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h. */
18145
18146 /* Override any GCC internal prototype to avoid an error.
18147 Use char because int might match the return type of a GCC
18148 builtin and then its argument prototype would still apply. */
18149 #ifdef __cplusplus
18150 extern "C"
18151 #endif
18152 char ngettext ();
18153 int
18154 main ()
18155 {
18156 return ngettext ();
18157 ;
18158 return 0;
18159 }
18160 _ACEOF
18161 if ac_fn_c_try_link "$LINENO"; then :
18162 ac_cv_lib_intl_ngettext=yes
18163 else
18164 ac_cv_lib_intl_ngettext=no
18165 fi
18166 rm -f core conftest.err conftest.$ac_objext \
18167 conftest$ac_exeext conftest.$ac_ext
18168 LIBS=$ac_check_lib_save_LIBS
18169 fi
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
18171 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
18172 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18174 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18175 if ${ac_cv_lib_intl_dgettext+:} false; then :
18176 $as_echo_n "(cached) " >&6
18177 else
18178 ac_check_lib_save_LIBS=$LIBS
18179 LIBS="-lintl $LIBS"
18180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18182
18183 /* Override any GCC internal prototype to avoid an error.
18184 Use char because int might match the return type of a GCC
18185 builtin and then its argument prototype would still apply. */
18186 #ifdef __cplusplus
18187 extern "C"
18188 #endif
18189 char dgettext ();
18190 int
18191 main ()
18192 {
18193 return dgettext ();
18194 ;
18195 return 0;
18196 }
18197 _ACEOF
18198 if ac_fn_c_try_link "$LINENO"; then :
18199 ac_cv_lib_intl_dgettext=yes
18200 else
18201 ac_cv_lib_intl_dgettext=no
18202 fi
18203 rm -f core conftest.err conftest.$ac_objext \
18204 conftest$ac_exeext conftest.$ac_ext
18205 LIBS=$ac_check_lib_save_LIBS
18206 fi
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18208 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
18209 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
18210 gt_cv_func_dgettext_libintl=yes
18211 fi
18212
18213 fi
18214
18215 fi
18216
18217
18218 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
18220 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18222 $as_echo "" >&6; }
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
18224 $as_echo_n "checking for ngettext in -lintl... " >&6; }
18225 if ${ac_cv_lib_intl_ngettext+:} false; then :
18226 $as_echo_n "(cached) " >&6
18227 else
18228 ac_check_lib_save_LIBS=$LIBS
18229 LIBS="-lintl -liconv $LIBS"
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18232
18233 /* Override any GCC internal prototype to avoid an error.
18234 Use char because int might match the return type of a GCC
18235 builtin and then its argument prototype would still apply. */
18236 #ifdef __cplusplus
18237 extern "C"
18238 #endif
18239 char ngettext ();
18240 int
18241 main ()
18242 {
18243 return ngettext ();
18244 ;
18245 return 0;
18246 }
18247 _ACEOF
18248 if ac_fn_c_try_link "$LINENO"; then :
18249 ac_cv_lib_intl_ngettext=yes
18250 else
18251 ac_cv_lib_intl_ngettext=no
18252 fi
18253 rm -f core conftest.err conftest.$ac_objext \
18254 conftest$ac_exeext conftest.$ac_ext
18255 LIBS=$ac_check_lib_save_LIBS
18256 fi
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
18258 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
18259 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
18261 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
18262 if ${ac_cv_lib_intl_dcgettext+:} false; then :
18263 $as_echo_n "(cached) " >&6
18264 else
18265 ac_check_lib_save_LIBS=$LIBS
18266 LIBS="-lintl -liconv $LIBS"
18267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268 /* end confdefs.h. */
18269
18270 /* Override any GCC internal prototype to avoid an error.
18271 Use char because int might match the return type of a GCC
18272 builtin and then its argument prototype would still apply. */
18273 #ifdef __cplusplus
18274 extern "C"
18275 #endif
18276 char dcgettext ();
18277 int
18278 main ()
18279 {
18280 return dcgettext ();
18281 ;
18282 return 0;
18283 }
18284 _ACEOF
18285 if ac_fn_c_try_link "$LINENO"; then :
18286 ac_cv_lib_intl_dcgettext=yes
18287 else
18288 ac_cv_lib_intl_dcgettext=no
18289 fi
18290 rm -f core conftest.err conftest.$ac_objext \
18291 conftest$ac_exeext conftest.$ac_ext
18292 LIBS=$ac_check_lib_save_LIBS
18293 fi
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
18295 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
18296 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
18297 gt_cv_func_dgettext_libintl=yes
18298 libintl_extra_libs=-liconv
18299 else
18300 :
18301 fi
18302
18303 else
18304 :
18305 fi
18306
18307 fi
18308
18309 #
18310 # If we found libintl, then check in it for bind_textdomain_codeset();
18311 # we'll prefer libc if neither have bind_textdomain_codeset(),
18312 # and both have dgettext and ngettext
18313 #
18314 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
18315 glib_save_LIBS="$LIBS"
18316 LIBS="$LIBS -lintl $libintl_extra_libs"
18317 unset ac_cv_func_bind_textdomain_codeset
18318 for ac_func in bind_textdomain_codeset
18319 do :
18320 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18321 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
18322 cat >>confdefs.h <<_ACEOF
18323 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
18324 _ACEOF
18325
18326 fi
18327 done
18328
18329 LIBS="$glib_save_LIBS"
18330
18331 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
18332 gt_cv_func_dgettext_libc=no
18333 else
18334 if test "$gt_cv_func_dgettext_libc" = "yes" \
18335 && test "$gt_cv_func_ngettext_libc" = "yes"; then
18336 gt_cv_func_dgettext_libintl=no
18337 fi
18338 fi
18339 fi
18340 fi
18341
18342 if test "$gt_cv_func_dgettext_libc" = "yes" \
18343 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
18344 gt_cv_have_gettext=yes
18345 fi
18346
18347 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
18348 INTLLIBS="-lintl $libintl_extra_libs"
18349 fi
18350
18351 if test "$gt_cv_have_gettext" = "yes"; then
18352
18353 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18354
18355 # Extract the first word of "msgfmt", so it can be a program name with args.
18356 set dummy msgfmt; ac_word=$2
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18358 $as_echo_n "checking for $ac_word... " >&6; }
18359 if ${ac_cv_path_MSGFMT+:} false; then :
18360 $as_echo_n "(cached) " >&6
18361 else
18362 case "$MSGFMT" in
18363 /*)
18364 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18365 ;;
18366 *)
18367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
18368 for ac_dir in $PATH; do
18369 test -z "$ac_dir" && ac_dir=.
18370 if test -f $ac_dir/$ac_word; then
18371 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
18372 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
18373 break
18374 fi
18375 fi
18376 done
18377 IFS="$ac_save_ifs"
18378 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
18379 ;;
18380 esac
18381 fi
18382 MSGFMT="$ac_cv_path_MSGFMT"
18383 if test "$MSGFMT" != "no"; then
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18385 $as_echo "$MSGFMT" >&6; }
18386 else
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18388 $as_echo "no" >&6; }
18389 fi
18390 if test "$MSGFMT" != "no"; then
18391 glib_save_LIBS="$LIBS"
18392 LIBS="$LIBS $INTLLIBS"
18393 for ac_func in dcgettext
18394 do :
18395 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
18396 if test "x$ac_cv_func_dcgettext" = xyes; then :
18397 cat >>confdefs.h <<_ACEOF
18398 #define HAVE_DCGETTEXT 1
18399 _ACEOF
18400
18401 fi
18402 done
18403
18404 MSGFMT_OPTS=
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
18406 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
18407 cat >conftest.foo <<_ACEOF
18408
18409 msgid ""
18410 msgstr ""
18411 "Content-Type: text/plain; charset=UTF-8\n"
18412 "Project-Id-Version: test 1.0\n"
18413 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
18414 "Last-Translator: test <foo@bar.xx>\n"
18415 "Language-Team: C <LL@li.org>\n"
18416 "MIME-Version: 1.0\n"
18417 "Content-Transfer-Encoding: 8bit\n"
18418
18419 _ACEOF
18420 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
18421 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
18422 ac_status=$?
18423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18424 test $ac_status = 0; }; then
18425 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18426 $as_echo "yes" >&6; }
18427 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18428 $as_echo "no" >&6; }
18429 echo "$as_me: failed input was:" >&5
18430 sed 's/^/| /' conftest.foo >&5
18431 fi
18432
18433 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18434 set dummy gmsgfmt; ac_word=$2
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18436 $as_echo_n "checking for $ac_word... " >&6; }
18437 if ${ac_cv_path_GMSGFMT+:} false; then :
18438 $as_echo_n "(cached) " >&6
18439 else
18440 case $GMSGFMT in
18441 [\\/]* | ?:[\\/]*)
18442 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18443 ;;
18444 *)
18445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18446 for as_dir in $PATH
18447 do
18448 IFS=$as_save_IFS
18449 test -z "$as_dir" && as_dir=.
18450 for ac_exec_ext in '' $ac_executable_extensions; do
18451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18452 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18454 break 2
18455 fi
18456 done
18457 done
18458 IFS=$as_save_IFS
18459
18460 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18461 ;;
18462 esac
18463 fi
18464 GMSGFMT=$ac_cv_path_GMSGFMT
18465 if test -n "$GMSGFMT"; then
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18467 $as_echo "$GMSGFMT" >&6; }
18468 else
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18470 $as_echo "no" >&6; }
18471 fi
18472
18473
18474 # Extract the first word of "xgettext", so it can be a program name with args.
18475 set dummy xgettext; ac_word=$2
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18477 $as_echo_n "checking for $ac_word... " >&6; }
18478 if ${ac_cv_path_XGETTEXT+:} false; then :
18479 $as_echo_n "(cached) " >&6
18480 else
18481 case "$XGETTEXT" in
18482 /*)
18483 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18484 ;;
18485 *)
18486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
18487 for ac_dir in $PATH; do
18488 test -z "$ac_dir" && ac_dir=.
18489 if test -f $ac_dir/$ac_word; then
18490 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
18491 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
18492 break
18493 fi
18494 fi
18495 done
18496 IFS="$ac_save_ifs"
18497 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18498 ;;
18499 esac
18500 fi
18501 XGETTEXT="$ac_cv_path_XGETTEXT"
18502 if test "$XGETTEXT" != ":"; then
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18504 $as_echo "$XGETTEXT" >&6; }
18505 else
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18507 $as_echo "no" >&6; }
18508 fi
18509
18510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h. */
18512
18513 int
18514 main ()
18515 {
18516 extern int _nl_msg_cat_cntr;
18517 return _nl_msg_cat_cntr
18518 ;
18519 return 0;
18520 }
18521 _ACEOF
18522 if ac_fn_c_try_link "$LINENO"; then :
18523 CATOBJEXT=.gmo
18524 DATADIRNAME=share
18525 else
18526 case $host in
18527 *-*-solaris*)
18528 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18529 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
18530 CATOBJEXT=.gmo
18531 DATADIRNAME=share
18532 else
18533 CATOBJEXT=.mo
18534 DATADIRNAME=lib
18535 fi
18536
18537 ;;
18538 *-*-openbsd*)
18539 CATOBJEXT=.mo
18540 DATADIRNAME=share
18541 ;;
18542 *)
18543 CATOBJEXT=.mo
18544 DATADIRNAME=lib
18545 ;;
18546 esac
18547 fi
18548 rm -f core conftest.err conftest.$ac_objext \
18549 conftest$ac_exeext conftest.$ac_ext
18550 LIBS="$glib_save_LIBS"
18551 INSTOBJEXT=.mo
18552 else
18553 gt_cv_have_gettext=no
18554 fi
18555 fi
18556
18557 fi
18558
18559
18560
18561 if test "$gt_cv_have_gettext" = "yes" ; then
18562
18563 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18564
18565 fi
18566
18567 if test "$XGETTEXT" != ":"; then
18568 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
18569 : ;
18570 else
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
18572 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
18573 XGETTEXT=":"
18574 fi
18575 fi
18576
18577 # We need to process the po/ directory.
18578 POSUB=po
18579
18580 ac_config_commands="$ac_config_commands default-1"
18581
18582
18583 for lang in $ALL_LINGUAS; do
18584 GMOFILES="$GMOFILES $lang.gmo"
18585 POFILES="$POFILES $lang.po"
18586 done
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600 if test "$gt_cv_have_gettext" = "yes"; then
18601 if test "x$ALL_LINGUAS" = "x"; then
18602 LINGUAS=
18603 else
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
18605 $as_echo_n "checking for catalogs to be installed... " >&6; }
18606 NEW_LINGUAS=
18607 for presentlang in $ALL_LINGUAS; do
18608 useit=no
18609 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
18610 desiredlanguages="$LINGUAS"
18611 else
18612 desiredlanguages="$ALL_LINGUAS"
18613 fi
18614 for desiredlang in $desiredlanguages; do
18615 # Use the presentlang catalog if desiredlang is
18616 # a. equal to presentlang, or
18617 # b. a variant of presentlang (because in this case,
18618 # presentlang can be used as a fallback for messages
18619 # which are not translated in the desiredlang catalog).
18620 case "$desiredlang" in
18621 "$presentlang"*) useit=yes;;
18622 esac
18623 done
18624 if test $useit = yes; then
18625 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
18626 fi
18627 done
18628 LINGUAS=$NEW_LINGUAS
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
18630 $as_echo "$LINGUAS" >&6; }
18631 fi
18632
18633 if test -n "$LINGUAS"; then
18634 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
18635 fi
18636 fi
18637
18638 MKINSTALLDIRS=
18639 if test -n "$ac_aux_dir"; then
18640 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
18641 fi
18642 if test -z "$MKINSTALLDIRS"; then
18643 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
18644 fi
18645
18646
18647 test -d po || mkdir po
18648 if test "x$srcdir" != "x."; then
18649 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
18650 posrcprefix="$srcdir/"
18651 else
18652 posrcprefix="../$srcdir/"
18653 fi
18654 else
18655 posrcprefix="../"
18656 fi
18657 rm -f po/POTFILES
18658 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
18659 < $srcdir/po/POTFILES.in > po/POTFILES
18660
18661 glib_save_prefix="$prefix"
18662 glib_save_exec_prefix="$exec_prefix"
18663 glib_save_datarootdir="$datarootdir"
18664 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18665 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
18666 datarootdir=`eval echo "${datarootdir}"`
18667 if test "x$CATOBJEXT" = "x.mo" ; then
18668 localedir=`eval echo "${libdir}/locale"`
18669 else
18670 localedir=`eval echo "${datadir}/locale"`
18671 fi
18672 prefix="$glib_save_prefix"
18673 exec_prefix="$glib_save_exec_prefix"
18674 datarootdir="$glib_save_datarootdir"
18675
18676 cat >>confdefs.h <<_ACEOF
18677 #define IBUS_LOCALEDIR "$localedir"
18678 _ACEOF
18679
18680
18681
18682 ac_config_files="$ac_config_files po/Makefile.in Makefile ibus-input-pad.spec engine/Makefile setup/Makefile"
18683
18684
18685 cat >confcache <<\_ACEOF
18686 # This file is a shell script that caches the results of configure
18687 # tests run on this system so they can be shared between configure
18688 # scripts and configure runs, see configure's option --config-cache.
18689 # It is not useful on other systems. If it contains results you don't
18690 # want to keep, you may remove or edit it.
18691 #
18692 # config.status only pays attention to the cache file if you give it
18693 # the --recheck option to rerun configure.
18694 #
18695 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18696 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18697 # following values.
18698
18699 _ACEOF
18700
18701 # The following way of writing the cache mishandles newlines in values,
18702 # but we know of no workaround that is simple, portable, and efficient.
18703 # So, we kill variables containing newlines.
18704 # Ultrix sh set writes to stderr and can't be redirected directly,
18705 # and sets the high bit in the cache file unless we assign to the vars.
18706 (
18707 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18708 eval ac_val=\$$ac_var
18709 case $ac_val in #(
18710 *${as_nl}*)
18711 case $ac_var in #(
18712 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18713 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18714 esac
18715 case $ac_var in #(
18716 _ | IFS | as_nl) ;; #(
18717 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18718 *) { eval $ac_var=; unset $ac_var;} ;;
18719 esac ;;
18720 esac
18721 done
18722
18723 (set) 2>&1 |
18724 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18725 *${as_nl}ac_space=\ *)
18726 # `set' does not quote correctly, so add quotes: double-quote
18727 # substitution turns \\\\ into \\, and sed turns \\ into \.
18728 sed -n \
18729 "s/'/'\\\\''/g;
18730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18731 ;; #(
18732 *)
18733 # `set' quotes correctly as required by POSIX, so do not add quotes.
18734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18735 ;;
18736 esac |
18737 sort
18738 ) |
18739 sed '
18740 /^ac_cv_env_/b end
18741 t clear
18742 :clear
18743 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18744 t end
18745 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18746 :end' >>confcache
18747 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18748 if test -w "$cache_file"; then
18749 if test "x$cache_file" != "x/dev/null"; then
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18751 $as_echo "$as_me: updating cache $cache_file" >&6;}
18752 if test ! -f "$cache_file" || test -h "$cache_file"; then
18753 cat confcache >"$cache_file"
18754 else
18755 case $cache_file in #(
18756 */* | ?:*)
18757 mv -f confcache "$cache_file"$$ &&
18758 mv -f "$cache_file"$$ "$cache_file" ;; #(
18759 *)
18760 mv -f confcache "$cache_file" ;;
18761 esac
18762 fi
18763 fi
18764 else
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18766 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18767 fi
18768 fi
18769 rm -f confcache
18770
18771 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18772 # Let make expand exec_prefix.
18773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18774
18775 DEFS=-DHAVE_CONFIG_H
18776
18777 ac_libobjs=
18778 ac_ltlibobjs=
18779 U=
18780 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18781 # 1. Remove the extension, and $U if already installed.
18782 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18783 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18784 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18785 # will be set to the directory where LIBOBJS objects are built.
18786 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18787 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18788 done
18789 LIBOBJS=$ac_libobjs
18790
18791 LTLIBOBJS=$ac_ltlibobjs
18792
18793
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18795 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18796 if test -n "$am_sleep_pid"; then
18797 # Hide warnings about reused PIDs.
18798 wait $am_sleep_pid 2>/dev/null
18799 fi
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18801 $as_echo "done" >&6; }
18802 if test -n "$EXEEXT"; then
18803 am__EXEEXT_TRUE=
18804 am__EXEEXT_FALSE='#'
18805 else
18806 am__EXEEXT_TRUE='#'
18807 am__EXEEXT_FALSE=
18808 fi
18809
18810 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18811 as_fn_error $? "conditional \"AMDEP\" was never defined.
18812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18813 fi
18814 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18815 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18817 fi
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18819 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18820 if test -n "$am_sleep_pid"; then
18821 # Hide warnings about reused PIDs.
18822 wait $am_sleep_pid 2>/dev/null
18823 fi
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18825 $as_echo "done" >&6; }
18826 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18827 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18829 fi
18830 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18831 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18833 fi
18834 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18835 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18837 fi
18838
18839 ac_config_commands="$ac_config_commands po/stamp-it"
18840
18841
18842 if test -z "${HAVE_GTK3_TRUE}" && test -z "${HAVE_GTK3_FALSE}"; then
18843 as_fn_error $? "conditional \"HAVE_GTK3\" was never defined.
18844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18845 fi
18846 if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
18847 as_fn_error $? "conditional \"HAVE_GTK2\" was never defined.
18848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18849 fi
18850 if test -z "${HAVE_GTK3_TRUE}" && test -z "${HAVE_GTK3_FALSE}"; then
18851 as_fn_error $? "conditional \"HAVE_GTK3\" was never defined.
18852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18853 fi
18854 if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
18855 as_fn_error $? "conditional \"HAVE_GTK2\" was never defined.
18856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18857 fi
18858
18859 : "${CONFIG_STATUS=./config.status}"
18860 ac_write_fail=0
18861 ac_clean_files_save=$ac_clean_files
18862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18864 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18865 as_write_fail=0
18866 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18867 #! $SHELL
18868 # Generated by $as_me.
18869 # Run this file to recreate the current configuration.
18870 # Compiler output produced by configure, useful for debugging
18871 # configure, is in config.log if it exists.
18872
18873 debug=false
18874 ac_cs_recheck=false
18875 ac_cs_silent=false
18876
18877 SHELL=\${CONFIG_SHELL-$SHELL}
18878 export SHELL
18879 _ASEOF
18880 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18881 ## -------------------- ##
18882 ## M4sh Initialization. ##
18883 ## -------------------- ##
18884
18885 # Be more Bourne compatible
18886 DUALCASE=1; export DUALCASE # for MKS sh
18887 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18888 emulate sh
18889 NULLCMD=:
18890 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18891 # is contrary to our usage. Disable this feature.
18892 alias -g '${1+"$@"}'='"$@"'
18893 setopt NO_GLOB_SUBST
18894 else
18895 case `(set -o) 2>/dev/null` in #(
18896 *posix*) :
18897 set -o posix ;; #(
18898 *) :
18899 ;;
18900 esac
18901 fi
18902
18903
18904 as_nl='
18905 '
18906 export as_nl
18907 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18908 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18909 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18911 # Prefer a ksh shell builtin over an external printf program on Solaris,
18912 # but without wasting forks for bash or zsh.
18913 if test -z "$BASH_VERSION$ZSH_VERSION" \
18914 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18915 as_echo='print -r --'
18916 as_echo_n='print -rn --'
18917 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18918 as_echo='printf %s\n'
18919 as_echo_n='printf %s'
18920 else
18921 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18922 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18923 as_echo_n='/usr/ucb/echo -n'
18924 else
18925 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18926 as_echo_n_body='eval
18927 arg=$1;
18928 case $arg in #(
18929 *"$as_nl"*)
18930 expr "X$arg" : "X\\(.*\\)$as_nl";
18931 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18932 esac;
18933 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18934 '
18935 export as_echo_n_body
18936 as_echo_n='sh -c $as_echo_n_body as_echo'
18937 fi
18938 export as_echo_body
18939 as_echo='sh -c $as_echo_body as_echo'
18940 fi
18941
18942 # The user is always right.
18943 if test "${PATH_SEPARATOR+set}" != set; then
18944 PATH_SEPARATOR=:
18945 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18946 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18947 PATH_SEPARATOR=';'
18948 }
18949 fi
18950
18951
18952 # IFS
18953 # We need space, tab and new line, in precisely that order. Quoting is
18954 # there to prevent editors from complaining about space-tab.
18955 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18956 # splitting by setting IFS to empty value.)
18957 IFS=" "" $as_nl"
18958
18959 # Find who we are. Look in the path if we contain no directory separator.
18960 as_myself=
18961 case $0 in #((
18962 *[\\/]* ) as_myself=$0 ;;
18963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18964 for as_dir in $PATH
18965 do
18966 IFS=$as_save_IFS
18967 test -z "$as_dir" && as_dir=.
18968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18969 done
18970 IFS=$as_save_IFS
18971
18972 ;;
18973 esac
18974 # We did not find ourselves, most probably we were run as `sh COMMAND'
18975 # in which case we are not to be found in the path.
18976 if test "x$as_myself" = x; then
18977 as_myself=$0
18978 fi
18979 if test ! -f "$as_myself"; then
18980 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18981 exit 1
18982 fi
18983
18984 # Unset variables that we do not need and which cause bugs (e.g. in
18985 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18986 # suppresses any "Segmentation fault" message there. '((' could
18987 # trigger a bug in pdksh 5.2.14.
18988 for as_var in BASH_ENV ENV MAIL MAILPATH
18989 do eval test x\${$as_var+set} = xset \
18990 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18991 done
18992 PS1='$ '
18993 PS2='> '
18994 PS4='+ '
18995
18996 # NLS nuisances.
18997 LC_ALL=C
18998 export LC_ALL
18999 LANGUAGE=C
19000 export LANGUAGE
19001
19002 # CDPATH.
19003 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19004
19005
19006 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19007 # ----------------------------------------
19008 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19009 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19010 # script with STATUS, using 1 if that was 0.
19011 as_fn_error ()
19012 {
19013 as_status=$1; test $as_status -eq 0 && as_status=1
19014 if test "$4"; then
19015 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19016 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19017 fi
19018 $as_echo "$as_me: error: $2" >&2
19019 as_fn_exit $as_status
19020 } # as_fn_error
19021
19022
19023 # as_fn_set_status STATUS
19024 # -----------------------
19025 # Set $? to STATUS, without forking.
19026 as_fn_set_status ()
19027 {
19028 return $1
19029 } # as_fn_set_status
19030
19031 # as_fn_exit STATUS
19032 # -----------------
19033 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19034 as_fn_exit ()
19035 {
19036 set +e
19037 as_fn_set_status $1
19038 exit $1
19039 } # as_fn_exit
19040
19041 # as_fn_unset VAR
19042 # ---------------
19043 # Portably unset VAR.
19044 as_fn_unset ()
19045 {
19046 { eval $1=; unset $1;}
19047 }
19048 as_unset=as_fn_unset
19049 # as_fn_append VAR VALUE
19050 # ----------------------
19051 # Append the text in VALUE to the end of the definition contained in VAR. Take
19052 # advantage of any shell optimizations that allow amortized linear growth over
19053 # repeated appends, instead of the typical quadratic growth present in naive
19054 # implementations.
19055 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19056 eval 'as_fn_append ()
19057 {
19058 eval $1+=\$2
19059 }'
19060 else
19061 as_fn_append ()
19062 {
19063 eval $1=\$$1\$2
19064 }
19065 fi # as_fn_append
19066
19067 # as_fn_arith ARG...
19068 # ------------------
19069 # Perform arithmetic evaluation on the ARGs, and store the result in the
19070 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19071 # must be portable across $(()) and expr.
19072 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19073 eval 'as_fn_arith ()
19074 {
19075 as_val=$(( $* ))
19076 }'
19077 else
19078 as_fn_arith ()
19079 {
19080 as_val=`expr "$@" || test $? -eq 1`
19081 }
19082 fi # as_fn_arith
19083
19084
19085 if expr a : '\(a\)' >/dev/null 2>&1 &&
19086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19087 as_expr=expr
19088 else
19089 as_expr=false
19090 fi
19091
19092 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19093 as_basename=basename
19094 else
19095 as_basename=false
19096 fi
19097
19098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19099 as_dirname=dirname
19100 else
19101 as_dirname=false
19102 fi
19103
19104 as_me=`$as_basename -- "$0" ||
19105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19106 X"$0" : 'X\(//\)$' \| \
19107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19108 $as_echo X/"$0" |
19109 sed '/^.*\/\([^/][^/]*\)\/*$/{
19110 s//\1/
19111 q
19112 }
19113 /^X\/\(\/\/\)$/{
19114 s//\1/
19115 q
19116 }
19117 /^X\/\(\/\).*/{
19118 s//\1/
19119 q
19120 }
19121 s/.*/./; q'`
19122
19123 # Avoid depending upon Character Ranges.
19124 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19125 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19126 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19127 as_cr_digits='0123456789'
19128 as_cr_alnum=$as_cr_Letters$as_cr_digits
19129
19130 ECHO_C= ECHO_N= ECHO_T=
19131 case `echo -n x` in #(((((
19132 -n*)
19133 case `echo 'xy\c'` in
19134 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19135 xy) ECHO_C='\c';;
19136 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19137 ECHO_T=' ';;
19138 esac;;
19139 *)
19140 ECHO_N='-n';;
19141 esac
19142
19143 rm -f conf$$ conf$$.exe conf$$.file
19144 if test -d conf$$.dir; then
19145 rm -f conf$$.dir/conf$$.file
19146 else
19147 rm -f conf$$.dir
19148 mkdir conf$$.dir 2>/dev/null
19149 fi
19150 if (echo >conf$$.file) 2>/dev/null; then
19151 if ln -s conf$$.file conf$$ 2>/dev/null; then
19152 as_ln_s='ln -s'
19153 # ... but there are two gotchas:
19154 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19155 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19156 # In both cases, we have to default to `cp -pR'.
19157 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19158 as_ln_s='cp -pR'
19159 elif ln conf$$.file conf$$ 2>/dev/null; then
19160 as_ln_s=ln
19161 else
19162 as_ln_s='cp -pR'
19163 fi
19164 else
19165 as_ln_s='cp -pR'
19166 fi
19167 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19168 rmdir conf$$.dir 2>/dev/null
19169
19170
19171 # as_fn_mkdir_p
19172 # -------------
19173 # Create "$as_dir" as a directory, including parents if necessary.
19174 as_fn_mkdir_p ()
19175 {
19176
19177 case $as_dir in #(
19178 -*) as_dir=./$as_dir;;
19179 esac
19180 test -d "$as_dir" || eval $as_mkdir_p || {
19181 as_dirs=
19182 while :; do
19183 case $as_dir in #(
19184 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19185 *) as_qdir=$as_dir;;
19186 esac
19187 as_dirs="'$as_qdir' $as_dirs"
19188 as_dir=`$as_dirname -- "$as_dir" ||
19189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19190 X"$as_dir" : 'X\(//\)[^/]' \| \
19191 X"$as_dir" : 'X\(//\)$' \| \
19192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19193 $as_echo X"$as_dir" |
19194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19195 s//\1/
19196 q
19197 }
19198 /^X\(\/\/\)[^/].*/{
19199 s//\1/
19200 q
19201 }
19202 /^X\(\/\/\)$/{
19203 s//\1/
19204 q
19205 }
19206 /^X\(\/\).*/{
19207 s//\1/
19208 q
19209 }
19210 s/.*/./; q'`
19211 test -d "$as_dir" && break
19212 done
19213 test -z "$as_dirs" || eval "mkdir $as_dirs"
19214 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19215
19216
19217 } # as_fn_mkdir_p
19218 if mkdir -p . 2>/dev/null; then
19219 as_mkdir_p='mkdir -p "$as_dir"'
19220 else
19221 test -d ./-p && rmdir ./-p
19222 as_mkdir_p=false
19223 fi
19224
19225
19226 # as_fn_executable_p FILE
19227 # -----------------------
19228 # Test if FILE is an executable regular file.
19229 as_fn_executable_p ()
19230 {
19231 test -f "$1" && test -x "$1"
19232 } # as_fn_executable_p
19233 as_test_x='test -x'
19234 as_executable_p=as_fn_executable_p
19235
19236 # Sed expression to map a string onto a valid CPP name.
19237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19238
19239 # Sed expression to map a string onto a valid variable name.
19240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19241
19242
19243 exec 6>&1
19244 ## ----------------------------------- ##
19245 ## Main body of $CONFIG_STATUS script. ##
19246 ## ----------------------------------- ##
19247 _ASEOF
19248 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19249
19250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19251 # Save the log message, to keep $0 and so on meaningful, and to
19252 # report actual input values of CONFIG_FILES etc. instead of their
19253 # values after options handling.
19254 ac_log="
19255 This file was extended by ibus-input-pad $as_me 1.4.2, which was
19256 generated by GNU Autoconf 2.69. Invocation command line was
19257
19258 CONFIG_FILES = $CONFIG_FILES
19259 CONFIG_HEADERS = $CONFIG_HEADERS
19260 CONFIG_LINKS = $CONFIG_LINKS
19261 CONFIG_COMMANDS = $CONFIG_COMMANDS
19262 $ $0 $@
19263
19264 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19265 "
19266
19267 _ACEOF
19268
19269 case $ac_config_files in *"
19270 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19271 esac
19272
19273 case $ac_config_headers in *"
19274 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19275 esac
19276
19277
19278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19279 # Files that config.status was made for.
19280 config_files="$ac_config_files"
19281 config_headers="$ac_config_headers"
19282 config_commands="$ac_config_commands"
19283
19284 _ACEOF
19285
19286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19287 ac_cs_usage="\
19288 \`$as_me' instantiates files and other configuration actions
19289 from templates according to the current configuration. Unless the files
19290 and actions are specified as TAGs, all are instantiated by default.
19291
19292 Usage: $0 [OPTION]... [TAG]...
19293
19294 -h, --help print this help, then exit
19295 -V, --version print version number and configuration settings, then exit
19296 --config print configuration, then exit
19297 -q, --quiet, --silent
19298 do not print progress messages
19299 -d, --debug don't remove temporary files
19300 --recheck update $as_me by reconfiguring in the same conditions
19301 --file=FILE[:TEMPLATE]
19302 instantiate the configuration file FILE
19303 --header=FILE[:TEMPLATE]
19304 instantiate the configuration header FILE
19305
19306 Configuration files:
19307 $config_files
19308
19309 Configuration headers:
19310 $config_headers
19311
19312 Configuration commands:
19313 $config_commands
19314
19315 Report bugs to <http://code.google.com/p/input-pad/issues/entry>."
19316
19317 _ACEOF
19318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19319 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19320 ac_cs_version="\\
19321 ibus-input-pad config.status 1.4.2
19322 configured by $0, generated by GNU Autoconf 2.69,
19323 with options \\"\$ac_cs_config\\"
19324
19325 Copyright (C) 2012 Free Software Foundation, Inc.
19326 This config.status script is free software; the Free Software Foundation
19327 gives unlimited permission to copy, distribute and modify it."
19328
19329 ac_pwd='$ac_pwd'
19330 srcdir='$srcdir'
19331 INSTALL='$INSTALL'
19332 MKDIR_P='$MKDIR_P'
19333 AWK='$AWK'
19334 test -n "\$AWK" || AWK=awk
19335 _ACEOF
19336
19337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19338 # The default lists apply if the user does not specify any file.
19339 ac_need_defaults=:
19340 while test $# != 0
19341 do
19342 case $1 in
19343 --*=?*)
19344 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19345 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19346 ac_shift=:
19347 ;;
19348 --*=)
19349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19350 ac_optarg=
19351 ac_shift=:
19352 ;;
19353 *)
19354 ac_option=$1
19355 ac_optarg=$2
19356 ac_shift=shift
19357 ;;
19358 esac
19359
19360 case $ac_option in
19361 # Handling of the options.
19362 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19363 ac_cs_recheck=: ;;
19364 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19365 $as_echo "$ac_cs_version"; exit ;;
19366 --config | --confi | --conf | --con | --co | --c )
19367 $as_echo "$ac_cs_config"; exit ;;
19368 --debug | --debu | --deb | --de | --d | -d )
19369 debug=: ;;
19370 --file | --fil | --fi | --f )
19371 $ac_shift
19372 case $ac_optarg in
19373 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19374 '') as_fn_error $? "missing file argument" ;;
19375 esac
19376 as_fn_append CONFIG_FILES " '$ac_optarg'"
19377 ac_need_defaults=false;;
19378 --header | --heade | --head | --hea )
19379 $ac_shift
19380 case $ac_optarg in
19381 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19382 esac
19383 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19384 ac_need_defaults=false;;
19385 --he | --h)
19386 # Conflict between --help and --header
19387 as_fn_error $? "ambiguous option: \`$1'
19388 Try \`$0 --help' for more information.";;
19389 --help | --hel | -h )
19390 $as_echo "$ac_cs_usage"; exit ;;
19391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19392 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19393 ac_cs_silent=: ;;
19394
19395 # This is an error.
19396 -*) as_fn_error $? "unrecognized option: \`$1'
19397 Try \`$0 --help' for more information." ;;
19398
19399 *) as_fn_append ac_config_targets " $1"
19400 ac_need_defaults=false ;;
19401
19402 esac
19403 shift
19404 done
19405
19406 ac_configure_extra_args=
19407
19408 if $ac_cs_silent; then
19409 exec 6>/dev/null
19410 ac_configure_extra_args="$ac_configure_extra_args --silent"
19411 fi
19412
19413 _ACEOF
19414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19415 if \$ac_cs_recheck; then
19416 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19417 shift
19418 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19419 CONFIG_SHELL='$SHELL'
19420 export CONFIG_SHELL
19421 exec "\$@"
19422 fi
19423
19424 _ACEOF
19425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19426 exec 5>>config.log
19427 {
19428 echo
19429 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19430 ## Running $as_me. ##
19431 _ASBOX
19432 $as_echo "$ac_log"
19433 } >&5
19434
19435 _ACEOF
19436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19437 #
19438 # INIT-COMMANDS
19439 #
19440 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19441
19442
19443 # The HP-UX ksh and POSIX shell print the target directory to stdout
19444 # if CDPATH is set.
19445 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19446
19447 sed_quote_subst='$sed_quote_subst'
19448 double_quote_subst='$double_quote_subst'
19449 delay_variable_subst='$delay_variable_subst'
19450 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19451 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19452 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19453 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19454 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19455 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19456 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19457 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19458 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19459 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19460 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19461 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19462 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19463 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19464 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19465 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19466 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19467 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19468 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19469 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19470 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19471 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19472 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19473 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19474 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19475 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19476 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19477 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19478 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19479 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19480 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19481 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19482 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19483 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19484 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19485 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19486 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19487 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19488 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19489 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19490 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19491 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19492 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19493 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19494 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19495 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19496 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19497 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19498 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19499 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19500 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19501 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19502 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19503 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19504 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19505 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19506 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19507 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19508 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19509 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19510 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19511 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19512 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19513 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19514 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19515 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19516 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19517 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19518 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19519 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19520 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19521 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19522 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19523 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19524 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19525 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19526 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19527 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19528 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19529 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19530 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19531 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19532 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19533 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19534 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19535 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19536 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19537 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19538 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19539 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19540 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19541 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19542 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19543 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19544 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19545 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19546 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19547 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19548 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19549 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19550 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19551 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19552 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19553 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19554 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19555 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19556 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19557 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19558 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19559 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19560 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19561 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19562 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19563 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19564 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19565 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19566 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19567 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19568 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19569 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19570 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19571 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19572 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19573 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19574 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19575 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19576 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19577 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19578 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19579 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19580 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19581 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19582 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19583 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19584 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19585 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19586 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19587 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19588 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19589 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19590 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19591 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19592 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19593 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19594 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19595 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19596 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19597 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19598 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19599 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19600 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19601 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19602 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19603 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19604 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19605 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19606 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19607 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19608 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19609 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19610 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19611 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19612 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19613 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19614 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19615 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19616 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19617 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19618 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19619 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19620 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19621 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19622 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19623 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19624 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19625 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19626 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19627 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19628 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19629 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19630 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19631 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19632 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19633 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19634
19635 LTCC='$LTCC'
19636 LTCFLAGS='$LTCFLAGS'
19637 compiler='$compiler_DEFAULT'
19638
19639 # A function that is used when there is no print builtin or printf.
19640 func_fallback_echo ()
19641 {
19642 eval 'cat <<_LTECHO_EOF
19643 \$1
19644 _LTECHO_EOF'
19645 }
19646
19647 # Quote evaled strings.
19648 for var in SHELL \
19649 ECHO \
19650 PATH_SEPARATOR \
19651 SED \
19652 GREP \
19653 EGREP \
19654 FGREP \
19655 LD \
19656 NM \
19657 LN_S \
19658 lt_SP2NL \
19659 lt_NL2SP \
19660 reload_flag \
19661 OBJDUMP \
19662 deplibs_check_method \
19663 file_magic_cmd \
19664 file_magic_glob \
19665 want_nocaseglob \
19666 DLLTOOL \
19667 sharedlib_from_linklib_cmd \
19668 AR \
19669 AR_FLAGS \
19670 archiver_list_spec \
19671 STRIP \
19672 RANLIB \
19673 CC \
19674 CFLAGS \
19675 compiler \
19676 lt_cv_sys_global_symbol_pipe \
19677 lt_cv_sys_global_symbol_to_cdecl \
19678 lt_cv_sys_global_symbol_to_c_name_address \
19679 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19680 nm_file_list_spec \
19681 lt_prog_compiler_no_builtin_flag \
19682 lt_prog_compiler_pic \
19683 lt_prog_compiler_wl \
19684 lt_prog_compiler_static \
19685 lt_cv_prog_compiler_c_o \
19686 need_locks \
19687 MANIFEST_TOOL \
19688 DSYMUTIL \
19689 NMEDIT \
19690 LIPO \
19691 OTOOL \
19692 OTOOL64 \
19693 shrext_cmds \
19694 export_dynamic_flag_spec \
19695 whole_archive_flag_spec \
19696 compiler_needs_object \
19697 with_gnu_ld \
19698 allow_undefined_flag \
19699 no_undefined_flag \
19700 hardcode_libdir_flag_spec \
19701 hardcode_libdir_separator \
19702 exclude_expsyms \
19703 include_expsyms \
19704 file_list_spec \
19705 variables_saved_for_relink \
19706 libname_spec \
19707 library_names_spec \
19708 soname_spec \
19709 install_override_mode \
19710 finish_eval \
19711 old_striplib \
19712 striplib \
19713 compiler_lib_search_dirs \
19714 predep_objects \
19715 postdep_objects \
19716 predeps \
19717 postdeps \
19718 compiler_lib_search_path \
19719 LD_CXX \
19720 reload_flag_CXX \
19721 compiler_CXX \
19722 lt_prog_compiler_no_builtin_flag_CXX \
19723 lt_prog_compiler_pic_CXX \
19724 lt_prog_compiler_wl_CXX \
19725 lt_prog_compiler_static_CXX \
19726 lt_cv_prog_compiler_c_o_CXX \
19727 export_dynamic_flag_spec_CXX \
19728 whole_archive_flag_spec_CXX \
19729 compiler_needs_object_CXX \
19730 with_gnu_ld_CXX \
19731 allow_undefined_flag_CXX \
19732 no_undefined_flag_CXX \
19733 hardcode_libdir_flag_spec_CXX \
19734 hardcode_libdir_separator_CXX \
19735 exclude_expsyms_CXX \
19736 include_expsyms_CXX \
19737 file_list_spec_CXX \
19738 compiler_lib_search_dirs_CXX \
19739 predep_objects_CXX \
19740 postdep_objects_CXX \
19741 predeps_CXX \
19742 postdeps_CXX \
19743 compiler_lib_search_path_CXX; do
19744 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19745 *[\\\\\\\`\\"\\\$]*)
19746 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19747 ;;
19748 *)
19749 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19750 ;;
19751 esac
19752 done
19753
19754 # Double-quote double-evaled strings.
19755 for var in reload_cmds \
19756 old_postinstall_cmds \
19757 old_postuninstall_cmds \
19758 old_archive_cmds \
19759 extract_expsyms_cmds \
19760 old_archive_from_new_cmds \
19761 old_archive_from_expsyms_cmds \
19762 archive_cmds \
19763 archive_expsym_cmds \
19764 module_cmds \
19765 module_expsym_cmds \
19766 export_symbols_cmds \
19767 prelink_cmds \
19768 postlink_cmds \
19769 postinstall_cmds \
19770 postuninstall_cmds \
19771 finish_cmds \
19772 sys_lib_search_path_spec \
19773 sys_lib_dlsearch_path_spec \
19774 reload_cmds_CXX \
19775 old_archive_cmds_CXX \
19776 old_archive_from_new_cmds_CXX \
19777 old_archive_from_expsyms_cmds_CXX \
19778 archive_cmds_CXX \
19779 archive_expsym_cmds_CXX \
19780 module_cmds_CXX \
19781 module_expsym_cmds_CXX \
19782 export_symbols_cmds_CXX \
19783 prelink_cmds_CXX \
19784 postlink_cmds_CXX; do
19785 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19786 *[\\\\\\\`\\"\\\$]*)
19787 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19788 ;;
19789 *)
19790 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19791 ;;
19792 esac
19793 done
19794
19795 ac_aux_dir='$ac_aux_dir'
19796 xsi_shell='$xsi_shell'
19797 lt_shell_append='$lt_shell_append'
19798
19799 # See if we are running on zsh, and set the options which allow our
19800 # commands through without removal of \ escapes INIT.
19801 if test -n "\${ZSH_VERSION+set}" ; then
19802 setopt NO_GLOB_SUBST
19803 fi
19804
19805
19806 PACKAGE='$PACKAGE'
19807 VERSION='$VERSION'
19808 TIMESTAMP='$TIMESTAMP'
19809 RM='$RM'
19810 ofile='$ofile'
19811
19812
19813
19814
19815
19816
19817
19818 _ACEOF
19819
19820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19821
19822 # Handling of arguments.
19823 for ac_config_target in $ac_config_targets
19824 do
19825 case $ac_config_target in
19826 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19827 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19828 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19829 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19830 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19831 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19832 "ibus-input-pad.spec") CONFIG_FILES="$CONFIG_FILES ibus-input-pad.spec" ;;
19833 "engine/Makefile") CONFIG_FILES="$CONFIG_FILES engine/Makefile" ;;
19834 "setup/Makefile") CONFIG_FILES="$CONFIG_FILES setup/Makefile" ;;
19835 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
19836
19837 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19838 esac
19839 done
19840
19841
19842 # If the user did not use the arguments to specify the items to instantiate,
19843 # then the envvar interface is used. Set only those that are not.
19844 # We use the long form for the default assignment because of an extremely
19845 # bizarre bug on SunOS 4.1.3.
19846 if $ac_need_defaults; then
19847 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19848 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19849 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19850 fi
19851
19852 # Have a temporary directory for convenience. Make it in the build tree
19853 # simply because there is no reason against having it here, and in addition,
19854 # creating and moving files from /tmp can sometimes cause problems.
19855 # Hook for its removal unless debugging.
19856 # Note that there is a small window in which the directory will not be cleaned:
19857 # after its creation but before its name has been assigned to `$tmp'.
19858 $debug ||
19859 {
19860 tmp= ac_tmp=
19861 trap 'exit_status=$?
19862 : "${ac_tmp:=$tmp}"
19863 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19864 ' 0
19865 trap 'as_fn_exit 1' 1 2 13 15
19866 }
19867 # Create a (secure) tmp directory for tmp files.
19868
19869 {
19870 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19871 test -d "$tmp"
19872 } ||
19873 {
19874 tmp=./conf$$-$RANDOM
19875 (umask 077 && mkdir "$tmp")
19876 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19877 ac_tmp=$tmp
19878
19879 # Set up the scripts for CONFIG_FILES section.
19880 # No need to generate them if there are no CONFIG_FILES.
19881 # This happens for instance with `./config.status config.h'.
19882 if test -n "$CONFIG_FILES"; then
19883
19884
19885 ac_cr=`echo X | tr X '\015'`
19886 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19887 # But we know of no other shell where ac_cr would be empty at this
19888 # point, so we can use a bashism as a fallback.
19889 if test "x$ac_cr" = x; then
19890 eval ac_cr=\$\'\\r\'
19891 fi
19892 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19893 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19894 ac_cs_awk_cr='\\r'
19895 else
19896 ac_cs_awk_cr=$ac_cr
19897 fi
19898
19899 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19900 _ACEOF
19901
19902
19903 {
19904 echo "cat >conf$$subs.awk <<_ACEOF" &&
19905 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19906 echo "_ACEOF"
19907 } >conf$$subs.sh ||
19908 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19909 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19910 ac_delim='%!_!# '
19911 for ac_last_try in false false false false false :; do
19912 . ./conf$$subs.sh ||
19913 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19914
19915 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19916 if test $ac_delim_n = $ac_delim_num; then
19917 break
19918 elif $ac_last_try; then
19919 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19920 else
19921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19922 fi
19923 done
19924 rm -f conf$$subs.sh
19925
19926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19927 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19928 _ACEOF
19929 sed -n '
19930 h
19931 s/^/S["/; s/!.*/"]=/
19932 p
19933 g
19934 s/^[^!]*!//
19935 :repl
19936 t repl
19937 s/'"$ac_delim"'$//
19938 t delim
19939 :nl
19940 h
19941 s/\(.\{148\}\)..*/\1/
19942 t more1
19943 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19944 p
19945 n
19946 b repl
19947 :more1
19948 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19949 p
19950 g
19951 s/.\{148\}//
19952 t nl
19953 :delim
19954 h
19955 s/\(.\{148\}\)..*/\1/
19956 t more2
19957 s/["\\]/\\&/g; s/^/"/; s/$/"/
19958 p
19959 b
19960 :more2
19961 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19962 p
19963 g
19964 s/.\{148\}//
19965 t delim
19966 ' <conf$$subs.awk | sed '
19967 /^[^""]/{
19968 N
19969 s/\n//
19970 }
19971 ' >>$CONFIG_STATUS || ac_write_fail=1
19972 rm -f conf$$subs.awk
19973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19974 _ACAWK
19975 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19976 for (key in S) S_is_set[key] = 1
19977 FS = ""
19978
19979 }
19980 {
19981 line = $ 0
19982 nfields = split(line, field, "@")
19983 substed = 0
19984 len = length(field[1])
19985 for (i = 2; i < nfields; i++) {
19986 key = field[i]
19987 keylen = length(key)
19988 if (S_is_set[key]) {
19989 value = S[key]
19990 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19991 len += length(value) + length(field[++i])
19992 substed = 1
19993 } else
19994 len += 1 + keylen
19995 }
19996
19997 print line
19998 }
19999
20000 _ACAWK
20001 _ACEOF
20002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20003 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20004 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20005 else
20006 cat
20007 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20008 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20009 _ACEOF
20010
20011 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20012 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20013 # trailing colons and then remove the whole line if VPATH becomes empty
20014 # (actually we leave an empty line to preserve line numbers).
20015 if test "x$srcdir" = x.; then
20016 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20017 h
20018 s///
20019 s/^/:/
20020 s/[ ]*$/:/
20021 s/:\$(srcdir):/:/g
20022 s/:\${srcdir}:/:/g
20023 s/:@srcdir@:/:/g
20024 s/^:*//
20025 s/:*$//
20026 x
20027 s/\(=[ ]*\).*/\1/
20028 G
20029 s/\n//
20030 s/^[^=]*=[ ]*$//
20031 }'
20032 fi
20033
20034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20035 fi # test -n "$CONFIG_FILES"
20036
20037 # Set up the scripts for CONFIG_HEADERS section.
20038 # No need to generate them if there are no CONFIG_HEADERS.
20039 # This happens for instance with `./config.status Makefile'.
20040 if test -n "$CONFIG_HEADERS"; then
20041 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20042 BEGIN {
20043 _ACEOF
20044
20045 # Transform confdefs.h into an awk script `defines.awk', embedded as
20046 # here-document in config.status, that substitutes the proper values into
20047 # config.h.in to produce config.h.
20048
20049 # Create a delimiter string that does not exist in confdefs.h, to ease
20050 # handling of long lines.
20051 ac_delim='%!_!# '
20052 for ac_last_try in false false :; do
20053 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20054 if test -z "$ac_tt"; then
20055 break
20056 elif $ac_last_try; then
20057 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20058 else
20059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20060 fi
20061 done
20062
20063 # For the awk script, D is an array of macro values keyed by name,
20064 # likewise P contains macro parameters if any. Preserve backslash
20065 # newline sequences.
20066
20067 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20068 sed -n '
20069 s/.\{148\}/&'"$ac_delim"'/g
20070 t rset
20071 :rset
20072 s/^[ ]*#[ ]*define[ ][ ]*/ /
20073 t def
20074 d
20075 :def
20076 s/\\$//
20077 t bsnl
20078 s/["\\]/\\&/g
20079 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20080 D["\1"]=" \3"/p
20081 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20082 d
20083 :bsnl
20084 s/["\\]/\\&/g
20085 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20086 D["\1"]=" \3\\\\\\n"\\/p
20087 t cont
20088 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20089 t cont
20090 d
20091 :cont
20092 n
20093 s/.\{148\}/&'"$ac_delim"'/g
20094 t clear
20095 :clear
20096 s/\\$//
20097 t bsnlc
20098 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20099 d
20100 :bsnlc
20101 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20102 b cont
20103 ' <confdefs.h | sed '
20104 s/'"$ac_delim"'/"\\\
20105 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20106
20107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20108 for (key in D) D_is_set[key] = 1
20109 FS = ""
20110 }
20111 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20112 line = \$ 0
20113 split(line, arg, " ")
20114 if (arg[1] == "#") {
20115 defundef = arg[2]
20116 mac1 = arg[3]
20117 } else {
20118 defundef = substr(arg[1], 2)
20119 mac1 = arg[2]
20120 }
20121 split(mac1, mac2, "(") #)
20122 macro = mac2[1]
20123 prefix = substr(line, 1, index(line, defundef) - 1)
20124 if (D_is_set[macro]) {
20125 # Preserve the white space surrounding the "#".
20126 print prefix "define", macro P[macro] D[macro]
20127 next
20128 } else {
20129 # Replace #undef with comments. This is necessary, for example,
20130 # in the case of _POSIX_SOURCE, which is predefined and required
20131 # on some systems where configure will not decide to define it.
20132 if (defundef == "undef") {
20133 print "/*", prefix defundef, macro, "*/"
20134 next
20135 }
20136 }
20137 }
20138 { print }
20139 _ACAWK
20140 _ACEOF
20141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20142 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20143 fi # test -n "$CONFIG_HEADERS"
20144
20145
20146 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20147 shift
20148 for ac_tag
20149 do
20150 case $ac_tag in
20151 :[FHLC]) ac_mode=$ac_tag; continue;;
20152 esac
20153 case $ac_mode$ac_tag in
20154 :[FHL]*:*);;
20155 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20156 :[FH]-) ac_tag=-:-;;
20157 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20158 esac
20159 ac_save_IFS=$IFS
20160 IFS=:
20161 set x $ac_tag
20162 IFS=$ac_save_IFS
20163 shift
20164 ac_file=$1
20165 shift
20166
20167 case $ac_mode in
20168 :L) ac_source=$1;;
20169 :[FH])
20170 ac_file_inputs=
20171 for ac_f
20172 do
20173 case $ac_f in
20174 -) ac_f="$ac_tmp/stdin";;
20175 *) # Look for the file first in the build tree, then in the source tree
20176 # (if the path is not absolute). The absolute path cannot be DOS-style,
20177 # because $ac_f cannot contain `:'.
20178 test -f "$ac_f" ||
20179 case $ac_f in
20180 [\\/$]*) false;;
20181 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20182 esac ||
20183 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20184 esac
20185 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20186 as_fn_append ac_file_inputs " '$ac_f'"
20187 done
20188
20189 # Let's still pretend it is `configure' which instantiates (i.e., don't
20190 # use $as_me), people would be surprised to read:
20191 # /* config.h. Generated by config.status. */
20192 configure_input='Generated from '`
20193 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20194 `' by configure.'
20195 if test x"$ac_file" != x-; then
20196 configure_input="$ac_file. $configure_input"
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20198 $as_echo "$as_me: creating $ac_file" >&6;}
20199 fi
20200 # Neutralize special characters interpreted by sed in replacement strings.
20201 case $configure_input in #(
20202 *\&* | *\|* | *\\* )
20203 ac_sed_conf_input=`$as_echo "$configure_input" |
20204 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20205 *) ac_sed_conf_input=$configure_input;;
20206 esac
20207
20208 case $ac_tag in
20209 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20211 esac
20212 ;;
20213 esac
20214
20215 ac_dir=`$as_dirname -- "$ac_file" ||
20216 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20217 X"$ac_file" : 'X\(//\)[^/]' \| \
20218 X"$ac_file" : 'X\(//\)$' \| \
20219 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20220 $as_echo X"$ac_file" |
20221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20222 s//\1/
20223 q
20224 }
20225 /^X\(\/\/\)[^/].*/{
20226 s//\1/
20227 q
20228 }
20229 /^X\(\/\/\)$/{
20230 s//\1/
20231 q
20232 }
20233 /^X\(\/\).*/{
20234 s//\1/
20235 q
20236 }
20237 s/.*/./; q'`
20238 as_dir="$ac_dir"; as_fn_mkdir_p
20239 ac_builddir=.
20240
20241 case "$ac_dir" in
20242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20243 *)
20244 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20245 # A ".." for each directory in $ac_dir_suffix.
20246 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20247 case $ac_top_builddir_sub in
20248 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20249 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20250 esac ;;
20251 esac
20252 ac_abs_top_builddir=$ac_pwd
20253 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20254 # for backward compatibility:
20255 ac_top_builddir=$ac_top_build_prefix
20256
20257 case $srcdir in
20258 .) # We are building in place.
20259 ac_srcdir=.
20260 ac_top_srcdir=$ac_top_builddir_sub
20261 ac_abs_top_srcdir=$ac_pwd ;;
20262 [\\/]* | ?:[\\/]* ) # Absolute name.
20263 ac_srcdir=$srcdir$ac_dir_suffix;
20264 ac_top_srcdir=$srcdir
20265 ac_abs_top_srcdir=$srcdir ;;
20266 *) # Relative name.
20267 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20268 ac_top_srcdir=$ac_top_build_prefix$srcdir
20269 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20270 esac
20271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20272
20273
20274 case $ac_mode in
20275 :F)
20276 #
20277 # CONFIG_FILE
20278 #
20279
20280 case $INSTALL in
20281 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20282 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20283 esac
20284 ac_MKDIR_P=$MKDIR_P
20285 case $MKDIR_P in
20286 [\\/$]* | ?:[\\/]* ) ;;
20287 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20288 esac
20289 _ACEOF
20290
20291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20292 # If the template does not know about datarootdir, expand it.
20293 # FIXME: This hack should be removed a few years after 2.60.
20294 ac_datarootdir_hack=; ac_datarootdir_seen=
20295 ac_sed_dataroot='
20296 /datarootdir/ {
20297 p
20298 q
20299 }
20300 /@datadir@/p
20301 /@docdir@/p
20302 /@infodir@/p
20303 /@localedir@/p
20304 /@mandir@/p'
20305 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20306 *datarootdir*) ac_datarootdir_seen=yes;;
20307 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20309 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20310 _ACEOF
20311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20312 ac_datarootdir_hack='
20313 s&@datadir@&$datadir&g
20314 s&@docdir@&$docdir&g
20315 s&@infodir@&$infodir&g
20316 s&@localedir@&$localedir&g
20317 s&@mandir@&$mandir&g
20318 s&\\\${datarootdir}&$datarootdir&g' ;;
20319 esac
20320 _ACEOF
20321
20322 # Neutralize VPATH when `$srcdir' = `.'.
20323 # Shell code in configure.ac might set extrasub.
20324 # FIXME: do we really want to maintain this feature?
20325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20326 ac_sed_extra="$ac_vpsub
20327 $extrasub
20328 _ACEOF
20329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20330 :t
20331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20332 s|@configure_input@|$ac_sed_conf_input|;t t
20333 s&@top_builddir@&$ac_top_builddir_sub&;t t
20334 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20335 s&@srcdir@&$ac_srcdir&;t t
20336 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20337 s&@top_srcdir@&$ac_top_srcdir&;t t
20338 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20339 s&@builddir@&$ac_builddir&;t t
20340 s&@abs_builddir@&$ac_abs_builddir&;t t
20341 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20342 s&@INSTALL@&$ac_INSTALL&;t t
20343 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20344 $ac_datarootdir_hack
20345 "
20346 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20347 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20348
20349 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20350 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20351 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20352 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20354 which seems to be undefined. Please make sure it is defined" >&5
20355 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20356 which seems to be undefined. Please make sure it is defined" >&2;}
20357
20358 rm -f "$ac_tmp/stdin"
20359 case $ac_file in
20360 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20361 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20362 esac \
20363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20364 ;;
20365 :H)
20366 #
20367 # CONFIG_HEADER
20368 #
20369 if test x"$ac_file" != x-; then
20370 {
20371 $as_echo "/* $configure_input */" \
20372 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20373 } >"$ac_tmp/config.h" \
20374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20375 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20377 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20378 else
20379 rm -f "$ac_file"
20380 mv "$ac_tmp/config.h" "$ac_file" \
20381 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20382 fi
20383 else
20384 $as_echo "/* $configure_input */" \
20385 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20386 || as_fn_error $? "could not create -" "$LINENO" 5
20387 fi
20388 # Compute "$ac_file"'s index in $config_headers.
20389 _am_arg="$ac_file"
20390 _am_stamp_count=1
20391 for _am_header in $config_headers :; do
20392 case $_am_header in
20393 $_am_arg | $_am_arg:* )
20394 break ;;
20395 * )
20396 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20397 esac
20398 done
20399 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20400 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20401 X"$_am_arg" : 'X\(//\)[^/]' \| \
20402 X"$_am_arg" : 'X\(//\)$' \| \
20403 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20404 $as_echo X"$_am_arg" |
20405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20406 s//\1/
20407 q
20408 }
20409 /^X\(\/\/\)[^/].*/{
20410 s//\1/
20411 q
20412 }
20413 /^X\(\/\/\)$/{
20414 s//\1/
20415 q
20416 }
20417 /^X\(\/\).*/{
20418 s//\1/
20419 q
20420 }
20421 s/.*/./; q'`/stamp-h$_am_stamp_count
20422 ;;
20423
20424 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20425 $as_echo "$as_me: executing $ac_file commands" >&6;}
20426 ;;
20427 esac
20428
20429
20430 case $ac_file$ac_mode in
20431 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20432 # Older Autoconf quotes --file arguments for eval, but not when files
20433 # are listed without --file. Let's play safe and only enable the eval
20434 # if we detect the quoting.
20435 case $CONFIG_FILES in
20436 *\'*) eval set x "$CONFIG_FILES" ;;
20437 *) set x $CONFIG_FILES ;;
20438 esac
20439 shift
20440 for mf
20441 do
20442 # Strip MF so we end up with the name of the file.
20443 mf=`echo "$mf" | sed -e 's/:.*$//'`
20444 # Check whether this is an Automake generated Makefile or not.
20445 # We used to match only the files named 'Makefile.in', but
20446 # some people rename them; so instead we look at the file content.
20447 # Grep'ing the first line is not enough: some people post-process
20448 # each Makefile.in and add a new line on top of each file to say so.
20449 # Grep'ing the whole file is not good either: AIX grep has a line
20450 # limit of 2048, but all sed's we know have understand at least 4000.
20451 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20452 dirpart=`$as_dirname -- "$mf" ||
20453 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20454 X"$mf" : 'X\(//\)[^/]' \| \
20455 X"$mf" : 'X\(//\)$' \| \
20456 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20457 $as_echo X"$mf" |
20458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20459 s//\1/
20460 q
20461 }
20462 /^X\(\/\/\)[^/].*/{
20463 s//\1/
20464 q
20465 }
20466 /^X\(\/\/\)$/{
20467 s//\1/
20468 q
20469 }
20470 /^X\(\/\).*/{
20471 s//\1/
20472 q
20473 }
20474 s/.*/./; q'`
20475 else
20476 continue
20477 fi
20478 # Extract the definition of DEPDIR, am__include, and am__quote
20479 # from the Makefile without running 'make'.
20480 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20481 test -z "$DEPDIR" && continue
20482 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20483 test -z "$am__include" && continue
20484 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20485 # Find all dependency output files, they are included files with
20486 # $(DEPDIR) in their names. We invoke sed twice because it is the
20487 # simplest approach to changing $(DEPDIR) to its actual value in the
20488 # expansion.
20489 for file in `sed -n "
20490 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20491 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20492 # Make sure the directory exists.
20493 test -f "$dirpart/$file" && continue
20494 fdir=`$as_dirname -- "$file" ||
20495 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20496 X"$file" : 'X\(//\)[^/]' \| \
20497 X"$file" : 'X\(//\)$' \| \
20498 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20499 $as_echo X"$file" |
20500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20501 s//\1/
20502 q
20503 }
20504 /^X\(\/\/\)[^/].*/{
20505 s//\1/
20506 q
20507 }
20508 /^X\(\/\/\)$/{
20509 s//\1/
20510 q
20511 }
20512 /^X\(\/\).*/{
20513 s//\1/
20514 q
20515 }
20516 s/.*/./; q'`
20517 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20518 # echo "creating $dirpart/$file"
20519 echo '# dummy' > "$dirpart/$file"
20520 done
20521 done
20522 }
20523 ;;
20524 "libtool":C)
20525
20526 # See if we are running on zsh, and set the options which allow our
20527 # commands through without removal of \ escapes.
20528 if test -n "${ZSH_VERSION+set}" ; then
20529 setopt NO_GLOB_SUBST
20530 fi
20531
20532 cfgfile="${ofile}T"
20533 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20534 $RM "$cfgfile"
20535
20536 cat <<_LT_EOF >> "$cfgfile"
20537 #! $SHELL
20538
20539 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20540 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20541 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20542 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20543 #
20544 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20545 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20546 # Foundation, Inc.
20547 # Written by Gordon Matzigkeit, 1996
20548 #
20549 # This file is part of GNU Libtool.
20550 #
20551 # GNU Libtool is free software; you can redistribute it and/or
20552 # modify it under the terms of the GNU General Public License as
20553 # published by the Free Software Foundation; either version 2 of
20554 # the License, or (at your option) any later version.
20555 #
20556 # As a special exception to the GNU General Public License,
20557 # if you distribute this file as part of a program or library that
20558 # is built using GNU Libtool, you may include this file under the
20559 # same distribution terms that you use for the rest of that program.
20560 #
20561 # GNU Libtool is distributed in the hope that it will be useful,
20562 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20563 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20564 # GNU General Public License for more details.
20565 #
20566 # You should have received a copy of the GNU General Public License
20567 # along with GNU Libtool; see the file COPYING. If not, a copy
20568 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20569 # obtained by writing to the Free Software Foundation, Inc.,
20570 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20571
20572
20573 # The names of the tagged configurations supported by this script.
20574 available_tags="CXX "
20575
20576 # ### BEGIN LIBTOOL CONFIG
20577
20578 # Whether or not to build static libraries.
20579 build_old_libs=$enable_static
20580
20581 # Which release of libtool.m4 was used?
20582 macro_version=$macro_version
20583 macro_revision=$macro_revision
20584
20585 # Whether or not to build shared libraries.
20586 build_libtool_libs=$enable_shared
20587
20588 # What type of objects to build.
20589 pic_mode=$pic_mode
20590
20591 # Whether or not to optimize for fast installation.
20592 fast_install=$enable_fast_install
20593
20594 # Shell to use when invoking shell scripts.
20595 SHELL=$lt_SHELL
20596
20597 # An echo program that protects backslashes.
20598 ECHO=$lt_ECHO
20599
20600 # The PATH separator for the build system.
20601 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20602
20603 # The host system.
20604 host_alias=$host_alias
20605 host=$host
20606 host_os=$host_os
20607
20608 # The build system.
20609 build_alias=$build_alias
20610 build=$build
20611 build_os=$build_os
20612
20613 # A sed program that does not truncate output.
20614 SED=$lt_SED
20615
20616 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20617 Xsed="\$SED -e 1s/^X//"
20618
20619 # A grep program that handles long lines.
20620 GREP=$lt_GREP
20621
20622 # An ERE matcher.
20623 EGREP=$lt_EGREP
20624
20625 # A literal string matcher.
20626 FGREP=$lt_FGREP
20627
20628 # A BSD- or MS-compatible name lister.
20629 NM=$lt_NM
20630
20631 # Whether we need soft or hard links.
20632 LN_S=$lt_LN_S
20633
20634 # What is the maximum length of a command?
20635 max_cmd_len=$max_cmd_len
20636
20637 # Object file suffix (normally "o").
20638 objext=$ac_objext
20639
20640 # Executable file suffix (normally "").
20641 exeext=$exeext
20642
20643 # whether the shell understands "unset".
20644 lt_unset=$lt_unset
20645
20646 # turn spaces into newlines.
20647 SP2NL=$lt_lt_SP2NL
20648
20649 # turn newlines into spaces.
20650 NL2SP=$lt_lt_NL2SP
20651
20652 # convert \$build file names to \$host format.
20653 to_host_file_cmd=$lt_cv_to_host_file_cmd
20654
20655 # convert \$build files to toolchain format.
20656 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20657
20658 # An object symbol dumper.
20659 OBJDUMP=$lt_OBJDUMP
20660
20661 # Method to check whether dependent libraries are shared objects.
20662 deplibs_check_method=$lt_deplibs_check_method
20663
20664 # Command to use when deplibs_check_method = "file_magic".
20665 file_magic_cmd=$lt_file_magic_cmd
20666
20667 # How to find potential files when deplibs_check_method = "file_magic".
20668 file_magic_glob=$lt_file_magic_glob
20669
20670 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20671 want_nocaseglob=$lt_want_nocaseglob
20672
20673 # DLL creation program.
20674 DLLTOOL=$lt_DLLTOOL
20675
20676 # Command to associate shared and link libraries.
20677 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20678
20679 # The archiver.
20680 AR=$lt_AR
20681
20682 # Flags to create an archive.
20683 AR_FLAGS=$lt_AR_FLAGS
20684
20685 # How to feed a file listing to the archiver.
20686 archiver_list_spec=$lt_archiver_list_spec
20687
20688 # A symbol stripping program.
20689 STRIP=$lt_STRIP
20690
20691 # Commands used to install an old-style archive.
20692 RANLIB=$lt_RANLIB
20693 old_postinstall_cmds=$lt_old_postinstall_cmds
20694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20695
20696 # Whether to use a lock for old archive extraction.
20697 lock_old_archive_extraction=$lock_old_archive_extraction
20698
20699 # A C compiler.
20700 LTCC=$lt_CC
20701
20702 # LTCC compiler flags.
20703 LTCFLAGS=$lt_CFLAGS
20704
20705 # Take the output of nm and produce a listing of raw symbols and C names.
20706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20707
20708 # Transform the output of nm in a proper C declaration.
20709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20710
20711 # Transform the output of nm in a C name address pair.
20712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20713
20714 # Transform the output of nm in a C name address pair when lib prefix is needed.
20715 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20716
20717 # Specify filename containing input files for \$NM.
20718 nm_file_list_spec=$lt_nm_file_list_spec
20719
20720 # The root where to search for dependent libraries,and in which our libraries should be installed.
20721 lt_sysroot=$lt_sysroot
20722
20723 # The name of the directory that contains temporary libtool files.
20724 objdir=$objdir
20725
20726 # Used to examine libraries when file_magic_cmd begins with "file".
20727 MAGIC_CMD=$MAGIC_CMD
20728
20729 # Must we lock files when doing compilation?
20730 need_locks=$lt_need_locks
20731
20732 # Manifest tool.
20733 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20734
20735 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20736 DSYMUTIL=$lt_DSYMUTIL
20737
20738 # Tool to change global to local symbols on Mac OS X.
20739 NMEDIT=$lt_NMEDIT
20740
20741 # Tool to manipulate fat objects and archives on Mac OS X.
20742 LIPO=$lt_LIPO
20743
20744 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20745 OTOOL=$lt_OTOOL
20746
20747 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20748 OTOOL64=$lt_OTOOL64
20749
20750 # Old archive suffix (normally "a").
20751 libext=$libext
20752
20753 # Shared library suffix (normally ".so").
20754 shrext_cmds=$lt_shrext_cmds
20755
20756 # The commands to extract the exported symbol list from a shared archive.
20757 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20758
20759 # Variables whose values should be saved in libtool wrapper scripts and
20760 # restored at link time.
20761 variables_saved_for_relink=$lt_variables_saved_for_relink
20762
20763 # Do we need the "lib" prefix for modules?
20764 need_lib_prefix=$need_lib_prefix
20765
20766 # Do we need a version for libraries?
20767 need_version=$need_version
20768
20769 # Library versioning type.
20770 version_type=$version_type
20771
20772 # Shared library runtime path variable.
20773 runpath_var=$runpath_var
20774
20775 # Shared library path variable.
20776 shlibpath_var=$shlibpath_var
20777
20778 # Is shlibpath searched before the hard-coded library search path?
20779 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20780
20781 # Format of library name prefix.
20782 libname_spec=$lt_libname_spec
20783
20784 # List of archive names. First name is the real one, the rest are links.
20785 # The last name is the one that the linker finds with -lNAME
20786 library_names_spec=$lt_library_names_spec
20787
20788 # The coded name of the library, if different from the real name.
20789 soname_spec=$lt_soname_spec
20790
20791 # Permission mode override for installation of shared libraries.
20792 install_override_mode=$lt_install_override_mode
20793
20794 # Command to use after installation of a shared archive.
20795 postinstall_cmds=$lt_postinstall_cmds
20796
20797 # Command to use after uninstallation of a shared archive.
20798 postuninstall_cmds=$lt_postuninstall_cmds
20799
20800 # Commands used to finish a libtool library installation in a directory.
20801 finish_cmds=$lt_finish_cmds
20802
20803 # As "finish_cmds", except a single script fragment to be evaled but
20804 # not shown.
20805 finish_eval=$lt_finish_eval
20806
20807 # Whether we should hardcode library paths into libraries.
20808 hardcode_into_libs=$hardcode_into_libs
20809
20810 # Compile-time system search path for libraries.
20811 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20812
20813 # Run-time system search path for libraries.
20814 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20815
20816 # Whether dlopen is supported.
20817 dlopen_support=$enable_dlopen
20818
20819 # Whether dlopen of programs is supported.
20820 dlopen_self=$enable_dlopen_self
20821
20822 # Whether dlopen of statically linked programs is supported.
20823 dlopen_self_static=$enable_dlopen_self_static
20824
20825 # Commands to strip libraries.
20826 old_striplib=$lt_old_striplib
20827 striplib=$lt_striplib
20828
20829
20830 # The linker used to build libraries.
20831 LD=$lt_LD
20832
20833 # How to create reloadable object files.
20834 reload_flag=$lt_reload_flag
20835 reload_cmds=$lt_reload_cmds
20836
20837 # Commands used to build an old-style archive.
20838 old_archive_cmds=$lt_old_archive_cmds
20839
20840 # A language specific compiler.
20841 CC=$lt_compiler
20842
20843 # Is the compiler the GNU compiler?
20844 with_gcc=$GCC
20845
20846 # Compiler flag to turn off builtin functions.
20847 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20848
20849 # Additional compiler flags for building library objects.
20850 pic_flag=$lt_lt_prog_compiler_pic
20851
20852 # How to pass a linker flag through the compiler.
20853 wl=$lt_lt_prog_compiler_wl
20854
20855 # Compiler flag to prevent dynamic linking.
20856 link_static_flag=$lt_lt_prog_compiler_static
20857
20858 # Does compiler simultaneously support -c and -o options?
20859 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20860
20861 # Whether or not to add -lc for building shared libraries.
20862 build_libtool_need_lc=$archive_cmds_need_lc
20863
20864 # Whether or not to disallow shared libs when runtime libs are static.
20865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20866
20867 # Compiler flag to allow reflexive dlopens.
20868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20869
20870 # Compiler flag to generate shared objects directly from archives.
20871 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20872
20873 # Whether the compiler copes with passing no objects directly.
20874 compiler_needs_object=$lt_compiler_needs_object
20875
20876 # Create an old-style archive from a shared archive.
20877 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20878
20879 # Create a temporary old-style archive to link instead of a shared archive.
20880 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20881
20882 # Commands used to build a shared archive.
20883 archive_cmds=$lt_archive_cmds
20884 archive_expsym_cmds=$lt_archive_expsym_cmds
20885
20886 # Commands used to build a loadable module if different from building
20887 # a shared archive.
20888 module_cmds=$lt_module_cmds
20889 module_expsym_cmds=$lt_module_expsym_cmds
20890
20891 # Whether we are building with GNU ld or not.
20892 with_gnu_ld=$lt_with_gnu_ld
20893
20894 # Flag that allows shared libraries with undefined symbols to be built.
20895 allow_undefined_flag=$lt_allow_undefined_flag
20896
20897 # Flag that enforces no undefined symbols.
20898 no_undefined_flag=$lt_no_undefined_flag
20899
20900 # Flag to hardcode \$libdir into a binary during linking.
20901 # This must work even if \$libdir does not exist
20902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20903
20904 # Whether we need a single "-rpath" flag with a separated argument.
20905 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20906
20907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20908 # DIR into the resulting binary.
20909 hardcode_direct=$hardcode_direct
20910
20911 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20912 # DIR into the resulting binary and the resulting library dependency is
20913 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20914 # library is relocated.
20915 hardcode_direct_absolute=$hardcode_direct_absolute
20916
20917 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20918 # into the resulting binary.
20919 hardcode_minus_L=$hardcode_minus_L
20920
20921 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20922 # into the resulting binary.
20923 hardcode_shlibpath_var=$hardcode_shlibpath_var
20924
20925 # Set to "yes" if building a shared library automatically hardcodes DIR
20926 # into the library and all subsequent libraries and executables linked
20927 # against it.
20928 hardcode_automatic=$hardcode_automatic
20929
20930 # Set to yes if linker adds runtime paths of dependent libraries
20931 # to runtime path list.
20932 inherit_rpath=$inherit_rpath
20933
20934 # Whether libtool must link a program against all its dependency libraries.
20935 link_all_deplibs=$link_all_deplibs
20936
20937 # Set to "yes" if exported symbols are required.
20938 always_export_symbols=$always_export_symbols
20939
20940 # The commands to list exported symbols.
20941 export_symbols_cmds=$lt_export_symbols_cmds
20942
20943 # Symbols that should not be listed in the preloaded symbols.
20944 exclude_expsyms=$lt_exclude_expsyms
20945
20946 # Symbols that must always be exported.
20947 include_expsyms=$lt_include_expsyms
20948
20949 # Commands necessary for linking programs (against libraries) with templates.
20950 prelink_cmds=$lt_prelink_cmds
20951
20952 # Commands necessary for finishing linking programs.
20953 postlink_cmds=$lt_postlink_cmds
20954
20955 # Specify filename containing input files.
20956 file_list_spec=$lt_file_list_spec
20957
20958 # How to hardcode a shared library path into an executable.
20959 hardcode_action=$hardcode_action
20960
20961 # The directories searched by this compiler when creating a shared library.
20962 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20963
20964 # Dependencies to place before and after the objects being linked to
20965 # create a shared library.
20966 predep_objects=$lt_predep_objects
20967 postdep_objects=$lt_postdep_objects
20968 predeps=$lt_predeps
20969 postdeps=$lt_postdeps
20970
20971 # The library search path used internally by the compiler when linking
20972 # a shared library.
20973 compiler_lib_search_path=$lt_compiler_lib_search_path
20974
20975 # ### END LIBTOOL CONFIG
20976
20977 _LT_EOF
20978
20979 case $host_os in
20980 aix3*)
20981 cat <<\_LT_EOF >> "$cfgfile"
20982 # AIX sometimes has problems with the GCC collect2 program. For some
20983 # reason, if we set the COLLECT_NAMES environment variable, the problems
20984 # vanish in a puff of smoke.
20985 if test "X${COLLECT_NAMES+set}" != Xset; then
20986 COLLECT_NAMES=
20987 export COLLECT_NAMES
20988 fi
20989 _LT_EOF
20990 ;;
20991 esac
20992
20993
20994 ltmain="$ac_aux_dir/ltmain.sh"
20995
20996
20997 # We use sed instead of cat because bash on DJGPP gets confused if
20998 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20999 # text mode, it properly converts lines to CR/LF. This bash problem
21000 # is reportedly fixed, but why not run on old versions too?
21001 sed '$q' "$ltmain" >> "$cfgfile" \
21002 || (rm -f "$cfgfile"; exit 1)
21003
21004 if test x"$xsi_shell" = xyes; then
21005 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21006 func_dirname ()\
21007 {\
21008 \ case ${1} in\
21009 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21010 \ * ) func_dirname_result="${3}" ;;\
21011 \ esac\
21012 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21013 && mv -f "$cfgfile.tmp" "$cfgfile" \
21014 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21015 test 0 -eq $? || _lt_function_replace_fail=:
21016
21017
21018 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21019 func_basename ()\
21020 {\
21021 \ func_basename_result="${1##*/}"\
21022 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21023 && mv -f "$cfgfile.tmp" "$cfgfile" \
21024 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21025 test 0 -eq $? || _lt_function_replace_fail=:
21026
21027
21028 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21029 func_dirname_and_basename ()\
21030 {\
21031 \ case ${1} in\
21032 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21033 \ * ) func_dirname_result="${3}" ;;\
21034 \ esac\
21035 \ func_basename_result="${1##*/}"\
21036 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21037 && mv -f "$cfgfile.tmp" "$cfgfile" \
21038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21039 test 0 -eq $? || _lt_function_replace_fail=:
21040
21041
21042 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21043 func_stripname ()\
21044 {\
21045 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21046 \ # positional parameters, so assign one to ordinary parameter first.\
21047 \ func_stripname_result=${3}\
21048 \ func_stripname_result=${func_stripname_result#"${1}"}\
21049 \ func_stripname_result=${func_stripname_result%"${2}"}\
21050 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21051 && mv -f "$cfgfile.tmp" "$cfgfile" \
21052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21053 test 0 -eq $? || _lt_function_replace_fail=:
21054
21055
21056 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21057 func_split_long_opt ()\
21058 {\
21059 \ func_split_long_opt_name=${1%%=*}\
21060 \ func_split_long_opt_arg=${1#*=}\
21061 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21062 && mv -f "$cfgfile.tmp" "$cfgfile" \
21063 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21064 test 0 -eq $? || _lt_function_replace_fail=:
21065
21066
21067 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21068 func_split_short_opt ()\
21069 {\
21070 \ func_split_short_opt_arg=${1#??}\
21071 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21072 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21073 && mv -f "$cfgfile.tmp" "$cfgfile" \
21074 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21075 test 0 -eq $? || _lt_function_replace_fail=:
21076
21077
21078 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21079 func_lo2o ()\
21080 {\
21081 \ case ${1} in\
21082 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21083 \ *) func_lo2o_result=${1} ;;\
21084 \ esac\
21085 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21086 && mv -f "$cfgfile.tmp" "$cfgfile" \
21087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21088 test 0 -eq $? || _lt_function_replace_fail=:
21089
21090
21091 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21092 func_xform ()\
21093 {\
21094 func_xform_result=${1%.*}.lo\
21095 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21096 && mv -f "$cfgfile.tmp" "$cfgfile" \
21097 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21098 test 0 -eq $? || _lt_function_replace_fail=:
21099
21100
21101 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21102 func_arith ()\
21103 {\
21104 func_arith_result=$(( $* ))\
21105 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21106 && mv -f "$cfgfile.tmp" "$cfgfile" \
21107 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21108 test 0 -eq $? || _lt_function_replace_fail=:
21109
21110
21111 sed -e '/^func_len ()$/,/^} # func_len /c\
21112 func_len ()\
21113 {\
21114 func_len_result=${#1}\
21115 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21116 && mv -f "$cfgfile.tmp" "$cfgfile" \
21117 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21118 test 0 -eq $? || _lt_function_replace_fail=:
21119
21120 fi
21121
21122 if test x"$lt_shell_append" = xyes; then
21123 sed -e '/^func_append ()$/,/^} # func_append /c\
21124 func_append ()\
21125 {\
21126 eval "${1}+=\\${2}"\
21127 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21128 && mv -f "$cfgfile.tmp" "$cfgfile" \
21129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21130 test 0 -eq $? || _lt_function_replace_fail=:
21131
21132
21133 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21134 func_append_quoted ()\
21135 {\
21136 \ func_quote_for_eval "${2}"\
21137 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21138 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21139 && mv -f "$cfgfile.tmp" "$cfgfile" \
21140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21141 test 0 -eq $? || _lt_function_replace_fail=:
21142
21143
21144 # Save a `func_append' function call where possible by direct use of '+='
21145 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21146 && mv -f "$cfgfile.tmp" "$cfgfile" \
21147 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21148 test 0 -eq $? || _lt_function_replace_fail=:
21149 else
21150 # Save a `func_append' function call even when '+=' is not available
21151 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21152 && mv -f "$cfgfile.tmp" "$cfgfile" \
21153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21154 test 0 -eq $? || _lt_function_replace_fail=:
21155 fi
21156
21157 if test x"$_lt_function_replace_fail" = x":"; then
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21159 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21160 fi
21161
21162
21163 mv -f "$cfgfile" "$ofile" ||
21164 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21165 chmod +x "$ofile"
21166
21167
21168 cat <<_LT_EOF >> "$ofile"
21169
21170 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21171
21172 # The linker used to build libraries.
21173 LD=$lt_LD_CXX
21174
21175 # How to create reloadable object files.
21176 reload_flag=$lt_reload_flag_CXX
21177 reload_cmds=$lt_reload_cmds_CXX
21178
21179 # Commands used to build an old-style archive.
21180 old_archive_cmds=$lt_old_archive_cmds_CXX
21181
21182 # A language specific compiler.
21183 CC=$lt_compiler_CXX
21184
21185 # Is the compiler the GNU compiler?
21186 with_gcc=$GCC_CXX
21187
21188 # Compiler flag to turn off builtin functions.
21189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21190
21191 # Additional compiler flags for building library objects.
21192 pic_flag=$lt_lt_prog_compiler_pic_CXX
21193
21194 # How to pass a linker flag through the compiler.
21195 wl=$lt_lt_prog_compiler_wl_CXX
21196
21197 # Compiler flag to prevent dynamic linking.
21198 link_static_flag=$lt_lt_prog_compiler_static_CXX
21199
21200 # Does compiler simultaneously support -c and -o options?
21201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21202
21203 # Whether or not to add -lc for building shared libraries.
21204 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21205
21206 # Whether or not to disallow shared libs when runtime libs are static.
21207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21208
21209 # Compiler flag to allow reflexive dlopens.
21210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21211
21212 # Compiler flag to generate shared objects directly from archives.
21213 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21214
21215 # Whether the compiler copes with passing no objects directly.
21216 compiler_needs_object=$lt_compiler_needs_object_CXX
21217
21218 # Create an old-style archive from a shared archive.
21219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21220
21221 # Create a temporary old-style archive to link instead of a shared archive.
21222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21223
21224 # Commands used to build a shared archive.
21225 archive_cmds=$lt_archive_cmds_CXX
21226 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21227
21228 # Commands used to build a loadable module if different from building
21229 # a shared archive.
21230 module_cmds=$lt_module_cmds_CXX
21231 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21232
21233 # Whether we are building with GNU ld or not.
21234 with_gnu_ld=$lt_with_gnu_ld_CXX
21235
21236 # Flag that allows shared libraries with undefined symbols to be built.
21237 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21238
21239 # Flag that enforces no undefined symbols.
21240 no_undefined_flag=$lt_no_undefined_flag_CXX
21241
21242 # Flag to hardcode \$libdir into a binary during linking.
21243 # This must work even if \$libdir does not exist
21244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21245
21246 # Whether we need a single "-rpath" flag with a separated argument.
21247 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21248
21249 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21250 # DIR into the resulting binary.
21251 hardcode_direct=$hardcode_direct_CXX
21252
21253 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21254 # DIR into the resulting binary and the resulting library dependency is
21255 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21256 # library is relocated.
21257 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21258
21259 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21260 # into the resulting binary.
21261 hardcode_minus_L=$hardcode_minus_L_CXX
21262
21263 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21264 # into the resulting binary.
21265 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21266
21267 # Set to "yes" if building a shared library automatically hardcodes DIR
21268 # into the library and all subsequent libraries and executables linked
21269 # against it.
21270 hardcode_automatic=$hardcode_automatic_CXX
21271
21272 # Set to yes if linker adds runtime paths of dependent libraries
21273 # to runtime path list.
21274 inherit_rpath=$inherit_rpath_CXX
21275
21276 # Whether libtool must link a program against all its dependency libraries.
21277 link_all_deplibs=$link_all_deplibs_CXX
21278
21279 # Set to "yes" if exported symbols are required.
21280 always_export_symbols=$always_export_symbols_CXX
21281
21282 # The commands to list exported symbols.
21283 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21284
21285 # Symbols that should not be listed in the preloaded symbols.
21286 exclude_expsyms=$lt_exclude_expsyms_CXX
21287
21288 # Symbols that must always be exported.
21289 include_expsyms=$lt_include_expsyms_CXX
21290
21291 # Commands necessary for linking programs (against libraries) with templates.
21292 prelink_cmds=$lt_prelink_cmds_CXX
21293
21294 # Commands necessary for finishing linking programs.
21295 postlink_cmds=$lt_postlink_cmds_CXX
21296
21297 # Specify filename containing input files.
21298 file_list_spec=$lt_file_list_spec_CXX
21299
21300 # How to hardcode a shared library path into an executable.
21301 hardcode_action=$hardcode_action_CXX
21302
21303 # The directories searched by this compiler when creating a shared library.
21304 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21305
21306 # Dependencies to place before and after the objects being linked to
21307 # create a shared library.
21308 predep_objects=$lt_predep_objects_CXX
21309 postdep_objects=$lt_postdep_objects_CXX
21310 predeps=$lt_predeps_CXX
21311 postdeps=$lt_postdeps_CXX
21312
21313 # The library search path used internally by the compiler when linking
21314 # a shared library.
21315 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21316
21317 # ### END LIBTOOL TAG CONFIG: CXX
21318 _LT_EOF
21319
21320 ;;
21321 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
21322 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
21323 esac ;;
21324 "po/stamp-it":C)
21325 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
21326 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
21327 fi
21328 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
21329 >"po/stamp-it.tmp"
21330 sed '/^#/d
21331 s/^[[].*] *//
21332 /^[ ]*$/d
21333 '"s|^| $ac_top_srcdir/|" \
21334 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
21335
21336 sed '/^POTFILES =/,/[^\\]$/ {
21337 /^POTFILES =/!d
21338 r po/POTFILES
21339 }
21340 ' "po/Makefile.in" >"po/Makefile"
21341 rm -f "po/Makefile.tmp"
21342 mv "po/stamp-it.tmp" "po/stamp-it"
21343 ;;
21344
21345 esac
21346 done # for ac_tag
21347
21348
21349 as_fn_exit 0
21350 _ACEOF
21351 ac_clean_files=$ac_clean_files_save
21352
21353 test $ac_write_fail = 0 ||
21354 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21355
21356
21357 # configure is writing to config.log, and then calls config.status.
21358 # config.status does its own redirection, appending to config.log.
21359 # Unfortunately, on DOS this fails, as config.log is still kept open
21360 # by configure, so config.status won't be able to write to it; its
21361 # output is simply discarded. So we exec the FD to /dev/null,
21362 # effectively closing config.log, so it can be properly (re)opened and
21363 # appended to by config.status. When coming back to configure, we
21364 # need to make the FD available again.
21365 if test "$no_create" != yes; then
21366 ac_cs_success=:
21367 ac_config_status_args=
21368 test "$silent" = yes &&
21369 ac_config_status_args="$ac_config_status_args --quiet"
21370 exec 5>/dev/null
21371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21372 exec 5>>config.log
21373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21374 # would make configure fail if this is the last instruction.
21375 $ac_cs_success || as_fn_exit 1
21376 fi
21377 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21379 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21380 fi
21381
21382 echo "
21383 ibus-input-pad version 1.4.2
21384
21385
21386 libinput_pad version: $libinput_pad_VERSION
21387 GTK+ version: $with_gtk
21388 "
11 #
22 # ibus-input-pad - Input pad for IBus
33 #
4 # Copyright (c) 2010-2013 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010-2013 Red Hat, Inc.
4 # Copyright (c) 2010-2014 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010-2014 Red Hat, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
1919 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2020
2121 dnl - if not 1, append datestamp to the version number.
22 m4_define([ibus_released], [1])
22 m4_define([ibus_released], [0])
2323 m4_define([ibus_major_version], [1])
2424 m4_define([ibus_minor_version], [4])
25 m4_define([ibus_micro_version], [2])
25 m4_define([ibus_micro_version], [99])
26 m4_define([pad_abi_current], [1])
2627 m4_define(ibus_maybe_datestamp,
2728 m4_esyscmd([if test x]ibus_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi]))
2829
3738 AC_CONFIG_MACRO_DIR([m4])
3839
3940 dnl - VERSION
40 libinput_pad_VERSION="ibus_major_version.ibus_minor_version"
41 libinput_pad_VERSION="ibus_major_version.pad_abi_current"
4142 AC_SUBST(libinput_pad_VERSION)
4243 AC_MSG_NOTICE([$PACKAGE sub version $libinput_pad_VERSION])
4344
5960 AC_SUBST(DATE_DISPLAY)
6061
6162 dnl - pkgconfig
62 AM_PATH_GLIB_2_0
63 AM_PATH_GLIB_2_0(2.37.0)
6364 PKG_CHECK_MODULES(GLIB2, [
64 glib-2.0 >= 2.8
65 glib-2.0 >= 2.37
6566 ])
6667
67 dnl - check gtk
68 AC_ARG_WITH([gtk],
69 [AS_HELP_STRING([--with-gtk=2.0|3.0],
70 [Select GTK+ version. The default is 3.0])],
71 [case "$with_gtk" in
72 2.0|3.0) ;;
73 *) AC_MSG_ERROR([invalid gtk version specified]) ;;
74 esac],
75 [with_gtk=3.0]
76 )
68 PKG_CHECK_MODULES(GTK3, [
69 gtk+-3.0 >= 3.10
70 ])
7771
78 case "$with_gtk" in
79 2.0)
80 PKG_CHECK_MODULES(GTK2, [
81 gtk+-2.0
82 ])
83 AM_CONDITIONAL(HAVE_GTK3, false)
84 AM_CONDITIONAL(HAVE_GTK2, true)
85 ;;
86 3.0)
87 PKG_CHECK_MODULES(GTK3, [
88 gtk+-3.0
89 ])
90 AM_CONDITIONAL(HAVE_GTK3, true)
91 AM_CONDITIONAL(HAVE_GTK2, false)
92 ;;
93 esac
94
95 m4_define([ibus_pc_name], [ibus-1.0])
9672 PKG_CHECK_MODULES(IBUS,
97 [ibus_pc_name >= 1.2.0.20100111],
98 [AC_MSG_NOTICE([IBUS version is ok])],
99 [PKG_CHECK_MODULES(IBUS, ibus_pc_name)
100 AC_MSG_NOTICE([IBUS version is old])
101 AC_DEFINE(IBUS_DEPRECATED_LANGUAGE_MENU_ITEM, 1, [Define if old ibus])]
73 ibus-1.0 >= 1.5.3
10274 )
10375
10476 PKG_CHECK_MODULES(INPUT_PAD, [
105 input-pad
77 input-pad >= 1.0.99
10678 ])
79
80 dnl - set ibus-input-pad layout
81 AC_ARG_WITH(layout,
82 [AC_HELP_STRING([--with-layout=LAYOUT],
83 [Define the layout. the default is 'default'.
84 You could set 'us'.])],
85 [LAYOUT="$withval"],
86 [LAYOUT="default"])
87 if test x"$LAYOUT" = x; then
88 LAYOUT="default"
89 fi
90 LAYOUT_XML="<layout>${LAYOUT}</layout>"
91 AC_SUBST(LAYOUT_XML)
10792
10893 dnl - define GETTEXT_* variables
10994 GETTEXT_PACKAGE=ibus-input-pad
127112
128113
129114 libinput_pad version: $libinput_pad_VERSION
130 GTK+ version: $with_gtk
115 engine layout: $LAYOUT
131116 "
+0
-791
depcomp less more
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that program.
24
25 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
26
27 case $1 in
28 '')
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
32 -h | --h*)
33 cat <<\EOF
34 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
35
36 Run PROGRAMS ARGS to compile a file, generating dependencies
37 as side-effects.
38
39 Environment variables:
40 depmode Dependency tracking mode.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
43 DEPDIR directory where to store dependencies.
44 depfile Dependency file to output.
45 tmpdepfile Temporary file to use when outputting dependencies.
46 libtool Whether libtool is used (yes/no).
47
48 Report bugs to <bug-automake@gnu.org>.
49 EOF
50 exit $?
51 ;;
52 -v | --v*)
53 echo "depcomp $scriptversion"
54 exit $?
55 ;;
56 esac
57
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
120 exit 1
121 fi
122
123 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
124 depfile=${depfile-`echo "$object" |
125 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
127
128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
132
133 # Some modes work just like other modes, but use different flags. We
134 # parameterize here, but still list the modes in the big case below,
135 # to make depend.m4 easier to write. Note that we *cannot* use a case
136 # here, because this file can only contain one case statement.
137 if test "$depmode" = hp; then
138 # HP compiler uses -M and no extra arg.
139 gccflag=-M
140 depmode=gcc
141 fi
142
143 if test "$depmode" = dashXmstdout; then
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
147 fi
148
149 cygpath_u="cygpath -u -f -"
150 if test "$depmode" = msvcmsys; then
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
156 fi
157
158 if test "$depmode" = msvc7msys; then
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
170 fi
171
172 case "$depmode" in
173 gcc3)
174 ## gcc 3 implements dependency tracking that does exactly what
175 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
176 ## it if -MD -MP comes after the -MF stuff. Hmm.
177 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
178 ## the command line argument order; so add the flags where they
179 ## appear in depend2.am. Note that the slowdown incurred here
180 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
181 for arg
182 do
183 case $arg in
184 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
185 *) set fnord "$@" "$arg" ;;
186 esac
187 shift # fnord
188 shift # $arg
189 done
190 "$@"
191 stat=$?
192 if test $stat -ne 0; then
193 rm -f "$tmpdepfile"
194 exit $stat
195 fi
196 mv "$tmpdepfile" "$depfile"
197 ;;
198
199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
203 ## There are various ways to get dependency output from gcc. Here's
204 ## why we pick this rather obscure method:
205 ## - Don't want to use -MD because we'd like the dependencies to end
206 ## up in a subdir. Having to rename by hand is ugly.
207 ## (We might end up doing this anyway to support other compilers.)
208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
211 ## - Using -M directly means running the compiler twice (even worse
212 ## than renaming).
213 if test -z "$gccflag"; then
214 gccflag=-MD,
215 fi
216 "$@" -Wp,"$gccflag$tmpdepfile"
217 stat=$?
218 if test $stat -ne 0; then
219 rm -f "$tmpdepfile"
220 exit $stat
221 fi
222 rm -f "$depfile"
223 echo "$object : \\" > "$depfile"
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
226 sed -e 's/^[^:]*: / /' \
227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
228 ## This next piece of magic avoids the "deleted header file" problem.
229 ## The problem is that when a header file which appears in a .P file
230 ## is deleted, the dependency causes make to die (because there is
231 ## typically no way to rebuild the header). We avoid this by adding
232 ## dummy dependencies for each header file. Too bad gcc doesn't do
233 ## this for us directly.
234 ## Some versions of gcc put a space before the ':'. On the theory
235 ## that the space means something, we add a space to the output as
236 ## well. hp depmode also adds that space, but also prefixes the VPATH
237 ## to the object. Take care to not repeat it in the output.
238 ## Some versions of the HPUX 10.20 sed can't process this invocation
239 ## correctly. Breaking it into two sed invocations is a workaround.
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
243 rm -f "$tmpdepfile"
244 ;;
245
246 hp)
247 # This case exists only to let depend.m4 do its work. It works by
248 # looking at the text of this script. This case will never be run,
249 # since it is checked for above.
250 exit 1
251 ;;
252
253 sgi)
254 if test "$libtool" = yes; then
255 "$@" "-Wp,-MDupdate,$tmpdepfile"
256 else
257 "$@" -MDupdate "$tmpdepfile"
258 fi
259 stat=$?
260 if test $stat -ne 0; then
261 rm -f "$tmpdepfile"
262 exit $stat
263 fi
264 rm -f "$depfile"
265
266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
267 echo "$object : \\" > "$depfile"
268 # Clip off the initial element (the dependent). Don't try to be
269 # clever and replace this with sed code, as IRIX sed won't handle
270 # lines with more than a fixed number of characters (4096 in
271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
272 # the IRIX cc adds comments like '#:fec' to the end of the
273 # dependency line.
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
277 echo >> "$depfile"
278 # The second pass generates a dummy entry for each header file.
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
282 else
283 make_dummy_depfile
284 fi
285 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
293 ;;
294
295 aix)
296 # The C for AIX Compiler uses -M and outputs the dependencies
297 # in a .u file. In older versions, this file always lives in the
298 # current directory. Also, the AIX compiler puts '$object:' at the
299 # start of each line; $object doesn't have directory information.
300 # Version 6 uses the directory in both cases.
301 set_dir_from "$object"
302 set_base_from "$object"
303 if test "$libtool" = yes; then
304 tmpdepfile1=$dir$base.u
305 tmpdepfile2=$base.u
306 tmpdepfile3=$dir.libs/$base.u
307 "$@" -Wc,-M
308 else
309 tmpdepfile1=$dir$base.u
310 tmpdepfile2=$dir$base.u
311 tmpdepfile3=$dir$base.u
312 "$@" -M
313 fi
314 stat=$?
315 if test $stat -ne 0; then
316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
317 exit $stat
318 fi
319
320 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
321 do
322 test -f "$tmpdepfile" && break
323 done
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
355 rm -f "$tmpdepfile"
356 ;;
357
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
368 # foo.o: sub/foo.c sub/foo.h
369 # and will wrap long lines using '\' :
370 # foo.o: sub/foo.c ... \
371 # sub/foo.h ... \
372 # ...
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
418 rm -f "$tmpdepfile"
419 exit $stat
420 fi
421 rm -f "$depfile"
422 # Each line is of the form `foo.o: dependent.h',
423 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
424 # Do two passes, one to just change these to
425 # `$object: dependent.h' and one to simply `dependent.h:'.
426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
427 # Some versions of the HPUX 10.20 sed can't process this invocation
428 # correctly. Breaking it into two sed invocations is a workaround.
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
431 rm -f "$tmpdepfile"
432 ;;
433
434 hp2)
435 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
436 # compilers, which have integrated preprocessors. The correct option
437 # to use with these is +Maked; it writes dependencies to a file named
438 # 'foo.d', which lands next to the object file, wherever that
439 # happens to be.
440 # Much of this is similar to the tru64 case; see comments there.
441 set_dir_from "$object"
442 set_base_from "$object"
443 if test "$libtool" = yes; then
444 tmpdepfile1=$dir$base.d
445 tmpdepfile2=$dir.libs/$base.d
446 "$@" -Wc,+Maked
447 else
448 tmpdepfile1=$dir$base.d
449 tmpdepfile2=$dir$base.d
450 "$@" +Maked
451 fi
452 stat=$?
453 if test $stat -ne 0; then
454 rm -f "$tmpdepfile1" "$tmpdepfile2"
455 exit $stat
456 fi
457
458 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
459 do
460 test -f "$tmpdepfile" && break
461 done
462 if test -f "$tmpdepfile"; then
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
465 sed -ne '2,${
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
471 else
472 make_dummy_depfile
473 fi
474 rm -f "$tmpdepfile" "$tmpdepfile2"
475 ;;
476
477 tru64)
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
518
519 msvc7)
520 if test "$libtool" = yes; then
521 showIncludes=-Wc,-showIncludes
522 else
523 showIncludes=-showIncludes
524 fi
525 "$@" $showIncludes > "$tmpdepfile"
526 stat=$?
527 grep -v '^Note: including file: ' "$tmpdepfile"
528 if test $stat -ne 0; then
529 rm -f "$tmpdepfile"
530 exit $stat
531 fi
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 # The first sed program below extracts the file names and escapes
535 # backslashes for cygpath. The second sed program outputs the file
536 # name when reading, but also accumulates all include files in the
537 # hold buffer in order to output them again at the end. This only
538 # works with sed implementations that can handle large buffers.
539 sed < "$tmpdepfile" -n '
540 /^Note: including file: *\(.*\)/ {
541 s//\1/
542 s/\\/\\\\/g
543 p
544 }' | $cygpath_u | sort -u | sed -n '
545 s/ /\\ /g
546 s/\(.*\)/'"$tab"'\1 \\/p
547 s/.\(.*\) \\/\1:/
548 H
549 $ {
550 s/.*/'"$tab"'/
551 G
552 p
553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
555 rm -f "$tmpdepfile"
556 ;;
557
558 msvc7msys)
559 # This case exists only to let depend.m4 do its work. It works by
560 # looking at the text of this script. This case will never be run,
561 # since it is checked for above.
562 exit 1
563 ;;
564
565 #nosideeffect)
566 # This comment above is used by automake to tell side-effect
567 # dependency tracking mechanisms from slower ones.
568
569 dashmstdout)
570 # Important note: in order to support this mode, a compiler *must*
571 # always write the preprocessed file to stdout, regardless of -o.
572 "$@" || exit $?
573
574 # Remove the call to Libtool.
575 if test "$libtool" = yes; then
576 while test "X$1" != 'X--mode=compile'; do
577 shift
578 done
579 shift
580 fi
581
582 # Remove '-o $object'.
583 IFS=" "
584 for arg
585 do
586 case $arg in
587 -o)
588 shift
589 ;;
590 $object)
591 shift
592 ;;
593 *)
594 set fnord "$@" "$arg"
595 shift # fnord
596 shift # $arg
597 ;;
598 esac
599 done
600
601 test -z "$dashmflag" && dashmflag=-M
602 # Require at least two characters before searching for ':'
603 # in the target name. This is to cope with DOS-style filenames:
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
605 "$@" $dashmflag |
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
607 rm -f "$depfile"
608 cat < "$tmpdepfile" > "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
614 rm -f "$tmpdepfile"
615 ;;
616
617 dashXmstdout)
618 # This case only exists to satisfy depend.m4. It is never actually
619 # run, as this mode is specially recognized in the preamble.
620 exit 1
621 ;;
622
623 makedepend)
624 "$@" || exit $?
625 # Remove any Libtool call
626 if test "$libtool" = yes; then
627 while test "X$1" != 'X--mode=compile'; do
628 shift
629 done
630 shift
631 fi
632 # X makedepend
633 shift
634 cleared=no eat=no
635 for arg
636 do
637 case $cleared in
638 no)
639 set ""; shift
640 cleared=yes ;;
641 esac
642 if test $eat = yes; then
643 eat=no
644 continue
645 fi
646 case "$arg" in
647 -D*|-I*)
648 set fnord "$@" "$arg"; shift ;;
649 # Strip any option that makedepend may not understand. Remove
650 # the object too, otherwise makedepend will parse it as a source file.
651 -arch)
652 eat=yes ;;
653 -*|$object)
654 ;;
655 *)
656 set fnord "$@" "$arg"; shift ;;
657 esac
658 done
659 obj_suffix=`echo "$object" | sed 's/^.*\././'`
660 touch "$tmpdepfile"
661 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
662 rm -f "$depfile"
663 # makedepend may prepend the VPATH from the source file name to the object.
664 # No need to regex-escape $object, excess matching of '.' is harmless.
665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
672 rm -f "$tmpdepfile" "$tmpdepfile".bak
673 ;;
674
675 cpp)
676 # Important note: in order to support this mode, a compiler *must*
677 # always write the preprocessed file to stdout.
678 "$@" || exit $?
679
680 # Remove the call to Libtool.
681 if test "$libtool" = yes; then
682 while test "X$1" != 'X--mode=compile'; do
683 shift
684 done
685 shift
686 fi
687
688 # Remove '-o $object'.
689 IFS=" "
690 for arg
691 do
692 case $arg in
693 -o)
694 shift
695 ;;
696 $object)
697 shift
698 ;;
699 *)
700 set fnord "$@" "$arg"
701 shift # fnord
702 shift # $arg
703 ;;
704 esac
705 done
706
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
711 rm -f "$depfile"
712 echo "$object : \\" > "$depfile"
713 cat < "$tmpdepfile" >> "$depfile"
714 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
715 rm -f "$tmpdepfile"
716 ;;
717
718 msvisualcpp)
719 # Important note: in order to support this mode, a compiler *must*
720 # always write the preprocessed file to stdout.
721 "$@" || exit $?
722
723 # Remove the call to Libtool.
724 if test "$libtool" = yes; then
725 while test "X$1" != 'X--mode=compile'; do
726 shift
727 done
728 shift
729 fi
730
731 IFS=" "
732 for arg
733 do
734 case "$arg" in
735 -o)
736 shift
737 ;;
738 $object)
739 shift
740 ;;
741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
742 set fnord "$@"
743 shift
744 shift
745 ;;
746 *)
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
751 esac
752 done
753 "$@" -E 2>/dev/null |
754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
755 rm -f "$depfile"
756 echo "$object : \\" > "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
760 rm -f "$tmpdepfile"
761 ;;
762
763 msvcmsys)
764 # This case exists only to let depend.m4 do its work. It works by
765 # looking at the text of this script. This case will never be run,
766 # since it is checked for above.
767 exit 1
768 ;;
769
770 none)
771 exec "$@"
772 ;;
773
774 *)
775 echo "Unknown depmode $depmode" 1>&2
776 exit 1
777 ;;
778 esac
779
780 exit 0
781
782 # Local Variables:
783 # mode: shell-script
784 # sh-indentation: 2
785 # eval: (add-hook 'write-file-hooks 'time-stamp)
786 # time-stamp-start: "scriptversion="
787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC"
789 # time-stamp-end: "; # UTC"
790 # End:
11 #
22 # ibus-input-pad - Input pad for IBus
33 #
4 # Copyright (c) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010-2011 Red Hat, Inc.
4 # Copyright (c) 2010-2014 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010-2014 Red Hat, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
6565 -e "s|\@VERSION\@|$(VERSION)|g" \
6666 -e "s|\@datarootdir\@|$(datarootdir)|g" \
6767 -e "s|\@libexecdir\@|$(libexecdir)|g" \
68 -e "s|\@LAYOUT_XML\@|$(LAYOUT_XML)|g" \
6869 $< > $@
6970
7071 EXTRA_DIST = \
+0
-834
engine/Makefile.in less more
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # vim:set noet ts=4:
17 #
18 # ibus-input-pad - Input pad for IBus
19 #
20 # Copyright (c) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
21 # Copyright (c) 2010-2011 Red Hat, Inc.
22 #
23 # This program is free software; you can redistribute it and/or modify
24 # it under the terms of the GNU General Public License as published by
25 # the Free Software Foundation; either version 2 of the License, or
26 # (at your option) any later version.
27 #
28 # This program is distributed in the hope that it will be useful,
29 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 # GNU General Public License for more details.
32 #
33 # You should have received a copy of the GNU General Public License along
34 # with this program; if not, write to the Free Software Foundation, Inc.,
35 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
36
37
38 VPATH = @srcdir@
39 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
40 am__make_running_with_option = \
41 case $${target_option-} in \
42 ?) ;; \
43 *) echo "am__make_running_with_option: internal error: invalid" \
44 "target option '$${target_option-}' specified" >&2; \
45 exit 1;; \
46 esac; \
47 has_opt=no; \
48 sane_makeflags=$$MAKEFLAGS; \
49 if $(am__is_gnu_make); then \
50 sane_makeflags=$$MFLAGS; \
51 else \
52 case $$MAKEFLAGS in \
53 *\\[\ \ ]*) \
54 bs=\\; \
55 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
56 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
57 esac; \
58 fi; \
59 skip_next=no; \
60 strip_trailopt () \
61 { \
62 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
63 }; \
64 for flg in $$sane_makeflags; do \
65 test $$skip_next = yes && { skip_next=no; continue; }; \
66 case $$flg in \
67 *=*|--*) continue;; \
68 -*I) strip_trailopt 'I'; skip_next=yes;; \
69 -*I?*) strip_trailopt 'I';; \
70 -*O) strip_trailopt 'O'; skip_next=yes;; \
71 -*O?*) strip_trailopt 'O';; \
72 -*l) strip_trailopt 'l'; skip_next=yes;; \
73 -*l?*) strip_trailopt 'l';; \
74 -[dEDm]) skip_next=yes;; \
75 -[JT]) skip_next=yes;; \
76 esac; \
77 case $$flg in \
78 *$$target_option*) has_opt=yes; break;; \
79 esac; \
80 done; \
81 test $$has_opt = yes
82 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
83 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
84 pkgdatadir = $(datadir)/@PACKAGE@
85 pkgincludedir = $(includedir)/@PACKAGE@
86 pkglibdir = $(libdir)/@PACKAGE@
87 pkglibexecdir = $(libexecdir)/@PACKAGE@
88 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
89 install_sh_DATA = $(install_sh) -c -m 644
90 install_sh_PROGRAM = $(install_sh) -c
91 install_sh_SCRIPT = $(install_sh) -c
92 INSTALL_HEADER = $(INSTALL_DATA)
93 transform = $(program_transform_name)
94 NORMAL_INSTALL = :
95 PRE_INSTALL = :
96 POST_INSTALL = :
97 NORMAL_UNINSTALL = :
98 PRE_UNINSTALL = :
99 POST_UNINSTALL = :
100 build_triplet = @build@
101 host_triplet = @host@
102 libexec_PROGRAMS = ibus-engine-input-pad$(EXEEXT)
103 subdir = engine
104 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
105 $(top_srcdir)/depcomp
106 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
107 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
108 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
109 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
110 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
111 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
112 $(ACLOCAL_M4)
113 mkinstalldirs = $(install_sh) -d
114 CONFIG_HEADER = $(top_builddir)/config.h
115 CONFIG_CLEAN_FILES =
116 CONFIG_CLEAN_VPATH_FILES =
117 am__installdirs = "$(DESTDIR)$(libexecdir)" \
118 "$(DESTDIR)$(componentdir)"
119 PROGRAMS = $(libexec_PROGRAMS)
120 am_ibus_engine_input_pad_OBJECTS = \
121 ibus_engine_input_pad-engine.$(OBJEXT) \
122 ibus_engine_input_pad-main.$(OBJEXT)
123 ibus_engine_input_pad_OBJECTS = $(am_ibus_engine_input_pad_OBJECTS)
124 am__DEPENDENCIES_1 =
125 ibus_engine_input_pad_DEPENDENCIES = \
126 $(top_builddir)/setup/libiconfig.la $(am__DEPENDENCIES_1) \
127 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
128 AM_V_lt = $(am__v_lt_@AM_V@)
129 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
130 am__v_lt_0 = --silent
131 am__v_lt_1 =
132 ibus_engine_input_pad_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
133 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
134 $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) \
135 $(ibus_engine_input_pad_LDFLAGS) $(LDFLAGS) -o $@
136 AM_V_P = $(am__v_P_@AM_V@)
137 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
138 am__v_P_0 = false
139 am__v_P_1 = :
140 AM_V_GEN = $(am__v_GEN_@AM_V@)
141 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
142 am__v_GEN_0 = @echo " GEN " $@;
143 am__v_GEN_1 =
144 AM_V_at = $(am__v_at_@AM_V@)
145 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
146 am__v_at_0 = @
147 am__v_at_1 =
148 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
149 depcomp = $(SHELL) $(top_srcdir)/depcomp
150 am__depfiles_maybe = depfiles
151 am__mv = mv -f
152 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
153 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
154 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
155 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
156 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
157 $(AM_CFLAGS) $(CFLAGS)
158 AM_V_CC = $(am__v_CC_@AM_V@)
159 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
160 am__v_CC_0 = @echo " CC " $@;
161 am__v_CC_1 =
162 CCLD = $(CC)
163 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
164 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
165 $(AM_LDFLAGS) $(LDFLAGS) -o $@
166 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
167 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
168 am__v_CCLD_0 = @echo " CCLD " $@;
169 am__v_CCLD_1 =
170 SOURCES = $(ibus_engine_input_pad_SOURCES)
171 DIST_SOURCES = $(ibus_engine_input_pad_SOURCES)
172 am__can_run_installinfo = \
173 case $$AM_UPDATE_INFO_DIR in \
174 n|no|NO) false;; \
175 *) (install-info --version) >/dev/null 2>&1;; \
176 esac
177 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
178 am__vpath_adj = case $$p in \
179 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
180 *) f=$$p;; \
181 esac;
182 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
183 am__install_max = 40
184 am__nobase_strip_setup = \
185 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
186 am__nobase_strip = \
187 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
188 am__nobase_list = $(am__nobase_strip_setup); \
189 for p in $$list; do echo "$$p $$p"; done | \
190 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
191 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
192 if (++n[$$2] == $(am__install_max)) \
193 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
194 END { for (dir in files) print dir, files[dir] }'
195 am__base_list = \
196 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
197 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
198 am__uninstall_files_from_dir = { \
199 test -z "$$files" \
200 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
201 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
202 $(am__cd) "$$dir" && rm -f $$files; }; \
203 }
204 DATA = $(component_DATA)
205 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
206 # Read a list of newline-separated strings from the standard input,
207 # and print each of them once, without duplicates. Input order is
208 # *not* preserved.
209 am__uniquify_input = $(AWK) '\
210 BEGIN { nonempty = 0; } \
211 { items[$$0] = 1; nonempty = 1; } \
212 END { if (nonempty) { for (i in items) print i; }; } \
213 '
214 # Make sure the list of sources is unique. This is necessary because,
215 # e.g., the same source file might be shared among _SOURCES variables
216 # for different programs/libraries.
217 am__define_uniq_tagged_files = \
218 list='$(am__tagged_files)'; \
219 unique=`for i in $$list; do \
220 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
221 done | $(am__uniquify_input)`
222 ETAGS = etags
223 CTAGS = ctags
224 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
225 ACLOCAL = @ACLOCAL@
226 ALL_LINGUAS = @ALL_LINGUAS@
227 AMTAR = @AMTAR@
228 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
229 AR = @AR@
230 AUTOCONF = @AUTOCONF@
231 AUTOHEADER = @AUTOHEADER@
232 AUTOMAKE = @AUTOMAKE@
233 AWK = @AWK@
234 CATALOGS = @CATALOGS@
235 CATOBJEXT = @CATOBJEXT@
236 CC = @CC@
237 CCDEPMODE = @CCDEPMODE@
238 CFLAGS = @CFLAGS@
239 CPP = @CPP@
240 CPPFLAGS = @CPPFLAGS@
241 CXX = @CXX@
242 CXXCPP = @CXXCPP@
243 CXXDEPMODE = @CXXDEPMODE@
244 CXXFLAGS = @CXXFLAGS@
245 CYGPATH_W = @CYGPATH_W@
246 DATADIRNAME = @DATADIRNAME@
247 DATE_DISPLAY = @DATE_DISPLAY@
248 DEFS = @DEFS@
249 DEPDIR = @DEPDIR@
250 DLLTOOL = @DLLTOOL@
251 DSYMUTIL = @DSYMUTIL@
252 DUMPBIN = @DUMPBIN@
253 ECHO_C = @ECHO_C@
254 ECHO_N = @ECHO_N@
255 ECHO_T = @ECHO_T@
256 EGREP = @EGREP@
257 EXEEXT = @EXEEXT@
258 FGREP = @FGREP@
259 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
260 GLIB2_CFLAGS = @GLIB2_CFLAGS@
261 GLIB2_LIBS = @GLIB2_LIBS@
262 GLIB_CFLAGS = @GLIB_CFLAGS@
263 GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
264 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
265 GLIB_LIBS = @GLIB_LIBS@
266 GLIB_MKENUMS = @GLIB_MKENUMS@
267 GMOFILES = @GMOFILES@
268 GMSGFMT = @GMSGFMT@
269 GOBJECT_QUERY = @GOBJECT_QUERY@
270 GREP = @GREP@
271 GTK2_CFLAGS = @GTK2_CFLAGS@
272 GTK2_LIBS = @GTK2_LIBS@
273 GTK3_CFLAGS = @GTK3_CFLAGS@
274 GTK3_LIBS = @GTK3_LIBS@
275 IBUS_CFLAGS = @IBUS_CFLAGS@
276 IBUS_LIBS = @IBUS_LIBS@
277 INPUT_PAD_CFLAGS = @INPUT_PAD_CFLAGS@
278 INPUT_PAD_LIBS = @INPUT_PAD_LIBS@
279 INSTALL = @INSTALL@
280 INSTALL_DATA = @INSTALL_DATA@
281 INSTALL_PROGRAM = @INSTALL_PROGRAM@
282 INSTALL_SCRIPT = @INSTALL_SCRIPT@
283 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
284 INSTOBJEXT = @INSTOBJEXT@
285 INTLLIBS = @INTLLIBS@
286 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
287 INTLTOOL_MERGE = @INTLTOOL_MERGE@
288 INTLTOOL_PERL = @INTLTOOL_PERL@
289 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
290 INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
291 INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
292 INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
293 INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
294 LD = @LD@
295 LDFLAGS = @LDFLAGS@
296 LIBOBJS = @LIBOBJS@
297 LIBS = @LIBS@
298 LIBTOOL = @LIBTOOL@
299 LIPO = @LIPO@
300 LN_S = @LN_S@
301 LTLIBOBJS = @LTLIBOBJS@
302 MAINT = @MAINT@
303 MAKEINFO = @MAKEINFO@
304 MANIFEST_TOOL = @MANIFEST_TOOL@
305 MKDIR_P = @MKDIR_P@
306 MKINSTALLDIRS = @MKINSTALLDIRS@
307 MSGFMT = @MSGFMT@
308 MSGFMT_OPTS = @MSGFMT_OPTS@
309 MSGMERGE = @MSGMERGE@
310 NM = @NM@
311 NMEDIT = @NMEDIT@
312 OBJDUMP = @OBJDUMP@
313 OBJEXT = @OBJEXT@
314 OTOOL = @OTOOL@
315 OTOOL64 = @OTOOL64@
316 PACKAGE = @PACKAGE@
317 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
318 PACKAGE_NAME = @PACKAGE_NAME@
319 PACKAGE_STRING = @PACKAGE_STRING@
320 PACKAGE_TARNAME = @PACKAGE_TARNAME@
321 PACKAGE_URL = @PACKAGE_URL@
322 PACKAGE_VERSION = @PACKAGE_VERSION@
323 PATH_SEPARATOR = @PATH_SEPARATOR@
324 PKG_CONFIG = @PKG_CONFIG@
325 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
326 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
327 POFILES = @POFILES@
328 POSUB = @POSUB@
329 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
330 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
331 RANLIB = @RANLIB@
332 SED = @SED@
333 SET_MAKE = @SET_MAKE@
334 SHELL = @SHELL@
335 STRIP = @STRIP@
336 USE_NLS = @USE_NLS@
337 VERSION = @VERSION@
338 XGETTEXT = @XGETTEXT@
339 abs_builddir = @abs_builddir@
340 abs_srcdir = @abs_srcdir@
341 abs_top_builddir = @abs_top_builddir@
342 abs_top_srcdir = @abs_top_srcdir@
343 ac_ct_AR = @ac_ct_AR@
344 ac_ct_CC = @ac_ct_CC@
345 ac_ct_CXX = @ac_ct_CXX@
346 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
347 am__include = @am__include@
348 am__leading_dot = @am__leading_dot@
349 am__quote = @am__quote@
350 am__tar = @am__tar@
351 am__untar = @am__untar@
352 bindir = @bindir@
353 build = @build@
354 build_alias = @build_alias@
355 build_cpu = @build_cpu@
356 build_os = @build_os@
357 build_vendor = @build_vendor@
358 builddir = @builddir@
359 datadir = @datadir@
360 datarootdir = @datarootdir@
361 docdir = @docdir@
362 dvidir = @dvidir@
363 exec_prefix = @exec_prefix@
364 host = @host@
365 host_alias = @host_alias@
366 host_cpu = @host_cpu@
367 host_os = @host_os@
368 host_vendor = @host_vendor@
369 htmldir = @htmldir@
370 includedir = @includedir@
371 infodir = @infodir@
372 install_sh = @install_sh@
373 intltool__v_merge_options_ = @intltool__v_merge_options_@
374 intltool__v_merge_options_0 = @intltool__v_merge_options_0@
375 libdir = @libdir@
376 libexecdir = @libexecdir@
377 libinput_pad_VERSION = @libinput_pad_VERSION@
378 localedir = @localedir@
379 localstatedir = @localstatedir@
380 mandir = @mandir@
381 mkdir_p = @mkdir_p@
382 oldincludedir = @oldincludedir@
383 pdfdir = @pdfdir@
384 prefix = @prefix@
385 program_transform_name = @program_transform_name@
386 psdir = @psdir@
387 sbindir = @sbindir@
388 sharedstatedir = @sharedstatedir@
389 srcdir = @srcdir@
390 sysconfdir = @sysconfdir@
391 target_alias = @target_alias@
392 top_build_prefix = @top_build_prefix@
393 top_builddir = @top_builddir@
394 top_srcdir = @top_srcdir@
395 noinst_DIST = \
396 $(NULL)
397
398 AM_CPPFLAGS = \
399 -I$(top_srcdir) \
400 -I$(top_srcdir)/setup \
401 -DDATAROOTDIR=\""$(datarootdir)"\" \
402 -DLIBEXECDIR=\""$(libexecdir)"\" \
403 $(NULL)
404
405 ibus_engine_input_pad_SOURCES = \
406 engine.c \
407 engine.h \
408 i18n.h \
409 main.c \
410 $(NULL)
411
412 ibus_engine_input_pad_CFLAGS = \
413 $(GLIB2_CFLAGS) \
414 $(IBUS_CFLAGS) \
415 $(INPUT_PAD_CFLAGS) \
416 $(NULL)
417
418 ibus_engine_input_pad_LDFLAGS = \
419 $(NULL)
420
421 ibus_engine_input_pad_LDADD = \
422 $(top_builddir)/setup/libiconfig.la \
423 $(GLIB2_LIBS) \
424 $(IBUS_LIBS) \
425 $(INPUT_PAD_LIBS) \
426 $(NULL)
427
428 component_in_files = \
429 input-pad.xml.in \
430 $(NULL)
431
432 component_DATA = $(component_in_files:.xml.in=.xml)
433 componentdir = $(datarootdir)/ibus/component
434 EXTRA_DIST = \
435 $(component_in_files) \
436 $(NULL)
437
438 CLEANFILES = \
439 $(component_DATA) \
440 $(NULL)
441
442 all: all-am
443
444 .SUFFIXES:
445 .SUFFIXES: .c .lo .o .obj
446 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
447 @for dep in $?; do \
448 case '$(am__configure_deps)' in \
449 *$$dep*) \
450 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
451 && { if test -f $@; then exit 0; else break; fi; }; \
452 exit 1;; \
453 esac; \
454 done; \
455 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu engine/Makefile'; \
456 $(am__cd) $(top_srcdir) && \
457 $(AUTOMAKE) --gnu engine/Makefile
458 .PRECIOUS: Makefile
459 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
460 @case '$?' in \
461 *config.status*) \
462 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
463 *) \
464 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
465 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
466 esac;
467
468 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
469 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
470
471 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
472 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
473 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
474 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
475 $(am__aclocal_m4_deps):
476 install-libexecPROGRAMS: $(libexec_PROGRAMS)
477 @$(NORMAL_INSTALL)
478 @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \
479 if test -n "$$list"; then \
480 echo " $(MKDIR_P) '$(DESTDIR)$(libexecdir)'"; \
481 $(MKDIR_P) "$(DESTDIR)$(libexecdir)" || exit 1; \
482 fi; \
483 for p in $$list; do echo "$$p $$p"; done | \
484 sed 's/$(EXEEXT)$$//' | \
485 while read p p1; do if test -f $$p \
486 || test -f $$p1 \
487 ; then echo "$$p"; echo "$$p"; else :; fi; \
488 done | \
489 sed -e 'p;s,.*/,,;n;h' \
490 -e 's|.*|.|' \
491 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
492 sed 'N;N;N;s,\n, ,g' | \
493 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
494 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
495 if ($$2 == $$4) files[d] = files[d] " " $$1; \
496 else { print "f", $$3 "/" $$4, $$1; } } \
497 END { for (d in files) print "f", d, files[d] }' | \
498 while read type dir files; do \
499 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
500 test -z "$$files" || { \
501 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(libexecdir)$$dir'"; \
502 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(libexecdir)$$dir" || exit $$?; \
503 } \
504 ; done
505
506 uninstall-libexecPROGRAMS:
507 @$(NORMAL_UNINSTALL)
508 @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \
509 files=`for p in $$list; do echo "$$p"; done | \
510 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
511 -e 's/$$/$(EXEEXT)/' \
512 `; \
513 test -n "$$list" || exit 0; \
514 echo " ( cd '$(DESTDIR)$(libexecdir)' && rm -f" $$files ")"; \
515 cd "$(DESTDIR)$(libexecdir)" && rm -f $$files
516
517 clean-libexecPROGRAMS:
518 @list='$(libexec_PROGRAMS)'; test -n "$$list" || exit 0; \
519 echo " rm -f" $$list; \
520 rm -f $$list || exit $$?; \
521 test -n "$(EXEEXT)" || exit 0; \
522 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
523 echo " rm -f" $$list; \
524 rm -f $$list
525
526 ibus-engine-input-pad$(EXEEXT): $(ibus_engine_input_pad_OBJECTS) $(ibus_engine_input_pad_DEPENDENCIES) $(EXTRA_ibus_engine_input_pad_DEPENDENCIES)
527 @rm -f ibus-engine-input-pad$(EXEEXT)
528 $(AM_V_CCLD)$(ibus_engine_input_pad_LINK) $(ibus_engine_input_pad_OBJECTS) $(ibus_engine_input_pad_LDADD) $(LIBS)
529
530 mostlyclean-compile:
531 -rm -f *.$(OBJEXT)
532
533 distclean-compile:
534 -rm -f *.tab.c
535
536 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ibus_engine_input_pad-engine.Po@am__quote@
537 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ibus_engine_input_pad-main.Po@am__quote@
538
539 .c.o:
540 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
541 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
542 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
543 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
544 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
545
546 .c.obj:
547 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
548 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
549 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
550 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
551 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
552
553 .c.lo:
554 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
555 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
556 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
557 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
558 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
559
560 ibus_engine_input_pad-engine.o: engine.c
561 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -MT ibus_engine_input_pad-engine.o -MD -MP -MF $(DEPDIR)/ibus_engine_input_pad-engine.Tpo -c -o ibus_engine_input_pad-engine.o `test -f 'engine.c' || echo '$(srcdir)/'`engine.c
562 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_engine_input_pad-engine.Tpo $(DEPDIR)/ibus_engine_input_pad-engine.Po
563 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='engine.c' object='ibus_engine_input_pad-engine.o' libtool=no @AMDEPBACKSLASH@
564 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
565 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_engine_input_pad-engine.o `test -f 'engine.c' || echo '$(srcdir)/'`engine.c
566
567 ibus_engine_input_pad-engine.obj: engine.c
568 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -MT ibus_engine_input_pad-engine.obj -MD -MP -MF $(DEPDIR)/ibus_engine_input_pad-engine.Tpo -c -o ibus_engine_input_pad-engine.obj `if test -f 'engine.c'; then $(CYGPATH_W) 'engine.c'; else $(CYGPATH_W) '$(srcdir)/engine.c'; fi`
569 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_engine_input_pad-engine.Tpo $(DEPDIR)/ibus_engine_input_pad-engine.Po
570 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='engine.c' object='ibus_engine_input_pad-engine.obj' libtool=no @AMDEPBACKSLASH@
571 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
572 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_engine_input_pad-engine.obj `if test -f 'engine.c'; then $(CYGPATH_W) 'engine.c'; else $(CYGPATH_W) '$(srcdir)/engine.c'; fi`
573
574 ibus_engine_input_pad-main.o: main.c
575 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -MT ibus_engine_input_pad-main.o -MD -MP -MF $(DEPDIR)/ibus_engine_input_pad-main.Tpo -c -o ibus_engine_input_pad-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
576 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_engine_input_pad-main.Tpo $(DEPDIR)/ibus_engine_input_pad-main.Po
577 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='ibus_engine_input_pad-main.o' libtool=no @AMDEPBACKSLASH@
578 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
579 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_engine_input_pad-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
580
581 ibus_engine_input_pad-main.obj: main.c
582 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -MT ibus_engine_input_pad-main.obj -MD -MP -MF $(DEPDIR)/ibus_engine_input_pad-main.Tpo -c -o ibus_engine_input_pad-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
583 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_engine_input_pad-main.Tpo $(DEPDIR)/ibus_engine_input_pad-main.Po
584 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='ibus_engine_input_pad-main.obj' libtool=no @AMDEPBACKSLASH@
585 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
586 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_engine_input_pad-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
587
588 mostlyclean-libtool:
589 -rm -f *.lo
590
591 clean-libtool:
592 -rm -rf .libs _libs
593 install-componentDATA: $(component_DATA)
594 @$(NORMAL_INSTALL)
595 @list='$(component_DATA)'; test -n "$(componentdir)" || list=; \
596 if test -n "$$list"; then \
597 echo " $(MKDIR_P) '$(DESTDIR)$(componentdir)'"; \
598 $(MKDIR_P) "$(DESTDIR)$(componentdir)" || exit 1; \
599 fi; \
600 for p in $$list; do \
601 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
602 echo "$$d$$p"; \
603 done | $(am__base_list) | \
604 while read files; do \
605 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(componentdir)'"; \
606 $(INSTALL_DATA) $$files "$(DESTDIR)$(componentdir)" || exit $$?; \
607 done
608
609 uninstall-componentDATA:
610 @$(NORMAL_UNINSTALL)
611 @list='$(component_DATA)'; test -n "$(componentdir)" || list=; \
612 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
613 dir='$(DESTDIR)$(componentdir)'; $(am__uninstall_files_from_dir)
614
615 ID: $(am__tagged_files)
616 $(am__define_uniq_tagged_files); mkid -fID $$unique
617 tags: tags-am
618 TAGS: tags
619
620 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
621 set x; \
622 here=`pwd`; \
623 $(am__define_uniq_tagged_files); \
624 shift; \
625 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
626 test -n "$$unique" || unique=$$empty_fix; \
627 if test $$# -gt 0; then \
628 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
629 "$$@" $$unique; \
630 else \
631 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
632 $$unique; \
633 fi; \
634 fi
635 ctags: ctags-am
636
637 CTAGS: ctags
638 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
639 $(am__define_uniq_tagged_files); \
640 test -z "$(CTAGS_ARGS)$$unique" \
641 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
642 $$unique
643
644 GTAGS:
645 here=`$(am__cd) $(top_builddir) && pwd` \
646 && $(am__cd) $(top_srcdir) \
647 && gtags -i $(GTAGS_ARGS) "$$here"
648 cscopelist: cscopelist-am
649
650 cscopelist-am: $(am__tagged_files)
651 list='$(am__tagged_files)'; \
652 case "$(srcdir)" in \
653 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
654 *) sdir=$(subdir)/$(srcdir) ;; \
655 esac; \
656 for i in $$list; do \
657 if test -f "$$i"; then \
658 echo "$(subdir)/$$i"; \
659 else \
660 echo "$$sdir/$$i"; \
661 fi; \
662 done >> $(top_builddir)/cscope.files
663
664 distclean-tags:
665 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
666
667 distdir: $(DISTFILES)
668 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
669 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
670 list='$(DISTFILES)'; \
671 dist_files=`for file in $$list; do echo $$file; done | \
672 sed -e "s|^$$srcdirstrip/||;t" \
673 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
674 case $$dist_files in \
675 */*) $(MKDIR_P) `echo "$$dist_files" | \
676 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
677 sort -u` ;; \
678 esac; \
679 for file in $$dist_files; do \
680 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
681 if test -d $$d/$$file; then \
682 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
683 if test -d "$(distdir)/$$file"; then \
684 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
685 fi; \
686 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
687 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
688 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
689 fi; \
690 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
691 else \
692 test -f "$(distdir)/$$file" \
693 || cp -p $$d/$$file "$(distdir)/$$file" \
694 || exit 1; \
695 fi; \
696 done
697 check-am: all-am
698 check: check-am
699 all-am: Makefile $(PROGRAMS) $(DATA)
700 installdirs:
701 for dir in "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(componentdir)"; do \
702 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
703 done
704 install: install-am
705 install-exec: install-exec-am
706 install-data: install-data-am
707 uninstall: uninstall-am
708
709 install-am: all-am
710 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
711
712 installcheck: installcheck-am
713 install-strip:
714 if test -z '$(STRIP)'; then \
715 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
716 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
717 install; \
718 else \
719 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
720 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
721 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
722 fi
723 mostlyclean-generic:
724
725 clean-generic:
726 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
727
728 distclean-generic:
729 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
730 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
731
732 maintainer-clean-generic:
733 @echo "This command is intended for maintainers to use"
734 @echo "it deletes files that may require special tools to rebuild."
735 clean: clean-am
736
737 clean-am: clean-generic clean-libexecPROGRAMS clean-libtool \
738 mostlyclean-am
739
740 distclean: distclean-am
741 -rm -rf ./$(DEPDIR)
742 -rm -f Makefile
743 distclean-am: clean-am distclean-compile distclean-generic \
744 distclean-tags
745
746 dvi: dvi-am
747
748 dvi-am:
749
750 html: html-am
751
752 html-am:
753
754 info: info-am
755
756 info-am:
757
758 install-data-am: install-componentDATA
759
760 install-dvi: install-dvi-am
761
762 install-dvi-am:
763
764 install-exec-am: install-libexecPROGRAMS
765
766 install-html: install-html-am
767
768 install-html-am:
769
770 install-info: install-info-am
771
772 install-info-am:
773
774 install-man:
775
776 install-pdf: install-pdf-am
777
778 install-pdf-am:
779
780 install-ps: install-ps-am
781
782 install-ps-am:
783
784 installcheck-am:
785
786 maintainer-clean: maintainer-clean-am
787 -rm -rf ./$(DEPDIR)
788 -rm -f Makefile
789 maintainer-clean-am: distclean-am maintainer-clean-generic
790
791 mostlyclean: mostlyclean-am
792
793 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
794 mostlyclean-libtool
795
796 pdf: pdf-am
797
798 pdf-am:
799
800 ps: ps-am
801
802 ps-am:
803
804 uninstall-am: uninstall-componentDATA uninstall-libexecPROGRAMS
805
806 .MAKE: install-am install-strip
807
808 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
809 clean-libexecPROGRAMS clean-libtool cscopelist-am ctags \
810 ctags-am distclean distclean-compile distclean-generic \
811 distclean-libtool distclean-tags distdir dvi dvi-am html \
812 html-am info info-am install install-am install-componentDATA \
813 install-data install-data-am install-dvi install-dvi-am \
814 install-exec install-exec-am install-html install-html-am \
815 install-info install-info-am install-libexecPROGRAMS \
816 install-man install-pdf install-pdf-am install-ps \
817 install-ps-am install-strip installcheck installcheck-am \
818 installdirs maintainer-clean maintainer-clean-generic \
819 mostlyclean mostlyclean-compile mostlyclean-generic \
820 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
821 uninstall-am uninstall-componentDATA uninstall-libexecPROGRAMS
822
823
824 %.xml : %.xml.in
825 @sed -e "s|\@GETTEXT_PACKAGE\@|$(GETTEXT_PACKAGE)|g" \
826 -e "s|\@VERSION\@|$(VERSION)|g" \
827 -e "s|\@datarootdir\@|$(datarootdir)|g" \
828 -e "s|\@libexecdir\@|$(libexecdir)|g" \
829 $< > $@
830
831 # Tell versions [3.59,3.63) of GNU make to not export all variables.
832 # Otherwise a system limit (for SysV at least) may be exceeded.
833 .NOEXPORT:
00 /* vim:set et sts=4: */
11 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
2 * Copyright (C) 2010-2014 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2014 Red Hat, Inc.
44 *
55 * This program is free software; you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
2323
2424 #include <ibus.h>
2525 #include <glib.h>
26 #include <stdlib.h> /* exit */
2627
2728 #include <input-pad.h>
2829 #include <input-pad-group.h>
2930 #include "engine.h"
3031 #include "i18n.h"
31 #include "iconfig-gtk2.h"
32 #include "iconfig-gtk.h"
3233
3334 typedef struct _IBusInputPadEngine IBusInputPadEngine;
3435 typedef struct _IBusInputPadEngineClass IBusInputPadEngineClass;
3536
3637 struct _IBusInputPadEngine {
37 IBusEngine parent;
38 IBusEngineSimple parent;
3839
3940 /* members */
40 IBusPropList *prop_list;
41 void *window_data;
42 GSList *str_list;
41 IBusPropList *prop_list;
42 GSList *str_list;
4343 };
4444
4545 struct _IBusInputPadEngineClass {
46 IBusEngineClass parent;
46 IBusEngineSimpleClass parent;
4747 };
4848
49 static void on_window_activated (gpointer window_data,
50 gpointer data);
51 static void set_keyboard_only_kbdui (void *window);
52 static void set_default_kbdui (void *window);
53 static void show_keyboard_only_table (void *window);
54 static void show_default_table (void *window);
4955 static GObject* ibus_input_pad_engine_constructor
5056 (GType type,
5157 guint n_construct_params,
102108 on_window_destroy (gpointer window_data, gpointer data)
103109 {
104110 IBusInputPadEngine *engine = (IBusInputPadEngine *) data;
105
106 g_signal_handlers_disconnect_by_func (G_OBJECT (engine->window_data),
107 G_CALLBACK (on_window_button_pressed),
108 (gpointer) engine);
109 g_signal_handlers_disconnect_by_func (G_OBJECT (engine->window_data),
110 G_CALLBACK (on_window_destroy),
111 (gpointer) engine);
112
113 input_pad_window = NULL;
114 engine->window_data = NULL;
111 void *gtk_window = input_pad_window_get_window (input_pad_window);
112
113 if (gtk_window != NULL) {
114 g_signal_handlers_disconnect_by_func (G_OBJECT (gtk_window),
115 G_CALLBACK (on_window_button_pressed),
116 (gpointer) engine);
117 g_signal_handlers_disconnect_by_func (G_OBJECT (gtk_window),
118 G_CALLBACK (on_window_destroy),
119 (gpointer) engine);
120 }
121
122 input_pad_window_activate (input_pad_window);
123 }
124
125 static void
126 on_window_activated (gpointer window_data, gpointer data)
127 {
128 IBusInputPadEngine *engine = IBUS_INPUT_PAD_ENGINE (data);
129 void *gtk_window = input_pad_window_get_window (input_pad_window);
130
131 g_signal_connect (G_OBJECT (gtk_window),
132 "destroy",
133 G_CALLBACK (on_window_destroy),
134 (gpointer) engine);
135 g_signal_connect (G_OBJECT (gtk_window),
136 "button-pressed",
137 G_CALLBACK (on_window_button_pressed),
138 (gpointer) engine);
115139 }
116140
117141 static void
149173 IBusProperty *input_pad_prop;
150174 IBusProperty *prop;
151175 IBusPropList *prop_list;
176 void *gtk_window;
152177
153178 engine->prop_list = ibus_prop_list_new ();
154179 g_object_ref_sink (engine->prop_list);
155180
156 #ifdef IBUS_DEPRECATED_LANGUAGE_MENU_ITEM
157 label = ibus_text_new_from_string (_("Launch Input Pad"));
158 tooltip = ibus_text_new_from_string (_("Launch Input Pad"));
159 prop = ibus_property_new ("show-input-pad",
160 PROP_TYPE_NORMAL,
161 label,
162 "ibus-setup",
163 tooltip,
164 TRUE, TRUE, PROP_STATE_UNCHECKED, NULL);
165 ibus_prop_list_append (engine->prop_list, prop);
166 #else
167181 label = ibus_text_new_from_string (_("Launch Input Pad"));
168182 tooltip = ibus_text_new_from_string (_("Launch Input Pad"));
169183 input_pad_prop = ibus_property_new ("ibus-shared-menu",
197211 ibus_prop_list_append (prop_list, prop);
198212
199213 ibus_property_set_sub_props (input_pad_prop, prop_list);
200 #endif
201214
202215 label = ibus_text_new_from_string (_("Setup Input Pad"));
203216 tooltip = ibus_text_new_from_string (_("Configure Input Pad"));
209222 TRUE, TRUE, PROP_STATE_UNCHECKED, NULL);
210223 ibus_prop_list_append (engine->prop_list, prop);
211224
212 /* FIXME: This is not used currently? */
213 if (engine->window_data == NULL)
214 engine->window_data = input_pad_window;
225 gtk_window = input_pad_window_get_window (input_pad_window);
226
227 if (gtk_window != NULL) {
228 g_signal_connect (G_OBJECT (gtk_window),
229 "destroy",
230 G_CALLBACK (on_window_destroy),
231 (gpointer) engine);
232 g_signal_connect (G_OBJECT (gtk_window),
233 "button-pressed",
234 G_CALLBACK (on_window_button_pressed),
235 (gpointer) engine);
236 }
237
238 g_signal_connect (G_OBJECT (input_pad_window),
239 "activated",
240 G_CALLBACK (on_window_activated),
241 (gpointer) engine);
215242 }
216243
217244 static GObject*
258285 free_str_list (engine->str_list);
259286 engine->str_list = NULL;
260287 }
261 if (engine->window_data) {
262 input_pad_window_destroy (engine->window_data);
263 g_assert (engine->window_data == NULL);
264 }
265288 IBUS_OBJECT_CLASS (parent_class)->destroy (object);
266289 }
267290
277300 static void
278301 ibus_input_pad_engine_enable (IBusEngine *engine)
279302 {
303 parent_class->enable (engine);
304 input_pad_window_set_char_button_sensitive (input_pad_window, TRUE);
305 }
306
307 static void
308 ibus_input_pad_engine_disable (IBusEngine *engine)
309 {
310 parent_class->disable (engine);
311 input_pad_window_set_char_button_sensitive (input_pad_window, FALSE);
312 }
313
314 static void
315 ibus_input_pad_engine_focus_in (IBusEngine *engine)
316 {
280317 IBusInputPadEngine *input_pad = (IBusInputPadEngine *) engine;
281318
282 parent_class->enable (engine);
283 input_pad->window_data = input_pad_window;
284 if (input_pad->window_data) {
285 input_pad_window_set_char_button_sensitive (input_pad->window_data,
286 TRUE);
287 }
288 }
289
290 static void
291 ibus_input_pad_engine_disable (IBusEngine *engine)
292 {
293 IBusInputPadEngine *input_pad = (IBusInputPadEngine *) engine;
294
295 parent_class->disable (engine);
296 input_pad->window_data = input_pad_window;
297 if (input_pad->window_data) {
298 input_pad_window_set_char_button_sensitive (input_pad->window_data,
299 FALSE);
300 }
301 }
302
303 static void
304 ibus_input_pad_engine_focus_in (IBusEngine *engine)
305 {
306 IBusInputPadEngine *input_pad = (IBusInputPadEngine *) engine;
307
308319 ibus_engine_register_properties (engine, input_pad->prop_list);
309320
310321 parent_class->focus_in (engine);
311322
312 input_pad->window_data = input_pad_window;
313 if (input_pad->window_data == NULL) {
314 return;
315 }
316
317 g_signal_connect (G_OBJECT (input_pad->window_data),
318 "button-pressed",
319 G_CALLBACK (on_window_button_pressed), (gpointer) engine);
320 input_pad_window_reorder_button_pressed (input_pad->window_data);
323 input_pad_window_reorder_button_pressed (input_pad_window);
321324 }
322325
323326 static void
324327 ibus_input_pad_engine_focus_out (IBusEngine *engine)
325328 {
326 IBusInputPadEngine *input_pad = (IBusInputPadEngine *) engine;
327
328329 parent_class->focus_out (engine);
329
330 input_pad->window_data = input_pad_window;
331 if (input_pad->window_data == NULL) {
332 return;
333 }
334
335 g_signal_handlers_disconnect_by_func (G_OBJECT (input_pad->window_data),
336 G_CALLBACK (on_window_button_pressed),
337 (gpointer) engine);
338330 }
339331
340332 #if 0
430422 guint prop_state)
431423 {
432424 gboolean is_shown = FALSE;
433 IBusInputPadEngine *input_pad = (IBusInputPadEngine *) engine;
434425 GError *error = NULL;
435426 gchar *argv[2] = { NULL, };
436427 gchar *path;
441432
442433 if (!g_strcmp0 (prop_name, "show-input-pad") ||
443434 !g_strcmp0 (prop_name, "show-input-pad-layout-only")) {
444 void *window = NULL;
445
446 if (input_pad_window == NULL || input_pad->window_data == NULL) {
447 input_pad_window = input_pad_window_new (TRUE);
448 input_pad->window_data = input_pad_window;
449 if (!g_strcmp0 (prop_name, "show-input-pad-layout-only")) {
450 set_keyboard_only_kbdui (input_pad_window);
451 } else {
452 set_default_kbdui (input_pad_window);
453 }
454
455 g_signal_connect (G_OBJECT (input_pad->window_data),
456 "destroy",
457 G_CALLBACK (on_window_destroy), (gpointer) engine);
458 ibus_input_pad_engine_focus_in (engine);
435 void *window = input_pad_window;
436
437 if (input_pad_window_get_window (window) == NULL)
438 return;
439
440 if (!g_strcmp0 (prop_name, "show-input-pad-layout-only")) {
441 set_keyboard_only_kbdui (window);
442 } else {
443 set_default_kbdui (window);
459444 }
460 window = input_pad->window_data;
445
446 ibus_input_pad_engine_focus_in (engine);
447
461448 // TODO: Update menu item label?
462449 /* is_shown = input_pad_window_get_visible (window); */
463450 if (is_shown) {
506493 };
507494
508495 if (type == 0) {
509 type = g_type_register_static (IBUS_TYPE_ENGINE,
496 type = g_type_register_static (IBUS_TYPE_ENGINE_SIMPLE,
510497 "IBusInputPadEngine",
511498 &type_info,
512499 (GTypeFlags) 0);
518505 void
519506 ibus_input_pad_init (int *argc, char ***argv, IBusBus *bus)
520507 {
508 int retval;
509 gboolean do_exit = FALSE;
510
521511 config = ibus_bus_get_input_pad_config (bus);
522512 if (config) {
523513 g_object_ref_sink (config);
524514 }
525 input_pad_window_init (argc, argv, 0);
515 retval = input_pad_window_init (argc, argv, 0, &do_exit);
516
517 if (do_exit) {
518 g_object_unref (config);
519 config = NULL;
520 exit (retval);
521 }
522
523 input_pad_window = input_pad_window_new ();
524 input_pad_window_hide (input_pad_window);
525 }
526
527 int
528 ibus_input_pad_main (void)
529 {
530 return input_pad_window_main (input_pad_window);
526531 }
527532
528533 void
529 ibus_input_pad_exit (void)
534 ibus_input_pad_finit (void)
530535 {
531536 g_object_unref (config);
532537 config = NULL;
2222
2323 #include <ibus.h>
2424
25 #define IBUS_TYPE_INPUT_PAD_ENGINE \
25 #define IBUS_TYPE_INPUT_PAD_ENGINE \
2626 (ibus_input_pad_engine_get_type ())
27 #define IBUS_INPUT_PAD_ENGINE(o) \
28 (G_TYPE_CHECK_INSTANCE_CAST ((o), \
29 IBUS_TYPE_INPUT_PAD_ENGINE, \
30 IBusInputPadEngine))
31 #define IBUS_IS_INPUT_PAD_ENGINE(o) \
32 (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
33 IBUS_TYPE_INPUT_PAD_ENGINE))
2734
2835 GType ibus_input_pad_engine_get_type (void);
2936
3037 void ibus_input_pad_init (int *argc, char ***argv, IBusBus *bus);
31 void ibus_input_pad_exit (void);
38 int ibus_input_pad_main (void);
39 void ibus_input_pad_finit (void);
3240
3341 #endif
1616 <license>GPL</license>
1717 <author>Takao Fujiwara &lt;takao.fujiwara1@gmail.com&gt;</author>
1818 <icon>@datarootdir@/pixmaps/input-pad.png</icon>
19 <layout>us</layout>
19 @LAYOUT_XML@
2020 <longname>Input Pad</longname>
2121 <description>Input Pad</description>
2222 <rank>0</rank>
00 /* vim:set et sts=4: */
11 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
2 * Copyright (C) 2010-2014 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2014 Red Hat, Inc.
44 *
55 * This program is free software; you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
3838 ibus_quit ();
3939 }
4040
41 static void
41 static int
4242 start_component (int argc, char **argv)
4343 {
4444 IBusComponent *component;
45 int retval;
4546
4647 ibus_init ();
4748
8283
8384 g_object_unref (component);
8485
85 ibus_main ();
86 retval = ibus_input_pad_main ();
87 ibus_input_pad_finit ();
8688
87 ibus_input_pad_exit ();
89 return retval;
8890 }
8991
9092 int
9698 bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
9799 textdomain(GETTEXT_PACKAGE);
98100
99 start_component (argc, argv);
100
101 return 0;
101 return start_component (argc, argv);
102102 }
00 %define sub_version @libinput_pad_VERSION@
1 %define gtk3_version 3.10
2 %define ibus_version 1.5.3
3 %define input_pad_version 1.0.99
14
25 Name: @PACKAGE_NAME@
36 Version: @PACKAGE_VERSION@
1114 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1215
1316 BuildRequires: gettext-devel
14 BuildRequires: gtk2-devel
17 BuildRequires: gtk3-devel >= %gtk3_version
1518 BuildRequires: libtool
16 BuildRequires: ibus-devel
17 BuildRequires: input-pad-devel
19 BuildRequires: ibus-devel >= %ibus_version
20 BuildRequires: input-pad-devel >= %input_pad_version
1821 BuildRequires: intltool
1922 Requires: ibus
2023
4346 %{_libexecdir}/ibus-engine-input-pad
4447 %{_libexecdir}/ibus-setup-input-pad
4548 %{_datadir}/ibus/component/*
46 %{_datadir}/ibus-input-pad
4749
4850 %changelog
4951 * @DATE_DISPLAY@ Takao Fujiwara <takao.fujiwara1@gmail.com> - @PACKAGE_VERSION@-1
+0
-527
install-sh less more
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2011-11-20.07; # UTC
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # 'make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 nl='
44 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
50 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
56
57 # Put in absolute file names if you don't have them in your path;
58 # or use environment vars.
59
60 chgrpprog=${CHGRPPROG-chgrp}
61 chmodprog=${CHMODPROG-chmod}
62 chownprog=${CHOWNPROG-chown}
63 cmpprog=${CMPPROG-cmp}
64 cpprog=${CPPROG-cp}
65 mkdirprog=${MKDIRPROG-mkdir}
66 mvprog=${MVPROG-mv}
67 rmprog=${RMPROG-rm}
68 stripprog=${STRIPPROG-strip}
69
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
81 posix_mkdir=
82
83 # Desired mode of installed file.
84 mode=0755
85
86 chgrpcmd=
87 chmodcmd=$chmodprog
88 chowncmd=
89 mvcmd=$mvprog
90 rmcmd="$rmprog -f"
91 stripcmd=
92
93 src=
94 dst=
95 dir_arg=
96 dst_arg=
97
98 copy_on_change=false
99 no_target_directory=
100
101 usage="\
102 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
103 or: $0 [OPTION]... SRCFILES... DIRECTORY
104 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
105 or: $0 [OPTION]... -d DIRECTORIES...
106
107 In the 1st form, copy SRCFILE to DSTFILE.
108 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
109 In the 4th, create DIRECTORIES.
110
111 Options:
112 --help display this help and exit.
113 --version display version info and exit.
114
115 -c (ignored)
116 -C install only if different (preserve the last data modification time)
117 -d create directories instead of installing files.
118 -g GROUP $chgrpprog installed files to GROUP.
119 -m MODE $chmodprog installed files to MODE.
120 -o USER $chownprog installed files to USER.
121 -s $stripprog installed files.
122 -t DIRECTORY install into DIRECTORY.
123 -T report an error if DSTFILE is a directory.
124
125 Environment variables override the default commands:
126 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
127 RMPROG STRIPPROG
128 "
129
130 while test $# -ne 0; do
131 case $1 in
132 -c) ;;
133
134 -C) copy_on_change=true;;
135
136 -d) dir_arg=true;;
137
138 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
140
141 --help) echo "$usage"; exit $?;;
142
143 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
151
152 -o) chowncmd="$chownprog $2"
153 shift;;
154
155 -s) stripcmd=$stripprog;;
156
157 -t) dst_arg=$2
158 # Protect names problematic for 'test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
162 shift;;
163
164 -T) no_target_directory=true;;
165
166 --version) echo "$0 $scriptversion"; exit $?;;
167
168 --) shift
169 break;;
170
171 -*) echo "$0: invalid option: $1" >&2
172 exit 1;;
173
174 *) break;;
175 esac
176 shift
177 done
178
179 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
180 # When -d is used, all remaining arguments are directories to create.
181 # When -t is used, the destination is already specified.
182 # Otherwise, the last argument is the destination. Remove it from $@.
183 for arg
184 do
185 if test -n "$dst_arg"; then
186 # $@ is not empty: it contains at least $arg.
187 set fnord "$@" "$dst_arg"
188 shift # fnord
189 fi
190 shift # arg
191 dst_arg=$arg
192 # Protect names problematic for 'test' and other utilities.
193 case $dst_arg in
194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195 esac
196 done
197 fi
198
199 if test $# -eq 0; then
200 if test -z "$dir_arg"; then
201 echo "$0: no input file specified." >&2
202 exit 1
203 fi
204 # It's OK to call 'install-sh -d' without argument.
205 # This can happen when creating conditional directories.
206 exit 0
207 fi
208
209 if test -z "$dir_arg"; then
210 do_exit='(exit $ret); exit $ret'
211 trap "ret=129; $do_exit" 1
212 trap "ret=130; $do_exit" 2
213 trap "ret=141; $do_exit" 13
214 trap "ret=143; $do_exit" 15
215
216 # Set umask so as not to create temps with too-generous modes.
217 # However, 'strip' requires both read and write access to temps.
218 case $mode in
219 # Optimize common cases.
220 *644) cp_umask=133;;
221 *755) cp_umask=22;;
222
223 *[0-7])
224 if test -z "$stripcmd"; then
225 u_plus_rw=
226 else
227 u_plus_rw='% 200'
228 fi
229 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
230 *)
231 if test -z "$stripcmd"; then
232 u_plus_rw=
233 else
234 u_plus_rw=,u+rw
235 fi
236 cp_umask=$mode$u_plus_rw;;
237 esac
238 fi
239
240 for src
241 do
242 # Protect names problematic for 'test' and other utilities.
243 case $src in
244 -* | [=\(\)!]) src=./$src;;
245 esac
246
247 if test -n "$dir_arg"; then
248 dst=$src
249 dstdir=$dst
250 test -d "$dstdir"
251 dstdir_status=$?
252 else
253
254 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
255 # might cause directories to be created, which would be especially bad
256 # if $src (and thus $dsttmp) contains '*'.
257 if test ! -f "$src" && test ! -d "$src"; then
258 echo "$0: $src does not exist." >&2
259 exit 1
260 fi
261
262 if test -z "$dst_arg"; then
263 echo "$0: no destination specified." >&2
264 exit 1
265 fi
266 dst=$dst_arg
267
268 # If destination is a directory, append the input filename; won't work
269 # if double slashes aren't ignored.
270 if test -d "$dst"; then
271 if test -n "$no_target_directory"; then
272 echo "$0: $dst_arg: Is a directory" >&2
273 exit 1
274 fi
275 dstdir=$dst
276 dst=$dstdir/`basename "$src"`
277 dstdir_status=0
278 else
279 # Prefer dirname, but fall back on a substitute if dirname fails.
280 dstdir=`
281 (dirname "$dst") 2>/dev/null ||
282 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
283 X"$dst" : 'X\(//\)[^/]' \| \
284 X"$dst" : 'X\(//\)$' \| \
285 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
286 echo X"$dst" |
287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
288 s//\1/
289 q
290 }
291 /^X\(\/\/\)[^/].*/{
292 s//\1/
293 q
294 }
295 /^X\(\/\/\)$/{
296 s//\1/
297 q
298 }
299 /^X\(\/\).*/{
300 s//\1/
301 q
302 }
303 s/.*/./; q'
304 `
305
306 test -d "$dstdir"
307 dstdir_status=$?
308 fi
309 fi
310
311 obsolete_mkdir_used=false
312
313 if test $dstdir_status != 0; then
314 case $posix_mkdir in
315 '')
316 # Create intermediate dirs using mode 755 as modified by the umask.
317 # This is like FreeBSD 'install' as of 1997-10-28.
318 umask=`umask`
319 case $stripcmd.$umask in
320 # Optimize common cases.
321 *[2367][2367]) mkdir_umask=$umask;;
322 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
323
324 *[0-7])
325 mkdir_umask=`expr $umask + 22 \
326 - $umask % 100 % 40 + $umask % 20 \
327 - $umask % 10 % 4 + $umask % 2
328 `;;
329 *) mkdir_umask=$umask,go-w;;
330 esac
331
332 # With -d, create the new directory with the user-specified mode.
333 # Otherwise, rely on $mkdir_umask.
334 if test -n "$dir_arg"; then
335 mkdir_mode=-m$mode
336 else
337 mkdir_mode=
338 fi
339
340 posix_mkdir=false
341 case $umask in
342 *[123567][0-7][0-7])
343 # POSIX mkdir -p sets u+wx bits regardless of umask, which
344 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
345 ;;
346 *)
347 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
348 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
349
350 if (umask $mkdir_umask &&
351 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
352 then
353 if test -z "$dir_arg" || {
354 # Check for POSIX incompatibilities with -m.
355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
356 # other-writable bit of parent directory when it shouldn't.
357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
359 case $ls_ld_tmpdir in
360 d????-?r-*) different_mode=700;;
361 d????-?--*) different_mode=755;;
362 *) false;;
363 esac &&
364 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
365 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
366 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
367 }
368 }
369 then posix_mkdir=:
370 fi
371 rmdir "$tmpdir/d" "$tmpdir"
372 else
373 # Remove any dirs left behind by ancient mkdir implementations.
374 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
375 fi
376 trap '' 0;;
377 esac;;
378 esac
379
380 if
381 $posix_mkdir && (
382 umask $mkdir_umask &&
383 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
384 )
385 then :
386 else
387
388 # The umask is ridiculous, or mkdir does not conform to POSIX,
389 # or it failed possibly due to a race condition. Create the
390 # directory the slow way, step by step, checking for races as we go.
391
392 case $dstdir in
393 /*) prefix='/';;
394 [-=\(\)!]*) prefix='./';;
395 *) prefix='';;
396 esac
397
398 eval "$initialize_posix_glob"
399
400 oIFS=$IFS
401 IFS=/
402 $posix_glob set -f
403 set fnord $dstdir
404 shift
405 $posix_glob set +f
406 IFS=$oIFS
407
408 prefixes=
409
410 for d
411 do
412 test X"$d" = X && continue
413
414 prefix=$prefix$d
415 if test -d "$prefix"; then
416 prefixes=
417 else
418 if $posix_mkdir; then
419 (umask=$mkdir_umask &&
420 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
421 # Don't fail if two instances are running concurrently.
422 test -d "$prefix" || exit 1
423 else
424 case $prefix in
425 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
426 *) qprefix=$prefix;;
427 esac
428 prefixes="$prefixes '$qprefix'"
429 fi
430 fi
431 prefix=$prefix/
432 done
433
434 if test -n "$prefixes"; then
435 # Don't fail if two instances are running concurrently.
436 (umask $mkdir_umask &&
437 eval "\$doit_exec \$mkdirprog $prefixes") ||
438 test -d "$dstdir" || exit 1
439 obsolete_mkdir_used=true
440 fi
441 fi
442 fi
443
444 if test -n "$dir_arg"; then
445 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
446 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
447 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
448 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
449 else
450
451 # Make a couple of temp file names in the proper directory.
452 dsttmp=$dstdir/_inst.$$_
453 rmtmp=$dstdir/_rm.$$_
454
455 # Trap to clean up those temp files at exit.
456 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
457
458 # Copy the file name to the temp name.
459 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
460
461 # and set any options; do chmod last to preserve setuid bits.
462 #
463 # If any of these fail, we abort the whole thing. If we want to
464 # ignore errors from any of these, just make sure not to ignore
465 # errors from the above "$doit $cpprog $src $dsttmp" command.
466 #
467 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
468 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
469 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
470 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
471
472 # If -C, don't bother to copy if it wouldn't change the file.
473 if $copy_on_change &&
474 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
475 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
476
477 eval "$initialize_posix_glob" &&
478 $posix_glob set -f &&
479 set X $old && old=:$2:$4:$5:$6 &&
480 set X $new && new=:$2:$4:$5:$6 &&
481 $posix_glob set +f &&
482
483 test "$old" = "$new" &&
484 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
485 then
486 rm -f "$dsttmp"
487 else
488 # Rename the file to the real destination.
489 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
490
491 # The rename failed, perhaps because mv can't rename something else
492 # to itself, or perhaps because mv is so ancient that it does not
493 # support -f.
494 {
495 # Now remove or move aside any old file at destination location.
496 # We try this two ways since rm can't unlink itself on some
497 # systems and the destination file might be busy for other
498 # reasons. In this case, the final cleanup might fail but the new
499 # file should still install successfully.
500 {
501 test ! -f "$dst" ||
502 $doit $rmcmd -f "$dst" 2>/dev/null ||
503 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
504 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
505 } ||
506 { echo "$0: cannot unlink or rename $dst" >&2
507 (exit 1); exit 1
508 }
509 } &&
510
511 # Now rename the file to the real destination.
512 $doit $mvcmd "$dsttmp" "$dst"
513 }
514 fi || exit 1
515
516 trap '' 0
517 fi
518 done
519
520 # Local variables:
521 # eval: (add-hook 'write-file-hooks 'time-stamp)
522 # time-stamp-start: "scriptversion="
523 # time-stamp-format: "%:y-%02m-%02d.%02H"
524 # time-stamp-time-zone: "UTC"
525 # time-stamp-end: "; # UTC"
526 # End:
+0
-9655
ltmain.sh less more
0
1 # libtool (GNU libtool) 2.4.2
2 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
6 # This is free software; see the source for copying conditions. There is NO
7 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8
9 # GNU Libtool is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
13 #
14 # As a special exception to the GNU General Public License,
15 # if you distribute this file as part of a program or library that
16 # is built using GNU Libtool, you may include this file under the
17 # same distribution terms that you use for the rest of that program.
18 #
19 # GNU Libtool is distributed in the hope that it will be useful, but
20 # WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 # General Public License for more details.
23 #
24 # You should have received a copy of the GNU General Public License
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
31 #
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --no-quiet, --no-silent
42 # print informational messages (default)
43 # --no-warn don't display warning messages
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
49 #
50 # MODE must be one of the following:
51 #
52 # clean remove files from the build directory
53 # compile compile a source file into a libtool object
54 # execute automatically set library path, then run a program
55 # finish complete the installation of libtool libraries
56 # install install libraries or executables
57 # link create a library or an executable
58 # uninstall remove libraries from an installed directory
59 #
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
63 #
64 # When reporting a bug, please describe a test case to reproduce it and
65 # include the following information:
66 #
67 # host-triplet: $host
68 # shell: $SHELL
69 # compiler: $LTCC
70 # compiler flags: $LTCFLAGS
71 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2
73 # automake: $automake_version
74 # autoconf: $autoconf_version
75 #
76 # Report bugs to <bug-libtool@gnu.org>.
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
78 # General help using GNU software: <http://www.gnu.org/gethelp/>.
79
80 PROGRAM=libtool
81 PACKAGE=libtool
82 VERSION=2.4.2
83 TIMESTAMP=""
84 package_revision=1.3337
85
86 # Be Bourne compatible
87 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
88 emulate sh
89 NULLCMD=:
90 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
91 # is contrary to our usage. Disable this feature.
92 alias -g '${1+"$@"}'='"$@"'
93 setopt NO_GLOB_SUBST
94 else
95 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
96 fi
97 BIN_SH=xpg4; export BIN_SH # for Tru64
98 DUALCASE=1; export DUALCASE # for MKS sh
99
100 # A function that is used when there is no print builtin or printf.
101 func_fallback_echo ()
102 {
103 eval 'cat <<_LTECHO_EOF
104 $1
105 _LTECHO_EOF'
106 }
107
108 # NLS nuisances: We save the old values to restore during execute mode.
109 lt_user_locale=
110 lt_safe_locale=
111 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
112 do
113 eval "if test \"\${$lt_var+set}\" = set; then
114 save_$lt_var=\$$lt_var
115 $lt_var=C
116 export $lt_var
117 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
118 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
119 fi"
120 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
124
125 $lt_unset CDPATH
126
127
128 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
129 # is ksh but when the shell is invoked as "sh" and the current value of
130 # the _XPG environment variable is not equal to 1 (one), the special
131 # positional parameter $0, within a function call, is the name of the
132 # function.
133 progpath="$0"
134
135
136
137 : ${CP="cp -f"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
139 : ${MAKE="make"}
140 : ${MKDIR="mkdir"}
141 : ${MV="mv -f"}
142 : ${RM="rm -f"}
143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
144 : ${Xsed="$SED -e 1s/^X//"}
145
146 # Global variables:
147 EXIT_SUCCESS=0
148 EXIT_FAILURE=1
149 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
150 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
151
152 exit_status=$EXIT_SUCCESS
153
154 # Make sure IFS has a sensible default
155 lt_nl='
156 '
157 IFS=" $lt_nl"
158
159 dirname="s,/[^/]*$,,"
160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
163 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164 # otherwise set result to NONDIR_REPLACEMENT.
165 func_dirname ()
166 {
167 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
168 if test "X$func_dirname_result" = "X${1}"; then
169 func_dirname_result="${3}"
170 else
171 func_dirname_result="$func_dirname_result${2}"
172 fi
173 } # func_dirname may be replaced by extended shell implementation
174
175
176 # func_basename file
177 func_basename ()
178 {
179 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
180 } # func_basename may be replaced by extended shell implementation
181
182
183 # func_dirname_and_basename file append nondir_replacement
184 # perform func_basename and func_dirname in a single function
185 # call:
186 # dirname: Compute the dirname of FILE. If nonempty,
187 # add APPEND to the result, otherwise set result
188 # to NONDIR_REPLACEMENT.
189 # value returned in "$func_dirname_result"
190 # basename: Compute filename of FILE.
191 # value retuned in "$func_basename_result"
192 # Implementation must be kept synchronized with func_dirname
193 # and func_basename. For efficiency, we do not delegate to
194 # those functions but instead duplicate the functionality here.
195 func_dirname_and_basename ()
196 {
197 # Extract subdirectory from the argument.
198 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
199 if test "X$func_dirname_result" = "X${1}"; then
200 func_dirname_result="${3}"
201 else
202 func_dirname_result="$func_dirname_result${2}"
203 fi
204 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
205 } # func_dirname_and_basename may be replaced by extended shell implementation
206
207
208 # func_stripname prefix suffix name
209 # strip PREFIX and SUFFIX off of NAME.
210 # PREFIX and SUFFIX must not contain globbing or regex special
211 # characters, hashes, percent signs, but SUFFIX may contain a leading
212 # dot (in which case that matches only a dot).
213 # func_strip_suffix prefix name
214 func_stripname ()
215 {
216 case ${2} in
217 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
218 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
219 esac
220 } # func_stripname may be replaced by extended shell implementation
221
222
223 # These SED scripts presuppose an absolute path with a trailing slash.
224 pathcar='s,^/\([^/]*\).*$,\1,'
225 pathcdr='s,^/[^/]*,,'
226 removedotparts=':dotsl
227 s@/\./@/@g
228 t dotsl
229 s,/\.$,/,'
230 collapseslashes='s@/\{1,\}@/@g'
231 finalslash='s,/*$,/,'
232
233 # func_normal_abspath PATH
234 # Remove doubled-up and trailing slashes, "." path components,
235 # and cancel out any ".." path components in PATH after making
236 # it an absolute path.
237 # value returned in "$func_normal_abspath_result"
238 func_normal_abspath ()
239 {
240 # Start from root dir and reassemble the path.
241 func_normal_abspath_result=
242 func_normal_abspath_tpath=$1
243 func_normal_abspath_altnamespace=
244 case $func_normal_abspath_tpath in
245 "")
246 # Empty path, that just means $cwd.
247 func_stripname '' '/' "`pwd`"
248 func_normal_abspath_result=$func_stripname_result
249 return
250 ;;
251 # The next three entries are used to spot a run of precisely
252 # two leading slashes without using negated character classes;
253 # we take advantage of case's first-match behaviour.
254 ///*)
255 # Unusual form of absolute path, do nothing.
256 ;;
257 //*)
258 # Not necessarily an ordinary path; POSIX reserves leading '//'
259 # and for example Cygwin uses it to access remote file shares
260 # over CIFS/SMB, so we conserve a leading double slash if found.
261 func_normal_abspath_altnamespace=/
262 ;;
263 /*)
264 # Absolute path, do nothing.
265 ;;
266 *)
267 # Relative path, prepend $cwd.
268 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
269 ;;
270 esac
271 # Cancel out all the simple stuff to save iterations. We also want
272 # the path to end with a slash for ease of parsing, so make sure
273 # there is one (and only one) here.
274 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
275 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
276 while :; do
277 # Processed it all yet?
278 if test "$func_normal_abspath_tpath" = / ; then
279 # If we ascended to the root using ".." the result may be empty now.
280 if test -z "$func_normal_abspath_result" ; then
281 func_normal_abspath_result=/
282 fi
283 break
284 fi
285 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
286 -e "$pathcar"`
287 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
288 -e "$pathcdr"`
289 # Figure out what to do with it
290 case $func_normal_abspath_tcomponent in
291 "")
292 # Trailing empty path component, ignore it.
293 ;;
294 ..)
295 # Parent dir; strip last assembled component from result.
296 func_dirname "$func_normal_abspath_result"
297 func_normal_abspath_result=$func_dirname_result
298 ;;
299 *)
300 # Actual path component, append it.
301 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
302 ;;
303 esac
304 done
305 # Restore leading double-slash if one was found on entry.
306 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
307 }
308
309 # func_relative_path SRCDIR DSTDIR
310 # generates a relative path from SRCDIR to DSTDIR, with a trailing
311 # slash if non-empty, suitable for immediately appending a filename
312 # without needing to append a separator.
313 # value returned in "$func_relative_path_result"
314 func_relative_path ()
315 {
316 func_relative_path_result=
317 func_normal_abspath "$1"
318 func_relative_path_tlibdir=$func_normal_abspath_result
319 func_normal_abspath "$2"
320 func_relative_path_tbindir=$func_normal_abspath_result
321
322 # Ascend the tree starting from libdir
323 while :; do
324 # check if we have found a prefix of bindir
325 case $func_relative_path_tbindir in
326 $func_relative_path_tlibdir)
327 # found an exact match
328 func_relative_path_tcancelled=
329 break
330 ;;
331 $func_relative_path_tlibdir*)
332 # found a matching prefix
333 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
334 func_relative_path_tcancelled=$func_stripname_result
335 if test -z "$func_relative_path_result"; then
336 func_relative_path_result=.
337 fi
338 break
339 ;;
340 *)
341 func_dirname $func_relative_path_tlibdir
342 func_relative_path_tlibdir=${func_dirname_result}
343 if test "x$func_relative_path_tlibdir" = x ; then
344 # Have to descend all the way to the root!
345 func_relative_path_result=../$func_relative_path_result
346 func_relative_path_tcancelled=$func_relative_path_tbindir
347 break
348 fi
349 func_relative_path_result=../$func_relative_path_result
350 ;;
351 esac
352 done
353
354 # Now calculate path; take care to avoid doubling-up slashes.
355 func_stripname '' '/' "$func_relative_path_result"
356 func_relative_path_result=$func_stripname_result
357 func_stripname '/' '/' "$func_relative_path_tcancelled"
358 if test "x$func_stripname_result" != x ; then
359 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
360 fi
361
362 # Normalisation. If bindir is libdir, return empty string,
363 # else relative path ending with a slash; either way, target
364 # file name can be directly appended.
365 if test ! -z "$func_relative_path_result"; then
366 func_stripname './' '' "$func_relative_path_result/"
367 func_relative_path_result=$func_stripname_result
368 fi
369 }
370
371 # The name of this program:
372 func_dirname_and_basename "$progpath"
373 progname=$func_basename_result
374
375 # Make sure we have an absolute path for reexecution:
376 case $progpath in
377 [\\/]*|[A-Za-z]:\\*) ;;
378 *[\\/]*)
379 progdir=$func_dirname_result
380 progdir=`cd "$progdir" && pwd`
381 progpath="$progdir/$progname"
382 ;;
383 *)
384 save_IFS="$IFS"
385 IFS=${PATH_SEPARATOR-:}
386 for progdir in $PATH; do
387 IFS="$save_IFS"
388 test -x "$progdir/$progname" && break
389 done
390 IFS="$save_IFS"
391 test -n "$progdir" || progdir=`pwd`
392 progpath="$progdir/$progname"
393 ;;
394 esac
395
396 # Sed substitution that helps us do robust quoting. It backslashifies
397 # metacharacters that are still active within double-quoted strings.
398 Xsed="${SED}"' -e 1s/^X//'
399 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
400
401 # Same as above, but do not quote variable references.
402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
403
404 # Sed substitution that turns a string into a regex matching for the
405 # string literally.
406 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
407
408 # Sed substitution that converts a w32 file name or path
409 # which contains forward slashes, into one that contains
410 # (escaped) backslashes. A very naive implementation.
411 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
412
413 # Re-`\' parameter expansions in output of double_quote_subst that were
414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
415 # in input to double_quote_subst, that '$' was protected from expansion.
416 # Since each input `\' is now two `\'s, look for any number of runs of
417 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
418 bs='\\'
419 bs2='\\\\'
420 bs4='\\\\\\\\'
421 dollar='\$'
422 sed_double_backslash="\
423 s/$bs4/&\\
424 /g
425 s/^$bs2$dollar/$bs&/
426 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
427 s/\n//g"
428
429 # Standard options:
430 opt_dry_run=false
431 opt_help=false
432 opt_quiet=false
433 opt_verbose=false
434 opt_warning=:
435
436 # func_echo arg...
437 # Echo program name prefixed message, along with the current mode
438 # name if it has been set yet.
439 func_echo ()
440 {
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
442 }
443
444 # func_verbose arg...
445 # Echo program name prefixed message in verbose mode only.
446 func_verbose ()
447 {
448 $opt_verbose && func_echo ${1+"$@"}
449
450 # A bug in bash halts the script if the last line of a function
451 # fails when set -e is in force, so we need another command to
452 # work around that:
453 :
454 }
455
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
463 # func_error arg...
464 # Echo program name prefixed message to standard error.
465 func_error ()
466 {
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
468 }
469
470 # func_warning arg...
471 # Echo program name prefixed warning message to standard error.
472 func_warning ()
473 {
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
475
476 # bash bug again:
477 :
478 }
479
480 # func_fatal_error arg...
481 # Echo program name prefixed message to standard error, and exit.
482 func_fatal_error ()
483 {
484 func_error ${1+"$@"}
485 exit $EXIT_FAILURE
486 }
487
488 # func_fatal_help arg...
489 # Echo program name prefixed message to standard error, followed by
490 # a help hint, and exit.
491 func_fatal_help ()
492 {
493 func_error ${1+"$@"}
494 func_fatal_error "$help"
495 }
496 help="Try \`$progname --help' for more information." ## default
497
498
499 # func_grep expression filename
500 # Check whether EXPRESSION matches any line of FILENAME, without output.
501 func_grep ()
502 {
503 $GREP "$1" "$2" >/dev/null 2>&1
504 }
505
506
507 # func_mkdir_p directory-path
508 # Make sure the entire path to DIRECTORY-PATH is available.
509 func_mkdir_p ()
510 {
511 my_directory_path="$1"
512 my_dir_list=
513
514 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
515
516 # Protect directory names starting with `-'
517 case $my_directory_path in
518 -*) my_directory_path="./$my_directory_path" ;;
519 esac
520
521 # While some portion of DIR does not yet exist...
522 while test ! -d "$my_directory_path"; do
523 # ...make a list in topmost first order. Use a colon delimited
524 # list incase some portion of path contains whitespace.
525 my_dir_list="$my_directory_path:$my_dir_list"
526
527 # If the last portion added has no slash in it, the list is done
528 case $my_directory_path in */*) ;; *) break ;; esac
529
530 # ...otherwise throw away the child directory and loop
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
532 done
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
534
535 save_mkdir_p_IFS="$IFS"; IFS=':'
536 for my_dir in $my_dir_list; do
537 IFS="$save_mkdir_p_IFS"
538 # mkdir can fail with a `File exist' error if two processes
539 # try to create one of the directories concurrently. Don't
540 # stop in that case!
541 $MKDIR "$my_dir" 2>/dev/null || :
542 done
543 IFS="$save_mkdir_p_IFS"
544
545 # Bail out if we (or some other process) failed to create a directory.
546 test -d "$my_directory_path" || \
547 func_fatal_error "Failed to create \`$1'"
548 fi
549 }
550
551
552 # func_mktempdir [string]
553 # Make a temporary directory that won't clash with other running
554 # libtool processes, and avoids race conditions if possible. If
555 # given, STRING is the basename for that directory.
556 func_mktempdir ()
557 {
558 my_template="${TMPDIR-/tmp}/${1-$progname}"
559
560 if test "$opt_dry_run" = ":"; then
561 # Return a directory name, but don't create it in dry-run mode
562 my_tmpdir="${my_template}-$$"
563 else
564
565 # If mktemp works, use that first and foremost
566 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
567
568 if test ! -d "$my_tmpdir"; then
569 # Failing that, at least try and use $RANDOM to avoid a race
570 my_tmpdir="${my_template}-${RANDOM-0}$$"
571
572 save_mktempdir_umask=`umask`
573 umask 0077
574 $MKDIR "$my_tmpdir"
575 umask $save_mktempdir_umask
576 fi
577
578 # If we're not in dry-run mode, bomb out on failure
579 test -d "$my_tmpdir" || \
580 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
581 fi
582
583 $ECHO "$my_tmpdir"
584 }
585
586
587 # func_quote_for_eval arg
588 # Aesthetically quote ARG to be evaled later.
589 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
590 # is double-quoted, suitable for a subsequent eval, whereas
591 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
592 # which are still active within double quotes backslashified.
593 func_quote_for_eval ()
594 {
595 case $1 in
596 *[\\\`\"\$]*)
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
598 *)
599 func_quote_for_eval_unquoted_result="$1" ;;
600 esac
601
602 case $func_quote_for_eval_unquoted_result in
603 # Double-quote args containing shell metacharacters to delay
604 # word splitting, command substitution and and variable
605 # expansion for a subsequent eval.
606 # Many Bourne shells cannot handle close brackets correctly
607 # in scan sets, so we specify it separately.
608 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
609 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
610 ;;
611 *)
612 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
613 esac
614 }
615
616
617 # func_quote_for_expand arg
618 # Aesthetically quote ARG to be evaled later; same as above,
619 # but do not quote variable references.
620 func_quote_for_expand ()
621 {
622 case $1 in
623 *[\\\`\"]*)
624 my_arg=`$ECHO "$1" | $SED \
625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
626 *)
627 my_arg="$1" ;;
628 esac
629
630 case $my_arg in
631 # Double-quote args containing shell metacharacters to delay
632 # word splitting and command substitution for a subsequent eval.
633 # Many Bourne shells cannot handle close brackets correctly
634 # in scan sets, so we specify it separately.
635 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
636 my_arg="\"$my_arg\""
637 ;;
638 esac
639
640 func_quote_for_expand_result="$my_arg"
641 }
642
643
644 # func_show_eval cmd [fail_exp]
645 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
646 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
647 # is given, then evaluate it.
648 func_show_eval ()
649 {
650 my_cmd="$1"
651 my_fail_exp="${2-:}"
652
653 ${opt_silent-false} || {
654 func_quote_for_expand "$my_cmd"
655 eval "func_echo $func_quote_for_expand_result"
656 }
657
658 if ${opt_dry_run-false}; then :; else
659 eval "$my_cmd"
660 my_status=$?
661 if test "$my_status" -eq 0; then :; else
662 eval "(exit $my_status); $my_fail_exp"
663 fi
664 fi
665 }
666
667
668 # func_show_eval_locale cmd [fail_exp]
669 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
670 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
671 # is given, then evaluate it. Use the saved locale for evaluation.
672 func_show_eval_locale ()
673 {
674 my_cmd="$1"
675 my_fail_exp="${2-:}"
676
677 ${opt_silent-false} || {
678 func_quote_for_expand "$my_cmd"
679 eval "func_echo $func_quote_for_expand_result"
680 }
681
682 if ${opt_dry_run-false}; then :; else
683 eval "$lt_user_locale
684 $my_cmd"
685 my_status=$?
686 eval "$lt_safe_locale"
687 if test "$my_status" -eq 0; then :; else
688 eval "(exit $my_status); $my_fail_exp"
689 fi
690 fi
691 }
692
693 # func_tr_sh
694 # Turn $1 into a string suitable for a shell variable name.
695 # Result is stored in $func_tr_sh_result. All characters
696 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
697 # if $1 begins with a digit, a '_' is prepended as well.
698 func_tr_sh ()
699 {
700 case $1 in
701 [0-9]* | *[!a-zA-Z0-9_]*)
702 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
703 ;;
704 * )
705 func_tr_sh_result=$1
706 ;;
707 esac
708 }
709
710
711 # func_version
712 # Echo version message to standard output and exit.
713 func_version ()
714 {
715 $opt_debug
716
717 $SED -n '/(C)/!b go
718 :more
719 /\./!{
720 N
721 s/\n# / /
722 b more
723 }
724 :go
725 /^# '$PROGRAM' (GNU /,/# warranty; / {
726 s/^# //
727 s/^# *$//
728 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
729 p
730 }' < "$progpath"
731 exit $?
732 }
733
734 # func_usage
735 # Echo short help message to standard output and exit.
736 func_usage ()
737 {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
741 s/^# //
742 s/^# *$//
743 s/\$progname/'$progname'/
744 p
745 }' < "$progpath"
746 echo
747 $ECHO "run \`$progname --help | more' for full usage"
748 exit $?
749 }
750
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
754 func_help ()
755 {
756 $opt_debug
757
758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
760 s/^# //
761 s/^# *$//
762 s*\$progname*'$progname'*
763 s*\$host*'"$host"'*
764 s*\$SHELL*'"$SHELL"'*
765 s*\$LTCC*'"$LTCC"'*
766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
767 s*\$LD*'"$LD"'*
768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
771 p
772 d
773 }
774 /^# .* home page:/b print
775 /^# General help using/b print
776 ' < "$progpath"
777 ret=$?
778 if test -z "$1"; then
779 exit $ret
780 fi
781 }
782
783 # func_missing_arg argname
784 # Echo program name prefixed message to standard error and set global
785 # exit_cmd.
786 func_missing_arg ()
787 {
788 $opt_debug
789
790 func_error "missing argument for $1."
791 exit_cmd=exit
792 }
793
794
795 # func_split_short_opt shortopt
796 # Set func_split_short_opt_name and func_split_short_opt_arg shell
797 # variables after splitting SHORTOPT after the 2nd character.
798 func_split_short_opt ()
799 {
800 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
801 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
802
803 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
804 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
805 } # func_split_short_opt may be replaced by extended shell implementation
806
807
808 # func_split_long_opt longopt
809 # Set func_split_long_opt_name and func_split_long_opt_arg shell
810 # variables after splitting LONGOPT at the `=' sign.
811 func_split_long_opt ()
812 {
813 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
814 my_sed_long_arg='1s/^--[^=]*=//'
815
816 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
817 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
818 } # func_split_long_opt may be replaced by extended shell implementation
819
820 exit_cmd=:
821
822
823
824
825
826 magic="%%%MAGIC variable%%%"
827 magic_exe="%%%MAGIC EXE variable%%%"
828
829 # Global variables.
830 nonopt=
831 preserve_args=
832 lo2o="s/\\.lo\$/.${objext}/"
833 o2lo="s/\\.${objext}\$/.lo/"
834 extracted_archives=
835 extracted_serial=0
836
837 # If this variable is set in any of the actions, the command in it
838 # will be execed at the end. This prevents here-documents from being
839 # left over by shells.
840 exec_cmd=
841
842 # func_append var value
843 # Append VALUE to the end of shell variable VAR.
844 func_append ()
845 {
846 eval "${1}=\$${1}\${2}"
847 } # func_append may be replaced by extended shell implementation
848
849 # func_append_quoted var value
850 # Quote VALUE and append to the end of shell variable VAR, separated
851 # by a space.
852 func_append_quoted ()
853 {
854 func_quote_for_eval "${2}"
855 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
856 } # func_append_quoted may be replaced by extended shell implementation
857
858
859 # func_arith arithmetic-term...
860 func_arith ()
861 {
862 func_arith_result=`expr "${@}"`
863 } # func_arith may be replaced by extended shell implementation
864
865
866 # func_len string
867 # STRING may not start with a hyphen.
868 func_len ()
869 {
870 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
871 } # func_len may be replaced by extended shell implementation
872
873
874 # func_lo2o object
875 func_lo2o ()
876 {
877 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
878 } # func_lo2o may be replaced by extended shell implementation
879
880
881 # func_xform libobj-or-source
882 func_xform ()
883 {
884 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
885 } # func_xform may be replaced by extended shell implementation
886
887
888 # func_fatal_configuration arg...
889 # Echo program name prefixed message to standard error, followed by
890 # a configuration failure hint, and exit.
891 func_fatal_configuration ()
892 {
893 func_error ${1+"$@"}
894 func_error "See the $PACKAGE documentation for more information."
895 func_fatal_error "Fatal configuration error."
896 }
897
898
899 # func_config
900 # Display the configuration for all the tags in this script.
901 func_config ()
902 {
903 re_begincf='^# ### BEGIN LIBTOOL'
904 re_endcf='^# ### END LIBTOOL'
905
906 # Default configuration.
907 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
908
909 # Now print the configurations for the tags.
910 for tagname in $taglist; do
911 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
912 done
913
914 exit $?
915 }
916
917 # func_features
918 # Display the features supported by this script.
919 func_features ()
920 {
921 echo "host: $host"
922 if test "$build_libtool_libs" = yes; then
923 echo "enable shared libraries"
924 else
925 echo "disable shared libraries"
926 fi
927 if test "$build_old_libs" = yes; then
928 echo "enable static libraries"
929 else
930 echo "disable static libraries"
931 fi
932
933 exit $?
934 }
935
936 # func_enable_tag tagname
937 # Verify that TAGNAME is valid, and either flag an error and exit, or
938 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
939 # variable here.
940 func_enable_tag ()
941 {
942 # Global variable:
943 tagname="$1"
944
945 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
946 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
947 sed_extractcf="/$re_begincf/,/$re_endcf/p"
948
949 # Validate tagname.
950 case $tagname in
951 *[!-_A-Za-z0-9,/]*)
952 func_fatal_error "invalid tag name: $tagname"
953 ;;
954 esac
955
956 # Don't test for the "default" C tag, as we know it's
957 # there but not specially marked.
958 case $tagname in
959 CC) ;;
960 *)
961 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
962 taglist="$taglist $tagname"
963
964 # Evaluate the configuration. Be careful to quote the path
965 # and the sed script, to avoid splitting on whitespace, but
966 # also don't use non-portable quotes within backquotes within
967 # quotes we have to do it in 2 steps:
968 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
969 eval "$extractedcf"
970 else
971 func_error "ignoring unknown tag $tagname"
972 fi
973 ;;
974 esac
975 }
976
977 # func_check_version_match
978 # Ensure that we are using m4 macros, and libtool script from the same
979 # release of libtool.
980 func_check_version_match ()
981 {
982 if test "$package_revision" != "$macro_revision"; then
983 if test "$VERSION" != "$macro_version"; then
984 if test -z "$macro_version"; then
985 cat >&2 <<_LT_EOF
986 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
987 $progname: definition of this LT_INIT comes from an older release.
988 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
989 $progname: and run autoconf again.
990 _LT_EOF
991 else
992 cat >&2 <<_LT_EOF
993 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
994 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
995 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
996 $progname: and run autoconf again.
997 _LT_EOF
998 fi
999 else
1000 cat >&2 <<_LT_EOF
1001 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
1002 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
1003 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
1004 $progname: of $PACKAGE $VERSION and run autoconf again.
1005 _LT_EOF
1006 fi
1007
1008 exit $EXIT_MISMATCH
1009 fi
1010 }
1011
1012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
1167 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
1185 ;;
1186 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1188 ;;
1189 esac
1190
1191 $opt_help || {
1192 # Sanity checks first:
1193 func_check_version_match
1194
1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1196 func_fatal_configuration "not configured to build any kind of library"
1197 fi
1198
1199 # Darwin sucks
1200 eval std_shrext=\"$shrext_cmds\"
1201
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1205 $ECHO "$help" 1>&2
1206 exit $EXIT_FAILURE
1207 fi
1208
1209 # Change the help message to a mode-specific one.
1210 generic_help="$help"
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1212 }
1213
1214
1215 # Bail if the options were screwed
1216 $exit_cmd $EXIT_FAILURE
1217 }
1218
1219
1220
1221
1222 ## ----------- ##
1223 ## Main. ##
1224 ## ----------- ##
1225
1226 # func_lalib_p file
1227 # True iff FILE is a libtool `.la' library or `.lo' object file.
1228 # This function is only a basic sanity check; it will hardly flush out
1229 # determined imposters.
1230 func_lalib_p ()
1231 {
1232 test -f "$1" &&
1233 $SED -e 4q "$1" 2>/dev/null \
1234 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
1235 }
1236
1237 # func_lalib_unsafe_p file
1238 # True iff FILE is a libtool `.la' library or `.lo' object file.
1239 # This function implements the same check as func_lalib_p without
1240 # resorting to external programs. To this end, it redirects stdin and
1241 # closes it afterwards, without saving the original file descriptor.
1242 # As a safety measure, use it only where a negative result would be
1243 # fatal anyway. Works if `file' does not exist.
1244 func_lalib_unsafe_p ()
1245 {
1246 lalib_p=no
1247 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
1248 for lalib_p_l in 1 2 3 4
1249 do
1250 read lalib_p_line
1251 case "$lalib_p_line" in
1252 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
1253 esac
1254 done
1255 exec 0<&5 5<&-
1256 fi
1257 test "$lalib_p" = yes
1258 }
1259
1260 # func_ltwrapper_script_p file
1261 # True iff FILE is a libtool wrapper script
1262 # This function is only a basic sanity check; it will hardly flush out
1263 # determined imposters.
1264 func_ltwrapper_script_p ()
1265 {
1266 func_lalib_p "$1"
1267 }
1268
1269 # func_ltwrapper_executable_p file
1270 # True iff FILE is a libtool wrapper executable
1271 # This function is only a basic sanity check; it will hardly flush out
1272 # determined imposters.
1273 func_ltwrapper_executable_p ()
1274 {
1275 func_ltwrapper_exec_suffix=
1276 case $1 in
1277 *.exe) ;;
1278 *) func_ltwrapper_exec_suffix=.exe ;;
1279 esac
1280 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
1281 }
1282
1283 # func_ltwrapper_scriptname file
1284 # Assumes file is an ltwrapper_executable
1285 # uses $file to determine the appropriate filename for a
1286 # temporary ltwrapper_script.
1287 func_ltwrapper_scriptname ()
1288 {
1289 func_dirname_and_basename "$1" "" "."
1290 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
1292 }
1293
1294 # func_ltwrapper_p file
1295 # True iff FILE is a libtool wrapper script or wrapper executable
1296 # This function is only a basic sanity check; it will hardly flush out
1297 # determined imposters.
1298 func_ltwrapper_p ()
1299 {
1300 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
1301 }
1302
1303
1304 # func_execute_cmds commands fail_cmd
1305 # Execute tilde-delimited COMMANDS.
1306 # If FAIL_CMD is given, eval that upon failure.
1307 # FAIL_CMD may read-access the current command in variable CMD!
1308 func_execute_cmds ()
1309 {
1310 $opt_debug
1311 save_ifs=$IFS; IFS='~'
1312 for cmd in $1; do
1313 IFS=$save_ifs
1314 eval cmd=\"$cmd\"
1315 func_show_eval "$cmd" "${2-:}"
1316 done
1317 IFS=$save_ifs
1318 }
1319
1320
1321 # func_source file
1322 # Source FILE, adding directory component if necessary.
1323 # Note that it is not necessary on cygwin/mingw to append a dot to
1324 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
1325 # behavior happens only for exec(3), not for open(2)! Also, sourcing
1326 # `FILE.' does not work on cygwin managed mounts.
1327 func_source ()
1328 {
1329 $opt_debug
1330 case $1 in
1331 */* | *\\*) . "$1" ;;
1332 *) . "./$1" ;;
1333 esac
1334 }
1335
1336
1337 # func_resolve_sysroot PATH
1338 # Replace a leading = in PATH with a sysroot. Store the result into
1339 # func_resolve_sysroot_result
1340 func_resolve_sysroot ()
1341 {
1342 func_resolve_sysroot_result=$1
1343 case $func_resolve_sysroot_result in
1344 =*)
1345 func_stripname '=' '' "$func_resolve_sysroot_result"
1346 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
1347 ;;
1348 esac
1349 }
1350
1351 # func_replace_sysroot PATH
1352 # If PATH begins with the sysroot, replace it with = and
1353 # store the result into func_replace_sysroot_result.
1354 func_replace_sysroot ()
1355 {
1356 case "$lt_sysroot:$1" in
1357 ?*:"$lt_sysroot"*)
1358 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
1360 ;;
1361 *)
1362 # Including no sysroot.
1363 func_replace_sysroot_result=$1
1364 ;;
1365 esac
1366 }
1367
1368 # func_infer_tag arg
1369 # Infer tagged configuration to use if any are available and
1370 # if one wasn't chosen via the "--tag" command line option.
1371 # Only attempt this if the compiler in the base compile
1372 # command doesn't match the default compiler.
1373 # arg is usually of the form 'gcc ...'
1374 func_infer_tag ()
1375 {
1376 $opt_debug
1377 if test -n "$available_tags" && test -z "$tagname"; then
1378 CC_quoted=
1379 for arg in $CC; do
1380 func_append_quoted CC_quoted "$arg"
1381 done
1382 CC_expanded=`func_echo_all $CC`
1383 CC_quoted_expanded=`func_echo_all $CC_quoted`
1384 case $@ in
1385 # Blanks in the command may have been stripped by the calling shell,
1386 # but not from the CC environment variable when configure was run.
1387 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1388 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
1389 # Blanks at the start of $base_compile will cause this to fail
1390 # if we don't check for them as well.
1391 *)
1392 for z in $available_tags; do
1393 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
1394 # Evaluate the configuration.
1395 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
1396 CC_quoted=
1397 for arg in $CC; do
1398 # Double-quote args containing other shell metacharacters.
1399 func_append_quoted CC_quoted "$arg"
1400 done
1401 CC_expanded=`func_echo_all $CC`
1402 CC_quoted_expanded=`func_echo_all $CC_quoted`
1403 case "$@ " in
1404 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1405 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
1406 # The compiler in the base compile command matches
1407 # the one in the tagged configuration.
1408 # Assume this is the tagged configuration we want.
1409 tagname=$z
1410 break
1411 ;;
1412 esac
1413 fi
1414 done
1415 # If $tagname still isn't set, then no tagged configuration
1416 # was found and let the user know that the "--tag" command
1417 # line option must be used.
1418 if test -z "$tagname"; then
1419 func_echo "unable to infer tagged configuration"
1420 func_fatal_error "specify a tag with \`--tag'"
1421 # else
1422 # func_verbose "using $tagname tagged configuration"
1423 fi
1424 ;;
1425 esac
1426 fi
1427 }
1428
1429
1430
1431 # func_write_libtool_object output_name pic_name nonpic_name
1432 # Create a libtool object file (analogous to a ".la" file),
1433 # but don't create it if we're doing a dry run.
1434 func_write_libtool_object ()
1435 {
1436 write_libobj=${1}
1437 if test "$build_libtool_libs" = yes; then
1438 write_lobj=\'${2}\'
1439 else
1440 write_lobj=none
1441 fi
1442
1443 if test "$build_old_libs" = yes; then
1444 write_oldobj=\'${3}\'
1445 else
1446 write_oldobj=none
1447 fi
1448
1449 $opt_dry_run || {
1450 cat >${write_libobj}T <<EOF
1451 # $write_libobj - a libtool object file
1452 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
1453 #
1454 # Please DO NOT delete this file!
1455 # It is necessary for linking the library.
1456
1457 # Name of the PIC object.
1458 pic_object=$write_lobj
1459
1460 # Name of the non-PIC object
1461 non_pic_object=$write_oldobj
1462
1463 EOF
1464 $MV "${write_libobj}T" "${write_libobj}"
1465 }
1466 }
1467
1468
1469 ##################################################
1470 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
1471 ##################################################
1472
1473 # func_convert_core_file_wine_to_w32 ARG
1474 # Helper function used by file name conversion functions when $build is *nix,
1475 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
1476 # correctly configured wine environment available, with the winepath program
1477 # in $build's $PATH.
1478 #
1479 # ARG is the $build file name to be converted to w32 format.
1480 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
1481 # be empty on error (or when ARG is empty)
1482 func_convert_core_file_wine_to_w32 ()
1483 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
1486 if test -n "$1"; then
1487 # Unfortunately, winepath does not exit with a non-zero error code, so we
1488 # are forced to check the contents of stdout. On the other hand, if the
1489 # command is not found, the shell will set an exit code of 127 and print
1490 # *an error message* to stdout. So we must check for both error code of
1491 # zero AND non-empty stdout, which explains the odd construction:
1492 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1494 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
1496 else
1497 func_convert_core_file_wine_to_w32_result=
1498 fi
1499 fi
1500 }
1501 # end: func_convert_core_file_wine_to_w32
1502
1503
1504 # func_convert_core_path_wine_to_w32 ARG
1505 # Helper function used by path conversion functions when $build is *nix, and
1506 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
1507 # configured wine environment available, with the winepath program in $build's
1508 # $PATH. Assumes ARG has no leading or trailing path separator characters.
1509 #
1510 # ARG is path to be converted from $build format to win32.
1511 # Result is available in $func_convert_core_path_wine_to_w32_result.
1512 # Unconvertible file (directory) names in ARG are skipped; if no directory names
1513 # are convertible, then the result may be empty.
1514 func_convert_core_path_wine_to_w32 ()
1515 {
1516 $opt_debug
1517 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
1519 if test -n "$1"; then
1520 oldIFS=$IFS
1521 IFS=:
1522 for func_convert_core_path_wine_to_w32_f in $1; do
1523 IFS=$oldIFS
1524 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1526 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
1528 else
1529 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
1530 fi
1531 fi
1532 done
1533 IFS=$oldIFS
1534 fi
1535 }
1536 # end: func_convert_core_path_wine_to_w32
1537
1538
1539 # func_cygpath ARGS...
1540 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
1541 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
1542 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
1543 # (2), returns the Cygwin file name or path in func_cygpath_result (input
1544 # file name or path is assumed to be in w32 format, as previously converted
1545 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
1546 # or path in func_cygpath_result (input file name or path is assumed to be in
1547 # Cygwin format). Returns an empty string on error.
1548 #
1549 # ARGS are passed to cygpath, with the last one being the file name or path to
1550 # be converted.
1551 #
1552 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
1553 # environment variable; do not put it in $PATH.
1554 func_cygpath ()
1555 {
1556 $opt_debug
1557 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1558 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
1559 if test "$?" -ne 0; then
1560 # on failure, ensure result is empty
1561 func_cygpath_result=
1562 fi
1563 else
1564 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1566 fi
1567 }
1568 #end: func_cygpath
1569
1570
1571 # func_convert_core_msys_to_w32 ARG
1572 # Convert file name or path ARG from MSYS format to w32 format. Return
1573 # result in func_convert_core_msys_to_w32_result.
1574 func_convert_core_msys_to_w32 ()
1575 {
1576 $opt_debug
1577 # awkward: cmd appends spaces to result
1578 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1580 }
1581 #end: func_convert_core_msys_to_w32
1582
1583
1584 # func_convert_file_check ARG1 ARG2
1585 # Verify that ARG1 (a file name in $build format) was converted to $host
1586 # format in ARG2. Otherwise, emit an error message, but continue (resetting
1587 # func_to_host_file_result to ARG1).
1588 func_convert_file_check ()
1589 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
1592 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
1594 func_error "Continuing, but uninstalled executables may not work."
1595 # Fallback:
1596 func_to_host_file_result="$1"
1597 fi
1598 }
1599 # end func_convert_file_check
1600
1601
1602 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
1603 # Verify that FROM_PATH (a path in $build format) was converted to $host
1604 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
1605 # func_to_host_file_result to a simplistic fallback value (see below).
1606 func_convert_path_check ()
1607 {
1608 $opt_debug
1609 if test -z "$4" && test -n "$3"; then
1610 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
1612 func_error "Continuing, but uninstalled executables may not work."
1613 # Fallback. This is a deliberately simplistic "conversion" and
1614 # should not be "improved". See libtool.info.
1615 if test "x$1" != "x$2"; then
1616 lt_replace_pathsep_chars="s|$1|$2|g"
1617 func_to_host_path_result=`echo "$3" |
1618 $SED -e "$lt_replace_pathsep_chars"`
1619 else
1620 func_to_host_path_result="$3"
1621 fi
1622 fi
1623 }
1624 # end func_convert_path_check
1625
1626
1627 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
1628 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
1629 # and appending REPL if ORIG matches BACKPAT.
1630 func_convert_path_front_back_pathsep ()
1631 {
1632 $opt_debug
1633 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
1635 ;;
1636 esac
1637 case $4 in
1638 $2 ) func_append func_to_host_path_result "$3"
1639 ;;
1640 esac
1641 }
1642 # end func_convert_path_front_back_pathsep
1643
1644
1645 ##################################################
1646 # $build to $host FILE NAME CONVERSION FUNCTIONS #
1647 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
1649 #
1650 # In each case, ARG is the path to be converted from $build to $host format.
1651 # Result will be available in $func_to_host_file_result.
1652
1653
1654 # func_to_host_file ARG
1655 # Converts the file name ARG from $build format to $host format. Return result
1656 # in func_to_host_file_result.
1657 func_to_host_file ()
1658 {
1659 $opt_debug
1660 $to_host_file_cmd "$1"
1661 }
1662 # end func_to_host_file
1663
1664
1665 # func_to_tool_file ARG LAZY
1666 # converts the file name ARG from $build format to toolchain format. Return
1667 # result in func_to_tool_file_result. If the conversion in use is listed
1668 # in (the comma separated) LAZY, no conversion takes place.
1669 func_to_tool_file ()
1670 {
1671 $opt_debug
1672 case ,$2, in
1673 *,"$to_tool_file_cmd",*)
1674 func_to_tool_file_result=$1
1675 ;;
1676 *)
1677 $to_tool_file_cmd "$1"
1678 func_to_tool_file_result=$func_to_host_file_result
1679 ;;
1680 esac
1681 }
1682 # end func_to_tool_file
1683
1684
1685 # func_convert_file_noop ARG
1686 # Copy ARG to func_to_host_file_result.
1687 func_convert_file_noop ()
1688 {
1689 func_to_host_file_result="$1"
1690 }
1691 # end func_convert_file_noop
1692
1693
1694 # func_convert_file_msys_to_w32 ARG
1695 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
1696 # conversion to w32 is not available inside the cwrapper. Returns result in
1697 # func_to_host_file_result.
1698 func_convert_file_msys_to_w32 ()
1699 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
1702 if test -n "$1"; then
1703 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
1705 fi
1706 func_convert_file_check "$1" "$func_to_host_file_result"
1707 }
1708 # end func_convert_file_msys_to_w32
1709
1710
1711 # func_convert_file_cygwin_to_w32 ARG
1712 # Convert file name ARG from Cygwin to w32 format. Returns result in
1713 # func_to_host_file_result.
1714 func_convert_file_cygwin_to_w32 ()
1715 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
1718 if test -n "$1"; then
1719 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
1720 # LT_CYGPATH in this case.
1721 func_to_host_file_result=`cygpath -m "$1"`
1722 fi
1723 func_convert_file_check "$1" "$func_to_host_file_result"
1724 }
1725 # end func_convert_file_cygwin_to_w32
1726
1727
1728 # func_convert_file_nix_to_w32 ARG
1729 # Convert file name ARG from *nix to w32 format. Requires a wine environment
1730 # and a working winepath. Returns result in func_to_host_file_result.
1731 func_convert_file_nix_to_w32 ()
1732 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
1735 if test -n "$1"; then
1736 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
1738 fi
1739 func_convert_file_check "$1" "$func_to_host_file_result"
1740 }
1741 # end func_convert_file_nix_to_w32
1742
1743
1744 # func_convert_file_msys_to_cygwin ARG
1745 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1746 # Returns result in func_to_host_file_result.
1747 func_convert_file_msys_to_cygwin ()
1748 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
1751 if test -n "$1"; then
1752 func_convert_core_msys_to_w32 "$1"
1753 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
1755 fi
1756 func_convert_file_check "$1" "$func_to_host_file_result"
1757 }
1758 # end func_convert_file_msys_to_cygwin
1759
1760
1761 # func_convert_file_nix_to_cygwin ARG
1762 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
1763 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
1764 # in func_to_host_file_result.
1765 func_convert_file_nix_to_cygwin ()
1766 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
1769 if test -n "$1"; then
1770 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
1771 func_convert_core_file_wine_to_w32 "$1"
1772 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
1774 fi
1775 func_convert_file_check "$1" "$func_to_host_file_result"
1776 }
1777 # end func_convert_file_nix_to_cygwin
1778
1779
1780 #############################################
1781 # $build to $host PATH CONVERSION FUNCTIONS #
1782 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
1784 #
1785 # In each case, ARG is the path to be converted from $build to $host format.
1786 # The result will be available in $func_to_host_path_result.
1787 #
1788 # Path separators are also converted from $build format to $host format. If
1789 # ARG begins or ends with a path separator character, it is preserved (but
1790 # converted to $host format) on output.
1791 #
1792 # All path conversion functions are named using the following convention:
1793 # file name conversion function : func_convert_file_X_to_Y ()
1794 # path conversion function : func_convert_path_X_to_Y ()
1795 # where, for any given $build/$host combination the 'X_to_Y' value is the
1796 # same. If conversion functions are added for new $build/$host combinations,
1797 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
1798 # will break.
1799
1800
1801 # func_init_to_host_path_cmd
1802 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
1803 # appropriate value, based on the value of $to_host_file_cmd.
1804 to_host_path_cmd=
1805 func_init_to_host_path_cmd ()
1806 {
1807 $opt_debug
1808 if test -z "$to_host_path_cmd"; then
1809 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
1811 fi
1812 }
1813
1814
1815 # func_to_host_path ARG
1816 # Converts the path ARG from $build format to $host format. Return result
1817 # in func_to_host_path_result.
1818 func_to_host_path ()
1819 {
1820 $opt_debug
1821 func_init_to_host_path_cmd
1822 $to_host_path_cmd "$1"
1823 }
1824 # end func_to_host_path
1825
1826
1827 # func_convert_path_noop ARG
1828 # Copy ARG to func_to_host_path_result.
1829 func_convert_path_noop ()
1830 {
1831 func_to_host_path_result="$1"
1832 }
1833 # end func_convert_path_noop
1834
1835
1836 # func_convert_path_msys_to_w32 ARG
1837 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
1838 # conversion to w32 is not available inside the cwrapper. Returns result in
1839 # func_to_host_path_result.
1840 func_convert_path_msys_to_w32 ()
1841 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
1844 if test -n "$1"; then
1845 # Remove leading and trailing path separator characters from ARG. MSYS
1846 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
1847 # and winepath ignores them completely.
1848 func_stripname : : "$1"
1849 func_to_host_path_tmp1=$func_stripname_result
1850 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
1852 func_convert_path_check : ";" \
1853 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1854 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1855 fi
1856 }
1857 # end func_convert_path_msys_to_w32
1858
1859
1860 # func_convert_path_cygwin_to_w32 ARG
1861 # Convert path ARG from Cygwin to w32 format. Returns result in
1862 # func_to_host_file_result.
1863 func_convert_path_cygwin_to_w32 ()
1864 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
1867 if test -n "$1"; then
1868 # See func_convert_path_msys_to_w32:
1869 func_stripname : : "$1"
1870 func_to_host_path_tmp1=$func_stripname_result
1871 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1872 func_convert_path_check : ";" \
1873 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1874 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1875 fi
1876 }
1877 # end func_convert_path_cygwin_to_w32
1878
1879
1880 # func_convert_path_nix_to_w32 ARG
1881 # Convert path ARG from *nix to w32 format. Requires a wine environment and
1882 # a working winepath. Returns result in func_to_host_file_result.
1883 func_convert_path_nix_to_w32 ()
1884 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
1887 if test -n "$1"; then
1888 # See func_convert_path_msys_to_w32:
1889 func_stripname : : "$1"
1890 func_to_host_path_tmp1=$func_stripname_result
1891 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
1893 func_convert_path_check : ";" \
1894 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1895 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1896 fi
1897 }
1898 # end func_convert_path_nix_to_w32
1899
1900
1901 # func_convert_path_msys_to_cygwin ARG
1902 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1903 # Returns result in func_to_host_file_result.
1904 func_convert_path_msys_to_cygwin ()
1905 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
1908 if test -n "$1"; then
1909 # See func_convert_path_msys_to_w32:
1910 func_stripname : : "$1"
1911 func_to_host_path_tmp1=$func_stripname_result
1912 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1913 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
1915 func_convert_path_check : : \
1916 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1917 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1918 fi
1919 }
1920 # end func_convert_path_msys_to_cygwin
1921
1922
1923 # func_convert_path_nix_to_cygwin ARG
1924 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
1925 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
1926 # func_to_host_file_result.
1927 func_convert_path_nix_to_cygwin ()
1928 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
1931 if test -n "$1"; then
1932 # Remove leading and trailing path separator characters from
1933 # ARG. msys behavior is inconsistent here, cygpath turns them
1934 # into '.;' and ';.', and winepath ignores them completely.
1935 func_stripname : : "$1"
1936 func_to_host_path_tmp1=$func_stripname_result
1937 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1938 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
1940 func_convert_path_check : : \
1941 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1942 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1943 fi
1944 }
1945 # end func_convert_path_nix_to_cygwin
1946
1947
1948 # func_mode_compile arg...
1949 func_mode_compile ()
1950 {
1951 $opt_debug
1952 # Get the compilation command and the source file.
1953 base_compile=
1954 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1955 suppress_opt=yes
1956 suppress_output=
1957 arg_mode=normal
1958 libobj=
1959 later=
1960 pie_flag=
1961
1962 for arg
1963 do
1964 case $arg_mode in
1965 arg )
1966 # do not "continue". Instead, add this to base_compile
1967 lastarg="$arg"
1968 arg_mode=normal
1969 ;;
1970
1971 target )
1972 libobj="$arg"
1973 arg_mode=normal
1974 continue
1975 ;;
1976
1977 normal )
1978 # Accept any command-line options.
1979 case $arg in
1980 -o)
1981 test -n "$libobj" && \
1982 func_fatal_error "you cannot specify \`-o' more than once"
1983 arg_mode=target
1984 continue
1985 ;;
1986
1987 -pie | -fpie | -fPIE)
1988 func_append pie_flag " $arg"
1989 continue
1990 ;;
1991
1992 -shared | -static | -prefer-pic | -prefer-non-pic)
1993 func_append later " $arg"
1994 continue
1995 ;;
1996
1997 -no-suppress)
1998 suppress_opt=no
1999 continue
2000 ;;
2001
2002 -Xcompiler)
2003 arg_mode=arg # the next one goes into the "base_compile" arg list
2004 continue # The current "srcfile" will either be retained or
2005 ;; # replaced later. I would guess that would be a bug.
2006
2007 -Wc,*)
2008 func_stripname '-Wc,' '' "$arg"
2009 args=$func_stripname_result
2010 lastarg=
2011 save_ifs="$IFS"; IFS=','
2012 for arg in $args; do
2013 IFS="$save_ifs"
2014 func_append_quoted lastarg "$arg"
2015 done
2016 IFS="$save_ifs"
2017 func_stripname ' ' '' "$lastarg"
2018 lastarg=$func_stripname_result
2019
2020 # Add the arguments to base_compile.
2021 func_append base_compile " $lastarg"
2022 continue
2023 ;;
2024
2025 *)
2026 # Accept the current argument as the source file.
2027 # The previous "srcfile" becomes the current argument.
2028 #
2029 lastarg="$srcfile"
2030 srcfile="$arg"
2031 ;;
2032 esac # case $arg
2033 ;;
2034 esac # case $arg_mode
2035
2036 # Aesthetically quote the previous argument.
2037 func_append_quoted base_compile "$lastarg"
2038 done # for arg
2039
2040 case $arg_mode in
2041 arg)
2042 func_fatal_error "you must specify an argument for -Xcompile"
2043 ;;
2044 target)
2045 func_fatal_error "you must specify a target with \`-o'"
2046 ;;
2047 *)
2048 # Get the name of the library object.
2049 test -z "$libobj" && {
2050 func_basename "$srcfile"
2051 libobj="$func_basename_result"
2052 }
2053 ;;
2054 esac
2055
2056 # Recognize several different file suffixes.
2057 # If the user specifies -o file.o, it is replaced with file.lo
2058 case $libobj in
2059 *.[cCFSifmso] | \
2060 *.ada | *.adb | *.ads | *.asm | \
2061 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
2062 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
2063 func_xform "$libobj"
2064 libobj=$func_xform_result
2065 ;;
2066 esac
2067
2068 case $libobj in
2069 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
2070 *)
2071 func_fatal_error "cannot determine name of library object from \`$libobj'"
2072 ;;
2073 esac
2074
2075 func_infer_tag $base_compile
2076
2077 for arg in $later; do
2078 case $arg in
2079 -shared)
2080 test "$build_libtool_libs" != yes && \
2081 func_fatal_configuration "can not build a shared library"
2082 build_old_libs=no
2083 continue
2084 ;;
2085
2086 -static)
2087 build_libtool_libs=no
2088 build_old_libs=yes
2089 continue
2090 ;;
2091
2092 -prefer-pic)
2093 pic_mode=yes
2094 continue
2095 ;;
2096
2097 -prefer-non-pic)
2098 pic_mode=no
2099 continue
2100 ;;
2101 esac
2102 done
2103
2104 func_quote_for_eval "$libobj"
2105 test "X$libobj" != "X$func_quote_for_eval_result" \
2106 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
2107 && func_warning "libobj name \`$libobj' may not contain shell special characters."
2108 func_dirname_and_basename "$obj" "/" ""
2109 objname="$func_basename_result"
2110 xdir="$func_dirname_result"
2111 lobj=${xdir}$objdir/$objname
2112
2113 test -z "$base_compile" && \
2114 func_fatal_help "you must specify a compilation command"
2115
2116 # Delete any leftover library objects.
2117 if test "$build_old_libs" = yes; then
2118 removelist="$obj $lobj $libobj ${libobj}T"
2119 else
2120 removelist="$lobj $libobj ${libobj}T"
2121 fi
2122
2123 # On Cygwin there's no "real" PIC flag so we must build both object types
2124 case $host_os in
2125 cygwin* | mingw* | pw32* | os2* | cegcc*)
2126 pic_mode=default
2127 ;;
2128 esac
2129 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
2130 # non-PIC code in shared libraries is not supported
2131 pic_mode=default
2132 fi
2133
2134 # Calculate the filename of the output object if compiler does
2135 # not support -o with -c
2136 if test "$compiler_c_o" = no; then
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
2138 lockfile="$output_obj.lock"
2139 else
2140 output_obj=
2141 need_locks=no
2142 lockfile=
2143 fi
2144
2145 # Lock this critical section if it is needed
2146 # We use this script file to make the link, it avoids creating a new file
2147 if test "$need_locks" = yes; then
2148 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2149 func_echo "Waiting for $lockfile to be removed"
2150 sleep 2
2151 done
2152 elif test "$need_locks" = warn; then
2153 if test -f "$lockfile"; then
2154 $ECHO "\
2155 *** ERROR, $lockfile exists and contains:
2156 `cat $lockfile 2>/dev/null`
2157
2158 This indicates that another process is trying to use the same
2159 temporary object file, and libtool could not work around it because
2160 your compiler does not support \`-c' and \`-o' together. If you
2161 repeat this compilation, it may succeed, by chance, but you had better
2162 avoid parallel builds (make -j) in this platform, or get a better
2163 compiler."
2164
2165 $opt_dry_run || $RM $removelist
2166 exit $EXIT_FAILURE
2167 fi
2168 func_append removelist " $output_obj"
2169 $ECHO "$srcfile" > "$lockfile"
2170 fi
2171
2172 $opt_dry_run || $RM $removelist
2173 func_append removelist " $lockfile"
2174 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
2175
2176 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
2177 srcfile=$func_to_tool_file_result
2178 func_quote_for_eval "$srcfile"
2179 qsrcfile=$func_quote_for_eval_result
2180
2181 # Only build a PIC object if we are building libtool libraries.
2182 if test "$build_libtool_libs" = yes; then
2183 # Without this assignment, base_compile gets emptied.
2184 fbsd_hideous_sh_bug=$base_compile
2185
2186 if test "$pic_mode" != no; then
2187 command="$base_compile $qsrcfile $pic_flag"
2188 else
2189 # Don't build PIC code
2190 command="$base_compile $qsrcfile"
2191 fi
2192
2193 func_mkdir_p "$xdir$objdir"
2194
2195 if test -z "$output_obj"; then
2196 # Place PIC objects in $objdir
2197 func_append command " -o $lobj"
2198 fi
2199
2200 func_show_eval_locale "$command" \
2201 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
2202
2203 if test "$need_locks" = warn &&
2204 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2205 $ECHO "\
2206 *** ERROR, $lockfile contains:
2207 `cat $lockfile 2>/dev/null`
2208
2209 but it should contain:
2210 $srcfile
2211
2212 This indicates that another process is trying to use the same
2213 temporary object file, and libtool could not work around it because
2214 your compiler does not support \`-c' and \`-o' together. If you
2215 repeat this compilation, it may succeed, by chance, but you had better
2216 avoid parallel builds (make -j) in this platform, or get a better
2217 compiler."
2218
2219 $opt_dry_run || $RM $removelist
2220 exit $EXIT_FAILURE
2221 fi
2222
2223 # Just move the object if needed, then go on to compile the next one
2224 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
2225 func_show_eval '$MV "$output_obj" "$lobj"' \
2226 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
2227 fi
2228
2229 # Allow error messages only from the first compilation.
2230 if test "$suppress_opt" = yes; then
2231 suppress_output=' >/dev/null 2>&1'
2232 fi
2233 fi
2234
2235 # Only build a position-dependent object if we build old libraries.
2236 if test "$build_old_libs" = yes; then
2237 if test "$pic_mode" != yes; then
2238 # Don't build PIC code
2239 command="$base_compile $qsrcfile$pie_flag"
2240 else
2241 command="$base_compile $qsrcfile $pic_flag"
2242 fi
2243 if test "$compiler_c_o" = yes; then
2244 func_append command " -o $obj"
2245 fi
2246
2247 # Suppress compiler output if we already did a PIC compilation.
2248 func_append command "$suppress_output"
2249 func_show_eval_locale "$command" \
2250 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
2251
2252 if test "$need_locks" = warn &&
2253 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2254 $ECHO "\
2255 *** ERROR, $lockfile contains:
2256 `cat $lockfile 2>/dev/null`
2257
2258 but it should contain:
2259 $srcfile
2260
2261 This indicates that another process is trying to use the same
2262 temporary object file, and libtool could not work around it because
2263 your compiler does not support \`-c' and \`-o' together. If you
2264 repeat this compilation, it may succeed, by chance, but you had better
2265 avoid parallel builds (make -j) in this platform, or get a better
2266 compiler."
2267
2268 $opt_dry_run || $RM $removelist
2269 exit $EXIT_FAILURE
2270 fi
2271
2272 # Just move the object if needed
2273 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
2274 func_show_eval '$MV "$output_obj" "$obj"' \
2275 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
2276 fi
2277 fi
2278
2279 $opt_dry_run || {
2280 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
2281
2282 # Unlock the critical section if it was locked
2283 if test "$need_locks" != no; then
2284 removelist=$lockfile
2285 $RM "$lockfile"
2286 fi
2287 }
2288
2289 exit $EXIT_SUCCESS
2290 }
2291
2292 $opt_help || {
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
2294 }
2295
2296 func_mode_help ()
2297 {
2298 # We need to display help for each of the modes.
2299 case $opt_mode in
2300 "")
2301 # Generic help is extracted from the usage comments
2302 # at the start of this file.
2303 func_help
2304 ;;
2305
2306 clean)
2307 $ECHO \
2308 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
2309
2310 Remove files from the build directory.
2311
2312 RM is the name of the program to use to delete files associated with each FILE
2313 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2314 to RM.
2315
2316 If FILE is a libtool library, object or program, all the files associated
2317 with it are deleted. Otherwise, only FILE itself is deleted using RM."
2318 ;;
2319
2320 compile)
2321 $ECHO \
2322 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
2323
2324 Compile a source file into a libtool library object.
2325
2326 This mode accepts the following additional options:
2327
2328 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
2329 -no-suppress do not suppress compiler output for multiple passes
2330 -prefer-pic try to build PIC objects only
2331 -prefer-non-pic try to build non-PIC objects only
2332 -shared do not build a \`.o' file suitable for static linking
2333 -static only build a \`.o' file suitable for static linking
2334 -Wc,FLAG pass FLAG directly to the compiler
2335
2336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
2337 from the given SOURCEFILE.
2338
2339 The output file name is determined by removing the directory component from
2340 SOURCEFILE, then substituting the C source code suffix \`.c' with the
2341 library object suffix, \`.lo'."
2342 ;;
2343
2344 execute)
2345 $ECHO \
2346 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
2347
2348 Automatically set library path, then run a program.
2349
2350 This mode accepts the following additional options:
2351
2352 -dlopen FILE add the directory containing FILE to the library path
2353
2354 This mode sets the library path environment variable according to \`-dlopen'
2355 flags.
2356
2357 If any of the ARGS are libtool executable wrappers, then they are translated
2358 into their corresponding uninstalled binary, and any of their required library
2359 directories are added to the library path.
2360
2361 Then, COMMAND is executed, with ARGS as arguments."
2362 ;;
2363
2364 finish)
2365 $ECHO \
2366 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
2367
2368 Complete the installation of libtool libraries.
2369
2370 Each LIBDIR is a directory that contains libtool libraries.
2371
2372 The commands that this mode executes may require superuser privileges. Use
2373 the \`--dry-run' option if you just want to see what would be executed."
2374 ;;
2375
2376 install)
2377 $ECHO \
2378 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
2379
2380 Install executables or libraries.
2381
2382 INSTALL-COMMAND is the installation command. The first component should be
2383 either the \`install' or \`cp' program.
2384
2385 The following components of INSTALL-COMMAND are treated specially:
2386
2387 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
2388
2389 The rest of the components are interpreted as arguments to that command (only
2390 BSD-compatible install options are recognized)."
2391 ;;
2392
2393 link)
2394 $ECHO \
2395 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
2396
2397 Link object files or libraries together to form another library, or to
2398 create an executable program.
2399
2400 LINK-COMMAND is a command using the C compiler that you would use to create
2401 a program from several object files.
2402
2403 The following components of LINK-COMMAND are treated specially:
2404
2405 -all-static do not do any dynamic linking at all
2406 -avoid-version do not add a version suffix if possible
2407 -bindir BINDIR specify path to binaries directory (for systems where
2408 libraries must be found in the PATH setting at runtime)
2409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
2410 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
2411 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
2412 -export-symbols SYMFILE
2413 try to export only the symbols listed in SYMFILE
2414 -export-symbols-regex REGEX
2415 try to export only the symbols matching REGEX
2416 -LLIBDIR search LIBDIR for required installed libraries
2417 -lNAME OUTPUT-FILE requires the installed library libNAME
2418 -module build a library that can dlopened
2419 -no-fast-install disable the fast-install mode
2420 -no-install link a not-installable executable
2421 -no-undefined declare that a library does not refer to external symbols
2422 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2423 -objectlist FILE Use a list of object files found in FILE to specify objects
2424 -precious-files-regex REGEX
2425 don't remove output files matching REGEX
2426 -release RELEASE specify package release information
2427 -rpath LIBDIR the created library will eventually be installed in LIBDIR
2428 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
2429 -shared only do dynamic linking of libtool libraries
2430 -shrext SUFFIX override the standard shared library file extension
2431 -static do not do any dynamic linking of uninstalled libtool libraries
2432 -static-libtool-libs
2433 do not do any dynamic linking of libtool libraries
2434 -version-info CURRENT[:REVISION[:AGE]]
2435 specify library version info [each variable defaults to 0]
2436 -weak LIBNAME declare that the target provides the LIBNAME interface
2437 -Wc,FLAG
2438 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
2439 -Wl,FLAG
2440 -Xlinker FLAG pass linker-specific FLAG directly to the linker
2441 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
2442
2443 All other options (arguments beginning with \`-') are ignored.
2444
2445 Every other argument is treated as a filename. Files ending in \`.la' are
2446 treated as uninstalled libtool libraries, other files are standard or library
2447 object files.
2448
2449 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2450 only library objects (\`.lo' files) may be specified, and \`-rpath' is
2451 required, except when creating a convenience library.
2452
2453 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2454 using \`ar' and \`ranlib', or on Windows using \`lib'.
2455
2456 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
2457 is created, otherwise an executable program is created."
2458 ;;
2459
2460 uninstall)
2461 $ECHO \
2462 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
2463
2464 Remove libraries from an installation directory.
2465
2466 RM is the name of the program to use to delete files associated with each FILE
2467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2468 to RM.
2469
2470 If FILE is a libtool library, all the files associated with it are deleted.
2471 Otherwise, only FILE itself is deleted using RM."
2472 ;;
2473
2474 *)
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
2476 ;;
2477 esac
2478
2479 echo
2480 $ECHO "Try \`$progname --help' for more information about other modes."
2481 }
2482
2483 # Now that we've collected a possible --mode arg, show help if necessary
2484 if $opt_help; then
2485 if test "$opt_help" = :; then
2486 func_mode_help
2487 else
2488 {
2489 func_help noexit
2490 for opt_mode in compile link execute install finish uninstall clean; do
2491 func_mode_help
2492 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
2494 {
2495 func_help noexit
2496 for opt_mode in compile link execute install finish uninstall clean; do
2497 echo
2498 func_mode_help
2499 done
2500 } |
2501 sed '1d
2502 /^When reporting/,/^Report/{
2503 H
2504 d
2505 }
2506 $x
2507 /information about other modes/d
2508 /more detailed .*MODE/d
2509 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
2510 fi
2511 exit $?
2512 fi
2513
2514
2515 # func_mode_execute arg...
2516 func_mode_execute ()
2517 {
2518 $opt_debug
2519 # The first argument is the command name.
2520 cmd="$nonopt"
2521 test -z "$cmd" && \
2522 func_fatal_help "you must specify a COMMAND"
2523
2524 # Handle -dlopen flags immediately.
2525 for file in $opt_dlopen; do
2526 test -f "$file" \
2527 || func_fatal_help "\`$file' is not a file"
2528
2529 dir=
2530 case $file in
2531 *.la)
2532 func_resolve_sysroot "$file"
2533 file=$func_resolve_sysroot_result
2534
2535 # Check to see that this really is a libtool archive.
2536 func_lalib_unsafe_p "$file" \
2537 || func_fatal_help "\`$lib' is not a valid libtool archive"
2538
2539 # Read the libtool library.
2540 dlname=
2541 library_names=
2542 func_source "$file"
2543
2544 # Skip this library if it cannot be dlopened.
2545 if test -z "$dlname"; then
2546 # Warn if it was a shared library.
2547 test -n "$library_names" && \
2548 func_warning "\`$file' was not linked with \`-export-dynamic'"
2549 continue
2550 fi
2551
2552 func_dirname "$file" "" "."
2553 dir="$func_dirname_result"
2554
2555 if test -f "$dir/$objdir/$dlname"; then
2556 func_append dir "/$objdir"
2557 else
2558 if test ! -f "$dir/$dlname"; then
2559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
2560 fi
2561 fi
2562 ;;
2563
2564 *.lo)
2565 # Just add the directory containing the .lo file.
2566 func_dirname "$file" "" "."
2567 dir="$func_dirname_result"
2568 ;;
2569
2570 *)
2571 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
2572 continue
2573 ;;
2574 esac
2575
2576 # Get the absolute pathname.
2577 absdir=`cd "$dir" && pwd`
2578 test -n "$absdir" && dir="$absdir"
2579
2580 # Now add the directory to shlibpath_var.
2581 if eval "test -z \"\$$shlibpath_var\""; then
2582 eval "$shlibpath_var=\"\$dir\""
2583 else
2584 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
2585 fi
2586 done
2587
2588 # This variable tells wrapper scripts just to set shlibpath_var
2589 # rather than running their programs.
2590 libtool_execute_magic="$magic"
2591
2592 # Check if any of the arguments is a wrapper script.
2593 args=
2594 for file
2595 do
2596 case $file in
2597 -* | *.la | *.lo ) ;;
2598 *)
2599 # Do a test to see if this is really a libtool program.
2600 if func_ltwrapper_script_p "$file"; then
2601 func_source "$file"
2602 # Transform arg to wrapped name.
2603 file="$progdir/$program"
2604 elif func_ltwrapper_executable_p "$file"; then
2605 func_ltwrapper_scriptname "$file"
2606 func_source "$func_ltwrapper_scriptname_result"
2607 # Transform arg to wrapped name.
2608 file="$progdir/$program"
2609 fi
2610 ;;
2611 esac
2612 # Quote arguments (to preserve shell metacharacters).
2613 func_append_quoted args "$file"
2614 done
2615
2616 if test "X$opt_dry_run" = Xfalse; then
2617 if test -n "$shlibpath_var"; then
2618 # Export the shlibpath_var.
2619 eval "export $shlibpath_var"
2620 fi
2621
2622 # Restore saved environment variables
2623 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
2624 do
2625 eval "if test \"\${save_$lt_var+set}\" = set; then
2626 $lt_var=\$save_$lt_var; export $lt_var
2627 else
2628 $lt_unset $lt_var
2629 fi"
2630 done
2631
2632 # Now prepare to actually exec the command.
2633 exec_cmd="\$cmd$args"
2634 else
2635 # Display what would be done.
2636 if test -n "$shlibpath_var"; then
2637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
2638 echo "export $shlibpath_var"
2639 fi
2640 $ECHO "$cmd$args"
2641 exit $EXIT_SUCCESS
2642 fi
2643 }
2644
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
2646
2647
2648 # func_mode_finish arg...
2649 func_mode_finish ()
2650 {
2651 $opt_debug
2652 libs=
2653 libdirs=
2654 admincmds=
2655
2656 for opt in "$nonopt" ${1+"$@"}
2657 do
2658 if test -d "$opt"; then
2659 func_append libdirs " $opt"
2660
2661 elif test -f "$opt"; then
2662 if func_lalib_unsafe_p "$opt"; then
2663 func_append libs " $opt"
2664 else
2665 func_warning "\`$opt' is not a valid libtool archive"
2666 fi
2667
2668 else
2669 func_fatal_error "invalid argument \`$opt'"
2670 fi
2671 done
2672
2673 if test -n "$libs"; then
2674 if test -n "$lt_sysroot"; then
2675 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
2676 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
2677 else
2678 sysroot_cmd=
2679 fi
2680
2681 # Remove sysroot references
2682 if $opt_dry_run; then
2683 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
2685 done
2686 else
2687 tmpdir=`func_mktempdir`
2688 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2690 > $tmpdir/tmp-la
2691 mv -f $tmpdir/tmp-la $lib
2692 done
2693 ${RM}r "$tmpdir"
2694 fi
2695 fi
2696
2697 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2698 for libdir in $libdirs; do
2699 if test -n "$finish_cmds"; then
2700 # Do each command in the finish commands.
2701 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
2702 '"$cmd"'"'
2703 fi
2704 if test -n "$finish_eval"; then
2705 # Do the single finish_eval.
2706 eval cmds=\"$finish_eval\"
2707 $opt_dry_run || eval "$cmds" || func_append admincmds "
2708 $cmds"
2709 fi
2710 done
2711 fi
2712
2713 # Exit here if they wanted silent mode.
2714 $opt_silent && exit $EXIT_SUCCESS
2715
2716 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2717 echo "----------------------------------------------------------------------"
2718 echo "Libraries have been installed in:"
2719 for libdir in $libdirs; do
2720 $ECHO " $libdir"
2721 done
2722 echo
2723 echo "If you ever happen to want to link against installed libraries"
2724 echo "in a given directory, LIBDIR, you must either use libtool, and"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2726 echo "flag during linking and do at least one of the following:"
2727 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2729 echo " during execution"
2730 fi
2731 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2733 echo " during linking"
2734 fi
2735 if test -n "$hardcode_libdir_flag_spec"; then
2736 libdir=LIBDIR
2737 eval flag=\"$hardcode_libdir_flag_spec\"
2738
2739 $ECHO " - use the \`$flag' linker flag"
2740 fi
2741 if test -n "$admincmds"; then
2742 $ECHO " - have your system administrator run these commands:$admincmds"
2743 fi
2744 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2746 fi
2747 echo
2748
2749 echo "See any operating system documentation about shared libraries for"
2750 case $host in
2751 solaris2.[6789]|solaris2.1[0-9])
2752 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2753 echo "pages."
2754 ;;
2755 *)
2756 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2757 ;;
2758 esac
2759 echo "----------------------------------------------------------------------"
2760 fi
2761 exit $EXIT_SUCCESS
2762 }
2763
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
2765
2766
2767 # func_mode_install arg...
2768 func_mode_install ()
2769 {
2770 $opt_debug
2771 # There may be an optional sh(1) argument at the beginning of
2772 # install_prog (especially on Windows NT).
2773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
2774 # Allow the use of GNU shtool's install command.
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
2776 # Aesthetically quote it.
2777 func_quote_for_eval "$nonopt"
2778 install_prog="$func_quote_for_eval_result "
2779 arg=$1
2780 shift
2781 else
2782 install_prog=
2783 arg=$nonopt
2784 fi
2785
2786 # The real first argument should be the name of the installation program.
2787 # Aesthetically quote it.
2788 func_quote_for_eval "$arg"
2789 func_append install_prog "$func_quote_for_eval_result"
2790 install_shared_prog=$install_prog
2791 case " $install_prog " in
2792 *[\\\ /]cp\ *) install_cp=: ;;
2793 *) install_cp=false ;;
2794 esac
2795
2796 # We need to accept at least all the BSD install flags.
2797 dest=
2798 files=
2799 opts=
2800 prev=
2801 install_type=
2802 isdir=no
2803 stripme=
2804 no_mode=:
2805 for arg
2806 do
2807 arg2=
2808 if test -n "$dest"; then
2809 func_append files " $dest"
2810 dest=$arg
2811 continue
2812 fi
2813
2814 case $arg in
2815 -d) isdir=yes ;;
2816 -f)
2817 if $install_cp; then :; else
2818 prev=$arg
2819 fi
2820 ;;
2821 -g | -m | -o)
2822 prev=$arg
2823 ;;
2824 -s)
2825 stripme=" -s"
2826 continue
2827 ;;
2828 -*)
2829 ;;
2830 *)
2831 # If the previous option needed an argument, then skip it.
2832 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
2834 arg2=$install_override_mode
2835 no_mode=false
2836 fi
2837 prev=
2838 else
2839 dest=$arg
2840 continue
2841 fi
2842 ;;
2843 esac
2844
2845 # Aesthetically quote the argument.
2846 func_quote_for_eval "$arg"
2847 func_append install_prog " $func_quote_for_eval_result"
2848 if test -n "$arg2"; then
2849 func_quote_for_eval "$arg2"
2850 fi
2851 func_append install_shared_prog " $func_quote_for_eval_result"
2852 done
2853
2854 test -z "$install_prog" && \
2855 func_fatal_help "you must specify an install program"
2856
2857 test -n "$prev" && \
2858 func_fatal_help "the \`$prev' option requires an argument"
2859
2860 if test -n "$install_override_mode" && $no_mode; then
2861 if $install_cp; then :; else
2862 func_quote_for_eval "$install_override_mode"
2863 func_append install_shared_prog " -m $func_quote_for_eval_result"
2864 fi
2865 fi
2866
2867 if test -z "$files"; then
2868 if test -z "$dest"; then
2869 func_fatal_help "no file or destination specified"
2870 else
2871 func_fatal_help "you must specify a destination"
2872 fi
2873 fi
2874
2875 # Strip any trailing slash from the destination.
2876 func_stripname '' '/' "$dest"
2877 dest=$func_stripname_result
2878
2879 # Check to see that the destination is a directory.
2880 test -d "$dest" && isdir=yes
2881 if test "$isdir" = yes; then
2882 destdir="$dest"
2883 destname=
2884 else
2885 func_dirname_and_basename "$dest" "" "."
2886 destdir="$func_dirname_result"
2887 destname="$func_basename_result"
2888
2889 # Not a directory, so check to see that there is only one file specified.
2890 set dummy $files; shift
2891 test "$#" -gt 1 && \
2892 func_fatal_help "\`$dest' is not a directory"
2893 fi
2894 case $destdir in
2895 [\\/]* | [A-Za-z]:[\\/]*) ;;
2896 *)
2897 for file in $files; do
2898 case $file in
2899 *.lo) ;;
2900 *)
2901 func_fatal_help "\`$destdir' must be an absolute directory name"
2902 ;;
2903 esac
2904 done
2905 ;;
2906 esac
2907
2908 # This variable tells wrapper scripts just to set variables rather
2909 # than running their programs.
2910 libtool_install_magic="$magic"
2911
2912 staticlibs=
2913 future_libdirs=
2914 current_libdirs=
2915 for file in $files; do
2916
2917 # Do each installation.
2918 case $file in
2919 *.$libext)
2920 # Do the static libraries later.
2921 func_append staticlibs " $file"
2922 ;;
2923
2924 *.la)
2925 func_resolve_sysroot "$file"
2926 file=$func_resolve_sysroot_result
2927
2928 # Check to see that this really is a libtool archive.
2929 func_lalib_unsafe_p "$file" \
2930 || func_fatal_help "\`$file' is not a valid libtool archive"
2931
2932 library_names=
2933 old_library=
2934 relink_command=
2935 func_source "$file"
2936
2937 # Add the libdir to current_libdirs if it is the destination.
2938 if test "X$destdir" = "X$libdir"; then
2939 case "$current_libdirs " in
2940 *" $libdir "*) ;;
2941 *) func_append current_libdirs " $libdir" ;;
2942 esac
2943 else
2944 # Note the libdir as a future libdir.
2945 case "$future_libdirs " in
2946 *" $libdir "*) ;;
2947 *) func_append future_libdirs " $libdir" ;;
2948 esac
2949 fi
2950
2951 func_dirname "$file" "/" ""
2952 dir="$func_dirname_result"
2953 func_append dir "$objdir"
2954
2955 if test -n "$relink_command"; then
2956 # Determine the prefix the user has applied to our future dir.
2957 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
2958
2959 # Don't allow the user to place us outside of our expected
2960 # location b/c this prevents finding dependent libraries that
2961 # are installed to the same prefix.
2962 # At present, this check doesn't affect windows .dll's that
2963 # are installed into $libdir/../bin (currently, that works fine)
2964 # but it's something to keep an eye on.
2965 test "$inst_prefix_dir" = "$destdir" && \
2966 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
2967
2968 if test -n "$inst_prefix_dir"; then
2969 # Stick the inst_prefix_dir data into the link command.
2970 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2971 else
2972 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
2973 fi
2974
2975 func_warning "relinking \`$file'"
2976 func_show_eval "$relink_command" \
2977 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
2978 fi
2979
2980 # See the names of the shared library.
2981 set dummy $library_names; shift
2982 if test -n "$1"; then
2983 realname="$1"
2984 shift
2985
2986 srcname="$realname"
2987 test -n "$relink_command" && srcname="$realname"T
2988
2989 # Install the shared library and build the symlinks.
2990 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
2991 'exit $?'
2992 tstripme="$stripme"
2993 case $host_os in
2994 cygwin* | mingw* | pw32* | cegcc*)
2995 case $realname in
2996 *.dll.a)
2997 tstripme=""
2998 ;;
2999 esac
3000 ;;
3001 esac
3002 if test -n "$tstripme" && test -n "$striplib"; then
3003 func_show_eval "$striplib $destdir/$realname" 'exit $?'
3004 fi
3005
3006 if test "$#" -gt 0; then
3007 # Delete the old symlinks, and create new ones.
3008 # Try `ln -sf' first, because the `ln' binary might depend on
3009 # the symlink we replace! Solaris /bin/ln does not understand -f,
3010 # so we also need to try rm && ln -s.
3011 for linkname
3012 do
3013 test "$linkname" != "$realname" \
3014 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
3015 done
3016 fi
3017
3018 # Do each command in the postinstall commands.
3019 lib="$destdir/$realname"
3020 func_execute_cmds "$postinstall_cmds" 'exit $?'
3021 fi
3022
3023 # Install the pseudo-library for information purposes.
3024 func_basename "$file"
3025 name="$func_basename_result"
3026 instname="$dir/$name"i
3027 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
3028
3029 # Maybe install the static library, too.
3030 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
3031 ;;
3032
3033 *.lo)
3034 # Install (i.e. copy) a libtool object.
3035
3036 # Figure out destination file name, if it wasn't already specified.
3037 if test -n "$destname"; then
3038 destfile="$destdir/$destname"
3039 else
3040 func_basename "$file"
3041 destfile="$func_basename_result"
3042 destfile="$destdir/$destfile"
3043 fi
3044
3045 # Deduce the name of the destination old-style object file.
3046 case $destfile in
3047 *.lo)
3048 func_lo2o "$destfile"
3049 staticdest=$func_lo2o_result
3050 ;;
3051 *.$objext)
3052 staticdest="$destfile"
3053 destfile=
3054 ;;
3055 *)
3056 func_fatal_help "cannot copy a libtool object to \`$destfile'"
3057 ;;
3058 esac
3059
3060 # Install the libtool object if requested.
3061 test -n "$destfile" && \
3062 func_show_eval "$install_prog $file $destfile" 'exit $?'
3063
3064 # Install the old object if enabled.
3065 if test "$build_old_libs" = yes; then
3066 # Deduce the name of the old-style object file.
3067 func_lo2o "$file"
3068 staticobj=$func_lo2o_result
3069 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
3070 fi
3071 exit $EXIT_SUCCESS
3072 ;;
3073
3074 *)
3075 # Figure out destination file name, if it wasn't already specified.
3076 if test -n "$destname"; then
3077 destfile="$destdir/$destname"
3078 else
3079 func_basename "$file"
3080 destfile="$func_basename_result"
3081 destfile="$destdir/$destfile"
3082 fi
3083
3084 # If the file is missing, and there is a .exe on the end, strip it
3085 # because it is most likely a libtool script we actually want to
3086 # install
3087 stripped_ext=""
3088 case $file in
3089 *.exe)
3090 if test ! -f "$file"; then
3091 func_stripname '' '.exe' "$file"
3092 file=$func_stripname_result
3093 stripped_ext=".exe"
3094 fi
3095 ;;
3096 esac
3097
3098 # Do a test to see if this is really a libtool program.
3099 case $host in
3100 *cygwin* | *mingw*)
3101 if func_ltwrapper_executable_p "$file"; then
3102 func_ltwrapper_scriptname "$file"
3103 wrapper=$func_ltwrapper_scriptname_result
3104 else
3105 func_stripname '' '.exe' "$file"
3106 wrapper=$func_stripname_result
3107 fi
3108 ;;
3109 *)
3110 wrapper=$file
3111 ;;
3112 esac
3113 if func_ltwrapper_script_p "$wrapper"; then
3114 notinst_deplibs=
3115 relink_command=
3116
3117 func_source "$wrapper"
3118
3119 # Check the variables that should have been set.
3120 test -z "$generated_by_libtool_version" && \
3121 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
3122
3123 finalize=yes
3124 for lib in $notinst_deplibs; do
3125 # Check to see that each library is installed.
3126 libdir=
3127 if test -f "$lib"; then
3128 func_source "$lib"
3129 fi
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
3131 if test -n "$libdir" && test ! -f "$libfile"; then
3132 func_warning "\`$lib' has not been installed in \`$libdir'"
3133 finalize=no
3134 fi
3135 done
3136
3137 relink_command=
3138 func_source "$wrapper"
3139
3140 outputname=
3141 if test "$fast_install" = no && test -n "$relink_command"; then
3142 $opt_dry_run || {
3143 if test "$finalize" = yes; then
3144 tmpdir=`func_mktempdir`
3145 func_basename "$file$stripped_ext"
3146 file="$func_basename_result"
3147 outputname="$tmpdir/$file"
3148 # Replace the output file specification.
3149 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
3150
3151 $opt_silent || {
3152 func_quote_for_expand "$relink_command"
3153 eval "func_echo $func_quote_for_expand_result"
3154 }
3155 if eval "$relink_command"; then :
3156 else
3157 func_error "error: relink \`$file' with the above command before installing it"
3158 $opt_dry_run || ${RM}r "$tmpdir"
3159 continue
3160 fi
3161 file="$outputname"
3162 else
3163 func_warning "cannot relink \`$file'"
3164 fi
3165 }
3166 else
3167 # Install the binary that we compiled earlier.
3168 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
3169 fi
3170 fi
3171
3172 # remove .exe since cygwin /usr/bin/install will append another
3173 # one anyway
3174 case $install_prog,$host in
3175 */usr/bin/install*,*cygwin*)
3176 case $file:$destfile in
3177 *.exe:*.exe)
3178 # this is ok
3179 ;;
3180 *.exe:*)
3181 destfile=$destfile.exe
3182 ;;
3183 *:*.exe)
3184 func_stripname '' '.exe' "$destfile"
3185 destfile=$func_stripname_result
3186 ;;
3187 esac
3188 ;;
3189 esac
3190 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
3191 $opt_dry_run || if test -n "$outputname"; then
3192 ${RM}r "$tmpdir"
3193 fi
3194 ;;
3195 esac
3196 done
3197
3198 for file in $staticlibs; do
3199 func_basename "$file"
3200 name="$func_basename_result"
3201
3202 # Set up the ranlib parameters.
3203 oldlib="$destdir/$name"
3204 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
3205 tool_oldlib=$func_to_tool_file_result
3206
3207 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
3208
3209 if test -n "$stripme" && test -n "$old_striplib"; then
3210 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
3211 fi
3212
3213 # Do each command in the postinstall commands.
3214 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
3215 done
3216
3217 test -n "$future_libdirs" && \
3218 func_warning "remember to run \`$progname --finish$future_libdirs'"
3219
3220 if test -n "$current_libdirs"; then
3221 # Maybe just do a dry run.
3222 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3223 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
3224 else
3225 exit $EXIT_SUCCESS
3226 fi
3227 }
3228
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
3230
3231
3232 # func_generate_dlsyms outputname originator pic_p
3233 # Extract symbols from dlprefiles and create ${outputname}S.o with
3234 # a dlpreopen symbol table.
3235 func_generate_dlsyms ()
3236 {
3237 $opt_debug
3238 my_outputname="$1"
3239 my_originator="$2"
3240 my_pic_p="${3-no}"
3241 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
3242 my_dlsyms=
3243
3244 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3245 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3246 my_dlsyms="${my_outputname}S.c"
3247 else
3248 func_error "not configured to extract global symbols from dlpreopened files"
3249 fi
3250 fi
3251
3252 if test -n "$my_dlsyms"; then
3253 case $my_dlsyms in
3254 "") ;;
3255 *.c)
3256 # Discover the nlist of each of the dlfiles.
3257 nlist="$output_objdir/${my_outputname}.nm"
3258
3259 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
3260
3261 # Parse the name list into a source file.
3262 func_verbose "creating $output_objdir/$my_dlsyms"
3263
3264 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
3265 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3266 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
3267
3268 #ifdef __cplusplus
3269 extern \"C\" {
3270 #endif
3271
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
3273 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
3274 #endif
3275
3276 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3277 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3278 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3279 relocations are performed -- see ld's documentation on pseudo-relocs. */
3280 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
3282 /* This system does not cope well with relocations in const data. */
3283 # define LT_DLSYM_CONST
3284 #else
3285 # define LT_DLSYM_CONST const
3286 #endif
3287
3288 /* External symbol declarations for the compiler. */\
3289 "
3290
3291 if test "$dlself" = yes; then
3292 func_verbose "generating symbol list for \`$output'"
3293
3294 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
3295
3296 # Add our own program objects to the symbol list.
3297 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
3298 for progfile in $progfiles; do
3299 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
3301 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
3302 done
3303
3304 if test -n "$exclude_expsyms"; then
3305 $opt_dry_run || {
3306 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
3307 eval '$MV "$nlist"T "$nlist"'
3308 }
3309 fi
3310
3311 if test -n "$export_symbols_regex"; then
3312 $opt_dry_run || {
3313 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
3314 eval '$MV "$nlist"T "$nlist"'
3315 }
3316 fi
3317
3318 # Prepare the list of exported symbols
3319 if test -z "$export_symbols"; then
3320 export_symbols="$output_objdir/$outputname.exp"
3321 $opt_dry_run || {
3322 $RM $export_symbols
3323 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
3324 case $host in
3325 *cygwin* | *mingw* | *cegcc* )
3326 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
3327 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
3328 ;;
3329 esac
3330 }
3331 else
3332 $opt_dry_run || {
3333 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
3334 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
3335 eval '$MV "$nlist"T "$nlist"'
3336 case $host in
3337 *cygwin* | *mingw* | *cegcc* )
3338 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
3339 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
3340 ;;
3341 esac
3342 }
3343 fi
3344 fi
3345
3346 for dlprefile in $dlprefiles; do
3347 func_verbose "extracting global C symbols from \`$dlprefile'"
3348 func_basename "$dlprefile"
3349 name="$func_basename_result"
3350 case $host in
3351 *cygwin* | *mingw* | *cegcc* )
3352 # if an import library, we need to obtain dlname
3353 if func_win32_import_lib_p "$dlprefile"; then
3354 func_tr_sh "$dlprefile"
3355 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
3357 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3358 # Use subshell, to avoid clobbering current variable values
3359 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
3361 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
3363 else
3364 # no lafile. user explicitly requested -dlpreopen <import library>.
3365 $sharedlib_from_linklib_cmd "$dlprefile"
3366 dlprefile_dlbasename=$sharedlib_from_linklib_result
3367 fi
3368 fi
3369 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
3371 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
3372 else
3373 func_warning "Could not compute DLL name from $name"
3374 eval '$ECHO ": $name " >> "$nlist"'
3375 fi
3376 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3377 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
3378 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3379 }
3380 else # not an import lib
3381 $opt_dry_run || {
3382 eval '$ECHO ": $name " >> "$nlist"'
3383 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3384 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3385 }
3386 fi
3387 ;;
3388 *)
3389 $opt_dry_run || {
3390 eval '$ECHO ": $name " >> "$nlist"'
3391 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3392 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3393 }
3394 ;;
3395 esac
3396 done
3397
3398 $opt_dry_run || {
3399 # Make sure we have at least an empty file.
3400 test -f "$nlist" || : > "$nlist"
3401
3402 if test -n "$exclude_expsyms"; then
3403 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
3404 $MV "$nlist"T "$nlist"
3405 fi
3406
3407 # Try sorting and uniquifying the output.
3408 if $GREP -v "^: " < "$nlist" |
3409 if sort -k 3 </dev/null >/dev/null 2>&1; then
3410 sort -k 3
3411 else
3412 sort +2
3413 fi |
3414 uniq > "$nlist"S; then
3415 :
3416 else
3417 $GREP -v "^: " < "$nlist" > "$nlist"S
3418 fi
3419
3420 if test -f "$nlist"S; then
3421 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
3422 else
3423 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
3424 fi
3425
3426 echo >> "$output_objdir/$my_dlsyms" "\
3427
3428 /* The mapping between symbol names and symbols. */
3429 typedef struct {
3430 const char *name;
3431 void *address;
3432 } lt_dlsymlist;
3433 extern LT_DLSYM_CONST lt_dlsymlist
3434 lt_${my_prefix}_LTX_preloaded_symbols[];
3435 LT_DLSYM_CONST lt_dlsymlist
3436 lt_${my_prefix}_LTX_preloaded_symbols[] =
3437 {\
3438 { \"$my_originator\", (void *) 0 },"
3439
3440 case $need_lib_prefix in
3441 no)
3442 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
3443 ;;
3444 *)
3445 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
3446 ;;
3447 esac
3448 echo >> "$output_objdir/$my_dlsyms" "\
3449 {0, (void *) 0}
3450 };
3451
3452 /* This works around a problem in FreeBSD linker */
3453 #ifdef FREEBSD_WORKAROUND
3454 static const void *lt_preloaded_setup() {
3455 return lt_${my_prefix}_LTX_preloaded_symbols;
3456 }
3457 #endif
3458
3459 #ifdef __cplusplus
3460 }
3461 #endif\
3462 "
3463 } # !$opt_dry_run
3464
3465 pic_flag_for_symtable=
3466 case "$compile_command " in
3467 *" -static "*) ;;
3468 *)
3469 case $host in
3470 # compiling the symbol table file with pic_flag works around
3471 # a FreeBSD bug that causes programs to crash when -lm is
3472 # linked before any other PIC object. But we must not use
3473 # pic_flag when linking with -static. The problem exists in
3474 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
3475 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3476 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
3477 *-*-hpux*)
3478 pic_flag_for_symtable=" $pic_flag" ;;
3479 *)
3480 if test "X$my_pic_p" != Xno; then
3481 pic_flag_for_symtable=" $pic_flag"
3482 fi
3483 ;;
3484 esac
3485 ;;
3486 esac
3487 symtab_cflags=
3488 for arg in $LTCFLAGS; do
3489 case $arg in
3490 -pie | -fpie | -fPIE) ;;
3491 *) func_append symtab_cflags " $arg" ;;
3492 esac
3493 done
3494
3495 # Now compile the dynamic symbol file.
3496 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
3497
3498 # Clean up the generated files.
3499 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
3500
3501 # Transform the symbol file into the correct name.
3502 symfileobj="$output_objdir/${my_outputname}S.$objext"
3503 case $host in
3504 *cygwin* | *mingw* | *cegcc* )
3505 if test -f "$output_objdir/$my_outputname.def"; then
3506 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3507 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3508 else
3509 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3510 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3511 fi
3512 ;;
3513 *)
3514 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3515 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3516 ;;
3517 esac
3518 ;;
3519 *)
3520 func_fatal_error "unknown suffix for \`$my_dlsyms'"
3521 ;;
3522 esac
3523 else
3524 # We keep going just in case the user didn't refer to
3525 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
3526 # really was required.
3527
3528 # Nullify the symbol file.
3529 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
3530 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
3531 fi
3532 }
3533
3534 # func_win32_libid arg
3535 # return the library type of file 'arg'
3536 #
3537 # Need a lot of goo to handle *both* DLLs and import libs
3538 # Has to be a shell function in order to 'eat' the argument
3539 # that is supplied when $file_magic_command is called.
3540 # Despite the name, also deal with 64 bit binaries.
3541 func_win32_libid ()
3542 {
3543 $opt_debug
3544 win32_libid_type="unknown"
3545 win32_fileres=`file -L $1 2>/dev/null`
3546 case $win32_fileres in
3547 *ar\ archive\ import\ library*) # definitely import
3548 win32_libid_type="x86 archive import"
3549 ;;
3550 *ar\ archive*) # could be an import, or static
3551 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
3552 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
3553 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3554 func_to_tool_file "$1" func_convert_file_msys_to_w32
3555 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3556 $SED -n -e '
3557 1,100{
3558 / I /{
3559 s,.*,import,
3560 p
3561 q
3562 }
3563 }'`
3564 case $win32_nmres in
3565 import*) win32_libid_type="x86 archive import";;
3566 *) win32_libid_type="x86 archive static";;
3567 esac
3568 fi
3569 ;;
3570 *DLL*)
3571 win32_libid_type="x86 DLL"
3572 ;;
3573 *executable*) # but shell scripts are "executable" too...
3574 case $win32_fileres in
3575 *MS\ Windows\ PE\ Intel*)
3576 win32_libid_type="x86 DLL"
3577 ;;
3578 esac
3579 ;;
3580 esac
3581 $ECHO "$win32_libid_type"
3582 }
3583
3584 # func_cygming_dll_for_implib ARG
3585 #
3586 # Platform-specific function to extract the
3587 # name of the DLL associated with the specified
3588 # import library ARG.
3589 # Invoked by eval'ing the libtool variable
3590 # $sharedlib_from_linklib_cmd
3591 # Result is available in the variable
3592 # $sharedlib_from_linklib_result
3593 func_cygming_dll_for_implib ()
3594 {
3595 $opt_debug
3596 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3597 }
3598
3599 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
3600 #
3601 # The is the core of a fallback implementation of a
3602 # platform-specific function to extract the name of the
3603 # DLL associated with the specified import library LIBNAME.
3604 #
3605 # SECTION_NAME is either .idata$6 or .idata$7, depending
3606 # on the platform and compiler that created the implib.
3607 #
3608 # Echos the name of the DLL associated with the
3609 # specified import library.
3610 func_cygming_dll_for_implib_fallback_core ()
3611 {
3612 $opt_debug
3613 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
3614 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3615 $SED '/^Contents of section '"$match_literal"':/{
3616 # Place marker at beginning of archive member dllname section
3617 s/.*/====MARK====/
3618 p
3619 d
3620 }
3621 # These lines can sometimes be longer than 43 characters, but
3622 # are always uninteresting
3623 /:[ ]*file format pe[i]\{,1\}-/d
3624 /^In archive [^:]*:/d
3625 # Ensure marker is printed
3626 /^====MARK====/p
3627 # Remove all lines with less than 43 characters
3628 /^.\{43\}/!d
3629 # From remaining lines, remove first 43 characters
3630 s/^.\{43\}//' |
3631 $SED -n '
3632 # Join marker and all lines until next marker into a single line
3633 /^====MARK====/ b para
3634 H
3635 $ b para
3636 b
3637 :para
3638 x
3639 s/\n//g
3640 # Remove the marker
3641 s/^====MARK====//
3642 # Remove trailing dots and whitespace
3643 s/[\. \t]*$//
3644 # Print
3645 /./p' |
3646 # we now have a list, one entry per line, of the stringified
3647 # contents of the appropriate section of all members of the
3648 # archive which possess that section. Heuristic: eliminate
3649 # all those which have a first or second character that is
3650 # a '.' (that is, objdump's representation of an unprintable
3651 # character.) This should work for all archives with less than
3652 # 0x302f exports -- but will fail for DLLs whose name actually
3653 # begins with a literal '.' or a single character followed by
3654 # a '.'.
3655 #
3656 # Of those that remain, print the first one.
3657 $SED -e '/^\./d;/^.\./d;q'
3658 }
3659
3660 # func_cygming_gnu_implib_p ARG
3661 # This predicate returns with zero status (TRUE) if
3662 # ARG is a GNU/binutils-style import library. Returns
3663 # with nonzero status (FALSE) otherwise.
3664 func_cygming_gnu_implib_p ()
3665 {
3666 $opt_debug
3667 func_to_tool_file "$1" func_convert_file_msys_to_w32
3668 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3669 test -n "$func_cygming_gnu_implib_tmp"
3670 }
3671
3672 # func_cygming_ms_implib_p ARG
3673 # This predicate returns with zero status (TRUE) if
3674 # ARG is an MS-style import library. Returns
3675 # with nonzero status (FALSE) otherwise.
3676 func_cygming_ms_implib_p ()
3677 {
3678 $opt_debug
3679 func_to_tool_file "$1" func_convert_file_msys_to_w32
3680 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3681 test -n "$func_cygming_ms_implib_tmp"
3682 }
3683
3684 # func_cygming_dll_for_implib_fallback ARG
3685 # Platform-specific function to extract the
3686 # name of the DLL associated with the specified
3687 # import library ARG.
3688 #
3689 # This fallback implementation is for use when $DLLTOOL
3690 # does not support the --identify-strict option.
3691 # Invoked by eval'ing the libtool variable
3692 # $sharedlib_from_linklib_cmd
3693 # Result is available in the variable
3694 # $sharedlib_from_linklib_result
3695 func_cygming_dll_for_implib_fallback ()
3696 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
3699 # binutils import library
3700 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
3702 # ms-generated import library
3703 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
3704 else
3705 # unknown
3706 sharedlib_from_linklib_result=""
3707 fi
3708 }
3709
3710
3711 # func_extract_an_archive dir oldlib
3712 func_extract_an_archive ()
3713 {
3714 $opt_debug
3715 f_ex_an_ar_dir="$1"; shift
3716 f_ex_an_ar_oldlib="$1"
3717 if test "$lock_old_archive_extraction" = yes; then
3718 lockfile=$f_ex_an_ar_oldlib.lock
3719 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3720 func_echo "Waiting for $lockfile to be removed"
3721 sleep 2
3722 done
3723 fi
3724 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
3725 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
3727 $opt_dry_run || rm -f "$lockfile"
3728 fi
3729 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
3730 :
3731 else
3732 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
3733 fi
3734 }
3735
3736
3737 # func_extract_archives gentop oldlib ...
3738 func_extract_archives ()
3739 {
3740 $opt_debug
3741 my_gentop="$1"; shift
3742 my_oldlibs=${1+"$@"}
3743 my_oldobjs=""
3744 my_xlib=""
3745 my_xabs=""
3746 my_xdir=""
3747
3748 for my_xlib in $my_oldlibs; do
3749 # Extract the objects.
3750 case $my_xlib in
3751 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
3752 *) my_xabs=`pwd`"/$my_xlib" ;;
3753 esac
3754 func_basename "$my_xlib"
3755 my_xlib="$func_basename_result"
3756 my_xlib_u=$my_xlib
3757 while :; do
3758 case " $extracted_archives " in
3759 *" $my_xlib_u "*)
3760 func_arith $extracted_serial + 1
3761 extracted_serial=$func_arith_result
3762 my_xlib_u=lt$extracted_serial-$my_xlib ;;
3763 *) break ;;
3764 esac
3765 done
3766 extracted_archives="$extracted_archives $my_xlib_u"
3767 my_xdir="$my_gentop/$my_xlib_u"
3768
3769 func_mkdir_p "$my_xdir"
3770
3771 case $host in
3772 *-darwin*)
3773 func_verbose "Extracting $my_xabs"
3774 # Do not bother doing anything if just a dry run
3775 $opt_dry_run || {
3776 darwin_orig_dir=`pwd`
3777 cd $my_xdir || exit $?
3778 darwin_archive=$my_xabs
3779 darwin_curdir=`pwd`
3780 darwin_base_archive=`basename "$darwin_archive"`
3781 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
3782 if test -n "$darwin_arches"; then
3783 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
3784 darwin_arch=
3785 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3786 for darwin_arch in $darwin_arches ; do
3787 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3788 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3789 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3790 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
3791 cd "$darwin_curdir"
3792 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
3793 done # $darwin_arches
3794 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
3795 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
3796 darwin_file=
3797 darwin_files=
3798 for darwin_file in $darwin_filelist; do
3799 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
3800 $LIPO -create -output "$darwin_file" $darwin_files
3801 done # $darwin_filelist
3802 $RM -rf unfat-$$
3803 cd "$darwin_orig_dir"
3804 else
3805 cd $darwin_orig_dir
3806 func_extract_an_archive "$my_xdir" "$my_xabs"
3807 fi # $darwin_arches
3808 } # !$opt_dry_run
3809 ;;
3810 *)
3811 func_extract_an_archive "$my_xdir" "$my_xabs"
3812 ;;
3813 esac
3814 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
3815 done
3816
3817 func_extract_archives_result="$my_oldobjs"
3818 }
3819
3820
3821 # func_emit_wrapper [arg=no]
3822 #
3823 # Emit a libtool wrapper script on stdout.
3824 # Don't directly open a file because we may want to
3825 # incorporate the script contents within a cygwin/mingw
3826 # wrapper executable. Must ONLY be called from within
3827 # func_mode_link because it depends on a number of variables
3828 # set therein.
3829 #
3830 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
3831 # variable will take. If 'yes', then the emitted script
3832 # will assume that the directory in which it is stored is
3833 # the $objdir directory. This is a cygwin/mingw-specific
3834 # behavior.
3835 func_emit_wrapper ()
3836 {
3837 func_emit_wrapper_arg1=${1-no}
3838
3839 $ECHO "\
3840 #! $SHELL
3841
3842 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
3844 #
3845 # The $output program cannot be directly executed until all the libtool
3846 # libraries that it depends on are installed.
3847 #
3848 # This wrapper script should never be moved out of the build directory.
3849 # If it is, it will not operate correctly.
3850
3851 # Sed substitution that helps us do robust quoting. It backslashifies
3852 # metacharacters that are still active within double-quoted strings.
3853 sed_quote_subst='$sed_quote_subst'
3854
3855 # Be Bourne compatible
3856 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
3857 emulate sh
3858 NULLCMD=:
3859 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
3860 # is contrary to our usage. Disable this feature.
3861 alias -g '\${1+\"\$@\"}'='\"\$@\"'
3862 setopt NO_GLOB_SUBST
3863 else
3864 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
3865 fi
3866 BIN_SH=xpg4; export BIN_SH # for Tru64
3867 DUALCASE=1; export DUALCASE # for MKS sh
3868
3869 # The HP-UX ksh and POSIX shell print the target directory to stdout
3870 # if CDPATH is set.
3871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3872
3873 relink_command=\"$relink_command\"
3874
3875 # This environment variable determines our operation mode.
3876 if test \"\$libtool_install_magic\" = \"$magic\"; then
3877 # install mode needs the following variables:
3878 generated_by_libtool_version='$macro_version'
3879 notinst_deplibs='$notinst_deplibs'
3880 else
3881 # When we are sourced in execute mode, \$file and \$ECHO are already set.
3882 if test \"\$libtool_execute_magic\" != \"$magic\"; then
3883 file=\"\$0\""
3884
3885 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
3886 $ECHO "\
3887
3888 # A function that is used when there is no print builtin or printf.
3889 func_fallback_echo ()
3890 {
3891 eval 'cat <<_LTECHO_EOF
3892 \$1
3893 _LTECHO_EOF'
3894 }
3895 ECHO=\"$qECHO\"
3896 fi
3897
3898 # Very basic option parsing. These options are (a) specific to
3899 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
3901 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
3903 # this pattern).
3904 #
3905 # There are only two supported options: --lt-debug and
3906 # --lt-dump-script. There is, deliberately, no --lt-help.
3907 #
3908 # The first argument to this parsing function should be the
3909 # script's $0 value, followed by "$@".
3910 lt_option_debug=
3911 func_parse_lt_options ()
3912 {
3913 lt_script_arg0=\$0
3914 shift
3915 for lt_opt
3916 do
3917 case \"\$lt_opt\" in
3918 --lt-debug) lt_option_debug=1 ;;
3919 --lt-dump-script)
3920 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
3921 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
3922 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
3923 cat \"\$lt_dump_D/\$lt_dump_F\"
3924 exit 0
3925 ;;
3926 --lt-*)
3927 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
3928 exit 1
3929 ;;
3930 esac
3931 done
3932
3933 # Print the debug banner immediately:
3934 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
3936 fi
3937 }
3938
3939 # Used when --lt-debug. Prints its arguments to stdout
3940 # (redirection is the responsibility of the caller)
3941 func_lt_dump_args ()
3942 {
3943 lt_dump_args_N=1;
3944 for lt_arg
3945 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
3947 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
3948 done
3949 }
3950
3951 # Core function for launching the target application
3952 func_exec_program_core ()
3953 {
3954 "
3955 case $host in
3956 # Backslashes separate directories on plain windows
3957 *-*-mingw | *-*-os2* | *-cegcc*)
3958 $ECHO "\
3959 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
3961 func_lt_dump_args \${1+\"\$@\"} 1>&2
3962 fi
3963 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
3964 "
3965 ;;
3966
3967 *)
3968 $ECHO "\
3969 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
3971 func_lt_dump_args \${1+\"\$@\"} 1>&2
3972 fi
3973 exec \"\$progdir/\$program\" \${1+\"\$@\"}
3974 "
3975 ;;
3976 esac
3977 $ECHO "\
3978 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
3979 exit 1
3980 }
3981
3982 # A function to encapsulate launching the target application
3983 # Strips options in the --lt-* namespace from \$@ and
3984 # launches target application with the remaining arguments.
3985 func_exec_program ()
3986 {
3987 case \" \$* \" in
3988 *\\ --lt-*)
3989 for lt_wr_arg
3990 do
3991 case \$lt_wr_arg in
3992 --lt-*) ;;
3993 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3994 esac
3995 shift
3996 done ;;
3997 esac
3998 func_exec_program_core \${1+\"\$@\"}
3999 }
4000
4001 # Parse options
4002 func_parse_lt_options \"\$0\" \${1+\"\$@\"}
4003
4004 # Find the directory that this script lives in.
4005 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
4006 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
4007
4008 # Follow symbolic links until we get to the real thisdir.
4009 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
4010 while test -n \"\$file\"; do
4011 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
4012
4013 # If there was a directory component, then change thisdir.
4014 if test \"x\$destdir\" != \"x\$file\"; then
4015 case \"\$destdir\" in
4016 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4017 *) thisdir=\"\$thisdir/\$destdir\" ;;
4018 esac
4019 fi
4020
4021 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
4022 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
4023 done
4024
4025 # Usually 'no', except on cygwin/mingw when embedded into
4026 # the cwrapper.
4027 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
4028 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
4029 # special case for '.'
4030 if test \"\$thisdir\" = \".\"; then
4031 thisdir=\`pwd\`
4032 fi
4033 # remove .libs from thisdir
4034 case \"\$thisdir\" in
4035 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
4036 $objdir ) thisdir=. ;;
4037 esac
4038 fi
4039
4040 # Try to get the absolute directory name.
4041 absdir=\`cd \"\$thisdir\" && pwd\`
4042 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4043 "
4044
4045 if test "$fast_install" = yes; then
4046 $ECHO "\
4047 program=lt-'$outputname'$exeext
4048 progdir=\"\$thisdir/$objdir\"
4049
4050 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4052 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
4053
4054 file=\"\$\$-\$program\"
4055
4056 if test ! -d \"\$progdir\"; then
4057 $MKDIR \"\$progdir\"
4058 else
4059 $RM \"\$progdir/\$file\"
4060 fi"
4061
4062 $ECHO "\
4063
4064 # relink executable if necessary
4065 if test -n \"\$relink_command\"; then
4066 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
4067 else
4068 $ECHO \"\$relink_command_output\" >&2
4069 $RM \"\$progdir/\$file\"
4070 exit 1
4071 fi
4072 fi
4073
4074 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
4075 { $RM \"\$progdir/\$program\";
4076 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
4077 $RM \"\$progdir/\$file\"
4078 fi"
4079 else
4080 $ECHO "\
4081 program='$outputname'
4082 progdir=\"\$thisdir/$objdir\"
4083 "
4084 fi
4085
4086 $ECHO "\
4087
4088 if test -f \"\$progdir/\$program\"; then"
4089
4090 # fixup the dll searchpath if we need to.
4091 #
4092 # Fix the DLL searchpath if we need to. Do this before prepending
4093 # to shlibpath, because on Windows, both are PATH and uninstalled
4094 # libraries must come first.
4095 if test -n "$dllsearchpath"; then
4096 $ECHO "\
4097 # Add the dll search path components to the executable PATH
4098 PATH=$dllsearchpath:\$PATH
4099 "
4100 fi
4101
4102 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4104 $ECHO "\
4105 # Add our own library path to $shlibpath_var
4106 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
4107
4108 # Some systems cannot cope with colon-terminated $shlibpath_var
4109 # The second colon is a workaround for a bug in BeOS R4 sed
4110 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
4111
4112 export $shlibpath_var
4113 "
4114 fi
4115
4116 $ECHO "\
4117 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4118 # Run the actual program with our arguments.
4119 func_exec_program \${1+\"\$@\"}
4120 fi
4121 else
4122 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
4124 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
4125 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
4126 exit 1
4127 fi
4128 fi\
4129 "
4130 }
4131
4132
4133 # func_emit_cwrapperexe_src
4134 # emit the source code for a wrapper executable on stdout
4135 # Must ONLY be called from within func_mode_link because
4136 # it depends on a number of variable set therein.
4137 func_emit_cwrapperexe_src ()
4138 {
4139 cat <<EOF
4140
4141 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4142 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
4143
4144 The $output program cannot be directly executed until all the libtool
4145 libraries that it depends on are installed.
4146
4147 This wrapper executable should never be moved out of the build directory.
4148 If it is, it will not operate correctly.
4149 */
4150 EOF
4151 cat <<"EOF"
4152 #ifdef _MSC_VER
4153 # define _CRT_SECURE_NO_DEPRECATE 1
4154 #endif
4155 #include <stdio.h>
4156 #include <stdlib.h>
4157 #ifdef _MSC_VER
4158 # include <direct.h>
4159 # include <process.h>
4160 # include <io.h>
4161 #else
4162 # include <unistd.h>
4163 # include <stdint.h>
4164 # ifdef __CYGWIN__
4165 # include <io.h>
4166 # endif
4167 #endif
4168 #include <malloc.h>
4169 #include <stdarg.h>
4170 #include <assert.h>
4171 #include <string.h>
4172 #include <ctype.h>
4173 #include <errno.h>
4174 #include <fcntl.h>
4175 #include <sys/stat.h>
4176
4177 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
4179 # ifdef __STRICT_ANSI__
4180 int _putenv (const char *);
4181 # endif
4182 #elif defined(__CYGWIN__)
4183 # ifdef __STRICT_ANSI__
4184 char *realpath (const char *, char *);
4185 int putenv (char *);
4186 int setenv (const char *, const char *, int);
4187 # endif
4188 /* #elif defined (other platforms) ... */
4189 #endif
4190
4191 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
4193 # define setmode _setmode
4194 # define stat _stat
4195 # define chmod _chmod
4196 # define getcwd _getcwd
4197 # define putenv _putenv
4198 # define S_IXUSR _S_IEXEC
4199 # ifndef _INTPTR_T_DEFINED
4200 # define _INTPTR_T_DEFINED
4201 # define intptr_t int
4202 # endif
4203 #elif defined(__MINGW32__)
4204 # define setmode _setmode
4205 # define stat _stat
4206 # define chmod _chmod
4207 # define getcwd _getcwd
4208 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
4210 # define HAVE_SETENV
4211 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
4213 #endif
4214
4215 #if defined(PATH_MAX)
4216 # define LT_PATHMAX PATH_MAX
4217 #elif defined(MAXPATHLEN)
4218 # define LT_PATHMAX MAXPATHLEN
4219 #else
4220 # define LT_PATHMAX 1024
4221 #endif
4222
4223 #ifndef S_IXOTH
4224 # define S_IXOTH 0
4225 #endif
4226 #ifndef S_IXGRP
4227 # define S_IXGRP 0
4228 #endif
4229
4230 /* path handling portability macros */
4231 #ifndef DIR_SEPARATOR
4232 # define DIR_SEPARATOR '/'
4233 # define PATH_SEPARATOR ':'
4234 #endif
4235
4236 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4237 defined (__OS2__)
4238 # define HAVE_DOS_BASED_FILE_SYSTEM
4239 # define FOPEN_WB "wb"
4240 # ifndef DIR_SEPARATOR_2
4241 # define DIR_SEPARATOR_2 '\\'
4242 # endif
4243 # ifndef PATH_SEPARATOR_2
4244 # define PATH_SEPARATOR_2 ';'
4245 # endif
4246 #endif
4247
4248 #ifndef DIR_SEPARATOR_2
4249 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
4250 #else /* DIR_SEPARATOR_2 */
4251 # define IS_DIR_SEPARATOR(ch) \
4252 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4253 #endif /* DIR_SEPARATOR_2 */
4254
4255 #ifndef PATH_SEPARATOR_2
4256 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
4257 #else /* PATH_SEPARATOR_2 */
4258 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
4259 #endif /* PATH_SEPARATOR_2 */
4260
4261 #ifndef FOPEN_WB
4262 # define FOPEN_WB "w"
4263 #endif
4264 #ifndef _O_BINARY
4265 # define _O_BINARY 0
4266 #endif
4267
4268 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4269 #define XFREE(stale) do { \
4270 if (stale) { free ((void *) stale); stale = 0; } \
4271 } while (0)
4272
4273 #if defined(LT_DEBUGWRAPPER)
4274 static int lt_debug = 1;
4275 #else
4276 static int lt_debug = 0;
4277 #endif
4278
4279 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
4280
4281 void *xmalloc (size_t num);
4282 char *xstrdup (const char *string);
4283 const char *base_name (const char *name);
4284 char *find_executable (const char *wrapper);
4285 char *chase_symlinks (const char *pathspec);
4286 int make_executable (const char *path);
4287 int check_executable (const char *path);
4288 char *strendzap (char *str, const char *pat);
4289 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
4290 void lt_fatal (const char *file, int line, const char *message, ...);
4291 static const char *nonnull (const char *s);
4292 static const char *nonempty (const char *s);
4293 void lt_setenv (const char *name, const char *value);
4294 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
4295 void lt_update_exe_path (const char *name, const char *value);
4296 void lt_update_lib_path (const char *name, const char *value);
4297 char **prepare_spawn (char **argv);
4298 void lt_dump_script (FILE *f);
4299 EOF
4300
4301 cat <<EOF
4302 volatile const char * MAGIC_EXE = "$magic_exe";
4303 const char * LIB_PATH_VARNAME = "$shlibpath_var";
4304 EOF
4305
4306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4307 func_to_host_path "$temp_rpath"
4308 cat <<EOF
4309 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
4310 EOF
4311 else
4312 cat <<"EOF"
4313 const char * LIB_PATH_VALUE = "";
4314 EOF
4315 fi
4316
4317 if test -n "$dllsearchpath"; then
4318 func_to_host_path "$dllsearchpath:"
4319 cat <<EOF
4320 const char * EXE_PATH_VARNAME = "PATH";
4321 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
4322 EOF
4323 else
4324 cat <<"EOF"
4325 const char * EXE_PATH_VARNAME = "";
4326 const char * EXE_PATH_VALUE = "";
4327 EOF
4328 fi
4329
4330 if test "$fast_install" = yes; then
4331 cat <<EOF
4332 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
4333 EOF
4334 else
4335 cat <<EOF
4336 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
4337 EOF
4338 fi
4339
4340
4341 cat <<"EOF"
4342
4343 #define LTWRAPPER_OPTION_PREFIX "--lt-"
4344
4345 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
4346 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
4347 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
4348
4349 int
4350 main (int argc, char *argv[])
4351 {
4352 char **newargz;
4353 int newargc;
4354 char *tmp_pathspec;
4355 char *actual_cwrapper_path;
4356 char *actual_cwrapper_name;
4357 char *target_name;
4358 char *lt_argv_zero;
4359 intptr_t rval = 127;
4360
4361 int i;
4362
4363 program_name = (char *) xstrdup (base_name (argv[0]));
4364 newargz = XMALLOC (char *, argc + 1);
4365
4366 /* very simple arg parsing; don't want to rely on getopt
4367 * also, copy all non cwrapper options to newargz, except
4368 * argz[0], which is handled differently
4369 */
4370 newargc=0;
4371 for (i = 1; i < argc; i++)
4372 {
4373 if (strcmp (argv[i], dumpscript_opt) == 0)
4374 {
4375 EOF
4376 case "$host" in
4377 *mingw* | *cygwin* )
4378 # make stdout use "unix" line endings
4379 echo " setmode(1,_O_BINARY);"
4380 ;;
4381 esac
4382
4383 cat <<"EOF"
4384 lt_dump_script (stdout);
4385 return 0;
4386 }
4387 if (strcmp (argv[i], debug_opt) == 0)
4388 {
4389 lt_debug = 1;
4390 continue;
4391 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
4393 {
4394 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
4395 namespace, but it is not one of the ones we know about and
4396 have already dealt with, above (inluding dump-script), then
4397 report an error. Otherwise, targets might begin to believe
4398 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
4399 namespace. The first time any user complains about this, we'll
4400 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
4401 or a configure.ac-settable value.
4402 */
4403 lt_fatal (__FILE__, __LINE__,
4404 "unrecognized %s option: '%s'",
4405 ltwrapper_option_prefix, argv[i]);
4406 }
4407 /* otherwise ... */
4408 newargz[++newargc] = xstrdup (argv[i]);
4409 }
4410 newargz[++newargc] = NULL;
4411
4412 EOF
4413 cat <<EOF
4414 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
4416 EOF
4417 cat <<"EOF"
4418 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
4419 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
4420
4421 tmp_pathspec = find_executable (argv[0]);
4422 if (tmp_pathspec == NULL)
4423 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
4424 lt_debugprintf (__FILE__, __LINE__,
4425 "(main) found exe (before symlink chase) at: %s\n",
4426 tmp_pathspec);
4427
4428 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
4429 lt_debugprintf (__FILE__, __LINE__,
4430 "(main) found exe (after symlink chase) at: %s\n",
4431 actual_cwrapper_path);
4432 XFREE (tmp_pathspec);
4433
4434 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
4435 strendzap (actual_cwrapper_path, actual_cwrapper_name);
4436
4437 /* wrapper name transforms */
4438 strendzap (actual_cwrapper_name, ".exe");
4439 tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
4440 XFREE (actual_cwrapper_name);
4441 actual_cwrapper_name = tmp_pathspec;
4442 tmp_pathspec = 0;
4443
4444 /* target_name transforms -- use actual target program name; might have lt- prefix */
4445 target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
4446 strendzap (target_name, ".exe");
4447 tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
4448 XFREE (target_name);
4449 target_name = tmp_pathspec;
4450 tmp_pathspec = 0;
4451
4452 lt_debugprintf (__FILE__, __LINE__,
4453 "(main) libtool target name: %s\n",
4454 target_name);
4455 EOF
4456
4457 cat <<EOF
4458 newargz[0] =
4459 XMALLOC (char, (strlen (actual_cwrapper_path) +
4460 strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
4461 strcpy (newargz[0], actual_cwrapper_path);
4462 strcat (newargz[0], "$objdir");
4463 strcat (newargz[0], "/");
4464 EOF
4465
4466 cat <<"EOF"
4467 /* stop here, and copy so we don't have to do this twice */
4468 tmp_pathspec = xstrdup (newargz[0]);
4469
4470 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
4471 strcat (newargz[0], actual_cwrapper_name);
4472
4473 /* DO want the lt- prefix here if it exists, so use target_name */
4474 lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
4475 XFREE (tmp_pathspec);
4476 tmp_pathspec = NULL;
4477 EOF
4478
4479 case $host_os in
4480 mingw*)
4481 cat <<"EOF"
4482 {
4483 char* p;
4484 while ((p = strchr (newargz[0], '\\')) != NULL)
4485 {
4486 *p = '/';
4487 }
4488 while ((p = strchr (lt_argv_zero, '\\')) != NULL)
4489 {
4490 *p = '/';
4491 }
4492 }
4493 EOF
4494 ;;
4495 esac
4496
4497 cat <<"EOF"
4498 XFREE (target_name);
4499 XFREE (actual_cwrapper_path);
4500 XFREE (actual_cwrapper_name);
4501
4502 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
4503 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
4504 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
4505 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
4506 because on Windows, both *_VARNAMEs are PATH but uninstalled
4507 libraries must come first. */
4508 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
4509 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
4510
4511 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
4512 nonnull (lt_argv_zero));
4513 for (i = 0; i < newargc; i++)
4514 {
4515 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
4516 i, nonnull (newargz[i]));
4517 }
4518
4519 EOF
4520
4521 case $host_os in
4522 mingw*)
4523 cat <<"EOF"
4524 /* execv doesn't actually work on mingw as expected on unix */
4525 newargz = prepare_spawn (newargz);
4526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
4527 if (rval == -1)
4528 {
4529 /* failed to start process */
4530 lt_debugprintf (__FILE__, __LINE__,
4531 "(main) failed to launch target \"%s\": %s\n",
4532 lt_argv_zero, nonnull (strerror (errno)));
4533 return 127;
4534 }
4535 return rval;
4536 EOF
4537 ;;
4538 *)
4539 cat <<"EOF"
4540 execv (lt_argv_zero, newargz);
4541 return rval; /* =127, but avoids unused variable warning */
4542 EOF
4543 ;;
4544 esac
4545
4546 cat <<"EOF"
4547 }
4548
4549 void *
4550 xmalloc (size_t num)
4551 {
4552 void *p = (void *) malloc (num);
4553 if (!p)
4554 lt_fatal (__FILE__, __LINE__, "memory exhausted");
4555
4556 return p;
4557 }
4558
4559 char *
4560 xstrdup (const char *string)
4561 {
4562 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
4563 string) : NULL;
4564 }
4565
4566 const char *
4567 base_name (const char *name)
4568 {
4569 const char *base;
4570
4571 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4572 /* Skip over the disk name in MSDOS pathnames. */
4573 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
4574 name += 2;
4575 #endif
4576
4577 for (base = name; *name; name++)
4578 if (IS_DIR_SEPARATOR (*name))
4579 base = name + 1;
4580 return base;
4581 }
4582
4583 int
4584 check_executable (const char *path)
4585 {
4586 struct stat st;
4587
4588 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
4589 nonempty (path));
4590 if ((!path) || (!*path))
4591 return 0;
4592
4593 if ((stat (path, &st) >= 0)
4594 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
4595 return 1;
4596 else
4597 return 0;
4598 }
4599
4600 int
4601 make_executable (const char *path)
4602 {
4603 int rval = 0;
4604 struct stat st;
4605
4606 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
4607 nonempty (path));
4608 if ((!path) || (!*path))
4609 return 0;
4610
4611 if (stat (path, &st) >= 0)
4612 {
4613 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
4614 }
4615 return rval;
4616 }
4617
4618 /* Searches for the full path of the wrapper. Returns
4619 newly allocated full path name if found, NULL otherwise
4620 Does not chase symlinks, even on platforms that support them.
4621 */
4622 char *
4623 find_executable (const char *wrapper)
4624 {
4625 int has_slash = 0;
4626 const char *p;
4627 const char *p_next;
4628 /* static buffer for getcwd */
4629 char tmp[LT_PATHMAX + 1];
4630 int tmp_len;
4631 char *concat_name;
4632
4633 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
4634 nonempty (wrapper));
4635
4636 if ((wrapper == NULL) || (*wrapper == '\0'))
4637 return NULL;
4638
4639 /* Absolute path? */
4640 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4641 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
4642 {
4643 concat_name = xstrdup (wrapper);
4644 if (check_executable (concat_name))
4645 return concat_name;
4646 XFREE (concat_name);
4647 }
4648 else
4649 {
4650 #endif
4651 if (IS_DIR_SEPARATOR (wrapper[0]))
4652 {
4653 concat_name = xstrdup (wrapper);
4654 if (check_executable (concat_name))
4655 return concat_name;
4656 XFREE (concat_name);
4657 }
4658 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4659 }
4660 #endif
4661
4662 for (p = wrapper; *p; p++)
4663 if (*p == '/')
4664 {
4665 has_slash = 1;
4666 break;
4667 }
4668 if (!has_slash)
4669 {
4670 /* no slashes; search PATH */
4671 const char *path = getenv ("PATH");
4672 if (path != NULL)
4673 {
4674 for (p = path; *p; p = p_next)
4675 {
4676 const char *q;
4677 size_t p_len;
4678 for (q = p; *q; q++)
4679 if (IS_PATH_SEPARATOR (*q))
4680 break;
4681 p_len = q - p;
4682 p_next = (*q == '\0' ? q : q + 1);
4683 if (p_len == 0)
4684 {
4685 /* empty path: current directory */
4686 if (getcwd (tmp, LT_PATHMAX) == NULL)
4687 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4688 nonnull (strerror (errno)));
4689 tmp_len = strlen (tmp);
4690 concat_name =
4691 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
4692 memcpy (concat_name, tmp, tmp_len);
4693 concat_name[tmp_len] = '/';
4694 strcpy (concat_name + tmp_len + 1, wrapper);
4695 }
4696 else
4697 {
4698 concat_name =
4699 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
4700 memcpy (concat_name, p, p_len);
4701 concat_name[p_len] = '/';
4702 strcpy (concat_name + p_len + 1, wrapper);
4703 }
4704 if (check_executable (concat_name))
4705 return concat_name;
4706 XFREE (concat_name);
4707 }
4708 }
4709 /* not found in PATH; assume curdir */
4710 }
4711 /* Relative path | not found in path: prepend cwd */
4712 if (getcwd (tmp, LT_PATHMAX) == NULL)
4713 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4714 nonnull (strerror (errno)));
4715 tmp_len = strlen (tmp);
4716 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
4717 memcpy (concat_name, tmp, tmp_len);
4718 concat_name[tmp_len] = '/';
4719 strcpy (concat_name + tmp_len + 1, wrapper);
4720
4721 if (check_executable (concat_name))
4722 return concat_name;
4723 XFREE (concat_name);
4724 return NULL;
4725 }
4726
4727 char *
4728 chase_symlinks (const char *pathspec)
4729 {
4730 #ifndef S_ISLNK
4731 return xstrdup (pathspec);
4732 #else
4733 char buf[LT_PATHMAX];
4734 struct stat s;
4735 char *tmp_pathspec = xstrdup (pathspec);
4736 char *p;
4737 int has_symlinks = 0;
4738 while (strlen (tmp_pathspec) && !has_symlinks)
4739 {
4740 lt_debugprintf (__FILE__, __LINE__,
4741 "checking path component for symlinks: %s\n",
4742 tmp_pathspec);
4743 if (lstat (tmp_pathspec, &s) == 0)
4744 {
4745 if (S_ISLNK (s.st_mode) != 0)
4746 {
4747 has_symlinks = 1;
4748 break;
4749 }
4750
4751 /* search backwards for last DIR_SEPARATOR */
4752 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
4753 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
4754 p--;
4755 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
4756 {
4757 /* no more DIR_SEPARATORS left */
4758 break;
4759 }
4760 *p = '\0';
4761 }
4762 else
4763 {
4764 lt_fatal (__FILE__, __LINE__,
4765 "error accessing file \"%s\": %s",
4766 tmp_pathspec, nonnull (strerror (errno)));
4767 }
4768 }
4769 XFREE (tmp_pathspec);
4770
4771 if (!has_symlinks)
4772 {
4773 return xstrdup (pathspec);
4774 }
4775
4776 tmp_pathspec = realpath (pathspec, buf);
4777 if (tmp_pathspec == 0)
4778 {
4779 lt_fatal (__FILE__, __LINE__,
4780 "could not follow symlinks for %s", pathspec);
4781 }
4782 return xstrdup (tmp_pathspec);
4783 #endif
4784 }
4785
4786 char *
4787 strendzap (char *str, const char *pat)
4788 {
4789 size_t len, patlen;
4790
4791 assert (str != NULL);
4792 assert (pat != NULL);
4793
4794 len = strlen (str);
4795 patlen = strlen (pat);
4796
4797 if (patlen <= len)
4798 {
4799 str += len - patlen;
4800 if (strcmp (str, pat) == 0)
4801 *str = '\0';
4802 }
4803 return str;
4804 }
4805
4806 void
4807 lt_debugprintf (const char *file, int line, const char *fmt, ...)
4808 {
4809 va_list args;
4810 if (lt_debug)
4811 {
4812 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
4813 va_start (args, fmt);
4814 (void) vfprintf (stderr, fmt, args);
4815 va_end (args);
4816 }
4817 }
4818
4819 static void
4820 lt_error_core (int exit_status, const char *file,
4821 int line, const char *mode,
4822 const char *message, va_list ap)
4823 {
4824 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
4825 vfprintf (stderr, message, ap);
4826 fprintf (stderr, ".\n");
4827
4828 if (exit_status >= 0)
4829 exit (exit_status);
4830 }
4831
4832 void
4833 lt_fatal (const char *file, int line, const char *message, ...)
4834 {
4835 va_list ap;
4836 va_start (ap, message);
4837 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
4838 va_end (ap);
4839 }
4840
4841 static const char *
4842 nonnull (const char *s)
4843 {
4844 return s ? s : "(null)";
4845 }
4846
4847 static const char *
4848 nonempty (const char *s)
4849 {
4850 return (s && !*s) ? "(empty)" : nonnull (s);
4851 }
4852
4853 void
4854 lt_setenv (const char *name, const char *value)
4855 {
4856 lt_debugprintf (__FILE__, __LINE__,
4857 "(lt_setenv) setting '%s' to '%s'\n",
4858 nonnull (name), nonnull (value));
4859 {
4860 #ifdef HAVE_SETENV
4861 /* always make a copy, for consistency with !HAVE_SETENV */
4862 char *str = xstrdup (value);
4863 setenv (name, str, 1);
4864 #else
4865 int len = strlen (name) + 1 + strlen (value) + 1;
4866 char *str = XMALLOC (char, len);
4867 sprintf (str, "%s=%s", name, value);
4868 if (putenv (str) != EXIT_SUCCESS)
4869 {
4870 XFREE (str);
4871 }
4872 #endif
4873 }
4874 }
4875
4876 char *
4877 lt_extend_str (const char *orig_value, const char *add, int to_end)
4878 {
4879 char *new_value;
4880 if (orig_value && *orig_value)
4881 {
4882 int orig_value_len = strlen (orig_value);
4883 int add_len = strlen (add);
4884 new_value = XMALLOC (char, add_len + orig_value_len + 1);
4885 if (to_end)
4886 {
4887 strcpy (new_value, orig_value);
4888 strcpy (new_value + orig_value_len, add);
4889 }
4890 else
4891 {
4892 strcpy (new_value, add);
4893 strcpy (new_value + add_len, orig_value);
4894 }
4895 }
4896 else
4897 {
4898 new_value = xstrdup (add);
4899 }
4900 return new_value;
4901 }
4902
4903 void
4904 lt_update_exe_path (const char *name, const char *value)
4905 {
4906 lt_debugprintf (__FILE__, __LINE__,
4907 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
4908 nonnull (name), nonnull (value));
4909
4910 if (name && *name && value && *value)
4911 {
4912 char *new_value = lt_extend_str (getenv (name), value, 0);
4913 /* some systems can't cope with a ':'-terminated path #' */
4914 int len = strlen (new_value);
4915 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
4916 {
4917 new_value[len-1] = '\0';
4918 }
4919 lt_setenv (name, new_value);
4920 XFREE (new_value);
4921 }
4922 }
4923
4924 void
4925 lt_update_lib_path (const char *name, const char *value)
4926 {
4927 lt_debugprintf (__FILE__, __LINE__,
4928 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4929 nonnull (name), nonnull (value));
4930
4931 if (name && *name && value && *value)
4932 {
4933 char *new_value = lt_extend_str (getenv (name), value, 0);
4934 lt_setenv (name, new_value);
4935 XFREE (new_value);
4936 }
4937 }
4938
4939 EOF
4940 case $host_os in
4941 mingw*)
4942 cat <<"EOF"
4943
4944 /* Prepares an argument vector before calling spawn().
4945 Note that spawn() does not by itself call the command interpreter
4946 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
4947 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
4948 GetVersionEx(&v);
4949 v.dwPlatformId == VER_PLATFORM_WIN32_NT;
4950 }) ? "cmd.exe" : "command.com").
4951 Instead it simply concatenates the arguments, separated by ' ', and calls
4952 CreateProcess(). We must quote the arguments since Win32 CreateProcess()
4953 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
4954 special way:
4955 - Space and tab are interpreted as delimiters. They are not treated as
4956 delimiters if they are surrounded by double quotes: "...".
4957 - Unescaped double quotes are removed from the input. Their only effect is
4958 that within double quotes, space and tab are treated like normal
4959 characters.
4960 - Backslashes not followed by double quotes are not special.
4961 - But 2*n+1 backslashes followed by a double quote become
4962 n backslashes followed by a double quote (n >= 0):
4963 \" -> "
4964 \\\" -> \"
4965 \\\\\" -> \\"
4966 */
4967 #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4968 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4969 char **
4970 prepare_spawn (char **argv)
4971 {
4972 size_t argc;
4973 char **new_argv;
4974 size_t i;
4975
4976 /* Count number of arguments. */
4977 for (argc = 0; argv[argc] != NULL; argc++)
4978 ;
4979
4980 /* Allocate new argument vector. */
4981 new_argv = XMALLOC (char *, argc + 1);
4982
4983 /* Put quoted arguments into the new argument vector. */
4984 for (i = 0; i < argc; i++)
4985 {
4986 const char *string = argv[i];
4987
4988 if (string[0] == '\0')
4989 new_argv[i] = xstrdup ("\"\"");
4990 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
4991 {
4992 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
4993 size_t length;
4994 unsigned int backslashes;
4995 const char *s;
4996 char *quoted_string;
4997 char *p;
4998
4999 length = 0;
5000 backslashes = 0;
5001 if (quote_around)
5002 length++;
5003 for (s = string; *s != '\0'; s++)
5004 {
5005 char c = *s;
5006 if (c == '"')
5007 length += backslashes + 1;
5008 length++;
5009 if (c == '\\')
5010 backslashes++;
5011 else
5012 backslashes = 0;
5013 }
5014 if (quote_around)
5015 length += backslashes + 1;
5016
5017 quoted_string = XMALLOC (char, length + 1);
5018
5019 p = quoted_string;
5020 backslashes = 0;
5021 if (quote_around)
5022 *p++ = '"';
5023 for (s = string; *s != '\0'; s++)
5024 {
5025 char c = *s;
5026 if (c == '"')
5027 {
5028 unsigned int j;
5029 for (j = backslashes + 1; j > 0; j--)
5030 *p++ = '\\';
5031 }
5032 *p++ = c;
5033 if (c == '\\')
5034 backslashes++;
5035 else
5036 backslashes = 0;
5037 }
5038 if (quote_around)
5039 {
5040 unsigned int j;
5041 for (j = backslashes; j > 0; j--)
5042 *p++ = '\\';
5043 *p++ = '"';
5044 }
5045 *p = '\0';
5046
5047 new_argv[i] = quoted_string;
5048 }
5049 else
5050 new_argv[i] = (char *) string;
5051 }
5052 new_argv[argc] = NULL;
5053
5054 return new_argv;
5055 }
5056 EOF
5057 ;;
5058 esac
5059
5060 cat <<"EOF"
5061 void lt_dump_script (FILE* f)
5062 {
5063 EOF
5064 func_emit_wrapper yes |
5065 $SED -n -e '
5066 s/^\(.\{79\}\)\(..*\)/\1\
5067 \2/
5068 h
5069 s/\([\\"]\)/\\\1/g
5070 s/$/\\n/
5071 s/\([^\n]*\).*/ fputs ("\1", f);/p
5072 g
5073 D'
5074 cat <<"EOF"
5075 }
5076 EOF
5077 }
5078 # end: func_emit_cwrapperexe_src
5079
5080 # func_win32_import_lib_p ARG
5081 # True if ARG is an import lib, as indicated by $file_magic_cmd
5082 func_win32_import_lib_p ()
5083 {
5084 $opt_debug
5085 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
5086 *import*) : ;;
5087 *) false ;;
5088 esac
5089 }
5090
5091 # func_mode_link arg...
5092 func_mode_link ()
5093 {
5094 $opt_debug
5095 case $host in
5096 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5097 # It is impossible to link a dll without this setting, and
5098 # we shouldn't force the makefile maintainer to figure out
5099 # which system we are compiling for in order to pass an extra
5100 # flag for every libtool invocation.
5101 # allow_undefined=no
5102
5103 # FIXME: Unfortunately, there are problems with the above when trying
5104 # to make a dll which has undefined symbols, in which case not
5105 # even a static library is built. For now, we need to specify
5106 # -no-undefined on the libtool link line when we can be certain
5107 # that all symbols are satisfied, otherwise we get a static library.
5108 allow_undefined=yes
5109 ;;
5110 *)
5111 allow_undefined=yes
5112 ;;
5113 esac
5114 libtool_args=$nonopt
5115 base_compile="$nonopt $@"
5116 compile_command=$nonopt
5117 finalize_command=$nonopt
5118
5119 compile_rpath=
5120 finalize_rpath=
5121 compile_shlibpath=
5122 finalize_shlibpath=
5123 convenience=
5124 old_convenience=
5125 deplibs=
5126 old_deplibs=
5127 compiler_flags=
5128 linker_flags=
5129 dllsearchpath=
5130 lib_search_path=`pwd`
5131 inst_prefix_dir=
5132 new_inherited_linker_flags=
5133
5134 avoid_version=no
5135 bindir=
5136 dlfiles=
5137 dlprefiles=
5138 dlself=no
5139 export_dynamic=no
5140 export_symbols=
5141 export_symbols_regex=
5142 generated=
5143 libobjs=
5144 ltlibs=
5145 module=no
5146 no_install=no
5147 objs=
5148 non_pic_objects=
5149 precious_files_regex=
5150 prefer_static_libs=no
5151 preload=no
5152 prev=
5153 prevarg=
5154 release=
5155 rpath=
5156 xrpath=
5157 perm_rpath=
5158 temp_rpath=
5159 thread_safe=no
5160 vinfo=
5161 vinfo_number=no
5162 weak_libs=
5163 single_module="${wl}-single_module"
5164 func_infer_tag $base_compile
5165
5166 # We need to know -static, to get the right output filenames.
5167 for arg
5168 do
5169 case $arg in
5170 -shared)
5171 test "$build_libtool_libs" != yes && \
5172 func_fatal_configuration "can not build a shared library"
5173 build_old_libs=no
5174 break
5175 ;;
5176 -all-static | -static | -static-libtool-libs)
5177 case $arg in
5178 -all-static)
5179 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
5180 func_warning "complete static linking is impossible in this configuration"
5181 fi
5182 if test -n "$link_static_flag"; then
5183 dlopen_self=$dlopen_self_static
5184 fi
5185 prefer_static_libs=yes
5186 ;;
5187 -static)
5188 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5189 dlopen_self=$dlopen_self_static
5190 fi
5191 prefer_static_libs=built
5192 ;;
5193 -static-libtool-libs)
5194 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5195 dlopen_self=$dlopen_self_static
5196 fi
5197 prefer_static_libs=yes
5198 ;;
5199 esac
5200 build_libtool_libs=no
5201 build_old_libs=yes
5202 break
5203 ;;
5204 esac
5205 done
5206
5207 # See if our shared archives depend on static archives.
5208 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
5209
5210 # Go through the arguments, transforming them on the way.
5211 while test "$#" -gt 0; do
5212 arg="$1"
5213 shift
5214 func_quote_for_eval "$arg"
5215 qarg=$func_quote_for_eval_unquoted_result
5216 func_append libtool_args " $func_quote_for_eval_result"
5217
5218 # If the previous option needs an argument, assign it.
5219 if test -n "$prev"; then
5220 case $prev in
5221 output)
5222 func_append compile_command " @OUTPUT@"
5223 func_append finalize_command " @OUTPUT@"
5224 ;;
5225 esac
5226
5227 case $prev in
5228 bindir)
5229 bindir="$arg"
5230 prev=
5231 continue
5232 ;;
5233 dlfiles|dlprefiles)
5234 if test "$preload" = no; then
5235 # Add the symbol object into the linking commands.
5236 func_append compile_command " @SYMFILE@"
5237 func_append finalize_command " @SYMFILE@"
5238 preload=yes
5239 fi
5240 case $arg in
5241 *.la | *.lo) ;; # We handle these cases below.
5242 force)
5243 if test "$dlself" = no; then
5244 dlself=needless
5245 export_dynamic=yes
5246 fi
5247 prev=
5248 continue
5249 ;;
5250 self)
5251 if test "$prev" = dlprefiles; then
5252 dlself=yes
5253 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
5254 dlself=yes
5255 else
5256 dlself=needless
5257 export_dynamic=yes
5258 fi
5259 prev=
5260 continue
5261 ;;
5262 *)
5263 if test "$prev" = dlfiles; then
5264 func_append dlfiles " $arg"
5265 else
5266 func_append dlprefiles " $arg"
5267 fi
5268 prev=
5269 continue
5270 ;;
5271 esac
5272 ;;
5273 expsyms)
5274 export_symbols="$arg"
5275 test -f "$arg" \
5276 || func_fatal_error "symbol file \`$arg' does not exist"
5277 prev=
5278 continue
5279 ;;
5280 expsyms_regex)
5281 export_symbols_regex="$arg"
5282 prev=
5283 continue
5284 ;;
5285 framework)
5286 case $host in
5287 *-*-darwin*)
5288 case "$deplibs " in
5289 *" $qarg.ltframework "*) ;;
5290 *) func_append deplibs " $qarg.ltframework" # this is fixed later
5291 ;;
5292 esac
5293 ;;
5294 esac
5295 prev=
5296 continue
5297 ;;
5298 inst_prefix)
5299 inst_prefix_dir="$arg"
5300 prev=
5301 continue
5302 ;;
5303 objectlist)
5304 if test -f "$arg"; then
5305 save_arg=$arg
5306 moreargs=
5307 for fil in `cat "$save_arg"`
5308 do
5309 # func_append moreargs " $fil"
5310 arg=$fil
5311 # A libtool-controlled object.
5312
5313 # Check to see that this really is a libtool object.
5314 if func_lalib_unsafe_p "$arg"; then
5315 pic_object=
5316 non_pic_object=
5317
5318 # Read the .lo file
5319 func_source "$arg"
5320
5321 if test -z "$pic_object" ||
5322 test -z "$non_pic_object" ||
5323 test "$pic_object" = none &&
5324 test "$non_pic_object" = none; then
5325 func_fatal_error "cannot find name of object for \`$arg'"
5326 fi
5327
5328 # Extract subdirectory from the argument.
5329 func_dirname "$arg" "/" ""
5330 xdir="$func_dirname_result"
5331
5332 if test "$pic_object" != none; then
5333 # Prepend the subdirectory the object is found in.
5334 pic_object="$xdir$pic_object"
5335
5336 if test "$prev" = dlfiles; then
5337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5338 func_append dlfiles " $pic_object"
5339 prev=
5340 continue
5341 else
5342 # If libtool objects are unsupported, then we need to preload.
5343 prev=dlprefiles
5344 fi
5345 fi
5346
5347 # CHECK ME: I think I busted this. -Ossama
5348 if test "$prev" = dlprefiles; then
5349 # Preload the old-style object.
5350 func_append dlprefiles " $pic_object"
5351 prev=
5352 fi
5353
5354 # A PIC object.
5355 func_append libobjs " $pic_object"
5356 arg="$pic_object"
5357 fi
5358
5359 # Non-PIC object.
5360 if test "$non_pic_object" != none; then
5361 # Prepend the subdirectory the object is found in.
5362 non_pic_object="$xdir$non_pic_object"
5363
5364 # A standard non-PIC object
5365 func_append non_pic_objects " $non_pic_object"
5366 if test -z "$pic_object" || test "$pic_object" = none ; then
5367 arg="$non_pic_object"
5368 fi
5369 else
5370 # If the PIC object exists, use it instead.
5371 # $xdir was prepended to $pic_object above.
5372 non_pic_object="$pic_object"
5373 func_append non_pic_objects " $non_pic_object"
5374 fi
5375 else
5376 # Only an error if not doing a dry-run.
5377 if $opt_dry_run; then
5378 # Extract subdirectory from the argument.
5379 func_dirname "$arg" "/" ""
5380 xdir="$func_dirname_result"
5381
5382 func_lo2o "$arg"
5383 pic_object=$xdir$objdir/$func_lo2o_result
5384 non_pic_object=$xdir$func_lo2o_result
5385 func_append libobjs " $pic_object"
5386 func_append non_pic_objects " $non_pic_object"
5387 else
5388 func_fatal_error "\`$arg' is not a valid libtool object"
5389 fi
5390 fi
5391 done
5392 else
5393 func_fatal_error "link input file \`$arg' does not exist"
5394 fi
5395 arg=$save_arg
5396 prev=
5397 continue
5398 ;;
5399 precious_regex)
5400 precious_files_regex="$arg"
5401 prev=
5402 continue
5403 ;;
5404 release)
5405 release="-$arg"
5406 prev=
5407 continue
5408 ;;
5409 rpath | xrpath)
5410 # We need an absolute path.
5411 case $arg in
5412 [\\/]* | [A-Za-z]:[\\/]*) ;;
5413 *)
5414 func_fatal_error "only absolute run-paths are allowed"
5415 ;;
5416 esac
5417 if test "$prev" = rpath; then
5418 case "$rpath " in
5419 *" $arg "*) ;;
5420 *) func_append rpath " $arg" ;;
5421 esac
5422 else
5423 case "$xrpath " in
5424 *" $arg "*) ;;
5425 *) func_append xrpath " $arg" ;;
5426 esac
5427 fi
5428 prev=
5429 continue
5430 ;;
5431 shrext)
5432 shrext_cmds="$arg"
5433 prev=
5434 continue
5435 ;;
5436 weak)
5437 func_append weak_libs " $arg"
5438 prev=
5439 continue
5440 ;;
5441 xcclinker)
5442 func_append linker_flags " $qarg"
5443 func_append compiler_flags " $qarg"
5444 prev=
5445 func_append compile_command " $qarg"
5446 func_append finalize_command " $qarg"
5447 continue
5448 ;;
5449 xcompiler)
5450 func_append compiler_flags " $qarg"
5451 prev=
5452 func_append compile_command " $qarg"
5453 func_append finalize_command " $qarg"
5454 continue
5455 ;;
5456 xlinker)
5457 func_append linker_flags " $qarg"
5458 func_append compiler_flags " $wl$qarg"
5459 prev=
5460 func_append compile_command " $wl$qarg"
5461 func_append finalize_command " $wl$qarg"
5462 continue
5463 ;;
5464 *)
5465 eval "$prev=\"\$arg\""
5466 prev=
5467 continue
5468 ;;
5469 esac
5470 fi # test -n "$prev"
5471
5472 prevarg="$arg"
5473
5474 case $arg in
5475 -all-static)
5476 if test -n "$link_static_flag"; then
5477 # See comment for -static flag below, for more details.
5478 func_append compile_command " $link_static_flag"
5479 func_append finalize_command " $link_static_flag"
5480 fi
5481 continue
5482 ;;
5483
5484 -allow-undefined)
5485 # FIXME: remove this flag sometime in the future.
5486 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
5487 ;;
5488
5489 -avoid-version)
5490 avoid_version=yes
5491 continue
5492 ;;
5493
5494 -bindir)
5495 prev=bindir
5496 continue
5497 ;;
5498
5499 -dlopen)
5500 prev=dlfiles
5501 continue
5502 ;;
5503
5504 -dlpreopen)
5505 prev=dlprefiles
5506 continue
5507 ;;
5508
5509 -export-dynamic)
5510 export_dynamic=yes
5511 continue
5512 ;;
5513
5514 -export-symbols | -export-symbols-regex)
5515 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
5516 func_fatal_error "more than one -exported-symbols argument is not allowed"
5517 fi
5518 if test "X$arg" = "X-export-symbols"; then
5519 prev=expsyms
5520 else
5521 prev=expsyms_regex
5522 fi
5523 continue
5524 ;;
5525
5526 -framework)
5527 prev=framework
5528 continue
5529 ;;
5530
5531 -inst-prefix-dir)
5532 prev=inst_prefix
5533 continue
5534 ;;
5535
5536 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
5537 # so, if we see these flags be careful not to treat them like -L
5538 -L[A-Z][A-Z]*:*)
5539 case $with_gcc/$host in
5540 no/*-*-irix* | /*-*-irix*)
5541 func_append compile_command " $arg"
5542 func_append finalize_command " $arg"
5543 ;;
5544 esac
5545 continue
5546 ;;
5547
5548 -L*)
5549 func_stripname "-L" '' "$arg"
5550 if test -z "$func_stripname_result"; then
5551 if test "$#" -gt 0; then
5552 func_fatal_error "require no space between \`-L' and \`$1'"
5553 else
5554 func_fatal_error "need path for \`-L' option"
5555 fi
5556 fi
5557 func_resolve_sysroot "$func_stripname_result"
5558 dir=$func_resolve_sysroot_result
5559 # We need an absolute path.
5560 case $dir in
5561 [\\/]* | [A-Za-z]:[\\/]*) ;;
5562 *)
5563 absdir=`cd "$dir" && pwd`
5564 test -z "$absdir" && \
5565 func_fatal_error "cannot determine absolute directory name of \`$dir'"
5566 dir="$absdir"
5567 ;;
5568 esac
5569 case "$deplibs " in
5570 *" -L$dir "* | *" $arg "*)
5571 # Will only happen for absolute or sysroot arguments
5572 ;;
5573 *)
5574 # Preserve sysroot, but never include relative directories
5575 case $dir in
5576 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5577 *) func_append deplibs " -L$dir" ;;
5578 esac
5579 func_append lib_search_path " $dir"
5580 ;;
5581 esac
5582 case $host in
5583 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5584 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
5585 case :$dllsearchpath: in
5586 *":$dir:"*) ;;
5587 ::) dllsearchpath=$dir;;
5588 *) func_append dllsearchpath ":$dir";;
5589 esac
5590 case :$dllsearchpath: in
5591 *":$testbindir:"*) ;;
5592 ::) dllsearchpath=$testbindir;;
5593 *) func_append dllsearchpath ":$testbindir";;
5594 esac
5595 ;;
5596 esac
5597 continue
5598 ;;
5599
5600 -l*)
5601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
5602 case $host in
5603 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
5604 # These systems don't actually have a C or math library (as such)
5605 continue
5606 ;;
5607 *-*-os2*)
5608 # These systems don't actually have a C library (as such)
5609 test "X$arg" = "X-lc" && continue
5610 ;;
5611 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5612 # Do not include libc due to us having libc/libc_r.
5613 test "X$arg" = "X-lc" && continue
5614 ;;
5615 *-*-rhapsody* | *-*-darwin1.[012])
5616 # Rhapsody C and math libraries are in the System framework
5617 func_append deplibs " System.ltframework"
5618 continue
5619 ;;
5620 *-*-sco3.2v5* | *-*-sco5v6*)
5621 # Causes problems with __ctype
5622 test "X$arg" = "X-lc" && continue
5623 ;;
5624 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
5625 # Compiler inserts libc in the correct place for threads to work
5626 test "X$arg" = "X-lc" && continue
5627 ;;
5628 esac
5629 elif test "X$arg" = "X-lc_r"; then
5630 case $host in
5631 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5632 # Do not include libc_r directly, use -pthread flag.
5633 continue
5634 ;;
5635 esac
5636 fi
5637 func_append deplibs " $arg"
5638 continue
5639 ;;
5640
5641 -module)
5642 module=yes
5643 continue
5644 ;;
5645
5646 # Tru64 UNIX uses -model [arg] to determine the layout of C++
5647 # classes, name mangling, and exception handling.
5648 # Darwin uses the -arch flag to determine output architecture.
5649 -model|-arch|-isysroot|--sysroot)
5650 func_append compiler_flags " $arg"
5651 func_append compile_command " $arg"
5652 func_append finalize_command " $arg"
5653 prev=xcompiler
5654 continue
5655 ;;
5656
5657 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
5658 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
5659 func_append compiler_flags " $arg"
5660 func_append compile_command " $arg"
5661 func_append finalize_command " $arg"
5662 case "$new_inherited_linker_flags " in
5663 *" $arg "*) ;;
5664 * ) func_append new_inherited_linker_flags " $arg" ;;
5665 esac
5666 continue
5667 ;;
5668
5669 -multi_module)
5670 single_module="${wl}-multi_module"
5671 continue
5672 ;;
5673
5674 -no-fast-install)
5675 fast_install=no
5676 continue
5677 ;;
5678
5679 -no-install)
5680 case $host in
5681 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
5682 # The PATH hackery in wrapper scripts is required on Windows
5683 # and Darwin in order for the loader to find any dlls it needs.
5684 func_warning "\`-no-install' is ignored for $host"
5685 func_warning "assuming \`-no-fast-install' instead"
5686 fast_install=no
5687 ;;
5688 *) no_install=yes ;;
5689 esac
5690 continue
5691 ;;
5692
5693 -no-undefined)
5694 allow_undefined=no
5695 continue
5696 ;;
5697
5698 -objectlist)
5699 prev=objectlist
5700 continue
5701 ;;
5702
5703 -o) prev=output ;;
5704
5705 -precious-files-regex)
5706 prev=precious_regex
5707 continue
5708 ;;
5709
5710 -release)
5711 prev=release
5712 continue
5713 ;;
5714
5715 -rpath)
5716 prev=rpath
5717 continue
5718 ;;
5719
5720 -R)
5721 prev=xrpath
5722 continue
5723 ;;
5724
5725 -R*)
5726 func_stripname '-R' '' "$arg"
5727 dir=$func_stripname_result
5728 # We need an absolute path.
5729 case $dir in
5730 [\\/]* | [A-Za-z]:[\\/]*) ;;
5731 =*)
5732 func_stripname '=' '' "$dir"
5733 dir=$lt_sysroot$func_stripname_result
5734 ;;
5735 *)
5736 func_fatal_error "only absolute run-paths are allowed"
5737 ;;
5738 esac
5739 case "$xrpath " in
5740 *" $dir "*) ;;
5741 *) func_append xrpath " $dir" ;;
5742 esac
5743 continue
5744 ;;
5745
5746 -shared)
5747 # The effects of -shared are defined in a previous loop.
5748 continue
5749 ;;
5750
5751 -shrext)
5752 prev=shrext
5753 continue
5754 ;;
5755
5756 -static | -static-libtool-libs)
5757 # The effects of -static are defined in a previous loop.
5758 # We used to do the same as -all-static on platforms that
5759 # didn't have a PIC flag, but the assumption that the effects
5760 # would be equivalent was wrong. It would break on at least
5761 # Digital Unix and AIX.
5762 continue
5763 ;;
5764
5765 -thread-safe)
5766 thread_safe=yes
5767 continue
5768 ;;
5769
5770 -version-info)
5771 prev=vinfo
5772 continue
5773 ;;
5774
5775 -version-number)
5776 prev=vinfo
5777 vinfo_number=yes
5778 continue
5779 ;;
5780
5781 -weak)
5782 prev=weak
5783 continue
5784 ;;
5785
5786 -Wc,*)
5787 func_stripname '-Wc,' '' "$arg"
5788 args=$func_stripname_result
5789 arg=
5790 save_ifs="$IFS"; IFS=','
5791 for flag in $args; do
5792 IFS="$save_ifs"
5793 func_quote_for_eval "$flag"
5794 func_append arg " $func_quote_for_eval_result"
5795 func_append compiler_flags " $func_quote_for_eval_result"
5796 done
5797 IFS="$save_ifs"
5798 func_stripname ' ' '' "$arg"
5799 arg=$func_stripname_result
5800 ;;
5801
5802 -Wl,*)
5803 func_stripname '-Wl,' '' "$arg"
5804 args=$func_stripname_result
5805 arg=
5806 save_ifs="$IFS"; IFS=','
5807 for flag in $args; do
5808 IFS="$save_ifs"
5809 func_quote_for_eval "$flag"
5810 func_append arg " $wl$func_quote_for_eval_result"
5811 func_append compiler_flags " $wl$func_quote_for_eval_result"
5812 func_append linker_flags " $func_quote_for_eval_result"
5813 done
5814 IFS="$save_ifs"
5815 func_stripname ' ' '' "$arg"
5816 arg=$func_stripname_result
5817 ;;
5818
5819 -Xcompiler)
5820 prev=xcompiler
5821 continue
5822 ;;
5823
5824 -Xlinker)
5825 prev=xlinker
5826 continue
5827 ;;
5828
5829 -XCClinker)
5830 prev=xcclinker
5831 continue
5832 ;;
5833
5834 # -msg_* for osf cc
5835 -msg_*)
5836 func_quote_for_eval "$arg"
5837 arg="$func_quote_for_eval_result"
5838 ;;
5839
5840 # Flags to be passed through unchanged, with rationale:
5841 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
5842 # -r[0-9][0-9]* specify processor for the SGI compiler
5843 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
5844 # +DA*, +DD* enable 64-bit mode for the HP compiler
5845 # -q* compiler args for the IBM compiler
5846 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
5847 # -F/path path to uninstalled frameworks, gcc on darwin
5848 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
5849 # @file GCC response files
5850 # -tp=* Portland pgcc target processor selection
5851 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
5853 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
5854 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
5856 func_quote_for_eval "$arg"
5857 arg="$func_quote_for_eval_result"
5858 func_append compile_command " $arg"
5859 func_append finalize_command " $arg"
5860 func_append compiler_flags " $arg"
5861 continue
5862 ;;
5863
5864 # Some other compiler flag.
5865 -* | +*)
5866 func_quote_for_eval "$arg"
5867 arg="$func_quote_for_eval_result"
5868 ;;
5869
5870 *.$objext)
5871 # A standard object.
5872 func_append objs " $arg"
5873 ;;
5874
5875 *.lo)
5876 # A libtool-controlled object.
5877
5878 # Check to see that this really is a libtool object.
5879 if func_lalib_unsafe_p "$arg"; then
5880 pic_object=
5881 non_pic_object=
5882
5883 # Read the .lo file
5884 func_source "$arg"
5885
5886 if test -z "$pic_object" ||
5887 test -z "$non_pic_object" ||
5888 test "$pic_object" = none &&
5889 test "$non_pic_object" = none; then
5890 func_fatal_error "cannot find name of object for \`$arg'"
5891 fi
5892
5893 # Extract subdirectory from the argument.
5894 func_dirname "$arg" "/" ""
5895 xdir="$func_dirname_result"
5896
5897 if test "$pic_object" != none; then
5898 # Prepend the subdirectory the object is found in.
5899 pic_object="$xdir$pic_object"
5900
5901 if test "$prev" = dlfiles; then
5902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5903 func_append dlfiles " $pic_object"
5904 prev=
5905 continue
5906 else
5907 # If libtool objects are unsupported, then we need to preload.
5908 prev=dlprefiles
5909 fi
5910 fi
5911
5912 # CHECK ME: I think I busted this. -Ossama
5913 if test "$prev" = dlprefiles; then
5914 # Preload the old-style object.
5915 func_append dlprefiles " $pic_object"
5916 prev=
5917 fi
5918
5919 # A PIC object.
5920 func_append libobjs " $pic_object"
5921 arg="$pic_object"
5922 fi
5923
5924 # Non-PIC object.
5925 if test "$non_pic_object" != none; then
5926 # Prepend the subdirectory the object is found in.
5927 non_pic_object="$xdir$non_pic_object"
5928
5929 # A standard non-PIC object
5930 func_append non_pic_objects " $non_pic_object"
5931 if test -z "$pic_object" || test "$pic_object" = none ; then
5932 arg="$non_pic_object"
5933 fi
5934 else
5935 # If the PIC object exists, use it instead.
5936 # $xdir was prepended to $pic_object above.
5937 non_pic_object="$pic_object"
5938 func_append non_pic_objects " $non_pic_object"
5939 fi
5940 else
5941 # Only an error if not doing a dry-run.
5942 if $opt_dry_run; then
5943 # Extract subdirectory from the argument.
5944 func_dirname "$arg" "/" ""
5945 xdir="$func_dirname_result"
5946
5947 func_lo2o "$arg"
5948 pic_object=$xdir$objdir/$func_lo2o_result
5949 non_pic_object=$xdir$func_lo2o_result
5950 func_append libobjs " $pic_object"
5951 func_append non_pic_objects " $non_pic_object"
5952 else
5953 func_fatal_error "\`$arg' is not a valid libtool object"
5954 fi
5955 fi
5956 ;;
5957
5958 *.$libext)
5959 # An archive.
5960 func_append deplibs " $arg"
5961 func_append old_deplibs " $arg"
5962 continue
5963 ;;
5964
5965 *.la)
5966 # A libtool-controlled library.
5967
5968 func_resolve_sysroot "$arg"
5969 if test "$prev" = dlfiles; then
5970 # This library was specified with -dlopen.
5971 func_append dlfiles " $func_resolve_sysroot_result"
5972 prev=
5973 elif test "$prev" = dlprefiles; then
5974 # The library was specified with -dlpreopen.
5975 func_append dlprefiles " $func_resolve_sysroot_result"
5976 prev=
5977 else
5978 func_append deplibs " $func_resolve_sysroot_result"
5979 fi
5980 continue
5981 ;;
5982
5983 # Some other compiler argument.
5984 *)
5985 # Unknown arguments in both finalize_command and compile_command need
5986 # to be aesthetically quoted because they are evaled later.
5987 func_quote_for_eval "$arg"
5988 arg="$func_quote_for_eval_result"
5989 ;;
5990 esac # arg
5991
5992 # Now actually substitute the argument into the commands.
5993 if test -n "$arg"; then
5994 func_append compile_command " $arg"
5995 func_append finalize_command " $arg"
5996 fi
5997 done # argument parsing loop
5998
5999 test -n "$prev" && \
6000 func_fatal_help "the \`$prevarg' option requires an argument"
6001
6002 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
6003 eval arg=\"$export_dynamic_flag_spec\"
6004 func_append compile_command " $arg"
6005 func_append finalize_command " $arg"
6006 fi
6007
6008 oldlibs=
6009 # calculate the name of the file, without its directory
6010 func_basename "$output"
6011 outputname="$func_basename_result"
6012 libobjs_save="$libobjs"
6013
6014 if test -n "$shlibpath_var"; then
6015 # get the directories listed in $shlibpath_var
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
6017 else
6018 shlib_search_path=
6019 fi
6020 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
6021 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
6022
6023 func_dirname "$output" "/" ""
6024 output_objdir="$func_dirname_result$objdir"
6025 func_to_tool_file "$output_objdir/"
6026 tool_output_objdir=$func_to_tool_file_result
6027 # Create the object directory.
6028 func_mkdir_p "$output_objdir"
6029
6030 # Determine the type of output
6031 case $output in
6032 "")
6033 func_fatal_help "you must specify an output file"
6034 ;;
6035 *.$libext) linkmode=oldlib ;;
6036 *.lo | *.$objext) linkmode=obj ;;
6037 *.la) linkmode=lib ;;
6038 *) linkmode=prog ;; # Anything else should be a program.
6039 esac
6040
6041 specialdeplibs=
6042
6043 libs=
6044 # Find all interdependent deplibs by searching for libraries
6045 # that are linked more than once (e.g. -la -lb -la)
6046 for deplib in $deplibs; do
6047 if $opt_preserve_dup_deps ; then
6048 case "$libs " in
6049 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6050 esac
6051 fi
6052 func_append libs " $deplib"
6053 done
6054
6055 if test "$linkmode" = lib; then
6056 libs="$predeps $libs $compiler_lib_search_path $postdeps"
6057
6058 # Compute libraries that are listed more than once in $predeps
6059 # $postdeps and mark them as special (i.e., whose duplicates are
6060 # not to be eliminated).
6061 pre_post_deps=
6062 if $opt_duplicate_compiler_generated_deps; then
6063 for pre_post_dep in $predeps $postdeps; do
6064 case "$pre_post_deps " in
6065 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
6066 esac
6067 func_append pre_post_deps " $pre_post_dep"
6068 done
6069 fi
6070 pre_post_deps=
6071 fi
6072
6073 deplibs=
6074 newdependency_libs=
6075 newlib_search_path=
6076 need_relink=no # whether we're linking any uninstalled libtool libraries
6077 notinst_deplibs= # not-installed libtool libraries
6078 notinst_path= # paths that contain not-installed libtool libraries
6079
6080 case $linkmode in
6081 lib)
6082 passes="conv dlpreopen link"
6083 for file in $dlfiles $dlprefiles; do
6084 case $file in
6085 *.la) ;;
6086 *)
6087 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
6088 ;;
6089 esac
6090 done
6091 ;;
6092 prog)
6093 compile_deplibs=
6094 finalize_deplibs=
6095 alldeplibs=no
6096 newdlfiles=
6097 newdlprefiles=
6098 passes="conv scan dlopen dlpreopen link"
6099 ;;
6100 *) passes="conv"
6101 ;;
6102 esac
6103
6104 for pass in $passes; do
6105 # The preopen pass in lib mode reverses $deplibs; put it back here
6106 # so that -L comes before libs that need it for instance...
6107 if test "$linkmode,$pass" = "lib,link"; then
6108 ## FIXME: Find the place where the list is rebuilt in the wrong
6109 ## order, and fix it there properly
6110 tmp_deplibs=
6111 for deplib in $deplibs; do
6112 tmp_deplibs="$deplib $tmp_deplibs"
6113 done
6114 deplibs="$tmp_deplibs"
6115 fi
6116
6117 if test "$linkmode,$pass" = "lib,link" ||
6118 test "$linkmode,$pass" = "prog,scan"; then
6119 libs="$deplibs"
6120 deplibs=
6121 fi
6122 if test "$linkmode" = prog; then
6123 case $pass in
6124 dlopen) libs="$dlfiles" ;;
6125 dlpreopen) libs="$dlprefiles" ;;
6126 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
6127 esac
6128 fi
6129 if test "$linkmode,$pass" = "lib,dlpreopen"; then
6130 # Collect and forward deplibs of preopened libtool libs
6131 for lib in $dlprefiles; do
6132 # Ignore non-libtool-libs
6133 dependency_libs=
6134 func_resolve_sysroot "$lib"
6135 case $lib in
6136 *.la) func_source "$func_resolve_sysroot_result" ;;
6137 esac
6138
6139 # Collect preopened libtool deplibs, except any this library
6140 # has declared as weak libs
6141 for deplib in $dependency_libs; do
6142 func_basename "$deplib"
6143 deplib_base=$func_basename_result
6144 case " $weak_libs " in
6145 *" $deplib_base "*) ;;
6146 *) func_append deplibs " $deplib" ;;
6147 esac
6148 done
6149 done
6150 libs="$dlprefiles"
6151 fi
6152 if test "$pass" = dlopen; then
6153 # Collect dlpreopened libraries
6154 save_deplibs="$deplibs"
6155 deplibs=
6156 fi
6157
6158 for deplib in $libs; do
6159 lib=
6160 found=no
6161 case $deplib in
6162 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6163 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6164 if test "$linkmode,$pass" = "prog,link"; then
6165 compile_deplibs="$deplib $compile_deplibs"
6166 finalize_deplibs="$deplib $finalize_deplibs"
6167 else
6168 func_append compiler_flags " $deplib"
6169 if test "$linkmode" = lib ; then
6170 case "$new_inherited_linker_flags " in
6171 *" $deplib "*) ;;
6172 * ) func_append new_inherited_linker_flags " $deplib" ;;
6173 esac
6174 fi
6175 fi
6176 continue
6177 ;;
6178 -l*)
6179 if test "$linkmode" != lib && test "$linkmode" != prog; then
6180 func_warning "\`-l' is ignored for archives/objects"
6181 continue
6182 fi
6183 func_stripname '-l' '' "$deplib"
6184 name=$func_stripname_result
6185 if test "$linkmode" = lib; then
6186 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
6187 else
6188 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
6189 fi
6190 for searchdir in $searchdirs; do
6191 for search_ext in .la $std_shrext .so .a; do
6192 # Search the libtool library
6193 lib="$searchdir/lib${name}${search_ext}"
6194 if test -f "$lib"; then
6195 if test "$search_ext" = ".la"; then
6196 found=yes
6197 else
6198 found=no
6199 fi
6200 break 2
6201 fi
6202 done
6203 done
6204 if test "$found" != yes; then
6205 # deplib doesn't seem to be a libtool library
6206 if test "$linkmode,$pass" = "prog,link"; then
6207 compile_deplibs="$deplib $compile_deplibs"
6208 finalize_deplibs="$deplib $finalize_deplibs"
6209 else
6210 deplibs="$deplib $deplibs"
6211 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6212 fi
6213 continue
6214 else # deplib is a libtool library
6215 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
6216 # We need to do some special things here, and not later.
6217 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6218 case " $predeps $postdeps " in
6219 *" $deplib "*)
6220 if func_lalib_p "$lib"; then
6221 library_names=
6222 old_library=
6223 func_source "$lib"
6224 for l in $old_library $library_names; do
6225 ll="$l"
6226 done
6227 if test "X$ll" = "X$old_library" ; then # only static version available
6228 found=no
6229 func_dirname "$lib" "" "."
6230 ladir="$func_dirname_result"
6231 lib=$ladir/$old_library
6232 if test "$linkmode,$pass" = "prog,link"; then
6233 compile_deplibs="$deplib $compile_deplibs"
6234 finalize_deplibs="$deplib $finalize_deplibs"
6235 else
6236 deplibs="$deplib $deplibs"
6237 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6238 fi
6239 continue
6240 fi
6241 fi
6242 ;;
6243 *) ;;
6244 esac
6245 fi
6246 fi
6247 ;; # -l
6248 *.ltframework)
6249 if test "$linkmode,$pass" = "prog,link"; then
6250 compile_deplibs="$deplib $compile_deplibs"
6251 finalize_deplibs="$deplib $finalize_deplibs"
6252 else
6253 deplibs="$deplib $deplibs"
6254 if test "$linkmode" = lib ; then
6255 case "$new_inherited_linker_flags " in
6256 *" $deplib "*) ;;
6257 * ) func_append new_inherited_linker_flags " $deplib" ;;
6258 esac
6259 fi
6260 fi
6261 continue
6262 ;;
6263 -L*)
6264 case $linkmode in
6265 lib)
6266 deplibs="$deplib $deplibs"
6267 test "$pass" = conv && continue
6268 newdependency_libs="$deplib $newdependency_libs"
6269 func_stripname '-L' '' "$deplib"
6270 func_resolve_sysroot "$func_stripname_result"
6271 func_append newlib_search_path " $func_resolve_sysroot_result"
6272 ;;
6273 prog)
6274 if test "$pass" = conv; then
6275 deplibs="$deplib $deplibs"
6276 continue
6277 fi
6278 if test "$pass" = scan; then
6279 deplibs="$deplib $deplibs"
6280 else
6281 compile_deplibs="$deplib $compile_deplibs"
6282 finalize_deplibs="$deplib $finalize_deplibs"
6283 fi
6284 func_stripname '-L' '' "$deplib"
6285 func_resolve_sysroot "$func_stripname_result"
6286 func_append newlib_search_path " $func_resolve_sysroot_result"
6287 ;;
6288 *)
6289 func_warning "\`-L' is ignored for archives/objects"
6290 ;;
6291 esac # linkmode
6292 continue
6293 ;; # -L
6294 -R*)
6295 if test "$pass" = link; then
6296 func_stripname '-R' '' "$deplib"
6297 func_resolve_sysroot "$func_stripname_result"
6298 dir=$func_resolve_sysroot_result
6299 # Make sure the xrpath contains only unique directories.
6300 case "$xrpath " in
6301 *" $dir "*) ;;
6302 *) func_append xrpath " $dir" ;;
6303 esac
6304 fi
6305 deplibs="$deplib $deplibs"
6306 continue
6307 ;;
6308 *.la)
6309 func_resolve_sysroot "$deplib"
6310 lib=$func_resolve_sysroot_result
6311 ;;
6312 *.$libext)
6313 if test "$pass" = conv; then
6314 deplibs="$deplib $deplibs"
6315 continue
6316 fi
6317 case $linkmode in
6318 lib)
6319 # Linking convenience modules into shared libraries is allowed,
6320 # but linking other static libraries is non-portable.
6321 case " $dlpreconveniencelibs " in
6322 *" $deplib "*) ;;
6323 *)
6324 valid_a_lib=no
6325 case $deplibs_check_method in
6326 match_pattern*)
6327 set dummy $deplibs_check_method; shift
6328 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
6329 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
6330 | $EGREP "$match_pattern_regex" > /dev/null; then
6331 valid_a_lib=yes
6332 fi
6333 ;;
6334 pass_all)
6335 valid_a_lib=yes
6336 ;;
6337 esac
6338 if test "$valid_a_lib" != yes; then
6339 echo
6340 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
6341 echo "*** I have the capability to make that library automatically link in when"
6342 echo "*** you link to this library. But I can only do this if you have a"
6343 echo "*** shared version of the library, which you do not appear to have"
6344 echo "*** because the file extensions .$libext of this argument makes me believe"
6345 echo "*** that it is just a static archive that I should not use here."
6346 else
6347 echo
6348 $ECHO "*** Warning: Linking the shared library $output against the"
6349 $ECHO "*** static library $deplib is not portable!"
6350 deplibs="$deplib $deplibs"
6351 fi
6352 ;;
6353 esac
6354 continue
6355 ;;
6356 prog)
6357 if test "$pass" != link; then
6358 deplibs="$deplib $deplibs"
6359 else
6360 compile_deplibs="$deplib $compile_deplibs"
6361 finalize_deplibs="$deplib $finalize_deplibs"
6362 fi
6363 continue
6364 ;;
6365 esac # linkmode
6366 ;; # *.$libext
6367 *.lo | *.$objext)
6368 if test "$pass" = conv; then
6369 deplibs="$deplib $deplibs"
6370 elif test "$linkmode" = prog; then
6371 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
6372 # If there is no dlopen support or we're linking statically,
6373 # we need to preload.
6374 func_append newdlprefiles " $deplib"
6375 compile_deplibs="$deplib $compile_deplibs"
6376 finalize_deplibs="$deplib $finalize_deplibs"
6377 else
6378 func_append newdlfiles " $deplib"
6379 fi
6380 fi
6381 continue
6382 ;;
6383 %DEPLIBS%)
6384 alldeplibs=yes
6385 continue
6386 ;;
6387 esac # case $deplib
6388
6389 if test "$found" = yes || test -f "$lib"; then :
6390 else
6391 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
6392 fi
6393
6394 # Check to see that this really is a libtool archive.
6395 func_lalib_unsafe_p "$lib" \
6396 || func_fatal_error "\`$lib' is not a valid libtool archive"
6397
6398 func_dirname "$lib" "" "."
6399 ladir="$func_dirname_result"
6400
6401 dlname=
6402 dlopen=
6403 dlpreopen=
6404 libdir=
6405 library_names=
6406 old_library=
6407 inherited_linker_flags=
6408 # If the library was installed with an old release of libtool,
6409 # it will not redefine variables installed, or shouldnotlink
6410 installed=yes
6411 shouldnotlink=no
6412 avoidtemprpath=
6413
6414
6415 # Read the .la file
6416 func_source "$lib"
6417
6418 # Convert "-framework foo" to "foo.ltframework"
6419 if test -n "$inherited_linker_flags"; then
6420 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
6421 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
6422 case " $new_inherited_linker_flags " in
6423 *" $tmp_inherited_linker_flag "*) ;;
6424 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
6425 esac
6426 done
6427 fi
6428 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6429 if test "$linkmode,$pass" = "lib,link" ||
6430 test "$linkmode,$pass" = "prog,scan" ||
6431 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
6432 test -n "$dlopen" && func_append dlfiles " $dlopen"
6433 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
6434 fi
6435
6436 if test "$pass" = conv; then
6437 # Only check for convenience libraries
6438 deplibs="$lib $deplibs"
6439 if test -z "$libdir"; then
6440 if test -z "$old_library"; then
6441 func_fatal_error "cannot find name of link library for \`$lib'"
6442 fi
6443 # It is a libtool convenience library, so add in its objects.
6444 func_append convenience " $ladir/$objdir/$old_library"
6445 func_append old_convenience " $ladir/$objdir/$old_library"
6446 elif test "$linkmode" != prog && test "$linkmode" != lib; then
6447 func_fatal_error "\`$lib' is not a convenience library"
6448 fi
6449 tmp_libs=
6450 for deplib in $dependency_libs; do
6451 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
6453 case "$tmp_libs " in
6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6455 esac
6456 fi
6457 func_append tmp_libs " $deplib"
6458 done
6459 continue
6460 fi # $pass = conv
6461
6462
6463 # Get the name of the library we link against.
6464 linklib=
6465 if test -n "$old_library" &&
6466 { test "$prefer_static_libs" = yes ||
6467 test "$prefer_static_libs,$installed" = "built,no"; }; then
6468 linklib=$old_library
6469 else
6470 for l in $old_library $library_names; do
6471 linklib="$l"
6472 done
6473 fi
6474 if test -z "$linklib"; then
6475 func_fatal_error "cannot find name of link library for \`$lib'"
6476 fi
6477
6478 # This library was specified with -dlopen.
6479 if test "$pass" = dlopen; then
6480 if test -z "$libdir"; then
6481 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6482 fi
6483 if test -z "$dlname" ||
6484 test "$dlopen_support" != yes ||
6485 test "$build_libtool_libs" = no; then
6486 # If there is no dlname, no dlopen support or we're linking
6487 # statically, we need to preload. We also need to preload any
6488 # dependent libraries so libltdl's deplib preloader doesn't
6489 # bomb out in the load deplibs phase.
6490 func_append dlprefiles " $lib $dependency_libs"
6491 else
6492 func_append newdlfiles " $lib"
6493 fi
6494 continue
6495 fi # $pass = dlopen
6496
6497 # We need an absolute path.
6498 case $ladir in
6499 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
6500 *)
6501 abs_ladir=`cd "$ladir" && pwd`
6502 if test -z "$abs_ladir"; then
6503 func_warning "cannot determine absolute directory name of \`$ladir'"
6504 func_warning "passing it literally to the linker, although it might fail"
6505 abs_ladir="$ladir"
6506 fi
6507 ;;
6508 esac
6509 func_basename "$lib"
6510 laname="$func_basename_result"
6511
6512 # Find the relevant object directory and library name.
6513 if test "X$installed" = Xyes; then
6514 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6515 func_warning "library \`$lib' was moved."
6516 dir="$ladir"
6517 absdir="$abs_ladir"
6518 libdir="$abs_ladir"
6519 else
6520 dir="$lt_sysroot$libdir"
6521 absdir="$lt_sysroot$libdir"
6522 fi
6523 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
6524 else
6525 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6526 dir="$ladir"
6527 absdir="$abs_ladir"
6528 # Remove this search path later
6529 func_append notinst_path " $abs_ladir"
6530 else
6531 dir="$ladir/$objdir"
6532 absdir="$abs_ladir/$objdir"
6533 # Remove this search path later
6534 func_append notinst_path " $abs_ladir"
6535 fi
6536 fi # $installed = yes
6537 func_stripname 'lib' '.la' "$laname"
6538 name=$func_stripname_result
6539
6540 # This library was specified with -dlpreopen.
6541 if test "$pass" = dlpreopen; then
6542 if test -z "$libdir" && test "$linkmode" = prog; then
6543 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
6544 fi
6545 case "$host" in
6546 # special handling for platforms with PE-DLLs.
6547 *cygwin* | *mingw* | *cegcc* )
6548 # Linker will automatically link against shared library if both
6549 # static and shared are present. Therefore, ensure we extract
6550 # symbols from the import library if a shared library is present
6551 # (otherwise, the dlopen module name will be incorrect). We do
6552 # this by putting the import library name into $newdlprefiles.
6553 # We recover the dlopen module name by 'saving' the la file
6554 # name in a special purpose variable, and (later) extracting the
6555 # dlname from the la file.
6556 if test -n "$dlname"; then
6557 func_tr_sh "$dir/$linklib"
6558 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
6559 func_append newdlprefiles " $dir/$linklib"
6560 else
6561 func_append newdlprefiles " $dir/$old_library"
6562 # Keep a list of preopened convenience libraries to check
6563 # that they are being used correctly in the link pass.
6564 test -z "$libdir" && \
6565 func_append dlpreconveniencelibs " $dir/$old_library"
6566 fi
6567 ;;
6568 * )
6569 # Prefer using a static library (so that no silly _DYNAMIC symbols
6570 # are required to link).
6571 if test -n "$old_library"; then
6572 func_append newdlprefiles " $dir/$old_library"
6573 # Keep a list of preopened convenience libraries to check
6574 # that they are being used correctly in the link pass.
6575 test -z "$libdir" && \
6576 func_append dlpreconveniencelibs " $dir/$old_library"
6577 # Otherwise, use the dlname, so that lt_dlopen finds it.
6578 elif test -n "$dlname"; then
6579 func_append newdlprefiles " $dir/$dlname"
6580 else
6581 func_append newdlprefiles " $dir/$linklib"
6582 fi
6583 ;;
6584 esac
6585 fi # $pass = dlpreopen
6586
6587 if test -z "$libdir"; then
6588 # Link the convenience library
6589 if test "$linkmode" = lib; then
6590 deplibs="$dir/$old_library $deplibs"
6591 elif test "$linkmode,$pass" = "prog,link"; then
6592 compile_deplibs="$dir/$old_library $compile_deplibs"
6593 finalize_deplibs="$dir/$old_library $finalize_deplibs"
6594 else
6595 deplibs="$lib $deplibs" # used for prog,scan pass
6596 fi
6597 continue
6598 fi
6599
6600
6601 if test "$linkmode" = prog && test "$pass" != link; then
6602 func_append newlib_search_path " $ladir"
6603 deplibs="$lib $deplibs"
6604
6605 linkalldeplibs=no
6606 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6607 test "$build_libtool_libs" = no; then
6608 linkalldeplibs=yes
6609 fi
6610
6611 tmp_libs=
6612 for deplib in $dependency_libs; do
6613 case $deplib in
6614 -L*) func_stripname '-L' '' "$deplib"
6615 func_resolve_sysroot "$func_stripname_result"
6616 func_append newlib_search_path " $func_resolve_sysroot_result"
6617 ;;
6618 esac
6619 # Need to link against all dependency_libs?
6620 if test "$linkalldeplibs" = yes; then
6621 deplibs="$deplib $deplibs"
6622 else
6623 # Need to hardcode shared library paths
6624 # or/and link against static libraries
6625 newdependency_libs="$deplib $newdependency_libs"
6626 fi
6627 if $opt_preserve_dup_deps ; then
6628 case "$tmp_libs " in
6629 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6630 esac
6631 fi
6632 func_append tmp_libs " $deplib"
6633 done # for deplib
6634 continue
6635 fi # $linkmode = prog...
6636
6637 if test "$linkmode,$pass" = "prog,link"; then
6638 if test -n "$library_names" &&
6639 { { test "$prefer_static_libs" = no ||
6640 test "$prefer_static_libs,$installed" = "built,yes"; } ||
6641 test -z "$old_library"; }; then
6642 # We need to hardcode the library path
6643 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
6644 # Make sure the rpath contains only unique directories.
6645 case "$temp_rpath:" in
6646 *"$absdir:"*) ;;
6647 *) func_append temp_rpath "$absdir:" ;;
6648 esac
6649 fi
6650
6651 # Hardcode the library path.
6652 # Skip directories that are in the system default run-time
6653 # search path.
6654 case " $sys_lib_dlsearch_path " in
6655 *" $absdir "*) ;;
6656 *)
6657 case "$compile_rpath " in
6658 *" $absdir "*) ;;
6659 *) func_append compile_rpath " $absdir" ;;
6660 esac
6661 ;;
6662 esac
6663 case " $sys_lib_dlsearch_path " in
6664 *" $libdir "*) ;;
6665 *)
6666 case "$finalize_rpath " in
6667 *" $libdir "*) ;;
6668 *) func_append finalize_rpath " $libdir" ;;
6669 esac
6670 ;;
6671 esac
6672 fi # $linkmode,$pass = prog,link...
6673
6674 if test "$alldeplibs" = yes &&
6675 { test "$deplibs_check_method" = pass_all ||
6676 { test "$build_libtool_libs" = yes &&
6677 test -n "$library_names"; }; }; then
6678 # We only need to search for static libraries
6679 continue
6680 fi
6681 fi
6682
6683 link_static=no # Whether the deplib will be linked statically
6684 use_static_libs=$prefer_static_libs
6685 if test "$use_static_libs" = built && test "$installed" = yes; then
6686 use_static_libs=no
6687 fi
6688 if test -n "$library_names" &&
6689 { test "$use_static_libs" = no || test -z "$old_library"; }; then
6690 case $host in
6691 *cygwin* | *mingw* | *cegcc*)
6692 # No point in relinking DLLs because paths are not encoded
6693 func_append notinst_deplibs " $lib"
6694 need_relink=no
6695 ;;
6696 *)
6697 if test "$installed" = no; then
6698 func_append notinst_deplibs " $lib"
6699 need_relink=yes
6700 fi
6701 ;;
6702 esac
6703 # This is a shared library
6704
6705 # Warn about portability, can't link against -module's on some
6706 # systems (darwin). Don't bleat about dlopened modules though!
6707 dlopenmodule=""
6708 for dlpremoduletest in $dlprefiles; do
6709 if test "X$dlpremoduletest" = "X$lib"; then
6710 dlopenmodule="$dlpremoduletest"
6711 break
6712 fi
6713 done
6714 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
6715 echo
6716 if test "$linkmode" = prog; then
6717 $ECHO "*** Warning: Linking the executable $output against the loadable module"
6718 else
6719 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
6720 fi
6721 $ECHO "*** $linklib is not portable!"
6722 fi
6723 if test "$linkmode" = lib &&
6724 test "$hardcode_into_libs" = yes; then
6725 # Hardcode the library path.
6726 # Skip directories that are in the system default run-time
6727 # search path.
6728 case " $sys_lib_dlsearch_path " in
6729 *" $absdir "*) ;;
6730 *)
6731 case "$compile_rpath " in
6732 *" $absdir "*) ;;
6733 *) func_append compile_rpath " $absdir" ;;
6734 esac
6735 ;;
6736 esac
6737 case " $sys_lib_dlsearch_path " in
6738 *" $libdir "*) ;;
6739 *)
6740 case "$finalize_rpath " in
6741 *" $libdir "*) ;;
6742 *) func_append finalize_rpath " $libdir" ;;
6743 esac
6744 ;;
6745 esac
6746 fi
6747
6748 if test -n "$old_archive_from_expsyms_cmds"; then
6749 # figure out the soname
6750 set dummy $library_names
6751 shift
6752 realname="$1"
6753 shift
6754 libname=`eval "\\$ECHO \"$libname_spec\""`
6755 # use dlname if we got it. it's perfectly good, no?
6756 if test -n "$dlname"; then
6757 soname="$dlname"
6758 elif test -n "$soname_spec"; then
6759 # bleh windows
6760 case $host in
6761 *cygwin* | mingw* | *cegcc*)
6762 func_arith $current - $age
6763 major=$func_arith_result
6764 versuffix="-$major"
6765 ;;
6766 esac
6767 eval soname=\"$soname_spec\"
6768 else
6769 soname="$realname"
6770 fi
6771
6772 # Make a new name for the extract_expsyms_cmds to use
6773 soroot="$soname"
6774 func_basename "$soroot"
6775 soname="$func_basename_result"
6776 func_stripname 'lib' '.dll' "$soname"
6777 newlib=libimp-$func_stripname_result.a
6778
6779 # If the library has no export list, then create one now
6780 if test -f "$output_objdir/$soname-def"; then :
6781 else
6782 func_verbose "extracting exported symbol list from \`$soname'"
6783 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
6784 fi
6785
6786 # Create $newlib
6787 if test -f "$output_objdir/$newlib"; then :; else
6788 func_verbose "generating import library for \`$soname'"
6789 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
6790 fi
6791 # make sure the library variables are pointing to the new library
6792 dir=$output_objdir
6793 linklib=$newlib
6794 fi # test -n "$old_archive_from_expsyms_cmds"
6795
6796 if test "$linkmode" = prog || test "$opt_mode" != relink; then
6797 add_shlibpath=
6798 add_dir=
6799 add=
6800 lib_linked=yes
6801 case $hardcode_action in
6802 immediate | unsupported)
6803 if test "$hardcode_direct" = no; then
6804 add="$dir/$linklib"
6805 case $host in
6806 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6807 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
6808 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6809 *-*-unixware7*) add_dir="-L$dir" ;;
6810 *-*-darwin* )
6811 # if the lib is a (non-dlopened) module then we can not
6812 # link against it, someone is ignoring the earlier warnings
6813 if /usr/bin/file -L $add 2> /dev/null |
6814 $GREP ": [^:]* bundle" >/dev/null ; then
6815 if test "X$dlopenmodule" != "X$lib"; then
6816 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
6817 if test -z "$old_library" ; then
6818 echo
6819 echo "*** And there doesn't seem to be a static archive available"
6820 echo "*** The link will probably fail, sorry"
6821 else
6822 add="$dir/$old_library"
6823 fi
6824 elif test -n "$old_library"; then
6825 add="$dir/$old_library"
6826 fi
6827 fi
6828 esac
6829 elif test "$hardcode_minus_L" = no; then
6830 case $host in
6831 *-*-sunos*) add_shlibpath="$dir" ;;
6832 esac
6833 add_dir="-L$dir"
6834 add="-l$name"
6835 elif test "$hardcode_shlibpath_var" = no; then
6836 add_shlibpath="$dir"
6837 add="-l$name"
6838 else
6839 lib_linked=no
6840 fi
6841 ;;
6842 relink)
6843 if test "$hardcode_direct" = yes &&
6844 test "$hardcode_direct_absolute" = no; then
6845 add="$dir/$linklib"
6846 elif test "$hardcode_minus_L" = yes; then
6847 add_dir="-L$absdir"
6848 # Try looking first in the location we're being installed to.
6849 if test -n "$inst_prefix_dir"; then
6850 case $libdir in
6851 [\\/]*)
6852 func_append add_dir " -L$inst_prefix_dir$libdir"
6853 ;;
6854 esac
6855 fi
6856 add="-l$name"
6857 elif test "$hardcode_shlibpath_var" = yes; then
6858 add_shlibpath="$dir"
6859 add="-l$name"
6860 else
6861 lib_linked=no
6862 fi
6863 ;;
6864 *) lib_linked=no ;;
6865 esac
6866
6867 if test "$lib_linked" != yes; then
6868 func_fatal_configuration "unsupported hardcode properties"
6869 fi
6870
6871 if test -n "$add_shlibpath"; then
6872 case :$compile_shlibpath: in
6873 *":$add_shlibpath:"*) ;;
6874 *) func_append compile_shlibpath "$add_shlibpath:" ;;
6875 esac
6876 fi
6877 if test "$linkmode" = prog; then
6878 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
6879 test -n "$add" && compile_deplibs="$add $compile_deplibs"
6880 else
6881 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6882 test -n "$add" && deplibs="$add $deplibs"
6883 if test "$hardcode_direct" != yes &&
6884 test "$hardcode_minus_L" != yes &&
6885 test "$hardcode_shlibpath_var" = yes; then
6886 case :$finalize_shlibpath: in
6887 *":$libdir:"*) ;;
6888 *) func_append finalize_shlibpath "$libdir:" ;;
6889 esac
6890 fi
6891 fi
6892 fi
6893
6894 if test "$linkmode" = prog || test "$opt_mode" = relink; then
6895 add_shlibpath=
6896 add_dir=
6897 add=
6898 # Finalize command for both is simple: just hardcode it.
6899 if test "$hardcode_direct" = yes &&
6900 test "$hardcode_direct_absolute" = no; then
6901 add="$libdir/$linklib"
6902 elif test "$hardcode_minus_L" = yes; then
6903 add_dir="-L$libdir"
6904 add="-l$name"
6905 elif test "$hardcode_shlibpath_var" = yes; then
6906 case :$finalize_shlibpath: in
6907 *":$libdir:"*) ;;
6908 *) func_append finalize_shlibpath "$libdir:" ;;
6909 esac
6910 add="-l$name"
6911 elif test "$hardcode_automatic" = yes; then
6912 if test -n "$inst_prefix_dir" &&
6913 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6914 add="$inst_prefix_dir$libdir/$linklib"
6915 else
6916 add="$libdir/$linklib"
6917 fi
6918 else
6919 # We cannot seem to hardcode it, guess we'll fake it.
6920 add_dir="-L$libdir"
6921 # Try looking first in the location we're being installed to.
6922 if test -n "$inst_prefix_dir"; then
6923 case $libdir in
6924 [\\/]*)
6925 func_append add_dir " -L$inst_prefix_dir$libdir"
6926 ;;
6927 esac
6928 fi
6929 add="-l$name"
6930 fi
6931
6932 if test "$linkmode" = prog; then
6933 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
6934 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
6935 else
6936 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6937 test -n "$add" && deplibs="$add $deplibs"
6938 fi
6939 fi
6940 elif test "$linkmode" = prog; then
6941 # Here we assume that one of hardcode_direct or hardcode_minus_L
6942 # is not unsupported. This is valid on all known static and
6943 # shared platforms.
6944 if test "$hardcode_direct" != unsupported; then
6945 test -n "$old_library" && linklib="$old_library"
6946 compile_deplibs="$dir/$linklib $compile_deplibs"
6947 finalize_deplibs="$dir/$linklib $finalize_deplibs"
6948 else
6949 compile_deplibs="-l$name -L$dir $compile_deplibs"
6950 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
6951 fi
6952 elif test "$build_libtool_libs" = yes; then
6953 # Not a shared library
6954 if test "$deplibs_check_method" != pass_all; then
6955 # We're trying link a shared library against a static one
6956 # but the system doesn't support it.
6957
6958 # Just print a warning and add the library to dependency_libs so
6959 # that the program can be linked against the static library.
6960 echo
6961 $ECHO "*** Warning: This system can not link to static lib archive $lib."
6962 echo "*** I have the capability to make that library automatically link in when"
6963 echo "*** you link to this library. But I can only do this if you have a"
6964 echo "*** shared version of the library, which you do not appear to have."
6965 if test "$module" = yes; then
6966 echo "*** But as you try to build a module library, libtool will still create "
6967 echo "*** a static module, that should work as long as the dlopening application"
6968 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
6969 if test -z "$global_symbol_pipe"; then
6970 echo
6971 echo "*** However, this would only work if libtool was able to extract symbol"
6972 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
6973 echo "*** not find such a program. So, this module is probably useless."
6974 echo "*** \`nm' from GNU binutils and a full rebuild may help."
6975 fi
6976 if test "$build_old_libs" = no; then
6977 build_libtool_libs=module
6978 build_old_libs=yes
6979 else
6980 build_libtool_libs=no
6981 fi
6982 fi
6983 else
6984 deplibs="$dir/$old_library $deplibs"
6985 link_static=yes
6986 fi
6987 fi # link shared/static library?
6988
6989 if test "$linkmode" = lib; then
6990 if test -n "$dependency_libs" &&
6991 { test "$hardcode_into_libs" != yes ||
6992 test "$build_old_libs" = yes ||
6993 test "$link_static" = yes; }; then
6994 # Extract -R from dependency_libs
6995 temp_deplibs=
6996 for libdir in $dependency_libs; do
6997 case $libdir in
6998 -R*) func_stripname '-R' '' "$libdir"
6999 temp_xrpath=$func_stripname_result
7000 case " $xrpath " in
7001 *" $temp_xrpath "*) ;;
7002 *) func_append xrpath " $temp_xrpath";;
7003 esac;;
7004 *) func_append temp_deplibs " $libdir";;
7005 esac
7006 done
7007 dependency_libs="$temp_deplibs"
7008 fi
7009
7010 func_append newlib_search_path " $absdir"
7011 # Link against this library
7012 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
7013 # ... and its dependency_libs
7014 tmp_libs=
7015 for deplib in $dependency_libs; do
7016 newdependency_libs="$deplib $newdependency_libs"
7017 case $deplib in
7018 -L*) func_stripname '-L' '' "$deplib"
7019 func_resolve_sysroot "$func_stripname_result";;
7020 *) func_resolve_sysroot "$deplib" ;;
7021 esac
7022 if $opt_preserve_dup_deps ; then
7023 case "$tmp_libs " in
7024 *" $func_resolve_sysroot_result "*)
7025 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
7026 esac
7027 fi
7028 func_append tmp_libs " $func_resolve_sysroot_result"
7029 done
7030
7031 if test "$link_all_deplibs" != no; then
7032 # Add the search paths of all dependency libraries
7033 for deplib in $dependency_libs; do
7034 path=
7035 case $deplib in
7036 -L*) path="$deplib" ;;
7037 *.la)
7038 func_resolve_sysroot "$deplib"
7039 deplib=$func_resolve_sysroot_result
7040 func_dirname "$deplib" "" "."
7041 dir=$func_dirname_result
7042 # We need an absolute path.
7043 case $dir in
7044 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
7045 *)
7046 absdir=`cd "$dir" && pwd`
7047 if test -z "$absdir"; then
7048 func_warning "cannot determine absolute directory name of \`$dir'"
7049 absdir="$dir"
7050 fi
7051 ;;
7052 esac
7053 if $GREP "^installed=no" $deplib > /dev/null; then
7054 case $host in
7055 *-*-darwin*)
7056 depdepl=
7057 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7058 if test -n "$deplibrary_names" ; then
7059 for tmp in $deplibrary_names ; do
7060 depdepl=$tmp
7061 done
7062 if test -f "$absdir/$objdir/$depdepl" ; then
7063 depdepl="$absdir/$objdir/$depdepl"
7064 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7065 if test -z "$darwin_install_name"; then
7066 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7067 fi
7068 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7069 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
7070 path=
7071 fi
7072 fi
7073 ;;
7074 *)
7075 path="-L$absdir/$objdir"
7076 ;;
7077 esac
7078 else
7079 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7080 test -z "$libdir" && \
7081 func_fatal_error "\`$deplib' is not a valid libtool archive"
7082 test "$absdir" != "$libdir" && \
7083 func_warning "\`$deplib' seems to be moved"
7084
7085 path="-L$absdir"
7086 fi
7087 ;;
7088 esac
7089 case " $deplibs " in
7090 *" $path "*) ;;
7091 *) deplibs="$path $deplibs" ;;
7092 esac
7093 done
7094 fi # link_all_deplibs != no
7095 fi # linkmode = lib
7096 done # for deplib in $libs
7097 if test "$pass" = link; then
7098 if test "$linkmode" = "prog"; then
7099 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
7100 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
7101 else
7102 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7103 fi
7104 fi
7105 dependency_libs="$newdependency_libs"
7106 if test "$pass" = dlpreopen; then
7107 # Link the dlpreopened libraries before other libraries
7108 for deplib in $save_deplibs; do
7109 deplibs="$deplib $deplibs"
7110 done
7111 fi
7112 if test "$pass" != dlopen; then
7113 if test "$pass" != conv; then
7114 # Make sure lib_search_path contains only unique directories.
7115 lib_search_path=
7116 for dir in $newlib_search_path; do
7117 case "$lib_search_path " in
7118 *" $dir "*) ;;
7119 *) func_append lib_search_path " $dir" ;;
7120 esac
7121 done
7122 newlib_search_path=
7123 fi
7124
7125 if test "$linkmode,$pass" != "prog,link"; then
7126 vars="deplibs"
7127 else
7128 vars="compile_deplibs finalize_deplibs"
7129 fi
7130 for var in $vars dependency_libs; do
7131 # Add libraries to $var in reverse order
7132 eval tmp_libs=\"\$$var\"
7133 new_libs=
7134 for deplib in $tmp_libs; do
7135 # FIXME: Pedantically, this is the right thing to do, so
7136 # that some nasty dependency loop isn't accidentally
7137 # broken:
7138 #new_libs="$deplib $new_libs"
7139 # Pragmatically, this seems to cause very few problems in
7140 # practice:
7141 case $deplib in
7142 -L*) new_libs="$deplib $new_libs" ;;
7143 -R*) ;;
7144 *)
7145 # And here is the reason: when a library appears more
7146 # than once as an explicit dependence of a library, or
7147 # is implicitly linked in more than once by the
7148 # compiler, it is considered special, and multiple
7149 # occurrences thereof are not removed. Compare this
7150 # with having the same library being listed as a
7151 # dependency of multiple other libraries: in this case,
7152 # we know (pedantically, we assume) the library does not
7153 # need to be listed more than once, so we keep only the
7154 # last copy. This is not always right, but it is rare
7155 # enough that we require users that really mean to play
7156 # such unportable linking tricks to link the library
7157 # using -Wl,-lname, so that libtool does not consider it
7158 # for duplicate removal.
7159 case " $specialdeplibs " in
7160 *" $deplib "*) new_libs="$deplib $new_libs" ;;
7161 *)
7162 case " $new_libs " in
7163 *" $deplib "*) ;;
7164 *) new_libs="$deplib $new_libs" ;;
7165 esac
7166 ;;
7167 esac
7168 ;;
7169 esac
7170 done
7171 tmp_libs=
7172 for deplib in $new_libs; do
7173 case $deplib in
7174 -L*)
7175 case " $tmp_libs " in
7176 *" $deplib "*) ;;
7177 *) func_append tmp_libs " $deplib" ;;
7178 esac
7179 ;;
7180 *) func_append tmp_libs " $deplib" ;;
7181 esac
7182 done
7183 eval $var=\"$tmp_libs\"
7184 done # for var
7185 fi
7186 # Last step: remove runtime libs from dependency_libs
7187 # (they stay in deplibs)
7188 tmp_libs=
7189 for i in $dependency_libs ; do
7190 case " $predeps $postdeps $compiler_lib_search_path " in
7191 *" $i "*)
7192 i=""
7193 ;;
7194 esac
7195 if test -n "$i" ; then
7196 func_append tmp_libs " $i"
7197 fi
7198 done
7199 dependency_libs=$tmp_libs
7200 done # for pass
7201 if test "$linkmode" = prog; then
7202 dlfiles="$newdlfiles"
7203 fi
7204 if test "$linkmode" = prog || test "$linkmode" = lib; then
7205 dlprefiles="$newdlprefiles"
7206 fi
7207
7208 case $linkmode in
7209 oldlib)
7210 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7211 func_warning "\`-dlopen' is ignored for archives"
7212 fi
7213
7214 case " $deplibs" in
7215 *\ -l* | *\ -L*)
7216 func_warning "\`-l' and \`-L' are ignored for archives" ;;
7217 esac
7218
7219 test -n "$rpath" && \
7220 func_warning "\`-rpath' is ignored for archives"
7221
7222 test -n "$xrpath" && \
7223 func_warning "\`-R' is ignored for archives"
7224
7225 test -n "$vinfo" && \
7226 func_warning "\`-version-info/-version-number' is ignored for archives"
7227
7228 test -n "$release" && \
7229 func_warning "\`-release' is ignored for archives"
7230
7231 test -n "$export_symbols$export_symbols_regex" && \
7232 func_warning "\`-export-symbols' is ignored for archives"
7233
7234 # Now set the variables for building old libraries.
7235 build_libtool_libs=no
7236 oldlibs="$output"
7237 func_append objs "$old_deplibs"
7238 ;;
7239
7240 lib)
7241 # Make sure we only generate libraries of the form `libNAME.la'.
7242 case $outputname in
7243 lib*)
7244 func_stripname 'lib' '.la' "$outputname"
7245 name=$func_stripname_result
7246 eval shared_ext=\"$shrext_cmds\"
7247 eval libname=\"$libname_spec\"
7248 ;;
7249 *)
7250 test "$module" = no && \
7251 func_fatal_help "libtool library \`$output' must begin with \`lib'"
7252
7253 if test "$need_lib_prefix" != no; then
7254 # Add the "lib" prefix for modules if required
7255 func_stripname '' '.la' "$outputname"
7256 name=$func_stripname_result
7257 eval shared_ext=\"$shrext_cmds\"
7258 eval libname=\"$libname_spec\"
7259 else
7260 func_stripname '' '.la' "$outputname"
7261 libname=$func_stripname_result
7262 fi
7263 ;;
7264 esac
7265
7266 if test -n "$objs"; then
7267 if test "$deplibs_check_method" != pass_all; then
7268 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
7269 else
7270 echo
7271 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
7272 $ECHO "*** objects $objs is not portable!"
7273 func_append libobjs " $objs"
7274 fi
7275 fi
7276
7277 test "$dlself" != no && \
7278 func_warning "\`-dlopen self' is ignored for libtool libraries"
7279
7280 set dummy $rpath
7281 shift
7282 test "$#" -gt 1 && \
7283 func_warning "ignoring multiple \`-rpath's for a libtool library"
7284
7285 install_libdir="$1"
7286
7287 oldlibs=
7288 if test -z "$rpath"; then
7289 if test "$build_libtool_libs" = yes; then
7290 # Building a libtool convenience library.
7291 # Some compilers have problems with a `.al' extension so
7292 # convenience libraries should have the same extension an
7293 # archive normally would.
7294 oldlibs="$output_objdir/$libname.$libext $oldlibs"
7295 build_libtool_libs=convenience
7296 build_old_libs=yes
7297 fi
7298
7299 test -n "$vinfo" && \
7300 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
7301
7302 test -n "$release" && \
7303 func_warning "\`-release' is ignored for convenience libraries"
7304 else
7305
7306 # Parse the version information argument.
7307 save_ifs="$IFS"; IFS=':'
7308 set dummy $vinfo 0 0 0
7309 shift
7310 IFS="$save_ifs"
7311
7312 test -n "$7" && \
7313 func_fatal_help "too many parameters to \`-version-info'"
7314
7315 # convert absolute version numbers to libtool ages
7316 # this retains compatibility with .la files and attempts
7317 # to make the code below a bit more comprehensible
7318
7319 case $vinfo_number in
7320 yes)
7321 number_major="$1"
7322 number_minor="$2"
7323 number_revision="$3"
7324 #
7325 # There are really only two kinds -- those that
7326 # use the current revision as the major version
7327 # and those that subtract age and use age as
7328 # a minor version. But, then there is irix
7329 # which has an extra 1 added just for fun
7330 #
7331 case $version_type in
7332 # correct linux to gnu/linux during the next big refactor
7333 darwin|linux|osf|windows|none)
7334 func_arith $number_major + $number_minor
7335 current=$func_arith_result
7336 age="$number_minor"
7337 revision="$number_revision"
7338 ;;
7339 freebsd-aout|freebsd-elf|qnx|sunos)
7340 current="$number_major"
7341 revision="$number_minor"
7342 age="0"
7343 ;;
7344 irix|nonstopux)
7345 func_arith $number_major + $number_minor
7346 current=$func_arith_result
7347 age="$number_minor"
7348 revision="$number_minor"
7349 lt_irix_increment=no
7350 ;;
7351 esac
7352 ;;
7353 no)
7354 current="$1"
7355 revision="$2"
7356 age="$3"
7357 ;;
7358 esac
7359
7360 # Check that each of the things are valid numbers.
7361 case $current in
7362 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7363 *)
7364 func_error "CURRENT \`$current' must be a nonnegative integer"
7365 func_fatal_error "\`$vinfo' is not valid version information"
7366 ;;
7367 esac
7368
7369 case $revision in
7370 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7371 *)
7372 func_error "REVISION \`$revision' must be a nonnegative integer"
7373 func_fatal_error "\`$vinfo' is not valid version information"
7374 ;;
7375 esac
7376
7377 case $age in
7378 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7379 *)
7380 func_error "AGE \`$age' must be a nonnegative integer"
7381 func_fatal_error "\`$vinfo' is not valid version information"
7382 ;;
7383 esac
7384
7385 if test "$age" -gt "$current"; then
7386 func_error "AGE \`$age' is greater than the current interface number \`$current'"
7387 func_fatal_error "\`$vinfo' is not valid version information"
7388 fi
7389
7390 # Calculate the version variables.
7391 major=
7392 versuffix=
7393 verstring=
7394 case $version_type in
7395 none) ;;
7396
7397 darwin)
7398 # Like Linux, but with the current version available in
7399 # verstring for coding it into the library header
7400 func_arith $current - $age
7401 major=.$func_arith_result
7402 versuffix="$major.$age.$revision"
7403 # Darwin ld doesn't like 0 for these options...
7404 func_arith $current + 1
7405 minor_current=$func_arith_result
7406 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
7407 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
7408 ;;
7409
7410 freebsd-aout)
7411 major=".$current"
7412 versuffix=".$current.$revision";
7413 ;;
7414
7415 freebsd-elf)
7416 major=".$current"
7417 versuffix=".$current"
7418 ;;
7419
7420 irix | nonstopux)
7421 if test "X$lt_irix_increment" = "Xno"; then
7422 func_arith $current - $age
7423 else
7424 func_arith $current - $age + 1
7425 fi
7426 major=$func_arith_result
7427
7428 case $version_type in
7429 nonstopux) verstring_prefix=nonstopux ;;
7430 *) verstring_prefix=sgi ;;
7431 esac
7432 verstring="$verstring_prefix$major.$revision"
7433
7434 # Add in all the interfaces that we are compatible with.
7435 loop=$revision
7436 while test "$loop" -ne 0; do
7437 func_arith $revision - $loop
7438 iface=$func_arith_result
7439 func_arith $loop - 1
7440 loop=$func_arith_result
7441 verstring="$verstring_prefix$major.$iface:$verstring"
7442 done
7443
7444 # Before this point, $major must not contain `.'.
7445 major=.$major
7446 versuffix="$major.$revision"
7447 ;;
7448
7449 linux) # correct to gnu/linux during the next big refactor
7450 func_arith $current - $age
7451 major=.$func_arith_result
7452 versuffix="$major.$age.$revision"
7453 ;;
7454
7455 osf)
7456 func_arith $current - $age
7457 major=.$func_arith_result
7458 versuffix=".$current.$age.$revision"
7459 verstring="$current.$age.$revision"
7460
7461 # Add in all the interfaces that we are compatible with.
7462 loop=$age
7463 while test "$loop" -ne 0; do
7464 func_arith $current - $loop
7465 iface=$func_arith_result
7466 func_arith $loop - 1
7467 loop=$func_arith_result
7468 verstring="$verstring:${iface}.0"
7469 done
7470
7471 # Make executables depend on our current version.
7472 func_append verstring ":${current}.0"
7473 ;;
7474
7475 qnx)
7476 major=".$current"
7477 versuffix=".$current"
7478 ;;
7479
7480 sunos)
7481 major=".$current"
7482 versuffix=".$current.$revision"
7483 ;;
7484
7485 windows)
7486 # Use '-' rather than '.', since we only want one
7487 # extension on DOS 8.3 filesystems.
7488 func_arith $current - $age
7489 major=$func_arith_result
7490 versuffix="-$major"
7491 ;;
7492
7493 *)
7494 func_fatal_configuration "unknown library version type \`$version_type'"
7495 ;;
7496 esac
7497
7498 # Clear the version info if we defaulted, and they specified a release.
7499 if test -z "$vinfo" && test -n "$release"; then
7500 major=
7501 case $version_type in
7502 darwin)
7503 # we can't check for "0.0" in archive_cmds due to quoting
7504 # problems, so we reset it completely
7505 verstring=
7506 ;;
7507 *)
7508 verstring="0.0"
7509 ;;
7510 esac
7511 if test "$need_version" = no; then
7512 versuffix=
7513 else
7514 versuffix=".0.0"
7515 fi
7516 fi
7517
7518 # Remove version info from name if versioning should be avoided
7519 if test "$avoid_version" = yes && test "$need_version" = no; then
7520 major=
7521 versuffix=
7522 verstring=""
7523 fi
7524
7525 # Check to see if the archive will have undefined symbols.
7526 if test "$allow_undefined" = yes; then
7527 if test "$allow_undefined_flag" = unsupported; then
7528 func_warning "undefined symbols not allowed in $host shared libraries"
7529 build_libtool_libs=no
7530 build_old_libs=yes
7531 fi
7532 else
7533 # Don't allow undefined symbols.
7534 allow_undefined_flag="$no_undefined_flag"
7535 fi
7536
7537 fi
7538
7539 func_generate_dlsyms "$libname" "$libname" "yes"
7540 func_append libobjs " $symfileobj"
7541 test "X$libobjs" = "X " && libobjs=
7542
7543 if test "$opt_mode" != relink; then
7544 # Remove our outputs, but don't remove object files since they
7545 # may have been created when compiling PIC objects.
7546 removelist=
7547 tempremovelist=`$ECHO "$output_objdir/*"`
7548 for p in $tempremovelist; do
7549 case $p in
7550 *.$objext | *.gcno)
7551 ;;
7552 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
7553 if test "X$precious_files_regex" != "X"; then
7554 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
7555 then
7556 continue
7557 fi
7558 fi
7559 func_append removelist " $p"
7560 ;;
7561 *) ;;
7562 esac
7563 done
7564 test -n "$removelist" && \
7565 func_show_eval "${RM}r \$removelist"
7566 fi
7567
7568 # Now set the variables for building old libraries.
7569 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
7570 func_append oldlibs " $output_objdir/$libname.$libext"
7571
7572 # Transform .lo files to .o files.
7573 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
7574 fi
7575
7576 # Eliminate all temporary directories.
7577 #for path in $notinst_path; do
7578 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
7579 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
7580 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
7581 #done
7582
7583 if test -n "$xrpath"; then
7584 # If the user specified any rpath flags, then add them.
7585 temp_xrpath=
7586 for libdir in $xrpath; do
7587 func_replace_sysroot "$libdir"
7588 func_append temp_xrpath " -R$func_replace_sysroot_result"
7589 case "$finalize_rpath " in
7590 *" $libdir "*) ;;
7591 *) func_append finalize_rpath " $libdir" ;;
7592 esac
7593 done
7594 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
7595 dependency_libs="$temp_xrpath $dependency_libs"
7596 fi
7597 fi
7598
7599 # Make sure dlfiles contains only unique files that won't be dlpreopened
7600 old_dlfiles="$dlfiles"
7601 dlfiles=
7602 for lib in $old_dlfiles; do
7603 case " $dlprefiles $dlfiles " in
7604 *" $lib "*) ;;
7605 *) func_append dlfiles " $lib" ;;
7606 esac
7607 done
7608
7609 # Make sure dlprefiles contains only unique files
7610 old_dlprefiles="$dlprefiles"
7611 dlprefiles=
7612 for lib in $old_dlprefiles; do
7613 case "$dlprefiles " in
7614 *" $lib "*) ;;
7615 *) func_append dlprefiles " $lib" ;;
7616 esac
7617 done
7618
7619 if test "$build_libtool_libs" = yes; then
7620 if test -n "$rpath"; then
7621 case $host in
7622 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
7623 # these systems don't actually have a c library (as such)!
7624 ;;
7625 *-*-rhapsody* | *-*-darwin1.[012])
7626 # Rhapsody C library is in the System framework
7627 func_append deplibs " System.ltframework"
7628 ;;
7629 *-*-netbsd*)
7630 # Don't link with libc until the a.out ld.so is fixed.
7631 ;;
7632 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7633 # Do not include libc due to us having libc/libc_r.
7634 ;;
7635 *-*-sco3.2v5* | *-*-sco5v6*)
7636 # Causes problems with __ctype
7637 ;;
7638 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7639 # Compiler inserts libc in the correct place for threads to work
7640 ;;
7641 *)
7642 # Add libc to deplibs on all other systems if necessary.
7643 if test "$build_libtool_need_lc" = "yes"; then
7644 func_append deplibs " -lc"
7645 fi
7646 ;;
7647 esac
7648 fi
7649
7650 # Transform deplibs into only deplibs that can be linked in shared.
7651 name_save=$name
7652 libname_save=$libname
7653 release_save=$release
7654 versuffix_save=$versuffix
7655 major_save=$major
7656 # I'm not sure if I'm treating the release correctly. I think
7657 # release should show up in the -l (ie -lgmp5) so we don't want to
7658 # add it in twice. Is that correct?
7659 release=""
7660 versuffix=""
7661 major=""
7662 newdeplibs=
7663 droppeddeps=no
7664 case $deplibs_check_method in
7665 pass_all)
7666 # Don't check for shared/static. Everything works.
7667 # This might be a little naive. We might want to check
7668 # whether the library exists or not. But this is on
7669 # osf3 & osf4 and I'm not really sure... Just
7670 # implementing what was already the behavior.
7671 newdeplibs=$deplibs
7672 ;;
7673 test_compile)
7674 # This code stresses the "libraries are programs" paradigm to its
7675 # limits. Maybe even breaks it. We compile a program, linking it
7676 # against the deplibs as a proxy for the library. Then we can check
7677 # whether they linked in statically or dynamically with ldd.
7678 $opt_dry_run || $RM conftest.c
7679 cat > conftest.c <<EOF
7680 int main() { return 0; }
7681 EOF
7682 $opt_dry_run || $RM conftest
7683 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
7684 ldd_output=`ldd conftest`
7685 for i in $deplibs; do
7686 case $i in
7687 -l*)
7688 func_stripname -l '' "$i"
7689 name=$func_stripname_result
7690 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7691 case " $predeps $postdeps " in
7692 *" $i "*)
7693 func_append newdeplibs " $i"
7694 i=""
7695 ;;
7696 esac
7697 fi
7698 if test -n "$i" ; then
7699 libname=`eval "\\$ECHO \"$libname_spec\""`
7700 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
7701 set dummy $deplib_matches; shift
7702 deplib_match=$1
7703 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7704 func_append newdeplibs " $i"
7705 else
7706 droppeddeps=yes
7707 echo
7708 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
7709 echo "*** I have the capability to make that library automatically link in when"
7710 echo "*** you link to this library. But I can only do this if you have a"
7711 echo "*** shared version of the library, which I believe you do not have"
7712 echo "*** because a test_compile did reveal that the linker did not use it for"
7713 echo "*** its dynamic dependency list that programs get resolved with at runtime."
7714 fi
7715 fi
7716 ;;
7717 *)
7718 func_append newdeplibs " $i"
7719 ;;
7720 esac
7721 done
7722 else
7723 # Error occurred in the first compile. Let's try to salvage
7724 # the situation: Compile a separate program for each library.
7725 for i in $deplibs; do
7726 case $i in
7727 -l*)
7728 func_stripname -l '' "$i"
7729 name=$func_stripname_result
7730 $opt_dry_run || $RM conftest
7731 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
7732 ldd_output=`ldd conftest`
7733 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7734 case " $predeps $postdeps " in
7735 *" $i "*)
7736 func_append newdeplibs " $i"
7737 i=""
7738 ;;
7739 esac
7740 fi
7741 if test -n "$i" ; then
7742 libname=`eval "\\$ECHO \"$libname_spec\""`
7743 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
7744 set dummy $deplib_matches; shift
7745 deplib_match=$1
7746 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7747 func_append newdeplibs " $i"
7748 else
7749 droppeddeps=yes
7750 echo
7751 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
7752 echo "*** I have the capability to make that library automatically link in when"
7753 echo "*** you link to this library. But I can only do this if you have a"
7754 echo "*** shared version of the library, which you do not appear to have"
7755 echo "*** because a test_compile did reveal that the linker did not use this one"
7756 echo "*** as a dynamic dependency that programs can get resolved with at runtime."
7757 fi
7758 fi
7759 else
7760 droppeddeps=yes
7761 echo
7762 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
7763 echo "*** make it link in! You will probably need to install it or some"
7764 echo "*** library that it depends on before this library will be fully"
7765 echo "*** functional. Installing it before continuing would be even better."
7766 fi
7767 ;;
7768 *)
7769 func_append newdeplibs " $i"
7770 ;;
7771 esac
7772 done
7773 fi
7774 ;;
7775 file_magic*)
7776 set dummy $deplibs_check_method; shift
7777 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
7778 for a_deplib in $deplibs; do
7779 case $a_deplib in
7780 -l*)
7781 func_stripname -l '' "$a_deplib"
7782 name=$func_stripname_result
7783 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7784 case " $predeps $postdeps " in
7785 *" $a_deplib "*)
7786 func_append newdeplibs " $a_deplib"
7787 a_deplib=""
7788 ;;
7789 esac
7790 fi
7791 if test -n "$a_deplib" ; then
7792 libname=`eval "\\$ECHO \"$libname_spec\""`
7793 if test -n "$file_magic_glob"; then
7794 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7795 else
7796 libnameglob=$libname
7797 fi
7798 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
7799 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7800 if test "$want_nocaseglob" = yes; then
7801 shopt -s nocaseglob
7802 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7803 $nocaseglob
7804 else
7805 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7806 fi
7807 for potent_lib in $potential_libs; do
7808 # Follow soft links.
7809 if ls -lLd "$potent_lib" 2>/dev/null |
7810 $GREP " -> " >/dev/null; then
7811 continue
7812 fi
7813 # The statement above tries to avoid entering an
7814 # endless loop below, in case of cyclic links.
7815 # We might still enter an endless loop, since a link
7816 # loop can be closed while we follow links,
7817 # but so what?
7818 potlib="$potent_lib"
7819 while test -h "$potlib" 2>/dev/null; do
7820 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
7821 case $potliblink in
7822 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7823 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
7824 esac
7825 done
7826 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
7827 $SED -e 10q |
7828 $EGREP "$file_magic_regex" > /dev/null; then
7829 func_append newdeplibs " $a_deplib"
7830 a_deplib=""
7831 break 2
7832 fi
7833 done
7834 done
7835 fi
7836 if test -n "$a_deplib" ; then
7837 droppeddeps=yes
7838 echo
7839 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
7840 echo "*** I have the capability to make that library automatically link in when"
7841 echo "*** you link to this library. But I can only do this if you have a"
7842 echo "*** shared version of the library, which you do not appear to have"
7843 echo "*** because I did check the linker path looking for a file starting"
7844 if test -z "$potlib" ; then
7845 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
7846 else
7847 $ECHO "*** with $libname and none of the candidates passed a file format test"
7848 $ECHO "*** using a file magic. Last file checked: $potlib"
7849 fi
7850 fi
7851 ;;
7852 *)
7853 # Add a -L argument.
7854 func_append newdeplibs " $a_deplib"
7855 ;;
7856 esac
7857 done # Gone through all deplibs.
7858 ;;
7859 match_pattern*)
7860 set dummy $deplibs_check_method; shift
7861 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
7862 for a_deplib in $deplibs; do
7863 case $a_deplib in
7864 -l*)
7865 func_stripname -l '' "$a_deplib"
7866 name=$func_stripname_result
7867 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7868 case " $predeps $postdeps " in
7869 *" $a_deplib "*)
7870 func_append newdeplibs " $a_deplib"
7871 a_deplib=""
7872 ;;
7873 esac
7874 fi
7875 if test -n "$a_deplib" ; then
7876 libname=`eval "\\$ECHO \"$libname_spec\""`
7877 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7878 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7879 for potent_lib in $potential_libs; do
7880 potlib="$potent_lib" # see symlink-check above in file_magic test
7881 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
7882 $EGREP "$match_pattern_regex" > /dev/null; then
7883 func_append newdeplibs " $a_deplib"
7884 a_deplib=""
7885 break 2
7886 fi
7887 done
7888 done
7889 fi
7890 if test -n "$a_deplib" ; then
7891 droppeddeps=yes
7892 echo
7893 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
7894 echo "*** I have the capability to make that library automatically link in when"
7895 echo "*** you link to this library. But I can only do this if you have a"
7896 echo "*** shared version of the library, which you do not appear to have"
7897 echo "*** because I did check the linker path looking for a file starting"
7898 if test -z "$potlib" ; then
7899 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
7900 else
7901 $ECHO "*** with $libname and none of the candidates passed a file format test"
7902 $ECHO "*** using a regex pattern. Last file checked: $potlib"
7903 fi
7904 fi
7905 ;;
7906 *)
7907 # Add a -L argument.
7908 func_append newdeplibs " $a_deplib"
7909 ;;
7910 esac
7911 done # Gone through all deplibs.
7912 ;;
7913 none | unknown | *)
7914 newdeplibs=""
7915 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7916 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7917 for i in $predeps $postdeps ; do
7918 # can't use Xsed below, because $i might contain '/'
7919 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
7920 done
7921 fi
7922 case $tmp_deplibs in
7923 *[!\ \ ]*)
7924 echo
7925 if test "X$deplibs_check_method" = "Xnone"; then
7926 echo "*** Warning: inter-library dependencies are not supported in this platform."
7927 else
7928 echo "*** Warning: inter-library dependencies are not known to be supported."
7929 fi
7930 echo "*** All declared inter-library dependencies are being dropped."
7931 droppeddeps=yes
7932 ;;
7933 esac
7934 ;;
7935 esac
7936 versuffix=$versuffix_save
7937 major=$major_save
7938 release=$release_save
7939 libname=$libname_save
7940 name=$name_save
7941
7942 case $host in
7943 *-*-rhapsody* | *-*-darwin1.[012])
7944 # On Rhapsody replace the C library with the System framework
7945 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
7946 ;;
7947 esac
7948
7949 if test "$droppeddeps" = yes; then
7950 if test "$module" = yes; then
7951 echo
7952 echo "*** Warning: libtool could not satisfy all declared inter-library"
7953 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
7954 echo "*** a static module, that should work as long as the dlopening"
7955 echo "*** application is linked with the -dlopen flag."
7956 if test -z "$global_symbol_pipe"; then
7957 echo
7958 echo "*** However, this would only work if libtool was able to extract symbol"
7959 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
7960 echo "*** not find such a program. So, this module is probably useless."
7961 echo "*** \`nm' from GNU binutils and a full rebuild may help."
7962 fi
7963 if test "$build_old_libs" = no; then
7964 oldlibs="$output_objdir/$libname.$libext"
7965 build_libtool_libs=module
7966 build_old_libs=yes
7967 else
7968 build_libtool_libs=no
7969 fi
7970 else
7971 echo "*** The inter-library dependencies that have been dropped here will be"
7972 echo "*** automatically added whenever a program is linked with this library"
7973 echo "*** or is declared to -dlopen it."
7974
7975 if test "$allow_undefined" = no; then
7976 echo
7977 echo "*** Since this library must not contain undefined symbols,"
7978 echo "*** because either the platform does not support them or"
7979 echo "*** it was explicitly requested with -no-undefined,"
7980 echo "*** libtool will only create a static version of it."
7981 if test "$build_old_libs" = no; then
7982 oldlibs="$output_objdir/$libname.$libext"
7983 build_libtool_libs=module
7984 build_old_libs=yes
7985 else
7986 build_libtool_libs=no
7987 fi
7988 fi
7989 fi
7990 fi
7991 # Done checking deplibs!
7992 deplibs=$newdeplibs
7993 fi
7994 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7995 case $host in
7996 *-*-darwin*)
7997 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7998 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7999 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8000 ;;
8001 esac
8002
8003 # move library search paths that coincide with paths to not yet
8004 # installed libraries to the beginning of the library search list
8005 new_libs=
8006 for path in $notinst_path; do
8007 case " $new_libs " in
8008 *" -L$path/$objdir "*) ;;
8009 *)
8010 case " $deplibs " in
8011 *" -L$path/$objdir "*)
8012 func_append new_libs " -L$path/$objdir" ;;
8013 esac
8014 ;;
8015 esac
8016 done
8017 for deplib in $deplibs; do
8018 case $deplib in
8019 -L*)
8020 case " $new_libs " in
8021 *" $deplib "*) ;;
8022 *) func_append new_libs " $deplib" ;;
8023 esac
8024 ;;
8025 *) func_append new_libs " $deplib" ;;
8026 esac
8027 done
8028 deplibs="$new_libs"
8029
8030 # All the library-specific variables (install_libdir is set above).
8031 library_names=
8032 old_library=
8033 dlname=
8034
8035 # Test again, we may have decided not to build it any more
8036 if test "$build_libtool_libs" = yes; then
8037 # Remove ${wl} instances when linking with ld.
8038 # FIXME: should test the right _cmds variable.
8039 case $archive_cmds in
8040 *\$LD\ *) wl= ;;
8041 esac
8042 if test "$hardcode_into_libs" = yes; then
8043 # Hardcode the library paths
8044 hardcode_libdirs=
8045 dep_rpath=
8046 rpath="$finalize_rpath"
8047 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
8048 for libdir in $rpath; do
8049 if test -n "$hardcode_libdir_flag_spec"; then
8050 if test -n "$hardcode_libdir_separator"; then
8051 func_replace_sysroot "$libdir"
8052 libdir=$func_replace_sysroot_result
8053 if test -z "$hardcode_libdirs"; then
8054 hardcode_libdirs="$libdir"
8055 else
8056 # Just accumulate the unique libdirs.
8057 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
8058 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
8059 ;;
8060 *)
8061 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
8062 ;;
8063 esac
8064 fi
8065 else
8066 eval flag=\"$hardcode_libdir_flag_spec\"
8067 func_append dep_rpath " $flag"
8068 fi
8069 elif test -n "$runpath_var"; then
8070 case "$perm_rpath " in
8071 *" $libdir "*) ;;
8072 *) func_append perm_rpath " $libdir" ;;
8073 esac
8074 fi
8075 done
8076 # Substitute the hardcoded libdirs into the rpath.
8077 if test -n "$hardcode_libdir_separator" &&
8078 test -n "$hardcode_libdirs"; then
8079 libdir="$hardcode_libdirs"
8080 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
8081 fi
8082 if test -n "$runpath_var" && test -n "$perm_rpath"; then
8083 # We should set the runpath_var.
8084 rpath=
8085 for dir in $perm_rpath; do
8086 func_append rpath "$dir:"
8087 done
8088 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
8089 fi
8090 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
8091 fi
8092
8093 shlibpath="$finalize_shlibpath"
8094 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
8095 if test -n "$shlibpath"; then
8096 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
8097 fi
8098
8099 # Get the real and link names of the library.
8100 eval shared_ext=\"$shrext_cmds\"
8101 eval library_names=\"$library_names_spec\"
8102 set dummy $library_names
8103 shift
8104 realname="$1"
8105 shift
8106
8107 if test -n "$soname_spec"; then
8108 eval soname=\"$soname_spec\"
8109 else
8110 soname="$realname"
8111 fi
8112 if test -z "$dlname"; then
8113 dlname=$soname
8114 fi
8115
8116 lib="$output_objdir/$realname"
8117 linknames=
8118 for link
8119 do
8120 func_append linknames " $link"
8121 done
8122
8123 # Use standard objects if they are pic
8124 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
8125 test "X$libobjs" = "X " && libobjs=
8126
8127 delfiles=
8128 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8129 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
8130 export_symbols="$output_objdir/$libname.uexp"
8131 func_append delfiles " $export_symbols"
8132 fi
8133
8134 orig_export_symbols=
8135 case $host_os in
8136 cygwin* | mingw* | cegcc*)
8137 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
8138 # exporting using user supplied symfile
8139 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
8140 # and it's NOT already a .def file. Must figure out
8141 # which of the given symbols are data symbols and tag
8142 # them as such. So, trigger use of export_symbols_cmds.
8143 # export_symbols gets reassigned inside the "prepare
8144 # the list of exported symbols" if statement, so the
8145 # include_expsyms logic still works.
8146 orig_export_symbols="$export_symbols"
8147 export_symbols=
8148 always_export_symbols=yes
8149 fi
8150 fi
8151 ;;
8152 esac
8153
8154 # Prepare the list of exported symbols
8155 if test -z "$export_symbols"; then
8156 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8157 func_verbose "generating symbol list for \`$libname.la'"
8158 export_symbols="$output_objdir/$libname.exp"
8159 $opt_dry_run || $RM $export_symbols
8160 cmds=$export_symbols_cmds
8161 save_ifs="$IFS"; IFS='~'
8162 for cmd1 in $cmds; do
8163 IFS="$save_ifs"
8164 # Take the normal branch if the nm_file_list_spec branch
8165 # doesn't work or if tool conversion is not needed.
8166 case $nm_file_list_spec~$to_tool_file_cmd in
8167 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
8168 try_normal_branch=yes
8169 eval cmd=\"$cmd1\"
8170 func_len " $cmd"
8171 len=$func_len_result
8172 ;;
8173 *)
8174 try_normal_branch=no
8175 ;;
8176 esac
8177 if test "$try_normal_branch" = yes \
8178 && { test "$len" -lt "$max_cmd_len" \
8179 || test "$max_cmd_len" -le -1; }
8180 then
8181 func_show_eval "$cmd" 'exit $?'
8182 skipped_export=false
8183 elif test -n "$nm_file_list_spec"; then
8184 func_basename "$output"
8185 output_la=$func_basename_result
8186 save_libobjs=$libobjs
8187 save_output=$output
8188 output=${output_objdir}/${output_la}.nm
8189 func_to_tool_file "$output"
8190 libobjs=$nm_file_list_spec$func_to_tool_file_result
8191 func_append delfiles " $output"
8192 func_verbose "creating $NM input file list: $output"
8193 for obj in $save_libobjs; do
8194 func_to_tool_file "$obj"
8195 $ECHO "$func_to_tool_file_result"
8196 done > "$output"
8197 eval cmd=\"$cmd1\"
8198 func_show_eval "$cmd" 'exit $?'
8199 output=$save_output
8200 libobjs=$save_libobjs
8201 skipped_export=false
8202 else
8203 # The command line is too long to execute in one step.
8204 func_verbose "using reloadable object file for export list..."
8205 skipped_export=:
8206 # Break out early, otherwise skipped_export may be
8207 # set to false by a later but shorter cmd.
8208 break
8209 fi
8210 done
8211 IFS="$save_ifs"
8212 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
8213 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8214 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
8215 fi
8216 fi
8217 fi
8218
8219 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8220 tmp_export_symbols="$export_symbols"
8221 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8222 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
8223 fi
8224
8225 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
8226 # The given exports_symbols file has to be filtered, so filter it.
8227 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
8228 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8229 # 's' commands which not all seds can handle. GNU sed should be fine
8230 # though. Also, the filter scales superlinearly with the number of
8231 # global variables. join(1) would be nice here, but unfortunately
8232 # isn't a blessed tool.
8233 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
8234 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
8235 export_symbols=$output_objdir/$libname.def
8236 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8237 fi
8238
8239 tmp_deplibs=
8240 for test_deplib in $deplibs; do
8241 case " $convenience " in
8242 *" $test_deplib "*) ;;
8243 *)
8244 func_append tmp_deplibs " $test_deplib"
8245 ;;
8246 esac
8247 done
8248 deplibs="$tmp_deplibs"
8249
8250 if test -n "$convenience"; then
8251 if test -n "$whole_archive_flag_spec" &&
8252 test "$compiler_needs_object" = yes &&
8253 test -z "$libobjs"; then
8254 # extract the archives, so we have objects to list.
8255 # TODO: could optimize this to just extract one archive.
8256 whole_archive_flag_spec=
8257 fi
8258 if test -n "$whole_archive_flag_spec"; then
8259 save_libobjs=$libobjs
8260 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
8261 test "X$libobjs" = "X " && libobjs=
8262 else
8263 gentop="$output_objdir/${outputname}x"
8264 func_append generated " $gentop"
8265
8266 func_extract_archives $gentop $convenience
8267 func_append libobjs " $func_extract_archives_result"
8268 test "X$libobjs" = "X " && libobjs=
8269 fi
8270 fi
8271
8272 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
8273 eval flag=\"$thread_safe_flag_spec\"
8274 func_append linker_flags " $flag"
8275 fi
8276
8277 # Make a backup of the uninstalled library when relinking
8278 if test "$opt_mode" = relink; then
8279 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
8280 fi
8281
8282 # Do each of the archive commands.
8283 if test "$module" = yes && test -n "$module_cmds" ; then
8284 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8285 eval test_cmds=\"$module_expsym_cmds\"
8286 cmds=$module_expsym_cmds
8287 else
8288 eval test_cmds=\"$module_cmds\"
8289 cmds=$module_cmds
8290 fi
8291 else
8292 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8293 eval test_cmds=\"$archive_expsym_cmds\"
8294 cmds=$archive_expsym_cmds
8295 else
8296 eval test_cmds=\"$archive_cmds\"
8297 cmds=$archive_cmds
8298 fi
8299 fi
8300
8301 if test "X$skipped_export" != "X:" &&
8302 func_len " $test_cmds" &&
8303 len=$func_len_result &&
8304 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8305 :
8306 else
8307 # The command line is too long to link in one step, link piecewise
8308 # or, if using GNU ld and skipped_export is not :, use a linker
8309 # script.
8310
8311 # Save the value of $output and $libobjs because we want to
8312 # use them later. If we have whole_archive_flag_spec, we
8313 # want to use save_libobjs as it was before
8314 # whole_archive_flag_spec was expanded, because we can't
8315 # assume the linker understands whole_archive_flag_spec.
8316 # This may have to be revisited, in case too many
8317 # convenience libraries get linked in and end up exceeding
8318 # the spec.
8319 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
8320 save_libobjs=$libobjs
8321 fi
8322 save_output=$output
8323 func_basename "$output"
8324 output_la=$func_basename_result
8325
8326 # Clear the reloadable object creation command queue and
8327 # initialize k to one.
8328 test_cmds=
8329 concat_cmds=
8330 objlist=
8331 last_robj=
8332 k=1
8333
8334 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8335 output=${output_objdir}/${output_la}.lnkscript
8336 func_verbose "creating GNU ld script: $output"
8337 echo 'INPUT (' > $output
8338 for obj in $save_libobjs
8339 do
8340 func_to_tool_file "$obj"
8341 $ECHO "$func_to_tool_file_result" >> $output
8342 done
8343 echo ')' >> $output
8344 func_append delfiles " $output"
8345 func_to_tool_file "$output"
8346 output=$func_to_tool_file_result
8347 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
8348 output=${output_objdir}/${output_la}.lnk
8349 func_verbose "creating linker input file list: $output"
8350 : > $output
8351 set x $save_libobjs
8352 shift
8353 firstobj=
8354 if test "$compiler_needs_object" = yes; then
8355 firstobj="$1 "
8356 shift
8357 fi
8358 for obj
8359 do
8360 func_to_tool_file "$obj"
8361 $ECHO "$func_to_tool_file_result" >> $output
8362 done
8363 func_append delfiles " $output"
8364 func_to_tool_file "$output"
8365 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
8366 else
8367 if test -n "$save_libobjs"; then
8368 func_verbose "creating reloadable object files..."
8369 output=$output_objdir/$output_la-${k}.$objext
8370 eval test_cmds=\"$reload_cmds\"
8371 func_len " $test_cmds"
8372 len0=$func_len_result
8373 len=$len0
8374
8375 # Loop over the list of objects to be linked.
8376 for obj in $save_libobjs
8377 do
8378 func_len " $obj"
8379 func_arith $len + $func_len_result
8380 len=$func_arith_result
8381 if test "X$objlist" = X ||
8382 test "$len" -lt "$max_cmd_len"; then
8383 func_append objlist " $obj"
8384 else
8385 # The command $test_cmds is almost too long, add a
8386 # command to the queue.
8387 if test "$k" -eq 1 ; then
8388 # The first file doesn't have a previous command to add.
8389 reload_objs=$objlist
8390 eval concat_cmds=\"$reload_cmds\"
8391 else
8392 # All subsequent reloadable object files will link in
8393 # the last one created.
8394 reload_objs="$objlist $last_robj"
8395 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
8396 fi
8397 last_robj=$output_objdir/$output_la-${k}.$objext
8398 func_arith $k + 1
8399 k=$func_arith_result
8400 output=$output_objdir/$output_la-${k}.$objext
8401 objlist=" $obj"
8402 func_len " $last_robj"
8403 func_arith $len0 + $func_len_result
8404 len=$func_arith_result
8405 fi
8406 done
8407 # Handle the remaining objects by creating one last
8408 # reloadable object file. All subsequent reloadable object
8409 # files will link in the last one created.
8410 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8411 reload_objs="$objlist $last_robj"
8412 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
8413 if test -n "$last_robj"; then
8414 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
8415 fi
8416 func_append delfiles " $output"
8417
8418 else
8419 output=
8420 fi
8421
8422 if ${skipped_export-false}; then
8423 func_verbose "generating symbol list for \`$libname.la'"
8424 export_symbols="$output_objdir/$libname.exp"
8425 $opt_dry_run || $RM $export_symbols
8426 libobjs=$output
8427 # Append the command to create the export file.
8428 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8429 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
8430 if test -n "$last_robj"; then
8431 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
8432 fi
8433 fi
8434
8435 test -n "$save_libobjs" &&
8436 func_verbose "creating a temporary reloadable object file: $output"
8437
8438 # Loop through the commands generated above and execute them.
8439 save_ifs="$IFS"; IFS='~'
8440 for cmd in $concat_cmds; do
8441 IFS="$save_ifs"
8442 $opt_silent || {
8443 func_quote_for_expand "$cmd"
8444 eval "func_echo $func_quote_for_expand_result"
8445 }
8446 $opt_dry_run || eval "$cmd" || {
8447 lt_exit=$?
8448
8449 # Restore the uninstalled library and exit
8450 if test "$opt_mode" = relink; then
8451 ( cd "$output_objdir" && \
8452 $RM "${realname}T" && \
8453 $MV "${realname}U" "$realname" )
8454 fi
8455
8456 exit $lt_exit
8457 }
8458 done
8459 IFS="$save_ifs"
8460
8461 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
8462 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8463 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
8464 fi
8465 fi
8466
8467 if ${skipped_export-false}; then
8468 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8469 tmp_export_symbols="$export_symbols"
8470 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8471 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
8472 fi
8473
8474 if test -n "$orig_export_symbols"; then
8475 # The given exports_symbols file has to be filtered, so filter it.
8476 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
8477 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8478 # 's' commands which not all seds can handle. GNU sed should be fine
8479 # though. Also, the filter scales superlinearly with the number of
8480 # global variables. join(1) would be nice here, but unfortunately
8481 # isn't a blessed tool.
8482 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
8483 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
8484 export_symbols=$output_objdir/$libname.def
8485 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8486 fi
8487 fi
8488
8489 libobjs=$output
8490 # Restore the value of output.
8491 output=$save_output
8492
8493 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
8494 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
8495 test "X$libobjs" = "X " && libobjs=
8496 fi
8497 # Expand the library linking commands again to reset the
8498 # value of $libobjs for piecewise linking.
8499
8500 # Do each of the archive commands.
8501 if test "$module" = yes && test -n "$module_cmds" ; then
8502 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8503 cmds=$module_expsym_cmds
8504 else
8505 cmds=$module_cmds
8506 fi
8507 else
8508 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8509 cmds=$archive_expsym_cmds
8510 else
8511 cmds=$archive_cmds
8512 fi
8513 fi
8514 fi
8515
8516 if test -n "$delfiles"; then
8517 # Append the command to remove temporary files to $cmds.
8518 eval cmds=\"\$cmds~\$RM $delfiles\"
8519 fi
8520
8521 # Add any objects from preloaded convenience libraries
8522 if test -n "$dlprefiles"; then
8523 gentop="$output_objdir/${outputname}x"
8524 func_append generated " $gentop"
8525
8526 func_extract_archives $gentop $dlprefiles
8527 func_append libobjs " $func_extract_archives_result"
8528 test "X$libobjs" = "X " && libobjs=
8529 fi
8530
8531 save_ifs="$IFS"; IFS='~'
8532 for cmd in $cmds; do
8533 IFS="$save_ifs"
8534 eval cmd=\"$cmd\"
8535 $opt_silent || {
8536 func_quote_for_expand "$cmd"
8537 eval "func_echo $func_quote_for_expand_result"
8538 }
8539 $opt_dry_run || eval "$cmd" || {
8540 lt_exit=$?
8541
8542 # Restore the uninstalled library and exit
8543 if test "$opt_mode" = relink; then
8544 ( cd "$output_objdir" && \
8545 $RM "${realname}T" && \
8546 $MV "${realname}U" "$realname" )
8547 fi
8548
8549 exit $lt_exit
8550 }
8551 done
8552 IFS="$save_ifs"
8553
8554 # Restore the uninstalled library and exit
8555 if test "$opt_mode" = relink; then
8556 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
8557
8558 if test -n "$convenience"; then
8559 if test -z "$whole_archive_flag_spec"; then
8560 func_show_eval '${RM}r "$gentop"'
8561 fi
8562 fi
8563
8564 exit $EXIT_SUCCESS
8565 fi
8566
8567 # Create links to the real library.
8568 for linkname in $linknames; do
8569 if test "$realname" != "$linkname"; then
8570 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
8571 fi
8572 done
8573
8574 # If -module or -export-dynamic was specified, set the dlname.
8575 if test "$module" = yes || test "$export_dynamic" = yes; then
8576 # On all known operating systems, these are identical.
8577 dlname="$soname"
8578 fi
8579 fi
8580 ;;
8581
8582 obj)
8583 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8584 func_warning "\`-dlopen' is ignored for objects"
8585 fi
8586
8587 case " $deplibs" in
8588 *\ -l* | *\ -L*)
8589 func_warning "\`-l' and \`-L' are ignored for objects" ;;
8590 esac
8591
8592 test -n "$rpath" && \
8593 func_warning "\`-rpath' is ignored for objects"
8594
8595 test -n "$xrpath" && \
8596 func_warning "\`-R' is ignored for objects"
8597
8598 test -n "$vinfo" && \
8599 func_warning "\`-version-info' is ignored for objects"
8600
8601 test -n "$release" && \
8602 func_warning "\`-release' is ignored for objects"
8603
8604 case $output in
8605 *.lo)
8606 test -n "$objs$old_deplibs" && \
8607 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
8608
8609 libobj=$output
8610 func_lo2o "$libobj"
8611 obj=$func_lo2o_result
8612 ;;
8613 *)
8614 libobj=
8615 obj="$output"
8616 ;;
8617 esac
8618
8619 # Delete the old objects.
8620 $opt_dry_run || $RM $obj $libobj
8621
8622 # Objects from convenience libraries. This assumes
8623 # single-version convenience libraries. Whenever we create
8624 # different ones for PIC/non-PIC, this we'll have to duplicate
8625 # the extraction.
8626 reload_conv_objs=
8627 gentop=
8628 # reload_cmds runs $LD directly, so let us get rid of
8629 # -Wl from whole_archive_flag_spec and hope we can get by with
8630 # turning comma into space..
8631 wl=
8632
8633 if test -n "$convenience"; then
8634 if test -n "$whole_archive_flag_spec"; then
8635 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8636 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
8637 else
8638 gentop="$output_objdir/${obj}x"
8639 func_append generated " $gentop"
8640
8641 func_extract_archives $gentop $convenience
8642 reload_conv_objs="$reload_objs $func_extract_archives_result"
8643 fi
8644 fi
8645
8646 # If we're not building shared, we need to use non_pic_objs
8647 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
8648
8649 # Create the old-style object.
8650 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8651
8652 output="$obj"
8653 func_execute_cmds "$reload_cmds" 'exit $?'
8654
8655 # Exit if we aren't doing a library object file.
8656 if test -z "$libobj"; then
8657 if test -n "$gentop"; then
8658 func_show_eval '${RM}r "$gentop"'
8659 fi
8660
8661 exit $EXIT_SUCCESS
8662 fi
8663
8664 if test "$build_libtool_libs" != yes; then
8665 if test -n "$gentop"; then
8666 func_show_eval '${RM}r "$gentop"'
8667 fi
8668
8669 # Create an invalid libtool object if no PIC, so that we don't
8670 # accidentally link it into a program.
8671 # $show "echo timestamp > $libobj"
8672 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
8673 exit $EXIT_SUCCESS
8674 fi
8675
8676 if test -n "$pic_flag" || test "$pic_mode" != default; then
8677 # Only do commands if we really have different PIC objects.
8678 reload_objs="$libobjs $reload_conv_objs"
8679 output="$libobj"
8680 func_execute_cmds "$reload_cmds" 'exit $?'
8681 fi
8682
8683 if test -n "$gentop"; then
8684 func_show_eval '${RM}r "$gentop"'
8685 fi
8686
8687 exit $EXIT_SUCCESS
8688 ;;
8689
8690 prog)
8691 case $host in
8692 *cygwin*) func_stripname '' '.exe' "$output"
8693 output=$func_stripname_result.exe;;
8694 esac
8695 test -n "$vinfo" && \
8696 func_warning "\`-version-info' is ignored for programs"
8697
8698 test -n "$release" && \
8699 func_warning "\`-release' is ignored for programs"
8700
8701 test "$preload" = yes \
8702 && test "$dlopen_support" = unknown \
8703 && test "$dlopen_self" = unknown \
8704 && test "$dlopen_self_static" = unknown && \
8705 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
8706
8707 case $host in
8708 *-*-rhapsody* | *-*-darwin1.[012])
8709 # On Rhapsody replace the C library is the System framework
8710 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8711 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
8712 ;;
8713 esac
8714
8715 case $host in
8716 *-*-darwin*)
8717 # Don't allow lazy linking, it breaks C++ global constructors
8718 # But is supposedly fixed on 10.4 or later (yay!).
8719 if test "$tagname" = CXX ; then
8720 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8721 10.[0123])
8722 func_append compile_command " ${wl}-bind_at_load"
8723 func_append finalize_command " ${wl}-bind_at_load"
8724 ;;
8725 esac
8726 fi
8727 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
8728 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8729 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8730 ;;
8731 esac
8732
8733
8734 # move library search paths that coincide with paths to not yet
8735 # installed libraries to the beginning of the library search list
8736 new_libs=
8737 for path in $notinst_path; do
8738 case " $new_libs " in
8739 *" -L$path/$objdir "*) ;;
8740 *)
8741 case " $compile_deplibs " in
8742 *" -L$path/$objdir "*)
8743 func_append new_libs " -L$path/$objdir" ;;
8744 esac
8745 ;;
8746 esac
8747 done
8748 for deplib in $compile_deplibs; do
8749 case $deplib in
8750 -L*)
8751 case " $new_libs " in
8752 *" $deplib "*) ;;
8753 *) func_append new_libs " $deplib" ;;
8754 esac
8755 ;;
8756 *) func_append new_libs " $deplib" ;;
8757 esac
8758 done
8759 compile_deplibs="$new_libs"
8760
8761
8762 func_append compile_command " $compile_deplibs"
8763 func_append finalize_command " $finalize_deplibs"
8764
8765 if test -n "$rpath$xrpath"; then
8766 # If the user specified any rpath flags, then add them.
8767 for libdir in $rpath $xrpath; do
8768 # This is the magic to use -rpath.
8769 case "$finalize_rpath " in
8770 *" $libdir "*) ;;
8771 *) func_append finalize_rpath " $libdir" ;;
8772 esac
8773 done
8774 fi
8775
8776 # Now hardcode the library paths
8777 rpath=
8778 hardcode_libdirs=
8779 for libdir in $compile_rpath $finalize_rpath; do
8780 if test -n "$hardcode_libdir_flag_spec"; then
8781 if test -n "$hardcode_libdir_separator"; then
8782 if test -z "$hardcode_libdirs"; then
8783 hardcode_libdirs="$libdir"
8784 else
8785 # Just accumulate the unique libdirs.
8786 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
8787 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
8788 ;;
8789 *)
8790 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
8791 ;;
8792 esac
8793 fi
8794 else
8795 eval flag=\"$hardcode_libdir_flag_spec\"
8796 func_append rpath " $flag"
8797 fi
8798 elif test -n "$runpath_var"; then
8799 case "$perm_rpath " in
8800 *" $libdir "*) ;;
8801 *) func_append perm_rpath " $libdir" ;;
8802 esac
8803 fi
8804 case $host in
8805 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8806 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
8807 case :$dllsearchpath: in
8808 *":$libdir:"*) ;;
8809 ::) dllsearchpath=$libdir;;
8810 *) func_append dllsearchpath ":$libdir";;
8811 esac
8812 case :$dllsearchpath: in
8813 *":$testbindir:"*) ;;
8814 ::) dllsearchpath=$testbindir;;
8815 *) func_append dllsearchpath ":$testbindir";;
8816 esac
8817 ;;
8818 esac
8819 done
8820 # Substitute the hardcoded libdirs into the rpath.
8821 if test -n "$hardcode_libdir_separator" &&
8822 test -n "$hardcode_libdirs"; then
8823 libdir="$hardcode_libdirs"
8824 eval rpath=\" $hardcode_libdir_flag_spec\"
8825 fi
8826 compile_rpath="$rpath"
8827
8828 rpath=
8829 hardcode_libdirs=
8830 for libdir in $finalize_rpath; do
8831 if test -n "$hardcode_libdir_flag_spec"; then
8832 if test -n "$hardcode_libdir_separator"; then
8833 if test -z "$hardcode_libdirs"; then
8834 hardcode_libdirs="$libdir"
8835 else
8836 # Just accumulate the unique libdirs.
8837 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
8838 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
8839 ;;
8840 *)
8841 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
8842 ;;
8843 esac
8844 fi
8845 else
8846 eval flag=\"$hardcode_libdir_flag_spec\"
8847 func_append rpath " $flag"
8848 fi
8849 elif test -n "$runpath_var"; then
8850 case "$finalize_perm_rpath " in
8851 *" $libdir "*) ;;
8852 *) func_append finalize_perm_rpath " $libdir" ;;
8853 esac
8854 fi
8855 done
8856 # Substitute the hardcoded libdirs into the rpath.
8857 if test -n "$hardcode_libdir_separator" &&
8858 test -n "$hardcode_libdirs"; then
8859 libdir="$hardcode_libdirs"
8860 eval rpath=\" $hardcode_libdir_flag_spec\"
8861 fi
8862 finalize_rpath="$rpath"
8863
8864 if test -n "$libobjs" && test "$build_old_libs" = yes; then
8865 # Transform all the library objects into standard objects.
8866 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
8867 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
8868 fi
8869
8870 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
8871
8872 # template prelinking step
8873 if test -n "$prelink_cmds"; then
8874 func_execute_cmds "$prelink_cmds" 'exit $?'
8875 fi
8876
8877 wrappers_required=yes
8878 case $host in
8879 *cegcc* | *mingw32ce*)
8880 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8881 wrappers_required=no
8882 ;;
8883 *cygwin* | *mingw* )
8884 if test "$build_libtool_libs" != yes; then
8885 wrappers_required=no
8886 fi
8887 ;;
8888 *)
8889 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8890 wrappers_required=no
8891 fi
8892 ;;
8893 esac
8894 if test "$wrappers_required" = no; then
8895 # Replace the output file specification.
8896 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8897 link_command="$compile_command$compile_rpath"
8898
8899 # We have no uninstalled library dependencies, so finalize right now.
8900 exit_status=0
8901 func_show_eval "$link_command" 'exit_status=$?'
8902
8903 if test -n "$postlink_cmds"; then
8904 func_to_tool_file "$output"
8905 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8906 func_execute_cmds "$postlink_cmds" 'exit $?'
8907 fi
8908
8909 # Delete the generated files.
8910 if test -f "$output_objdir/${outputname}S.${objext}"; then
8911 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
8912 fi
8913
8914 exit $exit_status
8915 fi
8916
8917 if test -n "$compile_shlibpath$finalize_shlibpath"; then
8918 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
8919 fi
8920 if test -n "$finalize_shlibpath"; then
8921 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
8922 fi
8923
8924 compile_var=
8925 finalize_var=
8926 if test -n "$runpath_var"; then
8927 if test -n "$perm_rpath"; then
8928 # We should set the runpath_var.
8929 rpath=
8930 for dir in $perm_rpath; do
8931 func_append rpath "$dir:"
8932 done
8933 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
8934 fi
8935 if test -n "$finalize_perm_rpath"; then
8936 # We should set the runpath_var.
8937 rpath=
8938 for dir in $finalize_perm_rpath; do
8939 func_append rpath "$dir:"
8940 done
8941 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
8942 fi
8943 fi
8944
8945 if test "$no_install" = yes; then
8946 # We don't need to create a wrapper script.
8947 link_command="$compile_var$compile_command$compile_rpath"
8948 # Replace the output file specification.
8949 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8950 # Delete the old output file.
8951 $opt_dry_run || $RM $output
8952 # Link the executable and exit
8953 func_show_eval "$link_command" 'exit $?'
8954
8955 if test -n "$postlink_cmds"; then
8956 func_to_tool_file "$output"
8957 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8958 func_execute_cmds "$postlink_cmds" 'exit $?'
8959 fi
8960
8961 exit $EXIT_SUCCESS
8962 fi
8963
8964 if test "$hardcode_action" = relink; then
8965 # Fast installation is not supported
8966 link_command="$compile_var$compile_command$compile_rpath"
8967 relink_command="$finalize_var$finalize_command$finalize_rpath"
8968
8969 func_warning "this platform does not like uninstalled shared libraries"
8970 func_warning "\`$output' will be relinked during installation"
8971 else
8972 if test "$fast_install" != no; then
8973 link_command="$finalize_var$compile_command$finalize_rpath"
8974 if test "$fast_install" = yes; then
8975 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
8976 else
8977 # fast_install is set to needless
8978 relink_command=
8979 fi
8980 else
8981 link_command="$compile_var$compile_command$compile_rpath"
8982 relink_command="$finalize_var$finalize_command$finalize_rpath"
8983 fi
8984 fi
8985
8986 # Replace the output file specification.
8987 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
8988
8989 # Delete the old output files.
8990 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
8991
8992 func_show_eval "$link_command" 'exit $?'
8993
8994 if test -n "$postlink_cmds"; then
8995 func_to_tool_file "$output_objdir/$outputname"
8996 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8997 func_execute_cmds "$postlink_cmds" 'exit $?'
8998 fi
8999
9000 # Now create the wrapper script.
9001 func_verbose "creating $output"
9002
9003 # Quote the relink command for shipping.
9004 if test -n "$relink_command"; then
9005 # Preserve any variables that may affect compiler behavior
9006 for var in $variables_saved_for_relink; do
9007 if eval test -z \"\${$var+set}\"; then
9008 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
9009 elif eval var_value=\$$var; test -z "$var_value"; then
9010 relink_command="$var=; export $var; $relink_command"
9011 else
9012 func_quote_for_eval "$var_value"
9013 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
9014 fi
9015 done
9016 relink_command="(cd `pwd`; $relink_command)"
9017 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9018 fi
9019
9020 # Only actually do things if not in dry run mode.
9021 $opt_dry_run || {
9022 # win32 will think the script is a binary if it has
9023 # a .exe suffix, so we strip it off here.
9024 case $output in
9025 *.exe) func_stripname '' '.exe' "$output"
9026 output=$func_stripname_result ;;
9027 esac
9028 # test for cygwin because mv fails w/o .exe extensions
9029 case $host in
9030 *cygwin*)
9031 exeext=.exe
9032 func_stripname '' '.exe' "$outputname"
9033 outputname=$func_stripname_result ;;
9034 *) exeext= ;;
9035 esac
9036 case $host in
9037 *cygwin* | *mingw* )
9038 func_dirname_and_basename "$output" "" "."
9039 output_name=$func_basename_result
9040 output_path=$func_dirname_result
9041 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9042 cwrapper="$output_path/$output_name.exe"
9043 $RM $cwrappersource $cwrapper
9044 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
9045
9046 func_emit_cwrapperexe_src > $cwrappersource
9047
9048 # The wrapper executable is built using the $host compiler,
9049 # because it contains $host paths and files. If cross-
9050 # compiling, it, like the target executable, must be
9051 # executed on the $host or under an emulation environment.
9052 $opt_dry_run || {
9053 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
9054 $STRIP $cwrapper
9055 }
9056
9057 # Now, create the wrapper script for func_source use:
9058 func_ltwrapper_scriptname $cwrapper
9059 $RM $func_ltwrapper_scriptname_result
9060 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
9061 $opt_dry_run || {
9062 # note: this script will not be executed, so do not chmod.
9063 if test "x$build" = "x$host" ; then
9064 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
9065 else
9066 func_emit_wrapper no > $func_ltwrapper_scriptname_result
9067 fi
9068 }
9069 ;;
9070 * )
9071 $RM $output
9072 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
9073
9074 func_emit_wrapper no > $output
9075 chmod +x $output
9076 ;;
9077 esac
9078 }
9079 exit $EXIT_SUCCESS
9080 ;;
9081 esac
9082
9083 # See if we need to build an old-fashioned archive.
9084 for oldlib in $oldlibs; do
9085
9086 if test "$build_libtool_libs" = convenience; then
9087 oldobjs="$libobjs_save $symfileobj"
9088 addlibs="$convenience"
9089 build_libtool_libs=no
9090 else
9091 if test "$build_libtool_libs" = module; then
9092 oldobjs="$libobjs_save"
9093 build_libtool_libs=no
9094 else
9095 oldobjs="$old_deplibs $non_pic_objects"
9096 if test "$preload" = yes && test -f "$symfileobj"; then
9097 func_append oldobjs " $symfileobj"
9098 fi
9099 fi
9100 addlibs="$old_convenience"
9101 fi
9102
9103 if test -n "$addlibs"; then
9104 gentop="$output_objdir/${outputname}x"
9105 func_append generated " $gentop"
9106
9107 func_extract_archives $gentop $addlibs
9108 func_append oldobjs " $func_extract_archives_result"
9109 fi
9110
9111 # Do each command in the archive commands.
9112 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
9113 cmds=$old_archive_from_new_cmds
9114 else
9115
9116 # Add any objects from preloaded convenience libraries
9117 if test -n "$dlprefiles"; then
9118 gentop="$output_objdir/${outputname}x"
9119 func_append generated " $gentop"
9120
9121 func_extract_archives $gentop $dlprefiles
9122 func_append oldobjs " $func_extract_archives_result"
9123 fi
9124
9125 # POSIX demands no paths to be encoded in archives. We have
9126 # to avoid creating archives with duplicate basenames if we
9127 # might have to extract them afterwards, e.g., when creating a
9128 # static archive out of a convenience library, or when linking
9129 # the entirety of a libtool archive into another (currently
9130 # not supported by libtool).
9131 if (for obj in $oldobjs
9132 do
9133 func_basename "$obj"
9134 $ECHO "$func_basename_result"
9135 done | sort | sort -uc >/dev/null 2>&1); then
9136 :
9137 else
9138 echo "copying selected object files to avoid basename conflicts..."
9139 gentop="$output_objdir/${outputname}x"
9140 func_append generated " $gentop"
9141 func_mkdir_p "$gentop"
9142 save_oldobjs=$oldobjs
9143 oldobjs=
9144 counter=1
9145 for obj in $save_oldobjs
9146 do
9147 func_basename "$obj"
9148 objbase="$func_basename_result"
9149 case " $oldobjs " in
9150 " ") oldobjs=$obj ;;
9151 *[\ /]"$objbase "*)
9152 while :; do
9153 # Make sure we don't pick an alternate name that also
9154 # overlaps.
9155 newobj=lt$counter-$objbase
9156 func_arith $counter + 1
9157 counter=$func_arith_result
9158 case " $oldobjs " in
9159 *[\ /]"$newobj "*) ;;
9160 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
9161 esac
9162 done
9163 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
9164 func_append oldobjs " $gentop/$newobj"
9165 ;;
9166 *) func_append oldobjs " $obj" ;;
9167 esac
9168 done
9169 fi
9170 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
9171 tool_oldlib=$func_to_tool_file_result
9172 eval cmds=\"$old_archive_cmds\"
9173
9174 func_len " $cmds"
9175 len=$func_len_result
9176 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9177 cmds=$old_archive_cmds
9178 elif test -n "$archiver_list_spec"; then
9179 func_verbose "using command file archive linking..."
9180 for obj in $oldobjs
9181 do
9182 func_to_tool_file "$obj"
9183 $ECHO "$func_to_tool_file_result"
9184 done > $output_objdir/$libname.libcmd
9185 func_to_tool_file "$output_objdir/$libname.libcmd"
9186 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
9187 cmds=$old_archive_cmds
9188 else
9189 # the command line is too long to link in one step, link in parts
9190 func_verbose "using piecewise archive linking..."
9191 save_RANLIB=$RANLIB
9192 RANLIB=:
9193 objlist=
9194 concat_cmds=
9195 save_oldobjs=$oldobjs
9196 oldobjs=
9197 # Is there a better way of finding the last object in the list?
9198 for obj in $save_oldobjs
9199 do
9200 last_oldobj=$obj
9201 done
9202 eval test_cmds=\"$old_archive_cmds\"
9203 func_len " $test_cmds"
9204 len0=$func_len_result
9205 len=$len0
9206 for obj in $save_oldobjs
9207 do
9208 func_len " $obj"
9209 func_arith $len + $func_len_result
9210 len=$func_arith_result
9211 func_append objlist " $obj"
9212 if test "$len" -lt "$max_cmd_len"; then
9213 :
9214 else
9215 # the above command should be used before it gets too long
9216 oldobjs=$objlist
9217 if test "$obj" = "$last_oldobj" ; then
9218 RANLIB=$save_RANLIB
9219 fi
9220 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9221 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
9222 objlist=
9223 len=$len0
9224 fi
9225 done
9226 RANLIB=$save_RANLIB
9227 oldobjs=$objlist
9228 if test "X$oldobjs" = "X" ; then
9229 eval cmds=\"\$concat_cmds\"
9230 else
9231 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
9232 fi
9233 fi
9234 fi
9235 func_execute_cmds "$cmds" 'exit $?'
9236 done
9237
9238 test -n "$generated" && \
9239 func_show_eval "${RM}r$generated"
9240
9241 # Now create the libtool archive.
9242 case $output in
9243 *.la)
9244 old_library=
9245 test "$build_old_libs" = yes && old_library="$libname.$libext"
9246 func_verbose "creating $output"
9247
9248 # Preserve any variables that may affect compiler behavior
9249 for var in $variables_saved_for_relink; do
9250 if eval test -z \"\${$var+set}\"; then
9251 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
9252 elif eval var_value=\$$var; test -z "$var_value"; then
9253 relink_command="$var=; export $var; $relink_command"
9254 else
9255 func_quote_for_eval "$var_value"
9256 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
9257 fi
9258 done
9259 # Quote the link command for shipping.
9260 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
9261 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9262 if test "$hardcode_automatic" = yes ; then
9263 relink_command=
9264 fi
9265
9266 # Only create the output if not a dry run.
9267 $opt_dry_run || {
9268 for installed in no yes; do
9269 if test "$installed" = yes; then
9270 if test -z "$install_libdir"; then
9271 break
9272 fi
9273 output="$output_objdir/$outputname"i
9274 # Replace all uninstalled libtool libraries with the installed ones
9275 newdependency_libs=
9276 for deplib in $dependency_libs; do
9277 case $deplib in
9278 *.la)
9279 func_basename "$deplib"
9280 name="$func_basename_result"
9281 func_resolve_sysroot "$deplib"
9282 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
9283 test -z "$libdir" && \
9284 func_fatal_error "\`$deplib' is not a valid libtool archive"
9285 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
9286 ;;
9287 -L*)
9288 func_stripname -L '' "$deplib"
9289 func_replace_sysroot "$func_stripname_result"
9290 func_append newdependency_libs " -L$func_replace_sysroot_result"
9291 ;;
9292 -R*)
9293 func_stripname -R '' "$deplib"
9294 func_replace_sysroot "$func_stripname_result"
9295 func_append newdependency_libs " -R$func_replace_sysroot_result"
9296 ;;
9297 *) func_append newdependency_libs " $deplib" ;;
9298 esac
9299 done
9300 dependency_libs="$newdependency_libs"
9301 newdlfiles=
9302
9303 for lib in $dlfiles; do
9304 case $lib in
9305 *.la)
9306 func_basename "$lib"
9307 name="$func_basename_result"
9308 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9309 test -z "$libdir" && \
9310 func_fatal_error "\`$lib' is not a valid libtool archive"
9311 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
9312 ;;
9313 *) func_append newdlfiles " $lib" ;;
9314 esac
9315 done
9316 dlfiles="$newdlfiles"
9317 newdlprefiles=
9318 for lib in $dlprefiles; do
9319 case $lib in
9320 *.la)
9321 # Only pass preopened files to the pseudo-archive (for
9322 # eventual linking with the app. that links it) if we
9323 # didn't already link the preopened objects directly into
9324 # the library:
9325 func_basename "$lib"
9326 name="$func_basename_result"
9327 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9328 test -z "$libdir" && \
9329 func_fatal_error "\`$lib' is not a valid libtool archive"
9330 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
9331 ;;
9332 esac
9333 done
9334 dlprefiles="$newdlprefiles"
9335 else
9336 newdlfiles=
9337 for lib in $dlfiles; do
9338 case $lib in
9339 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9340 *) abs=`pwd`"/$lib" ;;
9341 esac
9342 func_append newdlfiles " $abs"
9343 done
9344 dlfiles="$newdlfiles"
9345 newdlprefiles=
9346 for lib in $dlprefiles; do
9347 case $lib in
9348 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9349 *) abs=`pwd`"/$lib" ;;
9350 esac
9351 func_append newdlprefiles " $abs"
9352 done
9353 dlprefiles="$newdlprefiles"
9354 fi
9355 $RM $output
9356 # place dlname in correct position for cygwin
9357 # In fact, it would be nice if we could use this code for all target
9358 # systems that can't hard-code library paths into their executables
9359 # and that have no shared library path variable independent of PATH,
9360 # but it turns out we can't easily determine that from inspecting
9361 # libtool variables, so we have to hard-code the OSs to which it
9362 # applies here; at the moment, that means platforms that use the PE
9363 # object format with DLL files. See the long comment at the top of
9364 # tests/bindir.at for full details.
9365 tdlname=$dlname
9366 case $host,$output,$installed,$module,$dlname in
9367 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
9368 # If a -bindir argument was supplied, place the dll there.
9369 if test "x$bindir" != x ;
9370 then
9371 func_relative_path "$install_libdir" "$bindir"
9372 tdlname=$func_relative_path_result$dlname
9373 else
9374 # Otherwise fall back on heuristic.
9375 tdlname=../bin/$dlname
9376 fi
9377 ;;
9378 esac
9379 $ECHO > $output "\
9380 # $outputname - a libtool library file
9381 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
9382 #
9383 # Please DO NOT delete this file!
9384 # It is necessary for linking the library.
9385
9386 # The name that we can dlopen(3).
9387 dlname='$tdlname'
9388
9389 # Names of this library.
9390 library_names='$library_names'
9391
9392 # The name of the static archive.
9393 old_library='$old_library'
9394
9395 # Linker flags that can not go in dependency_libs.
9396 inherited_linker_flags='$new_inherited_linker_flags'
9397
9398 # Libraries that this one depends upon.
9399 dependency_libs='$dependency_libs'
9400
9401 # Names of additional weak libraries provided by this library
9402 weak_library_names='$weak_libs'
9403
9404 # Version information for $libname.
9405 current=$current
9406 age=$age
9407 revision=$revision
9408
9409 # Is this an already installed library?
9410 installed=$installed
9411
9412 # Should we warn about portability when linking against -modules?
9413 shouldnotlink=$module
9414
9415 # Files to dlopen/dlpreopen
9416 dlopen='$dlfiles'
9417 dlpreopen='$dlprefiles'
9418
9419 # Directory that this library needs to be installed in:
9420 libdir='$install_libdir'"
9421 if test "$installed" = no && test "$need_relink" = yes; then
9422 $ECHO >> $output "\
9423 relink_command=\"$relink_command\""
9424 fi
9425 done
9426 }
9427
9428 # Do a symbolic link so that the libtool archive can be found in
9429 # LD_LIBRARY_PATH before the program is installed.
9430 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
9431 ;;
9432 esac
9433 exit $EXIT_SUCCESS
9434 }
9435
9436 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
9437 func_mode_link ${1+"$@"}
9438
9439
9440 # func_mode_uninstall arg...
9441 func_mode_uninstall ()
9442 {
9443 $opt_debug
9444 RM="$nonopt"
9445 files=
9446 rmforce=
9447 exit_status=0
9448
9449 # This variable tells wrapper scripts just to set variables rather
9450 # than running their programs.
9451 libtool_install_magic="$magic"
9452
9453 for arg
9454 do
9455 case $arg in
9456 -f) func_append RM " $arg"; rmforce=yes ;;
9457 -*) func_append RM " $arg" ;;
9458 *) func_append files " $arg" ;;
9459 esac
9460 done
9461
9462 test -z "$RM" && \
9463 func_fatal_help "you must specify an RM program"
9464
9465 rmdirs=
9466
9467 for file in $files; do
9468 func_dirname "$file" "" "."
9469 dir="$func_dirname_result"
9470 if test "X$dir" = X.; then
9471 odir="$objdir"
9472 else
9473 odir="$dir/$objdir"
9474 fi
9475 func_basename "$file"
9476 name="$func_basename_result"
9477 test "$opt_mode" = uninstall && odir="$dir"
9478
9479 # Remember odir for removal later, being careful to avoid duplicates
9480 if test "$opt_mode" = clean; then
9481 case " $rmdirs " in
9482 *" $odir "*) ;;
9483 *) func_append rmdirs " $odir" ;;
9484 esac
9485 fi
9486
9487 # Don't error if the file doesn't exist and rm -f was used.
9488 if { test -L "$file"; } >/dev/null 2>&1 ||
9489 { test -h "$file"; } >/dev/null 2>&1 ||
9490 test -f "$file"; then
9491 :
9492 elif test -d "$file"; then
9493 exit_status=1
9494 continue
9495 elif test "$rmforce" = yes; then
9496 continue
9497 fi
9498
9499 rmfiles="$file"
9500
9501 case $name in
9502 *.la)
9503 # Possibly a libtool archive, so verify it.
9504 if func_lalib_p "$file"; then
9505 func_source $dir/$name
9506
9507 # Delete the libtool libraries and symlinks.
9508 for n in $library_names; do
9509 func_append rmfiles " $odir/$n"
9510 done
9511 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9512
9513 case "$opt_mode" in
9514 clean)
9515 case " $library_names " in
9516 *" $dlname "*) ;;
9517 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
9518 esac
9519 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
9520 ;;
9521 uninstall)
9522 if test -n "$library_names"; then
9523 # Do each command in the postuninstall commands.
9524 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
9525 fi
9526
9527 if test -n "$old_library"; then
9528 # Do each command in the old_postuninstall commands.
9529 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
9530 fi
9531 # FIXME: should reinstall the best remaining shared library.
9532 ;;
9533 esac
9534 fi
9535 ;;
9536
9537 *.lo)
9538 # Possibly a libtool object, so verify it.
9539 if func_lalib_p "$file"; then
9540
9541 # Read the .lo file
9542 func_source $dir/$name
9543
9544 # Add PIC object to the list of files to remove.
9545 if test -n "$pic_object" &&
9546 test "$pic_object" != none; then
9547 func_append rmfiles " $dir/$pic_object"
9548 fi
9549
9550 # Add non-PIC object to the list of files to remove.
9551 if test -n "$non_pic_object" &&
9552 test "$non_pic_object" != none; then
9553 func_append rmfiles " $dir/$non_pic_object"
9554 fi
9555 fi
9556 ;;
9557
9558 *)
9559 if test "$opt_mode" = clean ; then
9560 noexename=$name
9561 case $file in
9562 *.exe)
9563 func_stripname '' '.exe' "$file"
9564 file=$func_stripname_result
9565 func_stripname '' '.exe' "$name"
9566 noexename=$func_stripname_result
9567 # $file with .exe has already been added to rmfiles,
9568 # add $file without .exe
9569 func_append rmfiles " $file"
9570 ;;
9571 esac
9572 # Do a test to see if this is a libtool program.
9573 if func_ltwrapper_p "$file"; then
9574 if func_ltwrapper_executable_p "$file"; then
9575 func_ltwrapper_scriptname "$file"
9576 relink_command=
9577 func_source $func_ltwrapper_scriptname_result
9578 func_append rmfiles " $func_ltwrapper_scriptname_result"
9579 else
9580 relink_command=
9581 func_source $dir/$noexename
9582 fi
9583
9584 # note $name still contains .exe if it was in $file originally
9585 # as does the version of $file that was added into $rmfiles
9586 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
9587 if test "$fast_install" = yes && test -n "$relink_command"; then
9588 func_append rmfiles " $odir/lt-$name"
9589 fi
9590 if test "X$noexename" != "X$name" ; then
9591 func_append rmfiles " $odir/lt-${noexename}.c"
9592 fi
9593 fi
9594 fi
9595 ;;
9596 esac
9597 func_show_eval "$RM $rmfiles" 'exit_status=1'
9598 done
9599
9600 # Try to remove the ${objdir}s in the directories where we deleted files
9601 for dir in $rmdirs; do
9602 if test -d "$dir"; then
9603 func_show_eval "rmdir $dir >/dev/null 2>&1"
9604 fi
9605 done
9606
9607 exit $exit_status
9608 }
9609
9610 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
9611 func_mode_uninstall ${1+"$@"}
9612
9613 test -z "$opt_mode" && {
9614 help="$generic_help"
9615 func_fatal_help "you must specify a MODE"
9616 }
9617
9618 test -z "$exec_cmd" && \
9619 func_fatal_help "invalid operation mode \`$opt_mode'"
9620
9621 if test -n "$exec_cmd"; then
9622 eval exec "$exec_cmd"
9623 exit $EXIT_FAILURE
9624 fi
9625
9626 exit $exit_status
9627
9628
9629 # The TAGs below are defined such that we never get into a situation
9630 # in which we disable both kinds of libraries. Given conflicting
9631 # choices, we go for a static library, that is the most portable,
9632 # since we can't tell whether shared libraries were disabled because
9633 # the user asked for that or because the platform doesn't support
9634 # them. This is particularly important on AIX, because we don't
9635 # support having both static and shared libraries enabled at the same
9636 # time on that platform, so we default to a shared-only configuration.
9637 # If a disable-shared tag is given, we'll fallback to a static-only
9638 # configuration. But we'll never go from static-only to shared-only.
9639
9640 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
9641 build_libtool_libs=no
9642 build_old_libs=yes
9643 # ### END LIBTOOL TAG CONFIG: disable-shared
9644
9645 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
9646 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
9647 # ### END LIBTOOL TAG CONFIG: disable-static
9648
9649 # Local Variables:
9650 # mode:shell-script
9651 # sh-indentation:2
9652 # End:
9653 # vi:sw=2
9654
+0
-237
m4/intltool.m4 less more
0 ## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*-
1 ## Copyright (C) 2001 Eazel, Inc.
2 ## Author: Maciej Stachowiak <mjs@noisehavoc.org>
3 ## Kenneth Christiansen <kenneth@gnu.org>
4 ##
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2 of the License, or
8 ## (at your option) any later version.
9 ##
10 ## This program is distributed in the hope that it will be useful, but
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ## General Public License for more details.
14 ##
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 ##
19 ## As a special exception to the GNU General Public License, if you
20 ## distribute this file as part of a program that contains a
21 ## configuration script generated by Autoconf, you may include it under
22 ## the same distribution terms that you use for the rest of that program.
23
24 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
25 # serial 42 IT_PROG_INTLTOOL
26 AC_DEFUN([IT_PROG_INTLTOOL], [
27 AC_PREREQ([2.50])dnl
28 AC_REQUIRE([AM_NLS])dnl
29
30 case "$am__api_version" in
31 1.[01234])
32 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
33 ;;
34 *)
35 ;;
36 esac
37
38 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
39 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
40 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
41 if test -n "$1"; then
42 AC_MSG_CHECKING([for intltool >= $1])
43 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
44 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
45 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
46 fi
47
48 AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
49 AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
50 AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
51 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
52 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
53 fi
54
55 if test -z "$AM_DEFAULT_VERBOSITY"; then
56 AM_DEFAULT_VERBOSITY=1
57 fi
58 AC_SUBST([AM_DEFAULT_VERBOSITY])
59
60 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
61 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
62 INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
63 AC_SUBST(INTLTOOL_V_MERGE)
64 AC_SUBST(INTLTOOL__v_MERGE_)
65 AC_SUBST(INTLTOOL__v_MERGE_0)
66
67 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
68 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
69 intltool__v_merge_options_0='-q'
70 AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
71 AC_SUBST(intltool__v_merge_options_)
72 AC_SUBST(intltool__v_merge_options_0)
73
74 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 $< [$]@'
75 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 $< [$]@'
76 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 $< [$]@'
77 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 $< [$]@'
78 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 $< [$]@'
79 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 $< [$]@'
80 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 $< [$]@'
81 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 $< [$]@'
82 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 $< [$]@'
83 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 $< [$]@'
84 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 $< [$]@'
85 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
86 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 $< [$]@'
87 else
88 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'
89 fi
90 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 $< [$]@'
91 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 $< [$]@'
92 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 $< [$]@'
93 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 $< [$]@'
94 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 $< [$]@'
95 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 $< [$]@'
96 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 $< [$]@'
97
98 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
99 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
100 _IT_SUBST(INTLTOOL_KEYS_RULE)
101 _IT_SUBST(INTLTOOL_PROP_RULE)
102 _IT_SUBST(INTLTOOL_OAF_RULE)
103 _IT_SUBST(INTLTOOL_PONG_RULE)
104 _IT_SUBST(INTLTOOL_SERVER_RULE)
105 _IT_SUBST(INTLTOOL_SHEET_RULE)
106 _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
107 _IT_SUBST(INTLTOOL_UI_RULE)
108 _IT_SUBST(INTLTOOL_XAM_RULE)
109 _IT_SUBST(INTLTOOL_KBD_RULE)
110 _IT_SUBST(INTLTOOL_XML_RULE)
111 _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
112 _IT_SUBST(INTLTOOL_CAVES_RULE)
113 _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
114 _IT_SUBST(INTLTOOL_THEME_RULE)
115 _IT_SUBST(INTLTOOL_SERVICE_RULE)
116 _IT_SUBST(INTLTOOL_POLICY_RULE)
117
118 # Check the gettext tools to make sure they are GNU
119 AC_PATH_PROG(XGETTEXT, xgettext)
120 AC_PATH_PROG(MSGMERGE, msgmerge)
121 AC_PATH_PROG(MSGFMT, msgfmt)
122 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
123 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
124 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
125 fi
126 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
127 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
128 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
129 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
130 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
131 fi
132
133 AC_PATH_PROG(INTLTOOL_PERL, perl)
134 if test -z "$INTLTOOL_PERL"; then
135 AC_MSG_ERROR([perl not found])
136 fi
137 AC_MSG_CHECKING([for perl >= 5.8.1])
138 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
139 if test $? -ne 0; then
140 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
141 else
142 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
143 AC_MSG_RESULT([$IT_PERL_VERSION])
144 fi
145 if test "x$2" != "xno-xml"; then
146 AC_MSG_CHECKING([for XML::Parser])
147 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
148 AC_MSG_RESULT([ok])
149 else
150 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
151 fi
152 fi
153
154 # Substitute ALL_LINGUAS so we can use it in po/Makefile
155 AC_SUBST(ALL_LINGUAS)
156
157 # Set DATADIRNAME correctly if it is not set yet
158 # (copied from glib-gettext.m4)
159 if test -z "$DATADIRNAME"; then
160 AC_LINK_IFELSE(
161 [AC_LANG_PROGRAM([[]],
162 [[extern int _nl_msg_cat_cntr;
163 return _nl_msg_cat_cntr]])],
164 [DATADIRNAME=share],
165 [case $host in
166 *-*-solaris*)
167 dnl On Solaris, if bind_textdomain_codeset is in libc,
168 dnl GNU format message catalog is always supported,
169 dnl since both are added to the libc all together.
170 dnl Hence, we'd like to go with DATADIRNAME=share
171 dnl in this case.
172 AC_CHECK_FUNC(bind_textdomain_codeset,
173 [DATADIRNAME=share], [DATADIRNAME=lib])
174 ;;
175 *)
176 [DATADIRNAME=lib]
177 ;;
178 esac])
179 fi
180 AC_SUBST(DATADIRNAME)
181
182 IT_PO_SUBDIR([po])
183
184 ])
185
186
187 # IT_PO_SUBDIR(DIRNAME)
188 # ---------------------
189 # All po subdirs have to be declared with this macro; the subdir "po" is
190 # declared by IT_PROG_INTLTOOL.
191 #
192 AC_DEFUN([IT_PO_SUBDIR],
193 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
194 dnl
195 dnl The following CONFIG_COMMANDS should be executed at the very end
196 dnl of config.status.
197 AC_CONFIG_COMMANDS_PRE([
198 AC_CONFIG_COMMANDS([$1/stamp-it], [
199 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
200 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
201 fi
202 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
203 >"$1/stamp-it.tmp"
204 [sed '/^#/d
205 s/^[[].*] *//
206 /^[ ]*$/d
207 '"s|^| $ac_top_srcdir/|" \
208 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
209 ]
210 [sed '/^POTFILES =/,/[^\\]$/ {
211 /^POTFILES =/!d
212 r $1/POTFILES
213 }
214 ' "$1/Makefile.in" >"$1/Makefile"]
215 rm -f "$1/Makefile.tmp"
216 mv "$1/stamp-it.tmp" "$1/stamp-it"
217 ])
218 ])dnl
219 ])
220
221 # _IT_SUBST(VARIABLE)
222 # -------------------
223 # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
224 #
225 AC_DEFUN([_IT_SUBST],
226 [
227 AC_SUBST([$1])
228 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
229 ]
230 )
231
232 # deprecated macros
233 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
234 # A hint is needed for aclocal from Automake <= 1.9.4:
235 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
236
+0
-7992
m4/libtool.m4 less more
0 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1 #
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
4 # Foundation, Inc.
5 # Written by Gordon Matzigkeit, 1996
6 #
7 # This file is free software; the Free Software Foundation gives
8 # unlimited permission to copy and/or distribute it, with or without
9 # modifications, as long as this notice is preserved.
10
11 m4_define([_LT_COPYING], [dnl
12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14 # Foundation, Inc.
15 # Written by Gordon Matzigkeit, 1996
16 #
17 # This file is part of GNU Libtool.
18 #
19 # GNU Libtool is free software; you can redistribute it and/or
20 # modify it under the terms of the GNU General Public License as
21 # published by the Free Software Foundation; either version 2 of
22 # the License, or (at your option) any later version.
23 #
24 # As a special exception to the GNU General Public License,
25 # if you distribute this file as part of a program or library that
26 # is built using GNU Libtool, you may include this file under the
27 # same distribution terms that you use for the rest of that program.
28 #
29 # GNU Libtool is distributed in the hope that it will be useful,
30 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 # GNU General Public License for more details.
33 #
34 # You should have received a copy of the GNU General Public License
35 # along with GNU Libtool; see the file COPYING. If not, a copy
36 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37 # obtained by writing to the Free Software Foundation, Inc.,
38 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
39 ])
40
41 # serial 57 LT_INIT
42
43
44 # LT_PREREQ(VERSION)
45 # ------------------
46 # Complain and exit if this libtool version is less that VERSION.
47 m4_defun([LT_PREREQ],
48 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
49 [m4_default([$3],
50 [m4_fatal([Libtool version $1 or higher is required],
51 63)])],
52 [$2])])
53
54
55 # _LT_CHECK_BUILDDIR
56 # ------------------
57 # Complain if the absolute build directory name contains unusual characters
58 m4_defun([_LT_CHECK_BUILDDIR],
59 [case `pwd` in
60 *\ * | *\ *)
61 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
62 esac
63 ])
64
65
66 # LT_INIT([OPTIONS])
67 # ------------------
68 AC_DEFUN([LT_INIT],
69 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
70 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
71 AC_BEFORE([$0], [LT_LANG])dnl
72 AC_BEFORE([$0], [LT_OUTPUT])dnl
73 AC_BEFORE([$0], [LTDL_INIT])dnl
74 m4_require([_LT_CHECK_BUILDDIR])dnl
75
76 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
77 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
78 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
79 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
80 dnl unless we require an AC_DEFUNed macro:
81 AC_REQUIRE([LTOPTIONS_VERSION])dnl
82 AC_REQUIRE([LTSUGAR_VERSION])dnl
83 AC_REQUIRE([LTVERSION_VERSION])dnl
84 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
85 m4_require([_LT_PROG_LTMAIN])dnl
86
87 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
88
89 dnl Parse OPTIONS
90 _LT_SET_OPTIONS([$0], [$1])
91
92 # This can be used to rebuild libtool when needed
93 LIBTOOL_DEPS="$ltmain"
94
95 # Always use our own libtool.
96 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
97 AC_SUBST(LIBTOOL)dnl
98
99 _LT_SETUP
100
101 # Only expand once:
102 m4_define([LT_INIT])
103 ])# LT_INIT
104
105 # Old names:
106 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
107 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
108 dnl aclocal-1.4 backwards compatibility:
109 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
110 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
111
112
113 # _LT_CC_BASENAME(CC)
114 # -------------------
115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
116 m4_defun([_LT_CC_BASENAME],
117 [for cc_temp in $1""; do
118 case $cc_temp in
119 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
120 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
121 \-*) ;;
122 *) break;;
123 esac
124 done
125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
126 ])
127
128
129 # _LT_FILEUTILS_DEFAULTS
130 # ----------------------
131 # It is okay to use these file commands and assume they have been set
132 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
133 m4_defun([_LT_FILEUTILS_DEFAULTS],
134 [: ${CP="cp -f"}
135 : ${MV="mv -f"}
136 : ${RM="rm -f"}
137 ])# _LT_FILEUTILS_DEFAULTS
138
139
140 # _LT_SETUP
141 # ---------
142 m4_defun([_LT_SETUP],
143 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
144 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
145 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
146 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
147
148 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
149 dnl
150 _LT_DECL([], [host_alias], [0], [The host system])dnl
151 _LT_DECL([], [host], [0])dnl
152 _LT_DECL([], [host_os], [0])dnl
153 dnl
154 _LT_DECL([], [build_alias], [0], [The build system])dnl
155 _LT_DECL([], [build], [0])dnl
156 _LT_DECL([], [build_os], [0])dnl
157 dnl
158 AC_REQUIRE([AC_PROG_CC])dnl
159 AC_REQUIRE([LT_PATH_LD])dnl
160 AC_REQUIRE([LT_PATH_NM])dnl
161 dnl
162 AC_REQUIRE([AC_PROG_LN_S])dnl
163 test -z "$LN_S" && LN_S="ln -s"
164 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
165 dnl
166 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
167 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
168 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
169 dnl
170 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
171 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
172 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
173 m4_require([_LT_CMD_RELOAD])dnl
174 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
175 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
176 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
177 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
178 m4_require([_LT_WITH_SYSROOT])dnl
179
180 _LT_CONFIG_LIBTOOL_INIT([
181 # See if we are running on zsh, and set the options which allow our
182 # commands through without removal of \ escapes INIT.
183 if test -n "\${ZSH_VERSION+set}" ; then
184 setopt NO_GLOB_SUBST
185 fi
186 ])
187 if test -n "${ZSH_VERSION+set}" ; then
188 setopt NO_GLOB_SUBST
189 fi
190
191 _LT_CHECK_OBJDIR
192
193 m4_require([_LT_TAG_COMPILER])dnl
194
195 case $host_os in
196 aix3*)
197 # AIX sometimes has problems with the GCC collect2 program. For some
198 # reason, if we set the COLLECT_NAMES environment variable, the problems
199 # vanish in a puff of smoke.
200 if test "X${COLLECT_NAMES+set}" != Xset; then
201 COLLECT_NAMES=
202 export COLLECT_NAMES
203 fi
204 ;;
205 esac
206
207 # Global variables:
208 ofile=libtool
209 can_build_shared=yes
210
211 # All known linkers require a `.a' archive for static linking (except MSVC,
212 # which needs '.lib').
213 libext=a
214
215 with_gnu_ld="$lt_cv_prog_gnu_ld"
216
217 old_CC="$CC"
218 old_CFLAGS="$CFLAGS"
219
220 # Set sane defaults for various variables
221 test -z "$CC" && CC=cc
222 test -z "$LTCC" && LTCC=$CC
223 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
224 test -z "$LD" && LD=ld
225 test -z "$ac_objext" && ac_objext=o
226
227 _LT_CC_BASENAME([$compiler])
228
229 # Only perform the check for file, if the check method requires it
230 test -z "$MAGIC_CMD" && MAGIC_CMD=file
231 case $deplibs_check_method in
232 file_magic*)
233 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
234 _LT_PATH_MAGIC
235 fi
236 ;;
237 esac
238
239 # Use C for the default configuration in the libtool script
240 LT_SUPPORTED_TAG([CC])
241 _LT_LANG_C_CONFIG
242 _LT_LANG_DEFAULT_CONFIG
243 _LT_CONFIG_COMMANDS
244 ])# _LT_SETUP
245
246
247 # _LT_PREPARE_SED_QUOTE_VARS
248 # --------------------------
249 # Define a few sed substitution that help us do robust quoting.
250 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
251 [# Backslashify metacharacters that are still active within
252 # double-quoted strings.
253 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
254
255 # Same as above, but do not quote variable references.
256 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
257
258 # Sed substitution to delay expansion of an escaped shell variable in a
259 # double_quote_subst'ed string.
260 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
261
262 # Sed substitution to delay expansion of an escaped single quote.
263 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
264
265 # Sed substitution to avoid accidental globbing in evaled expressions
266 no_glob_subst='s/\*/\\\*/g'
267 ])
268
269 # _LT_PROG_LTMAIN
270 # ---------------
271 # Note that this code is called both from `configure', and `config.status'
272 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
273 # `config.status' has no value for ac_aux_dir unless we are using Automake,
274 # so we pass a copy along to make sure it has a sensible value anyway.
275 m4_defun([_LT_PROG_LTMAIN],
276 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
277 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
278 ltmain="$ac_aux_dir/ltmain.sh"
279 ])# _LT_PROG_LTMAIN
280
281
282 ## ------------------------------------- ##
283 ## Accumulate code for creating libtool. ##
284 ## ------------------------------------- ##
285
286 # So that we can recreate a full libtool script including additional
287 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
288 # in macros and then make a single call at the end using the `libtool'
289 # label.
290
291
292 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
293 # ----------------------------------------
294 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
295 m4_define([_LT_CONFIG_LIBTOOL_INIT],
296 [m4_ifval([$1],
297 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
298 [$1
299 ])])])
300
301 # Initialize.
302 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
303
304
305 # _LT_CONFIG_LIBTOOL([COMMANDS])
306 # ------------------------------
307 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
308 m4_define([_LT_CONFIG_LIBTOOL],
309 [m4_ifval([$1],
310 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
311 [$1
312 ])])])
313
314 # Initialize.
315 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
316
317
318 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
319 # -----------------------------------------------------
320 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
321 [_LT_CONFIG_LIBTOOL([$1])
322 _LT_CONFIG_LIBTOOL_INIT([$2])
323 ])
324
325
326 # _LT_FORMAT_COMMENT([COMMENT])
327 # -----------------------------
328 # Add leading comment marks to the start of each line, and a trailing
329 # full-stop to the whole comment if one is not present already.
330 m4_define([_LT_FORMAT_COMMENT],
331 [m4_ifval([$1], [
332 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
333 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
334 )])
335
336
337
338 ## ------------------------ ##
339 ## FIXME: Eliminate VARNAME ##
340 ## ------------------------ ##
341
342
343 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
344 # -------------------------------------------------------------------
345 # CONFIGNAME is the name given to the value in the libtool script.
346 # VARNAME is the (base) name used in the configure script.
347 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
348 # VARNAME. Any other value will be used directly.
349 m4_define([_LT_DECL],
350 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
351 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
352 [m4_ifval([$1], [$1], [$2])])
353 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
354 m4_ifval([$4],
355 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
356 lt_dict_add_subkey([lt_decl_dict], [$2],
357 [tagged?], [m4_ifval([$5], [yes], [no])])])
358 ])
359
360
361 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
362 # --------------------------------------------------------
363 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
364
365
366 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
367 # ------------------------------------------------
368 m4_define([lt_decl_tag_varnames],
369 [_lt_decl_filter([tagged?], [yes], $@)])
370
371
372 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
373 # ---------------------------------------------------------
374 m4_define([_lt_decl_filter],
375 [m4_case([$#],
376 [0], [m4_fatal([$0: too few arguments: $#])],
377 [1], [m4_fatal([$0: too few arguments: $#: $1])],
378 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
379 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
380 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
381 ])
382
383
384 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
385 # --------------------------------------------------
386 m4_define([lt_decl_quote_varnames],
387 [_lt_decl_filter([value], [1], $@)])
388
389
390 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
391 # ---------------------------------------------------
392 m4_define([lt_decl_dquote_varnames],
393 [_lt_decl_filter([value], [2], $@)])
394
395
396 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
397 # ---------------------------------------------------
398 m4_define([lt_decl_varnames_tagged],
399 [m4_assert([$# <= 2])dnl
400 _$0(m4_quote(m4_default([$1], [[, ]])),
401 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
402 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
403 m4_define([_lt_decl_varnames_tagged],
404 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
405
406
407 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
408 # ------------------------------------------------
409 m4_define([lt_decl_all_varnames],
410 [_$0(m4_quote(m4_default([$1], [[, ]])),
411 m4_if([$2], [],
412 m4_quote(lt_decl_varnames),
413 m4_quote(m4_shift($@))))[]dnl
414 ])
415 m4_define([_lt_decl_all_varnames],
416 [lt_join($@, lt_decl_varnames_tagged([$1],
417 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
418 ])
419
420
421 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
422 # ------------------------------------
423 # Quote a variable value, and forward it to `config.status' so that its
424 # declaration there will have the same value as in `configure'. VARNAME
425 # must have a single quote delimited value for this to work.
426 m4_define([_LT_CONFIG_STATUS_DECLARE],
427 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
428
429
430 # _LT_CONFIG_STATUS_DECLARATIONS
431 # ------------------------------
432 # We delimit libtool config variables with single quotes, so when
433 # we write them to config.status, we have to be sure to quote all
434 # embedded single quotes properly. In configure, this macro expands
435 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
436 #
437 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
438 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
439 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
440 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
441
442
443 # _LT_LIBTOOL_TAGS
444 # ----------------
445 # Output comment and list of tags supported by the script
446 m4_defun([_LT_LIBTOOL_TAGS],
447 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
448 available_tags="_LT_TAGS"dnl
449 ])
450
451
452 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
453 # -----------------------------------
454 # Extract the dictionary values for VARNAME (optionally with TAG) and
455 # expand to a commented shell variable setting:
456 #
457 # # Some comment about what VAR is for.
458 # visible_name=$lt_internal_name
459 m4_define([_LT_LIBTOOL_DECLARE],
460 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
461 [description])))[]dnl
462 m4_pushdef([_libtool_name],
463 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
464 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
465 [0], [_libtool_name=[$]$1],
466 [1], [_libtool_name=$lt_[]$1],
467 [2], [_libtool_name=$lt_[]$1],
468 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
469 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
470 ])
471
472
473 # _LT_LIBTOOL_CONFIG_VARS
474 # -----------------------
475 # Produce commented declarations of non-tagged libtool config variables
476 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
477 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
478 # section) are produced by _LT_LIBTOOL_TAG_VARS.
479 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
480 [m4_foreach([_lt_var],
481 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
482 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
483
484
485 # _LT_LIBTOOL_TAG_VARS(TAG)
486 # -------------------------
487 m4_define([_LT_LIBTOOL_TAG_VARS],
488 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
489 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
490
491
492 # _LT_TAGVAR(VARNAME, [TAGNAME])
493 # ------------------------------
494 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
495
496
497 # _LT_CONFIG_COMMANDS
498 # -------------------
499 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
500 # variables for single and double quote escaping we saved from calls
501 # to _LT_DECL, we can put quote escaped variables declarations
502 # into `config.status', and then the shell code to quote escape them in
503 # for loops in `config.status'. Finally, any additional code accumulated
504 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
505 m4_defun([_LT_CONFIG_COMMANDS],
506 [AC_PROVIDE_IFELSE([LT_OUTPUT],
507 dnl If the libtool generation code has been placed in $CONFIG_LT,
508 dnl instead of duplicating it all over again into config.status,
509 dnl then we will have config.status run $CONFIG_LT later, so it
510 dnl needs to know what name is stored there:
511 [AC_CONFIG_COMMANDS([libtool],
512 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
513 dnl If the libtool generation code is destined for config.status,
514 dnl expand the accumulated commands and init code now:
515 [AC_CONFIG_COMMANDS([libtool],
516 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
517 ])#_LT_CONFIG_COMMANDS
518
519
520 # Initialize.
521 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
522 [
523
524 # The HP-UX ksh and POSIX shell print the target directory to stdout
525 # if CDPATH is set.
526 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
527
528 sed_quote_subst='$sed_quote_subst'
529 double_quote_subst='$double_quote_subst'
530 delay_variable_subst='$delay_variable_subst'
531 _LT_CONFIG_STATUS_DECLARATIONS
532 LTCC='$LTCC'
533 LTCFLAGS='$LTCFLAGS'
534 compiler='$compiler_DEFAULT'
535
536 # A function that is used when there is no print builtin or printf.
537 func_fallback_echo ()
538 {
539 eval 'cat <<_LTECHO_EOF
540 \$[]1
541 _LTECHO_EOF'
542 }
543
544 # Quote evaled strings.
545 for var in lt_decl_all_varnames([[ \
546 ]], lt_decl_quote_varnames); do
547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
548 *[[\\\\\\\`\\"\\\$]]*)
549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
550 ;;
551 *)
552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
553 ;;
554 esac
555 done
556
557 # Double-quote double-evaled strings.
558 for var in lt_decl_all_varnames([[ \
559 ]], lt_decl_dquote_varnames); do
560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
561 *[[\\\\\\\`\\"\\\$]]*)
562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
563 ;;
564 *)
565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
566 ;;
567 esac
568 done
569
570 _LT_OUTPUT_LIBTOOL_INIT
571 ])
572
573 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
574 # ------------------------------------
575 # Generate a child script FILE with all initialization necessary to
576 # reuse the environment learned by the parent script, and make the
577 # file executable. If COMMENT is supplied, it is inserted after the
578 # `#!' sequence but before initialization text begins. After this
579 # macro, additional text can be appended to FILE to form the body of
580 # the child script. The macro ends with non-zero status if the
581 # file could not be fully written (such as if the disk is full).
582 m4_ifdef([AS_INIT_GENERATED],
583 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
584 [m4_defun([_LT_GENERATED_FILE_INIT],
585 [m4_require([AS_PREPARE])]dnl
586 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
587 [lt_write_fail=0
588 cat >$1 <<_ASEOF || lt_write_fail=1
589 #! $SHELL
590 # Generated by $as_me.
591 $2
592 SHELL=\${CONFIG_SHELL-$SHELL}
593 export SHELL
594 _ASEOF
595 cat >>$1 <<\_ASEOF || lt_write_fail=1
596 AS_SHELL_SANITIZE
597 _AS_PREPARE
598 exec AS_MESSAGE_FD>&1
599 _ASEOF
600 test $lt_write_fail = 0 && chmod +x $1[]dnl
601 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
602
603 # LT_OUTPUT
604 # ---------
605 # This macro allows early generation of the libtool script (before
606 # AC_OUTPUT is called), incase it is used in configure for compilation
607 # tests.
608 AC_DEFUN([LT_OUTPUT],
609 [: ${CONFIG_LT=./config.lt}
610 AC_MSG_NOTICE([creating $CONFIG_LT])
611 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
612 [# Run this file to recreate a libtool stub with the current configuration.])
613
614 cat >>"$CONFIG_LT" <<\_LTEOF
615 lt_cl_silent=false
616 exec AS_MESSAGE_LOG_FD>>config.log
617 {
618 echo
619 AS_BOX([Running $as_me.])
620 } >&AS_MESSAGE_LOG_FD
621
622 lt_cl_help="\
623 \`$as_me' creates a local libtool stub from the current configuration,
624 for use in further configure time tests before the real libtool is
625 generated.
626
627 Usage: $[0] [[OPTIONS]]
628
629 -h, --help print this help, then exit
630 -V, --version print version number, then exit
631 -q, --quiet do not print progress messages
632 -d, --debug don't remove temporary files
633
634 Report bugs to <bug-libtool@gnu.org>."
635
636 lt_cl_version="\
637 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
638 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
639 configured by $[0], generated by m4_PACKAGE_STRING.
640
641 Copyright (C) 2011 Free Software Foundation, Inc.
642 This config.lt script is free software; the Free Software Foundation
643 gives unlimited permision to copy, distribute and modify it."
644
645 while test $[#] != 0
646 do
647 case $[1] in
648 --version | --v* | -V )
649 echo "$lt_cl_version"; exit 0 ;;
650 --help | --h* | -h )
651 echo "$lt_cl_help"; exit 0 ;;
652 --debug | --d* | -d )
653 debug=: ;;
654 --quiet | --q* | --silent | --s* | -q )
655 lt_cl_silent=: ;;
656
657 -*) AC_MSG_ERROR([unrecognized option: $[1]
658 Try \`$[0] --help' for more information.]) ;;
659
660 *) AC_MSG_ERROR([unrecognized argument: $[1]
661 Try \`$[0] --help' for more information.]) ;;
662 esac
663 shift
664 done
665
666 if $lt_cl_silent; then
667 exec AS_MESSAGE_FD>/dev/null
668 fi
669 _LTEOF
670
671 cat >>"$CONFIG_LT" <<_LTEOF
672 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
673 _LTEOF
674
675 cat >>"$CONFIG_LT" <<\_LTEOF
676 AC_MSG_NOTICE([creating $ofile])
677 _LT_OUTPUT_LIBTOOL_COMMANDS
678 AS_EXIT(0)
679 _LTEOF
680 chmod +x "$CONFIG_LT"
681
682 # configure is writing to config.log, but config.lt does its own redirection,
683 # appending to config.log, which fails on DOS, as config.log is still kept
684 # open by configure. Here we exec the FD to /dev/null, effectively closing
685 # config.log, so it can be properly (re)opened and appended to by config.lt.
686 lt_cl_success=:
687 test "$silent" = yes &&
688 lt_config_lt_args="$lt_config_lt_args --quiet"
689 exec AS_MESSAGE_LOG_FD>/dev/null
690 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
691 exec AS_MESSAGE_LOG_FD>>config.log
692 $lt_cl_success || AS_EXIT(1)
693 ])# LT_OUTPUT
694
695
696 # _LT_CONFIG(TAG)
697 # ---------------
698 # If TAG is the built-in tag, create an initial libtool script with a
699 # default configuration from the untagged config vars. Otherwise add code
700 # to config.status for appending the configuration named by TAG from the
701 # matching tagged config vars.
702 m4_defun([_LT_CONFIG],
703 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
704 _LT_CONFIG_SAVE_COMMANDS([
705 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
706 m4_if(_LT_TAG, [C], [
707 # See if we are running on zsh, and set the options which allow our
708 # commands through without removal of \ escapes.
709 if test -n "${ZSH_VERSION+set}" ; then
710 setopt NO_GLOB_SUBST
711 fi
712
713 cfgfile="${ofile}T"
714 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
715 $RM "$cfgfile"
716
717 cat <<_LT_EOF >> "$cfgfile"
718 #! $SHELL
719
720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
723 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
724 #
725 _LT_COPYING
726 _LT_LIBTOOL_TAGS
727
728 # ### BEGIN LIBTOOL CONFIG
729 _LT_LIBTOOL_CONFIG_VARS
730 _LT_LIBTOOL_TAG_VARS
731 # ### END LIBTOOL CONFIG
732
733 _LT_EOF
734
735 case $host_os in
736 aix3*)
737 cat <<\_LT_EOF >> "$cfgfile"
738 # AIX sometimes has problems with the GCC collect2 program. For some
739 # reason, if we set the COLLECT_NAMES environment variable, the problems
740 # vanish in a puff of smoke.
741 if test "X${COLLECT_NAMES+set}" != Xset; then
742 COLLECT_NAMES=
743 export COLLECT_NAMES
744 fi
745 _LT_EOF
746 ;;
747 esac
748
749 _LT_PROG_LTMAIN
750
751 # We use sed instead of cat because bash on DJGPP gets confused if
752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
753 # text mode, it properly converts lines to CR/LF. This bash problem
754 # is reportedly fixed, but why not run on old versions too?
755 sed '$q' "$ltmain" >> "$cfgfile" \
756 || (rm -f "$cfgfile"; exit 1)
757
758 _LT_PROG_REPLACE_SHELLFNS
759
760 mv -f "$cfgfile" "$ofile" ||
761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
762 chmod +x "$ofile"
763 ],
764 [cat <<_LT_EOF >> "$ofile"
765
766 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
767 dnl in a comment (ie after a #).
768 # ### BEGIN LIBTOOL TAG CONFIG: $1
769 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
770 # ### END LIBTOOL TAG CONFIG: $1
771 _LT_EOF
772 ])dnl /m4_if
773 ],
774 [m4_if([$1], [], [
775 PACKAGE='$PACKAGE'
776 VERSION='$VERSION'
777 TIMESTAMP='$TIMESTAMP'
778 RM='$RM'
779 ofile='$ofile'], [])
780 ])dnl /_LT_CONFIG_SAVE_COMMANDS
781 ])# _LT_CONFIG
782
783
784 # LT_SUPPORTED_TAG(TAG)
785 # ---------------------
786 # Trace this macro to discover what tags are supported by the libtool
787 # --tag option, using:
788 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
789 AC_DEFUN([LT_SUPPORTED_TAG], [])
790
791
792 # C support is built-in for now
793 m4_define([_LT_LANG_C_enabled], [])
794 m4_define([_LT_TAGS], [])
795
796
797 # LT_LANG(LANG)
798 # -------------
799 # Enable libtool support for the given language if not already enabled.
800 AC_DEFUN([LT_LANG],
801 [AC_BEFORE([$0], [LT_OUTPUT])dnl
802 m4_case([$1],
803 [C], [_LT_LANG(C)],
804 [C++], [_LT_LANG(CXX)],
805 [Go], [_LT_LANG(GO)],
806 [Java], [_LT_LANG(GCJ)],
807 [Fortran 77], [_LT_LANG(F77)],
808 [Fortran], [_LT_LANG(FC)],
809 [Windows Resource], [_LT_LANG(RC)],
810 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
811 [_LT_LANG($1)],
812 [m4_fatal([$0: unsupported language: "$1"])])])dnl
813 ])# LT_LANG
814
815
816 # _LT_LANG(LANGNAME)
817 # ------------------
818 m4_defun([_LT_LANG],
819 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
820 [LT_SUPPORTED_TAG([$1])dnl
821 m4_append([_LT_TAGS], [$1 ])dnl
822 m4_define([_LT_LANG_]$1[_enabled], [])dnl
823 _LT_LANG_$1_CONFIG($1)])dnl
824 ])# _LT_LANG
825
826
827 m4_ifndef([AC_PROG_GO], [
828 ############################################################
829 # NOTE: This macro has been submitted for inclusion into #
830 # GNU Autoconf as AC_PROG_GO. When it is available in #
831 # a released version of Autoconf we should remove this #
832 # macro and use it instead. #
833 ############################################################
834 m4_defun([AC_PROG_GO],
835 [AC_LANG_PUSH(Go)dnl
836 AC_ARG_VAR([GOC], [Go compiler command])dnl
837 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
838 _AC_ARG_VAR_LDFLAGS()dnl
839 AC_CHECK_TOOL(GOC, gccgo)
840 if test -z "$GOC"; then
841 if test -n "$ac_tool_prefix"; then
842 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
843 fi
844 fi
845 if test -z "$GOC"; then
846 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
847 fi
848 ])#m4_defun
849 ])#m4_ifndef
850
851
852 # _LT_LANG_DEFAULT_CONFIG
853 # -----------------------
854 m4_defun([_LT_LANG_DEFAULT_CONFIG],
855 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
856 [LT_LANG(CXX)],
857 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
858
859 AC_PROVIDE_IFELSE([AC_PROG_F77],
860 [LT_LANG(F77)],
861 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
862
863 AC_PROVIDE_IFELSE([AC_PROG_FC],
864 [LT_LANG(FC)],
865 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
866
867 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
868 dnl pulling things in needlessly.
869 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
870 [LT_LANG(GCJ)],
871 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
872 [LT_LANG(GCJ)],
873 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
874 [LT_LANG(GCJ)],
875 [m4_ifdef([AC_PROG_GCJ],
876 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
877 m4_ifdef([A][M_PROG_GCJ],
878 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
879 m4_ifdef([LT_PROG_GCJ],
880 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
881
882 AC_PROVIDE_IFELSE([AC_PROG_GO],
883 [LT_LANG(GO)],
884 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
885
886 AC_PROVIDE_IFELSE([LT_PROG_RC],
887 [LT_LANG(RC)],
888 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
889 ])# _LT_LANG_DEFAULT_CONFIG
890
891 # Obsolete macros:
892 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
893 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
894 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
895 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
896 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
897 dnl aclocal-1.4 backwards compatibility:
898 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
899 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
900 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
901 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
902 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
903
904
905 # _LT_TAG_COMPILER
906 # ----------------
907 m4_defun([_LT_TAG_COMPILER],
908 [AC_REQUIRE([AC_PROG_CC])dnl
909
910 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
911 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
912 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
913 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
914
915 # If no C compiler was specified, use CC.
916 LTCC=${LTCC-"$CC"}
917
918 # If no C compiler flags were specified, use CFLAGS.
919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
920
921 # Allow CC to be a program name with arguments.
922 compiler=$CC
923 ])# _LT_TAG_COMPILER
924
925
926 # _LT_COMPILER_BOILERPLATE
927 # ------------------------
928 # Check for compiler boilerplate output or warnings with
929 # the simple compiler test code.
930 m4_defun([_LT_COMPILER_BOILERPLATE],
931 [m4_require([_LT_DECL_SED])dnl
932 ac_outfile=conftest.$ac_objext
933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
935 _lt_compiler_boilerplate=`cat conftest.err`
936 $RM conftest*
937 ])# _LT_COMPILER_BOILERPLATE
938
939
940 # _LT_LINKER_BOILERPLATE
941 # ----------------------
942 # Check for linker boilerplate output or warnings with
943 # the simple link test code.
944 m4_defun([_LT_LINKER_BOILERPLATE],
945 [m4_require([_LT_DECL_SED])dnl
946 ac_outfile=conftest.$ac_objext
947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
949 _lt_linker_boilerplate=`cat conftest.err`
950 $RM -r conftest*
951 ])# _LT_LINKER_BOILERPLATE
952
953 # _LT_REQUIRED_DARWIN_CHECKS
954 # -------------------------
955 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
956 case $host_os in
957 rhapsody* | darwin*)
958 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
959 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
960 AC_CHECK_TOOL([LIPO], [lipo], [:])
961 AC_CHECK_TOOL([OTOOL], [otool], [:])
962 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
963 _LT_DECL([], [DSYMUTIL], [1],
964 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
965 _LT_DECL([], [NMEDIT], [1],
966 [Tool to change global to local symbols on Mac OS X])
967 _LT_DECL([], [LIPO], [1],
968 [Tool to manipulate fat objects and archives on Mac OS X])
969 _LT_DECL([], [OTOOL], [1],
970 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
971 _LT_DECL([], [OTOOL64], [1],
972 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
973
974 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
975 [lt_cv_apple_cc_single_mod=no
976 if test -z "${LT_MULTI_MODULE}"; then
977 # By default we will add the -single_module flag. You can override
978 # by either setting the environment variable LT_MULTI_MODULE
979 # non-empty at configure time, or by adding -multi_module to the
980 # link flags.
981 rm -rf libconftest.dylib*
982 echo "int foo(void){return 1;}" > conftest.c
983 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
984 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
985 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
986 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
987 _lt_result=$?
988 # If there is a non-empty error log, and "single_module"
989 # appears in it, assume the flag caused a linker warning
990 if test -s conftest.err && $GREP single_module conftest.err; then
991 cat conftest.err >&AS_MESSAGE_LOG_FD
992 # Otherwise, if the output was created with a 0 exit code from
993 # the compiler, it worked.
994 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
995 lt_cv_apple_cc_single_mod=yes
996 else
997 cat conftest.err >&AS_MESSAGE_LOG_FD
998 fi
999 rm -rf libconftest.dylib*
1000 rm -f conftest.*
1001 fi])
1002
1003 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1004 [lt_cv_ld_exported_symbols_list],
1005 [lt_cv_ld_exported_symbols_list=no
1006 save_LDFLAGS=$LDFLAGS
1007 echo "_main" > conftest.sym
1008 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1009 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1010 [lt_cv_ld_exported_symbols_list=yes],
1011 [lt_cv_ld_exported_symbols_list=no])
1012 LDFLAGS="$save_LDFLAGS"
1013 ])
1014
1015 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1016 [lt_cv_ld_force_load=no
1017 cat > conftest.c << _LT_EOF
1018 int forced_loaded() { return 2;}
1019 _LT_EOF
1020 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1021 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1022 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1023 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1024 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1025 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1026 cat > conftest.c << _LT_EOF
1027 int main() { return 0;}
1028 _LT_EOF
1029 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1030 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1031 _lt_result=$?
1032 if test -s conftest.err && $GREP force_load conftest.err; then
1033 cat conftest.err >&AS_MESSAGE_LOG_FD
1034 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1035 lt_cv_ld_force_load=yes
1036 else
1037 cat conftest.err >&AS_MESSAGE_LOG_FD
1038 fi
1039 rm -f conftest.err libconftest.a conftest conftest.c
1040 rm -rf conftest.dSYM
1041 ])
1042 case $host_os in
1043 rhapsody* | darwin1.[[012]])
1044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1045 darwin1.*)
1046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1047 darwin*) # darwin 5.x on
1048 # if running on 10.5 or later, the deployment target defaults
1049 # to the OS version, if on x86, and 10.4, the deployment
1050 # target defaults to 10.4. Don't you love it?
1051 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1052 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1053 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1054 10.[[012]]*)
1055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1056 10.*)
1057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1058 esac
1059 ;;
1060 esac
1061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1062 _lt_dar_single_mod='$single_module'
1063 fi
1064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1066 else
1067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1068 fi
1069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1070 _lt_dsymutil='~$DSYMUTIL $lib || :'
1071 else
1072 _lt_dsymutil=
1073 fi
1074 ;;
1075 esac
1076 ])
1077
1078
1079 # _LT_DARWIN_LINKER_FEATURES([TAG])
1080 # ---------------------------------
1081 # Checks for linker and compiler features on darwin
1082 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1083 [
1084 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1085 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1086 _LT_TAGVAR(hardcode_direct, $1)=no
1087 _LT_TAGVAR(hardcode_automatic, $1)=yes
1088 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1089 if test "$lt_cv_ld_force_load" = "yes"; then
1090 _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\"`'
1091 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1092 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1093 else
1094 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1095 fi
1096 _LT_TAGVAR(link_all_deplibs, $1)=yes
1097 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1098 case $cc_basename in
1099 ifort*) _lt_dar_can_shared=yes ;;
1100 *) _lt_dar_can_shared=$GCC ;;
1101 esac
1102 if test "$_lt_dar_can_shared" = "yes"; then
1103 output_verbose_link_cmd=func_echo_all
1104 _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}"
1105 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1106 _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}"
1107 _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}"
1108 m4_if([$1], [CXX],
1109 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1110 _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}"
1111 _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}"
1112 fi
1113 ],[])
1114 else
1115 _LT_TAGVAR(ld_shlibs, $1)=no
1116 fi
1117 ])
1118
1119 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1120 # ----------------------------------
1121 # Links a minimal program and checks the executable
1122 # for the system default hardcoded library path. In most cases,
1123 # this is /usr/lib:/lib, but when the MPI compilers are used
1124 # the location of the communication and MPI libs are included too.
1125 # If we don't find anything, use the default library path according
1126 # to the aix ld manual.
1127 # Store the results from the different compilers for each TAGNAME.
1128 # Allow to override them for all tags through lt_cv_aix_libpath.
1129 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1130 [m4_require([_LT_DECL_SED])dnl
1131 if test "${lt_cv_aix_libpath+set}" = set; then
1132 aix_libpath=$lt_cv_aix_libpath
1133 else
1134 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1135 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1136 lt_aix_libpath_sed='[
1137 /Import File Strings/,/^$/ {
1138 /^0/ {
1139 s/^0 *\([^ ]*\) *$/\1/
1140 p
1141 }
1142 }]'
1143 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1144 # Check for a 64-bit object if we didn't find anything.
1145 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1146 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1147 fi],[])
1148 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1149 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1150 fi
1151 ])
1152 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1153 fi
1154 ])# _LT_SYS_MODULE_PATH_AIX
1155
1156
1157 # _LT_SHELL_INIT(ARG)
1158 # -------------------
1159 m4_define([_LT_SHELL_INIT],
1160 [m4_divert_text([M4SH-INIT], [$1
1161 ])])# _LT_SHELL_INIT
1162
1163
1164
1165 # _LT_PROG_ECHO_BACKSLASH
1166 # -----------------------
1167 # Find how we can fake an echo command that does not interpret backslash.
1168 # In particular, with Autoconf 2.60 or later we add some code to the start
1169 # of the generated configure script which will find a shell with a builtin
1170 # printf (which we can use as an echo command).
1171 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1172 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1173 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1175
1176 AC_MSG_CHECKING([how to print strings])
1177 # Test print first, because it will be a builtin if present.
1178 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1179 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1180 ECHO='print -r --'
1181 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1182 ECHO='printf %s\n'
1183 else
1184 # Use this function as a fallback that always works.
1185 func_fallback_echo ()
1186 {
1187 eval 'cat <<_LTECHO_EOF
1188 $[]1
1189 _LTECHO_EOF'
1190 }
1191 ECHO='func_fallback_echo'
1192 fi
1193
1194 # func_echo_all arg...
1195 # Invoke $ECHO with all args, space-separated.
1196 func_echo_all ()
1197 {
1198 $ECHO "$*"
1199 }
1200
1201 case "$ECHO" in
1202 printf*) AC_MSG_RESULT([printf]) ;;
1203 print*) AC_MSG_RESULT([print -r]) ;;
1204 *) AC_MSG_RESULT([cat]) ;;
1205 esac
1206
1207 m4_ifdef([_AS_DETECT_SUGGESTED],
1208 [_AS_DETECT_SUGGESTED([
1209 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1210 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1211 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1212 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1213 PATH=/empty FPATH=/empty; export PATH FPATH
1214 test "X`printf %s $ECHO`" = "X$ECHO" \
1215 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1216
1217 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1218 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1219 ])# _LT_PROG_ECHO_BACKSLASH
1220
1221
1222 # _LT_WITH_SYSROOT
1223 # ----------------
1224 AC_DEFUN([_LT_WITH_SYSROOT],
1225 [AC_MSG_CHECKING([for sysroot])
1226 AC_ARG_WITH([sysroot],
1227 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1228 (or the compiler's sysroot if not specified).],
1229 [], [with_sysroot=no])
1230
1231 dnl lt_sysroot will always be passed unquoted. We quote it here
1232 dnl in case the user passed a directory name.
1233 lt_sysroot=
1234 case ${with_sysroot} in #(
1235 yes)
1236 if test "$GCC" = yes; then
1237 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1238 fi
1239 ;; #(
1240 /*)
1241 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1242 ;; #(
1243 no|'')
1244 ;; #(
1245 *)
1246 AC_MSG_RESULT([${with_sysroot}])
1247 AC_MSG_ERROR([The sysroot must be an absolute path.])
1248 ;;
1249 esac
1250
1251 AC_MSG_RESULT([${lt_sysroot:-no}])
1252 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1253 [dependent libraries, and in which our libraries should be installed.])])
1254
1255 # _LT_ENABLE_LOCK
1256 # ---------------
1257 m4_defun([_LT_ENABLE_LOCK],
1258 [AC_ARG_ENABLE([libtool-lock],
1259 [AS_HELP_STRING([--disable-libtool-lock],
1260 [avoid locking (might break parallel builds)])])
1261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1262
1263 # Some flags need to be propagated to the compiler or linker for good
1264 # libtool support.
1265 case $host in
1266 ia64-*-hpux*)
1267 # Find out which ABI we are using.
1268 echo 'int i;' > conftest.$ac_ext
1269 if AC_TRY_EVAL(ac_compile); then
1270 case `/usr/bin/file conftest.$ac_objext` in
1271 *ELF-32*)
1272 HPUX_IA64_MODE="32"
1273 ;;
1274 *ELF-64*)
1275 HPUX_IA64_MODE="64"
1276 ;;
1277 esac
1278 fi
1279 rm -rf conftest*
1280 ;;
1281 *-*-irix6*)
1282 # Find out which ABI we are using.
1283 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1284 if AC_TRY_EVAL(ac_compile); then
1285 if test "$lt_cv_prog_gnu_ld" = yes; then
1286 case `/usr/bin/file conftest.$ac_objext` in
1287 *32-bit*)
1288 LD="${LD-ld} -melf32bsmip"
1289 ;;
1290 *N32*)
1291 LD="${LD-ld} -melf32bmipn32"
1292 ;;
1293 *64-bit*)
1294 LD="${LD-ld} -melf64bmip"
1295 ;;
1296 esac
1297 else
1298 case `/usr/bin/file conftest.$ac_objext` in
1299 *32-bit*)
1300 LD="${LD-ld} -32"
1301 ;;
1302 *N32*)
1303 LD="${LD-ld} -n32"
1304 ;;
1305 *64-bit*)
1306 LD="${LD-ld} -64"
1307 ;;
1308 esac
1309 fi
1310 fi
1311 rm -rf conftest*
1312 ;;
1313
1314 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1315 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1316 # Find out which ABI we are using.
1317 echo 'int i;' > conftest.$ac_ext
1318 if AC_TRY_EVAL(ac_compile); then
1319 case `/usr/bin/file conftest.o` in
1320 *32-bit*)
1321 case $host in
1322 x86_64-*kfreebsd*-gnu)
1323 LD="${LD-ld} -m elf_i386_fbsd"
1324 ;;
1325 x86_64-*linux*)
1326 LD="${LD-ld} -m elf_i386"
1327 ;;
1328 powerpcle-*linux*)
1329 LD="${LD-ld} -m elf32lppclinux"
1330 ;;
1331 powerpc-*linux*)
1332 LD="${LD-ld} -m elf32ppclinux"
1333 ;;
1334 s390x-*linux*)
1335 LD="${LD-ld} -m elf_s390"
1336 ;;
1337 sparc64-*linux*)
1338 LD="${LD-ld} -m elf32_sparc"
1339 ;;
1340 esac
1341 ;;
1342 *64-bit*)
1343 case $host in
1344 x86_64-*kfreebsd*-gnu)
1345 LD="${LD-ld} -m elf_x86_64_fbsd"
1346 ;;
1347 x86_64-*linux*)
1348 LD="${LD-ld} -m elf_x86_64"
1349 ;;
1350 powerpcle-*linux*)
1351 LD="${LD-ld} -m elf64lppc"
1352 ;;
1353 powerpc-*linux*)
1354 LD="${LD-ld} -m elf64ppc"
1355 ;;
1356 s390*-*linux*|s390*-*tpf*)
1357 LD="${LD-ld} -m elf64_s390"
1358 ;;
1359 sparc*-*linux*)
1360 LD="${LD-ld} -m elf64_sparc"
1361 ;;
1362 esac
1363 ;;
1364 esac
1365 fi
1366 rm -rf conftest*
1367 ;;
1368
1369 *-*-sco3.2v5*)
1370 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1371 SAVE_CFLAGS="$CFLAGS"
1372 CFLAGS="$CFLAGS -belf"
1373 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1374 [AC_LANG_PUSH(C)
1375 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1376 AC_LANG_POP])
1377 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1379 CFLAGS="$SAVE_CFLAGS"
1380 fi
1381 ;;
1382 *-*solaris*)
1383 # Find out which ABI we are using.
1384 echo 'int i;' > conftest.$ac_ext
1385 if AC_TRY_EVAL(ac_compile); then
1386 case `/usr/bin/file conftest.o` in
1387 *64-bit*)
1388 case $lt_cv_prog_gnu_ld in
1389 yes*)
1390 case $host in
1391 i?86-*-solaris*)
1392 LD="${LD-ld} -m elf_x86_64"
1393 ;;
1394 sparc*-*-solaris*)
1395 LD="${LD-ld} -m elf64_sparc"
1396 ;;
1397 esac
1398 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1399 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1400 LD="${LD-ld}_sol2"
1401 fi
1402 ;;
1403 *)
1404 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1405 LD="${LD-ld} -64"
1406 fi
1407 ;;
1408 esac
1409 ;;
1410 esac
1411 fi
1412 rm -rf conftest*
1413 ;;
1414 esac
1415
1416 need_locks="$enable_libtool_lock"
1417 ])# _LT_ENABLE_LOCK
1418
1419
1420 # _LT_PROG_AR
1421 # -----------
1422 m4_defun([_LT_PROG_AR],
1423 [AC_CHECK_TOOLS(AR, [ar], false)
1424 : ${AR=ar}
1425 : ${AR_FLAGS=cru}
1426 _LT_DECL([], [AR], [1], [The archiver])
1427 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1428
1429 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1430 [lt_cv_ar_at_file=no
1431 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1432 [echo conftest.$ac_objext > conftest.lst
1433 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1434 AC_TRY_EVAL([lt_ar_try])
1435 if test "$ac_status" -eq 0; then
1436 # Ensure the archiver fails upon bogus file names.
1437 rm -f conftest.$ac_objext libconftest.a
1438 AC_TRY_EVAL([lt_ar_try])
1439 if test "$ac_status" -ne 0; then
1440 lt_cv_ar_at_file=@
1441 fi
1442 fi
1443 rm -f conftest.* libconftest.a
1444 ])
1445 ])
1446
1447 if test "x$lt_cv_ar_at_file" = xno; then
1448 archiver_list_spec=
1449 else
1450 archiver_list_spec=$lt_cv_ar_at_file
1451 fi
1452 _LT_DECL([], [archiver_list_spec], [1],
1453 [How to feed a file listing to the archiver])
1454 ])# _LT_PROG_AR
1455
1456
1457 # _LT_CMD_OLD_ARCHIVE
1458 # -------------------
1459 m4_defun([_LT_CMD_OLD_ARCHIVE],
1460 [_LT_PROG_AR
1461
1462 AC_CHECK_TOOL(STRIP, strip, :)
1463 test -z "$STRIP" && STRIP=:
1464 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1465
1466 AC_CHECK_TOOL(RANLIB, ranlib, :)
1467 test -z "$RANLIB" && RANLIB=:
1468 _LT_DECL([], [RANLIB], [1],
1469 [Commands used to install an old-style archive])
1470
1471 # Determine commands to create old-style static archives.
1472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1473 old_postinstall_cmds='chmod 644 $oldlib'
1474 old_postuninstall_cmds=
1475
1476 if test -n "$RANLIB"; then
1477 case $host_os in
1478 openbsd*)
1479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1480 ;;
1481 *)
1482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1483 ;;
1484 esac
1485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1486 fi
1487
1488 case $host_os in
1489 darwin*)
1490 lock_old_archive_extraction=yes ;;
1491 *)
1492 lock_old_archive_extraction=no ;;
1493 esac
1494 _LT_DECL([], [old_postinstall_cmds], [2])
1495 _LT_DECL([], [old_postuninstall_cmds], [2])
1496 _LT_TAGDECL([], [old_archive_cmds], [2],
1497 [Commands used to build an old-style archive])
1498 _LT_DECL([], [lock_old_archive_extraction], [0],
1499 [Whether to use a lock for old archive extraction])
1500 ])# _LT_CMD_OLD_ARCHIVE
1501
1502
1503 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1504 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1505 # ----------------------------------------------------------------
1506 # Check whether the given compiler option works
1507 AC_DEFUN([_LT_COMPILER_OPTION],
1508 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1509 m4_require([_LT_DECL_SED])dnl
1510 AC_CACHE_CHECK([$1], [$2],
1511 [$2=no
1512 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1514 lt_compiler_flag="$3"
1515 # Insert the option either (1) after the last *FLAGS variable, or
1516 # (2) before a word containing "conftest.", or (3) at the end.
1517 # Note that $ac_compile itself does not contain backslashes and begins
1518 # with a dollar sign (not a hyphen), so the echo should work correctly.
1519 # The option is referenced via a variable to avoid confusing sed.
1520 lt_compile=`echo "$ac_compile" | $SED \
1521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1522 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1523 -e 's:$: $lt_compiler_flag:'`
1524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1525 (eval "$lt_compile" 2>conftest.err)
1526 ac_status=$?
1527 cat conftest.err >&AS_MESSAGE_LOG_FD
1528 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1529 if (exit $ac_status) && test -s "$ac_outfile"; then
1530 # The compiler can only warn and ignore the option if not recognized
1531 # So say no if there are warnings other than the usual output.
1532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1535 $2=yes
1536 fi
1537 fi
1538 $RM conftest*
1539 ])
1540
1541 if test x"[$]$2" = xyes; then
1542 m4_if([$5], , :, [$5])
1543 else
1544 m4_if([$6], , :, [$6])
1545 fi
1546 ])# _LT_COMPILER_OPTION
1547
1548 # Old name:
1549 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1550 dnl aclocal-1.4 backwards compatibility:
1551 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1552
1553
1554 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1555 # [ACTION-SUCCESS], [ACTION-FAILURE])
1556 # ----------------------------------------------------
1557 # Check whether the given linker option works
1558 AC_DEFUN([_LT_LINKER_OPTION],
1559 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1560 m4_require([_LT_DECL_SED])dnl
1561 AC_CACHE_CHECK([$1], [$2],
1562 [$2=no
1563 save_LDFLAGS="$LDFLAGS"
1564 LDFLAGS="$LDFLAGS $3"
1565 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1566 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1567 # The linker can only warn and ignore the option if not recognized
1568 # So say no if there are warnings
1569 if test -s conftest.err; then
1570 # Append any errors to the config.log.
1571 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1572 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1574 if diff conftest.exp conftest.er2 >/dev/null; then
1575 $2=yes
1576 fi
1577 else
1578 $2=yes
1579 fi
1580 fi
1581 $RM -r conftest*
1582 LDFLAGS="$save_LDFLAGS"
1583 ])
1584
1585 if test x"[$]$2" = xyes; then
1586 m4_if([$4], , :, [$4])
1587 else
1588 m4_if([$5], , :, [$5])
1589 fi
1590 ])# _LT_LINKER_OPTION
1591
1592 # Old name:
1593 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1594 dnl aclocal-1.4 backwards compatibility:
1595 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1596
1597
1598 # LT_CMD_MAX_LEN
1599 #---------------
1600 AC_DEFUN([LT_CMD_MAX_LEN],
1601 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1602 # find the maximum length of command line arguments
1603 AC_MSG_CHECKING([the maximum length of command line arguments])
1604 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1605 i=0
1606 teststring="ABCD"
1607
1608 case $build_os in
1609 msdosdjgpp*)
1610 # On DJGPP, this test can blow up pretty badly due to problems in libc
1611 # (any single argument exceeding 2000 bytes causes a buffer overrun
1612 # during glob expansion). Even if it were fixed, the result of this
1613 # check would be larger than it should be.
1614 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1615 ;;
1616
1617 gnu*)
1618 # Under GNU Hurd, this test is not required because there is
1619 # no limit to the length of command line arguments.
1620 # Libtool will interpret -1 as no limit whatsoever
1621 lt_cv_sys_max_cmd_len=-1;
1622 ;;
1623
1624 cygwin* | mingw* | cegcc*)
1625 # On Win9x/ME, this test blows up -- it succeeds, but takes
1626 # about 5 minutes as the teststring grows exponentially.
1627 # Worse, since 9x/ME are not pre-emptively multitasking,
1628 # you end up with a "frozen" computer, even though with patience
1629 # the test eventually succeeds (with a max line length of 256k).
1630 # Instead, let's just punt: use the minimum linelength reported by
1631 # all of the supported platforms: 8192 (on NT/2K/XP).
1632 lt_cv_sys_max_cmd_len=8192;
1633 ;;
1634
1635 mint*)
1636 # On MiNT this can take a long time and run out of memory.
1637 lt_cv_sys_max_cmd_len=8192;
1638 ;;
1639
1640 amigaos*)
1641 # On AmigaOS with pdksh, this test takes hours, literally.
1642 # So we just punt and use a minimum line length of 8192.
1643 lt_cv_sys_max_cmd_len=8192;
1644 ;;
1645
1646 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1647 # This has been around since 386BSD, at least. Likely further.
1648 if test -x /sbin/sysctl; then
1649 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1650 elif test -x /usr/sbin/sysctl; then
1651 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1652 else
1653 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1654 fi
1655 # And add a safety zone
1656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1658 ;;
1659
1660 interix*)
1661 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1662 lt_cv_sys_max_cmd_len=196608
1663 ;;
1664
1665 os2*)
1666 # The test takes a long time on OS/2.
1667 lt_cv_sys_max_cmd_len=8192
1668 ;;
1669
1670 osf*)
1671 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1672 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1673 # nice to cause kernel panics so lets avoid the loop below.
1674 # First set a reasonable default.
1675 lt_cv_sys_max_cmd_len=16384
1676 #
1677 if test -x /sbin/sysconfig; then
1678 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1679 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1680 esac
1681 fi
1682 ;;
1683 sco3.2v5*)
1684 lt_cv_sys_max_cmd_len=102400
1685 ;;
1686 sysv5* | sco5v6* | sysv4.2uw2*)
1687 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1688 if test -n "$kargmax"; then
1689 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1690 else
1691 lt_cv_sys_max_cmd_len=32768
1692 fi
1693 ;;
1694 *)
1695 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1696 if test -n "$lt_cv_sys_max_cmd_len"; then
1697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1699 else
1700 # Make teststring a little bigger before we do anything with it.
1701 # a 1K string should be a reasonable start.
1702 for i in 1 2 3 4 5 6 7 8 ; do
1703 teststring=$teststring$teststring
1704 done
1705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1706 # If test is not a shell built-in, we'll probably end up computing a
1707 # maximum length that is only half of the actual maximum length, but
1708 # we can't tell.
1709 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1710 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1711 test $i != 17 # 1/2 MB should be enough
1712 do
1713 i=`expr $i + 1`
1714 teststring=$teststring$teststring
1715 done
1716 # Only check the string length outside the loop.
1717 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1718 teststring=
1719 # Add a significant safety factor because C++ compilers can tack on
1720 # massive amounts of additional arguments before passing them to the
1721 # linker. It appears as though 1/2 is a usable value.
1722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1723 fi
1724 ;;
1725 esac
1726 ])
1727 if test -n $lt_cv_sys_max_cmd_len ; then
1728 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1729 else
1730 AC_MSG_RESULT(none)
1731 fi
1732 max_cmd_len=$lt_cv_sys_max_cmd_len
1733 _LT_DECL([], [max_cmd_len], [0],
1734 [What is the maximum length of a command?])
1735 ])# LT_CMD_MAX_LEN
1736
1737 # Old name:
1738 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1739 dnl aclocal-1.4 backwards compatibility:
1740 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1741
1742
1743 # _LT_HEADER_DLFCN
1744 # ----------------
1745 m4_defun([_LT_HEADER_DLFCN],
1746 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1747 ])# _LT_HEADER_DLFCN
1748
1749
1750 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1751 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1752 # ----------------------------------------------------------------
1753 m4_defun([_LT_TRY_DLOPEN_SELF],
1754 [m4_require([_LT_HEADER_DLFCN])dnl
1755 if test "$cross_compiling" = yes; then :
1756 [$4]
1757 else
1758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1759 lt_status=$lt_dlunknown
1760 cat > conftest.$ac_ext <<_LT_EOF
1761 [#line $LINENO "configure"
1762 #include "confdefs.h"
1763
1764 #if HAVE_DLFCN_H
1765 #include <dlfcn.h>
1766 #endif
1767
1768 #include <stdio.h>
1769
1770 #ifdef RTLD_GLOBAL
1771 # define LT_DLGLOBAL RTLD_GLOBAL
1772 #else
1773 # ifdef DL_GLOBAL
1774 # define LT_DLGLOBAL DL_GLOBAL
1775 # else
1776 # define LT_DLGLOBAL 0
1777 # endif
1778 #endif
1779
1780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1781 find out it does not work in some platform. */
1782 #ifndef LT_DLLAZY_OR_NOW
1783 # ifdef RTLD_LAZY
1784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1785 # else
1786 # ifdef DL_LAZY
1787 # define LT_DLLAZY_OR_NOW DL_LAZY
1788 # else
1789 # ifdef RTLD_NOW
1790 # define LT_DLLAZY_OR_NOW RTLD_NOW
1791 # else
1792 # ifdef DL_NOW
1793 # define LT_DLLAZY_OR_NOW DL_NOW
1794 # else
1795 # define LT_DLLAZY_OR_NOW 0
1796 # endif
1797 # endif
1798 # endif
1799 # endif
1800 #endif
1801
1802 /* When -fvisbility=hidden is used, assume the code has been annotated
1803 correspondingly for the symbols needed. */
1804 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1805 int fnord () __attribute__((visibility("default")));
1806 #endif
1807
1808 int fnord () { return 42; }
1809 int main ()
1810 {
1811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1812 int status = $lt_dlunknown;
1813
1814 if (self)
1815 {
1816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1817 else
1818 {
1819 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1820 else puts (dlerror ());
1821 }
1822 /* dlclose (self); */
1823 }
1824 else
1825 puts (dlerror ());
1826
1827 return status;
1828 }]
1829 _LT_EOF
1830 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1831 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1832 lt_status=$?
1833 case x$lt_status in
1834 x$lt_dlno_uscore) $1 ;;
1835 x$lt_dlneed_uscore) $2 ;;
1836 x$lt_dlunknown|x*) $3 ;;
1837 esac
1838 else :
1839 # compilation failed
1840 $3
1841 fi
1842 fi
1843 rm -fr conftest*
1844 ])# _LT_TRY_DLOPEN_SELF
1845
1846
1847 # LT_SYS_DLOPEN_SELF
1848 # ------------------
1849 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1850 [m4_require([_LT_HEADER_DLFCN])dnl
1851 if test "x$enable_dlopen" != xyes; then
1852 enable_dlopen=unknown
1853 enable_dlopen_self=unknown
1854 enable_dlopen_self_static=unknown
1855 else
1856 lt_cv_dlopen=no
1857 lt_cv_dlopen_libs=
1858
1859 case $host_os in
1860 beos*)
1861 lt_cv_dlopen="load_add_on"
1862 lt_cv_dlopen_libs=
1863 lt_cv_dlopen_self=yes
1864 ;;
1865
1866 mingw* | pw32* | cegcc*)
1867 lt_cv_dlopen="LoadLibrary"
1868 lt_cv_dlopen_libs=
1869 ;;
1870
1871 cygwin*)
1872 lt_cv_dlopen="dlopen"
1873 lt_cv_dlopen_libs=
1874 ;;
1875
1876 darwin*)
1877 # if libdl is installed we need to link against it
1878 AC_CHECK_LIB([dl], [dlopen],
1879 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1880 lt_cv_dlopen="dyld"
1881 lt_cv_dlopen_libs=
1882 lt_cv_dlopen_self=yes
1883 ])
1884 ;;
1885
1886 *)
1887 AC_CHECK_FUNC([shl_load],
1888 [lt_cv_dlopen="shl_load"],
1889 [AC_CHECK_LIB([dld], [shl_load],
1890 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1891 [AC_CHECK_FUNC([dlopen],
1892 [lt_cv_dlopen="dlopen"],
1893 [AC_CHECK_LIB([dl], [dlopen],
1894 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1895 [AC_CHECK_LIB([svld], [dlopen],
1896 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1897 [AC_CHECK_LIB([dld], [dld_link],
1898 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1899 ])
1900 ])
1901 ])
1902 ])
1903 ])
1904 ;;
1905 esac
1906
1907 if test "x$lt_cv_dlopen" != xno; then
1908 enable_dlopen=yes
1909 else
1910 enable_dlopen=no
1911 fi
1912
1913 case $lt_cv_dlopen in
1914 dlopen)
1915 save_CPPFLAGS="$CPPFLAGS"
1916 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1917
1918 save_LDFLAGS="$LDFLAGS"
1919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1920
1921 save_LIBS="$LIBS"
1922 LIBS="$lt_cv_dlopen_libs $LIBS"
1923
1924 AC_CACHE_CHECK([whether a program can dlopen itself],
1925 lt_cv_dlopen_self, [dnl
1926 _LT_TRY_DLOPEN_SELF(
1927 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1928 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1929 ])
1930
1931 if test "x$lt_cv_dlopen_self" = xyes; then
1932 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1933 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1934 lt_cv_dlopen_self_static, [dnl
1935 _LT_TRY_DLOPEN_SELF(
1936 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1937 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1938 ])
1939 fi
1940
1941 CPPFLAGS="$save_CPPFLAGS"
1942 LDFLAGS="$save_LDFLAGS"
1943 LIBS="$save_LIBS"
1944 ;;
1945 esac
1946
1947 case $lt_cv_dlopen_self in
1948 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1949 *) enable_dlopen_self=unknown ;;
1950 esac
1951
1952 case $lt_cv_dlopen_self_static in
1953 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1954 *) enable_dlopen_self_static=unknown ;;
1955 esac
1956 fi
1957 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1958 [Whether dlopen is supported])
1959 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1960 [Whether dlopen of programs is supported])
1961 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1962 [Whether dlopen of statically linked programs is supported])
1963 ])# LT_SYS_DLOPEN_SELF
1964
1965 # Old name:
1966 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1967 dnl aclocal-1.4 backwards compatibility:
1968 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1969
1970
1971 # _LT_COMPILER_C_O([TAGNAME])
1972 # ---------------------------
1973 # Check to see if options -c and -o are simultaneously supported by compiler.
1974 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1975 m4_defun([_LT_COMPILER_C_O],
1976 [m4_require([_LT_DECL_SED])dnl
1977 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1978 m4_require([_LT_TAG_COMPILER])dnl
1979 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1980 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1981 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1982 $RM -r conftest 2>/dev/null
1983 mkdir conftest
1984 cd conftest
1985 mkdir out
1986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1987
1988 lt_compiler_flag="-o out/conftest2.$ac_objext"
1989 # Insert the option either (1) after the last *FLAGS variable, or
1990 # (2) before a word containing "conftest.", or (3) at the end.
1991 # Note that $ac_compile itself does not contain backslashes and begins
1992 # with a dollar sign (not a hyphen), so the echo should work correctly.
1993 lt_compile=`echo "$ac_compile" | $SED \
1994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1995 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1996 -e 's:$: $lt_compiler_flag:'`
1997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1998 (eval "$lt_compile" 2>out/conftest.err)
1999 ac_status=$?
2000 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2003 then
2004 # The compiler can only warn and ignore the option if not recognized
2005 # So say no if there are warnings
2006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2009 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2010 fi
2011 fi
2012 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2013 $RM conftest*
2014 # SGI C++ compiler will create directory out/ii_files/ for
2015 # template instantiation
2016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2017 $RM out/* && rmdir out
2018 cd ..
2019 $RM -r conftest
2020 $RM conftest*
2021 ])
2022 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2023 [Does compiler simultaneously support -c and -o options?])
2024 ])# _LT_COMPILER_C_O
2025
2026
2027 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2028 # ----------------------------------
2029 # Check to see if we can do hard links to lock some files if needed
2030 m4_defun([_LT_COMPILER_FILE_LOCKS],
2031 [m4_require([_LT_ENABLE_LOCK])dnl
2032 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2033 _LT_COMPILER_C_O([$1])
2034
2035 hard_links="nottested"
2036 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2037 # do not overwrite the value of need_locks provided by the user
2038 AC_MSG_CHECKING([if we can lock with hard links])
2039 hard_links=yes
2040 $RM conftest*
2041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2042 touch conftest.a
2043 ln conftest.a conftest.b 2>&5 || hard_links=no
2044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2045 AC_MSG_RESULT([$hard_links])
2046 if test "$hard_links" = no; then
2047 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2048 need_locks=warn
2049 fi
2050 else
2051 need_locks=no
2052 fi
2053 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2054 ])# _LT_COMPILER_FILE_LOCKS
2055
2056
2057 # _LT_CHECK_OBJDIR
2058 # ----------------
2059 m4_defun([_LT_CHECK_OBJDIR],
2060 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2061 [rm -f .libs 2>/dev/null
2062 mkdir .libs 2>/dev/null
2063 if test -d .libs; then
2064 lt_cv_objdir=.libs
2065 else
2066 # MS-DOS does not allow filenames that begin with a dot.
2067 lt_cv_objdir=_libs
2068 fi
2069 rmdir .libs 2>/dev/null])
2070 objdir=$lt_cv_objdir
2071 _LT_DECL([], [objdir], [0],
2072 [The name of the directory that contains temporary libtool files])dnl
2073 m4_pattern_allow([LT_OBJDIR])dnl
2074 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2075 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2076 ])# _LT_CHECK_OBJDIR
2077
2078
2079 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2080 # --------------------------------------
2081 # Check hardcoding attributes.
2082 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2083 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2084 _LT_TAGVAR(hardcode_action, $1)=
2085 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2086 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2087 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2088
2089 # We can hardcode non-existent directories.
2090 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2092 # have to relink, otherwise we might link with an installed library
2093 # when we should be linking with a yet-to-be-installed one
2094 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2095 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2096 # Linking always hardcodes the temporary library directory.
2097 _LT_TAGVAR(hardcode_action, $1)=relink
2098 else
2099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2100 _LT_TAGVAR(hardcode_action, $1)=immediate
2101 fi
2102 else
2103 # We cannot hardcode anything, or else we can only hardcode existing
2104 # directories.
2105 _LT_TAGVAR(hardcode_action, $1)=unsupported
2106 fi
2107 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2108
2109 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2110 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2111 # Fast installation is not supported
2112 enable_fast_install=no
2113 elif test "$shlibpath_overrides_runpath" = yes ||
2114 test "$enable_shared" = no; then
2115 # Fast installation is not necessary
2116 enable_fast_install=needless
2117 fi
2118 _LT_TAGDECL([], [hardcode_action], [0],
2119 [How to hardcode a shared library path into an executable])
2120 ])# _LT_LINKER_HARDCODE_LIBPATH
2121
2122
2123 # _LT_CMD_STRIPLIB
2124 # ----------------
2125 m4_defun([_LT_CMD_STRIPLIB],
2126 [m4_require([_LT_DECL_EGREP])
2127 striplib=
2128 old_striplib=
2129 AC_MSG_CHECKING([whether stripping libraries is possible])
2130 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2131 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2132 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2133 AC_MSG_RESULT([yes])
2134 else
2135 # FIXME - insert some real tests, host_os isn't really good enough
2136 case $host_os in
2137 darwin*)
2138 if test -n "$STRIP" ; then
2139 striplib="$STRIP -x"
2140 old_striplib="$STRIP -S"
2141 AC_MSG_RESULT([yes])
2142 else
2143 AC_MSG_RESULT([no])
2144 fi
2145 ;;
2146 *)
2147 AC_MSG_RESULT([no])
2148 ;;
2149 esac
2150 fi
2151 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2152 _LT_DECL([], [striplib], [1])
2153 ])# _LT_CMD_STRIPLIB
2154
2155
2156 # _LT_SYS_DYNAMIC_LINKER([TAG])
2157 # -----------------------------
2158 # PORTME Fill in your ld.so characteristics
2159 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2160 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2161 m4_require([_LT_DECL_EGREP])dnl
2162 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2163 m4_require([_LT_DECL_OBJDUMP])dnl
2164 m4_require([_LT_DECL_SED])dnl
2165 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2166 AC_MSG_CHECKING([dynamic linker characteristics])
2167 m4_if([$1],
2168 [], [
2169 if test "$GCC" = yes; then
2170 case $host_os in
2171 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2172 *) lt_awk_arg="/^libraries:/" ;;
2173 esac
2174 case $host_os in
2175 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2176 *) lt_sed_strip_eq="s,=/,/,g" ;;
2177 esac
2178 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2179 case $lt_search_path_spec in
2180 *\;*)
2181 # if the path contains ";" then we assume it to be the separator
2182 # otherwise default to the standard path separator (i.e. ":") - it is
2183 # assumed that no part of a normal pathname contains ";" but that should
2184 # okay in the real world where ";" in dirpaths is itself problematic.
2185 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2186 ;;
2187 *)
2188 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2189 ;;
2190 esac
2191 # Ok, now we have the path, separated by spaces, we can step through it
2192 # and add multilib dir if necessary.
2193 lt_tmp_lt_search_path_spec=
2194 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2195 for lt_sys_path in $lt_search_path_spec; do
2196 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2197 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2198 else
2199 test -d "$lt_sys_path" && \
2200 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2201 fi
2202 done
2203 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2204 BEGIN {RS=" "; FS="/|\n";} {
2205 lt_foo="";
2206 lt_count=0;
2207 for (lt_i = NF; lt_i > 0; lt_i--) {
2208 if ($lt_i != "" && $lt_i != ".") {
2209 if ($lt_i == "..") {
2210 lt_count++;
2211 } else {
2212 if (lt_count == 0) {
2213 lt_foo="/" $lt_i lt_foo;
2214 } else {
2215 lt_count--;
2216 }
2217 }
2218 }
2219 }
2220 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2221 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2222 }'`
2223 # AWK program above erroneously prepends '/' to C:/dos/paths
2224 # for these hosts.
2225 case $host_os in
2226 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2227 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2228 esac
2229 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2230 else
2231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2232 fi])
2233 library_names_spec=
2234 libname_spec='lib$name'
2235 soname_spec=
2236 shrext_cmds=".so"
2237 postinstall_cmds=
2238 postuninstall_cmds=
2239 finish_cmds=
2240 finish_eval=
2241 shlibpath_var=
2242 shlibpath_overrides_runpath=unknown
2243 version_type=none
2244 dynamic_linker="$host_os ld.so"
2245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2246 need_lib_prefix=unknown
2247 hardcode_into_libs=no
2248
2249 # when you set need_version to no, make sure it does not cause -set_version
2250 # flags to be left without arguments
2251 need_version=unknown
2252
2253 case $host_os in
2254 aix3*)
2255 version_type=linux # correct to gnu/linux during the next big refactor
2256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2257 shlibpath_var=LIBPATH
2258
2259 # AIX 3 has no versioning support, so we append a major version to the name.
2260 soname_spec='${libname}${release}${shared_ext}$major'
2261 ;;
2262
2263 aix[[4-9]]*)
2264 version_type=linux # correct to gnu/linux during the next big refactor
2265 need_lib_prefix=no
2266 need_version=no
2267 hardcode_into_libs=yes
2268 if test "$host_cpu" = ia64; then
2269 # AIX 5 supports IA64
2270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2271 shlibpath_var=LD_LIBRARY_PATH
2272 else
2273 # With GCC up to 2.95.x, collect2 would create an import file
2274 # for dependence libraries. The import file would start with
2275 # the line `#! .'. This would cause the generated library to
2276 # depend on `.', always an invalid library. This was fixed in
2277 # development snapshots of GCC prior to 3.0.
2278 case $host_os in
2279 aix4 | aix4.[[01]] | aix4.[[01]].*)
2280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2281 echo ' yes '
2282 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2283 :
2284 else
2285 can_build_shared=no
2286 fi
2287 ;;
2288 esac
2289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2290 # soname into executable. Probably we can add versioning support to
2291 # collect2, so additional links can be useful in future.
2292 if test "$aix_use_runtimelinking" = yes; then
2293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2294 # instead of lib<name>.a to let people know that these are not
2295 # typical AIX shared libraries.
2296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2297 else
2298 # We preserve .a as extension for shared libraries through AIX4.2
2299 # and later when we are not doing run time linking.
2300 library_names_spec='${libname}${release}.a $libname.a'
2301 soname_spec='${libname}${release}${shared_ext}$major'
2302 fi
2303 shlibpath_var=LIBPATH
2304 fi
2305 ;;
2306
2307 amigaos*)
2308 case $host_cpu in
2309 powerpc)
2310 # Since July 2007 AmigaOS4 officially supports .so libraries.
2311 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2313 ;;
2314 m68k)
2315 library_names_spec='$libname.ixlibrary $libname.a'
2316 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2317 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'
2318 ;;
2319 esac
2320 ;;
2321
2322 beos*)
2323 library_names_spec='${libname}${shared_ext}'
2324 dynamic_linker="$host_os ld.so"
2325 shlibpath_var=LIBRARY_PATH
2326 ;;
2327
2328 bsdi[[45]]*)
2329 version_type=linux # correct to gnu/linux during the next big refactor
2330 need_version=no
2331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2332 soname_spec='${libname}${release}${shared_ext}$major'
2333 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2334 shlibpath_var=LD_LIBRARY_PATH
2335 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2336 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2337 # the default ld.so.conf also contains /usr/contrib/lib and
2338 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2339 # libtool to hard-code these into programs
2340 ;;
2341
2342 cygwin* | mingw* | pw32* | cegcc*)
2343 version_type=windows
2344 shrext_cmds=".dll"
2345 need_version=no
2346 need_lib_prefix=no
2347
2348 case $GCC,$cc_basename in
2349 yes,*)
2350 # gcc
2351 library_names_spec='$libname.dll.a'
2352 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2353 postinstall_cmds='base_file=`basename \${file}`~
2354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2355 dldir=$destdir/`dirname \$dlpath`~
2356 test -d \$dldir || mkdir -p \$dldir~
2357 $install_prog $dir/$dlname \$dldir/$dlname~
2358 chmod a+x \$dldir/$dlname~
2359 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2360 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2361 fi'
2362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2363 dlpath=$dir/\$dldll~
2364 $RM \$dlpath'
2365 shlibpath_overrides_runpath=yes
2366
2367 case $host_os in
2368 cygwin*)
2369 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2370 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2371 m4_if([$1], [],[
2372 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2373 ;;
2374 mingw* | cegcc*)
2375 # MinGW DLLs use traditional 'lib' prefix
2376 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2377 ;;
2378 pw32*)
2379 # pw32 DLLs use 'pw' prefix rather than 'lib'
2380 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2381 ;;
2382 esac
2383 dynamic_linker='Win32 ld.exe'
2384 ;;
2385
2386 *,cl*)
2387 # Native MSVC
2388 libname_spec='$name'
2389 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2390 library_names_spec='${libname}.dll.lib'
2391
2392 case $build_os in
2393 mingw*)
2394 sys_lib_search_path_spec=
2395 lt_save_ifs=$IFS
2396 IFS=';'
2397 for lt_path in $LIB
2398 do
2399 IFS=$lt_save_ifs
2400 # Let DOS variable expansion print the short 8.3 style file name.
2401 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2402 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2403 done
2404 IFS=$lt_save_ifs
2405 # Convert to MSYS style.
2406 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2407 ;;
2408 cygwin*)
2409 # Convert to unix form, then to dos form, then back to unix form
2410 # but this time dos style (no spaces!) so that the unix form looks
2411 # like /cygdrive/c/PROGRA~1:/cygdr...
2412 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2413 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2414 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2415 ;;
2416 *)
2417 sys_lib_search_path_spec="$LIB"
2418 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2419 # It is most probably a Windows format PATH.
2420 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2421 else
2422 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2423 fi
2424 # FIXME: find the short name or the path components, as spaces are
2425 # common. (e.g. "Program Files" -> "PROGRA~1")
2426 ;;
2427 esac
2428
2429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2430 postinstall_cmds='base_file=`basename \${file}`~
2431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2432 dldir=$destdir/`dirname \$dlpath`~
2433 test -d \$dldir || mkdir -p \$dldir~
2434 $install_prog $dir/$dlname \$dldir/$dlname'
2435 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2436 dlpath=$dir/\$dldll~
2437 $RM \$dlpath'
2438 shlibpath_overrides_runpath=yes
2439 dynamic_linker='Win32 link.exe'
2440 ;;
2441
2442 *)
2443 # Assume MSVC wrapper
2444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2445 dynamic_linker='Win32 ld.exe'
2446 ;;
2447 esac
2448 # FIXME: first we should search . and the directory the executable is in
2449 shlibpath_var=PATH
2450 ;;
2451
2452 darwin* | rhapsody*)
2453 dynamic_linker="$host_os dyld"
2454 version_type=darwin
2455 need_lib_prefix=no
2456 need_version=no
2457 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2458 soname_spec='${libname}${release}${major}$shared_ext'
2459 shlibpath_overrides_runpath=yes
2460 shlibpath_var=DYLD_LIBRARY_PATH
2461 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2462 m4_if([$1], [],[
2463 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2464 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2465 ;;
2466
2467 dgux*)
2468 version_type=linux # correct to gnu/linux during the next big refactor
2469 need_lib_prefix=no
2470 need_version=no
2471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2472 soname_spec='${libname}${release}${shared_ext}$major'
2473 shlibpath_var=LD_LIBRARY_PATH
2474 ;;
2475
2476 freebsd* | dragonfly*)
2477 # DragonFly does not have aout. When/if they implement a new
2478 # versioning mechanism, adjust this.
2479 if test -x /usr/bin/objformat; then
2480 objformat=`/usr/bin/objformat`
2481 else
2482 case $host_os in
2483 freebsd[[23]].*) objformat=aout ;;
2484 *) objformat=elf ;;
2485 esac
2486 fi
2487 version_type=freebsd-$objformat
2488 case $version_type in
2489 freebsd-elf*)
2490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2491 need_version=no
2492 need_lib_prefix=no
2493 ;;
2494 freebsd-*)
2495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2496 need_version=yes
2497 ;;
2498 esac
2499 shlibpath_var=LD_LIBRARY_PATH
2500 case $host_os in
2501 freebsd2.*)
2502 shlibpath_overrides_runpath=yes
2503 ;;
2504 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2505 shlibpath_overrides_runpath=yes
2506 hardcode_into_libs=yes
2507 ;;
2508 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2509 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2510 shlibpath_overrides_runpath=no
2511 hardcode_into_libs=yes
2512 ;;
2513 *) # from 4.6 on, and DragonFly
2514 shlibpath_overrides_runpath=yes
2515 hardcode_into_libs=yes
2516 ;;
2517 esac
2518 ;;
2519
2520 gnu*)
2521 version_type=linux # correct to gnu/linux during the next big refactor
2522 need_lib_prefix=no
2523 need_version=no
2524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2525 soname_spec='${libname}${release}${shared_ext}$major'
2526 shlibpath_var=LD_LIBRARY_PATH
2527 shlibpath_overrides_runpath=no
2528 hardcode_into_libs=yes
2529 ;;
2530
2531 haiku*)
2532 version_type=linux # correct to gnu/linux during the next big refactor
2533 need_lib_prefix=no
2534 need_version=no
2535 dynamic_linker="$host_os runtime_loader"
2536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2537 soname_spec='${libname}${release}${shared_ext}$major'
2538 shlibpath_var=LIBRARY_PATH
2539 shlibpath_overrides_runpath=yes
2540 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2541 hardcode_into_libs=yes
2542 ;;
2543
2544 hpux9* | hpux10* | hpux11*)
2545 # Give a soname corresponding to the major version so that dld.sl refuses to
2546 # link against other versions.
2547 version_type=sunos
2548 need_lib_prefix=no
2549 need_version=no
2550 case $host_cpu in
2551 ia64*)
2552 shrext_cmds='.so'
2553 hardcode_into_libs=yes
2554 dynamic_linker="$host_os dld.so"
2555 shlibpath_var=LD_LIBRARY_PATH
2556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2558 soname_spec='${libname}${release}${shared_ext}$major'
2559 if test "X$HPUX_IA64_MODE" = X32; then
2560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2561 else
2562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2563 fi
2564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2565 ;;
2566 hppa*64*)
2567 shrext_cmds='.sl'
2568 hardcode_into_libs=yes
2569 dynamic_linker="$host_os dld.sl"
2570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2573 soname_spec='${libname}${release}${shared_ext}$major'
2574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2576 ;;
2577 *)
2578 shrext_cmds='.sl'
2579 dynamic_linker="$host_os dld.sl"
2580 shlibpath_var=SHLIB_PATH
2581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2583 soname_spec='${libname}${release}${shared_ext}$major'
2584 ;;
2585 esac
2586 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2587 postinstall_cmds='chmod 555 $lib'
2588 # or fails outright, so override atomically:
2589 install_override_mode=555
2590 ;;
2591
2592 interix[[3-9]]*)
2593 version_type=linux # correct to gnu/linux during the next big refactor
2594 need_lib_prefix=no
2595 need_version=no
2596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2597 soname_spec='${libname}${release}${shared_ext}$major'
2598 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2599 shlibpath_var=LD_LIBRARY_PATH
2600 shlibpath_overrides_runpath=no
2601 hardcode_into_libs=yes
2602 ;;
2603
2604 irix5* | irix6* | nonstopux*)
2605 case $host_os in
2606 nonstopux*) version_type=nonstopux ;;
2607 *)
2608 if test "$lt_cv_prog_gnu_ld" = yes; then
2609 version_type=linux # correct to gnu/linux during the next big refactor
2610 else
2611 version_type=irix
2612 fi ;;
2613 esac
2614 need_lib_prefix=no
2615 need_version=no
2616 soname_spec='${libname}${release}${shared_ext}$major'
2617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2618 case $host_os in
2619 irix5* | nonstopux*)
2620 libsuff= shlibsuff=
2621 ;;
2622 *)
2623 case $LD in # libtool.m4 will add one of these switches to LD
2624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2625 libsuff= shlibsuff= libmagic=32-bit;;
2626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2627 libsuff=32 shlibsuff=N32 libmagic=N32;;
2628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2629 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2630 *) libsuff= shlibsuff= libmagic=never-match;;
2631 esac
2632 ;;
2633 esac
2634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2635 shlibpath_overrides_runpath=no
2636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2638 hardcode_into_libs=yes
2639 ;;
2640
2641 # No shared lib support for Linux oldld, aout, or coff.
2642 linux*oldld* | linux*aout* | linux*coff*)
2643 dynamic_linker=no
2644 ;;
2645
2646 # This must be glibc/ELF.
2647 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2648 version_type=linux # correct to gnu/linux during the next big refactor
2649 need_lib_prefix=no
2650 need_version=no
2651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2652 soname_spec='${libname}${release}${shared_ext}$major'
2653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2654 shlibpath_var=LD_LIBRARY_PATH
2655 shlibpath_overrides_runpath=no
2656
2657 # Some binutils ld are patched to set DT_RUNPATH
2658 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2659 [lt_cv_shlibpath_overrides_runpath=no
2660 save_LDFLAGS=$LDFLAGS
2661 save_libdir=$libdir
2662 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2663 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2664 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2665 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2666 [lt_cv_shlibpath_overrides_runpath=yes])])
2667 LDFLAGS=$save_LDFLAGS
2668 libdir=$save_libdir
2669 ])
2670 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2671
2672 # This implies no fast_install, which is unacceptable.
2673 # Some rework will be needed to allow for fast_install
2674 # before this can be enabled.
2675 hardcode_into_libs=yes
2676
2677 # Add ABI-specific directories to the system library path.
2678 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2679
2680 # Append ld.so.conf contents to the search path
2681 if test -f /etc/ld.so.conf; then
2682 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' ' '`
2683 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2684
2685 fi
2686
2687 # We used to test for /lib/ld.so.1 and disable shared libraries on
2688 # powerpc, because MkLinux only supported shared libraries with the
2689 # GNU dynamic linker. Since this was broken with cross compilers,
2690 # most powerpc-linux boxes support dynamic linking these days and
2691 # people can always --disable-shared, the test was removed, and we
2692 # assume the GNU/Linux dynamic linker is in use.
2693 dynamic_linker='GNU/Linux ld.so'
2694 ;;
2695
2696 netbsd*)
2697 version_type=sunos
2698 need_lib_prefix=no
2699 need_version=no
2700 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2703 dynamic_linker='NetBSD (a.out) ld.so'
2704 else
2705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2706 soname_spec='${libname}${release}${shared_ext}$major'
2707 dynamic_linker='NetBSD ld.elf_so'
2708 fi
2709 shlibpath_var=LD_LIBRARY_PATH
2710 shlibpath_overrides_runpath=yes
2711 hardcode_into_libs=yes
2712 ;;
2713
2714 newsos6)
2715 version_type=linux # correct to gnu/linux during the next big refactor
2716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2717 shlibpath_var=LD_LIBRARY_PATH
2718 shlibpath_overrides_runpath=yes
2719 ;;
2720
2721 *nto* | *qnx*)
2722 version_type=qnx
2723 need_lib_prefix=no
2724 need_version=no
2725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2726 soname_spec='${libname}${release}${shared_ext}$major'
2727 shlibpath_var=LD_LIBRARY_PATH
2728 shlibpath_overrides_runpath=no
2729 hardcode_into_libs=yes
2730 dynamic_linker='ldqnx.so'
2731 ;;
2732
2733 openbsd*)
2734 version_type=sunos
2735 sys_lib_dlsearch_path_spec="/usr/lib"
2736 need_lib_prefix=no
2737 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2738 case $host_os in
2739 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2740 *) need_version=no ;;
2741 esac
2742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2744 shlibpath_var=LD_LIBRARY_PATH
2745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2746 case $host_os in
2747 openbsd2.[[89]] | openbsd2.[[89]].*)
2748 shlibpath_overrides_runpath=no
2749 ;;
2750 *)
2751 shlibpath_overrides_runpath=yes
2752 ;;
2753 esac
2754 else
2755 shlibpath_overrides_runpath=yes
2756 fi
2757 ;;
2758
2759 os2*)
2760 libname_spec='$name'
2761 shrext_cmds=".dll"
2762 need_lib_prefix=no
2763 library_names_spec='$libname${shared_ext} $libname.a'
2764 dynamic_linker='OS/2 ld.exe'
2765 shlibpath_var=LIBPATH
2766 ;;
2767
2768 osf3* | osf4* | osf5*)
2769 version_type=osf
2770 need_lib_prefix=no
2771 need_version=no
2772 soname_spec='${libname}${release}${shared_ext}$major'
2773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2774 shlibpath_var=LD_LIBRARY_PATH
2775 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2776 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2777 ;;
2778
2779 rdos*)
2780 dynamic_linker=no
2781 ;;
2782
2783 solaris*)
2784 version_type=linux # correct to gnu/linux during the next big refactor
2785 need_lib_prefix=no
2786 need_version=no
2787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2788 soname_spec='${libname}${release}${shared_ext}$major'
2789 shlibpath_var=LD_LIBRARY_PATH
2790 shlibpath_overrides_runpath=yes
2791 hardcode_into_libs=yes
2792 # ldd complains unless libraries are executable
2793 postinstall_cmds='chmod +x $lib'
2794 ;;
2795
2796 sunos4*)
2797 version_type=sunos
2798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2799 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2800 shlibpath_var=LD_LIBRARY_PATH
2801 shlibpath_overrides_runpath=yes
2802 if test "$with_gnu_ld" = yes; then
2803 need_lib_prefix=no
2804 fi
2805 need_version=yes
2806 ;;
2807
2808 sysv4 | sysv4.3*)
2809 version_type=linux # correct to gnu/linux during the next big refactor
2810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2811 soname_spec='${libname}${release}${shared_ext}$major'
2812 shlibpath_var=LD_LIBRARY_PATH
2813 case $host_vendor in
2814 sni)
2815 shlibpath_overrides_runpath=no
2816 need_lib_prefix=no
2817 runpath_var=LD_RUN_PATH
2818 ;;
2819 siemens)
2820 need_lib_prefix=no
2821 ;;
2822 motorola)
2823 need_lib_prefix=no
2824 need_version=no
2825 shlibpath_overrides_runpath=no
2826 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2827 ;;
2828 esac
2829 ;;
2830
2831 sysv4*MP*)
2832 if test -d /usr/nec ;then
2833 version_type=linux # correct to gnu/linux during the next big refactor
2834 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2835 soname_spec='$libname${shared_ext}.$major'
2836 shlibpath_var=LD_LIBRARY_PATH
2837 fi
2838 ;;
2839
2840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2841 version_type=freebsd-elf
2842 need_lib_prefix=no
2843 need_version=no
2844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2845 soname_spec='${libname}${release}${shared_ext}$major'
2846 shlibpath_var=LD_LIBRARY_PATH
2847 shlibpath_overrides_runpath=yes
2848 hardcode_into_libs=yes
2849 if test "$with_gnu_ld" = yes; then
2850 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2851 else
2852 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2853 case $host_os in
2854 sco3.2v5*)
2855 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2856 ;;
2857 esac
2858 fi
2859 sys_lib_dlsearch_path_spec='/usr/lib'
2860 ;;
2861
2862 tpf*)
2863 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2864 version_type=linux # correct to gnu/linux during the next big refactor
2865 need_lib_prefix=no
2866 need_version=no
2867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2868 shlibpath_var=LD_LIBRARY_PATH
2869 shlibpath_overrides_runpath=no
2870 hardcode_into_libs=yes
2871 ;;
2872
2873 uts4*)
2874 version_type=linux # correct to gnu/linux during the next big refactor
2875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2876 soname_spec='${libname}${release}${shared_ext}$major'
2877 shlibpath_var=LD_LIBRARY_PATH
2878 ;;
2879
2880 *)
2881 dynamic_linker=no
2882 ;;
2883 esac
2884 AC_MSG_RESULT([$dynamic_linker])
2885 test "$dynamic_linker" = no && can_build_shared=no
2886
2887 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2888 if test "$GCC" = yes; then
2889 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2890 fi
2891
2892 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2893 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2894 fi
2895 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2896 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2897 fi
2898
2899 _LT_DECL([], [variables_saved_for_relink], [1],
2900 [Variables whose values should be saved in libtool wrapper scripts and
2901 restored at link time])
2902 _LT_DECL([], [need_lib_prefix], [0],
2903 [Do we need the "lib" prefix for modules?])
2904 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2905 _LT_DECL([], [version_type], [0], [Library versioning type])
2906 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2907 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2908 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2909 [Is shlibpath searched before the hard-coded library search path?])
2910 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2911 _LT_DECL([], [library_names_spec], [1],
2912 [[List of archive names. First name is the real one, the rest are links.
2913 The last name is the one that the linker finds with -lNAME]])
2914 _LT_DECL([], [soname_spec], [1],
2915 [[The coded name of the library, if different from the real name]])
2916 _LT_DECL([], [install_override_mode], [1],
2917 [Permission mode override for installation of shared libraries])
2918 _LT_DECL([], [postinstall_cmds], [2],
2919 [Command to use after installation of a shared archive])
2920 _LT_DECL([], [postuninstall_cmds], [2],
2921 [Command to use after uninstallation of a shared archive])
2922 _LT_DECL([], [finish_cmds], [2],
2923 [Commands used to finish a libtool library installation in a directory])
2924 _LT_DECL([], [finish_eval], [1],
2925 [[As "finish_cmds", except a single script fragment to be evaled but
2926 not shown]])
2927 _LT_DECL([], [hardcode_into_libs], [0],
2928 [Whether we should hardcode library paths into libraries])
2929 _LT_DECL([], [sys_lib_search_path_spec], [2],
2930 [Compile-time system search path for libraries])
2931 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2932 [Run-time system search path for libraries])
2933 ])# _LT_SYS_DYNAMIC_LINKER
2934
2935
2936 # _LT_PATH_TOOL_PREFIX(TOOL)
2937 # --------------------------
2938 # find a file program which can recognize shared library
2939 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2940 [m4_require([_LT_DECL_EGREP])dnl
2941 AC_MSG_CHECKING([for $1])
2942 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2943 [case $MAGIC_CMD in
2944 [[\\/*] | ?:[\\/]*])
2945 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2946 ;;
2947 *)
2948 lt_save_MAGIC_CMD="$MAGIC_CMD"
2949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2950 dnl $ac_dummy forces splitting on constant user-supplied paths.
2951 dnl POSIX.2 word splitting is done only on the output of word expansions,
2952 dnl not every word. This closes a longstanding sh security hole.
2953 ac_dummy="m4_if([$2], , $PATH, [$2])"
2954 for ac_dir in $ac_dummy; do
2955 IFS="$lt_save_ifs"
2956 test -z "$ac_dir" && ac_dir=.
2957 if test -f $ac_dir/$1; then
2958 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2959 if test -n "$file_magic_test_file"; then
2960 case $deplibs_check_method in
2961 "file_magic "*)
2962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2965 $EGREP "$file_magic_regex" > /dev/null; then
2966 :
2967 else
2968 cat <<_LT_EOF 1>&2
2969
2970 *** Warning: the command libtool uses to detect shared libraries,
2971 *** $file_magic_cmd, produces output that libtool cannot recognize.
2972 *** The result is that libtool may fail to recognize shared libraries
2973 *** as such. This will affect the creation of libtool libraries that
2974 *** depend on shared libraries, but programs linked with such libtool
2975 *** libraries will work regardless of this problem. Nevertheless, you
2976 *** may want to report the problem to your system manager and/or to
2977 *** bug-libtool@gnu.org
2978
2979 _LT_EOF
2980 fi ;;
2981 esac
2982 fi
2983 break
2984 fi
2985 done
2986 IFS="$lt_save_ifs"
2987 MAGIC_CMD="$lt_save_MAGIC_CMD"
2988 ;;
2989 esac])
2990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2991 if test -n "$MAGIC_CMD"; then
2992 AC_MSG_RESULT($MAGIC_CMD)
2993 else
2994 AC_MSG_RESULT(no)
2995 fi
2996 _LT_DECL([], [MAGIC_CMD], [0],
2997 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2998 ])# _LT_PATH_TOOL_PREFIX
2999
3000 # Old name:
3001 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3002 dnl aclocal-1.4 backwards compatibility:
3003 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3004
3005
3006 # _LT_PATH_MAGIC
3007 # --------------
3008 # find a file program which can recognize a shared library
3009 m4_defun([_LT_PATH_MAGIC],
3010 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3011 if test -z "$lt_cv_path_MAGIC_CMD"; then
3012 if test -n "$ac_tool_prefix"; then
3013 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3014 else
3015 MAGIC_CMD=:
3016 fi
3017 fi
3018 ])# _LT_PATH_MAGIC
3019
3020
3021 # LT_PATH_LD
3022 # ----------
3023 # find the pathname to the GNU or non-GNU linker
3024 AC_DEFUN([LT_PATH_LD],
3025 [AC_REQUIRE([AC_PROG_CC])dnl
3026 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3027 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3028 m4_require([_LT_DECL_SED])dnl
3029 m4_require([_LT_DECL_EGREP])dnl
3030 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3031
3032 AC_ARG_WITH([gnu-ld],
3033 [AS_HELP_STRING([--with-gnu-ld],
3034 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3035 [test "$withval" = no || with_gnu_ld=yes],
3036 [with_gnu_ld=no])dnl
3037
3038 ac_prog=ld
3039 if test "$GCC" = yes; then
3040 # Check if gcc -print-prog-name=ld gives a path.
3041 AC_MSG_CHECKING([for ld used by $CC])
3042 case $host in
3043 *-*-mingw*)
3044 # gcc leaves a trailing carriage return which upsets mingw
3045 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3046 *)
3047 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3048 esac
3049 case $ac_prog in
3050 # Accept absolute paths.
3051 [[\\/]]* | ?:[[\\/]]*)
3052 re_direlt='/[[^/]][[^/]]*/\.\./'
3053 # Canonicalize the pathname of ld
3054 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3055 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3056 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3057 done
3058 test -z "$LD" && LD="$ac_prog"
3059 ;;
3060 "")
3061 # If it fails, then pretend we aren't using GCC.
3062 ac_prog=ld
3063 ;;
3064 *)
3065 # If it is relative, then search for the first ld in PATH.
3066 with_gnu_ld=unknown
3067 ;;
3068 esac
3069 elif test "$with_gnu_ld" = yes; then
3070 AC_MSG_CHECKING([for GNU ld])
3071 else
3072 AC_MSG_CHECKING([for non-GNU ld])
3073 fi
3074 AC_CACHE_VAL(lt_cv_path_LD,
3075 [if test -z "$LD"; then
3076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3077 for ac_dir in $PATH; do
3078 IFS="$lt_save_ifs"
3079 test -z "$ac_dir" && ac_dir=.
3080 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3081 lt_cv_path_LD="$ac_dir/$ac_prog"
3082 # Check to see if the program is GNU ld. I'd rather use --version,
3083 # but apparently some variants of GNU ld only accept -v.
3084 # Break only if it was the GNU/non-GNU ld that we prefer.
3085 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3086 *GNU* | *'with BFD'*)
3087 test "$with_gnu_ld" != no && break
3088 ;;
3089 *)
3090 test "$with_gnu_ld" != yes && break
3091 ;;
3092 esac
3093 fi
3094 done
3095 IFS="$lt_save_ifs"
3096 else
3097 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3098 fi])
3099 LD="$lt_cv_path_LD"
3100 if test -n "$LD"; then
3101 AC_MSG_RESULT($LD)
3102 else
3103 AC_MSG_RESULT(no)
3104 fi
3105 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3106 _LT_PATH_LD_GNU
3107 AC_SUBST([LD])
3108
3109 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3110 ])# LT_PATH_LD
3111
3112 # Old names:
3113 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3114 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3115 dnl aclocal-1.4 backwards compatibility:
3116 dnl AC_DEFUN([AM_PROG_LD], [])
3117 dnl AC_DEFUN([AC_PROG_LD], [])
3118
3119
3120 # _LT_PATH_LD_GNU
3121 #- --------------
3122 m4_defun([_LT_PATH_LD_GNU],
3123 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3124 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3125 case `$LD -v 2>&1 </dev/null` in
3126 *GNU* | *'with BFD'*)
3127 lt_cv_prog_gnu_ld=yes
3128 ;;
3129 *)
3130 lt_cv_prog_gnu_ld=no
3131 ;;
3132 esac])
3133 with_gnu_ld=$lt_cv_prog_gnu_ld
3134 ])# _LT_PATH_LD_GNU
3135
3136
3137 # _LT_CMD_RELOAD
3138 # --------------
3139 # find reload flag for linker
3140 # -- PORTME Some linkers may need a different reload flag.
3141 m4_defun([_LT_CMD_RELOAD],
3142 [AC_CACHE_CHECK([for $LD option to reload object files],
3143 lt_cv_ld_reload_flag,
3144 [lt_cv_ld_reload_flag='-r'])
3145 reload_flag=$lt_cv_ld_reload_flag
3146 case $reload_flag in
3147 "" | " "*) ;;
3148 *) reload_flag=" $reload_flag" ;;
3149 esac
3150 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3151 case $host_os in
3152 cygwin* | mingw* | pw32* | cegcc*)
3153 if test "$GCC" != yes; then
3154 reload_cmds=false
3155 fi
3156 ;;
3157 darwin*)
3158 if test "$GCC" = yes; then
3159 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3160 else
3161 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3162 fi
3163 ;;
3164 esac
3165 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3166 _LT_TAGDECL([], [reload_cmds], [2])dnl
3167 ])# _LT_CMD_RELOAD
3168
3169
3170 # _LT_CHECK_MAGIC_METHOD
3171 # ----------------------
3172 # how to check for library dependencies
3173 # -- PORTME fill in with the dynamic library characteristics
3174 m4_defun([_LT_CHECK_MAGIC_METHOD],
3175 [m4_require([_LT_DECL_EGREP])
3176 m4_require([_LT_DECL_OBJDUMP])
3177 AC_CACHE_CHECK([how to recognize dependent libraries],
3178 lt_cv_deplibs_check_method,
3179 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3180 lt_cv_file_magic_test_file=
3181 lt_cv_deplibs_check_method='unknown'
3182 # Need to set the preceding variable on all platforms that support
3183 # interlibrary dependencies.
3184 # 'none' -- dependencies not supported.
3185 # `unknown' -- same as none, but documents that we really don't know.
3186 # 'pass_all' -- all dependencies passed with no checks.
3187 # 'test_compile' -- check by making test program.
3188 # 'file_magic [[regex]]' -- check by looking for files in library path
3189 # which responds to the $file_magic_cmd with a given extended regex.
3190 # If you have `file' or equivalent on your system and you're not sure
3191 # whether `pass_all' will *always* work, you probably want this one.
3192
3193 case $host_os in
3194 aix[[4-9]]*)
3195 lt_cv_deplibs_check_method=pass_all
3196 ;;
3197
3198 beos*)
3199 lt_cv_deplibs_check_method=pass_all
3200 ;;
3201
3202 bsdi[[45]]*)
3203 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3204 lt_cv_file_magic_cmd='/usr/bin/file -L'
3205 lt_cv_file_magic_test_file=/shlib/libc.so
3206 ;;
3207
3208 cygwin*)
3209 # func_win32_libid is a shell function defined in ltmain.sh
3210 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3211 lt_cv_file_magic_cmd='func_win32_libid'
3212 ;;
3213
3214 mingw* | pw32*)
3215 # Base MSYS/MinGW do not provide the 'file' command needed by
3216 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3217 # unless we find 'file', for example because we are cross-compiling.
3218 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3219 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3220 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3221 lt_cv_file_magic_cmd='func_win32_libid'
3222 else
3223 # Keep this pattern in sync with the one in func_win32_libid.
3224 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3225 lt_cv_file_magic_cmd='$OBJDUMP -f'
3226 fi
3227 ;;
3228
3229 cegcc*)
3230 # use the weaker test based on 'objdump'. See mingw*.
3231 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3232 lt_cv_file_magic_cmd='$OBJDUMP -f'
3233 ;;
3234
3235 darwin* | rhapsody*)
3236 lt_cv_deplibs_check_method=pass_all
3237 ;;
3238
3239 freebsd* | dragonfly*)
3240 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3241 case $host_cpu in
3242 i*86 )
3243 # Not sure whether the presence of OpenBSD here was a mistake.
3244 # Let's accept both of them until this is cleared up.
3245 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3246 lt_cv_file_magic_cmd=/usr/bin/file
3247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3248 ;;
3249 esac
3250 else
3251 lt_cv_deplibs_check_method=pass_all
3252 fi
3253 ;;
3254
3255 gnu*)
3256 lt_cv_deplibs_check_method=pass_all
3257 ;;
3258
3259 haiku*)
3260 lt_cv_deplibs_check_method=pass_all
3261 ;;
3262
3263 hpux10.20* | hpux11*)
3264 lt_cv_file_magic_cmd=/usr/bin/file
3265 case $host_cpu in
3266 ia64*)
3267 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3268 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3269 ;;
3270 hppa*64*)
3271 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3272 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3273 ;;
3274 *)
3275 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3276 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3277 ;;
3278 esac
3279 ;;
3280
3281 interix[[3-9]]*)
3282 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3283 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3284 ;;
3285
3286 irix5* | irix6* | nonstopux*)
3287 case $LD in
3288 *-32|*"-32 ") libmagic=32-bit;;
3289 *-n32|*"-n32 ") libmagic=N32;;
3290 *-64|*"-64 ") libmagic=64-bit;;
3291 *) libmagic=never-match;;
3292 esac
3293 lt_cv_deplibs_check_method=pass_all
3294 ;;
3295
3296 # This must be glibc/ELF.
3297 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3298 lt_cv_deplibs_check_method=pass_all
3299 ;;
3300
3301 netbsd*)
3302 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3303 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3304 else
3305 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3306 fi
3307 ;;
3308
3309 newos6*)
3310 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3311 lt_cv_file_magic_cmd=/usr/bin/file
3312 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3313 ;;
3314
3315 *nto* | *qnx*)
3316 lt_cv_deplibs_check_method=pass_all
3317 ;;
3318
3319 openbsd*)
3320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3321 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3322 else
3323 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3324 fi
3325 ;;
3326
3327 osf3* | osf4* | osf5*)
3328 lt_cv_deplibs_check_method=pass_all
3329 ;;
3330
3331 rdos*)
3332 lt_cv_deplibs_check_method=pass_all
3333 ;;
3334
3335 solaris*)
3336 lt_cv_deplibs_check_method=pass_all
3337 ;;
3338
3339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3340 lt_cv_deplibs_check_method=pass_all
3341 ;;
3342
3343 sysv4 | sysv4.3*)
3344 case $host_vendor in
3345 motorola)
3346 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3348 ;;
3349 ncr)
3350 lt_cv_deplibs_check_method=pass_all
3351 ;;
3352 sequent)
3353 lt_cv_file_magic_cmd='/bin/file'
3354 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3355 ;;
3356 sni)
3357 lt_cv_file_magic_cmd='/bin/file'
3358 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3359 lt_cv_file_magic_test_file=/lib/libc.so
3360 ;;
3361 siemens)
3362 lt_cv_deplibs_check_method=pass_all
3363 ;;
3364 pc)
3365 lt_cv_deplibs_check_method=pass_all
3366 ;;
3367 esac
3368 ;;
3369
3370 tpf*)
3371 lt_cv_deplibs_check_method=pass_all
3372 ;;
3373 esac
3374 ])
3375
3376 file_magic_glob=
3377 want_nocaseglob=no
3378 if test "$build" = "$host"; then
3379 case $host_os in
3380 mingw* | pw32*)
3381 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3382 want_nocaseglob=yes
3383 else
3384 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3385 fi
3386 ;;
3387 esac
3388 fi
3389
3390 file_magic_cmd=$lt_cv_file_magic_cmd
3391 deplibs_check_method=$lt_cv_deplibs_check_method
3392 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3393
3394 _LT_DECL([], [deplibs_check_method], [1],
3395 [Method to check whether dependent libraries are shared objects])
3396 _LT_DECL([], [file_magic_cmd], [1],
3397 [Command to use when deplibs_check_method = "file_magic"])
3398 _LT_DECL([], [file_magic_glob], [1],
3399 [How to find potential files when deplibs_check_method = "file_magic"])
3400 _LT_DECL([], [want_nocaseglob], [1],
3401 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3402 ])# _LT_CHECK_MAGIC_METHOD
3403
3404
3405 # LT_PATH_NM
3406 # ----------
3407 # find the pathname to a BSD- or MS-compatible name lister
3408 AC_DEFUN([LT_PATH_NM],
3409 [AC_REQUIRE([AC_PROG_CC])dnl
3410 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3411 [if test -n "$NM"; then
3412 # Let the user override the test.
3413 lt_cv_path_NM="$NM"
3414 else
3415 lt_nm_to_check="${ac_tool_prefix}nm"
3416 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3417 lt_nm_to_check="$lt_nm_to_check nm"
3418 fi
3419 for lt_tmp_nm in $lt_nm_to_check; do
3420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3421 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3422 IFS="$lt_save_ifs"
3423 test -z "$ac_dir" && ac_dir=.
3424 tmp_nm="$ac_dir/$lt_tmp_nm"
3425 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3426 # Check to see if the nm accepts a BSD-compat flag.
3427 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3428 # nm: unknown option "B" ignored
3429 # Tru64's nm complains that /dev/null is an invalid object file
3430 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3431 */dev/null* | *'Invalid file or object type'*)
3432 lt_cv_path_NM="$tmp_nm -B"
3433 break
3434 ;;
3435 *)
3436 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3437 */dev/null*)
3438 lt_cv_path_NM="$tmp_nm -p"
3439 break
3440 ;;
3441 *)
3442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3443 continue # so that we can try to find one that supports BSD flags
3444 ;;
3445 esac
3446 ;;
3447 esac
3448 fi
3449 done
3450 IFS="$lt_save_ifs"
3451 done
3452 : ${lt_cv_path_NM=no}
3453 fi])
3454 if test "$lt_cv_path_NM" != "no"; then
3455 NM="$lt_cv_path_NM"
3456 else
3457 # Didn't find any BSD compatible name lister, look for dumpbin.
3458 if test -n "$DUMPBIN"; then :
3459 # Let the user override the test.
3460 else
3461 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3462 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3463 *COFF*)
3464 DUMPBIN="$DUMPBIN -symbols"
3465 ;;
3466 *)
3467 DUMPBIN=:
3468 ;;
3469 esac
3470 fi
3471 AC_SUBST([DUMPBIN])
3472 if test "$DUMPBIN" != ":"; then
3473 NM="$DUMPBIN"
3474 fi
3475 fi
3476 test -z "$NM" && NM=nm
3477 AC_SUBST([NM])
3478 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3479
3480 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3481 [lt_cv_nm_interface="BSD nm"
3482 echo "int some_variable = 0;" > conftest.$ac_ext
3483 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3484 (eval "$ac_compile" 2>conftest.err)
3485 cat conftest.err >&AS_MESSAGE_LOG_FD
3486 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3487 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3488 cat conftest.err >&AS_MESSAGE_LOG_FD
3489 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3490 cat conftest.out >&AS_MESSAGE_LOG_FD
3491 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3492 lt_cv_nm_interface="MS dumpbin"
3493 fi
3494 rm -f conftest*])
3495 ])# LT_PATH_NM
3496
3497 # Old names:
3498 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3499 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3500 dnl aclocal-1.4 backwards compatibility:
3501 dnl AC_DEFUN([AM_PROG_NM], [])
3502 dnl AC_DEFUN([AC_PROG_NM], [])
3503
3504 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3505 # --------------------------------
3506 # how to determine the name of the shared library
3507 # associated with a specific link library.
3508 # -- PORTME fill in with the dynamic library characteristics
3509 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3510 [m4_require([_LT_DECL_EGREP])
3511 m4_require([_LT_DECL_OBJDUMP])
3512 m4_require([_LT_DECL_DLLTOOL])
3513 AC_CACHE_CHECK([how to associate runtime and link libraries],
3514 lt_cv_sharedlib_from_linklib_cmd,
3515 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3516
3517 case $host_os in
3518 cygwin* | mingw* | pw32* | cegcc*)
3519 # two different shell functions defined in ltmain.sh
3520 # decide which to use based on capabilities of $DLLTOOL
3521 case `$DLLTOOL --help 2>&1` in
3522 *--identify-strict*)
3523 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3524 ;;
3525 *)
3526 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3527 ;;
3528 esac
3529 ;;
3530 *)
3531 # fallback: assume linklib IS sharedlib
3532 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3533 ;;
3534 esac
3535 ])
3536 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3537 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3538
3539 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3540 [Command to associate shared and link libraries])
3541 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3542
3543
3544 # _LT_PATH_MANIFEST_TOOL
3545 # ----------------------
3546 # locate the manifest tool
3547 m4_defun([_LT_PATH_MANIFEST_TOOL],
3548 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3549 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3550 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3551 [lt_cv_path_mainfest_tool=no
3552 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3553 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3554 cat conftest.err >&AS_MESSAGE_LOG_FD
3555 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3556 lt_cv_path_mainfest_tool=yes
3557 fi
3558 rm -f conftest*])
3559 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3560 MANIFEST_TOOL=:
3561 fi
3562 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3563 ])# _LT_PATH_MANIFEST_TOOL
3564
3565
3566 # LT_LIB_M
3567 # --------
3568 # check for math library
3569 AC_DEFUN([LT_LIB_M],
3570 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3571 LIBM=
3572 case $host in
3573 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3574 # These system don't have libm, or don't need it
3575 ;;
3576 *-ncr-sysv4.3*)
3577 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3578 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3579 ;;
3580 *)
3581 AC_CHECK_LIB(m, cos, LIBM="-lm")
3582 ;;
3583 esac
3584 AC_SUBST([LIBM])
3585 ])# LT_LIB_M
3586
3587 # Old name:
3588 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3589 dnl aclocal-1.4 backwards compatibility:
3590 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3591
3592
3593 # _LT_COMPILER_NO_RTTI([TAGNAME])
3594 # -------------------------------
3595 m4_defun([_LT_COMPILER_NO_RTTI],
3596 [m4_require([_LT_TAG_COMPILER])dnl
3597
3598 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3599
3600 if test "$GCC" = yes; then
3601 case $cc_basename in
3602 nvcc*)
3603 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3604 *)
3605 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3606 esac
3607
3608 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3609 lt_cv_prog_compiler_rtti_exceptions,
3610 [-fno-rtti -fno-exceptions], [],
3611 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3612 fi
3613 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3614 [Compiler flag to turn off builtin functions])
3615 ])# _LT_COMPILER_NO_RTTI
3616
3617
3618 # _LT_CMD_GLOBAL_SYMBOLS
3619 # ----------------------
3620 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3621 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3622 AC_REQUIRE([AC_PROG_CC])dnl
3623 AC_REQUIRE([AC_PROG_AWK])dnl
3624 AC_REQUIRE([LT_PATH_NM])dnl
3625 AC_REQUIRE([LT_PATH_LD])dnl
3626 m4_require([_LT_DECL_SED])dnl
3627 m4_require([_LT_DECL_EGREP])dnl
3628 m4_require([_LT_TAG_COMPILER])dnl
3629
3630 # Check for command to grab the raw symbol name followed by C symbol from nm.
3631 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3632 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3633 [
3634 # These are sane defaults that work on at least a few old systems.
3635 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3636
3637 # Character class describing NM global symbol codes.
3638 symcode='[[BCDEGRST]]'
3639
3640 # Regexp to match symbols that can be accessed directly from C.
3641 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3642
3643 # Define system-specific variables.
3644 case $host_os in
3645 aix*)
3646 symcode='[[BCDT]]'
3647 ;;
3648 cygwin* | mingw* | pw32* | cegcc*)
3649 symcode='[[ABCDGISTW]]'
3650 ;;
3651 hpux*)
3652 if test "$host_cpu" = ia64; then
3653 symcode='[[ABCDEGRST]]'
3654 fi
3655 ;;
3656 irix* | nonstopux*)
3657 symcode='[[BCDEGRST]]'
3658 ;;
3659 osf*)
3660 symcode='[[BCDEGQRST]]'
3661 ;;
3662 solaris*)
3663 symcode='[[BDRT]]'
3664 ;;
3665 sco3.2v5*)
3666 symcode='[[DT]]'
3667 ;;
3668 sysv4.2uw2*)
3669 symcode='[[DT]]'
3670 ;;
3671 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3672 symcode='[[ABDT]]'
3673 ;;
3674 sysv4)
3675 symcode='[[DFNSTU]]'
3676 ;;
3677 esac
3678
3679 # If we're using GNU nm, then use its standard symbol codes.
3680 case `$NM -V 2>&1` in
3681 *GNU* | *'with BFD'*)
3682 symcode='[[ABCDGIRSTW]]' ;;
3683 esac
3684
3685 # Transform an extracted symbol line into a proper C declaration.
3686 # Some systems (esp. on ia64) link data and code symbols differently,
3687 # so use this general approach.
3688 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3689
3690 # Transform an extracted symbol line into symbol name and symbol address
3691 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3692 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3693
3694 # Handle CRLF in mingw tool chain
3695 opt_cr=
3696 case $build_os in
3697 mingw*)
3698 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3699 ;;
3700 esac
3701
3702 # Try without a prefix underscore, then with it.
3703 for ac_symprfx in "" "_"; do
3704
3705 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3706 symxfrm="\\1 $ac_symprfx\\2 \\2"
3707
3708 # Write the raw and C identifiers.
3709 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3710 # Fake it for dumpbin and say T for any non-static function
3711 # and D for any global variable.
3712 # Also find C++ and __fastcall symbols from MSVC++,
3713 # which start with @ or ?.
3714 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3715 " {last_section=section; section=\$ 3};"\
3716 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3717 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3718 " \$ 0!~/External *\|/{next};"\
3719 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3720 " {if(hide[section]) next};"\
3721 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3722 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3723 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3724 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3725 " ' prfx=^$ac_symprfx]"
3726 else
3727 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3728 fi
3729 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3730
3731 # Check to see that the pipe works correctly.
3732 pipe_works=no
3733
3734 rm -f conftest*
3735 cat > conftest.$ac_ext <<_LT_EOF
3736 #ifdef __cplusplus
3737 extern "C" {
3738 #endif
3739 char nm_test_var;
3740 void nm_test_func(void);
3741 void nm_test_func(void){}
3742 #ifdef __cplusplus
3743 }
3744 #endif
3745 int main(){nm_test_var='a';nm_test_func();return(0);}
3746 _LT_EOF
3747
3748 if AC_TRY_EVAL(ac_compile); then
3749 # Now try to grab the symbols.
3750 nlist=conftest.nm
3751 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3752 # Try sorting and uniquifying the output.
3753 if sort "$nlist" | uniq > "$nlist"T; then
3754 mv -f "$nlist"T "$nlist"
3755 else
3756 rm -f "$nlist"T
3757 fi
3758
3759 # Make sure that we snagged all the symbols we need.
3760 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3761 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3762 cat <<_LT_EOF > conftest.$ac_ext
3763 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3764 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3765 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3766 relocations are performed -- see ld's documentation on pseudo-relocs. */
3767 # define LT@&t@_DLSYM_CONST
3768 #elif defined(__osf__)
3769 /* This system does not cope well with relocations in const data. */
3770 # define LT@&t@_DLSYM_CONST
3771 #else
3772 # define LT@&t@_DLSYM_CONST const
3773 #endif
3774
3775 #ifdef __cplusplus
3776 extern "C" {
3777 #endif
3778
3779 _LT_EOF
3780 # Now generate the symbol file.
3781 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3782
3783 cat <<_LT_EOF >> conftest.$ac_ext
3784
3785 /* The mapping between symbol names and symbols. */
3786 LT@&t@_DLSYM_CONST struct {
3787 const char *name;
3788 void *address;
3789 }
3790 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3791 {
3792 { "@PROGRAM@", (void *) 0 },
3793 _LT_EOF
3794 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3795 cat <<\_LT_EOF >> conftest.$ac_ext
3796 {0, (void *) 0}
3797 };
3798
3799 /* This works around a problem in FreeBSD linker */
3800 #ifdef FREEBSD_WORKAROUND
3801 static const void *lt_preloaded_setup() {
3802 return lt__PROGRAM__LTX_preloaded_symbols;
3803 }
3804 #endif
3805
3806 #ifdef __cplusplus
3807 }
3808 #endif
3809 _LT_EOF
3810 # Now try linking the two files.
3811 mv conftest.$ac_objext conftstm.$ac_objext
3812 lt_globsym_save_LIBS=$LIBS
3813 lt_globsym_save_CFLAGS=$CFLAGS
3814 LIBS="conftstm.$ac_objext"
3815 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3816 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3817 pipe_works=yes
3818 fi
3819 LIBS=$lt_globsym_save_LIBS
3820 CFLAGS=$lt_globsym_save_CFLAGS
3821 else
3822 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3823 fi
3824 else
3825 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3826 fi
3827 else
3828 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3829 fi
3830 else
3831 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3832 cat conftest.$ac_ext >&5
3833 fi
3834 rm -rf conftest* conftst*
3835
3836 # Do not use the global_symbol_pipe unless it works.
3837 if test "$pipe_works" = yes; then
3838 break
3839 else
3840 lt_cv_sys_global_symbol_pipe=
3841 fi
3842 done
3843 ])
3844 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3845 lt_cv_sys_global_symbol_to_cdecl=
3846 fi
3847 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3848 AC_MSG_RESULT(failed)
3849 else
3850 AC_MSG_RESULT(ok)
3851 fi
3852
3853 # Response file support.
3854 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3855 nm_file_list_spec='@'
3856 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3857 nm_file_list_spec='@'
3858 fi
3859
3860 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3861 [Take the output of nm and produce a listing of raw symbols and C names])
3862 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3863 [Transform the output of nm in a proper C declaration])
3864 _LT_DECL([global_symbol_to_c_name_address],
3865 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3866 [Transform the output of nm in a C name address pair])
3867 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3868 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3869 [Transform the output of nm in a C name address pair when lib prefix is needed])
3870 _LT_DECL([], [nm_file_list_spec], [1],
3871 [Specify filename containing input files for $NM])
3872 ]) # _LT_CMD_GLOBAL_SYMBOLS
3873
3874
3875 # _LT_COMPILER_PIC([TAGNAME])
3876 # ---------------------------
3877 m4_defun([_LT_COMPILER_PIC],
3878 [m4_require([_LT_TAG_COMPILER])dnl
3879 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3880 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3881 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3882
3883 m4_if([$1], [CXX], [
3884 # C++ specific cases for pic, static, wl, etc.
3885 if test "$GXX" = yes; then
3886 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3887 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3888
3889 case $host_os in
3890 aix*)
3891 # All AIX code is PIC.
3892 if test "$host_cpu" = ia64; then
3893 # AIX 5 now supports IA64 processor
3894 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3895 fi
3896 ;;
3897
3898 amigaos*)
3899 case $host_cpu in
3900 powerpc)
3901 # see comment about AmigaOS4 .so support
3902 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3903 ;;
3904 m68k)
3905 # FIXME: we need at least 68020 code to build shared libraries, but
3906 # adding the `-m68020' flag to GCC prevents building anything better,
3907 # like `-m68040'.
3908 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3909 ;;
3910 esac
3911 ;;
3912
3913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3914 # PIC is the default for these OSes.
3915 ;;
3916 mingw* | cygwin* | os2* | pw32* | cegcc*)
3917 # This hack is so that the source file can tell whether it is being
3918 # built for inclusion in a dll (and should export symbols for example).
3919 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3920 # (--disable-auto-import) libraries
3921 m4_if([$1], [GCJ], [],
3922 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3923 ;;
3924 darwin* | rhapsody*)
3925 # PIC is the default on this platform
3926 # Common symbols not allowed in MH_DYLIB files
3927 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3928 ;;
3929 *djgpp*)
3930 # DJGPP does not support shared libraries at all
3931 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3932 ;;
3933 haiku*)
3934 # PIC is the default for Haiku.
3935 # The "-static" flag exists, but is broken.
3936 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3937 ;;
3938 interix[[3-9]]*)
3939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3940 # Instead, we relocate shared libraries at runtime.
3941 ;;
3942 sysv4*MP*)
3943 if test -d /usr/nec; then
3944 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3945 fi
3946 ;;
3947 hpux*)
3948 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3949 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3950 # sets the default TLS model and affects inlining.
3951 case $host_cpu in
3952 hppa*64*)
3953 ;;
3954 *)
3955 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3956 ;;
3957 esac
3958 ;;
3959 *qnx* | *nto*)
3960 # QNX uses GNU C++, but need to define -shared option too, otherwise
3961 # it will coredump.
3962 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3963 ;;
3964 *)
3965 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3966 ;;
3967 esac
3968 else
3969 case $host_os in
3970 aix[[4-9]]*)
3971 # All AIX code is PIC.
3972 if test "$host_cpu" = ia64; then
3973 # AIX 5 now supports IA64 processor
3974 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3975 else
3976 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3977 fi
3978 ;;
3979 chorus*)
3980 case $cc_basename in
3981 cxch68*)
3982 # Green Hills C++ Compiler
3983 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3984 ;;
3985 esac
3986 ;;
3987 mingw* | cygwin* | os2* | pw32* | cegcc*)
3988 # This hack is so that the source file can tell whether it is being
3989 # built for inclusion in a dll (and should export symbols for example).
3990 m4_if([$1], [GCJ], [],
3991 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3992 ;;
3993 dgux*)
3994 case $cc_basename in
3995 ec++*)
3996 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3997 ;;
3998 ghcx*)
3999 # Green Hills C++ Compiler
4000 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4001 ;;
4002 *)
4003 ;;
4004 esac
4005 ;;
4006 freebsd* | dragonfly*)
4007 # FreeBSD uses GNU C++
4008 ;;
4009 hpux9* | hpux10* | hpux11*)
4010 case $cc_basename in
4011 CC*)
4012 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4013 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4014 if test "$host_cpu" != ia64; then
4015 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4016 fi
4017 ;;
4018 aCC*)
4019 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4020 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4021 case $host_cpu in
4022 hppa*64*|ia64*)
4023 # +Z the default
4024 ;;
4025 *)
4026 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4027 ;;
4028 esac
4029 ;;
4030 *)
4031 ;;
4032 esac
4033 ;;
4034 interix*)
4035 # This is c89, which is MS Visual C++ (no shared libs)
4036 # Anyone wants to do a port?
4037 ;;
4038 irix5* | irix6* | nonstopux*)
4039 case $cc_basename in
4040 CC*)
4041 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4042 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4043 # CC pic flag -KPIC is the default.
4044 ;;
4045 *)
4046 ;;
4047 esac
4048 ;;
4049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4050 case $cc_basename in
4051 KCC*)
4052 # KAI C++ Compiler
4053 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4054 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4055 ;;
4056 ecpc* )
4057 # old Intel C++ for x86_64 which still supported -KPIC.
4058 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4059 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4060 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4061 ;;
4062 icpc* )
4063 # Intel C++, used to be incompatible with GCC.
4064 # ICC 10 doesn't accept -KPIC any more.
4065 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4066 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4067 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4068 ;;
4069 pgCC* | pgcpp*)
4070 # Portland Group C++ compiler
4071 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4072 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4073 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4074 ;;
4075 cxx*)
4076 # Compaq C++
4077 # Make sure the PIC flag is empty. It appears that all Alpha
4078 # Linux and Compaq Tru64 Unix objects are PIC.
4079 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4080 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4081 ;;
4082 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4083 # IBM XL 8.0, 9.0 on PPC and BlueGene
4084 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4085 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4086 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4087 ;;
4088 *)
4089 case `$CC -V 2>&1 | sed 5q` in
4090 *Sun\ C*)
4091 # Sun C++ 5.9
4092 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4093 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4094 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4095 ;;
4096 esac
4097 ;;
4098 esac
4099 ;;
4100 lynxos*)
4101 ;;
4102 m88k*)
4103 ;;
4104 mvs*)
4105 case $cc_basename in
4106 cxx*)
4107 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4108 ;;
4109 *)
4110 ;;
4111 esac
4112 ;;
4113 netbsd*)
4114 ;;
4115 *qnx* | *nto*)
4116 # QNX uses GNU C++, but need to define -shared option too, otherwise
4117 # it will coredump.
4118 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4119 ;;
4120 osf3* | osf4* | osf5*)
4121 case $cc_basename in
4122 KCC*)
4123 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4124 ;;
4125 RCC*)
4126 # Rational C++ 2.4.1
4127 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4128 ;;
4129 cxx*)
4130 # Digital/Compaq C++
4131 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4132 # Make sure the PIC flag is empty. It appears that all Alpha
4133 # Linux and Compaq Tru64 Unix objects are PIC.
4134 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4135 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4136 ;;
4137 *)
4138 ;;
4139 esac
4140 ;;
4141 psos*)
4142 ;;
4143 solaris*)
4144 case $cc_basename in
4145 CC* | sunCC*)
4146 # Sun C++ 4.2, 5.x and Centerline C++
4147 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4148 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4149 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4150 ;;
4151 gcx*)
4152 # Green Hills C++ Compiler
4153 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4154 ;;
4155 *)
4156 ;;
4157 esac
4158 ;;
4159 sunos4*)
4160 case $cc_basename in
4161 CC*)
4162 # Sun C++ 4.x
4163 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4164 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4165 ;;
4166 lcc*)
4167 # Lucid
4168 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4169 ;;
4170 *)
4171 ;;
4172 esac
4173 ;;
4174 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4175 case $cc_basename in
4176 CC*)
4177 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4178 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4179 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4180 ;;
4181 esac
4182 ;;
4183 tandem*)
4184 case $cc_basename in
4185 NCC*)
4186 # NonStop-UX NCC 3.20
4187 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4188 ;;
4189 *)
4190 ;;
4191 esac
4192 ;;
4193 vxworks*)
4194 ;;
4195 *)
4196 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4197 ;;
4198 esac
4199 fi
4200 ],
4201 [
4202 if test "$GCC" = yes; then
4203 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4204 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4205
4206 case $host_os in
4207 aix*)
4208 # All AIX code is PIC.
4209 if test "$host_cpu" = ia64; then
4210 # AIX 5 now supports IA64 processor
4211 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4212 fi
4213 ;;
4214
4215 amigaos*)
4216 case $host_cpu in
4217 powerpc)
4218 # see comment about AmigaOS4 .so support
4219 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4220 ;;
4221 m68k)
4222 # FIXME: we need at least 68020 code to build shared libraries, but
4223 # adding the `-m68020' flag to GCC prevents building anything better,
4224 # like `-m68040'.
4225 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4226 ;;
4227 esac
4228 ;;
4229
4230 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4231 # PIC is the default for these OSes.
4232 ;;
4233
4234 mingw* | cygwin* | pw32* | os2* | cegcc*)
4235 # This hack is so that the source file can tell whether it is being
4236 # built for inclusion in a dll (and should export symbols for example).
4237 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4238 # (--disable-auto-import) libraries
4239 m4_if([$1], [GCJ], [],
4240 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4241 ;;
4242
4243 darwin* | rhapsody*)
4244 # PIC is the default on this platform
4245 # Common symbols not allowed in MH_DYLIB files
4246 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4247 ;;
4248
4249 haiku*)
4250 # PIC is the default for Haiku.
4251 # The "-static" flag exists, but is broken.
4252 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4253 ;;
4254
4255 hpux*)
4256 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4257 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4258 # sets the default TLS model and affects inlining.
4259 case $host_cpu in
4260 hppa*64*)
4261 # +Z the default
4262 ;;
4263 *)
4264 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4265 ;;
4266 esac
4267 ;;
4268
4269 interix[[3-9]]*)
4270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4271 # Instead, we relocate shared libraries at runtime.
4272 ;;
4273
4274 msdosdjgpp*)
4275 # Just because we use GCC doesn't mean we suddenly get shared libraries
4276 # on systems that don't support them.
4277 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4278 enable_shared=no
4279 ;;
4280
4281 *nto* | *qnx*)
4282 # QNX uses GNU C++, but need to define -shared option too, otherwise
4283 # it will coredump.
4284 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4285 ;;
4286
4287 sysv4*MP*)
4288 if test -d /usr/nec; then
4289 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4290 fi
4291 ;;
4292
4293 *)
4294 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4295 ;;
4296 esac
4297
4298 case $cc_basename in
4299 nvcc*) # Cuda Compiler Driver 2.2
4300 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4301 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4302 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4303 fi
4304 ;;
4305 esac
4306 else
4307 # PORTME Check for flag to pass linker flags through the system compiler.
4308 case $host_os in
4309 aix*)
4310 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4311 if test "$host_cpu" = ia64; then
4312 # AIX 5 now supports IA64 processor
4313 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4314 else
4315 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4316 fi
4317 ;;
4318
4319 mingw* | cygwin* | pw32* | os2* | cegcc*)
4320 # This hack is so that the source file can tell whether it is being
4321 # built for inclusion in a dll (and should export symbols for example).
4322 m4_if([$1], [GCJ], [],
4323 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4324 ;;
4325
4326 hpux9* | hpux10* | hpux11*)
4327 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4329 # not for PA HP-UX.
4330 case $host_cpu in
4331 hppa*64*|ia64*)
4332 # +Z the default
4333 ;;
4334 *)
4335 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4336 ;;
4337 esac
4338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4339 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4340 ;;
4341
4342 irix5* | irix6* | nonstopux*)
4343 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4344 # PIC (with -KPIC) is the default.
4345 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4346 ;;
4347
4348 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4349 case $cc_basename in
4350 # old Intel for x86_64 which still supported -KPIC.
4351 ecc*)
4352 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4353 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4354 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4355 ;;
4356 # icc used to be incompatible with GCC.
4357 # ICC 10 doesn't accept -KPIC any more.
4358 icc* | ifort*)
4359 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4360 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4361 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4362 ;;
4363 # Lahey Fortran 8.1.
4364 lf95*)
4365 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4366 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4367 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4368 ;;
4369 nagfor*)
4370 # NAG Fortran compiler
4371 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4372 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4373 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4374 ;;
4375 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4376 # Portland Group compilers (*not* the Pentium gcc compiler,
4377 # which looks to be a dead project)
4378 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4379 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4380 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4381 ;;
4382 ccc*)
4383 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4384 # All Alpha code is PIC.
4385 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4386 ;;
4387 xl* | bgxl* | bgf* | mpixl*)
4388 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4389 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4390 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4391 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4392 ;;
4393 *)
4394 case `$CC -V 2>&1 | sed 5q` in
4395 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4396 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4397 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4398 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4399 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4400 ;;
4401 *Sun\ F* | *Sun*Fortran*)
4402 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4404 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4405 ;;
4406 *Sun\ C*)
4407 # Sun C 5.9
4408 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4409 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4410 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4411 ;;
4412 *Intel*\ [[CF]]*Compiler*)
4413 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4414 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4415 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4416 ;;
4417 *Portland\ Group*)
4418 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4419 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4420 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4421 ;;
4422 esac
4423 ;;
4424 esac
4425 ;;
4426
4427 newsos6)
4428 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4429 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4430 ;;
4431
4432 *nto* | *qnx*)
4433 # QNX uses GNU C++, but need to define -shared option too, otherwise
4434 # it will coredump.
4435 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4436 ;;
4437
4438 osf3* | osf4* | osf5*)
4439 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4440 # All OSF/1 code is PIC.
4441 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4442 ;;
4443
4444 rdos*)
4445 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4446 ;;
4447
4448 solaris*)
4449 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4450 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4451 case $cc_basename in
4452 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4453 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4454 *)
4455 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4456 esac
4457 ;;
4458
4459 sunos4*)
4460 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4461 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4462 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4463 ;;
4464
4465 sysv4 | sysv4.2uw2* | sysv4.3*)
4466 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4467 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4468 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4469 ;;
4470
4471 sysv4*MP*)
4472 if test -d /usr/nec ;then
4473 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4474 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4475 fi
4476 ;;
4477
4478 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4479 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4480 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4481 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4482 ;;
4483
4484 unicos*)
4485 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4486 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4487 ;;
4488
4489 uts4*)
4490 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4491 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4492 ;;
4493
4494 *)
4495 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4496 ;;
4497 esac
4498 fi
4499 ])
4500 case $host_os in
4501 # For platforms which do not support PIC, -DPIC is meaningless:
4502 *djgpp*)
4503 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4504 ;;
4505 *)
4506 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4507 ;;
4508 esac
4509
4510 AC_CACHE_CHECK([for $compiler option to produce PIC],
4511 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4512 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4513 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4514
4515 #
4516 # Check to make sure the PIC flag actually works.
4517 #
4518 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4519 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4520 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4521 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4522 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4523 "" | " "*) ;;
4524 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4525 esac],
4526 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4527 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4528 fi
4529 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4530 [Additional compiler flags for building library objects])
4531
4532 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4533 [How to pass a linker flag through the compiler])
4534 #
4535 # Check to make sure the static flag actually works.
4536 #
4537 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4538 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4539 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4540 $lt_tmp_static_flag,
4541 [],
4542 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4543 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4544 [Compiler flag to prevent dynamic linking])
4545 ])# _LT_COMPILER_PIC
4546
4547
4548 # _LT_LINKER_SHLIBS([TAGNAME])
4549 # ----------------------------
4550 # See if the linker supports building shared libraries.
4551 m4_defun([_LT_LINKER_SHLIBS],
4552 [AC_REQUIRE([LT_PATH_LD])dnl
4553 AC_REQUIRE([LT_PATH_NM])dnl
4554 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4555 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4556 m4_require([_LT_DECL_EGREP])dnl
4557 m4_require([_LT_DECL_SED])dnl
4558 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4559 m4_require([_LT_TAG_COMPILER])dnl
4560 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4561 m4_if([$1], [CXX], [
4562 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4563 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4564 case $host_os in
4565 aix[[4-9]]*)
4566 # If we're using GNU nm, then we don't want the "-C" option.
4567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4568 # Also, AIX nm treats weak defined symbols like other global defined
4569 # symbols, whereas GNU nm marks them as "W".
4570 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4571 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4572 else
4573 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4574 fi
4575 ;;
4576 pw32*)
4577 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4578 ;;
4579 cygwin* | mingw* | cegcc*)
4580 case $cc_basename in
4581 cl*)
4582 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4583 ;;
4584 *)
4585 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4586 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4587 ;;
4588 esac
4589 ;;
4590 *)
4591 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4592 ;;
4593 esac
4594 ], [
4595 runpath_var=
4596 _LT_TAGVAR(allow_undefined_flag, $1)=
4597 _LT_TAGVAR(always_export_symbols, $1)=no
4598 _LT_TAGVAR(archive_cmds, $1)=
4599 _LT_TAGVAR(archive_expsym_cmds, $1)=
4600 _LT_TAGVAR(compiler_needs_object, $1)=no
4601 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4602 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4603 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4604 _LT_TAGVAR(hardcode_automatic, $1)=no
4605 _LT_TAGVAR(hardcode_direct, $1)=no
4606 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4607 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4608 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4609 _LT_TAGVAR(hardcode_minus_L, $1)=no
4610 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4611 _LT_TAGVAR(inherit_rpath, $1)=no
4612 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4613 _LT_TAGVAR(module_cmds, $1)=
4614 _LT_TAGVAR(module_expsym_cmds, $1)=
4615 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4616 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4617 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4618 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4619 # include_expsyms should be a list of space-separated symbols to be *always*
4620 # included in the symbol list
4621 _LT_TAGVAR(include_expsyms, $1)=
4622 # exclude_expsyms can be an extended regexp of symbols to exclude
4623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4625 # as well as any symbol that contains `d'.
4626 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4628 # platforms (ab)use it in PIC code, but their linkers get confused if
4629 # the symbol is explicitly referenced. Since portable code cannot
4630 # rely on this symbol name, it's probably fine to never include it in
4631 # preloaded symbol tables.
4632 # Exclude shared library initialization/finalization symbols.
4633 dnl Note also adjust exclude_expsyms for C++ above.
4634 extract_expsyms_cmds=
4635
4636 case $host_os in
4637 cygwin* | mingw* | pw32* | cegcc*)
4638 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4639 # When not using gcc, we currently assume that we are using
4640 # Microsoft Visual C++.
4641 if test "$GCC" != yes; then
4642 with_gnu_ld=no
4643 fi
4644 ;;
4645 interix*)
4646 # we just hope/assume this is gcc and not c89 (= MSVC++)
4647 with_gnu_ld=yes
4648 ;;
4649 openbsd*)
4650 with_gnu_ld=no
4651 ;;
4652 esac
4653
4654 _LT_TAGVAR(ld_shlibs, $1)=yes
4655
4656 # On some targets, GNU ld is compatible enough with the native linker
4657 # that we're better off using the native interface for both.
4658 lt_use_gnu_ld_interface=no
4659 if test "$with_gnu_ld" = yes; then
4660 case $host_os in
4661 aix*)
4662 # The AIX port of GNU ld has always aspired to compatibility
4663 # with the native linker. However, as the warning in the GNU ld
4664 # block says, versions before 2.19.5* couldn't really create working
4665 # shared libraries, regardless of the interface used.
4666 case `$LD -v 2>&1` in
4667 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4668 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4669 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4670 *)
4671 lt_use_gnu_ld_interface=yes
4672 ;;
4673 esac
4674 ;;
4675 *)
4676 lt_use_gnu_ld_interface=yes
4677 ;;
4678 esac
4679 fi
4680
4681 if test "$lt_use_gnu_ld_interface" = yes; then
4682 # If archive_cmds runs LD, not CC, wlarc should be empty
4683 wlarc='${wl}'
4684
4685 # Set some defaults for GNU ld with shared library support. These
4686 # are reset later if shared libraries are not supported. Putting them
4687 # here allows them to be overridden if necessary.
4688 runpath_var=LD_RUN_PATH
4689 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4691 # ancient GNU ld didn't support --whole-archive et. al.
4692 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4693 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4694 else
4695 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4696 fi
4697 supports_anon_versioning=no
4698 case `$LD -v 2>&1` in
4699 *GNU\ gold*) supports_anon_versioning=yes ;;
4700 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4701 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4702 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4703 *\ 2.11.*) ;; # other 2.11 versions
4704 *) supports_anon_versioning=yes ;;
4705 esac
4706
4707 # See if GNU ld supports shared libraries.
4708 case $host_os in
4709 aix[[3-9]]*)
4710 # On AIX/PPC, the GNU linker is very broken
4711 if test "$host_cpu" != ia64; then
4712 _LT_TAGVAR(ld_shlibs, $1)=no
4713 cat <<_LT_EOF 1>&2
4714
4715 *** Warning: the GNU linker, at least up to release 2.19, is reported
4716 *** to be unable to reliably create shared libraries on AIX.
4717 *** Therefore, libtool is disabling shared libraries support. If you
4718 *** really care for shared libraries, you may want to install binutils
4719 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4720 *** You will then need to restart the configuration process.
4721
4722 _LT_EOF
4723 fi
4724 ;;
4725
4726 amigaos*)
4727 case $host_cpu in
4728 powerpc)
4729 # see comment about AmigaOS4 .so support
4730 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4731 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4732 ;;
4733 m68k)
4734 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4735 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4736 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4737 ;;
4738 esac
4739 ;;
4740
4741 beos*)
4742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4743 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4745 # support --undefined. This deserves some investigation. FIXME
4746 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4747 else
4748 _LT_TAGVAR(ld_shlibs, $1)=no
4749 fi
4750 ;;
4751
4752 cygwin* | mingw* | pw32* | cegcc*)
4753 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4754 # as there is no search path for DLLs.
4755 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4756 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4757 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4758 _LT_TAGVAR(always_export_symbols, $1)=no
4759 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4760 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4761 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4762
4763 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4764 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4765 # If the export-symbols file already is a .def file (1st line
4766 # is EXPORTS), use it as is; otherwise, prepend...
4767 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4768 cp $export_symbols $output_objdir/$soname.def;
4769 else
4770 echo EXPORTS > $output_objdir/$soname.def;
4771 cat $export_symbols >> $output_objdir/$soname.def;
4772 fi~
4773 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4774 else
4775 _LT_TAGVAR(ld_shlibs, $1)=no
4776 fi
4777 ;;
4778
4779 haiku*)
4780 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4781 _LT_TAGVAR(link_all_deplibs, $1)=yes
4782 ;;
4783
4784 interix[[3-9]]*)
4785 _LT_TAGVAR(hardcode_direct, $1)=no
4786 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4787 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4788 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4790 # Instead, shared libraries are loaded at an image base (0x10000000 by
4791 # default) and relocated if they conflict, which is a slow very memory
4792 # consuming and fragmenting process. To avoid this, we pick a random,
4793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4796 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4797 ;;
4798
4799 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4800 tmp_diet=no
4801 if test "$host_os" = linux-dietlibc; then
4802 case $cc_basename in
4803 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4804 esac
4805 fi
4806 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4807 && test "$tmp_diet" = no
4808 then
4809 tmp_addflag=' $pic_flag'
4810 tmp_sharedflag='-shared'
4811 case $cc_basename,$host_cpu in
4812 pgcc*) # Portland Group C compiler
4813 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4814 tmp_addflag=' $pic_flag'
4815 ;;
4816 pgf77* | pgf90* | pgf95* | pgfortran*)
4817 # Portland Group f77 and f90 compilers
4818 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4819 tmp_addflag=' $pic_flag -Mnomain' ;;
4820 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4821 tmp_addflag=' -i_dynamic' ;;
4822 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4823 tmp_addflag=' -i_dynamic -nofor_main' ;;
4824 ifc* | ifort*) # Intel Fortran compiler
4825 tmp_addflag=' -nofor_main' ;;
4826 lf95*) # Lahey Fortran 8.1
4827 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4828 tmp_sharedflag='--shared' ;;
4829 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4830 tmp_sharedflag='-qmkshrobj'
4831 tmp_addflag= ;;
4832 nvcc*) # Cuda Compiler Driver 2.2
4833 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4834 _LT_TAGVAR(compiler_needs_object, $1)=yes
4835 ;;
4836 esac
4837 case `$CC -V 2>&1 | sed 5q` in
4838 *Sun\ C*) # Sun C 5.9
4839 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4840 _LT_TAGVAR(compiler_needs_object, $1)=yes
4841 tmp_sharedflag='-G' ;;
4842 *Sun\ F*) # Sun Fortran 8.3
4843 tmp_sharedflag='-G' ;;
4844 esac
4845 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4846
4847 if test "x$supports_anon_versioning" = xyes; then
4848 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4850 echo "local: *; };" >> $output_objdir/$libname.ver~
4851 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4852 fi
4853
4854 case $cc_basename in
4855 xlf* | bgf* | bgxlf* | mpixlf*)
4856 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4857 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4859 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4860 if test "x$supports_anon_versioning" = xyes; then
4861 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4863 echo "local: *; };" >> $output_objdir/$libname.ver~
4864 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4865 fi
4866 ;;
4867 esac
4868 else
4869 _LT_TAGVAR(ld_shlibs, $1)=no
4870 fi
4871 ;;
4872
4873 netbsd*)
4874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4875 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4876 wlarc=
4877 else
4878 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4879 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4880 fi
4881 ;;
4882
4883 solaris*)
4884 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4885 _LT_TAGVAR(ld_shlibs, $1)=no
4886 cat <<_LT_EOF 1>&2
4887
4888 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4889 *** create shared libraries on Solaris systems. Therefore, libtool
4890 *** is disabling shared libraries support. We urge you to upgrade GNU
4891 *** binutils to release 2.9.1 or newer. Another option is to modify
4892 *** your PATH or compiler configuration so that the native linker is
4893 *** used, and then restart.
4894
4895 _LT_EOF
4896 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4897 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4898 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4899 else
4900 _LT_TAGVAR(ld_shlibs, $1)=no
4901 fi
4902 ;;
4903
4904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4905 case `$LD -v 2>&1` in
4906 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4907 _LT_TAGVAR(ld_shlibs, $1)=no
4908 cat <<_LT_EOF 1>&2
4909
4910 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4911 *** reliably create shared libraries on SCO systems. Therefore, libtool
4912 *** is disabling shared libraries support. We urge you to upgrade GNU
4913 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4914 *** your PATH or compiler configuration so that the native linker is
4915 *** used, and then restart.
4916
4917 _LT_EOF
4918 ;;
4919 *)
4920 # For security reasons, it is highly recommended that you always
4921 # use absolute paths for naming shared libraries, and exclude the
4922 # DT_RUNPATH tag from executables and libraries. But doing so
4923 # requires that you compile everything twice, which is a pain.
4924 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4925 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4926 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4927 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4928 else
4929 _LT_TAGVAR(ld_shlibs, $1)=no
4930 fi
4931 ;;
4932 esac
4933 ;;
4934
4935 sunos4*)
4936 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4937 wlarc=
4938 _LT_TAGVAR(hardcode_direct, $1)=yes
4939 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4940 ;;
4941
4942 *)
4943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4944 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4945 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4946 else
4947 _LT_TAGVAR(ld_shlibs, $1)=no
4948 fi
4949 ;;
4950 esac
4951
4952 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4953 runpath_var=
4954 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4955 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4956 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4957 fi
4958 else
4959 # PORTME fill in a description of your system's linker (not GNU ld)
4960 case $host_os in
4961 aix3*)
4962 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4963 _LT_TAGVAR(always_export_symbols, $1)=yes
4964 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4965 # Note: this linker hardcodes the directories in LIBPATH if there
4966 # are no directories specified by -L.
4967 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4968 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4969 # Neither direct hardcoding nor static linking is supported with a
4970 # broken collect2.
4971 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4972 fi
4973 ;;
4974
4975 aix[[4-9]]*)
4976 if test "$host_cpu" = ia64; then
4977 # On IA64, the linker does run time linking by default, so we don't
4978 # have to do anything special.
4979 aix_use_runtimelinking=no
4980 exp_sym_flag='-Bexport'
4981 no_entry_flag=""
4982 else
4983 # If we're using GNU nm, then we don't want the "-C" option.
4984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4985 # Also, AIX nm treats weak defined symbols like other global
4986 # defined symbols, whereas GNU nm marks them as "W".
4987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4988 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4989 else
4990 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4991 fi
4992 aix_use_runtimelinking=no
4993
4994 # Test if we are trying to use run time linking or normal
4995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4996 # need to do runtime linking.
4997 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4998 for ld_flag in $LDFLAGS; do
4999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5000 aix_use_runtimelinking=yes
5001 break
5002 fi
5003 done
5004 ;;
5005 esac
5006
5007 exp_sym_flag='-bexport'
5008 no_entry_flag='-bnoentry'
5009 fi
5010
5011 # When large executables or shared objects are built, AIX ld can
5012 # have problems creating the table of contents. If linking a library
5013 # or program results in "error TOC overflow" add -mminimal-toc to
5014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5016
5017 _LT_TAGVAR(archive_cmds, $1)=''
5018 _LT_TAGVAR(hardcode_direct, $1)=yes
5019 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5020 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5021 _LT_TAGVAR(link_all_deplibs, $1)=yes
5022 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5023
5024 if test "$GCC" = yes; then
5025 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5026 # We only want to do this on AIX 4.2 and lower, the check
5027 # below for broken collect2 doesn't work under 4.3+
5028 collect2name=`${CC} -print-prog-name=collect2`
5029 if test -f "$collect2name" &&
5030 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5031 then
5032 # We have reworked collect2
5033 :
5034 else
5035 # We have old collect2
5036 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5037 # It fails to find uninstalled libraries when the uninstalled
5038 # path is not listed in the libpath. Setting hardcode_minus_L
5039 # to unsupported forces relinking
5040 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5041 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5042 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5043 fi
5044 ;;
5045 esac
5046 shared_flag='-shared'
5047 if test "$aix_use_runtimelinking" = yes; then
5048 shared_flag="$shared_flag "'${wl}-G'
5049 fi
5050 else
5051 # not using gcc
5052 if test "$host_cpu" = ia64; then
5053 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5054 # chokes on -Wl,-G. The following line is correct:
5055 shared_flag='-G'
5056 else
5057 if test "$aix_use_runtimelinking" = yes; then
5058 shared_flag='${wl}-G'
5059 else
5060 shared_flag='${wl}-bM:SRE'
5061 fi
5062 fi
5063 fi
5064
5065 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5066 # It seems that -bexpall does not export symbols beginning with
5067 # underscore (_), so it is better to generate a list of symbols to export.
5068 _LT_TAGVAR(always_export_symbols, $1)=yes
5069 if test "$aix_use_runtimelinking" = yes; then
5070 # Warning - without using the other runtime loading flags (-brtl),
5071 # -berok will link without error, but may produce a broken library.
5072 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5073 # Determine the default libpath from the value encoded in an
5074 # empty executable.
5075 _LT_SYS_MODULE_PATH_AIX([$1])
5076 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5077 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5078 else
5079 if test "$host_cpu" = ia64; then
5080 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5081 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5082 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5083 else
5084 # Determine the default libpath from the value encoded in an
5085 # empty executable.
5086 _LT_SYS_MODULE_PATH_AIX([$1])
5087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5088 # Warning - without using the other run time loading flags,
5089 # -berok will link without error, but may produce a broken library.
5090 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5091 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5092 if test "$with_gnu_ld" = yes; then
5093 # We only use this code for GNU lds that support --whole-archive.
5094 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5095 else
5096 # Exported symbols can be pulled into shared objects from archives
5097 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5098 fi
5099 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5100 # This is similar to how AIX traditionally builds its shared libraries.
5101 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5102 fi
5103 fi
5104 ;;
5105
5106 amigaos*)
5107 case $host_cpu in
5108 powerpc)
5109 # see comment about AmigaOS4 .so support
5110 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5111 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5112 ;;
5113 m68k)
5114 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5115 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5116 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5117 ;;
5118 esac
5119 ;;
5120
5121 bsdi[[45]]*)
5122 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5123 ;;
5124
5125 cygwin* | mingw* | pw32* | cegcc*)
5126 # When not using gcc, we currently assume that we are using
5127 # Microsoft Visual C++.
5128 # hardcode_libdir_flag_spec is actually meaningless, as there is
5129 # no search path for DLLs.
5130 case $cc_basename in
5131 cl*)
5132 # Native MSVC
5133 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5134 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5135 _LT_TAGVAR(always_export_symbols, $1)=yes
5136 _LT_TAGVAR(file_list_spec, $1)='@'
5137 # Tell ltmain to make .lib files, not .a files.
5138 libext=lib
5139 # Tell ltmain to make .dll files, not .so files.
5140 shrext_cmds=".dll"
5141 # FIXME: Setting linknames here is a bad hack.
5142 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5143 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5144 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5145 else
5146 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5147 fi~
5148 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5149 linknames='
5150 # The linker will not automatically build a static lib if we build a DLL.
5151 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5152 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5153 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5154 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5155 # Don't use ranlib
5156 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5157 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5158 lt_tool_outputfile="@TOOL_OUTPUT@"~
5159 case $lt_outputfile in
5160 *.exe|*.EXE) ;;
5161 *)
5162 lt_outputfile="$lt_outputfile.exe"
5163 lt_tool_outputfile="$lt_tool_outputfile.exe"
5164 ;;
5165 esac~
5166 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5167 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5168 $RM "$lt_outputfile.manifest";
5169 fi'
5170 ;;
5171 *)
5172 # Assume MSVC wrapper
5173 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5174 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5175 # Tell ltmain to make .lib files, not .a files.
5176 libext=lib
5177 # Tell ltmain to make .dll files, not .so files.
5178 shrext_cmds=".dll"
5179 # FIXME: Setting linknames here is a bad hack.
5180 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5181 # The linker will automatically build a .lib file if we build a DLL.
5182 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5183 # FIXME: Should let the user specify the lib program.
5184 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5185 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5186 ;;
5187 esac
5188 ;;
5189
5190 darwin* | rhapsody*)
5191 _LT_DARWIN_LINKER_FEATURES($1)
5192 ;;
5193
5194 dgux*)
5195 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5196 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5197 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5198 ;;
5199
5200 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5201 # support. Future versions do this automatically, but an explicit c++rt0.o
5202 # does not break anything, and helps significantly (at the cost of a little
5203 # extra space).
5204 freebsd2.2*)
5205 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5206 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5207 _LT_TAGVAR(hardcode_direct, $1)=yes
5208 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5209 ;;
5210
5211 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5212 freebsd2.*)
5213 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5214 _LT_TAGVAR(hardcode_direct, $1)=yes
5215 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5216 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5217 ;;
5218
5219 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5220 freebsd* | dragonfly*)
5221 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5222 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5223 _LT_TAGVAR(hardcode_direct, $1)=yes
5224 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5225 ;;
5226
5227 hpux9*)
5228 if test "$GCC" = yes; then
5229 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5230 else
5231 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5232 fi
5233 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5234 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5235 _LT_TAGVAR(hardcode_direct, $1)=yes
5236
5237 # hardcode_minus_L: Not really in the search PATH,
5238 # but as the default location of the library.
5239 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5240 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5241 ;;
5242
5243 hpux10*)
5244 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5245 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5246 else
5247 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5248 fi
5249 if test "$with_gnu_ld" = no; then
5250 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5251 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5252 _LT_TAGVAR(hardcode_direct, $1)=yes
5253 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5254 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5255 # hardcode_minus_L: Not really in the search PATH,
5256 # but as the default location of the library.
5257 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5258 fi
5259 ;;
5260
5261 hpux11*)
5262 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5263 case $host_cpu in
5264 hppa*64*)
5265 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5266 ;;
5267 ia64*)
5268 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5269 ;;
5270 *)
5271 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5272 ;;
5273 esac
5274 else
5275 case $host_cpu in
5276 hppa*64*)
5277 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5278 ;;
5279 ia64*)
5280 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5281 ;;
5282 *)
5283 m4_if($1, [], [
5284 # Older versions of the 11.00 compiler do not understand -b yet
5285 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5286 _LT_LINKER_OPTION([if $CC understands -b],
5287 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5288 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5289 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5290 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5291 ;;
5292 esac
5293 fi
5294 if test "$with_gnu_ld" = no; then
5295 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5296 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5297
5298 case $host_cpu in
5299 hppa*64*|ia64*)
5300 _LT_TAGVAR(hardcode_direct, $1)=no
5301 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5302 ;;
5303 *)
5304 _LT_TAGVAR(hardcode_direct, $1)=yes
5305 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5306 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5307
5308 # hardcode_minus_L: Not really in the search PATH,
5309 # but as the default location of the library.
5310 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5311 ;;
5312 esac
5313 fi
5314 ;;
5315
5316 irix5* | irix6* | nonstopux*)
5317 if test "$GCC" = yes; then
5318 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5319 # Try to use the -exported_symbol ld option, if it does not
5320 # work, assume that -exports_file does not work either and
5321 # implicitly export all symbols.
5322 # This should be the same for all languages, so no per-tag cache variable.
5323 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5324 [lt_cv_irix_exported_symbol],
5325 [save_LDFLAGS="$LDFLAGS"
5326 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5327 AC_LINK_IFELSE(
5328 [AC_LANG_SOURCE(
5329 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5330 [C++], [[int foo (void) { return 0; }]],
5331 [Fortran 77], [[
5332 subroutine foo
5333 end]],
5334 [Fortran], [[
5335 subroutine foo
5336 end]])])],
5337 [lt_cv_irix_exported_symbol=yes],
5338 [lt_cv_irix_exported_symbol=no])
5339 LDFLAGS="$save_LDFLAGS"])
5340 if test "$lt_cv_irix_exported_symbol" = yes; then
5341 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5342 fi
5343 else
5344 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5345 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5346 fi
5347 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5348 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5349 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5350 _LT_TAGVAR(inherit_rpath, $1)=yes
5351 _LT_TAGVAR(link_all_deplibs, $1)=yes
5352 ;;
5353
5354 netbsd*)
5355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5356 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5357 else
5358 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5359 fi
5360 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5361 _LT_TAGVAR(hardcode_direct, $1)=yes
5362 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5363 ;;
5364
5365 newsos6)
5366 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5367 _LT_TAGVAR(hardcode_direct, $1)=yes
5368 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5369 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5370 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5371 ;;
5372
5373 *nto* | *qnx*)
5374 ;;
5375
5376 openbsd*)
5377 if test -f /usr/libexec/ld.so; then
5378 _LT_TAGVAR(hardcode_direct, $1)=yes
5379 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5380 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5381 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5382 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5383 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5384 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5385 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5386 else
5387 case $host_os in
5388 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5389 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5390 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5391 ;;
5392 *)
5393 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5394 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5395 ;;
5396 esac
5397 fi
5398 else
5399 _LT_TAGVAR(ld_shlibs, $1)=no
5400 fi
5401 ;;
5402
5403 os2*)
5404 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5405 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5406 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5407 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5408 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5409 ;;
5410
5411 osf3*)
5412 if test "$GCC" = yes; then
5413 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5414 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5415 else
5416 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5417 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5418 fi
5419 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5421 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5422 ;;
5423
5424 osf4* | osf5*) # as osf3* with the addition of -msym flag
5425 if test "$GCC" = yes; then
5426 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5427 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5428 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5429 else
5430 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5431 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5432 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5433 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5434
5435 # Both c and cxx compiler support -rpath directly
5436 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5437 fi
5438 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5439 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5440 ;;
5441
5442 solaris*)
5443 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5444 if test "$GCC" = yes; then
5445 wlarc='${wl}'
5446 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5447 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5448 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5449 else
5450 case `$CC -V 2>&1` in
5451 *"Compilers 5.0"*)
5452 wlarc=''
5453 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5454 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5455 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5456 ;;
5457 *)
5458 wlarc='${wl}'
5459 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5460 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5461 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5462 ;;
5463 esac
5464 fi
5465 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5466 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5467 case $host_os in
5468 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5469 *)
5470 # The compiler driver will combine and reorder linker options,
5471 # but understands `-z linker_flag'. GCC discards it without `$wl',
5472 # but is careful enough not to reorder.
5473 # Supported since Solaris 2.6 (maybe 2.5.1?)
5474 if test "$GCC" = yes; then
5475 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5476 else
5477 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5478 fi
5479 ;;
5480 esac
5481 _LT_TAGVAR(link_all_deplibs, $1)=yes
5482 ;;
5483
5484 sunos4*)
5485 if test "x$host_vendor" = xsequent; then
5486 # Use $CC to link under sequent, because it throws in some extra .o
5487 # files that make .init and .fini sections work.
5488 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5489 else
5490 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5491 fi
5492 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5493 _LT_TAGVAR(hardcode_direct, $1)=yes
5494 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5495 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5496 ;;
5497
5498 sysv4)
5499 case $host_vendor in
5500 sni)
5501 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5502 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5503 ;;
5504 siemens)
5505 ## LD is ld it makes a PLAMLIB
5506 ## CC just makes a GrossModule.
5507 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5508 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5509 _LT_TAGVAR(hardcode_direct, $1)=no
5510 ;;
5511 motorola)
5512 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5513 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5514 ;;
5515 esac
5516 runpath_var='LD_RUN_PATH'
5517 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5518 ;;
5519
5520 sysv4.3*)
5521 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5522 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5523 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5524 ;;
5525
5526 sysv4*MP*)
5527 if test -d /usr/nec; then
5528 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5529 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5530 runpath_var=LD_RUN_PATH
5531 hardcode_runpath_var=yes
5532 _LT_TAGVAR(ld_shlibs, $1)=yes
5533 fi
5534 ;;
5535
5536 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5537 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5538 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5539 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5540 runpath_var='LD_RUN_PATH'
5541
5542 if test "$GCC" = yes; then
5543 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5544 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5545 else
5546 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5547 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5548 fi
5549 ;;
5550
5551 sysv5* | sco3.2v5* | sco5v6*)
5552 # Note: We can NOT use -z defs as we might desire, because we do not
5553 # link with -lc, and that would cause any symbols used from libc to
5554 # always be unresolved, which means just about no library would
5555 # ever link correctly. If we're not using GNU ld we use -z text
5556 # though, which does catch some bad symbols but isn't as heavy-handed
5557 # as -z defs.
5558 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5559 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5560 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5561 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5562 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5563 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5564 _LT_TAGVAR(link_all_deplibs, $1)=yes
5565 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5566 runpath_var='LD_RUN_PATH'
5567
5568 if test "$GCC" = yes; then
5569 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5570 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5571 else
5572 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5573 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5574 fi
5575 ;;
5576
5577 uts4*)
5578 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5579 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5580 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5581 ;;
5582
5583 *)
5584 _LT_TAGVAR(ld_shlibs, $1)=no
5585 ;;
5586 esac
5587
5588 if test x$host_vendor = xsni; then
5589 case $host in
5590 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5591 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5592 ;;
5593 esac
5594 fi
5595 fi
5596 ])
5597 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5598 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5599
5600 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5601
5602 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5603 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5604 _LT_DECL([], [extract_expsyms_cmds], [2],
5605 [The commands to extract the exported symbol list from a shared archive])
5606
5607 #
5608 # Do we need to explicitly link libc?
5609 #
5610 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5611 x|xyes)
5612 # Assume -lc should be added
5613 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5614
5615 if test "$enable_shared" = yes && test "$GCC" = yes; then
5616 case $_LT_TAGVAR(archive_cmds, $1) in
5617 *'~'*)
5618 # FIXME: we may have to deal with multi-command sequences.
5619 ;;
5620 '$CC '*)
5621 # Test whether the compiler implicitly links with -lc since on some
5622 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5623 # to ld, don't add -lc before -lgcc.
5624 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5625 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5626 [$RM conftest*
5627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5628
5629 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5630 soname=conftest
5631 lib=conftest
5632 libobjs=conftest.$ac_objext
5633 deplibs=
5634 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5635 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5636 compiler_flags=-v
5637 linker_flags=-v
5638 verstring=
5639 output_objdir=.
5640 libname=conftest
5641 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5642 _LT_TAGVAR(allow_undefined_flag, $1)=
5643 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5644 then
5645 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5646 else
5647 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5648 fi
5649 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5650 else
5651 cat conftest.err 1>&5
5652 fi
5653 $RM conftest*
5654 ])
5655 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5656 ;;
5657 esac
5658 fi
5659 ;;
5660 esac
5661
5662 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5663 [Whether or not to add -lc for building shared libraries])
5664 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5665 [enable_shared_with_static_runtimes], [0],
5666 [Whether or not to disallow shared libs when runtime libs are static])
5667 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5668 [Compiler flag to allow reflexive dlopens])
5669 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5670 [Compiler flag to generate shared objects directly from archives])
5671 _LT_TAGDECL([], [compiler_needs_object], [1],
5672 [Whether the compiler copes with passing no objects directly])
5673 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5674 [Create an old-style archive from a shared archive])
5675 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5676 [Create a temporary old-style archive to link instead of a shared archive])
5677 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5678 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5679 _LT_TAGDECL([], [module_cmds], [2],
5680 [Commands used to build a loadable module if different from building
5681 a shared archive.])
5682 _LT_TAGDECL([], [module_expsym_cmds], [2])
5683 _LT_TAGDECL([], [with_gnu_ld], [1],
5684 [Whether we are building with GNU ld or not])
5685 _LT_TAGDECL([], [allow_undefined_flag], [1],
5686 [Flag that allows shared libraries with undefined symbols to be built])
5687 _LT_TAGDECL([], [no_undefined_flag], [1],
5688 [Flag that enforces no undefined symbols])
5689 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5690 [Flag to hardcode $libdir into a binary during linking.
5691 This must work even if $libdir does not exist])
5692 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5693 [Whether we need a single "-rpath" flag with a separated argument])
5694 _LT_TAGDECL([], [hardcode_direct], [0],
5695 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5696 DIR into the resulting binary])
5697 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5698 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5699 DIR into the resulting binary and the resulting library dependency is
5700 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5701 library is relocated])
5702 _LT_TAGDECL([], [hardcode_minus_L], [0],
5703 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5704 into the resulting binary])
5705 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5706 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5707 into the resulting binary])
5708 _LT_TAGDECL([], [hardcode_automatic], [0],
5709 [Set to "yes" if building a shared library automatically hardcodes DIR
5710 into the library and all subsequent libraries and executables linked
5711 against it])
5712 _LT_TAGDECL([], [inherit_rpath], [0],
5713 [Set to yes if linker adds runtime paths of dependent libraries
5714 to runtime path list])
5715 _LT_TAGDECL([], [link_all_deplibs], [0],
5716 [Whether libtool must link a program against all its dependency libraries])
5717 _LT_TAGDECL([], [always_export_symbols], [0],
5718 [Set to "yes" if exported symbols are required])
5719 _LT_TAGDECL([], [export_symbols_cmds], [2],
5720 [The commands to list exported symbols])
5721 _LT_TAGDECL([], [exclude_expsyms], [1],
5722 [Symbols that should not be listed in the preloaded symbols])
5723 _LT_TAGDECL([], [include_expsyms], [1],
5724 [Symbols that must always be exported])
5725 _LT_TAGDECL([], [prelink_cmds], [2],
5726 [Commands necessary for linking programs (against libraries) with templates])
5727 _LT_TAGDECL([], [postlink_cmds], [2],
5728 [Commands necessary for finishing linking programs])
5729 _LT_TAGDECL([], [file_list_spec], [1],
5730 [Specify filename containing input files])
5731 dnl FIXME: Not yet implemented
5732 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5733 dnl [Compiler flag to generate thread safe objects])
5734 ])# _LT_LINKER_SHLIBS
5735
5736
5737 # _LT_LANG_C_CONFIG([TAG])
5738 # ------------------------
5739 # Ensure that the configuration variables for a C compiler are suitably
5740 # defined. These variables are subsequently used by _LT_CONFIG to write
5741 # the compiler configuration to `libtool'.
5742 m4_defun([_LT_LANG_C_CONFIG],
5743 [m4_require([_LT_DECL_EGREP])dnl
5744 lt_save_CC="$CC"
5745 AC_LANG_PUSH(C)
5746
5747 # Source file extension for C test sources.
5748 ac_ext=c
5749
5750 # Object file extension for compiled C test sources.
5751 objext=o
5752 _LT_TAGVAR(objext, $1)=$objext
5753
5754 # Code to be used in simple compile tests
5755 lt_simple_compile_test_code="int some_variable = 0;"
5756
5757 # Code to be used in simple link tests
5758 lt_simple_link_test_code='int main(){return(0);}'
5759
5760 _LT_TAG_COMPILER
5761 # Save the default compiler, since it gets overwritten when the other
5762 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5763 compiler_DEFAULT=$CC
5764
5765 # save warnings/boilerplate of simple test code
5766 _LT_COMPILER_BOILERPLATE
5767 _LT_LINKER_BOILERPLATE
5768
5769 ## CAVEAT EMPTOR:
5770 ## There is no encapsulation within the following macros, do not change
5771 ## the running order or otherwise move them around unless you know exactly
5772 ## what you are doing...
5773 if test -n "$compiler"; then
5774 _LT_COMPILER_NO_RTTI($1)
5775 _LT_COMPILER_PIC($1)
5776 _LT_COMPILER_C_O($1)
5777 _LT_COMPILER_FILE_LOCKS($1)
5778 _LT_LINKER_SHLIBS($1)
5779 _LT_SYS_DYNAMIC_LINKER($1)
5780 _LT_LINKER_HARDCODE_LIBPATH($1)
5781 LT_SYS_DLOPEN_SELF
5782 _LT_CMD_STRIPLIB
5783
5784 # Report which library types will actually be built
5785 AC_MSG_CHECKING([if libtool supports shared libraries])
5786 AC_MSG_RESULT([$can_build_shared])
5787
5788 AC_MSG_CHECKING([whether to build shared libraries])
5789 test "$can_build_shared" = "no" && enable_shared=no
5790
5791 # On AIX, shared libraries and static libraries use the same namespace, and
5792 # are all built from PIC.
5793 case $host_os in
5794 aix3*)
5795 test "$enable_shared" = yes && enable_static=no
5796 if test -n "$RANLIB"; then
5797 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5798 postinstall_cmds='$RANLIB $lib'
5799 fi
5800 ;;
5801
5802 aix[[4-9]]*)
5803 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5804 test "$enable_shared" = yes && enable_static=no
5805 fi
5806 ;;
5807 esac
5808 AC_MSG_RESULT([$enable_shared])
5809
5810 AC_MSG_CHECKING([whether to build static libraries])
5811 # Make sure either enable_shared or enable_static is yes.
5812 test "$enable_shared" = yes || enable_static=yes
5813 AC_MSG_RESULT([$enable_static])
5814
5815 _LT_CONFIG($1)
5816 fi
5817 AC_LANG_POP
5818 CC="$lt_save_CC"
5819 ])# _LT_LANG_C_CONFIG
5820
5821
5822 # _LT_LANG_CXX_CONFIG([TAG])
5823 # --------------------------
5824 # Ensure that the configuration variables for a C++ compiler are suitably
5825 # defined. These variables are subsequently used by _LT_CONFIG to write
5826 # the compiler configuration to `libtool'.
5827 m4_defun([_LT_LANG_CXX_CONFIG],
5828 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5829 m4_require([_LT_DECL_EGREP])dnl
5830 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5831 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5832 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5833 (test "X$CXX" != "Xg++"))) ; then
5834 AC_PROG_CXXCPP
5835 else
5836 _lt_caught_CXX_error=yes
5837 fi
5838
5839 AC_LANG_PUSH(C++)
5840 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5841 _LT_TAGVAR(allow_undefined_flag, $1)=
5842 _LT_TAGVAR(always_export_symbols, $1)=no
5843 _LT_TAGVAR(archive_expsym_cmds, $1)=
5844 _LT_TAGVAR(compiler_needs_object, $1)=no
5845 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5846 _LT_TAGVAR(hardcode_direct, $1)=no
5847 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5848 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5849 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5850 _LT_TAGVAR(hardcode_minus_L, $1)=no
5851 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5852 _LT_TAGVAR(hardcode_automatic, $1)=no
5853 _LT_TAGVAR(inherit_rpath, $1)=no
5854 _LT_TAGVAR(module_cmds, $1)=
5855 _LT_TAGVAR(module_expsym_cmds, $1)=
5856 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5857 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5858 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5859 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5860 _LT_TAGVAR(no_undefined_flag, $1)=
5861 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5862 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5863
5864 # Source file extension for C++ test sources.
5865 ac_ext=cpp
5866
5867 # Object file extension for compiled C++ test sources.
5868 objext=o
5869 _LT_TAGVAR(objext, $1)=$objext
5870
5871 # No sense in running all these tests if we already determined that
5872 # the CXX compiler isn't working. Some variables (like enable_shared)
5873 # are currently assumed to apply to all compilers on this platform,
5874 # and will be corrupted by setting them based on a non-working compiler.
5875 if test "$_lt_caught_CXX_error" != yes; then
5876 # Code to be used in simple compile tests
5877 lt_simple_compile_test_code="int some_variable = 0;"
5878
5879 # Code to be used in simple link tests
5880 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5881
5882 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5883 _LT_TAG_COMPILER
5884
5885 # save warnings/boilerplate of simple test code
5886 _LT_COMPILER_BOILERPLATE
5887 _LT_LINKER_BOILERPLATE
5888
5889 # Allow CC to be a program name with arguments.
5890 lt_save_CC=$CC
5891 lt_save_CFLAGS=$CFLAGS
5892 lt_save_LD=$LD
5893 lt_save_GCC=$GCC
5894 GCC=$GXX
5895 lt_save_with_gnu_ld=$with_gnu_ld
5896 lt_save_path_LD=$lt_cv_path_LD
5897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5898 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5899 else
5900 $as_unset lt_cv_prog_gnu_ld
5901 fi
5902 if test -n "${lt_cv_path_LDCXX+set}"; then
5903 lt_cv_path_LD=$lt_cv_path_LDCXX
5904 else
5905 $as_unset lt_cv_path_LD
5906 fi
5907 test -z "${LDCXX+set}" || LD=$LDCXX
5908 CC=${CXX-"c++"}
5909 CFLAGS=$CXXFLAGS
5910 compiler=$CC
5911 _LT_TAGVAR(compiler, $1)=$CC
5912 _LT_CC_BASENAME([$compiler])
5913
5914 if test -n "$compiler"; then
5915 # We don't want -fno-exception when compiling C++ code, so set the
5916 # no_builtin_flag separately
5917 if test "$GXX" = yes; then
5918 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5919 else
5920 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5921 fi
5922
5923 if test "$GXX" = yes; then
5924 # Set up default GNU C++ configuration
5925
5926 LT_PATH_LD
5927
5928 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5929 # archiving commands below assume that GNU ld is being used.
5930 if test "$with_gnu_ld" = yes; then
5931 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5932 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5933
5934 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5935 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5936
5937 # If archive_cmds runs LD, not CC, wlarc should be empty
5938 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5939 # investigate it a little bit more. (MM)
5940 wlarc='${wl}'
5941
5942 # ancient GNU ld didn't support --whole-archive et. al.
5943 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5944 $GREP 'no-whole-archive' > /dev/null; then
5945 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5946 else
5947 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5948 fi
5949 else
5950 with_gnu_ld=no
5951 wlarc=
5952
5953 # A generic and very simple default shared library creation
5954 # command for GNU C++ for the case where it uses the native
5955 # linker, instead of GNU ld. If possible, this setting should
5956 # overridden to take advantage of the native linker features on
5957 # the platform it is being used on.
5958 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5959 fi
5960
5961 # Commands to make compiler produce verbose output that lists
5962 # what "hidden" libraries, object files and flags are used when
5963 # linking a shared library.
5964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5965
5966 else
5967 GXX=no
5968 with_gnu_ld=no
5969 wlarc=
5970 fi
5971
5972 # PORTME: fill in a description of your system's C++ link characteristics
5973 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5974 _LT_TAGVAR(ld_shlibs, $1)=yes
5975 case $host_os in
5976 aix3*)
5977 # FIXME: insert proper C++ library support
5978 _LT_TAGVAR(ld_shlibs, $1)=no
5979 ;;
5980 aix[[4-9]]*)
5981 if test "$host_cpu" = ia64; then
5982 # On IA64, the linker does run time linking by default, so we don't
5983 # have to do anything special.
5984 aix_use_runtimelinking=no
5985 exp_sym_flag='-Bexport'
5986 no_entry_flag=""
5987 else
5988 aix_use_runtimelinking=no
5989
5990 # Test if we are trying to use run time linking or normal
5991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5992 # need to do runtime linking.
5993 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5994 for ld_flag in $LDFLAGS; do
5995 case $ld_flag in
5996 *-brtl*)
5997 aix_use_runtimelinking=yes
5998 break
5999 ;;
6000 esac
6001 done
6002 ;;
6003 esac
6004
6005 exp_sym_flag='-bexport'
6006 no_entry_flag='-bnoentry'
6007 fi
6008
6009 # When large executables or shared objects are built, AIX ld can
6010 # have problems creating the table of contents. If linking a library
6011 # or program results in "error TOC overflow" add -mminimal-toc to
6012 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6013 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6014
6015 _LT_TAGVAR(archive_cmds, $1)=''
6016 _LT_TAGVAR(hardcode_direct, $1)=yes
6017 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6018 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6019 _LT_TAGVAR(link_all_deplibs, $1)=yes
6020 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6021
6022 if test "$GXX" = yes; then
6023 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6024 # We only want to do this on AIX 4.2 and lower, the check
6025 # below for broken collect2 doesn't work under 4.3+
6026 collect2name=`${CC} -print-prog-name=collect2`
6027 if test -f "$collect2name" &&
6028 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6029 then
6030 # We have reworked collect2
6031 :
6032 else
6033 # We have old collect2
6034 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6035 # It fails to find uninstalled libraries when the uninstalled
6036 # path is not listed in the libpath. Setting hardcode_minus_L
6037 # to unsupported forces relinking
6038 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6039 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6040 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6041 fi
6042 esac
6043 shared_flag='-shared'
6044 if test "$aix_use_runtimelinking" = yes; then
6045 shared_flag="$shared_flag "'${wl}-G'
6046 fi
6047 else
6048 # not using gcc
6049 if test "$host_cpu" = ia64; then
6050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6051 # chokes on -Wl,-G. The following line is correct:
6052 shared_flag='-G'
6053 else
6054 if test "$aix_use_runtimelinking" = yes; then
6055 shared_flag='${wl}-G'
6056 else
6057 shared_flag='${wl}-bM:SRE'
6058 fi
6059 fi
6060 fi
6061
6062 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6063 # It seems that -bexpall does not export symbols beginning with
6064 # underscore (_), so it is better to generate a list of symbols to
6065 # export.
6066 _LT_TAGVAR(always_export_symbols, $1)=yes
6067 if test "$aix_use_runtimelinking" = yes; then
6068 # Warning - without using the other runtime loading flags (-brtl),
6069 # -berok will link without error, but may produce a broken library.
6070 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6071 # Determine the default libpath from the value encoded in an empty
6072 # executable.
6073 _LT_SYS_MODULE_PATH_AIX([$1])
6074 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6075
6076 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6077 else
6078 if test "$host_cpu" = ia64; then
6079 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6080 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6081 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6082 else
6083 # Determine the default libpath from the value encoded in an
6084 # empty executable.
6085 _LT_SYS_MODULE_PATH_AIX([$1])
6086 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6087 # Warning - without using the other run time loading flags,
6088 # -berok will link without error, but may produce a broken library.
6089 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6090 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6091 if test "$with_gnu_ld" = yes; then
6092 # We only use this code for GNU lds that support --whole-archive.
6093 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6094 else
6095 # Exported symbols can be pulled into shared objects from archives
6096 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6097 fi
6098 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6099 # This is similar to how AIX traditionally builds its shared
6100 # libraries.
6101 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6102 fi
6103 fi
6104 ;;
6105
6106 beos*)
6107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6108 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6110 # support --undefined. This deserves some investigation. FIXME
6111 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6112 else
6113 _LT_TAGVAR(ld_shlibs, $1)=no
6114 fi
6115 ;;
6116
6117 chorus*)
6118 case $cc_basename in
6119 *)
6120 # FIXME: insert proper C++ library support
6121 _LT_TAGVAR(ld_shlibs, $1)=no
6122 ;;
6123 esac
6124 ;;
6125
6126 cygwin* | mingw* | pw32* | cegcc*)
6127 case $GXX,$cc_basename in
6128 ,cl* | no,cl*)
6129 # Native MSVC
6130 # hardcode_libdir_flag_spec is actually meaningless, as there is
6131 # no search path for DLLs.
6132 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6133 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6134 _LT_TAGVAR(always_export_symbols, $1)=yes
6135 _LT_TAGVAR(file_list_spec, $1)='@'
6136 # Tell ltmain to make .lib files, not .a files.
6137 libext=lib
6138 # Tell ltmain to make .dll files, not .so files.
6139 shrext_cmds=".dll"
6140 # FIXME: Setting linknames here is a bad hack.
6141 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6142 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6143 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6144 else
6145 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6146 fi~
6147 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6148 linknames='
6149 # The linker will not automatically build a static lib if we build a DLL.
6150 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6151 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6152 # Don't use ranlib
6153 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6154 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6155 lt_tool_outputfile="@TOOL_OUTPUT@"~
6156 case $lt_outputfile in
6157 *.exe|*.EXE) ;;
6158 *)
6159 lt_outputfile="$lt_outputfile.exe"
6160 lt_tool_outputfile="$lt_tool_outputfile.exe"
6161 ;;
6162 esac~
6163 func_to_tool_file "$lt_outputfile"~
6164 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6165 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6166 $RM "$lt_outputfile.manifest";
6167 fi'
6168 ;;
6169 *)
6170 # g++
6171 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6172 # as there is no search path for DLLs.
6173 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6174 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6175 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6176 _LT_TAGVAR(always_export_symbols, $1)=no
6177 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6178
6179 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6180 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6181 # If the export-symbols file already is a .def file (1st line
6182 # is EXPORTS), use it as is; otherwise, prepend...
6183 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6184 cp $export_symbols $output_objdir/$soname.def;
6185 else
6186 echo EXPORTS > $output_objdir/$soname.def;
6187 cat $export_symbols >> $output_objdir/$soname.def;
6188 fi~
6189 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6190 else
6191 _LT_TAGVAR(ld_shlibs, $1)=no
6192 fi
6193 ;;
6194 esac
6195 ;;
6196 darwin* | rhapsody*)
6197 _LT_DARWIN_LINKER_FEATURES($1)
6198 ;;
6199
6200 dgux*)
6201 case $cc_basename in
6202 ec++*)
6203 # FIXME: insert proper C++ library support
6204 _LT_TAGVAR(ld_shlibs, $1)=no
6205 ;;
6206 ghcx*)
6207 # Green Hills C++ Compiler
6208 # FIXME: insert proper C++ library support
6209 _LT_TAGVAR(ld_shlibs, $1)=no
6210 ;;
6211 *)
6212 # FIXME: insert proper C++ library support
6213 _LT_TAGVAR(ld_shlibs, $1)=no
6214 ;;
6215 esac
6216 ;;
6217
6218 freebsd2.*)
6219 # C++ shared libraries reported to be fairly broken before
6220 # switch to ELF
6221 _LT_TAGVAR(ld_shlibs, $1)=no
6222 ;;
6223
6224 freebsd-elf*)
6225 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6226 ;;
6227
6228 freebsd* | dragonfly*)
6229 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6230 # conventions
6231 _LT_TAGVAR(ld_shlibs, $1)=yes
6232 ;;
6233
6234 gnu*)
6235 ;;
6236
6237 haiku*)
6238 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6239 _LT_TAGVAR(link_all_deplibs, $1)=yes
6240 ;;
6241
6242 hpux9*)
6243 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6244 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6245 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6246 _LT_TAGVAR(hardcode_direct, $1)=yes
6247 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6248 # but as the default
6249 # location of the library.
6250
6251 case $cc_basename in
6252 CC*)
6253 # FIXME: insert proper C++ library support
6254 _LT_TAGVAR(ld_shlibs, $1)=no
6255 ;;
6256 aCC*)
6257 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6258 # Commands to make compiler produce verbose output that lists
6259 # what "hidden" libraries, object files and flags are used when
6260 # linking a shared library.
6261 #
6262 # There doesn't appear to be a way to prevent this compiler from
6263 # explicitly linking system object files so we need to strip them
6264 # from the output so that they don't get included in the library
6265 # dependencies.
6266 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6267 ;;
6268 *)
6269 if test "$GXX" = yes; then
6270 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6271 else
6272 # FIXME: insert proper C++ library support
6273 _LT_TAGVAR(ld_shlibs, $1)=no
6274 fi
6275 ;;
6276 esac
6277 ;;
6278
6279 hpux10*|hpux11*)
6280 if test $with_gnu_ld = no; then
6281 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6282 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6283
6284 case $host_cpu in
6285 hppa*64*|ia64*)
6286 ;;
6287 *)
6288 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6289 ;;
6290 esac
6291 fi
6292 case $host_cpu in
6293 hppa*64*|ia64*)
6294 _LT_TAGVAR(hardcode_direct, $1)=no
6295 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6296 ;;
6297 *)
6298 _LT_TAGVAR(hardcode_direct, $1)=yes
6299 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6300 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6301 # but as the default
6302 # location of the library.
6303 ;;
6304 esac
6305
6306 case $cc_basename in
6307 CC*)
6308 # FIXME: insert proper C++ library support
6309 _LT_TAGVAR(ld_shlibs, $1)=no
6310 ;;
6311 aCC*)
6312 case $host_cpu in
6313 hppa*64*)
6314 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6315 ;;
6316 ia64*)
6317 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6318 ;;
6319 *)
6320 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6321 ;;
6322 esac
6323 # Commands to make compiler produce verbose output that lists
6324 # what "hidden" libraries, object files and flags are used when
6325 # linking a shared library.
6326 #
6327 # There doesn't appear to be a way to prevent this compiler from
6328 # explicitly linking system object files so we need to strip them
6329 # from the output so that they don't get included in the library
6330 # dependencies.
6331 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6332 ;;
6333 *)
6334 if test "$GXX" = yes; then
6335 if test $with_gnu_ld = no; then
6336 case $host_cpu in
6337 hppa*64*)
6338 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6339 ;;
6340 ia64*)
6341 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6342 ;;
6343 *)
6344 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6345 ;;
6346 esac
6347 fi
6348 else
6349 # FIXME: insert proper C++ library support
6350 _LT_TAGVAR(ld_shlibs, $1)=no
6351 fi
6352 ;;
6353 esac
6354 ;;
6355
6356 interix[[3-9]]*)
6357 _LT_TAGVAR(hardcode_direct, $1)=no
6358 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6360 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6361 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6362 # Instead, shared libraries are loaded at an image base (0x10000000 by
6363 # default) and relocated if they conflict, which is a slow very memory
6364 # consuming and fragmenting process. To avoid this, we pick a random,
6365 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6366 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6367 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6368 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6369 ;;
6370 irix5* | irix6*)
6371 case $cc_basename in
6372 CC*)
6373 # SGI C++
6374 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6375
6376 # Archives containing C++ object files must be created using
6377 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6378 # necessary to make sure instantiated templates are included
6379 # in the archive.
6380 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6381 ;;
6382 *)
6383 if test "$GXX" = yes; then
6384 if test "$with_gnu_ld" = no; then
6385 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6386 else
6387 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6388 fi
6389 fi
6390 _LT_TAGVAR(link_all_deplibs, $1)=yes
6391 ;;
6392 esac
6393 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6394 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6395 _LT_TAGVAR(inherit_rpath, $1)=yes
6396 ;;
6397
6398 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6399 case $cc_basename in
6400 KCC*)
6401 # Kuck and Associates, Inc. (KAI) C++ Compiler
6402
6403 # KCC will only create a shared library if the output file
6404 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6405 # to its proper name (with version) after linking.
6406 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6407 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6408 # Commands to make compiler produce verbose output that lists
6409 # what "hidden" libraries, object files and flags are used when
6410 # linking a shared library.
6411 #
6412 # There doesn't appear to be a way to prevent this compiler from
6413 # explicitly linking system object files so we need to strip them
6414 # from the output so that they don't get included in the library
6415 # dependencies.
6416 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6417
6418 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6419 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6420
6421 # Archives containing C++ object files must be created using
6422 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6423 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6424 ;;
6425 icpc* | ecpc* )
6426 # Intel C++
6427 with_gnu_ld=yes
6428 # version 8.0 and above of icpc choke on multiply defined symbols
6429 # if we add $predep_objects and $postdep_objects, however 7.1 and
6430 # earlier do not add the objects themselves.
6431 case `$CC -V 2>&1` in
6432 *"Version 7."*)
6433 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6434 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6435 ;;
6436 *) # Version 8.0 or newer
6437 tmp_idyn=
6438 case $host_cpu in
6439 ia64*) tmp_idyn=' -i_dynamic';;
6440 esac
6441 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6442 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6443 ;;
6444 esac
6445 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6446 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6447 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6448 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6449 ;;
6450 pgCC* | pgcpp*)
6451 # Portland Group C++ compiler
6452 case `$CC -V` in
6453 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6454 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6455 rm -rf $tpldir~
6456 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6457 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6458 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6459 rm -rf $tpldir~
6460 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6461 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6462 $RANLIB $oldlib'
6463 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6464 rm -rf $tpldir~
6465 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6466 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6467 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6468 rm -rf $tpldir~
6469 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6470 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6471 ;;
6472 *) # Version 6 and above use weak symbols
6473 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6474 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6475 ;;
6476 esac
6477
6478 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6479 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6480 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6481 ;;
6482 cxx*)
6483 # Compaq C++
6484 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6485 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6486
6487 runpath_var=LD_RUN_PATH
6488 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6489 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6490
6491 # Commands to make compiler produce verbose output that lists
6492 # what "hidden" libraries, object files and flags are used when
6493 # linking a shared library.
6494 #
6495 # There doesn't appear to be a way to prevent this compiler from
6496 # explicitly linking system object files so we need to strip them
6497 # from the output so that they don't get included in the library
6498 # dependencies.
6499 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6500 ;;
6501 xl* | mpixl* | bgxl*)
6502 # IBM XL 8.0 on PPC, with GNU ld
6503 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6504 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6505 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6506 if test "x$supports_anon_versioning" = xyes; then
6507 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6509 echo "local: *; };" >> $output_objdir/$libname.ver~
6510 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6511 fi
6512 ;;
6513 *)
6514 case `$CC -V 2>&1 | sed 5q` in
6515 *Sun\ C*)
6516 # Sun C++ 5.9
6517 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6518 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6519 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6520 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6521 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6522 _LT_TAGVAR(compiler_needs_object, $1)=yes
6523
6524 # Not sure whether something based on
6525 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6526 # would be better.
6527 output_verbose_link_cmd='func_echo_all'
6528
6529 # Archives containing C++ object files must be created using
6530 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6531 # necessary to make sure instantiated templates are included
6532 # in the archive.
6533 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6534 ;;
6535 esac
6536 ;;
6537 esac
6538 ;;
6539
6540 lynxos*)
6541 # FIXME: insert proper C++ library support
6542 _LT_TAGVAR(ld_shlibs, $1)=no
6543 ;;
6544
6545 m88k*)
6546 # FIXME: insert proper C++ library support
6547 _LT_TAGVAR(ld_shlibs, $1)=no
6548 ;;
6549
6550 mvs*)
6551 case $cc_basename in
6552 cxx*)
6553 # FIXME: insert proper C++ library support
6554 _LT_TAGVAR(ld_shlibs, $1)=no
6555 ;;
6556 *)
6557 # FIXME: insert proper C++ library support
6558 _LT_TAGVAR(ld_shlibs, $1)=no
6559 ;;
6560 esac
6561 ;;
6562
6563 netbsd*)
6564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6565 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6566 wlarc=
6567 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6568 _LT_TAGVAR(hardcode_direct, $1)=yes
6569 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6570 fi
6571 # Workaround some broken pre-1.5 toolchains
6572 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6573 ;;
6574
6575 *nto* | *qnx*)
6576 _LT_TAGVAR(ld_shlibs, $1)=yes
6577 ;;
6578
6579 openbsd2*)
6580 # C++ shared libraries are fairly broken
6581 _LT_TAGVAR(ld_shlibs, $1)=no
6582 ;;
6583
6584 openbsd*)
6585 if test -f /usr/libexec/ld.so; then
6586 _LT_TAGVAR(hardcode_direct, $1)=yes
6587 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6588 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6589 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6590 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6592 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6593 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6594 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6595 fi
6596 output_verbose_link_cmd=func_echo_all
6597 else
6598 _LT_TAGVAR(ld_shlibs, $1)=no
6599 fi
6600 ;;
6601
6602 osf3* | osf4* | osf5*)
6603 case $cc_basename in
6604 KCC*)
6605 # Kuck and Associates, Inc. (KAI) C++ Compiler
6606
6607 # KCC will only create a shared library if the output file
6608 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6609 # to its proper name (with version) after linking.
6610 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6611
6612 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6613 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6614
6615 # Archives containing C++ object files must be created using
6616 # the KAI C++ compiler.
6617 case $host in
6618 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6619 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6620 esac
6621 ;;
6622 RCC*)
6623 # Rational C++ 2.4.1
6624 # FIXME: insert proper C++ library support
6625 _LT_TAGVAR(ld_shlibs, $1)=no
6626 ;;
6627 cxx*)
6628 case $host in
6629 osf3*)
6630 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6631 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6632 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6633 ;;
6634 *)
6635 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6636 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6637 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6638 echo "-hidden">> $lib.exp~
6639 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
6640 $RM $lib.exp'
6641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6642 ;;
6643 esac
6644
6645 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6646
6647 # Commands to make compiler produce verbose output that lists
6648 # what "hidden" libraries, object files and flags are used when
6649 # linking a shared library.
6650 #
6651 # There doesn't appear to be a way to prevent this compiler from
6652 # explicitly linking system object files so we need to strip them
6653 # from the output so that they don't get included in the library
6654 # dependencies.
6655 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6656 ;;
6657 *)
6658 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6659 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6660 case $host in
6661 osf3*)
6662 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6663 ;;
6664 *)
6665 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6666 ;;
6667 esac
6668
6669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6670 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6671
6672 # Commands to make compiler produce verbose output that lists
6673 # what "hidden" libraries, object files and flags are used when
6674 # linking a shared library.
6675 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6676
6677 else
6678 # FIXME: insert proper C++ library support
6679 _LT_TAGVAR(ld_shlibs, $1)=no
6680 fi
6681 ;;
6682 esac
6683 ;;
6684
6685 psos*)
6686 # FIXME: insert proper C++ library support
6687 _LT_TAGVAR(ld_shlibs, $1)=no
6688 ;;
6689
6690 sunos4*)
6691 case $cc_basename in
6692 CC*)
6693 # Sun C++ 4.x
6694 # FIXME: insert proper C++ library support
6695 _LT_TAGVAR(ld_shlibs, $1)=no
6696 ;;
6697 lcc*)
6698 # Lucid
6699 # FIXME: insert proper C++ library support
6700 _LT_TAGVAR(ld_shlibs, $1)=no
6701 ;;
6702 *)
6703 # FIXME: insert proper C++ library support
6704 _LT_TAGVAR(ld_shlibs, $1)=no
6705 ;;
6706 esac
6707 ;;
6708
6709 solaris*)
6710 case $cc_basename in
6711 CC* | sunCC*)
6712 # Sun C++ 4.2, 5.x and Centerline C++
6713 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6714 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6715 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6716 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6717 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6718
6719 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6720 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6721 case $host_os in
6722 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6723 *)
6724 # The compiler driver will combine and reorder linker options,
6725 # but understands `-z linker_flag'.
6726 # Supported since Solaris 2.6 (maybe 2.5.1?)
6727 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6728 ;;
6729 esac
6730 _LT_TAGVAR(link_all_deplibs, $1)=yes
6731
6732 output_verbose_link_cmd='func_echo_all'
6733
6734 # Archives containing C++ object files must be created using
6735 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6736 # necessary to make sure instantiated templates are included
6737 # in the archive.
6738 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6739 ;;
6740 gcx*)
6741 # Green Hills C++ Compiler
6742 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6743
6744 # The C++ compiler must be used to create the archive.
6745 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6746 ;;
6747 *)
6748 # GNU C++ compiler with Solaris linker
6749 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6750 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6751 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6752 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6753 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6754 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6755
6756 # Commands to make compiler produce verbose output that lists
6757 # what "hidden" libraries, object files and flags are used when
6758 # linking a shared library.
6759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6760 else
6761 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6762 # platform.
6763 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6764 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6765 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6766
6767 # Commands to make compiler produce verbose output that lists
6768 # what "hidden" libraries, object files and flags are used when
6769 # linking a shared library.
6770 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6771 fi
6772
6773 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6774 case $host_os in
6775 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6776 *)
6777 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6778 ;;
6779 esac
6780 fi
6781 ;;
6782 esac
6783 ;;
6784
6785 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6786 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6787 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6788 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6789 runpath_var='LD_RUN_PATH'
6790
6791 case $cc_basename in
6792 CC*)
6793 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6794 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6795 ;;
6796 *)
6797 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6798 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6799 ;;
6800 esac
6801 ;;
6802
6803 sysv5* | sco3.2v5* | sco5v6*)
6804 # Note: We can NOT use -z defs as we might desire, because we do not
6805 # link with -lc, and that would cause any symbols used from libc to
6806 # always be unresolved, which means just about no library would
6807 # ever link correctly. If we're not using GNU ld we use -z text
6808 # though, which does catch some bad symbols but isn't as heavy-handed
6809 # as -z defs.
6810 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6811 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6812 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6813 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6814 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6815 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6816 _LT_TAGVAR(link_all_deplibs, $1)=yes
6817 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6818 runpath_var='LD_RUN_PATH'
6819
6820 case $cc_basename in
6821 CC*)
6822 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6823 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6824 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6825 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6826 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6827 '"$_LT_TAGVAR(reload_cmds, $1)"
6828 ;;
6829 *)
6830 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6831 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6832 ;;
6833 esac
6834 ;;
6835
6836 tandem*)
6837 case $cc_basename in
6838 NCC*)
6839 # NonStop-UX NCC 3.20
6840 # FIXME: insert proper C++ library support
6841 _LT_TAGVAR(ld_shlibs, $1)=no
6842 ;;
6843 *)
6844 # FIXME: insert proper C++ library support
6845 _LT_TAGVAR(ld_shlibs, $1)=no
6846 ;;
6847 esac
6848 ;;
6849
6850 vxworks*)
6851 # FIXME: insert proper C++ library support
6852 _LT_TAGVAR(ld_shlibs, $1)=no
6853 ;;
6854
6855 *)
6856 # FIXME: insert proper C++ library support
6857 _LT_TAGVAR(ld_shlibs, $1)=no
6858 ;;
6859 esac
6860
6861 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6862 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6863
6864 _LT_TAGVAR(GCC, $1)="$GXX"
6865 _LT_TAGVAR(LD, $1)="$LD"
6866
6867 ## CAVEAT EMPTOR:
6868 ## There is no encapsulation within the following macros, do not change
6869 ## the running order or otherwise move them around unless you know exactly
6870 ## what you are doing...
6871 _LT_SYS_HIDDEN_LIBDEPS($1)
6872 _LT_COMPILER_PIC($1)
6873 _LT_COMPILER_C_O($1)
6874 _LT_COMPILER_FILE_LOCKS($1)
6875 _LT_LINKER_SHLIBS($1)
6876 _LT_SYS_DYNAMIC_LINKER($1)
6877 _LT_LINKER_HARDCODE_LIBPATH($1)
6878
6879 _LT_CONFIG($1)
6880 fi # test -n "$compiler"
6881
6882 CC=$lt_save_CC
6883 CFLAGS=$lt_save_CFLAGS
6884 LDCXX=$LD
6885 LD=$lt_save_LD
6886 GCC=$lt_save_GCC
6887 with_gnu_ld=$lt_save_with_gnu_ld
6888 lt_cv_path_LDCXX=$lt_cv_path_LD
6889 lt_cv_path_LD=$lt_save_path_LD
6890 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6891 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6892 fi # test "$_lt_caught_CXX_error" != yes
6893
6894 AC_LANG_POP
6895 ])# _LT_LANG_CXX_CONFIG
6896
6897
6898 # _LT_FUNC_STRIPNAME_CNF
6899 # ----------------------
6900 # func_stripname_cnf prefix suffix name
6901 # strip PREFIX and SUFFIX off of NAME.
6902 # PREFIX and SUFFIX must not contain globbing or regex special
6903 # characters, hashes, percent signs, but SUFFIX may contain a leading
6904 # dot (in which case that matches only a dot).
6905 #
6906 # This function is identical to the (non-XSI) version of func_stripname,
6907 # except this one can be used by m4 code that may be executed by configure,
6908 # rather than the libtool script.
6909 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6910 AC_REQUIRE([_LT_DECL_SED])
6911 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6912 func_stripname_cnf ()
6913 {
6914 case ${2} in
6915 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6916 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6917 esac
6918 } # func_stripname_cnf
6919 ])# _LT_FUNC_STRIPNAME_CNF
6920
6921 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6922 # ---------------------------------
6923 # Figure out "hidden" library dependencies from verbose
6924 # compiler output when linking a shared library.
6925 # Parse the compiler output and extract the necessary
6926 # objects, libraries and library flags.
6927 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6928 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6929 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6930 # Dependencies to place before and after the object being linked:
6931 _LT_TAGVAR(predep_objects, $1)=
6932 _LT_TAGVAR(postdep_objects, $1)=
6933 _LT_TAGVAR(predeps, $1)=
6934 _LT_TAGVAR(postdeps, $1)=
6935 _LT_TAGVAR(compiler_lib_search_path, $1)=
6936
6937 dnl we can't use the lt_simple_compile_test_code here,
6938 dnl because it contains code intended for an executable,
6939 dnl not a library. It's possible we should let each
6940 dnl tag define a new lt_????_link_test_code variable,
6941 dnl but it's only used here...
6942 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6943 int a;
6944 void foo (void) { a = 0; }
6945 _LT_EOF
6946 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6947 class Foo
6948 {
6949 public:
6950 Foo (void) { a = 0; }
6951 private:
6952 int a;
6953 };
6954 _LT_EOF
6955 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6956 subroutine foo
6957 implicit none
6958 integer*4 a
6959 a=0
6960 return
6961 end
6962 _LT_EOF
6963 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6964 subroutine foo
6965 implicit none
6966 integer a
6967 a=0
6968 return
6969 end
6970 _LT_EOF
6971 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6972 public class foo {
6973 private int a;
6974 public void bar (void) {
6975 a = 0;
6976 }
6977 };
6978 _LT_EOF
6979 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6980 package foo
6981 func foo() {
6982 }
6983 _LT_EOF
6984 ])
6985
6986 _lt_libdeps_save_CFLAGS=$CFLAGS
6987 case "$CC $CFLAGS " in #(
6988 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6989 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6990 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
6991 esac
6992
6993 dnl Parse the compiler output and extract the necessary
6994 dnl objects, libraries and library flags.
6995 if AC_TRY_EVAL(ac_compile); then
6996 # Parse the compiler output and extract the necessary
6997 # objects, libraries and library flags.
6998
6999 # Sentinel used to keep track of whether or not we are before
7000 # the conftest object file.
7001 pre_test_object_deps_done=no
7002
7003 for p in `eval "$output_verbose_link_cmd"`; do
7004 case ${prev}${p} in
7005
7006 -L* | -R* | -l*)
7007 # Some compilers place space between "-{L,R}" and the path.
7008 # Remove the space.
7009 if test $p = "-L" ||
7010 test $p = "-R"; then
7011 prev=$p
7012 continue
7013 fi
7014
7015 # Expand the sysroot to ease extracting the directories later.
7016 if test -z "$prev"; then
7017 case $p in
7018 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7019 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7020 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7021 esac
7022 fi
7023 case $p in
7024 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7025 esac
7026 if test "$pre_test_object_deps_done" = no; then
7027 case ${prev} in
7028 -L | -R)
7029 # Internal compiler library paths should come after those
7030 # provided the user. The postdeps already come after the
7031 # user supplied libs so there is no need to process them.
7032 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7033 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7034 else
7035 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7036 fi
7037 ;;
7038 # The "-l" case would never come before the object being
7039 # linked, so don't bother handling this case.
7040 esac
7041 else
7042 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7043 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7044 else
7045 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7046 fi
7047 fi
7048 prev=
7049 ;;
7050
7051 *.lto.$objext) ;; # Ignore GCC LTO objects
7052 *.$objext)
7053 # This assumes that the test object file only shows up
7054 # once in the compiler output.
7055 if test "$p" = "conftest.$objext"; then
7056 pre_test_object_deps_done=yes
7057 continue
7058 fi
7059
7060 if test "$pre_test_object_deps_done" = no; then
7061 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7062 _LT_TAGVAR(predep_objects, $1)="$p"
7063 else
7064 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7065 fi
7066 else
7067 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7068 _LT_TAGVAR(postdep_objects, $1)="$p"
7069 else
7070 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7071 fi
7072 fi
7073 ;;
7074
7075 *) ;; # Ignore the rest.
7076
7077 esac
7078 done
7079
7080 # Clean up.
7081 rm -f a.out a.exe
7082 else
7083 echo "libtool.m4: error: problem compiling $1 test program"
7084 fi
7085
7086 $RM -f confest.$objext
7087 CFLAGS=$_lt_libdeps_save_CFLAGS
7088
7089 # PORTME: override above test on systems where it is broken
7090 m4_if([$1], [CXX],
7091 [case $host_os in
7092 interix[[3-9]]*)
7093 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7094 # hack all around it, let's just trust "g++" to DTRT.
7095 _LT_TAGVAR(predep_objects,$1)=
7096 _LT_TAGVAR(postdep_objects,$1)=
7097 _LT_TAGVAR(postdeps,$1)=
7098 ;;
7099
7100 linux*)
7101 case `$CC -V 2>&1 | sed 5q` in
7102 *Sun\ C*)
7103 # Sun C++ 5.9
7104
7105 # The more standards-conforming stlport4 library is
7106 # incompatible with the Cstd library. Avoid specifying
7107 # it if it's in CXXFLAGS. Ignore libCrun as
7108 # -library=stlport4 depends on it.
7109 case " $CXX $CXXFLAGS " in
7110 *" -library=stlport4 "*)
7111 solaris_use_stlport4=yes
7112 ;;
7113 esac
7114
7115 if test "$solaris_use_stlport4" != yes; then
7116 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7117 fi
7118 ;;
7119 esac
7120 ;;
7121
7122 solaris*)
7123 case $cc_basename in
7124 CC* | sunCC*)
7125 # The more standards-conforming stlport4 library is
7126 # incompatible with the Cstd library. Avoid specifying
7127 # it if it's in CXXFLAGS. Ignore libCrun as
7128 # -library=stlport4 depends on it.
7129 case " $CXX $CXXFLAGS " in
7130 *" -library=stlport4 "*)
7131 solaris_use_stlport4=yes
7132 ;;
7133 esac
7134
7135 # Adding this requires a known-good setup of shared libraries for
7136 # Sun compiler versions before 5.6, else PIC objects from an old
7137 # archive will be linked into the output, leading to subtle bugs.
7138 if test "$solaris_use_stlport4" != yes; then
7139 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7140 fi
7141 ;;
7142 esac
7143 ;;
7144 esac
7145 ])
7146
7147 case " $_LT_TAGVAR(postdeps, $1) " in
7148 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7149 esac
7150 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7151 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7152 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7153 fi
7154 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7155 [The directories searched by this compiler when creating a shared library])
7156 _LT_TAGDECL([], [predep_objects], [1],
7157 [Dependencies to place before and after the objects being linked to
7158 create a shared library])
7159 _LT_TAGDECL([], [postdep_objects], [1])
7160 _LT_TAGDECL([], [predeps], [1])
7161 _LT_TAGDECL([], [postdeps], [1])
7162 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7163 [The library search path used internally by the compiler when linking
7164 a shared library])
7165 ])# _LT_SYS_HIDDEN_LIBDEPS
7166
7167
7168 # _LT_LANG_F77_CONFIG([TAG])
7169 # --------------------------
7170 # Ensure that the configuration variables for a Fortran 77 compiler are
7171 # suitably defined. These variables are subsequently used by _LT_CONFIG
7172 # to write the compiler configuration to `libtool'.
7173 m4_defun([_LT_LANG_F77_CONFIG],
7174 [AC_LANG_PUSH(Fortran 77)
7175 if test -z "$F77" || test "X$F77" = "Xno"; then
7176 _lt_disable_F77=yes
7177 fi
7178
7179 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7180 _LT_TAGVAR(allow_undefined_flag, $1)=
7181 _LT_TAGVAR(always_export_symbols, $1)=no
7182 _LT_TAGVAR(archive_expsym_cmds, $1)=
7183 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7184 _LT_TAGVAR(hardcode_direct, $1)=no
7185 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7186 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7187 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7188 _LT_TAGVAR(hardcode_minus_L, $1)=no
7189 _LT_TAGVAR(hardcode_automatic, $1)=no
7190 _LT_TAGVAR(inherit_rpath, $1)=no
7191 _LT_TAGVAR(module_cmds, $1)=
7192 _LT_TAGVAR(module_expsym_cmds, $1)=
7193 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7194 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7195 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7196 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7197 _LT_TAGVAR(no_undefined_flag, $1)=
7198 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7199 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7200
7201 # Source file extension for f77 test sources.
7202 ac_ext=f
7203
7204 # Object file extension for compiled f77 test sources.
7205 objext=o
7206 _LT_TAGVAR(objext, $1)=$objext
7207
7208 # No sense in running all these tests if we already determined that
7209 # the F77 compiler isn't working. Some variables (like enable_shared)
7210 # are currently assumed to apply to all compilers on this platform,
7211 # and will be corrupted by setting them based on a non-working compiler.
7212 if test "$_lt_disable_F77" != yes; then
7213 # Code to be used in simple compile tests
7214 lt_simple_compile_test_code="\
7215 subroutine t
7216 return
7217 end
7218 "
7219
7220 # Code to be used in simple link tests
7221 lt_simple_link_test_code="\
7222 program t
7223 end
7224 "
7225
7226 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7227 _LT_TAG_COMPILER
7228
7229 # save warnings/boilerplate of simple test code
7230 _LT_COMPILER_BOILERPLATE
7231 _LT_LINKER_BOILERPLATE
7232
7233 # Allow CC to be a program name with arguments.
7234 lt_save_CC="$CC"
7235 lt_save_GCC=$GCC
7236 lt_save_CFLAGS=$CFLAGS
7237 CC=${F77-"f77"}
7238 CFLAGS=$FFLAGS
7239 compiler=$CC
7240 _LT_TAGVAR(compiler, $1)=$CC
7241 _LT_CC_BASENAME([$compiler])
7242 GCC=$G77
7243 if test -n "$compiler"; then
7244 AC_MSG_CHECKING([if libtool supports shared libraries])
7245 AC_MSG_RESULT([$can_build_shared])
7246
7247 AC_MSG_CHECKING([whether to build shared libraries])
7248 test "$can_build_shared" = "no" && enable_shared=no
7249
7250 # On AIX, shared libraries and static libraries use the same namespace, and
7251 # are all built from PIC.
7252 case $host_os in
7253 aix3*)
7254 test "$enable_shared" = yes && enable_static=no
7255 if test -n "$RANLIB"; then
7256 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7257 postinstall_cmds='$RANLIB $lib'
7258 fi
7259 ;;
7260 aix[[4-9]]*)
7261 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7262 test "$enable_shared" = yes && enable_static=no
7263 fi
7264 ;;
7265 esac
7266 AC_MSG_RESULT([$enable_shared])
7267
7268 AC_MSG_CHECKING([whether to build static libraries])
7269 # Make sure either enable_shared or enable_static is yes.
7270 test "$enable_shared" = yes || enable_static=yes
7271 AC_MSG_RESULT([$enable_static])
7272
7273 _LT_TAGVAR(GCC, $1)="$G77"
7274 _LT_TAGVAR(LD, $1)="$LD"
7275
7276 ## CAVEAT EMPTOR:
7277 ## There is no encapsulation within the following macros, do not change
7278 ## the running order or otherwise move them around unless you know exactly
7279 ## what you are doing...
7280 _LT_COMPILER_PIC($1)
7281 _LT_COMPILER_C_O($1)
7282 _LT_COMPILER_FILE_LOCKS($1)
7283 _LT_LINKER_SHLIBS($1)
7284 _LT_SYS_DYNAMIC_LINKER($1)
7285 _LT_LINKER_HARDCODE_LIBPATH($1)
7286
7287 _LT_CONFIG($1)
7288 fi # test -n "$compiler"
7289
7290 GCC=$lt_save_GCC
7291 CC="$lt_save_CC"
7292 CFLAGS="$lt_save_CFLAGS"
7293 fi # test "$_lt_disable_F77" != yes
7294
7295 AC_LANG_POP
7296 ])# _LT_LANG_F77_CONFIG
7297
7298
7299 # _LT_LANG_FC_CONFIG([TAG])
7300 # -------------------------
7301 # Ensure that the configuration variables for a Fortran compiler are
7302 # suitably defined. These variables are subsequently used by _LT_CONFIG
7303 # to write the compiler configuration to `libtool'.
7304 m4_defun([_LT_LANG_FC_CONFIG],
7305 [AC_LANG_PUSH(Fortran)
7306
7307 if test -z "$FC" || test "X$FC" = "Xno"; then
7308 _lt_disable_FC=yes
7309 fi
7310
7311 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7312 _LT_TAGVAR(allow_undefined_flag, $1)=
7313 _LT_TAGVAR(always_export_symbols, $1)=no
7314 _LT_TAGVAR(archive_expsym_cmds, $1)=
7315 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7316 _LT_TAGVAR(hardcode_direct, $1)=no
7317 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7318 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7319 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7320 _LT_TAGVAR(hardcode_minus_L, $1)=no
7321 _LT_TAGVAR(hardcode_automatic, $1)=no
7322 _LT_TAGVAR(inherit_rpath, $1)=no
7323 _LT_TAGVAR(module_cmds, $1)=
7324 _LT_TAGVAR(module_expsym_cmds, $1)=
7325 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7326 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7327 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7328 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7329 _LT_TAGVAR(no_undefined_flag, $1)=
7330 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7331 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7332
7333 # Source file extension for fc test sources.
7334 ac_ext=${ac_fc_srcext-f}
7335
7336 # Object file extension for compiled fc test sources.
7337 objext=o
7338 _LT_TAGVAR(objext, $1)=$objext
7339
7340 # No sense in running all these tests if we already determined that
7341 # the FC compiler isn't working. Some variables (like enable_shared)
7342 # are currently assumed to apply to all compilers on this platform,
7343 # and will be corrupted by setting them based on a non-working compiler.
7344 if test "$_lt_disable_FC" != yes; then
7345 # Code to be used in simple compile tests
7346 lt_simple_compile_test_code="\
7347 subroutine t
7348 return
7349 end
7350 "
7351
7352 # Code to be used in simple link tests
7353 lt_simple_link_test_code="\
7354 program t
7355 end
7356 "
7357
7358 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7359 _LT_TAG_COMPILER
7360
7361 # save warnings/boilerplate of simple test code
7362 _LT_COMPILER_BOILERPLATE
7363 _LT_LINKER_BOILERPLATE
7364
7365 # Allow CC to be a program name with arguments.
7366 lt_save_CC="$CC"
7367 lt_save_GCC=$GCC
7368 lt_save_CFLAGS=$CFLAGS
7369 CC=${FC-"f95"}
7370 CFLAGS=$FCFLAGS
7371 compiler=$CC
7372 GCC=$ac_cv_fc_compiler_gnu
7373
7374 _LT_TAGVAR(compiler, $1)=$CC
7375 _LT_CC_BASENAME([$compiler])
7376
7377 if test -n "$compiler"; then
7378 AC_MSG_CHECKING([if libtool supports shared libraries])
7379 AC_MSG_RESULT([$can_build_shared])
7380
7381 AC_MSG_CHECKING([whether to build shared libraries])
7382 test "$can_build_shared" = "no" && enable_shared=no
7383
7384 # On AIX, shared libraries and static libraries use the same namespace, and
7385 # are all built from PIC.
7386 case $host_os in
7387 aix3*)
7388 test "$enable_shared" = yes && enable_static=no
7389 if test -n "$RANLIB"; then
7390 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7391 postinstall_cmds='$RANLIB $lib'
7392 fi
7393 ;;
7394 aix[[4-9]]*)
7395 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7396 test "$enable_shared" = yes && enable_static=no
7397 fi
7398 ;;
7399 esac
7400 AC_MSG_RESULT([$enable_shared])
7401
7402 AC_MSG_CHECKING([whether to build static libraries])
7403 # Make sure either enable_shared or enable_static is yes.
7404 test "$enable_shared" = yes || enable_static=yes
7405 AC_MSG_RESULT([$enable_static])
7406
7407 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7408 _LT_TAGVAR(LD, $1)="$LD"
7409
7410 ## CAVEAT EMPTOR:
7411 ## There is no encapsulation within the following macros, do not change
7412 ## the running order or otherwise move them around unless you know exactly
7413 ## what you are doing...
7414 _LT_SYS_HIDDEN_LIBDEPS($1)
7415 _LT_COMPILER_PIC($1)
7416 _LT_COMPILER_C_O($1)
7417 _LT_COMPILER_FILE_LOCKS($1)
7418 _LT_LINKER_SHLIBS($1)
7419 _LT_SYS_DYNAMIC_LINKER($1)
7420 _LT_LINKER_HARDCODE_LIBPATH($1)
7421
7422 _LT_CONFIG($1)
7423 fi # test -n "$compiler"
7424
7425 GCC=$lt_save_GCC
7426 CC=$lt_save_CC
7427 CFLAGS=$lt_save_CFLAGS
7428 fi # test "$_lt_disable_FC" != yes
7429
7430 AC_LANG_POP
7431 ])# _LT_LANG_FC_CONFIG
7432
7433
7434 # _LT_LANG_GCJ_CONFIG([TAG])
7435 # --------------------------
7436 # Ensure that the configuration variables for the GNU Java Compiler compiler
7437 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7438 # to write the compiler configuration to `libtool'.
7439 m4_defun([_LT_LANG_GCJ_CONFIG],
7440 [AC_REQUIRE([LT_PROG_GCJ])dnl
7441 AC_LANG_SAVE
7442
7443 # Source file extension for Java test sources.
7444 ac_ext=java
7445
7446 # Object file extension for compiled Java test sources.
7447 objext=o
7448 _LT_TAGVAR(objext, $1)=$objext
7449
7450 # Code to be used in simple compile tests
7451 lt_simple_compile_test_code="class foo {}"
7452
7453 # Code to be used in simple link tests
7454 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7455
7456 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7457 _LT_TAG_COMPILER
7458
7459 # save warnings/boilerplate of simple test code
7460 _LT_COMPILER_BOILERPLATE
7461 _LT_LINKER_BOILERPLATE
7462
7463 # Allow CC to be a program name with arguments.
7464 lt_save_CC=$CC
7465 lt_save_CFLAGS=$CFLAGS
7466 lt_save_GCC=$GCC
7467 GCC=yes
7468 CC=${GCJ-"gcj"}
7469 CFLAGS=$GCJFLAGS
7470 compiler=$CC
7471 _LT_TAGVAR(compiler, $1)=$CC
7472 _LT_TAGVAR(LD, $1)="$LD"
7473 _LT_CC_BASENAME([$compiler])
7474
7475 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7476 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7477
7478 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7479 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7480 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7481
7482 ## CAVEAT EMPTOR:
7483 ## There is no encapsulation within the following macros, do not change
7484 ## the running order or otherwise move them around unless you know exactly
7485 ## what you are doing...
7486 if test -n "$compiler"; then
7487 _LT_COMPILER_NO_RTTI($1)
7488 _LT_COMPILER_PIC($1)
7489 _LT_COMPILER_C_O($1)
7490 _LT_COMPILER_FILE_LOCKS($1)
7491 _LT_LINKER_SHLIBS($1)
7492 _LT_LINKER_HARDCODE_LIBPATH($1)
7493
7494 _LT_CONFIG($1)
7495 fi
7496
7497 AC_LANG_RESTORE
7498
7499 GCC=$lt_save_GCC
7500 CC=$lt_save_CC
7501 CFLAGS=$lt_save_CFLAGS
7502 ])# _LT_LANG_GCJ_CONFIG
7503
7504
7505 # _LT_LANG_GO_CONFIG([TAG])
7506 # --------------------------
7507 # Ensure that the configuration variables for the GNU Go compiler
7508 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7509 # to write the compiler configuration to `libtool'.
7510 m4_defun([_LT_LANG_GO_CONFIG],
7511 [AC_REQUIRE([LT_PROG_GO])dnl
7512 AC_LANG_SAVE
7513
7514 # Source file extension for Go test sources.
7515 ac_ext=go
7516
7517 # Object file extension for compiled Go test sources.
7518 objext=o
7519 _LT_TAGVAR(objext, $1)=$objext
7520
7521 # Code to be used in simple compile tests
7522 lt_simple_compile_test_code="package main; func main() { }"
7523
7524 # Code to be used in simple link tests
7525 lt_simple_link_test_code='package main; func main() { }'
7526
7527 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7528 _LT_TAG_COMPILER
7529
7530 # save warnings/boilerplate of simple test code
7531 _LT_COMPILER_BOILERPLATE
7532 _LT_LINKER_BOILERPLATE
7533
7534 # Allow CC to be a program name with arguments.
7535 lt_save_CC=$CC
7536 lt_save_CFLAGS=$CFLAGS
7537 lt_save_GCC=$GCC
7538 GCC=yes
7539 CC=${GOC-"gccgo"}
7540 CFLAGS=$GOFLAGS
7541 compiler=$CC
7542 _LT_TAGVAR(compiler, $1)=$CC
7543 _LT_TAGVAR(LD, $1)="$LD"
7544 _LT_CC_BASENAME([$compiler])
7545
7546 # Go did not exist at the time GCC didn't implicitly link libc in.
7547 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7548
7549 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7550 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7551 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7552
7553 ## CAVEAT EMPTOR:
7554 ## There is no encapsulation within the following macros, do not change
7555 ## the running order or otherwise move them around unless you know exactly
7556 ## what you are doing...
7557 if test -n "$compiler"; then
7558 _LT_COMPILER_NO_RTTI($1)
7559 _LT_COMPILER_PIC($1)
7560 _LT_COMPILER_C_O($1)
7561 _LT_COMPILER_FILE_LOCKS($1)
7562 _LT_LINKER_SHLIBS($1)
7563 _LT_LINKER_HARDCODE_LIBPATH($1)
7564
7565 _LT_CONFIG($1)
7566 fi
7567
7568 AC_LANG_RESTORE
7569
7570 GCC=$lt_save_GCC
7571 CC=$lt_save_CC
7572 CFLAGS=$lt_save_CFLAGS
7573 ])# _LT_LANG_GO_CONFIG
7574
7575
7576 # _LT_LANG_RC_CONFIG([TAG])
7577 # -------------------------
7578 # Ensure that the configuration variables for the Windows resource compiler
7579 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7580 # to write the compiler configuration to `libtool'.
7581 m4_defun([_LT_LANG_RC_CONFIG],
7582 [AC_REQUIRE([LT_PROG_RC])dnl
7583 AC_LANG_SAVE
7584
7585 # Source file extension for RC test sources.
7586 ac_ext=rc
7587
7588 # Object file extension for compiled RC test sources.
7589 objext=o
7590 _LT_TAGVAR(objext, $1)=$objext
7591
7592 # Code to be used in simple compile tests
7593 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7594
7595 # Code to be used in simple link tests
7596 lt_simple_link_test_code="$lt_simple_compile_test_code"
7597
7598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7599 _LT_TAG_COMPILER
7600
7601 # save warnings/boilerplate of simple test code
7602 _LT_COMPILER_BOILERPLATE
7603 _LT_LINKER_BOILERPLATE
7604
7605 # Allow CC to be a program name with arguments.
7606 lt_save_CC="$CC"
7607 lt_save_CFLAGS=$CFLAGS
7608 lt_save_GCC=$GCC
7609 GCC=
7610 CC=${RC-"windres"}
7611 CFLAGS=
7612 compiler=$CC
7613 _LT_TAGVAR(compiler, $1)=$CC
7614 _LT_CC_BASENAME([$compiler])
7615 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7616
7617 if test -n "$compiler"; then
7618 :
7619 _LT_CONFIG($1)
7620 fi
7621
7622 GCC=$lt_save_GCC
7623 AC_LANG_RESTORE
7624 CC=$lt_save_CC
7625 CFLAGS=$lt_save_CFLAGS
7626 ])# _LT_LANG_RC_CONFIG
7627
7628
7629 # LT_PROG_GCJ
7630 # -----------
7631 AC_DEFUN([LT_PROG_GCJ],
7632 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7633 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7634 [AC_CHECK_TOOL(GCJ, gcj,)
7635 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7636 AC_SUBST(GCJFLAGS)])])[]dnl
7637 ])
7638
7639 # Old name:
7640 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7641 dnl aclocal-1.4 backwards compatibility:
7642 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7643
7644
7645 # LT_PROG_GO
7646 # ----------
7647 AC_DEFUN([LT_PROG_GO],
7648 [AC_CHECK_TOOL(GOC, gccgo,)
7649 ])
7650
7651
7652 # LT_PROG_RC
7653 # ----------
7654 AC_DEFUN([LT_PROG_RC],
7655 [AC_CHECK_TOOL(RC, windres,)
7656 ])
7657
7658 # Old name:
7659 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7660 dnl aclocal-1.4 backwards compatibility:
7661 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7662
7663
7664 # _LT_DECL_EGREP
7665 # --------------
7666 # If we don't have a new enough Autoconf to choose the best grep
7667 # available, choose the one first in the user's PATH.
7668 m4_defun([_LT_DECL_EGREP],
7669 [AC_REQUIRE([AC_PROG_EGREP])dnl
7670 AC_REQUIRE([AC_PROG_FGREP])dnl
7671 test -z "$GREP" && GREP=grep
7672 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7673 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7674 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7675 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7676 AC_SUBST([GREP])
7677 ])
7678
7679
7680 # _LT_DECL_OBJDUMP
7681 # --------------
7682 # If we don't have a new enough Autoconf to choose the best objdump
7683 # available, choose the one first in the user's PATH.
7684 m4_defun([_LT_DECL_OBJDUMP],
7685 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7686 test -z "$OBJDUMP" && OBJDUMP=objdump
7687 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7688 AC_SUBST([OBJDUMP])
7689 ])
7690
7691 # _LT_DECL_DLLTOOL
7692 # ----------------
7693 # Ensure DLLTOOL variable is set.
7694 m4_defun([_LT_DECL_DLLTOOL],
7695 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7696 test -z "$DLLTOOL" && DLLTOOL=dlltool
7697 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7698 AC_SUBST([DLLTOOL])
7699 ])
7700
7701 # _LT_DECL_SED
7702 # ------------
7703 # Check for a fully-functional sed program, that truncates
7704 # as few characters as possible. Prefer GNU sed if found.
7705 m4_defun([_LT_DECL_SED],
7706 [AC_PROG_SED
7707 test -z "$SED" && SED=sed
7708 Xsed="$SED -e 1s/^X//"
7709 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7710 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7711 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7712 ])# _LT_DECL_SED
7713
7714 m4_ifndef([AC_PROG_SED], [
7715 ############################################################
7716 # NOTE: This macro has been submitted for inclusion into #
7717 # GNU Autoconf as AC_PROG_SED. When it is available in #
7718 # a released version of Autoconf we should remove this #
7719 # macro and use it instead. #
7720 ############################################################
7721
7722 m4_defun([AC_PROG_SED],
7723 [AC_MSG_CHECKING([for a sed that does not truncate output])
7724 AC_CACHE_VAL(lt_cv_path_SED,
7725 [# Loop through the user's path and test for sed and gsed.
7726 # Then use that list of sed's as ones to test for truncation.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for lt_ac_prog in sed gsed; do
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7735 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7736 fi
7737 done
7738 done
7739 done
7740 IFS=$as_save_IFS
7741 lt_ac_max=0
7742 lt_ac_count=0
7743 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7744 # along with /bin/sed that truncates output.
7745 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7746 test ! -f $lt_ac_sed && continue
7747 cat /dev/null > conftest.in
7748 lt_ac_count=0
7749 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7750 # Check for GNU sed and select it if it is found.
7751 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7752 lt_cv_path_SED=$lt_ac_sed
7753 break
7754 fi
7755 while true; do
7756 cat conftest.in conftest.in >conftest.tmp
7757 mv conftest.tmp conftest.in
7758 cp conftest.in conftest.nl
7759 echo >>conftest.nl
7760 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7761 cmp -s conftest.out conftest.nl || break
7762 # 10000 chars as input seems more than enough
7763 test $lt_ac_count -gt 10 && break
7764 lt_ac_count=`expr $lt_ac_count + 1`
7765 if test $lt_ac_count -gt $lt_ac_max; then
7766 lt_ac_max=$lt_ac_count
7767 lt_cv_path_SED=$lt_ac_sed
7768 fi
7769 done
7770 done
7771 ])
7772 SED=$lt_cv_path_SED
7773 AC_SUBST([SED])
7774 AC_MSG_RESULT([$SED])
7775 ])#AC_PROG_SED
7776 ])#m4_ifndef
7777
7778 # Old name:
7779 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7780 dnl aclocal-1.4 backwards compatibility:
7781 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7782
7783
7784 # _LT_CHECK_SHELL_FEATURES
7785 # ------------------------
7786 # Find out whether the shell is Bourne or XSI compatible,
7787 # or has some other useful features.
7788 m4_defun([_LT_CHECK_SHELL_FEATURES],
7789 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7790 # Try some XSI features
7791 xsi_shell=no
7792 ( _lt_dummy="a/b/c"
7793 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7794 = c,a/b,b/c, \
7795 && eval 'test $(( 1 + 1 )) -eq 2 \
7796 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7797 && xsi_shell=yes
7798 AC_MSG_RESULT([$xsi_shell])
7799 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7800
7801 AC_MSG_CHECKING([whether the shell understands "+="])
7802 lt_shell_append=no
7803 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7804 >/dev/null 2>&1 \
7805 && lt_shell_append=yes
7806 AC_MSG_RESULT([$lt_shell_append])
7807 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7808
7809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7810 lt_unset=unset
7811 else
7812 lt_unset=false
7813 fi
7814 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7815
7816 # test EBCDIC or ASCII
7817 case `echo X|tr X '\101'` in
7818 A) # ASCII based system
7819 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7820 lt_SP2NL='tr \040 \012'
7821 lt_NL2SP='tr \015\012 \040\040'
7822 ;;
7823 *) # EBCDIC based system
7824 lt_SP2NL='tr \100 \n'
7825 lt_NL2SP='tr \r\n \100\100'
7826 ;;
7827 esac
7828 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7829 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7830 ])# _LT_CHECK_SHELL_FEATURES
7831
7832
7833 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7834 # ------------------------------------------------------
7835 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7836 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7837 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7838 [dnl {
7839 sed -e '/^$1 ()$/,/^} # $1 /c\
7840 $1 ()\
7841 {\
7842 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7843 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7844 && mv -f "$cfgfile.tmp" "$cfgfile" \
7845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7846 test 0 -eq $? || _lt_function_replace_fail=:
7847 ])
7848
7849
7850 # _LT_PROG_REPLACE_SHELLFNS
7851 # -------------------------
7852 # Replace existing portable implementations of several shell functions with
7853 # equivalent extended shell implementations where those features are available..
7854 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7855 [if test x"$xsi_shell" = xyes; then
7856 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7857 case ${1} in
7858 */*) func_dirname_result="${1%/*}${2}" ;;
7859 * ) func_dirname_result="${3}" ;;
7860 esac])
7861
7862 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7863 func_basename_result="${1##*/}"])
7864
7865 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7866 case ${1} in
7867 */*) func_dirname_result="${1%/*}${2}" ;;
7868 * ) func_dirname_result="${3}" ;;
7869 esac
7870 func_basename_result="${1##*/}"])
7871
7872 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7873 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7874 # positional parameters, so assign one to ordinary parameter first.
7875 func_stripname_result=${3}
7876 func_stripname_result=${func_stripname_result#"${1}"}
7877 func_stripname_result=${func_stripname_result%"${2}"}])
7878
7879 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7880 func_split_long_opt_name=${1%%=*}
7881 func_split_long_opt_arg=${1#*=}])
7882
7883 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7884 func_split_short_opt_arg=${1#??}
7885 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7886
7887 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7888 case ${1} in
7889 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7890 *) func_lo2o_result=${1} ;;
7891 esac])
7892
7893 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7894
7895 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7896
7897 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7898 fi
7899
7900 if test x"$lt_shell_append" = xyes; then
7901 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7902
7903 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7904 func_quote_for_eval "${2}"
7905 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7906 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7907
7908 # Save a `func_append' function call where possible by direct use of '+='
7909 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7910 && mv -f "$cfgfile.tmp" "$cfgfile" \
7911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7912 test 0 -eq $? || _lt_function_replace_fail=:
7913 else
7914 # Save a `func_append' function call even when '+=' is not available
7915 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7916 && mv -f "$cfgfile.tmp" "$cfgfile" \
7917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7918 test 0 -eq $? || _lt_function_replace_fail=:
7919 fi
7920
7921 if test x"$_lt_function_replace_fail" = x":"; then
7922 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7923 fi
7924 ])
7925
7926 # _LT_PATH_CONVERSION_FUNCTIONS
7927 # -----------------------------
7928 # Determine which file name conversion functions should be used by
7929 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7930 # for certain cross-compile configurations and native mingw.
7931 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7932 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7933 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7934 AC_MSG_CHECKING([how to convert $build file names to $host format])
7935 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7936 [case $host in
7937 *-*-mingw* )
7938 case $build in
7939 *-*-mingw* ) # actually msys
7940 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7941 ;;
7942 *-*-cygwin* )
7943 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7944 ;;
7945 * ) # otherwise, assume *nix
7946 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7947 ;;
7948 esac
7949 ;;
7950 *-*-cygwin* )
7951 case $build in
7952 *-*-mingw* ) # actually msys
7953 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7954 ;;
7955 *-*-cygwin* )
7956 lt_cv_to_host_file_cmd=func_convert_file_noop
7957 ;;
7958 * ) # otherwise, assume *nix
7959 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7960 ;;
7961 esac
7962 ;;
7963 * ) # unhandled hosts (and "normal" native builds)
7964 lt_cv_to_host_file_cmd=func_convert_file_noop
7965 ;;
7966 esac
7967 ])
7968 to_host_file_cmd=$lt_cv_to_host_file_cmd
7969 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7970 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7971 [0], [convert $build file names to $host format])dnl
7972
7973 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7974 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7975 [#assume ordinary cross tools, or native build.
7976 lt_cv_to_tool_file_cmd=func_convert_file_noop
7977 case $host in
7978 *-*-mingw* )
7979 case $build in
7980 *-*-mingw* ) # actually msys
7981 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7982 ;;
7983 esac
7984 ;;
7985 esac
7986 ])
7987 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7988 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7989 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7990 [0], [convert $build files to toolchain format])dnl
7991 ])# _LT_PATH_CONVERSION_FUNCTIONS
+0
-384
m4/ltoptions.m4 less more
0 # Helper functions for option handling. -*- Autoconf -*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3 # Inc.
4 # Written by Gary V. Vaughan, 2004
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 # serial 7 ltoptions.m4
11
12 # This is to help aclocal find these macros, as it can't see m4_define.
13 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
14
15
16 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
17 # ------------------------------------------
18 m4_define([_LT_MANGLE_OPTION],
19 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
20
21
22 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
23 # ---------------------------------------
24 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
25 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
26 # saved as a flag.
27 m4_define([_LT_SET_OPTION],
28 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
29 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
30 _LT_MANGLE_DEFUN([$1], [$2]),
31 [m4_warning([Unknown $1 option `$2'])])[]dnl
32 ])
33
34
35 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
36 # ------------------------------------------------------------
37 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
38 m4_define([_LT_IF_OPTION],
39 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
40
41
42 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
43 # -------------------------------------------------------
44 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
45 # are set.
46 m4_define([_LT_UNLESS_OPTIONS],
47 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
48 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
49 [m4_define([$0_found])])])[]dnl
50 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
51 ])[]dnl
52 ])
53
54
55 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
56 # ----------------------------------------
57 # OPTION-LIST is a space-separated list of Libtool options associated
58 # with MACRO-NAME. If any OPTION has a matching handler declared with
59 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
60 # the unknown option and exit.
61 m4_defun([_LT_SET_OPTIONS],
62 [# Set options
63 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
64 [_LT_SET_OPTION([$1], _LT_Option)])
65
66 m4_if([$1],[LT_INIT],[
67 dnl
68 dnl Simply set some default values (i.e off) if boolean options were not
69 dnl specified:
70 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
71 ])
72 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
73 ])
74 dnl
75 dnl If no reference was made to various pairs of opposing options, then
76 dnl we run the default mode handler for the pair. For example, if neither
77 dnl `shared' nor `disable-shared' was passed, we enable building of shared
78 dnl archives by default:
79 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
80 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
81 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
82 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
83 [_LT_ENABLE_FAST_INSTALL])
84 ])
85 ])# _LT_SET_OPTIONS
86
87
88 ## --------------------------------- ##
89 ## Macros to handle LT_INIT options. ##
90 ## --------------------------------- ##
91
92 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
93 # -----------------------------------------
94 m4_define([_LT_MANGLE_DEFUN],
95 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
96
97
98 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
99 # -----------------------------------------------
100 m4_define([LT_OPTION_DEFINE],
101 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
102 ])# LT_OPTION_DEFINE
103
104
105 # dlopen
106 # ------
107 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
108 ])
109
110 AU_DEFUN([AC_LIBTOOL_DLOPEN],
111 [_LT_SET_OPTION([LT_INIT], [dlopen])
112 AC_DIAGNOSE([obsolete],
113 [$0: Remove this warning and the call to _LT_SET_OPTION when you
114 put the `dlopen' option into LT_INIT's first parameter.])
115 ])
116
117 dnl aclocal-1.4 backwards compatibility:
118 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
119
120
121 # win32-dll
122 # ---------
123 # Declare package support for building win32 dll's.
124 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
125 [enable_win32_dll=yes
126
127 case $host in
128 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
129 AC_CHECK_TOOL(AS, as, false)
130 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
131 AC_CHECK_TOOL(OBJDUMP, objdump, false)
132 ;;
133 esac
134
135 test -z "$AS" && AS=as
136 _LT_DECL([], [AS], [1], [Assembler program])dnl
137
138 test -z "$DLLTOOL" && DLLTOOL=dlltool
139 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
140
141 test -z "$OBJDUMP" && OBJDUMP=objdump
142 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
143 ])# win32-dll
144
145 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
146 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
147 _LT_SET_OPTION([LT_INIT], [win32-dll])
148 AC_DIAGNOSE([obsolete],
149 [$0: Remove this warning and the call to _LT_SET_OPTION when you
150 put the `win32-dll' option into LT_INIT's first parameter.])
151 ])
152
153 dnl aclocal-1.4 backwards compatibility:
154 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
155
156
157 # _LT_ENABLE_SHARED([DEFAULT])
158 # ----------------------------
159 # implement the --enable-shared flag, and supports the `shared' and
160 # `disable-shared' LT_INIT options.
161 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
162 m4_define([_LT_ENABLE_SHARED],
163 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
164 AC_ARG_ENABLE([shared],
165 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
166 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
167 [p=${PACKAGE-default}
168 case $enableval in
169 yes) enable_shared=yes ;;
170 no) enable_shared=no ;;
171 *)
172 enable_shared=no
173 # Look at the argument we got. We use all the common list separators.
174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
175 for pkg in $enableval; do
176 IFS="$lt_save_ifs"
177 if test "X$pkg" = "X$p"; then
178 enable_shared=yes
179 fi
180 done
181 IFS="$lt_save_ifs"
182 ;;
183 esac],
184 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
185
186 _LT_DECL([build_libtool_libs], [enable_shared], [0],
187 [Whether or not to build shared libraries])
188 ])# _LT_ENABLE_SHARED
189
190 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
191 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
192
193 # Old names:
194 AC_DEFUN([AC_ENABLE_SHARED],
195 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
196 ])
197
198 AC_DEFUN([AC_DISABLE_SHARED],
199 [_LT_SET_OPTION([LT_INIT], [disable-shared])
200 ])
201
202 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
203 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
204
205 dnl aclocal-1.4 backwards compatibility:
206 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
207 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
208
209
210
211 # _LT_ENABLE_STATIC([DEFAULT])
212 # ----------------------------
213 # implement the --enable-static flag, and support the `static' and
214 # `disable-static' LT_INIT options.
215 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
216 m4_define([_LT_ENABLE_STATIC],
217 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
218 AC_ARG_ENABLE([static],
219 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
220 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
221 [p=${PACKAGE-default}
222 case $enableval in
223 yes) enable_static=yes ;;
224 no) enable_static=no ;;
225 *)
226 enable_static=no
227 # Look at the argument we got. We use all the common list separators.
228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
229 for pkg in $enableval; do
230 IFS="$lt_save_ifs"
231 if test "X$pkg" = "X$p"; then
232 enable_static=yes
233 fi
234 done
235 IFS="$lt_save_ifs"
236 ;;
237 esac],
238 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
239
240 _LT_DECL([build_old_libs], [enable_static], [0],
241 [Whether or not to build static libraries])
242 ])# _LT_ENABLE_STATIC
243
244 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
245 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
246
247 # Old names:
248 AC_DEFUN([AC_ENABLE_STATIC],
249 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
250 ])
251
252 AC_DEFUN([AC_DISABLE_STATIC],
253 [_LT_SET_OPTION([LT_INIT], [disable-static])
254 ])
255
256 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
257 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
258
259 dnl aclocal-1.4 backwards compatibility:
260 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
261 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
262
263
264
265 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
266 # ----------------------------------
267 # implement the --enable-fast-install flag, and support the `fast-install'
268 # and `disable-fast-install' LT_INIT options.
269 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
270 m4_define([_LT_ENABLE_FAST_INSTALL],
271 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
272 AC_ARG_ENABLE([fast-install],
273 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
274 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
275 [p=${PACKAGE-default}
276 case $enableval in
277 yes) enable_fast_install=yes ;;
278 no) enable_fast_install=no ;;
279 *)
280 enable_fast_install=no
281 # Look at the argument we got. We use all the common list separators.
282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
283 for pkg in $enableval; do
284 IFS="$lt_save_ifs"
285 if test "X$pkg" = "X$p"; then
286 enable_fast_install=yes
287 fi
288 done
289 IFS="$lt_save_ifs"
290 ;;
291 esac],
292 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
293
294 _LT_DECL([fast_install], [enable_fast_install], [0],
295 [Whether or not to optimize for fast installation])dnl
296 ])# _LT_ENABLE_FAST_INSTALL
297
298 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
299 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
300
301 # Old names:
302 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
303 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
304 AC_DIAGNOSE([obsolete],
305 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
306 the `fast-install' option into LT_INIT's first parameter.])
307 ])
308
309 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
310 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
311 AC_DIAGNOSE([obsolete],
312 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
313 the `disable-fast-install' option into LT_INIT's first parameter.])
314 ])
315
316 dnl aclocal-1.4 backwards compatibility:
317 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
318 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
319
320
321 # _LT_WITH_PIC([MODE])
322 # --------------------
323 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
324 # LT_INIT options.
325 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
326 m4_define([_LT_WITH_PIC],
327 [AC_ARG_WITH([pic],
328 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
329 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
330 [lt_p=${PACKAGE-default}
331 case $withval in
332 yes|no) pic_mode=$withval ;;
333 *)
334 pic_mode=default
335 # Look at the argument we got. We use all the common list separators.
336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
337 for lt_pkg in $withval; do
338 IFS="$lt_save_ifs"
339 if test "X$lt_pkg" = "X$lt_p"; then
340 pic_mode=yes
341 fi
342 done
343 IFS="$lt_save_ifs"
344 ;;
345 esac],
346 [pic_mode=default])
347
348 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
349
350 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
351 ])# _LT_WITH_PIC
352
353 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
354 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
355
356 # Old name:
357 AU_DEFUN([AC_LIBTOOL_PICMODE],
358 [_LT_SET_OPTION([LT_INIT], [pic-only])
359 AC_DIAGNOSE([obsolete],
360 [$0: Remove this warning and the call to _LT_SET_OPTION when you
361 put the `pic-only' option into LT_INIT's first parameter.])
362 ])
363
364 dnl aclocal-1.4 backwards compatibility:
365 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
366
367 ## ----------------- ##
368 ## LTDL_INIT Options ##
369 ## ----------------- ##
370
371 m4_define([_LTDL_MODE], [])
372 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
373 [m4_define([_LTDL_MODE], [nonrecursive])])
374 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
375 [m4_define([_LTDL_MODE], [recursive])])
376 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
377 [m4_define([_LTDL_MODE], [subproject])])
378
379 m4_define([_LTDL_TYPE], [])
380 LT_OPTION_DEFINE([LTDL_INIT], [installable],
381 [m4_define([_LTDL_TYPE], [installable])])
382 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
383 [m4_define([_LTDL_TYPE], [convenience])])
+0
-123
m4/ltsugar.m4 less more
0 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3 # Written by Gary V. Vaughan, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 6 ltsugar.m4
10
11 # This is to help aclocal find these macros, as it can't see m4_define.
12 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
13
14
15 # lt_join(SEP, ARG1, [ARG2...])
16 # -----------------------------
17 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
18 # associated separator.
19 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
20 # versions in m4sugar had bugs.
21 m4_define([lt_join],
22 [m4_if([$#], [1], [],
23 [$#], [2], [[$2]],
24 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
25 m4_define([_lt_join],
26 [m4_if([$#$2], [2], [],
27 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
28
29
30 # lt_car(LIST)
31 # lt_cdr(LIST)
32 # ------------
33 # Manipulate m4 lists.
34 # These macros are necessary as long as will still need to support
35 # Autoconf-2.59 which quotes differently.
36 m4_define([lt_car], [[$1]])
37 m4_define([lt_cdr],
38 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
39 [$#], 1, [],
40 [m4_dquote(m4_shift($@))])])
41 m4_define([lt_unquote], $1)
42
43
44 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
45 # ------------------------------------------
46 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47 # Note that neither SEPARATOR nor STRING are expanded; they are appended
48 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
49 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
50 # than defined and empty).
51 #
52 # This macro is needed until we can rely on Autoconf 2.62, since earlier
53 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
54 m4_define([lt_append],
55 [m4_define([$1],
56 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
57
58
59
60 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
61 # ----------------------------------------------------------
62 # Produce a SEP delimited list of all paired combinations of elements of
63 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
64 # has the form PREFIXmINFIXSUFFIXn.
65 # Needed until we can rely on m4_combine added in Autoconf 2.62.
66 m4_define([lt_combine],
67 [m4_if(m4_eval([$# > 3]), [1],
68 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
69 [[m4_foreach([_Lt_prefix], [$2],
70 [m4_foreach([_Lt_suffix],
71 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
72 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
73
74
75 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
76 # -----------------------------------------------------------------------
77 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
78 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
79 m4_define([lt_if_append_uniq],
80 [m4_ifdef([$1],
81 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
82 [lt_append([$1], [$2], [$3])$4],
83 [$5])],
84 [lt_append([$1], [$2], [$3])$4])])
85
86
87 # lt_dict_add(DICT, KEY, VALUE)
88 # -----------------------------
89 m4_define([lt_dict_add],
90 [m4_define([$1($2)], [$3])])
91
92
93 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
94 # --------------------------------------------
95 m4_define([lt_dict_add_subkey],
96 [m4_define([$1($2:$3)], [$4])])
97
98
99 # lt_dict_fetch(DICT, KEY, [SUBKEY])
100 # ----------------------------------
101 m4_define([lt_dict_fetch],
102 [m4_ifval([$3],
103 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
104 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
105
106
107 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
108 # -----------------------------------------------------------------
109 m4_define([lt_if_dict_fetch],
110 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
111 [$5],
112 [$6])])
113
114
115 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
116 # --------------------------------------------------------------
117 m4_define([lt_dict_filter],
118 [m4_if([$5], [], [],
119 [lt_join(m4_quote(m4_default([$4], [[, ]])),
120 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
121 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
122 ])
+0
-23
m4/ltversion.m4 less more
0 # ltversion.m4 -- version numbers -*- Autoconf -*-
1 #
2 # Copyright (C) 2004 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # @configure_input@
10
11 # serial 3337 ltversion.m4
12 # This file is part of GNU Libtool
13
14 m4_define([LT_PACKAGE_VERSION], [2.4.2])
15 m4_define([LT_PACKAGE_REVISION], [1.3337])
16
17 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.4.2'
19 macro_revision='1.3337'
20 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
21 _LT_DECL(, macro_revision, 0)
22 ])
+0
-98
m4/lt~obsolete.m4 less more
0 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004.
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 5 lt~obsolete.m4
10
11 # These exist entirely to fool aclocal when bootstrapping libtool.
12 #
13 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
14 # which have later been changed to m4_define as they aren't part of the
15 # exported API, or moved to Autoconf or Automake where they belong.
16 #
17 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
18 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
19 # using a macro with the same name in our local m4/libtool.m4 it'll
20 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
21 # and doesn't know about Autoconf macros at all.)
22 #
23 # So we provide this file, which has a silly filename so it's always
24 # included after everything else. This provides aclocal with the
25 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
26 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
28 #
29 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
30 # Yes, that means every name once taken will need to remain here until
31 # we give up compatibility with versions before 1.7, at which point
32 # we need to keep only those names which we still refer to.
33
34 # This is to help aclocal find these macros, as it can't see m4_define.
35 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
36
37 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
38 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
39 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
40 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
41 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
42 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
43 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
44 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
45 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
46 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
47 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
48 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
49 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
50 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
51 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
52 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
53 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
54 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
55 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
56 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
57 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
58 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
59 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
60 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
61 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
62 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
63 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
64 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
65 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
66 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
67 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
68 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
69 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
70 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
71 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
72 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
73 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
74 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
75 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
76 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
77 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
78 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
79 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
80 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
81 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
82 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
83 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
84 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
85 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
86 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
87 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
88 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
89 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
90 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
91 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
92 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
93 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
94 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
95 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
96 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
97 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
+0
-215
missing less more
0 #! /bin/sh
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2012-06-26.16; # UTC
4
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 if test $# -eq 0; then
27 echo 1>&2 "Try '$0 --help' for more information"
28 exit 1
29 fi
30
31 case $1 in
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
43
44 -h|--h|--he|--hel|--help)
45 echo "\
46 $0 [OPTION]... PROGRAM [ARGUMENT]...
47
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
50
51 Options:
52 -h, --help display this help and exit
53 -v, --version output version information and exit
54
55 Supported PROGRAM values:
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
61
62 Send bug reports to <bug-automake@gnu.org>."
63 exit $?
64 ;;
65
66 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
67 echo "missing $scriptversion (GNU Automake)"
68 exit $?
69 ;;
70
71 -*)
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
74 exit 1
75 ;;
76
77 esac
78
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'automa4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
207
208 # Local variables:
209 # eval: (add-hook 'write-file-hooks 'time-stamp)
210 # time-stamp-start: "scriptversion="
211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC"
213 # time-stamp-end: "; # UTC"
214 # End:
+0
-222
po/Makefile.in.in less more
0 # Makefile for program source directory in GNU NLS utilities package.
1 # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
2 # Copyright (C) 2004-2008 Rodney Dawes <dobey.pwns@gmail.com>
3 #
4 # This file may be copied and used freely without restrictions. It may
5 # be used in projects which are not available under a GNU Public License,
6 # but which still want to provide support for the GNU gettext functionality.
7 #
8 # - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
9 # instead of PACKAGE and to look for po2tbl in ./ not in intl/
10 #
11 # - Modified by jacob berkman <jacob@ximian.com> to install
12 # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
13 #
14 # - Modified by Rodney Dawes <dobey.pwns@gmail.com> for use with intltool
15 #
16 # We have the following line for use by intltoolize:
17 # INTLTOOL_MAKEFILE
18
19 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
20 PACKAGE = @PACKAGE@
21 VERSION = @VERSION@
22
23 SHELL = @SHELL@
24
25 srcdir = @srcdir@
26 top_srcdir = @top_srcdir@
27 top_builddir = @top_builddir@
28 VPATH = @srcdir@
29
30 prefix = @prefix@
31 exec_prefix = @exec_prefix@
32 datadir = @datadir@
33 datarootdir = @datarootdir@
34 libdir = @libdir@
35 DATADIRNAME = @DATADIRNAME@
36 itlocaledir = $(prefix)/$(DATADIRNAME)/locale
37 subdir = po
38 install_sh = @install_sh@
39 # Automake >= 1.8 provides @mkdir_p@.
40 # Until it can be supposed, use the safe fallback:
41 mkdir_p = $(install_sh) -d
42
43 INSTALL = @INSTALL@
44 INSTALL_DATA = @INSTALL_DATA@
45
46 GMSGFMT = @GMSGFMT@
47 MSGFMT = @MSGFMT@
48 XGETTEXT = @XGETTEXT@
49 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
50 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
51 MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
52 GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
53
54 ALL_LINGUAS = @ALL_LINGUAS@
55
56 PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
57
58 USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi)
59
60 USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
61
62 POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
63
64 DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
65 EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
66
67 POTFILES = \
68 # This comment gets stripped out
69
70 CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
71
72 .SUFFIXES:
73 .SUFFIXES: .po .pox .gmo .mo .msg .cat
74
75 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
76 INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V))
77 INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
78 INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@;
79
80 .po.pox:
81 $(MAKE) $(GETTEXT_PACKAGE).pot
82 $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
83
84 .po.mo:
85 $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $<
86
87 .po.gmo:
88 $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \
89 && rm -f $$file && $(GMSGFMT) -o $$file $<
90
91 .po.cat:
92 sed -f ../intl/po2msg.sed < $< > $*.msg \
93 && rm -f $@ && gencat $@ $*.msg
94
95
96 all: all-@USE_NLS@
97
98 all-yes: $(CATALOGS)
99 all-no:
100
101 $(GETTEXT_PACKAGE).pot: $(POTFILES)
102 $(GENPOT)
103
104 install: install-data
105 install-data: install-data-@USE_NLS@
106 install-data-no: all
107 install-data-yes: all
108 linguas="$(USE_LINGUAS)"; \
109 for lang in $$linguas; do \
110 dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
111 $(mkdir_p) $$dir; \
112 if test -r $$lang.gmo; then \
113 $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
114 echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
115 else \
116 $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
117 echo "installing $(srcdir)/$$lang.gmo as" \
118 "$$dir/$(GETTEXT_PACKAGE).mo"; \
119 fi; \
120 if test -r $$lang.gmo.m; then \
121 $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
122 echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
123 else \
124 if test -r $(srcdir)/$$lang.gmo.m ; then \
125 $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
126 $$dir/$(GETTEXT_PACKAGE).mo.m; \
127 echo "installing $(srcdir)/$$lang.gmo.m as" \
128 "$$dir/$(GETTEXT_PACKAGE).mo.m"; \
129 else \
130 true; \
131 fi; \
132 fi; \
133 done
134
135 # Empty stubs to satisfy archaic automake needs
136 dvi info ctags tags CTAGS TAGS ID:
137
138 # Define this as empty until I found a useful application.
139 install-exec installcheck:
140
141 uninstall:
142 linguas="$(USE_LINGUAS)"; \
143 for lang in $$linguas; do \
144 rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
145 rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
146 done
147
148 check: all $(GETTEXT_PACKAGE).pot
149 rm -f missing notexist
150 srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
151 if [ -r missing -o -r notexist ]; then \
152 exit 1; \
153 fi
154
155 mostlyclean:
156 rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
157 rm -f .intltool-merge-cache
158
159 clean: mostlyclean
160
161 distclean: clean
162 rm -f Makefile Makefile.in POTFILES stamp-it
163 rm -f *.mo *.msg *.cat *.cat.m *.gmo
164
165 maintainer-clean: distclean
166 @echo "This command is intended for maintainers to use;"
167 @echo "it deletes files that may require special tools to rebuild."
168 rm -f Makefile.in.in
169
170 distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
171 dist distdir: $(DISTFILES)
172 dists="$(DISTFILES)"; \
173 extra_dists="$(EXTRA_DISTFILES)"; \
174 for file in $$extra_dists; do \
175 test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
176 done; \
177 for file in $$dists; do \
178 test -f $$file || file="$(srcdir)/$$file"; \
179 ln $$file $(distdir) 2> /dev/null \
180 || cp -p $$file $(distdir); \
181 done
182
183 update-po: Makefile
184 $(MAKE) $(GETTEXT_PACKAGE).pot
185 tmpdir=`pwd`; \
186 linguas="$(USE_LINGUAS)"; \
187 for lang in $$linguas; do \
188 echo "$$lang:"; \
189 result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
190 if $$result; then \
191 if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
192 rm -f $$tmpdir/$$lang.new.po; \
193 else \
194 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
195 :; \
196 else \
197 echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
198 rm -f $$tmpdir/$$lang.new.po; \
199 exit 1; \
200 fi; \
201 fi; \
202 else \
203 echo "msgmerge for $$lang.gmo failed!"; \
204 rm -f $$tmpdir/$$lang.new.po; \
205 fi; \
206 done
207
208 Makefile POTFILES: stamp-it
209 @if test ! -f $@; then \
210 rm -f stamp-it; \
211 $(MAKE) stamp-it; \
212 fi
213
214 stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
215 cd $(top_builddir) \
216 && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
217 $(SHELL) ./config.status
218
219 # Tell versions [3.59,3.63) of GNU make not to export all variables.
220 # Otherwise a system limit (for SysV at least) may be exceeded.
221 .NOEXPORT:
22 engine/engine.c
33 engine/main.c
44 setup/ibus-setup-input-pad.desktop.in.in
5 setup/setup-gtk2.c
6 [type: gettext/glade]setup/setup-gtk2.ui
5 setup/setup-gtk.c
6 [type: gettext/glade]setup/setup-gtk.ui
0 # Source translations for ibus-input-pad
1 # Copyright (C) 2010-2014 Takao Fujiwara <takao.fujiwara1@gmail.com>
2 # This file is distributed under the same license as the ibus-input-pad package.
3 #
4 msgid ""
5 msgstr ""
6 "Project-Id-Version: ibus-input-pad HEAD\n"
7 "Report-Msgid-Bugs-To: http://code.google.com/p/input-pad/issues/entry\n"
8 "POT-Creation-Date: 2014-04-18 14:45+0900\n"
9 "PO-Revision-Date: 2011-03-08 11:40+0900\n"
10 "Last-Translator: Takao Fujiwara <takao.fujiwara1@gmail.com>\n"
11 "Language-Team: Source\n"
12 "Language: en\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16
17 #: ../engine/engine.c:181 ../engine/engine.c:182
18 msgid "Launch Input Pad"
19 msgstr ""
20
21 #: ../engine/engine.c:193 ../engine/engine.c:194 ../engine/engine.c:352
22 msgid "Show Input Pad"
23 msgstr ""
24
25 #: ../engine/engine.c:203 ../engine/engine.c:204
26 msgid "Show Input Pad (Keyboard Only)"
27 msgstr ""
28
29 #: ../engine/engine.c:215
30 msgid "Setup Input Pad"
31 msgstr ""
32
33 #: ../engine/engine.c:216
34 msgid "Configure Input Pad"
35 msgstr ""
36
37 #: ../engine/engine.c:350
38 msgid "Hide Input Pad"
39 msgstr ""
40
41 #: ../engine/main.c:56 ../engine/main.c:65 ../engine/main.c:66
42 msgid "Input Pad"
43 msgstr ""
44
45 #: ../setup/ibus-setup-input-pad.desktop.in.in.h:1
46 msgid "IBus Input Pad Setup"
47 msgstr ""
48
49 #: ../setup/ibus-setup-input-pad.desktop.in.in.h:2
50 msgid "Set up IBus Input Pad engine"
51 msgstr ""
52
53 #: ../setup/setup-gtk.c:360 ../setup/setup-gtk.ui.h:4
54 msgid "Default"
55 msgstr ""
56
57 #: ../setup/setup-gtk.c:394
58 msgid "Keyboard _Theme:"
59 msgstr ""
60
61 #: ../setup/setup-gtk.c:397
62 msgid "Which theme you choose in kbdui modules"
63 msgstr ""
64
65 #: ../setup/setup-gtk.ui.h:1
66 msgid "Nothing"
67 msgstr ""
68
69 #: ../setup/setup-gtk.ui.h:2
70 msgid "Custom"
71 msgstr ""
72
73 #: ../setup/setup-gtk.ui.h:3
74 msgid "All"
75 msgstr ""
76
77 #: ../setup/setup-gtk.ui.h:5
78 msgid "IBus-Input-Pad Setup"
79 msgstr ""
80
81 #: ../setup/setup-gtk.ui.h:6
82 msgid "_Character Table Type:"
83 msgstr ""
84
85 #: ../setup/setup-gtk.ui.h:7
86 msgid "Whether you show the character table or not"
87 msgstr ""
88
89 #: ../setup/setup-gtk.ui.h:8
90 msgid "_Keyboard Layout Type:"
91 msgstr ""
92
93 #: ../setup/setup-gtk.ui.h:9
94 msgid "Whether you show the keyboard layout or not"
95 msgstr ""
96
97 #: ../setup/setup-gtk.ui.h:10
98 msgid "<b>Default Appearance</b>"
99 msgstr ""
100
101 #: ../setup/setup-gtk.ui.h:11
102 msgid "<b>Keyboard Only Appearance</b>"
103 msgstr ""
104
105 #: ../setup/setup-gtk.ui.h:12
106 msgid "General"
107 msgstr ""
108
109 #: ../setup/setup-gtk.ui.h:13
110 msgid "About"
111 msgstr ""
112
113 #: ../setup/setup-gtk.ui.h:14
114 msgid "_Apply"
115 msgstr ""
116
117 #: ../setup/setup-gtk.ui.h:15
118 msgid "_Cancel"
119 msgstr ""
120
121 #: ../setup/setup-gtk.ui.h:16
122 msgid "_OK"
123 msgstr ""
124
125 #: ../setup/setup-gtk.ui.h:17
126 msgid "Confirm"
127 msgstr ""
128
129 #: ../setup/setup-gtk.ui.h:18
130 msgid "Are you sure to close Setup?"
131 msgstr ""
132
133 #: ../setup/setup-gtk.ui.h:19
134 msgid "Are you sure to close Setup without saving configure?"
135 msgstr ""
136
137 #: ../setup/setup-gtk.ui.h:20
138 msgid "The input pad engine for IBus platform"
139 msgstr ""
140
141 #: ../setup/setup-gtk.ui.h:21
142 msgid "translator_credits"
143 msgstr ""
00 # Japanese translations for ibus-input-pad
1 # Copyright (C) 2010-2013 Takao Fujiwara <takao.fujiwara1@gmail.com>
1 # Copyright (C) 2010-2014 Takao Fujiwara <takao.fujiwara1@gmail.com>
22 # This file is distributed under the same license as the ibus-input-pad package.
33 #
44 # Translators:
77 msgstr ""
88 "Project-Id-Version: ibus-input-pad\n"
99 "Report-Msgid-Bugs-To: http://code.google.com/p/input-pad/issues/entry\n"
10 "POT-Creation-Date: 2013-10-08 14:35+0900\n"
11 "PO-Revision-Date: 2013-12-06 06:23+0000\n"
12 "Last-Translator: Takao Fujiwara <takao.fujiwara1@gmail.com>\n"
10 "POT-Creation-Date: 2014-04-18 14:45+0900\n"
11 "PO-Revision-Date: 2014-04-22 06:14+0000\n"
12 "Last-Translator: fujiwara <tfujiwar@redhat.com>\n"
1313 "Language-Team: Japanese\n"
1414 "MIME-Version: 1.0\n"
1515 "Content-Type: text/plain; charset=UTF-8\n"
1717 "Language: ja\n"
1818 "Plural-Forms: nplurals=1; plural=0;\n"
1919
20 #: ../engine/engine.c:158 ../engine/engine.c:159 ../engine/engine.c:168
21 #: ../engine/engine.c:169
20 #: ../engine/engine.c:181 ../engine/engine.c:182
2221 msgid "Launch Input Pad"
2322 msgstr "インプットパッドを起動する"
2423
25 #: ../engine/engine.c:180 ../engine/engine.c:181 ../engine/engine.c:361
24 #: ../engine/engine.c:193 ../engine/engine.c:194 ../engine/engine.c:352
2625 msgid "Show Input Pad"
2726 msgstr "インプットパッドを表示する"
2827
29 #: ../engine/engine.c:190 ../engine/engine.c:191
28 #: ../engine/engine.c:203 ../engine/engine.c:204
3029 msgid "Show Input Pad (Keyboard Only)"
3130 msgstr "インプットパッドを表示する (キーボードのみ)"
3231
33 #: ../engine/engine.c:203
32 #: ../engine/engine.c:215
3433 msgid "Setup Input Pad"
3534 msgstr "インプットパッドの設定"
3635
37 #: ../engine/engine.c:204
36 #: ../engine/engine.c:216
3837 msgid "Configure Input Pad"
3938 msgstr "インプットパッドを構成します"
4039
41 #: ../engine/engine.c:359
40 #: ../engine/engine.c:350
4241 msgid "Hide Input Pad"
4342 msgstr "インプットパッドを隠す"
4443
45 #: ../engine/main.c:55 ../engine/main.c:64 ../engine/main.c:65
44 #: ../engine/main.c:56 ../engine/main.c:65 ../engine/main.c:66
4645 msgid "Input Pad"
4746 msgstr "インプットパッド"
4847
5453 msgid "Set up IBus Input Pad engine"
5554 msgstr "IBus Input Pad エンジンの設定"
5655
57 #: ../setup/setup-gtk2.c:360 ../setup/setup-gtk2.ui.h:4
56 #: ../setup/setup-gtk.c:360 ../setup/setup-gtk.ui.h:4
5857 msgid "Default"
5958 msgstr "デフォルト"
6059
61 #: ../setup/setup-gtk2.c:397
60 #: ../setup/setup-gtk.c:394
6261 msgid "Keyboard _Theme:"
6362 msgstr "キーボードテーマ(_T):"
6463
65 #: ../setup/setup-gtk2.c:400
64 #: ../setup/setup-gtk.c:397
6665 msgid "Which theme you choose in kbdui modules"
6766 msgstr "kbdui モジュールの中でどのテーマを選ぶか"
6867
69 #: ../setup/setup-gtk2.ui.h:1
68 #: ../setup/setup-gtk.ui.h:1
7069 msgid "Nothing"
7170 msgstr "なし"
7271
73 #: ../setup/setup-gtk2.ui.h:2
72 #: ../setup/setup-gtk.ui.h:2
7473 msgid "Custom"
7574 msgstr "カスタム"
7675
77 #: ../setup/setup-gtk2.ui.h:3
76 #: ../setup/setup-gtk.ui.h:3
7877 msgid "All"
7978 msgstr "すべて"
8079
81 #: ../setup/setup-gtk2.ui.h:5
80 #: ../setup/setup-gtk.ui.h:5
8281 msgid "IBus-Input-Pad Setup"
8382 msgstr "IBus-Input-Pad 設定"
8483
85 #: ../setup/setup-gtk2.ui.h:6
84 #: ../setup/setup-gtk.ui.h:6
8685 msgid "_Character Table Type:"
8786 msgstr "文字テーブルタイプ(_C):"
8887
89 #: ../setup/setup-gtk2.ui.h:7
88 #: ../setup/setup-gtk.ui.h:7
9089 msgid "Whether you show the character table or not"
9190 msgstr "文字テーブルを表示するか否か"
9291
93 #: ../setup/setup-gtk2.ui.h:8
92 #: ../setup/setup-gtk.ui.h:8
9493 msgid "_Keyboard Layout Type:"
9594 msgstr "キーボードレイアウトタイプ(_K):"
9695
97 #: ../setup/setup-gtk2.ui.h:9
96 #: ../setup/setup-gtk.ui.h:9
9897 msgid "Whether you show the keyboard layout or not"
9998 msgstr "キーボードレイアウトを表示するか否か"
10099
101 #: ../setup/setup-gtk2.ui.h:10
100 #: ../setup/setup-gtk.ui.h:10
102101 msgid "<b>Default Appearance</b>"
103102 msgstr "<b>デフォルトの外観</b>"
104103
105 #: ../setup/setup-gtk2.ui.h:11
104 #: ../setup/setup-gtk.ui.h:11
106105 msgid "<b>Keyboard Only Appearance</b>"
107106 msgstr "<b>キーボードのみの外観</b>"
108107
109 #: ../setup/setup-gtk2.ui.h:12
108 #: ../setup/setup-gtk.ui.h:12
110109 msgid "General"
111110 msgstr "一般"
112111
113 #: ../setup/setup-gtk2.ui.h:13
112 #: ../setup/setup-gtk.ui.h:13
114113 msgid "About"
115114 msgstr "情報"
116115
117 #: ../setup/setup-gtk2.ui.h:14
116 #: ../setup/setup-gtk.ui.h:14
117 msgid "_Apply"
118 msgstr "適用(_A)"
119
120 #: ../setup/setup-gtk.ui.h:15
121 msgid "_Cancel"
122 msgstr "キャンセル(_C)"
123
124 #: ../setup/setup-gtk.ui.h:16
125 msgid "_OK"
126 msgstr "OK(_O)"
127
128 #: ../setup/setup-gtk.ui.h:17
118129 msgid "Confirm"
119130 msgstr "確認"
120131
121 #: ../setup/setup-gtk2.ui.h:15
132 #: ../setup/setup-gtk.ui.h:18
122133 msgid "Are you sure to close Setup?"
123134 msgstr "「セットアップ」を閉じても良いですか?"
124135
125 #: ../setup/setup-gtk2.ui.h:16
136 #: ../setup/setup-gtk.ui.h:19
126137 msgid "Are you sure to close Setup without saving configure?"
127138 msgstr "構成を保存せずに「セットアップ」を閉じても良いですか?"
128139
129 #: ../setup/setup-gtk2.ui.h:17
140 #: ../setup/setup-gtk.ui.h:20
130141 msgid "The input pad engine for IBus platform"
131142 msgstr "IBus プラットフォーム用インプットパッドエンジン"
132143
133 #: ../setup/setup-gtk2.ui.h:18
144 #: ../setup/setup-gtk.ui.h:21
134145 msgid "translator_credits"
135146 msgstr "translator_credits"
00 # Polish translations for ibus-input-pad
1 # Copyright (C) 2010-2012 Takao Fujiwara <takao.fujiwara1@gmail.com>
1 # Copyright (C) 2010-2014 Takao Fujiwara <takao.fujiwara1@gmail.com>
22 # This file is distributed under the same license as the ibus-input-pad package.
33 #
44 # Translators:
5 # Piotr Drąg <piotrdrag@gmail.com>, 2011,2013
5 # Piotr Drąg <piotrdrag@gmail.com>, 2011,2013-2014
66 msgid ""
77 msgstr ""
88 "Project-Id-Version: ibus-input-pad\n"
99 "Report-Msgid-Bugs-To: http://code.google.com/p/input-pad/issues/entry\n"
10 "POT-Creation-Date: 2013-10-08 14:35+0900\n"
11 "PO-Revision-Date: 2013-11-20 09:27+0000\n"
10 "POT-Creation-Date: 2014-04-18 14:45+0900\n"
11 "PO-Revision-Date: 2014-04-24 14:44+0000\n"
1212 "Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n"
1313 "Language-Team: Polish\n"
1414 "MIME-Version: 1.0\n"
1717 "Language: pl\n"
1818 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
1919
20 #: ../engine/engine.c:158 ../engine/engine.c:159 ../engine/engine.c:168
21 #: ../engine/engine.c:169
20 #: ../engine/engine.c:181 ../engine/engine.c:182
2221 msgid "Launch Input Pad"
2322 msgstr "Uruchom tablicę wprowadzania"
2423
25 #: ../engine/engine.c:180 ../engine/engine.c:181 ../engine/engine.c:361
24 #: ../engine/engine.c:193 ../engine/engine.c:194 ../engine/engine.c:352
2625 msgid "Show Input Pad"
2726 msgstr "Wyświetl tablicę wprowadzania"
2827
29 #: ../engine/engine.c:190 ../engine/engine.c:191
28 #: ../engine/engine.c:203 ../engine/engine.c:204
3029 msgid "Show Input Pad (Keyboard Only)"
3130 msgstr "tablicę wprowadzania (tylko klawiaturę)"
3231
33 #: ../engine/engine.c:203
32 #: ../engine/engine.c:215
3433 msgid "Setup Input Pad"
3534 msgstr "Ustaw tablicę wprowadzania"
3635
37 #: ../engine/engine.c:204
36 #: ../engine/engine.c:216
3837 msgid "Configure Input Pad"
3938 msgstr "Skonfiguruj tablicę wprowadzania"
4039
41 #: ../engine/engine.c:359
40 #: ../engine/engine.c:350
4241 msgid "Hide Input Pad"
4342 msgstr "Ukryj tablicę wprowadzania"
4443
45 #: ../engine/main.c:55 ../engine/main.c:64 ../engine/main.c:65
44 #: ../engine/main.c:56 ../engine/main.c:65 ../engine/main.c:66
4645 msgid "Input Pad"
4746 msgstr "Tablica wprowadzania"
4847
5453 msgid "Set up IBus Input Pad engine"
5554 msgstr "Ustawienie mechanizmu tablicy wprowadzania IBus"
5655
57 #: ../setup/setup-gtk2.c:360 ../setup/setup-gtk2.ui.h:4
56 #: ../setup/setup-gtk.c:360 ../setup/setup-gtk.ui.h:4
5857 msgid "Default"
5958 msgstr "Domyślne"
6059
61 #: ../setup/setup-gtk2.c:397
60 #: ../setup/setup-gtk.c:394
6261 msgid "Keyboard _Theme:"
6362 msgstr "_Motyw klawiatury:"
6463
65 #: ../setup/setup-gtk2.c:400
64 #: ../setup/setup-gtk.c:397
6665 msgid "Which theme you choose in kbdui modules"
6766 msgstr "Jakie motyw wybrać w modułach kbdui"
6867
69 #: ../setup/setup-gtk2.ui.h:1
68 #: ../setup/setup-gtk.ui.h:1
7069 msgid "Nothing"
7170 msgstr "Nic"
7271
73 #: ../setup/setup-gtk2.ui.h:2
72 #: ../setup/setup-gtk.ui.h:2
7473 msgid "Custom"
7574 msgstr "Własne"
7675
77 #: ../setup/setup-gtk2.ui.h:3
76 #: ../setup/setup-gtk.ui.h:3
7877 msgid "All"
7978 msgstr "Wszystko"
8079
81 #: ../setup/setup-gtk2.ui.h:5
80 #: ../setup/setup-gtk.ui.h:5
8281 msgid "IBus-Input-Pad Setup"
8382 msgstr "Ustawienia tablicy wprowadzania IBus"
8483
85 #: ../setup/setup-gtk2.ui.h:6
84 #: ../setup/setup-gtk.ui.h:6
8685 msgid "_Character Table Type:"
8786 msgstr "Typ tablicy _znaków:"
8887
89 #: ../setup/setup-gtk2.ui.h:7
88 #: ../setup/setup-gtk.ui.h:7
9089 msgid "Whether you show the character table or not"
9190 msgstr "Określa, czy wyświetlać tablicę znaków"
9291
93 #: ../setup/setup-gtk2.ui.h:8
92 #: ../setup/setup-gtk.ui.h:8
9493 msgid "_Keyboard Layout Type:"
9594 msgstr "Typ układu _klawiatury:"
9695
97 #: ../setup/setup-gtk2.ui.h:9
96 #: ../setup/setup-gtk.ui.h:9
9897 msgid "Whether you show the keyboard layout or not"
9998 msgstr "Określa, czy wyświetlać układ klawiatury"
10099
101 #: ../setup/setup-gtk2.ui.h:10
100 #: ../setup/setup-gtk.ui.h:10
102101 msgid "<b>Default Appearance</b>"
103102 msgstr "<b>Domyślny wygląd</b>"
104103
105 #: ../setup/setup-gtk2.ui.h:11
104 #: ../setup/setup-gtk.ui.h:11
106105 msgid "<b>Keyboard Only Appearance</b>"
107106 msgstr "<b>Tylko wygląd klawiatury</b>"
108107
109 #: ../setup/setup-gtk2.ui.h:12
108 #: ../setup/setup-gtk.ui.h:12
110109 msgid "General"
111110 msgstr "Ogólne"
112111
113 #: ../setup/setup-gtk2.ui.h:13
112 #: ../setup/setup-gtk.ui.h:13
114113 msgid "About"
115114 msgstr "O programie"
116115
117 #: ../setup/setup-gtk2.ui.h:14
116 #: ../setup/setup-gtk.ui.h:14
117 msgid "_Apply"
118 msgstr "_Zastosuj"
119
120 #: ../setup/setup-gtk.ui.h:15
121 msgid "_Cancel"
122 msgstr "_Anuluj"
123
124 #: ../setup/setup-gtk.ui.h:16
125 msgid "_OK"
126 msgstr "_OK"
127
128 #: ../setup/setup-gtk.ui.h:17
118129 msgid "Confirm"
119130 msgstr "Potwierdź"
120131
121 #: ../setup/setup-gtk2.ui.h:15
132 #: ../setup/setup-gtk.ui.h:18
122133 msgid "Are you sure to close Setup?"
123134 msgstr "Na pewno zamknąć ustawienia?"
124135
125 #: ../setup/setup-gtk2.ui.h:16
136 #: ../setup/setup-gtk.ui.h:19
126137 msgid "Are you sure to close Setup without saving configure?"
127138 msgstr "Na pewno zamknąć ustawienia bez zapisania konfiguracji?"
128139
129 #: ../setup/setup-gtk2.ui.h:17
140 #: ../setup/setup-gtk.ui.h:20
130141 msgid "The input pad engine for IBus platform"
131142 msgstr "Mechanizm tablicy wprowadzania dla platformy IBus"
132143
133 #: ../setup/setup-gtk2.ui.h:18
144 #: ../setup/setup-gtk.ui.h:21
134145 msgid "translator_credits"
135146 msgstr "Piotr Drąg <piotrdrag@gmail.com>, 2011"
00 # Traditional Chinese translations for ibus-input-pad
1 # Copyright (C) 2010-2012 Takao Fujiwara <takao.fujiwara1@gmail.com>
1 # Copyright (C) 2010-2014 Takao Fujiwara <takao.fujiwara1@gmail.com>
22 # This file is distributed under the same license as the ibus-input-pad package.
33 #
44 # Translators:
5 # Cheng-Chia Tseng <pswo10680@gmail.com>, 2011.
5 # Cheng-Chia Tseng <pswo10680@gmail.com>, 2011
66 msgid ""
77 msgstr ""
8 "Project-Id-Version: ibus-input-pad HEAD\n"
8 "Project-Id-Version: ibus-input-pad\n"
99 "Report-Msgid-Bugs-To: http://code.google.com/p/input-pad/issues/entry\n"
10 "POT-Creation-Date: 2012-12-17 19:34+0900\n"
11 "PO-Revision-Date: 2012-02-14 08:36+0000\n"
10 "POT-Creation-Date: 2014-04-18 14:45+0900\n"
11 "PO-Revision-Date: 2014-04-24 16:22+0000\n"
1212 "Last-Translator: Cheng-Chia Tseng <pswo10680@gmail.com>\n"
1313 "Language-Team: Traditional Chinese\n"
14 "Language: zh_TW\n"
1514 "MIME-Version: 1.0\n"
1615 "Content-Type: text/plain; charset=UTF-8\n"
1716 "Content-Transfer-Encoding: 8bit\n"
17 "Language: zh_TW\n"
1818 "Plural-Forms: nplurals=1; plural=0;\n"
1919
20 #: ../engine/engine.c:158 ../engine/engine.c:159 ../engine/engine.c:168
21 #: ../engine/engine.c:169
20 #: ../engine/engine.c:181 ../engine/engine.c:182
2221 msgid "Launch Input Pad"
2322 msgstr "啟動輸入板"
2423
25 #: ../engine/engine.c:180 ../engine/engine.c:181 ../engine/engine.c:361
24 #: ../engine/engine.c:193 ../engine/engine.c:194 ../engine/engine.c:352
2625 msgid "Show Input Pad"
2726 msgstr "顯示輸入板"
2827
29 #: ../engine/engine.c:190 ../engine/engine.c:191
28 #: ../engine/engine.c:203 ../engine/engine.c:204
3029 msgid "Show Input Pad (Keyboard Only)"
3130 msgstr "顯示輸入板 (僅鍵盤)"
3231
33 #: ../engine/engine.c:203
32 #: ../engine/engine.c:215
3433 msgid "Setup Input Pad"
3534 msgstr "設置輸入板"
3635
37 #: ../engine/engine.c:204
36 #: ../engine/engine.c:216
3837 msgid "Configure Input Pad"
3938 msgstr "設定輸入板"
4039
41 #: ../engine/engine.c:359
40 #: ../engine/engine.c:350
4241 msgid "Hide Input Pad"
4342 msgstr "隱藏輸入板"
4443
45 #: ../engine/main.c:55 ../engine/main.c:64 ../engine/main.c:65
44 #: ../engine/main.c:56 ../engine/main.c:65 ../engine/main.c:66
4645 msgid "Input Pad"
4746 msgstr "輸入板"
4847
49 #: ../setup/setup-gtk2.c:360 ../setup/setup-gtk2.ui.h:4
48 #: ../setup/ibus-setup-input-pad.desktop.in.in.h:1
49 msgid "IBus Input Pad Setup"
50 msgstr "IBus 輸入板設置"
51
52 #: ../setup/ibus-setup-input-pad.desktop.in.in.h:2
53 msgid "Set up IBus Input Pad engine"
54 msgstr "設置 IBus 輸入板引擎"
55
56 #: ../setup/setup-gtk.c:360 ../setup/setup-gtk.ui.h:4
5057 msgid "Default"
5158 msgstr "預設"
5259
53 #: ../setup/setup-gtk2.c:397
60 #: ../setup/setup-gtk.c:394
5461 msgid "Keyboard _Theme:"
5562 msgstr "鍵盤主題(_T):"
5663
57 #: ../setup/setup-gtk2.c:400
64 #: ../setup/setup-gtk.c:397
5865 msgid "Which theme you choose in kbdui modules"
5966 msgstr "您想要 kbdui 模組使用哪個主題"
6067
61 #: ../setup/setup-gtk2.ui.h:1
68 #: ../setup/setup-gtk.ui.h:1
6269 msgid "Nothing"
6370 msgstr "無"
6471
65 #: ../setup/setup-gtk2.ui.h:2
72 #: ../setup/setup-gtk.ui.h:2
6673 msgid "Custom"
6774 msgstr "自訂"
6875
69 #: ../setup/setup-gtk2.ui.h:3
76 #: ../setup/setup-gtk.ui.h:3
7077 msgid "All"
7178 msgstr "全部"
7279
73 #: ../setup/setup-gtk2.ui.h:5
80 #: ../setup/setup-gtk.ui.h:5
7481 msgid "IBus-Input-Pad Setup"
7582 msgstr "IBus-Input-Pad 設置"
7683
77 #: ../setup/setup-gtk2.ui.h:6
84 #: ../setup/setup-gtk.ui.h:6
7885 msgid "_Character Table Type:"
7986 msgstr "字元表類型(_C):"
8087
81 #: ../setup/setup-gtk2.ui.h:7
88 #: ../setup/setup-gtk.ui.h:7
8289 msgid "Whether you show the character table or not"
8390 msgstr "您是否要顯示字元表"
8491
85 #: ../setup/setup-gtk2.ui.h:8
92 #: ../setup/setup-gtk.ui.h:8
8693 msgid "_Keyboard Layout Type:"
8794 msgstr "鍵盤配置類型(_K):"
8895
89 #: ../setup/setup-gtk2.ui.h:9
96 #: ../setup/setup-gtk.ui.h:9
9097 msgid "Whether you show the keyboard layout or not"
9198 msgstr "您是否要顯示鍵盤配置"
9299
93 #: ../setup/setup-gtk2.ui.h:10
100 #: ../setup/setup-gtk.ui.h:10
94101 msgid "<b>Default Appearance</b>"
95102 msgstr "<b>預設外觀</b>"
96103
97 #: ../setup/setup-gtk2.ui.h:11
104 #: ../setup/setup-gtk.ui.h:11
98105 msgid "<b>Keyboard Only Appearance</b>"
99106 msgstr "<b>僅鍵盤外觀</b>"
100107
101 #: ../setup/setup-gtk2.ui.h:12
108 #: ../setup/setup-gtk.ui.h:12
102109 msgid "General"
103110 msgstr "一般"
104111
105 #: ../setup/setup-gtk2.ui.h:13
112 #: ../setup/setup-gtk.ui.h:13
106113 msgid "About"
107114 msgstr "關於"
108115
109 #: ../setup/setup-gtk2.ui.h:14
116 #: ../setup/setup-gtk.ui.h:14
117 msgid "_Apply"
118 msgstr "套用(_A)"
119
120 #: ../setup/setup-gtk.ui.h:15
121 msgid "_Cancel"
122 msgstr "取消(_C)"
123
124 #: ../setup/setup-gtk.ui.h:16
125 msgid "_OK"
126 msgstr "確定(_O)"
127
128 #: ../setup/setup-gtk.ui.h:17
110129 msgid "Confirm"
111130 msgstr "確認"
112131
113 #: ../setup/setup-gtk2.ui.h:15
132 #: ../setup/setup-gtk.ui.h:18
114133 msgid "Are you sure to close Setup?"
115134 msgstr "您確定要關閉「設置」嗎?"
116135
117 #: ../setup/setup-gtk2.ui.h:16
136 #: ../setup/setup-gtk.ui.h:19
118137 msgid "Are you sure to close Setup without saving configure?"
119138 msgstr "您確定要關閉「設置」而不儲存設定嗎?"
120139
121 #: ../setup/setup-gtk2.ui.h:17
140 #: ../setup/setup-gtk.ui.h:20
122141 msgid "The input pad engine for IBus platform"
123142 msgstr "IBus 平臺的輸入板引擎"
124143
125 #: ../setup/setup-gtk2.ui.h:18
144 #: ../setup/setup-gtk.ui.h:21
126145 msgid "translator_credits"
127 msgstr "Cheng-Chia Tseng <pswo10680@gmail.com>, 2011."
146 msgstr "Cheng-Chia Tseng <pswo10680@gmail.com>, 2011, 14."
11 #
22 # ibus-input-pad - Input pad for IBus
33 #
4 # Copyright (c) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010-2011 Red Hat, Inc.
4 # Copyright (c) 2010-2014 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010-2014 Red Hat, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
2121 noinst_DIST = \
2222 $(NULL)
2323
24 setupdir=$(pkgdatadir)/setup
25 setup_DATA=setup-gtk2.ui
26
2724 AM_CPPFLAGS = \
2825 -I$(top_srcdir) \
2926 -I$(top_srcdir)/engine \
3027 -DDATAROOTDIR=\""$(datarootdir)"\" \
31 -DIBUS_INPUT_PAD_SETUP_UI_FILE=\""$(setupdir)/$(setup_DATA)"\" \
3228 $(NULL)
3329
3430 noinst_LTLIBRARIES = \
3632 $(NULL)
3733
3834 libiconfig_la_SOURCES = \
39 iconfig-gtk2.c \
40 iconfig-gtk2.h \
35 iconfig-gtk.c \
36 iconfig-gtk.h \
4137 $(NULL)
4238
4339 libiconfig_la_CFLAGS = \
5854
5955 ibus_setup_input_pad_SOURCES = \
6056 main.c \
61 setup-gtk2.c \
62 setup-gtk2.h \
57 setup-gtk.c \
58 setup-gtk.h \
59 resources.c \
6360 $(NULL)
6461
6562 ibus_setup_input_pad_CFLAGS = \
63 $(GTK3_CFLAGS) \
6664 $(IBUS_CFLAGS) \
6765 $(INPUT_PAD_CFLAGS) \
6866 $(NULL)
7270
7371 ibus_setup_input_pad_LDADD = \
7472 $(builddir)/libiconfig.la \
73 $(GTK3_LIBS) \
7574 $(IBUS_LIBS) \
7675 $(INPUT_PAD_LIBS) \
7776 $(NULL)
7877
79 if HAVE_GTK3
80 ibus_setup_input_pad_CFLAGS += $(GTK3_CFLAGS)
81 ibus_setup_input_pad_LDADD += $(GTK3_LIBS)
82 else
83 ibus_setup_input_pad_CFLAGS += $(GTK2_CFLAGS)
84 ibus_setup_input_pad_LDADD += $(GTK2_LIBS)
85 endif
78 resources.c: ibus-setup-input-pad.gresource.xml
79 $(GLIB_COMPILE_RESOURCES) $< --target=$@ --generate-source
8680
8781 desktop_in_in_files = ibus-setup-input-pad.desktop.in.in
8882 desktop_in_files = $(desktop_in_in_files:.in.in=.in)
9892
9993 @INTLTOOL_DESKTOP_RULE@
10094
95 MAINTAINERCLEANFILES = resources.c
96
10197 EXTRA_DIST = \
10298 $(desktop_in_in_files) \
103 setup-gtk2.ui \
99 ibus-setup-input-pad.gresource.xml \
100 setup-gtk.ui \
104101 $(NULL)
105102
106103 CLEANFILES = \
+0
-910
setup/Makefile.in less more
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # vim:set noet ts=4:
17 #
18 # ibus-input-pad - Input pad for IBus
19 #
20 # Copyright (c) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
21 # Copyright (c) 2010-2011 Red Hat, Inc.
22 #
23 # This program is free software; you can redistribute it and/or modify
24 # it under the terms of the GNU General Public License as published by
25 # the Free Software Foundation; either version 2 of the License, or
26 # (at your option) any later version.
27 #
28 # This program is distributed in the hope that it will be useful,
29 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 # GNU General Public License for more details.
32 #
33 # You should have received a copy of the GNU General Public License along
34 # with this program; if not, write to the Free Software Foundation, Inc.,
35 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
36
37
38
39 VPATH = @srcdir@
40 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
41 am__make_running_with_option = \
42 case $${target_option-} in \
43 ?) ;; \
44 *) echo "am__make_running_with_option: internal error: invalid" \
45 "target option '$${target_option-}' specified" >&2; \
46 exit 1;; \
47 esac; \
48 has_opt=no; \
49 sane_makeflags=$$MAKEFLAGS; \
50 if $(am__is_gnu_make); then \
51 sane_makeflags=$$MFLAGS; \
52 else \
53 case $$MAKEFLAGS in \
54 *\\[\ \ ]*) \
55 bs=\\; \
56 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
57 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
58 esac; \
59 fi; \
60 skip_next=no; \
61 strip_trailopt () \
62 { \
63 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
64 }; \
65 for flg in $$sane_makeflags; do \
66 test $$skip_next = yes && { skip_next=no; continue; }; \
67 case $$flg in \
68 *=*|--*) continue;; \
69 -*I) strip_trailopt 'I'; skip_next=yes;; \
70 -*I?*) strip_trailopt 'I';; \
71 -*O) strip_trailopt 'O'; skip_next=yes;; \
72 -*O?*) strip_trailopt 'O';; \
73 -*l) strip_trailopt 'l'; skip_next=yes;; \
74 -*l?*) strip_trailopt 'l';; \
75 -[dEDm]) skip_next=yes;; \
76 -[JT]) skip_next=yes;; \
77 esac; \
78 case $$flg in \
79 *$$target_option*) has_opt=yes; break;; \
80 esac; \
81 done; \
82 test $$has_opt = yes
83 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
84 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
85 pkgdatadir = $(datadir)/@PACKAGE@
86 pkgincludedir = $(includedir)/@PACKAGE@
87 pkglibdir = $(libdir)/@PACKAGE@
88 pkglibexecdir = $(libexecdir)/@PACKAGE@
89 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
90 install_sh_DATA = $(install_sh) -c -m 644
91 install_sh_PROGRAM = $(install_sh) -c
92 install_sh_SCRIPT = $(install_sh) -c
93 INSTALL_HEADER = $(INSTALL_DATA)
94 transform = $(program_transform_name)
95 NORMAL_INSTALL = :
96 PRE_INSTALL = :
97 POST_INSTALL = :
98 NORMAL_UNINSTALL = :
99 PRE_UNINSTALL = :
100 POST_UNINSTALL = :
101 build_triplet = @build@
102 host_triplet = @host@
103 libexec_PROGRAMS = ibus-setup-input-pad$(EXEEXT)
104 @HAVE_GTK3_TRUE@am__append_1 = $(GTK3_CFLAGS)
105 @HAVE_GTK3_TRUE@am__append_2 = $(GTK3_LIBS)
106 @HAVE_GTK3_FALSE@am__append_3 = $(GTK2_CFLAGS)
107 @HAVE_GTK3_FALSE@am__append_4 = $(GTK2_LIBS)
108 subdir = setup
109 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
110 $(top_srcdir)/depcomp
111 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
112 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
113 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
114 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
115 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
116 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
117 $(ACLOCAL_M4)
118 mkinstalldirs = $(install_sh) -d
119 CONFIG_HEADER = $(top_builddir)/config.h
120 CONFIG_CLEAN_FILES =
121 CONFIG_CLEAN_VPATH_FILES =
122 LTLIBRARIES = $(noinst_LTLIBRARIES)
123 am__DEPENDENCIES_1 =
124 libiconfig_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
125 $(am__DEPENDENCIES_1)
126 am_libiconfig_la_OBJECTS = libiconfig_la-iconfig-gtk2.lo
127 libiconfig_la_OBJECTS = $(am_libiconfig_la_OBJECTS)
128 AM_V_lt = $(am__v_lt_@AM_V@)
129 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
130 am__v_lt_0 = --silent
131 am__v_lt_1 =
132 libiconfig_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
133 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libiconfig_la_CFLAGS) \
134 $(CFLAGS) $(libiconfig_la_LDFLAGS) $(LDFLAGS) -o $@
135 am__installdirs = "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(desktopdir)" \
136 "$(DESTDIR)$(setupdir)"
137 PROGRAMS = $(libexec_PROGRAMS)
138 am_ibus_setup_input_pad_OBJECTS = ibus_setup_input_pad-main.$(OBJEXT) \
139 ibus_setup_input_pad-setup-gtk2.$(OBJEXT)
140 ibus_setup_input_pad_OBJECTS = $(am_ibus_setup_input_pad_OBJECTS)
141 @HAVE_GTK3_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
142 @HAVE_GTK3_FALSE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1)
143 ibus_setup_input_pad_DEPENDENCIES = $(builddir)/libiconfig.la \
144 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
145 $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_3)
146 ibus_setup_input_pad_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
147 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
148 $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) \
149 $(ibus_setup_input_pad_LDFLAGS) $(LDFLAGS) -o $@
150 AM_V_P = $(am__v_P_@AM_V@)
151 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
152 am__v_P_0 = false
153 am__v_P_1 = :
154 AM_V_GEN = $(am__v_GEN_@AM_V@)
155 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
156 am__v_GEN_0 = @echo " GEN " $@;
157 am__v_GEN_1 =
158 AM_V_at = $(am__v_at_@AM_V@)
159 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
160 am__v_at_0 = @
161 am__v_at_1 =
162 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
163 depcomp = $(SHELL) $(top_srcdir)/depcomp
164 am__depfiles_maybe = depfiles
165 am__mv = mv -f
166 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
167 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
168 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
169 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
170 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
171 $(AM_CFLAGS) $(CFLAGS)
172 AM_V_CC = $(am__v_CC_@AM_V@)
173 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
174 am__v_CC_0 = @echo " CC " $@;
175 am__v_CC_1 =
176 CCLD = $(CC)
177 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
178 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
179 $(AM_LDFLAGS) $(LDFLAGS) -o $@
180 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
181 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
182 am__v_CCLD_0 = @echo " CCLD " $@;
183 am__v_CCLD_1 =
184 SOURCES = $(libiconfig_la_SOURCES) $(ibus_setup_input_pad_SOURCES)
185 DIST_SOURCES = $(libiconfig_la_SOURCES) \
186 $(ibus_setup_input_pad_SOURCES)
187 am__can_run_installinfo = \
188 case $$AM_UPDATE_INFO_DIR in \
189 n|no|NO) false;; \
190 *) (install-info --version) >/dev/null 2>&1;; \
191 esac
192 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
193 am__vpath_adj = case $$p in \
194 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
195 *) f=$$p;; \
196 esac;
197 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
198 am__install_max = 40
199 am__nobase_strip_setup = \
200 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
201 am__nobase_strip = \
202 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
203 am__nobase_list = $(am__nobase_strip_setup); \
204 for p in $$list; do echo "$$p $$p"; done | \
205 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
206 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
207 if (++n[$$2] == $(am__install_max)) \
208 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
209 END { for (dir in files) print dir, files[dir] }'
210 am__base_list = \
211 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
212 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
213 am__uninstall_files_from_dir = { \
214 test -z "$$files" \
215 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
216 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
217 $(am__cd) "$$dir" && rm -f $$files; }; \
218 }
219 DATA = $(desktop_DATA) $(setup_DATA)
220 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
221 # Read a list of newline-separated strings from the standard input,
222 # and print each of them once, without duplicates. Input order is
223 # *not* preserved.
224 am__uniquify_input = $(AWK) '\
225 BEGIN { nonempty = 0; } \
226 { items[$$0] = 1; nonempty = 1; } \
227 END { if (nonempty) { for (i in items) print i; }; } \
228 '
229 # Make sure the list of sources is unique. This is necessary because,
230 # e.g., the same source file might be shared among _SOURCES variables
231 # for different programs/libraries.
232 am__define_uniq_tagged_files = \
233 list='$(am__tagged_files)'; \
234 unique=`for i in $$list; do \
235 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
236 done | $(am__uniquify_input)`
237 ETAGS = etags
238 CTAGS = ctags
239 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
240 ACLOCAL = @ACLOCAL@
241 ALL_LINGUAS = @ALL_LINGUAS@
242 AMTAR = @AMTAR@
243 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
244 AR = @AR@
245 AUTOCONF = @AUTOCONF@
246 AUTOHEADER = @AUTOHEADER@
247 AUTOMAKE = @AUTOMAKE@
248 AWK = @AWK@
249 CATALOGS = @CATALOGS@
250 CATOBJEXT = @CATOBJEXT@
251 CC = @CC@
252 CCDEPMODE = @CCDEPMODE@
253 CFLAGS = @CFLAGS@
254 CPP = @CPP@
255 CPPFLAGS = @CPPFLAGS@
256 CXX = @CXX@
257 CXXCPP = @CXXCPP@
258 CXXDEPMODE = @CXXDEPMODE@
259 CXXFLAGS = @CXXFLAGS@
260 CYGPATH_W = @CYGPATH_W@
261 DATADIRNAME = @DATADIRNAME@
262 DATE_DISPLAY = @DATE_DISPLAY@
263 DEFS = @DEFS@
264 DEPDIR = @DEPDIR@
265 DLLTOOL = @DLLTOOL@
266 DSYMUTIL = @DSYMUTIL@
267 DUMPBIN = @DUMPBIN@
268 ECHO_C = @ECHO_C@
269 ECHO_N = @ECHO_N@
270 ECHO_T = @ECHO_T@
271 EGREP = @EGREP@
272 EXEEXT = @EXEEXT@
273 FGREP = @FGREP@
274 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
275 GLIB2_CFLAGS = @GLIB2_CFLAGS@
276 GLIB2_LIBS = @GLIB2_LIBS@
277 GLIB_CFLAGS = @GLIB_CFLAGS@
278 GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
279 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
280 GLIB_LIBS = @GLIB_LIBS@
281 GLIB_MKENUMS = @GLIB_MKENUMS@
282 GMOFILES = @GMOFILES@
283 GMSGFMT = @GMSGFMT@
284 GOBJECT_QUERY = @GOBJECT_QUERY@
285 GREP = @GREP@
286 GTK2_CFLAGS = @GTK2_CFLAGS@
287 GTK2_LIBS = @GTK2_LIBS@
288 GTK3_CFLAGS = @GTK3_CFLAGS@
289 GTK3_LIBS = @GTK3_LIBS@
290 IBUS_CFLAGS = @IBUS_CFLAGS@
291 IBUS_LIBS = @IBUS_LIBS@
292 INPUT_PAD_CFLAGS = @INPUT_PAD_CFLAGS@
293 INPUT_PAD_LIBS = @INPUT_PAD_LIBS@
294 INSTALL = @INSTALL@
295 INSTALL_DATA = @INSTALL_DATA@
296 INSTALL_PROGRAM = @INSTALL_PROGRAM@
297 INSTALL_SCRIPT = @INSTALL_SCRIPT@
298 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
299 INSTOBJEXT = @INSTOBJEXT@
300 INTLLIBS = @INTLLIBS@
301 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
302 INTLTOOL_MERGE = @INTLTOOL_MERGE@
303 INTLTOOL_PERL = @INTLTOOL_PERL@
304 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
305 INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
306 INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
307 INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
308 INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
309 LD = @LD@
310 LDFLAGS = @LDFLAGS@
311 LIBOBJS = @LIBOBJS@
312 LIBS = @LIBS@
313 LIBTOOL = @LIBTOOL@
314 LIPO = @LIPO@
315 LN_S = @LN_S@
316 LTLIBOBJS = @LTLIBOBJS@
317 MAINT = @MAINT@
318 MAKEINFO = @MAKEINFO@
319 MANIFEST_TOOL = @MANIFEST_TOOL@
320 MKDIR_P = @MKDIR_P@
321 MKINSTALLDIRS = @MKINSTALLDIRS@
322 MSGFMT = @MSGFMT@
323 MSGFMT_OPTS = @MSGFMT_OPTS@
324 MSGMERGE = @MSGMERGE@
325 NM = @NM@
326 NMEDIT = @NMEDIT@
327 OBJDUMP = @OBJDUMP@
328 OBJEXT = @OBJEXT@
329 OTOOL = @OTOOL@
330 OTOOL64 = @OTOOL64@
331 PACKAGE = @PACKAGE@
332 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
333 PACKAGE_NAME = @PACKAGE_NAME@
334 PACKAGE_STRING = @PACKAGE_STRING@
335 PACKAGE_TARNAME = @PACKAGE_TARNAME@
336 PACKAGE_URL = @PACKAGE_URL@
337 PACKAGE_VERSION = @PACKAGE_VERSION@
338 PATH_SEPARATOR = @PATH_SEPARATOR@
339 PKG_CONFIG = @PKG_CONFIG@
340 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
341 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
342 POFILES = @POFILES@
343 POSUB = @POSUB@
344 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
345 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
346 RANLIB = @RANLIB@
347 SED = @SED@
348 SET_MAKE = @SET_MAKE@
349 SHELL = @SHELL@
350 STRIP = @STRIP@
351 USE_NLS = @USE_NLS@
352 VERSION = @VERSION@
353 XGETTEXT = @XGETTEXT@
354 abs_builddir = @abs_builddir@
355 abs_srcdir = @abs_srcdir@
356 abs_top_builddir = @abs_top_builddir@
357 abs_top_srcdir = @abs_top_srcdir@
358 ac_ct_AR = @ac_ct_AR@
359 ac_ct_CC = @ac_ct_CC@
360 ac_ct_CXX = @ac_ct_CXX@
361 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
362 am__include = @am__include@
363 am__leading_dot = @am__leading_dot@
364 am__quote = @am__quote@
365 am__tar = @am__tar@
366 am__untar = @am__untar@
367 bindir = @bindir@
368 build = @build@
369 build_alias = @build_alias@
370 build_cpu = @build_cpu@
371 build_os = @build_os@
372 build_vendor = @build_vendor@
373 builddir = @builddir@
374 datadir = @datadir@
375 datarootdir = @datarootdir@
376 docdir = @docdir@
377 dvidir = @dvidir@
378 exec_prefix = @exec_prefix@
379 host = @host@
380 host_alias = @host_alias@
381 host_cpu = @host_cpu@
382 host_os = @host_os@
383 host_vendor = @host_vendor@
384 htmldir = @htmldir@
385 includedir = @includedir@
386 infodir = @infodir@
387 install_sh = @install_sh@
388 intltool__v_merge_options_ = @intltool__v_merge_options_@
389 intltool__v_merge_options_0 = @intltool__v_merge_options_0@
390 libdir = @libdir@
391 libexecdir = @libexecdir@
392 libinput_pad_VERSION = @libinput_pad_VERSION@
393 localedir = @localedir@
394 localstatedir = @localstatedir@
395 mandir = @mandir@
396 mkdir_p = @mkdir_p@
397 oldincludedir = @oldincludedir@
398 pdfdir = @pdfdir@
399 prefix = @prefix@
400 program_transform_name = @program_transform_name@
401 psdir = @psdir@
402 sbindir = @sbindir@
403 sharedstatedir = @sharedstatedir@
404 srcdir = @srcdir@
405 sysconfdir = @sysconfdir@
406 target_alias = @target_alias@
407 top_build_prefix = @top_build_prefix@
408 top_builddir = @top_builddir@
409 top_srcdir = @top_srcdir@
410 noinst_DIST = \
411 $(NULL)
412
413 setupdir = $(pkgdatadir)/setup
414 setup_DATA = setup-gtk2.ui
415 AM_CPPFLAGS = \
416 -I$(top_srcdir) \
417 -I$(top_srcdir)/engine \
418 -DDATAROOTDIR=\""$(datarootdir)"\" \
419 -DIBUS_INPUT_PAD_SETUP_UI_FILE=\""$(setupdir)/$(setup_DATA)"\" \
420 $(NULL)
421
422 noinst_LTLIBRARIES = \
423 libiconfig.la \
424 $(NULL)
425
426 libiconfig_la_SOURCES = \
427 iconfig-gtk2.c \
428 iconfig-gtk2.h \
429 $(NULL)
430
431 libiconfig_la_CFLAGS = \
432 $(GLIB2_CFLAGS) \
433 $(IBUS_CFLAGS) \
434 $(NULL)
435
436 libiconfig_la_LIBADD = \
437 $(GLIB2_LIBS) \
438 $(IBUS_LIBS) \
439 $(NULL)
440
441 libiconfig_la_LDFLAGS = \
442 -export-dynamic \
443 $(NULL)
444
445 ibus_setup_input_pad_SOURCES = \
446 main.c \
447 setup-gtk2.c \
448 setup-gtk2.h \
449 $(NULL)
450
451 ibus_setup_input_pad_CFLAGS = $(IBUS_CFLAGS) $(INPUT_PAD_CFLAGS) \
452 $(NULL) $(am__append_1) $(am__append_3)
453 ibus_setup_input_pad_LDFLAGS = \
454 $(NULL)
455
456 ibus_setup_input_pad_LDADD = $(builddir)/libiconfig.la $(IBUS_LIBS) \
457 $(INPUT_PAD_LIBS) $(NULL) $(am__append_2) $(am__append_4)
458 desktop_in_in_files = ibus-setup-input-pad.desktop.in.in
459 desktop_in_files = $(desktop_in_in_files:.in.in=.in)
460 desktopdir = $(datadir)/applications
461 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
462 EXTRA_DIST = \
463 $(desktop_in_in_files) \
464 setup-gtk2.ui \
465 $(NULL)
466
467 CLEANFILES = \
468 $(desktop_DATA) \
469 $(desktop_in_files) \
470 $(NULL)
471
472 all: all-am
473
474 .SUFFIXES:
475 .SUFFIXES: .c .lo .o .obj
476 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
477 @for dep in $?; do \
478 case '$(am__configure_deps)' in \
479 *$$dep*) \
480 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
481 && { if test -f $@; then exit 0; else break; fi; }; \
482 exit 1;; \
483 esac; \
484 done; \
485 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu setup/Makefile'; \
486 $(am__cd) $(top_srcdir) && \
487 $(AUTOMAKE) --gnu setup/Makefile
488 .PRECIOUS: Makefile
489 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
490 @case '$?' in \
491 *config.status*) \
492 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
493 *) \
494 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
495 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
496 esac;
497
498 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
499 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
500
501 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
502 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
503 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
504 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
505 $(am__aclocal_m4_deps):
506
507 clean-noinstLTLIBRARIES:
508 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
509 @list='$(noinst_LTLIBRARIES)'; \
510 locs=`for p in $$list; do echo $$p; done | \
511 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
512 sort -u`; \
513 test -z "$$locs" || { \
514 echo rm -f $${locs}; \
515 rm -f $${locs}; \
516 }
517
518 libiconfig.la: $(libiconfig_la_OBJECTS) $(libiconfig_la_DEPENDENCIES) $(EXTRA_libiconfig_la_DEPENDENCIES)
519 $(AM_V_CCLD)$(libiconfig_la_LINK) $(libiconfig_la_OBJECTS) $(libiconfig_la_LIBADD) $(LIBS)
520 install-libexecPROGRAMS: $(libexec_PROGRAMS)
521 @$(NORMAL_INSTALL)
522 @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \
523 if test -n "$$list"; then \
524 echo " $(MKDIR_P) '$(DESTDIR)$(libexecdir)'"; \
525 $(MKDIR_P) "$(DESTDIR)$(libexecdir)" || exit 1; \
526 fi; \
527 for p in $$list; do echo "$$p $$p"; done | \
528 sed 's/$(EXEEXT)$$//' | \
529 while read p p1; do if test -f $$p \
530 || test -f $$p1 \
531 ; then echo "$$p"; echo "$$p"; else :; fi; \
532 done | \
533 sed -e 'p;s,.*/,,;n;h' \
534 -e 's|.*|.|' \
535 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
536 sed 'N;N;N;s,\n, ,g' | \
537 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
538 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
539 if ($$2 == $$4) files[d] = files[d] " " $$1; \
540 else { print "f", $$3 "/" $$4, $$1; } } \
541 END { for (d in files) print "f", d, files[d] }' | \
542 while read type dir files; do \
543 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
544 test -z "$$files" || { \
545 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(libexecdir)$$dir'"; \
546 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(libexecdir)$$dir" || exit $$?; \
547 } \
548 ; done
549
550 uninstall-libexecPROGRAMS:
551 @$(NORMAL_UNINSTALL)
552 @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \
553 files=`for p in $$list; do echo "$$p"; done | \
554 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
555 -e 's/$$/$(EXEEXT)/' \
556 `; \
557 test -n "$$list" || exit 0; \
558 echo " ( cd '$(DESTDIR)$(libexecdir)' && rm -f" $$files ")"; \
559 cd "$(DESTDIR)$(libexecdir)" && rm -f $$files
560
561 clean-libexecPROGRAMS:
562 @list='$(libexec_PROGRAMS)'; test -n "$$list" || exit 0; \
563 echo " rm -f" $$list; \
564 rm -f $$list || exit $$?; \
565 test -n "$(EXEEXT)" || exit 0; \
566 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
567 echo " rm -f" $$list; \
568 rm -f $$list
569
570 ibus-setup-input-pad$(EXEEXT): $(ibus_setup_input_pad_OBJECTS) $(ibus_setup_input_pad_DEPENDENCIES) $(EXTRA_ibus_setup_input_pad_DEPENDENCIES)
571 @rm -f ibus-setup-input-pad$(EXEEXT)
572 $(AM_V_CCLD)$(ibus_setup_input_pad_LINK) $(ibus_setup_input_pad_OBJECTS) $(ibus_setup_input_pad_LDADD) $(LIBS)
573
574 mostlyclean-compile:
575 -rm -f *.$(OBJEXT)
576
577 distclean-compile:
578 -rm -f *.tab.c
579
580 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ibus_setup_input_pad-main.Po@am__quote@
581 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Po@am__quote@
582 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libiconfig_la-iconfig-gtk2.Plo@am__quote@
583
584 .c.o:
585 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
586 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
587 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
588 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
589 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
590
591 .c.obj:
592 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
593 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
594 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
595 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
596 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
597
598 .c.lo:
599 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
600 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
601 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
602 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
603 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
604
605 libiconfig_la-iconfig-gtk2.lo: iconfig-gtk2.c
606 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libiconfig_la_CFLAGS) $(CFLAGS) -MT libiconfig_la-iconfig-gtk2.lo -MD -MP -MF $(DEPDIR)/libiconfig_la-iconfig-gtk2.Tpo -c -o libiconfig_la-iconfig-gtk2.lo `test -f 'iconfig-gtk2.c' || echo '$(srcdir)/'`iconfig-gtk2.c
607 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libiconfig_la-iconfig-gtk2.Tpo $(DEPDIR)/libiconfig_la-iconfig-gtk2.Plo
608 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='iconfig-gtk2.c' object='libiconfig_la-iconfig-gtk2.lo' libtool=yes @AMDEPBACKSLASH@
609 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
610 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libiconfig_la_CFLAGS) $(CFLAGS) -c -o libiconfig_la-iconfig-gtk2.lo `test -f 'iconfig-gtk2.c' || echo '$(srcdir)/'`iconfig-gtk2.c
611
612 ibus_setup_input_pad-main.o: main.c
613 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -MT ibus_setup_input_pad-main.o -MD -MP -MF $(DEPDIR)/ibus_setup_input_pad-main.Tpo -c -o ibus_setup_input_pad-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
614 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_setup_input_pad-main.Tpo $(DEPDIR)/ibus_setup_input_pad-main.Po
615 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='ibus_setup_input_pad-main.o' libtool=no @AMDEPBACKSLASH@
616 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
617 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_setup_input_pad-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
618
619 ibus_setup_input_pad-main.obj: main.c
620 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -MT ibus_setup_input_pad-main.obj -MD -MP -MF $(DEPDIR)/ibus_setup_input_pad-main.Tpo -c -o ibus_setup_input_pad-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
621 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_setup_input_pad-main.Tpo $(DEPDIR)/ibus_setup_input_pad-main.Po
622 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='ibus_setup_input_pad-main.obj' libtool=no @AMDEPBACKSLASH@
623 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
624 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_setup_input_pad-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
625
626 ibus_setup_input_pad-setup-gtk2.o: setup-gtk2.c
627 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -MT ibus_setup_input_pad-setup-gtk2.o -MD -MP -MF $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Tpo -c -o ibus_setup_input_pad-setup-gtk2.o `test -f 'setup-gtk2.c' || echo '$(srcdir)/'`setup-gtk2.c
628 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Tpo $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Po
629 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='setup-gtk2.c' object='ibus_setup_input_pad-setup-gtk2.o' libtool=no @AMDEPBACKSLASH@
630 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
631 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_setup_input_pad-setup-gtk2.o `test -f 'setup-gtk2.c' || echo '$(srcdir)/'`setup-gtk2.c
632
633 ibus_setup_input_pad-setup-gtk2.obj: setup-gtk2.c
634 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -MT ibus_setup_input_pad-setup-gtk2.obj -MD -MP -MF $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Tpo -c -o ibus_setup_input_pad-setup-gtk2.obj `if test -f 'setup-gtk2.c'; then $(CYGPATH_W) 'setup-gtk2.c'; else $(CYGPATH_W) '$(srcdir)/setup-gtk2.c'; fi`
635 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Tpo $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Po
636 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='setup-gtk2.c' object='ibus_setup_input_pad-setup-gtk2.obj' libtool=no @AMDEPBACKSLASH@
637 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
638 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_setup_input_pad-setup-gtk2.obj `if test -f 'setup-gtk2.c'; then $(CYGPATH_W) 'setup-gtk2.c'; else $(CYGPATH_W) '$(srcdir)/setup-gtk2.c'; fi`
639
640 mostlyclean-libtool:
641 -rm -f *.lo
642
643 clean-libtool:
644 -rm -rf .libs _libs
645 install-desktopDATA: $(desktop_DATA)
646 @$(NORMAL_INSTALL)
647 @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \
648 if test -n "$$list"; then \
649 echo " $(MKDIR_P) '$(DESTDIR)$(desktopdir)'"; \
650 $(MKDIR_P) "$(DESTDIR)$(desktopdir)" || exit 1; \
651 fi; \
652 for p in $$list; do \
653 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
654 echo "$$d$$p"; \
655 done | $(am__base_list) | \
656 while read files; do \
657 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(desktopdir)'"; \
658 $(INSTALL_DATA) $$files "$(DESTDIR)$(desktopdir)" || exit $$?; \
659 done
660
661 uninstall-desktopDATA:
662 @$(NORMAL_UNINSTALL)
663 @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \
664 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
665 dir='$(DESTDIR)$(desktopdir)'; $(am__uninstall_files_from_dir)
666 install-setupDATA: $(setup_DATA)
667 @$(NORMAL_INSTALL)
668 @list='$(setup_DATA)'; test -n "$(setupdir)" || list=; \
669 if test -n "$$list"; then \
670 echo " $(MKDIR_P) '$(DESTDIR)$(setupdir)'"; \
671 $(MKDIR_P) "$(DESTDIR)$(setupdir)" || exit 1; \
672 fi; \
673 for p in $$list; do \
674 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
675 echo "$$d$$p"; \
676 done | $(am__base_list) | \
677 while read files; do \
678 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(setupdir)'"; \
679 $(INSTALL_DATA) $$files "$(DESTDIR)$(setupdir)" || exit $$?; \
680 done
681
682 uninstall-setupDATA:
683 @$(NORMAL_UNINSTALL)
684 @list='$(setup_DATA)'; test -n "$(setupdir)" || list=; \
685 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
686 dir='$(DESTDIR)$(setupdir)'; $(am__uninstall_files_from_dir)
687
688 ID: $(am__tagged_files)
689 $(am__define_uniq_tagged_files); mkid -fID $$unique
690 tags: tags-am
691 TAGS: tags
692
693 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
694 set x; \
695 here=`pwd`; \
696 $(am__define_uniq_tagged_files); \
697 shift; \
698 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
699 test -n "$$unique" || unique=$$empty_fix; \
700 if test $$# -gt 0; then \
701 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
702 "$$@" $$unique; \
703 else \
704 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
705 $$unique; \
706 fi; \
707 fi
708 ctags: ctags-am
709
710 CTAGS: ctags
711 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
712 $(am__define_uniq_tagged_files); \
713 test -z "$(CTAGS_ARGS)$$unique" \
714 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
715 $$unique
716
717 GTAGS:
718 here=`$(am__cd) $(top_builddir) && pwd` \
719 && $(am__cd) $(top_srcdir) \
720 && gtags -i $(GTAGS_ARGS) "$$here"
721 cscopelist: cscopelist-am
722
723 cscopelist-am: $(am__tagged_files)
724 list='$(am__tagged_files)'; \
725 case "$(srcdir)" in \
726 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
727 *) sdir=$(subdir)/$(srcdir) ;; \
728 esac; \
729 for i in $$list; do \
730 if test -f "$$i"; then \
731 echo "$(subdir)/$$i"; \
732 else \
733 echo "$$sdir/$$i"; \
734 fi; \
735 done >> $(top_builddir)/cscope.files
736
737 distclean-tags:
738 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
739
740 distdir: $(DISTFILES)
741 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
742 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
743 list='$(DISTFILES)'; \
744 dist_files=`for file in $$list; do echo $$file; done | \
745 sed -e "s|^$$srcdirstrip/||;t" \
746 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
747 case $$dist_files in \
748 */*) $(MKDIR_P) `echo "$$dist_files" | \
749 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
750 sort -u` ;; \
751 esac; \
752 for file in $$dist_files; do \
753 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
754 if test -d $$d/$$file; then \
755 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
756 if test -d "$(distdir)/$$file"; then \
757 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
758 fi; \
759 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
760 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
761 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
762 fi; \
763 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
764 else \
765 test -f "$(distdir)/$$file" \
766 || cp -p $$d/$$file "$(distdir)/$$file" \
767 || exit 1; \
768 fi; \
769 done
770 check-am: all-am
771 check: check-am
772 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA)
773 installdirs:
774 for dir in "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(setupdir)"; do \
775 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
776 done
777 install: install-am
778 install-exec: install-exec-am
779 install-data: install-data-am
780 uninstall: uninstall-am
781
782 install-am: all-am
783 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
784
785 installcheck: installcheck-am
786 install-strip:
787 if test -z '$(STRIP)'; then \
788 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
789 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
790 install; \
791 else \
792 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
793 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
794 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
795 fi
796 mostlyclean-generic:
797
798 clean-generic:
799 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
800
801 distclean-generic:
802 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
803 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
804
805 maintainer-clean-generic:
806 @echo "This command is intended for maintainers to use"
807 @echo "it deletes files that may require special tools to rebuild."
808 clean: clean-am
809
810 clean-am: clean-generic clean-libexecPROGRAMS clean-libtool \
811 clean-noinstLTLIBRARIES mostlyclean-am
812
813 distclean: distclean-am
814 -rm -rf ./$(DEPDIR)
815 -rm -f Makefile
816 distclean-am: clean-am distclean-compile distclean-generic \
817 distclean-tags
818
819 dvi: dvi-am
820
821 dvi-am:
822
823 html: html-am
824
825 html-am:
826
827 info: info-am
828
829 info-am:
830
831 install-data-am: install-desktopDATA install-setupDATA
832
833 install-dvi: install-dvi-am
834
835 install-dvi-am:
836
837 install-exec-am: install-libexecPROGRAMS
838
839 install-html: install-html-am
840
841 install-html-am:
842
843 install-info: install-info-am
844
845 install-info-am:
846
847 install-man:
848
849 install-pdf: install-pdf-am
850
851 install-pdf-am:
852
853 install-ps: install-ps-am
854
855 install-ps-am:
856
857 installcheck-am:
858
859 maintainer-clean: maintainer-clean-am
860 -rm -rf ./$(DEPDIR)
861 -rm -f Makefile
862 maintainer-clean-am: distclean-am maintainer-clean-generic
863
864 mostlyclean: mostlyclean-am
865
866 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
867 mostlyclean-libtool
868
869 pdf: pdf-am
870
871 pdf-am:
872
873 ps: ps-am
874
875 ps-am:
876
877 uninstall-am: uninstall-desktopDATA uninstall-libexecPROGRAMS \
878 uninstall-setupDATA
879
880 .MAKE: install-am install-strip
881
882 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
883 clean-libexecPROGRAMS clean-libtool clean-noinstLTLIBRARIES \
884 cscopelist-am ctags ctags-am distclean distclean-compile \
885 distclean-generic distclean-libtool distclean-tags distdir dvi \
886 dvi-am html html-am info info-am install install-am \
887 install-data install-data-am install-desktopDATA install-dvi \
888 install-dvi-am install-exec install-exec-am install-html \
889 install-html-am install-info install-info-am \
890 install-libexecPROGRAMS install-man install-pdf install-pdf-am \
891 install-ps install-ps-am install-setupDATA install-strip \
892 installcheck installcheck-am installdirs maintainer-clean \
893 maintainer-clean-generic mostlyclean mostlyclean-compile \
894 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
895 tags tags-am uninstall uninstall-am uninstall-desktopDATA \
896 uninstall-libexecPROGRAMS uninstall-setupDATA
897
898
899 $(desktop_in_files): %.desktop.in: %.desktop.in.in Makefile
900 $(AM_V_GEN) sed \
901 -e "s|\@libexecdir\@|$(libexecdir)|" \
902 -e "s|\@datadir\@|$(datadir)|" \
903 $< > $@.tmp && mv $@.tmp $@
904
905 @INTLTOOL_DESKTOP_RULE@
906
907 # Tell versions [3.59,3.63) of GNU make to not export all variables.
908 # Otherwise a system limit (for SysV at least) may be exceeded.
909 .NOEXPORT:
0 <?xml version="1.0" encoding="UTF-8"?>
1 <gresources>
2 <gresource prefix="/com/github/fujiwarat/ibus-input-pad">
3 <file preprocess="xml-stripblanks">setup-gtk.ui</file>
4 </gresource>
5 </gresources>
0 /* vim:set et sts=4: */
1 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifdef HAVE_CONFIG_H
21 #include <config.h>
22 #endif
23
24 #include <ibus.h>
25 #include <glib.h>
26
27 #include "iconfig-gtk.h"
28
29 #define IBUS_INPUT_PAD_CONFIG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), IBUS_TYPE_INPUT_PAD_CONFIG, IBusInputPadConfigPrivate))
30
31 typedef struct _SavedTable SavedTable;
32
33 typedef enum {
34 CONFIG_VALUE_TYPE_NONE = 0,
35 CONFIG_VALUE_TYPE_INT,
36 CONFIG_VALUE_TYPE_STRING,
37 } ConfigValueType;
38
39 struct _SavedTable {
40 gchar *path;
41 ConfigValueType type;
42 union {
43 int i;
44 gchar *str;
45 } value;
46 };
47
48 struct _IBusInputPadConfigPrivate {
49 IBusConfig *config;
50 GHashTable *table;
51 GObject *apply_button;
52 };
53
54 G_DEFINE_TYPE (IBusInputPadConfig, ibus_input_pad_config,
55 G_TYPE_OBJECT)
56
57 static void
58 destroy_saved_table (SavedTable *saved_table)
59 {
60 if (saved_table->type == CONFIG_VALUE_TYPE_STRING) {
61 g_free (saved_table->value.str);
62 saved_table->value.str = NULL;
63 }
64 g_free (saved_table);
65 }
66
67 static void
68 commit_path (gpointer key, gpointer value, gpointer user_data)
69 {
70 IBusInputPadConfig *config;
71 const gchar *path = (const gchar *) key;
72 SavedTable *saved_table = (SavedTable *) value;
73 gchar *p;
74 gchar *section;
75 gchar *name;
76
77 g_return_if_fail (key != NULL && value != NULL);
78 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (user_data));
79
80 config = IBUS_INPUT_PAD_CONFIG (user_data);
81 p = g_strrstr (path, "/");
82 g_return_if_fail (p != NULL && p > path);
83 section = g_strndup (path, p - path);
84 name = g_strdup (p + 1);
85 if (saved_table->type == CONFIG_VALUE_TYPE_STRING) {
86 ibus_input_pad_config_commit_str (config,
87 section,
88 name,
89 saved_table->value.str);
90 } else {
91 ibus_input_pad_config_commit_int (config,
92 section,
93 name,
94 saved_table->value.i);
95 }
96 }
97
98 static GObject *
99 ibus_input_pad_config_get_apply_button_real (IBusInputPadConfig *config)
100 {
101 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), NULL);
102 g_return_val_if_fail (config->priv != NULL, NULL);
103
104 return config->priv->apply_button;
105 }
106
107 static void
108 ibus_input_pad_config_set_apply_button_real (IBusInputPadConfig *config,
109 GObject *button)
110 {
111 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config));
112 g_return_if_fail (config->priv != NULL);
113
114 config->priv->apply_button = button;
115 }
116
117 static void
118 ibus_input_pad_config_init (IBusInputPadConfig *config)
119 {
120 IBusInputPadConfigPrivate *priv = IBUS_INPUT_PAD_CONFIG_GET_PRIVATE (config);
121 priv->table = g_hash_table_new_full (g_str_hash,
122 g_str_equal,
123 (GDestroyNotify) g_free,
124 (GDestroyNotify) destroy_saved_table);
125 config->priv = priv;
126 }
127
128 static void
129 ibus_input_pad_config_class_init (IBusInputPadConfigClass *klass)
130 {
131 #if 0
132 GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
133 #endif
134
135 g_type_class_add_private (klass, sizeof (IBusInputPadConfigPrivate));
136
137 klass->get_apply_button = ibus_input_pad_config_get_apply_button_real;
138 klass->set_apply_button = ibus_input_pad_config_set_apply_button_real;
139 }
140
141 /* currently this is a static function due to ibus_bus_get_config */
142 static IBusInputPadConfig *
143 ibus_input_pad_config_new (GDBusConnection *connection)
144 {
145 GObject *obj;
146
147 obj = g_object_new (IBUS_TYPE_INPUT_PAD_CONFIG,
148 NULL);
149
150 return IBUS_INPUT_PAD_CONFIG (obj);
151 }
152
153 IBusInputPadConfig *
154 ibus_bus_get_input_pad_config (IBusBus *bus)
155 {
156 IBusConfig *ibus_config;
157 IBusInputPadConfig *config;
158
159 ibus_config = ibus_bus_get_config (bus);
160 if (ibus_config == NULL) {
161 g_warning ("IBus connection failed. Maybe no ibus-daemon.");
162 return NULL;
163 }
164 /* No idea to set parent from ibus_bus_get_config () */
165 config = ibus_input_pad_config_new (NULL);
166 g_return_val_if_fail (config->priv != NULL, NULL);
167 config->priv->config = ibus_config;
168
169 return config;
170 }
171
172 gboolean
173 ibus_input_pad_config_get_int (IBusInputPadConfig *config,
174 const gchar *section,
175 const gchar *name,
176 int *value_intp)
177 {
178 IBusConfig *ibus_config;
179 GVariant *value = NULL;
180
181 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
182 g_return_val_if_fail (config->priv != NULL, FALSE);
183
184 ibus_config = config->priv->config;
185 if ((value = ibus_config_get_value (ibus_config, section, name)) != NULL) {
186 if (value_intp) {
187 *value_intp = g_variant_get_int32 (value);
188 }
189 g_variant_unref (value);
190 return TRUE;
191 }
192 if (!g_strcmp0 (name, "char_table_combo_box")) {
193 if (value_intp) {
194 *value_intp = CHAR_TABLE_COMBO_BOX_DEFAULT;
195 }
196 return TRUE;
197 } else if (!g_strcmp0 (name, "layout_table_combo_box")) {
198 if (value_intp) {
199 *value_intp = LAYOUT_TABLE_COMBO_BOX_DEFAULT;
200 }
201 return TRUE;
202 }
203 return FALSE;
204 }
205
206 gboolean
207 ibus_input_pad_config_get_str (IBusInputPadConfig *config,
208 const gchar *section,
209 const gchar *name,
210 gchar **value_strp)
211 {
212 IBusConfig *ibus_config;
213 GVariant *value = NULL;
214
215 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
216 g_return_val_if_fail (config->priv != NULL, FALSE);
217
218 ibus_config = config->priv->config;
219 if ((value = ibus_config_get_value (ibus_config, section, name)) != NULL) {
220 if (value_strp) {
221 *value_strp = g_variant_dup_string (value, NULL);
222 }
223 g_variant_unref (value);
224 return TRUE;
225 }
226 if (!g_strcmp0 (name, "keyboard_theme")) {
227 if (value_strp) {
228 *value_strp = g_strdup (KEYBOARD_THEME_DEFAULT);
229 }
230 return TRUE;
231 }
232 return FALSE;
233 }
234
235 #if 0
236 gboolean
237 ibus_input_pad_config_get_value (IBusConfig *config,
238 const gchar *section,
239 const gchar *name,
240 GVariant *value)
241 {
242 if ((value = ibus_config_get_value (config, section, name)) != NULL) {
243 return TRUE;
244 }
245 if (!g_strcmp0 (name, "keyboard_theme")) {
246 value = g_variant_new ("s", KEYBOARD_THEME_DEFAULT);
247 return TRUE;
248 } else if (!g_strcmp0 (name, "char_table_combo_box")) {
249 value = g_variant_new ("i", CHAR_TABLE_COMBO_BOX_DEFAULT);
250 return TRUE;
251 } else if (!g_strcmp0 (name, "layout_table_combo_box")) {
252 value = g_variant_new ("i", LAYOUT_TABLE_COMBO_BOX_DEFAULT);
253 return TRUE;
254 }
255 return FALSE;
256 }
257 #endif
258
259 gboolean
260 ibus_input_pad_config_set_int (IBusInputPadConfig *config,
261 const gchar *section,
262 const gchar *name,
263 int value_int)
264 {
265 IBusConfig *ibus_config;
266 GVariant *value = NULL;
267 int orig_i = 0;
268 gchar *path;
269 SavedTable *saved_table;
270
271 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
272 g_return_val_if_fail (config->priv != NULL, FALSE);
273 g_return_val_if_fail (section != NULL && name != NULL, FALSE);
274
275 ibus_config = config->priv->config;
276 if ((value = ibus_config_get_value (ibus_config, section, name)) != NULL) {
277 orig_i = g_variant_get_int32 (value);
278 g_variant_unref (value);
279 if (value_int == orig_i) {
280 return FALSE;
281 }
282 } else if (!g_strcmp0 (name, "char_table_combo_box")) {
283 if (value_int == CHAR_TABLE_COMBO_BOX_DEFAULT) {
284 return FALSE;
285 }
286 } else if (!g_strcmp0 (name, "layout_table_combo_box")) {
287 if (value_int == LAYOUT_TABLE_COMBO_BOX_DEFAULT) {
288 return FALSE;
289 }
290 }
291
292 path = g_build_path ("/", section, name, NULL);
293 saved_table = g_new0 (SavedTable, 1);
294 saved_table->path = g_strdup (path);
295 saved_table->type = CONFIG_VALUE_TYPE_INT;
296 saved_table->value.i = value_int;
297 if (g_hash_table_lookup (config->priv->table, path)) {
298 g_hash_table_replace (config->priv->table,
299 (gpointer) g_strdup (path),
300 (gpointer) saved_table);
301 } else {
302 g_hash_table_insert (config->priv->table,
303 (gpointer) g_strdup (path),
304 (gpointer) saved_table);
305 }
306 g_free (path);
307
308 return TRUE;
309 }
310
311 gboolean
312 ibus_input_pad_config_set_str (IBusInputPadConfig *config,
313 const gchar *section,
314 const gchar *name,
315 const gchar *value_str)
316 {
317 IBusConfig *ibus_config;
318 GVariant *value = NULL;
319 const gchar *orig_str = NULL;
320 gchar *path;
321 SavedTable *saved_table;
322
323 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
324 g_return_val_if_fail (config->priv != NULL, FALSE);
325 g_return_val_if_fail (section != NULL && name != NULL, FALSE);
326
327 ibus_config = config->priv->config;
328 if ((value = ibus_config_get_value (ibus_config, section, name)) != NULL) {
329 orig_str = g_variant_get_string (value, NULL);
330 if (!g_strcmp0 (value_str, orig_str)) {
331 g_variant_unref (value);
332 return FALSE;
333 }
334 g_variant_unref (value);
335 } else if (!g_strcmp0 (name, "keyboard_theme")) {
336 if (value_str == NULL ||
337 !g_strcmp0 (value_str, KEYBOARD_THEME_DEFAULT)) {
338 return FALSE;
339 }
340 }
341
342 path = g_build_path ("/", section, name, NULL);
343 saved_table = g_new0 (SavedTable, 1);
344 saved_table->path = g_strdup (path);
345 saved_table->type = CONFIG_VALUE_TYPE_STRING;
346 if (value_str) {
347 saved_table->value.str = g_strdup (value_str);
348 }
349 if (g_hash_table_lookup (config->priv->table, path)) {
350 g_hash_table_replace (config->priv->table,
351 (gpointer) g_strdup (path),
352 (gpointer) saved_table);
353 } else {
354 g_hash_table_insert (config->priv->table,
355 (gpointer) g_strdup (path),
356 (gpointer) saved_table);
357 }
358 g_free (path);
359
360 return TRUE;
361 }
362
363 gboolean
364 ibus_input_pad_config_commit_int (IBusInputPadConfig *config,
365 const gchar *section,
366 const gchar *name,
367 int value_int)
368 {
369 IBusConfig *ibus_config;
370 GVariant *value = NULL;
371
372 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
373 g_return_val_if_fail (config->priv != NULL, FALSE);
374 g_return_val_if_fail (section != NULL && name != NULL, FALSE);
375
376 ibus_config = config->priv->config;
377 value = g_variant_new ("i", value_int);
378 if (!ibus_config_set_value (ibus_config, section, name, value)) {
379 return FALSE;
380 }
381 return TRUE;
382 }
383
384 gboolean
385 ibus_input_pad_config_commit_str (IBusInputPadConfig *config,
386 const gchar *section,
387 const gchar *name,
388 const gchar *value_str)
389 {
390 IBusConfig *ibus_config;
391 GVariant *value = NULL;
392
393 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
394 g_return_val_if_fail (config->priv != NULL, FALSE);
395 g_return_val_if_fail (section != NULL && name != NULL, FALSE);
396
397 ibus_config = config->priv->config;
398 value = g_variant_new ("s", value_str);
399 if (!ibus_config_set_value (ibus_config, section, name, value)) {
400 return FALSE;
401 }
402 return TRUE;
403 }
404
405 gboolean
406 ibus_input_pad_config_commit_all (IBusInputPadConfig *config)
407 {
408 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
409 g_return_val_if_fail (config->priv != NULL, FALSE);
410
411 g_hash_table_foreach (config->priv->table, commit_path, config);
412 g_hash_table_remove_all (config->priv->table);
413 return TRUE;
414 }
415
416 int
417 ibus_input_pad_config_get_changed_size (IBusInputPadConfig *config)
418 {
419 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), 0);
420 g_return_val_if_fail (config->priv != NULL, 0);
421
422 return g_hash_table_size (config->priv->table);
423 }
0 /* vim:set et sts=4: */
1 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifndef __IBUS_INPUT_PAD_ICONFIG_H__
21 #define __IBUS_INPUT_PAD_ICONFIG_H__
22
23 #include <ibus.h>
24 #include <glib.h>
25
26 G_BEGIN_DECLS
27
28 #define IBUS_TYPE_INPUT_PAD_CONFIG (ibus_input_pad_config_get_type ())
29 #define IBUS_INPUT_PAD_CONFIG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), IBUS_TYPE_INPUT_PAD_CONFIG, IBusInputPadConfig))
30 #define IBUS_INPUT_PAD_CONFIG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), IBUS_TYPE_INPUT_PAD_CONFIG, IBusInputPadConfigClass))
31 #define IBUS_IS_INPUT_PAD_CONFIG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), IBUS_TYPE_INPUT_PAD_CONFIG))
32 #define IBUS_IS_INPUT_PAD_CONFIG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), IBUS_TYPE_INPUT_PAD_CONFIG))
33 #define IBUS_INPUT_PAD_CONFIG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), IBUS_TYPE_INPUT_PAD_CONFIG, IBusInputPadConfigClass))
34
35 #define CHAR_TABLE_COMBO_BOX_DEFAULT 1
36 #define LAYOUT_TABLE_COMBO_BOX_DEFAULT 0
37 #define KEYBOARD_THEME_DEFAULT "default"
38
39 typedef struct _IBusInputPadConfig IBusInputPadConfig;
40 typedef struct _IBusInputPadConfigPrivate IBusInputPadConfigPrivate;
41 typedef struct _IBusInputPadConfigClass IBusInputPadConfigClass;
42
43 struct _IBusInputPadConfig {
44 GObject parent;
45 IBusInputPadConfigPrivate *priv;
46 };
47
48 struct _IBusInputPadConfigClass {
49 GObjectClass parent_class;
50
51 GObject * (* get_apply_button)
52 (IBusInputPadConfig *config);
53
54 void (* set_apply_button)
55 (IBusInputPadConfig *config,
56 GObject *button);
57
58 /* Padding for future expansion */
59 void (*_iconfig_reserved1) (void);
60 void (*_iconfig_reserved2) (void);
61 void (*_iconfig_reserved3) (void);
62 void (*_iconfig_reserved4) (void);
63 };
64
65 IBusInputPadConfig * ibus_bus_get_input_pad_config (IBusBus *bus);
66 GType ibus_input_pad_config_get_type (void);
67 gboolean ibus_input_pad_config_get_int
68 (IBusInputPadConfig *config,
69 const gchar *section,
70 const gchar *name,
71 int *value_intp);
72 gboolean ibus_input_pad_config_get_str
73 (IBusInputPadConfig *config,
74 const gchar *section,
75 const gchar *name,
76 gchar **value_strp);
77 gboolean ibus_input_pad_config_set_int
78 (IBusInputPadConfig *config,
79 const gchar *section,
80 const gchar *name,
81 int value_int);
82 gboolean ibus_input_pad_config_set_str
83 (IBusInputPadConfig *config,
84 const gchar *section,
85 const gchar *name,
86 const gchar *value_str);
87 gboolean ibus_input_pad_config_commit_int
88 (IBusInputPadConfig *config,
89 const gchar *section,
90 const gchar *name,
91 int value_int);
92 gboolean ibus_input_pad_config_commit_str
93 (IBusInputPadConfig *config,
94 const gchar *section,
95 const gchar *name,
96 const gchar *value_str);
97 gboolean ibus_input_pad_config_commit_all
98 (IBusInputPadConfig *config);
99 int ibus_input_pad_config_get_changed_size
100 (IBusInputPadConfig *config);
101
102 G_END_DECLS
103 #endif
+0
-426
setup/iconfig-gtk2.c less more
0 /* vim:set et sts=4: */
1 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifdef HAVE_CONFIG_H
21 #include <config.h>
22 #endif
23
24 #include <ibus.h>
25 #include <glib.h>
26
27 #include "iconfig-gtk2.h"
28
29 #define IBUS_INPUT_PAD_CONFIG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), IBUS_TYPE_INPUT_PAD_CONFIG, IBusInputPadConfigPrivate))
30
31 typedef struct _SavedTable SavedTable;
32
33 typedef enum {
34 CONFIG_VALUE_TYPE_NONE = 0,
35 CONFIG_VALUE_TYPE_INT,
36 CONFIG_VALUE_TYPE_STRING,
37 } ConfigValueType;
38
39 struct _SavedTable {
40 gchar *path;
41 ConfigValueType type;
42 union {
43 int i;
44 gchar *str;
45 } value;
46 };
47
48 struct _IBusInputPadConfigPrivate {
49 IBusConfig *config;
50 GHashTable *table;
51 GObject *apply_button;
52 };
53
54 G_DEFINE_TYPE (IBusInputPadConfig, ibus_input_pad_config,
55 G_TYPE_OBJECT)
56
57 static void
58 destroy_saved_table (SavedTable *saved_table)
59 {
60 if (saved_table->type == CONFIG_VALUE_TYPE_STRING) {
61 g_free (saved_table->value.str);
62 saved_table->value.str = NULL;
63 }
64 g_free (saved_table);
65 }
66
67 static void
68 commit_path (gpointer key, gpointer value, gpointer user_data)
69 {
70 IBusInputPadConfig *config;
71 const gchar *path = (const gchar *) key;
72 SavedTable *saved_table = (SavedTable *) value;
73 gchar *p;
74 gchar *section;
75 gchar *name;
76
77 g_return_if_fail (key != NULL && value != NULL);
78 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (user_data));
79
80 config = IBUS_INPUT_PAD_CONFIG (user_data);
81 p = g_strrstr (path, "/");
82 g_return_if_fail (p != NULL && p > path);
83 section = g_strndup (path, p - path);
84 name = g_strdup (p + 1);
85 if (saved_table->type == CONFIG_VALUE_TYPE_STRING) {
86 ibus_input_pad_config_commit_str (config,
87 section,
88 name,
89 saved_table->value.str);
90 } else {
91 ibus_input_pad_config_commit_int (config,
92 section,
93 name,
94 saved_table->value.i);
95 }
96 }
97
98 static GObject *
99 ibus_input_pad_config_get_apply_button_real (IBusInputPadConfig *config)
100 {
101 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), NULL);
102 g_return_val_if_fail (config->priv != NULL, NULL);
103
104 return config->priv->apply_button;
105 }
106
107 static void
108 ibus_input_pad_config_set_apply_button_real (IBusInputPadConfig *config,
109 GObject *button)
110 {
111 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config));
112 g_return_if_fail (config->priv != NULL);
113
114 config->priv->apply_button = button;
115 }
116
117 static void
118 ibus_input_pad_config_init (IBusInputPadConfig *config)
119 {
120 IBusInputPadConfigPrivate *priv = IBUS_INPUT_PAD_CONFIG_GET_PRIVATE (config);
121 priv->table = g_hash_table_new_full (g_str_hash,
122 g_str_equal,
123 (GDestroyNotify) g_free,
124 (GDestroyNotify) destroy_saved_table);
125 config->priv = priv;
126 }
127
128 static void
129 ibus_input_pad_config_class_init (IBusInputPadConfigClass *klass)
130 {
131 #if 0
132 GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
133 #endif
134
135 g_type_class_add_private (klass, sizeof (IBusInputPadConfigPrivate));
136
137 klass->get_apply_button = ibus_input_pad_config_get_apply_button_real;
138 klass->set_apply_button = ibus_input_pad_config_set_apply_button_real;
139 }
140
141 /* currently this is a static function due to ibus_bus_get_config */
142 static IBusInputPadConfig *
143 ibus_input_pad_config_new (GDBusConnection *connection)
144 {
145 GObject *obj;
146
147 obj = g_object_new (IBUS_TYPE_INPUT_PAD_CONFIG,
148 NULL);
149
150 return IBUS_INPUT_PAD_CONFIG (obj);
151 }
152
153 IBusInputPadConfig *
154 ibus_bus_get_input_pad_config (IBusBus *bus)
155 {
156 IBusConfig *ibus_config;
157 IBusInputPadConfig *config;
158
159 ibus_config = ibus_bus_get_config (bus);
160 if (ibus_config == NULL) {
161 g_warning ("IBus connection failed. Maybe no ibus-daemon.");
162 return NULL;
163 }
164 /* No idea to set parent from ibus_bus_get_config () */
165 config = ibus_input_pad_config_new (NULL);
166 g_return_val_if_fail (config->priv != NULL, NULL);
167 config->priv->config = ibus_config;
168
169 return config;
170 }
171
172 gboolean
173 ibus_input_pad_config_get_int (IBusInputPadConfig *config,
174 const gchar *section,
175 const gchar *name,
176 int *value_intp)
177 {
178 IBusConfig *ibus_config;
179 GVariant *value = NULL;
180
181 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
182 g_return_val_if_fail (config->priv != NULL, FALSE);
183
184 ibus_config = config->priv->config;
185 if ((value = ibus_config_get_value (ibus_config, section, name)) != NULL) {
186 if (value_intp) {
187 *value_intp = g_variant_get_int32 (value);
188 }
189 g_variant_unref (value);
190 return TRUE;
191 }
192 if (!g_strcmp0 (name, "char_table_combo_box")) {
193 if (value_intp) {
194 *value_intp = CHAR_TABLE_COMBO_BOX_DEFAULT;
195 }
196 return TRUE;
197 } else if (!g_strcmp0 (name, "layout_table_combo_box")) {
198 if (value_intp) {
199 *value_intp = LAYOUT_TABLE_COMBO_BOX_DEFAULT;
200 }
201 return TRUE;
202 }
203 return FALSE;
204 }
205
206 gboolean
207 ibus_input_pad_config_get_str (IBusInputPadConfig *config,
208 const gchar *section,
209 const gchar *name,
210 gchar **value_strp)
211 {
212 IBusConfig *ibus_config;
213 GVariant *value = NULL;
214
215 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
216 g_return_val_if_fail (config->priv != NULL, FALSE);
217
218 ibus_config = config->priv->config;
219 if ((value = ibus_config_get_value (ibus_config, section, name)) != NULL) {
220 if (value_strp) {
221 *value_strp = g_variant_dup_string (value, NULL);
222 }
223 g_variant_unref (value);
224 return TRUE;
225 }
226 if (!g_strcmp0 (name, "keyboard_theme")) {
227 if (value_strp) {
228 *value_strp = g_strdup (KEYBOARD_THEME_DEFAULT);
229 }
230 return TRUE;
231 }
232 return FALSE;
233 }
234
235 #if 0
236 gboolean
237 ibus_input_pad_config_get_value (IBusConfig *config,
238 const gchar *section,
239 const gchar *name,
240 GVariant *value)
241 {
242 if ((value = ibus_config_get_value (config, section, name)) != NULL) {
243 return TRUE;
244 }
245 if (!g_strcmp0 (name, "keyboard_theme")) {
246 value = g_variant_new ("s", KEYBOARD_THEME_DEFAULT);
247 return TRUE;
248 } else if (!g_strcmp0 (name, "char_table_combo_box")) {
249 value = g_variant_new ("i", CHAR_TABLE_COMBO_BOX_DEFAULT);
250 return TRUE;
251 } else if (!g_strcmp0 (name, "layout_table_combo_box")) {
252 value = g_variant_new ("i", LAYOUT_TABLE_COMBO_BOX_DEFAULT);
253 return TRUE;
254 }
255 return FALSE;
256 }
257 #endif
258
259 gboolean
260 ibus_input_pad_config_set_int (IBusInputPadConfig *config,
261 const gchar *section,
262 const gchar *name,
263 int value_int)
264 {
265 IBusConfig *ibus_config;
266 GVariant *value = NULL;
267 int orig_i = 0;
268 gchar *path;
269 SavedTable *saved_table;
270
271 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
272 g_return_val_if_fail (config->priv != NULL, FALSE);
273 g_return_val_if_fail (section != NULL && name != NULL, FALSE);
274
275 ibus_config = config->priv->config;
276 if ((value = ibus_config_get_value (ibus_config, section, name)) != NULL) {
277 orig_i = g_variant_get_int32 (value);
278 g_variant_unref (value);
279 if (value_int == orig_i) {
280 return FALSE;
281 }
282 } else if (!g_strcmp0 (name, "char_table_combo_box")) {
283 if (value_int == CHAR_TABLE_COMBO_BOX_DEFAULT) {
284 return FALSE;
285 }
286 } else if (!g_strcmp0 (name, "layout_table_combo_box")) {
287 if (value_int == LAYOUT_TABLE_COMBO_BOX_DEFAULT) {
288 return FALSE;
289 }
290 }
291
292 path = g_build_path ("/", section, name, NULL);
293 saved_table = g_new0 (SavedTable, 1);
294 saved_table->path = g_strdup (path);
295 saved_table->type = CONFIG_VALUE_TYPE_INT;
296 saved_table->value.i = value_int;
297 if (g_hash_table_lookup (config->priv->table, path)) {
298 g_hash_table_replace (config->priv->table,
299 (gpointer) g_strdup (path),
300 (gpointer) saved_table);
301 } else {
302 g_hash_table_insert (config->priv->table,
303 (gpointer) g_strdup (path),
304 (gpointer) saved_table);
305 }
306 g_free (path);
307
308 return TRUE;
309 }
310
311 gboolean
312 ibus_input_pad_config_set_str (IBusInputPadConfig *config,
313 const gchar *section,
314 const gchar *name,
315 const gchar *value_str)
316 {
317 IBusConfig *ibus_config;
318 GVariant *value = NULL;
319 const gchar *orig_str = NULL;
320 gchar *path;
321 SavedTable *saved_table;
322
323 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
324 g_return_val_if_fail (config->priv != NULL, FALSE);
325 g_return_val_if_fail (section != NULL && name != NULL, FALSE);
326
327 ibus_config = config->priv->config;
328 if ((value = ibus_config_get_value (ibus_config, section, name)) != NULL) {
329 orig_str = g_variant_get_string (value, NULL);
330 if (!g_strcmp0 (value_str, orig_str)) {
331 g_variant_unref (value);
332 return FALSE;
333 }
334 g_variant_unref (value);
335 } else if (!g_strcmp0 (name, "keyboard_theme")) {
336 if (value_str == NULL ||
337 !g_strcmp0 (value_str, KEYBOARD_THEME_DEFAULT)) {
338 return FALSE;
339 }
340 }
341
342 path = g_build_path ("/", section, name, NULL);
343 saved_table = g_new0 (SavedTable, 1);
344 saved_table->path = g_strdup (path);
345 saved_table->type = CONFIG_VALUE_TYPE_STRING;
346 if (value_str) {
347 saved_table->value.str = g_strdup (value_str);
348 }
349 if (g_hash_table_lookup (config->priv->table, path)) {
350 g_hash_table_replace (config->priv->table,
351 (gpointer) g_strdup (path),
352 (gpointer) saved_table);
353 } else {
354 g_hash_table_insert (config->priv->table,
355 (gpointer) g_strdup (path),
356 (gpointer) saved_table);
357 }
358 g_free (path);
359
360 return TRUE;
361 }
362
363 gboolean
364 ibus_input_pad_config_commit_int (IBusInputPadConfig *config,
365 const gchar *section,
366 const gchar *name,
367 int value_int)
368 {
369 IBusConfig *ibus_config;
370 GVariant *value = NULL;
371
372 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
373 g_return_val_if_fail (config->priv != NULL, FALSE);
374 g_return_val_if_fail (section != NULL && name != NULL, FALSE);
375
376 ibus_config = config->priv->config;
377 value = g_variant_new ("i", value_int);
378 if (!ibus_config_set_value (ibus_config, section, name, value)) {
379 return FALSE;
380 }
381 g_variant_unref (value);
382 return TRUE;
383 }
384
385 gboolean
386 ibus_input_pad_config_commit_str (IBusInputPadConfig *config,
387 const gchar *section,
388 const gchar *name,
389 const gchar *value_str)
390 {
391 IBusConfig *ibus_config;
392 GVariant *value = NULL;
393
394 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
395 g_return_val_if_fail (config->priv != NULL, FALSE);
396 g_return_val_if_fail (section != NULL && name != NULL, FALSE);
397
398 ibus_config = config->priv->config;
399 value = g_variant_new ("s", value_str);
400 if (!ibus_config_set_value (ibus_config, section, name, value)) {
401 return FALSE;
402 }
403 g_variant_unref (value);
404 return TRUE;
405 }
406
407 gboolean
408 ibus_input_pad_config_commit_all (IBusInputPadConfig *config)
409 {
410 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE);
411 g_return_val_if_fail (config->priv != NULL, FALSE);
412
413 g_hash_table_foreach (config->priv->table, commit_path, config);
414 g_hash_table_remove_all (config->priv->table);
415 return TRUE;
416 }
417
418 int
419 ibus_input_pad_config_get_changed_size (IBusInputPadConfig *config)
420 {
421 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), 0);
422 g_return_val_if_fail (config->priv != NULL, 0);
423
424 return g_hash_table_size (config->priv->table);
425 }
+0
-104
setup/iconfig-gtk2.h less more
0 /* vim:set et sts=4: */
1 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifndef __IBUS_INPUT_PAD_ICONFIG_H__
21 #define __IBUS_INPUT_PAD_ICONFIG_H__
22
23 #include <ibus.h>
24 #include <glib.h>
25
26 G_BEGIN_DECLS
27
28 #define IBUS_TYPE_INPUT_PAD_CONFIG (ibus_input_pad_config_get_type ())
29 #define IBUS_INPUT_PAD_CONFIG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), IBUS_TYPE_INPUT_PAD_CONFIG, IBusInputPadConfig))
30 #define IBUS_INPUT_PAD_CONFIG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), IBUS_TYPE_INPUT_PAD_CONFIG, IBusInputPadConfigClass))
31 #define IBUS_IS_INPUT_PAD_CONFIG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), IBUS_TYPE_INPUT_PAD_CONFIG))
32 #define IBUS_IS_INPUT_PAD_CONFIG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), IBUS_TYPE_INPUT_PAD_CONFIG))
33 #define IBUS_INPUT_PAD_CONFIG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), IBUS_TYPE_INPUT_PAD_CONFIG, IBusInputPadConfigClass))
34
35 #define CHAR_TABLE_COMBO_BOX_DEFAULT 1
36 #define LAYOUT_TABLE_COMBO_BOX_DEFAULT 1
37 #define KEYBOARD_THEME_DEFAULT "default"
38
39 typedef struct _IBusInputPadConfig IBusInputPadConfig;
40 typedef struct _IBusInputPadConfigPrivate IBusInputPadConfigPrivate;
41 typedef struct _IBusInputPadConfigClass IBusInputPadConfigClass;
42
43 struct _IBusInputPadConfig {
44 GObject parent;
45 IBusInputPadConfigPrivate *priv;
46 };
47
48 struct _IBusInputPadConfigClass {
49 GObjectClass parent_class;
50
51 GObject * (* get_apply_button)
52 (IBusInputPadConfig *config);
53
54 void (* set_apply_button)
55 (IBusInputPadConfig *config,
56 GObject *button);
57
58 /* Padding for future expansion */
59 void (*_iconfig_reserved1) (void);
60 void (*_iconfig_reserved2) (void);
61 void (*_iconfig_reserved3) (void);
62 void (*_iconfig_reserved4) (void);
63 };
64
65 IBusInputPadConfig * ibus_bus_get_input_pad_config (IBusBus *bus);
66 GType ibus_input_pad_config_get_type (void);
67 gboolean ibus_input_pad_config_get_int
68 (IBusInputPadConfig *config,
69 const gchar *section,
70 const gchar *name,
71 int *value_intp);
72 gboolean ibus_input_pad_config_get_str
73 (IBusInputPadConfig *config,
74 const gchar *section,
75 const gchar *name,
76 gchar **value_strp);
77 gboolean ibus_input_pad_config_set_int
78 (IBusInputPadConfig *config,
79 const gchar *section,
80 const gchar *name,
81 int value_int);
82 gboolean ibus_input_pad_config_set_str
83 (IBusInputPadConfig *config,
84 const gchar *section,
85 const gchar *name,
86 const gchar *value_str);
87 gboolean ibus_input_pad_config_commit_int
88 (IBusInputPadConfig *config,
89 const gchar *section,
90 const gchar *name,
91 int value_int);
92 gboolean ibus_input_pad_config_commit_str
93 (IBusInputPadConfig *config,
94 const gchar *section,
95 const gchar *name,
96 const gchar *value_str);
97 gboolean ibus_input_pad_config_commit_all
98 (IBusInputPadConfig *config);
99 int ibus_input_pad_config_get_changed_size
100 (IBusInputPadConfig *config);
101
102 G_END_DECLS
103 #endif
2828 #include <libintl.h>
2929 #endif
3030
31 #include "iconfig-gtk2.h"
32 #include "setup-gtk2.h"
31 #include "iconfig-gtk.h"
32 #include "setup-gtk.h"
3333
3434 static IBusInputPadConfig *
3535 get_config (void)
5656 textdomain (GETTEXT_PACKAGE);
5757 #endif
5858
59 ibus_input_pad_setup_gtk2_init (&argc, &argv);
59 ibus_input_pad_setup_gtk_init (&argc, &argv);
6060
6161 config = get_config ();
6262 g_assert (config != NULL);
63 dialog = ibus_input_pad_setup_gtk2_dialog_new (config);
64 ibus_input_pad_setup_gtk2_dialog_run (dialog);
65 ibus_input_pad_setup_gtk2_dialog_destroy (dialog);
63 dialog = ibus_input_pad_setup_gtk_dialog_new (config);
64 ibus_input_pad_setup_gtk_dialog_run (dialog);
65 ibus_input_pad_setup_gtk_dialog_destroy (dialog);
6666
6767 return 0;
6868 }
0 /* vim:set et sts=4: */
1 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010-2014 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2014 Red Hat, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifdef HAVE_CONFIG_H
21 #include <config.h>
22 #endif
23
24 #include <gtk/gtk.h>
25 #include <input-pad.h>
26 #include <string.h> /* strlen */
27
28 #include "i18n.h"
29 #include "iconfig-gtk.h"
30 #include "setup-gtk.h"
31
32 #define ENGINE_INPUT_PAD_SECTION "engine/input-pad"
33
34 typedef struct _ButtonClickData ButtonClickData;
35
36 enum {
37 THEME_ID_COL = 0,
38 THEME_NAME_COL,
39 THEME_DESC_COL,
40 THEME_VISIBLE_COL,
41 THEME_N_COLS
42 };
43
44 struct _ButtonClickData {
45 IBusInputPadConfig *config;
46 GtkWidget *msg_dialog;
47 };
48
49 static gboolean do_cancel_dialog (GtkWidget *dialog, ButtonClickData *button_data);
50 static void disable_apply_button (IBusInputPadConfig *config);
51 static void enable_apply_button (IBusInputPadConfig *config);
52 static const gchar * get_widget_name (GtkWidget *widget);
53 static gchar * get_combobox_appearance_name (GtkWidget *combobox);
54 static gchar * get_combobox_appearance_section (GtkWidget *combobox);
55
56 #if 0
57 static void
58 on_value_changed (IBusInputPadConfig *config,
59 const gchar *section,
60 const gchar *name,
61 GValue value,
62 gpointer data)
63 {
64 g_return_if_fail (section != NULL);
65
66 if (g_ascii_strncasecmp (section, ENGINE_INPUT_PAD_SECTION,
67 strlen (ENGINE_INPUT_PAD_SECTION)) != 0) {
68 return;
69 }
70 }
71 #endif
72
73 static void
74 on_combobox_appearance_changed (GtkComboBox *combobox, gpointer data)
75 {
76 IBusInputPadConfig *config;
77 gchar *section;
78 gchar *name;
79 gchar *kbdui_name = NULL;
80 GtkTreeModel *model;
81 GtkTreeIter iter;
82 int id;
83 gboolean res = FALSE;
84
85 g_return_if_fail (GTK_IS_COMBO_BOX (combobox));
86 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (data));
87
88 if (!gtk_combo_box_get_active_iter (combobox, &iter)) {
89 return;
90 }
91
92 config = IBUS_INPUT_PAD_CONFIG (data);
93 section = get_combobox_appearance_section (GTK_WIDGET (combobox));
94 name = get_combobox_appearance_name (GTK_WIDGET (combobox));
95 g_return_if_fail (name != NULL && section != NULL);
96
97 model = gtk_combo_box_get_model (combobox);
98 gtk_tree_model_get (model, &iter,
99 THEME_ID_COL, &id,
100 THEME_NAME_COL, &kbdui_name, -1);
101 if (!g_strcmp0 (name, "keyboard_theme")) {
102 res = ibus_input_pad_config_set_str (config, section, name, kbdui_name);
103 } else {
104 res = ibus_input_pad_config_set_int (config, section, name, id);
105 }
106 g_free (kbdui_name);
107 g_free (section);
108 g_free (name);
109 if (res) {
110 enable_apply_button (config);
111 }
112 }
113
114 static void
115 on_button_apply_clicked (GtkButton *button, gpointer data)
116 {
117 IBusInputPadConfig *config;
118
119 g_return_if_fail (GTK_IS_BUTTON (button));
120 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (data));
121
122 config = IBUS_INPUT_PAD_CONFIG (data);
123 ibus_input_pad_config_commit_all (config);
124 disable_apply_button (config);
125 }
126
127 static void
128 on_button_ok_clicked (GtkButton *button, gpointer data)
129 {
130 IBusInputPadConfig *config;
131 GtkWidget *dialog;
132 GtkWidget *msg_dialog;
133 ButtonClickData *button_data = (ButtonClickData *) data;
134
135 g_return_if_fail (GTK_IS_BUTTON (button));
136 g_return_if_fail (data != NULL);
137 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (button_data->config));
138 g_return_if_fail (GTK_IS_MESSAGE_DIALOG (button_data->msg_dialog));
139
140 config = IBUS_INPUT_PAD_CONFIG (button_data->config);
141 msg_dialog = GTK_WIDGET (button_data->msg_dialog);
142 dialog = gtk_widget_get_toplevel (GTK_WIDGET (button));
143 g_return_if_fail (GTK_IS_DIALOG (dialog));
144
145 if (ibus_input_pad_config_get_changed_size (config) == 0) {
146 gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
147 } else if (gtk_dialog_run (GTK_DIALOG (msg_dialog)) == GTK_RESPONSE_OK) {
148 ibus_input_pad_config_commit_all (config);
149 gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
150 } else {
151 gtk_widget_hide (msg_dialog);
152 }
153 }
154
155 static void
156 on_button_cancel_clicked (GtkButton *button, gpointer data)
157 {
158 GtkWidget *dialog;
159 ButtonClickData *button_data = (ButtonClickData *) data;
160
161 g_return_if_fail (GTK_IS_BUTTON (button));
162
163 dialog = gtk_widget_get_toplevel (GTK_WIDGET (button));
164
165 if (do_cancel_dialog (dialog, button_data)) {
166 gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
167 }
168 }
169
170 static gboolean
171 on_dialog_close (GtkWidget *dialog, GdkEventAny *event, gpointer data)
172 {
173 ButtonClickData *button_data = (ButtonClickData *) data;
174 return do_cancel_dialog (dialog, button_data);
175 }
176
177 static gboolean
178 do_cancel_dialog (GtkWidget *dialog, ButtonClickData *button_data)
179 {
180 IBusInputPadConfig *config;
181 GtkWidget *msg_dialog;
182
183 g_return_val_if_fail (button_data != NULL, FALSE);
184 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (button_data->config), FALSE);
185 g_return_val_if_fail (GTK_IS_MESSAGE_DIALOG (button_data->msg_dialog), FALSE);
186 g_return_val_if_fail (GTK_IS_DIALOG (dialog), FALSE);
187
188 config = IBUS_INPUT_PAD_CONFIG (button_data->config);
189 msg_dialog = GTK_WIDGET (button_data->msg_dialog);
190
191 if (ibus_input_pad_config_get_changed_size (config) == 0) {
192 return TRUE;
193 } else if (gtk_dialog_run (GTK_DIALOG (msg_dialog)) == GTK_RESPONSE_OK) {
194 return TRUE;
195 }
196 gtk_widget_hide (msg_dialog);
197 return FALSE;
198 }
199
200 static void
201 disable_apply_button (IBusInputPadConfig *config)
202 {
203 GObject *o;
204 GtkWidget *apply_button;
205
206 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config));
207
208 o = IBUS_INPUT_PAD_CONFIG_GET_CLASS (config)->get_apply_button (config);
209 g_return_if_fail (o != NULL && GTK_IS_WIDGET (o));
210
211 apply_button = GTK_WIDGET (o);
212
213 gtk_widget_set_sensitive (apply_button, FALSE);
214 }
215
216 static void
217 enable_apply_button (IBusInputPadConfig *config)
218 {
219 GObject *o;
220 GtkWidget *apply_button;
221
222 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config));
223
224 o = IBUS_INPUT_PAD_CONFIG_GET_CLASS (config)->get_apply_button (config);
225 g_return_if_fail (o != NULL && GTK_IS_WIDGET (o));
226
227 apply_button = GTK_WIDGET (o);
228
229 if (!gtk_widget_get_sensitive (apply_button)) {
230 gtk_widget_set_sensitive (apply_button, TRUE);
231 }
232 }
233
234 static const gchar *
235 get_widget_name (GtkWidget *widget)
236 {
237 const gchar *widget_name = NULL;
238
239 if (GTK_IS_BUILDABLE (widget)) {
240 widget_name = gtk_buildable_get_name (GTK_BUILDABLE (widget));
241 }
242 if (widget_name == NULL) {
243 widget_name = (const gchar *) g_object_get_data (G_OBJECT (widget),
244 "gtk-builder-name");
245 }
246
247 return widget_name;
248 }
249
250 static gchar *
251 get_combobox_appearance_name (GtkWidget *combobox)
252 {
253 const gchar *widget_name;
254
255 g_return_val_if_fail (combobox != NULL && GTK_IS_WIDGET (combobox), NULL);
256
257 widget_name = get_widget_name (combobox);
258 if (widget_name == NULL) {
259 return NULL;
260 }
261 return g_strdup (widget_name);
262 }
263
264 static gchar *
265 get_combobox_appearance_section (GtkWidget *combobox)
266 {
267 GtkWidget *parent;
268 const gchar *parent_widget_name;
269 gchar *section = NULL;
270
271 g_return_val_if_fail (combobox != NULL && GTK_IS_WIDGET (combobox), NULL);
272
273 parent = gtk_widget_get_parent (combobox);
274 g_return_val_if_fail (parent != NULL, NULL);
275 parent_widget_name = get_widget_name (parent);
276 g_return_val_if_fail (parent_widget_name != NULL, NULL);
277
278 section = g_build_path ("/", ENGINE_INPUT_PAD_SECTION,
279 parent_widget_name, NULL);
280
281 return section;
282 }
283
284 static void
285 set_combobox_appearance_str (GtkWidget *combobox,
286 const gchar *str)
287 {
288 GtkTreeModel *model;
289 GtkTreeIter iter;
290 int id;
291 gchar *kbdui_name;
292
293 g_return_if_fail (GTK_IS_COMBO_BOX (combobox));
294 g_return_if_fail (str != NULL);
295
296 model = gtk_combo_box_get_model (GTK_COMBO_BOX (combobox));
297 g_return_if_fail (model != NULL);
298 gtk_tree_model_get_iter_first (model, &iter);
299 do {
300 gtk_tree_model_get (model, &iter,
301 THEME_ID_COL, &id,
302 THEME_NAME_COL, &kbdui_name, -1);
303 if (!g_strcmp0 (str, kbdui_name)) {
304 gtk_combo_box_set_active (GTK_COMBO_BOX (combobox), id);
305 g_free (kbdui_name);
306 break;
307 }
308 g_free (kbdui_name);
309 } while (gtk_tree_model_iter_next (model, &iter));
310 }
311
312 static void
313 set_combobox_appearance_default_value (GtkWidget *combobox,
314 IBusInputPadConfig *config)
315 {
316 gchar *section;
317 gchar *name;
318 gchar *value_str = NULL;
319 int value_int = 0;
320
321 g_return_if_fail (GTK_IS_COMBO_BOX (combobox));
322
323 name = get_combobox_appearance_name (combobox);
324 section = get_combobox_appearance_section (combobox);
325 g_return_if_fail (name != NULL && section != NULL);
326
327 if (!g_strcmp0 (name, "keyboard_theme")) {
328 ibus_input_pad_config_get_str (config, section, name, &value_str);
329 set_combobox_appearance_str (combobox,
330 (const gchar *) value_str);
331 g_free (value_str);
332 } else {
333 ibus_input_pad_config_get_int (config, section, name, &value_int);
334 gtk_combo_box_set_active (GTK_COMBO_BOX (combobox),
335 value_int);
336 }
337 g_free (section);
338 g_free (name);
339 }
340
341 static GtkTreeModel *
342 keyboard_theme_new (InputPadWindowKbduiName *list)
343 {
344 GtkTreeStore *store;
345 GtkTreeIter iter;
346 int i;
347
348 g_return_val_if_fail (list != NULL, NULL);
349
350 store = gtk_tree_store_new (THEME_N_COLS,
351 G_TYPE_INT,
352 G_TYPE_STRING, G_TYPE_STRING,
353 G_TYPE_BOOLEAN);
354
355 gtk_tree_store_append (store, &iter, NULL);
356 gtk_tree_store_set (store, &iter,
357 THEME_ID_COL, 0,
358 THEME_NAME_COL, "default",
359 THEME_DESC_COL, _("Default"),
360 THEME_VISIBLE_COL, TRUE, -1);
361
362 for (i = 0; list[i].name; i++) {
363 if (list[i].type != INPUT_PAD_WINDOW_TYPE_GTK) {
364 continue;
365 }
366 gtk_tree_store_append (store, &iter, NULL);
367 gtk_tree_store_set (store, &iter,
368 THEME_ID_COL, i + 1,
369 THEME_NAME_COL, list[i].name,
370 THEME_DESC_COL, list[i].description,
371 THEME_VISIBLE_COL, TRUE, -1);
372 }
373 return GTK_TREE_MODEL (store);
374 }
375
376 static void
377 table_add_kbdui_list (GtkWidget *table,
378 InputPadWindowKbduiName *list,
379 IBusInputPadConfig *config,
380 int nrows)
381 {
382 GtkTreeModel *model;
383 GtkWidget *label;
384 GtkWidget *combobox;
385 GtkCellRenderer *renderer;
386
387 g_return_if_fail (GTK_IS_GRID (table));
388
389 if ((model = keyboard_theme_new (list)) == NULL) {
390 return;
391 }
392
393 label = gtk_label_new_with_mnemonic (_("Keyboard _Theme:"));
394 gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
395 gtk_widget_set_tooltip_text (label,
396 _("Which theme you choose in kbdui modules"));
397 gtk_grid_attach (GTK_GRID (table), label, 0, nrows -1, 1, 1);
398 gtk_widget_show (label);
399
400 combobox = gtk_combo_box_new ();
401 gtk_label_set_mnemonic_widget (GTK_LABEL (label), combobox);
402 gtk_combo_box_set_model (GTK_COMBO_BOX (combobox), model);
403 g_object_unref (G_OBJECT (model));
404 if (GTK_IS_BUILDABLE (combobox)) {
405 gtk_buildable_set_name (GTK_BUILDABLE (combobox), "keyboard_theme");
406 }
407
408 renderer = gtk_cell_renderer_text_new ();
409 gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combobox), renderer, FALSE);
410 gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combobox), renderer,
411 "text", THEME_DESC_COL,
412 "visible", THEME_VISIBLE_COL,
413 NULL);
414
415 gtk_grid_attach (GTK_GRID (table), combobox, 1, nrows -1, 1, 1);
416 set_combobox_appearance_default_value (combobox, config);
417
418 gtk_widget_show (combobox);
419 g_signal_connect (G_OBJECT (combobox), "changed",
420 G_CALLBACK (on_combobox_appearance_changed),
421 (gpointer) config);
422 }
423
424 static void
425 destroy_kbdui_list (InputPadWindowKbduiName *list)
426 {
427 int i;
428 for (i = 0; list[i].name; i++) {
429 g_free (list[i].name);
430 list[i].name = NULL;
431 g_free (list[i].description);
432 list[i].description= NULL;
433 }
434 g_free (list);
435 }
436
437 /* If 'logo-icon-name' property is used,
438 * gtk_about_dialog_set_logo_icon_name() is called and it fails to
439 * calculate the best size for a pixmaps file.
440 * So we call gtk_about_dialog_set_logo() here.
441 */
442 static void
443 set_about_dialog_logo (GtkWidget *widget)
444 {
445 GtkAboutDialog *dialog = GTK_ABOUT_DIALOG (widget);
446 GtkIconTheme *theme = gtk_icon_theme_get_default ();
447 GError *error = NULL;
448 GdkPixbuf *pixbuf = gtk_icon_theme_load_icon (theme,
449 "input-pad",
450 48,
451 0,
452 &error);
453 gtk_about_dialog_set_logo (dialog, pixbuf);
454 g_object_unref (pixbuf);
455 }
456
457 static void
458 create_about_vbox (GtkBuilder *builder)
459 {
460 GtkWidget *about_dialog;
461 GtkWidget *about_vbox;
462 GtkWidget *content_area;
463 GtkWidget *vbox;
464 GtkWidget *widget;
465 GtkWidget *old_parent;
466 GList *list;
467
468 about_dialog = GTK_WIDGET (gtk_builder_get_object (builder, "about_dialog"));
469 about_vbox = GTK_WIDGET (gtk_builder_get_object (builder, "about_vbox"));
470
471 g_return_if_fail (GTK_IS_DIALOG (about_dialog));
472 g_return_if_fail (GTK_IS_BOX (about_vbox));
473
474 gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (about_dialog), VERSION);
475 set_about_dialog_logo (about_dialog);
476 content_area = gtk_dialog_get_content_area (GTK_DIALOG (about_dialog));
477 list = gtk_container_get_children (GTK_CONTAINER (content_area));
478 g_return_if_fail (GTK_IS_BOX (list->data));
479 vbox = GTK_WIDGET (list->data);
480 list = gtk_container_get_children (GTK_CONTAINER (vbox));
481
482 while (list) {
483 /* Copied the implementation of gtk_widget_reparent()
484 * but gtk_box_pack_start() also includes set parent. */
485 widget = GTK_WIDGET (list->data);
486 old_parent = gtk_widget_get_parent (widget);
487 g_object_ref (G_OBJECT (widget));
488 gtk_container_remove (GTK_CONTAINER (old_parent), widget);
489 gtk_box_pack_start (GTK_BOX (about_vbox), widget,
490 FALSE, FALSE, 0);
491 list = list->next;
492 }
493 }
494
495 GtkWidget *
496 ibus_input_pad_setup_gtk_dialog_new (IBusInputPadConfig *config)
497 {
498 GError *error = NULL;
499 GtkBuilder *builder;
500 GtkWidget *dialog = NULL;
501 GtkWidget *char_table_combobox;
502 GtkWidget *layout_table_combobox;
503 GtkWidget *default_table;
504 GtkWidget *keyboard_table;
505 GtkWidget *keyboard_frame;
506 GtkWidget *apply_button;
507 GtkWidget *ok_button;
508 GtkWidget *cancel_button;
509 GtkWidget *ok_dialog;
510 GtkWidget *cancel_dialog;
511 InputPadWindowKbduiName *list;
512 static ButtonClickData button_data_ok;
513 static ButtonClickData button_data_cancel;
514
515 builder = gtk_builder_new_from_resource (
516 "/com/github/fujiwarat/ibus-input-pad/setup-gtk.ui");
517 gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE);
518
519 dialog = GTK_WIDGET (gtk_builder_get_object (builder, "setup_dialog"));
520 gtk_window_set_icon_from_file (GTK_WINDOW (dialog),
521 DATAROOTDIR "/pixmaps/input-pad.png",
522 &error);
523 error = NULL;
524 gtk_window_set_default_icon_from_file (DATAROOTDIR "/pixmaps/input-pad.png",
525 &error);
526
527 create_about_vbox (builder);
528
529 char_table_combobox = GTK_WIDGET (gtk_builder_get_object (builder, "char_table_combo_box"));
530 layout_table_combobox = GTK_WIDGET (gtk_builder_get_object (builder, "layout_table_combo_box"));
531 default_table = GTK_WIDGET (gtk_builder_get_object (builder, "default_table"));
532 keyboard_table = GTK_WIDGET (gtk_builder_get_object (builder, "keyboard_only_table"));
533 keyboard_frame = GTK_WIDGET (gtk_builder_get_object (builder, "keyboard_only_frame"));
534 apply_button = GTK_WIDGET (gtk_builder_get_object (builder, "button_apply"));
535 ok_button = GTK_WIDGET (gtk_builder_get_object (builder, "button_ok"));
536 ok_dialog = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_ok"));
537 cancel_button = GTK_WIDGET (gtk_builder_get_object (builder, "button_cancel"));
538 cancel_dialog = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_cancel"));
539
540 #if 0
541 if (config) {
542 g_signal_connect (G_OBJECT (config), "value-changed",
543 G_CALLBACK (on_value_changed), NULL);
544 }
545 #endif
546 set_combobox_appearance_default_value (char_table_combobox, config);
547 g_signal_connect (G_OBJECT (char_table_combobox), "changed",
548 G_CALLBACK (on_combobox_appearance_changed),
549 (gpointer) config);
550 set_combobox_appearance_default_value (layout_table_combobox, config);
551 g_signal_connect (G_OBJECT (layout_table_combobox), "changed",
552 G_CALLBACK (on_combobox_appearance_changed),
553 (gpointer) config);
554
555 list = input_pad_window_get_kbdui_name_list ();
556 if (list == NULL) {
557 gtk_widget_hide (keyboard_frame);
558 } else {
559 table_add_kbdui_list (default_table, list, config, 3);
560 table_add_kbdui_list (keyboard_table, list, config, 1);
561 destroy_kbdui_list (list);
562 }
563
564 gtk_widget_set_sensitive (apply_button, FALSE);
565 IBUS_INPUT_PAD_CONFIG_GET_CLASS (config)->set_apply_button (config,
566 G_OBJECT (apply_button));
567 g_signal_connect (G_OBJECT (apply_button), "clicked",
568 G_CALLBACK (on_button_apply_clicked),
569 (gpointer) config);
570 button_data_ok.config = config;
571 button_data_ok.msg_dialog = ok_dialog;
572 g_signal_connect (G_OBJECT (ok_button), "clicked",
573 G_CALLBACK (on_button_ok_clicked),
574 (gpointer) &button_data_ok);
575 button_data_cancel.config = config;
576 button_data_cancel.msg_dialog = cancel_dialog;
577 g_signal_connect (G_OBJECT (cancel_button), "clicked",
578 G_CALLBACK (on_button_cancel_clicked),
579 (gpointer) &button_data_cancel);
580
581 g_signal_connect (G_OBJECT (dialog), "delete_event",
582 G_CALLBACK (on_dialog_close),
583 (gpointer) &button_data_cancel);
584
585 gtk_builder_connect_signals (builder, NULL);
586 g_object_unref (G_OBJECT (builder));
587
588 return dialog;
589 }
590
591 void
592 ibus_input_pad_setup_gtk_init (int *argc, char ***argv)
593 {
594 gtk_init (argc, argv);
595 }
596
597 gboolean
598 ibus_input_pad_setup_gtk_dialog_run (GtkWidget *dialog)
599 {
600 if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) {
601 return TRUE;
602 }
603 return FALSE;
604 }
605
606 void
607 ibus_input_pad_setup_gtk_dialog_destroy (GtkWidget *dialog)
608 {
609 gtk_widget_destroy (dialog);
610 }
0 /* vim:set et sts=4: */
1 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifndef __IBUS_INPUT_PAD_SETUP_GTK2_H__
21 #define __IBUS_INPUT_PAD_SETUP_GTK2_H__
22
23 #include <ibus.h>
24 #include <gtk/gtk.h>
25
26 #include "iconfig-gtk.h"
27
28 void ibus_input_pad_setup_gtk_init (int *argc, char ***argv);
29 GtkWidget * ibus_input_pad_setup_gtk_dialog_new (IBusInputPadConfig *config);
30 gboolean ibus_input_pad_setup_gtk_dialog_run (GtkWidget *dialog);
31 void ibus_input_pad_setup_gtk_dialog_destroy (GtkWidget *dialog);
32
33 #endif
0 <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
1 <interface domain="ibus-input-pad">
2 <object class="GtkListStore" id="char_table_model">
3 <columns>
4 <column type="guint"/>
5 <column type="gchararray"/>
6 <column type="gchararray"/>
7 </columns>
8 <data>
9 <row>
10 <col id="0">0</col>
11 <col id="2" translatable="yes">Nothing</col>
12 </row>
13 <row>
14 <col id="0">1</col>
15 <col id="2" translatable="yes">Custom</col>
16 </row>
17 <row>
18 <col id="0">2</col>
19 <col id="2" translatable="yes">All</col>
20 </row>
21 </data>
22 </object>
23 <object class="GtkListStore" id="layout_table_model">
24 <columns>
25 <column type="guint"/>
26 <column type="gchararray"/>
27 <column type="gchararray"/>
28 </columns>
29 <data>
30 <row>
31 <col id="0">0</col>
32 <col id="2" translatable="yes">Nothing</col>
33 </row>
34 <row>
35 <col id="0">1</col>
36 <col id="2" translatable="yes">Default</col>
37 </row>
38 </data>
39 </object>
40 <object class="GtkDialog" id="setup_dialog">
41 <property name="title" translatable="yes">IBus-Input-Pad Setup</property>
42 <child internal-child="vbox">
43 <object class="GtkBox" id="vbox1">
44 <property name="visible">True</property>
45 <property name="orientation">vertical</property>
46 <property name="border-width">10</property>
47 <property name="spacing">12</property>
48 <child>
49 <object class="GtkNotebook" id="notebook1">
50 <property name="visible">True</property>
51 <child>
52 <object class="GtkBox" id="vbox2">
53 <property name="visible">True</property>
54 <property name="orientation">vertical</property>
55 <property name="spacing">12</property>
56 <child>
57 <object class="GtkFrame" id="default_frame">
58 <property name="visible">True</property>
59 <property name="shadow_type">none</property>
60 <child>
61 <object class="GtkAlignment" id="alignment1">
62 <property name="visible">True</property>
63 <!-- Use ypad instead of top_padding -->
64 <property name="bottom_padding">12</property>
65 <property name="left_padding">12</property>
66 <property name="right_padding">12</property>
67 <child>
68 <object class="GtkBox" id="default_vbox">
69 <property name="visible">True</property>
70 <property name="orientation">vertical</property>
71 <child>
72 <object class="GtkGrid" id="default_table">
73 <property name="visible">True</property>
74 <property name="column_spacing">12</property>
75 <property name="row_spacing">6</property>
76 <child>
77 <object class="GtkLabel" id="label4">
78 <property name="visible">True</property>
79 <property name="label" translatable="yes">_Character Table Type:</property>
80 <property name="tooltip_text" translatable="yes">Whether you show the character table or not</property>
81 <property name="use_underline">True</property>
82 <property name="justify">right</property>
83 <property name="xalign">0</property>
84 </object>
85 </child>
86 <child>
87 <object class="GtkComboBox" id="char_table_combo_box">
88 <property name="visible">True</property>
89 <property name="add_tearoffs">False</property>
90 <property name="focus_on_click">True</property>
91 <property name="model">char_table_model</property>
92 <child>
93 <object class="GtkCellRendererText" id="renderer1"/>
94 <attributes>
95 <attribute name="text">2</attribute>
96 </attributes>
97 </child>
98 </object>
99 <packing>
100 <property name="left_attach">1</property>
101 </packing>
102 </child>
103 <child>
104 <object class="GtkLabel" id="label5">
105 <property name="visible">True</property>
106 <property name="label" translatable="yes">_Keyboard Layout Type:</property>
107 <property name="tooltip_text" translatable="yes">Whether you show the keyboard layout or not</property>
108 <property name="use_underline">True</property>
109 <property name="justify">right</property>
110 <property name="xalign">0</property>
111 </object>
112 <packing>
113 <property name="left_attach">0</property>
114 <property name="top_attach">1</property>
115 </packing>
116 </child>
117 <child>
118 <object class="GtkComboBox" id="layout_table_combo_box">
119 <property name="visible">True</property>
120 <property name="add_tearoffs">False</property>
121 <property name="focus_on_click">True</property>
122 <property name="model">layout_table_model</property>
123 <child>
124 <object class="GtkCellRendererText" id="renderer2"/>
125 <attributes>
126 <attribute name="text">2</attribute>
127 </attributes>
128 </child>
129 </object>
130 <packing>
131 <property name="left_attach">1</property>
132 <property name="top_attach">1</property>
133 </packing>
134 </child>
135 <!-- The kbdui extension is checked on runtime.
136 <child></child>
137 <child></child>
138 -->
139 </object>
140 <packing>
141 <property name="expand">False</property>
142 <property name="fill">False</property>
143 <property name="position">0</property>
144 </packing>
145 </child>
146 </object>
147 </child>
148 </object>
149 </child>
150 <child type="label">
151 <object class="GtkLabel" id="label1">
152 <property name="visible">True</property>
153 <property name="label" translatable="yes">&lt;b&gt;Default Appearance&lt;/b&gt;</property>
154 <property name="use_markup">True</property>
155 <property name="ypad">12</property>
156 </object>
157 </child>
158 </object>
159 <packing>
160 <property name="expand">False</property>
161 <property name="fill">False</property>
162 <property name="position">0</property>
163 </packing>
164 </child>
165 <child>
166 <object class="GtkFrame" id="keyboard_only_frame">
167 <property name="visible">True</property>
168 <property name="shadow_type">none</property>
169 <child>
170 <object class="GtkAlignment" id="alignment2">
171 <property name="visible">True</property>
172 <property name="top_padding">12</property>
173 <property name="bottom_padding">12</property>
174 <property name="left_padding">12</property>
175 <property name="right_padding">12</property>
176 <child>
177 <object class="GtkBox" id="keyboard_only_vbox">
178 <property name="visible">True</property>
179 <property name="orientation">vertical</property>
180 <child>
181 <object class="GtkGrid" id="keyboard_only_table">
182 <property name="visible">True</property>
183 <property name="column_spacing">12</property>
184 <property name="row_spacing">6</property>
185 <!-- The kbdui extension is checked on runtime.
186 <child></child>
187 -->
188 </object>
189 <packing>
190 <property name="expand">False</property>
191 <property name="fill">False</property>
192 <property name="position">0</property>
193 </packing>
194 </child>
195 </object>
196 </child>
197 </object>
198 </child>
199 <child type="label">
200 <object class="GtkLabel" id="label6">
201 <property name="visible">True</property>
202 <property name="label" translatable="yes">&lt;b&gt;Keyboard Only Appearance&lt;/b&gt;</property>
203 <property name="use_markup">True</property>
204 </object>
205 </child>
206 </object>
207 </child>
208 </object>
209 </child>
210 <child type="tab">
211 <object class="GtkLabel" id="label2">
212 <property name="visible">True</property>
213 <property name="label" translatable="yes">General</property>
214 </object>
215 <packing>
216 <property name="tab_fill">False</property>
217 </packing>
218 </child>
219 <child>
220 <object class="GtkBox" id="about_vbox">
221 <property name="visible">True</property>
222 <property name="orientation">vertical</property>
223 <property name="border_width">10</property>
224 <property name="can_focus">True</property>
225 <property name="receives_default">False</property>
226 </object>
227 <packing>
228 <property name="position">1</property>
229 </packing>
230 </child>
231 <child type="tab">
232 <object class="GtkLabel" id="label7">
233 <property name="visible">True</property>
234 <property name="label" translatable="yes">About</property>
235 </object>
236 <packing>
237 <property name="tab_fill">False</property>
238 <property name="position">1</property>
239 </packing>
240 </child>
241 </object>
242 <packing>
243 <property name="expand">False</property>
244 <property name="fill">False</property>
245 <property name="position">0</property>
246 </packing>
247 </child>
248 <child internal-child="action_area">
249 <object class="GtkButtonBox" id="hbuttonbox1">
250 <property name="visible">True</property>
251 <property name="orientation">horizontal</property>
252 <property name="homogeneous">True</property>
253 <property name="layout_style">end</property>
254 <child>
255 <object class="GtkButton" id="button_apply">
256 <property name="label" translatable="yes">_Apply</property>
257 <property name="visible">True</property>
258 <property name="use_underline">True</property>
259 </object>
260 <packing>
261 <property name="expand">False</property>
262 <property name="fill">False</property>
263 <property name="position">0</property>
264 </packing>
265 </child>
266 <child>
267 <object class="GtkButton" id="button_cancel">
268 <property name="label" translatable="yes">_Cancel</property>
269 <property name="visible">True</property>
270 <property name="use_underline">True</property>
271 </object>
272 <packing>
273 <property name="expand">False</property>
274 <property name="fill">False</property>
275 <property name="position">1</property>
276 </packing>
277 </child>
278 <child>
279 <object class="GtkButton" id="button_ok">
280 <property name="label" translatable="yes">_OK</property>
281 <property name="visible">True</property>
282 <property name="use_underline">True</property>
283 <property name="receives_default">True</property>
284 </object>
285 <packing>
286 <property name="expand">False</property>
287 <property name="fill">False</property>
288 <property name="position">2</property>
289 </packing>
290 </child>
291 </object>
292 <packing>
293 <property name="expand">False</property>
294 <property name="fill">False</property>
295 <property name="pack_type">end</property>
296 <property name="position">1</property>
297 </packing>
298 </child>
299 </object>
300 </child>
301 </object>
302 <object class="GtkMessageDialog" id="dialog_ok">
303 <property name="border_width">5</property>
304 <property name="resizable">False</property>
305 <property name="modal">True</property>
306 <property name="accept-focus">False</property>
307 <property name="window_position">center-on-parent</property>
308 <property name="type_hint">dialog</property>
309 <property name="skip_taskbar_hint">True</property>
310 <property name="message_type">question</property>
311 <property name="buttons">ok-cancel</property>
312 <property name="text" translatable="yes">Confirm</property>
313 <property name="secondary_text" translatable="yes">Are you sure to close Setup?</property>
314 <child internal-child="vbox">
315 <object class="GtkBox" id="vbox50">
316 <property name="visible">True</property>
317 <property name="orientation">vertical</property>
318 <property name="spacing">2</property>
319 <child internal-child="action_area">
320 <object class="GtkButtonBox" id="hbuttonbox50">
321 <property name="visible">True</property>
322 <property name="orientation">horizontal</property>
323 <property name="layout_style">end</property>
324 </object>
325 <packing>
326 <property name="expand">False</property>
327 <property name="pack_type">end</property>
328 <property name="position">0</property>
329 </packing>
330 </child>
331 </object>
332 </child>
333 </object>
334 <object class="GtkMessageDialog" id="dialog_cancel">
335 <property name="border_width">5</property>
336 <property name="resizable">False</property>
337 <property name="modal">True</property>
338 <property name="accept-focus">False</property>
339 <property name="window_position">center-on-parent</property>
340 <property name="type_hint">dialog</property>
341 <property name="skip_taskbar_hint">True</property>
342 <property name="message_type">question</property>
343 <property name="buttons">ok-cancel</property>
344 <property name="text" translatable="yes">Confirm</property>
345 <property name="secondary_text" translatable="yes">Are you sure to close Setup without saving configure?</property>
346 <child internal-child="vbox">
347 <object class="GtkBox" id="vbox60">
348 <property name="visible">True</property>
349 <property name="orientation">vertical</property>
350 <property name="spacing">2</property>
351 <child internal-child="action_area">
352 <object class="GtkButtonBox" id="hbuttonbox60">
353 <property name="visible">True</property>
354 <property name="orientation">horizontal</property>
355 <property name="layout_style">end</property>
356 </object>
357 <packing>
358 <property name="expand">False</property>
359 <property name="pack_type">end</property>
360 <property name="position">0</property>
361 </packing>
362 </child>
363 </object>
364 </child>
365 </object>
366 <object class="GtkAboutDialog" id="about_dialog">
367 <property name="program-name">IBus-Input-Pad</property>
368 <property name="copyright">Copyright (c) 2014 Takao Fujiwara
369 Copyright (c) 2014 Red Hat, Inc.</property>
370 <property name="comments" translatable="yes">The input pad engine for IBus platform</property>
371 <property name="license">GPL</property>
372 <property name="website">http://code.google.com/p/input-pad/</property>
373 <property name="authors">Takao Fujiwara &lt;takao.fujiwara1@gmail.com&gt;</property>
374 <property name="translator-credits" translatable="yes">translator_credits</property>
375 <property name="logo-icon-name"/>
376 <property name="wrap-license">True</property>
377 </object>
378 </interface>
+0
-616
setup/setup-gtk2.c less more
0 /* vim:set et sts=4: */
1 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifdef HAVE_CONFIG_H
21 #include <config.h>
22 #endif
23
24 #include <gtk/gtk.h>
25 #include <input-pad.h>
26 #include <string.h> /* strlen */
27
28 #include "i18n.h"
29 #include "iconfig-gtk2.h"
30 #include "setup-gtk2.h"
31
32 #define ENGINE_INPUT_PAD_SECTION "engine/input-pad"
33
34 typedef struct _ButtonClickData ButtonClickData;
35
36 enum {
37 THEME_ID_COL = 0,
38 THEME_NAME_COL,
39 THEME_DESC_COL,
40 THEME_VISIBLE_COL,
41 THEME_N_COLS
42 };
43
44 struct _ButtonClickData {
45 IBusInputPadConfig *config;
46 GtkWidget *msg_dialog;
47 };
48
49 static gboolean do_cancel_dialog (GtkWidget *dialog, ButtonClickData *button_data);
50 static void disable_apply_button (IBusInputPadConfig *config);
51 static void enable_apply_button (IBusInputPadConfig *config);
52 static const gchar * get_widget_name (GtkWidget *widget);
53 static gchar * get_combobox_appearance_name (GtkWidget *combobox);
54 static gchar * get_combobox_appearance_section (GtkWidget *combobox);
55
56 #if 0
57 static void
58 on_value_changed (IBusInputPadConfig *config,
59 const gchar *section,
60 const gchar *name,
61 GValue value,
62 gpointer data)
63 {
64 g_return_if_fail (section != NULL);
65
66 if (g_ascii_strncasecmp (section, ENGINE_INPUT_PAD_SECTION,
67 strlen (ENGINE_INPUT_PAD_SECTION)) != 0) {
68 return;
69 }
70 }
71 #endif
72
73 static void
74 on_combobox_appearance_changed (GtkComboBox *combobox, gpointer data)
75 {
76 IBusInputPadConfig *config;
77 gchar *section;
78 gchar *name;
79 gchar *kbdui_name = NULL;
80 GtkTreeModel *model;
81 GtkTreeIter iter;
82 int id;
83 gboolean res = FALSE;
84
85 g_return_if_fail (GTK_IS_COMBO_BOX (combobox));
86 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (data));
87
88 if (!gtk_combo_box_get_active_iter (combobox, &iter)) {
89 return;
90 }
91
92 config = IBUS_INPUT_PAD_CONFIG (data);
93 section = get_combobox_appearance_section (GTK_WIDGET (combobox));
94 name = get_combobox_appearance_name (GTK_WIDGET (combobox));
95 g_return_if_fail (name != NULL && section != NULL);
96
97 model = gtk_combo_box_get_model (combobox);
98 gtk_tree_model_get (model, &iter,
99 THEME_ID_COL, &id,
100 THEME_NAME_COL, &kbdui_name, -1);
101 if (!g_strcmp0 (name, "keyboard_theme")) {
102 res = ibus_input_pad_config_set_str (config, section, name, kbdui_name);
103 } else {
104 res = ibus_input_pad_config_set_int (config, section, name, id);
105 }
106 g_free (kbdui_name);
107 g_free (section);
108 g_free (name);
109 if (res) {
110 enable_apply_button (config);
111 }
112 }
113
114 static void
115 on_button_apply_clicked (GtkButton *button, gpointer data)
116 {
117 IBusInputPadConfig *config;
118
119 g_return_if_fail (GTK_IS_BUTTON (button));
120 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (data));
121
122 config = IBUS_INPUT_PAD_CONFIG (data);
123 ibus_input_pad_config_commit_all (config);
124 disable_apply_button (config);
125 }
126
127 static void
128 on_button_ok_clicked (GtkButton *button, gpointer data)
129 {
130 IBusInputPadConfig *config;
131 GtkWidget *dialog;
132 GtkWidget *msg_dialog;
133 ButtonClickData *button_data = (ButtonClickData *) data;
134
135 g_return_if_fail (GTK_IS_BUTTON (button));
136 g_return_if_fail (data != NULL);
137 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (button_data->config));
138 g_return_if_fail (GTK_IS_MESSAGE_DIALOG (button_data->msg_dialog));
139
140 config = IBUS_INPUT_PAD_CONFIG (button_data->config);
141 msg_dialog = GTK_WIDGET (button_data->msg_dialog);
142 dialog = gtk_widget_get_toplevel (GTK_WIDGET (button));
143 g_return_if_fail (GTK_IS_DIALOG (dialog));
144
145 if (ibus_input_pad_config_get_changed_size (config) == 0) {
146 gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
147 } else if (gtk_dialog_run (GTK_DIALOG (msg_dialog)) == GTK_RESPONSE_OK) {
148 ibus_input_pad_config_commit_all (config);
149 gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
150 } else {
151 gtk_widget_hide (msg_dialog);
152 }
153 }
154
155 static void
156 on_button_cancel_clicked (GtkButton *button, gpointer data)
157 {
158 GtkWidget *dialog;
159 ButtonClickData *button_data = (ButtonClickData *) data;
160
161 g_return_if_fail (GTK_IS_BUTTON (button));
162
163 dialog = gtk_widget_get_toplevel (GTK_WIDGET (button));
164
165 if (do_cancel_dialog (dialog, button_data)) {
166 gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
167 }
168 }
169
170 static gboolean
171 on_dialog_close (GtkWidget *dialog, GdkEventAny *event, gpointer data)
172 {
173 ButtonClickData *button_data = (ButtonClickData *) data;
174 return do_cancel_dialog (dialog, button_data);
175 }
176
177 static gboolean
178 do_cancel_dialog (GtkWidget *dialog, ButtonClickData *button_data)
179 {
180 IBusInputPadConfig *config;
181 GtkWidget *msg_dialog;
182
183 g_return_val_if_fail (button_data != NULL, FALSE);
184 g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (button_data->config), FALSE);
185 g_return_val_if_fail (GTK_IS_MESSAGE_DIALOG (button_data->msg_dialog), FALSE);
186 g_return_val_if_fail (GTK_IS_DIALOG (dialog), FALSE);
187
188 config = IBUS_INPUT_PAD_CONFIG (button_data->config);
189 msg_dialog = GTK_WIDGET (button_data->msg_dialog);
190
191 if (ibus_input_pad_config_get_changed_size (config) == 0) {
192 return TRUE;
193 } else if (gtk_dialog_run (GTK_DIALOG (msg_dialog)) == GTK_RESPONSE_OK) {
194 return TRUE;
195 }
196 gtk_widget_hide (msg_dialog);
197 return FALSE;
198 }
199
200 static void
201 disable_apply_button (IBusInputPadConfig *config)
202 {
203 GObject *o;
204 GtkWidget *apply_button;
205
206 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config));
207
208 o = IBUS_INPUT_PAD_CONFIG_GET_CLASS (config)->get_apply_button (config);
209 g_return_if_fail (o != NULL && GTK_IS_WIDGET (o));
210
211 apply_button = GTK_WIDGET (o);
212
213 gtk_widget_set_sensitive (apply_button, FALSE);
214 }
215
216 static void
217 enable_apply_button (IBusInputPadConfig *config)
218 {
219 GObject *o;
220 GtkWidget *apply_button;
221
222 g_return_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config));
223
224 o = IBUS_INPUT_PAD_CONFIG_GET_CLASS (config)->get_apply_button (config);
225 g_return_if_fail (o != NULL && GTK_IS_WIDGET (o));
226
227 apply_button = GTK_WIDGET (o);
228
229 if (!gtk_widget_get_sensitive (apply_button)) {
230 gtk_widget_set_sensitive (apply_button, TRUE);
231 }
232 }
233
234 static const gchar *
235 get_widget_name (GtkWidget *widget)
236 {
237 const gchar *widget_name = NULL;
238
239 if (GTK_IS_BUILDABLE (widget)) {
240 widget_name = gtk_buildable_get_name (GTK_BUILDABLE (widget));
241 }
242 if (widget_name == NULL) {
243 widget_name = (const gchar *) g_object_get_data (G_OBJECT (widget),
244 "gtk-builder-name");
245 }
246
247 return widget_name;
248 }
249
250 static gchar *
251 get_combobox_appearance_name (GtkWidget *combobox)
252 {
253 const gchar *widget_name;
254
255 g_return_val_if_fail (combobox != NULL && GTK_IS_WIDGET (combobox), NULL);
256
257 widget_name = get_widget_name (combobox);
258 if (widget_name == NULL) {
259 return NULL;
260 }
261 return g_strdup (widget_name);
262 }
263
264 static gchar *
265 get_combobox_appearance_section (GtkWidget *combobox)
266 {
267 GtkWidget *parent;
268 const gchar *parent_widget_name;
269 gchar *section = NULL;
270
271 g_return_val_if_fail (combobox != NULL && GTK_IS_WIDGET (combobox), NULL);
272
273 parent = gtk_widget_get_parent (combobox);
274 g_return_val_if_fail (parent != NULL, NULL);
275 parent_widget_name = get_widget_name (parent);
276 g_return_val_if_fail (parent_widget_name != NULL, NULL);
277
278 section = g_build_path ("/", ENGINE_INPUT_PAD_SECTION,
279 parent_widget_name, NULL);
280
281 return section;
282 }
283
284 static void
285 set_combobox_appearance_str (GtkWidget *combobox,
286 const gchar *str)
287 {
288 GtkTreeModel *model;
289 GtkTreeIter iter;
290 int id;
291 gchar *kbdui_name;
292
293 g_return_if_fail (GTK_IS_COMBO_BOX (combobox));
294 g_return_if_fail (str != NULL);
295
296 model = gtk_combo_box_get_model (GTK_COMBO_BOX (combobox));
297 g_return_if_fail (model != NULL);
298 gtk_tree_model_get_iter_first (model, &iter);
299 do {
300 gtk_tree_model_get (model, &iter,
301 THEME_ID_COL, &id,
302 THEME_NAME_COL, &kbdui_name, -1);
303 if (!g_strcmp0 (str, kbdui_name)) {
304 gtk_combo_box_set_active (GTK_COMBO_BOX (combobox), id);
305 g_free (kbdui_name);
306 break;
307 }
308 g_free (kbdui_name);
309 } while (gtk_tree_model_iter_next (model, &iter));
310 }
311
312 static void
313 set_combobox_appearance_default_value (GtkWidget *combobox,
314 IBusInputPadConfig *config)
315 {
316 gchar *section;
317 gchar *name;
318 gchar *value_str = NULL;
319 int value_int = 0;
320
321 g_return_if_fail (GTK_IS_COMBO_BOX (combobox));
322
323 name = get_combobox_appearance_name (combobox);
324 section = get_combobox_appearance_section (combobox);
325 g_return_if_fail (name != NULL && section != NULL);
326
327 if (!g_strcmp0 (name, "keyboard_theme")) {
328 ibus_input_pad_config_get_str (config, section, name, &value_str);
329 set_combobox_appearance_str (combobox,
330 (const gchar *) value_str);
331 g_free (value_str);
332 } else {
333 ibus_input_pad_config_get_int (config, section, name, &value_int);
334 gtk_combo_box_set_active (GTK_COMBO_BOX (combobox),
335 value_int);
336 }
337 g_free (section);
338 g_free (name);
339 }
340
341 static GtkTreeModel *
342 keyboard_theme_new (InputPadWindowKbduiName *list)
343 {
344 GtkTreeStore *store;
345 GtkTreeIter iter;
346 int i;
347
348 g_return_val_if_fail (list != NULL, NULL);
349
350 store = gtk_tree_store_new (THEME_N_COLS,
351 G_TYPE_INT,
352 G_TYPE_STRING, G_TYPE_STRING,
353 G_TYPE_BOOLEAN);
354
355 gtk_tree_store_append (store, &iter, NULL);
356 gtk_tree_store_set (store, &iter,
357 THEME_ID_COL, 0,
358 THEME_NAME_COL, "default",
359 THEME_DESC_COL, _("Default"),
360 THEME_VISIBLE_COL, TRUE, -1);
361
362 for (i = 0; list[i].name; i++) {
363 if (list[i].type != INPUT_PAD_WINDOW_TYPE_GTK) {
364 continue;
365 }
366 gtk_tree_store_append (store, &iter, NULL);
367 gtk_tree_store_set (store, &iter,
368 THEME_ID_COL, i + 1,
369 THEME_NAME_COL, list[i].name,
370 THEME_DESC_COL, list[i].description,
371 THEME_VISIBLE_COL, TRUE, -1);
372 }
373 return GTK_TREE_MODEL (store);
374 }
375
376 static void
377 table_add_kbdui_list (GtkWidget *table,
378 InputPadWindowKbduiName *list,
379 IBusInputPadConfig *config)
380 {
381 guint nrows, ncols;
382 GtkTreeModel *model;
383 GtkWidget *label;
384 GtkWidget *combobox;
385 GtkCellRenderer *renderer;
386
387 g_return_if_fail (GTK_IS_TABLE (table));
388
389 gtk_table_get_size (GTK_TABLE (table), &nrows, &ncols);
390 g_return_if_fail (nrows > 0 && ncols >= 2);
391
392 if ((model = keyboard_theme_new (list)) == NULL) {
393 return;
394 }
395
396 label = gtk_label_new_with_mnemonic (_("Keyboard _Theme:"));
397 gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
398 gtk_widget_set_tooltip_text (label,
399 _("Which theme you choose in kbdui modules"));
400 gtk_table_attach_defaults (GTK_TABLE (table),
401 label,
402 0, 1,
403 nrows - 1, nrows);
404 gtk_widget_show (label);
405
406 combobox = gtk_combo_box_new ();
407 gtk_label_set_mnemonic_widget (GTK_LABEL (label), combobox);
408 gtk_combo_box_set_model (GTK_COMBO_BOX (combobox), model);
409 g_object_unref (G_OBJECT (model));
410 if (GTK_IS_BUILDABLE (combobox)) {
411 gtk_buildable_set_name (GTK_BUILDABLE (combobox), "keyboard_theme");
412 }
413
414 renderer = gtk_cell_renderer_text_new ();
415 gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combobox), renderer, FALSE);
416 gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combobox), renderer,
417 "text", THEME_DESC_COL,
418 "visible", THEME_VISIBLE_COL,
419 NULL);
420
421 gtk_table_attach_defaults (GTK_TABLE (table),
422 combobox,
423 1, 2,
424 nrows - 1, nrows);
425 set_combobox_appearance_default_value (combobox, config);
426
427 gtk_widget_show (combobox);
428 g_signal_connect (G_OBJECT (combobox), "changed",
429 G_CALLBACK (on_combobox_appearance_changed),
430 (gpointer) config);
431 }
432
433 static void
434 destroy_kbdui_list (InputPadWindowKbduiName *list)
435 {
436 int i;
437 for (i = 0; list[i].name; i++) {
438 g_free (list[i].name);
439 list[i].name = NULL;
440 g_free (list[i].description);
441 list[i].description= NULL;
442 }
443 g_free (list);
444 }
445
446 static void
447 create_about_vbox (GtkBuilder *builder)
448 {
449 GtkWidget *about_dialog;
450 GtkWidget *about_vbox;
451 GtkWidget *content_area;
452 GtkWidget *vbox;
453 GtkWidget *widget;
454 GtkWidget *old_parent;
455 GList *list;
456
457 about_dialog = GTK_WIDGET (gtk_builder_get_object (builder, "about_dialog"));
458 about_vbox = GTK_WIDGET (gtk_builder_get_object (builder, "about_vbox"));
459
460 g_return_if_fail (GTK_IS_DIALOG (about_dialog));
461 g_return_if_fail (GTK_IS_VBOX (about_vbox));
462
463 gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (about_dialog), VERSION);
464 content_area = gtk_dialog_get_content_area (GTK_DIALOG (about_dialog));
465 list = gtk_container_get_children (GTK_CONTAINER (content_area));
466 g_return_if_fail (GTK_IS_BOX (list->data));
467 vbox = GTK_WIDGET (list->data);
468 list = gtk_container_get_children (GTK_CONTAINER (vbox));
469
470 while (list) {
471 /* Copied the implementation of gtk_widget_reparent()
472 * but gtk_box_pack_start() also includes set parent. */
473 widget = GTK_WIDGET (list->data);
474 old_parent = gtk_widget_get_parent (widget);
475 g_object_ref (G_OBJECT (widget));
476 gtk_container_remove (GTK_CONTAINER (old_parent), widget);
477 gtk_box_pack_start (GTK_BOX (about_vbox), widget,
478 FALSE, FALSE, 0);
479 list = list->next;
480 }
481 }
482
483 GtkWidget *
484 ibus_input_pad_setup_gtk2_dialog_new (IBusInputPadConfig *config)
485 {
486 const gchar *filename = IBUS_INPUT_PAD_SETUP_UI_FILE;
487 GError *error = NULL;
488 GtkBuilder *builder = gtk_builder_new ();
489 GtkWidget *dialog = NULL;
490 GtkWidget *char_table_combobox;
491 GtkWidget *layout_table_combobox;
492 GtkWidget *default_table;
493 GtkWidget *keyboard_table;
494 GtkWidget *keyboard_frame;
495 GtkWidget *apply_button;
496 GtkWidget *ok_button;
497 GtkWidget *cancel_button;
498 GtkWidget *ok_dialog;
499 GtkWidget *cancel_dialog;
500 InputPadWindowKbduiName *list;
501 static ButtonClickData button_data_ok;
502 static ButtonClickData button_data_cancel;
503
504 if (!filename ||
505 !g_file_test (filename, G_FILE_TEST_EXISTS)) {
506 g_error ("File Not Found: %s\n", filename ? filename : "(null)");
507 return NULL;
508 }
509
510 gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE);
511 gtk_builder_add_from_file (builder, filename, &error);
512 if (error) {
513 g_error ("ERROR: %s\n",
514 error ? error->message ? error->message : "" : "");
515 g_error_free (error);
516 return NULL;
517 }
518
519 dialog = GTK_WIDGET (gtk_builder_get_object (builder, "setup_dialog"));
520 gtk_window_set_icon_from_file (GTK_WINDOW (dialog),
521 DATAROOTDIR "/pixmaps/input-pad.png",
522 &error);
523 error = NULL;
524 gtk_window_set_default_icon_from_file (DATAROOTDIR "/pixmaps/input-pad.png",
525 &error);
526
527 create_about_vbox (builder);
528
529 char_table_combobox = GTK_WIDGET (gtk_builder_get_object (builder, "char_table_combo_box"));
530 layout_table_combobox = GTK_WIDGET (gtk_builder_get_object (builder, "layout_table_combo_box"));
531 default_table = GTK_WIDGET (gtk_builder_get_object (builder, "default_table"));
532 keyboard_table = GTK_WIDGET (gtk_builder_get_object (builder, "keyboard_only_table"));
533 keyboard_frame = GTK_WIDGET (gtk_builder_get_object (builder, "keyboard_only_frame"));
534 apply_button = GTK_WIDGET (gtk_builder_get_object (builder, "button_apply"));
535 ok_button = GTK_WIDGET (gtk_builder_get_object (builder, "button_ok"));
536 ok_dialog = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_ok"));
537 cancel_button = GTK_WIDGET (gtk_builder_get_object (builder, "button_cancel"));
538 cancel_dialog = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_cancel"));
539
540 #if 0
541 if (config) {
542 g_signal_connect (G_OBJECT (config), "value-changed",
543 G_CALLBACK (on_value_changed), NULL);
544 }
545 #endif
546 set_combobox_appearance_default_value (char_table_combobox, config);
547 g_signal_connect (G_OBJECT (char_table_combobox), "changed",
548 G_CALLBACK (on_combobox_appearance_changed),
549 (gpointer) config);
550 set_combobox_appearance_default_value (layout_table_combobox, config);
551 g_signal_connect (G_OBJECT (layout_table_combobox), "changed",
552 G_CALLBACK (on_combobox_appearance_changed),
553 (gpointer) config);
554
555 list = input_pad_window_get_kbdui_name_list ();
556 if (list == NULL) {
557 gtk_widget_hide (keyboard_frame);
558 } else {
559 #ifdef IBUS_DEPRECATED_LANGUAGE_MENU_ITEM
560 gtk_widget_hide (keyboard_frame);
561 table_add_kbdui_list (default_table, list, config);
562 #else
563 table_add_kbdui_list (default_table, list, config);
564 table_add_kbdui_list (keyboard_table, list, config);
565 #endif
566 destroy_kbdui_list (list);
567 }
568
569 gtk_widget_set_sensitive (apply_button, FALSE);
570 IBUS_INPUT_PAD_CONFIG_GET_CLASS (config)->set_apply_button (config,
571 G_OBJECT (apply_button));
572 g_signal_connect (G_OBJECT (apply_button), "clicked",
573 G_CALLBACK (on_button_apply_clicked),
574 (gpointer) config);
575 button_data_ok.config = config;
576 button_data_ok.msg_dialog = ok_dialog;
577 g_signal_connect (G_OBJECT (ok_button), "clicked",
578 G_CALLBACK (on_button_ok_clicked),
579 (gpointer) &button_data_ok);
580 button_data_cancel.config = config;
581 button_data_cancel.msg_dialog = cancel_dialog;
582 g_signal_connect (G_OBJECT (cancel_button), "clicked",
583 G_CALLBACK (on_button_cancel_clicked),
584 (gpointer) &button_data_cancel);
585
586 g_signal_connect (G_OBJECT (dialog), "delete_event",
587 G_CALLBACK (on_dialog_close),
588 (gpointer) &button_data_cancel);
589
590 gtk_builder_connect_signals (builder, NULL);
591 g_object_unref (G_OBJECT (builder));
592
593 return dialog;
594 }
595
596 void
597 ibus_input_pad_setup_gtk2_init (int *argc, char ***argv)
598 {
599 gtk_init (argc, argv);
600 }
601
602 gboolean
603 ibus_input_pad_setup_gtk2_dialog_run (GtkWidget *dialog)
604 {
605 if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) {
606 return TRUE;
607 }
608 return FALSE;
609 }
610
611 void
612 ibus_input_pad_setup_gtk2_dialog_destroy (GtkWidget *dialog)
613 {
614 gtk_widget_destroy (dialog);
615 }
+0
-34
setup/setup-gtk2.h less more
0 /* vim:set et sts=4: */
1 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifndef __IBUS_INPUT_PAD_SETUP_GTK2_H__
21 #define __IBUS_INPUT_PAD_SETUP_GTK2_H__
22
23 #include <ibus.h>
24 #include <gtk/gtk.h>
25
26 #include "iconfig-gtk2.h"
27
28 void ibus_input_pad_setup_gtk2_init (int *argc, char ***argv);
29 GtkWidget * ibus_input_pad_setup_gtk2_dialog_new (IBusInputPadConfig *config);
30 gboolean ibus_input_pad_setup_gtk2_dialog_run (GtkWidget *dialog);
31 void ibus_input_pad_setup_gtk2_dialog_destroy (GtkWidget *dialog);
32
33 #endif
+0
-383
setup/setup-gtk2.ui less more
0 <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
1 <interface>
2 <object class="GtkListStore" id="char_table_model">
3 <columns>
4 <column type="guint"/>
5 <column type="gchararray"/>
6 <column type="gchararray"/>
7 </columns>
8 <data>
9 <row>
10 <col id="0">0</col>
11 <col id="2" translatable="yes">Nothing</col>
12 </row>
13 <row>
14 <col id="0">1</col>
15 <col id="2" translatable="yes">Custom</col>
16 </row>
17 <row>
18 <col id="0">2</col>
19 <col id="2" translatable="yes">All</col>
20 </row>
21 </data>
22 </object>
23 <object class="GtkListStore" id="layout_table_model">
24 <columns>
25 <column type="guint"/>
26 <column type="gchararray"/>
27 <column type="gchararray"/>
28 </columns>
29 <data>
30 <row>
31 <col id="0">0</col>
32 <col id="2" translatable="yes">Nothing</col>
33 </row>
34 <row>
35 <col id="0">1</col>
36 <col id="2" translatable="yes">Default</col>
37 </row>
38 </data>
39 </object>
40 <object class="GtkDialog" id="setup_dialog">
41 <property name="title" translatable="yes">IBus-Input-Pad Setup</property>
42 <property name="accept-focus">False</property>
43 <child internal-child="vbox">
44 <object class="GtkVBox" id="vbox1">
45 <property name="visible">True</property>
46 <property name="border-width">10</property>
47 <property name="spacing">12</property>
48 <child>
49 <object class="GtkNotebook" id="notebook1">
50 <property name="visible">True</property>
51 <child>
52 <object class="GtkVBox" id="vbox2">
53 <property name="visible">True</property>
54 <property name="orientation">vertical</property>
55 <property name="spacing">12</property>
56 <child>
57 <object class="GtkFrame" id="default_frame">
58 <property name="visible">True</property>
59 <property name="shadow_type">none</property>
60 <child>
61 <object class="GtkAlignment" id="alignment1">
62 <property name="visible">True</property>
63 <!-- Use ypad instead of top_padding -->
64 <property name="bottom_padding">12</property>
65 <property name="left_padding">12</property>
66 <property name="right_padding">12</property>
67 <child>
68 <object class="GtkVBox" id="default_vbox">
69 <property name="visible">True</property>
70 <child>
71 <object class="GtkTable" id="default_table">
72 <property name="visible">True</property>
73 <property name="n_rows">3</property>
74 <property name="n_columns">2</property>
75 <property name="column_spacing">12</property>
76 <property name="row_spacing">6</property>
77 <child>
78 <object class="GtkLabel" id="label4">
79 <property name="visible">True</property>
80 <property name="label" translatable="yes">_Character Table Type:</property>
81 <property name="tooltip_text" translatable="yes">Whether you show the character table or not</property>
82 <property name="use_underline">True</property>
83 <property name="justify">right</property>
84 <property name="xalign">0</property>
85 </object>
86 <packing>
87 <property name="x_options">GTK_FILL</property>
88 </packing>
89 </child>
90 <child>
91 <object class="GtkComboBox" id="char_table_combo_box">
92 <property name="visible">True</property>
93 <property name="add_tearoffs">False</property>
94 <property name="focus_on_click">True</property>
95 <property name="model">char_table_model</property>
96 <child>
97 <object class="GtkCellRendererText" id="renderer1"/>
98 <attributes>
99 <attribute name="text">2</attribute>
100 </attributes>
101 </child>
102 </object>
103 <packing>
104 <property name="left_attach">1</property>
105 <property name="right_attach">2</property>
106 </packing>
107 </child>
108 <child>
109 <object class="GtkLabel" id="label5">
110 <property name="visible">True</property>
111 <property name="label" translatable="yes">_Keyboard Layout Type:</property>
112 <property name="tooltip_text" translatable="yes">Whether you show the keyboard layout or not</property>
113 <property name="use_underline">True</property>
114 <property name="justify">right</property>
115 <property name="xalign">0</property>
116 </object>
117 <packing>
118 <property name="x_options">GTK_FILL</property>
119 <property name="top_attach">1</property>
120 <property name="bottom_attach">2</property>
121 </packing>
122 </child>
123 <child>
124 <object class="GtkComboBox" id="layout_table_combo_box">
125 <property name="visible">True</property>
126 <property name="add_tearoffs">False</property>
127 <property name="focus_on_click">True</property>
128 <property name="model">layout_table_model</property>
129 <child>
130 <object class="GtkCellRendererText" id="renderer2"/>
131 <attributes>
132 <attribute name="text">2</attribute>
133 </attributes>
134 </child>
135 </object>
136 <packing>
137 <property name="left_attach">1</property>
138 <property name="right_attach">2</property>
139 <property name="top_attach">1</property>
140 <property name="bottom_attach">2</property>
141 </packing>
142 </child>
143 <!-- The kbdui extension is checked on runtime.
144 <child></child>
145 <child></child>
146 -->
147 </object>
148 <packing>
149 <property name="expand">False</property>
150 <property name="fill">False</property>
151 <property name="position">0</property>
152 </packing>
153 </child>
154 </object>
155 </child>
156 </object>
157 </child>
158 <child type="label">
159 <object class="GtkLabel" id="label1">
160 <property name="visible">True</property>
161 <property name="label" translatable="yes">&lt;b&gt;Default Appearance&lt;/b&gt;</property>
162 <property name="use_markup">True</property>
163 <property name="ypad">12</property>
164 </object>
165 </child>
166 </object>
167 <packing>
168 <property name="expand">False</property>
169 <property name="fill">False</property>
170 <property name="position">0</property>
171 </packing>
172 </child>
173 <child>
174 <object class="GtkFrame" id="keyboard_only_frame">
175 <property name="visible">True</property>
176 <property name="shadow_type">none</property>
177 <child>
178 <object class="GtkAlignment" id="alignment2">
179 <property name="visible">True</property>
180 <property name="top_padding">12</property>
181 <property name="bottom_padding">12</property>
182 <property name="left_padding">12</property>
183 <property name="right_padding">12</property>
184 <child>
185 <object class="GtkVBox" id="keyboard_only_vbox">
186 <property name="visible">True</property>
187 <child>
188 <object class="GtkTable" id="keyboard_only_table">
189 <property name="visible">True</property>
190 <property name="n_rows">1</property>
191 <property name="n_columns">2</property>
192 <property name="column_spacing">12</property>
193 <property name="row_spacing">6</property>
194 <!-- The kbdui extension is checked on runtime.
195 <child></child>
196 -->
197 </object>
198 <packing>
199 <property name="expand">False</property>
200 <property name="fill">False</property>
201 <property name="position">0</property>
202 </packing>
203 </child>
204 </object>
205 </child>
206 </object>
207 </child>
208 <child type="label">
209 <object class="GtkLabel" id="label6">
210 <property name="visible">True</property>
211 <property name="label" translatable="yes">&lt;b&gt;Keyboard Only Appearance&lt;/b&gt;</property>
212 <property name="use_markup">True</property>
213 </object>
214 </child>
215 </object>
216 </child>
217 </object>
218 </child>
219 <child type="tab">
220 <object class="GtkLabel" id="label2">
221 <property name="visible">True</property>
222 <property name="label" translatable="yes">General</property>
223 </object>
224 <packing>
225 <property name="tab_fill">False</property>
226 </packing>
227 </child>
228 <child>
229 <object class="GtkVBox" id="about_vbox">
230 <property name="visible">True</property>
231 <property name="orientation">vertical</property>
232 <property name="border_width">10</property>
233 <property name="can_focus">True</property>
234 <property name="receives_default">False</property>
235 </object>
236 <packing>
237 <property name="position">1</property>
238 </packing>
239 </child>
240 <child type="tab">
241 <object class="GtkLabel" id="label7">
242 <property name="visible">True</property>
243 <property name="label" translatable="yes">About</property>
244 </object>
245 <packing>
246 <property name="tab_fill">False</property>
247 <property name="position">1</property>
248 </packing>
249 </child>
250 </object>
251 <packing>
252 <property name="expand">False</property>
253 <property name="fill">False</property>
254 <property name="position">0</property>
255 </packing>
256 </child>
257 <child internal-child="action_area">
258 <object class="GtkHButtonBox" id="hbuttonbox1">
259 <property name="visible">True</property>
260 <property name="homogeneous">True</property>
261 <property name="layout_style">end</property>
262 <child>
263 <object class="GtkButton" id="button_apply">
264 <property name="label">gtk-apply</property>
265 <property name="visible">True</property>
266 <property name="use_stock">True</property>
267 </object>
268 <packing>
269 <property name="expand">False</property>
270 <property name="fill">False</property>
271 <property name="position">0</property>
272 </packing>
273 </child>
274 <child>
275 <object class="GtkButton" id="button_cancel">
276 <property name="label">gtk-cancel</property>
277 <property name="visible">True</property>
278 <property name="use_stock">True</property>
279 </object>
280 <packing>
281 <property name="expand">False</property>
282 <property name="fill">False</property>
283 <property name="position">1</property>
284 </packing>
285 </child>
286 <child>
287 <object class="GtkButton" id="button_ok">
288 <property name="label">gtk-ok</property>
289 <property name="visible">True</property>
290 <property name="use_stock">True</property>
291 <property name="receives_default">True</property>
292 </object>
293 <packing>
294 <property name="expand">False</property>
295 <property name="fill">False</property>
296 <property name="position">2</property>
297 </packing>
298 </child>
299 </object>
300 <packing>
301 <property name="expand">False</property>
302 <property name="fill">False</property>
303 <property name="pack_type">end</property>
304 <property name="position">1</property>
305 </packing>
306 </child>
307 </object>
308 </child>
309 </object>
310 <object class="GtkMessageDialog" id="dialog_ok">
311 <property name="border_width">5</property>
312 <property name="resizable">False</property>
313 <property name="modal">True</property>
314 <property name="accept-focus">False</property>
315 <property name="window_position">center-on-parent</property>
316 <property name="type_hint">dialog</property>
317 <property name="skip_taskbar_hint">True</property>
318 <property name="message_type">question</property>
319 <property name="buttons">ok-cancel</property>
320 <property name="text" translatable="yes">Confirm</property>
321 <property name="secondary_text" translatable="yes">Are you sure to close Setup?</property>
322 <child internal-child="vbox">
323 <object class="GtkVBox" id="vbox50">
324 <property name="visible">True</property>
325 <property name="spacing">2</property>
326 <child internal-child="action_area">
327 <object class="GtkHButtonBox" id="hbuttonbox50">
328 <property name="visible">True</property>
329 <property name="layout_style">end</property>
330 </object>
331 <packing>
332 <property name="expand">False</property>
333 <property name="pack_type">end</property>
334 <property name="position">0</property>
335 </packing>
336 </child>
337 </object>
338 </child>
339 </object>
340 <object class="GtkMessageDialog" id="dialog_cancel">
341 <property name="border_width">5</property>
342 <property name="resizable">False</property>
343 <property name="modal">True</property>
344 <property name="accept-focus">False</property>
345 <property name="window_position">center-on-parent</property>
346 <property name="type_hint">dialog</property>
347 <property name="skip_taskbar_hint">True</property>
348 <property name="message_type">question</property>
349 <property name="buttons">ok-cancel</property>
350 <property name="text" translatable="yes">Confirm</property>
351 <property name="secondary_text" translatable="yes">Are you sure to close Setup without saving configure?</property>
352 <child internal-child="vbox">
353 <object class="GtkVBox" id="vbox60">
354 <property name="visible">True</property>
355 <property name="spacing">2</property>
356 <child internal-child="action_area">
357 <object class="GtkHButtonBox" id="hbuttonbox60">
358 <property name="visible">True</property>
359 <property name="layout_style">end</property>
360 </object>
361 <packing>
362 <property name="expand">False</property>
363 <property name="pack_type">end</property>
364 <property name="position">0</property>
365 </packing>
366 </child>
367 </object>
368 </child>
369 </object>
370 <object class="GtkAboutDialog" id="about_dialog">
371 <property name="program-name">IBus-Input-Pad</property>
372 <property name="copyright">Copyright (c) 2010 Takao Fujiwara
373 Copyright (c) 2010 Red Hat, Inc.</property>
374 <property name="comments" translatable="yes">The input pad engine for IBus platform</property>
375 <property name="license">GPL</property>
376 <property name="website">http://code.google.com/p/input-pad/</property>
377 <property name="authors">Takao Fujiwara &lt;takao.fujiwara1@gmail.com&gt;</property>
378 <property name="translator-credits" translatable="yes">translator_credits</property>
379 <property name="logo-icon-name">input-pad</property>
380 <property name="wrap-license">True</property>
381 </object>
382 </interface>