Codebase list libdockapp / upstream/latest
New upstream version 0.7.3 Jeremy Sowden 4 years ago
27 changed file(s) with 45127 addition(s) and 25 deletion(s). Raw diff Collapse all Expand all
0 2020-05-03 Jeremy Sowden <jeremy@azazel.net>
1
2 * configure.ac: bump version to 0.7.3.
3
4 2020-05-03 Jeremy Sowden <jeremy@azazel.net>
5
6 * src/Makefile.am: bump library version to 3.0.1.
7
8 2020-05-03 Jeremy Sowden <jeremy@azazel.net>
9
10 * src/wmgeneral.c, src/wmgeneral.h: fix multiple definitions of
11 global variable. The `display` variable is declared in
12 wmgeneral.h with no explicit linkage. This may result in there
13 being definitions of it in the library and the object-files of
14 applications which link against it, which causes link failures
15 when building these applications with GCC 10, since this uses
16 -fno-common by default. Add `extern` to the header declaration
17 and a separate declaration with no linkage in wmgeneral.c where it
18 is initialized.
19
20 2020-05-03 Jeremy Sowden <jeremy@azazel.net>
21
22 * Makefile.am, autogen: add autogen.
23
24 2019-06-13 Jeremy Sowden <jeremy@azazel.net>
25
26 * src/daargs.c: removed assertion that short-form options have
27 length 2. The mixed-option parsing code includes an assertion
28 that short-form options have a length of two. However, there is
29 no other validation of this requirement and some dock-apps do not
30 comply with it, which means that if one exec's them with an
31 unrecognized option or a mix of short options, the assertion fails
32 and the app aborts. For example:
33
34 $ /usr/bin/wmail --help | grep '\<display\>'
35 -display <string> display to use
36 $ /usr/bin/wmail --blah
37 wmail: daargs.c:126: contains: Assertion `strlen(needle) == 2' failed.
38 Aborted
39
40 Since there is no explicit statement of this requirement, let's
41 replace the assertion with a conditional.
42
43 2019-01-04 Anil N' via Window Maker Development <wmaker-dev@googlegroups.com>
44
45 * src/damain.c: Fix for missing windowname and one more.
46 - "Untitled window" appears in xfce4-wmdock-plugin's enumeration
47 of dockapps using libdockapp.
48 - Reference to string buffer that might not live long enough.
49
50 2018-06-27 Doug Torrance <dtorrance@piedmont.edu>
51
52 * Makefile.am, NEWS: Update old windowmaker.org/dockapps urls to
53 dockapps.net
54
55 2018-05-14 Doug Torrance <dtorrance@piedmont.edu>
56
57 * NEWS, configure.ac: Update mailing list links to new Google
58 Groups.
59
60 2017-08-31 Doug Torrance <dtorrance@piedmont.edu>
61
62 * src/dapixmap.c, src/dockapp.h: Add DAMakeShapeFromData() and
63 DAMakeShapeFromFile() functions. libdockapp supports shaped
64 dockapps with the DASetShape() function, but this function
65 requires as input a bitmap. Previously, there was no support for
66 creating such a bitmap from XBM data without using Xlib directly.
67 We add two functions, DAMakeShapeFromData(), which is a wrapper
68 around XCreateBitmapFromData and allows developers to #include XBM
69 data, and DAMakeShapeFromFile(), which is a wrapper around
70 XReadBitmapfile and lets developers specify the path to an XBM
71 file.
72
73 2017-08-30 Doug Torrance <dtorrance@piedmont.edu>
74
75 * src/daargs.c, src/daargs.h, src/damain.c: Make
76 DAParseArguments() optional. Some dockapps may want to handle
77 command line options themselves, so we make this function
78 optional. Previously, if this function was skipped, then a
79 segfault would result when trying to access the _daContext global
80 while first creating the dockapp window. Now we check if
81 _daContext has been initialized first, and if not, we initialize
82 it.
83
84 2017-08-12 Doug Torrance <dtorrance@piedmont.edu>
85
86 * Makefile.am: Use Requires.private in pkg-config file to avoid
87 overlinking.
88
89 2017-04-27 Doug Torrance <dtorrance@piedmont.edu>
90
91 * src/damain.c: Don't withdraw dockapps in windowed mode. In
92 Window Maker, windows with application class "DockApp" are
93 automatically withdrawn. We don't want this in windowed mode. We
94 use the application name instead, with the usual convention of
95 capitalizing the initial letter.
96
97 2017-04-26 Doug Torrance <dtorrance@piedmont.edu>
98
99 * src/wmgeneral.c: Do not include pathnames in Window Name and
100 Class Properties Patch by Corin-EU from GitHub [1]. In
101 libdockapps file wmgeneral.c, wname is set from argv[0] and is
102 then used to set the window name and class resource. Often
103 applications are called with their full path which then means that
104 the window name has a path in it, thereby requiring an unwieldy
105 path specific string for "Name" in WMState if the applet is to be
106 captured in the WM dock. The simple solution is that wname should
107 be the basename of argv[0] to ensure that the window name for the
108 applet is the simple and obvious one. Thus the inclusion of
109 header file libgen.h is required. Just say "no" to path slashes
110 "/" in window name/class resources ....
111
112 [1] https://github.com/d-torrance/dockapps/issues/5
113
0114 2015-10-20 Doug Torrance <dtorrance@piedmont.edu>
1115
2116 * configure.ac: Bump to version 0.7.2.
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
4 Foundation, 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 command './configure && make && make install'
15 should 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' and
33 enabled with '--cache-file=config.cache' or simply '-C') that saves the
34 results of its tests to speed up reconfiguring. Caching is disabled by
35 default to prevent problems with accidental use of stale cache files.
36
37 If you need to do unusual things to compile the package, please try
38 to figure out how 'configure' could check whether to do them, and mail
39 diffs or instructions to the address given in the 'README' so they can
40 be considered for the next release. If you are using the cache, and at
41 some point 'config.cache' contains results you don't want to keep, you
42 may remove or edit it.
43
44 The file 'configure.ac' (or 'configure.in') is used to create
45 'configure' by a program called 'autoconf'. You need 'configure.ac' if
46 you want to change it or regenerate 'configure' using a newer version of
47 'autoconf'.
48
49 The simplest way to compile this package is:
50
51 1. 'cd' to the directory containing the package's source code and type
52 './configure' to configure the package for your system.
53
54 Running 'configure' might take a while. While running, it prints
55 some messages telling which features it is checking for.
56
57 2. Type 'make' to compile the package.
58
59 3. Optionally, type 'make check' to run any self-tests that come with
60 the package, generally using the just-built uninstalled binaries.
61
62 4. Type 'make install' to install the programs and any data files and
63 documentation. When installing into a prefix owned by root, it is
64 recommended that the package be configured and built as a regular
65 user, and only the 'make install' phase executed with root
66 privileges.
67
68 5. Optionally, type 'make installcheck' to repeat any self-tests, but
69 this time using the binaries in their final installed location.
70 This target does not install anything. Running this target as a
71 regular user, particularly if the prior 'make install' required
72 root privileges, verifies that the installation completed
73 correctly.
74
75 6. You can remove the program binaries and object files from the
76 source code directory by typing 'make clean'. To also remove the
77 files that 'configure' created (so you can compile the package for
78 a different kind of computer), type 'make distclean'. There is
79 also a 'make maintainer-clean' target, but that is intended mainly
80 for the package's developers. If you use it, you may have to get
81 all sorts of other programs in order to regenerate files that came
82 with the distribution.
83
84 7. Often, you can also type 'make uninstall' to remove the installed
85 files again. In practice, not all packages have tested that
86 uninstallation works correctly, even though it is required by the
87 GNU Coding Standards.
88
89 8. Some packages, particularly those that use Automake, provide 'make
90 distcheck', which can by used by developers to test that all other
91 targets like 'make install' and 'make uninstall' work correctly.
92 This target is generally not run by end users.
93
94 Compilers and Options
95 =====================
96
97 Some systems require unusual options for compilation or linking that
98 the 'configure' script does not know about. Run './configure --help'
99 for details on some of the pertinent environment variables.
100
101 You can give 'configure' initial values for configuration parameters
102 by setting variables in the command line or in the environment. Here is
103 an example:
104
105 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
106
107 *Note Defining Variables::, for more details.
108
109 Compiling For Multiple Architectures
110 ====================================
111
112 You can compile the package for more than one kind of computer at the
113 same time, by placing the object files for each architecture in their
114 own directory. To do this, you can use GNU 'make'. 'cd' to the
115 directory where you want the object files and executables to go and run
116 the 'configure' script. 'configure' automatically checks for the source
117 code in the directory that 'configure' is in and in '..'. This is known
118 as a "VPATH" build.
119
120 With a non-GNU 'make', it is safer to compile the package for one
121 architecture at a time in the source code directory. After you have
122 installed the package for one architecture, use 'make distclean' before
123 reconfiguring for another architecture.
124
125 On MacOS X 10.5 and later systems, you can create libraries and
126 executables that work on multiple system types--known as "fat" or
127 "universal" binaries--by specifying multiple '-arch' options to the
128 compiler but only a single '-arch' option to the preprocessor. Like
129 this:
130
131 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
132 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
133 CPP="gcc -E" CXXCPP="g++ -E"
134
135 This is not guaranteed to produce working output in all cases, you
136 may have to build one architecture at a time and combine the results
137 using the 'lipo' tool if you have problems.
138
139 Installation Names
140 ==================
141
142 By default, 'make install' installs the package's commands under
143 '/usr/local/bin', include files under '/usr/local/include', etc. You
144 can specify an installation prefix other than '/usr/local' by giving
145 'configure' the option '--prefix=PREFIX', where PREFIX must be an
146 absolute file name.
147
148 You can specify separate installation prefixes for
149 architecture-specific files and architecture-independent files. If you
150 pass the option '--exec-prefix=PREFIX' to 'configure', the package uses
151 PREFIX as the prefix for installing programs and libraries.
152 Documentation and other data files still use the regular prefix.
153
154 In addition, if you use an unusual directory layout you can give
155 options like '--bindir=DIR' to specify different values for particular
156 kinds of files. Run 'configure --help' for a list of the directories
157 you can set and what kinds of files go in them. In general, the default
158 for these options is expressed in terms of '${prefix}', so that
159 specifying just '--prefix' will affect all of the other directory
160 specifications that were not explicitly provided.
161
162 The most portable way to affect installation locations is to pass the
163 correct locations to 'configure'; however, many packages provide one or
164 both of the following shortcuts of passing variable assignments to the
165 'make install' command line to change installation locations without
166 having to reconfigure or recompile.
167
168 The first method involves providing an override variable for each
169 affected directory. For example, 'make install
170 prefix=/alternate/directory' will choose an alternate location for all
171 directory configuration variables that were expressed in terms of
172 '${prefix}'. Any directories that were specified during 'configure',
173 but not in terms of '${prefix}', must each be overridden at install time
174 for the entire installation to be relocated. The approach of makefile
175 variable overrides for each directory variable is required by the GNU
176 Coding Standards, and ideally causes no recompilation. However, some
177 platforms have known limitations with the semantics of shared libraries
178 that end up requiring recompilation when using this method, particularly
179 noticeable in packages that use GNU Libtool.
180
181 The second method involves providing the 'DESTDIR' variable. For
182 example, 'make install DESTDIR=/alternate/directory' will prepend
183 '/alternate/directory' before all installation names. The approach of
184 'DESTDIR' overrides is not required by the GNU Coding Standards, and
185 does not work on platforms that have drive letters. On the other hand,
186 it does better at avoiding recompilation issues, and works well even
187 when some directory options were not specified in terms of '${prefix}'
188 at 'configure' time.
189
190 Optional Features
191 =================
192
193 If the package supports it, you can cause programs to be installed
194 with an extra prefix or suffix on their names by giving 'configure' the
195 option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'.
196
197 Some packages pay attention to '--enable-FEATURE' options to
198 'configure', where FEATURE indicates an optional part of the package.
199 They may also pay attention to '--with-PACKAGE' options, where PACKAGE
200 is something like 'gnu-as' or 'x' (for the X Window System). The
201 'README' should mention any '--enable-' and '--with-' options that the
202 package recognizes.
203
204 For packages that use the X Window System, 'configure' can usually
205 find the X include and library files automatically, but if it doesn't,
206 you can use the 'configure' options '--x-includes=DIR' and
207 '--x-libraries=DIR' to specify their locations.
208
209 Some packages offer the ability to configure how verbose the
210 execution of 'make' will be. For these packages, running './configure
211 --enable-silent-rules' sets the default to minimal output, which can be
212 overridden with 'make V=1'; while running './configure
213 --disable-silent-rules' sets the default to verbose, which can be
214 overridden with 'make V=0'.
215
216 Particular systems
217 ==================
218
219 On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC
220 is not installed, it is recommended to use the following options in
221 order to use an ANSI C compiler:
222
223 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
224
225 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
226
227 HP-UX 'make' updates targets which have the same time stamps as their
228 prerequisites, which makes it generally unusable when shipped generated
229 files such as 'configure' are involved. Use GNU 'make' instead.
230
231 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
232 parse its '<wchar.h>' header file. The option '-nodtk' can be used as a
233 workaround. If GNU CC is not installed, it is therefore recommended to
234 try
235
236 ./configure CC="cc"
237
238 and if that doesn't work, try
239
240 ./configure CC="cc -nodtk"
241
242 On Solaris, don't put '/usr/ucb' early in your 'PATH'. This
243 directory contains several dysfunctional programs; working variants of
244 these programs are available in '/usr/bin'. So, if you need '/usr/ucb'
245 in your 'PATH', put it _after_ '/usr/bin'.
246
247 On Haiku, software installed for all users goes in '/boot/common',
248 not '/usr/local'. It is recommended to use the following options:
249
250 ./configure --prefix=/boot/common
251
252 Specifying the System Type
253 ==========================
254
255 There may be some features 'configure' cannot figure out
256 automatically, but needs to determine by the type of machine the package
257 will run on. Usually, assuming the package is built to be run on the
258 _same_ architectures, 'configure' can figure that out, but if it prints
259 a message saying it cannot guess the machine type, give it the
260 '--build=TYPE' option. TYPE can either be a short name for the system
261 type, such as 'sun4', or a canonical name which has the form:
262
263 CPU-COMPANY-SYSTEM
264
265 where SYSTEM can have one of these forms:
266
267 OS
268 KERNEL-OS
269
270 See the file 'config.sub' for the possible values of each field. If
271 'config.sub' isn't included in this package, then this package doesn't
272 need to know the machine type.
273
274 If you are _building_ compiler tools for cross-compiling, you should
275 use the option '--target=TYPE' to select the type of system they will
276 produce code for.
277
278 If you want to _use_ a cross compiler, that generates code for a
279 platform different from the build platform, you should specify the
280 "host" platform (i.e., that on which the generated programs will
281 eventually be run) with '--host=TYPE'.
282
283 Sharing Defaults
284 ================
285
286 If you want to set default values for 'configure' scripts to share,
287 you can create a site shell script called 'config.site' that gives
288 default values for variables like 'CC', 'cache_file', and 'prefix'.
289 'configure' looks for 'PREFIX/share/config.site' if it exists, then
290 'PREFIX/etc/config.site' if it exists. Or, you can set the
291 'CONFIG_SITE' environment variable to the location of the site script.
292 A warning: not all 'configure' scripts look for a site script.
293
294 Defining Variables
295 ==================
296
297 Variables not defined in a site shell script can be set in the
298 environment passed to 'configure'. However, some packages may run
299 configure again during the build, and the customized values of these
300 variables may be lost. In order to avoid this problem, you should set
301 them in the 'configure' command line, using 'VAR=value'. For example:
302
303 ./configure CC=/usr/local2/bin/gcc
304
305 causes the specified 'gcc' to be used as the C compiler (unless it is
306 overridden in the site shell script).
307
308 Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an
309 Autoconf limitation. Until the limitation is lifted, you can use this
310 workaround:
311
312 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
313
314 'configure' Invocation
315 ======================
316
317 'configure' recognizes the following options to control how it
318 operates.
319
320 '--help'
321 '-h'
322 Print a summary of all of the options to 'configure', and exit.
323
324 '--help=short'
325 '--help=recursive'
326 Print a summary of the options unique to this package's
327 'configure', and exit. The 'short' variant lists options used only
328 in the top level, while the 'recursive' variant lists options also
329 present in any nested packages.
330
331 '--version'
332 '-V'
333 Print the version of Autoconf used to generate the 'configure'
334 script, and exit.
335
336 '--cache-file=FILE'
337 Enable the cache: use and save the results of the tests in FILE,
338 traditionally 'config.cache'. FILE defaults to '/dev/null' to
339 disable caching.
340
341 '--config-cache'
342 '-C'
343 Alias for '--cache-file=config.cache'.
344
345 '--quiet'
346 '--silent'
347 '-q'
348 Do not print messages saying which checks are being made. To
349 suppress all normal output, redirect it to '/dev/null' (any error
350 messages will still be shown).
351
352 '--srcdir=DIR'
353 Look for the package's source code in directory DIR. Usually
354 'configure' can determine that directory automatically.
355
356 '--prefix=DIR'
357 Use DIR as the installation prefix. *note Installation Names:: for
358 more details, including other options available for fine-tuning the
359 installation locations.
360
361 '--no-create'
362 '-n'
363 Run the configure checks, but stop before creating any output
364 files.
365
366 'configure' also accepts some other, not widely useful, options. Run
367 'configure --help' for more details.
1616 @echo "Generating $@"
1717 @echo 'Name: dockapp' > $@
1818 @echo 'Description: Window Maker dockapp support' >> $@
19 @echo 'URL: http://windowmaker.org/dockapps/?name=libdockapp' >> $@
19 @echo 'URL: https://www.dockapps.net/libdockapp' >> $@
2020 @echo 'Version: $(VERSION)' >> $@
21 @echo 'Requires: x11 xext xpm' >> $@
21 @echo 'Requires.private: x11 xext xpm' >> $@
2222 @echo 'Libs: -L${libdir} -ldockapp' >> $@
2323 @echo 'Cflags: -I${includedir}' >> $@
2424
2525 CLEANFILES = dockapp.pc
2626
27 EXTRA_DIST = BUGS
27 EXTRA_DIST = BUGS autogen
2828
2929 update-changelog:
3030 @git log `git log -1 --pretty=%h -- ChangeLog`..HEAD \
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 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 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 subdir = .
91 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
92 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
93 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
94 $(ACLOCAL_M4)
95 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
96 $(am__configure_deps) $(dist_pkgconfig_DATA) \
97 $(am__DIST_COMMON)
98 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
99 configure.lineno config.status.lineno
100 mkinstalldirs = $(install_sh) -d
101 CONFIG_CLEAN_FILES =
102 CONFIG_CLEAN_VPATH_FILES =
103 AM_V_P = $(am__v_P_@AM_V@)
104 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
105 am__v_P_0 = false
106 am__v_P_1 = :
107 AM_V_GEN = $(am__v_GEN_@AM_V@)
108 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
109 am__v_GEN_0 = @echo " GEN " $@;
110 am__v_GEN_1 =
111 AM_V_at = $(am__v_at_@AM_V@)
112 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
113 am__v_at_0 = @
114 am__v_at_1 =
115 SOURCES =
116 DIST_SOURCES =
117 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
118 ctags-recursive dvi-recursive html-recursive info-recursive \
119 install-data-recursive install-dvi-recursive \
120 install-exec-recursive install-html-recursive \
121 install-info-recursive install-pdf-recursive \
122 install-ps-recursive install-recursive installcheck-recursive \
123 installdirs-recursive pdf-recursive ps-recursive \
124 tags-recursive uninstall-recursive
125 am__can_run_installinfo = \
126 case $$AM_UPDATE_INFO_DIR in \
127 n|no|NO) false;; \
128 *) (install-info --version) >/dev/null 2>&1;; \
129 esac
130 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
131 am__vpath_adj = case $$p in \
132 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
133 *) f=$$p;; \
134 esac;
135 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
136 am__install_max = 40
137 am__nobase_strip_setup = \
138 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
139 am__nobase_strip = \
140 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
141 am__nobase_list = $(am__nobase_strip_setup); \
142 for p in $$list; do echo "$$p $$p"; done | \
143 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
144 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
145 if (++n[$$2] == $(am__install_max)) \
146 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
147 END { for (dir in files) print dir, files[dir] }'
148 am__base_list = \
149 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
150 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
151 am__uninstall_files_from_dir = { \
152 test -z "$$files" \
153 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
154 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
155 $(am__cd) "$$dir" && rm -f $$files; }; \
156 }
157 am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
158 DATA = $(dist_pkgconfig_DATA)
159 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
160 distclean-recursive maintainer-clean-recursive
161 am__recursive_targets = \
162 $(RECURSIVE_TARGETS) \
163 $(RECURSIVE_CLEAN_TARGETS) \
164 $(am__extra_recursive_targets)
165 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
166 cscope distdir distdir-am dist dist-all distcheck
167 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
168 # Read a list of newline-separated strings from the standard input,
169 # and print each of them once, without duplicates. Input order is
170 # *not* preserved.
171 am__uniquify_input = $(AWK) '\
172 BEGIN { nonempty = 0; } \
173 { items[$$0] = 1; nonempty = 1; } \
174 END { if (nonempty) { for (i in items) print i; }; } \
175 '
176 # Make sure the list of sources is unique. This is necessary because,
177 # e.g., the same source file might be shared among _SOURCES variables
178 # for different programs/libraries.
179 am__define_uniq_tagged_files = \
180 list='$(am__tagged_files)'; \
181 unique=`for i in $$list; do \
182 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
183 done | $(am__uniquify_input)`
184 ETAGS = etags
185 CTAGS = ctags
186 CSCOPE = cscope
187 DIST_SUBDIRS = src fonts examples
188 am__DIST_COMMON = $(srcdir)/Makefile.in AUTHORS COPYING ChangeLog \
189 INSTALL NEWS README compile config.guess config.sub install-sh \
190 ltmain.sh missing
191 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
192 distdir = $(PACKAGE)-$(VERSION)
193 top_distdir = $(distdir)
194 am__remove_distdir = \
195 if test -d "$(distdir)"; then \
196 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
197 && rm -rf "$(distdir)" \
198 || { sleep 5 && rm -rf "$(distdir)"; }; \
199 else :; fi
200 am__post_remove_distdir = $(am__remove_distdir)
201 am__relativize = \
202 dir0=`pwd`; \
203 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
204 sed_rest='s,^[^/]*/*,,'; \
205 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
206 sed_butlast='s,/*[^/]*$$,,'; \
207 while test -n "$$dir1"; do \
208 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
209 if test "$$first" != "."; then \
210 if test "$$first" = ".."; then \
211 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
212 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
213 else \
214 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
215 if test "$$first2" = "$$first"; then \
216 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
217 else \
218 dir2="../$$dir2"; \
219 fi; \
220 dir0="$$dir0"/"$$first"; \
221 fi; \
222 fi; \
223 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
224 done; \
225 reldir="$$dir2"
226 DIST_ARCHIVES = $(distdir).tar.gz
227 GZIP_ENV = --best
228 DIST_TARGETS = dist-gzip
229 distuninstallcheck_listfiles = find . -type f -print
230 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
231 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
232 distcleancheck_listfiles = find . -type f -print
233 ACLOCAL = @ACLOCAL@
234 AMTAR = @AMTAR@
235 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
236 AR = @AR@
237 AUTOCONF = @AUTOCONF@
238 AUTOHEADER = @AUTOHEADER@
239 AUTOMAKE = @AUTOMAKE@
240 AWK = @AWK@
241 CC = @CC@
242 CCDEPMODE = @CCDEPMODE@
243 CFLAGS = @CFLAGS@
244 CPP = @CPP@
245 CPPFLAGS = @CPPFLAGS@
246 CYGPATH_W = @CYGPATH_W@
247 DEFS = @DEFS@
248 DEPDIR = @DEPDIR@
249 DFLAGS = @DFLAGS@
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 FCCACHE = @FCCACHE@
259 FGREP = @FGREP@
260 FONTDIR = @FONTDIR@
261 FONTROOTDIR = @FONTROOTDIR@
262 GREP = @GREP@
263 INSTALL = @INSTALL@
264 INSTALL_DATA = @INSTALL_DATA@
265 INSTALL_PROGRAM = @INSTALL_PROGRAM@
266 INSTALL_SCRIPT = @INSTALL_SCRIPT@
267 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
268 LD = @LD@
269 LDFLAGS = @LDFLAGS@
270 LIBOBJS = @LIBOBJS@
271 LIBS = @LIBS@
272 LIBTOOL = @LIBTOOL@
273 LIPO = @LIPO@
274 LN_S = @LN_S@
275 LTLIBOBJS = @LTLIBOBJS@
276 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
277 MAKEINFO = @MAKEINFO@
278 MANIFEST_TOOL = @MANIFEST_TOOL@
279 MKDIR_P = @MKDIR_P@
280 MKFONTDIR = @MKFONTDIR@
281 NM = @NM@
282 NMEDIT = @NMEDIT@
283 OBJDUMP = @OBJDUMP@
284 OBJEXT = @OBJEXT@
285 OTOOL = @OTOOL@
286 OTOOL64 = @OTOOL64@
287 PACKAGE = @PACKAGE@
288 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
289 PACKAGE_NAME = @PACKAGE_NAME@
290 PACKAGE_STRING = @PACKAGE_STRING@
291 PACKAGE_TARNAME = @PACKAGE_TARNAME@
292 PACKAGE_URL = @PACKAGE_URL@
293 PACKAGE_VERSION = @PACKAGE_VERSION@
294 PATH_SEPARATOR = @PATH_SEPARATOR@
295 PKG_CONFIG = @PKG_CONFIG@
296 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
297 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
298 RANLIB = @RANLIB@
299 RUN_FCCACHE = @RUN_FCCACHE@
300 SED = @SED@
301 SET_MAKE = @SET_MAKE@
302 SHELL = @SHELL@
303 STRIP = @STRIP@
304 VERSION = @VERSION@
305 X11_CFLAGS = @X11_CFLAGS@
306 X11_LIBS = @X11_LIBS@
307 Xext_CFLAGS = @Xext_CFLAGS@
308 Xext_LIBS = @Xext_LIBS@
309 abs_builddir = @abs_builddir@
310 abs_srcdir = @abs_srcdir@
311 abs_top_builddir = @abs_top_builddir@
312 abs_top_srcdir = @abs_top_srcdir@
313 ac_ct_AR = @ac_ct_AR@
314 ac_ct_CC = @ac_ct_CC@
315 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
316 am__include = @am__include@
317 am__leading_dot = @am__leading_dot@
318 am__quote = @am__quote@
319 am__tar = @am__tar@
320 am__untar = @am__untar@
321 bindir = @bindir@
322 build = @build@
323 build_alias = @build_alias@
324 build_cpu = @build_cpu@
325 build_os = @build_os@
326 build_vendor = @build_vendor@
327 builddir = @builddir@
328 datadir = @datadir@
329 datarootdir = @datarootdir@
330 docdir = @docdir@
331 dvidir = @dvidir@
332 exec_prefix = @exec_prefix@
333 host = @host@
334 host_alias = @host_alias@
335 host_cpu = @host_cpu@
336 host_os = @host_os@
337 host_vendor = @host_vendor@
338 htmldir = @htmldir@
339 includedir = @includedir@
340 infodir = @infodir@
341 install_sh = @install_sh@
342 libdir = @libdir@
343 libexecdir = @libexecdir@
344 localedir = @localedir@
345 localstatedir = @localstatedir@
346 mandir = @mandir@
347 mkdir_p = @mkdir_p@
348 oldincludedir = @oldincludedir@
349 pdfdir = @pdfdir@
350 prefix = @prefix@
351 program_transform_name = @program_transform_name@
352 psdir = @psdir@
353 runstatedir = @runstatedir@
354 sbindir = @sbindir@
355 sharedstatedir = @sharedstatedir@
356 srcdir = @srcdir@
357 sysconfdir = @sysconfdir@
358 target_alias = @target_alias@
359 top_build_prefix = @top_build_prefix@
360 top_builddir = @top_builddir@
361 top_srcdir = @top_srcdir@
362 xpm_CFLAGS = @xpm_CFLAGS@
363 xpm_LIBS = @xpm_LIBS@
364 @COND_FONT_FALSE@COND_FONT =
365 @COND_FONT_TRUE@COND_FONT = fonts
366 @COND_EXAMPLES_TRUE@COND_XMPS = examples
367 SUBDIRS = src $(COND_FONT) $(COND_XMPS)
368 pkgconfigdir = $(libdir)/pkgconfig
369 dist_pkgconfig_DATA = dockapp.pc
370 CLEANFILES = dockapp.pc
371 EXTRA_DIST = BUGS autogen
372 all: all-recursive
373
374 .SUFFIXES:
375 am--refresh: Makefile
376 @:
377 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
378 @for dep in $?; do \
379 case '$(am__configure_deps)' in \
380 *$$dep*) \
381 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
382 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
383 && exit 0; \
384 exit 1;; \
385 esac; \
386 done; \
387 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
388 $(am__cd) $(top_srcdir) && \
389 $(AUTOMAKE) --gnu Makefile
390 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
391 @case '$?' in \
392 *config.status*) \
393 echo ' $(SHELL) ./config.status'; \
394 $(SHELL) ./config.status;; \
395 *) \
396 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
397 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
398 esac;
399
400 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
401 $(SHELL) ./config.status --recheck
402
403 $(top_srcdir)/configure: $(am__configure_deps)
404 $(am__cd) $(srcdir) && $(AUTOCONF)
405 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
406 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
407 $(am__aclocal_m4_deps):
408
409 mostlyclean-libtool:
410 -rm -f *.lo
411
412 clean-libtool:
413 -rm -rf .libs _libs
414
415 distclean-libtool:
416 -rm -f libtool config.lt
417 install-dist_pkgconfigDATA: $(dist_pkgconfig_DATA)
418 @$(NORMAL_INSTALL)
419 @list='$(dist_pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
420 if test -n "$$list"; then \
421 echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
422 $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
423 fi; \
424 for p in $$list; do \
425 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
426 echo "$$d$$p"; \
427 done | $(am__base_list) | \
428 while read files; do \
429 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
430 $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
431 done
432
433 uninstall-dist_pkgconfigDATA:
434 @$(NORMAL_UNINSTALL)
435 @list='$(dist_pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
436 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
437 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
438
439 # This directory's subdirectories are mostly independent; you can cd
440 # into them and run 'make' without going through this Makefile.
441 # To change the values of 'make' variables: instead of editing Makefiles,
442 # (1) if the variable is set in 'config.status', edit 'config.status'
443 # (which will cause the Makefiles to be regenerated when you run 'make');
444 # (2) otherwise, pass the desired values on the 'make' command line.
445 $(am__recursive_targets):
446 @fail=; \
447 if $(am__make_keepgoing); then \
448 failcom='fail=yes'; \
449 else \
450 failcom='exit 1'; \
451 fi; \
452 dot_seen=no; \
453 target=`echo $@ | sed s/-recursive//`; \
454 case "$@" in \
455 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
456 *) list='$(SUBDIRS)' ;; \
457 esac; \
458 for subdir in $$list; do \
459 echo "Making $$target in $$subdir"; \
460 if test "$$subdir" = "."; then \
461 dot_seen=yes; \
462 local_target="$$target-am"; \
463 else \
464 local_target="$$target"; \
465 fi; \
466 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
467 || eval $$failcom; \
468 done; \
469 if test "$$dot_seen" = "no"; then \
470 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
471 fi; test -z "$$fail"
472
473 ID: $(am__tagged_files)
474 $(am__define_uniq_tagged_files); mkid -fID $$unique
475 tags: tags-recursive
476 TAGS: tags
477
478 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
479 set x; \
480 here=`pwd`; \
481 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
482 include_option=--etags-include; \
483 empty_fix=.; \
484 else \
485 include_option=--include; \
486 empty_fix=; \
487 fi; \
488 list='$(SUBDIRS)'; for subdir in $$list; do \
489 if test "$$subdir" = .; then :; else \
490 test ! -f $$subdir/TAGS || \
491 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
492 fi; \
493 done; \
494 $(am__define_uniq_tagged_files); \
495 shift; \
496 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
497 test -n "$$unique" || unique=$$empty_fix; \
498 if test $$# -gt 0; then \
499 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
500 "$$@" $$unique; \
501 else \
502 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
503 $$unique; \
504 fi; \
505 fi
506 ctags: ctags-recursive
507
508 CTAGS: ctags
509 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
510 $(am__define_uniq_tagged_files); \
511 test -z "$(CTAGS_ARGS)$$unique" \
512 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
513 $$unique
514
515 GTAGS:
516 here=`$(am__cd) $(top_builddir) && pwd` \
517 && $(am__cd) $(top_srcdir) \
518 && gtags -i $(GTAGS_ARGS) "$$here"
519 cscope: cscope.files
520 test ! -s cscope.files \
521 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
522 clean-cscope:
523 -rm -f cscope.files
524 cscope.files: clean-cscope cscopelist
525 cscopelist: cscopelist-recursive
526
527 cscopelist-am: $(am__tagged_files)
528 list='$(am__tagged_files)'; \
529 case "$(srcdir)" in \
530 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
531 *) sdir=$(subdir)/$(srcdir) ;; \
532 esac; \
533 for i in $$list; do \
534 if test -f "$$i"; then \
535 echo "$(subdir)/$$i"; \
536 else \
537 echo "$$sdir/$$i"; \
538 fi; \
539 done >> $(top_builddir)/cscope.files
540
541 distclean-tags:
542 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
543 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
544
545 distdir: $(BUILT_SOURCES)
546 $(MAKE) $(AM_MAKEFLAGS) distdir-am
547
548 distdir-am: $(DISTFILES)
549 $(am__remove_distdir)
550 test -d "$(distdir)" || mkdir "$(distdir)"
551 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
552 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
553 list='$(DISTFILES)'; \
554 dist_files=`for file in $$list; do echo $$file; done | \
555 sed -e "s|^$$srcdirstrip/||;t" \
556 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
557 case $$dist_files in \
558 */*) $(MKDIR_P) `echo "$$dist_files" | \
559 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
560 sort -u` ;; \
561 esac; \
562 for file in $$dist_files; do \
563 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
564 if test -d $$d/$$file; then \
565 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
566 if test -d "$(distdir)/$$file"; then \
567 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
568 fi; \
569 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
570 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
571 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
572 fi; \
573 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
574 else \
575 test -f "$(distdir)/$$file" \
576 || cp -p $$d/$$file "$(distdir)/$$file" \
577 || exit 1; \
578 fi; \
579 done
580 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
581 if test "$$subdir" = .; then :; else \
582 $(am__make_dryrun) \
583 || test -d "$(distdir)/$$subdir" \
584 || $(MKDIR_P) "$(distdir)/$$subdir" \
585 || exit 1; \
586 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
587 $(am__relativize); \
588 new_distdir=$$reldir; \
589 dir1=$$subdir; dir2="$(top_distdir)"; \
590 $(am__relativize); \
591 new_top_distdir=$$reldir; \
592 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
593 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
594 ($(am__cd) $$subdir && \
595 $(MAKE) $(AM_MAKEFLAGS) \
596 top_distdir="$$new_top_distdir" \
597 distdir="$$new_distdir" \
598 am__remove_distdir=: \
599 am__skip_length_check=: \
600 am__skip_mode_fix=: \
601 distdir) \
602 || exit 1; \
603 fi; \
604 done
605 -test -n "$(am__skip_mode_fix)" \
606 || find "$(distdir)" -type d ! -perm -755 \
607 -exec chmod u+rwx,go+rx {} \; -o \
608 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
609 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
610 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
611 || chmod -R a+r "$(distdir)"
612 dist-gzip: distdir
613 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
614 $(am__post_remove_distdir)
615
616 dist-bzip2: distdir
617 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
618 $(am__post_remove_distdir)
619
620 dist-lzip: distdir
621 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
622 $(am__post_remove_distdir)
623
624 dist-xz: distdir
625 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
626 $(am__post_remove_distdir)
627
628 dist-zstd: distdir
629 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
630 $(am__post_remove_distdir)
631
632 dist-tarZ: distdir
633 @echo WARNING: "Support for distribution archives compressed with" \
634 "legacy program 'compress' is deprecated." >&2
635 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
636 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
637 $(am__post_remove_distdir)
638
639 dist-shar: distdir
640 @echo WARNING: "Support for shar distribution archives is" \
641 "deprecated." >&2
642 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
643 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
644 $(am__post_remove_distdir)
645
646 dist-zip: distdir
647 -rm -f $(distdir).zip
648 zip -rq $(distdir).zip $(distdir)
649 $(am__post_remove_distdir)
650
651 dist dist-all:
652 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
653 $(am__post_remove_distdir)
654
655 # This target untars the dist file and tries a VPATH configuration. Then
656 # it guarantees that the distribution is self-contained by making another
657 # tarfile.
658 distcheck: dist
659 case '$(DIST_ARCHIVES)' in \
660 *.tar.gz*) \
661 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
662 *.tar.bz2*) \
663 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
664 *.tar.lz*) \
665 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
666 *.tar.xz*) \
667 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
668 *.tar.Z*) \
669 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
670 *.shar.gz*) \
671 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
672 *.zip*) \
673 unzip $(distdir).zip ;;\
674 *.tar.zst*) \
675 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
676 esac
677 chmod -R a-w $(distdir)
678 chmod u+w $(distdir)
679 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
680 chmod a-w $(distdir)
681 test -d $(distdir)/_build || exit 0; \
682 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
683 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
684 && am__cwd=`pwd` \
685 && $(am__cd) $(distdir)/_build/sub \
686 && ../../configure \
687 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
688 $(DISTCHECK_CONFIGURE_FLAGS) \
689 --srcdir=../.. --prefix="$$dc_install_base" \
690 && $(MAKE) $(AM_MAKEFLAGS) \
691 && $(MAKE) $(AM_MAKEFLAGS) dvi \
692 && $(MAKE) $(AM_MAKEFLAGS) check \
693 && $(MAKE) $(AM_MAKEFLAGS) install \
694 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
695 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
696 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
697 distuninstallcheck \
698 && chmod -R a-w "$$dc_install_base" \
699 && ({ \
700 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
701 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
702 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
703 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
704 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
705 } || { rm -rf "$$dc_destdir"; exit 1; }) \
706 && rm -rf "$$dc_destdir" \
707 && $(MAKE) $(AM_MAKEFLAGS) dist \
708 && rm -rf $(DIST_ARCHIVES) \
709 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
710 && cd "$$am__cwd" \
711 || exit 1
712 $(am__post_remove_distdir)
713 @(echo "$(distdir) archives ready for distribution: "; \
714 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
715 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
716 distuninstallcheck:
717 @test -n '$(distuninstallcheck_dir)' || { \
718 echo 'ERROR: trying to run $@ with an empty' \
719 '$$(distuninstallcheck_dir)' >&2; \
720 exit 1; \
721 }; \
722 $(am__cd) '$(distuninstallcheck_dir)' || { \
723 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
724 exit 1; \
725 }; \
726 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
727 || { echo "ERROR: files left after uninstall:" ; \
728 if test -n "$(DESTDIR)"; then \
729 echo " (check DESTDIR support)"; \
730 fi ; \
731 $(distuninstallcheck_listfiles) ; \
732 exit 1; } >&2
733 distcleancheck: distclean
734 @if test '$(srcdir)' = . ; then \
735 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
736 exit 1 ; \
737 fi
738 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
739 || { echo "ERROR: files left in build directory after distclean:" ; \
740 $(distcleancheck_listfiles) ; \
741 exit 1; } >&2
742 check-am: all-am
743 check: check-recursive
744 all-am: Makefile $(DATA)
745 installdirs: installdirs-recursive
746 installdirs-am:
747 for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
748 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
749 done
750 install: install-recursive
751 install-exec: install-exec-recursive
752 install-data: install-data-recursive
753 uninstall: uninstall-recursive
754
755 install-am: all-am
756 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
757
758 installcheck: installcheck-recursive
759 install-strip:
760 if test -z '$(STRIP)'; then \
761 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
762 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
763 install; \
764 else \
765 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
766 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
767 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
768 fi
769 mostlyclean-generic:
770
771 clean-generic:
772 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
773
774 distclean-generic:
775 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
776 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
777
778 maintainer-clean-generic:
779 @echo "This command is intended for maintainers to use"
780 @echo "it deletes files that may require special tools to rebuild."
781 clean: clean-recursive
782
783 clean-am: clean-generic clean-libtool mostlyclean-am
784
785 distclean: distclean-recursive
786 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
787 -rm -f Makefile
788 distclean-am: clean-am distclean-generic distclean-libtool \
789 distclean-tags
790
791 dvi: dvi-recursive
792
793 dvi-am:
794
795 html: html-recursive
796
797 html-am:
798
799 info: info-recursive
800
801 info-am:
802
803 install-data-am: install-dist_pkgconfigDATA
804
805 install-dvi: install-dvi-recursive
806
807 install-dvi-am:
808
809 install-exec-am:
810
811 install-html: install-html-recursive
812
813 install-html-am:
814
815 install-info: install-info-recursive
816
817 install-info-am:
818
819 install-man:
820
821 install-pdf: install-pdf-recursive
822
823 install-pdf-am:
824
825 install-ps: install-ps-recursive
826
827 install-ps-am:
828
829 installcheck-am:
830
831 maintainer-clean: maintainer-clean-recursive
832 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
833 -rm -rf $(top_srcdir)/autom4te.cache
834 -rm -f Makefile
835 maintainer-clean-am: distclean-am maintainer-clean-generic
836
837 mostlyclean: mostlyclean-recursive
838
839 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
840
841 pdf: pdf-recursive
842
843 pdf-am:
844
845 ps: ps-recursive
846
847 ps-am:
848
849 uninstall-am: uninstall-dist_pkgconfigDATA
850
851 .MAKE: $(am__recursive_targets) install-am install-strip
852
853 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
854 am--refresh check check-am clean clean-cscope clean-generic \
855 clean-libtool cscope cscopelist-am ctags ctags-am dist \
856 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
857 dist-xz dist-zip dist-zstd distcheck distclean \
858 distclean-generic distclean-libtool distclean-tags \
859 distcleancheck distdir distuninstallcheck dvi dvi-am html \
860 html-am info info-am install install-am install-data \
861 install-data-am install-dist_pkgconfigDATA install-dvi \
862 install-dvi-am install-exec install-exec-am install-html \
863 install-html-am install-info install-info-am install-man \
864 install-pdf install-pdf-am install-ps install-ps-am \
865 install-strip installcheck installcheck-am installdirs \
866 installdirs-am maintainer-clean maintainer-clean-generic \
867 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
868 ps ps-am tags tags-am uninstall uninstall-am \
869 uninstall-dist_pkgconfigDATA
870
871 .PRECIOUS: Makefile
872
873
874 dockapp.pc: Makefile
875 @echo "Generating $@"
876 @echo 'Name: dockapp' > $@
877 @echo 'Description: Window Maker dockapp support' >> $@
878 @echo 'URL: https://www.dockapps.net/libdockapp' >> $@
879 @echo 'Version: $(VERSION)' >> $@
880 @echo 'Requires.private: x11 xext xpm' >> $@
881 @echo 'Libs: -L${libdir} -ldockapp' >> $@
882 @echo 'Cflags: -I${includedir}' >> $@
883
884 update-changelog:
885 @git log `git log -1 --pretty=%h -- ChangeLog`..HEAD \
886 --pretty --numstat --summary -- . | \
887 git2cl | \
888 sed 's/libdockapp: \?//g' | \
889 sed 's/libdockapp\///g' > ChangeLog.new
890 @mv ChangeLog ChangeLog.old
891 @cat ChangeLog.new ChangeLog.old > ChangeLog
892 @rm ChangeLog.new ChangeLog.old
893
894 # Tell versions [3.59,3.63) of GNU make to not export all variables.
895 # Otherwise a system limit (for SysV at least) may be exceeded.
896 .NOEXPORT:
0 This file is maintained by wmaker-dev@lists.windowmaker.org, and available
1 from http://windowmaker.org/dockapps/?name=libdockapp.
0 This file is maintained by wmaker-dev@googlegroups.com, and available
1 from https://www.dockapps.net/libdockapp.
22
33 News for for all libDockApp users.
44 ----------------------------------
0 # generated automatically by aclocal 1.16.2 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2020 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 dnl fontutil.m4. Generated from fontutil.m4.in by configure.
23 dnl
24 dnl This file comes from X.Org's font-util 1.3.1
25 dnl
26 dnl Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
27 dnl
28 dnl Permission is hereby granted, free of charge, to any person obtaining a
29 dnl copy of this software and associated documentation files (the "Software"),
30 dnl to deal in the Software without restriction, including without limitation
31 dnl the rights to use, copy, modify, merge, publish, distribute, sublicense,
32 dnl and/or sell copies of the Software, and to permit persons to whom the
33 dnl Software is furnished to do so, subject to the following conditions:
34 dnl
35 dnl The above copyright notice and this permission notice (including the next
36 dnl paragraph) shall be included in all copies or substantial portions of the
37 dnl Software.
38 dnl
39 dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40 dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
41 dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
42 dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43 dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
45 dnl DEALINGS IN THE SOFTWARE.
46 dnl
47 dnl --------------------------------------------------------------------
48 dnl
49 dnl Copyright 2005 Red Hat, Inc
50 dnl
51 dnl Permission to use, copy, modify, distribute, and sell this software and its
52 dnl documentation for any purpose is hereby granted without fee, provided that
53 dnl the above copyright notice appear in all copies and that both that
54 dnl copyright notice and this permission notice appear in supporting
55 dnl documentation.
56 dnl
57 dnl The above copyright notice and this permission notice shall be included
58 dnl in all copies or substantial portions of the Software.
59 dnl
60 dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
61 dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
62 dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
63 dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
64 dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
65 dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
66 dnl OTHER DEALINGS IN THE SOFTWARE.
67 dnl
68 dnl Except as contained in this notice, the name of the copyright holders shall
69 dnl not be used in advertising or otherwise to promote the sale, use or
70 dnl other dealings in this Software without prior written authorization
71 dnl from the copyright holders.
72
73 # XORG_FONT_MACROS_VERSION(required-version)
74 # ------------------------------------------
75 # Minimum version: 1.1.0
76 #
77 # If you're using a macro added in Version 1.1 or newer, include this in
78 # your configure.ac with the minimum required version, such as:
79 # XORG_FONT_MACROS_VERSION(1.1)
80 #
81 # To ensure that this macro is defined, also add:
82 # m4_ifndef([XORG_FONT_MACROS_VERSION],
83 # [m4_fatal([must install X.Org font-util 1.1 or later before running autoconf/autogen])])
84 #
85 #
86 # See the "minimum version" comment for each macro you use to see what
87 # version you require.
88 m4_defun([XORG_FONT_MACROS_VERSION],[
89 m4_define([vers_have], [1.3.1])
90 m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
91 m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
92 m4_if(m4_cmp(maj_have, maj_needed), 0,,
93 [m4_fatal([font-util major version ]maj_needed[ is required but ]vers_have[ found])])
94 m4_if(m4_version_compare(vers_have, [$1]), -1,
95 [m4_fatal([font-util version $1 or higher is required but ]vers_have[ found])])
96 m4_undefine([vers_have])
97 m4_undefine([maj_have])
98 m4_undefine([maj_needed])
99 ]) # XORG_FONT_MACROS_VERSION
100
101 # XORG_FONT_CHECK_{maps}()
102 # ------------------------
103 # Minimum version: 1.0.0
104 # These macros add --enable/disable-{maps} where {maps} are ISO8859-*,
105 # JISX0201 or KOI8_R. By default, they are all enabled.
106
107 AC_DEFUN([XORG_FONT_CHECK_ISO8859_1], [XORG_FONT_CHECK_ENCODING(ISO8859-1)])
108 AC_DEFUN([XORG_FONT_CHECK_ISO8859_2], [XORG_FONT_CHECK_ENCODING(ISO8859-2)])
109 AC_DEFUN([XORG_FONT_CHECK_ISO8859_3], [XORG_FONT_CHECK_ENCODING(ISO8859-3)])
110 AC_DEFUN([XORG_FONT_CHECK_ISO8859_4], [XORG_FONT_CHECK_ENCODING(ISO8859-4)])
111 AC_DEFUN([XORG_FONT_CHECK_ISO8859_5], [XORG_FONT_CHECK_ENCODING(ISO8859-5)])
112 AC_DEFUN([XORG_FONT_CHECK_ISO8859_6], [XORG_FONT_CHECK_ENCODING(ISO8859-6)])
113 AC_DEFUN([XORG_FONT_CHECK_ISO8859_7], [XORG_FONT_CHECK_ENCODING(ISO8859-7)])
114 AC_DEFUN([XORG_FONT_CHECK_ISO8859_8], [XORG_FONT_CHECK_ENCODING(ISO8859-8)])
115 AC_DEFUN([XORG_FONT_CHECK_ISO8859_9], [XORG_FONT_CHECK_ENCODING(ISO8859-9)])
116 AC_DEFUN([XORG_FONT_CHECK_ISO8859_10],[XORG_FONT_CHECK_ENCODING(ISO8859-10)])
117 AC_DEFUN([XORG_FONT_CHECK_ISO8859_11],[XORG_FONT_CHECK_ENCODING(ISO8859-11)])
118 AC_DEFUN([XORG_FONT_CHECK_ISO8859_12],[XORG_FONT_CHECK_ENCODING(ISO8859-12)])
119 AC_DEFUN([XORG_FONT_CHECK_ISO8859_13],[XORG_FONT_CHECK_ENCODING(ISO8859-13)])
120 AC_DEFUN([XORG_FONT_CHECK_ISO8859_14],[XORG_FONT_CHECK_ENCODING(ISO8859-14)])
121 AC_DEFUN([XORG_FONT_CHECK_ISO8859_15],[XORG_FONT_CHECK_ENCODING(ISO8859-15)])
122 AC_DEFUN([XORG_FONT_CHECK_ISO8859_16],[XORG_FONT_CHECK_ENCODING(ISO8859-16)])
123 AC_DEFUN([XORG_FONT_CHECK_JISX0201], [XORG_FONT_CHECK_ENCODING(JISX0201)])
124 AC_DEFUN([XORG_FONT_CHECK_KOI8_R], [XORG_FONT_CHECK_ENCODING(KOI8-R)])
125
126 # XORG_FONT_CHECK_ENCODING(encoding)
127 # ----------------------------------
128 # Minimum version: 1.1.0
129 # This macro adds --enable/disable-<encoding>, enabled by default.
130 # It replaced individual copies of this code in the above macros in 1.1.
131 # Currently assumes encoding names will be all upper-case - add m4_toupper
132 # calls if this is not true in the future.
133
134 AC_DEFUN([XORG_FONT_CHECK_ENCODING],[
135 AC_ARG_ENABLE(m4_tolower($1),
136 AS_HELP_STRING(m4_join([-], [--disable], m4_tolower($1)),
137 [Build $1 fonts (default: yes)]),
138 [AS_TR_SH($1)=$enableval])
139 AC_MSG_CHECKING([whether to build $1 fonts])
140 AC_MSG_RESULT($[AS_TR_SH($1)])
141 AM_CONDITIONAL(AS_TR_SH($1), [test "x$AS_TR_SH($1)" = xyes])
142 ]) # XORG_FONT_CHECK_ENCODING
143
144 # XORG_FONT_CHECK_ENCODING_LIST(encoding1 encoding2....)
145 # -----------------------------------------------------
146 # Minimum version: 1.1.0
147 # Call XORG_FONT_CHECK_ENCODING for multiple encodings at once.
148 # Add a shorthand --enable/disable-all-encodings option.
149
150 AC_DEFUN([XORG_FONT_CHECK_ENCODING_LIST],[
151 AC_ARG_ENABLE([all-encodings],
152 AS_HELP_STRING([--disable-all-encodings],
153 [Disable building of all font encodings]),
154 [m4_foreach_w([enc], [$1], [
155 AS_TR_SH(enc)=$enableval
156 ])],
157 [m4_foreach_w([enc], [$1], [
158 AS_TR_SH(enc)=yes
159 ])])
160 m4_foreach_w([enc], [$1], [XORG_FONT_CHECK_ENCODING(enc)])
161 ]) # XORG_FONT_CHECK_ENCODING_LIST
162
163 # XORG_FONT_REQUIRED_PROG(VARNAME, progname)
164 # ------------------------------------------
165 # Minimum version: 1.1.0
166 #
167 # Simple wrapper around AC_PATH_PROG that errors if not found
168 #
169
170 AC_DEFUN([XORG_FONT_REQUIRED_PROG],[
171 AC_PATH_PROG($1, $2)
172 if test x"$$1" = x; then
173 AC_MSG_ERROR([$2 is required to build $PACKAGE_NAME.])
174 fi
175 ])
176
177
178 # XORG_FONT_FCCACHE()
179 # -------------------
180 # Minimum version: 1.1.0
181 #
182 # Set FCCACHE to path to fc-cache (fontconfig cache builder) if found
183 # Set RUN_FCCACHE to a rule suitable for substituting into a makefile
184 # to run fc-cache if found and not installing to $DESTDIR and not
185 # cross-compiling
186 #
187 # fc-cache is optional, not required, and should be skipped when making
188 # packages (installing to $DESTDIR) or cross-compiling
189 #
190 AC_DEFUN([XORG_FONT_FCCACHE],[
191 AC_PATH_PROG(FCCACHE, fc-cache)
192 FCCACHE_WARN='echo "** Warning: fonts.cache not built" ; echo "** Generate this file manually on host system using fc-cache"'
193 if test x"$FCCACHE" = x || test x"$cross_compiling" != x"no" ; then
194 RUN_FCCACHE="${FCCACHE_WARN}"
195 else
196 RUN_FCCACHE='@(if test -z "$(DESTDIR)"; then echo $(FCCACHE) $(fontdir); $(FCCACHE) $(fontdir); else'
197 RUN_FCCACHE="${RUN_FCCACHE} ${FCCACHE_WARN} ; fi)"
198 fi
199 AC_SUBST([RUN_FCCACHE])
200 ])
201
202 # XORG_FONT_MKFONTDIR()
203 # -------------------
204 # Minimum version: 1.3.0
205 #
206 # Set MKFONTDIR to path to mkfontdir.
207 #
208 # If cross-compiling, and if mkdir is not found, use a shell command
209 # which warns mkfontdir needs to be run on the target
210 #
211 # If not cross-compiling, mkfontdir must be found
212 #
213 AC_DEFUN([XORG_FONT_MKFONTDIR],[
214 if test x"$cross_compiling" != x"no" ; then
215 AC_PATH_PROG(MKFONTDIR, mkfontdir, "")
216 MKFONTDIR_WARN='echo "** Warning: mkfontdir not run" ; echo "** Run mkfontdir manually on host system"'
217
218 if test x"$MKFONTDIR" = x; then
219 MKFONTDIR="${MKFONTDIR_WARN} ; echo '** mkfontdir'"
220 fi
221 else
222 XORG_FONT_REQUIRED_PROG(MKFONTDIR, mkfontdir)
223 fi
224
225 AC_SUBST([MKFONTDIR])
226 ])
227
228 # XORG_FONT_COMMON_UTILS()
229 # ------------------------
230 # Minimum version: 1.1.0
231 #
232 # Call XORG_FONT_REQUIRED_PROG for programs needed for all font types
233
234 AC_DEFUN([XORG_FONT_COMMON_UTILS],[
235 XORG_FONT_FCCACHE
236 XORG_FONT_MKFONTDIR
237 ])
238
239 # XORG_FONT_SCALED_UTILS()
240 # ------------------------
241 # Minimum version: 1.1.0
242 #
243 # Call XORG_FONT_REQUIRED_PROG for programs needed for scalable fonts
244 # (TrueType, OpenType, Type1)
245
246 AC_DEFUN([XORG_FONT_SCALED_UTILS],[
247 XORG_FONT_COMMON_UTILS
248 XORG_FONT_REQUIRED_PROG(MKFONTSCALE, mkfontscale)
249 ])
250
251 # XORG_FONT_BDF_UTILS()
252 # ---------------------
253 # Minimum version: 1.1.0
254 #
255 # Call XORG_FONT_REQUIRED_PROG for programs needed for BDF format bitmap fonts
256 # Also call XORG_FONT_CHECK_COMPRESSION to determine how to compress the
257 # PCF output files created by bdftopcf
258
259 AC_DEFUN([XORG_FONT_BDF_UTILS],[
260 XORG_FONT_COMMON_UTILS
261 XORG_FONT_REQUIRED_PROG(BDFTOPCF, bdftopcf)
262 XORG_FONT_CHECK_COMPRESSION
263 ])
264
265 # XORG_FONT_CHECK_COMPRESSION()
266 # -----------------------------
267 # Minimum version: 1.1.0
268 #
269 # Offer a --with-compression flag to control what compression method is
270 # used for pcf font files. Offers all the methods currently supported
271 # by libXfont, including no compression.
272
273 AC_DEFUN([XORG_FONT_CHECK_COMPRESSION],[
274 AC_MSG_CHECKING([font compression method])
275 AC_ARG_WITH(compression,
276 [AS_HELP_STRING([--with-compression=<no|compress|gzip|bzip2>],
277 [compression method to use on pcf fonts])],
278 [compression="$withval"], [compression="yes"])
279 if test x"$compression" = "xyes" ; then
280 compression="gzip"
281 fi
282 AC_MSG_RESULT([${compression}])
283 case ${compression} in
284 *compress) COMPRESS_SUFFIX=".Z" ;;
285 *gzip) COMPRESS_SUFFIX=".gz" ;;
286 *bzip2) COMPRESS_SUFFIX=".bz2" ;;
287 no|none) COMPRESS_SUFFIX="" ; COMPRESS="cat" ;;
288 *) AC_MSG_ERROR([${compression} is not a supported compression method]) ;;
289 esac
290 if test x"$COMPRESS_SUFFIX" != "x" ; then
291 XORG_FONT_REQUIRED_PROG(COMPRESS, ${compression})
292 fi
293 AC_SUBST([COMPRESS_SUFFIX])
294 ])
295
296 # XORG_FONT_UCS2ANY()
297 # -------------------
298 # Minimum version: 1.1.0
299 #
300 # Call XORG_FONT_REQUIRED_PROG for ucs2any program needed for splitting
301 # Unicode-encoded BDF format bitmap fonts into subsets for older encodings.
302 # Also call pkg-config to find the directory with the encoding files needed
303 # by ucs2any, and export it as MAPFILES_PATH to the Makefiles
304
305 AC_DEFUN([XORG_FONT_UCS2ANY],[
306 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
307 XORG_FONT_REQUIRED_PROG(UCS2ANY, ucs2any)
308 PKG_CHECK_MODULES(MAPS, [fontutil])
309 AC_MSG_CHECKING([for ucs2any encoding data files])
310 MAPFILES_PATH=`$PKG_CONFIG --variable=mapdir fontutil`
311 AC_SUBST(MAPFILES_PATH)
312 AC_MSG_RESULT([${MAPFILES_PATH}])
313 ])
314
315
316
317 # XORG_FONT_FC_CONFDIR()
318 # --------------------
319 # Minimum version: 1.2.0
320 #
321 # Sets FC_CONFDIR to the fontconfig config directory
322 # (which should be --with-confdir=... when building fontconfig)
323 # found from:
324 # --with-fc-confdir=...
325 # pkg-config --variable=confdir fontconfig
326 # ${sysconfdir}/fonts
327
328 AC_DEFUN([XORG_FONT_FC_CONFDIR],[
329 dnl Ensure $PKG_CONFIG is set first
330 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
331
332 AC_MSG_CHECKING([for fontconfig's configuration directory])
333 AC_ARG_WITH(fc-confdir,
334 AS_HELP_STRING([--with-fc-confdir=DIR],
335 [Path to fontconfig's configuration directory]),
336 [FC_CONFDIR="$withval"])
337 # if --with-fc-confdir was not specified
338 if test "x${FC_CONFDIR}" = "x"; then
339 FC_CONFDIR=`$PKG_CONFIG --variable=confdir fontconfig`
340 fi
341 # ...and if pkg-config didn't find confdir in fontconfig.pc...
342 if test "x${FC_CONFDIR}" = "x"; then
343 FC_CONFDIR="${sysconfdir}/fonts"
344 fi
345 AC_SUBST(FC_CONFDIR)
346 AC_MSG_RESULT([${FC_CONFDIR}])
347 ])
348
349
350
351 # XORG_FONTROOTDIR()
352 # --------------------
353 # Minimum version: 1.1.0
354 #
355 # Sets FONTROOTDIR to the root directory for font files. Uses the first
356 # found from:
357 # --with-fontrootdir
358 # pkg-config --variable=fontrootdir fontutil
359 # ${datadir}/fonts/X11
360
361 AC_DEFUN([XORG_FONTROOTDIR],[
362 dnl Ensure $PKG_CONFIG is set first
363 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
364
365 AC_MSG_CHECKING([for root directory for font files])
366 AC_ARG_WITH(fontrootdir,
367 AS_HELP_STRING([--with-fontrootdir=DIR],
368 [Path to root directory for font files]),
369 [FONTROOTDIR="$withval"])
370 # if --with-fontrootdir not specified...
371 if test "x${FONTROOTDIR}" = "x"; then
372 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
373 fi
374 # ...and if pkg-config didn't find fontdir in fontutil.pc...
375 if test "x${FONTROOTDIR}" = "x"; then
376 FONTROOTDIR="${datadir}/fonts/X11"
377 fi
378 AC_SUBST(FONTROOTDIR)
379 AC_MSG_RESULT([${FONTROOTDIR}])
380 ])
381
382 # XORG_FONTSUBDIR(variable, flag, subdir)
383 # ---------------------------------------
384 # Minimum version: 1.1.0
385 #
386 # Offer a --with-<flag> flag to control directory for font installation
387 # Default is the specified <subdir> of the font root directory.
388 # Sets <variable> to the selected directory
389
390 AC_DEFUN([XORG_FONTSUBDIR],[
391 AC_REQUIRE([XORG_FONTROOTDIR])
392
393 AC_MSG_CHECKING([for directory for $3 files])
394 AC_ARG_WITH($2,
395 [AS_HELP_STRING([--with-$2=DIR],
396 [Path to $3 files [FONTROOTDIR/$3]])],
397 [$1="${withval}"], [$1='${FONTROOTDIR}/$3'])
398 AC_SUBST($1)
399 AC_MSG_RESULT([${$1}])
400 ]) # XORG_FONTSUBDIR
401
402 # XORG_FONTDIR(subdir)
403 # --------------------
404 # Minimum version: 1.1.0
405 #
406 # Offer a --with-fontdir flag to control directory for font installation
407 # Default is the specified subdir of the font root directory.
408 # Sets FONTDIR to the selected directory
409
410 AC_DEFUN([XORG_FONTDIR],[XORG_FONTSUBDIR([FONTDIR], [fontdir], [$1])])
411
412 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
413 #
414 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
415 # Written by Gordon Matzigkeit, 1996
416 #
417 # This file is free software; the Free Software Foundation gives
418 # unlimited permission to copy and/or distribute it, with or without
419 # modifications, as long as this notice is preserved.
420
421 m4_define([_LT_COPYING], [dnl
422 # Copyright (C) 2014 Free Software Foundation, Inc.
423 # This is free software; see the source for copying conditions. There is NO
424 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
425
426 # GNU Libtool is free software; you can redistribute it and/or modify
427 # it under the terms of the GNU General Public License as published by
428 # the Free Software Foundation; either version 2 of of the License, or
429 # (at your option) any later version.
430 #
431 # As a special exception to the GNU General Public License, if you
432 # distribute this file as part of a program or library that is built
433 # using GNU Libtool, you may include this file under the same
434 # distribution terms that you use for the rest of that program.
435 #
436 # GNU Libtool is distributed in the hope that it will be useful, but
437 # WITHOUT ANY WARRANTY; without even the implied warranty of
438 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
439 # GNU General Public License for more details.
440 #
441 # You should have received a copy of the GNU General Public License
442 # along with this program. If not, see <http://www.gnu.org/licenses/>.
443 ])
444
445 # serial 58 LT_INIT
446
447
448 # LT_PREREQ(VERSION)
449 # ------------------
450 # Complain and exit if this libtool version is less that VERSION.
451 m4_defun([LT_PREREQ],
452 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
453 [m4_default([$3],
454 [m4_fatal([Libtool version $1 or higher is required],
455 63)])],
456 [$2])])
457
458
459 # _LT_CHECK_BUILDDIR
460 # ------------------
461 # Complain if the absolute build directory name contains unusual characters
462 m4_defun([_LT_CHECK_BUILDDIR],
463 [case `pwd` in
464 *\ * | *\ *)
465 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
466 esac
467 ])
468
469
470 # LT_INIT([OPTIONS])
471 # ------------------
472 AC_DEFUN([LT_INIT],
473 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
474 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
475 AC_BEFORE([$0], [LT_LANG])dnl
476 AC_BEFORE([$0], [LT_OUTPUT])dnl
477 AC_BEFORE([$0], [LTDL_INIT])dnl
478 m4_require([_LT_CHECK_BUILDDIR])dnl
479
480 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
481 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
482 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
483 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
484 dnl unless we require an AC_DEFUNed macro:
485 AC_REQUIRE([LTOPTIONS_VERSION])dnl
486 AC_REQUIRE([LTSUGAR_VERSION])dnl
487 AC_REQUIRE([LTVERSION_VERSION])dnl
488 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
489 m4_require([_LT_PROG_LTMAIN])dnl
490
491 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
492
493 dnl Parse OPTIONS
494 _LT_SET_OPTIONS([$0], [$1])
495
496 # This can be used to rebuild libtool when needed
497 LIBTOOL_DEPS=$ltmain
498
499 # Always use our own libtool.
500 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
501 AC_SUBST(LIBTOOL)dnl
502
503 _LT_SETUP
504
505 # Only expand once:
506 m4_define([LT_INIT])
507 ])# LT_INIT
508
509 # Old names:
510 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
511 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
512 dnl aclocal-1.4 backwards compatibility:
513 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
514 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
515
516
517 # _LT_PREPARE_CC_BASENAME
518 # -----------------------
519 m4_defun([_LT_PREPARE_CC_BASENAME], [
520 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
521 func_cc_basename ()
522 {
523 for cc_temp in @S|@*""; do
524 case $cc_temp in
525 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
526 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
527 \-*) ;;
528 *) break;;
529 esac
530 done
531 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
532 }
533 ])# _LT_PREPARE_CC_BASENAME
534
535
536 # _LT_CC_BASENAME(CC)
537 # -------------------
538 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
539 # but that macro is also expanded into generated libtool script, which
540 # arranges for $SED and $ECHO to be set by different means.
541 m4_defun([_LT_CC_BASENAME],
542 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
543 AC_REQUIRE([_LT_DECL_SED])dnl
544 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
545 func_cc_basename $1
546 cc_basename=$func_cc_basename_result
547 ])
548
549
550 # _LT_FILEUTILS_DEFAULTS
551 # ----------------------
552 # It is okay to use these file commands and assume they have been set
553 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
554 m4_defun([_LT_FILEUTILS_DEFAULTS],
555 [: ${CP="cp -f"}
556 : ${MV="mv -f"}
557 : ${RM="rm -f"}
558 ])# _LT_FILEUTILS_DEFAULTS
559
560
561 # _LT_SETUP
562 # ---------
563 m4_defun([_LT_SETUP],
564 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
565 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
566 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
567 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
568
569 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
570 dnl
571 _LT_DECL([], [host_alias], [0], [The host system])dnl
572 _LT_DECL([], [host], [0])dnl
573 _LT_DECL([], [host_os], [0])dnl
574 dnl
575 _LT_DECL([], [build_alias], [0], [The build system])dnl
576 _LT_DECL([], [build], [0])dnl
577 _LT_DECL([], [build_os], [0])dnl
578 dnl
579 AC_REQUIRE([AC_PROG_CC])dnl
580 AC_REQUIRE([LT_PATH_LD])dnl
581 AC_REQUIRE([LT_PATH_NM])dnl
582 dnl
583 AC_REQUIRE([AC_PROG_LN_S])dnl
584 test -z "$LN_S" && LN_S="ln -s"
585 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
586 dnl
587 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
588 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
589 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
590 dnl
591 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
592 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
593 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
594 m4_require([_LT_CMD_RELOAD])dnl
595 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
596 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
597 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
598 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
599 m4_require([_LT_WITH_SYSROOT])dnl
600 m4_require([_LT_CMD_TRUNCATE])dnl
601
602 _LT_CONFIG_LIBTOOL_INIT([
603 # See if we are running on zsh, and set the options that allow our
604 # commands through without removal of \ escapes INIT.
605 if test -n "\${ZSH_VERSION+set}"; then
606 setopt NO_GLOB_SUBST
607 fi
608 ])
609 if test -n "${ZSH_VERSION+set}"; then
610 setopt NO_GLOB_SUBST
611 fi
612
613 _LT_CHECK_OBJDIR
614
615 m4_require([_LT_TAG_COMPILER])dnl
616
617 case $host_os in
618 aix3*)
619 # AIX sometimes has problems with the GCC collect2 program. For some
620 # reason, if we set the COLLECT_NAMES environment variable, the problems
621 # vanish in a puff of smoke.
622 if test set != "${COLLECT_NAMES+set}"; then
623 COLLECT_NAMES=
624 export COLLECT_NAMES
625 fi
626 ;;
627 esac
628
629 # Global variables:
630 ofile=libtool
631 can_build_shared=yes
632
633 # All known linkers require a '.a' archive for static linking (except MSVC,
634 # which needs '.lib').
635 libext=a
636
637 with_gnu_ld=$lt_cv_prog_gnu_ld
638
639 old_CC=$CC
640 old_CFLAGS=$CFLAGS
641
642 # Set sane defaults for various variables
643 test -z "$CC" && CC=cc
644 test -z "$LTCC" && LTCC=$CC
645 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
646 test -z "$LD" && LD=ld
647 test -z "$ac_objext" && ac_objext=o
648
649 _LT_CC_BASENAME([$compiler])
650
651 # Only perform the check for file, if the check method requires it
652 test -z "$MAGIC_CMD" && MAGIC_CMD=file
653 case $deplibs_check_method in
654 file_magic*)
655 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
656 _LT_PATH_MAGIC
657 fi
658 ;;
659 esac
660
661 # Use C for the default configuration in the libtool script
662 LT_SUPPORTED_TAG([CC])
663 _LT_LANG_C_CONFIG
664 _LT_LANG_DEFAULT_CONFIG
665 _LT_CONFIG_COMMANDS
666 ])# _LT_SETUP
667
668
669 # _LT_PREPARE_SED_QUOTE_VARS
670 # --------------------------
671 # Define a few sed substitution that help us do robust quoting.
672 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
673 [# Backslashify metacharacters that are still active within
674 # double-quoted strings.
675 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
676
677 # Same as above, but do not quote variable references.
678 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
679
680 # Sed substitution to delay expansion of an escaped shell variable in a
681 # double_quote_subst'ed string.
682 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
683
684 # Sed substitution to delay expansion of an escaped single quote.
685 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
686
687 # Sed substitution to avoid accidental globbing in evaled expressions
688 no_glob_subst='s/\*/\\\*/g'
689 ])
690
691 # _LT_PROG_LTMAIN
692 # ---------------
693 # Note that this code is called both from 'configure', and 'config.status'
694 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
695 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
696 # so we pass a copy along to make sure it has a sensible value anyway.
697 m4_defun([_LT_PROG_LTMAIN],
698 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
699 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
700 ltmain=$ac_aux_dir/ltmain.sh
701 ])# _LT_PROG_LTMAIN
702
703
704
705 # So that we can recreate a full libtool script including additional
706 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
707 # in macros and then make a single call at the end using the 'libtool'
708 # label.
709
710
711 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
712 # ----------------------------------------
713 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
714 m4_define([_LT_CONFIG_LIBTOOL_INIT],
715 [m4_ifval([$1],
716 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
717 [$1
718 ])])])
719
720 # Initialize.
721 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
722
723
724 # _LT_CONFIG_LIBTOOL([COMMANDS])
725 # ------------------------------
726 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
727 m4_define([_LT_CONFIG_LIBTOOL],
728 [m4_ifval([$1],
729 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
730 [$1
731 ])])])
732
733 # Initialize.
734 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
735
736
737 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
738 # -----------------------------------------------------
739 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
740 [_LT_CONFIG_LIBTOOL([$1])
741 _LT_CONFIG_LIBTOOL_INIT([$2])
742 ])
743
744
745 # _LT_FORMAT_COMMENT([COMMENT])
746 # -----------------------------
747 # Add leading comment marks to the start of each line, and a trailing
748 # full-stop to the whole comment if one is not present already.
749 m4_define([_LT_FORMAT_COMMENT],
750 [m4_ifval([$1], [
751 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
752 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
753 )])
754
755
756
757
758
759 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
760 # -------------------------------------------------------------------
761 # CONFIGNAME is the name given to the value in the libtool script.
762 # VARNAME is the (base) name used in the configure script.
763 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
764 # VARNAME. Any other value will be used directly.
765 m4_define([_LT_DECL],
766 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
767 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
768 [m4_ifval([$1], [$1], [$2])])
769 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
770 m4_ifval([$4],
771 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
772 lt_dict_add_subkey([lt_decl_dict], [$2],
773 [tagged?], [m4_ifval([$5], [yes], [no])])])
774 ])
775
776
777 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
778 # --------------------------------------------------------
779 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
780
781
782 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
783 # ------------------------------------------------
784 m4_define([lt_decl_tag_varnames],
785 [_lt_decl_filter([tagged?], [yes], $@)])
786
787
788 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
789 # ---------------------------------------------------------
790 m4_define([_lt_decl_filter],
791 [m4_case([$#],
792 [0], [m4_fatal([$0: too few arguments: $#])],
793 [1], [m4_fatal([$0: too few arguments: $#: $1])],
794 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
795 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
796 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
797 ])
798
799
800 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
801 # --------------------------------------------------
802 m4_define([lt_decl_quote_varnames],
803 [_lt_decl_filter([value], [1], $@)])
804
805
806 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
807 # ---------------------------------------------------
808 m4_define([lt_decl_dquote_varnames],
809 [_lt_decl_filter([value], [2], $@)])
810
811
812 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
813 # ---------------------------------------------------
814 m4_define([lt_decl_varnames_tagged],
815 [m4_assert([$# <= 2])dnl
816 _$0(m4_quote(m4_default([$1], [[, ]])),
817 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
818 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
819 m4_define([_lt_decl_varnames_tagged],
820 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
821
822
823 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
824 # ------------------------------------------------
825 m4_define([lt_decl_all_varnames],
826 [_$0(m4_quote(m4_default([$1], [[, ]])),
827 m4_if([$2], [],
828 m4_quote(lt_decl_varnames),
829 m4_quote(m4_shift($@))))[]dnl
830 ])
831 m4_define([_lt_decl_all_varnames],
832 [lt_join($@, lt_decl_varnames_tagged([$1],
833 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
834 ])
835
836
837 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
838 # ------------------------------------
839 # Quote a variable value, and forward it to 'config.status' so that its
840 # declaration there will have the same value as in 'configure'. VARNAME
841 # must have a single quote delimited value for this to work.
842 m4_define([_LT_CONFIG_STATUS_DECLARE],
843 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
844
845
846 # _LT_CONFIG_STATUS_DECLARATIONS
847 # ------------------------------
848 # We delimit libtool config variables with single quotes, so when
849 # we write them to config.status, we have to be sure to quote all
850 # embedded single quotes properly. In configure, this macro expands
851 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
852 #
853 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
854 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
855 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
856 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
857
858
859 # _LT_LIBTOOL_TAGS
860 # ----------------
861 # Output comment and list of tags supported by the script
862 m4_defun([_LT_LIBTOOL_TAGS],
863 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
864 available_tags='_LT_TAGS'dnl
865 ])
866
867
868 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
869 # -----------------------------------
870 # Extract the dictionary values for VARNAME (optionally with TAG) and
871 # expand to a commented shell variable setting:
872 #
873 # # Some comment about what VAR is for.
874 # visible_name=$lt_internal_name
875 m4_define([_LT_LIBTOOL_DECLARE],
876 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
877 [description])))[]dnl
878 m4_pushdef([_libtool_name],
879 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
880 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
881 [0], [_libtool_name=[$]$1],
882 [1], [_libtool_name=$lt_[]$1],
883 [2], [_libtool_name=$lt_[]$1],
884 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
885 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
886 ])
887
888
889 # _LT_LIBTOOL_CONFIG_VARS
890 # -----------------------
891 # Produce commented declarations of non-tagged libtool config variables
892 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
893 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
894 # section) are produced by _LT_LIBTOOL_TAG_VARS.
895 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
896 [m4_foreach([_lt_var],
897 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
898 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
899
900
901 # _LT_LIBTOOL_TAG_VARS(TAG)
902 # -------------------------
903 m4_define([_LT_LIBTOOL_TAG_VARS],
904 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
905 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
906
907
908 # _LT_TAGVAR(VARNAME, [TAGNAME])
909 # ------------------------------
910 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
911
912
913 # _LT_CONFIG_COMMANDS
914 # -------------------
915 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
916 # variables for single and double quote escaping we saved from calls
917 # to _LT_DECL, we can put quote escaped variables declarations
918 # into 'config.status', and then the shell code to quote escape them in
919 # for loops in 'config.status'. Finally, any additional code accumulated
920 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
921 m4_defun([_LT_CONFIG_COMMANDS],
922 [AC_PROVIDE_IFELSE([LT_OUTPUT],
923 dnl If the libtool generation code has been placed in $CONFIG_LT,
924 dnl instead of duplicating it all over again into config.status,
925 dnl then we will have config.status run $CONFIG_LT later, so it
926 dnl needs to know what name is stored there:
927 [AC_CONFIG_COMMANDS([libtool],
928 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
929 dnl If the libtool generation code is destined for config.status,
930 dnl expand the accumulated commands and init code now:
931 [AC_CONFIG_COMMANDS([libtool],
932 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
933 ])#_LT_CONFIG_COMMANDS
934
935
936 # Initialize.
937 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
938 [
939
940 # The HP-UX ksh and POSIX shell print the target directory to stdout
941 # if CDPATH is set.
942 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
943
944 sed_quote_subst='$sed_quote_subst'
945 double_quote_subst='$double_quote_subst'
946 delay_variable_subst='$delay_variable_subst'
947 _LT_CONFIG_STATUS_DECLARATIONS
948 LTCC='$LTCC'
949 LTCFLAGS='$LTCFLAGS'
950 compiler='$compiler_DEFAULT'
951
952 # A function that is used when there is no print builtin or printf.
953 func_fallback_echo ()
954 {
955 eval 'cat <<_LTECHO_EOF
956 \$[]1
957 _LTECHO_EOF'
958 }
959
960 # Quote evaled strings.
961 for var in lt_decl_all_varnames([[ \
962 ]], lt_decl_quote_varnames); do
963 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
964 *[[\\\\\\\`\\"\\\$]]*)
965 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
966 ;;
967 *)
968 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
969 ;;
970 esac
971 done
972
973 # Double-quote double-evaled strings.
974 for var in lt_decl_all_varnames([[ \
975 ]], lt_decl_dquote_varnames); do
976 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
977 *[[\\\\\\\`\\"\\\$]]*)
978 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
979 ;;
980 *)
981 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
982 ;;
983 esac
984 done
985
986 _LT_OUTPUT_LIBTOOL_INIT
987 ])
988
989 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
990 # ------------------------------------
991 # Generate a child script FILE with all initialization necessary to
992 # reuse the environment learned by the parent script, and make the
993 # file executable. If COMMENT is supplied, it is inserted after the
994 # '#!' sequence but before initialization text begins. After this
995 # macro, additional text can be appended to FILE to form the body of
996 # the child script. The macro ends with non-zero status if the
997 # file could not be fully written (such as if the disk is full).
998 m4_ifdef([AS_INIT_GENERATED],
999 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1000 [m4_defun([_LT_GENERATED_FILE_INIT],
1001 [m4_require([AS_PREPARE])]dnl
1002 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1003 [lt_write_fail=0
1004 cat >$1 <<_ASEOF || lt_write_fail=1
1005 #! $SHELL
1006 # Generated by $as_me.
1007 $2
1008 SHELL=\${CONFIG_SHELL-$SHELL}
1009 export SHELL
1010 _ASEOF
1011 cat >>$1 <<\_ASEOF || lt_write_fail=1
1012 AS_SHELL_SANITIZE
1013 _AS_PREPARE
1014 exec AS_MESSAGE_FD>&1
1015 _ASEOF
1016 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
1017 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1018
1019 # LT_OUTPUT
1020 # ---------
1021 # This macro allows early generation of the libtool script (before
1022 # AC_OUTPUT is called), incase it is used in configure for compilation
1023 # tests.
1024 AC_DEFUN([LT_OUTPUT],
1025 [: ${CONFIG_LT=./config.lt}
1026 AC_MSG_NOTICE([creating $CONFIG_LT])
1027 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1028 [# Run this file to recreate a libtool stub with the current configuration.])
1029
1030 cat >>"$CONFIG_LT" <<\_LTEOF
1031 lt_cl_silent=false
1032 exec AS_MESSAGE_LOG_FD>>config.log
1033 {
1034 echo
1035 AS_BOX([Running $as_me.])
1036 } >&AS_MESSAGE_LOG_FD
1037
1038 lt_cl_help="\
1039 '$as_me' creates a local libtool stub from the current configuration,
1040 for use in further configure time tests before the real libtool is
1041 generated.
1042
1043 Usage: $[0] [[OPTIONS]]
1044
1045 -h, --help print this help, then exit
1046 -V, --version print version number, then exit
1047 -q, --quiet do not print progress messages
1048 -d, --debug don't remove temporary files
1049
1050 Report bugs to <bug-libtool@gnu.org>."
1051
1052 lt_cl_version="\
1053 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1054 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1055 configured by $[0], generated by m4_PACKAGE_STRING.
1056
1057 Copyright (C) 2011 Free Software Foundation, Inc.
1058 This config.lt script is free software; the Free Software Foundation
1059 gives unlimited permision to copy, distribute and modify it."
1060
1061 while test 0 != $[#]
1062 do
1063 case $[1] in
1064 --version | --v* | -V )
1065 echo "$lt_cl_version"; exit 0 ;;
1066 --help | --h* | -h )
1067 echo "$lt_cl_help"; exit 0 ;;
1068 --debug | --d* | -d )
1069 debug=: ;;
1070 --quiet | --q* | --silent | --s* | -q )
1071 lt_cl_silent=: ;;
1072
1073 -*) AC_MSG_ERROR([unrecognized option: $[1]
1074 Try '$[0] --help' for more information.]) ;;
1075
1076 *) AC_MSG_ERROR([unrecognized argument: $[1]
1077 Try '$[0] --help' for more information.]) ;;
1078 esac
1079 shift
1080 done
1081
1082 if $lt_cl_silent; then
1083 exec AS_MESSAGE_FD>/dev/null
1084 fi
1085 _LTEOF
1086
1087 cat >>"$CONFIG_LT" <<_LTEOF
1088 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1089 _LTEOF
1090
1091 cat >>"$CONFIG_LT" <<\_LTEOF
1092 AC_MSG_NOTICE([creating $ofile])
1093 _LT_OUTPUT_LIBTOOL_COMMANDS
1094 AS_EXIT(0)
1095 _LTEOF
1096 chmod +x "$CONFIG_LT"
1097
1098 # configure is writing to config.log, but config.lt does its own redirection,
1099 # appending to config.log, which fails on DOS, as config.log is still kept
1100 # open by configure. Here we exec the FD to /dev/null, effectively closing
1101 # config.log, so it can be properly (re)opened and appended to by config.lt.
1102 lt_cl_success=:
1103 test yes = "$silent" &&
1104 lt_config_lt_args="$lt_config_lt_args --quiet"
1105 exec AS_MESSAGE_LOG_FD>/dev/null
1106 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1107 exec AS_MESSAGE_LOG_FD>>config.log
1108 $lt_cl_success || AS_EXIT(1)
1109 ])# LT_OUTPUT
1110
1111
1112 # _LT_CONFIG(TAG)
1113 # ---------------
1114 # If TAG is the built-in tag, create an initial libtool script with a
1115 # default configuration from the untagged config vars. Otherwise add code
1116 # to config.status for appending the configuration named by TAG from the
1117 # matching tagged config vars.
1118 m4_defun([_LT_CONFIG],
1119 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1120 _LT_CONFIG_SAVE_COMMANDS([
1121 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1122 m4_if(_LT_TAG, [C], [
1123 # See if we are running on zsh, and set the options that allow our
1124 # commands through without removal of \ escapes.
1125 if test -n "${ZSH_VERSION+set}"; then
1126 setopt NO_GLOB_SUBST
1127 fi
1128
1129 cfgfile=${ofile}T
1130 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1131 $RM "$cfgfile"
1132
1133 cat <<_LT_EOF >> "$cfgfile"
1134 #! $SHELL
1135 # Generated automatically by $as_me ($PACKAGE) $VERSION
1136 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1137
1138 # Provide generalized library-building support services.
1139 # Written by Gordon Matzigkeit, 1996
1140
1141 _LT_COPYING
1142 _LT_LIBTOOL_TAGS
1143
1144 # Configured defaults for sys_lib_dlsearch_path munging.
1145 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1146
1147 # ### BEGIN LIBTOOL CONFIG
1148 _LT_LIBTOOL_CONFIG_VARS
1149 _LT_LIBTOOL_TAG_VARS
1150 # ### END LIBTOOL CONFIG
1151
1152 _LT_EOF
1153
1154 cat <<'_LT_EOF' >> "$cfgfile"
1155
1156 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
1157
1158 _LT_PREPARE_MUNGE_PATH_LIST
1159 _LT_PREPARE_CC_BASENAME
1160
1161 # ### END FUNCTIONS SHARED WITH CONFIGURE
1162
1163 _LT_EOF
1164
1165 case $host_os in
1166 aix3*)
1167 cat <<\_LT_EOF >> "$cfgfile"
1168 # AIX sometimes has problems with the GCC collect2 program. For some
1169 # reason, if we set the COLLECT_NAMES environment variable, the problems
1170 # vanish in a puff of smoke.
1171 if test set != "${COLLECT_NAMES+set}"; then
1172 COLLECT_NAMES=
1173 export COLLECT_NAMES
1174 fi
1175 _LT_EOF
1176 ;;
1177 esac
1178
1179 _LT_PROG_LTMAIN
1180
1181 # We use sed instead of cat because bash on DJGPP gets confused if
1182 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1183 # text mode, it properly converts lines to CR/LF. This bash problem
1184 # is reportedly fixed, but why not run on old versions too?
1185 sed '$q' "$ltmain" >> "$cfgfile" \
1186 || (rm -f "$cfgfile"; exit 1)
1187
1188 mv -f "$cfgfile" "$ofile" ||
1189 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1190 chmod +x "$ofile"
1191 ],
1192 [cat <<_LT_EOF >> "$ofile"
1193
1194 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1195 dnl in a comment (ie after a #).
1196 # ### BEGIN LIBTOOL TAG CONFIG: $1
1197 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
1198 # ### END LIBTOOL TAG CONFIG: $1
1199 _LT_EOF
1200 ])dnl /m4_if
1201 ],
1202 [m4_if([$1], [], [
1203 PACKAGE='$PACKAGE'
1204 VERSION='$VERSION'
1205 RM='$RM'
1206 ofile='$ofile'], [])
1207 ])dnl /_LT_CONFIG_SAVE_COMMANDS
1208 ])# _LT_CONFIG
1209
1210
1211 # LT_SUPPORTED_TAG(TAG)
1212 # ---------------------
1213 # Trace this macro to discover what tags are supported by the libtool
1214 # --tag option, using:
1215 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
1216 AC_DEFUN([LT_SUPPORTED_TAG], [])
1217
1218
1219 # C support is built-in for now
1220 m4_define([_LT_LANG_C_enabled], [])
1221 m4_define([_LT_TAGS], [])
1222
1223
1224 # LT_LANG(LANG)
1225 # -------------
1226 # Enable libtool support for the given language if not already enabled.
1227 AC_DEFUN([LT_LANG],
1228 [AC_BEFORE([$0], [LT_OUTPUT])dnl
1229 m4_case([$1],
1230 [C], [_LT_LANG(C)],
1231 [C++], [_LT_LANG(CXX)],
1232 [Go], [_LT_LANG(GO)],
1233 [Java], [_LT_LANG(GCJ)],
1234 [Fortran 77], [_LT_LANG(F77)],
1235 [Fortran], [_LT_LANG(FC)],
1236 [Windows Resource], [_LT_LANG(RC)],
1237 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1238 [_LT_LANG($1)],
1239 [m4_fatal([$0: unsupported language: "$1"])])])dnl
1240 ])# LT_LANG
1241
1242
1243 # _LT_LANG(LANGNAME)
1244 # ------------------
1245 m4_defun([_LT_LANG],
1246 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
1247 [LT_SUPPORTED_TAG([$1])dnl
1248 m4_append([_LT_TAGS], [$1 ])dnl
1249 m4_define([_LT_LANG_]$1[_enabled], [])dnl
1250 _LT_LANG_$1_CONFIG($1)])dnl
1251 ])# _LT_LANG
1252
1253
1254 m4_ifndef([AC_PROG_GO], [
1255 # NOTE: This macro has been submitted for inclusion into #
1256 # GNU Autoconf as AC_PROG_GO. When it is available in #
1257 # a released version of Autoconf we should remove this #
1258 # macro and use it instead. #
1259 m4_defun([AC_PROG_GO],
1260 [AC_LANG_PUSH(Go)dnl
1261 AC_ARG_VAR([GOC], [Go compiler command])dnl
1262 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
1263 _AC_ARG_VAR_LDFLAGS()dnl
1264 AC_CHECK_TOOL(GOC, gccgo)
1265 if test -z "$GOC"; then
1266 if test -n "$ac_tool_prefix"; then
1267 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
1268 fi
1269 fi
1270 if test -z "$GOC"; then
1271 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
1272 fi
1273 ])#m4_defun
1274 ])#m4_ifndef
1275
1276
1277 # _LT_LANG_DEFAULT_CONFIG
1278 # -----------------------
1279 m4_defun([_LT_LANG_DEFAULT_CONFIG],
1280 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
1281 [LT_LANG(CXX)],
1282 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1283
1284 AC_PROVIDE_IFELSE([AC_PROG_F77],
1285 [LT_LANG(F77)],
1286 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1287
1288 AC_PROVIDE_IFELSE([AC_PROG_FC],
1289 [LT_LANG(FC)],
1290 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1291
1292 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1293 dnl pulling things in needlessly.
1294 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1295 [LT_LANG(GCJ)],
1296 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1297 [LT_LANG(GCJ)],
1298 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1299 [LT_LANG(GCJ)],
1300 [m4_ifdef([AC_PROG_GCJ],
1301 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1302 m4_ifdef([A][M_PROG_GCJ],
1303 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1304 m4_ifdef([LT_PROG_GCJ],
1305 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1306
1307 AC_PROVIDE_IFELSE([AC_PROG_GO],
1308 [LT_LANG(GO)],
1309 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
1310
1311 AC_PROVIDE_IFELSE([LT_PROG_RC],
1312 [LT_LANG(RC)],
1313 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1314 ])# _LT_LANG_DEFAULT_CONFIG
1315
1316 # Obsolete macros:
1317 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1318 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1319 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1320 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1321 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1322 dnl aclocal-1.4 backwards compatibility:
1323 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1324 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1325 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1326 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1327 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1328
1329
1330 # _LT_TAG_COMPILER
1331 # ----------------
1332 m4_defun([_LT_TAG_COMPILER],
1333 [AC_REQUIRE([AC_PROG_CC])dnl
1334
1335 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1336 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1337 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1338 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1339
1340 # If no C compiler was specified, use CC.
1341 LTCC=${LTCC-"$CC"}
1342
1343 # If no C compiler flags were specified, use CFLAGS.
1344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1345
1346 # Allow CC to be a program name with arguments.
1347 compiler=$CC
1348 ])# _LT_TAG_COMPILER
1349
1350
1351 # _LT_COMPILER_BOILERPLATE
1352 # ------------------------
1353 # Check for compiler boilerplate output or warnings with
1354 # the simple compiler test code.
1355 m4_defun([_LT_COMPILER_BOILERPLATE],
1356 [m4_require([_LT_DECL_SED])dnl
1357 ac_outfile=conftest.$ac_objext
1358 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1359 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1360 _lt_compiler_boilerplate=`cat conftest.err`
1361 $RM conftest*
1362 ])# _LT_COMPILER_BOILERPLATE
1363
1364
1365 # _LT_LINKER_BOILERPLATE
1366 # ----------------------
1367 # Check for linker boilerplate output or warnings with
1368 # the simple link test code.
1369 m4_defun([_LT_LINKER_BOILERPLATE],
1370 [m4_require([_LT_DECL_SED])dnl
1371 ac_outfile=conftest.$ac_objext
1372 echo "$lt_simple_link_test_code" >conftest.$ac_ext
1373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1374 _lt_linker_boilerplate=`cat conftest.err`
1375 $RM -r conftest*
1376 ])# _LT_LINKER_BOILERPLATE
1377
1378 # _LT_REQUIRED_DARWIN_CHECKS
1379 # -------------------------
1380 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1381 case $host_os in
1382 rhapsody* | darwin*)
1383 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1384 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1385 AC_CHECK_TOOL([LIPO], [lipo], [:])
1386 AC_CHECK_TOOL([OTOOL], [otool], [:])
1387 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1388 _LT_DECL([], [DSYMUTIL], [1],
1389 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1390 _LT_DECL([], [NMEDIT], [1],
1391 [Tool to change global to local symbols on Mac OS X])
1392 _LT_DECL([], [LIPO], [1],
1393 [Tool to manipulate fat objects and archives on Mac OS X])
1394 _LT_DECL([], [OTOOL], [1],
1395 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1396 _LT_DECL([], [OTOOL64], [1],
1397 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1398
1399 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1400 [lt_cv_apple_cc_single_mod=no
1401 if test -z "$LT_MULTI_MODULE"; then
1402 # By default we will add the -single_module flag. You can override
1403 # by either setting the environment variable LT_MULTI_MODULE
1404 # non-empty at configure time, or by adding -multi_module to the
1405 # link flags.
1406 rm -rf libconftest.dylib*
1407 echo "int foo(void){return 1;}" > conftest.c
1408 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1409 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1410 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1411 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1412 _lt_result=$?
1413 # If there is a non-empty error log, and "single_module"
1414 # appears in it, assume the flag caused a linker warning
1415 if test -s conftest.err && $GREP single_module conftest.err; then
1416 cat conftest.err >&AS_MESSAGE_LOG_FD
1417 # Otherwise, if the output was created with a 0 exit code from
1418 # the compiler, it worked.
1419 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1420 lt_cv_apple_cc_single_mod=yes
1421 else
1422 cat conftest.err >&AS_MESSAGE_LOG_FD
1423 fi
1424 rm -rf libconftest.dylib*
1425 rm -f conftest.*
1426 fi])
1427
1428 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1429 [lt_cv_ld_exported_symbols_list],
1430 [lt_cv_ld_exported_symbols_list=no
1431 save_LDFLAGS=$LDFLAGS
1432 echo "_main" > conftest.sym
1433 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1434 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1435 [lt_cv_ld_exported_symbols_list=yes],
1436 [lt_cv_ld_exported_symbols_list=no])
1437 LDFLAGS=$save_LDFLAGS
1438 ])
1439
1440 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1441 [lt_cv_ld_force_load=no
1442 cat > conftest.c << _LT_EOF
1443 int forced_loaded() { return 2;}
1444 _LT_EOF
1445 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1446 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1447 echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1448 $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1449 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1450 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1451 cat > conftest.c << _LT_EOF
1452 int main() { return 0;}
1453 _LT_EOF
1454 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1455 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1456 _lt_result=$?
1457 if test -s conftest.err && $GREP force_load conftest.err; then
1458 cat conftest.err >&AS_MESSAGE_LOG_FD
1459 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1460 lt_cv_ld_force_load=yes
1461 else
1462 cat conftest.err >&AS_MESSAGE_LOG_FD
1463 fi
1464 rm -f conftest.err libconftest.a conftest conftest.c
1465 rm -rf conftest.dSYM
1466 ])
1467 case $host_os in
1468 rhapsody* | darwin1.[[012]])
1469 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1470 darwin1.*)
1471 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1472 darwin*) # darwin 5.x on
1473 # if running on 10.5 or later, the deployment target defaults
1474 # to the OS version, if on x86, and 10.4, the deployment
1475 # target defaults to 10.4. Don't you love it?
1476 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1477 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1478 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1479 10.[[012]][[,.]]*)
1480 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1481 10.*)
1482 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1483 esac
1484 ;;
1485 esac
1486 if test yes = "$lt_cv_apple_cc_single_mod"; then
1487 _lt_dar_single_mod='$single_module'
1488 fi
1489 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1490 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1491 else
1492 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1493 fi
1494 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1495 _lt_dsymutil='~$DSYMUTIL $lib || :'
1496 else
1497 _lt_dsymutil=
1498 fi
1499 ;;
1500 esac
1501 ])
1502
1503
1504 # _LT_DARWIN_LINKER_FEATURES([TAG])
1505 # ---------------------------------
1506 # Checks for linker and compiler features on darwin
1507 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1508 [
1509 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1510 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1511 _LT_TAGVAR(hardcode_direct, $1)=no
1512 _LT_TAGVAR(hardcode_automatic, $1)=yes
1513 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1514 if test yes = "$lt_cv_ld_force_load"; then
1515 _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\"`'
1516 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1517 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1518 else
1519 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1520 fi
1521 _LT_TAGVAR(link_all_deplibs, $1)=yes
1522 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
1523 case $cc_basename in
1524 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1525 *) _lt_dar_can_shared=$GCC ;;
1526 esac
1527 if test yes = "$_lt_dar_can_shared"; then
1528 output_verbose_link_cmd=func_echo_all
1529 _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"
1530 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1531 _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"
1532 _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"
1533 m4_if([$1], [CXX],
1534 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
1535 _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"
1536 _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"
1537 fi
1538 ],[])
1539 else
1540 _LT_TAGVAR(ld_shlibs, $1)=no
1541 fi
1542 ])
1543
1544 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1545 # ----------------------------------
1546 # Links a minimal program and checks the executable
1547 # for the system default hardcoded library path. In most cases,
1548 # this is /usr/lib:/lib, but when the MPI compilers are used
1549 # the location of the communication and MPI libs are included too.
1550 # If we don't find anything, use the default library path according
1551 # to the aix ld manual.
1552 # Store the results from the different compilers for each TAGNAME.
1553 # Allow to override them for all tags through lt_cv_aix_libpath.
1554 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1555 [m4_require([_LT_DECL_SED])dnl
1556 if test set = "${lt_cv_aix_libpath+set}"; then
1557 aix_libpath=$lt_cv_aix_libpath
1558 else
1559 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1560 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1561 lt_aix_libpath_sed='[
1562 /Import File Strings/,/^$/ {
1563 /^0/ {
1564 s/^0 *\([^ ]*\) *$/\1/
1565 p
1566 }
1567 }]'
1568 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1569 # Check for a 64-bit object if we didn't find anything.
1570 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1571 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1572 fi],[])
1573 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1574 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
1575 fi
1576 ])
1577 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1578 fi
1579 ])# _LT_SYS_MODULE_PATH_AIX
1580
1581
1582 # _LT_SHELL_INIT(ARG)
1583 # -------------------
1584 m4_define([_LT_SHELL_INIT],
1585 [m4_divert_text([M4SH-INIT], [$1
1586 ])])# _LT_SHELL_INIT
1587
1588
1589
1590 # _LT_PROG_ECHO_BACKSLASH
1591 # -----------------------
1592 # Find how we can fake an echo command that does not interpret backslash.
1593 # In particular, with Autoconf 2.60 or later we add some code to the start
1594 # of the generated configure script that will find a shell with a builtin
1595 # printf (that we can use as an echo command).
1596 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1597 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1598 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1599 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1600
1601 AC_MSG_CHECKING([how to print strings])
1602 # Test print first, because it will be a builtin if present.
1603 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1604 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1605 ECHO='print -r --'
1606 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1607 ECHO='printf %s\n'
1608 else
1609 # Use this function as a fallback that always works.
1610 func_fallback_echo ()
1611 {
1612 eval 'cat <<_LTECHO_EOF
1613 $[]1
1614 _LTECHO_EOF'
1615 }
1616 ECHO='func_fallback_echo'
1617 fi
1618
1619 # func_echo_all arg...
1620 # Invoke $ECHO with all args, space-separated.
1621 func_echo_all ()
1622 {
1623 $ECHO "$*"
1624 }
1625
1626 case $ECHO in
1627 printf*) AC_MSG_RESULT([printf]) ;;
1628 print*) AC_MSG_RESULT([print -r]) ;;
1629 *) AC_MSG_RESULT([cat]) ;;
1630 esac
1631
1632 m4_ifdef([_AS_DETECT_SUGGESTED],
1633 [_AS_DETECT_SUGGESTED([
1634 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1635 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1636 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1637 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1638 PATH=/empty FPATH=/empty; export PATH FPATH
1639 test "X`printf %s $ECHO`" = "X$ECHO" \
1640 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1641
1642 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1643 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1644 ])# _LT_PROG_ECHO_BACKSLASH
1645
1646
1647 # _LT_WITH_SYSROOT
1648 # ----------------
1649 AC_DEFUN([_LT_WITH_SYSROOT],
1650 [AC_MSG_CHECKING([for sysroot])
1651 AC_ARG_WITH([sysroot],
1652 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1653 [Search for dependent libraries within DIR (or the compiler's sysroot
1654 if not specified).])],
1655 [], [with_sysroot=no])
1656
1657 dnl lt_sysroot will always be passed unquoted. We quote it here
1658 dnl in case the user passed a directory name.
1659 lt_sysroot=
1660 case $with_sysroot in #(
1661 yes)
1662 if test yes = "$GCC"; then
1663 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1664 fi
1665 ;; #(
1666 /*)
1667 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1668 ;; #(
1669 no|'')
1670 ;; #(
1671 *)
1672 AC_MSG_RESULT([$with_sysroot])
1673 AC_MSG_ERROR([The sysroot must be an absolute path.])
1674 ;;
1675 esac
1676
1677 AC_MSG_RESULT([${lt_sysroot:-no}])
1678 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1679 [dependent libraries, and where our libraries should be installed.])])
1680
1681 # _LT_ENABLE_LOCK
1682 # ---------------
1683 m4_defun([_LT_ENABLE_LOCK],
1684 [AC_ARG_ENABLE([libtool-lock],
1685 [AS_HELP_STRING([--disable-libtool-lock],
1686 [avoid locking (might break parallel builds)])])
1687 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1688
1689 # Some flags need to be propagated to the compiler or linker for good
1690 # libtool support.
1691 case $host in
1692 ia64-*-hpux*)
1693 # Find out what ABI is being produced by ac_compile, and set mode
1694 # options accordingly.
1695 echo 'int i;' > conftest.$ac_ext
1696 if AC_TRY_EVAL(ac_compile); then
1697 case `/usr/bin/file conftest.$ac_objext` in
1698 *ELF-32*)
1699 HPUX_IA64_MODE=32
1700 ;;
1701 *ELF-64*)
1702 HPUX_IA64_MODE=64
1703 ;;
1704 esac
1705 fi
1706 rm -rf conftest*
1707 ;;
1708 *-*-irix6*)
1709 # Find out what ABI is being produced by ac_compile, and set linker
1710 # options accordingly.
1711 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1712 if AC_TRY_EVAL(ac_compile); then
1713 if test yes = "$lt_cv_prog_gnu_ld"; then
1714 case `/usr/bin/file conftest.$ac_objext` in
1715 *32-bit*)
1716 LD="${LD-ld} -melf32bsmip"
1717 ;;
1718 *N32*)
1719 LD="${LD-ld} -melf32bmipn32"
1720 ;;
1721 *64-bit*)
1722 LD="${LD-ld} -melf64bmip"
1723 ;;
1724 esac
1725 else
1726 case `/usr/bin/file conftest.$ac_objext` in
1727 *32-bit*)
1728 LD="${LD-ld} -32"
1729 ;;
1730 *N32*)
1731 LD="${LD-ld} -n32"
1732 ;;
1733 *64-bit*)
1734 LD="${LD-ld} -64"
1735 ;;
1736 esac
1737 fi
1738 fi
1739 rm -rf conftest*
1740 ;;
1741
1742 mips64*-*linux*)
1743 # Find out what ABI is being produced by ac_compile, and set linker
1744 # options accordingly.
1745 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1746 if AC_TRY_EVAL(ac_compile); then
1747 emul=elf
1748 case `/usr/bin/file conftest.$ac_objext` in
1749 *32-bit*)
1750 emul="${emul}32"
1751 ;;
1752 *64-bit*)
1753 emul="${emul}64"
1754 ;;
1755 esac
1756 case `/usr/bin/file conftest.$ac_objext` in
1757 *MSB*)
1758 emul="${emul}btsmip"
1759 ;;
1760 *LSB*)
1761 emul="${emul}ltsmip"
1762 ;;
1763 esac
1764 case `/usr/bin/file conftest.$ac_objext` in
1765 *N32*)
1766 emul="${emul}n32"
1767 ;;
1768 esac
1769 LD="${LD-ld} -m $emul"
1770 fi
1771 rm -rf conftest*
1772 ;;
1773
1774 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1775 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1776 # Find out what ABI is being produced by ac_compile, and set linker
1777 # options accordingly. Note that the listed cases only cover the
1778 # situations where additional linker options are needed (such as when
1779 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1780 # vice versa); the common cases where no linker options are needed do
1781 # not appear in the list.
1782 echo 'int i;' > conftest.$ac_ext
1783 if AC_TRY_EVAL(ac_compile); then
1784 case `/usr/bin/file conftest.o` in
1785 *32-bit*)
1786 case $host in
1787 x86_64-*kfreebsd*-gnu)
1788 LD="${LD-ld} -m elf_i386_fbsd"
1789 ;;
1790 x86_64-*linux*)
1791 case `/usr/bin/file conftest.o` in
1792 *x86-64*)
1793 LD="${LD-ld} -m elf32_x86_64"
1794 ;;
1795 *)
1796 LD="${LD-ld} -m elf_i386"
1797 ;;
1798 esac
1799 ;;
1800 powerpc64le-*linux*)
1801 LD="${LD-ld} -m elf32lppclinux"
1802 ;;
1803 powerpc64-*linux*)
1804 LD="${LD-ld} -m elf32ppclinux"
1805 ;;
1806 s390x-*linux*)
1807 LD="${LD-ld} -m elf_s390"
1808 ;;
1809 sparc64-*linux*)
1810 LD="${LD-ld} -m elf32_sparc"
1811 ;;
1812 esac
1813 ;;
1814 *64-bit*)
1815 case $host in
1816 x86_64-*kfreebsd*-gnu)
1817 LD="${LD-ld} -m elf_x86_64_fbsd"
1818 ;;
1819 x86_64-*linux*)
1820 LD="${LD-ld} -m elf_x86_64"
1821 ;;
1822 powerpcle-*linux*)
1823 LD="${LD-ld} -m elf64lppc"
1824 ;;
1825 powerpc-*linux*)
1826 LD="${LD-ld} -m elf64ppc"
1827 ;;
1828 s390*-*linux*|s390*-*tpf*)
1829 LD="${LD-ld} -m elf64_s390"
1830 ;;
1831 sparc*-*linux*)
1832 LD="${LD-ld} -m elf64_sparc"
1833 ;;
1834 esac
1835 ;;
1836 esac
1837 fi
1838 rm -rf conftest*
1839 ;;
1840
1841 *-*-sco3.2v5*)
1842 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1843 SAVE_CFLAGS=$CFLAGS
1844 CFLAGS="$CFLAGS -belf"
1845 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1846 [AC_LANG_PUSH(C)
1847 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1848 AC_LANG_POP])
1849 if test yes != "$lt_cv_cc_needs_belf"; then
1850 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1851 CFLAGS=$SAVE_CFLAGS
1852 fi
1853 ;;
1854 *-*solaris*)
1855 # Find out what ABI is being produced by ac_compile, and set linker
1856 # options accordingly.
1857 echo 'int i;' > conftest.$ac_ext
1858 if AC_TRY_EVAL(ac_compile); then
1859 case `/usr/bin/file conftest.o` in
1860 *64-bit*)
1861 case $lt_cv_prog_gnu_ld in
1862 yes*)
1863 case $host in
1864 i?86-*-solaris*|x86_64-*-solaris*)
1865 LD="${LD-ld} -m elf_x86_64"
1866 ;;
1867 sparc*-*-solaris*)
1868 LD="${LD-ld} -m elf64_sparc"
1869 ;;
1870 esac
1871 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1872 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1873 LD=${LD-ld}_sol2
1874 fi
1875 ;;
1876 *)
1877 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1878 LD="${LD-ld} -64"
1879 fi
1880 ;;
1881 esac
1882 ;;
1883 esac
1884 fi
1885 rm -rf conftest*
1886 ;;
1887 esac
1888
1889 need_locks=$enable_libtool_lock
1890 ])# _LT_ENABLE_LOCK
1891
1892
1893 # _LT_PROG_AR
1894 # -----------
1895 m4_defun([_LT_PROG_AR],
1896 [AC_CHECK_TOOLS(AR, [ar], false)
1897 : ${AR=ar}
1898 : ${AR_FLAGS=cr}
1899 _LT_DECL([], [AR], [1], [The archiver])
1900 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1901
1902 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1903 [lt_cv_ar_at_file=no
1904 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1905 [echo conftest.$ac_objext > conftest.lst
1906 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1907 AC_TRY_EVAL([lt_ar_try])
1908 if test 0 -eq "$ac_status"; then
1909 # Ensure the archiver fails upon bogus file names.
1910 rm -f conftest.$ac_objext libconftest.a
1911 AC_TRY_EVAL([lt_ar_try])
1912 if test 0 -ne "$ac_status"; then
1913 lt_cv_ar_at_file=@
1914 fi
1915 fi
1916 rm -f conftest.* libconftest.a
1917 ])
1918 ])
1919
1920 if test no = "$lt_cv_ar_at_file"; then
1921 archiver_list_spec=
1922 else
1923 archiver_list_spec=$lt_cv_ar_at_file
1924 fi
1925 _LT_DECL([], [archiver_list_spec], [1],
1926 [How to feed a file listing to the archiver])
1927 ])# _LT_PROG_AR
1928
1929
1930 # _LT_CMD_OLD_ARCHIVE
1931 # -------------------
1932 m4_defun([_LT_CMD_OLD_ARCHIVE],
1933 [_LT_PROG_AR
1934
1935 AC_CHECK_TOOL(STRIP, strip, :)
1936 test -z "$STRIP" && STRIP=:
1937 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1938
1939 AC_CHECK_TOOL(RANLIB, ranlib, :)
1940 test -z "$RANLIB" && RANLIB=:
1941 _LT_DECL([], [RANLIB], [1],
1942 [Commands used to install an old-style archive])
1943
1944 # Determine commands to create old-style static archives.
1945 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1946 old_postinstall_cmds='chmod 644 $oldlib'
1947 old_postuninstall_cmds=
1948
1949 if test -n "$RANLIB"; then
1950 case $host_os in
1951 bitrig* | openbsd*)
1952 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1953 ;;
1954 *)
1955 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1956 ;;
1957 esac
1958 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1959 fi
1960
1961 case $host_os in
1962 darwin*)
1963 lock_old_archive_extraction=yes ;;
1964 *)
1965 lock_old_archive_extraction=no ;;
1966 esac
1967 _LT_DECL([], [old_postinstall_cmds], [2])
1968 _LT_DECL([], [old_postuninstall_cmds], [2])
1969 _LT_TAGDECL([], [old_archive_cmds], [2],
1970 [Commands used to build an old-style archive])
1971 _LT_DECL([], [lock_old_archive_extraction], [0],
1972 [Whether to use a lock for old archive extraction])
1973 ])# _LT_CMD_OLD_ARCHIVE
1974
1975
1976 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1977 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1978 # ----------------------------------------------------------------
1979 # Check whether the given compiler option works
1980 AC_DEFUN([_LT_COMPILER_OPTION],
1981 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1982 m4_require([_LT_DECL_SED])dnl
1983 AC_CACHE_CHECK([$1], [$2],
1984 [$2=no
1985 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1987 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
1988 # Insert the option either (1) after the last *FLAGS variable, or
1989 # (2) before a word containing "conftest.", or (3) at the end.
1990 # Note that $ac_compile itself does not contain backslashes and begins
1991 # with a dollar sign (not a hyphen), so the echo should work correctly.
1992 # The option is referenced via a variable to avoid confusing sed.
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>conftest.err)
1999 ac_status=$?
2000 cat conftest.err >&AS_MESSAGE_LOG_FD
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2002 if (exit $ac_status) && test -s "$ac_outfile"; then
2003 # The compiler can only warn and ignore the option if not recognized
2004 # So say no if there are warnings other than the usual output.
2005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2008 $2=yes
2009 fi
2010 fi
2011 $RM conftest*
2012 ])
2013
2014 if test yes = "[$]$2"; then
2015 m4_if([$5], , :, [$5])
2016 else
2017 m4_if([$6], , :, [$6])
2018 fi
2019 ])# _LT_COMPILER_OPTION
2020
2021 # Old name:
2022 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2023 dnl aclocal-1.4 backwards compatibility:
2024 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2025
2026
2027 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2028 # [ACTION-SUCCESS], [ACTION-FAILURE])
2029 # ----------------------------------------------------
2030 # Check whether the given linker option works
2031 AC_DEFUN([_LT_LINKER_OPTION],
2032 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2033 m4_require([_LT_DECL_SED])dnl
2034 AC_CACHE_CHECK([$1], [$2],
2035 [$2=no
2036 save_LDFLAGS=$LDFLAGS
2037 LDFLAGS="$LDFLAGS $3"
2038 echo "$lt_simple_link_test_code" > conftest.$ac_ext
2039 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2040 # The linker can only warn and ignore the option if not recognized
2041 # So say no if there are warnings
2042 if test -s conftest.err; then
2043 # Append any errors to the config.log.
2044 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2045 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2047 if diff conftest.exp conftest.er2 >/dev/null; then
2048 $2=yes
2049 fi
2050 else
2051 $2=yes
2052 fi
2053 fi
2054 $RM -r conftest*
2055 LDFLAGS=$save_LDFLAGS
2056 ])
2057
2058 if test yes = "[$]$2"; then
2059 m4_if([$4], , :, [$4])
2060 else
2061 m4_if([$5], , :, [$5])
2062 fi
2063 ])# _LT_LINKER_OPTION
2064
2065 # Old name:
2066 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2067 dnl aclocal-1.4 backwards compatibility:
2068 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2069
2070
2071 # LT_CMD_MAX_LEN
2072 #---------------
2073 AC_DEFUN([LT_CMD_MAX_LEN],
2074 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2075 # find the maximum length of command line arguments
2076 AC_MSG_CHECKING([the maximum length of command line arguments])
2077 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2078 i=0
2079 teststring=ABCD
2080
2081 case $build_os in
2082 msdosdjgpp*)
2083 # On DJGPP, this test can blow up pretty badly due to problems in libc
2084 # (any single argument exceeding 2000 bytes causes a buffer overrun
2085 # during glob expansion). Even if it were fixed, the result of this
2086 # check would be larger than it should be.
2087 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2088 ;;
2089
2090 gnu*)
2091 # Under GNU Hurd, this test is not required because there is
2092 # no limit to the length of command line arguments.
2093 # Libtool will interpret -1 as no limit whatsoever
2094 lt_cv_sys_max_cmd_len=-1;
2095 ;;
2096
2097 cygwin* | mingw* | cegcc*)
2098 # On Win9x/ME, this test blows up -- it succeeds, but takes
2099 # about 5 minutes as the teststring grows exponentially.
2100 # Worse, since 9x/ME are not pre-emptively multitasking,
2101 # you end up with a "frozen" computer, even though with patience
2102 # the test eventually succeeds (with a max line length of 256k).
2103 # Instead, let's just punt: use the minimum linelength reported by
2104 # all of the supported platforms: 8192 (on NT/2K/XP).
2105 lt_cv_sys_max_cmd_len=8192;
2106 ;;
2107
2108 mint*)
2109 # On MiNT this can take a long time and run out of memory.
2110 lt_cv_sys_max_cmd_len=8192;
2111 ;;
2112
2113 amigaos*)
2114 # On AmigaOS with pdksh, this test takes hours, literally.
2115 # So we just punt and use a minimum line length of 8192.
2116 lt_cv_sys_max_cmd_len=8192;
2117 ;;
2118
2119 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
2120 # This has been around since 386BSD, at least. Likely further.
2121 if test -x /sbin/sysctl; then
2122 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2123 elif test -x /usr/sbin/sysctl; then
2124 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2125 else
2126 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2127 fi
2128 # And add a safety zone
2129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2131 ;;
2132
2133 interix*)
2134 # We know the value 262144 and hardcode it with a safety zone (like BSD)
2135 lt_cv_sys_max_cmd_len=196608
2136 ;;
2137
2138 os2*)
2139 # The test takes a long time on OS/2.
2140 lt_cv_sys_max_cmd_len=8192
2141 ;;
2142
2143 osf*)
2144 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2145 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2146 # nice to cause kernel panics so lets avoid the loop below.
2147 # First set a reasonable default.
2148 lt_cv_sys_max_cmd_len=16384
2149 #
2150 if test -x /sbin/sysconfig; then
2151 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2152 *1*) lt_cv_sys_max_cmd_len=-1 ;;
2153 esac
2154 fi
2155 ;;
2156 sco3.2v5*)
2157 lt_cv_sys_max_cmd_len=102400
2158 ;;
2159 sysv5* | sco5v6* | sysv4.2uw2*)
2160 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2161 if test -n "$kargmax"; then
2162 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2163 else
2164 lt_cv_sys_max_cmd_len=32768
2165 fi
2166 ;;
2167 *)
2168 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2169 if test -n "$lt_cv_sys_max_cmd_len" && \
2170 test undefined != "$lt_cv_sys_max_cmd_len"; then
2171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2173 else
2174 # Make teststring a little bigger before we do anything with it.
2175 # a 1K string should be a reasonable start.
2176 for i in 1 2 3 4 5 6 7 8; do
2177 teststring=$teststring$teststring
2178 done
2179 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2180 # If test is not a shell built-in, we'll probably end up computing a
2181 # maximum length that is only half of the actual maximum length, but
2182 # we can't tell.
2183 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
2184 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2185 test 17 != "$i" # 1/2 MB should be enough
2186 do
2187 i=`expr $i + 1`
2188 teststring=$teststring$teststring
2189 done
2190 # Only check the string length outside the loop.
2191 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2192 teststring=
2193 # Add a significant safety factor because C++ compilers can tack on
2194 # massive amounts of additional arguments before passing them to the
2195 # linker. It appears as though 1/2 is a usable value.
2196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2197 fi
2198 ;;
2199 esac
2200 ])
2201 if test -n "$lt_cv_sys_max_cmd_len"; then
2202 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2203 else
2204 AC_MSG_RESULT(none)
2205 fi
2206 max_cmd_len=$lt_cv_sys_max_cmd_len
2207 _LT_DECL([], [max_cmd_len], [0],
2208 [What is the maximum length of a command?])
2209 ])# LT_CMD_MAX_LEN
2210
2211 # Old name:
2212 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2213 dnl aclocal-1.4 backwards compatibility:
2214 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2215
2216
2217 # _LT_HEADER_DLFCN
2218 # ----------------
2219 m4_defun([_LT_HEADER_DLFCN],
2220 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2221 ])# _LT_HEADER_DLFCN
2222
2223
2224 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2225 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2226 # ----------------------------------------------------------------
2227 m4_defun([_LT_TRY_DLOPEN_SELF],
2228 [m4_require([_LT_HEADER_DLFCN])dnl
2229 if test yes = "$cross_compiling"; then :
2230 [$4]
2231 else
2232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2233 lt_status=$lt_dlunknown
2234 cat > conftest.$ac_ext <<_LT_EOF
2235 [#line $LINENO "configure"
2236 #include "confdefs.h"
2237
2238 #if HAVE_DLFCN_H
2239 #include <dlfcn.h>
2240 #endif
2241
2242 #include <stdio.h>
2243
2244 #ifdef RTLD_GLOBAL
2245 # define LT_DLGLOBAL RTLD_GLOBAL
2246 #else
2247 # ifdef DL_GLOBAL
2248 # define LT_DLGLOBAL DL_GLOBAL
2249 # else
2250 # define LT_DLGLOBAL 0
2251 # endif
2252 #endif
2253
2254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2255 find out it does not work in some platform. */
2256 #ifndef LT_DLLAZY_OR_NOW
2257 # ifdef RTLD_LAZY
2258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
2259 # else
2260 # ifdef DL_LAZY
2261 # define LT_DLLAZY_OR_NOW DL_LAZY
2262 # else
2263 # ifdef RTLD_NOW
2264 # define LT_DLLAZY_OR_NOW RTLD_NOW
2265 # else
2266 # ifdef DL_NOW
2267 # define LT_DLLAZY_OR_NOW DL_NOW
2268 # else
2269 # define LT_DLLAZY_OR_NOW 0
2270 # endif
2271 # endif
2272 # endif
2273 # endif
2274 #endif
2275
2276 /* When -fvisibility=hidden is used, assume the code has been annotated
2277 correspondingly for the symbols needed. */
2278 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2279 int fnord () __attribute__((visibility("default")));
2280 #endif
2281
2282 int fnord () { return 42; }
2283 int main ()
2284 {
2285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2286 int status = $lt_dlunknown;
2287
2288 if (self)
2289 {
2290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2291 else
2292 {
2293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2294 else puts (dlerror ());
2295 }
2296 /* dlclose (self); */
2297 }
2298 else
2299 puts (dlerror ());
2300
2301 return status;
2302 }]
2303 _LT_EOF
2304 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
2305 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2306 lt_status=$?
2307 case x$lt_status in
2308 x$lt_dlno_uscore) $1 ;;
2309 x$lt_dlneed_uscore) $2 ;;
2310 x$lt_dlunknown|x*) $3 ;;
2311 esac
2312 else :
2313 # compilation failed
2314 $3
2315 fi
2316 fi
2317 rm -fr conftest*
2318 ])# _LT_TRY_DLOPEN_SELF
2319
2320
2321 # LT_SYS_DLOPEN_SELF
2322 # ------------------
2323 AC_DEFUN([LT_SYS_DLOPEN_SELF],
2324 [m4_require([_LT_HEADER_DLFCN])dnl
2325 if test yes != "$enable_dlopen"; then
2326 enable_dlopen=unknown
2327 enable_dlopen_self=unknown
2328 enable_dlopen_self_static=unknown
2329 else
2330 lt_cv_dlopen=no
2331 lt_cv_dlopen_libs=
2332
2333 case $host_os in
2334 beos*)
2335 lt_cv_dlopen=load_add_on
2336 lt_cv_dlopen_libs=
2337 lt_cv_dlopen_self=yes
2338 ;;
2339
2340 mingw* | pw32* | cegcc*)
2341 lt_cv_dlopen=LoadLibrary
2342 lt_cv_dlopen_libs=
2343 ;;
2344
2345 cygwin*)
2346 lt_cv_dlopen=dlopen
2347 lt_cv_dlopen_libs=
2348 ;;
2349
2350 darwin*)
2351 # if libdl is installed we need to link against it
2352 AC_CHECK_LIB([dl], [dlopen],
2353 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
2354 lt_cv_dlopen=dyld
2355 lt_cv_dlopen_libs=
2356 lt_cv_dlopen_self=yes
2357 ])
2358 ;;
2359
2360 tpf*)
2361 # Don't try to run any link tests for TPF. We know it's impossible
2362 # because TPF is a cross-compiler, and we know how we open DSOs.
2363 lt_cv_dlopen=dlopen
2364 lt_cv_dlopen_libs=
2365 lt_cv_dlopen_self=no
2366 ;;
2367
2368 *)
2369 AC_CHECK_FUNC([shl_load],
2370 [lt_cv_dlopen=shl_load],
2371 [AC_CHECK_LIB([dld], [shl_load],
2372 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
2373 [AC_CHECK_FUNC([dlopen],
2374 [lt_cv_dlopen=dlopen],
2375 [AC_CHECK_LIB([dl], [dlopen],
2376 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
2377 [AC_CHECK_LIB([svld], [dlopen],
2378 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
2379 [AC_CHECK_LIB([dld], [dld_link],
2380 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
2381 ])
2382 ])
2383 ])
2384 ])
2385 ])
2386 ;;
2387 esac
2388
2389 if test no = "$lt_cv_dlopen"; then
2390 enable_dlopen=no
2391 else
2392 enable_dlopen=yes
2393 fi
2394
2395 case $lt_cv_dlopen in
2396 dlopen)
2397 save_CPPFLAGS=$CPPFLAGS
2398 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2399
2400 save_LDFLAGS=$LDFLAGS
2401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2402
2403 save_LIBS=$LIBS
2404 LIBS="$lt_cv_dlopen_libs $LIBS"
2405
2406 AC_CACHE_CHECK([whether a program can dlopen itself],
2407 lt_cv_dlopen_self, [dnl
2408 _LT_TRY_DLOPEN_SELF(
2409 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2410 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2411 ])
2412
2413 if test yes = "$lt_cv_dlopen_self"; then
2414 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2415 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2416 lt_cv_dlopen_self_static, [dnl
2417 _LT_TRY_DLOPEN_SELF(
2418 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2419 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2420 ])
2421 fi
2422
2423 CPPFLAGS=$save_CPPFLAGS
2424 LDFLAGS=$save_LDFLAGS
2425 LIBS=$save_LIBS
2426 ;;
2427 esac
2428
2429 case $lt_cv_dlopen_self in
2430 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2431 *) enable_dlopen_self=unknown ;;
2432 esac
2433
2434 case $lt_cv_dlopen_self_static in
2435 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2436 *) enable_dlopen_self_static=unknown ;;
2437 esac
2438 fi
2439 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2440 [Whether dlopen is supported])
2441 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2442 [Whether dlopen of programs is supported])
2443 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2444 [Whether dlopen of statically linked programs is supported])
2445 ])# LT_SYS_DLOPEN_SELF
2446
2447 # Old name:
2448 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2449 dnl aclocal-1.4 backwards compatibility:
2450 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2451
2452
2453 # _LT_COMPILER_C_O([TAGNAME])
2454 # ---------------------------
2455 # Check to see if options -c and -o are simultaneously supported by compiler.
2456 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2457 m4_defun([_LT_COMPILER_C_O],
2458 [m4_require([_LT_DECL_SED])dnl
2459 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2460 m4_require([_LT_TAG_COMPILER])dnl
2461 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2462 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2463 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2464 $RM -r conftest 2>/dev/null
2465 mkdir conftest
2466 cd conftest
2467 mkdir out
2468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2469
2470 lt_compiler_flag="-o out/conftest2.$ac_objext"
2471 # Insert the option either (1) after the last *FLAGS variable, or
2472 # (2) before a word containing "conftest.", or (3) at the end.
2473 # Note that $ac_compile itself does not contain backslashes and begins
2474 # with a dollar sign (not a hyphen), so the echo should work correctly.
2475 lt_compile=`echo "$ac_compile" | $SED \
2476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2477 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2478 -e 's:$: $lt_compiler_flag:'`
2479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2480 (eval "$lt_compile" 2>out/conftest.err)
2481 ac_status=$?
2482 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2485 then
2486 # The compiler can only warn and ignore the option if not recognized
2487 # So say no if there are warnings
2488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2491 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2492 fi
2493 fi
2494 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2495 $RM conftest*
2496 # SGI C++ compiler will create directory out/ii_files/ for
2497 # template instantiation
2498 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2499 $RM out/* && rmdir out
2500 cd ..
2501 $RM -r conftest
2502 $RM conftest*
2503 ])
2504 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2505 [Does compiler simultaneously support -c and -o options?])
2506 ])# _LT_COMPILER_C_O
2507
2508
2509 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2510 # ----------------------------------
2511 # Check to see if we can do hard links to lock some files if needed
2512 m4_defun([_LT_COMPILER_FILE_LOCKS],
2513 [m4_require([_LT_ENABLE_LOCK])dnl
2514 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2515 _LT_COMPILER_C_O([$1])
2516
2517 hard_links=nottested
2518 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
2519 # do not overwrite the value of need_locks provided by the user
2520 AC_MSG_CHECKING([if we can lock with hard links])
2521 hard_links=yes
2522 $RM conftest*
2523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2524 touch conftest.a
2525 ln conftest.a conftest.b 2>&5 || hard_links=no
2526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2527 AC_MSG_RESULT([$hard_links])
2528 if test no = "$hard_links"; then
2529 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2530 need_locks=warn
2531 fi
2532 else
2533 need_locks=no
2534 fi
2535 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2536 ])# _LT_COMPILER_FILE_LOCKS
2537
2538
2539 # _LT_CHECK_OBJDIR
2540 # ----------------
2541 m4_defun([_LT_CHECK_OBJDIR],
2542 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2543 [rm -f .libs 2>/dev/null
2544 mkdir .libs 2>/dev/null
2545 if test -d .libs; then
2546 lt_cv_objdir=.libs
2547 else
2548 # MS-DOS does not allow filenames that begin with a dot.
2549 lt_cv_objdir=_libs
2550 fi
2551 rmdir .libs 2>/dev/null])
2552 objdir=$lt_cv_objdir
2553 _LT_DECL([], [objdir], [0],
2554 [The name of the directory that contains temporary libtool files])dnl
2555 m4_pattern_allow([LT_OBJDIR])dnl
2556 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2557 [Define to the sub-directory where libtool stores uninstalled libraries.])
2558 ])# _LT_CHECK_OBJDIR
2559
2560
2561 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2562 # --------------------------------------
2563 # Check hardcoding attributes.
2564 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2565 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2566 _LT_TAGVAR(hardcode_action, $1)=
2567 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2568 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2569 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
2570
2571 # We can hardcode non-existent directories.
2572 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
2573 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2574 # have to relink, otherwise we might link with an installed library
2575 # when we should be linking with a yet-to-be-installed one
2576 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2577 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
2578 # Linking always hardcodes the temporary library directory.
2579 _LT_TAGVAR(hardcode_action, $1)=relink
2580 else
2581 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2582 _LT_TAGVAR(hardcode_action, $1)=immediate
2583 fi
2584 else
2585 # We cannot hardcode anything, or else we can only hardcode existing
2586 # directories.
2587 _LT_TAGVAR(hardcode_action, $1)=unsupported
2588 fi
2589 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2590
2591 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2592 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
2593 # Fast installation is not supported
2594 enable_fast_install=no
2595 elif test yes = "$shlibpath_overrides_runpath" ||
2596 test no = "$enable_shared"; then
2597 # Fast installation is not necessary
2598 enable_fast_install=needless
2599 fi
2600 _LT_TAGDECL([], [hardcode_action], [0],
2601 [How to hardcode a shared library path into an executable])
2602 ])# _LT_LINKER_HARDCODE_LIBPATH
2603
2604
2605 # _LT_CMD_STRIPLIB
2606 # ----------------
2607 m4_defun([_LT_CMD_STRIPLIB],
2608 [m4_require([_LT_DECL_EGREP])
2609 striplib=
2610 old_striplib=
2611 AC_MSG_CHECKING([whether stripping libraries is possible])
2612 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2613 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2614 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2615 AC_MSG_RESULT([yes])
2616 else
2617 # FIXME - insert some real tests, host_os isn't really good enough
2618 case $host_os in
2619 darwin*)
2620 if test -n "$STRIP"; then
2621 striplib="$STRIP -x"
2622 old_striplib="$STRIP -S"
2623 AC_MSG_RESULT([yes])
2624 else
2625 AC_MSG_RESULT([no])
2626 fi
2627 ;;
2628 *)
2629 AC_MSG_RESULT([no])
2630 ;;
2631 esac
2632 fi
2633 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2634 _LT_DECL([], [striplib], [1])
2635 ])# _LT_CMD_STRIPLIB
2636
2637
2638 # _LT_PREPARE_MUNGE_PATH_LIST
2639 # ---------------------------
2640 # Make sure func_munge_path_list() is defined correctly.
2641 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2642 [[# func_munge_path_list VARIABLE PATH
2643 # -----------------------------------
2644 # VARIABLE is name of variable containing _space_ separated list of
2645 # directories to be munged by the contents of PATH, which is string
2646 # having a format:
2647 # "DIR[:DIR]:"
2648 # string "DIR[ DIR]" will be prepended to VARIABLE
2649 # ":DIR[:DIR]"
2650 # string "DIR[ DIR]" will be appended to VARIABLE
2651 # "DIRP[:DIRP]::[DIRA:]DIRA"
2652 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2653 # "DIRA[ DIRA]" will be appended to VARIABLE
2654 # "DIR[:DIR]"
2655 # VARIABLE will be replaced by "DIR[ DIR]"
2656 func_munge_path_list ()
2657 {
2658 case x@S|@2 in
2659 x)
2660 ;;
2661 *:)
2662 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2663 ;;
2664 x:*)
2665 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2666 ;;
2667 *::*)
2668 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2669 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2670 ;;
2671 *)
2672 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2673 ;;
2674 esac
2675 }
2676 ]])# _LT_PREPARE_PATH_LIST
2677
2678
2679 # _LT_SYS_DYNAMIC_LINKER([TAG])
2680 # -----------------------------
2681 # PORTME Fill in your ld.so characteristics
2682 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2683 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2684 m4_require([_LT_DECL_EGREP])dnl
2685 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2686 m4_require([_LT_DECL_OBJDUMP])dnl
2687 m4_require([_LT_DECL_SED])dnl
2688 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2689 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
2690 AC_MSG_CHECKING([dynamic linker characteristics])
2691 m4_if([$1],
2692 [], [
2693 if test yes = "$GCC"; then
2694 case $host_os in
2695 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2696 *) lt_awk_arg='/^libraries:/' ;;
2697 esac
2698 case $host_os in
2699 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2700 *) lt_sed_strip_eq='s|=/|/|g' ;;
2701 esac
2702 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2703 case $lt_search_path_spec in
2704 *\;*)
2705 # if the path contains ";" then we assume it to be the separator
2706 # otherwise default to the standard path separator (i.e. ":") - it is
2707 # assumed that no part of a normal pathname contains ";" but that should
2708 # okay in the real world where ";" in dirpaths is itself problematic.
2709 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2710 ;;
2711 *)
2712 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2713 ;;
2714 esac
2715 # Ok, now we have the path, separated by spaces, we can step through it
2716 # and add multilib dir if necessary...
2717 lt_tmp_lt_search_path_spec=
2718 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2719 # ...but if some path component already ends with the multilib dir we assume
2720 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2721 case "$lt_multi_os_dir; $lt_search_path_spec " in
2722 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2723 lt_multi_os_dir=
2724 ;;
2725 esac
2726 for lt_sys_path in $lt_search_path_spec; do
2727 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2728 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2729 elif test -n "$lt_multi_os_dir"; then
2730 test -d "$lt_sys_path" && \
2731 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2732 fi
2733 done
2734 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2735 BEGIN {RS = " "; FS = "/|\n";} {
2736 lt_foo = "";
2737 lt_count = 0;
2738 for (lt_i = NF; lt_i > 0; lt_i--) {
2739 if ($lt_i != "" && $lt_i != ".") {
2740 if ($lt_i == "..") {
2741 lt_count++;
2742 } else {
2743 if (lt_count == 0) {
2744 lt_foo = "/" $lt_i lt_foo;
2745 } else {
2746 lt_count--;
2747 }
2748 }
2749 }
2750 }
2751 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2752 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2753 }'`
2754 # AWK program above erroneously prepends '/' to C:/dos/paths
2755 # for these hosts.
2756 case $host_os in
2757 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2758 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2759 esac
2760 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2761 else
2762 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2763 fi])
2764 library_names_spec=
2765 libname_spec='lib$name'
2766 soname_spec=
2767 shrext_cmds=.so
2768 postinstall_cmds=
2769 postuninstall_cmds=
2770 finish_cmds=
2771 finish_eval=
2772 shlibpath_var=
2773 shlibpath_overrides_runpath=unknown
2774 version_type=none
2775 dynamic_linker="$host_os ld.so"
2776 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2777 need_lib_prefix=unknown
2778 hardcode_into_libs=no
2779
2780 # when you set need_version to no, make sure it does not cause -set_version
2781 # flags to be left without arguments
2782 need_version=unknown
2783
2784 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2785 [User-defined run-time library search path.])
2786
2787 case $host_os in
2788 aix3*)
2789 version_type=linux # correct to gnu/linux during the next big refactor
2790 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
2791 shlibpath_var=LIBPATH
2792
2793 # AIX 3 has no versioning support, so we append a major version to the name.
2794 soname_spec='$libname$release$shared_ext$major'
2795 ;;
2796
2797 aix[[4-9]]*)
2798 version_type=linux # correct to gnu/linux during the next big refactor
2799 need_lib_prefix=no
2800 need_version=no
2801 hardcode_into_libs=yes
2802 if test ia64 = "$host_cpu"; then
2803 # AIX 5 supports IA64
2804 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
2805 shlibpath_var=LD_LIBRARY_PATH
2806 else
2807 # With GCC up to 2.95.x, collect2 would create an import file
2808 # for dependence libraries. The import file would start with
2809 # the line '#! .'. This would cause the generated library to
2810 # depend on '.', always an invalid library. This was fixed in
2811 # development snapshots of GCC prior to 3.0.
2812 case $host_os in
2813 aix4 | aix4.[[01]] | aix4.[[01]].*)
2814 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2815 echo ' yes '
2816 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2817 :
2818 else
2819 can_build_shared=no
2820 fi
2821 ;;
2822 esac
2823 # Using Import Files as archive members, it is possible to support
2824 # filename-based versioning of shared library archives on AIX. While
2825 # this would work for both with and without runtime linking, it will
2826 # prevent static linking of such archives. So we do filename-based
2827 # shared library versioning with .so extension only, which is used
2828 # when both runtime linking and shared linking is enabled.
2829 # Unfortunately, runtime linking may impact performance, so we do
2830 # not want this to be the default eventually. Also, we use the
2831 # versioned .so libs for executables only if there is the -brtl
2832 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2833 # To allow for filename-based versioning support, we need to create
2834 # libNAME.so.V as an archive file, containing:
2835 # *) an Import File, referring to the versioned filename of the
2836 # archive as well as the shared archive member, telling the
2837 # bitwidth (32 or 64) of that shared object, and providing the
2838 # list of exported symbols of that shared object, eventually
2839 # decorated with the 'weak' keyword
2840 # *) the shared object with the F_LOADONLY flag set, to really avoid
2841 # it being seen by the linker.
2842 # At run time we better use the real file rather than another symlink,
2843 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2844
2845 case $with_aix_soname,$aix_use_runtimelinking in
2846 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
2847 # soname into executable. Probably we can add versioning support to
2848 # collect2, so additional links can be useful in future.
2849 aix,yes) # traditional libtool
2850 dynamic_linker='AIX unversionable lib.so'
2851 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2852 # instead of lib<name>.a to let people know that these are not
2853 # typical AIX shared libraries.
2854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2855 ;;
2856 aix,no) # traditional AIX only
2857 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
2858 # We preserve .a as extension for shared libraries through AIX4.2
2859 # and later when we are not doing run time linking.
2860 library_names_spec='$libname$release.a $libname.a'
2861 soname_spec='$libname$release$shared_ext$major'
2862 ;;
2863 svr4,*) # full svr4 only
2864 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2865 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2866 # We do not specify a path in Import Files, so LIBPATH fires.
2867 shlibpath_overrides_runpath=yes
2868 ;;
2869 *,yes) # both, prefer svr4
2870 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2871 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2872 # unpreferred sharedlib libNAME.a needs extra handling
2873 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
2874 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
2875 # We do not specify a path in Import Files, so LIBPATH fires.
2876 shlibpath_overrides_runpath=yes
2877 ;;
2878 *,no) # both, prefer aix
2879 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2880 library_names_spec='$libname$release.a $libname.a'
2881 soname_spec='$libname$release$shared_ext$major'
2882 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2883 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
2884 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
2885 ;;
2886 esac
2887 shlibpath_var=LIBPATH
2888 fi
2889 ;;
2890
2891 amigaos*)
2892 case $host_cpu in
2893 powerpc)
2894 # Since July 2007 AmigaOS4 officially supports .so libraries.
2895 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2897 ;;
2898 m68k)
2899 library_names_spec='$libname.ixlibrary $libname.a'
2900 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2901 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
2902 ;;
2903 esac
2904 ;;
2905
2906 beos*)
2907 library_names_spec='$libname$shared_ext'
2908 dynamic_linker="$host_os ld.so"
2909 shlibpath_var=LIBRARY_PATH
2910 ;;
2911
2912 bsdi[[45]]*)
2913 version_type=linux # correct to gnu/linux during the next big refactor
2914 need_version=no
2915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2916 soname_spec='$libname$release$shared_ext$major'
2917 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2918 shlibpath_var=LD_LIBRARY_PATH
2919 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2920 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2921 # the default ld.so.conf also contains /usr/contrib/lib and
2922 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2923 # libtool to hard-code these into programs
2924 ;;
2925
2926 cygwin* | mingw* | pw32* | cegcc*)
2927 version_type=windows
2928 shrext_cmds=.dll
2929 need_version=no
2930 need_lib_prefix=no
2931
2932 case $GCC,$cc_basename in
2933 yes,*)
2934 # gcc
2935 library_names_spec='$libname.dll.a'
2936 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2937 postinstall_cmds='base_file=`basename \$file`~
2938 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2939 dldir=$destdir/`dirname \$dlpath`~
2940 test -d \$dldir || mkdir -p \$dldir~
2941 $install_prog $dir/$dlname \$dldir/$dlname~
2942 chmod a+x \$dldir/$dlname~
2943 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2944 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2945 fi'
2946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2947 dlpath=$dir/\$dldll~
2948 $RM \$dlpath'
2949 shlibpath_overrides_runpath=yes
2950
2951 case $host_os in
2952 cygwin*)
2953 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2954 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2955 m4_if([$1], [],[
2956 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2957 ;;
2958 mingw* | cegcc*)
2959 # MinGW DLLs use traditional 'lib' prefix
2960 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2961 ;;
2962 pw32*)
2963 # pw32 DLLs use 'pw' prefix rather than 'lib'
2964 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2965 ;;
2966 esac
2967 dynamic_linker='Win32 ld.exe'
2968 ;;
2969
2970 *,cl*)
2971 # Native MSVC
2972 libname_spec='$name'
2973 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2974 library_names_spec='$libname.dll.lib'
2975
2976 case $build_os in
2977 mingw*)
2978 sys_lib_search_path_spec=
2979 lt_save_ifs=$IFS
2980 IFS=';'
2981 for lt_path in $LIB
2982 do
2983 IFS=$lt_save_ifs
2984 # Let DOS variable expansion print the short 8.3 style file name.
2985 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2986 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2987 done
2988 IFS=$lt_save_ifs
2989 # Convert to MSYS style.
2990 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2991 ;;
2992 cygwin*)
2993 # Convert to unix form, then to dos form, then back to unix form
2994 # but this time dos style (no spaces!) so that the unix form looks
2995 # like /cygdrive/c/PROGRA~1:/cygdr...
2996 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2997 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2998 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2999 ;;
3000 *)
3001 sys_lib_search_path_spec=$LIB
3002 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3003 # It is most probably a Windows format PATH.
3004 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3005 else
3006 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3007 fi
3008 # FIXME: find the short name or the path components, as spaces are
3009 # common. (e.g. "Program Files" -> "PROGRA~1")
3010 ;;
3011 esac
3012
3013 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3014 postinstall_cmds='base_file=`basename \$file`~
3015 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
3016 dldir=$destdir/`dirname \$dlpath`~
3017 test -d \$dldir || mkdir -p \$dldir~
3018 $install_prog $dir/$dlname \$dldir/$dlname'
3019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3020 dlpath=$dir/\$dldll~
3021 $RM \$dlpath'
3022 shlibpath_overrides_runpath=yes
3023 dynamic_linker='Win32 link.exe'
3024 ;;
3025
3026 *)
3027 # Assume MSVC wrapper
3028 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
3029 dynamic_linker='Win32 ld.exe'
3030 ;;
3031 esac
3032 # FIXME: first we should search . and the directory the executable is in
3033 shlibpath_var=PATH
3034 ;;
3035
3036 darwin* | rhapsody*)
3037 dynamic_linker="$host_os dyld"
3038 version_type=darwin
3039 need_lib_prefix=no
3040 need_version=no
3041 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
3042 soname_spec='$libname$release$major$shared_ext'
3043 shlibpath_overrides_runpath=yes
3044 shlibpath_var=DYLD_LIBRARY_PATH
3045 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3046 m4_if([$1], [],[
3047 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3048 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3049 ;;
3050
3051 dgux*)
3052 version_type=linux # correct to gnu/linux during the next big refactor
3053 need_lib_prefix=no
3054 need_version=no
3055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3056 soname_spec='$libname$release$shared_ext$major'
3057 shlibpath_var=LD_LIBRARY_PATH
3058 ;;
3059
3060 freebsd* | dragonfly*)
3061 # DragonFly does not have aout. When/if they implement a new
3062 # versioning mechanism, adjust this.
3063 if test -x /usr/bin/objformat; then
3064 objformat=`/usr/bin/objformat`
3065 else
3066 case $host_os in
3067 freebsd[[23]].*) objformat=aout ;;
3068 *) objformat=elf ;;
3069 esac
3070 fi
3071 version_type=freebsd-$objformat
3072 case $version_type in
3073 freebsd-elf*)
3074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3075 soname_spec='$libname$release$shared_ext$major'
3076 need_version=no
3077 need_lib_prefix=no
3078 ;;
3079 freebsd-*)
3080 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3081 need_version=yes
3082 ;;
3083 esac
3084 shlibpath_var=LD_LIBRARY_PATH
3085 case $host_os in
3086 freebsd2.*)
3087 shlibpath_overrides_runpath=yes
3088 ;;
3089 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3090 shlibpath_overrides_runpath=yes
3091 hardcode_into_libs=yes
3092 ;;
3093 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3094 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3095 shlibpath_overrides_runpath=no
3096 hardcode_into_libs=yes
3097 ;;
3098 *) # from 4.6 on, and DragonFly
3099 shlibpath_overrides_runpath=yes
3100 hardcode_into_libs=yes
3101 ;;
3102 esac
3103 ;;
3104
3105 haiku*)
3106 version_type=linux # correct to gnu/linux during the next big refactor
3107 need_lib_prefix=no
3108 need_version=no
3109 dynamic_linker="$host_os runtime_loader"
3110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3111 soname_spec='$libname$release$shared_ext$major'
3112 shlibpath_var=LIBRARY_PATH
3113 shlibpath_overrides_runpath=no
3114 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3115 hardcode_into_libs=yes
3116 ;;
3117
3118 hpux9* | hpux10* | hpux11*)
3119 # Give a soname corresponding to the major version so that dld.sl refuses to
3120 # link against other versions.
3121 version_type=sunos
3122 need_lib_prefix=no
3123 need_version=no
3124 case $host_cpu in
3125 ia64*)
3126 shrext_cmds='.so'
3127 hardcode_into_libs=yes
3128 dynamic_linker="$host_os dld.so"
3129 shlibpath_var=LD_LIBRARY_PATH
3130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3132 soname_spec='$libname$release$shared_ext$major'
3133 if test 32 = "$HPUX_IA64_MODE"; then
3134 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3135 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
3136 else
3137 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3138 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
3139 fi
3140 ;;
3141 hppa*64*)
3142 shrext_cmds='.sl'
3143 hardcode_into_libs=yes
3144 dynamic_linker="$host_os dld.sl"
3145 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3148 soname_spec='$libname$release$shared_ext$major'
3149 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3151 ;;
3152 *)
3153 shrext_cmds='.sl'
3154 dynamic_linker="$host_os dld.sl"
3155 shlibpath_var=SHLIB_PATH
3156 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3158 soname_spec='$libname$release$shared_ext$major'
3159 ;;
3160 esac
3161 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3162 postinstall_cmds='chmod 555 $lib'
3163 # or fails outright, so override atomically:
3164 install_override_mode=555
3165 ;;
3166
3167 interix[[3-9]]*)
3168 version_type=linux # correct to gnu/linux during the next big refactor
3169 need_lib_prefix=no
3170 need_version=no
3171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3172 soname_spec='$libname$release$shared_ext$major'
3173 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3174 shlibpath_var=LD_LIBRARY_PATH
3175 shlibpath_overrides_runpath=no
3176 hardcode_into_libs=yes
3177 ;;
3178
3179 irix5* | irix6* | nonstopux*)
3180 case $host_os in
3181 nonstopux*) version_type=nonstopux ;;
3182 *)
3183 if test yes = "$lt_cv_prog_gnu_ld"; then
3184 version_type=linux # correct to gnu/linux during the next big refactor
3185 else
3186 version_type=irix
3187 fi ;;
3188 esac
3189 need_lib_prefix=no
3190 need_version=no
3191 soname_spec='$libname$release$shared_ext$major'
3192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
3193 case $host_os in
3194 irix5* | nonstopux*)
3195 libsuff= shlibsuff=
3196 ;;
3197 *)
3198 case $LD in # libtool.m4 will add one of these switches to LD
3199 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3200 libsuff= shlibsuff= libmagic=32-bit;;
3201 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3202 libsuff=32 shlibsuff=N32 libmagic=N32;;
3203 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3204 libsuff=64 shlibsuff=64 libmagic=64-bit;;
3205 *) libsuff= shlibsuff= libmagic=never-match;;
3206 esac
3207 ;;
3208 esac
3209 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3210 shlibpath_overrides_runpath=no
3211 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
3212 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
3213 hardcode_into_libs=yes
3214 ;;
3215
3216 # No shared lib support for Linux oldld, aout, or coff.
3217 linux*oldld* | linux*aout* | linux*coff*)
3218 dynamic_linker=no
3219 ;;
3220
3221 linux*android*)
3222 version_type=none # Android doesn't support versioned libraries.
3223 need_lib_prefix=no
3224 need_version=no
3225 library_names_spec='$libname$release$shared_ext'
3226 soname_spec='$libname$release$shared_ext'
3227 finish_cmds=
3228 shlibpath_var=LD_LIBRARY_PATH
3229 shlibpath_overrides_runpath=yes
3230
3231 # This implies no fast_install, which is unacceptable.
3232 # Some rework will be needed to allow for fast_install
3233 # before this can be enabled.
3234 hardcode_into_libs=yes
3235
3236 dynamic_linker='Android linker'
3237 # Don't embed -rpath directories since the linker doesn't support them.
3238 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3239 ;;
3240
3241 # This must be glibc/ELF.
3242 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3243 version_type=linux # correct to gnu/linux during the next big refactor
3244 need_lib_prefix=no
3245 need_version=no
3246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3247 soname_spec='$libname$release$shared_ext$major'
3248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3249 shlibpath_var=LD_LIBRARY_PATH
3250 shlibpath_overrides_runpath=no
3251
3252 # Some binutils ld are patched to set DT_RUNPATH
3253 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3254 [lt_cv_shlibpath_overrides_runpath=no
3255 save_LDFLAGS=$LDFLAGS
3256 save_libdir=$libdir
3257 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3258 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3259 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3260 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3261 [lt_cv_shlibpath_overrides_runpath=yes])])
3262 LDFLAGS=$save_LDFLAGS
3263 libdir=$save_libdir
3264 ])
3265 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3266
3267 # This implies no fast_install, which is unacceptable.
3268 # Some rework will be needed to allow for fast_install
3269 # before this can be enabled.
3270 hardcode_into_libs=yes
3271
3272 # Ideally, we could use ldconfig to report *all* directores which are
3273 # searched for libraries, however this is still not possible. Aside from not
3274 # being certain /sbin/ldconfig is available, command
3275 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
3276 # even though it is searched at run-time. Try to do the best guess by
3277 # appending ld.so.conf contents (and includes) to the search path.
3278 if test -f /etc/ld.so.conf; then
3279 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' ' '`
3280 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3281 fi
3282
3283 # We used to test for /lib/ld.so.1 and disable shared libraries on
3284 # powerpc, because MkLinux only supported shared libraries with the
3285 # GNU dynamic linker. Since this was broken with cross compilers,
3286 # most powerpc-linux boxes support dynamic linking these days and
3287 # people can always --disable-shared, the test was removed, and we
3288 # assume the GNU/Linux dynamic linker is in use.
3289 dynamic_linker='GNU/Linux ld.so'
3290 ;;
3291
3292 netbsdelf*-gnu)
3293 version_type=linux
3294 need_lib_prefix=no
3295 need_version=no
3296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3297 soname_spec='${libname}${release}${shared_ext}$major'
3298 shlibpath_var=LD_LIBRARY_PATH
3299 shlibpath_overrides_runpath=no
3300 hardcode_into_libs=yes
3301 dynamic_linker='NetBSD ld.elf_so'
3302 ;;
3303
3304 netbsd*)
3305 version_type=sunos
3306 need_lib_prefix=no
3307 need_version=no
3308 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3309 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3311 dynamic_linker='NetBSD (a.out) ld.so'
3312 else
3313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3314 soname_spec='$libname$release$shared_ext$major'
3315 dynamic_linker='NetBSD ld.elf_so'
3316 fi
3317 shlibpath_var=LD_LIBRARY_PATH
3318 shlibpath_overrides_runpath=yes
3319 hardcode_into_libs=yes
3320 ;;
3321
3322 newsos6)
3323 version_type=linux # correct to gnu/linux during the next big refactor
3324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3325 shlibpath_var=LD_LIBRARY_PATH
3326 shlibpath_overrides_runpath=yes
3327 ;;
3328
3329 *nto* | *qnx*)
3330 version_type=qnx
3331 need_lib_prefix=no
3332 need_version=no
3333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3334 soname_spec='$libname$release$shared_ext$major'
3335 shlibpath_var=LD_LIBRARY_PATH
3336 shlibpath_overrides_runpath=no
3337 hardcode_into_libs=yes
3338 dynamic_linker='ldqnx.so'
3339 ;;
3340
3341 openbsd* | bitrig*)
3342 version_type=sunos
3343 sys_lib_dlsearch_path_spec=/usr/lib
3344 need_lib_prefix=no
3345 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3346 need_version=no
3347 else
3348 need_version=yes
3349 fi
3350 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3352 shlibpath_var=LD_LIBRARY_PATH
3353 shlibpath_overrides_runpath=yes
3354 ;;
3355
3356 os2*)
3357 libname_spec='$name'
3358 version_type=windows
3359 shrext_cmds=.dll
3360 need_version=no
3361 need_lib_prefix=no
3362 # OS/2 can only load a DLL with a base name of 8 characters or less.
3363 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
3364 v=$($ECHO $release$versuffix | tr -d .-);
3365 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
3366 $ECHO $n$v`$shared_ext'
3367 library_names_spec='${libname}_dll.$libext'
3368 dynamic_linker='OS/2 ld.exe'
3369 shlibpath_var=BEGINLIBPATH
3370 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3372 postinstall_cmds='base_file=`basename \$file`~
3373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
3374 dldir=$destdir/`dirname \$dlpath`~
3375 test -d \$dldir || mkdir -p \$dldir~
3376 $install_prog $dir/$dlname \$dldir/$dlname~
3377 chmod a+x \$dldir/$dlname~
3378 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3379 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3380 fi'
3381 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
3382 dlpath=$dir/\$dldll~
3383 $RM \$dlpath'
3384 ;;
3385
3386 osf3* | osf4* | osf5*)
3387 version_type=osf
3388 need_lib_prefix=no
3389 need_version=no
3390 soname_spec='$libname$release$shared_ext$major'
3391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3392 shlibpath_var=LD_LIBRARY_PATH
3393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3395 ;;
3396
3397 rdos*)
3398 dynamic_linker=no
3399 ;;
3400
3401 solaris*)
3402 version_type=linux # correct to gnu/linux during the next big refactor
3403 need_lib_prefix=no
3404 need_version=no
3405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3406 soname_spec='$libname$release$shared_ext$major'
3407 shlibpath_var=LD_LIBRARY_PATH
3408 shlibpath_overrides_runpath=yes
3409 hardcode_into_libs=yes
3410 # ldd complains unless libraries are executable
3411 postinstall_cmds='chmod +x $lib'
3412 ;;
3413
3414 sunos4*)
3415 version_type=sunos
3416 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3418 shlibpath_var=LD_LIBRARY_PATH
3419 shlibpath_overrides_runpath=yes
3420 if test yes = "$with_gnu_ld"; then
3421 need_lib_prefix=no
3422 fi
3423 need_version=yes
3424 ;;
3425
3426 sysv4 | sysv4.3*)
3427 version_type=linux # correct to gnu/linux during the next big refactor
3428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3429 soname_spec='$libname$release$shared_ext$major'
3430 shlibpath_var=LD_LIBRARY_PATH
3431 case $host_vendor in
3432 sni)
3433 shlibpath_overrides_runpath=no
3434 need_lib_prefix=no
3435 runpath_var=LD_RUN_PATH
3436 ;;
3437 siemens)
3438 need_lib_prefix=no
3439 ;;
3440 motorola)
3441 need_lib_prefix=no
3442 need_version=no
3443 shlibpath_overrides_runpath=no
3444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3445 ;;
3446 esac
3447 ;;
3448
3449 sysv4*MP*)
3450 if test -d /usr/nec; then
3451 version_type=linux # correct to gnu/linux during the next big refactor
3452 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3453 soname_spec='$libname$shared_ext.$major'
3454 shlibpath_var=LD_LIBRARY_PATH
3455 fi
3456 ;;
3457
3458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3459 version_type=sco
3460 need_lib_prefix=no
3461 need_version=no
3462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3463 soname_spec='$libname$release$shared_ext$major'
3464 shlibpath_var=LD_LIBRARY_PATH
3465 shlibpath_overrides_runpath=yes
3466 hardcode_into_libs=yes
3467 if test yes = "$with_gnu_ld"; then
3468 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3469 else
3470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3471 case $host_os in
3472 sco3.2v5*)
3473 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3474 ;;
3475 esac
3476 fi
3477 sys_lib_dlsearch_path_spec='/usr/lib'
3478 ;;
3479
3480 tpf*)
3481 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3482 version_type=linux # correct to gnu/linux during the next big refactor
3483 need_lib_prefix=no
3484 need_version=no
3485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3486 shlibpath_var=LD_LIBRARY_PATH
3487 shlibpath_overrides_runpath=no
3488 hardcode_into_libs=yes
3489 ;;
3490
3491 uts4*)
3492 version_type=linux # correct to gnu/linux during the next big refactor
3493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3494 soname_spec='$libname$release$shared_ext$major'
3495 shlibpath_var=LD_LIBRARY_PATH
3496 ;;
3497
3498 *)
3499 dynamic_linker=no
3500 ;;
3501 esac
3502 AC_MSG_RESULT([$dynamic_linker])
3503 test no = "$dynamic_linker" && can_build_shared=no
3504
3505 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3506 if test yes = "$GCC"; then
3507 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3508 fi
3509
3510 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3511 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
3512 fi
3513
3514 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3515 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
3516 fi
3517
3518 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3519 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3520
3521 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3522 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3523
3524 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3525 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
3526
3527 _LT_DECL([], [variables_saved_for_relink], [1],
3528 [Variables whose values should be saved in libtool wrapper scripts and
3529 restored at link time])
3530 _LT_DECL([], [need_lib_prefix], [0],
3531 [Do we need the "lib" prefix for modules?])
3532 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3533 _LT_DECL([], [version_type], [0], [Library versioning type])
3534 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3535 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3536 _LT_DECL([], [shlibpath_overrides_runpath], [0],
3537 [Is shlibpath searched before the hard-coded library search path?])
3538 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3539 _LT_DECL([], [library_names_spec], [1],
3540 [[List of archive names. First name is the real one, the rest are links.
3541 The last name is the one that the linker finds with -lNAME]])
3542 _LT_DECL([], [soname_spec], [1],
3543 [[The coded name of the library, if different from the real name]])
3544 _LT_DECL([], [install_override_mode], [1],
3545 [Permission mode override for installation of shared libraries])
3546 _LT_DECL([], [postinstall_cmds], [2],
3547 [Command to use after installation of a shared archive])
3548 _LT_DECL([], [postuninstall_cmds], [2],
3549 [Command to use after uninstallation of a shared archive])
3550 _LT_DECL([], [finish_cmds], [2],
3551 [Commands used to finish a libtool library installation in a directory])
3552 _LT_DECL([], [finish_eval], [1],
3553 [[As "finish_cmds", except a single script fragment to be evaled but
3554 not shown]])
3555 _LT_DECL([], [hardcode_into_libs], [0],
3556 [Whether we should hardcode library paths into libraries])
3557 _LT_DECL([], [sys_lib_search_path_spec], [2],
3558 [Compile-time system search path for libraries])
3559 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3560 [Detected run-time system search path for libraries])
3561 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3562 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
3563 ])# _LT_SYS_DYNAMIC_LINKER
3564
3565
3566 # _LT_PATH_TOOL_PREFIX(TOOL)
3567 # --------------------------
3568 # find a file program that can recognize shared library
3569 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3570 [m4_require([_LT_DECL_EGREP])dnl
3571 AC_MSG_CHECKING([for $1])
3572 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3573 [case $MAGIC_CMD in
3574 [[\\/*] | ?:[\\/]*])
3575 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
3576 ;;
3577 *)
3578 lt_save_MAGIC_CMD=$MAGIC_CMD
3579 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3580 dnl $ac_dummy forces splitting on constant user-supplied paths.
3581 dnl POSIX.2 word splitting is done only on the output of word expansions,
3582 dnl not every word. This closes a longstanding sh security hole.
3583 ac_dummy="m4_if([$2], , $PATH, [$2])"
3584 for ac_dir in $ac_dummy; do
3585 IFS=$lt_save_ifs
3586 test -z "$ac_dir" && ac_dir=.
3587 if test -f "$ac_dir/$1"; then
3588 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
3589 if test -n "$file_magic_test_file"; then
3590 case $deplibs_check_method in
3591 "file_magic "*)
3592 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3593 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3594 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3595 $EGREP "$file_magic_regex" > /dev/null; then
3596 :
3597 else
3598 cat <<_LT_EOF 1>&2
3599
3600 *** Warning: the command libtool uses to detect shared libraries,
3601 *** $file_magic_cmd, produces output that libtool cannot recognize.
3602 *** The result is that libtool may fail to recognize shared libraries
3603 *** as such. This will affect the creation of libtool libraries that
3604 *** depend on shared libraries, but programs linked with such libtool
3605 *** libraries will work regardless of this problem. Nevertheless, you
3606 *** may want to report the problem to your system manager and/or to
3607 *** bug-libtool@gnu.org
3608
3609 _LT_EOF
3610 fi ;;
3611 esac
3612 fi
3613 break
3614 fi
3615 done
3616 IFS=$lt_save_ifs
3617 MAGIC_CMD=$lt_save_MAGIC_CMD
3618 ;;
3619 esac])
3620 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3621 if test -n "$MAGIC_CMD"; then
3622 AC_MSG_RESULT($MAGIC_CMD)
3623 else
3624 AC_MSG_RESULT(no)
3625 fi
3626 _LT_DECL([], [MAGIC_CMD], [0],
3627 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3628 ])# _LT_PATH_TOOL_PREFIX
3629
3630 # Old name:
3631 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3632 dnl aclocal-1.4 backwards compatibility:
3633 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3634
3635
3636 # _LT_PATH_MAGIC
3637 # --------------
3638 # find a file program that can recognize a shared library
3639 m4_defun([_LT_PATH_MAGIC],
3640 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3641 if test -z "$lt_cv_path_MAGIC_CMD"; then
3642 if test -n "$ac_tool_prefix"; then
3643 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3644 else
3645 MAGIC_CMD=:
3646 fi
3647 fi
3648 ])# _LT_PATH_MAGIC
3649
3650
3651 # LT_PATH_LD
3652 # ----------
3653 # find the pathname to the GNU or non-GNU linker
3654 AC_DEFUN([LT_PATH_LD],
3655 [AC_REQUIRE([AC_PROG_CC])dnl
3656 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3657 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3658 m4_require([_LT_DECL_SED])dnl
3659 m4_require([_LT_DECL_EGREP])dnl
3660 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3661
3662 AC_ARG_WITH([gnu-ld],
3663 [AS_HELP_STRING([--with-gnu-ld],
3664 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3665 [test no = "$withval" || with_gnu_ld=yes],
3666 [with_gnu_ld=no])dnl
3667
3668 ac_prog=ld
3669 if test yes = "$GCC"; then
3670 # Check if gcc -print-prog-name=ld gives a path.
3671 AC_MSG_CHECKING([for ld used by $CC])
3672 case $host in
3673 *-*-mingw*)
3674 # gcc leaves a trailing carriage return, which upsets mingw
3675 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3676 *)
3677 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3678 esac
3679 case $ac_prog in
3680 # Accept absolute paths.
3681 [[\\/]]* | ?:[[\\/]]*)
3682 re_direlt='/[[^/]][[^/]]*/\.\./'
3683 # Canonicalize the pathname of ld
3684 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3685 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3686 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3687 done
3688 test -z "$LD" && LD=$ac_prog
3689 ;;
3690 "")
3691 # If it fails, then pretend we aren't using GCC.
3692 ac_prog=ld
3693 ;;
3694 *)
3695 # If it is relative, then search for the first ld in PATH.
3696 with_gnu_ld=unknown
3697 ;;
3698 esac
3699 elif test yes = "$with_gnu_ld"; then
3700 AC_MSG_CHECKING([for GNU ld])
3701 else
3702 AC_MSG_CHECKING([for non-GNU ld])
3703 fi
3704 AC_CACHE_VAL(lt_cv_path_LD,
3705 [if test -z "$LD"; then
3706 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3707 for ac_dir in $PATH; do
3708 IFS=$lt_save_ifs
3709 test -z "$ac_dir" && ac_dir=.
3710 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3711 lt_cv_path_LD=$ac_dir/$ac_prog
3712 # Check to see if the program is GNU ld. I'd rather use --version,
3713 # but apparently some variants of GNU ld only accept -v.
3714 # Break only if it was the GNU/non-GNU ld that we prefer.
3715 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3716 *GNU* | *'with BFD'*)
3717 test no != "$with_gnu_ld" && break
3718 ;;
3719 *)
3720 test yes != "$with_gnu_ld" && break
3721 ;;
3722 esac
3723 fi
3724 done
3725 IFS=$lt_save_ifs
3726 else
3727 lt_cv_path_LD=$LD # Let the user override the test with a path.
3728 fi])
3729 LD=$lt_cv_path_LD
3730 if test -n "$LD"; then
3731 AC_MSG_RESULT($LD)
3732 else
3733 AC_MSG_RESULT(no)
3734 fi
3735 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3736 _LT_PATH_LD_GNU
3737 AC_SUBST([LD])
3738
3739 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3740 ])# LT_PATH_LD
3741
3742 # Old names:
3743 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3744 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3745 dnl aclocal-1.4 backwards compatibility:
3746 dnl AC_DEFUN([AM_PROG_LD], [])
3747 dnl AC_DEFUN([AC_PROG_LD], [])
3748
3749
3750 # _LT_PATH_LD_GNU
3751 #- --------------
3752 m4_defun([_LT_PATH_LD_GNU],
3753 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3754 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3755 case `$LD -v 2>&1 </dev/null` in
3756 *GNU* | *'with BFD'*)
3757 lt_cv_prog_gnu_ld=yes
3758 ;;
3759 *)
3760 lt_cv_prog_gnu_ld=no
3761 ;;
3762 esac])
3763 with_gnu_ld=$lt_cv_prog_gnu_ld
3764 ])# _LT_PATH_LD_GNU
3765
3766
3767 # _LT_CMD_RELOAD
3768 # --------------
3769 # find reload flag for linker
3770 # -- PORTME Some linkers may need a different reload flag.
3771 m4_defun([_LT_CMD_RELOAD],
3772 [AC_CACHE_CHECK([for $LD option to reload object files],
3773 lt_cv_ld_reload_flag,
3774 [lt_cv_ld_reload_flag='-r'])
3775 reload_flag=$lt_cv_ld_reload_flag
3776 case $reload_flag in
3777 "" | " "*) ;;
3778 *) reload_flag=" $reload_flag" ;;
3779 esac
3780 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3781 case $host_os in
3782 cygwin* | mingw* | pw32* | cegcc*)
3783 if test yes != "$GCC"; then
3784 reload_cmds=false
3785 fi
3786 ;;
3787 darwin*)
3788 if test yes = "$GCC"; then
3789 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3790 else
3791 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3792 fi
3793 ;;
3794 esac
3795 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3796 _LT_TAGDECL([], [reload_cmds], [2])dnl
3797 ])# _LT_CMD_RELOAD
3798
3799
3800 # _LT_PATH_DD
3801 # -----------
3802 # find a working dd
3803 m4_defun([_LT_PATH_DD],
3804 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3805 [printf 0123456789abcdef0123456789abcdef >conftest.i
3806 cat conftest.i conftest.i >conftest2.i
3807 : ${lt_DD:=$DD}
3808 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3809 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3810 cmp -s conftest.i conftest.out \
3811 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3812 fi])
3813 rm -f conftest.i conftest2.i conftest.out])
3814 ])# _LT_PATH_DD
3815
3816
3817 # _LT_CMD_TRUNCATE
3818 # ----------------
3819 # find command to truncate a binary pipe
3820 m4_defun([_LT_CMD_TRUNCATE],
3821 [m4_require([_LT_PATH_DD])
3822 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3823 [printf 0123456789abcdef0123456789abcdef >conftest.i
3824 cat conftest.i conftest.i >conftest2.i
3825 lt_cv_truncate_bin=
3826 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3827 cmp -s conftest.i conftest.out \
3828 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3829 fi
3830 rm -f conftest.i conftest2.i conftest.out
3831 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3832 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3833 [Command to truncate a binary pipe])
3834 ])# _LT_CMD_TRUNCATE
3835
3836
3837 # _LT_CHECK_MAGIC_METHOD
3838 # ----------------------
3839 # how to check for library dependencies
3840 # -- PORTME fill in with the dynamic library characteristics
3841 m4_defun([_LT_CHECK_MAGIC_METHOD],
3842 [m4_require([_LT_DECL_EGREP])
3843 m4_require([_LT_DECL_OBJDUMP])
3844 AC_CACHE_CHECK([how to recognize dependent libraries],
3845 lt_cv_deplibs_check_method,
3846 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3847 lt_cv_file_magic_test_file=
3848 lt_cv_deplibs_check_method='unknown'
3849 # Need to set the preceding variable on all platforms that support
3850 # interlibrary dependencies.
3851 # 'none' -- dependencies not supported.
3852 # 'unknown' -- same as none, but documents that we really don't know.
3853 # 'pass_all' -- all dependencies passed with no checks.
3854 # 'test_compile' -- check by making test program.
3855 # 'file_magic [[regex]]' -- check by looking for files in library path
3856 # that responds to the $file_magic_cmd with a given extended regex.
3857 # If you have 'file' or equivalent on your system and you're not sure
3858 # whether 'pass_all' will *always* work, you probably want this one.
3859
3860 case $host_os in
3861 aix[[4-9]]*)
3862 lt_cv_deplibs_check_method=pass_all
3863 ;;
3864
3865 beos*)
3866 lt_cv_deplibs_check_method=pass_all
3867 ;;
3868
3869 bsdi[[45]]*)
3870 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3871 lt_cv_file_magic_cmd='/usr/bin/file -L'
3872 lt_cv_file_magic_test_file=/shlib/libc.so
3873 ;;
3874
3875 cygwin*)
3876 # func_win32_libid is a shell function defined in ltmain.sh
3877 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3878 lt_cv_file_magic_cmd='func_win32_libid'
3879 ;;
3880
3881 mingw* | pw32*)
3882 # Base MSYS/MinGW do not provide the 'file' command needed by
3883 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3884 # unless we find 'file', for example because we are cross-compiling.
3885 if ( file / ) >/dev/null 2>&1; then
3886 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3887 lt_cv_file_magic_cmd='func_win32_libid'
3888 else
3889 # Keep this pattern in sync with the one in func_win32_libid.
3890 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3891 lt_cv_file_magic_cmd='$OBJDUMP -f'
3892 fi
3893 ;;
3894
3895 cegcc*)
3896 # use the weaker test based on 'objdump'. See mingw*.
3897 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3898 lt_cv_file_magic_cmd='$OBJDUMP -f'
3899 ;;
3900
3901 darwin* | rhapsody*)
3902 lt_cv_deplibs_check_method=pass_all
3903 ;;
3904
3905 freebsd* | dragonfly*)
3906 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3907 case $host_cpu in
3908 i*86 )
3909 # Not sure whether the presence of OpenBSD here was a mistake.
3910 # Let's accept both of them until this is cleared up.
3911 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3912 lt_cv_file_magic_cmd=/usr/bin/file
3913 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3914 ;;
3915 esac
3916 else
3917 lt_cv_deplibs_check_method=pass_all
3918 fi
3919 ;;
3920
3921 haiku*)
3922 lt_cv_deplibs_check_method=pass_all
3923 ;;
3924
3925 hpux10.20* | hpux11*)
3926 lt_cv_file_magic_cmd=/usr/bin/file
3927 case $host_cpu in
3928 ia64*)
3929 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3930 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3931 ;;
3932 hppa*64*)
3933 [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]']
3934 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3935 ;;
3936 *)
3937 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3938 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3939 ;;
3940 esac
3941 ;;
3942
3943 interix[[3-9]]*)
3944 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3945 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3946 ;;
3947
3948 irix5* | irix6* | nonstopux*)
3949 case $LD in
3950 *-32|*"-32 ") libmagic=32-bit;;
3951 *-n32|*"-n32 ") libmagic=N32;;
3952 *-64|*"-64 ") libmagic=64-bit;;
3953 *) libmagic=never-match;;
3954 esac
3955 lt_cv_deplibs_check_method=pass_all
3956 ;;
3957
3958 # This must be glibc/ELF.
3959 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3960 lt_cv_deplibs_check_method=pass_all
3961 ;;
3962
3963 netbsd* | netbsdelf*-gnu)
3964 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3965 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3966 else
3967 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3968 fi
3969 ;;
3970
3971 newos6*)
3972 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3973 lt_cv_file_magic_cmd=/usr/bin/file
3974 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3975 ;;
3976
3977 *nto* | *qnx*)
3978 lt_cv_deplibs_check_method=pass_all
3979 ;;
3980
3981 openbsd* | bitrig*)
3982 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3983 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3984 else
3985 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3986 fi
3987 ;;
3988
3989 osf3* | osf4* | osf5*)
3990 lt_cv_deplibs_check_method=pass_all
3991 ;;
3992
3993 rdos*)
3994 lt_cv_deplibs_check_method=pass_all
3995 ;;
3996
3997 solaris*)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
4000
4001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4002 lt_cv_deplibs_check_method=pass_all
4003 ;;
4004
4005 sysv4 | sysv4.3*)
4006 case $host_vendor in
4007 motorola)
4008 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]]'
4009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4010 ;;
4011 ncr)
4012 lt_cv_deplibs_check_method=pass_all
4013 ;;
4014 sequent)
4015 lt_cv_file_magic_cmd='/bin/file'
4016 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4017 ;;
4018 sni)
4019 lt_cv_file_magic_cmd='/bin/file'
4020 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4021 lt_cv_file_magic_test_file=/lib/libc.so
4022 ;;
4023 siemens)
4024 lt_cv_deplibs_check_method=pass_all
4025 ;;
4026 pc)
4027 lt_cv_deplibs_check_method=pass_all
4028 ;;
4029 esac
4030 ;;
4031
4032 tpf*)
4033 lt_cv_deplibs_check_method=pass_all
4034 ;;
4035 os2*)
4036 lt_cv_deplibs_check_method=pass_all
4037 ;;
4038 esac
4039 ])
4040
4041 file_magic_glob=
4042 want_nocaseglob=no
4043 if test "$build" = "$host"; then
4044 case $host_os in
4045 mingw* | pw32*)
4046 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4047 want_nocaseglob=yes
4048 else
4049 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
4050 fi
4051 ;;
4052 esac
4053 fi
4054
4055 file_magic_cmd=$lt_cv_file_magic_cmd
4056 deplibs_check_method=$lt_cv_deplibs_check_method
4057 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4058
4059 _LT_DECL([], [deplibs_check_method], [1],
4060 [Method to check whether dependent libraries are shared objects])
4061 _LT_DECL([], [file_magic_cmd], [1],
4062 [Command to use when deplibs_check_method = "file_magic"])
4063 _LT_DECL([], [file_magic_glob], [1],
4064 [How to find potential files when deplibs_check_method = "file_magic"])
4065 _LT_DECL([], [want_nocaseglob], [1],
4066 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
4067 ])# _LT_CHECK_MAGIC_METHOD
4068
4069
4070 # LT_PATH_NM
4071 # ----------
4072 # find the pathname to a BSD- or MS-compatible name lister
4073 AC_DEFUN([LT_PATH_NM],
4074 [AC_REQUIRE([AC_PROG_CC])dnl
4075 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4076 [if test -n "$NM"; then
4077 # Let the user override the test.
4078 lt_cv_path_NM=$NM
4079 else
4080 lt_nm_to_check=${ac_tool_prefix}nm
4081 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4082 lt_nm_to_check="$lt_nm_to_check nm"
4083 fi
4084 for lt_tmp_nm in $lt_nm_to_check; do
4085 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4086 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4087 IFS=$lt_save_ifs
4088 test -z "$ac_dir" && ac_dir=.
4089 tmp_nm=$ac_dir/$lt_tmp_nm
4090 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4091 # Check to see if the nm accepts a BSD-compat flag.
4092 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4093 # nm: unknown option "B" ignored
4094 # Tru64's nm complains that /dev/null is an invalid object file
4095 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4096 case $build_os in
4097 mingw*) lt_bad_file=conftest.nm/nofile ;;
4098 *) lt_bad_file=/dev/null ;;
4099 esac
4100 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4101 *$lt_bad_file* | *'Invalid file or object type'*)
4102 lt_cv_path_NM="$tmp_nm -B"
4103 break 2
4104 ;;
4105 *)
4106 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4107 */dev/null*)
4108 lt_cv_path_NM="$tmp_nm -p"
4109 break 2
4110 ;;
4111 *)
4112 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4113 continue # so that we can try to find one that supports BSD flags
4114 ;;
4115 esac
4116 ;;
4117 esac
4118 fi
4119 done
4120 IFS=$lt_save_ifs
4121 done
4122 : ${lt_cv_path_NM=no}
4123 fi])
4124 if test no != "$lt_cv_path_NM"; then
4125 NM=$lt_cv_path_NM
4126 else
4127 # Didn't find any BSD compatible name lister, look for dumpbin.
4128 if test -n "$DUMPBIN"; then :
4129 # Let the user override the test.
4130 else
4131 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4132 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4133 *COFF*)
4134 DUMPBIN="$DUMPBIN -symbols -headers"
4135 ;;
4136 *)
4137 DUMPBIN=:
4138 ;;
4139 esac
4140 fi
4141 AC_SUBST([DUMPBIN])
4142 if test : != "$DUMPBIN"; then
4143 NM=$DUMPBIN
4144 fi
4145 fi
4146 test -z "$NM" && NM=nm
4147 AC_SUBST([NM])
4148 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4149
4150 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4151 [lt_cv_nm_interface="BSD nm"
4152 echo "int some_variable = 0;" > conftest.$ac_ext
4153 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4154 (eval "$ac_compile" 2>conftest.err)
4155 cat conftest.err >&AS_MESSAGE_LOG_FD
4156 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4157 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4158 cat conftest.err >&AS_MESSAGE_LOG_FD
4159 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
4160 cat conftest.out >&AS_MESSAGE_LOG_FD
4161 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4162 lt_cv_nm_interface="MS dumpbin"
4163 fi
4164 rm -f conftest*])
4165 ])# LT_PATH_NM
4166
4167 # Old names:
4168 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4169 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4170 dnl aclocal-1.4 backwards compatibility:
4171 dnl AC_DEFUN([AM_PROG_NM], [])
4172 dnl AC_DEFUN([AC_PROG_NM], [])
4173
4174 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4175 # --------------------------------
4176 # how to determine the name of the shared library
4177 # associated with a specific link library.
4178 # -- PORTME fill in with the dynamic library characteristics
4179 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
4180 [m4_require([_LT_DECL_EGREP])
4181 m4_require([_LT_DECL_OBJDUMP])
4182 m4_require([_LT_DECL_DLLTOOL])
4183 AC_CACHE_CHECK([how to associate runtime and link libraries],
4184 lt_cv_sharedlib_from_linklib_cmd,
4185 [lt_cv_sharedlib_from_linklib_cmd='unknown'
4186
4187 case $host_os in
4188 cygwin* | mingw* | pw32* | cegcc*)
4189 # two different shell functions defined in ltmain.sh;
4190 # decide which one to use based on capabilities of $DLLTOOL
4191 case `$DLLTOOL --help 2>&1` in
4192 *--identify-strict*)
4193 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4194 ;;
4195 *)
4196 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4197 ;;
4198 esac
4199 ;;
4200 *)
4201 # fallback: assume linklib IS sharedlib
4202 lt_cv_sharedlib_from_linklib_cmd=$ECHO
4203 ;;
4204 esac
4205 ])
4206 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4207 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4208
4209 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
4210 [Command to associate shared and link libraries])
4211 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4212
4213
4214 # _LT_PATH_MANIFEST_TOOL
4215 # ----------------------
4216 # locate the manifest tool
4217 m4_defun([_LT_PATH_MANIFEST_TOOL],
4218 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
4219 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4220 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
4221 [lt_cv_path_mainfest_tool=no
4222 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
4223 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4224 cat conftest.err >&AS_MESSAGE_LOG_FD
4225 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4226 lt_cv_path_mainfest_tool=yes
4227 fi
4228 rm -f conftest*])
4229 if test yes != "$lt_cv_path_mainfest_tool"; then
4230 MANIFEST_TOOL=:
4231 fi
4232 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
4233 ])# _LT_PATH_MANIFEST_TOOL
4234
4235
4236 # _LT_DLL_DEF_P([FILE])
4237 # ---------------------
4238 # True iff FILE is a Windows DLL '.def' file.
4239 # Keep in sync with func_dll_def_p in the libtool script
4240 AC_DEFUN([_LT_DLL_DEF_P],
4241 [dnl
4242 test DEF = "`$SED -n dnl
4243 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
4244 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
4245 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
4246 -e q dnl Only consider the first "real" line
4247 $1`" dnl
4248 ])# _LT_DLL_DEF_P
4249
4250
4251 # LT_LIB_M
4252 # --------
4253 # check for math library
4254 AC_DEFUN([LT_LIB_M],
4255 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4256 LIBM=
4257 case $host in
4258 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
4259 # These system don't have libm, or don't need it
4260 ;;
4261 *-ncr-sysv4.3*)
4262 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
4263 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4264 ;;
4265 *)
4266 AC_CHECK_LIB(m, cos, LIBM=-lm)
4267 ;;
4268 esac
4269 AC_SUBST([LIBM])
4270 ])# LT_LIB_M
4271
4272 # Old name:
4273 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4274 dnl aclocal-1.4 backwards compatibility:
4275 dnl AC_DEFUN([AC_CHECK_LIBM], [])
4276
4277
4278 # _LT_COMPILER_NO_RTTI([TAGNAME])
4279 # -------------------------------
4280 m4_defun([_LT_COMPILER_NO_RTTI],
4281 [m4_require([_LT_TAG_COMPILER])dnl
4282
4283 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4284
4285 if test yes = "$GCC"; then
4286 case $cc_basename in
4287 nvcc*)
4288 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
4289 *)
4290 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
4291 esac
4292
4293 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4294 lt_cv_prog_compiler_rtti_exceptions,
4295 [-fno-rtti -fno-exceptions], [],
4296 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4297 fi
4298 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4299 [Compiler flag to turn off builtin functions])
4300 ])# _LT_COMPILER_NO_RTTI
4301
4302
4303 # _LT_CMD_GLOBAL_SYMBOLS
4304 # ----------------------
4305 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4306 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4307 AC_REQUIRE([AC_PROG_CC])dnl
4308 AC_REQUIRE([AC_PROG_AWK])dnl
4309 AC_REQUIRE([LT_PATH_NM])dnl
4310 AC_REQUIRE([LT_PATH_LD])dnl
4311 m4_require([_LT_DECL_SED])dnl
4312 m4_require([_LT_DECL_EGREP])dnl
4313 m4_require([_LT_TAG_COMPILER])dnl
4314
4315 # Check for command to grab the raw symbol name followed by C symbol from nm.
4316 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4317 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4318 [
4319 # These are sane defaults that work on at least a few old systems.
4320 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4321
4322 # Character class describing NM global symbol codes.
4323 symcode='[[BCDEGRST]]'
4324
4325 # Regexp to match symbols that can be accessed directly from C.
4326 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4327
4328 # Define system-specific variables.
4329 case $host_os in
4330 aix*)
4331 symcode='[[BCDT]]'
4332 ;;
4333 cygwin* | mingw* | pw32* | cegcc*)
4334 symcode='[[ABCDGISTW]]'
4335 ;;
4336 hpux*)
4337 if test ia64 = "$host_cpu"; then
4338 symcode='[[ABCDEGRST]]'
4339 fi
4340 ;;
4341 irix* | nonstopux*)
4342 symcode='[[BCDEGRST]]'
4343 ;;
4344 osf*)
4345 symcode='[[BCDEGQRST]]'
4346 ;;
4347 solaris*)
4348 symcode='[[BDRT]]'
4349 ;;
4350 sco3.2v5*)
4351 symcode='[[DT]]'
4352 ;;
4353 sysv4.2uw2*)
4354 symcode='[[DT]]'
4355 ;;
4356 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4357 symcode='[[ABDT]]'
4358 ;;
4359 sysv4)
4360 symcode='[[DFNSTU]]'
4361 ;;
4362 esac
4363
4364 # If we're using GNU nm, then use its standard symbol codes.
4365 case `$NM -V 2>&1` in
4366 *GNU* | *'with BFD'*)
4367 symcode='[[ABCDGIRSTW]]' ;;
4368 esac
4369
4370 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4371 # Gets list of data symbols to import.
4372 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
4373 # Adjust the below global symbol transforms to fixup imported variables.
4374 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
4375 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
4376 lt_c_name_lib_hook="\
4377 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
4378 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
4379 else
4380 # Disable hooks by default.
4381 lt_cv_sys_global_symbol_to_import=
4382 lt_cdecl_hook=
4383 lt_c_name_hook=
4384 lt_c_name_lib_hook=
4385 fi
4386
4387 # Transform an extracted symbol line into a proper C declaration.
4388 # Some systems (esp. on ia64) link data and code symbols differently,
4389 # so use this general approach.
4390 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
4391 $lt_cdecl_hook\
4392 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
4393 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
4394
4395 # Transform an extracted symbol line into symbol name and symbol address
4396 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
4397 $lt_c_name_hook\
4398 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4399 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
4400
4401 # Transform an extracted symbol line into symbol name with lib prefix and
4402 # symbol address.
4403 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4404 $lt_c_name_lib_hook\
4405 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4406 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4407 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
4408
4409 # Handle CRLF in mingw tool chain
4410 opt_cr=
4411 case $build_os in
4412 mingw*)
4413 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4414 ;;
4415 esac
4416
4417 # Try without a prefix underscore, then with it.
4418 for ac_symprfx in "" "_"; do
4419
4420 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4421 symxfrm="\\1 $ac_symprfx\\2 \\2"
4422
4423 # Write the raw and C identifiers.
4424 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4425 # Fake it for dumpbin and say T for any non-static function,
4426 # D for any global variable and I for any imported variable.
4427 # Also find C++ and __fastcall symbols from MSVC++,
4428 # which start with @ or ?.
4429 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4430 " {last_section=section; section=\$ 3};"\
4431 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4432 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4433 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4434 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4435 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
4436 " \$ 0!~/External *\|/{next};"\
4437 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4438 " {if(hide[section]) next};"\
4439 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4440 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4441 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4442 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
4443 " ' prfx=^$ac_symprfx]"
4444 else
4445 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4446 fi
4447 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4448
4449 # Check to see that the pipe works correctly.
4450 pipe_works=no
4451
4452 rm -f conftest*
4453 cat > conftest.$ac_ext <<_LT_EOF
4454 #ifdef __cplusplus
4455 extern "C" {
4456 #endif
4457 char nm_test_var;
4458 void nm_test_func(void);
4459 void nm_test_func(void){}
4460 #ifdef __cplusplus
4461 }
4462 #endif
4463 int main(){nm_test_var='a';nm_test_func();return(0);}
4464 _LT_EOF
4465
4466 if AC_TRY_EVAL(ac_compile); then
4467 # Now try to grab the symbols.
4468 nlist=conftest.nm
4469 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD
4470 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
4471 # Try sorting and uniquifying the output.
4472 if sort "$nlist" | uniq > "$nlist"T; then
4473 mv -f "$nlist"T "$nlist"
4474 else
4475 rm -f "$nlist"T
4476 fi
4477
4478 # Make sure that we snagged all the symbols we need.
4479 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4480 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4481 cat <<_LT_EOF > conftest.$ac_ext
4482 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4483 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4484 /* DATA imports from DLLs on WIN32 can't be const, because runtime
4485 relocations are performed -- see ld's documentation on pseudo-relocs. */
4486 # define LT@&t@_DLSYM_CONST
4487 #elif defined __osf__
4488 /* This system does not cope well with relocations in const data. */
4489 # define LT@&t@_DLSYM_CONST
4490 #else
4491 # define LT@&t@_DLSYM_CONST const
4492 #endif
4493
4494 #ifdef __cplusplus
4495 extern "C" {
4496 #endif
4497
4498 _LT_EOF
4499 # Now generate the symbol file.
4500 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4501
4502 cat <<_LT_EOF >> conftest.$ac_ext
4503
4504 /* The mapping between symbol names and symbols. */
4505 LT@&t@_DLSYM_CONST struct {
4506 const char *name;
4507 void *address;
4508 }
4509 lt__PROGRAM__LTX_preloaded_symbols[[]] =
4510 {
4511 { "@PROGRAM@", (void *) 0 },
4512 _LT_EOF
4513 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4514 cat <<\_LT_EOF >> conftest.$ac_ext
4515 {0, (void *) 0}
4516 };
4517
4518 /* This works around a problem in FreeBSD linker */
4519 #ifdef FREEBSD_WORKAROUND
4520 static const void *lt_preloaded_setup() {
4521 return lt__PROGRAM__LTX_preloaded_symbols;
4522 }
4523 #endif
4524
4525 #ifdef __cplusplus
4526 }
4527 #endif
4528 _LT_EOF
4529 # Now try linking the two files.
4530 mv conftest.$ac_objext conftstm.$ac_objext
4531 lt_globsym_save_LIBS=$LIBS
4532 lt_globsym_save_CFLAGS=$CFLAGS
4533 LIBS=conftstm.$ac_objext
4534 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4535 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4536 pipe_works=yes
4537 fi
4538 LIBS=$lt_globsym_save_LIBS
4539 CFLAGS=$lt_globsym_save_CFLAGS
4540 else
4541 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4542 fi
4543 else
4544 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4545 fi
4546 else
4547 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4548 fi
4549 else
4550 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4551 cat conftest.$ac_ext >&5
4552 fi
4553 rm -rf conftest* conftst*
4554
4555 # Do not use the global_symbol_pipe unless it works.
4556 if test yes = "$pipe_works"; then
4557 break
4558 else
4559 lt_cv_sys_global_symbol_pipe=
4560 fi
4561 done
4562 ])
4563 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4564 lt_cv_sys_global_symbol_to_cdecl=
4565 fi
4566 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4567 AC_MSG_RESULT(failed)
4568 else
4569 AC_MSG_RESULT(ok)
4570 fi
4571
4572 # Response file support.
4573 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4574 nm_file_list_spec='@'
4575 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4576 nm_file_list_spec='@'
4577 fi
4578
4579 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4580 [Take the output of nm and produce a listing of raw symbols and C names])
4581 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4582 [Transform the output of nm in a proper C declaration])
4583 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4584 [Transform the output of nm into a list of symbols to manually relocate])
4585 _LT_DECL([global_symbol_to_c_name_address],
4586 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4587 [Transform the output of nm in a C name address pair])
4588 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4589 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4590 [Transform the output of nm in a C name address pair when lib prefix is needed])
4591 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4592 [The name lister interface])
4593 _LT_DECL([], [nm_file_list_spec], [1],
4594 [Specify filename containing input files for $NM])
4595 ]) # _LT_CMD_GLOBAL_SYMBOLS
4596
4597
4598 # _LT_COMPILER_PIC([TAGNAME])
4599 # ---------------------------
4600 m4_defun([_LT_COMPILER_PIC],
4601 [m4_require([_LT_TAG_COMPILER])dnl
4602 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
4603 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4604 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4605
4606 m4_if([$1], [CXX], [
4607 # C++ specific cases for pic, static, wl, etc.
4608 if test yes = "$GXX"; then
4609 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4610 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4611
4612 case $host_os in
4613 aix*)
4614 # All AIX code is PIC.
4615 if test ia64 = "$host_cpu"; then
4616 # AIX 5 now supports IA64 processor
4617 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4618 fi
4619 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4620 ;;
4621
4622 amigaos*)
4623 case $host_cpu in
4624 powerpc)
4625 # see comment about AmigaOS4 .so support
4626 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4627 ;;
4628 m68k)
4629 # FIXME: we need at least 68020 code to build shared libraries, but
4630 # adding the '-m68020' flag to GCC prevents building anything better,
4631 # like '-m68040'.
4632 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4633 ;;
4634 esac
4635 ;;
4636
4637 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4638 # PIC is the default for these OSes.
4639 ;;
4640 mingw* | cygwin* | os2* | pw32* | cegcc*)
4641 # This hack is so that the source file can tell whether it is being
4642 # built for inclusion in a dll (and should export symbols for example).
4643 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4644 # (--disable-auto-import) libraries
4645 m4_if([$1], [GCJ], [],
4646 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4647 case $host_os in
4648 os2*)
4649 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4650 ;;
4651 esac
4652 ;;
4653 darwin* | rhapsody*)
4654 # PIC is the default on this platform
4655 # Common symbols not allowed in MH_DYLIB files
4656 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4657 ;;
4658 *djgpp*)
4659 # DJGPP does not support shared libraries at all
4660 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4661 ;;
4662 haiku*)
4663 # PIC is the default for Haiku.
4664 # The "-static" flag exists, but is broken.
4665 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4666 ;;
4667 interix[[3-9]]*)
4668 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4669 # Instead, we relocate shared libraries at runtime.
4670 ;;
4671 sysv4*MP*)
4672 if test -d /usr/nec; then
4673 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4674 fi
4675 ;;
4676 hpux*)
4677 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4678 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4679 # sets the default TLS model and affects inlining.
4680 case $host_cpu in
4681 hppa*64*)
4682 ;;
4683 *)
4684 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4685 ;;
4686 esac
4687 ;;
4688 *qnx* | *nto*)
4689 # QNX uses GNU C++, but need to define -shared option too, otherwise
4690 # it will coredump.
4691 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4692 ;;
4693 *)
4694 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4695 ;;
4696 esac
4697 else
4698 case $host_os in
4699 aix[[4-9]]*)
4700 # All AIX code is PIC.
4701 if test ia64 = "$host_cpu"; then
4702 # AIX 5 now supports IA64 processor
4703 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4704 else
4705 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4706 fi
4707 ;;
4708 chorus*)
4709 case $cc_basename in
4710 cxch68*)
4711 # Green Hills C++ Compiler
4712 # _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"
4713 ;;
4714 esac
4715 ;;
4716 mingw* | cygwin* | os2* | pw32* | cegcc*)
4717 # This hack is so that the source file can tell whether it is being
4718 # built for inclusion in a dll (and should export symbols for example).
4719 m4_if([$1], [GCJ], [],
4720 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4721 ;;
4722 dgux*)
4723 case $cc_basename in
4724 ec++*)
4725 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4726 ;;
4727 ghcx*)
4728 # Green Hills C++ Compiler
4729 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4730 ;;
4731 *)
4732 ;;
4733 esac
4734 ;;
4735 freebsd* | dragonfly*)
4736 # FreeBSD uses GNU C++
4737 ;;
4738 hpux9* | hpux10* | hpux11*)
4739 case $cc_basename in
4740 CC*)
4741 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4742 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4743 if test ia64 != "$host_cpu"; then
4744 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4745 fi
4746 ;;
4747 aCC*)
4748 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4749 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4750 case $host_cpu in
4751 hppa*64*|ia64*)
4752 # +Z the default
4753 ;;
4754 *)
4755 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4756 ;;
4757 esac
4758 ;;
4759 *)
4760 ;;
4761 esac
4762 ;;
4763 interix*)
4764 # This is c89, which is MS Visual C++ (no shared libs)
4765 # Anyone wants to do a port?
4766 ;;
4767 irix5* | irix6* | nonstopux*)
4768 case $cc_basename in
4769 CC*)
4770 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4771 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4772 # CC pic flag -KPIC is the default.
4773 ;;
4774 *)
4775 ;;
4776 esac
4777 ;;
4778 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4779 case $cc_basename in
4780 KCC*)
4781 # KAI C++ Compiler
4782 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4783 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4784 ;;
4785 ecpc* )
4786 # old Intel C++ for x86_64, which still supported -KPIC.
4787 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4788 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4789 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4790 ;;
4791 icpc* )
4792 # Intel C++, used to be incompatible with GCC.
4793 # ICC 10 doesn't accept -KPIC any more.
4794 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4795 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4796 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4797 ;;
4798 pgCC* | pgcpp*)
4799 # Portland Group C++ compiler
4800 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4801 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4802 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4803 ;;
4804 cxx*)
4805 # Compaq C++
4806 # Make sure the PIC flag is empty. It appears that all Alpha
4807 # Linux and Compaq Tru64 Unix objects are PIC.
4808 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4809 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4810 ;;
4811 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4812 # IBM XL 8.0, 9.0 on PPC and BlueGene
4813 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4814 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4815 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4816 ;;
4817 *)
4818 case `$CC -V 2>&1 | sed 5q` in
4819 *Sun\ C*)
4820 # Sun C++ 5.9
4821 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4822 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4823 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4824 ;;
4825 esac
4826 ;;
4827 esac
4828 ;;
4829 lynxos*)
4830 ;;
4831 m88k*)
4832 ;;
4833 mvs*)
4834 case $cc_basename in
4835 cxx*)
4836 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4837 ;;
4838 *)
4839 ;;
4840 esac
4841 ;;
4842 netbsd* | netbsdelf*-gnu)
4843 ;;
4844 *qnx* | *nto*)
4845 # QNX uses GNU C++, but need to define -shared option too, otherwise
4846 # it will coredump.
4847 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4848 ;;
4849 osf3* | osf4* | osf5*)
4850 case $cc_basename in
4851 KCC*)
4852 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4853 ;;
4854 RCC*)
4855 # Rational C++ 2.4.1
4856 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4857 ;;
4858 cxx*)
4859 # Digital/Compaq C++
4860 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4861 # Make sure the PIC flag is empty. It appears that all Alpha
4862 # Linux and Compaq Tru64 Unix objects are PIC.
4863 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4864 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4865 ;;
4866 *)
4867 ;;
4868 esac
4869 ;;
4870 psos*)
4871 ;;
4872 solaris*)
4873 case $cc_basename in
4874 CC* | sunCC*)
4875 # Sun C++ 4.2, 5.x and Centerline C++
4876 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4877 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4878 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4879 ;;
4880 gcx*)
4881 # Green Hills C++ Compiler
4882 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4883 ;;
4884 *)
4885 ;;
4886 esac
4887 ;;
4888 sunos4*)
4889 case $cc_basename in
4890 CC*)
4891 # Sun C++ 4.x
4892 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4893 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4894 ;;
4895 lcc*)
4896 # Lucid
4897 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4898 ;;
4899 *)
4900 ;;
4901 esac
4902 ;;
4903 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4904 case $cc_basename in
4905 CC*)
4906 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4907 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4908 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4909 ;;
4910 esac
4911 ;;
4912 tandem*)
4913 case $cc_basename in
4914 NCC*)
4915 # NonStop-UX NCC 3.20
4916 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4917 ;;
4918 *)
4919 ;;
4920 esac
4921 ;;
4922 vxworks*)
4923 ;;
4924 *)
4925 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4926 ;;
4927 esac
4928 fi
4929 ],
4930 [
4931 if test yes = "$GCC"; then
4932 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4933 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4934
4935 case $host_os in
4936 aix*)
4937 # All AIX code is PIC.
4938 if test ia64 = "$host_cpu"; then
4939 # AIX 5 now supports IA64 processor
4940 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4941 fi
4942 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4943 ;;
4944
4945 amigaos*)
4946 case $host_cpu in
4947 powerpc)
4948 # see comment about AmigaOS4 .so support
4949 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4950 ;;
4951 m68k)
4952 # FIXME: we need at least 68020 code to build shared libraries, but
4953 # adding the '-m68020' flag to GCC prevents building anything better,
4954 # like '-m68040'.
4955 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4956 ;;
4957 esac
4958 ;;
4959
4960 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4961 # PIC is the default for these OSes.
4962 ;;
4963
4964 mingw* | cygwin* | pw32* | os2* | cegcc*)
4965 # This hack is so that the source file can tell whether it is being
4966 # built for inclusion in a dll (and should export symbols for example).
4967 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4968 # (--disable-auto-import) libraries
4969 m4_if([$1], [GCJ], [],
4970 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4971 case $host_os in
4972 os2*)
4973 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4974 ;;
4975 esac
4976 ;;
4977
4978 darwin* | rhapsody*)
4979 # PIC is the default on this platform
4980 # Common symbols not allowed in MH_DYLIB files
4981 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4982 ;;
4983
4984 haiku*)
4985 # PIC is the default for Haiku.
4986 # The "-static" flag exists, but is broken.
4987 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4988 ;;
4989
4990 hpux*)
4991 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4992 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4993 # sets the default TLS model and affects inlining.
4994 case $host_cpu in
4995 hppa*64*)
4996 # +Z the default
4997 ;;
4998 *)
4999 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5000 ;;
5001 esac
5002 ;;
5003
5004 interix[[3-9]]*)
5005 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5006 # Instead, we relocate shared libraries at runtime.
5007 ;;
5008
5009 msdosdjgpp*)
5010 # Just because we use GCC doesn't mean we suddenly get shared libraries
5011 # on systems that don't support them.
5012 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5013 enable_shared=no
5014 ;;
5015
5016 *nto* | *qnx*)
5017 # QNX uses GNU C++, but need to define -shared option too, otherwise
5018 # it will coredump.
5019 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5020 ;;
5021
5022 sysv4*MP*)
5023 if test -d /usr/nec; then
5024 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5025 fi
5026 ;;
5027
5028 *)
5029 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5030 ;;
5031 esac
5032
5033 case $cc_basename in
5034 nvcc*) # Cuda Compiler Driver 2.2
5035 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
5036 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5037 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
5038 fi
5039 ;;
5040 esac
5041 else
5042 # PORTME Check for flag to pass linker flags through the system compiler.
5043 case $host_os in
5044 aix*)
5045 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5046 if test ia64 = "$host_cpu"; then
5047 # AIX 5 now supports IA64 processor
5048 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5049 else
5050 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5051 fi
5052 ;;
5053
5054 darwin* | rhapsody*)
5055 # PIC is the default on this platform
5056 # Common symbols not allowed in MH_DYLIB files
5057 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5058 case $cc_basename in
5059 nagfor*)
5060 # NAG Fortran compiler
5061 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
5062 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5063 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5064 ;;
5065 esac
5066 ;;
5067
5068 mingw* | cygwin* | pw32* | os2* | cegcc*)
5069 # This hack is so that the source file can tell whether it is being
5070 # built for inclusion in a dll (and should export symbols for example).
5071 m4_if([$1], [GCJ], [],
5072 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5073 case $host_os in
5074 os2*)
5075 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
5076 ;;
5077 esac
5078 ;;
5079
5080 hpux9* | hpux10* | hpux11*)
5081 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5083 # not for PA HP-UX.
5084 case $host_cpu in
5085 hppa*64*|ia64*)
5086 # +Z the default
5087 ;;
5088 *)
5089 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5090 ;;
5091 esac
5092 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5093 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
5094 ;;
5095
5096 irix5* | irix6* | nonstopux*)
5097 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5098 # PIC (with -KPIC) is the default.
5099 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5100 ;;
5101
5102 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5103 case $cc_basename in
5104 # old Intel for x86_64, which still supported -KPIC.
5105 ecc*)
5106 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5107 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5108 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5109 ;;
5110 # flang / f18. f95 an alias for gfortran or flang on Debian
5111 flang* | f18* | f95*)
5112 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5113 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5114 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5115 ;;
5116 # icc used to be incompatible with GCC.
5117 # ICC 10 doesn't accept -KPIC any more.
5118 icc* | ifort*)
5119 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5120 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5121 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5122 ;;
5123 # Lahey Fortran 8.1.
5124 lf95*)
5125 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5126 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5127 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5128 ;;
5129 nagfor*)
5130 # NAG Fortran compiler
5131 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
5132 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5133 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5134 ;;
5135 tcc*)
5136 # Fabrice Bellard et al's Tiny C Compiler
5137 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5138 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5139 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5140 ;;
5141 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5142 # Portland Group compilers (*not* the Pentium gcc compiler,
5143 # which looks to be a dead project)
5144 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5145 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5146 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5147 ;;
5148 ccc*)
5149 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5150 # All Alpha code is PIC.
5151 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5152 ;;
5153 xl* | bgxl* | bgf* | mpixl*)
5154 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5155 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5156 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5157 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5158 ;;
5159 *)
5160 case `$CC -V 2>&1 | sed 5q` in
5161 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
5162 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5163 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5164 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5165 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5166 ;;
5167 *Sun\ F* | *Sun*Fortran*)
5168 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5169 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5170 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5171 ;;
5172 *Sun\ C*)
5173 # Sun C 5.9
5174 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5175 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5176 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5177 ;;
5178 *Intel*\ [[CF]]*Compiler*)
5179 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5180 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5181 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5182 ;;
5183 *Portland\ Group*)
5184 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5185 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5186 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5187 ;;
5188 esac
5189 ;;
5190 esac
5191 ;;
5192
5193 newsos6)
5194 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5195 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5196 ;;
5197
5198 *nto* | *qnx*)
5199 # QNX uses GNU C++, but need to define -shared option too, otherwise
5200 # it will coredump.
5201 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5202 ;;
5203
5204 osf3* | osf4* | osf5*)
5205 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5206 # All OSF/1 code is PIC.
5207 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5208 ;;
5209
5210 rdos*)
5211 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5212 ;;
5213
5214 solaris*)
5215 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5216 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5217 case $cc_basename in
5218 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5219 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5220 *)
5221 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5222 esac
5223 ;;
5224
5225 sunos4*)
5226 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5227 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5228 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5229 ;;
5230
5231 sysv4 | sysv4.2uw2* | sysv4.3*)
5232 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5233 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5234 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5235 ;;
5236
5237 sysv4*MP*)
5238 if test -d /usr/nec; then
5239 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5240 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5241 fi
5242 ;;
5243
5244 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5245 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5246 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5247 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5248 ;;
5249
5250 unicos*)
5251 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5252 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5253 ;;
5254
5255 uts4*)
5256 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5257 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5258 ;;
5259
5260 *)
5261 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5262 ;;
5263 esac
5264 fi
5265 ])
5266 case $host_os in
5267 # For platforms that do not support PIC, -DPIC is meaningless:
5268 *djgpp*)
5269 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5270 ;;
5271 *)
5272 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5273 ;;
5274 esac
5275
5276 AC_CACHE_CHECK([for $compiler option to produce PIC],
5277 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
5278 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5279 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
5280
5281 #
5282 # Check to make sure the PIC flag actually works.
5283 #
5284 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5285 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5286 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5287 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5288 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5289 "" | " "*) ;;
5290 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5291 esac],
5292 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5293 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5294 fi
5295 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5296 [Additional compiler flags for building library objects])
5297
5298 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5299 [How to pass a linker flag through the compiler])
5300 #
5301 # Check to make sure the static flag actually works.
5302 #
5303 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5304 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5305 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5306 $lt_tmp_static_flag,
5307 [],
5308 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5309 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5310 [Compiler flag to prevent dynamic linking])
5311 ])# _LT_COMPILER_PIC
5312
5313
5314 # _LT_LINKER_SHLIBS([TAGNAME])
5315 # ----------------------------
5316 # See if the linker supports building shared libraries.
5317 m4_defun([_LT_LINKER_SHLIBS],
5318 [AC_REQUIRE([LT_PATH_LD])dnl
5319 AC_REQUIRE([LT_PATH_NM])dnl
5320 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5321 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5322 m4_require([_LT_DECL_EGREP])dnl
5323 m4_require([_LT_DECL_SED])dnl
5324 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5325 m4_require([_LT_TAG_COMPILER])dnl
5326 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5327 m4_if([$1], [CXX], [
5328 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5329 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5330 case $host_os in
5331 aix[[4-9]]*)
5332 # If we're using GNU nm, then we don't want the "-C" option.
5333 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5334 # Without the "-l" option, or with the "-B" option, AIX nm treats
5335 # weak defined symbols like other global defined symbols, whereas
5336 # GNU nm marks them as "W".
5337 # While the 'weak' keyword is ignored in the Export File, we need
5338 # it in the Import File for the 'aix-soname' feature, so we have
5339 # to replace the "-B" option with "-P" for AIX nm.
5340 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5341 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
5342 else
5343 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5344 fi
5345 ;;
5346 pw32*)
5347 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
5348 ;;
5349 cygwin* | mingw* | cegcc*)
5350 case $cc_basename in
5351 cl*)
5352 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5353 ;;
5354 *)
5355 _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'
5356 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5357 ;;
5358 esac
5359 ;;
5360 linux* | k*bsd*-gnu | gnu*)
5361 _LT_TAGVAR(link_all_deplibs, $1)=no
5362 ;;
5363 *)
5364 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5365 ;;
5366 esac
5367 ], [
5368 runpath_var=
5369 _LT_TAGVAR(allow_undefined_flag, $1)=
5370 _LT_TAGVAR(always_export_symbols, $1)=no
5371 _LT_TAGVAR(archive_cmds, $1)=
5372 _LT_TAGVAR(archive_expsym_cmds, $1)=
5373 _LT_TAGVAR(compiler_needs_object, $1)=no
5374 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5375 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5376 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5377 _LT_TAGVAR(hardcode_automatic, $1)=no
5378 _LT_TAGVAR(hardcode_direct, $1)=no
5379 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5380 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5381 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5382 _LT_TAGVAR(hardcode_minus_L, $1)=no
5383 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5384 _LT_TAGVAR(inherit_rpath, $1)=no
5385 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5386 _LT_TAGVAR(module_cmds, $1)=
5387 _LT_TAGVAR(module_expsym_cmds, $1)=
5388 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
5389 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5390 _LT_TAGVAR(thread_safe_flag_spec, $1)=
5391 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5392 # include_expsyms should be a list of space-separated symbols to be *always*
5393 # included in the symbol list
5394 _LT_TAGVAR(include_expsyms, $1)=
5395 # exclude_expsyms can be an extended regexp of symbols to exclude
5396 # it will be wrapped by ' (' and ')$', so one must not match beginning or
5397 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
5398 # as well as any symbol that contains 'd'.
5399 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5400 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5401 # platforms (ab)use it in PIC code, but their linkers get confused if
5402 # the symbol is explicitly referenced. Since portable code cannot
5403 # rely on this symbol name, it's probably fine to never include it in
5404 # preloaded symbol tables.
5405 # Exclude shared library initialization/finalization symbols.
5406 dnl Note also adjust exclude_expsyms for C++ above.
5407 extract_expsyms_cmds=
5408
5409 case $host_os in
5410 cygwin* | mingw* | pw32* | cegcc*)
5411 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5412 # When not using gcc, we currently assume that we are using
5413 # Microsoft Visual C++.
5414 if test yes != "$GCC"; then
5415 with_gnu_ld=no
5416 fi
5417 ;;
5418 interix*)
5419 # we just hope/assume this is gcc and not c89 (= MSVC++)
5420 with_gnu_ld=yes
5421 ;;
5422 openbsd* | bitrig*)
5423 with_gnu_ld=no
5424 ;;
5425 linux* | k*bsd*-gnu | gnu*)
5426 _LT_TAGVAR(link_all_deplibs, $1)=no
5427 ;;
5428 esac
5429
5430 _LT_TAGVAR(ld_shlibs, $1)=yes
5431
5432 # On some targets, GNU ld is compatible enough with the native linker
5433 # that we're better off using the native interface for both.
5434 lt_use_gnu_ld_interface=no
5435 if test yes = "$with_gnu_ld"; then
5436 case $host_os in
5437 aix*)
5438 # The AIX port of GNU ld has always aspired to compatibility
5439 # with the native linker. However, as the warning in the GNU ld
5440 # block says, versions before 2.19.5* couldn't really create working
5441 # shared libraries, regardless of the interface used.
5442 case `$LD -v 2>&1` in
5443 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5444 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5445 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5446 *)
5447 lt_use_gnu_ld_interface=yes
5448 ;;
5449 esac
5450 ;;
5451 *)
5452 lt_use_gnu_ld_interface=yes
5453 ;;
5454 esac
5455 fi
5456
5457 if test yes = "$lt_use_gnu_ld_interface"; then
5458 # If archive_cmds runs LD, not CC, wlarc should be empty
5459 wlarc='$wl'
5460
5461 # Set some defaults for GNU ld with shared library support. These
5462 # are reset later if shared libraries are not supported. Putting them
5463 # here allows them to be overridden if necessary.
5464 runpath_var=LD_RUN_PATH
5465 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5466 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5467 # ancient GNU ld didn't support --whole-archive et. al.
5468 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5469 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
5470 else
5471 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5472 fi
5473 supports_anon_versioning=no
5474 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
5475 *GNU\ gold*) supports_anon_versioning=yes ;;
5476 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5477 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5478 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5479 *\ 2.11.*) ;; # other 2.11 versions
5480 *) supports_anon_versioning=yes ;;
5481 esac
5482
5483 # See if GNU ld supports shared libraries.
5484 case $host_os in
5485 aix[[3-9]]*)
5486 # On AIX/PPC, the GNU linker is very broken
5487 if test ia64 != "$host_cpu"; then
5488 _LT_TAGVAR(ld_shlibs, $1)=no
5489 cat <<_LT_EOF 1>&2
5490
5491 *** Warning: the GNU linker, at least up to release 2.19, is reported
5492 *** to be unable to reliably create shared libraries on AIX.
5493 *** Therefore, libtool is disabling shared libraries support. If you
5494 *** really care for shared libraries, you may want to install binutils
5495 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5496 *** You will then need to restart the configuration process.
5497
5498 _LT_EOF
5499 fi
5500 ;;
5501
5502 amigaos*)
5503 case $host_cpu in
5504 powerpc)
5505 # see comment about AmigaOS4 .so support
5506 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5507 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5508 ;;
5509 m68k)
5510 _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)'
5511 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5512 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5513 ;;
5514 esac
5515 ;;
5516
5517 beos*)
5518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5519 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5521 # support --undefined. This deserves some investigation. FIXME
5522 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5523 else
5524 _LT_TAGVAR(ld_shlibs, $1)=no
5525 fi
5526 ;;
5527
5528 cygwin* | mingw* | pw32* | cegcc*)
5529 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5530 # as there is no search path for DLLs.
5531 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5532 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5533 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5534 _LT_TAGVAR(always_export_symbols, $1)=no
5535 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5536 _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'
5537 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5538
5539 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5540 _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'
5541 # If the export-symbols file already is a .def file, use it as
5542 # is; otherwise, prepend EXPORTS...
5543 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5544 cp $export_symbols $output_objdir/$soname.def;
5545 else
5546 echo EXPORTS > $output_objdir/$soname.def;
5547 cat $export_symbols >> $output_objdir/$soname.def;
5548 fi~
5549 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5550 else
5551 _LT_TAGVAR(ld_shlibs, $1)=no
5552 fi
5553 ;;
5554
5555 haiku*)
5556 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5557 _LT_TAGVAR(link_all_deplibs, $1)=yes
5558 ;;
5559
5560 os2*)
5561 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5562 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5563 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5564 shrext_cmds=.dll
5565 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5566 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5567 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5568 $ECHO EXPORTS >> $output_objdir/$libname.def~
5569 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5570 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5571 emximp -o $lib $output_objdir/$libname.def'
5572 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5573 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5574 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5575 $ECHO EXPORTS >> $output_objdir/$libname.def~
5576 prefix_cmds="$SED"~
5577 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5578 prefix_cmds="$prefix_cmds -e 1d";
5579 fi~
5580 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5581 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5582 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5583 emximp -o $lib $output_objdir/$libname.def'
5584 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5585 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5586 ;;
5587
5588 interix[[3-9]]*)
5589 _LT_TAGVAR(hardcode_direct, $1)=no
5590 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5591 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5592 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5593 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5594 # Instead, shared libraries are loaded at an image base (0x10000000 by
5595 # default) and relocated if they conflict, which is a slow very memory
5596 # consuming and fragmenting process. To avoid this, we pick a random,
5597 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5598 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5599 _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'
5600 _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'
5601 ;;
5602
5603 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5604 tmp_diet=no
5605 if test linux-dietlibc = "$host_os"; then
5606 case $cc_basename in
5607 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5608 esac
5609 fi
5610 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5611 && test no = "$tmp_diet"
5612 then
5613 tmp_addflag=' $pic_flag'
5614 tmp_sharedflag='-shared'
5615 case $cc_basename,$host_cpu in
5616 pgcc*) # Portland Group C compiler
5617 _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'
5618 tmp_addflag=' $pic_flag'
5619 ;;
5620 pgf77* | pgf90* | pgf95* | pgfortran*)
5621 # Portland Group f77 and f90 compilers
5622 _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'
5623 tmp_addflag=' $pic_flag -Mnomain' ;;
5624 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5625 tmp_addflag=' -i_dynamic' ;;
5626 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5627 tmp_addflag=' -i_dynamic -nofor_main' ;;
5628 ifc* | ifort*) # Intel Fortran compiler
5629 tmp_addflag=' -nofor_main' ;;
5630 lf95*) # Lahey Fortran 8.1
5631 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5632 tmp_sharedflag='--shared' ;;
5633 nagfor*) # NAGFOR 5.3
5634 tmp_sharedflag='-Wl,-shared' ;;
5635 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5636 tmp_sharedflag='-qmkshrobj'
5637 tmp_addflag= ;;
5638 nvcc*) # Cuda Compiler Driver 2.2
5639 _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'
5640 _LT_TAGVAR(compiler_needs_object, $1)=yes
5641 ;;
5642 esac
5643 case `$CC -V 2>&1 | sed 5q` in
5644 *Sun\ C*) # Sun C 5.9
5645 _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'
5646 _LT_TAGVAR(compiler_needs_object, $1)=yes
5647 tmp_sharedflag='-G' ;;
5648 *Sun\ F*) # Sun Fortran 8.3
5649 tmp_sharedflag='-G' ;;
5650 esac
5651 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5652
5653 if test yes = "$supports_anon_versioning"; then
5654 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5655 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5656 echo "local: *; };" >> $output_objdir/$libname.ver~
5657 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
5658 fi
5659
5660 case $cc_basename in
5661 tcc*)
5662 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5663 ;;
5664 xlf* | bgf* | bgxlf* | mpixlf*)
5665 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5666 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5667 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5668 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5669 if test yes = "$supports_anon_versioning"; then
5670 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5671 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5672 echo "local: *; };" >> $output_objdir/$libname.ver~
5673 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5674 fi
5675 ;;
5676 esac
5677 else
5678 _LT_TAGVAR(ld_shlibs, $1)=no
5679 fi
5680 ;;
5681
5682 netbsd* | netbsdelf*-gnu)
5683 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5684 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5685 wlarc=
5686 else
5687 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5688 _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'
5689 fi
5690 ;;
5691
5692 solaris*)
5693 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5694 _LT_TAGVAR(ld_shlibs, $1)=no
5695 cat <<_LT_EOF 1>&2
5696
5697 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5698 *** create shared libraries on Solaris systems. Therefore, libtool
5699 *** is disabling shared libraries support. We urge you to upgrade GNU
5700 *** binutils to release 2.9.1 or newer. Another option is to modify
5701 *** your PATH or compiler configuration so that the native linker is
5702 *** used, and then restart.
5703
5704 _LT_EOF
5705 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5706 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5707 _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'
5708 else
5709 _LT_TAGVAR(ld_shlibs, $1)=no
5710 fi
5711 ;;
5712
5713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5714 case `$LD -v 2>&1` in
5715 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5716 _LT_TAGVAR(ld_shlibs, $1)=no
5717 cat <<_LT_EOF 1>&2
5718
5719 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5720 *** reliably create shared libraries on SCO systems. Therefore, libtool
5721 *** is disabling shared libraries support. We urge you to upgrade GNU
5722 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5723 *** your PATH or compiler configuration so that the native linker is
5724 *** used, and then restart.
5725
5726 _LT_EOF
5727 ;;
5728 *)
5729 # For security reasons, it is highly recommended that you always
5730 # use absolute paths for naming shared libraries, and exclude the
5731 # DT_RUNPATH tag from executables and libraries. But doing so
5732 # requires that you compile everything twice, which is a pain.
5733 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5734 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5735 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5736 _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'
5737 else
5738 _LT_TAGVAR(ld_shlibs, $1)=no
5739 fi
5740 ;;
5741 esac
5742 ;;
5743
5744 sunos4*)
5745 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5746 wlarc=
5747 _LT_TAGVAR(hardcode_direct, $1)=yes
5748 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5749 ;;
5750
5751 *)
5752 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5753 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5754 _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'
5755 else
5756 _LT_TAGVAR(ld_shlibs, $1)=no
5757 fi
5758 ;;
5759 esac
5760
5761 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
5762 runpath_var=
5763 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5764 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5765 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5766 fi
5767 else
5768 # PORTME fill in a description of your system's linker (not GNU ld)
5769 case $host_os in
5770 aix3*)
5771 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5772 _LT_TAGVAR(always_export_symbols, $1)=yes
5773 _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'
5774 # Note: this linker hardcodes the directories in LIBPATH if there
5775 # are no directories specified by -L.
5776 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5777 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5778 # Neither direct hardcoding nor static linking is supported with a
5779 # broken collect2.
5780 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5781 fi
5782 ;;
5783
5784 aix[[4-9]]*)
5785 if test ia64 = "$host_cpu"; then
5786 # On IA64, the linker does run time linking by default, so we don't
5787 # have to do anything special.
5788 aix_use_runtimelinking=no
5789 exp_sym_flag='-Bexport'
5790 no_entry_flag=
5791 else
5792 # If we're using GNU nm, then we don't want the "-C" option.
5793 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5794 # Without the "-l" option, or with the "-B" option, AIX nm treats
5795 # weak defined symbols like other global defined symbols, whereas
5796 # GNU nm marks them as "W".
5797 # While the 'weak' keyword is ignored in the Export File, we need
5798 # it in the Import File for the 'aix-soname' feature, so we have
5799 # to replace the "-B" option with "-P" for AIX nm.
5800 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5801 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
5802 else
5803 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5804 fi
5805 aix_use_runtimelinking=no
5806
5807 # Test if we are trying to use run time linking or normal
5808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5809 # have runtime linking enabled, and use it for executables.
5810 # For shared libraries, we enable/disable runtime linking
5811 # depending on the kind of the shared library created -
5812 # when "with_aix_soname,aix_use_runtimelinking" is:
5813 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5814 # "aix,yes" lib.so shared, rtl:yes, for executables
5815 # lib.a static archive
5816 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5817 # lib.a(lib.so.V) shared, rtl:no, for executables
5818 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5819 # lib.a(lib.so.V) shared, rtl:no
5820 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5821 # lib.a static archive
5822 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5823 for ld_flag in $LDFLAGS; do
5824 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5825 aix_use_runtimelinking=yes
5826 break
5827 fi
5828 done
5829 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5830 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5831 # so we don't have lib.a shared libs to link our executables.
5832 # We have to force runtime linking in this case.
5833 aix_use_runtimelinking=yes
5834 LDFLAGS="$LDFLAGS -Wl,-brtl"
5835 fi
5836 ;;
5837 esac
5838
5839 exp_sym_flag='-bexport'
5840 no_entry_flag='-bnoentry'
5841 fi
5842
5843 # When large executables or shared objects are built, AIX ld can
5844 # have problems creating the table of contents. If linking a library
5845 # or program results in "error TOC overflow" add -mminimal-toc to
5846 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5847 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5848
5849 _LT_TAGVAR(archive_cmds, $1)=''
5850 _LT_TAGVAR(hardcode_direct, $1)=yes
5851 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5852 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5853 _LT_TAGVAR(link_all_deplibs, $1)=yes
5854 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5855 case $with_aix_soname,$aix_use_runtimelinking in
5856 aix,*) ;; # traditional, no import file
5857 svr4,* | *,yes) # use import file
5858 # The Import File defines what to hardcode.
5859 _LT_TAGVAR(hardcode_direct, $1)=no
5860 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5861 ;;
5862 esac
5863
5864 if test yes = "$GCC"; then
5865 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5866 # We only want to do this on AIX 4.2 and lower, the check
5867 # below for broken collect2 doesn't work under 4.3+
5868 collect2name=`$CC -print-prog-name=collect2`
5869 if test -f "$collect2name" &&
5870 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5871 then
5872 # We have reworked collect2
5873 :
5874 else
5875 # We have old collect2
5876 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5877 # It fails to find uninstalled libraries when the uninstalled
5878 # path is not listed in the libpath. Setting hardcode_minus_L
5879 # to unsupported forces relinking
5880 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5881 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5882 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5883 fi
5884 ;;
5885 esac
5886 shared_flag='-shared'
5887 if test yes = "$aix_use_runtimelinking"; then
5888 shared_flag="$shared_flag "'$wl-G'
5889 fi
5890 # Need to ensure runtime linking is disabled for the traditional
5891 # shared library, or the linker may eventually find shared libraries
5892 # /with/ Import File - we do not want to mix them.
5893 shared_flag_aix='-shared'
5894 shared_flag_svr4='-shared $wl-G'
5895 else
5896 # not using gcc
5897 if test ia64 = "$host_cpu"; then
5898 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5899 # chokes on -Wl,-G. The following line is correct:
5900 shared_flag='-G'
5901 else
5902 if test yes = "$aix_use_runtimelinking"; then
5903 shared_flag='$wl-G'
5904 else
5905 shared_flag='$wl-bM:SRE'
5906 fi
5907 shared_flag_aix='$wl-bM:SRE'
5908 shared_flag_svr4='$wl-G'
5909 fi
5910 fi
5911
5912 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5913 # It seems that -bexpall does not export symbols beginning with
5914 # underscore (_), so it is better to generate a list of symbols to export.
5915 _LT_TAGVAR(always_export_symbols, $1)=yes
5916 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
5917 # Warning - without using the other runtime loading flags (-brtl),
5918 # -berok will link without error, but may produce a broken library.
5919 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5920 # Determine the default libpath from the value encoded in an
5921 # empty executable.
5922 _LT_SYS_MODULE_PATH_AIX([$1])
5923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5924 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
5925 else
5926 if test ia64 = "$host_cpu"; then
5927 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5928 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5929 _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"
5930 else
5931 # Determine the default libpath from the value encoded in an
5932 # empty executable.
5933 _LT_SYS_MODULE_PATH_AIX([$1])
5934 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5935 # Warning - without using the other run time loading flags,
5936 # -berok will link without error, but may produce a broken library.
5937 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5938 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5939 if test yes = "$with_gnu_ld"; then
5940 # We only use this code for GNU lds that support --whole-archive.
5941 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5942 else
5943 # Exported symbols can be pulled into shared objects from archives
5944 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5945 fi
5946 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5947 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5948 # -brtl affects multiple linker settings, -berok does not and is overridden later
5949 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5950 if test svr4 != "$with_aix_soname"; then
5951 # This is similar to how AIX traditionally builds its shared libraries.
5952 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
5953 fi
5954 if test aix != "$with_aix_soname"; then
5955 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
5956 else
5957 # used by -dlpreopen to get the symbols
5958 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5959 fi
5960 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
5961 fi
5962 fi
5963 ;;
5964
5965 amigaos*)
5966 case $host_cpu in
5967 powerpc)
5968 # see comment about AmigaOS4 .so support
5969 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5970 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5971 ;;
5972 m68k)
5973 _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)'
5974 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5975 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5976 ;;
5977 esac
5978 ;;
5979
5980 bsdi[[45]]*)
5981 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5982 ;;
5983
5984 cygwin* | mingw* | pw32* | cegcc*)
5985 # When not using gcc, we currently assume that we are using
5986 # Microsoft Visual C++.
5987 # hardcode_libdir_flag_spec is actually meaningless, as there is
5988 # no search path for DLLs.
5989 case $cc_basename in
5990 cl*)
5991 # Native MSVC
5992 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5993 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5994 _LT_TAGVAR(always_export_symbols, $1)=yes
5995 _LT_TAGVAR(file_list_spec, $1)='@'
5996 # Tell ltmain to make .lib files, not .a files.
5997 libext=lib
5998 # Tell ltmain to make .dll files, not .so files.
5999 shrext_cmds=.dll
6000 # FIXME: Setting linknames here is a bad hack.
6001 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6002 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6003 cp "$export_symbols" "$output_objdir/$soname.def";
6004 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6005 else
6006 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6007 fi~
6008 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6009 linknames='
6010 # The linker will not automatically build a static lib if we build a DLL.
6011 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6012 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6013 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6014 _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'
6015 # Don't use ranlib
6016 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6017 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6018 lt_tool_outputfile="@TOOL_OUTPUT@"~
6019 case $lt_outputfile in
6020 *.exe|*.EXE) ;;
6021 *)
6022 lt_outputfile=$lt_outputfile.exe
6023 lt_tool_outputfile=$lt_tool_outputfile.exe
6024 ;;
6025 esac~
6026 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6027 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6028 $RM "$lt_outputfile.manifest";
6029 fi'
6030 ;;
6031 *)
6032 # Assume MSVC wrapper
6033 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6034 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6035 # Tell ltmain to make .lib files, not .a files.
6036 libext=lib
6037 # Tell ltmain to make .dll files, not .so files.
6038 shrext_cmds=.dll
6039 # FIXME: Setting linknames here is a bad hack.
6040 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6041 # The linker will automatically build a .lib file if we build a DLL.
6042 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6043 # FIXME: Should let the user specify the lib program.
6044 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6045 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6046 ;;
6047 esac
6048 ;;
6049
6050 darwin* | rhapsody*)
6051 _LT_DARWIN_LINKER_FEATURES($1)
6052 ;;
6053
6054 dgux*)
6055 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6056 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6057 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6058 ;;
6059
6060 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6061 # support. Future versions do this automatically, but an explicit c++rt0.o
6062 # does not break anything, and helps significantly (at the cost of a little
6063 # extra space).
6064 freebsd2.2*)
6065 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6066 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6067 _LT_TAGVAR(hardcode_direct, $1)=yes
6068 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6069 ;;
6070
6071 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6072 freebsd2.*)
6073 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6074 _LT_TAGVAR(hardcode_direct, $1)=yes
6075 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6076 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6077 ;;
6078
6079 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6080 freebsd* | dragonfly*)
6081 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6082 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6083 _LT_TAGVAR(hardcode_direct, $1)=yes
6084 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6085 ;;
6086
6087 hpux9*)
6088 if test yes = "$GCC"; then
6089 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6090 else
6091 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6092 fi
6093 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6094 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6095 _LT_TAGVAR(hardcode_direct, $1)=yes
6096
6097 # hardcode_minus_L: Not really in the search PATH,
6098 # but as the default location of the library.
6099 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6100 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6101 ;;
6102
6103 hpux10*)
6104 if test yes,no = "$GCC,$with_gnu_ld"; then
6105 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6106 else
6107 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6108 fi
6109 if test no = "$with_gnu_ld"; then
6110 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6111 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6112 _LT_TAGVAR(hardcode_direct, $1)=yes
6113 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6114 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6115 # hardcode_minus_L: Not really in the search PATH,
6116 # but as the default location of the library.
6117 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6118 fi
6119 ;;
6120
6121 hpux11*)
6122 if test yes,no = "$GCC,$with_gnu_ld"; then
6123 case $host_cpu in
6124 hppa*64*)
6125 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
6126 ;;
6127 ia64*)
6128 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6129 ;;
6130 *)
6131 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6132 ;;
6133 esac
6134 else
6135 case $host_cpu in
6136 hppa*64*)
6137 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
6138 ;;
6139 ia64*)
6140 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6141 ;;
6142 *)
6143 m4_if($1, [], [
6144 # Older versions of the 11.00 compiler do not understand -b yet
6145 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
6146 _LT_LINKER_OPTION([if $CC understands -b],
6147 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
6148 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
6149 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
6150 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
6151 ;;
6152 esac
6153 fi
6154 if test no = "$with_gnu_ld"; then
6155 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6156 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6157
6158 case $host_cpu in
6159 hppa*64*|ia64*)
6160 _LT_TAGVAR(hardcode_direct, $1)=no
6161 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6162 ;;
6163 *)
6164 _LT_TAGVAR(hardcode_direct, $1)=yes
6165 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6166 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6167
6168 # hardcode_minus_L: Not really in the search PATH,
6169 # but as the default location of the library.
6170 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6171 ;;
6172 esac
6173 fi
6174 ;;
6175
6176 irix5* | irix6* | nonstopux*)
6177 if test yes = "$GCC"; then
6178 _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'
6179 # Try to use the -exported_symbol ld option, if it does not
6180 # work, assume that -exports_file does not work either and
6181 # implicitly export all symbols.
6182 # This should be the same for all languages, so no per-tag cache variable.
6183 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
6184 [lt_cv_irix_exported_symbol],
6185 [save_LDFLAGS=$LDFLAGS
6186 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
6187 AC_LINK_IFELSE(
6188 [AC_LANG_SOURCE(
6189 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
6190 [C++], [[int foo (void) { return 0; }]],
6191 [Fortran 77], [[
6192 subroutine foo
6193 end]],
6194 [Fortran], [[
6195 subroutine foo
6196 end]])])],
6197 [lt_cv_irix_exported_symbol=yes],
6198 [lt_cv_irix_exported_symbol=no])
6199 LDFLAGS=$save_LDFLAGS])
6200 if test yes = "$lt_cv_irix_exported_symbol"; then
6201 _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'
6202 fi
6203 _LT_TAGVAR(link_all_deplibs, $1)=no
6204 else
6205 _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'
6206 _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'
6207 fi
6208 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6209 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6210 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6211 _LT_TAGVAR(inherit_rpath, $1)=yes
6212 _LT_TAGVAR(link_all_deplibs, $1)=yes
6213 ;;
6214
6215 linux*)
6216 case $cc_basename in
6217 tcc*)
6218 # Fabrice Bellard et al's Tiny C Compiler
6219 _LT_TAGVAR(ld_shlibs, $1)=yes
6220 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6221 ;;
6222 esac
6223 ;;
6224
6225 netbsd* | netbsdelf*-gnu)
6226 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6227 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6228 else
6229 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6230 fi
6231 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6232 _LT_TAGVAR(hardcode_direct, $1)=yes
6233 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6234 ;;
6235
6236 newsos6)
6237 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6238 _LT_TAGVAR(hardcode_direct, $1)=yes
6239 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6240 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6241 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6242 ;;
6243
6244 *nto* | *qnx*)
6245 ;;
6246
6247 openbsd* | bitrig*)
6248 if test -f /usr/libexec/ld.so; then
6249 _LT_TAGVAR(hardcode_direct, $1)=yes
6250 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6251 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6252 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6253 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6254 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
6255 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6256 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6257 else
6258 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6259 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6260 fi
6261 else
6262 _LT_TAGVAR(ld_shlibs, $1)=no
6263 fi
6264 ;;
6265
6266 os2*)
6267 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6268 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6269 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6270 shrext_cmds=.dll
6271 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6272 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6273 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6274 $ECHO EXPORTS >> $output_objdir/$libname.def~
6275 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6276 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6277 emximp -o $lib $output_objdir/$libname.def'
6278 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6279 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6280 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6281 $ECHO EXPORTS >> $output_objdir/$libname.def~
6282 prefix_cmds="$SED"~
6283 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6284 prefix_cmds="$prefix_cmds -e 1d";
6285 fi~
6286 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6287 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6288 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6289 emximp -o $lib $output_objdir/$libname.def'
6290 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6291 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6292 ;;
6293
6294 osf3*)
6295 if test yes = "$GCC"; then
6296 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
6297 _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'
6298 else
6299 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6300 _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'
6301 fi
6302 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6303 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6304 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6305 ;;
6306
6307 osf4* | osf5*) # as osf3* with the addition of -msym flag
6308 if test yes = "$GCC"; then
6309 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
6310 _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'
6311 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6312 else
6313 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6314 _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'
6315 _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~
6316 $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'
6317
6318 # Both c and cxx compiler support -rpath directly
6319 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6320 fi
6321 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6322 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6323 ;;
6324
6325 solaris*)
6326 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6327 if test yes = "$GCC"; then
6328 wlarc='$wl'
6329 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
6330 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6331 $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'
6332 else
6333 case `$CC -V 2>&1` in
6334 *"Compilers 5.0"*)
6335 wlarc=''
6336 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
6337 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6338 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6339 ;;
6340 *)
6341 wlarc='$wl'
6342 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6343 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6344 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6345 ;;
6346 esac
6347 fi
6348 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6349 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6350 case $host_os in
6351 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6352 *)
6353 # The compiler driver will combine and reorder linker options,
6354 # but understands '-z linker_flag'. GCC discards it without '$wl',
6355 # but is careful enough not to reorder.
6356 # Supported since Solaris 2.6 (maybe 2.5.1?)
6357 if test yes = "$GCC"; then
6358 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
6359 else
6360 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6361 fi
6362 ;;
6363 esac
6364 _LT_TAGVAR(link_all_deplibs, $1)=yes
6365 ;;
6366
6367 sunos4*)
6368 if test sequent = "$host_vendor"; then
6369 # Use $CC to link under sequent, because it throws in some extra .o
6370 # files that make .init and .fini sections work.
6371 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6372 else
6373 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6374 fi
6375 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6376 _LT_TAGVAR(hardcode_direct, $1)=yes
6377 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6378 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6379 ;;
6380
6381 sysv4)
6382 case $host_vendor in
6383 sni)
6384 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6385 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6386 ;;
6387 siemens)
6388 ## LD is ld it makes a PLAMLIB
6389 ## CC just makes a GrossModule.
6390 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6391 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6392 _LT_TAGVAR(hardcode_direct, $1)=no
6393 ;;
6394 motorola)
6395 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6396 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6397 ;;
6398 esac
6399 runpath_var='LD_RUN_PATH'
6400 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6401 ;;
6402
6403 sysv4.3*)
6404 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6405 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6406 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6407 ;;
6408
6409 sysv4*MP*)
6410 if test -d /usr/nec; then
6411 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6412 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6413 runpath_var=LD_RUN_PATH
6414 hardcode_runpath_var=yes
6415 _LT_TAGVAR(ld_shlibs, $1)=yes
6416 fi
6417 ;;
6418
6419 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6420 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6421 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6422 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6423 runpath_var='LD_RUN_PATH'
6424
6425 if test yes = "$GCC"; then
6426 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6427 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6428 else
6429 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6430 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6431 fi
6432 ;;
6433
6434 sysv5* | sco3.2v5* | sco5v6*)
6435 # Note: We CANNOT use -z defs as we might desire, because we do not
6436 # link with -lc, and that would cause any symbols used from libc to
6437 # always be unresolved, which means just about no library would
6438 # ever link correctly. If we're not using GNU ld we use -z text
6439 # though, which does catch some bad symbols but isn't as heavy-handed
6440 # as -z defs.
6441 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6442 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6443 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6444 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6445 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6446 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6447 _LT_TAGVAR(link_all_deplibs, $1)=yes
6448 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6449 runpath_var='LD_RUN_PATH'
6450
6451 if test yes = "$GCC"; then
6452 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6453 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6454 else
6455 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6456 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6457 fi
6458 ;;
6459
6460 uts4*)
6461 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6462 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6463 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6464 ;;
6465
6466 *)
6467 _LT_TAGVAR(ld_shlibs, $1)=no
6468 ;;
6469 esac
6470
6471 if test sni = "$host_vendor"; then
6472 case $host in
6473 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6474 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
6475 ;;
6476 esac
6477 fi
6478 fi
6479 ])
6480 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6481 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
6482
6483 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6484
6485 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6486 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6487 _LT_DECL([], [extract_expsyms_cmds], [2],
6488 [The commands to extract the exported symbol list from a shared archive])
6489
6490 #
6491 # Do we need to explicitly link libc?
6492 #
6493 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6494 x|xyes)
6495 # Assume -lc should be added
6496 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6497
6498 if test yes,yes = "$GCC,$enable_shared"; then
6499 case $_LT_TAGVAR(archive_cmds, $1) in
6500 *'~'*)
6501 # FIXME: we may have to deal with multi-command sequences.
6502 ;;
6503 '$CC '*)
6504 # Test whether the compiler implicitly links with -lc since on some
6505 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6506 # to ld, don't add -lc before -lgcc.
6507 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6508 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6509 [$RM conftest*
6510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6511
6512 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6513 soname=conftest
6514 lib=conftest
6515 libobjs=conftest.$ac_objext
6516 deplibs=
6517 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6518 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6519 compiler_flags=-v
6520 linker_flags=-v
6521 verstring=
6522 output_objdir=.
6523 libname=conftest
6524 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6525 _LT_TAGVAR(allow_undefined_flag, $1)=
6526 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6527 then
6528 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6529 else
6530 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6531 fi
6532 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6533 else
6534 cat conftest.err 1>&5
6535 fi
6536 $RM conftest*
6537 ])
6538 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6539 ;;
6540 esac
6541 fi
6542 ;;
6543 esac
6544
6545 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6546 [Whether or not to add -lc for building shared libraries])
6547 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6548 [enable_shared_with_static_runtimes], [0],
6549 [Whether or not to disallow shared libs when runtime libs are static])
6550 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6551 [Compiler flag to allow reflexive dlopens])
6552 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
6553 [Compiler flag to generate shared objects directly from archives])
6554 _LT_TAGDECL([], [compiler_needs_object], [1],
6555 [Whether the compiler copes with passing no objects directly])
6556 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6557 [Create an old-style archive from a shared archive])
6558 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6559 [Create a temporary old-style archive to link instead of a shared archive])
6560 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6561 _LT_TAGDECL([], [archive_expsym_cmds], [2])
6562 _LT_TAGDECL([], [module_cmds], [2],
6563 [Commands used to build a loadable module if different from building
6564 a shared archive.])
6565 _LT_TAGDECL([], [module_expsym_cmds], [2])
6566 _LT_TAGDECL([], [with_gnu_ld], [1],
6567 [Whether we are building with GNU ld or not])
6568 _LT_TAGDECL([], [allow_undefined_flag], [1],
6569 [Flag that allows shared libraries with undefined symbols to be built])
6570 _LT_TAGDECL([], [no_undefined_flag], [1],
6571 [Flag that enforces no undefined symbols])
6572 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6573 [Flag to hardcode $libdir into a binary during linking.
6574 This must work even if $libdir does not exist])
6575 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
6576 [Whether we need a single "-rpath" flag with a separated argument])
6577 _LT_TAGDECL([], [hardcode_direct], [0],
6578 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6579 DIR into the resulting binary])
6580 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
6581 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6582 DIR into the resulting binary and the resulting library dependency is
6583 "absolute", i.e impossible to change by setting $shlibpath_var if the
6584 library is relocated])
6585 _LT_TAGDECL([], [hardcode_minus_L], [0],
6586 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6587 into the resulting binary])
6588 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6589 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6590 into the resulting binary])
6591 _LT_TAGDECL([], [hardcode_automatic], [0],
6592 [Set to "yes" if building a shared library automatically hardcodes DIR
6593 into the library and all subsequent libraries and executables linked
6594 against it])
6595 _LT_TAGDECL([], [inherit_rpath], [0],
6596 [Set to yes if linker adds runtime paths of dependent libraries
6597 to runtime path list])
6598 _LT_TAGDECL([], [link_all_deplibs], [0],
6599 [Whether libtool must link a program against all its dependency libraries])
6600 _LT_TAGDECL([], [always_export_symbols], [0],
6601 [Set to "yes" if exported symbols are required])
6602 _LT_TAGDECL([], [export_symbols_cmds], [2],
6603 [The commands to list exported symbols])
6604 _LT_TAGDECL([], [exclude_expsyms], [1],
6605 [Symbols that should not be listed in the preloaded symbols])
6606 _LT_TAGDECL([], [include_expsyms], [1],
6607 [Symbols that must always be exported])
6608 _LT_TAGDECL([], [prelink_cmds], [2],
6609 [Commands necessary for linking programs (against libraries) with templates])
6610 _LT_TAGDECL([], [postlink_cmds], [2],
6611 [Commands necessary for finishing linking programs])
6612 _LT_TAGDECL([], [file_list_spec], [1],
6613 [Specify filename containing input files])
6614 dnl FIXME: Not yet implemented
6615 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6616 dnl [Compiler flag to generate thread safe objects])
6617 ])# _LT_LINKER_SHLIBS
6618
6619
6620 # _LT_LANG_C_CONFIG([TAG])
6621 # ------------------------
6622 # Ensure that the configuration variables for a C compiler are suitably
6623 # defined. These variables are subsequently used by _LT_CONFIG to write
6624 # the compiler configuration to 'libtool'.
6625 m4_defun([_LT_LANG_C_CONFIG],
6626 [m4_require([_LT_DECL_EGREP])dnl
6627 lt_save_CC=$CC
6628 AC_LANG_PUSH(C)
6629
6630 # Source file extension for C test sources.
6631 ac_ext=c
6632
6633 # Object file extension for compiled C test sources.
6634 objext=o
6635 _LT_TAGVAR(objext, $1)=$objext
6636
6637 # Code to be used in simple compile tests
6638 lt_simple_compile_test_code="int some_variable = 0;"
6639
6640 # Code to be used in simple link tests
6641 lt_simple_link_test_code='int main(){return(0);}'
6642
6643 _LT_TAG_COMPILER
6644 # Save the default compiler, since it gets overwritten when the other
6645 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6646 compiler_DEFAULT=$CC
6647
6648 # save warnings/boilerplate of simple test code
6649 _LT_COMPILER_BOILERPLATE
6650 _LT_LINKER_BOILERPLATE
6651
6652 if test -n "$compiler"; then
6653 _LT_COMPILER_NO_RTTI($1)
6654 _LT_COMPILER_PIC($1)
6655 _LT_COMPILER_C_O($1)
6656 _LT_COMPILER_FILE_LOCKS($1)
6657 _LT_LINKER_SHLIBS($1)
6658 _LT_SYS_DYNAMIC_LINKER($1)
6659 _LT_LINKER_HARDCODE_LIBPATH($1)
6660 LT_SYS_DLOPEN_SELF
6661 _LT_CMD_STRIPLIB
6662
6663 # Report what library types will actually be built
6664 AC_MSG_CHECKING([if libtool supports shared libraries])
6665 AC_MSG_RESULT([$can_build_shared])
6666
6667 AC_MSG_CHECKING([whether to build shared libraries])
6668 test no = "$can_build_shared" && enable_shared=no
6669
6670 # On AIX, shared libraries and static libraries use the same namespace, and
6671 # are all built from PIC.
6672 case $host_os in
6673 aix3*)
6674 test yes = "$enable_shared" && enable_static=no
6675 if test -n "$RANLIB"; then
6676 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6677 postinstall_cmds='$RANLIB $lib'
6678 fi
6679 ;;
6680
6681 aix[[4-9]]*)
6682 if test ia64 != "$host_cpu"; then
6683 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6684 yes,aix,yes) ;; # shared object as lib.so file only
6685 yes,svr4,*) ;; # shared object as lib.so archive member only
6686 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6687 esac
6688 fi
6689 ;;
6690 esac
6691 AC_MSG_RESULT([$enable_shared])
6692
6693 AC_MSG_CHECKING([whether to build static libraries])
6694 # Make sure either enable_shared or enable_static is yes.
6695 test yes = "$enable_shared" || enable_static=yes
6696 AC_MSG_RESULT([$enable_static])
6697
6698 _LT_CONFIG($1)
6699 fi
6700 AC_LANG_POP
6701 CC=$lt_save_CC
6702 ])# _LT_LANG_C_CONFIG
6703
6704
6705 # _LT_LANG_CXX_CONFIG([TAG])
6706 # --------------------------
6707 # Ensure that the configuration variables for a C++ compiler are suitably
6708 # defined. These variables are subsequently used by _LT_CONFIG to write
6709 # the compiler configuration to 'libtool'.
6710 m4_defun([_LT_LANG_CXX_CONFIG],
6711 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6712 m4_require([_LT_DECL_EGREP])dnl
6713 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6714 if test -n "$CXX" && ( test no != "$CXX" &&
6715 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6716 (test g++ != "$CXX"))); then
6717 AC_PROG_CXXCPP
6718 else
6719 _lt_caught_CXX_error=yes
6720 fi
6721
6722 AC_LANG_PUSH(C++)
6723 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6724 _LT_TAGVAR(allow_undefined_flag, $1)=
6725 _LT_TAGVAR(always_export_symbols, $1)=no
6726 _LT_TAGVAR(archive_expsym_cmds, $1)=
6727 _LT_TAGVAR(compiler_needs_object, $1)=no
6728 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6729 _LT_TAGVAR(hardcode_direct, $1)=no
6730 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6731 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6732 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6733 _LT_TAGVAR(hardcode_minus_L, $1)=no
6734 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6735 _LT_TAGVAR(hardcode_automatic, $1)=no
6736 _LT_TAGVAR(inherit_rpath, $1)=no
6737 _LT_TAGVAR(module_cmds, $1)=
6738 _LT_TAGVAR(module_expsym_cmds, $1)=
6739 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6740 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6741 _LT_TAGVAR(reload_flag, $1)=$reload_flag
6742 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6743 _LT_TAGVAR(no_undefined_flag, $1)=
6744 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6745 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6746
6747 # Source file extension for C++ test sources.
6748 ac_ext=cpp
6749
6750 # Object file extension for compiled C++ test sources.
6751 objext=o
6752 _LT_TAGVAR(objext, $1)=$objext
6753
6754 # No sense in running all these tests if we already determined that
6755 # the CXX compiler isn't working. Some variables (like enable_shared)
6756 # are currently assumed to apply to all compilers on this platform,
6757 # and will be corrupted by setting them based on a non-working compiler.
6758 if test yes != "$_lt_caught_CXX_error"; then
6759 # Code to be used in simple compile tests
6760 lt_simple_compile_test_code="int some_variable = 0;"
6761
6762 # Code to be used in simple link tests
6763 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6764
6765 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6766 _LT_TAG_COMPILER
6767
6768 # save warnings/boilerplate of simple test code
6769 _LT_COMPILER_BOILERPLATE
6770 _LT_LINKER_BOILERPLATE
6771
6772 # Allow CC to be a program name with arguments.
6773 lt_save_CC=$CC
6774 lt_save_CFLAGS=$CFLAGS
6775 lt_save_LD=$LD
6776 lt_save_GCC=$GCC
6777 GCC=$GXX
6778 lt_save_with_gnu_ld=$with_gnu_ld
6779 lt_save_path_LD=$lt_cv_path_LD
6780 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6781 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6782 else
6783 $as_unset lt_cv_prog_gnu_ld
6784 fi
6785 if test -n "${lt_cv_path_LDCXX+set}"; then
6786 lt_cv_path_LD=$lt_cv_path_LDCXX
6787 else
6788 $as_unset lt_cv_path_LD
6789 fi
6790 test -z "${LDCXX+set}" || LD=$LDCXX
6791 CC=${CXX-"c++"}
6792 CFLAGS=$CXXFLAGS
6793 compiler=$CC
6794 _LT_TAGVAR(compiler, $1)=$CC
6795 _LT_CC_BASENAME([$compiler])
6796
6797 if test -n "$compiler"; then
6798 # We don't want -fno-exception when compiling C++ code, so set the
6799 # no_builtin_flag separately
6800 if test yes = "$GXX"; then
6801 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6802 else
6803 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6804 fi
6805
6806 if test yes = "$GXX"; then
6807 # Set up default GNU C++ configuration
6808
6809 LT_PATH_LD
6810
6811 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6812 # archiving commands below assume that GNU ld is being used.
6813 if test yes = "$with_gnu_ld"; then
6814 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6815 _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'
6816
6817 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6818 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6819
6820 # If archive_cmds runs LD, not CC, wlarc should be empty
6821 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6822 # investigate it a little bit more. (MM)
6823 wlarc='$wl'
6824
6825 # ancient GNU ld didn't support --whole-archive et. al.
6826 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6827 $GREP 'no-whole-archive' > /dev/null; then
6828 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6829 else
6830 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6831 fi
6832 else
6833 with_gnu_ld=no
6834 wlarc=
6835
6836 # A generic and very simple default shared library creation
6837 # command for GNU C++ for the case where it uses the native
6838 # linker, instead of GNU ld. If possible, this setting should
6839 # overridden to take advantage of the native linker features on
6840 # the platform it is being used on.
6841 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6842 fi
6843
6844 # Commands to make compiler produce verbose output that lists
6845 # what "hidden" libraries, object files and flags are used when
6846 # linking a shared library.
6847 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
6848
6849 else
6850 GXX=no
6851 with_gnu_ld=no
6852 wlarc=
6853 fi
6854
6855 # PORTME: fill in a description of your system's C++ link characteristics
6856 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6857 _LT_TAGVAR(ld_shlibs, $1)=yes
6858 case $host_os in
6859 aix3*)
6860 # FIXME: insert proper C++ library support
6861 _LT_TAGVAR(ld_shlibs, $1)=no
6862 ;;
6863 aix[[4-9]]*)
6864 if test ia64 = "$host_cpu"; then
6865 # On IA64, the linker does run time linking by default, so we don't
6866 # have to do anything special.
6867 aix_use_runtimelinking=no
6868 exp_sym_flag='-Bexport'
6869 no_entry_flag=
6870 else
6871 aix_use_runtimelinking=no
6872
6873 # Test if we are trying to use run time linking or normal
6874 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6875 # have runtime linking enabled, and use it for executables.
6876 # For shared libraries, we enable/disable runtime linking
6877 # depending on the kind of the shared library created -
6878 # when "with_aix_soname,aix_use_runtimelinking" is:
6879 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6880 # "aix,yes" lib.so shared, rtl:yes, for executables
6881 # lib.a static archive
6882 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6883 # lib.a(lib.so.V) shared, rtl:no, for executables
6884 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6885 # lib.a(lib.so.V) shared, rtl:no
6886 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6887 # lib.a static archive
6888 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6889 for ld_flag in $LDFLAGS; do
6890 case $ld_flag in
6891 *-brtl*)
6892 aix_use_runtimelinking=yes
6893 break
6894 ;;
6895 esac
6896 done
6897 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6898 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6899 # so we don't have lib.a shared libs to link our executables.
6900 # We have to force runtime linking in this case.
6901 aix_use_runtimelinking=yes
6902 LDFLAGS="$LDFLAGS -Wl,-brtl"
6903 fi
6904 ;;
6905 esac
6906
6907 exp_sym_flag='-bexport'
6908 no_entry_flag='-bnoentry'
6909 fi
6910
6911 # When large executables or shared objects are built, AIX ld can
6912 # have problems creating the table of contents. If linking a library
6913 # or program results in "error TOC overflow" add -mminimal-toc to
6914 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6915 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6916
6917 _LT_TAGVAR(archive_cmds, $1)=''
6918 _LT_TAGVAR(hardcode_direct, $1)=yes
6919 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6920 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6921 _LT_TAGVAR(link_all_deplibs, $1)=yes
6922 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6923 case $with_aix_soname,$aix_use_runtimelinking in
6924 aix,*) ;; # no import file
6925 svr4,* | *,yes) # use import file
6926 # The Import File defines what to hardcode.
6927 _LT_TAGVAR(hardcode_direct, $1)=no
6928 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6929 ;;
6930 esac
6931
6932 if test yes = "$GXX"; then
6933 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6934 # We only want to do this on AIX 4.2 and lower, the check
6935 # below for broken collect2 doesn't work under 4.3+
6936 collect2name=`$CC -print-prog-name=collect2`
6937 if test -f "$collect2name" &&
6938 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6939 then
6940 # We have reworked collect2
6941 :
6942 else
6943 # We have old collect2
6944 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6945 # It fails to find uninstalled libraries when the uninstalled
6946 # path is not listed in the libpath. Setting hardcode_minus_L
6947 # to unsupported forces relinking
6948 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6949 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6950 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6951 fi
6952 esac
6953 shared_flag='-shared'
6954 if test yes = "$aix_use_runtimelinking"; then
6955 shared_flag=$shared_flag' $wl-G'
6956 fi
6957 # Need to ensure runtime linking is disabled for the traditional
6958 # shared library, or the linker may eventually find shared libraries
6959 # /with/ Import File - we do not want to mix them.
6960 shared_flag_aix='-shared'
6961 shared_flag_svr4='-shared $wl-G'
6962 else
6963 # not using gcc
6964 if test ia64 = "$host_cpu"; then
6965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6966 # chokes on -Wl,-G. The following line is correct:
6967 shared_flag='-G'
6968 else
6969 if test yes = "$aix_use_runtimelinking"; then
6970 shared_flag='$wl-G'
6971 else
6972 shared_flag='$wl-bM:SRE'
6973 fi
6974 shared_flag_aix='$wl-bM:SRE'
6975 shared_flag_svr4='$wl-G'
6976 fi
6977 fi
6978
6979 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6980 # It seems that -bexpall does not export symbols beginning with
6981 # underscore (_), so it is better to generate a list of symbols to
6982 # export.
6983 _LT_TAGVAR(always_export_symbols, $1)=yes
6984 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
6985 # Warning - without using the other runtime loading flags (-brtl),
6986 # -berok will link without error, but may produce a broken library.
6987 # The "-G" linker flag allows undefined symbols.
6988 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6989 # Determine the default libpath from the value encoded in an empty
6990 # executable.
6991 _LT_SYS_MODULE_PATH_AIX([$1])
6992 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6993
6994 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
6995 else
6996 if test ia64 = "$host_cpu"; then
6997 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6998 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6999 _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"
7000 else
7001 # Determine the default libpath from the value encoded in an
7002 # empty executable.
7003 _LT_SYS_MODULE_PATH_AIX([$1])
7004 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
7005 # Warning - without using the other run time loading flags,
7006 # -berok will link without error, but may produce a broken library.
7007 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
7008 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
7009 if test yes = "$with_gnu_ld"; then
7010 # We only use this code for GNU lds that support --whole-archive.
7011 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
7012 else
7013 # Exported symbols can be pulled into shared objects from archives
7014 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7015 fi
7016 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7017 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
7018 # -brtl affects multiple linker settings, -berok does not and is overridden later
7019 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
7020 if test svr4 != "$with_aix_soname"; then
7021 # This is similar to how AIX traditionally builds its shared
7022 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
7023 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
7024 fi
7025 if test aix != "$with_aix_soname"; then
7026 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
7027 else
7028 # used by -dlpreopen to get the symbols
7029 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
7030 fi
7031 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
7032 fi
7033 fi
7034 ;;
7035
7036 beos*)
7037 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7038 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7039 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7040 # support --undefined. This deserves some investigation. FIXME
7041 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7042 else
7043 _LT_TAGVAR(ld_shlibs, $1)=no
7044 fi
7045 ;;
7046
7047 chorus*)
7048 case $cc_basename in
7049 *)
7050 # FIXME: insert proper C++ library support
7051 _LT_TAGVAR(ld_shlibs, $1)=no
7052 ;;
7053 esac
7054 ;;
7055
7056 cygwin* | mingw* | pw32* | cegcc*)
7057 case $GXX,$cc_basename in
7058 ,cl* | no,cl*)
7059 # Native MSVC
7060 # hardcode_libdir_flag_spec is actually meaningless, as there is
7061 # no search path for DLLs.
7062 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7063 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7064 _LT_TAGVAR(always_export_symbols, $1)=yes
7065 _LT_TAGVAR(file_list_spec, $1)='@'
7066 # Tell ltmain to make .lib files, not .a files.
7067 libext=lib
7068 # Tell ltmain to make .dll files, not .so files.
7069 shrext_cmds=.dll
7070 # FIXME: Setting linknames here is a bad hack.
7071 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
7072 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
7073 cp "$export_symbols" "$output_objdir/$soname.def";
7074 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
7075 else
7076 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
7077 fi~
7078 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
7079 linknames='
7080 # The linker will not automatically build a static lib if we build a DLL.
7081 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7082 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7083 # Don't use ranlib
7084 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
7085 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
7086 lt_tool_outputfile="@TOOL_OUTPUT@"~
7087 case $lt_outputfile in
7088 *.exe|*.EXE) ;;
7089 *)
7090 lt_outputfile=$lt_outputfile.exe
7091 lt_tool_outputfile=$lt_tool_outputfile.exe
7092 ;;
7093 esac~
7094 func_to_tool_file "$lt_outputfile"~
7095 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
7096 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
7097 $RM "$lt_outputfile.manifest";
7098 fi'
7099 ;;
7100 *)
7101 # g++
7102 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7103 # as there is no search path for DLLs.
7104 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7105 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
7106 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7107 _LT_TAGVAR(always_export_symbols, $1)=no
7108 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7109
7110 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7111 _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'
7112 # If the export-symbols file already is a .def file, use it as
7113 # is; otherwise, prepend EXPORTS...
7114 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
7115 cp $export_symbols $output_objdir/$soname.def;
7116 else
7117 echo EXPORTS > $output_objdir/$soname.def;
7118 cat $export_symbols >> $output_objdir/$soname.def;
7119 fi~
7120 $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'
7121 else
7122 _LT_TAGVAR(ld_shlibs, $1)=no
7123 fi
7124 ;;
7125 esac
7126 ;;
7127 darwin* | rhapsody*)
7128 _LT_DARWIN_LINKER_FEATURES($1)
7129 ;;
7130
7131 os2*)
7132 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7133 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7134 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7135 shrext_cmds=.dll
7136 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
7137 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
7138 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
7139 $ECHO EXPORTS >> $output_objdir/$libname.def~
7140 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
7141 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
7142 emximp -o $lib $output_objdir/$libname.def'
7143 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
7144 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
7145 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
7146 $ECHO EXPORTS >> $output_objdir/$libname.def~
7147 prefix_cmds="$SED"~
7148 if test EXPORTS = "`$SED 1q $export_symbols`"; then
7149 prefix_cmds="$prefix_cmds -e 1d";
7150 fi~
7151 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
7152 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
7153 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
7154 emximp -o $lib $output_objdir/$libname.def'
7155 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
7156 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7157 ;;
7158
7159 dgux*)
7160 case $cc_basename in
7161 ec++*)
7162 # FIXME: insert proper C++ library support
7163 _LT_TAGVAR(ld_shlibs, $1)=no
7164 ;;
7165 ghcx*)
7166 # Green Hills C++ Compiler
7167 # FIXME: insert proper C++ library support
7168 _LT_TAGVAR(ld_shlibs, $1)=no
7169 ;;
7170 *)
7171 # FIXME: insert proper C++ library support
7172 _LT_TAGVAR(ld_shlibs, $1)=no
7173 ;;
7174 esac
7175 ;;
7176
7177 freebsd2.*)
7178 # C++ shared libraries reported to be fairly broken before
7179 # switch to ELF
7180 _LT_TAGVAR(ld_shlibs, $1)=no
7181 ;;
7182
7183 freebsd-elf*)
7184 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7185 ;;
7186
7187 freebsd* | dragonfly*)
7188 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
7189 # conventions
7190 _LT_TAGVAR(ld_shlibs, $1)=yes
7191 ;;
7192
7193 haiku*)
7194 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7195 _LT_TAGVAR(link_all_deplibs, $1)=yes
7196 ;;
7197
7198 hpux9*)
7199 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
7200 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7201 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7202 _LT_TAGVAR(hardcode_direct, $1)=yes
7203 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7204 # but as the default
7205 # location of the library.
7206
7207 case $cc_basename in
7208 CC*)
7209 # FIXME: insert proper C++ library support
7210 _LT_TAGVAR(ld_shlibs, $1)=no
7211 ;;
7212 aCC*)
7213 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
7214 # Commands to make compiler produce verbose output that lists
7215 # what "hidden" libraries, object files and flags are used when
7216 # linking a shared library.
7217 #
7218 # There doesn't appear to be a way to prevent this compiler from
7219 # explicitly linking system object files so we need to strip them
7220 # from the output so that they don't get included in the library
7221 # dependencies.
7222 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"'
7223 ;;
7224 *)
7225 if test yes = "$GXX"; then
7226 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
7227 else
7228 # FIXME: insert proper C++ library support
7229 _LT_TAGVAR(ld_shlibs, $1)=no
7230 fi
7231 ;;
7232 esac
7233 ;;
7234
7235 hpux10*|hpux11*)
7236 if test no = "$with_gnu_ld"; then
7237 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
7238 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7239
7240 case $host_cpu in
7241 hppa*64*|ia64*)
7242 ;;
7243 *)
7244 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7245 ;;
7246 esac
7247 fi
7248 case $host_cpu in
7249 hppa*64*|ia64*)
7250 _LT_TAGVAR(hardcode_direct, $1)=no
7251 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7252 ;;
7253 *)
7254 _LT_TAGVAR(hardcode_direct, $1)=yes
7255 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7256 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7257 # but as the default
7258 # location of the library.
7259 ;;
7260 esac
7261
7262 case $cc_basename in
7263 CC*)
7264 # FIXME: insert proper C++ library support
7265 _LT_TAGVAR(ld_shlibs, $1)=no
7266 ;;
7267 aCC*)
7268 case $host_cpu in
7269 hppa*64*)
7270 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7271 ;;
7272 ia64*)
7273 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7274 ;;
7275 *)
7276 _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'
7277 ;;
7278 esac
7279 # Commands to make compiler produce verbose output that lists
7280 # what "hidden" libraries, object files and flags are used when
7281 # linking a shared library.
7282 #
7283 # There doesn't appear to be a way to prevent this compiler from
7284 # explicitly linking system object files so we need to strip them
7285 # from the output so that they don't get included in the library
7286 # dependencies.
7287 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"'
7288 ;;
7289 *)
7290 if test yes = "$GXX"; then
7291 if test no = "$with_gnu_ld"; then
7292 case $host_cpu in
7293 hppa*64*)
7294 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7295 ;;
7296 ia64*)
7297 _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'
7298 ;;
7299 *)
7300 _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'
7301 ;;
7302 esac
7303 fi
7304 else
7305 # FIXME: insert proper C++ library support
7306 _LT_TAGVAR(ld_shlibs, $1)=no
7307 fi
7308 ;;
7309 esac
7310 ;;
7311
7312 interix[[3-9]]*)
7313 _LT_TAGVAR(hardcode_direct, $1)=no
7314 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7315 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7316 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7318 # Instead, shared libraries are loaded at an image base (0x10000000 by
7319 # default) and relocated if they conflict, which is a slow very memory
7320 # consuming and fragmenting process. To avoid this, we pick a random,
7321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7323 _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'
7324 _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'
7325 ;;
7326 irix5* | irix6*)
7327 case $cc_basename in
7328 CC*)
7329 # SGI C++
7330 _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'
7331
7332 # Archives containing C++ object files must be created using
7333 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
7334 # necessary to make sure instantiated templates are included
7335 # in the archive.
7336 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
7337 ;;
7338 *)
7339 if test yes = "$GXX"; then
7340 if test no = "$with_gnu_ld"; then
7341 _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'
7342 else
7343 _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'
7344 fi
7345 fi
7346 _LT_TAGVAR(link_all_deplibs, $1)=yes
7347 ;;
7348 esac
7349 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7350 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7351 _LT_TAGVAR(inherit_rpath, $1)=yes
7352 ;;
7353
7354 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7355 case $cc_basename in
7356 KCC*)
7357 # Kuck and Associates, Inc. (KAI) C++ Compiler
7358
7359 # KCC will only create a shared library if the output file
7360 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7361 # to its proper name (with version) after linking.
7362 _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'
7363 _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'
7364 # Commands to make compiler produce verbose output that lists
7365 # what "hidden" libraries, object files and flags are used when
7366 # linking a shared library.
7367 #
7368 # There doesn't appear to be a way to prevent this compiler from
7369 # explicitly linking system object files so we need to strip them
7370 # from the output so that they don't get included in the library
7371 # dependencies.
7372 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"'
7373
7374 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7375 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7376
7377 # Archives containing C++ object files must be created using
7378 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
7379 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
7380 ;;
7381 icpc* | ecpc* )
7382 # Intel C++
7383 with_gnu_ld=yes
7384 # version 8.0 and above of icpc choke on multiply defined symbols
7385 # if we add $predep_objects and $postdep_objects, however 7.1 and
7386 # earlier do not add the objects themselves.
7387 case `$CC -V 2>&1` in
7388 *"Version 7."*)
7389 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7390 _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'
7391 ;;
7392 *) # Version 8.0 or newer
7393 tmp_idyn=
7394 case $host_cpu in
7395 ia64*) tmp_idyn=' -i_dynamic';;
7396 esac
7397 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7398 _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'
7399 ;;
7400 esac
7401 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7402 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7403 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7404 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
7405 ;;
7406 pgCC* | pgcpp*)
7407 # Portland Group C++ compiler
7408 case `$CC -V` in
7409 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7410 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7411 rm -rf $tpldir~
7412 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7413 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7414 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7415 rm -rf $tpldir~
7416 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7417 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7418 $RANLIB $oldlib'
7419 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7420 rm -rf $tpldir~
7421 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7422 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7423 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7424 rm -rf $tpldir~
7425 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7426 $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'
7427 ;;
7428 *) # Version 6 and above use weak symbols
7429 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7430 _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'
7431 ;;
7432 esac
7433
7434 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7435 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7436 _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'
7437 ;;
7438 cxx*)
7439 # Compaq C++
7440 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7441 _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'
7442
7443 runpath_var=LD_RUN_PATH
7444 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7445 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7446
7447 # Commands to make compiler produce verbose output that lists
7448 # what "hidden" libraries, object files and flags are used when
7449 # linking a shared library.
7450 #
7451 # There doesn't appear to be a way to prevent this compiler from
7452 # explicitly linking system object files so we need to strip them
7453 # from the output so that they don't get included in the library
7454 # dependencies.
7455 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'
7456 ;;
7457 xl* | mpixl* | bgxl*)
7458 # IBM XL 8.0 on PPC, with GNU ld
7459 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7460 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7461 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7462 if test yes = "$supports_anon_versioning"; then
7463 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7465 echo "local: *; };" >> $output_objdir/$libname.ver~
7466 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
7467 fi
7468 ;;
7469 *)
7470 case `$CC -V 2>&1 | sed 5q` in
7471 *Sun\ C*)
7472 # Sun C++ 5.9
7473 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7474 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7475 _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'
7476 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7477 _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'
7478 _LT_TAGVAR(compiler_needs_object, $1)=yes
7479
7480 # Not sure whether something based on
7481 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7482 # would be better.
7483 output_verbose_link_cmd='func_echo_all'
7484
7485 # Archives containing C++ object files must be created using
7486 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7487 # necessary to make sure instantiated templates are included
7488 # in the archive.
7489 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7490 ;;
7491 esac
7492 ;;
7493 esac
7494 ;;
7495
7496 lynxos*)
7497 # FIXME: insert proper C++ library support
7498 _LT_TAGVAR(ld_shlibs, $1)=no
7499 ;;
7500
7501 m88k*)
7502 # FIXME: insert proper C++ library support
7503 _LT_TAGVAR(ld_shlibs, $1)=no
7504 ;;
7505
7506 mvs*)
7507 case $cc_basename in
7508 cxx*)
7509 # FIXME: insert proper C++ library support
7510 _LT_TAGVAR(ld_shlibs, $1)=no
7511 ;;
7512 *)
7513 # FIXME: insert proper C++ library support
7514 _LT_TAGVAR(ld_shlibs, $1)=no
7515 ;;
7516 esac
7517 ;;
7518
7519 netbsd*)
7520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7521 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7522 wlarc=
7523 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7524 _LT_TAGVAR(hardcode_direct, $1)=yes
7525 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7526 fi
7527 # Workaround some broken pre-1.5 toolchains
7528 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7529 ;;
7530
7531 *nto* | *qnx*)
7532 _LT_TAGVAR(ld_shlibs, $1)=yes
7533 ;;
7534
7535 openbsd* | bitrig*)
7536 if test -f /usr/libexec/ld.so; then
7537 _LT_TAGVAR(hardcode_direct, $1)=yes
7538 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7539 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7540 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7541 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7542 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7543 _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'
7544 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7545 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
7546 fi
7547 output_verbose_link_cmd=func_echo_all
7548 else
7549 _LT_TAGVAR(ld_shlibs, $1)=no
7550 fi
7551 ;;
7552
7553 osf3* | osf4* | osf5*)
7554 case $cc_basename in
7555 KCC*)
7556 # Kuck and Associates, Inc. (KAI) C++ Compiler
7557
7558 # KCC will only create a shared library if the output file
7559 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7560 # to its proper name (with version) after linking.
7561 _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'
7562
7563 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7564 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7565
7566 # Archives containing C++ object files must be created using
7567 # the KAI C++ compiler.
7568 case $host in
7569 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7570 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7571 esac
7572 ;;
7573 RCC*)
7574 # Rational C++ 2.4.1
7575 # FIXME: insert proper C++ library support
7576 _LT_TAGVAR(ld_shlibs, $1)=no
7577 ;;
7578 cxx*)
7579 case $host in
7580 osf3*)
7581 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7582 _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'
7583 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7584 ;;
7585 *)
7586 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7587 _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'
7588 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7589 echo "-hidden">> $lib.exp~
7590 $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~
7591 $RM $lib.exp'
7592 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7593 ;;
7594 esac
7595
7596 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7597
7598 # Commands to make compiler produce verbose output that lists
7599 # what "hidden" libraries, object files and flags are used when
7600 # linking a shared library.
7601 #
7602 # There doesn't appear to be a way to prevent this compiler from
7603 # explicitly linking system object files so we need to strip them
7604 # from the output so that they don't get included in the library
7605 # dependencies.
7606 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"'
7607 ;;
7608 *)
7609 if test yes,no = "$GXX,$with_gnu_ld"; then
7610 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7611 case $host in
7612 osf3*)
7613 _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'
7614 ;;
7615 *)
7616 _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'
7617 ;;
7618 esac
7619
7620 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7621 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7622
7623 # Commands to make compiler produce verbose output that lists
7624 # what "hidden" libraries, object files and flags are used when
7625 # linking a shared library.
7626 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
7627
7628 else
7629 # FIXME: insert proper C++ library support
7630 _LT_TAGVAR(ld_shlibs, $1)=no
7631 fi
7632 ;;
7633 esac
7634 ;;
7635
7636 psos*)
7637 # FIXME: insert proper C++ library support
7638 _LT_TAGVAR(ld_shlibs, $1)=no
7639 ;;
7640
7641 sunos4*)
7642 case $cc_basename in
7643 CC*)
7644 # Sun C++ 4.x
7645 # FIXME: insert proper C++ library support
7646 _LT_TAGVAR(ld_shlibs, $1)=no
7647 ;;
7648 lcc*)
7649 # Lucid
7650 # FIXME: insert proper C++ library support
7651 _LT_TAGVAR(ld_shlibs, $1)=no
7652 ;;
7653 *)
7654 # FIXME: insert proper C++ library support
7655 _LT_TAGVAR(ld_shlibs, $1)=no
7656 ;;
7657 esac
7658 ;;
7659
7660 solaris*)
7661 case $cc_basename in
7662 CC* | sunCC*)
7663 # Sun C++ 4.2, 5.x and Centerline C++
7664 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7665 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7666 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7667 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7668 $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'
7669
7670 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7671 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7672 case $host_os in
7673 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7674 *)
7675 # The compiler driver will combine and reorder linker options,
7676 # but understands '-z linker_flag'.
7677 # Supported since Solaris 2.6 (maybe 2.5.1?)
7678 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7679 ;;
7680 esac
7681 _LT_TAGVAR(link_all_deplibs, $1)=yes
7682
7683 output_verbose_link_cmd='func_echo_all'
7684
7685 # Archives containing C++ object files must be created using
7686 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7687 # necessary to make sure instantiated templates are included
7688 # in the archive.
7689 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7690 ;;
7691 gcx*)
7692 # Green Hills C++ Compiler
7693 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7694
7695 # The C++ compiler must be used to create the archive.
7696 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7697 ;;
7698 *)
7699 # GNU C++ compiler with Solaris linker
7700 if test yes,no = "$GXX,$with_gnu_ld"; then
7701 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7702 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7703 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7704 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7705 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7706
7707 # Commands to make compiler produce verbose output that lists
7708 # what "hidden" libraries, object files and flags are used when
7709 # linking a shared library.
7710 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
7711 else
7712 # g++ 2.7 appears to require '-G' NOT '-shared' on this
7713 # platform.
7714 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7715 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7716 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7717
7718 # Commands to make compiler produce verbose output that lists
7719 # what "hidden" libraries, object files and flags are used when
7720 # linking a shared library.
7721 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
7722 fi
7723
7724 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7725 case $host_os in
7726 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7727 *)
7728 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
7729 ;;
7730 esac
7731 fi
7732 ;;
7733 esac
7734 ;;
7735
7736 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7737 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7738 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7739 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7740 runpath_var='LD_RUN_PATH'
7741
7742 case $cc_basename in
7743 CC*)
7744 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7745 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7746 ;;
7747 *)
7748 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7749 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7750 ;;
7751 esac
7752 ;;
7753
7754 sysv5* | sco3.2v5* | sco5v6*)
7755 # Note: We CANNOT use -z defs as we might desire, because we do not
7756 # link with -lc, and that would cause any symbols used from libc to
7757 # always be unresolved, which means just about no library would
7758 # ever link correctly. If we're not using GNU ld we use -z text
7759 # though, which does catch some bad symbols but isn't as heavy-handed
7760 # as -z defs.
7761 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7762 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7763 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7764 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7765 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7766 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7767 _LT_TAGVAR(link_all_deplibs, $1)=yes
7768 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7769 runpath_var='LD_RUN_PATH'
7770
7771 case $cc_basename in
7772 CC*)
7773 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7774 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7775 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7776 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7777 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7778 '"$_LT_TAGVAR(reload_cmds, $1)"
7779 ;;
7780 *)
7781 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7782 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7783 ;;
7784 esac
7785 ;;
7786
7787 tandem*)
7788 case $cc_basename in
7789 NCC*)
7790 # NonStop-UX NCC 3.20
7791 # FIXME: insert proper C++ library support
7792 _LT_TAGVAR(ld_shlibs, $1)=no
7793 ;;
7794 *)
7795 # FIXME: insert proper C++ library support
7796 _LT_TAGVAR(ld_shlibs, $1)=no
7797 ;;
7798 esac
7799 ;;
7800
7801 vxworks*)
7802 # FIXME: insert proper C++ library support
7803 _LT_TAGVAR(ld_shlibs, $1)=no
7804 ;;
7805
7806 *)
7807 # FIXME: insert proper C++ library support
7808 _LT_TAGVAR(ld_shlibs, $1)=no
7809 ;;
7810 esac
7811
7812 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7813 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7814
7815 _LT_TAGVAR(GCC, $1)=$GXX
7816 _LT_TAGVAR(LD, $1)=$LD
7817
7818 ## CAVEAT EMPTOR:
7819 ## There is no encapsulation within the following macros, do not change
7820 ## the running order or otherwise move them around unless you know exactly
7821 ## what you are doing...
7822 _LT_SYS_HIDDEN_LIBDEPS($1)
7823 _LT_COMPILER_PIC($1)
7824 _LT_COMPILER_C_O($1)
7825 _LT_COMPILER_FILE_LOCKS($1)
7826 _LT_LINKER_SHLIBS($1)
7827 _LT_SYS_DYNAMIC_LINKER($1)
7828 _LT_LINKER_HARDCODE_LIBPATH($1)
7829
7830 _LT_CONFIG($1)
7831 fi # test -n "$compiler"
7832
7833 CC=$lt_save_CC
7834 CFLAGS=$lt_save_CFLAGS
7835 LDCXX=$LD
7836 LD=$lt_save_LD
7837 GCC=$lt_save_GCC
7838 with_gnu_ld=$lt_save_with_gnu_ld
7839 lt_cv_path_LDCXX=$lt_cv_path_LD
7840 lt_cv_path_LD=$lt_save_path_LD
7841 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7842 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7843 fi # test yes != "$_lt_caught_CXX_error"
7844
7845 AC_LANG_POP
7846 ])# _LT_LANG_CXX_CONFIG
7847
7848
7849 # _LT_FUNC_STRIPNAME_CNF
7850 # ----------------------
7851 # func_stripname_cnf prefix suffix name
7852 # strip PREFIX and SUFFIX off of NAME.
7853 # PREFIX and SUFFIX must not contain globbing or regex special
7854 # characters, hashes, percent signs, but SUFFIX may contain a leading
7855 # dot (in which case that matches only a dot).
7856 #
7857 # This function is identical to the (non-XSI) version of func_stripname,
7858 # except this one can be used by m4 code that may be executed by configure,
7859 # rather than the libtool script.
7860 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7861 AC_REQUIRE([_LT_DECL_SED])
7862 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7863 func_stripname_cnf ()
7864 {
7865 case @S|@2 in
7866 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7867 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
7868 esac
7869 } # func_stripname_cnf
7870 ])# _LT_FUNC_STRIPNAME_CNF
7871
7872
7873 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7874 # ---------------------------------
7875 # Figure out "hidden" library dependencies from verbose
7876 # compiler output when linking a shared library.
7877 # Parse the compiler output and extract the necessary
7878 # objects, libraries and library flags.
7879 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7880 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7881 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7882 # Dependencies to place before and after the object being linked:
7883 _LT_TAGVAR(predep_objects, $1)=
7884 _LT_TAGVAR(postdep_objects, $1)=
7885 _LT_TAGVAR(predeps, $1)=
7886 _LT_TAGVAR(postdeps, $1)=
7887 _LT_TAGVAR(compiler_lib_search_path, $1)=
7888
7889 dnl we can't use the lt_simple_compile_test_code here,
7890 dnl because it contains code intended for an executable,
7891 dnl not a library. It's possible we should let each
7892 dnl tag define a new lt_????_link_test_code variable,
7893 dnl but it's only used here...
7894 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7895 int a;
7896 void foo (void) { a = 0; }
7897 _LT_EOF
7898 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7899 class Foo
7900 {
7901 public:
7902 Foo (void) { a = 0; }
7903 private:
7904 int a;
7905 };
7906 _LT_EOF
7907 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7908 subroutine foo
7909 implicit none
7910 integer*4 a
7911 a=0
7912 return
7913 end
7914 _LT_EOF
7915 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7916 subroutine foo
7917 implicit none
7918 integer a
7919 a=0
7920 return
7921 end
7922 _LT_EOF
7923 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7924 public class foo {
7925 private int a;
7926 public void bar (void) {
7927 a = 0;
7928 }
7929 };
7930 _LT_EOF
7931 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7932 package foo
7933 func foo() {
7934 }
7935 _LT_EOF
7936 ])
7937
7938 _lt_libdeps_save_CFLAGS=$CFLAGS
7939 case "$CC $CFLAGS " in #(
7940 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7941 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7942 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7943 esac
7944
7945 dnl Parse the compiler output and extract the necessary
7946 dnl objects, libraries and library flags.
7947 if AC_TRY_EVAL(ac_compile); then
7948 # Parse the compiler output and extract the necessary
7949 # objects, libraries and library flags.
7950
7951 # Sentinel used to keep track of whether or not we are before
7952 # the conftest object file.
7953 pre_test_object_deps_done=no
7954
7955 for p in `eval "$output_verbose_link_cmd"`; do
7956 case $prev$p in
7957
7958 -L* | -R* | -l*)
7959 # Some compilers place space between "-{L,R}" and the path.
7960 # Remove the space.
7961 if test x-L = "$p" ||
7962 test x-R = "$p"; then
7963 prev=$p
7964 continue
7965 fi
7966
7967 # Expand the sysroot to ease extracting the directories later.
7968 if test -z "$prev"; then
7969 case $p in
7970 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7971 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7972 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7973 esac
7974 fi
7975 case $p in
7976 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7977 esac
7978 if test no = "$pre_test_object_deps_done"; then
7979 case $prev in
7980 -L | -R)
7981 # Internal compiler library paths should come after those
7982 # provided the user. The postdeps already come after the
7983 # user supplied libs so there is no need to process them.
7984 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7985 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
7986 else
7987 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
7988 fi
7989 ;;
7990 # The "-l" case would never come before the object being
7991 # linked, so don't bother handling this case.
7992 esac
7993 else
7994 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7995 _LT_TAGVAR(postdeps, $1)=$prev$p
7996 else
7997 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
7998 fi
7999 fi
8000 prev=
8001 ;;
8002
8003 *.lto.$objext) ;; # Ignore GCC LTO objects
8004 *.$objext)
8005 # This assumes that the test object file only shows up
8006 # once in the compiler output.
8007 if test "$p" = "conftest.$objext"; then
8008 pre_test_object_deps_done=yes
8009 continue
8010 fi
8011
8012 if test no = "$pre_test_object_deps_done"; then
8013 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
8014 _LT_TAGVAR(predep_objects, $1)=$p
8015 else
8016 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
8017 fi
8018 else
8019 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
8020 _LT_TAGVAR(postdep_objects, $1)=$p
8021 else
8022 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
8023 fi
8024 fi
8025 ;;
8026
8027 *) ;; # Ignore the rest.
8028
8029 esac
8030 done
8031
8032 # Clean up.
8033 rm -f a.out a.exe
8034 else
8035 echo "libtool.m4: error: problem compiling $1 test program"
8036 fi
8037
8038 $RM -f confest.$objext
8039 CFLAGS=$_lt_libdeps_save_CFLAGS
8040
8041 # PORTME: override above test on systems where it is broken
8042 m4_if([$1], [CXX],
8043 [case $host_os in
8044 interix[[3-9]]*)
8045 # Interix 3.5 installs completely hosed .la files for C++, so rather than
8046 # hack all around it, let's just trust "g++" to DTRT.
8047 _LT_TAGVAR(predep_objects,$1)=
8048 _LT_TAGVAR(postdep_objects,$1)=
8049 _LT_TAGVAR(postdeps,$1)=
8050 ;;
8051 esac
8052 ])
8053
8054 case " $_LT_TAGVAR(postdeps, $1) " in
8055 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
8056 esac
8057 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
8058 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
8059 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
8060 fi
8061 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
8062 [The directories searched by this compiler when creating a shared library])
8063 _LT_TAGDECL([], [predep_objects], [1],
8064 [Dependencies to place before and after the objects being linked to
8065 create a shared library])
8066 _LT_TAGDECL([], [postdep_objects], [1])
8067 _LT_TAGDECL([], [predeps], [1])
8068 _LT_TAGDECL([], [postdeps], [1])
8069 _LT_TAGDECL([], [compiler_lib_search_path], [1],
8070 [The library search path used internally by the compiler when linking
8071 a shared library])
8072 ])# _LT_SYS_HIDDEN_LIBDEPS
8073
8074
8075 # _LT_LANG_F77_CONFIG([TAG])
8076 # --------------------------
8077 # Ensure that the configuration variables for a Fortran 77 compiler are
8078 # suitably defined. These variables are subsequently used by _LT_CONFIG
8079 # to write the compiler configuration to 'libtool'.
8080 m4_defun([_LT_LANG_F77_CONFIG],
8081 [AC_LANG_PUSH(Fortran 77)
8082 if test -z "$F77" || test no = "$F77"; then
8083 _lt_disable_F77=yes
8084 fi
8085
8086 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8087 _LT_TAGVAR(allow_undefined_flag, $1)=
8088 _LT_TAGVAR(always_export_symbols, $1)=no
8089 _LT_TAGVAR(archive_expsym_cmds, $1)=
8090 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8091 _LT_TAGVAR(hardcode_direct, $1)=no
8092 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8093 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8094 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8095 _LT_TAGVAR(hardcode_minus_L, $1)=no
8096 _LT_TAGVAR(hardcode_automatic, $1)=no
8097 _LT_TAGVAR(inherit_rpath, $1)=no
8098 _LT_TAGVAR(module_cmds, $1)=
8099 _LT_TAGVAR(module_expsym_cmds, $1)=
8100 _LT_TAGVAR(link_all_deplibs, $1)=unknown
8101 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8102 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8103 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8104 _LT_TAGVAR(no_undefined_flag, $1)=
8105 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8106 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8107
8108 # Source file extension for f77 test sources.
8109 ac_ext=f
8110
8111 # Object file extension for compiled f77 test sources.
8112 objext=o
8113 _LT_TAGVAR(objext, $1)=$objext
8114
8115 # No sense in running all these tests if we already determined that
8116 # the F77 compiler isn't working. Some variables (like enable_shared)
8117 # are currently assumed to apply to all compilers on this platform,
8118 # and will be corrupted by setting them based on a non-working compiler.
8119 if test yes != "$_lt_disable_F77"; then
8120 # Code to be used in simple compile tests
8121 lt_simple_compile_test_code="\
8122 subroutine t
8123 return
8124 end
8125 "
8126
8127 # Code to be used in simple link tests
8128 lt_simple_link_test_code="\
8129 program t
8130 end
8131 "
8132
8133 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8134 _LT_TAG_COMPILER
8135
8136 # save warnings/boilerplate of simple test code
8137 _LT_COMPILER_BOILERPLATE
8138 _LT_LINKER_BOILERPLATE
8139
8140 # Allow CC to be a program name with arguments.
8141 lt_save_CC=$CC
8142 lt_save_GCC=$GCC
8143 lt_save_CFLAGS=$CFLAGS
8144 CC=${F77-"f77"}
8145 CFLAGS=$FFLAGS
8146 compiler=$CC
8147 _LT_TAGVAR(compiler, $1)=$CC
8148 _LT_CC_BASENAME([$compiler])
8149 GCC=$G77
8150 if test -n "$compiler"; then
8151 AC_MSG_CHECKING([if libtool supports shared libraries])
8152 AC_MSG_RESULT([$can_build_shared])
8153
8154 AC_MSG_CHECKING([whether to build shared libraries])
8155 test no = "$can_build_shared" && enable_shared=no
8156
8157 # On AIX, shared libraries and static libraries use the same namespace, and
8158 # are all built from PIC.
8159 case $host_os in
8160 aix3*)
8161 test yes = "$enable_shared" && enable_static=no
8162 if test -n "$RANLIB"; then
8163 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8164 postinstall_cmds='$RANLIB $lib'
8165 fi
8166 ;;
8167 aix[[4-9]]*)
8168 if test ia64 != "$host_cpu"; then
8169 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
8170 yes,aix,yes) ;; # shared object as lib.so file only
8171 yes,svr4,*) ;; # shared object as lib.so archive member only
8172 yes,*) enable_static=no ;; # shared object in lib.a archive as well
8173 esac
8174 fi
8175 ;;
8176 esac
8177 AC_MSG_RESULT([$enable_shared])
8178
8179 AC_MSG_CHECKING([whether to build static libraries])
8180 # Make sure either enable_shared or enable_static is yes.
8181 test yes = "$enable_shared" || enable_static=yes
8182 AC_MSG_RESULT([$enable_static])
8183
8184 _LT_TAGVAR(GCC, $1)=$G77
8185 _LT_TAGVAR(LD, $1)=$LD
8186
8187 ## CAVEAT EMPTOR:
8188 ## There is no encapsulation within the following macros, do not change
8189 ## the running order or otherwise move them around unless you know exactly
8190 ## what you are doing...
8191 _LT_COMPILER_PIC($1)
8192 _LT_COMPILER_C_O($1)
8193 _LT_COMPILER_FILE_LOCKS($1)
8194 _LT_LINKER_SHLIBS($1)
8195 _LT_SYS_DYNAMIC_LINKER($1)
8196 _LT_LINKER_HARDCODE_LIBPATH($1)
8197
8198 _LT_CONFIG($1)
8199 fi # test -n "$compiler"
8200
8201 GCC=$lt_save_GCC
8202 CC=$lt_save_CC
8203 CFLAGS=$lt_save_CFLAGS
8204 fi # test yes != "$_lt_disable_F77"
8205
8206 AC_LANG_POP
8207 ])# _LT_LANG_F77_CONFIG
8208
8209
8210 # _LT_LANG_FC_CONFIG([TAG])
8211 # -------------------------
8212 # Ensure that the configuration variables for a Fortran compiler are
8213 # suitably defined. These variables are subsequently used by _LT_CONFIG
8214 # to write the compiler configuration to 'libtool'.
8215 m4_defun([_LT_LANG_FC_CONFIG],
8216 [AC_LANG_PUSH(Fortran)
8217
8218 if test -z "$FC" || test no = "$FC"; then
8219 _lt_disable_FC=yes
8220 fi
8221
8222 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8223 _LT_TAGVAR(allow_undefined_flag, $1)=
8224 _LT_TAGVAR(always_export_symbols, $1)=no
8225 _LT_TAGVAR(archive_expsym_cmds, $1)=
8226 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8227 _LT_TAGVAR(hardcode_direct, $1)=no
8228 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8229 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8230 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8231 _LT_TAGVAR(hardcode_minus_L, $1)=no
8232 _LT_TAGVAR(hardcode_automatic, $1)=no
8233 _LT_TAGVAR(inherit_rpath, $1)=no
8234 _LT_TAGVAR(module_cmds, $1)=
8235 _LT_TAGVAR(module_expsym_cmds, $1)=
8236 _LT_TAGVAR(link_all_deplibs, $1)=unknown
8237 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8238 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8239 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8240 _LT_TAGVAR(no_undefined_flag, $1)=
8241 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8242 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8243
8244 # Source file extension for fc test sources.
8245 ac_ext=${ac_fc_srcext-f}
8246
8247 # Object file extension for compiled fc test sources.
8248 objext=o
8249 _LT_TAGVAR(objext, $1)=$objext
8250
8251 # No sense in running all these tests if we already determined that
8252 # the FC compiler isn't working. Some variables (like enable_shared)
8253 # are currently assumed to apply to all compilers on this platform,
8254 # and will be corrupted by setting them based on a non-working compiler.
8255 if test yes != "$_lt_disable_FC"; then
8256 # Code to be used in simple compile tests
8257 lt_simple_compile_test_code="\
8258 subroutine t
8259 return
8260 end
8261 "
8262
8263 # Code to be used in simple link tests
8264 lt_simple_link_test_code="\
8265 program t
8266 end
8267 "
8268
8269 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8270 _LT_TAG_COMPILER
8271
8272 # save warnings/boilerplate of simple test code
8273 _LT_COMPILER_BOILERPLATE
8274 _LT_LINKER_BOILERPLATE
8275
8276 # Allow CC to be a program name with arguments.
8277 lt_save_CC=$CC
8278 lt_save_GCC=$GCC
8279 lt_save_CFLAGS=$CFLAGS
8280 CC=${FC-"f95"}
8281 CFLAGS=$FCFLAGS
8282 compiler=$CC
8283 GCC=$ac_cv_fc_compiler_gnu
8284
8285 _LT_TAGVAR(compiler, $1)=$CC
8286 _LT_CC_BASENAME([$compiler])
8287
8288 if test -n "$compiler"; then
8289 AC_MSG_CHECKING([if libtool supports shared libraries])
8290 AC_MSG_RESULT([$can_build_shared])
8291
8292 AC_MSG_CHECKING([whether to build shared libraries])
8293 test no = "$can_build_shared" && enable_shared=no
8294
8295 # On AIX, shared libraries and static libraries use the same namespace, and
8296 # are all built from PIC.
8297 case $host_os in
8298 aix3*)
8299 test yes = "$enable_shared" && enable_static=no
8300 if test -n "$RANLIB"; then
8301 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8302 postinstall_cmds='$RANLIB $lib'
8303 fi
8304 ;;
8305 aix[[4-9]]*)
8306 if test ia64 != "$host_cpu"; then
8307 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
8308 yes,aix,yes) ;; # shared object as lib.so file only
8309 yes,svr4,*) ;; # shared object as lib.so archive member only
8310 yes,*) enable_static=no ;; # shared object in lib.a archive as well
8311 esac
8312 fi
8313 ;;
8314 esac
8315 AC_MSG_RESULT([$enable_shared])
8316
8317 AC_MSG_CHECKING([whether to build static libraries])
8318 # Make sure either enable_shared or enable_static is yes.
8319 test yes = "$enable_shared" || enable_static=yes
8320 AC_MSG_RESULT([$enable_static])
8321
8322 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
8323 _LT_TAGVAR(LD, $1)=$LD
8324
8325 ## CAVEAT EMPTOR:
8326 ## There is no encapsulation within the following macros, do not change
8327 ## the running order or otherwise move them around unless you know exactly
8328 ## what you are doing...
8329 _LT_SYS_HIDDEN_LIBDEPS($1)
8330 _LT_COMPILER_PIC($1)
8331 _LT_COMPILER_C_O($1)
8332 _LT_COMPILER_FILE_LOCKS($1)
8333 _LT_LINKER_SHLIBS($1)
8334 _LT_SYS_DYNAMIC_LINKER($1)
8335 _LT_LINKER_HARDCODE_LIBPATH($1)
8336
8337 _LT_CONFIG($1)
8338 fi # test -n "$compiler"
8339
8340 GCC=$lt_save_GCC
8341 CC=$lt_save_CC
8342 CFLAGS=$lt_save_CFLAGS
8343 fi # test yes != "$_lt_disable_FC"
8344
8345 AC_LANG_POP
8346 ])# _LT_LANG_FC_CONFIG
8347
8348
8349 # _LT_LANG_GCJ_CONFIG([TAG])
8350 # --------------------------
8351 # Ensure that the configuration variables for the GNU Java Compiler compiler
8352 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8353 # to write the compiler configuration to 'libtool'.
8354 m4_defun([_LT_LANG_GCJ_CONFIG],
8355 [AC_REQUIRE([LT_PROG_GCJ])dnl
8356 AC_LANG_SAVE
8357
8358 # Source file extension for Java test sources.
8359 ac_ext=java
8360
8361 # Object file extension for compiled Java test sources.
8362 objext=o
8363 _LT_TAGVAR(objext, $1)=$objext
8364
8365 # Code to be used in simple compile tests
8366 lt_simple_compile_test_code="class foo {}"
8367
8368 # Code to be used in simple link tests
8369 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
8370
8371 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8372 _LT_TAG_COMPILER
8373
8374 # save warnings/boilerplate of simple test code
8375 _LT_COMPILER_BOILERPLATE
8376 _LT_LINKER_BOILERPLATE
8377
8378 # Allow CC to be a program name with arguments.
8379 lt_save_CC=$CC
8380 lt_save_CFLAGS=$CFLAGS
8381 lt_save_GCC=$GCC
8382 GCC=yes
8383 CC=${GCJ-"gcj"}
8384 CFLAGS=$GCJFLAGS
8385 compiler=$CC
8386 _LT_TAGVAR(compiler, $1)=$CC
8387 _LT_TAGVAR(LD, $1)=$LD
8388 _LT_CC_BASENAME([$compiler])
8389
8390 # GCJ did not exist at the time GCC didn't implicitly link libc in.
8391 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8392
8393 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8394 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8395 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8396
8397 if test -n "$compiler"; then
8398 _LT_COMPILER_NO_RTTI($1)
8399 _LT_COMPILER_PIC($1)
8400 _LT_COMPILER_C_O($1)
8401 _LT_COMPILER_FILE_LOCKS($1)
8402 _LT_LINKER_SHLIBS($1)
8403 _LT_LINKER_HARDCODE_LIBPATH($1)
8404
8405 _LT_CONFIG($1)
8406 fi
8407
8408 AC_LANG_RESTORE
8409
8410 GCC=$lt_save_GCC
8411 CC=$lt_save_CC
8412 CFLAGS=$lt_save_CFLAGS
8413 ])# _LT_LANG_GCJ_CONFIG
8414
8415
8416 # _LT_LANG_GO_CONFIG([TAG])
8417 # --------------------------
8418 # Ensure that the configuration variables for the GNU Go compiler
8419 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8420 # to write the compiler configuration to 'libtool'.
8421 m4_defun([_LT_LANG_GO_CONFIG],
8422 [AC_REQUIRE([LT_PROG_GO])dnl
8423 AC_LANG_SAVE
8424
8425 # Source file extension for Go test sources.
8426 ac_ext=go
8427
8428 # Object file extension for compiled Go test sources.
8429 objext=o
8430 _LT_TAGVAR(objext, $1)=$objext
8431
8432 # Code to be used in simple compile tests
8433 lt_simple_compile_test_code="package main; func main() { }"
8434
8435 # Code to be used in simple link tests
8436 lt_simple_link_test_code='package main; func main() { }'
8437
8438 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8439 _LT_TAG_COMPILER
8440
8441 # save warnings/boilerplate of simple test code
8442 _LT_COMPILER_BOILERPLATE
8443 _LT_LINKER_BOILERPLATE
8444
8445 # Allow CC to be a program name with arguments.
8446 lt_save_CC=$CC
8447 lt_save_CFLAGS=$CFLAGS
8448 lt_save_GCC=$GCC
8449 GCC=yes
8450 CC=${GOC-"gccgo"}
8451 CFLAGS=$GOFLAGS
8452 compiler=$CC
8453 _LT_TAGVAR(compiler, $1)=$CC
8454 _LT_TAGVAR(LD, $1)=$LD
8455 _LT_CC_BASENAME([$compiler])
8456
8457 # Go did not exist at the time GCC didn't implicitly link libc in.
8458 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8459
8460 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8461 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8462 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8463
8464 if test -n "$compiler"; then
8465 _LT_COMPILER_NO_RTTI($1)
8466 _LT_COMPILER_PIC($1)
8467 _LT_COMPILER_C_O($1)
8468 _LT_COMPILER_FILE_LOCKS($1)
8469 _LT_LINKER_SHLIBS($1)
8470 _LT_LINKER_HARDCODE_LIBPATH($1)
8471
8472 _LT_CONFIG($1)
8473 fi
8474
8475 AC_LANG_RESTORE
8476
8477 GCC=$lt_save_GCC
8478 CC=$lt_save_CC
8479 CFLAGS=$lt_save_CFLAGS
8480 ])# _LT_LANG_GO_CONFIG
8481
8482
8483 # _LT_LANG_RC_CONFIG([TAG])
8484 # -------------------------
8485 # Ensure that the configuration variables for the Windows resource compiler
8486 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8487 # to write the compiler configuration to 'libtool'.
8488 m4_defun([_LT_LANG_RC_CONFIG],
8489 [AC_REQUIRE([LT_PROG_RC])dnl
8490 AC_LANG_SAVE
8491
8492 # Source file extension for RC test sources.
8493 ac_ext=rc
8494
8495 # Object file extension for compiled RC test sources.
8496 objext=o
8497 _LT_TAGVAR(objext, $1)=$objext
8498
8499 # Code to be used in simple compile tests
8500 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8501
8502 # Code to be used in simple link tests
8503 lt_simple_link_test_code=$lt_simple_compile_test_code
8504
8505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8506 _LT_TAG_COMPILER
8507
8508 # save warnings/boilerplate of simple test code
8509 _LT_COMPILER_BOILERPLATE
8510 _LT_LINKER_BOILERPLATE
8511
8512 # Allow CC to be a program name with arguments.
8513 lt_save_CC=$CC
8514 lt_save_CFLAGS=$CFLAGS
8515 lt_save_GCC=$GCC
8516 GCC=
8517 CC=${RC-"windres"}
8518 CFLAGS=
8519 compiler=$CC
8520 _LT_TAGVAR(compiler, $1)=$CC
8521 _LT_CC_BASENAME([$compiler])
8522 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8523
8524 if test -n "$compiler"; then
8525 :
8526 _LT_CONFIG($1)
8527 fi
8528
8529 GCC=$lt_save_GCC
8530 AC_LANG_RESTORE
8531 CC=$lt_save_CC
8532 CFLAGS=$lt_save_CFLAGS
8533 ])# _LT_LANG_RC_CONFIG
8534
8535
8536 # LT_PROG_GCJ
8537 # -----------
8538 AC_DEFUN([LT_PROG_GCJ],
8539 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8540 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8541 [AC_CHECK_TOOL(GCJ, gcj,)
8542 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8543 AC_SUBST(GCJFLAGS)])])[]dnl
8544 ])
8545
8546 # Old name:
8547 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8548 dnl aclocal-1.4 backwards compatibility:
8549 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8550
8551
8552 # LT_PROG_GO
8553 # ----------
8554 AC_DEFUN([LT_PROG_GO],
8555 [AC_CHECK_TOOL(GOC, gccgo,)
8556 ])
8557
8558
8559 # LT_PROG_RC
8560 # ----------
8561 AC_DEFUN([LT_PROG_RC],
8562 [AC_CHECK_TOOL(RC, windres,)
8563 ])
8564
8565 # Old name:
8566 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8567 dnl aclocal-1.4 backwards compatibility:
8568 dnl AC_DEFUN([LT_AC_PROG_RC], [])
8569
8570
8571 # _LT_DECL_EGREP
8572 # --------------
8573 # If we don't have a new enough Autoconf to choose the best grep
8574 # available, choose the one first in the user's PATH.
8575 m4_defun([_LT_DECL_EGREP],
8576 [AC_REQUIRE([AC_PROG_EGREP])dnl
8577 AC_REQUIRE([AC_PROG_FGREP])dnl
8578 test -z "$GREP" && GREP=grep
8579 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8580 _LT_DECL([], [EGREP], [1], [An ERE matcher])
8581 _LT_DECL([], [FGREP], [1], [A literal string matcher])
8582 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8583 AC_SUBST([GREP])
8584 ])
8585
8586
8587 # _LT_DECL_OBJDUMP
8588 # --------------
8589 # If we don't have a new enough Autoconf to choose the best objdump
8590 # available, choose the one first in the user's PATH.
8591 m4_defun([_LT_DECL_OBJDUMP],
8592 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
8593 test -z "$OBJDUMP" && OBJDUMP=objdump
8594 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8595 AC_SUBST([OBJDUMP])
8596 ])
8597
8598 # _LT_DECL_DLLTOOL
8599 # ----------------
8600 # Ensure DLLTOOL variable is set.
8601 m4_defun([_LT_DECL_DLLTOOL],
8602 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8603 test -z "$DLLTOOL" && DLLTOOL=dlltool
8604 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
8605 AC_SUBST([DLLTOOL])
8606 ])
8607
8608 # _LT_DECL_SED
8609 # ------------
8610 # Check for a fully-functional sed program, that truncates
8611 # as few characters as possible. Prefer GNU sed if found.
8612 m4_defun([_LT_DECL_SED],
8613 [AC_PROG_SED
8614 test -z "$SED" && SED=sed
8615 Xsed="$SED -e 1s/^X//"
8616 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8617 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8618 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8619 ])# _LT_DECL_SED
8620
8621 m4_ifndef([AC_PROG_SED], [
8622 # NOTE: This macro has been submitted for inclusion into #
8623 # GNU Autoconf as AC_PROG_SED. When it is available in #
8624 # a released version of Autoconf we should remove this #
8625 # macro and use it instead. #
8626
8627 m4_defun([AC_PROG_SED],
8628 [AC_MSG_CHECKING([for a sed that does not truncate output])
8629 AC_CACHE_VAL(lt_cv_path_SED,
8630 [# Loop through the user's path and test for sed and gsed.
8631 # Then use that list of sed's as ones to test for truncation.
8632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 for as_dir in $PATH
8634 do
8635 IFS=$as_save_IFS
8636 test -z "$as_dir" && as_dir=.
8637 for lt_ac_prog in sed gsed; do
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8640 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8641 fi
8642 done
8643 done
8644 done
8645 IFS=$as_save_IFS
8646 lt_ac_max=0
8647 lt_ac_count=0
8648 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8649 # along with /bin/sed that truncates output.
8650 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8651 test ! -f "$lt_ac_sed" && continue
8652 cat /dev/null > conftest.in
8653 lt_ac_count=0
8654 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8655 # Check for GNU sed and select it if it is found.
8656 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8657 lt_cv_path_SED=$lt_ac_sed
8658 break
8659 fi
8660 while true; do
8661 cat conftest.in conftest.in >conftest.tmp
8662 mv conftest.tmp conftest.in
8663 cp conftest.in conftest.nl
8664 echo >>conftest.nl
8665 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8666 cmp -s conftest.out conftest.nl || break
8667 # 10000 chars as input seems more than enough
8668 test 10 -lt "$lt_ac_count" && break
8669 lt_ac_count=`expr $lt_ac_count + 1`
8670 if test "$lt_ac_count" -gt "$lt_ac_max"; then
8671 lt_ac_max=$lt_ac_count
8672 lt_cv_path_SED=$lt_ac_sed
8673 fi
8674 done
8675 done
8676 ])
8677 SED=$lt_cv_path_SED
8678 AC_SUBST([SED])
8679 AC_MSG_RESULT([$SED])
8680 ])#AC_PROG_SED
8681 ])#m4_ifndef
8682
8683 # Old name:
8684 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8685 dnl aclocal-1.4 backwards compatibility:
8686 dnl AC_DEFUN([LT_AC_PROG_SED], [])
8687
8688
8689 # _LT_CHECK_SHELL_FEATURES
8690 # ------------------------
8691 # Find out whether the shell is Bourne or XSI compatible,
8692 # or has some other useful features.
8693 m4_defun([_LT_CHECK_SHELL_FEATURES],
8694 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8695 lt_unset=unset
8696 else
8697 lt_unset=false
8698 fi
8699 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8700
8701 # test EBCDIC or ASCII
8702 case `echo X|tr X '\101'` in
8703 A) # ASCII based system
8704 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8705 lt_SP2NL='tr \040 \012'
8706 lt_NL2SP='tr \015\012 \040\040'
8707 ;;
8708 *) # EBCDIC based system
8709 lt_SP2NL='tr \100 \n'
8710 lt_NL2SP='tr \r\n \100\100'
8711 ;;
8712 esac
8713 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8714 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8715 ])# _LT_CHECK_SHELL_FEATURES
8716
8717
8718 # _LT_PATH_CONVERSION_FUNCTIONS
8719 # -----------------------------
8720 # Determine what file name conversion functions should be used by
8721 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8722 # for certain cross-compile configurations and native mingw.
8723 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8724 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8725 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8726 AC_MSG_CHECKING([how to convert $build file names to $host format])
8727 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8728 [case $host in
8729 *-*-mingw* )
8730 case $build in
8731 *-*-mingw* ) # actually msys
8732 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8733 ;;
8734 *-*-cygwin* )
8735 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8736 ;;
8737 * ) # otherwise, assume *nix
8738 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8739 ;;
8740 esac
8741 ;;
8742 *-*-cygwin* )
8743 case $build in
8744 *-*-mingw* ) # actually msys
8745 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8746 ;;
8747 *-*-cygwin* )
8748 lt_cv_to_host_file_cmd=func_convert_file_noop
8749 ;;
8750 * ) # otherwise, assume *nix
8751 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8752 ;;
8753 esac
8754 ;;
8755 * ) # unhandled hosts (and "normal" native builds)
8756 lt_cv_to_host_file_cmd=func_convert_file_noop
8757 ;;
8758 esac
8759 ])
8760 to_host_file_cmd=$lt_cv_to_host_file_cmd
8761 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8762 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8763 [0], [convert $build file names to $host format])dnl
8764
8765 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8766 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8767 [#assume ordinary cross tools, or native build.
8768 lt_cv_to_tool_file_cmd=func_convert_file_noop
8769 case $host in
8770 *-*-mingw* )
8771 case $build in
8772 *-*-mingw* ) # actually msys
8773 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8774 ;;
8775 esac
8776 ;;
8777 esac
8778 ])
8779 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8780 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8781 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8782 [0], [convert $build files to toolchain format])dnl
8783 ])# _LT_PATH_CONVERSION_FUNCTIONS
8784
8785 # Helper functions for option handling. -*- Autoconf -*-
8786 #
8787 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
8788 # Foundation, Inc.
8789 # Written by Gary V. Vaughan, 2004
8790 #
8791 # This file is free software; the Free Software Foundation gives
8792 # unlimited permission to copy and/or distribute it, with or without
8793 # modifications, as long as this notice is preserved.
8794
8795 # serial 8 ltoptions.m4
8796
8797 # This is to help aclocal find these macros, as it can't see m4_define.
8798 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8799
8800
8801 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8802 # ------------------------------------------
8803 m4_define([_LT_MANGLE_OPTION],
8804 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8805
8806
8807 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8808 # ---------------------------------------
8809 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8810 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
8811 # saved as a flag.
8812 m4_define([_LT_SET_OPTION],
8813 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8814 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8815 _LT_MANGLE_DEFUN([$1], [$2]),
8816 [m4_warning([Unknown $1 option '$2'])])[]dnl
8817 ])
8818
8819
8820 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8821 # ------------------------------------------------------------
8822 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8823 m4_define([_LT_IF_OPTION],
8824 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8825
8826
8827 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8828 # -------------------------------------------------------
8829 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8830 # are set.
8831 m4_define([_LT_UNLESS_OPTIONS],
8832 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8833 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8834 [m4_define([$0_found])])])[]dnl
8835 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8836 ])[]dnl
8837 ])
8838
8839
8840 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8841 # ----------------------------------------
8842 # OPTION-LIST is a space-separated list of Libtool options associated
8843 # with MACRO-NAME. If any OPTION has a matching handler declared with
8844 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8845 # the unknown option and exit.
8846 m4_defun([_LT_SET_OPTIONS],
8847 [# Set options
8848 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8849 [_LT_SET_OPTION([$1], _LT_Option)])
8850
8851 m4_if([$1],[LT_INIT],[
8852 dnl
8853 dnl Simply set some default values (i.e off) if boolean options were not
8854 dnl specified:
8855 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8856 ])
8857 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8858 ])
8859 dnl
8860 dnl If no reference was made to various pairs of opposing options, then
8861 dnl we run the default mode handler for the pair. For example, if neither
8862 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
8863 dnl archives by default:
8864 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8865 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8866 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8867 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8868 [_LT_ENABLE_FAST_INSTALL])
8869 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
8870 [_LT_WITH_AIX_SONAME([aix])])
8871 ])
8872 ])# _LT_SET_OPTIONS
8873
8874
8875
8876 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8877 # -----------------------------------------
8878 m4_define([_LT_MANGLE_DEFUN],
8879 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8880
8881
8882 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8883 # -----------------------------------------------
8884 m4_define([LT_OPTION_DEFINE],
8885 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8886 ])# LT_OPTION_DEFINE
8887
8888
8889 # dlopen
8890 # ------
8891 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8892 ])
8893
8894 AU_DEFUN([AC_LIBTOOL_DLOPEN],
8895 [_LT_SET_OPTION([LT_INIT], [dlopen])
8896 AC_DIAGNOSE([obsolete],
8897 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8898 put the 'dlopen' option into LT_INIT's first parameter.])
8899 ])
8900
8901 dnl aclocal-1.4 backwards compatibility:
8902 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8903
8904
8905 # win32-dll
8906 # ---------
8907 # Declare package support for building win32 dll's.
8908 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8909 [enable_win32_dll=yes
8910
8911 case $host in
8912 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8913 AC_CHECK_TOOL(AS, as, false)
8914 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8915 AC_CHECK_TOOL(OBJDUMP, objdump, false)
8916 ;;
8917 esac
8918
8919 test -z "$AS" && AS=as
8920 _LT_DECL([], [AS], [1], [Assembler program])dnl
8921
8922 test -z "$DLLTOOL" && DLLTOOL=dlltool
8923 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8924
8925 test -z "$OBJDUMP" && OBJDUMP=objdump
8926 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8927 ])# win32-dll
8928
8929 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8930 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8931 _LT_SET_OPTION([LT_INIT], [win32-dll])
8932 AC_DIAGNOSE([obsolete],
8933 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8934 put the 'win32-dll' option into LT_INIT's first parameter.])
8935 ])
8936
8937 dnl aclocal-1.4 backwards compatibility:
8938 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8939
8940
8941 # _LT_ENABLE_SHARED([DEFAULT])
8942 # ----------------------------
8943 # implement the --enable-shared flag, and supports the 'shared' and
8944 # 'disable-shared' LT_INIT options.
8945 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
8946 m4_define([_LT_ENABLE_SHARED],
8947 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8948 AC_ARG_ENABLE([shared],
8949 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8950 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8951 [p=${PACKAGE-default}
8952 case $enableval in
8953 yes) enable_shared=yes ;;
8954 no) enable_shared=no ;;
8955 *)
8956 enable_shared=no
8957 # Look at the argument we got. We use all the common list separators.
8958 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8959 for pkg in $enableval; do
8960 IFS=$lt_save_ifs
8961 if test "X$pkg" = "X$p"; then
8962 enable_shared=yes
8963 fi
8964 done
8965 IFS=$lt_save_ifs
8966 ;;
8967 esac],
8968 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8969
8970 _LT_DECL([build_libtool_libs], [enable_shared], [0],
8971 [Whether or not to build shared libraries])
8972 ])# _LT_ENABLE_SHARED
8973
8974 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8975 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8976
8977 # Old names:
8978 AC_DEFUN([AC_ENABLE_SHARED],
8979 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8980 ])
8981
8982 AC_DEFUN([AC_DISABLE_SHARED],
8983 [_LT_SET_OPTION([LT_INIT], [disable-shared])
8984 ])
8985
8986 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8987 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8988
8989 dnl aclocal-1.4 backwards compatibility:
8990 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8991 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8992
8993
8994
8995 # _LT_ENABLE_STATIC([DEFAULT])
8996 # ----------------------------
8997 # implement the --enable-static flag, and support the 'static' and
8998 # 'disable-static' LT_INIT options.
8999 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
9000 m4_define([_LT_ENABLE_STATIC],
9001 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
9002 AC_ARG_ENABLE([static],
9003 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
9004 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
9005 [p=${PACKAGE-default}
9006 case $enableval in
9007 yes) enable_static=yes ;;
9008 no) enable_static=no ;;
9009 *)
9010 enable_static=no
9011 # Look at the argument we got. We use all the common list separators.
9012 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9013 for pkg in $enableval; do
9014 IFS=$lt_save_ifs
9015 if test "X$pkg" = "X$p"; then
9016 enable_static=yes
9017 fi
9018 done
9019 IFS=$lt_save_ifs
9020 ;;
9021 esac],
9022 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
9023
9024 _LT_DECL([build_old_libs], [enable_static], [0],
9025 [Whether or not to build static libraries])
9026 ])# _LT_ENABLE_STATIC
9027
9028 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
9029 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
9030
9031 # Old names:
9032 AC_DEFUN([AC_ENABLE_STATIC],
9033 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
9034 ])
9035
9036 AC_DEFUN([AC_DISABLE_STATIC],
9037 [_LT_SET_OPTION([LT_INIT], [disable-static])
9038 ])
9039
9040 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
9041 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
9042
9043 dnl aclocal-1.4 backwards compatibility:
9044 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
9045 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
9046
9047
9048
9049 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
9050 # ----------------------------------
9051 # implement the --enable-fast-install flag, and support the 'fast-install'
9052 # and 'disable-fast-install' LT_INIT options.
9053 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
9054 m4_define([_LT_ENABLE_FAST_INSTALL],
9055 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
9056 AC_ARG_ENABLE([fast-install],
9057 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
9058 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
9059 [p=${PACKAGE-default}
9060 case $enableval in
9061 yes) enable_fast_install=yes ;;
9062 no) enable_fast_install=no ;;
9063 *)
9064 enable_fast_install=no
9065 # Look at the argument we got. We use all the common list separators.
9066 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9067 for pkg in $enableval; do
9068 IFS=$lt_save_ifs
9069 if test "X$pkg" = "X$p"; then
9070 enable_fast_install=yes
9071 fi
9072 done
9073 IFS=$lt_save_ifs
9074 ;;
9075 esac],
9076 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
9077
9078 _LT_DECL([fast_install], [enable_fast_install], [0],
9079 [Whether or not to optimize for fast installation])dnl
9080 ])# _LT_ENABLE_FAST_INSTALL
9081
9082 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
9083 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
9084
9085 # Old names:
9086 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
9087 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
9088 AC_DIAGNOSE([obsolete],
9089 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
9090 the 'fast-install' option into LT_INIT's first parameter.])
9091 ])
9092
9093 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
9094 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
9095 AC_DIAGNOSE([obsolete],
9096 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
9097 the 'disable-fast-install' option into LT_INIT's first parameter.])
9098 ])
9099
9100 dnl aclocal-1.4 backwards compatibility:
9101 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
9102 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
9103
9104
9105 # _LT_WITH_AIX_SONAME([DEFAULT])
9106 # ----------------------------------
9107 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
9108 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
9109 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
9110 m4_define([_LT_WITH_AIX_SONAME],
9111 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
9112 shared_archive_member_spec=
9113 case $host,$enable_shared in
9114 power*-*-aix[[5-9]]*,yes)
9115 AC_MSG_CHECKING([which variant of shared library versioning to provide])
9116 AC_ARG_WITH([aix-soname],
9117 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
9118 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
9119 [case $withval in
9120 aix|svr4|both)
9121 ;;
9122 *)
9123 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
9124 ;;
9125 esac
9126 lt_cv_with_aix_soname=$with_aix_soname],
9127 [AC_CACHE_VAL([lt_cv_with_aix_soname],
9128 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
9129 with_aix_soname=$lt_cv_with_aix_soname])
9130 AC_MSG_RESULT([$with_aix_soname])
9131 if test aix != "$with_aix_soname"; then
9132 # For the AIX way of multilib, we name the shared archive member
9133 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9134 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9135 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9136 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9137 if test 64 = "${OBJECT_MODE-32}"; then
9138 shared_archive_member_spec=shr_64
9139 else
9140 shared_archive_member_spec=shr
9141 fi
9142 fi
9143 ;;
9144 *)
9145 with_aix_soname=aix
9146 ;;
9147 esac
9148
9149 _LT_DECL([], [shared_archive_member_spec], [0],
9150 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
9151 ])# _LT_WITH_AIX_SONAME
9152
9153 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
9154 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
9155 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
9156
9157
9158 # _LT_WITH_PIC([MODE])
9159 # --------------------
9160 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
9161 # LT_INIT options.
9162 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
9163 m4_define([_LT_WITH_PIC],
9164 [AC_ARG_WITH([pic],
9165 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
9166 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9167 [lt_p=${PACKAGE-default}
9168 case $withval in
9169 yes|no) pic_mode=$withval ;;
9170 *)
9171 pic_mode=default
9172 # Look at the argument we got. We use all the common list separators.
9173 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9174 for lt_pkg in $withval; do
9175 IFS=$lt_save_ifs
9176 if test "X$lt_pkg" = "X$lt_p"; then
9177 pic_mode=yes
9178 fi
9179 done
9180 IFS=$lt_save_ifs
9181 ;;
9182 esac],
9183 [pic_mode=m4_default([$1], [default])])
9184
9185 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
9186 ])# _LT_WITH_PIC
9187
9188 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
9189 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
9190
9191 # Old name:
9192 AU_DEFUN([AC_LIBTOOL_PICMODE],
9193 [_LT_SET_OPTION([LT_INIT], [pic-only])
9194 AC_DIAGNOSE([obsolete],
9195 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9196 put the 'pic-only' option into LT_INIT's first parameter.])
9197 ])
9198
9199 dnl aclocal-1.4 backwards compatibility:
9200 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
9201
9202
9203 m4_define([_LTDL_MODE], [])
9204 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
9205 [m4_define([_LTDL_MODE], [nonrecursive])])
9206 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
9207 [m4_define([_LTDL_MODE], [recursive])])
9208 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
9209 [m4_define([_LTDL_MODE], [subproject])])
9210
9211 m4_define([_LTDL_TYPE], [])
9212 LT_OPTION_DEFINE([LTDL_INIT], [installable],
9213 [m4_define([_LTDL_TYPE], [installable])])
9214 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
9215 [m4_define([_LTDL_TYPE], [convenience])])
9216
9217 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
9218 #
9219 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
9220 # Foundation, Inc.
9221 # Written by Gary V. Vaughan, 2004
9222 #
9223 # This file is free software; the Free Software Foundation gives
9224 # unlimited permission to copy and/or distribute it, with or without
9225 # modifications, as long as this notice is preserved.
9226
9227 # serial 6 ltsugar.m4
9228
9229 # This is to help aclocal find these macros, as it can't see m4_define.
9230 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
9231
9232
9233 # lt_join(SEP, ARG1, [ARG2...])
9234 # -----------------------------
9235 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
9236 # associated separator.
9237 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
9238 # versions in m4sugar had bugs.
9239 m4_define([lt_join],
9240 [m4_if([$#], [1], [],
9241 [$#], [2], [[$2]],
9242 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
9243 m4_define([_lt_join],
9244 [m4_if([$#$2], [2], [],
9245 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
9246
9247
9248 # lt_car(LIST)
9249 # lt_cdr(LIST)
9250 # ------------
9251 # Manipulate m4 lists.
9252 # These macros are necessary as long as will still need to support
9253 # Autoconf-2.59, which quotes differently.
9254 m4_define([lt_car], [[$1]])
9255 m4_define([lt_cdr],
9256 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
9257 [$#], 1, [],
9258 [m4_dquote(m4_shift($@))])])
9259 m4_define([lt_unquote], $1)
9260
9261
9262 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
9263 # ------------------------------------------
9264 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
9265 # Note that neither SEPARATOR nor STRING are expanded; they are appended
9266 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
9267 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
9268 # than defined and empty).
9269 #
9270 # This macro is needed until we can rely on Autoconf 2.62, since earlier
9271 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
9272 m4_define([lt_append],
9273 [m4_define([$1],
9274 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
9275
9276
9277
9278 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
9279 # ----------------------------------------------------------
9280 # Produce a SEP delimited list of all paired combinations of elements of
9281 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
9282 # has the form PREFIXmINFIXSUFFIXn.
9283 # Needed until we can rely on m4_combine added in Autoconf 2.62.
9284 m4_define([lt_combine],
9285 [m4_if(m4_eval([$# > 3]), [1],
9286 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
9287 [[m4_foreach([_Lt_prefix], [$2],
9288 [m4_foreach([_Lt_suffix],
9289 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
9290 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
9291
9292
9293 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
9294 # -----------------------------------------------------------------------
9295 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
9296 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
9297 m4_define([lt_if_append_uniq],
9298 [m4_ifdef([$1],
9299 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
9300 [lt_append([$1], [$2], [$3])$4],
9301 [$5])],
9302 [lt_append([$1], [$2], [$3])$4])])
9303
9304
9305 # lt_dict_add(DICT, KEY, VALUE)
9306 # -----------------------------
9307 m4_define([lt_dict_add],
9308 [m4_define([$1($2)], [$3])])
9309
9310
9311 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
9312 # --------------------------------------------
9313 m4_define([lt_dict_add_subkey],
9314 [m4_define([$1($2:$3)], [$4])])
9315
9316
9317 # lt_dict_fetch(DICT, KEY, [SUBKEY])
9318 # ----------------------------------
9319 m4_define([lt_dict_fetch],
9320 [m4_ifval([$3],
9321 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
9322 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
9323
9324
9325 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
9326 # -----------------------------------------------------------------
9327 m4_define([lt_if_dict_fetch],
9328 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
9329 [$5],
9330 [$6])])
9331
9332
9333 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
9334 # --------------------------------------------------------------
9335 m4_define([lt_dict_filter],
9336 [m4_if([$5], [], [],
9337 [lt_join(m4_quote(m4_default([$4], [[, ]])),
9338 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
9339 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
9340 ])
9341
9342 # ltversion.m4 -- version numbers -*- Autoconf -*-
9343 #
9344 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
9345 # Written by Scott James Remnant, 2004
9346 #
9347 # This file is free software; the Free Software Foundation gives
9348 # unlimited permission to copy and/or distribute it, with or without
9349 # modifications, as long as this notice is preserved.
9350
9351 # @configure_input@
9352
9353 # serial 4179 ltversion.m4
9354 # This file is part of GNU Libtool
9355
9356 m4_define([LT_PACKAGE_VERSION], [2.4.6])
9357 m4_define([LT_PACKAGE_REVISION], [2.4.6])
9358
9359 AC_DEFUN([LTVERSION_VERSION],
9360 [macro_version='2.4.6'
9361 macro_revision='2.4.6'
9362 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9363 _LT_DECL(, macro_revision, 0)
9364 ])
9365
9366 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
9367 #
9368 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
9369 # Foundation, Inc.
9370 # Written by Scott James Remnant, 2004.
9371 #
9372 # This file is free software; the Free Software Foundation gives
9373 # unlimited permission to copy and/or distribute it, with or without
9374 # modifications, as long as this notice is preserved.
9375
9376 # serial 5 lt~obsolete.m4
9377
9378 # These exist entirely to fool aclocal when bootstrapping libtool.
9379 #
9380 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
9381 # which have later been changed to m4_define as they aren't part of the
9382 # exported API, or moved to Autoconf or Automake where they belong.
9383 #
9384 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
9385 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
9386 # using a macro with the same name in our local m4/libtool.m4 it'll
9387 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
9388 # and doesn't know about Autoconf macros at all.)
9389 #
9390 # So we provide this file, which has a silly filename so it's always
9391 # included after everything else. This provides aclocal with the
9392 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
9393 # because those macros already exist, or will be overwritten later.
9394 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
9395 #
9396 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
9397 # Yes, that means every name once taken will need to remain here until
9398 # we give up compatibility with versions before 1.7, at which point
9399 # we need to keep only those names which we still refer to.
9400
9401 # This is to help aclocal find these macros, as it can't see m4_define.
9402 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
9403
9404 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
9405 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
9406 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
9407 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
9408 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
9409 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
9410 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
9411 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
9412 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
9413 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
9414 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
9415 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
9416 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
9417 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
9418 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
9419 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
9420 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
9421 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
9422 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
9423 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
9424 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
9425 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
9426 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
9427 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
9428 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
9429 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
9430 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
9431 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
9432 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
9433 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
9434 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
9435 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
9436 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
9437 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
9438 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
9439 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
9440 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
9441 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
9442 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
9443 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
9444 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
9445 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
9446 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9447 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9448 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9449 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
9450 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
9451 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
9452 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
9453 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
9454 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
9455 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9456 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9457 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9458 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
9459 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
9460 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
9461 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
9462 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
9463 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
9464 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
9465
9466 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
9467 # serial 12 (pkg-config-0.29.2)
9468
9469 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9470 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
9471 dnl
9472 dnl This program is free software; you can redistribute it and/or modify
9473 dnl it under the terms of the GNU General Public License as published by
9474 dnl the Free Software Foundation; either version 2 of the License, or
9475 dnl (at your option) any later version.
9476 dnl
9477 dnl This program is distributed in the hope that it will be useful, but
9478 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
9479 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9480 dnl General Public License for more details.
9481 dnl
9482 dnl You should have received a copy of the GNU General Public License
9483 dnl along with this program; if not, write to the Free Software
9484 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
9485 dnl 02111-1307, USA.
9486 dnl
9487 dnl As a special exception to the GNU General Public License, if you
9488 dnl distribute this file as part of a program that contains a
9489 dnl configuration script generated by Autoconf, you may include it under
9490 dnl the same distribution terms that you use for the rest of that
9491 dnl program.
9492
9493 dnl PKG_PREREQ(MIN-VERSION)
9494 dnl -----------------------
9495 dnl Since: 0.29
9496 dnl
9497 dnl Verify that the version of the pkg-config macros are at least
9498 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
9499 dnl installed version of pkg-config, this checks the developer's version
9500 dnl of pkg.m4 when generating configure.
9501 dnl
9502 dnl To ensure that this macro is defined, also add:
9503 dnl m4_ifndef([PKG_PREREQ],
9504 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
9505 dnl
9506 dnl See the "Since" comment for each macro you use to see what version
9507 dnl of the macros you require.
9508 m4_defun([PKG_PREREQ],
9509 [m4_define([PKG_MACROS_VERSION], [0.29.2])
9510 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
9511 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
9512 ])dnl PKG_PREREQ
9513
9514 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
9515 dnl ----------------------------------
9516 dnl Since: 0.16
9517 dnl
9518 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
9519 dnl first found in the path. Checks that the version of pkg-config found
9520 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
9521 dnl used since that's the first version where most current features of
9522 dnl pkg-config existed.
9523 AC_DEFUN([PKG_PROG_PKG_CONFIG],
9524 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9525 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
9526 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
9527 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
9528 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
9529 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
9530
9531 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9532 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9533 fi
9534 if test -n "$PKG_CONFIG"; then
9535 _pkg_min_version=m4_default([$1], [0.9.0])
9536 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
9537 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9538 AC_MSG_RESULT([yes])
9539 else
9540 AC_MSG_RESULT([no])
9541 PKG_CONFIG=""
9542 fi
9543 fi[]dnl
9544 ])dnl PKG_PROG_PKG_CONFIG
9545
9546 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9547 dnl -------------------------------------------------------------------
9548 dnl Since: 0.18
9549 dnl
9550 dnl Check to see whether a particular set of modules exists. Similar to
9551 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
9552 dnl
9553 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9554 dnl only at the first occurence in configure.ac, so if the first place
9555 dnl it's called might be skipped (such as if it is within an "if", you
9556 dnl have to call PKG_CHECK_EXISTS manually
9557 AC_DEFUN([PKG_CHECK_EXISTS],
9558 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9559 if test -n "$PKG_CONFIG" && \
9560 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9561 m4_default([$2], [:])
9562 m4_ifvaln([$3], [else
9563 $3])dnl
9564 fi])
9565
9566 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9567 dnl ---------------------------------------------
9568 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
9569 dnl pkg_failed based on the result.
9570 m4_define([_PKG_CONFIG],
9571 [if test -n "$$1"; then
9572 pkg_cv_[]$1="$$1"
9573 elif test -n "$PKG_CONFIG"; then
9574 PKG_CHECK_EXISTS([$3],
9575 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
9576 test "x$?" != "x0" && pkg_failed=yes ],
9577 [pkg_failed=yes])
9578 else
9579 pkg_failed=untried
9580 fi[]dnl
9581 ])dnl _PKG_CONFIG
9582
9583 dnl _PKG_SHORT_ERRORS_SUPPORTED
9584 dnl ---------------------------
9585 dnl Internal check to see if pkg-config supports short errors.
9586 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
9587 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9588 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9589 _pkg_short_errors_supported=yes
9590 else
9591 _pkg_short_errors_supported=no
9592 fi[]dnl
9593 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
9594
9595
9596 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9597 dnl [ACTION-IF-NOT-FOUND])
9598 dnl --------------------------------------------------------------
9599 dnl Since: 0.4.0
9600 dnl
9601 dnl Note that if there is a possibility the first call to
9602 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
9603 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9604 AC_DEFUN([PKG_CHECK_MODULES],
9605 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9606 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9607 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9608
9609 pkg_failed=no
9610 AC_MSG_CHECKING([for $2])
9611
9612 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
9613 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
9614
9615 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
9616 and $1[]_LIBS to avoid the need to call pkg-config.
9617 See the pkg-config man page for more details.])
9618
9619 if test $pkg_failed = yes; then
9620 AC_MSG_RESULT([no])
9621 _PKG_SHORT_ERRORS_SUPPORTED
9622 if test $_pkg_short_errors_supported = yes; then
9623 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
9624 else
9625 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
9626 fi
9627 # Put the nasty error message in config.log where it belongs
9628 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9629
9630 m4_default([$4], [AC_MSG_ERROR(
9631 [Package requirements ($2) were not met:
9632
9633 $$1_PKG_ERRORS
9634
9635 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9636 installed software in a non-standard prefix.
9637
9638 _PKG_TEXT])[]dnl
9639 ])
9640 elif test $pkg_failed = untried; then
9641 AC_MSG_RESULT([no])
9642 m4_default([$4], [AC_MSG_FAILURE(
9643 [The pkg-config script could not be found or is too old. Make sure it
9644 is in your PATH or set the PKG_CONFIG environment variable to the full
9645 path to pkg-config.
9646
9647 _PKG_TEXT
9648
9649 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
9650 ])
9651 else
9652 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9653 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9654 AC_MSG_RESULT([yes])
9655 $3
9656 fi[]dnl
9657 ])dnl PKG_CHECK_MODULES
9658
9659
9660 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9661 dnl [ACTION-IF-NOT-FOUND])
9662 dnl ---------------------------------------------------------------------
9663 dnl Since: 0.29
9664 dnl
9665 dnl Checks for existence of MODULES and gathers its build flags with
9666 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
9667 dnl and VARIABLE-PREFIX_LIBS from --libs.
9668 dnl
9669 dnl Note that if there is a possibility the first call to
9670 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
9671 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
9672 dnl configure.ac.
9673 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
9674 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9675 _save_PKG_CONFIG=$PKG_CONFIG
9676 PKG_CONFIG="$PKG_CONFIG --static"
9677 PKG_CHECK_MODULES($@)
9678 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
9679 ])dnl PKG_CHECK_MODULES_STATIC
9680
9681
9682 dnl PKG_INSTALLDIR([DIRECTORY])
9683 dnl -------------------------
9684 dnl Since: 0.27
9685 dnl
9686 dnl Substitutes the variable pkgconfigdir as the location where a module
9687 dnl should install pkg-config .pc files. By default the directory is
9688 dnl $libdir/pkgconfig, but the default can be changed by passing
9689 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
9690 dnl parameter.
9691 AC_DEFUN([PKG_INSTALLDIR],
9692 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
9693 m4_pushdef([pkg_description],
9694 [pkg-config installation directory @<:@]pkg_default[@:>@])
9695 AC_ARG_WITH([pkgconfigdir],
9696 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
9697 [with_pkgconfigdir=]pkg_default)
9698 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
9699 m4_popdef([pkg_default])
9700 m4_popdef([pkg_description])
9701 ])dnl PKG_INSTALLDIR
9702
9703
9704 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
9705 dnl --------------------------------
9706 dnl Since: 0.27
9707 dnl
9708 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
9709 dnl module should install arch-independent pkg-config .pc files. By
9710 dnl default the directory is $datadir/pkgconfig, but the default can be
9711 dnl changed by passing DIRECTORY. The user can override through the
9712 dnl --with-noarch-pkgconfigdir parameter.
9713 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
9714 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
9715 m4_pushdef([pkg_description],
9716 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
9717 AC_ARG_WITH([noarch-pkgconfigdir],
9718 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
9719 [with_noarch_pkgconfigdir=]pkg_default)
9720 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
9721 m4_popdef([pkg_default])
9722 m4_popdef([pkg_description])
9723 ])dnl PKG_NOARCH_INSTALLDIR
9724
9725
9726 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
9727 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9728 dnl -------------------------------------------
9729 dnl Since: 0.28
9730 dnl
9731 dnl Retrieves the value of the pkg-config variable for the given module.
9732 AC_DEFUN([PKG_CHECK_VAR],
9733 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9734 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
9735
9736 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
9737 AS_VAR_COPY([$1], [pkg_cv_][$1])
9738
9739 AS_VAR_IF([$1], [""], [$5], [$4])dnl
9740 ])dnl PKG_CHECK_VAR
9741
9742 # Copyright (C) 2002-2020 Free Software Foundation, Inc.
9743 #
9744 # This file is free software; the Free Software Foundation
9745 # gives unlimited permission to copy and/or distribute it,
9746 # with or without modifications, as long as this notice is preserved.
9747
9748 # AM_AUTOMAKE_VERSION(VERSION)
9749 # ----------------------------
9750 # Automake X.Y traces this macro to ensure aclocal.m4 has been
9751 # generated from the m4 files accompanying Automake X.Y.
9752 # (This private macro should not be called outside this file.)
9753 AC_DEFUN([AM_AUTOMAKE_VERSION],
9754 [am__api_version='1.16'
9755 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9756 dnl require some minimum version. Point them to the right macro.
9757 m4_if([$1], [1.16.2], [],
9758 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9759 ])
9760
9761 # _AM_AUTOCONF_VERSION(VERSION)
9762 # -----------------------------
9763 # aclocal traces this macro to find the Autoconf version.
9764 # This is a private macro too. Using m4_define simplifies
9765 # the logic in aclocal, which can simply ignore this definition.
9766 m4_define([_AM_AUTOCONF_VERSION], [])
9767
9768 # AM_SET_CURRENT_AUTOMAKE_VERSION
9769 # -------------------------------
9770 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9771 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9772 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9773 [AM_AUTOMAKE_VERSION([1.16.2])dnl
9774 m4_ifndef([AC_AUTOCONF_VERSION],
9775 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9776 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9777
9778 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
9779
9780 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
9781 #
9782 # This file is free software; the Free Software Foundation
9783 # gives unlimited permission to copy and/or distribute it,
9784 # with or without modifications, as long as this notice is preserved.
9785
9786 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9787 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
9788 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
9789 #
9790 # Of course, Automake must honor this variable whenever it calls a
9791 # tool from the auxiliary directory. The problem is that $srcdir (and
9792 # therefore $ac_aux_dir as well) can be either absolute or relative,
9793 # depending on how configure is run. This is pretty annoying, since
9794 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
9795 # source directory, any form will work fine, but in subdirectories a
9796 # relative path needs to be adjusted first.
9797 #
9798 # $ac_aux_dir/missing
9799 # fails when called from a subdirectory if $ac_aux_dir is relative
9800 # $top_srcdir/$ac_aux_dir/missing
9801 # fails if $ac_aux_dir is absolute,
9802 # fails when called from a subdirectory in a VPATH build with
9803 # a relative $ac_aux_dir
9804 #
9805 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9806 # are both prefixed by $srcdir. In an in-source build this is usually
9807 # harmless because $srcdir is '.', but things will broke when you
9808 # start a VPATH build or use an absolute $srcdir.
9809 #
9810 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9811 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9812 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9813 # and then we would define $MISSING as
9814 # MISSING="\${SHELL} $am_aux_dir/missing"
9815 # This will work as long as MISSING is not called from configure, because
9816 # unfortunately $(top_srcdir) has no meaning in configure.
9817 # However there are other variables, like CC, which are often used in
9818 # configure, and could therefore not use this "fixed" $ac_aux_dir.
9819 #
9820 # Another solution, used here, is to always expand $ac_aux_dir to an
9821 # absolute PATH. The drawback is that using absolute paths prevent a
9822 # configured tree to be moved without reconfiguration.
9823
9824 AC_DEFUN([AM_AUX_DIR_EXPAND],
9825 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
9826 # Expand $ac_aux_dir to an absolute path.
9827 am_aux_dir=`cd "$ac_aux_dir" && pwd`
9828 ])
9829
9830 # AM_CONDITIONAL -*- Autoconf -*-
9831
9832 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
9833 #
9834 # This file is free software; the Free Software Foundation
9835 # gives unlimited permission to copy and/or distribute it,
9836 # with or without modifications, as long as this notice is preserved.
9837
9838 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
9839 # -------------------------------------
9840 # Define a conditional.
9841 AC_DEFUN([AM_CONDITIONAL],
9842 [AC_PREREQ([2.52])dnl
9843 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9844 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9845 AC_SUBST([$1_TRUE])dnl
9846 AC_SUBST([$1_FALSE])dnl
9847 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
9848 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
9849 m4_define([_AM_COND_VALUE_$1], [$2])dnl
9850 if $2; then
9851 $1_TRUE=
9852 $1_FALSE='#'
9853 else
9854 $1_TRUE='#'
9855 $1_FALSE=
9856 fi
9857 AC_CONFIG_COMMANDS_PRE(
9858 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9859 AC_MSG_ERROR([[conditional "$1" was never defined.
9860 Usually this means the macro was only invoked conditionally.]])
9861 fi])])
9862
9863 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
9864 #
9865 # This file is free software; the Free Software Foundation
9866 # gives unlimited permission to copy and/or distribute it,
9867 # with or without modifications, as long as this notice is preserved.
9868
9869
9870 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
9871 # written in clear, in which case automake, when reading aclocal.m4,
9872 # will think it sees a *use*, and therefore will trigger all it's
9873 # C support machinery. Also note that it means that autoscan, seeing
9874 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9875
9876
9877 # _AM_DEPENDENCIES(NAME)
9878 # ----------------------
9879 # See how the compiler implements dependency checking.
9880 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
9881 # We try a few techniques and use that to set a single cache variable.
9882 #
9883 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9884 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9885 # dependency, and given that the user is not expected to run this macro,
9886 # just rely on AC_PROG_CC.
9887 AC_DEFUN([_AM_DEPENDENCIES],
9888 [AC_REQUIRE([AM_SET_DEPDIR])dnl
9889 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9890 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9891 AC_REQUIRE([AM_DEP_TRACK])dnl
9892
9893 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
9894 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
9895 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9896 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
9897 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
9898 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9899 [depcc="$$1" am_compiler_list=])
9900
9901 AC_CACHE_CHECK([dependency style of $depcc],
9902 [am_cv_$1_dependencies_compiler_type],
9903 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9904 # We make a subdir and do the tests there. Otherwise we can end up
9905 # making bogus files that we don't know about and never remove. For
9906 # instance it was reported that on HP-UX the gcc test will end up
9907 # making a dummy file named 'D' -- because '-MD' means "put the output
9908 # in D".
9909 rm -rf conftest.dir
9910 mkdir conftest.dir
9911 # Copy depcomp to subdir because otherwise we won't find it if we're
9912 # using a relative directory.
9913 cp "$am_depcomp" conftest.dir
9914 cd conftest.dir
9915 # We will build objects and dependencies in a subdirectory because
9916 # it helps to detect inapplicable dependency modes. For instance
9917 # both Tru64's cc and ICC support -MD to output dependencies as a
9918 # side effect of compilation, but ICC will put the dependencies in
9919 # the current directory while Tru64 will put them in the object
9920 # directory.
9921 mkdir sub
9922
9923 am_cv_$1_dependencies_compiler_type=none
9924 if test "$am_compiler_list" = ""; then
9925 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9926 fi
9927 am__universal=false
9928 m4_case([$1], [CC],
9929 [case " $depcc " in #(
9930 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9931 esac],
9932 [CXX],
9933 [case " $depcc " in #(
9934 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9935 esac])
9936
9937 for depmode in $am_compiler_list; do
9938 # Setup a source with many dependencies, because some compilers
9939 # like to wrap large dependency lists on column 80 (with \), and
9940 # we should not choose a depcomp mode which is confused by this.
9941 #
9942 # We need to recreate these files for each test, as the compiler may
9943 # overwrite some of them when testing with obscure command lines.
9944 # This happens at least with the AIX C compiler.
9945 : > sub/conftest.c
9946 for i in 1 2 3 4 5 6; do
9947 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9948 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9949 # Solaris 10 /bin/sh.
9950 echo '/* dummy */' > sub/conftst$i.h
9951 done
9952 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9953
9954 # We check with '-c' and '-o' for the sake of the "dashmstdout"
9955 # mode. It turns out that the SunPro C++ compiler does not properly
9956 # handle '-M -o', and we need to detect this. Also, some Intel
9957 # versions had trouble with output in subdirs.
9958 am__obj=sub/conftest.${OBJEXT-o}
9959 am__minus_obj="-o $am__obj"
9960 case $depmode in
9961 gcc)
9962 # This depmode causes a compiler race in universal mode.
9963 test "$am__universal" = false || continue
9964 ;;
9965 nosideeffect)
9966 # After this tag, mechanisms are not by side-effect, so they'll
9967 # only be used when explicitly requested.
9968 if test "x$enable_dependency_tracking" = xyes; then
9969 continue
9970 else
9971 break
9972 fi
9973 ;;
9974 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9975 # This compiler won't grok '-c -o', but also, the minuso test has
9976 # not run yet. These depmodes are late enough in the game, and
9977 # so weak that their functioning should not be impacted.
9978 am__obj=conftest.${OBJEXT-o}
9979 am__minus_obj=
9980 ;;
9981 none) break ;;
9982 esac
9983 if depmode=$depmode \
9984 source=sub/conftest.c object=$am__obj \
9985 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9986 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9987 >/dev/null 2>conftest.err &&
9988 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9989 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9990 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9991 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9992 # icc doesn't choke on unknown options, it will just issue warnings
9993 # or remarks (even with -Werror). So we grep stderr for any message
9994 # that says an option was ignored or not supported.
9995 # When given -MP, icc 7.0 and 7.1 complain thusly:
9996 # icc: Command line warning: ignoring option '-M'; no argument required
9997 # The diagnosis changed in icc 8.0:
9998 # icc: Command line remark: option '-MP' not supported
9999 if (grep 'ignoring option' conftest.err ||
10000 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10001 am_cv_$1_dependencies_compiler_type=$depmode
10002 break
10003 fi
10004 fi
10005 done
10006
10007 cd ..
10008 rm -rf conftest.dir
10009 else
10010 am_cv_$1_dependencies_compiler_type=none
10011 fi
10012 ])
10013 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
10014 AM_CONDITIONAL([am__fastdep$1], [
10015 test "x$enable_dependency_tracking" != xno \
10016 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
10017 ])
10018
10019
10020 # AM_SET_DEPDIR
10021 # -------------
10022 # Choose a directory name for dependency files.
10023 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
10024 AC_DEFUN([AM_SET_DEPDIR],
10025 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10026 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
10027 ])
10028
10029
10030 # AM_DEP_TRACK
10031 # ------------
10032 AC_DEFUN([AM_DEP_TRACK],
10033 [AC_ARG_ENABLE([dependency-tracking], [dnl
10034 AS_HELP_STRING(
10035 [--enable-dependency-tracking],
10036 [do not reject slow dependency extractors])
10037 AS_HELP_STRING(
10038 [--disable-dependency-tracking],
10039 [speeds up one-time build])])
10040 if test "x$enable_dependency_tracking" != xno; then
10041 am_depcomp="$ac_aux_dir/depcomp"
10042 AMDEPBACKSLASH='\'
10043 am__nodep='_no'
10044 fi
10045 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
10046 AC_SUBST([AMDEPBACKSLASH])dnl
10047 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
10048 AC_SUBST([am__nodep])dnl
10049 _AM_SUBST_NOTMAKE([am__nodep])dnl
10050 ])
10051
10052 # Generate code to set up dependency tracking. -*- Autoconf -*-
10053
10054 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
10055 #
10056 # This file is free software; the Free Software Foundation
10057 # gives unlimited permission to copy and/or distribute it,
10058 # with or without modifications, as long as this notice is preserved.
10059
10060 # _AM_OUTPUT_DEPENDENCY_COMMANDS
10061 # ------------------------------
10062 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
10063 [{
10064 # Older Autoconf quotes --file arguments for eval, but not when files
10065 # are listed without --file. Let's play safe and only enable the eval
10066 # if we detect the quoting.
10067 # TODO: see whether this extra hack can be removed once we start
10068 # requiring Autoconf 2.70 or later.
10069 AS_CASE([$CONFIG_FILES],
10070 [*\'*], [eval set x "$CONFIG_FILES"],
10071 [*], [set x $CONFIG_FILES])
10072 shift
10073 # Used to flag and report bootstrapping failures.
10074 am_rc=0
10075 for am_mf
10076 do
10077 # Strip MF so we end up with the name of the file.
10078 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
10079 # Check whether this is an Automake generated Makefile which includes
10080 # dependency-tracking related rules and includes.
10081 # Grep'ing the whole file directly is not great: AIX grep has a line
10082 # limit of 2048, but all sed's we know have understand at least 4000.
10083 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
10084 || continue
10085 am_dirpart=`AS_DIRNAME(["$am_mf"])`
10086 am_filepart=`AS_BASENAME(["$am_mf"])`
10087 AM_RUN_LOG([cd "$am_dirpart" \
10088 && sed -e '/# am--include-marker/d' "$am_filepart" \
10089 | $MAKE -f - am--depfiles]) || am_rc=$?
10090 done
10091 if test $am_rc -ne 0; then
10092 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
10093 for automatic dependency tracking. If GNU make was not used, consider
10094 re-running the configure script with MAKE="gmake" (or whatever is
10095 necessary). You can also try re-running configure with the
10096 '--disable-dependency-tracking' option to at least be able to build
10097 the package (albeit without support for automatic dependency tracking).])
10098 fi
10099 AS_UNSET([am_dirpart])
10100 AS_UNSET([am_filepart])
10101 AS_UNSET([am_mf])
10102 AS_UNSET([am_rc])
10103 rm -f conftest-deps.mk
10104 }
10105 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
10106
10107
10108 # AM_OUTPUT_DEPENDENCY_COMMANDS
10109 # -----------------------------
10110 # This macro should only be invoked once -- use via AC_REQUIRE.
10111 #
10112 # This code is only required when automatic dependency tracking is enabled.
10113 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
10114 # order to bootstrap the dependency handling code.
10115 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
10116 [AC_CONFIG_COMMANDS([depfiles],
10117 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
10118 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
10119
10120 # Do all the work for Automake. -*- Autoconf -*-
10121
10122 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
10123 #
10124 # This file is free software; the Free Software Foundation
10125 # gives unlimited permission to copy and/or distribute it,
10126 # with or without modifications, as long as this notice is preserved.
10127
10128 # This macro actually does too much. Some checks are only needed if
10129 # your package does certain things. But this isn't really a big deal.
10130
10131 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
10132 m4_define([AC_PROG_CC],
10133 m4_defn([AC_PROG_CC])
10134 [_AM_PROG_CC_C_O
10135 ])
10136
10137 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
10138 # AM_INIT_AUTOMAKE([OPTIONS])
10139 # -----------------------------------------------
10140 # The call with PACKAGE and VERSION arguments is the old style
10141 # call (pre autoconf-2.50), which is being phased out. PACKAGE
10142 # and VERSION should now be passed to AC_INIT and removed from
10143 # the call to AM_INIT_AUTOMAKE.
10144 # We support both call styles for the transition. After
10145 # the next Automake release, Autoconf can make the AC_INIT
10146 # arguments mandatory, and then we can depend on a new Autoconf
10147 # release and drop the old call support.
10148 AC_DEFUN([AM_INIT_AUTOMAKE],
10149 [AC_PREREQ([2.65])dnl
10150 dnl Autoconf wants to disallow AM_ names. We explicitly allow
10151 dnl the ones we care about.
10152 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
10153 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
10154 AC_REQUIRE([AC_PROG_INSTALL])dnl
10155 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10156 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10157 # is not polluted with repeated "-I."
10158 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
10159 # test to see if srcdir already configured
10160 if test -f $srcdir/config.status; then
10161 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
10162 fi
10163 fi
10164
10165 # test whether we have cygpath
10166 if test -z "$CYGPATH_W"; then
10167 if (cygpath --version) >/dev/null 2>/dev/null; then
10168 CYGPATH_W='cygpath -w'
10169 else
10170 CYGPATH_W=echo
10171 fi
10172 fi
10173 AC_SUBST([CYGPATH_W])
10174
10175 # Define the identity of the package.
10176 dnl Distinguish between old-style and new-style calls.
10177 m4_ifval([$2],
10178 [AC_DIAGNOSE([obsolete],
10179 [$0: two- and three-arguments forms are deprecated.])
10180 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
10181 AC_SUBST([PACKAGE], [$1])dnl
10182 AC_SUBST([VERSION], [$2])],
10183 [_AM_SET_OPTIONS([$1])dnl
10184 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
10185 m4_if(
10186 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
10187 [ok:ok],,
10188 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
10189 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
10190 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
10191
10192 _AM_IF_OPTION([no-define],,
10193 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
10194 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
10195
10196 # Some tools Automake needs.
10197 AC_REQUIRE([AM_SANITY_CHECK])dnl
10198 AC_REQUIRE([AC_ARG_PROGRAM])dnl
10199 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
10200 AM_MISSING_PROG([AUTOCONF], [autoconf])
10201 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
10202 AM_MISSING_PROG([AUTOHEADER], [autoheader])
10203 AM_MISSING_PROG([MAKEINFO], [makeinfo])
10204 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10205 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
10206 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10207 # For better backward compatibility. To be removed once Automake 1.9.x
10208 # dies out for good. For more background, see:
10209 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10210 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10211 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
10212 # We need awk for the "check" target (and possibly the TAP driver). The
10213 # system "awk" is bad on some platforms.
10214 AC_REQUIRE([AC_PROG_AWK])dnl
10215 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
10216 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10217 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
10218 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
10219 [_AM_PROG_TAR([v7])])])
10220 _AM_IF_OPTION([no-dependencies],,
10221 [AC_PROVIDE_IFELSE([AC_PROG_CC],
10222 [_AM_DEPENDENCIES([CC])],
10223 [m4_define([AC_PROG_CC],
10224 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
10225 AC_PROVIDE_IFELSE([AC_PROG_CXX],
10226 [_AM_DEPENDENCIES([CXX])],
10227 [m4_define([AC_PROG_CXX],
10228 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
10229 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
10230 [_AM_DEPENDENCIES([OBJC])],
10231 [m4_define([AC_PROG_OBJC],
10232 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
10233 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
10234 [_AM_DEPENDENCIES([OBJCXX])],
10235 [m4_define([AC_PROG_OBJCXX],
10236 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
10237 ])
10238 AC_REQUIRE([AM_SILENT_RULES])dnl
10239 dnl The testsuite driver may need to know about EXEEXT, so add the
10240 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
10241 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
10242 AC_CONFIG_COMMANDS_PRE(dnl
10243 [m4_provide_if([_AM_COMPILER_EXEEXT],
10244 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
10245
10246 # POSIX will say in a future version that running "rm -f" with no argument
10247 # is OK; and we want to be able to make that assumption in our Makefile
10248 # recipes. So use an aggressive probe to check that the usage we want is
10249 # actually supported "in the wild" to an acceptable degree.
10250 # See automake bug#10828.
10251 # To make any issue more visible, cause the running configure to be aborted
10252 # by default if the 'rm' program in use doesn't match our expectations; the
10253 # user can still override this though.
10254 if rm -f && rm -fr && rm -rf; then : OK; else
10255 cat >&2 <<'END'
10256 Oops!
10257
10258 Your 'rm' program seems unable to run without file operands specified
10259 on the command line, even when the '-f' option is present. This is contrary
10260 to the behaviour of most rm programs out there, and not conforming with
10261 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
10262
10263 Please tell bug-automake@gnu.org about your system, including the value
10264 of your $PATH and any error possibly output before this message. This
10265 can help us improve future automake versions.
10266
10267 END
10268 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
10269 echo 'Configuration will proceed anyway, since you have set the' >&2
10270 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
10271 echo >&2
10272 else
10273 cat >&2 <<'END'
10274 Aborting the configuration process, to ensure you take notice of the issue.
10275
10276 You can download and install GNU coreutils to get an 'rm' implementation
10277 that behaves properly: <https://www.gnu.org/software/coreutils/>.
10278
10279 If you want to complete the configuration process using your problematic
10280 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
10281 to "yes", and re-run configure.
10282
10283 END
10284 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
10285 fi
10286 fi
10287 dnl The trailing newline in this macro's definition is deliberate, for
10288 dnl backward compatibility and to allow trailing 'dnl'-style comments
10289 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
10290 ])
10291
10292 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
10293 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
10294 dnl mangled by Autoconf and run in a shell conditional statement.
10295 m4_define([_AC_COMPILER_EXEEXT],
10296 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
10297
10298 # When config.status generates a header, we must update the stamp-h file.
10299 # This file resides in the same directory as the config header
10300 # that is generated. The stamp files are numbered to have different names.
10301
10302 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
10303 # loop where config.status creates the headers, so we can generate
10304 # our stamp files there.
10305 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
10306 [# Compute $1's index in $config_headers.
10307 _am_arg=$1
10308 _am_stamp_count=1
10309 for _am_header in $config_headers :; do
10310 case $_am_header in
10311 $_am_arg | $_am_arg:* )
10312 break ;;
10313 * )
10314 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10315 esac
10316 done
10317 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
10318
10319 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
10320 #
10321 # This file is free software; the Free Software Foundation
10322 # gives unlimited permission to copy and/or distribute it,
10323 # with or without modifications, as long as this notice is preserved.
10324
10325 # AM_PROG_INSTALL_SH
10326 # ------------------
10327 # Define $install_sh.
10328 AC_DEFUN([AM_PROG_INSTALL_SH],
10329 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10330 if test x"${install_sh+set}" != xset; then
10331 case $am_aux_dir in
10332 *\ * | *\ *)
10333 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10334 *)
10335 install_sh="\${SHELL} $am_aux_dir/install-sh"
10336 esac
10337 fi
10338 AC_SUBST([install_sh])])
10339
10340 # Copyright (C) 2003-2020 Free Software Foundation, Inc.
10341 #
10342 # This file is free software; the Free Software Foundation
10343 # gives unlimited permission to copy and/or distribute it,
10344 # with or without modifications, as long as this notice is preserved.
10345
10346 # Check whether the underlying file-system supports filenames
10347 # with a leading dot. For instance MS-DOS doesn't.
10348 AC_DEFUN([AM_SET_LEADING_DOT],
10349 [rm -rf .tst 2>/dev/null
10350 mkdir .tst 2>/dev/null
10351 if test -d .tst; then
10352 am__leading_dot=.
10353 else
10354 am__leading_dot=_
10355 fi
10356 rmdir .tst 2>/dev/null
10357 AC_SUBST([am__leading_dot])])
10358
10359 # Check to see how 'make' treats includes. -*- Autoconf -*-
10360
10361 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
10362 #
10363 # This file is free software; the Free Software Foundation
10364 # gives unlimited permission to copy and/or distribute it,
10365 # with or without modifications, as long as this notice is preserved.
10366
10367 # AM_MAKE_INCLUDE()
10368 # -----------------
10369 # Check whether make has an 'include' directive that can support all
10370 # the idioms we need for our automatic dependency tracking code.
10371 AC_DEFUN([AM_MAKE_INCLUDE],
10372 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
10373 cat > confinc.mk << 'END'
10374 am__doit:
10375 @echo this is the am__doit target >confinc.out
10376 .PHONY: am__doit
10377 END
10378 am__include="#"
10379 am__quote=
10380 # BSD make does it like this.
10381 echo '.include "confinc.mk" # ignored' > confmf.BSD
10382 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
10383 echo 'include confinc.mk # ignored' > confmf.GNU
10384 _am_result=no
10385 for s in GNU BSD; do
10386 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
10387 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
10388 ['0:this is the am__doit target'],
10389 [AS_CASE([$s],
10390 [BSD], [am__include='.include' am__quote='"'],
10391 [am__include='include' am__quote=''])])
10392 if test "$am__include" != "#"; then
10393 _am_result="yes ($s style)"
10394 break
10395 fi
10396 done
10397 rm -f confinc.* confmf.*
10398 AC_MSG_RESULT([${_am_result}])
10399 AC_SUBST([am__include])])
10400 AC_SUBST([am__quote])])
10401
10402 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
10403
10404 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
10405 #
10406 # This file is free software; the Free Software Foundation
10407 # gives unlimited permission to copy and/or distribute it,
10408 # with or without modifications, as long as this notice is preserved.
10409
10410 # AM_MISSING_PROG(NAME, PROGRAM)
10411 # ------------------------------
10412 AC_DEFUN([AM_MISSING_PROG],
10413 [AC_REQUIRE([AM_MISSING_HAS_RUN])
10414 $1=${$1-"${am_missing_run}$2"}
10415 AC_SUBST($1)])
10416
10417 # AM_MISSING_HAS_RUN
10418 # ------------------
10419 # Define MISSING if not defined so far and test if it is modern enough.
10420 # If it is, set am_missing_run to use it, otherwise, to nothing.
10421 AC_DEFUN([AM_MISSING_HAS_RUN],
10422 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10423 AC_REQUIRE_AUX_FILE([missing])dnl
10424 if test x"${MISSING+set}" != xset; then
10425 case $am_aux_dir in
10426 *\ * | *\ *)
10427 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10428 *)
10429 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10430 esac
10431 fi
10432 # Use eval to expand $SHELL
10433 if eval "$MISSING --is-lightweight"; then
10434 am_missing_run="$MISSING "
10435 else
10436 am_missing_run=
10437 AC_MSG_WARN(['missing' script is too old or missing])
10438 fi
10439 ])
10440
10441 # Helper functions for option handling. -*- Autoconf -*-
10442
10443 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
10444 #
10445 # This file is free software; the Free Software Foundation
10446 # gives unlimited permission to copy and/or distribute it,
10447 # with or without modifications, as long as this notice is preserved.
10448
10449 # _AM_MANGLE_OPTION(NAME)
10450 # -----------------------
10451 AC_DEFUN([_AM_MANGLE_OPTION],
10452 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10453
10454 # _AM_SET_OPTION(NAME)
10455 # --------------------
10456 # Set option NAME. Presently that only means defining a flag for this option.
10457 AC_DEFUN([_AM_SET_OPTION],
10458 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
10459
10460 # _AM_SET_OPTIONS(OPTIONS)
10461 # ------------------------
10462 # OPTIONS is a space-separated list of Automake options.
10463 AC_DEFUN([_AM_SET_OPTIONS],
10464 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10465
10466 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10467 # -------------------------------------------
10468 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10469 AC_DEFUN([_AM_IF_OPTION],
10470 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10471
10472 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
10473 #
10474 # This file is free software; the Free Software Foundation
10475 # gives unlimited permission to copy and/or distribute it,
10476 # with or without modifications, as long as this notice is preserved.
10477
10478 # _AM_PROG_CC_C_O
10479 # ---------------
10480 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
10481 # to automatically call this.
10482 AC_DEFUN([_AM_PROG_CC_C_O],
10483 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10484 AC_REQUIRE_AUX_FILE([compile])dnl
10485 AC_LANG_PUSH([C])dnl
10486 AC_CACHE_CHECK(
10487 [whether $CC understands -c and -o together],
10488 [am_cv_prog_cc_c_o],
10489 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
10490 # Make sure it works both with $CC and with simple cc.
10491 # Following AC_PROG_CC_C_O, we do the test twice because some
10492 # compilers refuse to overwrite an existing .o file with -o,
10493 # though they will create one.
10494 am_cv_prog_cc_c_o=yes
10495 for am_i in 1 2; do
10496 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
10497 && test -f conftest2.$ac_objext; then
10498 : OK
10499 else
10500 am_cv_prog_cc_c_o=no
10501 break
10502 fi
10503 done
10504 rm -f core conftest*
10505 unset am_i])
10506 if test "$am_cv_prog_cc_c_o" != yes; then
10507 # Losing compiler, so override with the script.
10508 # FIXME: It is wrong to rewrite CC.
10509 # But if we don't then we get into trouble of one sort or another.
10510 # A longer-term fix would be to have automake use am__CC in this case,
10511 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10512 CC="$am_aux_dir/compile $CC"
10513 fi
10514 AC_LANG_POP([C])])
10515
10516 # For backward compatibility.
10517 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
10518
10519 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
10520 #
10521 # This file is free software; the Free Software Foundation
10522 # gives unlimited permission to copy and/or distribute it,
10523 # with or without modifications, as long as this notice is preserved.
10524
10525 # AM_RUN_LOG(COMMAND)
10526 # -------------------
10527 # Run COMMAND, save the exit status in ac_status, and log it.
10528 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
10529 AC_DEFUN([AM_RUN_LOG],
10530 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
10531 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
10534 (exit $ac_status); }])
10535
10536 # Check to make sure that the build environment is sane. -*- Autoconf -*-
10537
10538 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
10539 #
10540 # This file is free software; the Free Software Foundation
10541 # gives unlimited permission to copy and/or distribute it,
10542 # with or without modifications, as long as this notice is preserved.
10543
10544 # AM_SANITY_CHECK
10545 # ---------------
10546 AC_DEFUN([AM_SANITY_CHECK],
10547 [AC_MSG_CHECKING([whether build environment is sane])
10548 # Reject unsafe characters in $srcdir or the absolute working directory
10549 # name. Accept space and tab only in the latter.
10550 am_lf='
10551 '
10552 case `pwd` in
10553 *[[\\\"\#\$\&\'\`$am_lf]]*)
10554 AC_MSG_ERROR([unsafe absolute working directory name]);;
10555 esac
10556 case $srcdir in
10557 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
10558 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
10559 esac
10560
10561 # Do 'set' in a subshell so we don't clobber the current shell's
10562 # arguments. Must try -L first in case configure is actually a
10563 # symlink; some systems play weird games with the mod time of symlinks
10564 # (eg FreeBSD returns the mod time of the symlink's containing
10565 # directory).
10566 if (
10567 am_has_slept=no
10568 for am_try in 1 2; do
10569 echo "timestamp, slept: $am_has_slept" > conftest.file
10570 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10571 if test "$[*]" = "X"; then
10572 # -L didn't work.
10573 set X `ls -t "$srcdir/configure" conftest.file`
10574 fi
10575 if test "$[*]" != "X $srcdir/configure conftest.file" \
10576 && test "$[*]" != "X conftest.file $srcdir/configure"; then
10577
10578 # If neither matched, then we have a broken ls. This can happen
10579 # if, for instance, CONFIG_SHELL is bash and it inherits a
10580 # broken ls alias from the environment. This has actually
10581 # happened. Such a system could not be considered "sane".
10582 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
10583 alias in your environment])
10584 fi
10585 if test "$[2]" = conftest.file || test $am_try -eq 2; then
10586 break
10587 fi
10588 # Just in case.
10589 sleep 1
10590 am_has_slept=yes
10591 done
10592 test "$[2]" = conftest.file
10593 )
10594 then
10595 # Ok.
10596 :
10597 else
10598 AC_MSG_ERROR([newly created file is older than distributed files!
10599 Check your system clock])
10600 fi
10601 AC_MSG_RESULT([yes])
10602 # If we didn't sleep, we still need to ensure time stamps of config.status and
10603 # generated files are strictly newer.
10604 am_sleep_pid=
10605 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10606 ( sleep 1 ) &
10607 am_sleep_pid=$!
10608 fi
10609 AC_CONFIG_COMMANDS_PRE(
10610 [AC_MSG_CHECKING([that generated files are newer than configure])
10611 if test -n "$am_sleep_pid"; then
10612 # Hide warnings about reused PIDs.
10613 wait $am_sleep_pid 2>/dev/null
10614 fi
10615 AC_MSG_RESULT([done])])
10616 rm -f conftest.file
10617 ])
10618
10619 # Copyright (C) 2009-2020 Free Software Foundation, Inc.
10620 #
10621 # This file is free software; the Free Software Foundation
10622 # gives unlimited permission to copy and/or distribute it,
10623 # with or without modifications, as long as this notice is preserved.
10624
10625 # AM_SILENT_RULES([DEFAULT])
10626 # --------------------------
10627 # Enable less verbose build rules; with the default set to DEFAULT
10628 # ("yes" being less verbose, "no" or empty being verbose).
10629 AC_DEFUN([AM_SILENT_RULES],
10630 [AC_ARG_ENABLE([silent-rules], [dnl
10631 AS_HELP_STRING(
10632 [--enable-silent-rules],
10633 [less verbose build output (undo: "make V=1")])
10634 AS_HELP_STRING(
10635 [--disable-silent-rules],
10636 [verbose build output (undo: "make V=0")])dnl
10637 ])
10638 case $enable_silent_rules in @%:@ (((
10639 yes) AM_DEFAULT_VERBOSITY=0;;
10640 no) AM_DEFAULT_VERBOSITY=1;;
10641 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10642 esac
10643 dnl
10644 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
10645 dnl do not support nested variable expansions.
10646 dnl See automake bug#9928 and bug#10237.
10647 am_make=${MAKE-make}
10648 AC_CACHE_CHECK([whether $am_make supports nested variables],
10649 [am_cv_make_support_nested_variables],
10650 [if AS_ECHO([['TRUE=$(BAR$(V))
10651 BAR0=false
10652 BAR1=true
10653 V=1
10654 am__doit:
10655 @$(TRUE)
10656 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
10657 am_cv_make_support_nested_variables=yes
10658 else
10659 am_cv_make_support_nested_variables=no
10660 fi])
10661 if test $am_cv_make_support_nested_variables = yes; then
10662 dnl Using '$V' instead of '$(V)' breaks IRIX make.
10663 AM_V='$(V)'
10664 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10665 else
10666 AM_V=$AM_DEFAULT_VERBOSITY
10667 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10668 fi
10669 AC_SUBST([AM_V])dnl
10670 AM_SUBST_NOTMAKE([AM_V])dnl
10671 AC_SUBST([AM_DEFAULT_V])dnl
10672 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
10673 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10674 AM_BACKSLASH='\'
10675 AC_SUBST([AM_BACKSLASH])dnl
10676 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10677 ])
10678
10679 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
10680 #
10681 # This file is free software; the Free Software Foundation
10682 # gives unlimited permission to copy and/or distribute it,
10683 # with or without modifications, as long as this notice is preserved.
10684
10685 # AM_PROG_INSTALL_STRIP
10686 # ---------------------
10687 # One issue with vendor 'install' (even GNU) is that you can't
10688 # specify the program used to strip binaries. This is especially
10689 # annoying in cross-compiling environments, where the build's strip
10690 # is unlikely to handle the host's binaries.
10691 # Fortunately install-sh will honor a STRIPPROG variable, so we
10692 # always use install-sh in "make install-strip", and initialize
10693 # STRIPPROG with the value of the STRIP variable (set by the user).
10694 AC_DEFUN([AM_PROG_INSTALL_STRIP],
10695 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10696 # Installed binaries are usually stripped using 'strip' when the user
10697 # run "make install-strip". However 'strip' might not be the right
10698 # tool to use in cross-compilation environments, therefore Automake
10699 # will honor the 'STRIP' environment variable to overrule this program.
10700 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
10701 if test "$cross_compiling" != no; then
10702 AC_CHECK_TOOL([STRIP], [strip], :)
10703 fi
10704 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10705 AC_SUBST([INSTALL_STRIP_PROGRAM])])
10706
10707 # Copyright (C) 2006-2020 Free Software Foundation, Inc.
10708 #
10709 # This file is free software; the Free Software Foundation
10710 # gives unlimited permission to copy and/or distribute it,
10711 # with or without modifications, as long as this notice is preserved.
10712
10713 # _AM_SUBST_NOTMAKE(VARIABLE)
10714 # ---------------------------
10715 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10716 # This macro is traced by Automake.
10717 AC_DEFUN([_AM_SUBST_NOTMAKE])
10718
10719 # AM_SUBST_NOTMAKE(VARIABLE)
10720 # --------------------------
10721 # Public sister of _AM_SUBST_NOTMAKE.
10722 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10723
10724 # Check how to create a tarball. -*- Autoconf -*-
10725
10726 # Copyright (C) 2004-2020 Free Software Foundation, Inc.
10727 #
10728 # This file is free software; the Free Software Foundation
10729 # gives unlimited permission to copy and/or distribute it,
10730 # with or without modifications, as long as this notice is preserved.
10731
10732 # _AM_PROG_TAR(FORMAT)
10733 # --------------------
10734 # Check how to create a tarball in format FORMAT.
10735 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
10736 #
10737 # Substitute a variable $(am__tar) that is a command
10738 # writing to stdout a FORMAT-tarball containing the directory
10739 # $tardir.
10740 # tardir=directory && $(am__tar) > result.tar
10741 #
10742 # Substitute a variable $(am__untar) that extract such
10743 # a tarball read from stdin.
10744 # $(am__untar) < result.tar
10745 #
10746 AC_DEFUN([_AM_PROG_TAR],
10747 [# Always define AMTAR for backward compatibility. Yes, it's still used
10748 # in the wild :-( We should find a proper way to deprecate it ...
10749 AC_SUBST([AMTAR], ['$${TAR-tar}'])
10750
10751 # We'll loop over all known methods to create a tar archive until one works.
10752 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10753
10754 m4_if([$1], [v7],
10755 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10756
10757 [m4_case([$1],
10758 [ustar],
10759 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
10760 # There is notably a 21 bits limit for the UID and the GID. In fact,
10761 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
10762 # and bug#13588).
10763 am_max_uid=2097151 # 2^21 - 1
10764 am_max_gid=$am_max_uid
10765 # The $UID and $GID variables are not portable, so we need to resort
10766 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
10767 # below are definitely unexpected, so allow the users to see them
10768 # (that is, avoid stderr redirection).
10769 am_uid=`id -u || echo unknown`
10770 am_gid=`id -g || echo unknown`
10771 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
10772 if test $am_uid -le $am_max_uid; then
10773 AC_MSG_RESULT([yes])
10774 else
10775 AC_MSG_RESULT([no])
10776 _am_tools=none
10777 fi
10778 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
10779 if test $am_gid -le $am_max_gid; then
10780 AC_MSG_RESULT([yes])
10781 else
10782 AC_MSG_RESULT([no])
10783 _am_tools=none
10784 fi],
10785
10786 [pax],
10787 [],
10788
10789 [m4_fatal([Unknown tar format])])
10790
10791 AC_MSG_CHECKING([how to create a $1 tar archive])
10792
10793 # Go ahead even if we have the value already cached. We do so because we
10794 # need to set the values for the 'am__tar' and 'am__untar' variables.
10795 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
10796
10797 for _am_tool in $_am_tools; do
10798 case $_am_tool in
10799 gnutar)
10800 for _am_tar in tar gnutar gtar; do
10801 AM_RUN_LOG([$_am_tar --version]) && break
10802 done
10803 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10804 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10805 am__untar="$_am_tar -xf -"
10806 ;;
10807 plaintar)
10808 # Must skip GNU tar: if it does not support --format= it doesn't create
10809 # ustar tarball either.
10810 (tar --version) >/dev/null 2>&1 && continue
10811 am__tar='tar chf - "$$tardir"'
10812 am__tar_='tar chf - "$tardir"'
10813 am__untar='tar xf -'
10814 ;;
10815 pax)
10816 am__tar='pax -L -x $1 -w "$$tardir"'
10817 am__tar_='pax -L -x $1 -w "$tardir"'
10818 am__untar='pax -r'
10819 ;;
10820 cpio)
10821 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10822 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10823 am__untar='cpio -i -H $1 -d'
10824 ;;
10825 none)
10826 am__tar=false
10827 am__tar_=false
10828 am__untar=false
10829 ;;
10830 esac
10831
10832 # If the value was cached, stop now. We just wanted to have am__tar
10833 # and am__untar set.
10834 test -n "${am_cv_prog_tar_$1}" && break
10835
10836 # tar/untar a dummy directory, and stop if the command works.
10837 rm -rf conftest.dir
10838 mkdir conftest.dir
10839 echo GrepMe > conftest.dir/file
10840 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10841 rm -rf conftest.dir
10842 if test -s conftest.tar; then
10843 AM_RUN_LOG([$am__untar <conftest.tar])
10844 AM_RUN_LOG([cat conftest.dir/file])
10845 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10846 fi
10847 done
10848 rm -rf conftest.dir
10849
10850 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10851 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10852
10853 AC_SUBST([am__tar])
10854 AC_SUBST([am__untar])
10855 ]) # _AM_PROG_TAR
10856
0 #!/bin/sh
1
2 AUTOMAKE="automake --add-missing"
3 export AUTOMAKE
4
5 exec autoreconf --install "$@"
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2020 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 <https://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* | MSYS*)
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/* | msys/*)
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 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
259 func_cl_wrapper "$@" # Doesn't return...
260 ;;
261 esac
262
263 ofile=
264 cfile=
265
266 for arg
267 do
268 if test -n "$eat"; then
269 eat=
270 else
271 case $1 in
272 -o)
273 # configure might choose to run compile as 'compile cc -o foo foo.c'.
274 # So we strip '-o arg' only if arg is an object.
275 eat=1
276 case $2 in
277 *.o | *.obj)
278 ofile=$2
279 ;;
280 *)
281 set x "$@" -o "$2"
282 shift
283 ;;
284 esac
285 ;;
286 *.c)
287 cfile=$1
288 set x "$@" "$1"
289 shift
290 ;;
291 *)
292 set x "$@" "$1"
293 shift
294 ;;
295 esac
296 fi
297 shift
298 done
299
300 if test -z "$ofile" || test -z "$cfile"; then
301 # If no '-o' option was seen then we might have been invoked from a
302 # pattern rule where we don't need one. That is ok -- this is a
303 # normal compilation that the losing compiler can handle. If no
304 # '.c' file was seen then we are probably linking. That is also
305 # ok.
306 exec "$@"
307 fi
308
309 # Name of file we expect compiler to create.
310 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
311
312 # Create the lock directory.
313 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
314 # that we are using for the .o file. Also, base the name on the expected
315 # object file name, since that is what matters with a parallel build.
316 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
317 while true; do
318 if mkdir "$lockdir" >/dev/null 2>&1; then
319 break
320 fi
321 sleep 1
322 done
323 # FIXME: race condition here if user kills between mkdir and trap.
324 trap "rmdir '$lockdir'; exit 1" 1 2 15
325
326 # Run the compile.
327 "$@"
328 ret=$?
329
330 if test -f "$cofile"; then
331 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
332 elif test -f "${cofile}bj"; then
333 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
334 fi
335
336 rmdir "$lockdir"
337 exit $ret
338
339 # Local Variables:
340 # mode: shell-script
341 # sh-indentation: 2
342 # eval: (add-hook 'before-save-hook 'time-stamp)
343 # time-stamp-start: "scriptversion="
344 # time-stamp-format: "%:y-%02m-%02d.%02H"
345 # time-stamp-time-zone: "UTC0"
346 # time-stamp-end: "; # UTC"
347 # End:
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-24'
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
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
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
25 #
26 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
27 #
28 # You can get the latest version of this script from:
29 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
30 #
31 # Please send patches to <config-patches@gnu.org>.
32
33
34 me=`echo "$0" | sed -e 's,.*/,,'`
35
36 usage="\
37 Usage: $0 [OPTION]
38
39 Output the configuration name of the system \`$me' is run on.
40
41 Options:
42 -h, --help print this help, then exit
43 -t, --time-stamp print date of last modification, then exit
44 -v, --version print version number, then exit
45
46 Report bugs and patches to <config-patches@gnu.org>."
47
48 version="\
49 GNU config.guess ($timestamp)
50
51 Originally written by Per Bothner.
52 Copyright 1992-2018 Free Software Foundation, Inc.
53
54 This is free software; see the source for copying conditions. There is NO
55 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
56
57 help="
58 Try \`$me --help' for more information."
59
60 # Parse command line
61 while test $# -gt 0 ; do
62 case $1 in
63 --time-stamp | --time* | -t )
64 echo "$timestamp" ; exit ;;
65 --version | -v )
66 echo "$version" ; exit ;;
67 --help | --h* | -h )
68 echo "$usage"; exit ;;
69 -- ) # Stop option processing
70 shift; break ;;
71 - ) # Use stdin as input.
72 break ;;
73 -* )
74 echo "$me: invalid option $1$help" >&2
75 exit 1 ;;
76 * )
77 break ;;
78 esac
79 done
80
81 if test $# != 0; then
82 echo "$me: too many arguments$help" >&2
83 exit 1
84 fi
85
86 trap 'exit 1' 1 2 15
87
88 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
89 # compiler to aid in system detection is discouraged as it requires
90 # temporary files to be created and, as you can see below, it is a
91 # headache to deal with in a portable fashion.
92
93 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
94 # use `HOST_CC' if defined, but it is deprecated.
95
96 # Portable tmp directory creation inspired by the Autoconf team.
97
98 set_cc_for_build='
99 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
100 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
101 : ${TMPDIR=/tmp} ;
102 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
103 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
104 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
105 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
106 dummy=$tmp/dummy ;
107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > "$dummy.c" ;
110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112 CC_FOR_BUILD="$c"; break ;
113 fi ;
114 done ;
115 if test x"$CC_FOR_BUILD" = x ; then
116 CC_FOR_BUILD=no_compiler_found ;
117 fi
118 ;;
119 ,,*) CC_FOR_BUILD=$CC ;;
120 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
121 esac ; set_cc_for_build= ;'
122
123 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
124 # (ghazi@noc.rutgers.edu 1994-08-24)
125 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
126 PATH=$PATH:/.attbin ; export PATH
127 fi
128
129 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
130 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133
134 case "$UNAME_SYSTEM" in
135 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval "$set_cc_for_build"
141 cat <<-EOF > "$dummy.c"
142 #include <features.h>
143 #if defined(__UCLIBC__)
144 LIBC=uclibc
145 #elif defined(__dietlibc__)
146 LIBC=dietlibc
147 #else
148 LIBC=gnu
149 #endif
150 EOF
151 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
152
153 # If ldd exists, use it to detect musl libc.
154 if command -v ldd >/dev/null && \
155 ldd --version 2>&1 | grep -q ^musl
156 then
157 LIBC=musl
158 fi
159 ;;
160 esac
161
162 # Note: order is significant - the case branches are not exclusive.
163
164 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
165 *:NetBSD:*:*)
166 # NetBSD (nbsd) targets should (where applicable) match one or
167 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
168 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
169 # switched to ELF, *-*-netbsd* would select the old
170 # object file format. This provides both forward
171 # compatibility and a consistent mechanism for selecting the
172 # object file format.
173 #
174 # Note: NetBSD doesn't particularly care about the vendor
175 # portion of the name. We always set it to "unknown".
176 sysctl="sysctl -n hw.machine_arch"
177 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
178 "/sbin/$sysctl" 2>/dev/null || \
179 "/usr/sbin/$sysctl" 2>/dev/null || \
180 echo unknown)`
181 case "$UNAME_MACHINE_ARCH" in
182 armeb) machine=armeb-unknown ;;
183 arm*) machine=arm-unknown ;;
184 sh3el) machine=shl-unknown ;;
185 sh3eb) machine=sh-unknown ;;
186 sh5el) machine=sh5le-unknown ;;
187 earmv*)
188 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
189 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
190 machine="${arch}${endian}"-unknown
191 ;;
192 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
193 esac
194 # The Operating System including object format, if it has switched
195 # to ELF recently (or will in the future) and ABI.
196 case "$UNAME_MACHINE_ARCH" in
197 earm*)
198 os=netbsdelf
199 ;;
200 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
201 eval "$set_cc_for_build"
202 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
203 | grep -q __ELF__
204 then
205 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
206 # Return netbsd for either. FIX?
207 os=netbsd
208 else
209 os=netbsdelf
210 fi
211 ;;
212 *)
213 os=netbsd
214 ;;
215 esac
216 # Determine ABI tags.
217 case "$UNAME_MACHINE_ARCH" in
218 earm*)
219 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
220 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
221 ;;
222 esac
223 # The OS release
224 # Debian GNU/NetBSD machines have a different userland, and
225 # thus, need a distinct triplet. However, they do not need
226 # kernel version information, so it can be replaced with a
227 # suitable tag, in the style of linux-gnu.
228 case "$UNAME_VERSION" in
229 Debian*)
230 release='-gnu'
231 ;;
232 *)
233 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
234 ;;
235 esac
236 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
237 # contains redundant information, the shorter form:
238 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
239 echo "$machine-${os}${release}${abi}"
240 exit ;;
241 *:Bitrig:*:*)
242 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
243 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
244 exit ;;
245 *:OpenBSD:*:*)
246 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
247 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
248 exit ;;
249 *:LibertyBSD:*:*)
250 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
251 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
252 exit ;;
253 *:MidnightBSD:*:*)
254 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
255 exit ;;
256 *:ekkoBSD:*:*)
257 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
258 exit ;;
259 *:SolidBSD:*:*)
260 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
261 exit ;;
262 macppc:MirBSD:*:*)
263 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
264 exit ;;
265 *:MirBSD:*:*)
266 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
267 exit ;;
268 *:Sortix:*:*)
269 echo "$UNAME_MACHINE"-unknown-sortix
270 exit ;;
271 *:Redox:*:*)
272 echo "$UNAME_MACHINE"-unknown-redox
273 exit ;;
274 mips:OSF1:*.*)
275 echo mips-dec-osf1
276 exit ;;
277 alpha:OSF1:*:*)
278 case $UNAME_RELEASE in
279 *4.0)
280 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
281 ;;
282 *5.*)
283 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
284 ;;
285 esac
286 # According to Compaq, /usr/sbin/psrinfo has been available on
287 # OSF/1 and Tru64 systems produced since 1995. I hope that
288 # covers most systems running today. This code pipes the CPU
289 # types through head -n 1, so we only detect the type of CPU 0.
290 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
291 case "$ALPHA_CPU_TYPE" in
292 "EV4 (21064)")
293 UNAME_MACHINE=alpha ;;
294 "EV4.5 (21064)")
295 UNAME_MACHINE=alpha ;;
296 "LCA4 (21066/21068)")
297 UNAME_MACHINE=alpha ;;
298 "EV5 (21164)")
299 UNAME_MACHINE=alphaev5 ;;
300 "EV5.6 (21164A)")
301 UNAME_MACHINE=alphaev56 ;;
302 "EV5.6 (21164PC)")
303 UNAME_MACHINE=alphapca56 ;;
304 "EV5.7 (21164PC)")
305 UNAME_MACHINE=alphapca57 ;;
306 "EV6 (21264)")
307 UNAME_MACHINE=alphaev6 ;;
308 "EV6.7 (21264A)")
309 UNAME_MACHINE=alphaev67 ;;
310 "EV6.8CB (21264C)")
311 UNAME_MACHINE=alphaev68 ;;
312 "EV6.8AL (21264B)")
313 UNAME_MACHINE=alphaev68 ;;
314 "EV6.8CX (21264D)")
315 UNAME_MACHINE=alphaev68 ;;
316 "EV6.9A (21264/EV69A)")
317 UNAME_MACHINE=alphaev69 ;;
318 "EV7 (21364)")
319 UNAME_MACHINE=alphaev7 ;;
320 "EV7.9 (21364A)")
321 UNAME_MACHINE=alphaev79 ;;
322 esac
323 # A Pn.n version is a patched version.
324 # A Vn.n version is a released version.
325 # A Tn.n version is a released field test version.
326 # A Xn.n version is an unreleased experimental baselevel.
327 # 1.2 uses "1.2" for uname -r.
328 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
329 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
330 exitcode=$?
331 trap '' 0
332 exit $exitcode ;;
333 Amiga*:UNIX_System_V:4.0:*)
334 echo m68k-unknown-sysv4
335 exit ;;
336 *:[Aa]miga[Oo][Ss]:*:*)
337 echo "$UNAME_MACHINE"-unknown-amigaos
338 exit ;;
339 *:[Mm]orph[Oo][Ss]:*:*)
340 echo "$UNAME_MACHINE"-unknown-morphos
341 exit ;;
342 *:OS/390:*:*)
343 echo i370-ibm-openedition
344 exit ;;
345 *:z/VM:*:*)
346 echo s390-ibm-zvmoe
347 exit ;;
348 *:OS400:*:*)
349 echo powerpc-ibm-os400
350 exit ;;
351 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
352 echo arm-acorn-riscix"$UNAME_RELEASE"
353 exit ;;
354 arm*:riscos:*:*|arm*:RISCOS:*:*)
355 echo arm-unknown-riscos
356 exit ;;
357 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
358 echo hppa1.1-hitachi-hiuxmpp
359 exit ;;
360 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
361 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
362 if test "`(/bin/universe) 2>/dev/null`" = att ; then
363 echo pyramid-pyramid-sysv3
364 else
365 echo pyramid-pyramid-bsd
366 fi
367 exit ;;
368 NILE*:*:*:dcosx)
369 echo pyramid-pyramid-svr4
370 exit ;;
371 DRS?6000:unix:4.0:6*)
372 echo sparc-icl-nx6
373 exit ;;
374 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
375 case `/usr/bin/uname -p` in
376 sparc) echo sparc-icl-nx7; exit ;;
377 esac ;;
378 s390x:SunOS:*:*)
379 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
380 exit ;;
381 sun4H:SunOS:5.*:*)
382 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
383 exit ;;
384 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
385 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
386 exit ;;
387 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
388 echo i386-pc-auroraux"$UNAME_RELEASE"
389 exit ;;
390 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
391 eval "$set_cc_for_build"
392 SUN_ARCH=i386
393 # If there is a compiler, see if it is configured for 64-bit objects.
394 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
395 # This test works for both compilers.
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
397 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
398 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
399 grep IS_64BIT_ARCH >/dev/null
400 then
401 SUN_ARCH=x86_64
402 fi
403 fi
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
405 exit ;;
406 sun4*:SunOS:6*:*)
407 # According to config.sub, this is the proper way to canonicalize
408 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
409 # it's likely to be more like Solaris than SunOS4.
410 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
411 exit ;;
412 sun4*:SunOS:*:*)
413 case "`/usr/bin/arch -k`" in
414 Series*|S4*)
415 UNAME_RELEASE=`uname -v`
416 ;;
417 esac
418 # Japanese Language versions have a version number like `4.1.3-JL'.
419 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
420 exit ;;
421 sun3*:SunOS:*:*)
422 echo m68k-sun-sunos"$UNAME_RELEASE"
423 exit ;;
424 sun*:*:4.2BSD:*)
425 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
426 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
427 case "`/bin/arch`" in
428 sun3)
429 echo m68k-sun-sunos"$UNAME_RELEASE"
430 ;;
431 sun4)
432 echo sparc-sun-sunos"$UNAME_RELEASE"
433 ;;
434 esac
435 exit ;;
436 aushp:SunOS:*:*)
437 echo sparc-auspex-sunos"$UNAME_RELEASE"
438 exit ;;
439 # The situation for MiNT is a little confusing. The machine name
440 # can be virtually everything (everything which is not
441 # "atarist" or "atariste" at least should have a processor
442 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
443 # to the lowercase version "mint" (or "freemint"). Finally
444 # the system name "TOS" denotes a system which is actually not
445 # MiNT. But MiNT is downward compatible to TOS, so this should
446 # be no problem.
447 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
448 echo m68k-atari-mint"$UNAME_RELEASE"
449 exit ;;
450 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
451 echo m68k-atari-mint"$UNAME_RELEASE"
452 exit ;;
453 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
454 echo m68k-atari-mint"$UNAME_RELEASE"
455 exit ;;
456 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
457 echo m68k-milan-mint"$UNAME_RELEASE"
458 exit ;;
459 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
460 echo m68k-hades-mint"$UNAME_RELEASE"
461 exit ;;
462 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
463 echo m68k-unknown-mint"$UNAME_RELEASE"
464 exit ;;
465 m68k:machten:*:*)
466 echo m68k-apple-machten"$UNAME_RELEASE"
467 exit ;;
468 powerpc:machten:*:*)
469 echo powerpc-apple-machten"$UNAME_RELEASE"
470 exit ;;
471 RISC*:Mach:*:*)
472 echo mips-dec-mach_bsd4.3
473 exit ;;
474 RISC*:ULTRIX:*:*)
475 echo mips-dec-ultrix"$UNAME_RELEASE"
476 exit ;;
477 VAX*:ULTRIX*:*:*)
478 echo vax-dec-ultrix"$UNAME_RELEASE"
479 exit ;;
480 2020:CLIX:*:* | 2430:CLIX:*:*)
481 echo clipper-intergraph-clix"$UNAME_RELEASE"
482 exit ;;
483 mips:*:*:UMIPS | mips:*:*:RISCos)
484 eval "$set_cc_for_build"
485 sed 's/^ //' << EOF > "$dummy.c"
486 #ifdef __cplusplus
487 #include <stdio.h> /* for printf() prototype */
488 int main (int argc, char *argv[]) {
489 #else
490 int main (argc, argv) int argc; char *argv[]; {
491 #endif
492 #if defined (host_mips) && defined (MIPSEB)
493 #if defined (SYSTYPE_SYSV)
494 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
495 #endif
496 #if defined (SYSTYPE_SVR4)
497 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
498 #endif
499 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
500 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
501 #endif
502 #endif
503 exit (-1);
504 }
505 EOF
506 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
507 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
508 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
509 { echo "$SYSTEM_NAME"; exit; }
510 echo mips-mips-riscos"$UNAME_RELEASE"
511 exit ;;
512 Motorola:PowerMAX_OS:*:*)
513 echo powerpc-motorola-powermax
514 exit ;;
515 Motorola:*:4.3:PL8-*)
516 echo powerpc-harris-powermax
517 exit ;;
518 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
519 echo powerpc-harris-powermax
520 exit ;;
521 Night_Hawk:Power_UNIX:*:*)
522 echo powerpc-harris-powerunix
523 exit ;;
524 m88k:CX/UX:7*:*)
525 echo m88k-harris-cxux7
526 exit ;;
527 m88k:*:4*:R4*)
528 echo m88k-motorola-sysv4
529 exit ;;
530 m88k:*:3*:R3*)
531 echo m88k-motorola-sysv3
532 exit ;;
533 AViiON:dgux:*:*)
534 # DG/UX returns AViiON for all architectures
535 UNAME_PROCESSOR=`/usr/bin/uname -p`
536 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
537 then
538 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
539 [ "$TARGET_BINARY_INTERFACE"x = x ]
540 then
541 echo m88k-dg-dgux"$UNAME_RELEASE"
542 else
543 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
544 fi
545 else
546 echo i586-dg-dgux"$UNAME_RELEASE"
547 fi
548 exit ;;
549 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
550 echo m88k-dolphin-sysv3
551 exit ;;
552 M88*:*:R3*:*)
553 # Delta 88k system running SVR3
554 echo m88k-motorola-sysv3
555 exit ;;
556 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
557 echo m88k-tektronix-sysv3
558 exit ;;
559 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
560 echo m68k-tektronix-bsd
561 exit ;;
562 *:IRIX*:*:*)
563 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
564 exit ;;
565 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
566 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
567 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
568 i*86:AIX:*:*)
569 echo i386-ibm-aix
570 exit ;;
571 ia64:AIX:*:*)
572 if [ -x /usr/bin/oslevel ] ; then
573 IBM_REV=`/usr/bin/oslevel`
574 else
575 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
576 fi
577 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
578 exit ;;
579 *:AIX:2:3)
580 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
581 eval "$set_cc_for_build"
582 sed 's/^ //' << EOF > "$dummy.c"
583 #include <sys/systemcfg.h>
584
585 main()
586 {
587 if (!__power_pc())
588 exit(1);
589 puts("powerpc-ibm-aix3.2.5");
590 exit(0);
591 }
592 EOF
593 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
594 then
595 echo "$SYSTEM_NAME"
596 else
597 echo rs6000-ibm-aix3.2.5
598 fi
599 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
600 echo rs6000-ibm-aix3.2.4
601 else
602 echo rs6000-ibm-aix3.2
603 fi
604 exit ;;
605 *:AIX:*:[4567])
606 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
607 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
608 IBM_ARCH=rs6000
609 else
610 IBM_ARCH=powerpc
611 fi
612 if [ -x /usr/bin/lslpp ] ; then
613 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
614 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
615 else
616 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
617 fi
618 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
619 exit ;;
620 *:AIX:*:*)
621 echo rs6000-ibm-aix
622 exit ;;
623 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
624 echo romp-ibm-bsd4.4
625 exit ;;
626 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
627 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
628 exit ;; # report: romp-ibm BSD 4.3
629 *:BOSX:*:*)
630 echo rs6000-bull-bosx
631 exit ;;
632 DPX/2?00:B.O.S.:*:*)
633 echo m68k-bull-sysv3
634 exit ;;
635 9000/[34]??:4.3bsd:1.*:*)
636 echo m68k-hp-bsd
637 exit ;;
638 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
639 echo m68k-hp-bsd4.4
640 exit ;;
641 9000/[34678]??:HP-UX:*:*)
642 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
643 case "$UNAME_MACHINE" in
644 9000/31?) HP_ARCH=m68000 ;;
645 9000/[34]??) HP_ARCH=m68k ;;
646 9000/[678][0-9][0-9])
647 if [ -x /usr/bin/getconf ]; then
648 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
649 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
650 case "$sc_cpu_version" in
651 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
652 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
653 532) # CPU_PA_RISC2_0
654 case "$sc_kernel_bits" in
655 32) HP_ARCH=hppa2.0n ;;
656 64) HP_ARCH=hppa2.0w ;;
657 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
658 esac ;;
659 esac
660 fi
661 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
663 sed 's/^ //' << EOF > "$dummy.c"
664
665 #define _HPUX_SOURCE
666 #include <stdlib.h>
667 #include <unistd.h>
668
669 int main ()
670 {
671 #if defined(_SC_KERNEL_BITS)
672 long bits = sysconf(_SC_KERNEL_BITS);
673 #endif
674 long cpu = sysconf (_SC_CPU_VERSION);
675
676 switch (cpu)
677 {
678 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
679 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
680 case CPU_PA_RISC2_0:
681 #if defined(_SC_KERNEL_BITS)
682 switch (bits)
683 {
684 case 64: puts ("hppa2.0w"); break;
685 case 32: puts ("hppa2.0n"); break;
686 default: puts ("hppa2.0"); break;
687 } break;
688 #else /* !defined(_SC_KERNEL_BITS) */
689 puts ("hppa2.0"); break;
690 #endif
691 default: puts ("hppa1.0"); break;
692 }
693 exit (0);
694 }
695 EOF
696 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
697 test -z "$HP_ARCH" && HP_ARCH=hppa
698 fi ;;
699 esac
700 if [ "$HP_ARCH" = hppa2.0w ]
701 then
702 eval "$set_cc_for_build"
703
704 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
705 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
706 # generating 64-bit code. GNU and HP use different nomenclature:
707 #
708 # $ CC_FOR_BUILD=cc ./config.guess
709 # => hppa2.0w-hp-hpux11.23
710 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
711 # => hppa64-hp-hpux11.23
712
713 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
714 grep -q __LP64__
715 then
716 HP_ARCH=hppa2.0w
717 else
718 HP_ARCH=hppa64
719 fi
720 fi
721 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
722 exit ;;
723 ia64:HP-UX:*:*)
724 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
725 echo ia64-hp-hpux"$HPUX_REV"
726 exit ;;
727 3050*:HI-UX:*:*)
728 eval "$set_cc_for_build"
729 sed 's/^ //' << EOF > "$dummy.c"
730 #include <unistd.h>
731 int
732 main ()
733 {
734 long cpu = sysconf (_SC_CPU_VERSION);
735 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
736 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
737 results, however. */
738 if (CPU_IS_PA_RISC (cpu))
739 {
740 switch (cpu)
741 {
742 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
743 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
744 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
745 default: puts ("hppa-hitachi-hiuxwe2"); break;
746 }
747 }
748 else if (CPU_IS_HP_MC68K (cpu))
749 puts ("m68k-hitachi-hiuxwe2");
750 else puts ("unknown-hitachi-hiuxwe2");
751 exit (0);
752 }
753 EOF
754 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
755 { echo "$SYSTEM_NAME"; exit; }
756 echo unknown-hitachi-hiuxwe2
757 exit ;;
758 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
759 echo hppa1.1-hp-bsd
760 exit ;;
761 9000/8??:4.3bsd:*:*)
762 echo hppa1.0-hp-bsd
763 exit ;;
764 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
765 echo hppa1.0-hp-mpeix
766 exit ;;
767 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
768 echo hppa1.1-hp-osf
769 exit ;;
770 hp8??:OSF1:*:*)
771 echo hppa1.0-hp-osf
772 exit ;;
773 i*86:OSF1:*:*)
774 if [ -x /usr/sbin/sysversion ] ; then
775 echo "$UNAME_MACHINE"-unknown-osf1mk
776 else
777 echo "$UNAME_MACHINE"-unknown-osf1
778 fi
779 exit ;;
780 parisc*:Lites*:*:*)
781 echo hppa1.1-hp-lites
782 exit ;;
783 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
784 echo c1-convex-bsd
785 exit ;;
786 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
787 if getsysinfo -f scalar_acc
788 then echo c32-convex-bsd
789 else echo c2-convex-bsd
790 fi
791 exit ;;
792 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
793 echo c34-convex-bsd
794 exit ;;
795 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
796 echo c38-convex-bsd
797 exit ;;
798 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
799 echo c4-convex-bsd
800 exit ;;
801 CRAY*Y-MP:*:*:*)
802 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
803 exit ;;
804 CRAY*[A-Z]90:*:*:*)
805 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
806 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
807 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
808 -e 's/\.[^.]*$/.X/'
809 exit ;;
810 CRAY*TS:*:*:*)
811 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
812 exit ;;
813 CRAY*T3E:*:*:*)
814 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
815 exit ;;
816 CRAY*SV1:*:*:*)
817 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
818 exit ;;
819 *:UNICOS/mp:*:*)
820 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
821 exit ;;
822 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
823 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
824 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
825 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
826 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
827 exit ;;
828 5000:UNIX_System_V:4.*:*)
829 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
830 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
831 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
832 exit ;;
833 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
834 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
835 exit ;;
836 sparc*:BSD/OS:*:*)
837 echo sparc-unknown-bsdi"$UNAME_RELEASE"
838 exit ;;
839 *:BSD/OS:*:*)
840 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
841 exit ;;
842 *:FreeBSD:*:*)
843 UNAME_PROCESSOR=`/usr/bin/uname -p`
844 case "$UNAME_PROCESSOR" in
845 amd64)
846 UNAME_PROCESSOR=x86_64 ;;
847 i386)
848 UNAME_PROCESSOR=i586 ;;
849 esac
850 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
851 exit ;;
852 i*:CYGWIN*:*)
853 echo "$UNAME_MACHINE"-pc-cygwin
854 exit ;;
855 *:MINGW64*:*)
856 echo "$UNAME_MACHINE"-pc-mingw64
857 exit ;;
858 *:MINGW*:*)
859 echo "$UNAME_MACHINE"-pc-mingw32
860 exit ;;
861 *:MSYS*:*)
862 echo "$UNAME_MACHINE"-pc-msys
863 exit ;;
864 i*:PW*:*)
865 echo "$UNAME_MACHINE"-pc-pw32
866 exit ;;
867 *:Interix*:*)
868 case "$UNAME_MACHINE" in
869 x86)
870 echo i586-pc-interix"$UNAME_RELEASE"
871 exit ;;
872 authenticamd | genuineintel | EM64T)
873 echo x86_64-unknown-interix"$UNAME_RELEASE"
874 exit ;;
875 IA64)
876 echo ia64-unknown-interix"$UNAME_RELEASE"
877 exit ;;
878 esac ;;
879 i*:UWIN*:*)
880 echo "$UNAME_MACHINE"-pc-uwin
881 exit ;;
882 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
883 echo x86_64-unknown-cygwin
884 exit ;;
885 prep*:SunOS:5.*:*)
886 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
887 exit ;;
888 *:GNU:*:*)
889 # the GNU system
890 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
891 exit ;;
892 *:GNU/*:*:*)
893 # other systems with GNU libc and userland
894 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
895 exit ;;
896 i*86:Minix:*:*)
897 echo "$UNAME_MACHINE"-pc-minix
898 exit ;;
899 aarch64:Linux:*:*)
900 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
901 exit ;;
902 aarch64_be:Linux:*:*)
903 UNAME_MACHINE=aarch64_be
904 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
905 exit ;;
906 alpha:Linux:*:*)
907 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
908 EV5) UNAME_MACHINE=alphaev5 ;;
909 EV56) UNAME_MACHINE=alphaev56 ;;
910 PCA56) UNAME_MACHINE=alphapca56 ;;
911 PCA57) UNAME_MACHINE=alphapca56 ;;
912 EV6) UNAME_MACHINE=alphaev6 ;;
913 EV67) UNAME_MACHINE=alphaev67 ;;
914 EV68*) UNAME_MACHINE=alphaev68 ;;
915 esac
916 objdump --private-headers /bin/sh | grep -q ld.so.1
917 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
918 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
919 exit ;;
920 arc:Linux:*:* | arceb:Linux:*:*)
921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
922 exit ;;
923 arm*:Linux:*:*)
924 eval "$set_cc_for_build"
925 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
926 | grep -q __ARM_EABI__
927 then
928 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
929 else
930 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
931 | grep -q __ARM_PCS_VFP
932 then
933 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
934 else
935 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
936 fi
937 fi
938 exit ;;
939 avr32*:Linux:*:*)
940 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
941 exit ;;
942 cris:Linux:*:*)
943 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
944 exit ;;
945 crisv32:Linux:*:*)
946 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
947 exit ;;
948 e2k:Linux:*:*)
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
950 exit ;;
951 frv:Linux:*:*)
952 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
953 exit ;;
954 hexagon:Linux:*:*)
955 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
956 exit ;;
957 i*86:Linux:*:*)
958 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
959 exit ;;
960 ia64:Linux:*:*)
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
962 exit ;;
963 k1om:Linux:*:*)
964 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
965 exit ;;
966 m32r*:Linux:*:*)
967 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
968 exit ;;
969 m68*:Linux:*:*)
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
971 exit ;;
972 mips:Linux:*:* | mips64:Linux:*:*)
973 eval "$set_cc_for_build"
974 sed 's/^ //' << EOF > "$dummy.c"
975 #undef CPU
976 #undef ${UNAME_MACHINE}
977 #undef ${UNAME_MACHINE}el
978 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
979 CPU=${UNAME_MACHINE}el
980 #else
981 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
982 CPU=${UNAME_MACHINE}
983 #else
984 CPU=
985 #endif
986 #endif
987 EOF
988 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
989 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
990 ;;
991 mips64el:Linux:*:*)
992 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
993 exit ;;
994 openrisc*:Linux:*:*)
995 echo or1k-unknown-linux-"$LIBC"
996 exit ;;
997 or32:Linux:*:* | or1k*:Linux:*:*)
998 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
999 exit ;;
1000 padre:Linux:*:*)
1001 echo sparc-unknown-linux-"$LIBC"
1002 exit ;;
1003 parisc64:Linux:*:* | hppa64:Linux:*:*)
1004 echo hppa64-unknown-linux-"$LIBC"
1005 exit ;;
1006 parisc:Linux:*:* | hppa:Linux:*:*)
1007 # Look for CPU level
1008 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1009 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1010 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1011 *) echo hppa-unknown-linux-"$LIBC" ;;
1012 esac
1013 exit ;;
1014 ppc64:Linux:*:*)
1015 echo powerpc64-unknown-linux-"$LIBC"
1016 exit ;;
1017 ppc:Linux:*:*)
1018 echo powerpc-unknown-linux-"$LIBC"
1019 exit ;;
1020 ppc64le:Linux:*:*)
1021 echo powerpc64le-unknown-linux-"$LIBC"
1022 exit ;;
1023 ppcle:Linux:*:*)
1024 echo powerpcle-unknown-linux-"$LIBC"
1025 exit ;;
1026 riscv32:Linux:*:* | riscv64:Linux:*:*)
1027 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1028 exit ;;
1029 s390:Linux:*:* | s390x:Linux:*:*)
1030 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
1031 exit ;;
1032 sh64*:Linux:*:*)
1033 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1034 exit ;;
1035 sh*:Linux:*:*)
1036 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1037 exit ;;
1038 sparc:Linux:*:* | sparc64:Linux:*:*)
1039 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1040 exit ;;
1041 tile*:Linux:*:*)
1042 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1043 exit ;;
1044 vax:Linux:*:*)
1045 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
1046 exit ;;
1047 x86_64:Linux:*:*)
1048 if objdump -f /bin/sh | grep -q elf32-x86-64; then
1049 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
1050 else
1051 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1052 fi
1053 exit ;;
1054 xtensa*:Linux:*:*)
1055 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1056 exit ;;
1057 i*86:DYNIX/ptx:4*:*)
1058 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1059 # earlier versions are messed up and put the nodename in both
1060 # sysname and nodename.
1061 echo i386-sequent-sysv4
1062 exit ;;
1063 i*86:UNIX_SV:4.2MP:2.*)
1064 # Unixware is an offshoot of SVR4, but it has its own version
1065 # number series starting with 2...
1066 # I am not positive that other SVR4 systems won't match this,
1067 # I just have to hope. -- rms.
1068 # Use sysv4.2uw... so that sysv4* matches it.
1069 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
1070 exit ;;
1071 i*86:OS/2:*:*)
1072 # If we were able to find `uname', then EMX Unix compatibility
1073 # is probably installed.
1074 echo "$UNAME_MACHINE"-pc-os2-emx
1075 exit ;;
1076 i*86:XTS-300:*:STOP)
1077 echo "$UNAME_MACHINE"-unknown-stop
1078 exit ;;
1079 i*86:atheos:*:*)
1080 echo "$UNAME_MACHINE"-unknown-atheos
1081 exit ;;
1082 i*86:syllable:*:*)
1083 echo "$UNAME_MACHINE"-pc-syllable
1084 exit ;;
1085 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1086 echo i386-unknown-lynxos"$UNAME_RELEASE"
1087 exit ;;
1088 i*86:*DOS:*:*)
1089 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1090 exit ;;
1091 i*86:*:4.*:*)
1092 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
1093 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1094 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
1095 else
1096 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
1097 fi
1098 exit ;;
1099 i*86:*:5:[678]*)
1100 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1101 case `/bin/uname -X | grep "^Machine"` in
1102 *486*) UNAME_MACHINE=i486 ;;
1103 *Pentium) UNAME_MACHINE=i586 ;;
1104 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1105 esac
1106 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
1107 exit ;;
1108 i*86:*:3.2:*)
1109 if test -f /usr/options/cb.name; then
1110 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1111 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
1112 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1113 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1114 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1115 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1116 && UNAME_MACHINE=i586
1117 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1118 && UNAME_MACHINE=i686
1119 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1120 && UNAME_MACHINE=i686
1121 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
1122 else
1123 echo "$UNAME_MACHINE"-pc-sysv32
1124 fi
1125 exit ;;
1126 pc:*:*:*)
1127 # Left here for compatibility:
1128 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1129 # the processor, so we play safe by assuming i586.
1130 # Note: whatever this is, it MUST be the same as what config.sub
1131 # prints for the "djgpp" host, or else GDB configure will decide that
1132 # this is a cross-build.
1133 echo i586-pc-msdosdjgpp
1134 exit ;;
1135 Intel:Mach:3*:*)
1136 echo i386-pc-mach3
1137 exit ;;
1138 paragon:*:*:*)
1139 echo i860-intel-osf1
1140 exit ;;
1141 i860:*:4.*:*) # i860-SVR4
1142 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1143 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
1144 else # Add other i860-SVR4 vendors below as they are discovered.
1145 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
1146 fi
1147 exit ;;
1148 mini*:CTIX:SYS*5:*)
1149 # "miniframe"
1150 echo m68010-convergent-sysv
1151 exit ;;
1152 mc68k:UNIX:SYSTEM5:3.51m)
1153 echo m68k-convergent-sysv
1154 exit ;;
1155 M680?0:D-NIX:5.3:*)
1156 echo m68k-diab-dnix
1157 exit ;;
1158 M68*:*:R3V[5678]*:*)
1159 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1160 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)
1161 OS_REL=''
1162 test -r /etc/.relid \
1163 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1164 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1165 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1166 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1167 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1168 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1169 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1170 && { echo i486-ncr-sysv4; exit; } ;;
1171 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1172 OS_REL='.3'
1173 test -r /etc/.relid \
1174 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1175 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1176 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1177 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1178 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
1179 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1180 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1181 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1182 echo m68k-unknown-lynxos"$UNAME_RELEASE"
1183 exit ;;
1184 mc68030:UNIX_System_V:4.*:*)
1185 echo m68k-atari-sysv4
1186 exit ;;
1187 TSUNAMI:LynxOS:2.*:*)
1188 echo sparc-unknown-lynxos"$UNAME_RELEASE"
1189 exit ;;
1190 rs6000:LynxOS:2.*:*)
1191 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
1192 exit ;;
1193 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1194 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
1195 exit ;;
1196 SM[BE]S:UNIX_SV:*:*)
1197 echo mips-dde-sysv"$UNAME_RELEASE"
1198 exit ;;
1199 RM*:ReliantUNIX-*:*:*)
1200 echo mips-sni-sysv4
1201 exit ;;
1202 RM*:SINIX-*:*:*)
1203 echo mips-sni-sysv4
1204 exit ;;
1205 *:SINIX-*:*:*)
1206 if uname -p 2>/dev/null >/dev/null ; then
1207 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1208 echo "$UNAME_MACHINE"-sni-sysv4
1209 else
1210 echo ns32k-sni-sysv
1211 fi
1212 exit ;;
1213 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1214 # says <Richard.M.Bartel@ccMail.Census.GOV>
1215 echo i586-unisys-sysv4
1216 exit ;;
1217 *:UNIX_System_V:4*:FTX*)
1218 # From Gerald Hewes <hewes@openmarket.com>.
1219 # How about differentiating between stratus architectures? -djm
1220 echo hppa1.1-stratus-sysv4
1221 exit ;;
1222 *:*:*:FTX*)
1223 # From seanf@swdc.stratus.com.
1224 echo i860-stratus-sysv4
1225 exit ;;
1226 i*86:VOS:*:*)
1227 # From Paul.Green@stratus.com.
1228 echo "$UNAME_MACHINE"-stratus-vos
1229 exit ;;
1230 *:VOS:*:*)
1231 # From Paul.Green@stratus.com.
1232 echo hppa1.1-stratus-vos
1233 exit ;;
1234 mc68*:A/UX:*:*)
1235 echo m68k-apple-aux"$UNAME_RELEASE"
1236 exit ;;
1237 news*:NEWS-OS:6*:*)
1238 echo mips-sony-newsos6
1239 exit ;;
1240 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1241 if [ -d /usr/nec ]; then
1242 echo mips-nec-sysv"$UNAME_RELEASE"
1243 else
1244 echo mips-unknown-sysv"$UNAME_RELEASE"
1245 fi
1246 exit ;;
1247 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1248 echo powerpc-be-beos
1249 exit ;;
1250 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1251 echo powerpc-apple-beos
1252 exit ;;
1253 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1254 echo i586-pc-beos
1255 exit ;;
1256 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1257 echo i586-pc-haiku
1258 exit ;;
1259 x86_64:Haiku:*:*)
1260 echo x86_64-unknown-haiku
1261 exit ;;
1262 SX-4:SUPER-UX:*:*)
1263 echo sx4-nec-superux"$UNAME_RELEASE"
1264 exit ;;
1265 SX-5:SUPER-UX:*:*)
1266 echo sx5-nec-superux"$UNAME_RELEASE"
1267 exit ;;
1268 SX-6:SUPER-UX:*:*)
1269 echo sx6-nec-superux"$UNAME_RELEASE"
1270 exit ;;
1271 SX-7:SUPER-UX:*:*)
1272 echo sx7-nec-superux"$UNAME_RELEASE"
1273 exit ;;
1274 SX-8:SUPER-UX:*:*)
1275 echo sx8-nec-superux"$UNAME_RELEASE"
1276 exit ;;
1277 SX-8R:SUPER-UX:*:*)
1278 echo sx8r-nec-superux"$UNAME_RELEASE"
1279 exit ;;
1280 SX-ACE:SUPER-UX:*:*)
1281 echo sxace-nec-superux"$UNAME_RELEASE"
1282 exit ;;
1283 Power*:Rhapsody:*:*)
1284 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
1285 exit ;;
1286 *:Rhapsody:*:*)
1287 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
1288 exit ;;
1289 *:Darwin:*:*)
1290 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1291 eval "$set_cc_for_build"
1292 if test "$UNAME_PROCESSOR" = unknown ; then
1293 UNAME_PROCESSOR=powerpc
1294 fi
1295 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1296 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
1297 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1298 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1299 grep IS_64BIT_ARCH >/dev/null
1300 then
1301 case $UNAME_PROCESSOR in
1302 i386) UNAME_PROCESSOR=x86_64 ;;
1303 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1304 esac
1305 fi
1306 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1307 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1308 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1309 grep IS_PPC >/dev/null
1310 then
1311 UNAME_PROCESSOR=powerpc
1312 fi
1313 fi
1314 elif test "$UNAME_PROCESSOR" = i386 ; then
1315 # Avoid executing cc on OS X 10.9, as it ships with a stub
1316 # that puts up a graphical alert prompting to install
1317 # developer tools. Any system running Mac OS X 10.7 or
1318 # later (Darwin 11 and later) is required to have a 64-bit
1319 # processor. This is not true of the ARM version of Darwin
1320 # that Apple uses in portable devices.
1321 UNAME_PROCESSOR=x86_64
1322 fi
1323 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
1324 exit ;;
1325 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1326 UNAME_PROCESSOR=`uname -p`
1327 if test "$UNAME_PROCESSOR" = x86; then
1328 UNAME_PROCESSOR=i386
1329 UNAME_MACHINE=pc
1330 fi
1331 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
1332 exit ;;
1333 *:QNX:*:4*)
1334 echo i386-pc-qnx
1335 exit ;;
1336 NEO-*:NONSTOP_KERNEL:*:*)
1337 echo neo-tandem-nsk"$UNAME_RELEASE"
1338 exit ;;
1339 NSE-*:NONSTOP_KERNEL:*:*)
1340 echo nse-tandem-nsk"$UNAME_RELEASE"
1341 exit ;;
1342 NSR-*:NONSTOP_KERNEL:*:*)
1343 echo nsr-tandem-nsk"$UNAME_RELEASE"
1344 exit ;;
1345 NSV-*:NONSTOP_KERNEL:*:*)
1346 echo nsv-tandem-nsk"$UNAME_RELEASE"
1347 exit ;;
1348 NSX-*:NONSTOP_KERNEL:*:*)
1349 echo nsx-tandem-nsk"$UNAME_RELEASE"
1350 exit ;;
1351 *:NonStop-UX:*:*)
1352 echo mips-compaq-nonstopux
1353 exit ;;
1354 BS2000:POSIX*:*:*)
1355 echo bs2000-siemens-sysv
1356 exit ;;
1357 DS/*:UNIX_System_V:*:*)
1358 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
1359 exit ;;
1360 *:Plan9:*:*)
1361 # "uname -m" is not consistent, so use $cputype instead. 386
1362 # is converted to i386 for consistency with other x86
1363 # operating systems.
1364 if test "$cputype" = 386; then
1365 UNAME_MACHINE=i386
1366 else
1367 UNAME_MACHINE="$cputype"
1368 fi
1369 echo "$UNAME_MACHINE"-unknown-plan9
1370 exit ;;
1371 *:TOPS-10:*:*)
1372 echo pdp10-unknown-tops10
1373 exit ;;
1374 *:TENEX:*:*)
1375 echo pdp10-unknown-tenex
1376 exit ;;
1377 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1378 echo pdp10-dec-tops20
1379 exit ;;
1380 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1381 echo pdp10-xkl-tops20
1382 exit ;;
1383 *:TOPS-20:*:*)
1384 echo pdp10-unknown-tops20
1385 exit ;;
1386 *:ITS:*:*)
1387 echo pdp10-unknown-its
1388 exit ;;
1389 SEI:*:*:SEIUX)
1390 echo mips-sei-seiux"$UNAME_RELEASE"
1391 exit ;;
1392 *:DragonFly:*:*)
1393 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
1394 exit ;;
1395 *:*VMS:*:*)
1396 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1397 case "$UNAME_MACHINE" in
1398 A*) echo alpha-dec-vms ; exit ;;
1399 I*) echo ia64-dec-vms ; exit ;;
1400 V*) echo vax-dec-vms ; exit ;;
1401 esac ;;
1402 *:XENIX:*:SysV)
1403 echo i386-pc-xenix
1404 exit ;;
1405 i*86:skyos:*:*)
1406 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
1407 exit ;;
1408 i*86:rdos:*:*)
1409 echo "$UNAME_MACHINE"-pc-rdos
1410 exit ;;
1411 i*86:AROS:*:*)
1412 echo "$UNAME_MACHINE"-pc-aros
1413 exit ;;
1414 x86_64:VMkernel:*:*)
1415 echo "$UNAME_MACHINE"-unknown-esx
1416 exit ;;
1417 amd64:Isilon\ OneFS:*:*)
1418 echo x86_64-unknown-onefs
1419 exit ;;
1420 esac
1421
1422 echo "$0: unable to guess system type" >&2
1423
1424 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1425 mips:Linux | mips64:Linux)
1426 # If we got here on MIPS GNU/Linux, output extra information.
1427 cat >&2 <<EOF
1428
1429 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1430 the system type. Please install a C compiler and try again.
1431 EOF
1432 ;;
1433 esac
1434
1435 cat >&2 <<EOF
1436
1437 This script (version $timestamp), has failed to recognize the
1438 operating system you are using. If your script is old, overwrite *all*
1439 copies of config.guess and config.sub with the latest versions from:
1440
1441 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1442 and
1443 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1444
1445 If $0 has already been updated, send the following data and any
1446 information you think might be pertinent to config-patches@gnu.org to
1447 provide the necessary information to handle your system.
1448
1449 config.guess timestamp = $timestamp
1450
1451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1455
1456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1457 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1458
1459 hostinfo = `(hostinfo) 2>/dev/null`
1460 /bin/universe = `(/bin/universe) 2>/dev/null`
1461 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1462 /bin/arch = `(/bin/arch) 2>/dev/null`
1463 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1465
1466 UNAME_MACHINE = "$UNAME_MACHINE"
1467 UNAME_RELEASE = "$UNAME_RELEASE"
1468 UNAME_SYSTEM = "$UNAME_SYSTEM"
1469 UNAME_VERSION = "$UNAME_VERSION"
1470 EOF
1471
1472 exit 1
1473
1474 # Local variables:
1475 # eval: (add-hook 'write-file-functions 'time-stamp)
1476 # time-stamp-start: "timestamp='"
1477 # time-stamp-format: "%:y-%02m-%02d"
1478 # time-stamp-end: "'"
1479 # End:
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-22'
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
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
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
25
26
27 # Please send patches to <config-patches@gnu.org>.
28 #
29 # Configuration subroutine to validate and canonicalize a configuration type.
30 # Supply the specified configuration type as an argument.
31 # If it is invalid, we print an error message on stderr and exit with code 1.
32 # Otherwise, we print the canonical config type on stdout and succeed.
33
34 # You can get the latest version of this script from:
35 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
36
37 # This file is supposed to be the same for all GNU packages
38 # and recognize all the CPU types, system types and aliases
39 # that are meaningful with *any* GNU software.
40 # Each package is responsible for reporting which valid configurations
41 # it does not support. The user should be able to distinguish
42 # a failure to support a valid configuration from a meaningless
43 # configuration.
44
45 # The goal of this file is to map all the various variations of a given
46 # machine specification into a single specification in the form:
47 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
48 # or in some cases, the newer four-part form:
49 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
50 # It is wrong to echo any other type of specification.
51
52 me=`echo "$0" | sed -e 's,.*/,,'`
53
54 usage="\
55 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
56
57 Canonicalize a configuration name.
58
59 Options:
60 -h, --help print this help, then exit
61 -t, --time-stamp print date of last modification, then exit
62 -v, --version print version number, then exit
63
64 Report bugs and patches to <config-patches@gnu.org>."
65
66 version="\
67 GNU config.sub ($timestamp)
68
69 Copyright 1992-2018 Free Software Foundation, Inc.
70
71 This is free software; see the source for copying conditions. There is NO
72 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
73
74 help="
75 Try \`$me --help' for more information."
76
77 # Parse command line
78 while test $# -gt 0 ; do
79 case $1 in
80 --time-stamp | --time* | -t )
81 echo "$timestamp" ; exit ;;
82 --version | -v )
83 echo "$version" ; exit ;;
84 --help | --h* | -h )
85 echo "$usage"; exit ;;
86 -- ) # Stop option processing
87 shift; break ;;
88 - ) # Use stdin as input.
89 break ;;
90 -* )
91 echo "$me: invalid option $1$help"
92 exit 1 ;;
93
94 *local*)
95 # First pass through any local machine types.
96 echo "$1"
97 exit ;;
98
99 * )
100 break ;;
101 esac
102 done
103
104 case $# in
105 0) echo "$me: missing argument$help" >&2
106 exit 1;;
107 1) ;;
108 *) echo "$me: too many arguments$help" >&2
109 exit 1;;
110 esac
111
112 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
113 # Here we must recognize all the valid KERNEL-OS combinations.
114 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
115 case $maybe_os in
116 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
117 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
119 kopensolaris*-gnu* | cloudabi*-eabi* | \
120 storm-chaos* | os2-emx* | rtmk-nova*)
121 os=-$maybe_os
122 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123 ;;
124 android-linux)
125 os=-linux-android
126 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
127 ;;
128 *)
129 basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
130 if [ "$basic_machine" != "$1" ]
131 then os=`echo "$1" | sed 's/.*-/-/'`
132 else os=; fi
133 ;;
134 esac
135
136 ### Let's recognize common machines as not being operating systems so
137 ### that things like config.sub decstation-3100 work. We also
138 ### recognize some manufacturers as not being operating systems, so we
139 ### can provide default operating systems below.
140 case $os in
141 -sun*os*)
142 # Prevent following clause from handling this invalid input.
143 ;;
144 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
145 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
146 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
150 -apple | -axis | -knuth | -cray | -microblaze*)
151 os=
152 basic_machine=$1
153 ;;
154 -bluegene*)
155 os=-cnk
156 ;;
157 -sim | -cisco | -oki | -wec | -winbond)
158 os=
159 basic_machine=$1
160 ;;
161 -scout)
162 ;;
163 -wrs)
164 os=-vxworks
165 basic_machine=$1
166 ;;
167 -chorusos*)
168 os=-chorusos
169 basic_machine=$1
170 ;;
171 -chorusrdb)
172 os=-chorusrdb
173 basic_machine=$1
174 ;;
175 -hiux*)
176 os=-hiuxwe2
177 ;;
178 -sco6)
179 os=-sco5v6
180 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
181 ;;
182 -sco5)
183 os=-sco3.2v5
184 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
185 ;;
186 -sco4)
187 os=-sco3.2v4
188 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
189 ;;
190 -sco3.2.[4-9]*)
191 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
192 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
193 ;;
194 -sco3.2v[4-9]*)
195 # Don't forget version if it is 3.2v4 or newer.
196 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
197 ;;
198 -sco5v6*)
199 # Don't forget version if it is 3.2v4 or newer.
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
201 ;;
202 -sco*)
203 os=-sco3.2v2
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -udk*)
207 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
208 ;;
209 -isc)
210 os=-isc2.2
211 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
212 ;;
213 -clix*)
214 basic_machine=clipper-intergraph
215 ;;
216 -isc*)
217 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
218 ;;
219 -lynx*178)
220 os=-lynxos178
221 ;;
222 -lynx*5)
223 os=-lynxos5
224 ;;
225 -lynx*)
226 os=-lynxos
227 ;;
228 -ptx*)
229 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
230 ;;
231 -psos*)
232 os=-psos
233 ;;
234 -mint | -mint[0-9]*)
235 basic_machine=m68k-atari
236 os=-mint
237 ;;
238 esac
239
240 # Decode aliases for certain CPU-COMPANY combinations.
241 case $basic_machine in
242 # Recognize the basic CPU types without company name.
243 # Some are omitted here because they have special meanings below.
244 1750a | 580 \
245 | a29k \
246 | aarch64 | aarch64_be \
247 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
248 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
249 | am33_2.0 \
250 | arc | arceb \
251 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
252 | avr | avr32 \
253 | ba \
254 | be32 | be64 \
255 | bfin \
256 | c4x | c8051 | clipper \
257 | d10v | d30v | dlx | dsp16xx \
258 | e2k | epiphany \
259 | fido | fr30 | frv | ft32 \
260 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
261 | hexagon \
262 | i370 | i860 | i960 | ia16 | ia64 \
263 | ip2k | iq2000 \
264 | k1om \
265 | le32 | le64 \
266 | lm32 \
267 | m32c | m32r | m32rle | m68000 | m68k | m88k \
268 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
269 | mips | mipsbe | mipseb | mipsel | mipsle \
270 | mips16 \
271 | mips64 | mips64el \
272 | mips64octeon | mips64octeonel \
273 | mips64orion | mips64orionel \
274 | mips64r5900 | mips64r5900el \
275 | mips64vr | mips64vrel \
276 | mips64vr4100 | mips64vr4100el \
277 | mips64vr4300 | mips64vr4300el \
278 | mips64vr5000 | mips64vr5000el \
279 | mips64vr5900 | mips64vr5900el \
280 | mipsisa32 | mipsisa32el \
281 | mipsisa32r2 | mipsisa32r2el \
282 | mipsisa32r6 | mipsisa32r6el \
283 | mipsisa64 | mipsisa64el \
284 | mipsisa64r2 | mipsisa64r2el \
285 | mipsisa64r6 | mipsisa64r6el \
286 | mipsisa64sb1 | mipsisa64sb1el \
287 | mipsisa64sr71k | mipsisa64sr71kel \
288 | mipsr5900 | mipsr5900el \
289 | mipstx39 | mipstx39el \
290 | mn10200 | mn10300 \
291 | moxie \
292 | mt \
293 | msp430 \
294 | nds32 | nds32le | nds32be \
295 | nios | nios2 | nios2eb | nios2el \
296 | ns16k | ns32k \
297 | open8 | or1k | or1knd | or32 \
298 | pdp10 | pj | pjl \
299 | powerpc | powerpc64 | powerpc64le | powerpcle \
300 | pru \
301 | pyramid \
302 | riscv32 | riscv64 \
303 | rl78 | rx \
304 | score \
305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
306 | sh64 | sh64le \
307 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
308 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
309 | spu \
310 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
311 | ubicom32 \
312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
313 | visium \
314 | wasm32 \
315 | x86 | xc16x | xstormy16 | xtensa \
316 | z8k | z80)
317 basic_machine=$basic_machine-unknown
318 ;;
319 c54x)
320 basic_machine=tic54x-unknown
321 ;;
322 c55x)
323 basic_machine=tic55x-unknown
324 ;;
325 c6x)
326 basic_machine=tic6x-unknown
327 ;;
328 leon|leon[3-9])
329 basic_machine=sparc-$basic_machine
330 ;;
331 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
332 basic_machine=$basic_machine-unknown
333 os=-none
334 ;;
335 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
336 ;;
337 ms1)
338 basic_machine=mt-unknown
339 ;;
340
341 strongarm | thumb | xscale)
342 basic_machine=arm-unknown
343 ;;
344 xgate)
345 basic_machine=$basic_machine-unknown
346 os=-none
347 ;;
348 xscaleeb)
349 basic_machine=armeb-unknown
350 ;;
351
352 xscaleel)
353 basic_machine=armel-unknown
354 ;;
355
356 # We use `pc' rather than `unknown'
357 # because (1) that's what they normally are, and
358 # (2) the word "unknown" tends to confuse beginning users.
359 i*86 | x86_64)
360 basic_machine=$basic_machine-pc
361 ;;
362 # Object if more than one company name word.
363 *-*-*)
364 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
365 exit 1
366 ;;
367 # Recognize the basic CPU types with company name.
368 580-* \
369 | a29k-* \
370 | aarch64-* | aarch64_be-* \
371 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
372 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
373 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
374 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
375 | avr-* | avr32-* \
376 | ba-* \
377 | be32-* | be64-* \
378 | bfin-* | bs2000-* \
379 | c[123]* | c30-* | [cjt]90-* | c4x-* \
380 | c8051-* | clipper-* | craynv-* | cydra-* \
381 | d10v-* | d30v-* | dlx-* \
382 | e2k-* | elxsi-* \
383 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
384 | h8300-* | h8500-* \
385 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
386 | hexagon-* \
387 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
388 | ip2k-* | iq2000-* \
389 | k1om-* \
390 | le32-* | le64-* \
391 | lm32-* \
392 | m32c-* | m32r-* | m32rle-* \
393 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
394 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
395 | microblaze-* | microblazeel-* \
396 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
397 | mips16-* \
398 | mips64-* | mips64el-* \
399 | mips64octeon-* | mips64octeonel-* \
400 | mips64orion-* | mips64orionel-* \
401 | mips64r5900-* | mips64r5900el-* \
402 | mips64vr-* | mips64vrel-* \
403 | mips64vr4100-* | mips64vr4100el-* \
404 | mips64vr4300-* | mips64vr4300el-* \
405 | mips64vr5000-* | mips64vr5000el-* \
406 | mips64vr5900-* | mips64vr5900el-* \
407 | mipsisa32-* | mipsisa32el-* \
408 | mipsisa32r2-* | mipsisa32r2el-* \
409 | mipsisa32r6-* | mipsisa32r6el-* \
410 | mipsisa64-* | mipsisa64el-* \
411 | mipsisa64r2-* | mipsisa64r2el-* \
412 | mipsisa64r6-* | mipsisa64r6el-* \
413 | mipsisa64sb1-* | mipsisa64sb1el-* \
414 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
415 | mipsr5900-* | mipsr5900el-* \
416 | mipstx39-* | mipstx39el-* \
417 | mmix-* \
418 | mt-* \
419 | msp430-* \
420 | nds32-* | nds32le-* | nds32be-* \
421 | nios-* | nios2-* | nios2eb-* | nios2el-* \
422 | none-* | np1-* | ns16k-* | ns32k-* \
423 | open8-* \
424 | or1k*-* \
425 | orion-* \
426 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
427 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
428 | pru-* \
429 | pyramid-* \
430 | riscv32-* | riscv64-* \
431 | rl78-* | romp-* | rs6000-* | rx-* \
432 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
433 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
434 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
435 | sparclite-* \
436 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
437 | tahoe-* \
438 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
439 | tile*-* \
440 | tron-* \
441 | ubicom32-* \
442 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
443 | vax-* \
444 | visium-* \
445 | wasm32-* \
446 | we32k-* \
447 | x86-* | x86_64-* | xc16x-* | xps100-* \
448 | xstormy16-* | xtensa*-* \
449 | ymp-* \
450 | z8k-* | z80-*)
451 ;;
452 # Recognize the basic CPU types without company name, with glob match.
453 xtensa*)
454 basic_machine=$basic_machine-unknown
455 ;;
456 # Recognize the various machine names and aliases which stand
457 # for a CPU type and a company and sometimes even an OS.
458 386bsd)
459 basic_machine=i386-pc
460 os=-bsd
461 ;;
462 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
463 basic_machine=m68000-att
464 ;;
465 3b*)
466 basic_machine=we32k-att
467 ;;
468 a29khif)
469 basic_machine=a29k-amd
470 os=-udi
471 ;;
472 abacus)
473 basic_machine=abacus-unknown
474 ;;
475 adobe68k)
476 basic_machine=m68010-adobe
477 os=-scout
478 ;;
479 alliant | fx80)
480 basic_machine=fx80-alliant
481 ;;
482 altos | altos3068)
483 basic_machine=m68k-altos
484 ;;
485 am29k)
486 basic_machine=a29k-none
487 os=-bsd
488 ;;
489 amd64)
490 basic_machine=x86_64-pc
491 ;;
492 amd64-*)
493 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
494 ;;
495 amdahl)
496 basic_machine=580-amdahl
497 os=-sysv
498 ;;
499 amiga | amiga-*)
500 basic_machine=m68k-unknown
501 ;;
502 amigaos | amigados)
503 basic_machine=m68k-unknown
504 os=-amigaos
505 ;;
506 amigaunix | amix)
507 basic_machine=m68k-unknown
508 os=-sysv4
509 ;;
510 apollo68)
511 basic_machine=m68k-apollo
512 os=-sysv
513 ;;
514 apollo68bsd)
515 basic_machine=m68k-apollo
516 os=-bsd
517 ;;
518 aros)
519 basic_machine=i386-pc
520 os=-aros
521 ;;
522 asmjs)
523 basic_machine=asmjs-unknown
524 ;;
525 aux)
526 basic_machine=m68k-apple
527 os=-aux
528 ;;
529 balance)
530 basic_machine=ns32k-sequent
531 os=-dynix
532 ;;
533 blackfin)
534 basic_machine=bfin-unknown
535 os=-linux
536 ;;
537 blackfin-*)
538 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
539 os=-linux
540 ;;
541 bluegene*)
542 basic_machine=powerpc-ibm
543 os=-cnk
544 ;;
545 c54x-*)
546 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
547 ;;
548 c55x-*)
549 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
550 ;;
551 c6x-*)
552 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
553 ;;
554 c90)
555 basic_machine=c90-cray
556 os=-unicos
557 ;;
558 cegcc)
559 basic_machine=arm-unknown
560 os=-cegcc
561 ;;
562 convex-c1)
563 basic_machine=c1-convex
564 os=-bsd
565 ;;
566 convex-c2)
567 basic_machine=c2-convex
568 os=-bsd
569 ;;
570 convex-c32)
571 basic_machine=c32-convex
572 os=-bsd
573 ;;
574 convex-c34)
575 basic_machine=c34-convex
576 os=-bsd
577 ;;
578 convex-c38)
579 basic_machine=c38-convex
580 os=-bsd
581 ;;
582 cray | j90)
583 basic_machine=j90-cray
584 os=-unicos
585 ;;
586 craynv)
587 basic_machine=craynv-cray
588 os=-unicosmp
589 ;;
590 cr16 | cr16-*)
591 basic_machine=cr16-unknown
592 os=-elf
593 ;;
594 crds | unos)
595 basic_machine=m68k-crds
596 ;;
597 crisv32 | crisv32-* | etraxfs*)
598 basic_machine=crisv32-axis
599 ;;
600 cris | cris-* | etrax*)
601 basic_machine=cris-axis
602 ;;
603 crx)
604 basic_machine=crx-unknown
605 os=-elf
606 ;;
607 da30 | da30-*)
608 basic_machine=m68k-da30
609 ;;
610 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
611 basic_machine=mips-dec
612 ;;
613 decsystem10* | dec10*)
614 basic_machine=pdp10-dec
615 os=-tops10
616 ;;
617 decsystem20* | dec20*)
618 basic_machine=pdp10-dec
619 os=-tops20
620 ;;
621 delta | 3300 | motorola-3300 | motorola-delta \
622 | 3300-motorola | delta-motorola)
623 basic_machine=m68k-motorola
624 ;;
625 delta88)
626 basic_machine=m88k-motorola
627 os=-sysv3
628 ;;
629 dicos)
630 basic_machine=i686-pc
631 os=-dicos
632 ;;
633 djgpp)
634 basic_machine=i586-pc
635 os=-msdosdjgpp
636 ;;
637 dpx20 | dpx20-*)
638 basic_machine=rs6000-bull
639 os=-bosx
640 ;;
641 dpx2*)
642 basic_machine=m68k-bull
643 os=-sysv3
644 ;;
645 e500v[12])
646 basic_machine=powerpc-unknown
647 os=$os"spe"
648 ;;
649 e500v[12]-*)
650 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
651 os=$os"spe"
652 ;;
653 ebmon29k)
654 basic_machine=a29k-amd
655 os=-ebmon
656 ;;
657 elxsi)
658 basic_machine=elxsi-elxsi
659 os=-bsd
660 ;;
661 encore | umax | mmax)
662 basic_machine=ns32k-encore
663 ;;
664 es1800 | OSE68k | ose68k | ose | OSE)
665 basic_machine=m68k-ericsson
666 os=-ose
667 ;;
668 fx2800)
669 basic_machine=i860-alliant
670 ;;
671 genix)
672 basic_machine=ns32k-ns
673 ;;
674 gmicro)
675 basic_machine=tron-gmicro
676 os=-sysv
677 ;;
678 go32)
679 basic_machine=i386-pc
680 os=-go32
681 ;;
682 h3050r* | hiux*)
683 basic_machine=hppa1.1-hitachi
684 os=-hiuxwe2
685 ;;
686 h8300hms)
687 basic_machine=h8300-hitachi
688 os=-hms
689 ;;
690 h8300xray)
691 basic_machine=h8300-hitachi
692 os=-xray
693 ;;
694 h8500hms)
695 basic_machine=h8500-hitachi
696 os=-hms
697 ;;
698 harris)
699 basic_machine=m88k-harris
700 os=-sysv3
701 ;;
702 hp300-*)
703 basic_machine=m68k-hp
704 ;;
705 hp300bsd)
706 basic_machine=m68k-hp
707 os=-bsd
708 ;;
709 hp300hpux)
710 basic_machine=m68k-hp
711 os=-hpux
712 ;;
713 hp3k9[0-9][0-9] | hp9[0-9][0-9])
714 basic_machine=hppa1.0-hp
715 ;;
716 hp9k2[0-9][0-9] | hp9k31[0-9])
717 basic_machine=m68000-hp
718 ;;
719 hp9k3[2-9][0-9])
720 basic_machine=m68k-hp
721 ;;
722 hp9k6[0-9][0-9] | hp6[0-9][0-9])
723 basic_machine=hppa1.0-hp
724 ;;
725 hp9k7[0-79][0-9] | hp7[0-79][0-9])
726 basic_machine=hppa1.1-hp
727 ;;
728 hp9k78[0-9] | hp78[0-9])
729 # FIXME: really hppa2.0-hp
730 basic_machine=hppa1.1-hp
731 ;;
732 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
733 # FIXME: really hppa2.0-hp
734 basic_machine=hppa1.1-hp
735 ;;
736 hp9k8[0-9][13679] | hp8[0-9][13679])
737 basic_machine=hppa1.1-hp
738 ;;
739 hp9k8[0-9][0-9] | hp8[0-9][0-9])
740 basic_machine=hppa1.0-hp
741 ;;
742 hppaosf)
743 basic_machine=hppa1.1-hp
744 os=-osf
745 ;;
746 hppro)
747 basic_machine=hppa1.1-hp
748 os=-proelf
749 ;;
750 i370-ibm* | ibm*)
751 basic_machine=i370-ibm
752 ;;
753 i*86v32)
754 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
755 os=-sysv32
756 ;;
757 i*86v4*)
758 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
759 os=-sysv4
760 ;;
761 i*86v)
762 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
763 os=-sysv
764 ;;
765 i*86sol2)
766 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
767 os=-solaris2
768 ;;
769 i386mach)
770 basic_machine=i386-mach
771 os=-mach
772 ;;
773 vsta)
774 basic_machine=i386-unknown
775 os=-vsta
776 ;;
777 iris | iris4d)
778 basic_machine=mips-sgi
779 case $os in
780 -irix*)
781 ;;
782 *)
783 os=-irix4
784 ;;
785 esac
786 ;;
787 isi68 | isi)
788 basic_machine=m68k-isi
789 os=-sysv
790 ;;
791 leon-*|leon[3-9]-*)
792 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
793 ;;
794 m68knommu)
795 basic_machine=m68k-unknown
796 os=-linux
797 ;;
798 m68knommu-*)
799 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
800 os=-linux
801 ;;
802 magnum | m3230)
803 basic_machine=mips-mips
804 os=-sysv
805 ;;
806 merlin)
807 basic_machine=ns32k-utek
808 os=-sysv
809 ;;
810 microblaze*)
811 basic_machine=microblaze-xilinx
812 ;;
813 mingw64)
814 basic_machine=x86_64-pc
815 os=-mingw64
816 ;;
817 mingw32)
818 basic_machine=i686-pc
819 os=-mingw32
820 ;;
821 mingw32ce)
822 basic_machine=arm-unknown
823 os=-mingw32ce
824 ;;
825 miniframe)
826 basic_machine=m68000-convergent
827 ;;
828 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
829 basic_machine=m68k-atari
830 os=-mint
831 ;;
832 mips3*-*)
833 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
834 ;;
835 mips3*)
836 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
837 ;;
838 monitor)
839 basic_machine=m68k-rom68k
840 os=-coff
841 ;;
842 morphos)
843 basic_machine=powerpc-unknown
844 os=-morphos
845 ;;
846 moxiebox)
847 basic_machine=moxie-unknown
848 os=-moxiebox
849 ;;
850 msdos)
851 basic_machine=i386-pc
852 os=-msdos
853 ;;
854 ms1-*)
855 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
856 ;;
857 msys)
858 basic_machine=i686-pc
859 os=-msys
860 ;;
861 mvs)
862 basic_machine=i370-ibm
863 os=-mvs
864 ;;
865 nacl)
866 basic_machine=le32-unknown
867 os=-nacl
868 ;;
869 ncr3000)
870 basic_machine=i486-ncr
871 os=-sysv4
872 ;;
873 netbsd386)
874 basic_machine=i386-unknown
875 os=-netbsd
876 ;;
877 netwinder)
878 basic_machine=armv4l-rebel
879 os=-linux
880 ;;
881 news | news700 | news800 | news900)
882 basic_machine=m68k-sony
883 os=-newsos
884 ;;
885 news1000)
886 basic_machine=m68030-sony
887 os=-newsos
888 ;;
889 news-3600 | risc-news)
890 basic_machine=mips-sony
891 os=-newsos
892 ;;
893 necv70)
894 basic_machine=v70-nec
895 os=-sysv
896 ;;
897 next | m*-next)
898 basic_machine=m68k-next
899 case $os in
900 -nextstep* )
901 ;;
902 -ns2*)
903 os=-nextstep2
904 ;;
905 *)
906 os=-nextstep3
907 ;;
908 esac
909 ;;
910 nh3000)
911 basic_machine=m68k-harris
912 os=-cxux
913 ;;
914 nh[45]000)
915 basic_machine=m88k-harris
916 os=-cxux
917 ;;
918 nindy960)
919 basic_machine=i960-intel
920 os=-nindy
921 ;;
922 mon960)
923 basic_machine=i960-intel
924 os=-mon960
925 ;;
926 nonstopux)
927 basic_machine=mips-compaq
928 os=-nonstopux
929 ;;
930 np1)
931 basic_machine=np1-gould
932 ;;
933 neo-tandem)
934 basic_machine=neo-tandem
935 ;;
936 nse-tandem)
937 basic_machine=nse-tandem
938 ;;
939 nsr-tandem)
940 basic_machine=nsr-tandem
941 ;;
942 nsv-tandem)
943 basic_machine=nsv-tandem
944 ;;
945 nsx-tandem)
946 basic_machine=nsx-tandem
947 ;;
948 op50n-* | op60c-*)
949 basic_machine=hppa1.1-oki
950 os=-proelf
951 ;;
952 openrisc | openrisc-*)
953 basic_machine=or32-unknown
954 ;;
955 os400)
956 basic_machine=powerpc-ibm
957 os=-os400
958 ;;
959 OSE68000 | ose68000)
960 basic_machine=m68000-ericsson
961 os=-ose
962 ;;
963 os68k)
964 basic_machine=m68k-none
965 os=-os68k
966 ;;
967 pa-hitachi)
968 basic_machine=hppa1.1-hitachi
969 os=-hiuxwe2
970 ;;
971 paragon)
972 basic_machine=i860-intel
973 os=-osf
974 ;;
975 parisc)
976 basic_machine=hppa-unknown
977 os=-linux
978 ;;
979 parisc-*)
980 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
981 os=-linux
982 ;;
983 pbd)
984 basic_machine=sparc-tti
985 ;;
986 pbb)
987 basic_machine=m68k-tti
988 ;;
989 pc532 | pc532-*)
990 basic_machine=ns32k-pc532
991 ;;
992 pc98)
993 basic_machine=i386-pc
994 ;;
995 pc98-*)
996 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
997 ;;
998 pentium | p5 | k5 | k6 | nexgen | viac3)
999 basic_machine=i586-pc
1000 ;;
1001 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1002 basic_machine=i686-pc
1003 ;;
1004 pentiumii | pentium2 | pentiumiii | pentium3)
1005 basic_machine=i686-pc
1006 ;;
1007 pentium4)
1008 basic_machine=i786-pc
1009 ;;
1010 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1011 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1012 ;;
1013 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1014 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1015 ;;
1016 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1017 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1018 ;;
1019 pentium4-*)
1020 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1021 ;;
1022 pn)
1023 basic_machine=pn-gould
1024 ;;
1025 power) basic_machine=power-ibm
1026 ;;
1027 ppc | ppcbe) basic_machine=powerpc-unknown
1028 ;;
1029 ppc-* | ppcbe-*)
1030 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1031 ;;
1032 ppcle | powerpclittle)
1033 basic_machine=powerpcle-unknown
1034 ;;
1035 ppcle-* | powerpclittle-*)
1036 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1037 ;;
1038 ppc64) basic_machine=powerpc64-unknown
1039 ;;
1040 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 ppc64le | powerpc64little)
1043 basic_machine=powerpc64le-unknown
1044 ;;
1045 ppc64le-* | powerpc64little-*)
1046 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1047 ;;
1048 ps2)
1049 basic_machine=i386-ibm
1050 ;;
1051 pw32)
1052 basic_machine=i586-unknown
1053 os=-pw32
1054 ;;
1055 rdos | rdos64)
1056 basic_machine=x86_64-pc
1057 os=-rdos
1058 ;;
1059 rdos32)
1060 basic_machine=i386-pc
1061 os=-rdos
1062 ;;
1063 rom68k)
1064 basic_machine=m68k-rom68k
1065 os=-coff
1066 ;;
1067 rm[46]00)
1068 basic_machine=mips-siemens
1069 ;;
1070 rtpc | rtpc-*)
1071 basic_machine=romp-ibm
1072 ;;
1073 s390 | s390-*)
1074 basic_machine=s390-ibm
1075 ;;
1076 s390x | s390x-*)
1077 basic_machine=s390x-ibm
1078 ;;
1079 sa29200)
1080 basic_machine=a29k-amd
1081 os=-udi
1082 ;;
1083 sb1)
1084 basic_machine=mipsisa64sb1-unknown
1085 ;;
1086 sb1el)
1087 basic_machine=mipsisa64sb1el-unknown
1088 ;;
1089 sde)
1090 basic_machine=mipsisa32-sde
1091 os=-elf
1092 ;;
1093 sei)
1094 basic_machine=mips-sei
1095 os=-seiux
1096 ;;
1097 sequent)
1098 basic_machine=i386-sequent
1099 ;;
1100 sh5el)
1101 basic_machine=sh5le-unknown
1102 ;;
1103 simso-wrs)
1104 basic_machine=sparclite-wrs
1105 os=-vxworks
1106 ;;
1107 sps7)
1108 basic_machine=m68k-bull
1109 os=-sysv2
1110 ;;
1111 spur)
1112 basic_machine=spur-unknown
1113 ;;
1114 st2000)
1115 basic_machine=m68k-tandem
1116 ;;
1117 stratus)
1118 basic_machine=i860-stratus
1119 os=-sysv4
1120 ;;
1121 strongarm-* | thumb-*)
1122 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1123 ;;
1124 sun2)
1125 basic_machine=m68000-sun
1126 ;;
1127 sun2os3)
1128 basic_machine=m68000-sun
1129 os=-sunos3
1130 ;;
1131 sun2os4)
1132 basic_machine=m68000-sun
1133 os=-sunos4
1134 ;;
1135 sun3os3)
1136 basic_machine=m68k-sun
1137 os=-sunos3
1138 ;;
1139 sun3os4)
1140 basic_machine=m68k-sun
1141 os=-sunos4
1142 ;;
1143 sun4os3)
1144 basic_machine=sparc-sun
1145 os=-sunos3
1146 ;;
1147 sun4os4)
1148 basic_machine=sparc-sun
1149 os=-sunos4
1150 ;;
1151 sun4sol2)
1152 basic_machine=sparc-sun
1153 os=-solaris2
1154 ;;
1155 sun3 | sun3-*)
1156 basic_machine=m68k-sun
1157 ;;
1158 sun4)
1159 basic_machine=sparc-sun
1160 ;;
1161 sun386 | sun386i | roadrunner)
1162 basic_machine=i386-sun
1163 ;;
1164 sv1)
1165 basic_machine=sv1-cray
1166 os=-unicos
1167 ;;
1168 symmetry)
1169 basic_machine=i386-sequent
1170 os=-dynix
1171 ;;
1172 t3e)
1173 basic_machine=alphaev5-cray
1174 os=-unicos
1175 ;;
1176 t90)
1177 basic_machine=t90-cray
1178 os=-unicos
1179 ;;
1180 tile*)
1181 basic_machine=$basic_machine-unknown
1182 os=-linux-gnu
1183 ;;
1184 tx39)
1185 basic_machine=mipstx39-unknown
1186 ;;
1187 tx39el)
1188 basic_machine=mipstx39el-unknown
1189 ;;
1190 toad1)
1191 basic_machine=pdp10-xkl
1192 os=-tops20
1193 ;;
1194 tower | tower-32)
1195 basic_machine=m68k-ncr
1196 ;;
1197 tpf)
1198 basic_machine=s390x-ibm
1199 os=-tpf
1200 ;;
1201 udi29k)
1202 basic_machine=a29k-amd
1203 os=-udi
1204 ;;
1205 ultra3)
1206 basic_machine=a29k-nyu
1207 os=-sym1
1208 ;;
1209 v810 | necv810)
1210 basic_machine=v810-nec
1211 os=-none
1212 ;;
1213 vaxv)
1214 basic_machine=vax-dec
1215 os=-sysv
1216 ;;
1217 vms)
1218 basic_machine=vax-dec
1219 os=-vms
1220 ;;
1221 vpp*|vx|vx-*)
1222 basic_machine=f301-fujitsu
1223 ;;
1224 vxworks960)
1225 basic_machine=i960-wrs
1226 os=-vxworks
1227 ;;
1228 vxworks68)
1229 basic_machine=m68k-wrs
1230 os=-vxworks
1231 ;;
1232 vxworks29k)
1233 basic_machine=a29k-wrs
1234 os=-vxworks
1235 ;;
1236 w65*)
1237 basic_machine=w65-wdc
1238 os=-none
1239 ;;
1240 w89k-*)
1241 basic_machine=hppa1.1-winbond
1242 os=-proelf
1243 ;;
1244 x64)
1245 basic_machine=x86_64-pc
1246 ;;
1247 xbox)
1248 basic_machine=i686-pc
1249 os=-mingw32
1250 ;;
1251 xps | xps100)
1252 basic_machine=xps100-honeywell
1253 ;;
1254 xscale-* | xscalee[bl]-*)
1255 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1256 ;;
1257 ymp)
1258 basic_machine=ymp-cray
1259 os=-unicos
1260 ;;
1261 none)
1262 basic_machine=none-none
1263 os=-none
1264 ;;
1265
1266 # Here we handle the default manufacturer of certain CPU types. It is in
1267 # some cases the only manufacturer, in others, it is the most popular.
1268 w89k)
1269 basic_machine=hppa1.1-winbond
1270 ;;
1271 op50n)
1272 basic_machine=hppa1.1-oki
1273 ;;
1274 op60c)
1275 basic_machine=hppa1.1-oki
1276 ;;
1277 romp)
1278 basic_machine=romp-ibm
1279 ;;
1280 mmix)
1281 basic_machine=mmix-knuth
1282 ;;
1283 rs6000)
1284 basic_machine=rs6000-ibm
1285 ;;
1286 vax)
1287 basic_machine=vax-dec
1288 ;;
1289 pdp11)
1290 basic_machine=pdp11-dec
1291 ;;
1292 we32k)
1293 basic_machine=we32k-att
1294 ;;
1295 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1296 basic_machine=sh-unknown
1297 ;;
1298 cydra)
1299 basic_machine=cydra-cydrome
1300 ;;
1301 orion)
1302 basic_machine=orion-highlevel
1303 ;;
1304 orion105)
1305 basic_machine=clipper-highlevel
1306 ;;
1307 mac | mpw | mac-mpw)
1308 basic_machine=m68k-apple
1309 ;;
1310 pmac | pmac-mpw)
1311 basic_machine=powerpc-apple
1312 ;;
1313 *-unknown)
1314 # Make sure to match an already-canonicalized machine name.
1315 ;;
1316 *)
1317 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1318 exit 1
1319 ;;
1320 esac
1321
1322 # Here we canonicalize certain aliases for manufacturers.
1323 case $basic_machine in
1324 *-digital*)
1325 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1326 ;;
1327 *-commodore*)
1328 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1329 ;;
1330 *)
1331 ;;
1332 esac
1333
1334 # Decode manufacturer-specific aliases for certain operating systems.
1335
1336 if [ x"$os" != x"" ]
1337 then
1338 case $os in
1339 # First match some system type aliases that might get confused
1340 # with valid system types.
1341 # -solaris* is a basic system type, with this one exception.
1342 -auroraux)
1343 os=-auroraux
1344 ;;
1345 -solaris1 | -solaris1.*)
1346 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1347 ;;
1348 -solaris)
1349 os=-solaris2
1350 ;;
1351 -unixware*)
1352 os=-sysv4.2uw
1353 ;;
1354 -gnu/linux*)
1355 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1356 ;;
1357 # es1800 is here to avoid being matched by es* (a different OS)
1358 -es1800*)
1359 os=-ose
1360 ;;
1361 # Now accept the basic system types.
1362 # The portable systems comes first.
1363 # Each alternative MUST end in a * to match a version number.
1364 # -sysv* is not here because it comes later, after sysvr4.
1365 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1366 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1367 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1368 | -sym* | -kopensolaris* | -plan9* \
1369 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1370 | -aos* | -aros* | -cloudabi* | -sortix* \
1371 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1372 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1373 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1374 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1375 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1376 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1377 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1378 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1379 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
1380 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1381 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1382 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1383 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1384 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
1385 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1386 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1387 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1388 | -morphos* | -superux* | -rtmk* | -windiss* \
1389 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1390 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1391 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1392 | -midnightbsd*)
1393 # Remember, each alternative MUST END IN *, to match a version number.
1394 ;;
1395 -qnx*)
1396 case $basic_machine in
1397 x86-* | i*86-*)
1398 ;;
1399 *)
1400 os=-nto$os
1401 ;;
1402 esac
1403 ;;
1404 -nto-qnx*)
1405 ;;
1406 -nto*)
1407 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1408 ;;
1409 -sim | -xray | -os68k* | -v88r* \
1410 | -windows* | -osx | -abug | -netware* | -os9* \
1411 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1412 ;;
1413 -mac*)
1414 os=`echo "$os" | sed -e 's|mac|macos|'`
1415 ;;
1416 -linux-dietlibc)
1417 os=-linux-dietlibc
1418 ;;
1419 -linux*)
1420 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1421 ;;
1422 -sunos5*)
1423 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1424 ;;
1425 -sunos6*)
1426 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1427 ;;
1428 -opened*)
1429 os=-openedition
1430 ;;
1431 -os400*)
1432 os=-os400
1433 ;;
1434 -wince*)
1435 os=-wince
1436 ;;
1437 -utek*)
1438 os=-bsd
1439 ;;
1440 -dynix*)
1441 os=-bsd
1442 ;;
1443 -acis*)
1444 os=-aos
1445 ;;
1446 -atheos*)
1447 os=-atheos
1448 ;;
1449 -syllable*)
1450 os=-syllable
1451 ;;
1452 -386bsd)
1453 os=-bsd
1454 ;;
1455 -ctix* | -uts*)
1456 os=-sysv
1457 ;;
1458 -nova*)
1459 os=-rtmk-nova
1460 ;;
1461 -ns2)
1462 os=-nextstep2
1463 ;;
1464 -nsk*)
1465 os=-nsk
1466 ;;
1467 # Preserve the version number of sinix5.
1468 -sinix5.*)
1469 os=`echo $os | sed -e 's|sinix|sysv|'`
1470 ;;
1471 -sinix*)
1472 os=-sysv4
1473 ;;
1474 -tpf*)
1475 os=-tpf
1476 ;;
1477 -triton*)
1478 os=-sysv3
1479 ;;
1480 -oss*)
1481 os=-sysv3
1482 ;;
1483 -svr4*)
1484 os=-sysv4
1485 ;;
1486 -svr3)
1487 os=-sysv3
1488 ;;
1489 -sysvr4)
1490 os=-sysv4
1491 ;;
1492 # This must come after -sysvr4.
1493 -sysv*)
1494 ;;
1495 -ose*)
1496 os=-ose
1497 ;;
1498 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1499 os=-mint
1500 ;;
1501 -zvmoe)
1502 os=-zvmoe
1503 ;;
1504 -dicos*)
1505 os=-dicos
1506 ;;
1507 -pikeos*)
1508 # Until real need of OS specific support for
1509 # particular features comes up, bare metal
1510 # configurations are quite functional.
1511 case $basic_machine in
1512 arm*)
1513 os=-eabi
1514 ;;
1515 *)
1516 os=-elf
1517 ;;
1518 esac
1519 ;;
1520 -nacl*)
1521 ;;
1522 -ios)
1523 ;;
1524 -none)
1525 ;;
1526 *)
1527 # Get rid of the `-' at the beginning of $os.
1528 os=`echo $os | sed 's/[^-]*-//'`
1529 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
1530 exit 1
1531 ;;
1532 esac
1533 else
1534
1535 # Here we handle the default operating systems that come with various machines.
1536 # The value should be what the vendor currently ships out the door with their
1537 # machine or put another way, the most popular os provided with the machine.
1538
1539 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1540 # "-sun"), then you have to tell the case statement up towards the top
1541 # that MANUFACTURER isn't an operating system. Otherwise, code above
1542 # will signal an error saying that MANUFACTURER isn't an operating
1543 # system, and we'll never get to this point.
1544
1545 case $basic_machine in
1546 score-*)
1547 os=-elf
1548 ;;
1549 spu-*)
1550 os=-elf
1551 ;;
1552 *-acorn)
1553 os=-riscix1.2
1554 ;;
1555 arm*-rebel)
1556 os=-linux
1557 ;;
1558 arm*-semi)
1559 os=-aout
1560 ;;
1561 c4x-* | tic4x-*)
1562 os=-coff
1563 ;;
1564 c8051-*)
1565 os=-elf
1566 ;;
1567 hexagon-*)
1568 os=-elf
1569 ;;
1570 tic54x-*)
1571 os=-coff
1572 ;;
1573 tic55x-*)
1574 os=-coff
1575 ;;
1576 tic6x-*)
1577 os=-coff
1578 ;;
1579 # This must come before the *-dec entry.
1580 pdp10-*)
1581 os=-tops20
1582 ;;
1583 pdp11-*)
1584 os=-none
1585 ;;
1586 *-dec | vax-*)
1587 os=-ultrix4.2
1588 ;;
1589 m68*-apollo)
1590 os=-domain
1591 ;;
1592 i386-sun)
1593 os=-sunos4.0.2
1594 ;;
1595 m68000-sun)
1596 os=-sunos3
1597 ;;
1598 m68*-cisco)
1599 os=-aout
1600 ;;
1601 mep-*)
1602 os=-elf
1603 ;;
1604 mips*-cisco)
1605 os=-elf
1606 ;;
1607 mips*-*)
1608 os=-elf
1609 ;;
1610 or32-*)
1611 os=-coff
1612 ;;
1613 *-tti) # must be before sparc entry or we get the wrong os.
1614 os=-sysv3
1615 ;;
1616 sparc-* | *-sun)
1617 os=-sunos4.1.1
1618 ;;
1619 pru-*)
1620 os=-elf
1621 ;;
1622 *-be)
1623 os=-beos
1624 ;;
1625 *-ibm)
1626 os=-aix
1627 ;;
1628 *-knuth)
1629 os=-mmixware
1630 ;;
1631 *-wec)
1632 os=-proelf
1633 ;;
1634 *-winbond)
1635 os=-proelf
1636 ;;
1637 *-oki)
1638 os=-proelf
1639 ;;
1640 *-hp)
1641 os=-hpux
1642 ;;
1643 *-hitachi)
1644 os=-hiux
1645 ;;
1646 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1647 os=-sysv
1648 ;;
1649 *-cbm)
1650 os=-amigaos
1651 ;;
1652 *-dg)
1653 os=-dgux
1654 ;;
1655 *-dolphin)
1656 os=-sysv3
1657 ;;
1658 m68k-ccur)
1659 os=-rtu
1660 ;;
1661 m88k-omron*)
1662 os=-luna
1663 ;;
1664 *-next)
1665 os=-nextstep
1666 ;;
1667 *-sequent)
1668 os=-ptx
1669 ;;
1670 *-crds)
1671 os=-unos
1672 ;;
1673 *-ns)
1674 os=-genix
1675 ;;
1676 i370-*)
1677 os=-mvs
1678 ;;
1679 *-gould)
1680 os=-sysv
1681 ;;
1682 *-highlevel)
1683 os=-bsd
1684 ;;
1685 *-encore)
1686 os=-bsd
1687 ;;
1688 *-sgi)
1689 os=-irix
1690 ;;
1691 *-siemens)
1692 os=-sysv4
1693 ;;
1694 *-masscomp)
1695 os=-rtu
1696 ;;
1697 f30[01]-fujitsu | f700-fujitsu)
1698 os=-uxpv
1699 ;;
1700 *-rom68k)
1701 os=-coff
1702 ;;
1703 *-*bug)
1704 os=-coff
1705 ;;
1706 *-apple)
1707 os=-macos
1708 ;;
1709 *-atari*)
1710 os=-mint
1711 ;;
1712 *)
1713 os=-none
1714 ;;
1715 esac
1716 fi
1717
1718 # Here we handle the case where we know the os, and the CPU type, but not the
1719 # manufacturer. We pick the logical manufacturer.
1720 vendor=unknown
1721 case $basic_machine in
1722 *-unknown)
1723 case $os in
1724 -riscix*)
1725 vendor=acorn
1726 ;;
1727 -sunos*)
1728 vendor=sun
1729 ;;
1730 -cnk*|-aix*)
1731 vendor=ibm
1732 ;;
1733 -beos*)
1734 vendor=be
1735 ;;
1736 -hpux*)
1737 vendor=hp
1738 ;;
1739 -mpeix*)
1740 vendor=hp
1741 ;;
1742 -hiux*)
1743 vendor=hitachi
1744 ;;
1745 -unos*)
1746 vendor=crds
1747 ;;
1748 -dgux*)
1749 vendor=dg
1750 ;;
1751 -luna*)
1752 vendor=omron
1753 ;;
1754 -genix*)
1755 vendor=ns
1756 ;;
1757 -mvs* | -opened*)
1758 vendor=ibm
1759 ;;
1760 -os400*)
1761 vendor=ibm
1762 ;;
1763 -ptx*)
1764 vendor=sequent
1765 ;;
1766 -tpf*)
1767 vendor=ibm
1768 ;;
1769 -vxsim* | -vxworks* | -windiss*)
1770 vendor=wrs
1771 ;;
1772 -aux*)
1773 vendor=apple
1774 ;;
1775 -hms*)
1776 vendor=hitachi
1777 ;;
1778 -mpw* | -macos*)
1779 vendor=apple
1780 ;;
1781 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1782 vendor=atari
1783 ;;
1784 -vos*)
1785 vendor=stratus
1786 ;;
1787 esac
1788 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
1789 ;;
1790 esac
1791
1792 echo "$basic_machine$os"
1793 exit
1794
1795 # Local variables:
1796 # eval: (add-hook 'write-file-functions 'time-stamp)
1797 # time-stamp-start: "timestamp='"
1798 # time-stamp-format: "%:y-%02m-%02d"
1799 # time-stamp-end: "'"
1800 # End:
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for libdockapp 0.7.3.
3 #
4 # Report bugs to <wmaker-dev@googlegroups.com>.
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
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
208 test \$(( 1 + 1 )) = 2 || 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: wmaker-dev@googlegroups.com about your system,
278 $0: including any error possibly output before this
279 $0: message. Then install a modern shell, or manually run
280 $0: 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='libdockapp'
591 PACKAGE_TARNAME='libdockapp'
592 PACKAGE_VERSION='0.7.3'
593 PACKAGE_STRING='libdockapp 0.7.3'
594 PACKAGE_BUGREPORT='wmaker-dev@googlegroups.com'
595 PACKAGE_URL=''
596
597 ac_unique_file="src/dockapp.h"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 FONTDIR
639 FONTROOTDIR
640 MKFONTDIR
641 RUN_FCCACHE
642 FCCACHE
643 DFLAGS
644 xpm_LIBS
645 xpm_CFLAGS
646 Xext_LIBS
647 Xext_CFLAGS
648 X11_LIBS
649 X11_CFLAGS
650 PKG_CONFIG_LIBDIR
651 PKG_CONFIG_PATH
652 PKG_CONFIG
653 COND_EXAMPLES_FALSE
654 COND_EXAMPLES_TRUE
655 COND_FONT_FALSE
656 COND_FONT_TRUE
657 CPP
658 LT_SYS_LIBRARY_PATH
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 MANIFEST_TOOL
665 RANLIB
666 ac_ct_AR
667 AR
668 DLLTOOL
669 OBJDUMP
670 LN_S
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 EGREP
677 GREP
678 SED
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 host_os
696 host_vendor
697 host_cpu
698 host
699 build_os
700 build_vendor
701 build_cpu
702 build
703 LIBTOOL
704 AM_BACKSLASH
705 AM_DEFAULT_VERBOSITY
706 AM_DEFAULT_V
707 AM_V
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 runstatedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL
770 am__quote'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_silent_rules
775 enable_shared
776 enable_static
777 with_pic
778 enable_fast_install
779 with_aix_soname
780 enable_dependency_tracking
781 with_gnu_ld
782 with_sysroot
783 enable_libtool_lock
784 with_font
785 with_examples
786 enable_debug
787 with_fontrootdir
788 with_fontdir
789 '
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 LT_SYS_LIBRARY_PATH
799 CPP
800 PKG_CONFIG
801 PKG_CONFIG_PATH
802 PKG_CONFIG_LIBDIR
803 X11_CFLAGS
804 X11_LIBS
805 Xext_CFLAGS
806 Xext_LIBS
807 xpm_CFLAGS
808 xpm_LIBS'
809
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 runstatedir='${localstatedir}/run'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
859
860 ac_prev=
861 ac_dashdash=
862 for ac_option
863 do
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
869 fi
870
871 case $ac_option in
872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *=) ac_optarg= ;;
874 *) ac_optarg=yes ;;
875 esac
876
877 # Accept the important Cygnus configure options, so we can diagnose typos.
878
879 case $ac_dashdash$ac_option in
880 --)
881 ac_dashdash=yes ;;
882
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 ac_prev=bindir ;;
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 bindir=$ac_optarg ;;
887
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
892
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
899
900 --config-cache | -C)
901 cache_file=config.cache ;;
902
903 -datadir | --datadir | --datadi | --datad)
904 ac_prev=datadir ;;
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
907
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
914
915 -disable-* | --disable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=no ;;
930
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
935
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
940
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=\$ac_optarg ;;
956
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
965
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
969
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
976
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
981
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
987
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
994
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
999
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1004
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1011
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1016
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1023
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1028
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1032
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1036
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1040
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1049
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1054
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1061
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1068
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1085
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1090
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1095
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1099
1100 -runstatedir | --runstatedir | --runstatedi | --runstated \
1101 | --runstate | --runstat | --runsta | --runst | --runs \
1102 | --run | --ru | --r)
1103 ac_prev=runstatedir ;;
1104 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1105 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1106 | --run=* | --ru=* | --r=*)
1107 runstatedir=$ac_optarg ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir runstatedir
1247 do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1323 fi
1324 else
1325 ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 fi
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 \`configure' configures libdockapp 0.7.3 to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libdockapp]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1414
1415 cat <<\_ACEOF
1416
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of libdockapp 0.7.3:";;
1431 esac
1432 cat <<\_ACEOF
1433
1434 Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-static[=PKGS] build static libraries [default=yes]
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
1444 --enable-dependency-tracking
1445 do not reject slow dependency extractors
1446 --disable-dependency-tracking
1447 speeds up one-time build
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-debug enable debugging
1450
1451 Optional Packages:
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1455 both]
1456 --with-aix-soname=aix|svr4|both
1457 shared library versioning (aka "SONAME") variant to
1458 provide on AIX, [default=aix].
1459 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1460 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1461 compiler's sysroot if not specified).
1462 --with-font install the dockapp font (default=yes)
1463 --with-examples install the examples (default=yes)
1464 --with-fontrootdir=DIR Path to root directory for font files
1465 --with-fontdir=DIR Path to misc files [FONTROOTDIR/misc]
1466
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 LIBS libraries to pass to the linker, e.g. -l<library>
1473 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1474 you have headers in a nonstandard directory <include dir>
1475 LT_SYS_LIBRARY_PATH
1476 User-defined run-time library search path.
1477 CPP C preprocessor
1478 PKG_CONFIG path to pkg-config utility
1479 PKG_CONFIG_PATH
1480 directories to add to pkg-config's search path
1481 PKG_CONFIG_LIBDIR
1482 path overriding pkg-config's built-in search path
1483 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1484 X11_LIBS linker flags for X11, overriding pkg-config
1485 Xext_CFLAGS C compiler flags for Xext, overriding pkg-config
1486 Xext_LIBS linker flags for Xext, overriding pkg-config
1487 xpm_CFLAGS C compiler flags for xpm, overriding pkg-config
1488 xpm_LIBS linker flags for xpm, overriding pkg-config
1489
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 Report bugs to <wmaker-dev@googlegroups.com>.
1494 _ACEOF
1495 ac_status=$?
1496 fi
1497
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
1504 ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 libdockapp configure 0.7.3
1557 generated by GNU Autoconf 2.69
1558
1559 Copyright (C) 2012 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1564 fi
1565
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1569
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602 fi
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_compile
1607
1608 # ac_fn_c_try_link LINENO
1609 # -----------------------
1610 # Try to link conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_link ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext conftest$ac_exeext
1615 if { { ac_try="$ac_link"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_link") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest$ac_exeext && {
1634 test "$cross_compiling" = yes ||
1635 test -x conftest$ac_exeext
1636 }; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646 # interfere with the next link command; also delete a directory that is
1647 # left behind by Apple's compiler. We do this before executing the actions.
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_link
1653
1654 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists and can be compiled using the include files in
1657 # INCLUDES, setting the cache variable VAR accordingly.
1658 ac_fn_c_check_header_compile ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1665 else
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1668 $4
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 eval "$3=yes"
1673 else
1674 eval "$3=no"
1675 fi
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 fi
1678 eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683 } # ac_fn_c_check_header_compile
1684
1685 # ac_fn_c_try_cpp LINENO
1686 # ----------------------
1687 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_cpp ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_cpp conftest.$ac_ext"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } > conftest.i && {
1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716 fi
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_cpp
1721
1722 # ac_fn_c_try_run LINENO
1723 # ----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1725 # that executables *can* be run.
1726 ac_fn_c_try_run ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1740 { { case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_try") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; }; }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: program exited with status $ac_status" >&5
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=$ac_status
1757 fi
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_run
1763
1764 # ac_fn_c_check_func LINENO FUNC VAR
1765 # ----------------------------------
1766 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1767 ac_fn_c_check_func ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1774 else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1779 #define $2 innocuous_$2
1780
1781 /* System header to define __stub macros and hopefully few prototypes,
1782 which can conflict with char $2 (); below.
1783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1784 <limits.h> exists even on freestanding compilers. */
1785
1786 #ifdef __STDC__
1787 # include <limits.h>
1788 #else
1789 # include <assert.h>
1790 #endif
1791
1792 #undef $2
1793
1794 /* Override any GCC internal prototype to avoid an error.
1795 Use char because int might match the return type of a GCC
1796 builtin and then its argument prototype would still apply. */
1797 #ifdef __cplusplus
1798 extern "C"
1799 #endif
1800 char $2 ();
1801 /* The GNU C library defines this for functions which it implements
1802 to always fail with ENOSYS. Some functions are actually named
1803 something starting with __ and the normal name is an alias. */
1804 #if defined __stub_$2 || defined __stub___$2
1805 choke me
1806 #endif
1807
1808 int
1809 main ()
1810 {
1811 return $2 ();
1812 ;
1813 return 0;
1814 }
1815 _ACEOF
1816 if ac_fn_c_try_link "$LINENO"; then :
1817 eval "$3=yes"
1818 else
1819 eval "$3=no"
1820 fi
1821 rm -f core conftest.err conftest.$ac_objext \
1822 conftest$ac_exeext conftest.$ac_ext
1823 fi
1824 eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829 } # ac_fn_c_check_func
1830 cat >config.log <<_ACEOF
1831 This file contains any messages produced by compilers while
1832 running configure, to aid debugging if configure makes a mistake.
1833
1834 It was created by libdockapp $as_me 0.7.3, which was
1835 generated by GNU Autoconf 2.69. Invocation command line was
1836
1837 $ $0 $@
1838
1839 _ACEOF
1840 exec 5>>config.log
1841 {
1842 cat <<_ASUNAME
1843 ## --------- ##
1844 ## Platform. ##
1845 ## --------- ##
1846
1847 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1848 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1849 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1850 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1851 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1852
1853 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1854 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1855
1856 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1857 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1858 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1859 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1860 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1861 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1862 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1863
1864 _ASUNAME
1865
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 for as_dir in $PATH
1868 do
1869 IFS=$as_save_IFS
1870 test -z "$as_dir" && as_dir=.
1871 $as_echo "PATH: $as_dir"
1872 done
1873 IFS=$as_save_IFS
1874
1875 } >&5
1876
1877 cat >&5 <<_ACEOF
1878
1879
1880 ## ----------- ##
1881 ## Core tests. ##
1882 ## ----------- ##
1883
1884 _ACEOF
1885
1886
1887 # Keep a trace of the command line.
1888 # Strip out --no-create and --no-recursion so they do not pile up.
1889 # Strip out --silent because we don't want to record it for future runs.
1890 # Also quote any args containing shell meta-characters.
1891 # Make two passes to allow for proper duplicate-argument suppression.
1892 ac_configure_args=
1893 ac_configure_args0=
1894 ac_configure_args1=
1895 ac_must_keep_next=false
1896 for ac_pass in 1 2
1897 do
1898 for ac_arg
1899 do
1900 case $ac_arg in
1901 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1903 | -silent | --silent | --silen | --sile | --sil)
1904 continue ;;
1905 *\'*)
1906 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1907 esac
1908 case $ac_pass in
1909 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1910 2)
1911 as_fn_append ac_configure_args1 " '$ac_arg'"
1912 if test $ac_must_keep_next = true; then
1913 ac_must_keep_next=false # Got value, back to normal.
1914 else
1915 case $ac_arg in
1916 *=* | --config-cache | -C | -disable-* | --disable-* \
1917 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1918 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1919 | -with-* | --with-* | -without-* | --without-* | --x)
1920 case "$ac_configure_args0 " in
1921 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1922 esac
1923 ;;
1924 -* ) ac_must_keep_next=true ;;
1925 esac
1926 fi
1927 as_fn_append ac_configure_args " '$ac_arg'"
1928 ;;
1929 esac
1930 done
1931 done
1932 { ac_configure_args0=; unset ac_configure_args0;}
1933 { ac_configure_args1=; unset ac_configure_args1;}
1934
1935 # When interrupted or exit'd, cleanup temporary files, and complete
1936 # config.log. We remove comments because anyway the quotes in there
1937 # would cause problems or look ugly.
1938 # WARNING: Use '\'' to represent an apostrophe within the trap.
1939 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1940 trap 'exit_status=$?
1941 # Save into config.log some information that might help in debugging.
1942 {
1943 echo
1944
1945 $as_echo "## ---------------- ##
1946 ## Cache variables. ##
1947 ## ---------------- ##"
1948 echo
1949 # The following way of writing the cache mishandles newlines in values,
1950 (
1951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1952 eval ac_val=\$$ac_var
1953 case $ac_val in #(
1954 *${as_nl}*)
1955 case $ac_var in #(
1956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1958 esac
1959 case $ac_var in #(
1960 _ | IFS | as_nl) ;; #(
1961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1962 *) { eval $ac_var=; unset $ac_var;} ;;
1963 esac ;;
1964 esac
1965 done
1966 (set) 2>&1 |
1967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1968 *${as_nl}ac_space=\ *)
1969 sed -n \
1970 "s/'\''/'\''\\\\'\'''\''/g;
1971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1972 ;; #(
1973 *)
1974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1975 ;;
1976 esac |
1977 sort
1978 )
1979 echo
1980
1981 $as_echo "## ----------------- ##
1982 ## Output variables. ##
1983 ## ----------------- ##"
1984 echo
1985 for ac_var in $ac_subst_vars
1986 do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in
1989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990 esac
1991 $as_echo "$ac_var='\''$ac_val'\''"
1992 done | sort
1993 echo
1994
1995 if test -n "$ac_subst_files"; then
1996 $as_echo "## ------------------- ##
1997 ## File substitutions. ##
1998 ## ------------------- ##"
1999 echo
2000 for ac_var in $ac_subst_files
2001 do
2002 eval ac_val=\$$ac_var
2003 case $ac_val in
2004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005 esac
2006 $as_echo "$ac_var='\''$ac_val'\''"
2007 done | sort
2008 echo
2009 fi
2010
2011 if test -s confdefs.h; then
2012 $as_echo "## ----------- ##
2013 ## confdefs.h. ##
2014 ## ----------- ##"
2015 echo
2016 cat confdefs.h
2017 echo
2018 fi
2019 test "$ac_signal" != 0 &&
2020 $as_echo "$as_me: caught signal $ac_signal"
2021 $as_echo "$as_me: exit $exit_status"
2022 } >&5
2023 rm -f core *.core core.conftest.* &&
2024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2025 exit $exit_status
2026 ' 0
2027 for ac_signal in 1 2 13 15; do
2028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2029 done
2030 ac_signal=0
2031
2032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2033 rm -f -r conftest* confdefs.h
2034
2035 $as_echo "/* confdefs.h */" > confdefs.h
2036
2037 # Predefined preprocessor variables.
2038
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_NAME "$PACKAGE_NAME"
2041 _ACEOF
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2045 _ACEOF
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2049 _ACEOF
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_STRING "$PACKAGE_STRING"
2053 _ACEOF
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2057 _ACEOF
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_URL "$PACKAGE_URL"
2061 _ACEOF
2062
2063
2064 # Let the site file select an alternate cache file if it wants to.
2065 # Prefer an explicitly selected file to automatically selected ones.
2066 ac_site_file1=NONE
2067 ac_site_file2=NONE
2068 if test -n "$CONFIG_SITE"; then
2069 # We do not want a PATH search for config.site.
2070 case $CONFIG_SITE in #((
2071 -*) ac_site_file1=./$CONFIG_SITE;;
2072 */*) ac_site_file1=$CONFIG_SITE;;
2073 *) ac_site_file1=./$CONFIG_SITE;;
2074 esac
2075 elif test "x$prefix" != xNONE; then
2076 ac_site_file1=$prefix/share/config.site
2077 ac_site_file2=$prefix/etc/config.site
2078 else
2079 ac_site_file1=$ac_default_prefix/share/config.site
2080 ac_site_file2=$ac_default_prefix/etc/config.site
2081 fi
2082 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2083 do
2084 test "x$ac_site_file" = xNONE && continue
2085 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2087 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2088 sed 's/^/| /' "$ac_site_file" >&5
2089 . "$ac_site_file" \
2090 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092 as_fn_error $? "failed to load site script $ac_site_file
2093 See \`config.log' for more details" "$LINENO" 5; }
2094 fi
2095 done
2096
2097 if test -r "$cache_file"; then
2098 # Some versions of bash will fail to source /dev/null (special files
2099 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2100 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2102 $as_echo "$as_me: loading cache $cache_file" >&6;}
2103 case $cache_file in
2104 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2105 *) . "./$cache_file";;
2106 esac
2107 fi
2108 else
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2110 $as_echo "$as_me: creating cache $cache_file" >&6;}
2111 >$cache_file
2112 fi
2113
2114 # Check that the precious variables saved in the cache have kept the same
2115 # value.
2116 ac_cache_corrupted=false
2117 for ac_var in $ac_precious_vars; do
2118 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2119 eval ac_new_set=\$ac_env_${ac_var}_set
2120 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2121 eval ac_new_val=\$ac_env_${ac_var}_value
2122 case $ac_old_set,$ac_new_set in
2123 set,)
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2125 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2126 ac_cache_corrupted=: ;;
2127 ,set)
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2129 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2130 ac_cache_corrupted=: ;;
2131 ,);;
2132 *)
2133 if test "x$ac_old_val" != "x$ac_new_val"; then
2134 # differences in whitespace do not lead to failure.
2135 ac_old_val_w=`echo x $ac_old_val`
2136 ac_new_val_w=`echo x $ac_new_val`
2137 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2139 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2140 ac_cache_corrupted=:
2141 else
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2143 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2144 eval $ac_var=\$ac_old_val
2145 fi
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2147 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2149 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2150 fi;;
2151 esac
2152 # Pass precious variables to config.status.
2153 if test "$ac_new_set" = set; then
2154 case $ac_new_val in
2155 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156 *) ac_arg=$ac_var=$ac_new_val ;;
2157 esac
2158 case " $ac_configure_args " in
2159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2160 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2161 esac
2162 fi
2163 done
2164 if $ac_cache_corrupted; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2168 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2169 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2170 fi
2171 ## -------------------- ##
2172 ## Main body of script. ##
2173 ## -------------------- ##
2174
2175 ac_ext=c
2176 ac_cpp='$CPP $CPPFLAGS'
2177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2180
2181
2182
2183 am__api_version='1.16'
2184
2185 ac_aux_dir=
2186 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2187 if test -f "$ac_dir/install-sh"; then
2188 ac_aux_dir=$ac_dir
2189 ac_install_sh="$ac_aux_dir/install-sh -c"
2190 break
2191 elif test -f "$ac_dir/install.sh"; then
2192 ac_aux_dir=$ac_dir
2193 ac_install_sh="$ac_aux_dir/install.sh -c"
2194 break
2195 elif test -f "$ac_dir/shtool"; then
2196 ac_aux_dir=$ac_dir
2197 ac_install_sh="$ac_aux_dir/shtool install -c"
2198 break
2199 fi
2200 done
2201 if test -z "$ac_aux_dir"; then
2202 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2203 fi
2204
2205 # These three variables are undocumented and unsupported,
2206 # and are intended to be withdrawn in a future Autoconf release.
2207 # They can cause serious problems if a builder's source tree is in a directory
2208 # whose full name contains unusual characters.
2209 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2210 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2211 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2212
2213
2214 # Find a good install program. We prefer a C program (faster),
2215 # so one script is as good as another. But avoid the broken or
2216 # incompatible versions:
2217 # SysV /etc/install, /usr/sbin/install
2218 # SunOS /usr/etc/install
2219 # IRIX /sbin/install
2220 # AIX /bin/install
2221 # AmigaOS /C/install, which installs bootblocks on floppy discs
2222 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2223 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2224 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2225 # OS/2's system install, which has a completely different semantic
2226 # ./install, which can be erroneously created by make from ./install.sh.
2227 # Reject install programs that cannot install multiple files.
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2229 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2230 if test -z "$INSTALL"; then
2231 if ${ac_cv_path_install+:} false; then :
2232 $as_echo_n "(cached) " >&6
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 # Account for people who put trailing slashes in PATH elements.
2240 case $as_dir/ in #((
2241 ./ | .// | /[cC]/* | \
2242 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2243 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2244 /usr/ucb/* ) ;;
2245 *)
2246 # OSF1 and SCO ODT 3.0 have their own names for install.
2247 # Don't use installbsd from OSF since it installs stuff as root
2248 # by default.
2249 for ac_prog in ginstall scoinst install; do
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2252 if test $ac_prog = install &&
2253 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2254 # AIX install. It has an incompatible calling convention.
2255 :
2256 elif test $ac_prog = install &&
2257 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2258 # program-specific install script used by HP pwplus--don't use.
2259 :
2260 else
2261 rm -rf conftest.one conftest.two conftest.dir
2262 echo one > conftest.one
2263 echo two > conftest.two
2264 mkdir conftest.dir
2265 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2266 test -s conftest.one && test -s conftest.two &&
2267 test -s conftest.dir/conftest.one &&
2268 test -s conftest.dir/conftest.two
2269 then
2270 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2271 break 3
2272 fi
2273 fi
2274 fi
2275 done
2276 done
2277 ;;
2278 esac
2279
2280 done
2281 IFS=$as_save_IFS
2282
2283 rm -rf conftest.one conftest.two conftest.dir
2284
2285 fi
2286 if test "${ac_cv_path_install+set}" = set; then
2287 INSTALL=$ac_cv_path_install
2288 else
2289 # As a last resort, use the slow shell script. Don't cache a
2290 # value for INSTALL within a source directory, because that will
2291 # break other packages using the cache if that directory is
2292 # removed, or if the value is a relative name.
2293 INSTALL=$ac_install_sh
2294 fi
2295 fi
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2297 $as_echo "$INSTALL" >&6; }
2298
2299 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2300 # It thinks the first close brace ends the variable substitution.
2301 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2302
2303 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2304
2305 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2306
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2308 $as_echo_n "checking whether build environment is sane... " >&6; }
2309 # Reject unsafe characters in $srcdir or the absolute working directory
2310 # name. Accept space and tab only in the latter.
2311 am_lf='
2312 '
2313 case `pwd` in
2314 *[\\\"\#\$\&\'\`$am_lf]*)
2315 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2316 esac
2317 case $srcdir in
2318 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2319 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2320 esac
2321
2322 # Do 'set' in a subshell so we don't clobber the current shell's
2323 # arguments. Must try -L first in case configure is actually a
2324 # symlink; some systems play weird games with the mod time of symlinks
2325 # (eg FreeBSD returns the mod time of the symlink's containing
2326 # directory).
2327 if (
2328 am_has_slept=no
2329 for am_try in 1 2; do
2330 echo "timestamp, slept: $am_has_slept" > conftest.file
2331 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2332 if test "$*" = "X"; then
2333 # -L didn't work.
2334 set X `ls -t "$srcdir/configure" conftest.file`
2335 fi
2336 if test "$*" != "X $srcdir/configure conftest.file" \
2337 && test "$*" != "X conftest.file $srcdir/configure"; then
2338
2339 # If neither matched, then we have a broken ls. This can happen
2340 # if, for instance, CONFIG_SHELL is bash and it inherits a
2341 # broken ls alias from the environment. This has actually
2342 # happened. Such a system could not be considered "sane".
2343 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2344 alias in your environment" "$LINENO" 5
2345 fi
2346 if test "$2" = conftest.file || test $am_try -eq 2; then
2347 break
2348 fi
2349 # Just in case.
2350 sleep 1
2351 am_has_slept=yes
2352 done
2353 test "$2" = conftest.file
2354 )
2355 then
2356 # Ok.
2357 :
2358 else
2359 as_fn_error $? "newly created file is older than distributed files!
2360 Check your system clock" "$LINENO" 5
2361 fi
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2363 $as_echo "yes" >&6; }
2364 # If we didn't sleep, we still need to ensure time stamps of config.status and
2365 # generated files are strictly newer.
2366 am_sleep_pid=
2367 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2368 ( sleep 1 ) &
2369 am_sleep_pid=$!
2370 fi
2371
2372 rm -f conftest.file
2373
2374 test "$program_prefix" != NONE &&
2375 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2376 # Use a double $ so make ignores it.
2377 test "$program_suffix" != NONE &&
2378 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2379 # Double any \ or $.
2380 # By default was `s,x,x', remove it if useless.
2381 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2382 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2383
2384 # Expand $ac_aux_dir to an absolute path.
2385 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2386
2387 if test x"${MISSING+set}" != xset; then
2388 case $am_aux_dir in
2389 *\ * | *\ *)
2390 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2391 *)
2392 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2393 esac
2394 fi
2395 # Use eval to expand $SHELL
2396 if eval "$MISSING --is-lightweight"; then
2397 am_missing_run="$MISSING "
2398 else
2399 am_missing_run=
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2401 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2402 fi
2403
2404 if test x"${install_sh+set}" != xset; then
2405 case $am_aux_dir in
2406 *\ * | *\ *)
2407 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2408 *)
2409 install_sh="\${SHELL} $am_aux_dir/install-sh"
2410 esac
2411 fi
2412
2413 # Installed binaries are usually stripped using 'strip' when the user
2414 # run "make install-strip". However 'strip' might not be the right
2415 # tool to use in cross-compilation environments, therefore Automake
2416 # will honor the 'STRIP' environment variable to overrule this program.
2417 if test "$cross_compiling" != no; then
2418 if test -n "$ac_tool_prefix"; then
2419 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2420 set dummy ${ac_tool_prefix}strip; ac_word=$2
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2422 $as_echo_n "checking for $ac_word... " >&6; }
2423 if ${ac_cv_prog_STRIP+:} false; then :
2424 $as_echo_n "(cached) " >&6
2425 else
2426 if test -n "$STRIP"; then
2427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 break 2
2439 fi
2440 done
2441 done
2442 IFS=$as_save_IFS
2443
2444 fi
2445 fi
2446 STRIP=$ac_cv_prog_STRIP
2447 if test -n "$STRIP"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2449 $as_echo "$STRIP" >&6; }
2450 else
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2452 $as_echo "no" >&6; }
2453 fi
2454
2455
2456 fi
2457 if test -z "$ac_cv_prog_STRIP"; then
2458 ac_ct_STRIP=$STRIP
2459 # Extract the first word of "strip", so it can be a program name with args.
2460 set dummy strip; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test -n "$ac_ct_STRIP"; then
2467 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_ac_ct_STRIP="strip"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2479 fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2487 if test -n "$ac_ct_STRIP"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2489 $as_echo "$ac_ct_STRIP" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495 if test "x$ac_ct_STRIP" = x; then
2496 STRIP=":"
2497 else
2498 case $cross_compiling:$ac_tool_warned in
2499 yes:)
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2502 ac_tool_warned=yes ;;
2503 esac
2504 STRIP=$ac_ct_STRIP
2505 fi
2506 else
2507 STRIP="$ac_cv_prog_STRIP"
2508 fi
2509
2510 fi
2511 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2512
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2514 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2515 if test -z "$MKDIR_P"; then
2516 if ${ac_cv_path_mkdir+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2521 do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 for ac_prog in mkdir gmkdir; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2527 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2528 'mkdir (GNU coreutils) '* | \
2529 'mkdir (coreutils) '* | \
2530 'mkdir (fileutils) '4.1*)
2531 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2532 break 3;;
2533 esac
2534 done
2535 done
2536 done
2537 IFS=$as_save_IFS
2538
2539 fi
2540
2541 test -d ./--version && rmdir ./--version
2542 if test "${ac_cv_path_mkdir+set}" = set; then
2543 MKDIR_P="$ac_cv_path_mkdir -p"
2544 else
2545 # As a last resort, use the slow shell script. Don't cache a
2546 # value for MKDIR_P within a source directory, because that will
2547 # break other packages using the cache if that directory is
2548 # removed, or if the value is a relative name.
2549 MKDIR_P="$ac_install_sh -d"
2550 fi
2551 fi
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2553 $as_echo "$MKDIR_P" >&6; }
2554
2555 for ac_prog in gawk mawk nawk awk
2556 do
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558 set dummy $ac_prog; ac_word=$2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 $as_echo_n "checking for $ac_word... " >&6; }
2561 if ${ac_cv_prog_AWK+:} false; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 if test -n "$AWK"; then
2565 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574 ac_cv_prog_AWK="$ac_prog"
2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2577 fi
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 fi
2583 fi
2584 AWK=$ac_cv_prog_AWK
2585 if test -n "$AWK"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2587 $as_echo "$AWK" >&6; }
2588 else
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590 $as_echo "no" >&6; }
2591 fi
2592
2593
2594 test -n "$AWK" && break
2595 done
2596
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2598 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2599 set x ${MAKE-make}
2600 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2601 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 cat >conftest.make <<\_ACEOF
2605 SHELL = /bin/sh
2606 all:
2607 @echo '@@@%%%=$(MAKE)=@@@%%%'
2608 _ACEOF
2609 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2610 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2611 *@@@%%%=?*=@@@%%%*)
2612 eval ac_cv_prog_make_${ac_make}_set=yes;;
2613 *)
2614 eval ac_cv_prog_make_${ac_make}_set=no;;
2615 esac
2616 rm -f conftest.make
2617 fi
2618 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2620 $as_echo "yes" >&6; }
2621 SET_MAKE=
2622 else
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2625 SET_MAKE="MAKE=${MAKE-make}"
2626 fi
2627
2628 rm -rf .tst 2>/dev/null
2629 mkdir .tst 2>/dev/null
2630 if test -d .tst; then
2631 am__leading_dot=.
2632 else
2633 am__leading_dot=_
2634 fi
2635 rmdir .tst 2>/dev/null
2636
2637 # Check whether --enable-silent-rules was given.
2638 if test "${enable_silent_rules+set}" = set; then :
2639 enableval=$enable_silent_rules;
2640 fi
2641
2642 case $enable_silent_rules in # (((
2643 yes) AM_DEFAULT_VERBOSITY=0;;
2644 no) AM_DEFAULT_VERBOSITY=1;;
2645 *) AM_DEFAULT_VERBOSITY=1;;
2646 esac
2647 am_make=${MAKE-make}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2649 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2650 if ${am_cv_make_support_nested_variables+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if $as_echo 'TRUE=$(BAR$(V))
2654 BAR0=false
2655 BAR1=true
2656 V=1
2657 am__doit:
2658 @$(TRUE)
2659 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2660 am_cv_make_support_nested_variables=yes
2661 else
2662 am_cv_make_support_nested_variables=no
2663 fi
2664 fi
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2666 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2667 if test $am_cv_make_support_nested_variables = yes; then
2668 AM_V='$(V)'
2669 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2670 else
2671 AM_V=$AM_DEFAULT_VERBOSITY
2672 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2673 fi
2674 AM_BACKSLASH='\'
2675
2676 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2677 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2678 # is not polluted with repeated "-I."
2679 am__isrc=' -I$(srcdir)'
2680 # test to see if srcdir already configured
2681 if test -f $srcdir/config.status; then
2682 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2683 fi
2684 fi
2685
2686 # test whether we have cygpath
2687 if test -z "$CYGPATH_W"; then
2688 if (cygpath --version) >/dev/null 2>/dev/null; then
2689 CYGPATH_W='cygpath -w'
2690 else
2691 CYGPATH_W=echo
2692 fi
2693 fi
2694
2695
2696 # Define the identity of the package.
2697 PACKAGE='libdockapp'
2698 VERSION='0.7.3'
2699
2700
2701 cat >>confdefs.h <<_ACEOF
2702 #define PACKAGE "$PACKAGE"
2703 _ACEOF
2704
2705
2706 cat >>confdefs.h <<_ACEOF
2707 #define VERSION "$VERSION"
2708 _ACEOF
2709
2710 # Some tools Automake needs.
2711
2712 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2713
2714
2715 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2716
2717
2718 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2719
2720
2721 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2722
2723
2724 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2725
2726 # For better backward compatibility. To be removed once Automake 1.9.x
2727 # dies out for good. For more background, see:
2728 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2729 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2730 mkdir_p='$(MKDIR_P)'
2731
2732 # We need awk for the "check" target (and possibly the TAP driver). The
2733 # system "awk" is bad on some platforms.
2734 # Always define AMTAR for backward compatibility. Yes, it's still used
2735 # in the wild :-( We should find a proper way to deprecate it ...
2736 AMTAR='$${TAR-tar}'
2737
2738
2739 # We'll loop over all known methods to create a tar archive until one works.
2740 _am_tools='gnutar pax cpio none'
2741
2742 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2743
2744
2745
2746
2747
2748
2749 # POSIX will say in a future version that running "rm -f" with no argument
2750 # is OK; and we want to be able to make that assumption in our Makefile
2751 # recipes. So use an aggressive probe to check that the usage we want is
2752 # actually supported "in the wild" to an acceptable degree.
2753 # See automake bug#10828.
2754 # To make any issue more visible, cause the running configure to be aborted
2755 # by default if the 'rm' program in use doesn't match our expectations; the
2756 # user can still override this though.
2757 if rm -f && rm -fr && rm -rf; then : OK; else
2758 cat >&2 <<'END'
2759 Oops!
2760
2761 Your 'rm' program seems unable to run without file operands specified
2762 on the command line, even when the '-f' option is present. This is contrary
2763 to the behaviour of most rm programs out there, and not conforming with
2764 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2765
2766 Please tell bug-automake@gnu.org about your system, including the value
2767 of your $PATH and any error possibly output before this message. This
2768 can help us improve future automake versions.
2769
2770 END
2771 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2772 echo 'Configuration will proceed anyway, since you have set the' >&2
2773 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2774 echo >&2
2775 else
2776 cat >&2 <<'END'
2777 Aborting the configuration process, to ensure you take notice of the issue.
2778
2779 You can download and install GNU coreutils to get an 'rm' implementation
2780 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2781
2782 If you want to complete the configuration process using your problematic
2783 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2784 to "yes", and re-run configure.
2785
2786 END
2787 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2788 fi
2789 fi
2790
2791
2792 case `pwd` in
2793 *\ * | *\ *)
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2795 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2796 esac
2797
2798
2799
2800 macro_version='2.4.6'
2801 macro_revision='2.4.6'
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815 ltmain=$ac_aux_dir/ltmain.sh
2816
2817 # Make sure we can run config.sub.
2818 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2819 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2820
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2822 $as_echo_n "checking build system type... " >&6; }
2823 if ${ac_cv_build+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 ac_build_alias=$build_alias
2827 test "x$ac_build_alias" = x &&
2828 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2829 test "x$ac_build_alias" = x &&
2830 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2831 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2832 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2833
2834 fi
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2836 $as_echo "$ac_cv_build" >&6; }
2837 case $ac_cv_build in
2838 *-*-*) ;;
2839 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2840 esac
2841 build=$ac_cv_build
2842 ac_save_IFS=$IFS; IFS='-'
2843 set x $ac_cv_build
2844 shift
2845 build_cpu=$1
2846 build_vendor=$2
2847 shift; shift
2848 # Remember, the first character of IFS is used to create $*,
2849 # except with old shells:
2850 build_os=$*
2851 IFS=$ac_save_IFS
2852 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2853
2854
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2856 $as_echo_n "checking host system type... " >&6; }
2857 if ${ac_cv_host+:} false; then :
2858 $as_echo_n "(cached) " >&6
2859 else
2860 if test "x$host_alias" = x; then
2861 ac_cv_host=$ac_cv_build
2862 else
2863 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2864 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2865 fi
2866
2867 fi
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2869 $as_echo "$ac_cv_host" >&6; }
2870 case $ac_cv_host in
2871 *-*-*) ;;
2872 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2873 esac
2874 host=$ac_cv_host
2875 ac_save_IFS=$IFS; IFS='-'
2876 set x $ac_cv_host
2877 shift
2878 host_cpu=$1
2879 host_vendor=$2
2880 shift; shift
2881 # Remember, the first character of IFS is used to create $*,
2882 # except with old shells:
2883 host_os=$*
2884 IFS=$ac_save_IFS
2885 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2886
2887
2888 # Backslashify metacharacters that are still active within
2889 # double-quoted strings.
2890 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2891
2892 # Same as above, but do not quote variable references.
2893 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2894
2895 # Sed substitution to delay expansion of an escaped shell variable in a
2896 # double_quote_subst'ed string.
2897 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2898
2899 # Sed substitution to delay expansion of an escaped single quote.
2900 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2901
2902 # Sed substitution to avoid accidental globbing in evaled expressions
2903 no_glob_subst='s/\*/\\\*/g'
2904
2905 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2906 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2907 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2908
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2910 $as_echo_n "checking how to print strings... " >&6; }
2911 # Test print first, because it will be a builtin if present.
2912 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2913 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2914 ECHO='print -r --'
2915 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2916 ECHO='printf %s\n'
2917 else
2918 # Use this function as a fallback that always works.
2919 func_fallback_echo ()
2920 {
2921 eval 'cat <<_LTECHO_EOF
2922 $1
2923 _LTECHO_EOF'
2924 }
2925 ECHO='func_fallback_echo'
2926 fi
2927
2928 # func_echo_all arg...
2929 # Invoke $ECHO with all args, space-separated.
2930 func_echo_all ()
2931 {
2932 $ECHO ""
2933 }
2934
2935 case $ECHO in
2936 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2937 $as_echo "printf" >&6; } ;;
2938 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2939 $as_echo "print -r" >&6; } ;;
2940 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2941 $as_echo "cat" >&6; } ;;
2942 esac
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957 DEPDIR="${am__leading_dot}deps"
2958
2959 ac_config_commands="$ac_config_commands depfiles"
2960
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2962 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2963 cat > confinc.mk << 'END'
2964 am__doit:
2965 @echo this is the am__doit target >confinc.out
2966 .PHONY: am__doit
2967 END
2968 am__include="#"
2969 am__quote=
2970 # BSD make does it like this.
2971 echo '.include "confinc.mk" # ignored' > confmf.BSD
2972 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2973 echo 'include confinc.mk # ignored' > confmf.GNU
2974 _am_result=no
2975 for s in GNU BSD; do
2976 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2977 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }
2981 case $?:`cat confinc.out 2>/dev/null` in #(
2982 '0:this is the am__doit target') :
2983 case $s in #(
2984 BSD) :
2985 am__include='.include' am__quote='"' ;; #(
2986 *) :
2987 am__include='include' am__quote='' ;;
2988 esac ;; #(
2989 *) :
2990 ;;
2991 esac
2992 if test "$am__include" != "#"; then
2993 _am_result="yes ($s style)"
2994 break
2995 fi
2996 done
2997 rm -f confinc.* confmf.*
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2999 $as_echo "${_am_result}" >&6; }
3000
3001 # Check whether --enable-dependency-tracking was given.
3002 if test "${enable_dependency_tracking+set}" = set; then :
3003 enableval=$enable_dependency_tracking;
3004 fi
3005
3006 if test "x$enable_dependency_tracking" != xno; then
3007 am_depcomp="$ac_aux_dir/depcomp"
3008 AMDEPBACKSLASH='\'
3009 am__nodep='_no'
3010 fi
3011 if test "x$enable_dependency_tracking" != xno; then
3012 AMDEP_TRUE=
3013 AMDEP_FALSE='#'
3014 else
3015 AMDEP_TRUE='#'
3016 AMDEP_FALSE=
3017 fi
3018
3019
3020 ac_ext=c
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025 if test -n "$ac_tool_prefix"; then
3026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 break 2
3046 fi
3047 done
3048 done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 CC=$ac_cv_prog_CC
3054 if test -n "$CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3057 else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 fi
3061
3062
3063 fi
3064 if test -z "$ac_cv_prog_CC"; then
3065 ac_ct_CC=$CC
3066 # Extract the first word of "gcc", so it can be a program name with args.
3067 set dummy gcc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 if test -n "$ac_ct_CC"; then
3074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_ac_ct_CC="gcc"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3086 fi
3087 done
3088 done
3089 IFS=$as_save_IFS
3090
3091 fi
3092 fi
3093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3094 if test -n "$ac_ct_CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3096 $as_echo "$ac_ct_CC" >&6; }
3097 else
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101
3102 if test "x$ac_ct_CC" = x; then
3103 CC=""
3104 else
3105 case $cross_compiling:$ac_tool_warned in
3106 yes:)
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3109 ac_tool_warned=yes ;;
3110 esac
3111 CC=$ac_ct_CC
3112 fi
3113 else
3114 CC="$ac_cv_prog_CC"
3115 fi
3116
3117 if test -z "$CC"; then
3118 if test -n "$ac_tool_prefix"; then
3119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3120 set dummy ${ac_tool_prefix}cc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC="${ac_tool_prefix}cc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156 fi
3157 fi
3158 if test -z "$CC"; then
3159 # Extract the first word of "cc", so it can be a program name with args.
3160 set dummy cc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else
3169 ac_prog_rejected=no
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3178 ac_prog_rejected=yes
3179 continue
3180 fi
3181 ac_cv_prog_CC="cc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 if test $ac_prog_rejected = yes; then
3190 # We found a bogon in the path, so make sure we never use it.
3191 set dummy $ac_cv_prog_CC
3192 shift
3193 if test $# != 0; then
3194 # We chose a different compiler from the bogus one.
3195 # However, it has the same basename, so the bogon will be chosen
3196 # first if we set CC to just the basename; use the full file name.
3197 shift
3198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3199 fi
3200 fi
3201 fi
3202 fi
3203 CC=$ac_cv_prog_CC
3204 if test -n "$CC"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206 $as_echo "$CC" >&6; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213 fi
3214 if test -z "$CC"; then
3215 if test -n "$ac_tool_prefix"; then
3216 for ac_prog in cl.exe
3217 do
3218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if ${ac_cv_prog_CC+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 if test -n "$CC"; then
3226 ac_cv_prog_CC="$CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239 done
3240 done
3241 IFS=$as_save_IFS
3242
3243 fi
3244 fi
3245 CC=$ac_cv_prog_CC
3246 if test -n "$CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248 $as_echo "$CC" >&6; }
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 fi
3253
3254
3255 test -n "$CC" && break
3256 done
3257 fi
3258 if test -z "$CC"; then
3259 ac_ct_CC=$CC
3260 for ac_prog in cl.exe
3261 do
3262 # Extract the first word of "$ac_prog", so it can be a program name with args.
3263 set dummy $ac_prog; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if test -n "$ac_ct_CC"; then
3270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_ac_ct_CC="$ac_prog"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 fi
3288 fi
3289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3290 if test -n "$ac_ct_CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3292 $as_echo "$ac_ct_CC" >&6; }
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 fi
3297
3298
3299 test -n "$ac_ct_CC" && break
3300 done
3301
3302 if test "x$ac_ct_CC" = x; then
3303 CC=""
3304 else
3305 case $cross_compiling:$ac_tool_warned in
3306 yes:)
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned=yes ;;
3310 esac
3311 CC=$ac_ct_CC
3312 fi
3313 fi
3314
3315 fi
3316
3317
3318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "no acceptable C compiler found in \$PATH
3321 See \`config.log' for more details" "$LINENO" 5; }
3322
3323 # Provide some information about the compiler.
3324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3325 set X $ac_compile
3326 ac_compiler=$2
3327 for ac_option in --version -v -V -qversion; do
3328 { { ac_try="$ac_compiler $ac_option >&5"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3336 ac_status=$?
3337 if test -s conftest.err; then
3338 sed '10a\
3339 ... rest of stderr output deleted ...
3340 10q' conftest.err >conftest.er1
3341 cat conftest.er1 >&5
3342 fi
3343 rm -f conftest.er1 conftest.err
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }
3346 done
3347
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3350
3351 int
3352 main ()
3353 {
3354
3355 ;
3356 return 0;
3357 }
3358 _ACEOF
3359 ac_clean_files_save=$ac_clean_files
3360 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3361 # Try to create an executable without -o first, disregard a.out.
3362 # It will help us diagnose broken compilers, and finding out an intuition
3363 # of exeext.
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3365 $as_echo_n "checking whether the C compiler works... " >&6; }
3366 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3367
3368 # The possible output files:
3369 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3370
3371 ac_rmfiles=
3372 for ac_file in $ac_files
3373 do
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3377 esac
3378 done
3379 rm -f $ac_rmfiles
3380
3381 if { { ac_try="$ac_link_default"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link_default") 2>&5
3389 ac_status=$?
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; then :
3392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3395 # so that the user can short-circuit this test for compilers unknown to
3396 # Autoconf.
3397 for ac_file in $ac_files ''
3398 do
3399 test -f "$ac_file" || continue
3400 case $ac_file in
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3402 ;;
3403 [ab].out )
3404 # We found the default executable, but exeext='' is most
3405 # certainly right.
3406 break;;
3407 *.* )
3408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3409 then :; else
3410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411 fi
3412 # We set ac_cv_exeext here because the later test for it is not
3413 # safe: cross compilers may not add the suffix if given an `-o'
3414 # argument, so we may need to know it at that point already.
3415 # Even if this section looks crufty: it has the advantage of
3416 # actually working.
3417 break;;
3418 * )
3419 break;;
3420 esac
3421 done
3422 test "$ac_cv_exeext" = no && ac_cv_exeext=
3423
3424 else
3425 ac_file=''
3426 fi
3427 if test -z "$ac_file"; then :
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 $as_echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error 77 "C compiler cannot create executables
3436 See \`config.log' for more details" "$LINENO" 5; }
3437 else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3439 $as_echo "yes" >&6; }
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3442 $as_echo_n "checking for C compiler default output file name... " >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3444 $as_echo "$ac_file" >&6; }
3445 ac_exeext=$ac_cv_exeext
3446
3447 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3448 ac_clean_files=$ac_clean_files_save
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3450 $as_echo_n "checking for suffix of executables... " >&6; }
3451 if { { ac_try="$ac_link"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_link") 2>&5
3459 ac_status=$?
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }; then :
3462 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3463 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3464 # work properly (i.e., refer to `conftest.exe'), while it won't with
3465 # `rm'.
3466 for ac_file in conftest.exe conftest conftest.*; do
3467 test -f "$ac_file" || continue
3468 case $ac_file in
3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3471 break;;
3472 * ) break;;
3473 esac
3474 done
3475 else
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3479 See \`config.log' for more details" "$LINENO" 5; }
3480 fi
3481 rm -f conftest conftest$ac_cv_exeext
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3483 $as_echo "$ac_cv_exeext" >&6; }
3484
3485 rm -f conftest.$ac_ext
3486 EXEEXT=$ac_cv_exeext
3487 ac_exeext=$EXEEXT
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490 #include <stdio.h>
3491 int
3492 main ()
3493 {
3494 FILE *f = fopen ("conftest.out", "w");
3495 return ferror (f) || fclose (f) != 0;
3496
3497 ;
3498 return 0;
3499 }
3500 _ACEOF
3501 ac_clean_files="$ac_clean_files conftest.out"
3502 # Check that the compiler produces executables we can run. If not, either
3503 # the compiler is broken, or we cross compile.
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3505 $as_echo_n "checking whether we are cross compiling... " >&6; }
3506 if test "$cross_compiling" != yes; then
3507 { { ac_try="$ac_link"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link") 2>&5
3515 ac_status=$?
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }
3518 if { ac_try='./conftest$ac_cv_exeext'
3519 { { case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_try") 2>&5
3526 ac_status=$?
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; }; then
3529 cross_compiling=no
3530 else
3531 if test "$cross_compiling" = maybe; then
3532 cross_compiling=yes
3533 else
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "cannot run C compiled programs.
3537 If you meant to cross compile, use \`--host'.
3538 See \`config.log' for more details" "$LINENO" 5; }
3539 fi
3540 fi
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3543 $as_echo "$cross_compiling" >&6; }
3544
3545 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3546 ac_clean_files=$ac_clean_files_save
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3548 $as_echo_n "checking for suffix of object files... " >&6; }
3549 if ${ac_cv_objext+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554
3555 int
3556 main ()
3557 {
3558
3559 ;
3560 return 0;
3561 }
3562 _ACEOF
3563 rm -f conftest.o conftest.obj
3564 if { { ac_try="$ac_compile"
3565 case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568 esac
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571 (eval "$ac_compile") 2>&5
3572 ac_status=$?
3573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574 test $ac_status = 0; }; then :
3575 for ac_file in conftest.o conftest.obj conftest.*; do
3576 test -f "$ac_file" || continue;
3577 case $ac_file in
3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3579 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3580 break;;
3581 esac
3582 done
3583 else
3584 $as_echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "cannot compute suffix of object files: cannot compile
3590 See \`config.log' for more details" "$LINENO" 5; }
3591 fi
3592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3593 fi
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3595 $as_echo "$ac_cv_objext" >&6; }
3596 OBJEXT=$ac_cv_objext
3597 ac_objext=$OBJEXT
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3599 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3600 if ${ac_cv_c_compiler_gnu+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3605
3606 int
3607 main ()
3608 {
3609 #ifndef __GNUC__
3610 choke me
3611 #endif
3612
3613 ;
3614 return 0;
3615 }
3616 _ACEOF
3617 if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_compiler_gnu=yes
3619 else
3620 ac_compiler_gnu=no
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3624
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3627 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3628 if test $ac_compiler_gnu = yes; then
3629 GCC=yes
3630 else
3631 GCC=
3632 fi
3633 ac_test_CFLAGS=${CFLAGS+set}
3634 ac_save_CFLAGS=$CFLAGS
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3636 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3637 if ${ac_cv_prog_cc_g+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 ac_save_c_werror_flag=$ac_c_werror_flag
3641 ac_c_werror_flag=yes
3642 ac_cv_prog_cc_g=no
3643 CFLAGS="-g"
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646
3647 int
3648 main ()
3649 {
3650
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_cv_prog_cc_g=yes
3657 else
3658 CFLAGS=""
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3661
3662 int
3663 main ()
3664 {
3665
3666 ;
3667 return 0;
3668 }
3669 _ACEOF
3670 if ac_fn_c_try_compile "$LINENO"; then :
3671
3672 else
3673 ac_c_werror_flag=$ac_save_c_werror_flag
3674 CFLAGS="-g"
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3677
3678 int
3679 main ()
3680 {
3681
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 if ac_fn_c_try_compile "$LINENO"; then :
3687 ac_cv_prog_cc_g=yes
3688 fi
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 fi
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 ac_c_werror_flag=$ac_save_c_werror_flag
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3697 $as_echo "$ac_cv_prog_cc_g" >&6; }
3698 if test "$ac_test_CFLAGS" = set; then
3699 CFLAGS=$ac_save_CFLAGS
3700 elif test $ac_cv_prog_cc_g = yes; then
3701 if test "$GCC" = yes; then
3702 CFLAGS="-g -O2"
3703 else
3704 CFLAGS="-g"
3705 fi
3706 else
3707 if test "$GCC" = yes; then
3708 CFLAGS="-O2"
3709 else
3710 CFLAGS=
3711 fi
3712 fi
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3714 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3715 if ${ac_cv_prog_cc_c89+:} false; then :
3716 $as_echo_n "(cached) " >&6
3717 else
3718 ac_cv_prog_cc_c89=no
3719 ac_save_CC=$CC
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722 #include <stdarg.h>
3723 #include <stdio.h>
3724 struct stat;
3725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3726 struct buf { int x; };
3727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3728 static char *e (p, i)
3729 char **p;
3730 int i;
3731 {
3732 return p[i];
3733 }
3734 static char *f (char * (*g) (char **, int), char **p, ...)
3735 {
3736 char *s;
3737 va_list v;
3738 va_start (v,p);
3739 s = g (p, va_arg (v,int));
3740 va_end (v);
3741 return s;
3742 }
3743
3744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3745 function prototypes and stuff, but not '\xHH' hex character constants.
3746 These don't provoke an error unfortunately, instead are silently treated
3747 as 'x'. The following induces an error, until -std is added to get
3748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3749 array size at least. It's necessary to write '\x00'==0 to get something
3750 that's true only with -std. */
3751 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3752
3753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3754 inside strings and character constants. */
3755 #define FOO(x) 'x'
3756 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3757
3758 int test (int i, double x);
3759 struct s1 {int (*f) (int a);};
3760 struct s2 {int (*f) (double a);};
3761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3762 int argc;
3763 char **argv;
3764 int
3765 main ()
3766 {
3767 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3768 ;
3769 return 0;
3770 }
3771 _ACEOF
3772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3773 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3774 do
3775 CC="$ac_save_CC $ac_arg"
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_prog_cc_c89=$ac_arg
3778 fi
3779 rm -f core conftest.err conftest.$ac_objext
3780 test "x$ac_cv_prog_cc_c89" != "xno" && break
3781 done
3782 rm -f conftest.$ac_ext
3783 CC=$ac_save_CC
3784
3785 fi
3786 # AC_CACHE_VAL
3787 case "x$ac_cv_prog_cc_c89" in
3788 x)
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3790 $as_echo "none needed" >&6; } ;;
3791 xno)
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3793 $as_echo "unsupported" >&6; } ;;
3794 *)
3795 CC="$CC $ac_cv_prog_cc_c89"
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3797 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3798 esac
3799 if test "x$ac_cv_prog_cc_c89" != xno; then :
3800
3801 fi
3802
3803 ac_ext=c
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808
3809 ac_ext=c
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3815 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3816 if ${am_cv_prog_cc_c_o+:} false; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821
3822 int
3823 main ()
3824 {
3825
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 # Make sure it works both with $CC and with simple cc.
3831 # Following AC_PROG_CC_C_O, we do the test twice because some
3832 # compilers refuse to overwrite an existing .o file with -o,
3833 # though they will create one.
3834 am_cv_prog_cc_c_o=yes
3835 for am_i in 1 2; do
3836 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3837 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } \
3841 && test -f conftest2.$ac_objext; then
3842 : OK
3843 else
3844 am_cv_prog_cc_c_o=no
3845 break
3846 fi
3847 done
3848 rm -f core conftest*
3849 unset am_i
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3852 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3853 if test "$am_cv_prog_cc_c_o" != yes; then
3854 # Losing compiler, so override with the script.
3855 # FIXME: It is wrong to rewrite CC.
3856 # But if we don't then we get into trouble of one sort or another.
3857 # A longer-term fix would be to have automake use am__CC in this case,
3858 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3859 CC="$am_aux_dir/compile $CC"
3860 fi
3861 ac_ext=c
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866
3867
3868 depcc="$CC" am_compiler_list=
3869
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3871 $as_echo_n "checking dependency style of $depcc... " >&6; }
3872 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3876 # We make a subdir and do the tests there. Otherwise we can end up
3877 # making bogus files that we don't know about and never remove. For
3878 # instance it was reported that on HP-UX the gcc test will end up
3879 # making a dummy file named 'D' -- because '-MD' means "put the output
3880 # in D".
3881 rm -rf conftest.dir
3882 mkdir conftest.dir
3883 # Copy depcomp to subdir because otherwise we won't find it if we're
3884 # using a relative directory.
3885 cp "$am_depcomp" conftest.dir
3886 cd conftest.dir
3887 # We will build objects and dependencies in a subdirectory because
3888 # it helps to detect inapplicable dependency modes. For instance
3889 # both Tru64's cc and ICC support -MD to output dependencies as a
3890 # side effect of compilation, but ICC will put the dependencies in
3891 # the current directory while Tru64 will put them in the object
3892 # directory.
3893 mkdir sub
3894
3895 am_cv_CC_dependencies_compiler_type=none
3896 if test "$am_compiler_list" = ""; then
3897 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3898 fi
3899 am__universal=false
3900 case " $depcc " in #(
3901 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3902 esac
3903
3904 for depmode in $am_compiler_list; do
3905 # Setup a source with many dependencies, because some compilers
3906 # like to wrap large dependency lists on column 80 (with \), and
3907 # we should not choose a depcomp mode which is confused by this.
3908 #
3909 # We need to recreate these files for each test, as the compiler may
3910 # overwrite some of them when testing with obscure command lines.
3911 # This happens at least with the AIX C compiler.
3912 : > sub/conftest.c
3913 for i in 1 2 3 4 5 6; do
3914 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3915 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3916 # Solaris 10 /bin/sh.
3917 echo '/* dummy */' > sub/conftst$i.h
3918 done
3919 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3920
3921 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3922 # mode. It turns out that the SunPro C++ compiler does not properly
3923 # handle '-M -o', and we need to detect this. Also, some Intel
3924 # versions had trouble with output in subdirs.
3925 am__obj=sub/conftest.${OBJEXT-o}
3926 am__minus_obj="-o $am__obj"
3927 case $depmode in
3928 gcc)
3929 # This depmode causes a compiler race in universal mode.
3930 test "$am__universal" = false || continue
3931 ;;
3932 nosideeffect)
3933 # After this tag, mechanisms are not by side-effect, so they'll
3934 # only be used when explicitly requested.
3935 if test "x$enable_dependency_tracking" = xyes; then
3936 continue
3937 else
3938 break
3939 fi
3940 ;;
3941 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3942 # This compiler won't grok '-c -o', but also, the minuso test has
3943 # not run yet. These depmodes are late enough in the game, and
3944 # so weak that their functioning should not be impacted.
3945 am__obj=conftest.${OBJEXT-o}
3946 am__minus_obj=
3947 ;;
3948 none) break ;;
3949 esac
3950 if depmode=$depmode \
3951 source=sub/conftest.c object=$am__obj \
3952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3953 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3954 >/dev/null 2>conftest.err &&
3955 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3956 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3957 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3958 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3959 # icc doesn't choke on unknown options, it will just issue warnings
3960 # or remarks (even with -Werror). So we grep stderr for any message
3961 # that says an option was ignored or not supported.
3962 # When given -MP, icc 7.0 and 7.1 complain thusly:
3963 # icc: Command line warning: ignoring option '-M'; no argument required
3964 # The diagnosis changed in icc 8.0:
3965 # icc: Command line remark: option '-MP' not supported
3966 if (grep 'ignoring option' conftest.err ||
3967 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3968 am_cv_CC_dependencies_compiler_type=$depmode
3969 break
3970 fi
3971 fi
3972 done
3973
3974 cd ..
3975 rm -rf conftest.dir
3976 else
3977 am_cv_CC_dependencies_compiler_type=none
3978 fi
3979
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3982 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3983 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3984
3985 if
3986 test "x$enable_dependency_tracking" != xno \
3987 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3988 am__fastdepCC_TRUE=
3989 am__fastdepCC_FALSE='#'
3990 else
3991 am__fastdepCC_TRUE='#'
3992 am__fastdepCC_FALSE=
3993 fi
3994
3995
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3997 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3998 if ${ac_cv_path_SED+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4002 for ac_i in 1 2 3 4 5 6 7; do
4003 ac_script="$ac_script$as_nl$ac_script"
4004 done
4005 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4006 { ac_script=; unset ac_script;}
4007 if test -z "$SED"; then
4008 ac_path_SED_found=false
4009 # Loop through the user's path and test for each of PROGNAME-LIST
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4012 do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_prog in sed gsed; do
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4018 as_fn_executable_p "$ac_path_SED" || continue
4019 # Check for GNU ac_path_SED and select it if it is found.
4020 # Check for GNU $ac_path_SED
4021 case `"$ac_path_SED" --version 2>&1` in
4022 *GNU*)
4023 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4024 *)
4025 ac_count=0
4026 $as_echo_n 0123456789 >"conftest.in"
4027 while :
4028 do
4029 cat "conftest.in" "conftest.in" >"conftest.tmp"
4030 mv "conftest.tmp" "conftest.in"
4031 cp "conftest.in" "conftest.nl"
4032 $as_echo '' >> "conftest.nl"
4033 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035 as_fn_arith $ac_count + 1 && ac_count=$as_val
4036 if test $ac_count -gt ${ac_path_SED_max-0}; then
4037 # Best one so far, save it but keep looking for a better one
4038 ac_cv_path_SED="$ac_path_SED"
4039 ac_path_SED_max=$ac_count
4040 fi
4041 # 10*(2^10) chars as input seems more than enough
4042 test $ac_count -gt 10 && break
4043 done
4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045 esac
4046
4047 $ac_path_SED_found && break 3
4048 done
4049 done
4050 done
4051 IFS=$as_save_IFS
4052 if test -z "$ac_cv_path_SED"; then
4053 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4054 fi
4055 else
4056 ac_cv_path_SED=$SED
4057 fi
4058
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4061 $as_echo "$ac_cv_path_SED" >&6; }
4062 SED="$ac_cv_path_SED"
4063 rm -f conftest.sed
4064
4065 test -z "$SED" && SED=sed
4066 Xsed="$SED -e 1s/^X//"
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4079 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4080 if ${ac_cv_path_GREP+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 if test -z "$GREP"; then
4084 ac_path_GREP_found=false
4085 # Loop through the user's path and test for each of PROGNAME-LIST
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4088 do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_prog in grep ggrep; do
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4094 as_fn_executable_p "$ac_path_GREP" || continue
4095 # Check for GNU ac_path_GREP and select it if it is found.
4096 # Check for GNU $ac_path_GREP
4097 case `"$ac_path_GREP" --version 2>&1` in
4098 *GNU*)
4099 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4100 *)
4101 ac_count=0
4102 $as_echo_n 0123456789 >"conftest.in"
4103 while :
4104 do
4105 cat "conftest.in" "conftest.in" >"conftest.tmp"
4106 mv "conftest.tmp" "conftest.in"
4107 cp "conftest.in" "conftest.nl"
4108 $as_echo 'GREP' >> "conftest.nl"
4109 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4111 as_fn_arith $ac_count + 1 && ac_count=$as_val
4112 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4113 # Best one so far, save it but keep looking for a better one
4114 ac_cv_path_GREP="$ac_path_GREP"
4115 ac_path_GREP_max=$ac_count
4116 fi
4117 # 10*(2^10) chars as input seems more than enough
4118 test $ac_count -gt 10 && break
4119 done
4120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4121 esac
4122
4123 $ac_path_GREP_found && break 3
4124 done
4125 done
4126 done
4127 IFS=$as_save_IFS
4128 if test -z "$ac_cv_path_GREP"; then
4129 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4130 fi
4131 else
4132 ac_cv_path_GREP=$GREP
4133 fi
4134
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4137 $as_echo "$ac_cv_path_GREP" >&6; }
4138 GREP="$ac_cv_path_GREP"
4139
4140
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4142 $as_echo_n "checking for egrep... " >&6; }
4143 if ${ac_cv_path_EGREP+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4147 then ac_cv_path_EGREP="$GREP -E"
4148 else
4149 if test -z "$EGREP"; then
4150 ac_path_EGREP_found=false
4151 # Loop through the user's path and test for each of PROGNAME-LIST
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4154 do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_prog in egrep; do
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4160 as_fn_executable_p "$ac_path_EGREP" || continue
4161 # Check for GNU ac_path_EGREP and select it if it is found.
4162 # Check for GNU $ac_path_EGREP
4163 case `"$ac_path_EGREP" --version 2>&1` in
4164 *GNU*)
4165 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4166 *)
4167 ac_count=0
4168 $as_echo_n 0123456789 >"conftest.in"
4169 while :
4170 do
4171 cat "conftest.in" "conftest.in" >"conftest.tmp"
4172 mv "conftest.tmp" "conftest.in"
4173 cp "conftest.in" "conftest.nl"
4174 $as_echo 'EGREP' >> "conftest.nl"
4175 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4177 as_fn_arith $ac_count + 1 && ac_count=$as_val
4178 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4179 # Best one so far, save it but keep looking for a better one
4180 ac_cv_path_EGREP="$ac_path_EGREP"
4181 ac_path_EGREP_max=$ac_count
4182 fi
4183 # 10*(2^10) chars as input seems more than enough
4184 test $ac_count -gt 10 && break
4185 done
4186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4187 esac
4188
4189 $ac_path_EGREP_found && break 3
4190 done
4191 done
4192 done
4193 IFS=$as_save_IFS
4194 if test -z "$ac_cv_path_EGREP"; then
4195 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4196 fi
4197 else
4198 ac_cv_path_EGREP=$EGREP
4199 fi
4200
4201 fi
4202 fi
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4204 $as_echo "$ac_cv_path_EGREP" >&6; }
4205 EGREP="$ac_cv_path_EGREP"
4206
4207
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4209 $as_echo_n "checking for fgrep... " >&6; }
4210 if ${ac_cv_path_FGREP+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4214 then ac_cv_path_FGREP="$GREP -F"
4215 else
4216 if test -z "$FGREP"; then
4217 ac_path_FGREP_found=false
4218 # Loop through the user's path and test for each of PROGNAME-LIST
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4221 do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_prog in fgrep; do
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4227 as_fn_executable_p "$ac_path_FGREP" || continue
4228 # Check for GNU ac_path_FGREP and select it if it is found.
4229 # Check for GNU $ac_path_FGREP
4230 case `"$ac_path_FGREP" --version 2>&1` in
4231 *GNU*)
4232 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4233 *)
4234 ac_count=0
4235 $as_echo_n 0123456789 >"conftest.in"
4236 while :
4237 do
4238 cat "conftest.in" "conftest.in" >"conftest.tmp"
4239 mv "conftest.tmp" "conftest.in"
4240 cp "conftest.in" "conftest.nl"
4241 $as_echo 'FGREP' >> "conftest.nl"
4242 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4244 as_fn_arith $ac_count + 1 && ac_count=$as_val
4245 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4246 # Best one so far, save it but keep looking for a better one
4247 ac_cv_path_FGREP="$ac_path_FGREP"
4248 ac_path_FGREP_max=$ac_count
4249 fi
4250 # 10*(2^10) chars as input seems more than enough
4251 test $ac_count -gt 10 && break
4252 done
4253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4254 esac
4255
4256 $ac_path_FGREP_found && break 3
4257 done
4258 done
4259 done
4260 IFS=$as_save_IFS
4261 if test -z "$ac_cv_path_FGREP"; then
4262 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4263 fi
4264 else
4265 ac_cv_path_FGREP=$FGREP
4266 fi
4267
4268 fi
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4271 $as_echo "$ac_cv_path_FGREP" >&6; }
4272 FGREP="$ac_cv_path_FGREP"
4273
4274
4275 test -z "$GREP" && GREP=grep
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295 # Check whether --with-gnu-ld was given.
4296 if test "${with_gnu_ld+set}" = set; then :
4297 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4298 else
4299 with_gnu_ld=no
4300 fi
4301
4302 ac_prog=ld
4303 if test yes = "$GCC"; then
4304 # Check if gcc -print-prog-name=ld gives a path.
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4306 $as_echo_n "checking for ld used by $CC... " >&6; }
4307 case $host in
4308 *-*-mingw*)
4309 # gcc leaves a trailing carriage return, which upsets mingw
4310 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4311 *)
4312 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4313 esac
4314 case $ac_prog in
4315 # Accept absolute paths.
4316 [\\/]* | ?:[\\/]*)
4317 re_direlt='/[^/][^/]*/\.\./'
4318 # Canonicalize the pathname of ld
4319 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4320 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4321 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4322 done
4323 test -z "$LD" && LD=$ac_prog
4324 ;;
4325 "")
4326 # If it fails, then pretend we aren't using GCC.
4327 ac_prog=ld
4328 ;;
4329 *)
4330 # If it is relative, then search for the first ld in PATH.
4331 with_gnu_ld=unknown
4332 ;;
4333 esac
4334 elif test yes = "$with_gnu_ld"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4336 $as_echo_n "checking for GNU ld... " >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4339 $as_echo_n "checking for non-GNU ld... " >&6; }
4340 fi
4341 if ${lt_cv_path_LD+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test -z "$LD"; then
4345 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4346 for ac_dir in $PATH; do
4347 IFS=$lt_save_ifs
4348 test -z "$ac_dir" && ac_dir=.
4349 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4350 lt_cv_path_LD=$ac_dir/$ac_prog
4351 # Check to see if the program is GNU ld. I'd rather use --version,
4352 # but apparently some variants of GNU ld only accept -v.
4353 # Break only if it was the GNU/non-GNU ld that we prefer.
4354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4355 *GNU* | *'with BFD'*)
4356 test no != "$with_gnu_ld" && break
4357 ;;
4358 *)
4359 test yes != "$with_gnu_ld" && break
4360 ;;
4361 esac
4362 fi
4363 done
4364 IFS=$lt_save_ifs
4365 else
4366 lt_cv_path_LD=$LD # Let the user override the test with a path.
4367 fi
4368 fi
4369
4370 LD=$lt_cv_path_LD
4371 if test -n "$LD"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4373 $as_echo "$LD" >&6; }
4374 else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4377 fi
4378 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4380 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4381 if ${lt_cv_prog_gnu_ld+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4385 case `$LD -v 2>&1 </dev/null` in
4386 *GNU* | *'with BFD'*)
4387 lt_cv_prog_gnu_ld=yes
4388 ;;
4389 *)
4390 lt_cv_prog_gnu_ld=no
4391 ;;
4392 esac
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4395 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4396 with_gnu_ld=$lt_cv_prog_gnu_ld
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4407 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4408 if ${lt_cv_path_NM+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 if test -n "$NM"; then
4412 # Let the user override the test.
4413 lt_cv_path_NM=$NM
4414 else
4415 lt_nm_to_check=${ac_tool_prefix}nm
4416 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4417 lt_nm_to_check="$lt_nm_to_check nm"
4418 fi
4419 for lt_tmp_nm in $lt_nm_to_check; do
4420 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4421 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4422 IFS=$lt_save_ifs
4423 test -z "$ac_dir" && ac_dir=.
4424 tmp_nm=$ac_dir/$lt_tmp_nm
4425 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4426 # Check to see if the nm accepts a BSD-compat flag.
4427 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4428 # nm: unknown option "B" ignored
4429 # Tru64's nm complains that /dev/null is an invalid object file
4430 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4431 case $build_os in
4432 mingw*) lt_bad_file=conftest.nm/nofile ;;
4433 *) lt_bad_file=/dev/null ;;
4434 esac
4435 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4436 *$lt_bad_file* | *'Invalid file or object type'*)
4437 lt_cv_path_NM="$tmp_nm -B"
4438 break 2
4439 ;;
4440 *)
4441 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4442 */dev/null*)
4443 lt_cv_path_NM="$tmp_nm -p"
4444 break 2
4445 ;;
4446 *)
4447 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4448 continue # so that we can try to find one that supports BSD flags
4449 ;;
4450 esac
4451 ;;
4452 esac
4453 fi
4454 done
4455 IFS=$lt_save_ifs
4456 done
4457 : ${lt_cv_path_NM=no}
4458 fi
4459 fi
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4461 $as_echo "$lt_cv_path_NM" >&6; }
4462 if test no != "$lt_cv_path_NM"; then
4463 NM=$lt_cv_path_NM
4464 else
4465 # Didn't find any BSD compatible name lister, look for dumpbin.
4466 if test -n "$DUMPBIN"; then :
4467 # Let the user override the test.
4468 else
4469 if test -n "$ac_tool_prefix"; then
4470 for ac_prog in dumpbin "link -dump"
4471 do
4472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if ${ac_cv_prog_DUMPBIN+:} false; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 if test -n "$DUMPBIN"; then
4480 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493 done
4494 done
4495 IFS=$as_save_IFS
4496
4497 fi
4498 fi
4499 DUMPBIN=$ac_cv_prog_DUMPBIN
4500 if test -n "$DUMPBIN"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4502 $as_echo "$DUMPBIN" >&6; }
4503 else
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 $as_echo "no" >&6; }
4506 fi
4507
4508
4509 test -n "$DUMPBIN" && break
4510 done
4511 fi
4512 if test -z "$DUMPBIN"; then
4513 ac_ct_DUMPBIN=$DUMPBIN
4514 for ac_prog in dumpbin "link -dump"
4515 do
4516 # Extract the first word of "$ac_prog", so it can be a program name with args.
4517 set dummy $ac_prog; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test -n "$ac_ct_DUMPBIN"; then
4524 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4536 fi
4537 done
4538 done
4539 IFS=$as_save_IFS
4540
4541 fi
4542 fi
4543 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4544 if test -n "$ac_ct_DUMPBIN"; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4546 $as_echo "$ac_ct_DUMPBIN" >&6; }
4547 else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 fi
4551
4552
4553 test -n "$ac_ct_DUMPBIN" && break
4554 done
4555
4556 if test "x$ac_ct_DUMPBIN" = x; then
4557 DUMPBIN=":"
4558 else
4559 case $cross_compiling:$ac_tool_warned in
4560 yes:)
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4563 ac_tool_warned=yes ;;
4564 esac
4565 DUMPBIN=$ac_ct_DUMPBIN
4566 fi
4567 fi
4568
4569 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4570 *COFF*)
4571 DUMPBIN="$DUMPBIN -symbols -headers"
4572 ;;
4573 *)
4574 DUMPBIN=:
4575 ;;
4576 esac
4577 fi
4578
4579 if test : != "$DUMPBIN"; then
4580 NM=$DUMPBIN
4581 fi
4582 fi
4583 test -z "$NM" && NM=nm
4584
4585
4586
4587
4588
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4591 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4592 if ${lt_cv_nm_interface+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 lt_cv_nm_interface="BSD nm"
4596 echo "int some_variable = 0;" > conftest.$ac_ext
4597 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4598 (eval "$ac_compile" 2>conftest.err)
4599 cat conftest.err >&5
4600 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4601 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4602 cat conftest.err >&5
4603 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4604 cat conftest.out >&5
4605 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4606 lt_cv_nm_interface="MS dumpbin"
4607 fi
4608 rm -f conftest*
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4611 $as_echo "$lt_cv_nm_interface" >&6; }
4612
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4614 $as_echo_n "checking whether ln -s works... " >&6; }
4615 LN_S=$as_ln_s
4616 if test "$LN_S" = "ln -s"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4618 $as_echo "yes" >&6; }
4619 else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4621 $as_echo "no, using $LN_S" >&6; }
4622 fi
4623
4624 # find the maximum length of command line arguments
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4626 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4627 if ${lt_cv_sys_max_cmd_len+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 i=0
4631 teststring=ABCD
4632
4633 case $build_os in
4634 msdosdjgpp*)
4635 # On DJGPP, this test can blow up pretty badly due to problems in libc
4636 # (any single argument exceeding 2000 bytes causes a buffer overrun
4637 # during glob expansion). Even if it were fixed, the result of this
4638 # check would be larger than it should be.
4639 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4640 ;;
4641
4642 gnu*)
4643 # Under GNU Hurd, this test is not required because there is
4644 # no limit to the length of command line arguments.
4645 # Libtool will interpret -1 as no limit whatsoever
4646 lt_cv_sys_max_cmd_len=-1;
4647 ;;
4648
4649 cygwin* | mingw* | cegcc*)
4650 # On Win9x/ME, this test blows up -- it succeeds, but takes
4651 # about 5 minutes as the teststring grows exponentially.
4652 # Worse, since 9x/ME are not pre-emptively multitasking,
4653 # you end up with a "frozen" computer, even though with patience
4654 # the test eventually succeeds (with a max line length of 256k).
4655 # Instead, let's just punt: use the minimum linelength reported by
4656 # all of the supported platforms: 8192 (on NT/2K/XP).
4657 lt_cv_sys_max_cmd_len=8192;
4658 ;;
4659
4660 mint*)
4661 # On MiNT this can take a long time and run out of memory.
4662 lt_cv_sys_max_cmd_len=8192;
4663 ;;
4664
4665 amigaos*)
4666 # On AmigaOS with pdksh, this test takes hours, literally.
4667 # So we just punt and use a minimum line length of 8192.
4668 lt_cv_sys_max_cmd_len=8192;
4669 ;;
4670
4671 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4672 # This has been around since 386BSD, at least. Likely further.
4673 if test -x /sbin/sysctl; then
4674 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4675 elif test -x /usr/sbin/sysctl; then
4676 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4677 else
4678 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4679 fi
4680 # And add a safety zone
4681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4683 ;;
4684
4685 interix*)
4686 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4687 lt_cv_sys_max_cmd_len=196608
4688 ;;
4689
4690 os2*)
4691 # The test takes a long time on OS/2.
4692 lt_cv_sys_max_cmd_len=8192
4693 ;;
4694
4695 osf*)
4696 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4697 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4698 # nice to cause kernel panics so lets avoid the loop below.
4699 # First set a reasonable default.
4700 lt_cv_sys_max_cmd_len=16384
4701 #
4702 if test -x /sbin/sysconfig; then
4703 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4704 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4705 esac
4706 fi
4707 ;;
4708 sco3.2v5*)
4709 lt_cv_sys_max_cmd_len=102400
4710 ;;
4711 sysv5* | sco5v6* | sysv4.2uw2*)
4712 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4713 if test -n "$kargmax"; then
4714 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4715 else
4716 lt_cv_sys_max_cmd_len=32768
4717 fi
4718 ;;
4719 *)
4720 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4721 if test -n "$lt_cv_sys_max_cmd_len" && \
4722 test undefined != "$lt_cv_sys_max_cmd_len"; then
4723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4725 else
4726 # Make teststring a little bigger before we do anything with it.
4727 # a 1K string should be a reasonable start.
4728 for i in 1 2 3 4 5 6 7 8; do
4729 teststring=$teststring$teststring
4730 done
4731 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4732 # If test is not a shell built-in, we'll probably end up computing a
4733 # maximum length that is only half of the actual maximum length, but
4734 # we can't tell.
4735 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4736 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4737 test 17 != "$i" # 1/2 MB should be enough
4738 do
4739 i=`expr $i + 1`
4740 teststring=$teststring$teststring
4741 done
4742 # Only check the string length outside the loop.
4743 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4744 teststring=
4745 # Add a significant safety factor because C++ compilers can tack on
4746 # massive amounts of additional arguments before passing them to the
4747 # linker. It appears as though 1/2 is a usable value.
4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4749 fi
4750 ;;
4751 esac
4752
4753 fi
4754
4755 if test -n "$lt_cv_sys_max_cmd_len"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4757 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4758 else
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4760 $as_echo "none" >&6; }
4761 fi
4762 max_cmd_len=$lt_cv_sys_max_cmd_len
4763
4764
4765
4766
4767
4768
4769 : ${CP="cp -f"}
4770 : ${MV="mv -f"}
4771 : ${RM="rm -f"}
4772
4773 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4774 lt_unset=unset
4775 else
4776 lt_unset=false
4777 fi
4778
4779
4780
4781
4782
4783 # test EBCDIC or ASCII
4784 case `echo X|tr X '\101'` in
4785 A) # ASCII based system
4786 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4787 lt_SP2NL='tr \040 \012'
4788 lt_NL2SP='tr \015\012 \040\040'
4789 ;;
4790 *) # EBCDIC based system
4791 lt_SP2NL='tr \100 \n'
4792 lt_NL2SP='tr \r\n \100\100'
4793 ;;
4794 esac
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4805 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4806 if ${lt_cv_to_host_file_cmd+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 case $host in
4810 *-*-mingw* )
4811 case $build in
4812 *-*-mingw* ) # actually msys
4813 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4814 ;;
4815 *-*-cygwin* )
4816 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4817 ;;
4818 * ) # otherwise, assume *nix
4819 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4820 ;;
4821 esac
4822 ;;
4823 *-*-cygwin* )
4824 case $build in
4825 *-*-mingw* ) # actually msys
4826 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4827 ;;
4828 *-*-cygwin* )
4829 lt_cv_to_host_file_cmd=func_convert_file_noop
4830 ;;
4831 * ) # otherwise, assume *nix
4832 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4833 ;;
4834 esac
4835 ;;
4836 * ) # unhandled hosts (and "normal" native builds)
4837 lt_cv_to_host_file_cmd=func_convert_file_noop
4838 ;;
4839 esac
4840
4841 fi
4842
4843 to_host_file_cmd=$lt_cv_to_host_file_cmd
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4845 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4846
4847
4848
4849
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4852 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4853 if ${lt_cv_to_tool_file_cmd+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 #assume ordinary cross tools, or native build.
4857 lt_cv_to_tool_file_cmd=func_convert_file_noop
4858 case $host in
4859 *-*-mingw* )
4860 case $build in
4861 *-*-mingw* ) # actually msys
4862 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4863 ;;
4864 esac
4865 ;;
4866 esac
4867
4868 fi
4869
4870 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4872 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4873
4874
4875
4876
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4879 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4880 if ${lt_cv_ld_reload_flag+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 lt_cv_ld_reload_flag='-r'
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4886 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4887 reload_flag=$lt_cv_ld_reload_flag
4888 case $reload_flag in
4889 "" | " "*) ;;
4890 *) reload_flag=" $reload_flag" ;;
4891 esac
4892 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4893 case $host_os in
4894 cygwin* | mingw* | pw32* | cegcc*)
4895 if test yes != "$GCC"; then
4896 reload_cmds=false
4897 fi
4898 ;;
4899 darwin*)
4900 if test yes = "$GCC"; then
4901 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4902 else
4903 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4904 fi
4905 ;;
4906 esac
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916 if test -n "$ac_tool_prefix"; then
4917 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4918 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_prog_OBJDUMP+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if test -n "$OBJDUMP"; then
4925 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4937 fi
4938 done
4939 done
4940 IFS=$as_save_IFS
4941
4942 fi
4943 fi
4944 OBJDUMP=$ac_cv_prog_OBJDUMP
4945 if test -n "$OBJDUMP"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4947 $as_echo "$OBJDUMP" >&6; }
4948 else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4951 fi
4952
4953
4954 fi
4955 if test -z "$ac_cv_prog_OBJDUMP"; then
4956 ac_ct_OBJDUMP=$OBJDUMP
4957 # Extract the first word of "objdump", so it can be a program name with args.
4958 set dummy objdump; ac_word=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 if test -n "$ac_ct_OBJDUMP"; then
4965 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4966 else
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4969 do
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 break 2
4977 fi
4978 done
4979 done
4980 IFS=$as_save_IFS
4981
4982 fi
4983 fi
4984 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4985 if test -n "$ac_ct_OBJDUMP"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4987 $as_echo "$ac_ct_OBJDUMP" >&6; }
4988 else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4991 fi
4992
4993 if test "x$ac_ct_OBJDUMP" = x; then
4994 OBJDUMP="false"
4995 else
4996 case $cross_compiling:$ac_tool_warned in
4997 yes:)
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5000 ac_tool_warned=yes ;;
5001 esac
5002 OBJDUMP=$ac_ct_OBJDUMP
5003 fi
5004 else
5005 OBJDUMP="$ac_cv_prog_OBJDUMP"
5006 fi
5007
5008 test -z "$OBJDUMP" && OBJDUMP=objdump
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5019 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5020 if ${lt_cv_deplibs_check_method+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 lt_cv_file_magic_cmd='$MAGIC_CMD'
5024 lt_cv_file_magic_test_file=
5025 lt_cv_deplibs_check_method='unknown'
5026 # Need to set the preceding variable on all platforms that support
5027 # interlibrary dependencies.
5028 # 'none' -- dependencies not supported.
5029 # 'unknown' -- same as none, but documents that we really don't know.
5030 # 'pass_all' -- all dependencies passed with no checks.
5031 # 'test_compile' -- check by making test program.
5032 # 'file_magic [[regex]]' -- check by looking for files in library path
5033 # that responds to the $file_magic_cmd with a given extended regex.
5034 # If you have 'file' or equivalent on your system and you're not sure
5035 # whether 'pass_all' will *always* work, you probably want this one.
5036
5037 case $host_os in
5038 aix[4-9]*)
5039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041
5042 beos*)
5043 lt_cv_deplibs_check_method=pass_all
5044 ;;
5045
5046 bsdi[45]*)
5047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5048 lt_cv_file_magic_cmd='/usr/bin/file -L'
5049 lt_cv_file_magic_test_file=/shlib/libc.so
5050 ;;
5051
5052 cygwin*)
5053 # func_win32_libid is a shell function defined in ltmain.sh
5054 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5055 lt_cv_file_magic_cmd='func_win32_libid'
5056 ;;
5057
5058 mingw* | pw32*)
5059 # Base MSYS/MinGW do not provide the 'file' command needed by
5060 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5061 # unless we find 'file', for example because we are cross-compiling.
5062 if ( file / ) >/dev/null 2>&1; then
5063 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5064 lt_cv_file_magic_cmd='func_win32_libid'
5065 else
5066 # Keep this pattern in sync with the one in func_win32_libid.
5067 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5068 lt_cv_file_magic_cmd='$OBJDUMP -f'
5069 fi
5070 ;;
5071
5072 cegcc*)
5073 # use the weaker test based on 'objdump'. See mingw*.
5074 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5075 lt_cv_file_magic_cmd='$OBJDUMP -f'
5076 ;;
5077
5078 darwin* | rhapsody*)
5079 lt_cv_deplibs_check_method=pass_all
5080 ;;
5081
5082 freebsd* | dragonfly*)
5083 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5084 case $host_cpu in
5085 i*86 )
5086 # Not sure whether the presence of OpenBSD here was a mistake.
5087 # Let's accept both of them until this is cleared up.
5088 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5089 lt_cv_file_magic_cmd=/usr/bin/file
5090 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5091 ;;
5092 esac
5093 else
5094 lt_cv_deplibs_check_method=pass_all
5095 fi
5096 ;;
5097
5098 haiku*)
5099 lt_cv_deplibs_check_method=pass_all
5100 ;;
5101
5102 hpux10.20* | hpux11*)
5103 lt_cv_file_magic_cmd=/usr/bin/file
5104 case $host_cpu in
5105 ia64*)
5106 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5107 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5108 ;;
5109 hppa*64*)
5110 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]'
5111 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5112 ;;
5113 *)
5114 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5115 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5116 ;;
5117 esac
5118 ;;
5119
5120 interix[3-9]*)
5121 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5123 ;;
5124
5125 irix5* | irix6* | nonstopux*)
5126 case $LD in
5127 *-32|*"-32 ") libmagic=32-bit;;
5128 *-n32|*"-n32 ") libmagic=N32;;
5129 *-64|*"-64 ") libmagic=64-bit;;
5130 *) libmagic=never-match;;
5131 esac
5132 lt_cv_deplibs_check_method=pass_all
5133 ;;
5134
5135 # This must be glibc/ELF.
5136 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5137 lt_cv_deplibs_check_method=pass_all
5138 ;;
5139
5140 netbsd* | netbsdelf*-gnu)
5141 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5143 else
5144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5145 fi
5146 ;;
5147
5148 newos6*)
5149 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5150 lt_cv_file_magic_cmd=/usr/bin/file
5151 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5152 ;;
5153
5154 *nto* | *qnx*)
5155 lt_cv_deplibs_check_method=pass_all
5156 ;;
5157
5158 openbsd* | bitrig*)
5159 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5161 else
5162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5163 fi
5164 ;;
5165
5166 osf3* | osf4* | osf5*)
5167 lt_cv_deplibs_check_method=pass_all
5168 ;;
5169
5170 rdos*)
5171 lt_cv_deplibs_check_method=pass_all
5172 ;;
5173
5174 solaris*)
5175 lt_cv_deplibs_check_method=pass_all
5176 ;;
5177
5178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5179 lt_cv_deplibs_check_method=pass_all
5180 ;;
5181
5182 sysv4 | sysv4.3*)
5183 case $host_vendor in
5184 motorola)
5185 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]'
5186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5187 ;;
5188 ncr)
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
5191 sequent)
5192 lt_cv_file_magic_cmd='/bin/file'
5193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5194 ;;
5195 sni)
5196 lt_cv_file_magic_cmd='/bin/file'
5197 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5198 lt_cv_file_magic_test_file=/lib/libc.so
5199 ;;
5200 siemens)
5201 lt_cv_deplibs_check_method=pass_all
5202 ;;
5203 pc)
5204 lt_cv_deplibs_check_method=pass_all
5205 ;;
5206 esac
5207 ;;
5208
5209 tpf*)
5210 lt_cv_deplibs_check_method=pass_all
5211 ;;
5212 os2*)
5213 lt_cv_deplibs_check_method=pass_all
5214 ;;
5215 esac
5216
5217 fi
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5219 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5220
5221 file_magic_glob=
5222 want_nocaseglob=no
5223 if test "$build" = "$host"; then
5224 case $host_os in
5225 mingw* | pw32*)
5226 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5227 want_nocaseglob=yes
5228 else
5229 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5230 fi
5231 ;;
5232 esac
5233 fi
5234
5235 file_magic_cmd=$lt_cv_file_magic_cmd
5236 deplibs_check_method=$lt_cv_deplibs_check_method
5237 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260 if test -n "$ac_tool_prefix"; then
5261 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5262 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_prog_DLLTOOL+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 if test -n "$DLLTOOL"; then
5269 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 DLLTOOL=$ac_cv_prog_DLLTOOL
5289 if test -n "$DLLTOOL"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5291 $as_echo "$DLLTOOL" >&6; }
5292 else
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296
5297
5298 fi
5299 if test -z "$ac_cv_prog_DLLTOOL"; then
5300 ac_ct_DLLTOOL=$DLLTOOL
5301 # Extract the first word of "dlltool", so it can be a program name with args.
5302 set dummy dlltool; ac_word=$2
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 $as_echo_n "checking for $ac_word... " >&6; }
5305 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 if test -n "$ac_ct_DLLTOOL"; then
5309 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5310 else
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5321 fi
5322 done
5323 done
5324 IFS=$as_save_IFS
5325
5326 fi
5327 fi
5328 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5329 if test -n "$ac_ct_DLLTOOL"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5331 $as_echo "$ac_ct_DLLTOOL" >&6; }
5332 else
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5335 fi
5336
5337 if test "x$ac_ct_DLLTOOL" = x; then
5338 DLLTOOL="false"
5339 else
5340 case $cross_compiling:$ac_tool_warned in
5341 yes:)
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5344 ac_tool_warned=yes ;;
5345 esac
5346 DLLTOOL=$ac_ct_DLLTOOL
5347 fi
5348 else
5349 DLLTOOL="$ac_cv_prog_DLLTOOL"
5350 fi
5351
5352 test -z "$DLLTOOL" && DLLTOOL=dlltool
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5364 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5365 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 lt_cv_sharedlib_from_linklib_cmd='unknown'
5369
5370 case $host_os in
5371 cygwin* | mingw* | pw32* | cegcc*)
5372 # two different shell functions defined in ltmain.sh;
5373 # decide which one to use based on capabilities of $DLLTOOL
5374 case `$DLLTOOL --help 2>&1` in
5375 *--identify-strict*)
5376 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5377 ;;
5378 *)
5379 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5380 ;;
5381 esac
5382 ;;
5383 *)
5384 # fallback: assume linklib IS sharedlib
5385 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5386 ;;
5387 esac
5388
5389 fi
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5391 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5392 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5393 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5394
5395
5396
5397
5398
5399
5400
5401
5402 if test -n "$ac_tool_prefix"; then
5403 for ac_prog in ar
5404 do
5405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if ${ac_cv_prog_AR+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -n "$AR"; then
5413 ac_cv_prog_AR="$AR" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426 done
5427 done
5428 IFS=$as_save_IFS
5429
5430 fi
5431 fi
5432 AR=$ac_cv_prog_AR
5433 if test -n "$AR"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5435 $as_echo "$AR" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441
5442 test -n "$AR" && break
5443 done
5444 fi
5445 if test -z "$AR"; then
5446 ac_ct_AR=$AR
5447 for ac_prog in ar
5448 do
5449 # Extract the first word of "$ac_prog", so it can be a program name with args.
5450 set dummy $ac_prog; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 if test -n "$ac_ct_AR"; then
5457 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466 ac_cv_prog_ac_ct_AR="$ac_prog"
5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5469 fi
5470 done
5471 done
5472 IFS=$as_save_IFS
5473
5474 fi
5475 fi
5476 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5477 if test -n "$ac_ct_AR"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5479 $as_echo "$ac_ct_AR" >&6; }
5480 else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485
5486 test -n "$ac_ct_AR" && break
5487 done
5488
5489 if test "x$ac_ct_AR" = x; then
5490 AR="false"
5491 else
5492 case $cross_compiling:$ac_tool_warned in
5493 yes:)
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5496 ac_tool_warned=yes ;;
5497 esac
5498 AR=$ac_ct_AR
5499 fi
5500 fi
5501
5502 : ${AR=ar}
5503 : ${AR_FLAGS=cr}
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5516 $as_echo_n "checking for archiver @FILE support... " >&6; }
5517 if ${lt_cv_ar_at_file+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 lt_cv_ar_at_file=no
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523
5524 int
5525 main ()
5526 {
5527
5528 ;
5529 return 0;
5530 }
5531 _ACEOF
5532 if ac_fn_c_try_compile "$LINENO"; then :
5533 echo conftest.$ac_objext > conftest.lst
5534 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5536 (eval $lt_ar_try) 2>&5
5537 ac_status=$?
5538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5539 test $ac_status = 0; }
5540 if test 0 -eq "$ac_status"; then
5541 # Ensure the archiver fails upon bogus file names.
5542 rm -f conftest.$ac_objext libconftest.a
5543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5544 (eval $lt_ar_try) 2>&5
5545 ac_status=$?
5546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5547 test $ac_status = 0; }
5548 if test 0 -ne "$ac_status"; then
5549 lt_cv_ar_at_file=@
5550 fi
5551 fi
5552 rm -f conftest.* libconftest.a
5553
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556
5557 fi
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5559 $as_echo "$lt_cv_ar_at_file" >&6; }
5560
5561 if test no = "$lt_cv_ar_at_file"; then
5562 archiver_list_spec=
5563 else
5564 archiver_list_spec=$lt_cv_ar_at_file
5565 fi
5566
5567
5568
5569
5570
5571
5572
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}strip; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_STRIP+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$STRIP"; then
5582 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595 done
5596 done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 STRIP=$ac_cv_prog_STRIP
5602 if test -n "$STRIP"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5604 $as_echo "$STRIP" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610
5611 fi
5612 if test -z "$ac_cv_prog_STRIP"; then
5613 ac_ct_STRIP=$STRIP
5614 # Extract the first word of "strip", so it can be a program name with args.
5615 set dummy strip; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if test -n "$ac_ct_STRIP"; then
5622 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631 ac_cv_prog_ac_ct_STRIP="strip"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5634 fi
5635 done
5636 done
5637 IFS=$as_save_IFS
5638
5639 fi
5640 fi
5641 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5642 if test -n "$ac_ct_STRIP"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5644 $as_echo "$ac_ct_STRIP" >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5648 fi
5649
5650 if test "x$ac_ct_STRIP" = x; then
5651 STRIP=":"
5652 else
5653 case $cross_compiling:$ac_tool_warned in
5654 yes:)
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5658 esac
5659 STRIP=$ac_ct_STRIP
5660 fi
5661 else
5662 STRIP="$ac_cv_prog_STRIP"
5663 fi
5664
5665 test -z "$STRIP" && STRIP=:
5666
5667
5668
5669
5670
5671
5672 if test -n "$ac_tool_prefix"; then
5673 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5674 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if ${ac_cv_prog_RANLIB+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 if test -n "$RANLIB"; then
5681 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694 done
5695 done
5696 IFS=$as_save_IFS
5697
5698 fi
5699 fi
5700 RANLIB=$ac_cv_prog_RANLIB
5701 if test -n "$RANLIB"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5703 $as_echo "$RANLIB" >&6; }
5704 else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708
5709
5710 fi
5711 if test -z "$ac_cv_prog_RANLIB"; then
5712 ac_ct_RANLIB=$RANLIB
5713 # Extract the first word of "ranlib", so it can be a program name with args.
5714 set dummy ranlib; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 if test -n "$ac_ct_RANLIB"; then
5721 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726 IFS=$as_save_IFS
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730 ac_cv_prog_ac_ct_RANLIB="ranlib"
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 break 2
5733 fi
5734 done
5735 done
5736 IFS=$as_save_IFS
5737
5738 fi
5739 fi
5740 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5741 if test -n "$ac_ct_RANLIB"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5743 $as_echo "$ac_ct_RANLIB" >&6; }
5744 else
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5747 fi
5748
5749 if test "x$ac_ct_RANLIB" = x; then
5750 RANLIB=":"
5751 else
5752 case $cross_compiling:$ac_tool_warned in
5753 yes:)
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5756 ac_tool_warned=yes ;;
5757 esac
5758 RANLIB=$ac_ct_RANLIB
5759 fi
5760 else
5761 RANLIB="$ac_cv_prog_RANLIB"
5762 fi
5763
5764 test -z "$RANLIB" && RANLIB=:
5765
5766
5767
5768
5769
5770
5771 # Determine commands to create old-style static archives.
5772 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5773 old_postinstall_cmds='chmod 644 $oldlib'
5774 old_postuninstall_cmds=
5775
5776 if test -n "$RANLIB"; then
5777 case $host_os in
5778 bitrig* | openbsd*)
5779 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5780 ;;
5781 *)
5782 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5783 ;;
5784 esac
5785 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5786 fi
5787
5788 case $host_os in
5789 darwin*)
5790 lock_old_archive_extraction=yes ;;
5791 *)
5792 lock_old_archive_extraction=no ;;
5793 esac
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833 # If no C compiler was specified, use CC.
5834 LTCC=${LTCC-"$CC"}
5835
5836 # If no C compiler flags were specified, use CFLAGS.
5837 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5838
5839 # Allow CC to be a program name with arguments.
5840 compiler=$CC
5841
5842
5843 # Check for command to grab the raw symbol name followed by C symbol from nm.
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5845 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5846 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849
5850 # These are sane defaults that work on at least a few old systems.
5851 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5852
5853 # Character class describing NM global symbol codes.
5854 symcode='[BCDEGRST]'
5855
5856 # Regexp to match symbols that can be accessed directly from C.
5857 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5858
5859 # Define system-specific variables.
5860 case $host_os in
5861 aix*)
5862 symcode='[BCDT]'
5863 ;;
5864 cygwin* | mingw* | pw32* | cegcc*)
5865 symcode='[ABCDGISTW]'
5866 ;;
5867 hpux*)
5868 if test ia64 = "$host_cpu"; then
5869 symcode='[ABCDEGRST]'
5870 fi
5871 ;;
5872 irix* | nonstopux*)
5873 symcode='[BCDEGRST]'
5874 ;;
5875 osf*)
5876 symcode='[BCDEGQRST]'
5877 ;;
5878 solaris*)
5879 symcode='[BDRT]'
5880 ;;
5881 sco3.2v5*)
5882 symcode='[DT]'
5883 ;;
5884 sysv4.2uw2*)
5885 symcode='[DT]'
5886 ;;
5887 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5888 symcode='[ABDT]'
5889 ;;
5890 sysv4)
5891 symcode='[DFNSTU]'
5892 ;;
5893 esac
5894
5895 # If we're using GNU nm, then use its standard symbol codes.
5896 case `$NM -V 2>&1` in
5897 *GNU* | *'with BFD'*)
5898 symcode='[ABCDGIRSTW]' ;;
5899 esac
5900
5901 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5902 # Gets list of data symbols to import.
5903 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5904 # Adjust the below global symbol transforms to fixup imported variables.
5905 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5906 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5907 lt_c_name_lib_hook="\
5908 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5909 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5910 else
5911 # Disable hooks by default.
5912 lt_cv_sys_global_symbol_to_import=
5913 lt_cdecl_hook=
5914 lt_c_name_hook=
5915 lt_c_name_lib_hook=
5916 fi
5917
5918 # Transform an extracted symbol line into a proper C declaration.
5919 # Some systems (esp. on ia64) link data and code symbols differently,
5920 # so use this general approach.
5921 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5922 $lt_cdecl_hook\
5923 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5924 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5925
5926 # Transform an extracted symbol line into symbol name and symbol address
5927 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5928 $lt_c_name_hook\
5929 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5930 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5931
5932 # Transform an extracted symbol line into symbol name with lib prefix and
5933 # symbol address.
5934 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5935 $lt_c_name_lib_hook\
5936 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5937 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5938 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5939
5940 # Handle CRLF in mingw tool chain
5941 opt_cr=
5942 case $build_os in
5943 mingw*)
5944 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5945 ;;
5946 esac
5947
5948 # Try without a prefix underscore, then with it.
5949 for ac_symprfx in "" "_"; do
5950
5951 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5952 symxfrm="\\1 $ac_symprfx\\2 \\2"
5953
5954 # Write the raw and C identifiers.
5955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5956 # Fake it for dumpbin and say T for any non-static function,
5957 # D for any global variable and I for any imported variable.
5958 # Also find C++ and __fastcall symbols from MSVC++,
5959 # which start with @ or ?.
5960 lt_cv_sys_global_symbol_pipe="$AWK '"\
5961 " {last_section=section; section=\$ 3};"\
5962 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5963 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5964 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5965 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5966 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5967 " \$ 0!~/External *\|/{next};"\
5968 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5969 " {if(hide[section]) next};"\
5970 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5971 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5972 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5973 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5974 " ' prfx=^$ac_symprfx"
5975 else
5976 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5977 fi
5978 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5979
5980 # Check to see that the pipe works correctly.
5981 pipe_works=no
5982
5983 rm -f conftest*
5984 cat > conftest.$ac_ext <<_LT_EOF
5985 #ifdef __cplusplus
5986 extern "C" {
5987 #endif
5988 char nm_test_var;
5989 void nm_test_func(void);
5990 void nm_test_func(void){}
5991 #ifdef __cplusplus
5992 }
5993 #endif
5994 int main(){nm_test_var='a';nm_test_func();return(0);}
5995 _LT_EOF
5996
5997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5998 (eval $ac_compile) 2>&5
5999 ac_status=$?
6000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001 test $ac_status = 0; }; then
6002 # Now try to grab the symbols.
6003 nlist=conftest.nm
6004 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6005 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6006 # Try sorting and uniquifying the output.
6007 if sort "$nlist" | uniq > "$nlist"T; then
6008 mv -f "$nlist"T "$nlist"
6009 else
6010 rm -f "$nlist"T
6011 fi
6012
6013 # Make sure that we snagged all the symbols we need.
6014 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6015 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6016 cat <<_LT_EOF > conftest.$ac_ext
6017 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6018 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6019 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6020 relocations are performed -- see ld's documentation on pseudo-relocs. */
6021 # define LT_DLSYM_CONST
6022 #elif defined __osf__
6023 /* This system does not cope well with relocations in const data. */
6024 # define LT_DLSYM_CONST
6025 #else
6026 # define LT_DLSYM_CONST const
6027 #endif
6028
6029 #ifdef __cplusplus
6030 extern "C" {
6031 #endif
6032
6033 _LT_EOF
6034 # Now generate the symbol file.
6035 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6036
6037 cat <<_LT_EOF >> conftest.$ac_ext
6038
6039 /* The mapping between symbol names and symbols. */
6040 LT_DLSYM_CONST struct {
6041 const char *name;
6042 void *address;
6043 }
6044 lt__PROGRAM__LTX_preloaded_symbols[] =
6045 {
6046 { "@PROGRAM@", (void *) 0 },
6047 _LT_EOF
6048 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6049 cat <<\_LT_EOF >> conftest.$ac_ext
6050 {0, (void *) 0}
6051 };
6052
6053 /* This works around a problem in FreeBSD linker */
6054 #ifdef FREEBSD_WORKAROUND
6055 static const void *lt_preloaded_setup() {
6056 return lt__PROGRAM__LTX_preloaded_symbols;
6057 }
6058 #endif
6059
6060 #ifdef __cplusplus
6061 }
6062 #endif
6063 _LT_EOF
6064 # Now try linking the two files.
6065 mv conftest.$ac_objext conftstm.$ac_objext
6066 lt_globsym_save_LIBS=$LIBS
6067 lt_globsym_save_CFLAGS=$CFLAGS
6068 LIBS=conftstm.$ac_objext
6069 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6071 (eval $ac_link) 2>&5
6072 ac_status=$?
6073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6075 pipe_works=yes
6076 fi
6077 LIBS=$lt_globsym_save_LIBS
6078 CFLAGS=$lt_globsym_save_CFLAGS
6079 else
6080 echo "cannot find nm_test_func in $nlist" >&5
6081 fi
6082 else
6083 echo "cannot find nm_test_var in $nlist" >&5
6084 fi
6085 else
6086 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6087 fi
6088 else
6089 echo "$progname: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6091 fi
6092 rm -rf conftest* conftst*
6093
6094 # Do not use the global_symbol_pipe unless it works.
6095 if test yes = "$pipe_works"; then
6096 break
6097 else
6098 lt_cv_sys_global_symbol_pipe=
6099 fi
6100 done
6101
6102 fi
6103
6104 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6105 lt_cv_sys_global_symbol_to_cdecl=
6106 fi
6107 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6109 $as_echo "failed" >&6; }
6110 else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6112 $as_echo "ok" >&6; }
6113 fi
6114
6115 # Response file support.
6116 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6117 nm_file_list_spec='@'
6118 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6119 nm_file_list_spec='@'
6120 fi
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6159 $as_echo_n "checking for sysroot... " >&6; }
6160
6161 # Check whether --with-sysroot was given.
6162 if test "${with_sysroot+set}" = set; then :
6163 withval=$with_sysroot;
6164 else
6165 with_sysroot=no
6166 fi
6167
6168
6169 lt_sysroot=
6170 case $with_sysroot in #(
6171 yes)
6172 if test yes = "$GCC"; then
6173 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6174 fi
6175 ;; #(
6176 /*)
6177 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6178 ;; #(
6179 no|'')
6180 ;; #(
6181 *)
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6183 $as_echo "$with_sysroot" >&6; }
6184 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6185 ;;
6186 esac
6187
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6189 $as_echo "${lt_sysroot:-no}" >&6; }
6190
6191
6192
6193
6194
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6196 $as_echo_n "checking for a working dd... " >&6; }
6197 if ${ac_cv_path_lt_DD+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 printf 0123456789abcdef0123456789abcdef >conftest.i
6201 cat conftest.i conftest.i >conftest2.i
6202 : ${lt_DD:=$DD}
6203 if test -z "$lt_DD"; then
6204 ac_path_lt_DD_found=false
6205 # Loop through the user's path and test for each of PROGNAME-LIST
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_prog in dd; do
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6214 as_fn_executable_p "$ac_path_lt_DD" || continue
6215 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6216 cmp -s conftest.i conftest.out \
6217 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6218 fi
6219 $ac_path_lt_DD_found && break 3
6220 done
6221 done
6222 done
6223 IFS=$as_save_IFS
6224 if test -z "$ac_cv_path_lt_DD"; then
6225 :
6226 fi
6227 else
6228 ac_cv_path_lt_DD=$lt_DD
6229 fi
6230
6231 rm -f conftest.i conftest2.i conftest.out
6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6234 $as_echo "$ac_cv_path_lt_DD" >&6; }
6235
6236
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6238 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6239 if ${lt_cv_truncate_bin+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 printf 0123456789abcdef0123456789abcdef >conftest.i
6243 cat conftest.i conftest.i >conftest2.i
6244 lt_cv_truncate_bin=
6245 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6246 cmp -s conftest.i conftest.out \
6247 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6248 fi
6249 rm -f conftest.i conftest2.i conftest.out
6250 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6251 fi
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6253 $as_echo "$lt_cv_truncate_bin" >&6; }
6254
6255
6256
6257
6258
6259
6260
6261 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6262 func_cc_basename ()
6263 {
6264 for cc_temp in $*""; do
6265 case $cc_temp in
6266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6268 \-*) ;;
6269 *) break;;
6270 esac
6271 done
6272 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6273 }
6274
6275 # Check whether --enable-libtool-lock was given.
6276 if test "${enable_libtool_lock+set}" = set; then :
6277 enableval=$enable_libtool_lock;
6278 fi
6279
6280 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6281
6282 # Some flags need to be propagated to the compiler or linker for good
6283 # libtool support.
6284 case $host in
6285 ia64-*-hpux*)
6286 # Find out what ABI is being produced by ac_compile, and set mode
6287 # options accordingly.
6288 echo 'int i;' > conftest.$ac_ext
6289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6290 (eval $ac_compile) 2>&5
6291 ac_status=$?
6292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6293 test $ac_status = 0; }; then
6294 case `/usr/bin/file conftest.$ac_objext` in
6295 *ELF-32*)
6296 HPUX_IA64_MODE=32
6297 ;;
6298 *ELF-64*)
6299 HPUX_IA64_MODE=64
6300 ;;
6301 esac
6302 fi
6303 rm -rf conftest*
6304 ;;
6305 *-*-irix6*)
6306 # Find out what ABI is being produced by ac_compile, and set linker
6307 # options accordingly.
6308 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6310 (eval $ac_compile) 2>&5
6311 ac_status=$?
6312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313 test $ac_status = 0; }; then
6314 if test yes = "$lt_cv_prog_gnu_ld"; then
6315 case `/usr/bin/file conftest.$ac_objext` in
6316 *32-bit*)
6317 LD="${LD-ld} -melf32bsmip"
6318 ;;
6319 *N32*)
6320 LD="${LD-ld} -melf32bmipn32"
6321 ;;
6322 *64-bit*)
6323 LD="${LD-ld} -melf64bmip"
6324 ;;
6325 esac
6326 else
6327 case `/usr/bin/file conftest.$ac_objext` in
6328 *32-bit*)
6329 LD="${LD-ld} -32"
6330 ;;
6331 *N32*)
6332 LD="${LD-ld} -n32"
6333 ;;
6334 *64-bit*)
6335 LD="${LD-ld} -64"
6336 ;;
6337 esac
6338 fi
6339 fi
6340 rm -rf conftest*
6341 ;;
6342
6343 mips64*-*linux*)
6344 # Find out what ABI is being produced by ac_compile, and set linker
6345 # options accordingly.
6346 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6348 (eval $ac_compile) 2>&5
6349 ac_status=$?
6350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; }; then
6352 emul=elf
6353 case `/usr/bin/file conftest.$ac_objext` in
6354 *32-bit*)
6355 emul="${emul}32"
6356 ;;
6357 *64-bit*)
6358 emul="${emul}64"
6359 ;;
6360 esac
6361 case `/usr/bin/file conftest.$ac_objext` in
6362 *MSB*)
6363 emul="${emul}btsmip"
6364 ;;
6365 *LSB*)
6366 emul="${emul}ltsmip"
6367 ;;
6368 esac
6369 case `/usr/bin/file conftest.$ac_objext` in
6370 *N32*)
6371 emul="${emul}n32"
6372 ;;
6373 esac
6374 LD="${LD-ld} -m $emul"
6375 fi
6376 rm -rf conftest*
6377 ;;
6378
6379 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6380 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6381 # Find out what ABI is being produced by ac_compile, and set linker
6382 # options accordingly. Note that the listed cases only cover the
6383 # situations where additional linker options are needed (such as when
6384 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6385 # vice versa); the common cases where no linker options are needed do
6386 # not appear in the list.
6387 echo 'int i;' > conftest.$ac_ext
6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6389 (eval $ac_compile) 2>&5
6390 ac_status=$?
6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392 test $ac_status = 0; }; then
6393 case `/usr/bin/file conftest.o` in
6394 *32-bit*)
6395 case $host in
6396 x86_64-*kfreebsd*-gnu)
6397 LD="${LD-ld} -m elf_i386_fbsd"
6398 ;;
6399 x86_64-*linux*)
6400 case `/usr/bin/file conftest.o` in
6401 *x86-64*)
6402 LD="${LD-ld} -m elf32_x86_64"
6403 ;;
6404 *)
6405 LD="${LD-ld} -m elf_i386"
6406 ;;
6407 esac
6408 ;;
6409 powerpc64le-*linux*)
6410 LD="${LD-ld} -m elf32lppclinux"
6411 ;;
6412 powerpc64-*linux*)
6413 LD="${LD-ld} -m elf32ppclinux"
6414 ;;
6415 s390x-*linux*)
6416 LD="${LD-ld} -m elf_s390"
6417 ;;
6418 sparc64-*linux*)
6419 LD="${LD-ld} -m elf32_sparc"
6420 ;;
6421 esac
6422 ;;
6423 *64-bit*)
6424 case $host in
6425 x86_64-*kfreebsd*-gnu)
6426 LD="${LD-ld} -m elf_x86_64_fbsd"
6427 ;;
6428 x86_64-*linux*)
6429 LD="${LD-ld} -m elf_x86_64"
6430 ;;
6431 powerpcle-*linux*)
6432 LD="${LD-ld} -m elf64lppc"
6433 ;;
6434 powerpc-*linux*)
6435 LD="${LD-ld} -m elf64ppc"
6436 ;;
6437 s390*-*linux*|s390*-*tpf*)
6438 LD="${LD-ld} -m elf64_s390"
6439 ;;
6440 sparc*-*linux*)
6441 LD="${LD-ld} -m elf64_sparc"
6442 ;;
6443 esac
6444 ;;
6445 esac
6446 fi
6447 rm -rf conftest*
6448 ;;
6449
6450 *-*-sco3.2v5*)
6451 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6452 SAVE_CFLAGS=$CFLAGS
6453 CFLAGS="$CFLAGS -belf"
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6455 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6456 if ${lt_cv_cc_needs_belf+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 ac_ext=c
6460 ac_cpp='$CPP $CPPFLAGS'
6461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6464
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467
6468 int
6469 main ()
6470 {
6471
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 if ac_fn_c_try_link "$LINENO"; then :
6477 lt_cv_cc_needs_belf=yes
6478 else
6479 lt_cv_cc_needs_belf=no
6480 fi
6481 rm -f core conftest.err conftest.$ac_objext \
6482 conftest$ac_exeext conftest.$ac_ext
6483 ac_ext=c
6484 ac_cpp='$CPP $CPPFLAGS'
6485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6488
6489 fi
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6491 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6492 if test yes != "$lt_cv_cc_needs_belf"; then
6493 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6494 CFLAGS=$SAVE_CFLAGS
6495 fi
6496 ;;
6497 *-*solaris*)
6498 # Find out what ABI is being produced by ac_compile, and set linker
6499 # options accordingly.
6500 echo 'int i;' > conftest.$ac_ext
6501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6502 (eval $ac_compile) 2>&5
6503 ac_status=$?
6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505 test $ac_status = 0; }; then
6506 case `/usr/bin/file conftest.o` in
6507 *64-bit*)
6508 case $lt_cv_prog_gnu_ld in
6509 yes*)
6510 case $host in
6511 i?86-*-solaris*|x86_64-*-solaris*)
6512 LD="${LD-ld} -m elf_x86_64"
6513 ;;
6514 sparc*-*-solaris*)
6515 LD="${LD-ld} -m elf64_sparc"
6516 ;;
6517 esac
6518 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6519 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6520 LD=${LD-ld}_sol2
6521 fi
6522 ;;
6523 *)
6524 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6525 LD="${LD-ld} -64"
6526 fi
6527 ;;
6528 esac
6529 ;;
6530 esac
6531 fi
6532 rm -rf conftest*
6533 ;;
6534 esac
6535
6536 need_locks=$enable_libtool_lock
6537
6538 if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6540 set dummy ${ac_tool_prefix}mt; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 if test -n "$MANIFEST_TOOL"; then
6547 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560 done
6561 done
6562 IFS=$as_save_IFS
6563
6564 fi
6565 fi
6566 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6567 if test -n "$MANIFEST_TOOL"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6569 $as_echo "$MANIFEST_TOOL" >&6; }
6570 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575
6576 fi
6577 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6578 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6579 # Extract the first word of "mt", so it can be a program name with args.
6580 set dummy mt; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 if test -n "$ac_ct_MANIFEST_TOOL"; then
6587 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6596 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600 done
6601 done
6602 IFS=$as_save_IFS
6603
6604 fi
6605 fi
6606 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6607 if test -n "$ac_ct_MANIFEST_TOOL"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6609 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6610 else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6613 fi
6614
6615 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6616 MANIFEST_TOOL=":"
6617 else
6618 case $cross_compiling:$ac_tool_warned in
6619 yes:)
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622 ac_tool_warned=yes ;;
6623 esac
6624 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6625 fi
6626 else
6627 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6628 fi
6629
6630 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6632 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6633 if ${lt_cv_path_mainfest_tool+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 lt_cv_path_mainfest_tool=no
6637 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6638 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6639 cat conftest.err >&5
6640 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6641 lt_cv_path_mainfest_tool=yes
6642 fi
6643 rm -f conftest*
6644 fi
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6646 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6647 if test yes != "$lt_cv_path_mainfest_tool"; then
6648 MANIFEST_TOOL=:
6649 fi
6650
6651
6652
6653
6654
6655
6656 case $host_os in
6657 rhapsody* | darwin*)
6658 if test -n "$ac_tool_prefix"; then
6659 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6660 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 if test -n "$DSYMUTIL"; then
6667 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6679 fi
6680 done
6681 done
6682 IFS=$as_save_IFS
6683
6684 fi
6685 fi
6686 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6687 if test -n "$DSYMUTIL"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6689 $as_echo "$DSYMUTIL" >&6; }
6690 else
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6693 fi
6694
6695
6696 fi
6697 if test -z "$ac_cv_prog_DSYMUTIL"; then
6698 ac_ct_DSYMUTIL=$DSYMUTIL
6699 # Extract the first word of "dsymutil", so it can be a program name with args.
6700 set dummy dsymutil; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 if test -n "$ac_ct_DSYMUTIL"; then
6707 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6727 if test -n "$ac_ct_DSYMUTIL"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6729 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735 if test "x$ac_ct_DSYMUTIL" = x; then
6736 DSYMUTIL=":"
6737 else
6738 case $cross_compiling:$ac_tool_warned in
6739 yes:)
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742 ac_tool_warned=yes ;;
6743 esac
6744 DSYMUTIL=$ac_ct_DSYMUTIL
6745 fi
6746 else
6747 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6748 fi
6749
6750 if test -n "$ac_tool_prefix"; then
6751 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6752 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_NMEDIT+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 if test -n "$NMEDIT"; then
6759 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776 fi
6777 fi
6778 NMEDIT=$ac_cv_prog_NMEDIT
6779 if test -n "$NMEDIT"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6781 $as_echo "$NMEDIT" >&6; }
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6785 fi
6786
6787
6788 fi
6789 if test -z "$ac_cv_prog_NMEDIT"; then
6790 ac_ct_NMEDIT=$NMEDIT
6791 # Extract the first word of "nmedit", so it can be a program name with args.
6792 set dummy nmedit; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$ac_ct_NMEDIT"; then
6799 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6819 if test -n "$ac_ct_NMEDIT"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6821 $as_echo "$ac_ct_NMEDIT" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 fi
6826
6827 if test "x$ac_ct_NMEDIT" = x; then
6828 NMEDIT=":"
6829 else
6830 case $cross_compiling:$ac_tool_warned in
6831 yes:)
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834 ac_tool_warned=yes ;;
6835 esac
6836 NMEDIT=$ac_ct_NMEDIT
6837 fi
6838 else
6839 NMEDIT="$ac_cv_prog_NMEDIT"
6840 fi
6841
6842 if test -n "$ac_tool_prefix"; then
6843 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6844 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 $as_echo_n "checking for $ac_word... " >&6; }
6847 if ${ac_cv_prog_LIPO+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 if test -n "$LIPO"; then
6851 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864 done
6865 done
6866 IFS=$as_save_IFS
6867
6868 fi
6869 fi
6870 LIPO=$ac_cv_prog_LIPO
6871 if test -n "$LIPO"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6873 $as_echo "$LIPO" >&6; }
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6877 fi
6878
6879
6880 fi
6881 if test -z "$ac_cv_prog_LIPO"; then
6882 ac_ct_LIPO=$LIPO
6883 # Extract the first word of "lipo", so it can be a program name with args.
6884 set dummy lipo; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 if test -n "$ac_ct_LIPO"; then
6891 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_ac_ct_LIPO="lipo"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6911 if test -n "$ac_ct_LIPO"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6913 $as_echo "$ac_ct_LIPO" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919 if test "x$ac_ct_LIPO" = x; then
6920 LIPO=":"
6921 else
6922 case $cross_compiling:$ac_tool_warned in
6923 yes:)
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6926 ac_tool_warned=yes ;;
6927 esac
6928 LIPO=$ac_ct_LIPO
6929 fi
6930 else
6931 LIPO="$ac_cv_prog_LIPO"
6932 fi
6933
6934 if test -n "$ac_tool_prefix"; then
6935 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6936 set dummy ${ac_tool_prefix}otool; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if ${ac_cv_prog_OTOOL+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 if test -n "$OTOOL"; then
6943 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960 fi
6961 fi
6962 OTOOL=$ac_cv_prog_OTOOL
6963 if test -n "$OTOOL"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6965 $as_echo "$OTOOL" >&6; }
6966 else
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6969 fi
6970
6971
6972 fi
6973 if test -z "$ac_cv_prog_OTOOL"; then
6974 ac_ct_OTOOL=$OTOOL
6975 # Extract the first word of "otool", so it can be a program name with args.
6976 set dummy otool; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 if test -n "$ac_ct_OTOOL"; then
6983 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_ac_ct_OTOOL="otool"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996 done
6997 done
6998 IFS=$as_save_IFS
6999
7000 fi
7001 fi
7002 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7003 if test -n "$ac_ct_OTOOL"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7005 $as_echo "$ac_ct_OTOOL" >&6; }
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7009 fi
7010
7011 if test "x$ac_ct_OTOOL" = x; then
7012 OTOOL=":"
7013 else
7014 case $cross_compiling:$ac_tool_warned in
7015 yes:)
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7018 ac_tool_warned=yes ;;
7019 esac
7020 OTOOL=$ac_ct_OTOOL
7021 fi
7022 else
7023 OTOOL="$ac_cv_prog_OTOOL"
7024 fi
7025
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_OTOOL64+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -n "$OTOOL64"; then
7035 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048 done
7049 done
7050 IFS=$as_save_IFS
7051
7052 fi
7053 fi
7054 OTOOL64=$ac_cv_prog_OTOOL64
7055 if test -n "$OTOOL64"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7057 $as_echo "$OTOOL64" >&6; }
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7061 fi
7062
7063
7064 fi
7065 if test -z "$ac_cv_prog_OTOOL64"; then
7066 ac_ct_OTOOL64=$OTOOL64
7067 # Extract the first word of "otool64", so it can be a program name with args.
7068 set dummy otool64; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$ac_ct_OTOOL64"; then
7075 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_ac_ct_OTOOL64="otool64"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092 fi
7093 fi
7094 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7095 if test -n "$ac_ct_OTOOL64"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7097 $as_echo "$ac_ct_OTOOL64" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102
7103 if test "x$ac_ct_OTOOL64" = x; then
7104 OTOOL64=":"
7105 else
7106 case $cross_compiling:$ac_tool_warned in
7107 yes:)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112 OTOOL64=$ac_ct_OTOOL64
7113 fi
7114 else
7115 OTOOL64="$ac_cv_prog_OTOOL64"
7116 fi
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7145 $as_echo_n "checking for -single_module linker flag... " >&6; }
7146 if ${lt_cv_apple_cc_single_mod+:} false; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 lt_cv_apple_cc_single_mod=no
7150 if test -z "$LT_MULTI_MODULE"; then
7151 # By default we will add the -single_module flag. You can override
7152 # by either setting the environment variable LT_MULTI_MODULE
7153 # non-empty at configure time, or by adding -multi_module to the
7154 # link flags.
7155 rm -rf libconftest.dylib*
7156 echo "int foo(void){return 1;}" > conftest.c
7157 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7158 -dynamiclib -Wl,-single_module conftest.c" >&5
7159 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7160 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7161 _lt_result=$?
7162 # If there is a non-empty error log, and "single_module"
7163 # appears in it, assume the flag caused a linker warning
7164 if test -s conftest.err && $GREP single_module conftest.err; then
7165 cat conftest.err >&5
7166 # Otherwise, if the output was created with a 0 exit code from
7167 # the compiler, it worked.
7168 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7169 lt_cv_apple_cc_single_mod=yes
7170 else
7171 cat conftest.err >&5
7172 fi
7173 rm -rf libconftest.dylib*
7174 rm -f conftest.*
7175 fi
7176 fi
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7178 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7179
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7181 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7182 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 lt_cv_ld_exported_symbols_list=no
7186 save_LDFLAGS=$LDFLAGS
7187 echo "_main" > conftest.sym
7188 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191
7192 int
7193 main ()
7194 {
7195
7196 ;
7197 return 0;
7198 }
7199 _ACEOF
7200 if ac_fn_c_try_link "$LINENO"; then :
7201 lt_cv_ld_exported_symbols_list=yes
7202 else
7203 lt_cv_ld_exported_symbols_list=no
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7207 LDFLAGS=$save_LDFLAGS
7208
7209 fi
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7211 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7212
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7214 $as_echo_n "checking for -force_load linker flag... " >&6; }
7215 if ${lt_cv_ld_force_load+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 lt_cv_ld_force_load=no
7219 cat > conftest.c << _LT_EOF
7220 int forced_loaded() { return 2;}
7221 _LT_EOF
7222 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7223 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7224 echo "$AR cr libconftest.a conftest.o" >&5
7225 $AR cr libconftest.a conftest.o 2>&5
7226 echo "$RANLIB libconftest.a" >&5
7227 $RANLIB libconftest.a 2>&5
7228 cat > conftest.c << _LT_EOF
7229 int main() { return 0;}
7230 _LT_EOF
7231 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7232 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7233 _lt_result=$?
7234 if test -s conftest.err && $GREP force_load conftest.err; then
7235 cat conftest.err >&5
7236 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7237 lt_cv_ld_force_load=yes
7238 else
7239 cat conftest.err >&5
7240 fi
7241 rm -f conftest.err libconftest.a conftest conftest.c
7242 rm -rf conftest.dSYM
7243
7244 fi
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7246 $as_echo "$lt_cv_ld_force_load" >&6; }
7247 case $host_os in
7248 rhapsody* | darwin1.[012])
7249 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7250 darwin1.*)
7251 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7252 darwin*) # darwin 5.x on
7253 # if running on 10.5 or later, the deployment target defaults
7254 # to the OS version, if on x86, and 10.4, the deployment
7255 # target defaults to 10.4. Don't you love it?
7256 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7257 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7258 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7259 10.[012][,.]*)
7260 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7261 10.*)
7262 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7263 esac
7264 ;;
7265 esac
7266 if test yes = "$lt_cv_apple_cc_single_mod"; then
7267 _lt_dar_single_mod='$single_module'
7268 fi
7269 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7270 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7271 else
7272 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7273 fi
7274 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7275 _lt_dsymutil='~$DSYMUTIL $lib || :'
7276 else
7277 _lt_dsymutil=
7278 fi
7279 ;;
7280 esac
7281
7282 # func_munge_path_list VARIABLE PATH
7283 # -----------------------------------
7284 # VARIABLE is name of variable containing _space_ separated list of
7285 # directories to be munged by the contents of PATH, which is string
7286 # having a format:
7287 # "DIR[:DIR]:"
7288 # string "DIR[ DIR]" will be prepended to VARIABLE
7289 # ":DIR[:DIR]"
7290 # string "DIR[ DIR]" will be appended to VARIABLE
7291 # "DIRP[:DIRP]::[DIRA:]DIRA"
7292 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7293 # "DIRA[ DIRA]" will be appended to VARIABLE
7294 # "DIR[:DIR]"
7295 # VARIABLE will be replaced by "DIR[ DIR]"
7296 func_munge_path_list ()
7297 {
7298 case x$2 in
7299 x)
7300 ;;
7301 *:)
7302 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7303 ;;
7304 x:*)
7305 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7306 ;;
7307 *::*)
7308 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7309 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7310 ;;
7311 *)
7312 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7313 ;;
7314 esac
7315 }
7316
7317 ac_ext=c
7318 ac_cpp='$CPP $CPPFLAGS'
7319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7323 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7324 # On Suns, sometimes $CPP names a directory.
7325 if test -n "$CPP" && test -d "$CPP"; then
7326 CPP=
7327 fi
7328 if test -z "$CPP"; then
7329 if ${ac_cv_prog_CPP+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 # Double quotes because CPP needs to be expanded
7333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7334 do
7335 ac_preproc_ok=false
7336 for ac_c_preproc_warn_flag in '' yes
7337 do
7338 # Use a header file that comes with gcc, so configuring glibc
7339 # with a fresh cross-compiler works.
7340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7341 # <limits.h> exists even on freestanding compilers.
7342 # On the NeXT, cc -E runs the code through the compiler's parser,
7343 # not just through cpp. "Syntax error" is here to catch this case.
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346 #ifdef __STDC__
7347 # include <limits.h>
7348 #else
7349 # include <assert.h>
7350 #endif
7351 Syntax error
7352 _ACEOF
7353 if ac_fn_c_try_cpp "$LINENO"; then :
7354
7355 else
7356 # Broken: fails on valid input.
7357 continue
7358 fi
7359 rm -f conftest.err conftest.i conftest.$ac_ext
7360
7361 # OK, works on sane cases. Now check whether nonexistent headers
7362 # can be detected and how.
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 #include <ac_nonexistent.h>
7366 _ACEOF
7367 if ac_fn_c_try_cpp "$LINENO"; then :
7368 # Broken: success on invalid input.
7369 continue
7370 else
7371 # Passes both tests.
7372 ac_preproc_ok=:
7373 break
7374 fi
7375 rm -f conftest.err conftest.i conftest.$ac_ext
7376
7377 done
7378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7379 rm -f conftest.i conftest.err conftest.$ac_ext
7380 if $ac_preproc_ok; then :
7381 break
7382 fi
7383
7384 done
7385 ac_cv_prog_CPP=$CPP
7386
7387 fi
7388 CPP=$ac_cv_prog_CPP
7389 else
7390 ac_cv_prog_CPP=$CPP
7391 fi
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7393 $as_echo "$CPP" >&6; }
7394 ac_preproc_ok=false
7395 for ac_c_preproc_warn_flag in '' yes
7396 do
7397 # Use a header file that comes with gcc, so configuring glibc
7398 # with a fresh cross-compiler works.
7399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7400 # <limits.h> exists even on freestanding compilers.
7401 # On the NeXT, cc -E runs the code through the compiler's parser,
7402 # not just through cpp. "Syntax error" is here to catch this case.
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 #ifdef __STDC__
7406 # include <limits.h>
7407 #else
7408 # include <assert.h>
7409 #endif
7410 Syntax error
7411 _ACEOF
7412 if ac_fn_c_try_cpp "$LINENO"; then :
7413
7414 else
7415 # Broken: fails on valid input.
7416 continue
7417 fi
7418 rm -f conftest.err conftest.i conftest.$ac_ext
7419
7420 # OK, works on sane cases. Now check whether nonexistent headers
7421 # can be detected and how.
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424 #include <ac_nonexistent.h>
7425 _ACEOF
7426 if ac_fn_c_try_cpp "$LINENO"; then :
7427 # Broken: success on invalid input.
7428 continue
7429 else
7430 # Passes both tests.
7431 ac_preproc_ok=:
7432 break
7433 fi
7434 rm -f conftest.err conftest.i conftest.$ac_ext
7435
7436 done
7437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7438 rm -f conftest.i conftest.err conftest.$ac_ext
7439 if $ac_preproc_ok; then :
7440
7441 else
7442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7444 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7445 See \`config.log' for more details" "$LINENO" 5; }
7446 fi
7447
7448 ac_ext=c
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7453
7454
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7456 $as_echo_n "checking for ANSI C header files... " >&6; }
7457 if ${ac_cv_header_stdc+:} false; then :
7458 $as_echo_n "(cached) " >&6
7459 else
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 #include <stdlib.h>
7463 #include <stdarg.h>
7464 #include <string.h>
7465 #include <float.h>
7466
7467 int
7468 main ()
7469 {
7470
7471 ;
7472 return 0;
7473 }
7474 _ACEOF
7475 if ac_fn_c_try_compile "$LINENO"; then :
7476 ac_cv_header_stdc=yes
7477 else
7478 ac_cv_header_stdc=no
7479 fi
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481
7482 if test $ac_cv_header_stdc = yes; then
7483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7486 #include <string.h>
7487
7488 _ACEOF
7489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7490 $EGREP "memchr" >/dev/null 2>&1; then :
7491
7492 else
7493 ac_cv_header_stdc=no
7494 fi
7495 rm -f conftest*
7496
7497 fi
7498
7499 if test $ac_cv_header_stdc = yes; then
7500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503 #include <stdlib.h>
7504
7505 _ACEOF
7506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7507 $EGREP "free" >/dev/null 2>&1; then :
7508
7509 else
7510 ac_cv_header_stdc=no
7511 fi
7512 rm -f conftest*
7513
7514 fi
7515
7516 if test $ac_cv_header_stdc = yes; then
7517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7518 if test "$cross_compiling" = yes; then :
7519 :
7520 else
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523 #include <ctype.h>
7524 #include <stdlib.h>
7525 #if ((' ' & 0x0FF) == 0x020)
7526 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7527 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7528 #else
7529 # define ISLOWER(c) \
7530 (('a' <= (c) && (c) <= 'i') \
7531 || ('j' <= (c) && (c) <= 'r') \
7532 || ('s' <= (c) && (c) <= 'z'))
7533 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7534 #endif
7535
7536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7537 int
7538 main ()
7539 {
7540 int i;
7541 for (i = 0; i < 256; i++)
7542 if (XOR (islower (i), ISLOWER (i))
7543 || toupper (i) != TOUPPER (i))
7544 return 2;
7545 return 0;
7546 }
7547 _ACEOF
7548 if ac_fn_c_try_run "$LINENO"; then :
7549
7550 else
7551 ac_cv_header_stdc=no
7552 fi
7553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7554 conftest.$ac_objext conftest.beam conftest.$ac_ext
7555 fi
7556
7557 fi
7558 fi
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7560 $as_echo "$ac_cv_header_stdc" >&6; }
7561 if test $ac_cv_header_stdc = yes; then
7562
7563 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7564
7565 fi
7566
7567 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7568 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7569 inttypes.h stdint.h unistd.h
7570 do :
7571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7572 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7573 "
7574 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7575 cat >>confdefs.h <<_ACEOF
7576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7577 _ACEOF
7578
7579 fi
7580
7581 done
7582
7583
7584 for ac_header in dlfcn.h
7585 do :
7586 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7587 "
7588 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7589 cat >>confdefs.h <<_ACEOF
7590 #define HAVE_DLFCN_H 1
7591 _ACEOF
7592
7593 fi
7594
7595 done
7596
7597
7598
7599
7600
7601 # Set options
7602
7603
7604
7605 enable_dlopen=no
7606
7607
7608 enable_win32_dll=no
7609
7610
7611 # Check whether --enable-shared was given.
7612 if test "${enable_shared+set}" = set; then :
7613 enableval=$enable_shared; p=${PACKAGE-default}
7614 case $enableval in
7615 yes) enable_shared=yes ;;
7616 no) enable_shared=no ;;
7617 *)
7618 enable_shared=no
7619 # Look at the argument we got. We use all the common list separators.
7620 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7621 for pkg in $enableval; do
7622 IFS=$lt_save_ifs
7623 if test "X$pkg" = "X$p"; then
7624 enable_shared=yes
7625 fi
7626 done
7627 IFS=$lt_save_ifs
7628 ;;
7629 esac
7630 else
7631 enable_shared=yes
7632 fi
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642 # Check whether --enable-static was given.
7643 if test "${enable_static+set}" = set; then :
7644 enableval=$enable_static; p=${PACKAGE-default}
7645 case $enableval in
7646 yes) enable_static=yes ;;
7647 no) enable_static=no ;;
7648 *)
7649 enable_static=no
7650 # Look at the argument we got. We use all the common list separators.
7651 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7652 for pkg in $enableval; do
7653 IFS=$lt_save_ifs
7654 if test "X$pkg" = "X$p"; then
7655 enable_static=yes
7656 fi
7657 done
7658 IFS=$lt_save_ifs
7659 ;;
7660 esac
7661 else
7662 enable_static=yes
7663 fi
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674 # Check whether --with-pic was given.
7675 if test "${with_pic+set}" = set; then :
7676 withval=$with_pic; lt_p=${PACKAGE-default}
7677 case $withval in
7678 yes|no) pic_mode=$withval ;;
7679 *)
7680 pic_mode=default
7681 # Look at the argument we got. We use all the common list separators.
7682 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7683 for lt_pkg in $withval; do
7684 IFS=$lt_save_ifs
7685 if test "X$lt_pkg" = "X$lt_p"; then
7686 pic_mode=yes
7687 fi
7688 done
7689 IFS=$lt_save_ifs
7690 ;;
7691 esac
7692 else
7693 pic_mode=default
7694 fi
7695
7696
7697
7698
7699
7700
7701
7702
7703 # Check whether --enable-fast-install was given.
7704 if test "${enable_fast_install+set}" = set; then :
7705 enableval=$enable_fast_install; p=${PACKAGE-default}
7706 case $enableval in
7707 yes) enable_fast_install=yes ;;
7708 no) enable_fast_install=no ;;
7709 *)
7710 enable_fast_install=no
7711 # Look at the argument we got. We use all the common list separators.
7712 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7713 for pkg in $enableval; do
7714 IFS=$lt_save_ifs
7715 if test "X$pkg" = "X$p"; then
7716 enable_fast_install=yes
7717 fi
7718 done
7719 IFS=$lt_save_ifs
7720 ;;
7721 esac
7722 else
7723 enable_fast_install=yes
7724 fi
7725
7726
7727
7728
7729
7730
7731
7732
7733 shared_archive_member_spec=
7734 case $host,$enable_shared in
7735 power*-*-aix[5-9]*,yes)
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7737 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7738
7739 # Check whether --with-aix-soname was given.
7740 if test "${with_aix_soname+set}" = set; then :
7741 withval=$with_aix_soname; case $withval in
7742 aix|svr4|both)
7743 ;;
7744 *)
7745 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7746 ;;
7747 esac
7748 lt_cv_with_aix_soname=$with_aix_soname
7749 else
7750 if ${lt_cv_with_aix_soname+:} false; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 lt_cv_with_aix_soname=aix
7754 fi
7755
7756 with_aix_soname=$lt_cv_with_aix_soname
7757 fi
7758
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7760 $as_echo "$with_aix_soname" >&6; }
7761 if test aix != "$with_aix_soname"; then
7762 # For the AIX way of multilib, we name the shared archive member
7763 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7764 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7765 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7766 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7767 if test 64 = "${OBJECT_MODE-32}"; then
7768 shared_archive_member_spec=shr_64
7769 else
7770 shared_archive_member_spec=shr
7771 fi
7772 fi
7773 ;;
7774 *)
7775 with_aix_soname=aix
7776 ;;
7777 esac
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788 # This can be used to rebuild libtool when needed
7789 LIBTOOL_DEPS=$ltmain
7790
7791 # Always use our own libtool.
7792 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823 test -z "$LN_S" && LN_S="ln -s"
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838 if test -n "${ZSH_VERSION+set}"; then
7839 setopt NO_GLOB_SUBST
7840 fi
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7843 $as_echo_n "checking for objdir... " >&6; }
7844 if ${lt_cv_objdir+:} false; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 rm -f .libs 2>/dev/null
7848 mkdir .libs 2>/dev/null
7849 if test -d .libs; then
7850 lt_cv_objdir=.libs
7851 else
7852 # MS-DOS does not allow filenames that begin with a dot.
7853 lt_cv_objdir=_libs
7854 fi
7855 rmdir .libs 2>/dev/null
7856 fi
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7858 $as_echo "$lt_cv_objdir" >&6; }
7859 objdir=$lt_cv_objdir
7860
7861
7862
7863
7864
7865 cat >>confdefs.h <<_ACEOF
7866 #define LT_OBJDIR "$lt_cv_objdir/"
7867 _ACEOF
7868
7869
7870
7871
7872 case $host_os in
7873 aix3*)
7874 # AIX sometimes has problems with the GCC collect2 program. For some
7875 # reason, if we set the COLLECT_NAMES environment variable, the problems
7876 # vanish in a puff of smoke.
7877 if test set != "${COLLECT_NAMES+set}"; then
7878 COLLECT_NAMES=
7879 export COLLECT_NAMES
7880 fi
7881 ;;
7882 esac
7883
7884 # Global variables:
7885 ofile=libtool
7886 can_build_shared=yes
7887
7888 # All known linkers require a '.a' archive for static linking (except MSVC,
7889 # which needs '.lib').
7890 libext=a
7891
7892 with_gnu_ld=$lt_cv_prog_gnu_ld
7893
7894 old_CC=$CC
7895 old_CFLAGS=$CFLAGS
7896
7897 # Set sane defaults for various variables
7898 test -z "$CC" && CC=cc
7899 test -z "$LTCC" && LTCC=$CC
7900 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7901 test -z "$LD" && LD=ld
7902 test -z "$ac_objext" && ac_objext=o
7903
7904 func_cc_basename $compiler
7905 cc_basename=$func_cc_basename_result
7906
7907
7908 # Only perform the check for file, if the check method requires it
7909 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7910 case $deplibs_check_method in
7911 file_magic*)
7912 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7914 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7915 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 case $MAGIC_CMD in
7919 [\\/*] | ?:[\\/]*)
7920 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7921 ;;
7922 *)
7923 lt_save_MAGIC_CMD=$MAGIC_CMD
7924 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7925 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7926 for ac_dir in $ac_dummy; do
7927 IFS=$lt_save_ifs
7928 test -z "$ac_dir" && ac_dir=.
7929 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7930 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7931 if test -n "$file_magic_test_file"; then
7932 case $deplibs_check_method in
7933 "file_magic "*)
7934 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7935 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7936 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7937 $EGREP "$file_magic_regex" > /dev/null; then
7938 :
7939 else
7940 cat <<_LT_EOF 1>&2
7941
7942 *** Warning: the command libtool uses to detect shared libraries,
7943 *** $file_magic_cmd, produces output that libtool cannot recognize.
7944 *** The result is that libtool may fail to recognize shared libraries
7945 *** as such. This will affect the creation of libtool libraries that
7946 *** depend on shared libraries, but programs linked with such libtool
7947 *** libraries will work regardless of this problem. Nevertheless, you
7948 *** may want to report the problem to your system manager and/or to
7949 *** bug-libtool@gnu.org
7950
7951 _LT_EOF
7952 fi ;;
7953 esac
7954 fi
7955 break
7956 fi
7957 done
7958 IFS=$lt_save_ifs
7959 MAGIC_CMD=$lt_save_MAGIC_CMD
7960 ;;
7961 esac
7962 fi
7963
7964 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7965 if test -n "$MAGIC_CMD"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7967 $as_echo "$MAGIC_CMD" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973
7974
7975
7976
7977 if test -z "$lt_cv_path_MAGIC_CMD"; then
7978 if test -n "$ac_tool_prefix"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7980 $as_echo_n "checking for file... " >&6; }
7981 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 case $MAGIC_CMD in
7985 [\\/*] | ?:[\\/]*)
7986 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7987 ;;
7988 *)
7989 lt_save_MAGIC_CMD=$MAGIC_CMD
7990 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7991 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7992 for ac_dir in $ac_dummy; do
7993 IFS=$lt_save_ifs
7994 test -z "$ac_dir" && ac_dir=.
7995 if test -f "$ac_dir/file"; then
7996 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7997 if test -n "$file_magic_test_file"; then
7998 case $deplibs_check_method in
7999 "file_magic "*)
8000 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8001 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8002 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8003 $EGREP "$file_magic_regex" > /dev/null; then
8004 :
8005 else
8006 cat <<_LT_EOF 1>&2
8007
8008 *** Warning: the command libtool uses to detect shared libraries,
8009 *** $file_magic_cmd, produces output that libtool cannot recognize.
8010 *** The result is that libtool may fail to recognize shared libraries
8011 *** as such. This will affect the creation of libtool libraries that
8012 *** depend on shared libraries, but programs linked with such libtool
8013 *** libraries will work regardless of this problem. Nevertheless, you
8014 *** may want to report the problem to your system manager and/or to
8015 *** bug-libtool@gnu.org
8016
8017 _LT_EOF
8018 fi ;;
8019 esac
8020 fi
8021 break
8022 fi
8023 done
8024 IFS=$lt_save_ifs
8025 MAGIC_CMD=$lt_save_MAGIC_CMD
8026 ;;
8027 esac
8028 fi
8029
8030 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8031 if test -n "$MAGIC_CMD"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8033 $as_echo "$MAGIC_CMD" >&6; }
8034 else
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 fi
8038
8039
8040 else
8041 MAGIC_CMD=:
8042 fi
8043 fi
8044
8045 fi
8046 ;;
8047 esac
8048
8049 # Use C for the default configuration in the libtool script
8050
8051 lt_save_CC=$CC
8052 ac_ext=c
8053 ac_cpp='$CPP $CPPFLAGS'
8054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8057
8058
8059 # Source file extension for C test sources.
8060 ac_ext=c
8061
8062 # Object file extension for compiled C test sources.
8063 objext=o
8064 objext=$objext
8065
8066 # Code to be used in simple compile tests
8067 lt_simple_compile_test_code="int some_variable = 0;"
8068
8069 # Code to be used in simple link tests
8070 lt_simple_link_test_code='int main(){return(0);}'
8071
8072
8073
8074
8075
8076
8077
8078 # If no C compiler was specified, use CC.
8079 LTCC=${LTCC-"$CC"}
8080
8081 # If no C compiler flags were specified, use CFLAGS.
8082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8083
8084 # Allow CC to be a program name with arguments.
8085 compiler=$CC
8086
8087 # Save the default compiler, since it gets overwritten when the other
8088 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8089 compiler_DEFAULT=$CC
8090
8091 # save warnings/boilerplate of simple test code
8092 ac_outfile=conftest.$ac_objext
8093 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8094 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8095 _lt_compiler_boilerplate=`cat conftest.err`
8096 $RM conftest*
8097
8098 ac_outfile=conftest.$ac_objext
8099 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8100 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8101 _lt_linker_boilerplate=`cat conftest.err`
8102 $RM -r conftest*
8103
8104
8105 if test -n "$compiler"; then
8106
8107 lt_prog_compiler_no_builtin_flag=
8108
8109 if test yes = "$GCC"; then
8110 case $cc_basename in
8111 nvcc*)
8112 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8113 *)
8114 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8115 esac
8116
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8118 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8119 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 lt_cv_prog_compiler_rtti_exceptions=no
8123 ac_outfile=conftest.$ac_objext
8124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8125 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8126 # Insert the option either (1) after the last *FLAGS variable, or
8127 # (2) before a word containing "conftest.", or (3) at the end.
8128 # Note that $ac_compile itself does not contain backslashes and begins
8129 # with a dollar sign (not a hyphen), so the echo should work correctly.
8130 # The option is referenced via a variable to avoid confusing sed.
8131 lt_compile=`echo "$ac_compile" | $SED \
8132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8134 -e 's:$: $lt_compiler_flag:'`
8135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8136 (eval "$lt_compile" 2>conftest.err)
8137 ac_status=$?
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 if (exit $ac_status) && test -s "$ac_outfile"; then
8141 # The compiler can only warn and ignore the option if not recognized
8142 # So say no if there are warnings other than the usual output.
8143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8146 lt_cv_prog_compiler_rtti_exceptions=yes
8147 fi
8148 fi
8149 $RM conftest*
8150
8151 fi
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8153 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8154
8155 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8156 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8157 else
8158 :
8159 fi
8160
8161 fi
8162
8163
8164
8165
8166
8167
8168 lt_prog_compiler_wl=
8169 lt_prog_compiler_pic=
8170 lt_prog_compiler_static=
8171
8172
8173 if test yes = "$GCC"; then
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_static='-static'
8176
8177 case $host_os in
8178 aix*)
8179 # All AIX code is PIC.
8180 if test ia64 = "$host_cpu"; then
8181 # AIX 5 now supports IA64 processor
8182 lt_prog_compiler_static='-Bstatic'
8183 fi
8184 lt_prog_compiler_pic='-fPIC'
8185 ;;
8186
8187 amigaos*)
8188 case $host_cpu in
8189 powerpc)
8190 # see comment about AmigaOS4 .so support
8191 lt_prog_compiler_pic='-fPIC'
8192 ;;
8193 m68k)
8194 # FIXME: we need at least 68020 code to build shared libraries, but
8195 # adding the '-m68020' flag to GCC prevents building anything better,
8196 # like '-m68040'.
8197 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8198 ;;
8199 esac
8200 ;;
8201
8202 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8203 # PIC is the default for these OSes.
8204 ;;
8205
8206 mingw* | cygwin* | pw32* | os2* | cegcc*)
8207 # This hack is so that the source file can tell whether it is being
8208 # built for inclusion in a dll (and should export symbols for example).
8209 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8210 # (--disable-auto-import) libraries
8211 lt_prog_compiler_pic='-DDLL_EXPORT'
8212 case $host_os in
8213 os2*)
8214 lt_prog_compiler_static='$wl-static'
8215 ;;
8216 esac
8217 ;;
8218
8219 darwin* | rhapsody*)
8220 # PIC is the default on this platform
8221 # Common symbols not allowed in MH_DYLIB files
8222 lt_prog_compiler_pic='-fno-common'
8223 ;;
8224
8225 haiku*)
8226 # PIC is the default for Haiku.
8227 # The "-static" flag exists, but is broken.
8228 lt_prog_compiler_static=
8229 ;;
8230
8231 hpux*)
8232 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8233 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8234 # sets the default TLS model and affects inlining.
8235 case $host_cpu in
8236 hppa*64*)
8237 # +Z the default
8238 ;;
8239 *)
8240 lt_prog_compiler_pic='-fPIC'
8241 ;;
8242 esac
8243 ;;
8244
8245 interix[3-9]*)
8246 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8247 # Instead, we relocate shared libraries at runtime.
8248 ;;
8249
8250 msdosdjgpp*)
8251 # Just because we use GCC doesn't mean we suddenly get shared libraries
8252 # on systems that don't support them.
8253 lt_prog_compiler_can_build_shared=no
8254 enable_shared=no
8255 ;;
8256
8257 *nto* | *qnx*)
8258 # QNX uses GNU C++, but need to define -shared option too, otherwise
8259 # it will coredump.
8260 lt_prog_compiler_pic='-fPIC -shared'
8261 ;;
8262
8263 sysv4*MP*)
8264 if test -d /usr/nec; then
8265 lt_prog_compiler_pic=-Kconform_pic
8266 fi
8267 ;;
8268
8269 *)
8270 lt_prog_compiler_pic='-fPIC'
8271 ;;
8272 esac
8273
8274 case $cc_basename in
8275 nvcc*) # Cuda Compiler Driver 2.2
8276 lt_prog_compiler_wl='-Xlinker '
8277 if test -n "$lt_prog_compiler_pic"; then
8278 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8279 fi
8280 ;;
8281 esac
8282 else
8283 # PORTME Check for flag to pass linker flags through the system compiler.
8284 case $host_os in
8285 aix*)
8286 lt_prog_compiler_wl='-Wl,'
8287 if test ia64 = "$host_cpu"; then
8288 # AIX 5 now supports IA64 processor
8289 lt_prog_compiler_static='-Bstatic'
8290 else
8291 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8292 fi
8293 ;;
8294
8295 darwin* | rhapsody*)
8296 # PIC is the default on this platform
8297 # Common symbols not allowed in MH_DYLIB files
8298 lt_prog_compiler_pic='-fno-common'
8299 case $cc_basename in
8300 nagfor*)
8301 # NAG Fortran compiler
8302 lt_prog_compiler_wl='-Wl,-Wl,,'
8303 lt_prog_compiler_pic='-PIC'
8304 lt_prog_compiler_static='-Bstatic'
8305 ;;
8306 esac
8307 ;;
8308
8309 mingw* | cygwin* | pw32* | os2* | cegcc*)
8310 # This hack is so that the source file can tell whether it is being
8311 # built for inclusion in a dll (and should export symbols for example).
8312 lt_prog_compiler_pic='-DDLL_EXPORT'
8313 case $host_os in
8314 os2*)
8315 lt_prog_compiler_static='$wl-static'
8316 ;;
8317 esac
8318 ;;
8319
8320 hpux9* | hpux10* | hpux11*)
8321 lt_prog_compiler_wl='-Wl,'
8322 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8323 # not for PA HP-UX.
8324 case $host_cpu in
8325 hppa*64*|ia64*)
8326 # +Z the default
8327 ;;
8328 *)
8329 lt_prog_compiler_pic='+Z'
8330 ;;
8331 esac
8332 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8333 lt_prog_compiler_static='$wl-a ${wl}archive'
8334 ;;
8335
8336 irix5* | irix6* | nonstopux*)
8337 lt_prog_compiler_wl='-Wl,'
8338 # PIC (with -KPIC) is the default.
8339 lt_prog_compiler_static='-non_shared'
8340 ;;
8341
8342 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8343 case $cc_basename in
8344 # old Intel for x86_64, which still supported -KPIC.
8345 ecc*)
8346 lt_prog_compiler_wl='-Wl,'
8347 lt_prog_compiler_pic='-KPIC'
8348 lt_prog_compiler_static='-static'
8349 ;;
8350 # flang / f18. f95 an alias for gfortran or flang on Debian
8351 flang* | f18* | f95*)
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_pic='-fPIC'
8354 lt_prog_compiler_static='-static'
8355 ;;
8356 # icc used to be incompatible with GCC.
8357 # ICC 10 doesn't accept -KPIC any more.
8358 icc* | ifort*)
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_pic='-fPIC'
8361 lt_prog_compiler_static='-static'
8362 ;;
8363 # Lahey Fortran 8.1.
8364 lf95*)
8365 lt_prog_compiler_wl='-Wl,'
8366 lt_prog_compiler_pic='--shared'
8367 lt_prog_compiler_static='--static'
8368 ;;
8369 nagfor*)
8370 # NAG Fortran compiler
8371 lt_prog_compiler_wl='-Wl,-Wl,,'
8372 lt_prog_compiler_pic='-PIC'
8373 lt_prog_compiler_static='-Bstatic'
8374 ;;
8375 tcc*)
8376 # Fabrice Bellard et al's Tiny C Compiler
8377 lt_prog_compiler_wl='-Wl,'
8378 lt_prog_compiler_pic='-fPIC'
8379 lt_prog_compiler_static='-static'
8380 ;;
8381 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8382 # Portland Group compilers (*not* the Pentium gcc compiler,
8383 # which looks to be a dead project)
8384 lt_prog_compiler_wl='-Wl,'
8385 lt_prog_compiler_pic='-fpic'
8386 lt_prog_compiler_static='-Bstatic'
8387 ;;
8388 ccc*)
8389 lt_prog_compiler_wl='-Wl,'
8390 # All Alpha code is PIC.
8391 lt_prog_compiler_static='-non_shared'
8392 ;;
8393 xl* | bgxl* | bgf* | mpixl*)
8394 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8395 lt_prog_compiler_wl='-Wl,'
8396 lt_prog_compiler_pic='-qpic'
8397 lt_prog_compiler_static='-qstaticlink'
8398 ;;
8399 *)
8400 case `$CC -V 2>&1 | sed 5q` in
8401 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8402 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8403 lt_prog_compiler_pic='-KPIC'
8404 lt_prog_compiler_static='-Bstatic'
8405 lt_prog_compiler_wl=''
8406 ;;
8407 *Sun\ F* | *Sun*Fortran*)
8408 lt_prog_compiler_pic='-KPIC'
8409 lt_prog_compiler_static='-Bstatic'
8410 lt_prog_compiler_wl='-Qoption ld '
8411 ;;
8412 *Sun\ C*)
8413 # Sun C 5.9
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
8416 lt_prog_compiler_wl='-Wl,'
8417 ;;
8418 *Intel*\ [CF]*Compiler*)
8419 lt_prog_compiler_wl='-Wl,'
8420 lt_prog_compiler_pic='-fPIC'
8421 lt_prog_compiler_static='-static'
8422 ;;
8423 *Portland\ Group*)
8424 lt_prog_compiler_wl='-Wl,'
8425 lt_prog_compiler_pic='-fpic'
8426 lt_prog_compiler_static='-Bstatic'
8427 ;;
8428 esac
8429 ;;
8430 esac
8431 ;;
8432
8433 newsos6)
8434 lt_prog_compiler_pic='-KPIC'
8435 lt_prog_compiler_static='-Bstatic'
8436 ;;
8437
8438 *nto* | *qnx*)
8439 # QNX uses GNU C++, but need to define -shared option too, otherwise
8440 # it will coredump.
8441 lt_prog_compiler_pic='-fPIC -shared'
8442 ;;
8443
8444 osf3* | osf4* | osf5*)
8445 lt_prog_compiler_wl='-Wl,'
8446 # All OSF/1 code is PIC.
8447 lt_prog_compiler_static='-non_shared'
8448 ;;
8449
8450 rdos*)
8451 lt_prog_compiler_static='-non_shared'
8452 ;;
8453
8454 solaris*)
8455 lt_prog_compiler_pic='-KPIC'
8456 lt_prog_compiler_static='-Bstatic'
8457 case $cc_basename in
8458 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8459 lt_prog_compiler_wl='-Qoption ld ';;
8460 *)
8461 lt_prog_compiler_wl='-Wl,';;
8462 esac
8463 ;;
8464
8465 sunos4*)
8466 lt_prog_compiler_wl='-Qoption ld '
8467 lt_prog_compiler_pic='-PIC'
8468 lt_prog_compiler_static='-Bstatic'
8469 ;;
8470
8471 sysv4 | sysv4.2uw2* | sysv4.3*)
8472 lt_prog_compiler_wl='-Wl,'
8473 lt_prog_compiler_pic='-KPIC'
8474 lt_prog_compiler_static='-Bstatic'
8475 ;;
8476
8477 sysv4*MP*)
8478 if test -d /usr/nec; then
8479 lt_prog_compiler_pic='-Kconform_pic'
8480 lt_prog_compiler_static='-Bstatic'
8481 fi
8482 ;;
8483
8484 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8485 lt_prog_compiler_wl='-Wl,'
8486 lt_prog_compiler_pic='-KPIC'
8487 lt_prog_compiler_static='-Bstatic'
8488 ;;
8489
8490 unicos*)
8491 lt_prog_compiler_wl='-Wl,'
8492 lt_prog_compiler_can_build_shared=no
8493 ;;
8494
8495 uts4*)
8496 lt_prog_compiler_pic='-pic'
8497 lt_prog_compiler_static='-Bstatic'
8498 ;;
8499
8500 *)
8501 lt_prog_compiler_can_build_shared=no
8502 ;;
8503 esac
8504 fi
8505
8506 case $host_os in
8507 # For platforms that do not support PIC, -DPIC is meaningless:
8508 *djgpp*)
8509 lt_prog_compiler_pic=
8510 ;;
8511 *)
8512 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8513 ;;
8514 esac
8515
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8517 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8518 if ${lt_cv_prog_compiler_pic+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8524 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8525 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8526
8527 #
8528 # Check to make sure the PIC flag actually works.
8529 #
8530 if test -n "$lt_prog_compiler_pic"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8532 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8533 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 lt_cv_prog_compiler_pic_works=no
8537 ac_outfile=conftest.$ac_objext
8538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8539 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8540 # Insert the option either (1) after the last *FLAGS variable, or
8541 # (2) before a word containing "conftest.", or (3) at the end.
8542 # Note that $ac_compile itself does not contain backslashes and begins
8543 # with a dollar sign (not a hyphen), so the echo should work correctly.
8544 # The option is referenced via a variable to avoid confusing sed.
8545 lt_compile=`echo "$ac_compile" | $SED \
8546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8548 -e 's:$: $lt_compiler_flag:'`
8549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8550 (eval "$lt_compile" 2>conftest.err)
8551 ac_status=$?
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 if (exit $ac_status) && test -s "$ac_outfile"; then
8555 # The compiler can only warn and ignore the option if not recognized
8556 # So say no if there are warnings other than the usual output.
8557 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8559 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8560 lt_cv_prog_compiler_pic_works=yes
8561 fi
8562 fi
8563 $RM conftest*
8564
8565 fi
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8567 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8568
8569 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8570 case $lt_prog_compiler_pic in
8571 "" | " "*) ;;
8572 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8573 esac
8574 else
8575 lt_prog_compiler_pic=
8576 lt_prog_compiler_can_build_shared=no
8577 fi
8578
8579 fi
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591 #
8592 # Check to make sure the static flag actually works.
8593 #
8594 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8596 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8597 if ${lt_cv_prog_compiler_static_works+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 lt_cv_prog_compiler_static_works=no
8601 save_LDFLAGS=$LDFLAGS
8602 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8603 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8605 # The linker can only warn and ignore the option if not recognized
8606 # So say no if there are warnings
8607 if test -s conftest.err; then
8608 # Append any errors to the config.log.
8609 cat conftest.err 1>&5
8610 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8612 if diff conftest.exp conftest.er2 >/dev/null; then
8613 lt_cv_prog_compiler_static_works=yes
8614 fi
8615 else
8616 lt_cv_prog_compiler_static_works=yes
8617 fi
8618 fi
8619 $RM -r conftest*
8620 LDFLAGS=$save_LDFLAGS
8621
8622 fi
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8624 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8625
8626 if test yes = "$lt_cv_prog_compiler_static_works"; then
8627 :
8628 else
8629 lt_prog_compiler_static=
8630 fi
8631
8632
8633
8634
8635
8636
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8639 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8640 if ${lt_cv_prog_compiler_c_o+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 lt_cv_prog_compiler_c_o=no
8644 $RM -r conftest 2>/dev/null
8645 mkdir conftest
8646 cd conftest
8647 mkdir out
8648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8649
8650 lt_compiler_flag="-o out/conftest2.$ac_objext"
8651 # Insert the option either (1) after the last *FLAGS variable, or
8652 # (2) before a word containing "conftest.", or (3) at the end.
8653 # Note that $ac_compile itself does not contain backslashes and begins
8654 # with a dollar sign (not a hyphen), so the echo should work correctly.
8655 lt_compile=`echo "$ac_compile" | $SED \
8656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8658 -e 's:$: $lt_compiler_flag:'`
8659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8660 (eval "$lt_compile" 2>out/conftest.err)
8661 ac_status=$?
8662 cat out/conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8665 then
8666 # The compiler can only warn and ignore the option if not recognized
8667 # So say no if there are warnings
8668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8671 lt_cv_prog_compiler_c_o=yes
8672 fi
8673 fi
8674 chmod u+w . 2>&5
8675 $RM conftest*
8676 # SGI C++ compiler will create directory out/ii_files/ for
8677 # template instantiation
8678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8679 $RM out/* && rmdir out
8680 cd ..
8681 $RM -r conftest
8682 $RM conftest*
8683
8684 fi
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8686 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8687
8688
8689
8690
8691
8692
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8695 if ${lt_cv_prog_compiler_c_o+:} false; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 lt_cv_prog_compiler_c_o=no
8699 $RM -r conftest 2>/dev/null
8700 mkdir conftest
8701 cd conftest
8702 mkdir out
8703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8704
8705 lt_compiler_flag="-o out/conftest2.$ac_objext"
8706 # Insert the option either (1) after the last *FLAGS variable, or
8707 # (2) before a word containing "conftest.", or (3) at the end.
8708 # Note that $ac_compile itself does not contain backslashes and begins
8709 # with a dollar sign (not a hyphen), so the echo should work correctly.
8710 lt_compile=`echo "$ac_compile" | $SED \
8711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8713 -e 's:$: $lt_compiler_flag:'`
8714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8715 (eval "$lt_compile" 2>out/conftest.err)
8716 ac_status=$?
8717 cat out/conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8720 then
8721 # The compiler can only warn and ignore the option if not recognized
8722 # So say no if there are warnings
8723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8726 lt_cv_prog_compiler_c_o=yes
8727 fi
8728 fi
8729 chmod u+w . 2>&5
8730 $RM conftest*
8731 # SGI C++ compiler will create directory out/ii_files/ for
8732 # template instantiation
8733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8734 $RM out/* && rmdir out
8735 cd ..
8736 $RM -r conftest
8737 $RM conftest*
8738
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8741 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8742
8743
8744
8745
8746 hard_links=nottested
8747 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8748 # do not overwrite the value of need_locks provided by the user
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8750 $as_echo_n "checking if we can lock with hard links... " >&6; }
8751 hard_links=yes
8752 $RM conftest*
8753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8754 touch conftest.a
8755 ln conftest.a conftest.b 2>&5 || hard_links=no
8756 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8758 $as_echo "$hard_links" >&6; }
8759 if test no = "$hard_links"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8761 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8762 need_locks=warn
8763 fi
8764 else
8765 need_locks=no
8766 fi
8767
8768
8769
8770
8771
8772
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8774 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8775
8776 runpath_var=
8777 allow_undefined_flag=
8778 always_export_symbols=no
8779 archive_cmds=
8780 archive_expsym_cmds=
8781 compiler_needs_object=no
8782 enable_shared_with_static_runtimes=no
8783 export_dynamic_flag_spec=
8784 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8785 hardcode_automatic=no
8786 hardcode_direct=no
8787 hardcode_direct_absolute=no
8788 hardcode_libdir_flag_spec=
8789 hardcode_libdir_separator=
8790 hardcode_minus_L=no
8791 hardcode_shlibpath_var=unsupported
8792 inherit_rpath=no
8793 link_all_deplibs=unknown
8794 module_cmds=
8795 module_expsym_cmds=
8796 old_archive_from_new_cmds=
8797 old_archive_from_expsyms_cmds=
8798 thread_safe_flag_spec=
8799 whole_archive_flag_spec=
8800 # include_expsyms should be a list of space-separated symbols to be *always*
8801 # included in the symbol list
8802 include_expsyms=
8803 # exclude_expsyms can be an extended regexp of symbols to exclude
8804 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8805 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8806 # as well as any symbol that contains 'd'.
8807 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8808 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8809 # platforms (ab)use it in PIC code, but their linkers get confused if
8810 # the symbol is explicitly referenced. Since portable code cannot
8811 # rely on this symbol name, it's probably fine to never include it in
8812 # preloaded symbol tables.
8813 # Exclude shared library initialization/finalization symbols.
8814 extract_expsyms_cmds=
8815
8816 case $host_os in
8817 cygwin* | mingw* | pw32* | cegcc*)
8818 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8819 # When not using gcc, we currently assume that we are using
8820 # Microsoft Visual C++.
8821 if test yes != "$GCC"; then
8822 with_gnu_ld=no
8823 fi
8824 ;;
8825 interix*)
8826 # we just hope/assume this is gcc and not c89 (= MSVC++)
8827 with_gnu_ld=yes
8828 ;;
8829 openbsd* | bitrig*)
8830 with_gnu_ld=no
8831 ;;
8832 linux* | k*bsd*-gnu | gnu*)
8833 link_all_deplibs=no
8834 ;;
8835 esac
8836
8837 ld_shlibs=yes
8838
8839 # On some targets, GNU ld is compatible enough with the native linker
8840 # that we're better off using the native interface for both.
8841 lt_use_gnu_ld_interface=no
8842 if test yes = "$with_gnu_ld"; then
8843 case $host_os in
8844 aix*)
8845 # The AIX port of GNU ld has always aspired to compatibility
8846 # with the native linker. However, as the warning in the GNU ld
8847 # block says, versions before 2.19.5* couldn't really create working
8848 # shared libraries, regardless of the interface used.
8849 case `$LD -v 2>&1` in
8850 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8851 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8852 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8853 *)
8854 lt_use_gnu_ld_interface=yes
8855 ;;
8856 esac
8857 ;;
8858 *)
8859 lt_use_gnu_ld_interface=yes
8860 ;;
8861 esac
8862 fi
8863
8864 if test yes = "$lt_use_gnu_ld_interface"; then
8865 # If archive_cmds runs LD, not CC, wlarc should be empty
8866 wlarc='$wl'
8867
8868 # Set some defaults for GNU ld with shared library support. These
8869 # are reset later if shared libraries are not supported. Putting them
8870 # here allows them to be overridden if necessary.
8871 runpath_var=LD_RUN_PATH
8872 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8873 export_dynamic_flag_spec='$wl--export-dynamic'
8874 # ancient GNU ld didn't support --whole-archive et. al.
8875 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8876 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8877 else
8878 whole_archive_flag_spec=
8879 fi
8880 supports_anon_versioning=no
8881 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8882 *GNU\ gold*) supports_anon_versioning=yes ;;
8883 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8884 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8885 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8886 *\ 2.11.*) ;; # other 2.11 versions
8887 *) supports_anon_versioning=yes ;;
8888 esac
8889
8890 # See if GNU ld supports shared libraries.
8891 case $host_os in
8892 aix[3-9]*)
8893 # On AIX/PPC, the GNU linker is very broken
8894 if test ia64 != "$host_cpu"; then
8895 ld_shlibs=no
8896 cat <<_LT_EOF 1>&2
8897
8898 *** Warning: the GNU linker, at least up to release 2.19, is reported
8899 *** to be unable to reliably create shared libraries on AIX.
8900 *** Therefore, libtool is disabling shared libraries support. If you
8901 *** really care for shared libraries, you may want to install binutils
8902 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8903 *** You will then need to restart the configuration process.
8904
8905 _LT_EOF
8906 fi
8907 ;;
8908
8909 amigaos*)
8910 case $host_cpu in
8911 powerpc)
8912 # see comment about AmigaOS4 .so support
8913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8914 archive_expsym_cmds=''
8915 ;;
8916 m68k)
8917 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)'
8918 hardcode_libdir_flag_spec='-L$libdir'
8919 hardcode_minus_L=yes
8920 ;;
8921 esac
8922 ;;
8923
8924 beos*)
8925 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8926 allow_undefined_flag=unsupported
8927 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8928 # support --undefined. This deserves some investigation. FIXME
8929 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8930 else
8931 ld_shlibs=no
8932 fi
8933 ;;
8934
8935 cygwin* | mingw* | pw32* | cegcc*)
8936 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8937 # as there is no search path for DLLs.
8938 hardcode_libdir_flag_spec='-L$libdir'
8939 export_dynamic_flag_spec='$wl--export-all-symbols'
8940 allow_undefined_flag=unsupported
8941 always_export_symbols=no
8942 enable_shared_with_static_runtimes=yes
8943 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'
8944 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8945
8946 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8948 # If the export-symbols file already is a .def file, use it as
8949 # is; otherwise, prepend EXPORTS...
8950 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8951 cp $export_symbols $output_objdir/$soname.def;
8952 else
8953 echo EXPORTS > $output_objdir/$soname.def;
8954 cat $export_symbols >> $output_objdir/$soname.def;
8955 fi~
8956 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8957 else
8958 ld_shlibs=no
8959 fi
8960 ;;
8961
8962 haiku*)
8963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8964 link_all_deplibs=yes
8965 ;;
8966
8967 os2*)
8968 hardcode_libdir_flag_spec='-L$libdir'
8969 hardcode_minus_L=yes
8970 allow_undefined_flag=unsupported
8971 shrext_cmds=.dll
8972 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8973 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8974 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8975 $ECHO EXPORTS >> $output_objdir/$libname.def~
8976 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8977 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8978 emximp -o $lib $output_objdir/$libname.def'
8979 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8980 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8981 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8982 $ECHO EXPORTS >> $output_objdir/$libname.def~
8983 prefix_cmds="$SED"~
8984 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8985 prefix_cmds="$prefix_cmds -e 1d";
8986 fi~
8987 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8988 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8989 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8990 emximp -o $lib $output_objdir/$libname.def'
8991 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8992 enable_shared_with_static_runtimes=yes
8993 ;;
8994
8995 interix[3-9]*)
8996 hardcode_direct=no
8997 hardcode_shlibpath_var=no
8998 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8999 export_dynamic_flag_spec='$wl-E'
9000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9001 # Instead, shared libraries are loaded at an image base (0x10000000 by
9002 # default) and relocated if they conflict, which is a slow very memory
9003 # consuming and fragmenting process. To avoid this, we pick a random,
9004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9005 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9007 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'
9008 ;;
9009
9010 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9011 tmp_diet=no
9012 if test linux-dietlibc = "$host_os"; then
9013 case $cc_basename in
9014 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9015 esac
9016 fi
9017 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9018 && test no = "$tmp_diet"
9019 then
9020 tmp_addflag=' $pic_flag'
9021 tmp_sharedflag='-shared'
9022 case $cc_basename,$host_cpu in
9023 pgcc*) # Portland Group C compiler
9024 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'
9025 tmp_addflag=' $pic_flag'
9026 ;;
9027 pgf77* | pgf90* | pgf95* | pgfortran*)
9028 # Portland Group f77 and f90 compilers
9029 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'
9030 tmp_addflag=' $pic_flag -Mnomain' ;;
9031 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9032 tmp_addflag=' -i_dynamic' ;;
9033 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9034 tmp_addflag=' -i_dynamic -nofor_main' ;;
9035 ifc* | ifort*) # Intel Fortran compiler
9036 tmp_addflag=' -nofor_main' ;;
9037 lf95*) # Lahey Fortran 8.1
9038 whole_archive_flag_spec=
9039 tmp_sharedflag='--shared' ;;
9040 nagfor*) # NAGFOR 5.3
9041 tmp_sharedflag='-Wl,-shared' ;;
9042 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9043 tmp_sharedflag='-qmkshrobj'
9044 tmp_addflag= ;;
9045 nvcc*) # Cuda Compiler Driver 2.2
9046 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'
9047 compiler_needs_object=yes
9048 ;;
9049 esac
9050 case `$CC -V 2>&1 | sed 5q` in
9051 *Sun\ C*) # Sun C 5.9
9052 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'
9053 compiler_needs_object=yes
9054 tmp_sharedflag='-G' ;;
9055 *Sun\ F*) # Sun Fortran 8.3
9056 tmp_sharedflag='-G' ;;
9057 esac
9058 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9059
9060 if test yes = "$supports_anon_versioning"; then
9061 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9063 echo "local: *; };" >> $output_objdir/$libname.ver~
9064 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9065 fi
9066
9067 case $cc_basename in
9068 tcc*)
9069 export_dynamic_flag_spec='-rdynamic'
9070 ;;
9071 xlf* | bgf* | bgxlf* | mpixlf*)
9072 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9073 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9074 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9075 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9076 if test yes = "$supports_anon_versioning"; then
9077 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9079 echo "local: *; };" >> $output_objdir/$libname.ver~
9080 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9081 fi
9082 ;;
9083 esac
9084 else
9085 ld_shlibs=no
9086 fi
9087 ;;
9088
9089 netbsd* | netbsdelf*-gnu)
9090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9091 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9092 wlarc=
9093 else
9094 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9095 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9096 fi
9097 ;;
9098
9099 solaris*)
9100 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9101 ld_shlibs=no
9102 cat <<_LT_EOF 1>&2
9103
9104 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9105 *** create shared libraries on Solaris systems. Therefore, libtool
9106 *** is disabling shared libraries support. We urge you to upgrade GNU
9107 *** binutils to release 2.9.1 or newer. Another option is to modify
9108 *** your PATH or compiler configuration so that the native linker is
9109 *** used, and then restart.
9110
9111 _LT_EOF
9112 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9113 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9114 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9115 else
9116 ld_shlibs=no
9117 fi
9118 ;;
9119
9120 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9121 case `$LD -v 2>&1` in
9122 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9123 ld_shlibs=no
9124 cat <<_LT_EOF 1>&2
9125
9126 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9127 *** reliably create shared libraries on SCO systems. Therefore, libtool
9128 *** is disabling shared libraries support. We urge you to upgrade GNU
9129 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9130 *** your PATH or compiler configuration so that the native linker is
9131 *** used, and then restart.
9132
9133 _LT_EOF
9134 ;;
9135 *)
9136 # For security reasons, it is highly recommended that you always
9137 # use absolute paths for naming shared libraries, and exclude the
9138 # DT_RUNPATH tag from executables and libraries. But doing so
9139 # requires that you compile everything twice, which is a pain.
9140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9141 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9143 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9144 else
9145 ld_shlibs=no
9146 fi
9147 ;;
9148 esac
9149 ;;
9150
9151 sunos4*)
9152 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9153 wlarc=
9154 hardcode_direct=yes
9155 hardcode_shlibpath_var=no
9156 ;;
9157
9158 *)
9159 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9160 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9161 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9162 else
9163 ld_shlibs=no
9164 fi
9165 ;;
9166 esac
9167
9168 if test no = "$ld_shlibs"; then
9169 runpath_var=
9170 hardcode_libdir_flag_spec=
9171 export_dynamic_flag_spec=
9172 whole_archive_flag_spec=
9173 fi
9174 else
9175 # PORTME fill in a description of your system's linker (not GNU ld)
9176 case $host_os in
9177 aix3*)
9178 allow_undefined_flag=unsupported
9179 always_export_symbols=yes
9180 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'
9181 # Note: this linker hardcodes the directories in LIBPATH if there
9182 # are no directories specified by -L.
9183 hardcode_minus_L=yes
9184 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9185 # Neither direct hardcoding nor static linking is supported with a
9186 # broken collect2.
9187 hardcode_direct=unsupported
9188 fi
9189 ;;
9190
9191 aix[4-9]*)
9192 if test ia64 = "$host_cpu"; then
9193 # On IA64, the linker does run time linking by default, so we don't
9194 # have to do anything special.
9195 aix_use_runtimelinking=no
9196 exp_sym_flag='-Bexport'
9197 no_entry_flag=
9198 else
9199 # If we're using GNU nm, then we don't want the "-C" option.
9200 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9201 # Without the "-l" option, or with the "-B" option, AIX nm treats
9202 # weak defined symbols like other global defined symbols, whereas
9203 # GNU nm marks them as "W".
9204 # While the 'weak' keyword is ignored in the Export File, we need
9205 # it in the Import File for the 'aix-soname' feature, so we have
9206 # to replace the "-B" option with "-P" for AIX nm.
9207 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9208 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9209 else
9210 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9211 fi
9212 aix_use_runtimelinking=no
9213
9214 # Test if we are trying to use run time linking or normal
9215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9216 # have runtime linking enabled, and use it for executables.
9217 # For shared libraries, we enable/disable runtime linking
9218 # depending on the kind of the shared library created -
9219 # when "with_aix_soname,aix_use_runtimelinking" is:
9220 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9221 # "aix,yes" lib.so shared, rtl:yes, for executables
9222 # lib.a static archive
9223 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9224 # lib.a(lib.so.V) shared, rtl:no, for executables
9225 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9226 # lib.a(lib.so.V) shared, rtl:no
9227 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9228 # lib.a static archive
9229 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9230 for ld_flag in $LDFLAGS; do
9231 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9232 aix_use_runtimelinking=yes
9233 break
9234 fi
9235 done
9236 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9237 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9238 # so we don't have lib.a shared libs to link our executables.
9239 # We have to force runtime linking in this case.
9240 aix_use_runtimelinking=yes
9241 LDFLAGS="$LDFLAGS -Wl,-brtl"
9242 fi
9243 ;;
9244 esac
9245
9246 exp_sym_flag='-bexport'
9247 no_entry_flag='-bnoentry'
9248 fi
9249
9250 # When large executables or shared objects are built, AIX ld can
9251 # have problems creating the table of contents. If linking a library
9252 # or program results in "error TOC overflow" add -mminimal-toc to
9253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9255
9256 archive_cmds=''
9257 hardcode_direct=yes
9258 hardcode_direct_absolute=yes
9259 hardcode_libdir_separator=':'
9260 link_all_deplibs=yes
9261 file_list_spec='$wl-f,'
9262 case $with_aix_soname,$aix_use_runtimelinking in
9263 aix,*) ;; # traditional, no import file
9264 svr4,* | *,yes) # use import file
9265 # The Import File defines what to hardcode.
9266 hardcode_direct=no
9267 hardcode_direct_absolute=no
9268 ;;
9269 esac
9270
9271 if test yes = "$GCC"; then
9272 case $host_os in aix4.[012]|aix4.[012].*)
9273 # We only want to do this on AIX 4.2 and lower, the check
9274 # below for broken collect2 doesn't work under 4.3+
9275 collect2name=`$CC -print-prog-name=collect2`
9276 if test -f "$collect2name" &&
9277 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9278 then
9279 # We have reworked collect2
9280 :
9281 else
9282 # We have old collect2
9283 hardcode_direct=unsupported
9284 # It fails to find uninstalled libraries when the uninstalled
9285 # path is not listed in the libpath. Setting hardcode_minus_L
9286 # to unsupported forces relinking
9287 hardcode_minus_L=yes
9288 hardcode_libdir_flag_spec='-L$libdir'
9289 hardcode_libdir_separator=
9290 fi
9291 ;;
9292 esac
9293 shared_flag='-shared'
9294 if test yes = "$aix_use_runtimelinking"; then
9295 shared_flag="$shared_flag "'$wl-G'
9296 fi
9297 # Need to ensure runtime linking is disabled for the traditional
9298 # shared library, or the linker may eventually find shared libraries
9299 # /with/ Import File - we do not want to mix them.
9300 shared_flag_aix='-shared'
9301 shared_flag_svr4='-shared $wl-G'
9302 else
9303 # not using gcc
9304 if test ia64 = "$host_cpu"; then
9305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9306 # chokes on -Wl,-G. The following line is correct:
9307 shared_flag='-G'
9308 else
9309 if test yes = "$aix_use_runtimelinking"; then
9310 shared_flag='$wl-G'
9311 else
9312 shared_flag='$wl-bM:SRE'
9313 fi
9314 shared_flag_aix='$wl-bM:SRE'
9315 shared_flag_svr4='$wl-G'
9316 fi
9317 fi
9318
9319 export_dynamic_flag_spec='$wl-bexpall'
9320 # It seems that -bexpall does not export symbols beginning with
9321 # underscore (_), so it is better to generate a list of symbols to export.
9322 always_export_symbols=yes
9323 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9324 # Warning - without using the other runtime loading flags (-brtl),
9325 # -berok will link without error, but may produce a broken library.
9326 allow_undefined_flag='-berok'
9327 # Determine the default libpath from the value encoded in an
9328 # empty executable.
9329 if test set = "${lt_cv_aix_libpath+set}"; then
9330 aix_libpath=$lt_cv_aix_libpath
9331 else
9332 if ${lt_cv_aix_libpath_+:} false; then :
9333 $as_echo_n "(cached) " >&6
9334 else
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9337
9338 int
9339 main ()
9340 {
9341
9342 ;
9343 return 0;
9344 }
9345 _ACEOF
9346 if ac_fn_c_try_link "$LINENO"; then :
9347
9348 lt_aix_libpath_sed='
9349 /Import File Strings/,/^$/ {
9350 /^0/ {
9351 s/^0 *\([^ ]*\) *$/\1/
9352 p
9353 }
9354 }'
9355 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9356 # Check for a 64-bit object if we didn't find anything.
9357 if test -z "$lt_cv_aix_libpath_"; then
9358 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9359 fi
9360 fi
9361 rm -f core conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
9363 if test -z "$lt_cv_aix_libpath_"; then
9364 lt_cv_aix_libpath_=/usr/lib:/lib
9365 fi
9366
9367 fi
9368
9369 aix_libpath=$lt_cv_aix_libpath_
9370 fi
9371
9372 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9373 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9374 else
9375 if test ia64 = "$host_cpu"; then
9376 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9377 allow_undefined_flag="-z nodefs"
9378 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"
9379 else
9380 # Determine the default libpath from the value encoded in an
9381 # empty executable.
9382 if test set = "${lt_cv_aix_libpath+set}"; then
9383 aix_libpath=$lt_cv_aix_libpath
9384 else
9385 if ${lt_cv_aix_libpath_+:} false; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390
9391 int
9392 main ()
9393 {
9394
9395 ;
9396 return 0;
9397 }
9398 _ACEOF
9399 if ac_fn_c_try_link "$LINENO"; then :
9400
9401 lt_aix_libpath_sed='
9402 /Import File Strings/,/^$/ {
9403 /^0/ {
9404 s/^0 *\([^ ]*\) *$/\1/
9405 p
9406 }
9407 }'
9408 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9409 # Check for a 64-bit object if we didn't find anything.
9410 if test -z "$lt_cv_aix_libpath_"; then
9411 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9412 fi
9413 fi
9414 rm -f core conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 if test -z "$lt_cv_aix_libpath_"; then
9417 lt_cv_aix_libpath_=/usr/lib:/lib
9418 fi
9419
9420 fi
9421
9422 aix_libpath=$lt_cv_aix_libpath_
9423 fi
9424
9425 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9426 # Warning - without using the other run time loading flags,
9427 # -berok will link without error, but may produce a broken library.
9428 no_undefined_flag=' $wl-bernotok'
9429 allow_undefined_flag=' $wl-berok'
9430 if test yes = "$with_gnu_ld"; then
9431 # We only use this code for GNU lds that support --whole-archive.
9432 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9433 else
9434 # Exported symbols can be pulled into shared objects from archives
9435 whole_archive_flag_spec='$convenience'
9436 fi
9437 archive_cmds_need_lc=yes
9438 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9439 # -brtl affects multiple linker settings, -berok does not and is overridden later
9440 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9441 if test svr4 != "$with_aix_soname"; then
9442 # This is similar to how AIX traditionally builds its shared libraries.
9443 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9444 fi
9445 if test aix != "$with_aix_soname"; then
9446 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9447 else
9448 # used by -dlpreopen to get the symbols
9449 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9450 fi
9451 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9452 fi
9453 fi
9454 ;;
9455
9456 amigaos*)
9457 case $host_cpu in
9458 powerpc)
9459 # see comment about AmigaOS4 .so support
9460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9461 archive_expsym_cmds=''
9462 ;;
9463 m68k)
9464 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)'
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_minus_L=yes
9467 ;;
9468 esac
9469 ;;
9470
9471 bsdi[45]*)
9472 export_dynamic_flag_spec=-rdynamic
9473 ;;
9474
9475 cygwin* | mingw* | pw32* | cegcc*)
9476 # When not using gcc, we currently assume that we are using
9477 # Microsoft Visual C++.
9478 # hardcode_libdir_flag_spec is actually meaningless, as there is
9479 # no search path for DLLs.
9480 case $cc_basename in
9481 cl*)
9482 # Native MSVC
9483 hardcode_libdir_flag_spec=' '
9484 allow_undefined_flag=unsupported
9485 always_export_symbols=yes
9486 file_list_spec='@'
9487 # Tell ltmain to make .lib files, not .a files.
9488 libext=lib
9489 # Tell ltmain to make .dll files, not .so files.
9490 shrext_cmds=.dll
9491 # FIXME: Setting linknames here is a bad hack.
9492 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9493 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9494 cp "$export_symbols" "$output_objdir/$soname.def";
9495 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9496 else
9497 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9498 fi~
9499 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9500 linknames='
9501 # The linker will not automatically build a static lib if we build a DLL.
9502 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9503 enable_shared_with_static_runtimes=yes
9504 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9505 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9506 # Don't use ranlib
9507 old_postinstall_cmds='chmod 644 $oldlib'
9508 postlink_cmds='lt_outputfile="@OUTPUT@"~
9509 lt_tool_outputfile="@TOOL_OUTPUT@"~
9510 case $lt_outputfile in
9511 *.exe|*.EXE) ;;
9512 *)
9513 lt_outputfile=$lt_outputfile.exe
9514 lt_tool_outputfile=$lt_tool_outputfile.exe
9515 ;;
9516 esac~
9517 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9518 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9519 $RM "$lt_outputfile.manifest";
9520 fi'
9521 ;;
9522 *)
9523 # Assume MSVC wrapper
9524 hardcode_libdir_flag_spec=' '
9525 allow_undefined_flag=unsupported
9526 # Tell ltmain to make .lib files, not .a files.
9527 libext=lib
9528 # Tell ltmain to make .dll files, not .so files.
9529 shrext_cmds=.dll
9530 # FIXME: Setting linknames here is a bad hack.
9531 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9532 # The linker will automatically build a .lib file if we build a DLL.
9533 old_archive_from_new_cmds='true'
9534 # FIXME: Should let the user specify the lib program.
9535 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9536 enable_shared_with_static_runtimes=yes
9537 ;;
9538 esac
9539 ;;
9540
9541 darwin* | rhapsody*)
9542
9543
9544 archive_cmds_need_lc=no
9545 hardcode_direct=no
9546 hardcode_automatic=yes
9547 hardcode_shlibpath_var=unsupported
9548 if test yes = "$lt_cv_ld_force_load"; then
9549 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\"`'
9550
9551 else
9552 whole_archive_flag_spec=''
9553 fi
9554 link_all_deplibs=yes
9555 allow_undefined_flag=$_lt_dar_allow_undefined
9556 case $cc_basename in
9557 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9558 *) _lt_dar_can_shared=$GCC ;;
9559 esac
9560 if test yes = "$_lt_dar_can_shared"; then
9561 output_verbose_link_cmd=func_echo_all
9562 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9563 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9564 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"
9565 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"
9566
9567 else
9568 ld_shlibs=no
9569 fi
9570
9571 ;;
9572
9573 dgux*)
9574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575 hardcode_libdir_flag_spec='-L$libdir'
9576 hardcode_shlibpath_var=no
9577 ;;
9578
9579 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9580 # support. Future versions do this automatically, but an explicit c++rt0.o
9581 # does not break anything, and helps significantly (at the cost of a little
9582 # extra space).
9583 freebsd2.2*)
9584 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9585 hardcode_libdir_flag_spec='-R$libdir'
9586 hardcode_direct=yes
9587 hardcode_shlibpath_var=no
9588 ;;
9589
9590 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9591 freebsd2.*)
9592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9593 hardcode_direct=yes
9594 hardcode_minus_L=yes
9595 hardcode_shlibpath_var=no
9596 ;;
9597
9598 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9599 freebsd* | dragonfly*)
9600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9601 hardcode_libdir_flag_spec='-R$libdir'
9602 hardcode_direct=yes
9603 hardcode_shlibpath_var=no
9604 ;;
9605
9606 hpux9*)
9607 if test yes = "$GCC"; then
9608 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9609 else
9610 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9611 fi
9612 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9613 hardcode_libdir_separator=:
9614 hardcode_direct=yes
9615
9616 # hardcode_minus_L: Not really in the search PATH,
9617 # but as the default location of the library.
9618 hardcode_minus_L=yes
9619 export_dynamic_flag_spec='$wl-E'
9620 ;;
9621
9622 hpux10*)
9623 if test yes,no = "$GCC,$with_gnu_ld"; then
9624 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9625 else
9626 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9627 fi
9628 if test no = "$with_gnu_ld"; then
9629 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9630 hardcode_libdir_separator=:
9631 hardcode_direct=yes
9632 hardcode_direct_absolute=yes
9633 export_dynamic_flag_spec='$wl-E'
9634 # hardcode_minus_L: Not really in the search PATH,
9635 # but as the default location of the library.
9636 hardcode_minus_L=yes
9637 fi
9638 ;;
9639
9640 hpux11*)
9641 if test yes,no = "$GCC,$with_gnu_ld"; then
9642 case $host_cpu in
9643 hppa*64*)
9644 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9645 ;;
9646 ia64*)
9647 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9648 ;;
9649 *)
9650 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9651 ;;
9652 esac
9653 else
9654 case $host_cpu in
9655 hppa*64*)
9656 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9657 ;;
9658 ia64*)
9659 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9660 ;;
9661 *)
9662
9663 # Older versions of the 11.00 compiler do not understand -b yet
9664 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9666 $as_echo_n "checking if $CC understands -b... " >&6; }
9667 if ${lt_cv_prog_compiler__b+:} false; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 lt_cv_prog_compiler__b=no
9671 save_LDFLAGS=$LDFLAGS
9672 LDFLAGS="$LDFLAGS -b"
9673 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9674 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9675 # The linker can only warn and ignore the option if not recognized
9676 # So say no if there are warnings
9677 if test -s conftest.err; then
9678 # Append any errors to the config.log.
9679 cat conftest.err 1>&5
9680 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9682 if diff conftest.exp conftest.er2 >/dev/null; then
9683 lt_cv_prog_compiler__b=yes
9684 fi
9685 else
9686 lt_cv_prog_compiler__b=yes
9687 fi
9688 fi
9689 $RM -r conftest*
9690 LDFLAGS=$save_LDFLAGS
9691
9692 fi
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9694 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9695
9696 if test yes = "$lt_cv_prog_compiler__b"; then
9697 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9698 else
9699 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9700 fi
9701
9702 ;;
9703 esac
9704 fi
9705 if test no = "$with_gnu_ld"; then
9706 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9707 hardcode_libdir_separator=:
9708
9709 case $host_cpu in
9710 hppa*64*|ia64*)
9711 hardcode_direct=no
9712 hardcode_shlibpath_var=no
9713 ;;
9714 *)
9715 hardcode_direct=yes
9716 hardcode_direct_absolute=yes
9717 export_dynamic_flag_spec='$wl-E'
9718
9719 # hardcode_minus_L: Not really in the search PATH,
9720 # but as the default location of the library.
9721 hardcode_minus_L=yes
9722 ;;
9723 esac
9724 fi
9725 ;;
9726
9727 irix5* | irix6* | nonstopux*)
9728 if test yes = "$GCC"; then
9729 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'
9730 # Try to use the -exported_symbol ld option, if it does not
9731 # work, assume that -exports_file does not work either and
9732 # implicitly export all symbols.
9733 # This should be the same for all languages, so no per-tag cache variable.
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9735 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9736 if ${lt_cv_irix_exported_symbol+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 save_LDFLAGS=$LDFLAGS
9740 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9743 int foo (void) { return 0; }
9744 _ACEOF
9745 if ac_fn_c_try_link "$LINENO"; then :
9746 lt_cv_irix_exported_symbol=yes
9747 else
9748 lt_cv_irix_exported_symbol=no
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752 LDFLAGS=$save_LDFLAGS
9753 fi
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9755 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9756 if test yes = "$lt_cv_irix_exported_symbol"; then
9757 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'
9758 fi
9759 link_all_deplibs=no
9760 else
9761 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'
9762 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'
9763 fi
9764 archive_cmds_need_lc='no'
9765 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9766 hardcode_libdir_separator=:
9767 inherit_rpath=yes
9768 link_all_deplibs=yes
9769 ;;
9770
9771 linux*)
9772 case $cc_basename in
9773 tcc*)
9774 # Fabrice Bellard et al's Tiny C Compiler
9775 ld_shlibs=yes
9776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9777 ;;
9778 esac
9779 ;;
9780
9781 netbsd* | netbsdelf*-gnu)
9782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9784 else
9785 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9786 fi
9787 hardcode_libdir_flag_spec='-R$libdir'
9788 hardcode_direct=yes
9789 hardcode_shlibpath_var=no
9790 ;;
9791
9792 newsos6)
9793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_direct=yes
9795 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9796 hardcode_libdir_separator=:
9797 hardcode_shlibpath_var=no
9798 ;;
9799
9800 *nto* | *qnx*)
9801 ;;
9802
9803 openbsd* | bitrig*)
9804 if test -f /usr/libexec/ld.so; then
9805 hardcode_direct=yes
9806 hardcode_shlibpath_var=no
9807 hardcode_direct_absolute=yes
9808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9810 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9811 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9812 export_dynamic_flag_spec='$wl-E'
9813 else
9814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9815 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9816 fi
9817 else
9818 ld_shlibs=no
9819 fi
9820 ;;
9821
9822 os2*)
9823 hardcode_libdir_flag_spec='-L$libdir'
9824 hardcode_minus_L=yes
9825 allow_undefined_flag=unsupported
9826 shrext_cmds=.dll
9827 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9828 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9829 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9830 $ECHO EXPORTS >> $output_objdir/$libname.def~
9831 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9832 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9833 emximp -o $lib $output_objdir/$libname.def'
9834 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9835 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9836 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9837 $ECHO EXPORTS >> $output_objdir/$libname.def~
9838 prefix_cmds="$SED"~
9839 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9840 prefix_cmds="$prefix_cmds -e 1d";
9841 fi~
9842 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9843 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9844 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9845 emximp -o $lib $output_objdir/$libname.def'
9846 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9847 enable_shared_with_static_runtimes=yes
9848 ;;
9849
9850 osf3*)
9851 if test yes = "$GCC"; then
9852 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9853 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'
9854 else
9855 allow_undefined_flag=' -expect_unresolved \*'
9856 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'
9857 fi
9858 archive_cmds_need_lc='no'
9859 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9860 hardcode_libdir_separator=:
9861 ;;
9862
9863 osf4* | osf5*) # as osf3* with the addition of -msym flag
9864 if test yes = "$GCC"; then
9865 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9866 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'
9867 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9868 else
9869 allow_undefined_flag=' -expect_unresolved \*'
9870 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'
9871 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~
9872 $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'
9873
9874 # Both c and cxx compiler support -rpath directly
9875 hardcode_libdir_flag_spec='-rpath $libdir'
9876 fi
9877 archive_cmds_need_lc='no'
9878 hardcode_libdir_separator=:
9879 ;;
9880
9881 solaris*)
9882 no_undefined_flag=' -z defs'
9883 if test yes = "$GCC"; then
9884 wlarc='$wl'
9885 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9887 $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'
9888 else
9889 case `$CC -V 2>&1` in
9890 *"Compilers 5.0"*)
9891 wlarc=''
9892 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9894 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9895 ;;
9896 *)
9897 wlarc='$wl'
9898 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9900 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9901 ;;
9902 esac
9903 fi
9904 hardcode_libdir_flag_spec='-R$libdir'
9905 hardcode_shlibpath_var=no
9906 case $host_os in
9907 solaris2.[0-5] | solaris2.[0-5].*) ;;
9908 *)
9909 # The compiler driver will combine and reorder linker options,
9910 # but understands '-z linker_flag'. GCC discards it without '$wl',
9911 # but is careful enough not to reorder.
9912 # Supported since Solaris 2.6 (maybe 2.5.1?)
9913 if test yes = "$GCC"; then
9914 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9915 else
9916 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9917 fi
9918 ;;
9919 esac
9920 link_all_deplibs=yes
9921 ;;
9922
9923 sunos4*)
9924 if test sequent = "$host_vendor"; then
9925 # Use $CC to link under sequent, because it throws in some extra .o
9926 # files that make .init and .fini sections work.
9927 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9928 else
9929 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9930 fi
9931 hardcode_libdir_flag_spec='-L$libdir'
9932 hardcode_direct=yes
9933 hardcode_minus_L=yes
9934 hardcode_shlibpath_var=no
9935 ;;
9936
9937 sysv4)
9938 case $host_vendor in
9939 sni)
9940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941 hardcode_direct=yes # is this really true???
9942 ;;
9943 siemens)
9944 ## LD is ld it makes a PLAMLIB
9945 ## CC just makes a GrossModule.
9946 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9947 reload_cmds='$CC -r -o $output$reload_objs'
9948 hardcode_direct=no
9949 ;;
9950 motorola)
9951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9953 ;;
9954 esac
9955 runpath_var='LD_RUN_PATH'
9956 hardcode_shlibpath_var=no
9957 ;;
9958
9959 sysv4.3*)
9960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961 hardcode_shlibpath_var=no
9962 export_dynamic_flag_spec='-Bexport'
9963 ;;
9964
9965 sysv4*MP*)
9966 if test -d /usr/nec; then
9967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968 hardcode_shlibpath_var=no
9969 runpath_var=LD_RUN_PATH
9970 hardcode_runpath_var=yes
9971 ld_shlibs=yes
9972 fi
9973 ;;
9974
9975 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9976 no_undefined_flag='$wl-z,text'
9977 archive_cmds_need_lc=no
9978 hardcode_shlibpath_var=no
9979 runpath_var='LD_RUN_PATH'
9980
9981 if test yes = "$GCC"; then
9982 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9983 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 else
9985 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9987 fi
9988 ;;
9989
9990 sysv5* | sco3.2v5* | sco5v6*)
9991 # Note: We CANNOT use -z defs as we might desire, because we do not
9992 # link with -lc, and that would cause any symbols used from libc to
9993 # always be unresolved, which means just about no library would
9994 # ever link correctly. If we're not using GNU ld we use -z text
9995 # though, which does catch some bad symbols but isn't as heavy-handed
9996 # as -z defs.
9997 no_undefined_flag='$wl-z,text'
9998 allow_undefined_flag='$wl-z,nodefs'
9999 archive_cmds_need_lc=no
10000 hardcode_shlibpath_var=no
10001 hardcode_libdir_flag_spec='$wl-R,$libdir'
10002 hardcode_libdir_separator=':'
10003 link_all_deplibs=yes
10004 export_dynamic_flag_spec='$wl-Bexport'
10005 runpath_var='LD_RUN_PATH'
10006
10007 if test yes = "$GCC"; then
10008 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 else
10011 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 fi
10014 ;;
10015
10016 uts4*)
10017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_shlibpath_var=no
10020 ;;
10021
10022 *)
10023 ld_shlibs=no
10024 ;;
10025 esac
10026
10027 if test sni = "$host_vendor"; then
10028 case $host in
10029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10030 export_dynamic_flag_spec='$wl-Blargedynsym'
10031 ;;
10032 esac
10033 fi
10034 fi
10035
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10037 $as_echo "$ld_shlibs" >&6; }
10038 test no = "$ld_shlibs" && can_build_shared=no
10039
10040 with_gnu_ld=$with_gnu_ld
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056 #
10057 # Do we need to explicitly link libc?
10058 #
10059 case "x$archive_cmds_need_lc" in
10060 x|xyes)
10061 # Assume -lc should be added
10062 archive_cmds_need_lc=yes
10063
10064 if test yes,yes = "$GCC,$enable_shared"; then
10065 case $archive_cmds in
10066 *'~'*)
10067 # FIXME: we may have to deal with multi-command sequences.
10068 ;;
10069 '$CC '*)
10070 # Test whether the compiler implicitly links with -lc since on some
10071 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10072 # to ld, don't add -lc before -lgcc.
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10074 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10075 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 $RM conftest*
10079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10080
10081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10082 (eval $ac_compile) 2>&5
10083 ac_status=$?
10084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10085 test $ac_status = 0; } 2>conftest.err; then
10086 soname=conftest
10087 lib=conftest
10088 libobjs=conftest.$ac_objext
10089 deplibs=
10090 wl=$lt_prog_compiler_wl
10091 pic_flag=$lt_prog_compiler_pic
10092 compiler_flags=-v
10093 linker_flags=-v
10094 verstring=
10095 output_objdir=.
10096 libname=conftest
10097 lt_save_allow_undefined_flag=$allow_undefined_flag
10098 allow_undefined_flag=
10099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10100 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10101 ac_status=$?
10102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10103 test $ac_status = 0; }
10104 then
10105 lt_cv_archive_cmds_need_lc=no
10106 else
10107 lt_cv_archive_cmds_need_lc=yes
10108 fi
10109 allow_undefined_flag=$lt_save_allow_undefined_flag
10110 else
10111 cat conftest.err 1>&5
10112 fi
10113 $RM conftest*
10114
10115 fi
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10117 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10118 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10119 ;;
10120 esac
10121 fi
10122 ;;
10123 esac
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10277 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10278
10279 if test yes = "$GCC"; then
10280 case $host_os in
10281 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10282 *) lt_awk_arg='/^libraries:/' ;;
10283 esac
10284 case $host_os in
10285 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10286 *) lt_sed_strip_eq='s|=/|/|g' ;;
10287 esac
10288 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10289 case $lt_search_path_spec in
10290 *\;*)
10291 # if the path contains ";" then we assume it to be the separator
10292 # otherwise default to the standard path separator (i.e. ":") - it is
10293 # assumed that no part of a normal pathname contains ";" but that should
10294 # okay in the real world where ";" in dirpaths is itself problematic.
10295 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10296 ;;
10297 *)
10298 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10299 ;;
10300 esac
10301 # Ok, now we have the path, separated by spaces, we can step through it
10302 # and add multilib dir if necessary...
10303 lt_tmp_lt_search_path_spec=
10304 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10305 # ...but if some path component already ends with the multilib dir we assume
10306 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10307 case "$lt_multi_os_dir; $lt_search_path_spec " in
10308 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10309 lt_multi_os_dir=
10310 ;;
10311 esac
10312 for lt_sys_path in $lt_search_path_spec; do
10313 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10314 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10315 elif test -n "$lt_multi_os_dir"; then
10316 test -d "$lt_sys_path" && \
10317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10318 fi
10319 done
10320 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10321 BEGIN {RS = " "; FS = "/|\n";} {
10322 lt_foo = "";
10323 lt_count = 0;
10324 for (lt_i = NF; lt_i > 0; lt_i--) {
10325 if ($lt_i != "" && $lt_i != ".") {
10326 if ($lt_i == "..") {
10327 lt_count++;
10328 } else {
10329 if (lt_count == 0) {
10330 lt_foo = "/" $lt_i lt_foo;
10331 } else {
10332 lt_count--;
10333 }
10334 }
10335 }
10336 }
10337 if (lt_foo != "") { lt_freq[lt_foo]++; }
10338 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10339 }'`
10340 # AWK program above erroneously prepends '/' to C:/dos/paths
10341 # for these hosts.
10342 case $host_os in
10343 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10344 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10345 esac
10346 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10347 else
10348 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10349 fi
10350 library_names_spec=
10351 libname_spec='lib$name'
10352 soname_spec=
10353 shrext_cmds=.so
10354 postinstall_cmds=
10355 postuninstall_cmds=
10356 finish_cmds=
10357 finish_eval=
10358 shlibpath_var=
10359 shlibpath_overrides_runpath=unknown
10360 version_type=none
10361 dynamic_linker="$host_os ld.so"
10362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10363 need_lib_prefix=unknown
10364 hardcode_into_libs=no
10365
10366 # when you set need_version to no, make sure it does not cause -set_version
10367 # flags to be left without arguments
10368 need_version=unknown
10369
10370
10371
10372 case $host_os in
10373 aix3*)
10374 version_type=linux # correct to gnu/linux during the next big refactor
10375 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10376 shlibpath_var=LIBPATH
10377
10378 # AIX 3 has no versioning support, so we append a major version to the name.
10379 soname_spec='$libname$release$shared_ext$major'
10380 ;;
10381
10382 aix[4-9]*)
10383 version_type=linux # correct to gnu/linux during the next big refactor
10384 need_lib_prefix=no
10385 need_version=no
10386 hardcode_into_libs=yes
10387 if test ia64 = "$host_cpu"; then
10388 # AIX 5 supports IA64
10389 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 else
10392 # With GCC up to 2.95.x, collect2 would create an import file
10393 # for dependence libraries. The import file would start with
10394 # the line '#! .'. This would cause the generated library to
10395 # depend on '.', always an invalid library. This was fixed in
10396 # development snapshots of GCC prior to 3.0.
10397 case $host_os in
10398 aix4 | aix4.[01] | aix4.[01].*)
10399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10400 echo ' yes '
10401 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10402 :
10403 else
10404 can_build_shared=no
10405 fi
10406 ;;
10407 esac
10408 # Using Import Files as archive members, it is possible to support
10409 # filename-based versioning of shared library archives on AIX. While
10410 # this would work for both with and without runtime linking, it will
10411 # prevent static linking of such archives. So we do filename-based
10412 # shared library versioning with .so extension only, which is used
10413 # when both runtime linking and shared linking is enabled.
10414 # Unfortunately, runtime linking may impact performance, so we do
10415 # not want this to be the default eventually. Also, we use the
10416 # versioned .so libs for executables only if there is the -brtl
10417 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10418 # To allow for filename-based versioning support, we need to create
10419 # libNAME.so.V as an archive file, containing:
10420 # *) an Import File, referring to the versioned filename of the
10421 # archive as well as the shared archive member, telling the
10422 # bitwidth (32 or 64) of that shared object, and providing the
10423 # list of exported symbols of that shared object, eventually
10424 # decorated with the 'weak' keyword
10425 # *) the shared object with the F_LOADONLY flag set, to really avoid
10426 # it being seen by the linker.
10427 # At run time we better use the real file rather than another symlink,
10428 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10429
10430 case $with_aix_soname,$aix_use_runtimelinking in
10431 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10432 # soname into executable. Probably we can add versioning support to
10433 # collect2, so additional links can be useful in future.
10434 aix,yes) # traditional libtool
10435 dynamic_linker='AIX unversionable lib.so'
10436 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10437 # instead of lib<name>.a to let people know that these are not
10438 # typical AIX shared libraries.
10439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10440 ;;
10441 aix,no) # traditional AIX only
10442 dynamic_linker='AIX lib.a(lib.so.V)'
10443 # We preserve .a as extension for shared libraries through AIX4.2
10444 # and later when we are not doing run time linking.
10445 library_names_spec='$libname$release.a $libname.a'
10446 soname_spec='$libname$release$shared_ext$major'
10447 ;;
10448 svr4,*) # full svr4 only
10449 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10450 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10451 # We do not specify a path in Import Files, so LIBPATH fires.
10452 shlibpath_overrides_runpath=yes
10453 ;;
10454 *,yes) # both, prefer svr4
10455 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10456 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10457 # unpreferred sharedlib libNAME.a needs extra handling
10458 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10459 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10460 # We do not specify a path in Import Files, so LIBPATH fires.
10461 shlibpath_overrides_runpath=yes
10462 ;;
10463 *,no) # both, prefer aix
10464 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10465 library_names_spec='$libname$release.a $libname.a'
10466 soname_spec='$libname$release$shared_ext$major'
10467 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10468 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10469 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10470 ;;
10471 esac
10472 shlibpath_var=LIBPATH
10473 fi
10474 ;;
10475
10476 amigaos*)
10477 case $host_cpu in
10478 powerpc)
10479 # Since July 2007 AmigaOS4 officially supports .so libraries.
10480 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10482 ;;
10483 m68k)
10484 library_names_spec='$libname.ixlibrary $libname.a'
10485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10486 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10487 ;;
10488 esac
10489 ;;
10490
10491 beos*)
10492 library_names_spec='$libname$shared_ext'
10493 dynamic_linker="$host_os ld.so"
10494 shlibpath_var=LIBRARY_PATH
10495 ;;
10496
10497 bsdi[45]*)
10498 version_type=linux # correct to gnu/linux during the next big refactor
10499 need_version=no
10500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10501 soname_spec='$libname$release$shared_ext$major'
10502 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10505 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10506 # the default ld.so.conf also contains /usr/contrib/lib and
10507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10508 # libtool to hard-code these into programs
10509 ;;
10510
10511 cygwin* | mingw* | pw32* | cegcc*)
10512 version_type=windows
10513 shrext_cmds=.dll
10514 need_version=no
10515 need_lib_prefix=no
10516
10517 case $GCC,$cc_basename in
10518 yes,*)
10519 # gcc
10520 library_names_spec='$libname.dll.a'
10521 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10522 postinstall_cmds='base_file=`basename \$file`~
10523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10524 dldir=$destdir/`dirname \$dlpath`~
10525 test -d \$dldir || mkdir -p \$dldir~
10526 $install_prog $dir/$dlname \$dldir/$dlname~
10527 chmod a+x \$dldir/$dlname~
10528 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10529 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10530 fi'
10531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10532 dlpath=$dir/\$dldll~
10533 $RM \$dlpath'
10534 shlibpath_overrides_runpath=yes
10535
10536 case $host_os in
10537 cygwin*)
10538 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10539 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10540
10541 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10542 ;;
10543 mingw* | cegcc*)
10544 # MinGW DLLs use traditional 'lib' prefix
10545 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10546 ;;
10547 pw32*)
10548 # pw32 DLLs use 'pw' prefix rather than 'lib'
10549 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10550 ;;
10551 esac
10552 dynamic_linker='Win32 ld.exe'
10553 ;;
10554
10555 *,cl*)
10556 # Native MSVC
10557 libname_spec='$name'
10558 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10559 library_names_spec='$libname.dll.lib'
10560
10561 case $build_os in
10562 mingw*)
10563 sys_lib_search_path_spec=
10564 lt_save_ifs=$IFS
10565 IFS=';'
10566 for lt_path in $LIB
10567 do
10568 IFS=$lt_save_ifs
10569 # Let DOS variable expansion print the short 8.3 style file name.
10570 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10571 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10572 done
10573 IFS=$lt_save_ifs
10574 # Convert to MSYS style.
10575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10576 ;;
10577 cygwin*)
10578 # Convert to unix form, then to dos form, then back to unix form
10579 # but this time dos style (no spaces!) so that the unix form looks
10580 # like /cygdrive/c/PROGRA~1:/cygdr...
10581 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10582 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10583 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10584 ;;
10585 *)
10586 sys_lib_search_path_spec=$LIB
10587 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10588 # It is most probably a Windows format PATH.
10589 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10590 else
10591 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10592 fi
10593 # FIXME: find the short name or the path components, as spaces are
10594 # common. (e.g. "Program Files" -> "PROGRA~1")
10595 ;;
10596 esac
10597
10598 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10599 postinstall_cmds='base_file=`basename \$file`~
10600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10601 dldir=$destdir/`dirname \$dlpath`~
10602 test -d \$dldir || mkdir -p \$dldir~
10603 $install_prog $dir/$dlname \$dldir/$dlname'
10604 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10605 dlpath=$dir/\$dldll~
10606 $RM \$dlpath'
10607 shlibpath_overrides_runpath=yes
10608 dynamic_linker='Win32 link.exe'
10609 ;;
10610
10611 *)
10612 # Assume MSVC wrapper
10613 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10614 dynamic_linker='Win32 ld.exe'
10615 ;;
10616 esac
10617 # FIXME: first we should search . and the directory the executable is in
10618 shlibpath_var=PATH
10619 ;;
10620
10621 darwin* | rhapsody*)
10622 dynamic_linker="$host_os dyld"
10623 version_type=darwin
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10627 soname_spec='$libname$release$major$shared_ext'
10628 shlibpath_overrides_runpath=yes
10629 shlibpath_var=DYLD_LIBRARY_PATH
10630 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10631
10632 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10634 ;;
10635
10636 dgux*)
10637 version_type=linux # correct to gnu/linux during the next big refactor
10638 need_lib_prefix=no
10639 need_version=no
10640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10641 soname_spec='$libname$release$shared_ext$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 ;;
10644
10645 freebsd* | dragonfly*)
10646 # DragonFly does not have aout. When/if they implement a new
10647 # versioning mechanism, adjust this.
10648 if test -x /usr/bin/objformat; then
10649 objformat=`/usr/bin/objformat`
10650 else
10651 case $host_os in
10652 freebsd[23].*) objformat=aout ;;
10653 *) objformat=elf ;;
10654 esac
10655 fi
10656 version_type=freebsd-$objformat
10657 case $version_type in
10658 freebsd-elf*)
10659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10660 soname_spec='$libname$release$shared_ext$major'
10661 need_version=no
10662 need_lib_prefix=no
10663 ;;
10664 freebsd-*)
10665 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10666 need_version=yes
10667 ;;
10668 esac
10669 shlibpath_var=LD_LIBRARY_PATH
10670 case $host_os in
10671 freebsd2.*)
10672 shlibpath_overrides_runpath=yes
10673 ;;
10674 freebsd3.[01]* | freebsdelf3.[01]*)
10675 shlibpath_overrides_runpath=yes
10676 hardcode_into_libs=yes
10677 ;;
10678 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10679 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10680 shlibpath_overrides_runpath=no
10681 hardcode_into_libs=yes
10682 ;;
10683 *) # from 4.6 on, and DragonFly
10684 shlibpath_overrides_runpath=yes
10685 hardcode_into_libs=yes
10686 ;;
10687 esac
10688 ;;
10689
10690 haiku*)
10691 version_type=linux # correct to gnu/linux during the next big refactor
10692 need_lib_prefix=no
10693 need_version=no
10694 dynamic_linker="$host_os runtime_loader"
10695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10696 soname_spec='$libname$release$shared_ext$major'
10697 shlibpath_var=LIBRARY_PATH
10698 shlibpath_overrides_runpath=no
10699 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10700 hardcode_into_libs=yes
10701 ;;
10702
10703 hpux9* | hpux10* | hpux11*)
10704 # Give a soname corresponding to the major version so that dld.sl refuses to
10705 # link against other versions.
10706 version_type=sunos
10707 need_lib_prefix=no
10708 need_version=no
10709 case $host_cpu in
10710 ia64*)
10711 shrext_cmds='.so'
10712 hardcode_into_libs=yes
10713 dynamic_linker="$host_os dld.so"
10714 shlibpath_var=LD_LIBRARY_PATH
10715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10717 soname_spec='$libname$release$shared_ext$major'
10718 if test 32 = "$HPUX_IA64_MODE"; then
10719 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10720 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10721 else
10722 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10723 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10724 fi
10725 ;;
10726 hppa*64*)
10727 shrext_cmds='.sl'
10728 hardcode_into_libs=yes
10729 dynamic_linker="$host_os dld.sl"
10730 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10731 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10733 soname_spec='$libname$release$shared_ext$major'
10734 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10736 ;;
10737 *)
10738 shrext_cmds='.sl'
10739 dynamic_linker="$host_os dld.sl"
10740 shlibpath_var=SHLIB_PATH
10741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10743 soname_spec='$libname$release$shared_ext$major'
10744 ;;
10745 esac
10746 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10747 postinstall_cmds='chmod 555 $lib'
10748 # or fails outright, so override atomically:
10749 install_override_mode=555
10750 ;;
10751
10752 interix[3-9]*)
10753 version_type=linux # correct to gnu/linux during the next big refactor
10754 need_lib_prefix=no
10755 need_version=no
10756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10757 soname_spec='$libname$release$shared_ext$major'
10758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=no
10761 hardcode_into_libs=yes
10762 ;;
10763
10764 irix5* | irix6* | nonstopux*)
10765 case $host_os in
10766 nonstopux*) version_type=nonstopux ;;
10767 *)
10768 if test yes = "$lt_cv_prog_gnu_ld"; then
10769 version_type=linux # correct to gnu/linux during the next big refactor
10770 else
10771 version_type=irix
10772 fi ;;
10773 esac
10774 need_lib_prefix=no
10775 need_version=no
10776 soname_spec='$libname$release$shared_ext$major'
10777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10778 case $host_os in
10779 irix5* | nonstopux*)
10780 libsuff= shlibsuff=
10781 ;;
10782 *)
10783 case $LD in # libtool.m4 will add one of these switches to LD
10784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10785 libsuff= shlibsuff= libmagic=32-bit;;
10786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10787 libsuff=32 shlibsuff=N32 libmagic=N32;;
10788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10789 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10790 *) libsuff= shlibsuff= libmagic=never-match;;
10791 esac
10792 ;;
10793 esac
10794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10795 shlibpath_overrides_runpath=no
10796 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10797 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10798 hardcode_into_libs=yes
10799 ;;
10800
10801 # No shared lib support for Linux oldld, aout, or coff.
10802 linux*oldld* | linux*aout* | linux*coff*)
10803 dynamic_linker=no
10804 ;;
10805
10806 linux*android*)
10807 version_type=none # Android doesn't support versioned libraries.
10808 need_lib_prefix=no
10809 need_version=no
10810 library_names_spec='$libname$release$shared_ext'
10811 soname_spec='$libname$release$shared_ext'
10812 finish_cmds=
10813 shlibpath_var=LD_LIBRARY_PATH
10814 shlibpath_overrides_runpath=yes
10815
10816 # This implies no fast_install, which is unacceptable.
10817 # Some rework will be needed to allow for fast_install
10818 # before this can be enabled.
10819 hardcode_into_libs=yes
10820
10821 dynamic_linker='Android linker'
10822 # Don't embed -rpath directories since the linker doesn't support them.
10823 hardcode_libdir_flag_spec='-L$libdir'
10824 ;;
10825
10826 # This must be glibc/ELF.
10827 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10828 version_type=linux # correct to gnu/linux during the next big refactor
10829 need_lib_prefix=no
10830 need_version=no
10831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10832 soname_spec='$libname$release$shared_ext$major'
10833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10834 shlibpath_var=LD_LIBRARY_PATH
10835 shlibpath_overrides_runpath=no
10836
10837 # Some binutils ld are patched to set DT_RUNPATH
10838 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 lt_cv_shlibpath_overrides_runpath=no
10842 save_LDFLAGS=$LDFLAGS
10843 save_libdir=$libdir
10844 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10845 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h. */
10848
10849 int
10850 main ()
10851 {
10852
10853 ;
10854 return 0;
10855 }
10856 _ACEOF
10857 if ac_fn_c_try_link "$LINENO"; then :
10858 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10859 lt_cv_shlibpath_overrides_runpath=yes
10860 fi
10861 fi
10862 rm -f core conftest.err conftest.$ac_objext \
10863 conftest$ac_exeext conftest.$ac_ext
10864 LDFLAGS=$save_LDFLAGS
10865 libdir=$save_libdir
10866
10867 fi
10868
10869 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10870
10871 # This implies no fast_install, which is unacceptable.
10872 # Some rework will be needed to allow for fast_install
10873 # before this can be enabled.
10874 hardcode_into_libs=yes
10875
10876 # Ideally, we could use ldconfig to report *all* directores which are
10877 # searched for libraries, however this is still not possible. Aside from not
10878 # being certain /sbin/ldconfig is available, command
10879 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10880 # even though it is searched at run-time. Try to do the best guess by
10881 # appending ld.so.conf contents (and includes) to the search path.
10882 if test -f /etc/ld.so.conf; then
10883 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' ' '`
10884 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10885 fi
10886
10887 # We used to test for /lib/ld.so.1 and disable shared libraries on
10888 # powerpc, because MkLinux only supported shared libraries with the
10889 # GNU dynamic linker. Since this was broken with cross compilers,
10890 # most powerpc-linux boxes support dynamic linking these days and
10891 # people can always --disable-shared, the test was removed, and we
10892 # assume the GNU/Linux dynamic linker is in use.
10893 dynamic_linker='GNU/Linux ld.so'
10894 ;;
10895
10896 netbsdelf*-gnu)
10897 version_type=linux
10898 need_lib_prefix=no
10899 need_version=no
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath=no
10904 hardcode_into_libs=yes
10905 dynamic_linker='NetBSD ld.elf_so'
10906 ;;
10907
10908 netbsd*)
10909 version_type=sunos
10910 need_lib_prefix=no
10911 need_version=no
10912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10913 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10915 dynamic_linker='NetBSD (a.out) ld.so'
10916 else
10917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10918 soname_spec='$libname$release$shared_ext$major'
10919 dynamic_linker='NetBSD ld.elf_so'
10920 fi
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10923 hardcode_into_libs=yes
10924 ;;
10925
10926 newsos6)
10927 version_type=linux # correct to gnu/linux during the next big refactor
10928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=yes
10931 ;;
10932
10933 *nto* | *qnx*)
10934 version_type=qnx
10935 need_lib_prefix=no
10936 need_version=no
10937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10938 soname_spec='$libname$release$shared_ext$major'
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=no
10941 hardcode_into_libs=yes
10942 dynamic_linker='ldqnx.so'
10943 ;;
10944
10945 openbsd* | bitrig*)
10946 version_type=sunos
10947 sys_lib_dlsearch_path_spec=/usr/lib
10948 need_lib_prefix=no
10949 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10950 need_version=no
10951 else
10952 need_version=yes
10953 fi
10954 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=yes
10958 ;;
10959
10960 os2*)
10961 libname_spec='$name'
10962 version_type=windows
10963 shrext_cmds=.dll
10964 need_version=no
10965 need_lib_prefix=no
10966 # OS/2 can only load a DLL with a base name of 8 characters or less.
10967 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10968 v=$($ECHO $release$versuffix | tr -d .-);
10969 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10970 $ECHO $n$v`$shared_ext'
10971 library_names_spec='${libname}_dll.$libext'
10972 dynamic_linker='OS/2 ld.exe'
10973 shlibpath_var=BEGINLIBPATH
10974 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10976 postinstall_cmds='base_file=`basename \$file`~
10977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10978 dldir=$destdir/`dirname \$dlpath`~
10979 test -d \$dldir || mkdir -p \$dldir~
10980 $install_prog $dir/$dlname \$dldir/$dlname~
10981 chmod a+x \$dldir/$dlname~
10982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10984 fi'
10985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10986 dlpath=$dir/\$dldll~
10987 $RM \$dlpath'
10988 ;;
10989
10990 osf3* | osf4* | osf5*)
10991 version_type=osf
10992 need_lib_prefix=no
10993 need_version=no
10994 soname_spec='$libname$release$shared_ext$major'
10995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10999 ;;
11000
11001 rdos*)
11002 dynamic_linker=no
11003 ;;
11004
11005 solaris*)
11006 version_type=linux # correct to gnu/linux during the next big refactor
11007 need_lib_prefix=no
11008 need_version=no
11009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11010 soname_spec='$libname$release$shared_ext$major'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 shlibpath_overrides_runpath=yes
11013 hardcode_into_libs=yes
11014 # ldd complains unless libraries are executable
11015 postinstall_cmds='chmod +x $lib'
11016 ;;
11017
11018 sunos4*)
11019 version_type=sunos
11020 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes
11024 if test yes = "$with_gnu_ld"; then
11025 need_lib_prefix=no
11026 fi
11027 need_version=yes
11028 ;;
11029
11030 sysv4 | sysv4.3*)
11031 version_type=linux # correct to gnu/linux during the next big refactor
11032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11033 soname_spec='$libname$release$shared_ext$major'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 case $host_vendor in
11036 sni)
11037 shlibpath_overrides_runpath=no
11038 need_lib_prefix=no
11039 runpath_var=LD_RUN_PATH
11040 ;;
11041 siemens)
11042 need_lib_prefix=no
11043 ;;
11044 motorola)
11045 need_lib_prefix=no
11046 need_version=no
11047 shlibpath_overrides_runpath=no
11048 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11049 ;;
11050 esac
11051 ;;
11052
11053 sysv4*MP*)
11054 if test -d /usr/nec; then
11055 version_type=linux # correct to gnu/linux during the next big refactor
11056 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11057 soname_spec='$libname$shared_ext.$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 fi
11060 ;;
11061
11062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11063 version_type=sco
11064 need_lib_prefix=no
11065 need_version=no
11066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11067 soname_spec='$libname$release$shared_ext$major'
11068 shlibpath_var=LD_LIBRARY_PATH
11069 shlibpath_overrides_runpath=yes
11070 hardcode_into_libs=yes
11071 if test yes = "$with_gnu_ld"; then
11072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11073 else
11074 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11075 case $host_os in
11076 sco3.2v5*)
11077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11078 ;;
11079 esac
11080 fi
11081 sys_lib_dlsearch_path_spec='/usr/lib'
11082 ;;
11083
11084 tpf*)
11085 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11086 version_type=linux # correct to gnu/linux during the next big refactor
11087 need_lib_prefix=no
11088 need_version=no
11089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=no
11092 hardcode_into_libs=yes
11093 ;;
11094
11095 uts4*)
11096 version_type=linux # correct to gnu/linux during the next big refactor
11097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11098 soname_spec='$libname$release$shared_ext$major'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 ;;
11101
11102 *)
11103 dynamic_linker=no
11104 ;;
11105 esac
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11107 $as_echo "$dynamic_linker" >&6; }
11108 test no = "$dynamic_linker" && can_build_shared=no
11109
11110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11111 if test yes = "$GCC"; then
11112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11113 fi
11114
11115 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11116 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11117 fi
11118
11119 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11120 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11121 fi
11122
11123 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11124 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11125
11126 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11127 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11128
11129 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11130 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11229 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11230 hardcode_action=
11231 if test -n "$hardcode_libdir_flag_spec" ||
11232 test -n "$runpath_var" ||
11233 test yes = "$hardcode_automatic"; then
11234
11235 # We can hardcode non-existent directories.
11236 if test no != "$hardcode_direct" &&
11237 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11238 # have to relink, otherwise we might link with an installed library
11239 # when we should be linking with a yet-to-be-installed one
11240 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11241 test no != "$hardcode_minus_L"; then
11242 # Linking always hardcodes the temporary library directory.
11243 hardcode_action=relink
11244 else
11245 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11246 hardcode_action=immediate
11247 fi
11248 else
11249 # We cannot hardcode anything, or else we can only hardcode existing
11250 # directories.
11251 hardcode_action=unsupported
11252 fi
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11254 $as_echo "$hardcode_action" >&6; }
11255
11256 if test relink = "$hardcode_action" ||
11257 test yes = "$inherit_rpath"; then
11258 # Fast installation is not supported
11259 enable_fast_install=no
11260 elif test yes = "$shlibpath_overrides_runpath" ||
11261 test no = "$enable_shared"; then
11262 # Fast installation is not necessary
11263 enable_fast_install=needless
11264 fi
11265
11266
11267
11268
11269
11270
11271 if test yes != "$enable_dlopen"; then
11272 enable_dlopen=unknown
11273 enable_dlopen_self=unknown
11274 enable_dlopen_self_static=unknown
11275 else
11276 lt_cv_dlopen=no
11277 lt_cv_dlopen_libs=
11278
11279 case $host_os in
11280 beos*)
11281 lt_cv_dlopen=load_add_on
11282 lt_cv_dlopen_libs=
11283 lt_cv_dlopen_self=yes
11284 ;;
11285
11286 mingw* | pw32* | cegcc*)
11287 lt_cv_dlopen=LoadLibrary
11288 lt_cv_dlopen_libs=
11289 ;;
11290
11291 cygwin*)
11292 lt_cv_dlopen=dlopen
11293 lt_cv_dlopen_libs=
11294 ;;
11295
11296 darwin*)
11297 # if libdl is installed we need to link against it
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11299 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11300 if ${ac_cv_lib_dl_dlopen+:} false; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-ldl $LIBS"
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11307
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char dlopen ();
11315 int
11316 main ()
11317 {
11318 return dlopen ();
11319 ;
11320 return 0;
11321 }
11322 _ACEOF
11323 if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_lib_dl_dlopen=yes
11325 else
11326 ac_cv_lib_dl_dlopen=no
11327 fi
11328 rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LIBS=$ac_check_lib_save_LIBS
11331 fi
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11333 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11334 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11335 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11336 else
11337
11338 lt_cv_dlopen=dyld
11339 lt_cv_dlopen_libs=
11340 lt_cv_dlopen_self=yes
11341
11342 fi
11343
11344 ;;
11345
11346 tpf*)
11347 # Don't try to run any link tests for TPF. We know it's impossible
11348 # because TPF is a cross-compiler, and we know how we open DSOs.
11349 lt_cv_dlopen=dlopen
11350 lt_cv_dlopen_libs=
11351 lt_cv_dlopen_self=no
11352 ;;
11353
11354 *)
11355 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11356 if test "x$ac_cv_func_shl_load" = xyes; then :
11357 lt_cv_dlopen=shl_load
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11360 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11361 if ${ac_cv_lib_dld_shl_load+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 ac_check_lib_save_LIBS=$LIBS
11365 LIBS="-ldld $LIBS"
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char shl_load ();
11376 int
11377 main ()
11378 {
11379 return shl_load ();
11380 ;
11381 return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11385 ac_cv_lib_dld_shl_load=yes
11386 else
11387 ac_cv_lib_dld_shl_load=no
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_lib_save_LIBS
11392 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11394 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11395 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11396 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11397 else
11398 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11399 if test "x$ac_cv_func_dlopen" = xyes; then :
11400 lt_cv_dlopen=dlopen
11401 else
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11403 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11404 if ${ac_cv_lib_dl_dlopen+:} false; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 ac_check_lib_save_LIBS=$LIBS
11408 LIBS="-ldl $LIBS"
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11411
11412 /* Override any GCC internal prototype to avoid an error.
11413 Use char because int might match the return type of a GCC
11414 builtin and then its argument prototype would still apply. */
11415 #ifdef __cplusplus
11416 extern "C"
11417 #endif
11418 char dlopen ();
11419 int
11420 main ()
11421 {
11422 return dlopen ();
11423 ;
11424 return 0;
11425 }
11426 _ACEOF
11427 if ac_fn_c_try_link "$LINENO"; then :
11428 ac_cv_lib_dl_dlopen=yes
11429 else
11430 ac_cv_lib_dl_dlopen=no
11431 fi
11432 rm -f core conftest.err conftest.$ac_objext \
11433 conftest$ac_exeext conftest.$ac_ext
11434 LIBS=$ac_check_lib_save_LIBS
11435 fi
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11437 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11438 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11439 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11440 else
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11442 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11443 if ${ac_cv_lib_svld_dlopen+:} false; then :
11444 $as_echo_n "(cached) " >&6
11445 else
11446 ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-lsvld $LIBS"
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11450
11451 /* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char dlopen ();
11458 int
11459 main ()
11460 {
11461 return dlopen ();
11462 ;
11463 return 0;
11464 }
11465 _ACEOF
11466 if ac_fn_c_try_link "$LINENO"; then :
11467 ac_cv_lib_svld_dlopen=yes
11468 else
11469 ac_cv_lib_svld_dlopen=no
11470 fi
11471 rm -f core conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11473 LIBS=$ac_check_lib_save_LIBS
11474 fi
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11476 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11477 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11478 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11479 else
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11481 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11482 if ${ac_cv_lib_dld_dld_link+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 ac_check_lib_save_LIBS=$LIBS
11486 LIBS="-ldld $LIBS"
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11493 #ifdef __cplusplus
11494 extern "C"
11495 #endif
11496 char dld_link ();
11497 int
11498 main ()
11499 {
11500 return dld_link ();
11501 ;
11502 return 0;
11503 }
11504 _ACEOF
11505 if ac_fn_c_try_link "$LINENO"; then :
11506 ac_cv_lib_dld_dld_link=yes
11507 else
11508 ac_cv_lib_dld_dld_link=no
11509 fi
11510 rm -f core conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11512 LIBS=$ac_check_lib_save_LIBS
11513 fi
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11515 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11516 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11517 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11518 fi
11519
11520
11521 fi
11522
11523
11524 fi
11525
11526
11527 fi
11528
11529
11530 fi
11531
11532
11533 fi
11534
11535 ;;
11536 esac
11537
11538 if test no = "$lt_cv_dlopen"; then
11539 enable_dlopen=no
11540 else
11541 enable_dlopen=yes
11542 fi
11543
11544 case $lt_cv_dlopen in
11545 dlopen)
11546 save_CPPFLAGS=$CPPFLAGS
11547 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11548
11549 save_LDFLAGS=$LDFLAGS
11550 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11551
11552 save_LIBS=$LIBS
11553 LIBS="$lt_cv_dlopen_libs $LIBS"
11554
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11556 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11557 if ${lt_cv_dlopen_self+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 if test yes = "$cross_compiling"; then :
11561 lt_cv_dlopen_self=cross
11562 else
11563 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11564 lt_status=$lt_dlunknown
11565 cat > conftest.$ac_ext <<_LT_EOF
11566 #line $LINENO "configure"
11567 #include "confdefs.h"
11568
11569 #if HAVE_DLFCN_H
11570 #include <dlfcn.h>
11571 #endif
11572
11573 #include <stdio.h>
11574
11575 #ifdef RTLD_GLOBAL
11576 # define LT_DLGLOBAL RTLD_GLOBAL
11577 #else
11578 # ifdef DL_GLOBAL
11579 # define LT_DLGLOBAL DL_GLOBAL
11580 # else
11581 # define LT_DLGLOBAL 0
11582 # endif
11583 #endif
11584
11585 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11586 find out it does not work in some platform. */
11587 #ifndef LT_DLLAZY_OR_NOW
11588 # ifdef RTLD_LAZY
11589 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11590 # else
11591 # ifdef DL_LAZY
11592 # define LT_DLLAZY_OR_NOW DL_LAZY
11593 # else
11594 # ifdef RTLD_NOW
11595 # define LT_DLLAZY_OR_NOW RTLD_NOW
11596 # else
11597 # ifdef DL_NOW
11598 # define LT_DLLAZY_OR_NOW DL_NOW
11599 # else
11600 # define LT_DLLAZY_OR_NOW 0
11601 # endif
11602 # endif
11603 # endif
11604 # endif
11605 #endif
11606
11607 /* When -fvisibility=hidden is used, assume the code has been annotated
11608 correspondingly for the symbols needed. */
11609 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11610 int fnord () __attribute__((visibility("default")));
11611 #endif
11612
11613 int fnord () { return 42; }
11614 int main ()
11615 {
11616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11617 int status = $lt_dlunknown;
11618
11619 if (self)
11620 {
11621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11622 else
11623 {
11624 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11625 else puts (dlerror ());
11626 }
11627 /* dlclose (self); */
11628 }
11629 else
11630 puts (dlerror ());
11631
11632 return status;
11633 }
11634 _LT_EOF
11635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11636 (eval $ac_link) 2>&5
11637 ac_status=$?
11638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11639 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11640 (./conftest; exit; ) >&5 2>/dev/null
11641 lt_status=$?
11642 case x$lt_status in
11643 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11644 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11645 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11646 esac
11647 else :
11648 # compilation failed
11649 lt_cv_dlopen_self=no
11650 fi
11651 fi
11652 rm -fr conftest*
11653
11654
11655 fi
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11657 $as_echo "$lt_cv_dlopen_self" >&6; }
11658
11659 if test yes = "$lt_cv_dlopen_self"; then
11660 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11662 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11663 if ${lt_cv_dlopen_self_static+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 if test yes = "$cross_compiling"; then :
11667 lt_cv_dlopen_self_static=cross
11668 else
11669 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11670 lt_status=$lt_dlunknown
11671 cat > conftest.$ac_ext <<_LT_EOF
11672 #line $LINENO "configure"
11673 #include "confdefs.h"
11674
11675 #if HAVE_DLFCN_H
11676 #include <dlfcn.h>
11677 #endif
11678
11679 #include <stdio.h>
11680
11681 #ifdef RTLD_GLOBAL
11682 # define LT_DLGLOBAL RTLD_GLOBAL
11683 #else
11684 # ifdef DL_GLOBAL
11685 # define LT_DLGLOBAL DL_GLOBAL
11686 # else
11687 # define LT_DLGLOBAL 0
11688 # endif
11689 #endif
11690
11691 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11692 find out it does not work in some platform. */
11693 #ifndef LT_DLLAZY_OR_NOW
11694 # ifdef RTLD_LAZY
11695 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11696 # else
11697 # ifdef DL_LAZY
11698 # define LT_DLLAZY_OR_NOW DL_LAZY
11699 # else
11700 # ifdef RTLD_NOW
11701 # define LT_DLLAZY_OR_NOW RTLD_NOW
11702 # else
11703 # ifdef DL_NOW
11704 # define LT_DLLAZY_OR_NOW DL_NOW
11705 # else
11706 # define LT_DLLAZY_OR_NOW 0
11707 # endif
11708 # endif
11709 # endif
11710 # endif
11711 #endif
11712
11713 /* When -fvisibility=hidden is used, assume the code has been annotated
11714 correspondingly for the symbols needed. */
11715 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11716 int fnord () __attribute__((visibility("default")));
11717 #endif
11718
11719 int fnord () { return 42; }
11720 int main ()
11721 {
11722 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11723 int status = $lt_dlunknown;
11724
11725 if (self)
11726 {
11727 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11728 else
11729 {
11730 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11731 else puts (dlerror ());
11732 }
11733 /* dlclose (self); */
11734 }
11735 else
11736 puts (dlerror ());
11737
11738 return status;
11739 }
11740 _LT_EOF
11741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11742 (eval $ac_link) 2>&5
11743 ac_status=$?
11744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11745 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11746 (./conftest; exit; ) >&5 2>/dev/null
11747 lt_status=$?
11748 case x$lt_status in
11749 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11750 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11751 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11752 esac
11753 else :
11754 # compilation failed
11755 lt_cv_dlopen_self_static=no
11756 fi
11757 fi
11758 rm -fr conftest*
11759
11760
11761 fi
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11763 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11764 fi
11765
11766 CPPFLAGS=$save_CPPFLAGS
11767 LDFLAGS=$save_LDFLAGS
11768 LIBS=$save_LIBS
11769 ;;
11770 esac
11771
11772 case $lt_cv_dlopen_self in
11773 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11774 *) enable_dlopen_self=unknown ;;
11775 esac
11776
11777 case $lt_cv_dlopen_self_static in
11778 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11779 *) enable_dlopen_self_static=unknown ;;
11780 esac
11781 fi
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799 striplib=
11800 old_striplib=
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11802 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11803 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11804 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11805 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11807 $as_echo "yes" >&6; }
11808 else
11809 # FIXME - insert some real tests, host_os isn't really good enough
11810 case $host_os in
11811 darwin*)
11812 if test -n "$STRIP"; then
11813 striplib="$STRIP -x"
11814 old_striplib="$STRIP -S"
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11816 $as_echo "yes" >&6; }
11817 else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11820 fi
11821 ;;
11822 *)
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11825 ;;
11826 esac
11827 fi
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840 # Report what library types will actually be built
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11842 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11844 $as_echo "$can_build_shared" >&6; }
11845
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11847 $as_echo_n "checking whether to build shared libraries... " >&6; }
11848 test no = "$can_build_shared" && enable_shared=no
11849
11850 # On AIX, shared libraries and static libraries use the same namespace, and
11851 # are all built from PIC.
11852 case $host_os in
11853 aix3*)
11854 test yes = "$enable_shared" && enable_static=no
11855 if test -n "$RANLIB"; then
11856 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11857 postinstall_cmds='$RANLIB $lib'
11858 fi
11859 ;;
11860
11861 aix[4-9]*)
11862 if test ia64 != "$host_cpu"; then
11863 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11864 yes,aix,yes) ;; # shared object as lib.so file only
11865 yes,svr4,*) ;; # shared object as lib.so archive member only
11866 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11867 esac
11868 fi
11869 ;;
11870 esac
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11872 $as_echo "$enable_shared" >&6; }
11873
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11875 $as_echo_n "checking whether to build static libraries... " >&6; }
11876 # Make sure either enable_shared or enable_static is yes.
11877 test yes = "$enable_shared" || enable_static=yes
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11879 $as_echo "$enable_static" >&6; }
11880
11881
11882
11883
11884 fi
11885 ac_ext=c
11886 ac_cpp='$CPP $CPPFLAGS'
11887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11890
11891 CC=$lt_save_CC
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907 ac_config_commands="$ac_config_commands libtool"
11908
11909
11910
11911
11912 # Only expand once:
11913
11914
11915
11916
11917
11918 # Check whether --with-font was given.
11919 if test "${with_font+set}" = set; then :
11920 withval=$with_font; with_font=$withval
11921 else
11922 with_font=yes
11923 fi
11924
11925
11926
11927 # Check whether --with-examples was given.
11928 if test "${with_examples+set}" = set; then :
11929 withval=$with_examples; with_examples=$withval
11930 else
11931 with_examples=yes
11932 fi
11933
11934
11935 if test "$with_font" = yes; then
11936 COND_FONT_TRUE=
11937 COND_FONT_FALSE='#'
11938 else
11939 COND_FONT_TRUE='#'
11940 COND_FONT_FALSE=
11941 fi
11942
11943 if test "$with_examples" = yes; then
11944 COND_EXAMPLES_TRUE=
11945 COND_EXAMPLES_FALSE='#'
11946 else
11947 COND_EXAMPLES_TRUE='#'
11948 COND_EXAMPLES_FALSE=
11949 fi
11950
11951
11952 ac_ext=c
11953 ac_cpp='$CPP $CPPFLAGS'
11954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11957 if test -n "$ac_tool_prefix"; then
11958 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11959 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if ${ac_cv_prog_CC+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 if test -n "$CC"; then
11966 ac_cv_prog_CC="$CC" # Let the user override the test.
11967 else
11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11970 do
11971 IFS=$as_save_IFS
11972 test -z "$as_dir" && as_dir=.
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11975 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 break 2
11978 fi
11979 done
11980 done
11981 IFS=$as_save_IFS
11982
11983 fi
11984 fi
11985 CC=$ac_cv_prog_CC
11986 if test -n "$CC"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11988 $as_echo "$CC" >&6; }
11989 else
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992 fi
11993
11994
11995 fi
11996 if test -z "$ac_cv_prog_CC"; then
11997 ac_ct_CC=$CC
11998 # Extract the first word of "gcc", so it can be a program name with args.
11999 set dummy gcc; ac_word=$2
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12001 $as_echo_n "checking for $ac_word... " >&6; }
12002 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 if test -n "$ac_ct_CC"; then
12006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12007 else
12008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009 for as_dir in $PATH
12010 do
12011 IFS=$as_save_IFS
12012 test -z "$as_dir" && as_dir=.
12013 for ac_exec_ext in '' $ac_executable_extensions; do
12014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12015 ac_cv_prog_ac_ct_CC="gcc"
12016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12017 break 2
12018 fi
12019 done
12020 done
12021 IFS=$as_save_IFS
12022
12023 fi
12024 fi
12025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12026 if test -n "$ac_ct_CC"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12028 $as_echo "$ac_ct_CC" >&6; }
12029 else
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12032 fi
12033
12034 if test "x$ac_ct_CC" = x; then
12035 CC=""
12036 else
12037 case $cross_compiling:$ac_tool_warned in
12038 yes:)
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12041 ac_tool_warned=yes ;;
12042 esac
12043 CC=$ac_ct_CC
12044 fi
12045 else
12046 CC="$ac_cv_prog_CC"
12047 fi
12048
12049 if test -z "$CC"; then
12050 if test -n "$ac_tool_prefix"; then
12051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12052 set dummy ${ac_tool_prefix}cc; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_prog_CC+:} false; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 if test -n "$CC"; then
12059 ac_cv_prog_CC="$CC" # Let the user override the test.
12060 else
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12063 do
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068 ac_cv_prog_CC="${ac_tool_prefix}cc"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 break 2
12071 fi
12072 done
12073 done
12074 IFS=$as_save_IFS
12075
12076 fi
12077 fi
12078 CC=$ac_cv_prog_CC
12079 if test -n "$CC"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12081 $as_echo "$CC" >&6; }
12082 else
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085 fi
12086
12087
12088 fi
12089 fi
12090 if test -z "$CC"; then
12091 # Extract the first word of "cc", so it can be a program name with args.
12092 set dummy cc; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_prog_CC+:} false; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12098 if test -n "$CC"; then
12099 ac_cv_prog_CC="$CC" # Let the user override the test.
12100 else
12101 ac_prog_rejected=no
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103 for as_dir in $PATH
12104 do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12110 ac_prog_rejected=yes
12111 continue
12112 fi
12113 ac_cv_prog_CC="cc"
12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 break 2
12116 fi
12117 done
12118 done
12119 IFS=$as_save_IFS
12120
12121 if test $ac_prog_rejected = yes; then
12122 # We found a bogon in the path, so make sure we never use it.
12123 set dummy $ac_cv_prog_CC
12124 shift
12125 if test $# != 0; then
12126 # We chose a different compiler from the bogus one.
12127 # However, it has the same basename, so the bogon will be chosen
12128 # first if we set CC to just the basename; use the full file name.
12129 shift
12130 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12131 fi
12132 fi
12133 fi
12134 fi
12135 CC=$ac_cv_prog_CC
12136 if test -n "$CC"; then
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12138 $as_echo "$CC" >&6; }
12139 else
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141 $as_echo "no" >&6; }
12142 fi
12143
12144
12145 fi
12146 if test -z "$CC"; then
12147 if test -n "$ac_tool_prefix"; then
12148 for ac_prog in cl.exe
12149 do
12150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12153 $as_echo_n "checking for $ac_word... " >&6; }
12154 if ${ac_cv_prog_CC+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 if test -n "$CC"; then
12158 ac_cv_prog_CC="$CC" # Let the user override the test.
12159 else
12160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $PATH
12162 do
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12169 break 2
12170 fi
12171 done
12172 done
12173 IFS=$as_save_IFS
12174
12175 fi
12176 fi
12177 CC=$ac_cv_prog_CC
12178 if test -n "$CC"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12180 $as_echo "$CC" >&6; }
12181 else
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12184 fi
12185
12186
12187 test -n "$CC" && break
12188 done
12189 fi
12190 if test -z "$CC"; then
12191 ac_ct_CC=$CC
12192 for ac_prog in cl.exe
12193 do
12194 # Extract the first word of "$ac_prog", so it can be a program name with args.
12195 set dummy $ac_prog; ac_word=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12199 $as_echo_n "(cached) " >&6
12200 else
12201 if test -n "$ac_ct_CC"; then
12202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12203 else
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_prog_ac_ct_CC="$ac_prog"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 break 2
12214 fi
12215 done
12216 done
12217 IFS=$as_save_IFS
12218
12219 fi
12220 fi
12221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12222 if test -n "$ac_ct_CC"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12224 $as_echo "$ac_ct_CC" >&6; }
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228 fi
12229
12230
12231 test -n "$ac_ct_CC" && break
12232 done
12233
12234 if test "x$ac_ct_CC" = x; then
12235 CC=""
12236 else
12237 case $cross_compiling:$ac_tool_warned in
12238 yes:)
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12241 ac_tool_warned=yes ;;
12242 esac
12243 CC=$ac_ct_CC
12244 fi
12245 fi
12246
12247 fi
12248
12249
12250 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12252 as_fn_error $? "no acceptable C compiler found in \$PATH
12253 See \`config.log' for more details" "$LINENO" 5; }
12254
12255 # Provide some information about the compiler.
12256 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12257 set X $ac_compile
12258 ac_compiler=$2
12259 for ac_option in --version -v -V -qversion; do
12260 { { ac_try="$ac_compiler $ac_option >&5"
12261 case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264 esac
12265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12266 $as_echo "$ac_try_echo"; } >&5
12267 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12268 ac_status=$?
12269 if test -s conftest.err; then
12270 sed '10a\
12271 ... rest of stderr output deleted ...
12272 10q' conftest.err >conftest.er1
12273 cat conftest.er1 >&5
12274 fi
12275 rm -f conftest.er1 conftest.err
12276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12277 test $ac_status = 0; }
12278 done
12279
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12281 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12282 if ${ac_cv_c_compiler_gnu+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h. */
12287
12288 int
12289 main ()
12290 {
12291 #ifndef __GNUC__
12292 choke me
12293 #endif
12294
12295 ;
12296 return 0;
12297 }
12298 _ACEOF
12299 if ac_fn_c_try_compile "$LINENO"; then :
12300 ac_compiler_gnu=yes
12301 else
12302 ac_compiler_gnu=no
12303 fi
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12306
12307 fi
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12309 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12310 if test $ac_compiler_gnu = yes; then
12311 GCC=yes
12312 else
12313 GCC=
12314 fi
12315 ac_test_CFLAGS=${CFLAGS+set}
12316 ac_save_CFLAGS=$CFLAGS
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12318 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12319 if ${ac_cv_prog_cc_g+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 ac_save_c_werror_flag=$ac_c_werror_flag
12323 ac_c_werror_flag=yes
12324 ac_cv_prog_cc_g=no
12325 CFLAGS="-g"
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12328
12329 int
12330 main ()
12331 {
12332
12333 ;
12334 return 0;
12335 }
12336 _ACEOF
12337 if ac_fn_c_try_compile "$LINENO"; then :
12338 ac_cv_prog_cc_g=yes
12339 else
12340 CFLAGS=""
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343
12344 int
12345 main ()
12346 {
12347
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 if ac_fn_c_try_compile "$LINENO"; then :
12353
12354 else
12355 ac_c_werror_flag=$ac_save_c_werror_flag
12356 CFLAGS="-g"
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359
12360 int
12361 main ()
12362 {
12363
12364 ;
12365 return 0;
12366 }
12367 _ACEOF
12368 if ac_fn_c_try_compile "$LINENO"; then :
12369 ac_cv_prog_cc_g=yes
12370 fi
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 fi
12375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 ac_c_werror_flag=$ac_save_c_werror_flag
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12379 $as_echo "$ac_cv_prog_cc_g" >&6; }
12380 if test "$ac_test_CFLAGS" = set; then
12381 CFLAGS=$ac_save_CFLAGS
12382 elif test $ac_cv_prog_cc_g = yes; then
12383 if test "$GCC" = yes; then
12384 CFLAGS="-g -O2"
12385 else
12386 CFLAGS="-g"
12387 fi
12388 else
12389 if test "$GCC" = yes; then
12390 CFLAGS="-O2"
12391 else
12392 CFLAGS=
12393 fi
12394 fi
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12396 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12397 if ${ac_cv_prog_cc_c89+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 ac_cv_prog_cc_c89=no
12401 ac_save_CC=$CC
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12404 #include <stdarg.h>
12405 #include <stdio.h>
12406 struct stat;
12407 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12408 struct buf { int x; };
12409 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12410 static char *e (p, i)
12411 char **p;
12412 int i;
12413 {
12414 return p[i];
12415 }
12416 static char *f (char * (*g) (char **, int), char **p, ...)
12417 {
12418 char *s;
12419 va_list v;
12420 va_start (v,p);
12421 s = g (p, va_arg (v,int));
12422 va_end (v);
12423 return s;
12424 }
12425
12426 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12427 function prototypes and stuff, but not '\xHH' hex character constants.
12428 These don't provoke an error unfortunately, instead are silently treated
12429 as 'x'. The following induces an error, until -std is added to get
12430 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12431 array size at least. It's necessary to write '\x00'==0 to get something
12432 that's true only with -std. */
12433 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12434
12435 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12436 inside strings and character constants. */
12437 #define FOO(x) 'x'
12438 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12439
12440 int test (int i, double x);
12441 struct s1 {int (*f) (int a);};
12442 struct s2 {int (*f) (double a);};
12443 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12444 int argc;
12445 char **argv;
12446 int
12447 main ()
12448 {
12449 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12450 ;
12451 return 0;
12452 }
12453 _ACEOF
12454 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12455 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12456 do
12457 CC="$ac_save_CC $ac_arg"
12458 if ac_fn_c_try_compile "$LINENO"; then :
12459 ac_cv_prog_cc_c89=$ac_arg
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext
12462 test "x$ac_cv_prog_cc_c89" != "xno" && break
12463 done
12464 rm -f conftest.$ac_ext
12465 CC=$ac_save_CC
12466
12467 fi
12468 # AC_CACHE_VAL
12469 case "x$ac_cv_prog_cc_c89" in
12470 x)
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12472 $as_echo "none needed" >&6; } ;;
12473 xno)
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12475 $as_echo "unsupported" >&6; } ;;
12476 *)
12477 CC="$CC $ac_cv_prog_cc_c89"
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12479 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12480 esac
12481 if test "x$ac_cv_prog_cc_c89" != xno; then :
12482
12483 fi
12484
12485 ac_ext=c
12486 ac_cpp='$CPP $CPPFLAGS'
12487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12490
12491 ac_ext=c
12492 ac_cpp='$CPP $CPPFLAGS'
12493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12497 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12498 if ${am_cv_prog_cc_c_o+:} false; then :
12499 $as_echo_n "(cached) " >&6
12500 else
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12503
12504 int
12505 main ()
12506 {
12507
12508 ;
12509 return 0;
12510 }
12511 _ACEOF
12512 # Make sure it works both with $CC and with simple cc.
12513 # Following AC_PROG_CC_C_O, we do the test twice because some
12514 # compilers refuse to overwrite an existing .o file with -o,
12515 # though they will create one.
12516 am_cv_prog_cc_c_o=yes
12517 for am_i in 1 2; do
12518 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12519 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } \
12523 && test -f conftest2.$ac_objext; then
12524 : OK
12525 else
12526 am_cv_prog_cc_c_o=no
12527 break
12528 fi
12529 done
12530 rm -f core conftest*
12531 unset am_i
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12534 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12535 if test "$am_cv_prog_cc_c_o" != yes; then
12536 # Losing compiler, so override with the script.
12537 # FIXME: It is wrong to rewrite CC.
12538 # But if we don't then we get into trouble of one sort or another.
12539 # A longer-term fix would be to have automake use am__CC in this case,
12540 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12541 CC="$am_aux_dir/compile $CC"
12542 fi
12543 ac_ext=c
12544 ac_cpp='$CPP $CPPFLAGS'
12545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12548
12549
12550 depcc="$CC" am_compiler_list=
12551
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12553 $as_echo_n "checking dependency style of $depcc... " >&6; }
12554 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12558 # We make a subdir and do the tests there. Otherwise we can end up
12559 # making bogus files that we don't know about and never remove. For
12560 # instance it was reported that on HP-UX the gcc test will end up
12561 # making a dummy file named 'D' -- because '-MD' means "put the output
12562 # in D".
12563 rm -rf conftest.dir
12564 mkdir conftest.dir
12565 # Copy depcomp to subdir because otherwise we won't find it if we're
12566 # using a relative directory.
12567 cp "$am_depcomp" conftest.dir
12568 cd conftest.dir
12569 # We will build objects and dependencies in a subdirectory because
12570 # it helps to detect inapplicable dependency modes. For instance
12571 # both Tru64's cc and ICC support -MD to output dependencies as a
12572 # side effect of compilation, but ICC will put the dependencies in
12573 # the current directory while Tru64 will put them in the object
12574 # directory.
12575 mkdir sub
12576
12577 am_cv_CC_dependencies_compiler_type=none
12578 if test "$am_compiler_list" = ""; then
12579 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12580 fi
12581 am__universal=false
12582 case " $depcc " in #(
12583 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12584 esac
12585
12586 for depmode in $am_compiler_list; do
12587 # Setup a source with many dependencies, because some compilers
12588 # like to wrap large dependency lists on column 80 (with \), and
12589 # we should not choose a depcomp mode which is confused by this.
12590 #
12591 # We need to recreate these files for each test, as the compiler may
12592 # overwrite some of them when testing with obscure command lines.
12593 # This happens at least with the AIX C compiler.
12594 : > sub/conftest.c
12595 for i in 1 2 3 4 5 6; do
12596 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12597 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12598 # Solaris 10 /bin/sh.
12599 echo '/* dummy */' > sub/conftst$i.h
12600 done
12601 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12602
12603 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12604 # mode. It turns out that the SunPro C++ compiler does not properly
12605 # handle '-M -o', and we need to detect this. Also, some Intel
12606 # versions had trouble with output in subdirs.
12607 am__obj=sub/conftest.${OBJEXT-o}
12608 am__minus_obj="-o $am__obj"
12609 case $depmode in
12610 gcc)
12611 # This depmode causes a compiler race in universal mode.
12612 test "$am__universal" = false || continue
12613 ;;
12614 nosideeffect)
12615 # After this tag, mechanisms are not by side-effect, so they'll
12616 # only be used when explicitly requested.
12617 if test "x$enable_dependency_tracking" = xyes; then
12618 continue
12619 else
12620 break
12621 fi
12622 ;;
12623 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12624 # This compiler won't grok '-c -o', but also, the minuso test has
12625 # not run yet. These depmodes are late enough in the game, and
12626 # so weak that their functioning should not be impacted.
12627 am__obj=conftest.${OBJEXT-o}
12628 am__minus_obj=
12629 ;;
12630 none) break ;;
12631 esac
12632 if depmode=$depmode \
12633 source=sub/conftest.c object=$am__obj \
12634 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12635 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12636 >/dev/null 2>conftest.err &&
12637 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12638 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12639 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12640 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12641 # icc doesn't choke on unknown options, it will just issue warnings
12642 # or remarks (even with -Werror). So we grep stderr for any message
12643 # that says an option was ignored or not supported.
12644 # When given -MP, icc 7.0 and 7.1 complain thusly:
12645 # icc: Command line warning: ignoring option '-M'; no argument required
12646 # The diagnosis changed in icc 8.0:
12647 # icc: Command line remark: option '-MP' not supported
12648 if (grep 'ignoring option' conftest.err ||
12649 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12650 am_cv_CC_dependencies_compiler_type=$depmode
12651 break
12652 fi
12653 fi
12654 done
12655
12656 cd ..
12657 rm -rf conftest.dir
12658 else
12659 am_cv_CC_dependencies_compiler_type=none
12660 fi
12661
12662 fi
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12664 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12665 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12666
12667 if
12668 test "x$enable_dependency_tracking" != xno \
12669 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12670 am__fastdepCC_TRUE=
12671 am__fastdepCC_FALSE='#'
12672 else
12673 am__fastdepCC_TRUE='#'
12674 am__fastdepCC_FALSE=
12675 fi
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12688 if test -n "$ac_tool_prefix"; then
12689 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12690 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12692 $as_echo_n "checking for $ac_word... " >&6; }
12693 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 case $PKG_CONFIG in
12697 [\\/]* | ?:[\\/]*)
12698 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12699 ;;
12700 *)
12701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702 for as_dir in $PATH
12703 do
12704 IFS=$as_save_IFS
12705 test -z "$as_dir" && as_dir=.
12706 for ac_exec_ext in '' $ac_executable_extensions; do
12707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12708 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12710 break 2
12711 fi
12712 done
12713 done
12714 IFS=$as_save_IFS
12715
12716 ;;
12717 esac
12718 fi
12719 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12720 if test -n "$PKG_CONFIG"; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12722 $as_echo "$PKG_CONFIG" >&6; }
12723 else
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725 $as_echo "no" >&6; }
12726 fi
12727
12728
12729 fi
12730 if test -z "$ac_cv_path_PKG_CONFIG"; then
12731 ac_pt_PKG_CONFIG=$PKG_CONFIG
12732 # Extract the first word of "pkg-config", so it can be a program name with args.
12733 set dummy pkg-config; ac_word=$2
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12735 $as_echo_n "checking for $ac_word... " >&6; }
12736 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 case $ac_pt_PKG_CONFIG in
12740 [\\/]* | ?:[\\/]*)
12741 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12742 ;;
12743 *)
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH
12746 do
12747 IFS=$as_save_IFS
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
12750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12751 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753 break 2
12754 fi
12755 done
12756 done
12757 IFS=$as_save_IFS
12758
12759 ;;
12760 esac
12761 fi
12762 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12763 if test -n "$ac_pt_PKG_CONFIG"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12765 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12766 else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12769 fi
12770
12771 if test "x$ac_pt_PKG_CONFIG" = x; then
12772 PKG_CONFIG=""
12773 else
12774 case $cross_compiling:$ac_tool_warned in
12775 yes:)
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12778 ac_tool_warned=yes ;;
12779 esac
12780 PKG_CONFIG=$ac_pt_PKG_CONFIG
12781 fi
12782 else
12783 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12784 fi
12785
12786 fi
12787 if test -n "$PKG_CONFIG"; then
12788 _pkg_min_version=0.9.0
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12790 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12791 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12793 $as_echo "yes" >&6; }
12794 else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12797 PKG_CONFIG=""
12798 fi
12799 fi
12800
12801 pkg_failed=no
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
12803 $as_echo_n "checking for x11... " >&6; }
12804
12805 if test -n "$X11_CFLAGS"; then
12806 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
12807 elif test -n "$PKG_CONFIG"; then
12808 if test -n "$PKG_CONFIG" && \
12809 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12810 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12811 ac_status=$?
12812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12813 test $ac_status = 0; }; then
12814 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
12815 test "x$?" != "x0" && pkg_failed=yes
12816 else
12817 pkg_failed=yes
12818 fi
12819 else
12820 pkg_failed=untried
12821 fi
12822 if test -n "$X11_LIBS"; then
12823 pkg_cv_X11_LIBS="$X11_LIBS"
12824 elif test -n "$PKG_CONFIG"; then
12825 if test -n "$PKG_CONFIG" && \
12826 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12827 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12828 ac_status=$?
12829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12830 test $ac_status = 0; }; then
12831 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
12832 test "x$?" != "x0" && pkg_failed=yes
12833 else
12834 pkg_failed=yes
12835 fi
12836 else
12837 pkg_failed=untried
12838 fi
12839
12840
12841
12842 if test $pkg_failed = yes; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845
12846 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12847 _pkg_short_errors_supported=yes
12848 else
12849 _pkg_short_errors_supported=no
12850 fi
12851 if test $_pkg_short_errors_supported = yes; then
12852 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
12853 else
12854 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
12855 fi
12856 # Put the nasty error message in config.log where it belongs
12857 echo "$X11_PKG_ERRORS" >&5
12858
12859 as_fn_error $? "Package requirements (x11) were not met:
12860
12861 $X11_PKG_ERRORS
12862
12863 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12864 installed software in a non-standard prefix.
12865
12866 Alternatively, you may set the environment variables X11_CFLAGS
12867 and X11_LIBS to avoid the need to call pkg-config.
12868 See the pkg-config man page for more details." "$LINENO" 5
12869 elif test $pkg_failed = untried; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871 $as_echo "no" >&6; }
12872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12874 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12875 is in your PATH or set the PKG_CONFIG environment variable to the full
12876 path to pkg-config.
12877
12878 Alternatively, you may set the environment variables X11_CFLAGS
12879 and X11_LIBS to avoid the need to call pkg-config.
12880 See the pkg-config man page for more details.
12881
12882 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12883 See \`config.log' for more details" "$LINENO" 5; }
12884 else
12885 X11_CFLAGS=$pkg_cv_X11_CFLAGS
12886 X11_LIBS=$pkg_cv_X11_LIBS
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12888 $as_echo "yes" >&6; }
12889
12890 fi
12891
12892 pkg_failed=no
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xext" >&5
12894 $as_echo_n "checking for xext... " >&6; }
12895
12896 if test -n "$Xext_CFLAGS"; then
12897 pkg_cv_Xext_CFLAGS="$Xext_CFLAGS"
12898 elif test -n "$PKG_CONFIG"; then
12899 if test -n "$PKG_CONFIG" && \
12900 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
12901 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
12902 ac_status=$?
12903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12904 test $ac_status = 0; }; then
12905 pkg_cv_Xext_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
12906 test "x$?" != "x0" && pkg_failed=yes
12907 else
12908 pkg_failed=yes
12909 fi
12910 else
12911 pkg_failed=untried
12912 fi
12913 if test -n "$Xext_LIBS"; then
12914 pkg_cv_Xext_LIBS="$Xext_LIBS"
12915 elif test -n "$PKG_CONFIG"; then
12916 if test -n "$PKG_CONFIG" && \
12917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
12918 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
12919 ac_status=$?
12920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12921 test $ac_status = 0; }; then
12922 pkg_cv_Xext_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
12923 test "x$?" != "x0" && pkg_failed=yes
12924 else
12925 pkg_failed=yes
12926 fi
12927 else
12928 pkg_failed=untried
12929 fi
12930
12931
12932
12933 if test $pkg_failed = yes; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935 $as_echo "no" >&6; }
12936
12937 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12938 _pkg_short_errors_supported=yes
12939 else
12940 _pkg_short_errors_supported=no
12941 fi
12942 if test $_pkg_short_errors_supported = yes; then
12943 Xext_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
12944 else
12945 Xext_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
12946 fi
12947 # Put the nasty error message in config.log where it belongs
12948 echo "$Xext_PKG_ERRORS" >&5
12949
12950 as_fn_error $? "Package requirements (xext) were not met:
12951
12952 $Xext_PKG_ERRORS
12953
12954 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12955 installed software in a non-standard prefix.
12956
12957 Alternatively, you may set the environment variables Xext_CFLAGS
12958 and Xext_LIBS to avoid the need to call pkg-config.
12959 See the pkg-config man page for more details." "$LINENO" 5
12960 elif test $pkg_failed = untried; then
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962 $as_echo "no" >&6; }
12963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12965 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12966 is in your PATH or set the PKG_CONFIG environment variable to the full
12967 path to pkg-config.
12968
12969 Alternatively, you may set the environment variables Xext_CFLAGS
12970 and Xext_LIBS to avoid the need to call pkg-config.
12971 See the pkg-config man page for more details.
12972
12973 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12974 See \`config.log' for more details" "$LINENO" 5; }
12975 else
12976 Xext_CFLAGS=$pkg_cv_Xext_CFLAGS
12977 Xext_LIBS=$pkg_cv_Xext_LIBS
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12979 $as_echo "yes" >&6; }
12980
12981 fi
12982
12983 pkg_failed=no
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xpm" >&5
12985 $as_echo_n "checking for xpm... " >&6; }
12986
12987 if test -n "$xpm_CFLAGS"; then
12988 pkg_cv_xpm_CFLAGS="$xpm_CFLAGS"
12989 elif test -n "$PKG_CONFIG"; then
12990 if test -n "$PKG_CONFIG" && \
12991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
12992 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
12993 ac_status=$?
12994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12995 test $ac_status = 0; }; then
12996 pkg_cv_xpm_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null`
12997 test "x$?" != "x0" && pkg_failed=yes
12998 else
12999 pkg_failed=yes
13000 fi
13001 else
13002 pkg_failed=untried
13003 fi
13004 if test -n "$xpm_LIBS"; then
13005 pkg_cv_xpm_LIBS="$xpm_LIBS"
13006 elif test -n "$PKG_CONFIG"; then
13007 if test -n "$PKG_CONFIG" && \
13008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
13009 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
13010 ac_status=$?
13011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13012 test $ac_status = 0; }; then
13013 pkg_cv_xpm_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null`
13014 test "x$?" != "x0" && pkg_failed=yes
13015 else
13016 pkg_failed=yes
13017 fi
13018 else
13019 pkg_failed=untried
13020 fi
13021
13022
13023
13024 if test $pkg_failed = yes; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13027
13028 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13029 _pkg_short_errors_supported=yes
13030 else
13031 _pkg_short_errors_supported=no
13032 fi
13033 if test $_pkg_short_errors_supported = yes; then
13034 xpm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1`
13035 else
13036 xpm_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1`
13037 fi
13038 # Put the nasty error message in config.log where it belongs
13039 echo "$xpm_PKG_ERRORS" >&5
13040
13041 as_fn_error $? "Package requirements (xpm) were not met:
13042
13043 $xpm_PKG_ERRORS
13044
13045 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13046 installed software in a non-standard prefix.
13047
13048 Alternatively, you may set the environment variables xpm_CFLAGS
13049 and xpm_LIBS to avoid the need to call pkg-config.
13050 See the pkg-config man page for more details." "$LINENO" 5
13051 elif test $pkg_failed = untried; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13056 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13057 is in your PATH or set the PKG_CONFIG environment variable to the full
13058 path to pkg-config.
13059
13060 Alternatively, you may set the environment variables xpm_CFLAGS
13061 and xpm_LIBS to avoid the need to call pkg-config.
13062 See the pkg-config man page for more details.
13063
13064 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13065 See \`config.log' for more details" "$LINENO" 5; }
13066 else
13067 xpm_CFLAGS=$pkg_cv_xpm_CFLAGS
13068 xpm_LIBS=$pkg_cv_xpm_LIBS
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13070 $as_echo "yes" >&6; }
13071
13072 fi
13073
13074
13075
13076
13077 # Check whether --enable-debug was given.
13078 if test "${enable_debug+set}" = set; then :
13079 enableval=$enable_debug;
13080 else
13081 enable_debug=no
13082 fi
13083
13084 if test "$enable_debug" = yes; then
13085 DFLAGS="-Wall -g -ansi -pedantic"
13086 fi
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103 # Extract the first word of "fc-cache", so it can be a program name with args.
13104 set dummy fc-cache; ac_word=$2
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106 $as_echo_n "checking for $ac_word... " >&6; }
13107 if ${ac_cv_path_FCCACHE+:} false; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 case $FCCACHE in
13111 [\\/]* | ?:[\\/]*)
13112 ac_cv_path_FCCACHE="$FCCACHE" # Let the user override the test with a path.
13113 ;;
13114 *)
13115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116 for as_dir in $PATH
13117 do
13118 IFS=$as_save_IFS
13119 test -z "$as_dir" && as_dir=.
13120 for ac_exec_ext in '' $ac_executable_extensions; do
13121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13122 ac_cv_path_FCCACHE="$as_dir/$ac_word$ac_exec_ext"
13123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13124 break 2
13125 fi
13126 done
13127 done
13128 IFS=$as_save_IFS
13129
13130 ;;
13131 esac
13132 fi
13133 FCCACHE=$ac_cv_path_FCCACHE
13134 if test -n "$FCCACHE"; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCCACHE" >&5
13136 $as_echo "$FCCACHE" >&6; }
13137 else
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13139 $as_echo "no" >&6; }
13140 fi
13141
13142
13143 FCCACHE_WARN='echo "** Warning: fonts.cache not built" ; echo "** Generate this file manually on host system using fc-cache"'
13144 if test x"$FCCACHE" = x || test x"$cross_compiling" != x"no" ; then
13145 RUN_FCCACHE="${FCCACHE_WARN}"
13146 else
13147 RUN_FCCACHE='@(if test -z "$(DESTDIR)"; then echo $(FCCACHE) $(fontdir); $(FCCACHE) $(fontdir); else'
13148 RUN_FCCACHE="${RUN_FCCACHE} ${FCCACHE_WARN} ; fi)"
13149 fi
13150
13151
13152
13153 if test x"$cross_compiling" != x"no" ; then
13154 # Extract the first word of "mkfontdir", so it can be a program name with args.
13155 set dummy mkfontdir; ac_word=$2
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157 $as_echo_n "checking for $ac_word... " >&6; }
13158 if ${ac_cv_path_MKFONTDIR+:} false; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 case $MKFONTDIR in
13162 [\\/]* | ?:[\\/]*)
13163 ac_cv_path_MKFONTDIR="$MKFONTDIR" # Let the user override the test with a path.
13164 ;;
13165 *)
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13168 do
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13173 ac_cv_path_MKFONTDIR="$as_dir/$ac_word$ac_exec_ext"
13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13176 fi
13177 done
13178 done
13179 IFS=$as_save_IFS
13180
13181 test -z "$ac_cv_path_MKFONTDIR" && ac_cv_path_MKFONTDIR=""""
13182 ;;
13183 esac
13184 fi
13185 MKFONTDIR=$ac_cv_path_MKFONTDIR
13186 if test -n "$MKFONTDIR"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKFONTDIR" >&5
13188 $as_echo "$MKFONTDIR" >&6; }
13189 else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13192 fi
13193
13194
13195 MKFONTDIR_WARN='echo "** Warning: mkfontdir not run" ; echo "** Run mkfontdir manually on host system"'
13196
13197 if test x"$MKFONTDIR" = x; then
13198 MKFONTDIR="${MKFONTDIR_WARN} ; echo '** mkfontdir'"
13199 fi
13200 else
13201
13202 # Extract the first word of "mkfontdir", so it can be a program name with args.
13203 set dummy mkfontdir; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if ${ac_cv_path_MKFONTDIR+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 case $MKFONTDIR in
13210 [\\/]* | ?:[\\/]*)
13211 ac_cv_path_MKFONTDIR="$MKFONTDIR" # Let the user override the test with a path.
13212 ;;
13213 *)
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13216 do
13217 IFS=$as_save_IFS
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221 ac_cv_path_MKFONTDIR="$as_dir/$ac_word$ac_exec_ext"
13222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 break 2
13224 fi
13225 done
13226 done
13227 IFS=$as_save_IFS
13228
13229 ;;
13230 esac
13231 fi
13232 MKFONTDIR=$ac_cv_path_MKFONTDIR
13233 if test -n "$MKFONTDIR"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKFONTDIR" >&5
13235 $as_echo "$MKFONTDIR" >&6; }
13236 else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13239 fi
13240
13241
13242 if test x"$MKFONTDIR" = x; then
13243 as_fn_error $? "mkfontdir is required to build $PACKAGE_NAME." "$LINENO" 5
13244 fi
13245
13246 fi
13247
13248
13249
13250
13251
13252
13253
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
13255 $as_echo_n "checking for root directory for font files... " >&6; }
13256
13257 # Check whether --with-fontrootdir was given.
13258 if test "${with_fontrootdir+set}" = set; then :
13259 withval=$with_fontrootdir; FONTROOTDIR="$withval"
13260 fi
13261
13262 # if --with-fontrootdir not specified...
13263 if test "x${FONTROOTDIR}" = "x"; then
13264 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
13265 fi
13266 # ...and if pkg-config didn't find fontdir in fontutil.pc...
13267 if test "x${FONTROOTDIR}" = "x"; then
13268 FONTROOTDIR="${datadir}/fonts/X11"
13269 fi
13270
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
13272 $as_echo "${FONTROOTDIR}" >&6; }
13273
13274
13275
13276
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
13278 $as_echo_n "checking for directory for misc files... " >&6; }
13279
13280 # Check whether --with-fontdir was given.
13281 if test "${with_fontdir+set}" = set; then :
13282 withval=$with_fontdir; FONTDIR="${withval}"
13283 else
13284 FONTDIR='${FONTROOTDIR}/misc'
13285 fi
13286
13287
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTDIR}" >&5
13289 $as_echo "${FONTDIR}" >&6; }
13290
13291
13292 ac_config_files="$ac_config_files Makefile src/Makefile fonts/Makefile examples/Makefile"
13293
13294 cat >confcache <<\_ACEOF
13295 # This file is a shell script that caches the results of configure
13296 # tests run on this system so they can be shared between configure
13297 # scripts and configure runs, see configure's option --config-cache.
13298 # It is not useful on other systems. If it contains results you don't
13299 # want to keep, you may remove or edit it.
13300 #
13301 # config.status only pays attention to the cache file if you give it
13302 # the --recheck option to rerun configure.
13303 #
13304 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13305 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13306 # following values.
13307
13308 _ACEOF
13309
13310 # The following way of writing the cache mishandles newlines in values,
13311 # but we know of no workaround that is simple, portable, and efficient.
13312 # So, we kill variables containing newlines.
13313 # Ultrix sh set writes to stderr and can't be redirected directly,
13314 # and sets the high bit in the cache file unless we assign to the vars.
13315 (
13316 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13317 eval ac_val=\$$ac_var
13318 case $ac_val in #(
13319 *${as_nl}*)
13320 case $ac_var in #(
13321 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13322 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13323 esac
13324 case $ac_var in #(
13325 _ | IFS | as_nl) ;; #(
13326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13327 *) { eval $ac_var=; unset $ac_var;} ;;
13328 esac ;;
13329 esac
13330 done
13331
13332 (set) 2>&1 |
13333 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13334 *${as_nl}ac_space=\ *)
13335 # `set' does not quote correctly, so add quotes: double-quote
13336 # substitution turns \\\\ into \\, and sed turns \\ into \.
13337 sed -n \
13338 "s/'/'\\\\''/g;
13339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13340 ;; #(
13341 *)
13342 # `set' quotes correctly as required by POSIX, so do not add quotes.
13343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13344 ;;
13345 esac |
13346 sort
13347 ) |
13348 sed '
13349 /^ac_cv_env_/b end
13350 t clear
13351 :clear
13352 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13353 t end
13354 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13355 :end' >>confcache
13356 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13357 if test -w "$cache_file"; then
13358 if test "x$cache_file" != "x/dev/null"; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13360 $as_echo "$as_me: updating cache $cache_file" >&6;}
13361 if test ! -f "$cache_file" || test -h "$cache_file"; then
13362 cat confcache >"$cache_file"
13363 else
13364 case $cache_file in #(
13365 */* | ?:*)
13366 mv -f confcache "$cache_file"$$ &&
13367 mv -f "$cache_file"$$ "$cache_file" ;; #(
13368 *)
13369 mv -f confcache "$cache_file" ;;
13370 esac
13371 fi
13372 fi
13373 else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13375 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13376 fi
13377 fi
13378 rm -f confcache
13379
13380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13381 # Let make expand exec_prefix.
13382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13383
13384 # Transform confdefs.h into DEFS.
13385 # Protect against shell expansion while executing Makefile rules.
13386 # Protect against Makefile macro expansion.
13387 #
13388 # If the first sed substitution is executed (which looks for macros that
13389 # take arguments), then branch to the quote section. Otherwise,
13390 # look for a macro that doesn't take arguments.
13391 ac_script='
13392 :mline
13393 /\\$/{
13394 N
13395 s,\\\n,,
13396 b mline
13397 }
13398 t clear
13399 :clear
13400 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13401 t quote
13402 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13403 t quote
13404 b any
13405 :quote
13406 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13407 s/\[/\\&/g
13408 s/\]/\\&/g
13409 s/\$/$$/g
13410 H
13411 :any
13412 ${
13413 g
13414 s/^\n//
13415 s/\n/ /g
13416 p
13417 }
13418 '
13419 DEFS=`sed -n "$ac_script" confdefs.h`
13420
13421
13422 ac_libobjs=
13423 ac_ltlibobjs=
13424 U=
13425 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13426 # 1. Remove the extension, and $U if already installed.
13427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13428 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13430 # will be set to the directory where LIBOBJS objects are built.
13431 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13432 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13433 done
13434 LIBOBJS=$ac_libobjs
13435
13436 LTLIBOBJS=$ac_ltlibobjs
13437
13438
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13440 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13441 if test -n "$am_sleep_pid"; then
13442 # Hide warnings about reused PIDs.
13443 wait $am_sleep_pid 2>/dev/null
13444 fi
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13446 $as_echo "done" >&6; }
13447 if test -n "$EXEEXT"; then
13448 am__EXEEXT_TRUE=
13449 am__EXEEXT_FALSE='#'
13450 else
13451 am__EXEEXT_TRUE='#'
13452 am__EXEEXT_FALSE=
13453 fi
13454
13455 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13456 as_fn_error $? "conditional \"AMDEP\" was never defined.
13457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13458 fi
13459 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13460 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13462 fi
13463 if test -z "${COND_FONT_TRUE}" && test -z "${COND_FONT_FALSE}"; then
13464 as_fn_error $? "conditional \"COND_FONT\" was never defined.
13465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13466 fi
13467 if test -z "${COND_EXAMPLES_TRUE}" && test -z "${COND_EXAMPLES_FALSE}"; then
13468 as_fn_error $? "conditional \"COND_EXAMPLES\" was never defined.
13469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13470 fi
13471 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13472 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13474 fi
13475
13476 : "${CONFIG_STATUS=./config.status}"
13477 ac_write_fail=0
13478 ac_clean_files_save=$ac_clean_files
13479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13481 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13482 as_write_fail=0
13483 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13484 #! $SHELL
13485 # Generated by $as_me.
13486 # Run this file to recreate the current configuration.
13487 # Compiler output produced by configure, useful for debugging
13488 # configure, is in config.log if it exists.
13489
13490 debug=false
13491 ac_cs_recheck=false
13492 ac_cs_silent=false
13493
13494 SHELL=\${CONFIG_SHELL-$SHELL}
13495 export SHELL
13496 _ASEOF
13497 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13498 ## -------------------- ##
13499 ## M4sh Initialization. ##
13500 ## -------------------- ##
13501
13502 # Be more Bourne compatible
13503 DUALCASE=1; export DUALCASE # for MKS sh
13504 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13505 emulate sh
13506 NULLCMD=:
13507 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13508 # is contrary to our usage. Disable this feature.
13509 alias -g '${1+"$@"}'='"$@"'
13510 setopt NO_GLOB_SUBST
13511 else
13512 case `(set -o) 2>/dev/null` in #(
13513 *posix*) :
13514 set -o posix ;; #(
13515 *) :
13516 ;;
13517 esac
13518 fi
13519
13520
13521 as_nl='
13522 '
13523 export as_nl
13524 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13525 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13528 # Prefer a ksh shell builtin over an external printf program on Solaris,
13529 # but without wasting forks for bash or zsh.
13530 if test -z "$BASH_VERSION$ZSH_VERSION" \
13531 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13532 as_echo='print -r --'
13533 as_echo_n='print -rn --'
13534 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13535 as_echo='printf %s\n'
13536 as_echo_n='printf %s'
13537 else
13538 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13539 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13540 as_echo_n='/usr/ucb/echo -n'
13541 else
13542 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13543 as_echo_n_body='eval
13544 arg=$1;
13545 case $arg in #(
13546 *"$as_nl"*)
13547 expr "X$arg" : "X\\(.*\\)$as_nl";
13548 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13549 esac;
13550 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13551 '
13552 export as_echo_n_body
13553 as_echo_n='sh -c $as_echo_n_body as_echo'
13554 fi
13555 export as_echo_body
13556 as_echo='sh -c $as_echo_body as_echo'
13557 fi
13558
13559 # The user is always right.
13560 if test "${PATH_SEPARATOR+set}" != set; then
13561 PATH_SEPARATOR=:
13562 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13563 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13564 PATH_SEPARATOR=';'
13565 }
13566 fi
13567
13568
13569 # IFS
13570 # We need space, tab and new line, in precisely that order. Quoting is
13571 # there to prevent editors from complaining about space-tab.
13572 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13573 # splitting by setting IFS to empty value.)
13574 IFS=" "" $as_nl"
13575
13576 # Find who we are. Look in the path if we contain no directory separator.
13577 as_myself=
13578 case $0 in #((
13579 *[\\/]* ) as_myself=$0 ;;
13580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13582 do
13583 IFS=$as_save_IFS
13584 test -z "$as_dir" && as_dir=.
13585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13586 done
13587 IFS=$as_save_IFS
13588
13589 ;;
13590 esac
13591 # We did not find ourselves, most probably we were run as `sh COMMAND'
13592 # in which case we are not to be found in the path.
13593 if test "x$as_myself" = x; then
13594 as_myself=$0
13595 fi
13596 if test ! -f "$as_myself"; then
13597 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13598 exit 1
13599 fi
13600
13601 # Unset variables that we do not need and which cause bugs (e.g. in
13602 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13603 # suppresses any "Segmentation fault" message there. '((' could
13604 # trigger a bug in pdksh 5.2.14.
13605 for as_var in BASH_ENV ENV MAIL MAILPATH
13606 do eval test x\${$as_var+set} = xset \
13607 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13608 done
13609 PS1='$ '
13610 PS2='> '
13611 PS4='+ '
13612
13613 # NLS nuisances.
13614 LC_ALL=C
13615 export LC_ALL
13616 LANGUAGE=C
13617 export LANGUAGE
13618
13619 # CDPATH.
13620 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13621
13622
13623 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13624 # ----------------------------------------
13625 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13626 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13627 # script with STATUS, using 1 if that was 0.
13628 as_fn_error ()
13629 {
13630 as_status=$1; test $as_status -eq 0 && as_status=1
13631 if test "$4"; then
13632 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13633 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13634 fi
13635 $as_echo "$as_me: error: $2" >&2
13636 as_fn_exit $as_status
13637 } # as_fn_error
13638
13639
13640 # as_fn_set_status STATUS
13641 # -----------------------
13642 # Set $? to STATUS, without forking.
13643 as_fn_set_status ()
13644 {
13645 return $1
13646 } # as_fn_set_status
13647
13648 # as_fn_exit STATUS
13649 # -----------------
13650 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13651 as_fn_exit ()
13652 {
13653 set +e
13654 as_fn_set_status $1
13655 exit $1
13656 } # as_fn_exit
13657
13658 # as_fn_unset VAR
13659 # ---------------
13660 # Portably unset VAR.
13661 as_fn_unset ()
13662 {
13663 { eval $1=; unset $1;}
13664 }
13665 as_unset=as_fn_unset
13666 # as_fn_append VAR VALUE
13667 # ----------------------
13668 # Append the text in VALUE to the end of the definition contained in VAR. Take
13669 # advantage of any shell optimizations that allow amortized linear growth over
13670 # repeated appends, instead of the typical quadratic growth present in naive
13671 # implementations.
13672 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13673 eval 'as_fn_append ()
13674 {
13675 eval $1+=\$2
13676 }'
13677 else
13678 as_fn_append ()
13679 {
13680 eval $1=\$$1\$2
13681 }
13682 fi # as_fn_append
13683
13684 # as_fn_arith ARG...
13685 # ------------------
13686 # Perform arithmetic evaluation on the ARGs, and store the result in the
13687 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13688 # must be portable across $(()) and expr.
13689 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13690 eval 'as_fn_arith ()
13691 {
13692 as_val=$(( $* ))
13693 }'
13694 else
13695 as_fn_arith ()
13696 {
13697 as_val=`expr "$@" || test $? -eq 1`
13698 }
13699 fi # as_fn_arith
13700
13701
13702 if expr a : '\(a\)' >/dev/null 2>&1 &&
13703 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13704 as_expr=expr
13705 else
13706 as_expr=false
13707 fi
13708
13709 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13710 as_basename=basename
13711 else
13712 as_basename=false
13713 fi
13714
13715 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13716 as_dirname=dirname
13717 else
13718 as_dirname=false
13719 fi
13720
13721 as_me=`$as_basename -- "$0" ||
13722 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13723 X"$0" : 'X\(//\)$' \| \
13724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13725 $as_echo X/"$0" |
13726 sed '/^.*\/\([^/][^/]*\)\/*$/{
13727 s//\1/
13728 q
13729 }
13730 /^X\/\(\/\/\)$/{
13731 s//\1/
13732 q
13733 }
13734 /^X\/\(\/\).*/{
13735 s//\1/
13736 q
13737 }
13738 s/.*/./; q'`
13739
13740 # Avoid depending upon Character Ranges.
13741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13744 as_cr_digits='0123456789'
13745 as_cr_alnum=$as_cr_Letters$as_cr_digits
13746
13747 ECHO_C= ECHO_N= ECHO_T=
13748 case `echo -n x` in #(((((
13749 -n*)
13750 case `echo 'xy\c'` in
13751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13752 xy) ECHO_C='\c';;
13753 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13754 ECHO_T=' ';;
13755 esac;;
13756 *)
13757 ECHO_N='-n';;
13758 esac
13759
13760 rm -f conf$$ conf$$.exe conf$$.file
13761 if test -d conf$$.dir; then
13762 rm -f conf$$.dir/conf$$.file
13763 else
13764 rm -f conf$$.dir
13765 mkdir conf$$.dir 2>/dev/null
13766 fi
13767 if (echo >conf$$.file) 2>/dev/null; then
13768 if ln -s conf$$.file conf$$ 2>/dev/null; then
13769 as_ln_s='ln -s'
13770 # ... but there are two gotchas:
13771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13773 # In both cases, we have to default to `cp -pR'.
13774 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13775 as_ln_s='cp -pR'
13776 elif ln conf$$.file conf$$ 2>/dev/null; then
13777 as_ln_s=ln
13778 else
13779 as_ln_s='cp -pR'
13780 fi
13781 else
13782 as_ln_s='cp -pR'
13783 fi
13784 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13785 rmdir conf$$.dir 2>/dev/null
13786
13787
13788 # as_fn_mkdir_p
13789 # -------------
13790 # Create "$as_dir" as a directory, including parents if necessary.
13791 as_fn_mkdir_p ()
13792 {
13793
13794 case $as_dir in #(
13795 -*) as_dir=./$as_dir;;
13796 esac
13797 test -d "$as_dir" || eval $as_mkdir_p || {
13798 as_dirs=
13799 while :; do
13800 case $as_dir in #(
13801 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13802 *) as_qdir=$as_dir;;
13803 esac
13804 as_dirs="'$as_qdir' $as_dirs"
13805 as_dir=`$as_dirname -- "$as_dir" ||
13806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13807 X"$as_dir" : 'X\(//\)[^/]' \| \
13808 X"$as_dir" : 'X\(//\)$' \| \
13809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13810 $as_echo X"$as_dir" |
13811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13812 s//\1/
13813 q
13814 }
13815 /^X\(\/\/\)[^/].*/{
13816 s//\1/
13817 q
13818 }
13819 /^X\(\/\/\)$/{
13820 s//\1/
13821 q
13822 }
13823 /^X\(\/\).*/{
13824 s//\1/
13825 q
13826 }
13827 s/.*/./; q'`
13828 test -d "$as_dir" && break
13829 done
13830 test -z "$as_dirs" || eval "mkdir $as_dirs"
13831 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13832
13833
13834 } # as_fn_mkdir_p
13835 if mkdir -p . 2>/dev/null; then
13836 as_mkdir_p='mkdir -p "$as_dir"'
13837 else
13838 test -d ./-p && rmdir ./-p
13839 as_mkdir_p=false
13840 fi
13841
13842
13843 # as_fn_executable_p FILE
13844 # -----------------------
13845 # Test if FILE is an executable regular file.
13846 as_fn_executable_p ()
13847 {
13848 test -f "$1" && test -x "$1"
13849 } # as_fn_executable_p
13850 as_test_x='test -x'
13851 as_executable_p=as_fn_executable_p
13852
13853 # Sed expression to map a string onto a valid CPP name.
13854 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13855
13856 # Sed expression to map a string onto a valid variable name.
13857 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13858
13859
13860 exec 6>&1
13861 ## ----------------------------------- ##
13862 ## Main body of $CONFIG_STATUS script. ##
13863 ## ----------------------------------- ##
13864 _ASEOF
13865 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13866
13867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13868 # Save the log message, to keep $0 and so on meaningful, and to
13869 # report actual input values of CONFIG_FILES etc. instead of their
13870 # values after options handling.
13871 ac_log="
13872 This file was extended by libdockapp $as_me 0.7.3, which was
13873 generated by GNU Autoconf 2.69. Invocation command line was
13874
13875 CONFIG_FILES = $CONFIG_FILES
13876 CONFIG_HEADERS = $CONFIG_HEADERS
13877 CONFIG_LINKS = $CONFIG_LINKS
13878 CONFIG_COMMANDS = $CONFIG_COMMANDS
13879 $ $0 $@
13880
13881 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13882 "
13883
13884 _ACEOF
13885
13886 case $ac_config_files in *"
13887 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13888 esac
13889
13890
13891
13892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13893 # Files that config.status was made for.
13894 config_files="$ac_config_files"
13895 config_commands="$ac_config_commands"
13896
13897 _ACEOF
13898
13899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13900 ac_cs_usage="\
13901 \`$as_me' instantiates files and other configuration actions
13902 from templates according to the current configuration. Unless the files
13903 and actions are specified as TAGs, all are instantiated by default.
13904
13905 Usage: $0 [OPTION]... [TAG]...
13906
13907 -h, --help print this help, then exit
13908 -V, --version print version number and configuration settings, then exit
13909 --config print configuration, then exit
13910 -q, --quiet, --silent
13911 do not print progress messages
13912 -d, --debug don't remove temporary files
13913 --recheck update $as_me by reconfiguring in the same conditions
13914 --file=FILE[:TEMPLATE]
13915 instantiate the configuration file FILE
13916
13917 Configuration files:
13918 $config_files
13919
13920 Configuration commands:
13921 $config_commands
13922
13923 Report bugs to <wmaker-dev@googlegroups.com>."
13924
13925 _ACEOF
13926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13927 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13928 ac_cs_version="\\
13929 libdockapp config.status 0.7.3
13930 configured by $0, generated by GNU Autoconf 2.69,
13931 with options \\"\$ac_cs_config\\"
13932
13933 Copyright (C) 2012 Free Software Foundation, Inc.
13934 This config.status script is free software; the Free Software Foundation
13935 gives unlimited permission to copy, distribute and modify it."
13936
13937 ac_pwd='$ac_pwd'
13938 srcdir='$srcdir'
13939 INSTALL='$INSTALL'
13940 MKDIR_P='$MKDIR_P'
13941 AWK='$AWK'
13942 test -n "\$AWK" || AWK=awk
13943 _ACEOF
13944
13945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13946 # The default lists apply if the user does not specify any file.
13947 ac_need_defaults=:
13948 while test $# != 0
13949 do
13950 case $1 in
13951 --*=?*)
13952 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13953 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13954 ac_shift=:
13955 ;;
13956 --*=)
13957 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13958 ac_optarg=
13959 ac_shift=:
13960 ;;
13961 *)
13962 ac_option=$1
13963 ac_optarg=$2
13964 ac_shift=shift
13965 ;;
13966 esac
13967
13968 case $ac_option in
13969 # Handling of the options.
13970 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13971 ac_cs_recheck=: ;;
13972 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13973 $as_echo "$ac_cs_version"; exit ;;
13974 --config | --confi | --conf | --con | --co | --c )
13975 $as_echo "$ac_cs_config"; exit ;;
13976 --debug | --debu | --deb | --de | --d | -d )
13977 debug=: ;;
13978 --file | --fil | --fi | --f )
13979 $ac_shift
13980 case $ac_optarg in
13981 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13982 '') as_fn_error $? "missing file argument" ;;
13983 esac
13984 as_fn_append CONFIG_FILES " '$ac_optarg'"
13985 ac_need_defaults=false;;
13986 --he | --h | --help | --hel | -h )
13987 $as_echo "$ac_cs_usage"; exit ;;
13988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13989 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13990 ac_cs_silent=: ;;
13991
13992 # This is an error.
13993 -*) as_fn_error $? "unrecognized option: \`$1'
13994 Try \`$0 --help' for more information." ;;
13995
13996 *) as_fn_append ac_config_targets " $1"
13997 ac_need_defaults=false ;;
13998
13999 esac
14000 shift
14001 done
14002
14003 ac_configure_extra_args=
14004
14005 if $ac_cs_silent; then
14006 exec 6>/dev/null
14007 ac_configure_extra_args="$ac_configure_extra_args --silent"
14008 fi
14009
14010 _ACEOF
14011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14012 if \$ac_cs_recheck; then
14013 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14014 shift
14015 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14016 CONFIG_SHELL='$SHELL'
14017 export CONFIG_SHELL
14018 exec "\$@"
14019 fi
14020
14021 _ACEOF
14022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023 exec 5>>config.log
14024 {
14025 echo
14026 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14027 ## Running $as_me. ##
14028 _ASBOX
14029 $as_echo "$ac_log"
14030 } >&5
14031
14032 _ACEOF
14033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14034 #
14035 # INIT-COMMANDS
14036 #
14037 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14038
14039
14040 # The HP-UX ksh and POSIX shell print the target directory to stdout
14041 # if CDPATH is set.
14042 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14043
14044 sed_quote_subst='$sed_quote_subst'
14045 double_quote_subst='$double_quote_subst'
14046 delay_variable_subst='$delay_variable_subst'
14047 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14048 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14049 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14050 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14051 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14052 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14053 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14054 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14055 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14056 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14057 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14058 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14059 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14060 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14061 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14062 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14063 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14064 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14065 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14066 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14067 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14068 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14069 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14070 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14071 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14072 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14073 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14074 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14075 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14076 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14077 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14078 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14079 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14080 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14081 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14082 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14083 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14084 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14085 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14086 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14087 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14088 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14089 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14090 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14091 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14092 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14093 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14094 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14095 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14096 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14097 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14098 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14099 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14100 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14101 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14102 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14103 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14104 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14105 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"`'
14106 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14107 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14108 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14109 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14110 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14111 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14112 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14113 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14114 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14115 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14116 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14117 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14118 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14119 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14120 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14121 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14122 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14123 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14124 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14125 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14126 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14127 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14128 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14129 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14130 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14131 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14132 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14133 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14134 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14135 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14136 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14137 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14138 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14139 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14140 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14141 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14142 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14143 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14144 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14145 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14146 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14147 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14148 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14149 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14150 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14151 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14152 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14153 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14154 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14155 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14156 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14157 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14158 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14159 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14160 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14161 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14162 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14163 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14164 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14165 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14166 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14167 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14168 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14169 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14170 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14171 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14172 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14173 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14174 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14175 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14176 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14177 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14178 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14179 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14180 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14181 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14182
14183 LTCC='$LTCC'
14184 LTCFLAGS='$LTCFLAGS'
14185 compiler='$compiler_DEFAULT'
14186
14187 # A function that is used when there is no print builtin or printf.
14188 func_fallback_echo ()
14189 {
14190 eval 'cat <<_LTECHO_EOF
14191 \$1
14192 _LTECHO_EOF'
14193 }
14194
14195 # Quote evaled strings.
14196 for var in SHELL \
14197 ECHO \
14198 PATH_SEPARATOR \
14199 SED \
14200 GREP \
14201 EGREP \
14202 FGREP \
14203 LD \
14204 NM \
14205 LN_S \
14206 lt_SP2NL \
14207 lt_NL2SP \
14208 reload_flag \
14209 OBJDUMP \
14210 deplibs_check_method \
14211 file_magic_cmd \
14212 file_magic_glob \
14213 want_nocaseglob \
14214 DLLTOOL \
14215 sharedlib_from_linklib_cmd \
14216 AR \
14217 AR_FLAGS \
14218 archiver_list_spec \
14219 STRIP \
14220 RANLIB \
14221 CC \
14222 CFLAGS \
14223 compiler \
14224 lt_cv_sys_global_symbol_pipe \
14225 lt_cv_sys_global_symbol_to_cdecl \
14226 lt_cv_sys_global_symbol_to_import \
14227 lt_cv_sys_global_symbol_to_c_name_address \
14228 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14229 lt_cv_nm_interface \
14230 nm_file_list_spec \
14231 lt_cv_truncate_bin \
14232 lt_prog_compiler_no_builtin_flag \
14233 lt_prog_compiler_pic \
14234 lt_prog_compiler_wl \
14235 lt_prog_compiler_static \
14236 lt_cv_prog_compiler_c_o \
14237 need_locks \
14238 MANIFEST_TOOL \
14239 DSYMUTIL \
14240 NMEDIT \
14241 LIPO \
14242 OTOOL \
14243 OTOOL64 \
14244 shrext_cmds \
14245 export_dynamic_flag_spec \
14246 whole_archive_flag_spec \
14247 compiler_needs_object \
14248 with_gnu_ld \
14249 allow_undefined_flag \
14250 no_undefined_flag \
14251 hardcode_libdir_flag_spec \
14252 hardcode_libdir_separator \
14253 exclude_expsyms \
14254 include_expsyms \
14255 file_list_spec \
14256 variables_saved_for_relink \
14257 libname_spec \
14258 library_names_spec \
14259 soname_spec \
14260 install_override_mode \
14261 finish_eval \
14262 old_striplib \
14263 striplib; do
14264 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14265 *[\\\\\\\`\\"\\\$]*)
14266 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14267 ;;
14268 *)
14269 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14270 ;;
14271 esac
14272 done
14273
14274 # Double-quote double-evaled strings.
14275 for var in reload_cmds \
14276 old_postinstall_cmds \
14277 old_postuninstall_cmds \
14278 old_archive_cmds \
14279 extract_expsyms_cmds \
14280 old_archive_from_new_cmds \
14281 old_archive_from_expsyms_cmds \
14282 archive_cmds \
14283 archive_expsym_cmds \
14284 module_cmds \
14285 module_expsym_cmds \
14286 export_symbols_cmds \
14287 prelink_cmds \
14288 postlink_cmds \
14289 postinstall_cmds \
14290 postuninstall_cmds \
14291 finish_cmds \
14292 sys_lib_search_path_spec \
14293 configure_time_dlsearch_path \
14294 configure_time_lt_sys_library_path; do
14295 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14296 *[\\\\\\\`\\"\\\$]*)
14297 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14298 ;;
14299 *)
14300 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14301 ;;
14302 esac
14303 done
14304
14305 ac_aux_dir='$ac_aux_dir'
14306
14307 # See if we are running on zsh, and set the options that allow our
14308 # commands through without removal of \ escapes INIT.
14309 if test -n "\${ZSH_VERSION+set}"; then
14310 setopt NO_GLOB_SUBST
14311 fi
14312
14313
14314 PACKAGE='$PACKAGE'
14315 VERSION='$VERSION'
14316 RM='$RM'
14317 ofile='$ofile'
14318
14319
14320
14321
14322 _ACEOF
14323
14324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14325
14326 # Handling of arguments.
14327 for ac_config_target in $ac_config_targets
14328 do
14329 case $ac_config_target in
14330 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14331 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14332 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14333 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14334 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
14335 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14336
14337 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14338 esac
14339 done
14340
14341
14342 # If the user did not use the arguments to specify the items to instantiate,
14343 # then the envvar interface is used. Set only those that are not.
14344 # We use the long form for the default assignment because of an extremely
14345 # bizarre bug on SunOS 4.1.3.
14346 if $ac_need_defaults; then
14347 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14348 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14349 fi
14350
14351 # Have a temporary directory for convenience. Make it in the build tree
14352 # simply because there is no reason against having it here, and in addition,
14353 # creating and moving files from /tmp can sometimes cause problems.
14354 # Hook for its removal unless debugging.
14355 # Note that there is a small window in which the directory will not be cleaned:
14356 # after its creation but before its name has been assigned to `$tmp'.
14357 $debug ||
14358 {
14359 tmp= ac_tmp=
14360 trap 'exit_status=$?
14361 : "${ac_tmp:=$tmp}"
14362 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14363 ' 0
14364 trap 'as_fn_exit 1' 1 2 13 15
14365 }
14366 # Create a (secure) tmp directory for tmp files.
14367
14368 {
14369 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14370 test -d "$tmp"
14371 } ||
14372 {
14373 tmp=./conf$$-$RANDOM
14374 (umask 077 && mkdir "$tmp")
14375 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14376 ac_tmp=$tmp
14377
14378 # Set up the scripts for CONFIG_FILES section.
14379 # No need to generate them if there are no CONFIG_FILES.
14380 # This happens for instance with `./config.status config.h'.
14381 if test -n "$CONFIG_FILES"; then
14382
14383
14384 ac_cr=`echo X | tr X '\015'`
14385 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14386 # But we know of no other shell where ac_cr would be empty at this
14387 # point, so we can use a bashism as a fallback.
14388 if test "x$ac_cr" = x; then
14389 eval ac_cr=\$\'\\r\'
14390 fi
14391 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14392 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14393 ac_cs_awk_cr='\\r'
14394 else
14395 ac_cs_awk_cr=$ac_cr
14396 fi
14397
14398 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14399 _ACEOF
14400
14401
14402 {
14403 echo "cat >conf$$subs.awk <<_ACEOF" &&
14404 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14405 echo "_ACEOF"
14406 } >conf$$subs.sh ||
14407 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14408 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14409 ac_delim='%!_!# '
14410 for ac_last_try in false false false false false :; do
14411 . ./conf$$subs.sh ||
14412 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14413
14414 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14415 if test $ac_delim_n = $ac_delim_num; then
14416 break
14417 elif $ac_last_try; then
14418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14419 else
14420 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14421 fi
14422 done
14423 rm -f conf$$subs.sh
14424
14425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14426 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14427 _ACEOF
14428 sed -n '
14429 h
14430 s/^/S["/; s/!.*/"]=/
14431 p
14432 g
14433 s/^[^!]*!//
14434 :repl
14435 t repl
14436 s/'"$ac_delim"'$//
14437 t delim
14438 :nl
14439 h
14440 s/\(.\{148\}\)..*/\1/
14441 t more1
14442 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14443 p
14444 n
14445 b repl
14446 :more1
14447 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14448 p
14449 g
14450 s/.\{148\}//
14451 t nl
14452 :delim
14453 h
14454 s/\(.\{148\}\)..*/\1/
14455 t more2
14456 s/["\\]/\\&/g; s/^/"/; s/$/"/
14457 p
14458 b
14459 :more2
14460 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14461 p
14462 g
14463 s/.\{148\}//
14464 t delim
14465 ' <conf$$subs.awk | sed '
14466 /^[^""]/{
14467 N
14468 s/\n//
14469 }
14470 ' >>$CONFIG_STATUS || ac_write_fail=1
14471 rm -f conf$$subs.awk
14472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14473 _ACAWK
14474 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14475 for (key in S) S_is_set[key] = 1
14476 FS = ""
14477
14478 }
14479 {
14480 line = $ 0
14481 nfields = split(line, field, "@")
14482 substed = 0
14483 len = length(field[1])
14484 for (i = 2; i < nfields; i++) {
14485 key = field[i]
14486 keylen = length(key)
14487 if (S_is_set[key]) {
14488 value = S[key]
14489 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14490 len += length(value) + length(field[++i])
14491 substed = 1
14492 } else
14493 len += 1 + keylen
14494 }
14495
14496 print line
14497 }
14498
14499 _ACAWK
14500 _ACEOF
14501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14502 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14503 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14504 else
14505 cat
14506 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14507 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14508 _ACEOF
14509
14510 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14511 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14512 # trailing colons and then remove the whole line if VPATH becomes empty
14513 # (actually we leave an empty line to preserve line numbers).
14514 if test "x$srcdir" = x.; then
14515 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14516 h
14517 s///
14518 s/^/:/
14519 s/[ ]*$/:/
14520 s/:\$(srcdir):/:/g
14521 s/:\${srcdir}:/:/g
14522 s/:@srcdir@:/:/g
14523 s/^:*//
14524 s/:*$//
14525 x
14526 s/\(=[ ]*\).*/\1/
14527 G
14528 s/\n//
14529 s/^[^=]*=[ ]*$//
14530 }'
14531 fi
14532
14533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14534 fi # test -n "$CONFIG_FILES"
14535
14536
14537 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14538 shift
14539 for ac_tag
14540 do
14541 case $ac_tag in
14542 :[FHLC]) ac_mode=$ac_tag; continue;;
14543 esac
14544 case $ac_mode$ac_tag in
14545 :[FHL]*:*);;
14546 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14547 :[FH]-) ac_tag=-:-;;
14548 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14549 esac
14550 ac_save_IFS=$IFS
14551 IFS=:
14552 set x $ac_tag
14553 IFS=$ac_save_IFS
14554 shift
14555 ac_file=$1
14556 shift
14557
14558 case $ac_mode in
14559 :L) ac_source=$1;;
14560 :[FH])
14561 ac_file_inputs=
14562 for ac_f
14563 do
14564 case $ac_f in
14565 -) ac_f="$ac_tmp/stdin";;
14566 *) # Look for the file first in the build tree, then in the source tree
14567 # (if the path is not absolute). The absolute path cannot be DOS-style,
14568 # because $ac_f cannot contain `:'.
14569 test -f "$ac_f" ||
14570 case $ac_f in
14571 [\\/$]*) false;;
14572 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14573 esac ||
14574 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14575 esac
14576 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14577 as_fn_append ac_file_inputs " '$ac_f'"
14578 done
14579
14580 # Let's still pretend it is `configure' which instantiates (i.e., don't
14581 # use $as_me), people would be surprised to read:
14582 # /* config.h. Generated by config.status. */
14583 configure_input='Generated from '`
14584 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14585 `' by configure.'
14586 if test x"$ac_file" != x-; then
14587 configure_input="$ac_file. $configure_input"
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14589 $as_echo "$as_me: creating $ac_file" >&6;}
14590 fi
14591 # Neutralize special characters interpreted by sed in replacement strings.
14592 case $configure_input in #(
14593 *\&* | *\|* | *\\* )
14594 ac_sed_conf_input=`$as_echo "$configure_input" |
14595 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14596 *) ac_sed_conf_input=$configure_input;;
14597 esac
14598
14599 case $ac_tag in
14600 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14602 esac
14603 ;;
14604 esac
14605
14606 ac_dir=`$as_dirname -- "$ac_file" ||
14607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14608 X"$ac_file" : 'X\(//\)[^/]' \| \
14609 X"$ac_file" : 'X\(//\)$' \| \
14610 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14611 $as_echo X"$ac_file" |
14612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14613 s//\1/
14614 q
14615 }
14616 /^X\(\/\/\)[^/].*/{
14617 s//\1/
14618 q
14619 }
14620 /^X\(\/\/\)$/{
14621 s//\1/
14622 q
14623 }
14624 /^X\(\/\).*/{
14625 s//\1/
14626 q
14627 }
14628 s/.*/./; q'`
14629 as_dir="$ac_dir"; as_fn_mkdir_p
14630 ac_builddir=.
14631
14632 case "$ac_dir" in
14633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14634 *)
14635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14636 # A ".." for each directory in $ac_dir_suffix.
14637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14638 case $ac_top_builddir_sub in
14639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14641 esac ;;
14642 esac
14643 ac_abs_top_builddir=$ac_pwd
14644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14645 # for backward compatibility:
14646 ac_top_builddir=$ac_top_build_prefix
14647
14648 case $srcdir in
14649 .) # We are building in place.
14650 ac_srcdir=.
14651 ac_top_srcdir=$ac_top_builddir_sub
14652 ac_abs_top_srcdir=$ac_pwd ;;
14653 [\\/]* | ?:[\\/]* ) # Absolute name.
14654 ac_srcdir=$srcdir$ac_dir_suffix;
14655 ac_top_srcdir=$srcdir
14656 ac_abs_top_srcdir=$srcdir ;;
14657 *) # Relative name.
14658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14659 ac_top_srcdir=$ac_top_build_prefix$srcdir
14660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14661 esac
14662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14663
14664
14665 case $ac_mode in
14666 :F)
14667 #
14668 # CONFIG_FILE
14669 #
14670
14671 case $INSTALL in
14672 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14673 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14674 esac
14675 ac_MKDIR_P=$MKDIR_P
14676 case $MKDIR_P in
14677 [\\/$]* | ?:[\\/]* ) ;;
14678 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14679 esac
14680 _ACEOF
14681
14682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14683 # If the template does not know about datarootdir, expand it.
14684 # FIXME: This hack should be removed a few years after 2.60.
14685 ac_datarootdir_hack=; ac_datarootdir_seen=
14686 ac_sed_dataroot='
14687 /datarootdir/ {
14688 p
14689 q
14690 }
14691 /@datadir@/p
14692 /@docdir@/p
14693 /@infodir@/p
14694 /@localedir@/p
14695 /@mandir@/p'
14696 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14697 *datarootdir*) ac_datarootdir_seen=yes;;
14698 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14700 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14701 _ACEOF
14702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14703 ac_datarootdir_hack='
14704 s&@datadir@&$datadir&g
14705 s&@docdir@&$docdir&g
14706 s&@infodir@&$infodir&g
14707 s&@localedir@&$localedir&g
14708 s&@mandir@&$mandir&g
14709 s&\\\${datarootdir}&$datarootdir&g' ;;
14710 esac
14711 _ACEOF
14712
14713 # Neutralize VPATH when `$srcdir' = `.'.
14714 # Shell code in configure.ac might set extrasub.
14715 # FIXME: do we really want to maintain this feature?
14716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14717 ac_sed_extra="$ac_vpsub
14718 $extrasub
14719 _ACEOF
14720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14721 :t
14722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14723 s|@configure_input@|$ac_sed_conf_input|;t t
14724 s&@top_builddir@&$ac_top_builddir_sub&;t t
14725 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14726 s&@srcdir@&$ac_srcdir&;t t
14727 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14728 s&@top_srcdir@&$ac_top_srcdir&;t t
14729 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14730 s&@builddir@&$ac_builddir&;t t
14731 s&@abs_builddir@&$ac_abs_builddir&;t t
14732 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14733 s&@INSTALL@&$ac_INSTALL&;t t
14734 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14735 $ac_datarootdir_hack
14736 "
14737 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14738 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14739
14740 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14741 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14742 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14743 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14745 which seems to be undefined. Please make sure it is defined" >&5
14746 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14747 which seems to be undefined. Please make sure it is defined" >&2;}
14748
14749 rm -f "$ac_tmp/stdin"
14750 case $ac_file in
14751 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14752 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14753 esac \
14754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14755 ;;
14756
14757
14758 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14759 $as_echo "$as_me: executing $ac_file commands" >&6;}
14760 ;;
14761 esac
14762
14763
14764 case $ac_file$ac_mode in
14765 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14766 # Older Autoconf quotes --file arguments for eval, but not when files
14767 # are listed without --file. Let's play safe and only enable the eval
14768 # if we detect the quoting.
14769 # TODO: see whether this extra hack can be removed once we start
14770 # requiring Autoconf 2.70 or later.
14771 case $CONFIG_FILES in #(
14772 *\'*) :
14773 eval set x "$CONFIG_FILES" ;; #(
14774 *) :
14775 set x $CONFIG_FILES ;; #(
14776 *) :
14777 ;;
14778 esac
14779 shift
14780 # Used to flag and report bootstrapping failures.
14781 am_rc=0
14782 for am_mf
14783 do
14784 # Strip MF so we end up with the name of the file.
14785 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14786 # Check whether this is an Automake generated Makefile which includes
14787 # dependency-tracking related rules and includes.
14788 # Grep'ing the whole file directly is not great: AIX grep has a line
14789 # limit of 2048, but all sed's we know have understand at least 4000.
14790 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14791 || continue
14792 am_dirpart=`$as_dirname -- "$am_mf" ||
14793 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14794 X"$am_mf" : 'X\(//\)[^/]' \| \
14795 X"$am_mf" : 'X\(//\)$' \| \
14796 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14797 $as_echo X"$am_mf" |
14798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14799 s//\1/
14800 q
14801 }
14802 /^X\(\/\/\)[^/].*/{
14803 s//\1/
14804 q
14805 }
14806 /^X\(\/\/\)$/{
14807 s//\1/
14808 q
14809 }
14810 /^X\(\/\).*/{
14811 s//\1/
14812 q
14813 }
14814 s/.*/./; q'`
14815 am_filepart=`$as_basename -- "$am_mf" ||
14816 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14817 X"$am_mf" : 'X\(//\)$' \| \
14818 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14819 $as_echo X/"$am_mf" |
14820 sed '/^.*\/\([^/][^/]*\)\/*$/{
14821 s//\1/
14822 q
14823 }
14824 /^X\/\(\/\/\)$/{
14825 s//\1/
14826 q
14827 }
14828 /^X\/\(\/\).*/{
14829 s//\1/
14830 q
14831 }
14832 s/.*/./; q'`
14833 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14834 && sed -e '/# am--include-marker/d' "$am_filepart" \
14835 | $MAKE -f - am--depfiles" >&5
14836 (cd "$am_dirpart" \
14837 && sed -e '/# am--include-marker/d' "$am_filepart" \
14838 | $MAKE -f - am--depfiles) >&5 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } || am_rc=$?
14842 done
14843 if test $am_rc -ne 0; then
14844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14846 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14847 for automatic dependency tracking. If GNU make was not used, consider
14848 re-running the configure script with MAKE=\"gmake\" (or whatever is
14849 necessary). You can also try re-running configure with the
14850 '--disable-dependency-tracking' option to at least be able to build
14851 the package (albeit without support for automatic dependency tracking).
14852 See \`config.log' for more details" "$LINENO" 5; }
14853 fi
14854 { am_dirpart=; unset am_dirpart;}
14855 { am_filepart=; unset am_filepart;}
14856 { am_mf=; unset am_mf;}
14857 { am_rc=; unset am_rc;}
14858 rm -f conftest-deps.mk
14859 }
14860 ;;
14861 "libtool":C)
14862
14863 # See if we are running on zsh, and set the options that allow our
14864 # commands through without removal of \ escapes.
14865 if test -n "${ZSH_VERSION+set}"; then
14866 setopt NO_GLOB_SUBST
14867 fi
14868
14869 cfgfile=${ofile}T
14870 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14871 $RM "$cfgfile"
14872
14873 cat <<_LT_EOF >> "$cfgfile"
14874 #! $SHELL
14875 # Generated automatically by $as_me ($PACKAGE) $VERSION
14876 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14877
14878 # Provide generalized library-building support services.
14879 # Written by Gordon Matzigkeit, 1996
14880
14881 # Copyright (C) 2014 Free Software Foundation, Inc.
14882 # This is free software; see the source for copying conditions. There is NO
14883 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14884
14885 # GNU Libtool is free software; you can redistribute it and/or modify
14886 # it under the terms of the GNU General Public License as published by
14887 # the Free Software Foundation; either version 2 of of the License, or
14888 # (at your option) any later version.
14889 #
14890 # As a special exception to the GNU General Public License, if you
14891 # distribute this file as part of a program or library that is built
14892 # using GNU Libtool, you may include this file under the same
14893 # distribution terms that you use for the rest of that program.
14894 #
14895 # GNU Libtool is distributed in the hope that it will be useful, but
14896 # WITHOUT ANY WARRANTY; without even the implied warranty of
14897 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14898 # GNU General Public License for more details.
14899 #
14900 # You should have received a copy of the GNU General Public License
14901 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14902
14903
14904 # The names of the tagged configurations supported by this script.
14905 available_tags=''
14906
14907 # Configured defaults for sys_lib_dlsearch_path munging.
14908 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14909
14910 # ### BEGIN LIBTOOL CONFIG
14911
14912 # Which release of libtool.m4 was used?
14913 macro_version=$macro_version
14914 macro_revision=$macro_revision
14915
14916 # Whether or not to build shared libraries.
14917 build_libtool_libs=$enable_shared
14918
14919 # Whether or not to build static libraries.
14920 build_old_libs=$enable_static
14921
14922 # What type of objects to build.
14923 pic_mode=$pic_mode
14924
14925 # Whether or not to optimize for fast installation.
14926 fast_install=$enable_fast_install
14927
14928 # Shared archive member basename,for filename based shared library versioning on AIX.
14929 shared_archive_member_spec=$shared_archive_member_spec
14930
14931 # Shell to use when invoking shell scripts.
14932 SHELL=$lt_SHELL
14933
14934 # An echo program that protects backslashes.
14935 ECHO=$lt_ECHO
14936
14937 # The PATH separator for the build system.
14938 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14939
14940 # The host system.
14941 host_alias=$host_alias
14942 host=$host
14943 host_os=$host_os
14944
14945 # The build system.
14946 build_alias=$build_alias
14947 build=$build
14948 build_os=$build_os
14949
14950 # A sed program that does not truncate output.
14951 SED=$lt_SED
14952
14953 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14954 Xsed="\$SED -e 1s/^X//"
14955
14956 # A grep program that handles long lines.
14957 GREP=$lt_GREP
14958
14959 # An ERE matcher.
14960 EGREP=$lt_EGREP
14961
14962 # A literal string matcher.
14963 FGREP=$lt_FGREP
14964
14965 # A BSD- or MS-compatible name lister.
14966 NM=$lt_NM
14967
14968 # Whether we need soft or hard links.
14969 LN_S=$lt_LN_S
14970
14971 # What is the maximum length of a command?
14972 max_cmd_len=$max_cmd_len
14973
14974 # Object file suffix (normally "o").
14975 objext=$ac_objext
14976
14977 # Executable file suffix (normally "").
14978 exeext=$exeext
14979
14980 # whether the shell understands "unset".
14981 lt_unset=$lt_unset
14982
14983 # turn spaces into newlines.
14984 SP2NL=$lt_lt_SP2NL
14985
14986 # turn newlines into spaces.
14987 NL2SP=$lt_lt_NL2SP
14988
14989 # convert \$build file names to \$host format.
14990 to_host_file_cmd=$lt_cv_to_host_file_cmd
14991
14992 # convert \$build files to toolchain format.
14993 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14994
14995 # An object symbol dumper.
14996 OBJDUMP=$lt_OBJDUMP
14997
14998 # Method to check whether dependent libraries are shared objects.
14999 deplibs_check_method=$lt_deplibs_check_method
15000
15001 # Command to use when deplibs_check_method = "file_magic".
15002 file_magic_cmd=$lt_file_magic_cmd
15003
15004 # How to find potential files when deplibs_check_method = "file_magic".
15005 file_magic_glob=$lt_file_magic_glob
15006
15007 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15008 want_nocaseglob=$lt_want_nocaseglob
15009
15010 # DLL creation program.
15011 DLLTOOL=$lt_DLLTOOL
15012
15013 # Command to associate shared and link libraries.
15014 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15015
15016 # The archiver.
15017 AR=$lt_AR
15018
15019 # Flags to create an archive.
15020 AR_FLAGS=$lt_AR_FLAGS
15021
15022 # How to feed a file listing to the archiver.
15023 archiver_list_spec=$lt_archiver_list_spec
15024
15025 # A symbol stripping program.
15026 STRIP=$lt_STRIP
15027
15028 # Commands used to install an old-style archive.
15029 RANLIB=$lt_RANLIB
15030 old_postinstall_cmds=$lt_old_postinstall_cmds
15031 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15032
15033 # Whether to use a lock for old archive extraction.
15034 lock_old_archive_extraction=$lock_old_archive_extraction
15035
15036 # A C compiler.
15037 LTCC=$lt_CC
15038
15039 # LTCC compiler flags.
15040 LTCFLAGS=$lt_CFLAGS
15041
15042 # Take the output of nm and produce a listing of raw symbols and C names.
15043 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15044
15045 # Transform the output of nm in a proper C declaration.
15046 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15047
15048 # Transform the output of nm into a list of symbols to manually relocate.
15049 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15050
15051 # Transform the output of nm in a C name address pair.
15052 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15053
15054 # Transform the output of nm in a C name address pair when lib prefix is needed.
15055 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15056
15057 # The name lister interface.
15058 nm_interface=$lt_lt_cv_nm_interface
15059
15060 # Specify filename containing input files for \$NM.
15061 nm_file_list_spec=$lt_nm_file_list_spec
15062
15063 # The root where to search for dependent libraries,and where our libraries should be installed.
15064 lt_sysroot=$lt_sysroot
15065
15066 # Command to truncate a binary pipe.
15067 lt_truncate_bin=$lt_lt_cv_truncate_bin
15068
15069 # The name of the directory that contains temporary libtool files.
15070 objdir=$objdir
15071
15072 # Used to examine libraries when file_magic_cmd begins with "file".
15073 MAGIC_CMD=$MAGIC_CMD
15074
15075 # Must we lock files when doing compilation?
15076 need_locks=$lt_need_locks
15077
15078 # Manifest tool.
15079 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15080
15081 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15082 DSYMUTIL=$lt_DSYMUTIL
15083
15084 # Tool to change global to local symbols on Mac OS X.
15085 NMEDIT=$lt_NMEDIT
15086
15087 # Tool to manipulate fat objects and archives on Mac OS X.
15088 LIPO=$lt_LIPO
15089
15090 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15091 OTOOL=$lt_OTOOL
15092
15093 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15094 OTOOL64=$lt_OTOOL64
15095
15096 # Old archive suffix (normally "a").
15097 libext=$libext
15098
15099 # Shared library suffix (normally ".so").
15100 shrext_cmds=$lt_shrext_cmds
15101
15102 # The commands to extract the exported symbol list from a shared archive.
15103 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15104
15105 # Variables whose values should be saved in libtool wrapper scripts and
15106 # restored at link time.
15107 variables_saved_for_relink=$lt_variables_saved_for_relink
15108
15109 # Do we need the "lib" prefix for modules?
15110 need_lib_prefix=$need_lib_prefix
15111
15112 # Do we need a version for libraries?
15113 need_version=$need_version
15114
15115 # Library versioning type.
15116 version_type=$version_type
15117
15118 # Shared library runtime path variable.
15119 runpath_var=$runpath_var
15120
15121 # Shared library path variable.
15122 shlibpath_var=$shlibpath_var
15123
15124 # Is shlibpath searched before the hard-coded library search path?
15125 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15126
15127 # Format of library name prefix.
15128 libname_spec=$lt_libname_spec
15129
15130 # List of archive names. First name is the real one, the rest are links.
15131 # The last name is the one that the linker finds with -lNAME
15132 library_names_spec=$lt_library_names_spec
15133
15134 # The coded name of the library, if different from the real name.
15135 soname_spec=$lt_soname_spec
15136
15137 # Permission mode override for installation of shared libraries.
15138 install_override_mode=$lt_install_override_mode
15139
15140 # Command to use after installation of a shared archive.
15141 postinstall_cmds=$lt_postinstall_cmds
15142
15143 # Command to use after uninstallation of a shared archive.
15144 postuninstall_cmds=$lt_postuninstall_cmds
15145
15146 # Commands used to finish a libtool library installation in a directory.
15147 finish_cmds=$lt_finish_cmds
15148
15149 # As "finish_cmds", except a single script fragment to be evaled but
15150 # not shown.
15151 finish_eval=$lt_finish_eval
15152
15153 # Whether we should hardcode library paths into libraries.
15154 hardcode_into_libs=$hardcode_into_libs
15155
15156 # Compile-time system search path for libraries.
15157 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15158
15159 # Detected run-time system search path for libraries.
15160 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15161
15162 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15163 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15164
15165 # Whether dlopen is supported.
15166 dlopen_support=$enable_dlopen
15167
15168 # Whether dlopen of programs is supported.
15169 dlopen_self=$enable_dlopen_self
15170
15171 # Whether dlopen of statically linked programs is supported.
15172 dlopen_self_static=$enable_dlopen_self_static
15173
15174 # Commands to strip libraries.
15175 old_striplib=$lt_old_striplib
15176 striplib=$lt_striplib
15177
15178
15179 # The linker used to build libraries.
15180 LD=$lt_LD
15181
15182 # How to create reloadable object files.
15183 reload_flag=$lt_reload_flag
15184 reload_cmds=$lt_reload_cmds
15185
15186 # Commands used to build an old-style archive.
15187 old_archive_cmds=$lt_old_archive_cmds
15188
15189 # A language specific compiler.
15190 CC=$lt_compiler
15191
15192 # Is the compiler the GNU compiler?
15193 with_gcc=$GCC
15194
15195 # Compiler flag to turn off builtin functions.
15196 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15197
15198 # Additional compiler flags for building library objects.
15199 pic_flag=$lt_lt_prog_compiler_pic
15200
15201 # How to pass a linker flag through the compiler.
15202 wl=$lt_lt_prog_compiler_wl
15203
15204 # Compiler flag to prevent dynamic linking.
15205 link_static_flag=$lt_lt_prog_compiler_static
15206
15207 # Does compiler simultaneously support -c and -o options?
15208 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15209
15210 # Whether or not to add -lc for building shared libraries.
15211 build_libtool_need_lc=$archive_cmds_need_lc
15212
15213 # Whether or not to disallow shared libs when runtime libs are static.
15214 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15215
15216 # Compiler flag to allow reflexive dlopens.
15217 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15218
15219 # Compiler flag to generate shared objects directly from archives.
15220 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15221
15222 # Whether the compiler copes with passing no objects directly.
15223 compiler_needs_object=$lt_compiler_needs_object
15224
15225 # Create an old-style archive from a shared archive.
15226 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15227
15228 # Create a temporary old-style archive to link instead of a shared archive.
15229 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15230
15231 # Commands used to build a shared archive.
15232 archive_cmds=$lt_archive_cmds
15233 archive_expsym_cmds=$lt_archive_expsym_cmds
15234
15235 # Commands used to build a loadable module if different from building
15236 # a shared archive.
15237 module_cmds=$lt_module_cmds
15238 module_expsym_cmds=$lt_module_expsym_cmds
15239
15240 # Whether we are building with GNU ld or not.
15241 with_gnu_ld=$lt_with_gnu_ld
15242
15243 # Flag that allows shared libraries with undefined symbols to be built.
15244 allow_undefined_flag=$lt_allow_undefined_flag
15245
15246 # Flag that enforces no undefined symbols.
15247 no_undefined_flag=$lt_no_undefined_flag
15248
15249 # Flag to hardcode \$libdir into a binary during linking.
15250 # This must work even if \$libdir does not exist
15251 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15252
15253 # Whether we need a single "-rpath" flag with a separated argument.
15254 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15255
15256 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15257 # DIR into the resulting binary.
15258 hardcode_direct=$hardcode_direct
15259
15260 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15261 # DIR into the resulting binary and the resulting library dependency is
15262 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15263 # library is relocated.
15264 hardcode_direct_absolute=$hardcode_direct_absolute
15265
15266 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15267 # into the resulting binary.
15268 hardcode_minus_L=$hardcode_minus_L
15269
15270 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15271 # into the resulting binary.
15272 hardcode_shlibpath_var=$hardcode_shlibpath_var
15273
15274 # Set to "yes" if building a shared library automatically hardcodes DIR
15275 # into the library and all subsequent libraries and executables linked
15276 # against it.
15277 hardcode_automatic=$hardcode_automatic
15278
15279 # Set to yes if linker adds runtime paths of dependent libraries
15280 # to runtime path list.
15281 inherit_rpath=$inherit_rpath
15282
15283 # Whether libtool must link a program against all its dependency libraries.
15284 link_all_deplibs=$link_all_deplibs
15285
15286 # Set to "yes" if exported symbols are required.
15287 always_export_symbols=$always_export_symbols
15288
15289 # The commands to list exported symbols.
15290 export_symbols_cmds=$lt_export_symbols_cmds
15291
15292 # Symbols that should not be listed in the preloaded symbols.
15293 exclude_expsyms=$lt_exclude_expsyms
15294
15295 # Symbols that must always be exported.
15296 include_expsyms=$lt_include_expsyms
15297
15298 # Commands necessary for linking programs (against libraries) with templates.
15299 prelink_cmds=$lt_prelink_cmds
15300
15301 # Commands necessary for finishing linking programs.
15302 postlink_cmds=$lt_postlink_cmds
15303
15304 # Specify filename containing input files.
15305 file_list_spec=$lt_file_list_spec
15306
15307 # How to hardcode a shared library path into an executable.
15308 hardcode_action=$hardcode_action
15309
15310 # ### END LIBTOOL CONFIG
15311
15312 _LT_EOF
15313
15314 cat <<'_LT_EOF' >> "$cfgfile"
15315
15316 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15317
15318 # func_munge_path_list VARIABLE PATH
15319 # -----------------------------------
15320 # VARIABLE is name of variable containing _space_ separated list of
15321 # directories to be munged by the contents of PATH, which is string
15322 # having a format:
15323 # "DIR[:DIR]:"
15324 # string "DIR[ DIR]" will be prepended to VARIABLE
15325 # ":DIR[:DIR]"
15326 # string "DIR[ DIR]" will be appended to VARIABLE
15327 # "DIRP[:DIRP]::[DIRA:]DIRA"
15328 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15329 # "DIRA[ DIRA]" will be appended to VARIABLE
15330 # "DIR[:DIR]"
15331 # VARIABLE will be replaced by "DIR[ DIR]"
15332 func_munge_path_list ()
15333 {
15334 case x$2 in
15335 x)
15336 ;;
15337 *:)
15338 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15339 ;;
15340 x:*)
15341 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15342 ;;
15343 *::*)
15344 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15345 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15346 ;;
15347 *)
15348 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15349 ;;
15350 esac
15351 }
15352
15353
15354 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15355 func_cc_basename ()
15356 {
15357 for cc_temp in $*""; do
15358 case $cc_temp in
15359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15361 \-*) ;;
15362 *) break;;
15363 esac
15364 done
15365 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15366 }
15367
15368
15369 # ### END FUNCTIONS SHARED WITH CONFIGURE
15370
15371 _LT_EOF
15372
15373 case $host_os in
15374 aix3*)
15375 cat <<\_LT_EOF >> "$cfgfile"
15376 # AIX sometimes has problems with the GCC collect2 program. For some
15377 # reason, if we set the COLLECT_NAMES environment variable, the problems
15378 # vanish in a puff of smoke.
15379 if test set != "${COLLECT_NAMES+set}"; then
15380 COLLECT_NAMES=
15381 export COLLECT_NAMES
15382 fi
15383 _LT_EOF
15384 ;;
15385 esac
15386
15387
15388 ltmain=$ac_aux_dir/ltmain.sh
15389
15390
15391 # We use sed instead of cat because bash on DJGPP gets confused if
15392 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15393 # text mode, it properly converts lines to CR/LF. This bash problem
15394 # is reportedly fixed, but why not run on old versions too?
15395 sed '$q' "$ltmain" >> "$cfgfile" \
15396 || (rm -f "$cfgfile"; exit 1)
15397
15398 mv -f "$cfgfile" "$ofile" ||
15399 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15400 chmod +x "$ofile"
15401
15402 ;;
15403
15404 esac
15405 done # for ac_tag
15406
15407
15408 as_fn_exit 0
15409 _ACEOF
15410 ac_clean_files=$ac_clean_files_save
15411
15412 test $ac_write_fail = 0 ||
15413 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15414
15415
15416 # configure is writing to config.log, and then calls config.status.
15417 # config.status does its own redirection, appending to config.log.
15418 # Unfortunately, on DOS this fails, as config.log is still kept open
15419 # by configure, so config.status won't be able to write to it; its
15420 # output is simply discarded. So we exec the FD to /dev/null,
15421 # effectively closing config.log, so it can be properly (re)opened and
15422 # appended to by config.status. When coming back to configure, we
15423 # need to make the FD available again.
15424 if test "$no_create" != yes; then
15425 ac_cs_success=:
15426 ac_config_status_args=
15427 test "$silent" = yes &&
15428 ac_config_status_args="$ac_config_status_args --quiet"
15429 exec 5>/dev/null
15430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15431 exec 5>>config.log
15432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15433 # would make configure fail if this is the last instruction.
15434 $ac_cs_success || as_fn_exit 1
15435 fi
15436 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15438 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15439 fi
15440
0 AC_INIT([libdockapp],[0.7.2],[wmaker-dev@lists.windowmaker.org])
0 AC_INIT([libdockapp],[0.7.3],[wmaker-dev@googlegroups.com])
11 AC_CONFIG_SRCDIR([src/dockapp.h])
22 AM_INIT_AUTOMAKE
33
0 Name: dockapp
1 Description: Window Maker dockapp support
2 URL: https://www.dockapps.net/libdockapp
3 Version: 0.7.3
4 Requires.private: x11 xext xpm
5 Libs: -L/usr/local/lib -ldockapp
6 Cflags: -I/usr/local/include
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 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 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 subdir = examples
91 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
92 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
93 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
94 $(ACLOCAL_M4)
95 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
96 mkinstalldirs = $(install_sh) -d
97 CONFIG_CLEAN_FILES =
98 CONFIG_CLEAN_VPATH_FILES =
99 AM_V_P = $(am__v_P_@AM_V@)
100 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
101 am__v_P_0 = false
102 am__v_P_1 = :
103 AM_V_GEN = $(am__v_GEN_@AM_V@)
104 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
105 am__v_GEN_0 = @echo " GEN " $@;
106 am__v_GEN_1 =
107 AM_V_at = $(am__v_at_@AM_V@)
108 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
109 am__v_at_0 = @
110 am__v_at_1 =
111 SOURCES =
112 DIST_SOURCES =
113 am__can_run_installinfo = \
114 case $$AM_UPDATE_INFO_DIR in \
115 n|no|NO) false;; \
116 *) (install-info --version) >/dev/null 2>&1;; \
117 esac
118 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
119 am__vpath_adj = case $$p in \
120 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
121 *) f=$$p;; \
122 esac;
123 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
124 am__install_max = 40
125 am__nobase_strip_setup = \
126 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
127 am__nobase_strip = \
128 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
129 am__nobase_list = $(am__nobase_strip_setup); \
130 for p in $$list; do echo "$$p $$p"; done | \
131 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
132 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
133 if (++n[$$2] == $(am__install_max)) \
134 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
135 END { for (dir in files) print dir, files[dir] }'
136 am__base_list = \
137 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
138 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
139 am__uninstall_files_from_dir = { \
140 test -z "$$files" \
141 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
142 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
143 $(am__cd) "$$dir" && rm -f $$files; }; \
144 }
145 am__installdirs = "$(DESTDIR)$(docdir)"
146 DATA = $(nobase_doc_DATA)
147 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
148 am__DIST_COMMON = $(srcdir)/Makefile.in README
149 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
150 ACLOCAL = @ACLOCAL@
151 AMTAR = @AMTAR@
152 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
153 AR = @AR@
154 AUTOCONF = @AUTOCONF@
155 AUTOHEADER = @AUTOHEADER@
156 AUTOMAKE = @AUTOMAKE@
157 AWK = @AWK@
158 CC = @CC@
159 CCDEPMODE = @CCDEPMODE@
160 CFLAGS = @CFLAGS@
161 CPP = @CPP@
162 CPPFLAGS = @CPPFLAGS@
163 CYGPATH_W = @CYGPATH_W@
164 DEFS = @DEFS@
165 DEPDIR = @DEPDIR@
166 DFLAGS = @DFLAGS@
167 DLLTOOL = @DLLTOOL@
168 DSYMUTIL = @DSYMUTIL@
169 DUMPBIN = @DUMPBIN@
170 ECHO_C = @ECHO_C@
171 ECHO_N = @ECHO_N@
172 ECHO_T = @ECHO_T@
173 EGREP = @EGREP@
174 EXEEXT = @EXEEXT@
175 FCCACHE = @FCCACHE@
176 FGREP = @FGREP@
177 FONTDIR = @FONTDIR@
178 FONTROOTDIR = @FONTROOTDIR@
179 GREP = @GREP@
180 INSTALL = @INSTALL@
181 INSTALL_DATA = @INSTALL_DATA@
182 INSTALL_PROGRAM = @INSTALL_PROGRAM@
183 INSTALL_SCRIPT = @INSTALL_SCRIPT@
184 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
185 LD = @LD@
186 LDFLAGS = @LDFLAGS@
187 LIBOBJS = @LIBOBJS@
188 LIBS = @LIBS@
189 LIBTOOL = @LIBTOOL@
190 LIPO = @LIPO@
191 LN_S = @LN_S@
192 LTLIBOBJS = @LTLIBOBJS@
193 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
194 MAKEINFO = @MAKEINFO@
195 MANIFEST_TOOL = @MANIFEST_TOOL@
196 MKDIR_P = @MKDIR_P@
197 MKFONTDIR = @MKFONTDIR@
198 NM = @NM@
199 NMEDIT = @NMEDIT@
200 OBJDUMP = @OBJDUMP@
201 OBJEXT = @OBJEXT@
202 OTOOL = @OTOOL@
203 OTOOL64 = @OTOOL64@
204 PACKAGE = @PACKAGE@
205 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
206 PACKAGE_NAME = @PACKAGE_NAME@
207 PACKAGE_STRING = @PACKAGE_STRING@
208 PACKAGE_TARNAME = @PACKAGE_TARNAME@
209 PACKAGE_URL = @PACKAGE_URL@
210 PACKAGE_VERSION = @PACKAGE_VERSION@
211 PATH_SEPARATOR = @PATH_SEPARATOR@
212 PKG_CONFIG = @PKG_CONFIG@
213 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
214 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
215 RANLIB = @RANLIB@
216 RUN_FCCACHE = @RUN_FCCACHE@
217 SED = @SED@
218 SET_MAKE = @SET_MAKE@
219 SHELL = @SHELL@
220 STRIP = @STRIP@
221 VERSION = @VERSION@
222 X11_CFLAGS = @X11_CFLAGS@
223 X11_LIBS = @X11_LIBS@
224 Xext_CFLAGS = @Xext_CFLAGS@
225 Xext_LIBS = @Xext_LIBS@
226 abs_builddir = @abs_builddir@
227 abs_srcdir = @abs_srcdir@
228 abs_top_builddir = @abs_top_builddir@
229 abs_top_srcdir = @abs_top_srcdir@
230 ac_ct_AR = @ac_ct_AR@
231 ac_ct_CC = @ac_ct_CC@
232 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
233 am__include = @am__include@
234 am__leading_dot = @am__leading_dot@
235 am__quote = @am__quote@
236 am__tar = @am__tar@
237 am__untar = @am__untar@
238 bindir = @bindir@
239 build = @build@
240 build_alias = @build_alias@
241 build_cpu = @build_cpu@
242 build_os = @build_os@
243 build_vendor = @build_vendor@
244 builddir = @builddir@
245 datadir = @datadir@
246 datarootdir = @datarootdir@
247 docdir = @docdir@
248 dvidir = @dvidir@
249 exec_prefix = @exec_prefix@
250 host = @host@
251 host_alias = @host_alias@
252 host_cpu = @host_cpu@
253 host_os = @host_os@
254 host_vendor = @host_vendor@
255 htmldir = @htmldir@
256 includedir = @includedir@
257 infodir = @infodir@
258 install_sh = @install_sh@
259 libdir = @libdir@
260 libexecdir = @libexecdir@
261 localedir = @localedir@
262 localstatedir = @localstatedir@
263 mandir = @mandir@
264 mkdir_p = @mkdir_p@
265 oldincludedir = @oldincludedir@
266 pdfdir = @pdfdir@
267 prefix = @prefix@
268 program_transform_name = @program_transform_name@
269 psdir = @psdir@
270 runstatedir = @runstatedir@
271 sbindir = @sbindir@
272 sharedstatedir = @sharedstatedir@
273 srcdir = @srcdir@
274 sysconfdir = @sysconfdir@
275 target_alias = @target_alias@
276 top_build_prefix = @top_build_prefix@
277 top_builddir = @top_builddir@
278 top_srcdir = @top_srcdir@
279 xpm_CFLAGS = @xpm_CFLAGS@
280 xpm_LIBS = @xpm_LIBS@
281 nobase_doc_DATA = README \
282 basic/Makefile \
283 basic/README \
284 basic/ball_red.xpm \
285 basic/basic.c \
286 rectangles/Makefile \
287 rectangles/rectangles.c
288
289 EXTRA_DIST = $(nobase_doc_DATA)
290 all: all-am
291
292 .SUFFIXES:
293 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
294 @for dep in $?; do \
295 case '$(am__configure_deps)' in \
296 *$$dep*) \
297 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
298 && { if test -f $@; then exit 0; else break; fi; }; \
299 exit 1;; \
300 esac; \
301 done; \
302 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \
303 $(am__cd) $(top_srcdir) && \
304 $(AUTOMAKE) --gnu examples/Makefile
305 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
306 @case '$?' in \
307 *config.status*) \
308 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
309 *) \
310 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
311 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
312 esac;
313
314 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
315 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
316
317 $(top_srcdir)/configure: $(am__configure_deps)
318 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
319 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
320 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
321 $(am__aclocal_m4_deps):
322
323 mostlyclean-libtool:
324 -rm -f *.lo
325
326 clean-libtool:
327 -rm -rf .libs _libs
328 install-nobase_docDATA: $(nobase_doc_DATA)
329 @$(NORMAL_INSTALL)
330 @list='$(nobase_doc_DATA)'; test -n "$(docdir)" || list=; \
331 if test -n "$$list"; then \
332 echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \
333 $(MKDIR_P) "$(DESTDIR)$(docdir)" || exit 1; \
334 fi; \
335 $(am__nobase_list) | while read dir files; do \
336 xfiles=; for file in $$files; do \
337 if test -f "$$file"; then xfiles="$$xfiles $$file"; \
338 else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
339 test -z "$$xfiles" || { \
340 test "x$$dir" = x. || { \
341 echo " $(MKDIR_P) '$(DESTDIR)$(docdir)/$$dir'"; \
342 $(MKDIR_P) "$(DESTDIR)$(docdir)/$$dir"; }; \
343 echo " $(INSTALL_DATA) $$xfiles '$(DESTDIR)$(docdir)/$$dir'"; \
344 $(INSTALL_DATA) $$xfiles "$(DESTDIR)$(docdir)/$$dir" || exit $$?; }; \
345 done
346
347 uninstall-nobase_docDATA:
348 @$(NORMAL_UNINSTALL)
349 @list='$(nobase_doc_DATA)'; test -n "$(docdir)" || list=; \
350 $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \
351 dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir)
352 tags TAGS:
353
354 ctags CTAGS:
355
356 cscope cscopelist:
357
358
359 distdir: $(BUILT_SOURCES)
360 $(MAKE) $(AM_MAKEFLAGS) distdir-am
361
362 distdir-am: $(DISTFILES)
363 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
364 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
365 list='$(DISTFILES)'; \
366 dist_files=`for file in $$list; do echo $$file; done | \
367 sed -e "s|^$$srcdirstrip/||;t" \
368 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
369 case $$dist_files in \
370 */*) $(MKDIR_P) `echo "$$dist_files" | \
371 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
372 sort -u` ;; \
373 esac; \
374 for file in $$dist_files; do \
375 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
376 if test -d $$d/$$file; then \
377 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
378 if test -d "$(distdir)/$$file"; then \
379 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
380 fi; \
381 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
382 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
383 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
384 fi; \
385 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
386 else \
387 test -f "$(distdir)/$$file" \
388 || cp -p $$d/$$file "$(distdir)/$$file" \
389 || exit 1; \
390 fi; \
391 done
392 check-am: all-am
393 check: check-am
394 all-am: Makefile $(DATA)
395 installdirs:
396 for dir in "$(DESTDIR)$(docdir)"; do \
397 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
398 done
399 install: install-am
400 install-exec: install-exec-am
401 install-data: install-data-am
402 uninstall: uninstall-am
403
404 install-am: all-am
405 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
406
407 installcheck: installcheck-am
408 install-strip:
409 if test -z '$(STRIP)'; then \
410 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
411 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
412 install; \
413 else \
414 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
415 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
416 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
417 fi
418 mostlyclean-generic:
419
420 clean-generic:
421
422 distclean-generic:
423 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
424 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
425
426 maintainer-clean-generic:
427 @echo "This command is intended for maintainers to use"
428 @echo "it deletes files that may require special tools to rebuild."
429 clean: clean-am
430
431 clean-am: clean-generic clean-libtool mostlyclean-am
432
433 distclean: distclean-am
434 -rm -f Makefile
435 distclean-am: clean-am distclean-generic
436
437 dvi: dvi-am
438
439 dvi-am:
440
441 html: html-am
442
443 html-am:
444
445 info: info-am
446
447 info-am:
448
449 install-data-am: install-nobase_docDATA
450
451 install-dvi: install-dvi-am
452
453 install-dvi-am:
454
455 install-exec-am:
456
457 install-html: install-html-am
458
459 install-html-am:
460
461 install-info: install-info-am
462
463 install-info-am:
464
465 install-man:
466
467 install-pdf: install-pdf-am
468
469 install-pdf-am:
470
471 install-ps: install-ps-am
472
473 install-ps-am:
474
475 installcheck-am:
476
477 maintainer-clean: maintainer-clean-am
478 -rm -f Makefile
479 maintainer-clean-am: distclean-am maintainer-clean-generic
480
481 mostlyclean: mostlyclean-am
482
483 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
484
485 pdf: pdf-am
486
487 pdf-am:
488
489 ps: ps-am
490
491 ps-am:
492
493 uninstall-am: uninstall-nobase_docDATA
494
495 .MAKE: install-am install-strip
496
497 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
498 cscopelist-am ctags-am distclean distclean-generic \
499 distclean-libtool distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-nobase_docDATA install-pdf install-pdf-am install-ps \
504 install-ps-am install-strip installcheck installcheck-am \
505 installdirs maintainer-clean maintainer-clean-generic \
506 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
507 ps ps-am tags-am uninstall uninstall-am \
508 uninstall-nobase_docDATA
509
510 .PRECIOUS: Makefile
511
512
513 # Tell versions [3.59,3.63) of GNU make to not export all variables.
514 # Otherwise a system limit (for SysV at least) may be exceeded.
515 .NOEXPORT:
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 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 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 subdir = fonts
91 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
92 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
93 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
94 $(ACLOCAL_M4)
95 DIST_COMMON = $(srcdir)/Makefile.am $(dist_font_DATA) \
96 $(am__DIST_COMMON)
97 mkinstalldirs = $(install_sh) -d
98 CONFIG_CLEAN_FILES =
99 CONFIG_CLEAN_VPATH_FILES =
100 AM_V_P = $(am__v_P_@AM_V@)
101 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
102 am__v_P_0 = false
103 am__v_P_1 = :
104 AM_V_GEN = $(am__v_GEN_@AM_V@)
105 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
106 am__v_GEN_0 = @echo " GEN " $@;
107 am__v_GEN_1 =
108 AM_V_at = $(am__v_at_@AM_V@)
109 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
110 am__v_at_0 = @
111 am__v_at_1 =
112 SOURCES =
113 DIST_SOURCES =
114 am__can_run_installinfo = \
115 case $$AM_UPDATE_INFO_DIR in \
116 n|no|NO) false;; \
117 *) (install-info --version) >/dev/null 2>&1;; \
118 esac
119 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
120 am__vpath_adj = case $$p in \
121 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
122 *) f=$$p;; \
123 esac;
124 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
125 am__install_max = 40
126 am__nobase_strip_setup = \
127 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
128 am__nobase_strip = \
129 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
130 am__nobase_list = $(am__nobase_strip_setup); \
131 for p in $$list; do echo "$$p $$p"; done | \
132 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
133 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
134 if (++n[$$2] == $(am__install_max)) \
135 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
136 END { for (dir in files) print dir, files[dir] }'
137 am__base_list = \
138 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
139 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
140 am__uninstall_files_from_dir = { \
141 test -z "$$files" \
142 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
143 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
144 $(am__cd) "$$dir" && rm -f $$files; }; \
145 }
146 am__installdirs = "$(DESTDIR)$(fontdir)"
147 DATA = $(dist_font_DATA)
148 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
149 am__DIST_COMMON = $(srcdir)/Makefile.in
150 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
151 ACLOCAL = @ACLOCAL@
152 AMTAR = @AMTAR@
153 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
154 AR = @AR@
155 AUTOCONF = @AUTOCONF@
156 AUTOHEADER = @AUTOHEADER@
157 AUTOMAKE = @AUTOMAKE@
158 AWK = @AWK@
159 CC = @CC@
160 CCDEPMODE = @CCDEPMODE@
161 CFLAGS = @CFLAGS@
162 CPP = @CPP@
163 CPPFLAGS = @CPPFLAGS@
164 CYGPATH_W = @CYGPATH_W@
165 DEFS = @DEFS@
166 DEPDIR = @DEPDIR@
167 DFLAGS = @DFLAGS@
168 DLLTOOL = @DLLTOOL@
169 DSYMUTIL = @DSYMUTIL@
170 DUMPBIN = @DUMPBIN@
171 ECHO_C = @ECHO_C@
172 ECHO_N = @ECHO_N@
173 ECHO_T = @ECHO_T@
174 EGREP = @EGREP@
175 EXEEXT = @EXEEXT@
176 FCCACHE = @FCCACHE@
177 FGREP = @FGREP@
178 FONTDIR = @FONTDIR@
179 FONTROOTDIR = @FONTROOTDIR@
180 GREP = @GREP@
181 INSTALL = @INSTALL@
182 INSTALL_DATA = @INSTALL_DATA@
183 INSTALL_PROGRAM = @INSTALL_PROGRAM@
184 INSTALL_SCRIPT = @INSTALL_SCRIPT@
185 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
186 LD = @LD@
187 LDFLAGS = @LDFLAGS@
188 LIBOBJS = @LIBOBJS@
189 LIBS = @LIBS@
190 LIBTOOL = @LIBTOOL@
191 LIPO = @LIPO@
192 LN_S = @LN_S@
193 LTLIBOBJS = @LTLIBOBJS@
194 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
195 MAKEINFO = @MAKEINFO@
196 MANIFEST_TOOL = @MANIFEST_TOOL@
197 MKDIR_P = @MKDIR_P@
198 MKFONTDIR = @MKFONTDIR@
199 NM = @NM@
200 NMEDIT = @NMEDIT@
201 OBJDUMP = @OBJDUMP@
202 OBJEXT = @OBJEXT@
203 OTOOL = @OTOOL@
204 OTOOL64 = @OTOOL64@
205 PACKAGE = @PACKAGE@
206 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
207 PACKAGE_NAME = @PACKAGE_NAME@
208 PACKAGE_STRING = @PACKAGE_STRING@
209 PACKAGE_TARNAME = @PACKAGE_TARNAME@
210 PACKAGE_URL = @PACKAGE_URL@
211 PACKAGE_VERSION = @PACKAGE_VERSION@
212 PATH_SEPARATOR = @PATH_SEPARATOR@
213 PKG_CONFIG = @PKG_CONFIG@
214 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
215 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
216 RANLIB = @RANLIB@
217 RUN_FCCACHE = @RUN_FCCACHE@
218 SED = @SED@
219 SET_MAKE = @SET_MAKE@
220 SHELL = @SHELL@
221 STRIP = @STRIP@
222 VERSION = @VERSION@
223 X11_CFLAGS = @X11_CFLAGS@
224 X11_LIBS = @X11_LIBS@
225 Xext_CFLAGS = @Xext_CFLAGS@
226 Xext_LIBS = @Xext_LIBS@
227 abs_builddir = @abs_builddir@
228 abs_srcdir = @abs_srcdir@
229 abs_top_builddir = @abs_top_builddir@
230 abs_top_srcdir = @abs_top_srcdir@
231 ac_ct_AR = @ac_ct_AR@
232 ac_ct_CC = @ac_ct_CC@
233 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
234 am__include = @am__include@
235 am__leading_dot = @am__leading_dot@
236 am__quote = @am__quote@
237 am__tar = @am__tar@
238 am__untar = @am__untar@
239 bindir = @bindir@
240 build = @build@
241 build_alias = @build_alias@
242 build_cpu = @build_cpu@
243 build_os = @build_os@
244 build_vendor = @build_vendor@
245 builddir = @builddir@
246 datadir = @datadir@
247 datarootdir = @datarootdir@
248 docdir = @docdir@
249 dvidir = @dvidir@
250 exec_prefix = @exec_prefix@
251 host = @host@
252 host_alias = @host_alias@
253 host_cpu = @host_cpu@
254 host_os = @host_os@
255 host_vendor = @host_vendor@
256 htmldir = @htmldir@
257 includedir = @includedir@
258 infodir = @infodir@
259 install_sh = @install_sh@
260 libdir = @libdir@
261 libexecdir = @libexecdir@
262 localedir = @localedir@
263 localstatedir = @localstatedir@
264 mandir = @mandir@
265 mkdir_p = @mkdir_p@
266 oldincludedir = @oldincludedir@
267 pdfdir = @pdfdir@
268 prefix = @prefix@
269 program_transform_name = @program_transform_name@
270 psdir = @psdir@
271 runstatedir = @runstatedir@
272 sbindir = @sbindir@
273 sharedstatedir = @sharedstatedir@
274 srcdir = @srcdir@
275 sysconfdir = @sysconfdir@
276 target_alias = @target_alias@
277 top_build_prefix = @top_build_prefix@
278 top_builddir = @top_builddir@
279 top_srcdir = @top_srcdir@
280 xpm_CFLAGS = @xpm_CFLAGS@
281 xpm_LIBS = @xpm_LIBS@
282 fontdir = @FONTDIR@
283 dist_font_DATA = luxel-ascii-06x09.pcf.gz \
284 seg7-ascii-05x07.pcf.gz
285
286 all: all-am
287
288 .SUFFIXES:
289 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
290 @for dep in $?; do \
291 case '$(am__configure_deps)' in \
292 *$$dep*) \
293 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
294 && { if test -f $@; then exit 0; else break; fi; }; \
295 exit 1;; \
296 esac; \
297 done; \
298 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu fonts/Makefile'; \
299 $(am__cd) $(top_srcdir) && \
300 $(AUTOMAKE) --gnu fonts/Makefile
301 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
302 @case '$?' in \
303 *config.status*) \
304 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
305 *) \
306 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
307 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
308 esac;
309
310 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
311 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
312
313 $(top_srcdir)/configure: $(am__configure_deps)
314 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
315 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
316 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
317 $(am__aclocal_m4_deps):
318
319 mostlyclean-libtool:
320 -rm -f *.lo
321
322 clean-libtool:
323 -rm -rf .libs _libs
324 install-dist_fontDATA: $(dist_font_DATA)
325 @$(NORMAL_INSTALL)
326 @list='$(dist_font_DATA)'; test -n "$(fontdir)" || list=; \
327 if test -n "$$list"; then \
328 echo " $(MKDIR_P) '$(DESTDIR)$(fontdir)'"; \
329 $(MKDIR_P) "$(DESTDIR)$(fontdir)" || exit 1; \
330 fi; \
331 for p in $$list; do \
332 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
333 echo "$$d$$p"; \
334 done | $(am__base_list) | \
335 while read files; do \
336 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(fontdir)'"; \
337 $(INSTALL_DATA) $$files "$(DESTDIR)$(fontdir)" || exit $$?; \
338 done
339
340 uninstall-dist_fontDATA:
341 @$(NORMAL_UNINSTALL)
342 @list='$(dist_font_DATA)'; test -n "$(fontdir)" || list=; \
343 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
344 dir='$(DESTDIR)$(fontdir)'; $(am__uninstall_files_from_dir)
345 tags TAGS:
346
347 ctags CTAGS:
348
349 cscope cscopelist:
350
351
352 distdir: $(BUILT_SOURCES)
353 $(MAKE) $(AM_MAKEFLAGS) distdir-am
354
355 distdir-am: $(DISTFILES)
356 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
357 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
358 list='$(DISTFILES)'; \
359 dist_files=`for file in $$list; do echo $$file; done | \
360 sed -e "s|^$$srcdirstrip/||;t" \
361 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
362 case $$dist_files in \
363 */*) $(MKDIR_P) `echo "$$dist_files" | \
364 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
365 sort -u` ;; \
366 esac; \
367 for file in $$dist_files; do \
368 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
369 if test -d $$d/$$file; then \
370 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
371 if test -d "$(distdir)/$$file"; then \
372 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
373 fi; \
374 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
375 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
376 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
377 fi; \
378 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
379 else \
380 test -f "$(distdir)/$$file" \
381 || cp -p $$d/$$file "$(distdir)/$$file" \
382 || exit 1; \
383 fi; \
384 done
385 check-am: all-am
386 check: check-am
387 all-am: Makefile $(DATA)
388 installdirs:
389 for dir in "$(DESTDIR)$(fontdir)"; do \
390 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
391 done
392 install: install-am
393 install-exec: install-exec-am
394 install-data: install-data-am
395 uninstall: uninstall-am
396
397 install-am: all-am
398 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
399
400 installcheck: installcheck-am
401 install-strip:
402 if test -z '$(STRIP)'; then \
403 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
404 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
405 install; \
406 else \
407 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
408 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
409 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
410 fi
411 mostlyclean-generic:
412
413 clean-generic:
414
415 distclean-generic:
416 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
417 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
418
419 maintainer-clean-generic:
420 @echo "This command is intended for maintainers to use"
421 @echo "it deletes files that may require special tools to rebuild."
422 clean: clean-am
423
424 clean-am: clean-generic clean-libtool mostlyclean-am
425
426 distclean: distclean-am
427 -rm -f Makefile
428 distclean-am: clean-am distclean-generic
429
430 dvi: dvi-am
431
432 dvi-am:
433
434 html: html-am
435
436 html-am:
437
438 info: info-am
439
440 info-am:
441
442 install-data-am: install-dist_fontDATA
443 @$(NORMAL_INSTALL)
444 $(MAKE) $(AM_MAKEFLAGS) install-data-hook
445 install-dvi: install-dvi-am
446
447 install-dvi-am:
448
449 install-exec-am:
450
451 install-html: install-html-am
452
453 install-html-am:
454
455 install-info: install-info-am
456
457 install-info-am:
458
459 install-man:
460
461 install-pdf: install-pdf-am
462
463 install-pdf-am:
464
465 install-ps: install-ps-am
466
467 install-ps-am:
468
469 installcheck-am:
470
471 maintainer-clean: maintainer-clean-am
472 -rm -f Makefile
473 maintainer-clean-am: distclean-am maintainer-clean-generic
474
475 mostlyclean: mostlyclean-am
476
477 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
478
479 pdf: pdf-am
480
481 pdf-am:
482
483 ps: ps-am
484
485 ps-am:
486
487 uninstall-am: uninstall-dist_fontDATA
488
489 .MAKE: install-am install-data-am install-strip
490
491 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
492 cscopelist-am ctags-am distclean distclean-generic \
493 distclean-libtool distdir dvi dvi-am html html-am info info-am \
494 install install-am install-data install-data-am \
495 install-data-hook install-dist_fontDATA install-dvi \
496 install-dvi-am install-exec install-exec-am install-html \
497 install-html-am install-info install-info-am install-man \
498 install-pdf install-pdf-am install-ps install-ps-am \
499 install-strip installcheck installcheck-am installdirs \
500 maintainer-clean maintainer-clean-generic mostlyclean \
501 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
502 tags-am uninstall uninstall-am uninstall-dist_fontDATA
503
504 .PRECIOUS: Makefile
505
506
507 install-data-hook:
508 @rm -f $(DESTDIR)$(fontdir)/font.dir
509 $(MKFONTDIR) $(DESTDIR)$(fontdir)
510 @RUN_FCCACHE@
511
512 # Tell versions [3.59,3.63) of GNU make to not export all variables.
513 # Otherwise a system limit (for SysV at least) may be exceeded.
514 .NOEXPORT:
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2018-03-11.20; # 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 tab=' '
44 nl='
45 '
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
50 doit=${DOITPROG-}
51 doit_exec=${doit:-exec}
52
53 # Put in absolute file names if you don't have them in your path;
54 # or use environment vars.
55
56 chgrpprog=${CHGRPPROG-chgrp}
57 chmodprog=${CHMODPROG-chmod}
58 chownprog=${CHOWNPROG-chown}
59 cmpprog=${CMPPROG-cmp}
60 cpprog=${CPPROG-cp}
61 mkdirprog=${MKDIRPROG-mkdir}
62 mvprog=${MVPROG-mv}
63 rmprog=${RMPROG-rm}
64 stripprog=${STRIPPROG-strip}
65
66 posix_mkdir=
67
68 # Desired mode of installed file.
69 mode=0755
70
71 chgrpcmd=
72 chmodcmd=$chmodprog
73 chowncmd=
74 mvcmd=$mvprog
75 rmcmd="$rmprog -f"
76 stripcmd=
77
78 src=
79 dst=
80 dir_arg=
81 dst_arg=
82
83 copy_on_change=false
84 is_target_a_directory=possibly
85
86 usage="\
87 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
88 or: $0 [OPTION]... SRCFILES... DIRECTORY
89 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
90 or: $0 [OPTION]... -d DIRECTORIES...
91
92 In the 1st form, copy SRCFILE to DSTFILE.
93 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
94 In the 4th, create DIRECTORIES.
95
96 Options:
97 --help display this help and exit.
98 --version display version info and exit.
99
100 -c (ignored)
101 -C install only if different (preserve the last data modification time)
102 -d create directories instead of installing files.
103 -g GROUP $chgrpprog installed files to GROUP.
104 -m MODE $chmodprog installed files to MODE.
105 -o USER $chownprog installed files to USER.
106 -s $stripprog installed files.
107 -t DIRECTORY install into DIRECTORY.
108 -T report an error if DSTFILE is a directory.
109
110 Environment variables override the default commands:
111 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
112 RMPROG STRIPPROG
113 "
114
115 while test $# -ne 0; do
116 case $1 in
117 -c) ;;
118
119 -C) copy_on_change=true;;
120
121 -d) dir_arg=true;;
122
123 -g) chgrpcmd="$chgrpprog $2"
124 shift;;
125
126 --help) echo "$usage"; exit $?;;
127
128 -m) mode=$2
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
135
136 -o) chowncmd="$chownprog $2"
137 shift;;
138
139 -s) stripcmd=$stripprog;;
140
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
151
152 --version) echo "$0 $scriptversion"; exit $?;;
153
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
159
160 *) break;;
161 esac
162 shift
163 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
174
175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176 # When -d is used, all remaining arguments are directories to create.
177 # When -t is used, the destination is already specified.
178 # Otherwise, the last argument is the destination. Remove it from $@.
179 for arg
180 do
181 if test -n "$dst_arg"; then
182 # $@ is not empty: it contains at least $arg.
183 set fnord "$@" "$dst_arg"
184 shift # fnord
185 fi
186 shift # arg
187 dst_arg=$arg
188 # Protect names problematic for 'test' and other utilities.
189 case $dst_arg in
190 -* | [=\(\)!]) dst_arg=./$dst_arg;;
191 esac
192 done
193 fi
194
195 if test $# -eq 0; then
196 if test -z "$dir_arg"; then
197 echo "$0: no input file specified." >&2
198 exit 1
199 fi
200 # It's OK to call 'install-sh -d' without argument.
201 # This can happen when creating conditional directories.
202 exit 0
203 fi
204
205 if test -z "$dir_arg"; then
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
215 do_exit='(exit $ret); exit $ret'
216 trap "ret=129; $do_exit" 1
217 trap "ret=130; $do_exit" 2
218 trap "ret=141; $do_exit" 13
219 trap "ret=143; $do_exit" 15
220
221 # Set umask so as not to create temps with too-generous modes.
222 # However, 'strip' requires both read and write access to temps.
223 case $mode in
224 # Optimize common cases.
225 *644) cp_umask=133;;
226 *755) cp_umask=22;;
227
228 *[0-7])
229 if test -z "$stripcmd"; then
230 u_plus_rw=
231 else
232 u_plus_rw='% 200'
233 fi
234 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
235 *)
236 if test -z "$stripcmd"; then
237 u_plus_rw=
238 else
239 u_plus_rw=,u+rw
240 fi
241 cp_umask=$mode$u_plus_rw;;
242 esac
243 fi
244
245 for src
246 do
247 # Protect names problematic for 'test' and other utilities.
248 case $src in
249 -* | [=\(\)!]) src=./$src;;
250 esac
251
252 if test -n "$dir_arg"; then
253 dst=$src
254 dstdir=$dst
255 test -d "$dstdir"
256 dstdir_status=$?
257 else
258
259 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
260 # might cause directories to be created, which would be especially bad
261 # if $src (and thus $dsttmp) contains '*'.
262 if test ! -f "$src" && test ! -d "$src"; then
263 echo "$0: $src does not exist." >&2
264 exit 1
265 fi
266
267 if test -z "$dst_arg"; then
268 echo "$0: no destination specified." >&2
269 exit 1
270 fi
271 dst=$dst_arg
272
273 # If destination is a directory, append the input filename.
274 if test -d "$dst"; then
275 if test "$is_target_a_directory" = never; then
276 echo "$0: $dst_arg: Is a directory" >&2
277 exit 1
278 fi
279 dstdir=$dst
280 dstbase=`basename "$src"`
281 case $dst in
282 */) dst=$dst$dstbase;;
283 *) dst=$dst/$dstbase;;
284 esac
285 dstdir_status=0
286 else
287 dstdir=`dirname "$dst"`
288 test -d "$dstdir"
289 dstdir_status=$?
290 fi
291 fi
292
293 case $dstdir in
294 */) dstdirslash=$dstdir;;
295 *) dstdirslash=$dstdir/;;
296 esac
297
298 obsolete_mkdir_used=false
299
300 if test $dstdir_status != 0; then
301 case $posix_mkdir in
302 '')
303 # Create intermediate dirs using mode 755 as modified by the umask.
304 # This is like FreeBSD 'install' as of 1997-10-28.
305 umask=`umask`
306 case $stripcmd.$umask in
307 # Optimize common cases.
308 *[2367][2367]) mkdir_umask=$umask;;
309 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
310
311 *[0-7])
312 mkdir_umask=`expr $umask + 22 \
313 - $umask % 100 % 40 + $umask % 20 \
314 - $umask % 10 % 4 + $umask % 2
315 `;;
316 *) mkdir_umask=$umask,go-w;;
317 esac
318
319 # With -d, create the new directory with the user-specified mode.
320 # Otherwise, rely on $mkdir_umask.
321 if test -n "$dir_arg"; then
322 mkdir_mode=-m$mode
323 else
324 mkdir_mode=
325 fi
326
327 posix_mkdir=false
328 case $umask in
329 *[123567][0-7][0-7])
330 # POSIX mkdir -p sets u+wx bits regardless of umask, which
331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
332 ;;
333 *)
334 # Note that $RANDOM variable is not portable (e.g. dash); Use it
335 # here however when possible just to lower collision chance.
336 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
337
338 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
339
340 # Because "mkdir -p" follows existing symlinks and we likely work
341 # directly in world-writeable /tmp, make sure that the '$tmpdir'
342 # directory is successfully created first before we actually test
343 # 'mkdir -p' feature.
344 if (umask $mkdir_umask &&
345 $mkdirprog $mkdir_mode "$tmpdir" &&
346 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
347 then
348 if test -z "$dir_arg" || {
349 # Check for POSIX incompatibilities with -m.
350 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
351 # other-writable bit of parent directory when it shouldn't.
352 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
353 test_tmpdir="$tmpdir/a"
354 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
355 case $ls_ld_tmpdir in
356 d????-?r-*) different_mode=700;;
357 d????-?--*) different_mode=755;;
358 *) false;;
359 esac &&
360 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
361 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
362 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
363 }
364 }
365 then posix_mkdir=:
366 fi
367 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
368 else
369 # Remove any dirs left behind by ancient mkdir implementations.
370 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
371 fi
372 trap '' 0;;
373 esac;;
374 esac
375
376 if
377 $posix_mkdir && (
378 umask $mkdir_umask &&
379 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
380 )
381 then :
382 else
383
384 # The umask is ridiculous, or mkdir does not conform to POSIX,
385 # or it failed possibly due to a race condition. Create the
386 # directory the slow way, step by step, checking for races as we go.
387
388 case $dstdir in
389 /*) prefix='/';;
390 [-=\(\)!]*) prefix='./';;
391 *) prefix='';;
392 esac
393
394 oIFS=$IFS
395 IFS=/
396 set -f
397 set fnord $dstdir
398 shift
399 set +f
400 IFS=$oIFS
401
402 prefixes=
403
404 for d
405 do
406 test X"$d" = X && continue
407
408 prefix=$prefix$d
409 if test -d "$prefix"; then
410 prefixes=
411 else
412 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
414 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415 # Don't fail if two instances are running concurrently.
416 test -d "$prefix" || exit 1
417 else
418 case $prefix in
419 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
420 *) qprefix=$prefix;;
421 esac
422 prefixes="$prefixes '$qprefix'"
423 fi
424 fi
425 prefix=$prefix/
426 done
427
428 if test -n "$prefixes"; then
429 # Don't fail if two instances are running concurrently.
430 (umask $mkdir_umask &&
431 eval "\$doit_exec \$mkdirprog $prefixes") ||
432 test -d "$dstdir" || exit 1
433 obsolete_mkdir_used=true
434 fi
435 fi
436 fi
437
438 if test -n "$dir_arg"; then
439 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
440 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
441 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
442 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
443 else
444
445 # Make a couple of temp file names in the proper directory.
446 dsttmp=${dstdirslash}_inst.$$_
447 rmtmp=${dstdirslash}_rm.$$_
448
449 # Trap to clean up those temp files at exit.
450 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
451
452 # Copy the file name to the temp name.
453 (umask $cp_umask &&
454 { test -z "$stripcmd" || {
455 # Create $dsttmp read-write so that cp doesn't create it read-only,
456 # which would cause strip to fail.
457 if test -z "$doit"; then
458 : >"$dsttmp" # No need to fork-exec 'touch'.
459 else
460 $doit touch "$dsttmp"
461 fi
462 }
463 } &&
464 $doit_exec $cpprog "$src" "$dsttmp") &&
465
466 # and set any options; do chmod last to preserve setuid bits.
467 #
468 # If any of these fail, we abort the whole thing. If we want to
469 # ignore errors from any of these, just make sure not to ignore
470 # errors from the above "$doit $cpprog $src $dsttmp" command.
471 #
472 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
473 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
474 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
475 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
476
477 # If -C, don't bother to copy if it wouldn't change the file.
478 if $copy_on_change &&
479 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
480 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
481 set -f &&
482 set X $old && old=:$2:$4:$5:$6 &&
483 set X $new && new=:$2:$4:$5:$6 &&
484 set +f &&
485 test "$old" = "$new" &&
486 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
487 then
488 rm -f "$dsttmp"
489 else
490 # Rename the file to the real destination.
491 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
492
493 # The rename failed, perhaps because mv can't rename something else
494 # to itself, or perhaps because mv is so ancient that it does not
495 # support -f.
496 {
497 # Now remove or move aside any old file at destination location.
498 # We try this two ways since rm can't unlink itself on some
499 # systems and the destination file might be busy for other
500 # reasons. In this case, the final cleanup might fail but the new
501 # file should still install successfully.
502 {
503 test ! -f "$dst" ||
504 $doit $rmcmd -f "$dst" 2>/dev/null ||
505 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
506 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
507 } ||
508 { echo "$0: cannot unlink or rename $dst" >&2
509 (exit 1); exit 1
510 }
511 } &&
512
513 # Now rename the file to the real destination.
514 $doit $mvcmd "$dsttmp" "$dst"
515 }
516 fi || exit 1
517
518 trap '' 0
519 fi
520 done
521
522 # Local variables:
523 # eval: (add-hook 'before-save-hook 'time-stamp)
524 # time-stamp-start: "scriptversion="
525 # time-stamp-format: "%:y-%02m-%02d.%02H"
526 # time-stamp-time-zone: "UTC0"
527 # time-stamp-end: "; # UTC"
528 # End:
0 #! /bin/sh
1 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
5 # Provide generalized library-building support services.
6 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
9 # This is free software; see the source for copying conditions. There is NO
10 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
12 # GNU Libtool is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # As a special exception to the GNU General Public License,
18 # if you distribute this file as part of a program or library that
19 # is built using GNU Libtool, you may include this file under the
20 # same distribution terms that you use for the rest of that program.
21 #
22 # GNU Libtool is distributed in the hope that it will be useful, but
23 # WITHOUT ANY WARRANTY; without even the implied warranty of
24 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 # General Public License for more details.
26 #
27 # You should have received a copy of the GNU General Public License
28 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29
30
31 PROGRAM=libtool
32 PACKAGE=libtool
33 VERSION="2.4.6 Debian-2.4.6-14"
34 package_revision=2.4.6
35
36
37 ## ------ ##
38 ## Usage. ##
39 ## ------ ##
40
41 # Run './libtool --help' for help with using this script from the
42 # command line.
43
44
45 ## ------------------------------- ##
46 ## User overridable command paths. ##
47 ## ------------------------------- ##
48
49 # After configure completes, it has a better idea of some of the
50 # shell tools we need than the defaults used by the functions shared
51 # with bootstrap, so set those here where they can still be over-
52 # ridden by the user, but otherwise take precedence.
53
54 : ${AUTOCONF="autoconf"}
55 : ${AUTOMAKE="automake"}
56
57
58 ## -------------------------- ##
59 ## Source external libraries. ##
60 ## -------------------------- ##
61
62 # Much of our low-level functionality needs to be sourced from external
63 # libraries, which are installed to $pkgauxdir.
64
65 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
67
68 # General shell script boiler plate, and helper functions.
69 # Written by Gary V. Vaughan, 2004
70
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
94
95
96 ## ------ ##
97 ## Usage. ##
98 ## ------ ##
99
100 # Evaluate this file near the top of your script to gain access to
101 # the functions and variables defined here:
102 #
103 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
104 #
105 # If you need to override any of the default environment variable
106 # settings, do that before evaluating this file.
107
108
109 ## -------------------- ##
110 ## Shell normalisation. ##
111 ## -------------------- ##
112
113 # Some shells need a little help to be as Bourne compatible as possible.
114 # Before doing anything else, make sure all that help has been provided!
115
116 DUALCASE=1; export DUALCASE # for MKS sh
117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
118 emulate sh
119 NULLCMD=:
120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
121 # is contrary to our usage. Disable this feature.
122 alias -g '${1+"$@"}'='"$@"'
123 setopt NO_GLOB_SUBST
124 else
125 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
126 fi
127
128 # NLS nuisances: We save the old values in case they are required later.
129 _G_user_locale=
130 _G_safe_locale=
131 for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
132 do
133 eval "if test set = \"\${$_G_var+set}\"; then
134 save_$_G_var=\$$_G_var
135 $_G_var=C
136 export $_G_var
137 _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\"
138 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
139 fi"
140 done
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
144
145 # Make sure IFS has a sensible default
146 sp=' '
147 nl='
148 '
149 IFS="$sp $nl"
150
151 # There are apparently some retarded systems that use ';' as a PATH separator!
152 if test "${PATH_SEPARATOR+set}" != set; then
153 PATH_SEPARATOR=:
154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
156 PATH_SEPARATOR=';'
157 }
158 fi
159
160
161
162 ## ------------------------- ##
163 ## Locate command utilities. ##
164 ## ------------------------- ##
165
166
167 # func_executable_p FILE
168 # ----------------------
169 # Check that FILE is an executable regular file.
170 func_executable_p ()
171 {
172 test -f "$1" && test -x "$1"
173 }
174
175
176 # func_path_progs PROGS_LIST CHECK_FUNC [PATH]
177 # --------------------------------------------
178 # Search for either a program that responds to --version with output
179 # containing "GNU", or else returned by CHECK_FUNC otherwise, by
180 # trying all the directories in PATH with each of the elements of
181 # PROGS_LIST.
182 #
183 # CHECK_FUNC should accept the path to a candidate program, and
184 # set $func_check_prog_result if it truncates its output less than
185 # $_G_path_prog_max characters.
186 func_path_progs ()
187 {
188 _G_progs_list=$1
189 _G_check_func=$2
190 _G_PATH=${3-"$PATH"}
191
192 _G_path_prog_max=0
193 _G_path_prog_found=false
194 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
195 for _G_dir in $_G_PATH; do
196 IFS=$_G_save_IFS
197 test -z "$_G_dir" && _G_dir=.
198 for _G_prog_name in $_G_progs_list; do
199 for _exeext in '' .EXE; do
200 _G_path_prog=$_G_dir/$_G_prog_name$_exeext
201 func_executable_p "$_G_path_prog" || continue
202 case `"$_G_path_prog" --version 2>&1` in
203 *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;;
204 *) $_G_check_func $_G_path_prog
205 func_path_progs_result=$func_check_prog_result
206 ;;
207 esac
208 $_G_path_prog_found && break 3
209 done
210 done
211 done
212 IFS=$_G_save_IFS
213 test -z "$func_path_progs_result" && {
214 echo "no acceptable sed could be found in \$PATH" >&2
215 exit 1
216 }
217 }
218
219
220 # We want to be able to use the functions in this file before configure
221 # has figured out where the best binaries are kept, which means we have
222 # to search for them ourselves - except when the results are already set
223 # where we skip the searches.
224
225 # Unless the user overrides by setting SED, search the path for either GNU
226 # sed, or the sed that truncates its output the least.
227 test -z "$SED" && {
228 _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
229 for _G_i in 1 2 3 4 5 6 7; do
230 _G_sed_script=$_G_sed_script$nl$_G_sed_script
231 done
232 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed
233 _G_sed_script=
234
235 func_check_prog_sed ()
236 {
237 _G_path_prog=$1
238
239 _G_count=0
240 printf 0123456789 >conftest.in
241 while :
242 do
243 cat conftest.in conftest.in >conftest.tmp
244 mv conftest.tmp conftest.in
245 cp conftest.in conftest.nl
246 echo '' >> conftest.nl
247 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
248 diff conftest.out conftest.nl >/dev/null 2>&1 || break
249 _G_count=`expr $_G_count + 1`
250 if test "$_G_count" -gt "$_G_path_prog_max"; then
251 # Best one so far, save it but keep looking for a better one
252 func_check_prog_result=$_G_path_prog
253 _G_path_prog_max=$_G_count
254 fi
255 # 10*(2^10) chars as input seems more than enough
256 test 10 -lt "$_G_count" && break
257 done
258 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259 }
260
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
262 rm -f conftest.sed
263 SED=$func_path_progs_result
264 }
265
266
267 # Unless the user overrides by setting GREP, search the path for either GNU
268 # grep, or the grep that truncates its output the least.
269 test -z "$GREP" && {
270 func_check_prog_grep ()
271 {
272 _G_path_prog=$1
273
274 _G_count=0
275 _G_path_prog_max=0
276 printf 0123456789 >conftest.in
277 while :
278 do
279 cat conftest.in conftest.in >conftest.tmp
280 mv conftest.tmp conftest.in
281 cp conftest.in conftest.nl
282 echo 'GREP' >> conftest.nl
283 "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
284 diff conftest.out conftest.nl >/dev/null 2>&1 || break
285 _G_count=`expr $_G_count + 1`
286 if test "$_G_count" -gt "$_G_path_prog_max"; then
287 # Best one so far, save it but keep looking for a better one
288 func_check_prog_result=$_G_path_prog
289 _G_path_prog_max=$_G_count
290 fi
291 # 10*(2^10) chars as input seems more than enough
292 test 10 -lt "$_G_count" && break
293 done
294 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295 }
296
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
298 GREP=$func_path_progs_result
299 }
300
301
302 ## ------------------------------- ##
303 ## User overridable command paths. ##
304 ## ------------------------------- ##
305
306 # All uppercase variable names are used for environment variables. These
307 # variables can be overridden by the user before calling a script that
308 # uses them if a suitable command of that name is not already available
309 # in the command search PATH.
310
311 : ${CP="cp -f"}
312 : ${ECHO="printf %s\n"}
313 : ${EGREP="$GREP -E"}
314 : ${FGREP="$GREP -F"}
315 : ${LN_S="ln -s"}
316 : ${MAKE="make"}
317 : ${MKDIR="mkdir"}
318 : ${MV="mv -f"}
319 : ${RM="rm -f"}
320 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
321
322
323 ## -------------------- ##
324 ## Useful sed snippets. ##
325 ## -------------------- ##
326
327 sed_dirname='s|/[^/]*$||'
328 sed_basename='s|^.*/||'
329
330 # Sed substitution that helps us do robust quoting. It backslashifies
331 # metacharacters that are still active within double-quoted strings.
332 sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
333
334 # Same as above, but do not quote variable references.
335 sed_double_quote_subst='s/\(["`\\]\)/\\\1/g'
336
337 # Sed substitution that turns a string into a regex matching for the
338 # string literally.
339 sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g'
340
341 # Sed substitution that converts a w32 file name or path
342 # that contains forward slashes, into one that contains
343 # (escaped) backslashes. A very naive implementation.
344 sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
345
346 # Re-'\' parameter expansions in output of sed_double_quote_subst that
347 # were '\'-ed in input to the same. If an odd number of '\' preceded a
348 # '$' in input to sed_double_quote_subst, that '$' was protected from
349 # expansion. Since each input '\' is now two '\'s, look for any number
350 # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'.
351 _G_bs='\\'
352 _G_bs2='\\\\'
353 _G_bs4='\\\\\\\\'
354 _G_dollar='\$'
355 sed_double_backslash="\
356 s/$_G_bs4/&\\
357 /g
358 s/^$_G_bs2$_G_dollar/$_G_bs&/
359 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360 s/\n//g"
361
362
363 ## ----------------- ##
364 ## Global variables. ##
365 ## ----------------- ##
366
367 # Except for the global variables explicitly listed below, the following
368 # functions in the '^func_' namespace, and the '^require_' namespace
369 # variables initialised in the 'Resource management' section, sourcing
370 # this file will not pollute your global namespace with anything
371 # else. There's no portable way to scope variables in Bourne shell
372 # though, so actually running these functions will sometimes place
373 # results into a variable named after the function, and often use
374 # temporary variables in the '^_G_' namespace. If you are careful to
375 # avoid using those namespaces casually in your sourcing script, things
376 # should continue to work as you expect. And, of course, you can freely
377 # overwrite any of the functions or variables defined here before
378 # calling anything to customize them.
379
380 EXIT_SUCCESS=0
381 EXIT_FAILURE=1
382 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
383 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
384
385 # Allow overriding, eg assuming that you follow the convention of
386 # putting '$debug_cmd' at the start of all your functions, you can get
387 # bash to show function call trace with:
388 #
389 # debug_cmd='echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
390 debug_cmd=${debug_cmd-":"}
391 exit_cmd=:
392
393 # By convention, finish your script with:
394 #
395 # exit $exit_status
396 #
397 # so that you can set exit_status to non-zero if you want to indicate
398 # something went wrong during execution without actually bailing out at
399 # the point of failure.
400 exit_status=$EXIT_SUCCESS
401
402 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
403 # is ksh but when the shell is invoked as "sh" and the current value of
404 # the _XPG environment variable is not equal to 1 (one), the special
405 # positional parameter $0, within a function call, is the name of the
406 # function.
407 progpath=$0
408
409 # The name of this program.
410 progname=`$ECHO "$progpath" |$SED "$sed_basename"`
411
412 # Make sure we have an absolute progpath for reexecution:
413 case $progpath in
414 [\\/]*|[A-Za-z]:\\*) ;;
415 *[\\/]*)
416 progdir=`$ECHO "$progpath" |$SED "$sed_dirname"`
417 progdir=`cd "$progdir" && pwd`
418 progpath=$progdir/$progname
419 ;;
420 *)
421 _G_IFS=$IFS
422 IFS=${PATH_SEPARATOR-:}
423 for progdir in $PATH; do
424 IFS=$_G_IFS
425 test -x "$progdir/$progname" && break
426 done
427 IFS=$_G_IFS
428 test -n "$progdir" || progdir=`pwd`
429 progpath=$progdir/$progname
430 ;;
431 esac
432
433
434 ## ----------------- ##
435 ## Standard options. ##
436 ## ----------------- ##
437
438 # The following options affect the operation of the functions defined
439 # below, and should be set appropriately depending on run-time para-
440 # meters passed on the command line.
441
442 opt_dry_run=false
443 opt_quiet=false
444 opt_verbose=false
445
446 # Categories 'all' and 'none' are always available. Append any others
447 # you will pass as the first argument to func_warning from your own
448 # code.
449 warning_categories=
450
451 # By default, display warnings according to 'opt_warning_types'. Set
452 # 'warning_func' to ':' to elide all warnings, or func_fatal_error to
453 # treat the next displayed warning as a fatal error.
454 warning_func=func_warn_and_continue
455
456 # Set to 'all' to display all warnings, 'none' to suppress all
457 # warnings, or a space delimited list of some subset of
458 # 'warning_categories' to display only the listed warnings.
459 opt_warning_types=all
460
461
462 ## -------------------- ##
463 ## Resource management. ##
464 ## -------------------- ##
465
466 # This section contains definitions for functions that each ensure a
467 # particular resource (a file, or a non-empty configuration variable for
468 # example) is available, and if appropriate to extract default values
469 # from pertinent package files. Call them using their associated
470 # 'require_*' variable to ensure that they are executed, at most, once.
471 #
472 # It's entirely deliberate that calling these functions can set
473 # variables that don't obey the namespace limitations obeyed by the rest
474 # of this file, in order that that they be as useful as possible to
475 # callers.
476
477
478 # require_term_colors
479 # -------------------
480 # Allow display of bold text on terminals that support it.
481 require_term_colors=func_require_term_colors
482 func_require_term_colors ()
483 {
484 $debug_cmd
485
486 test -t 1 && {
487 # COLORTERM and USE_ANSI_COLORS environment variables take
488 # precedence, because most terminfo databases neglect to describe
489 # whether color sequences are supported.
490 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
491
492 if test 1 = "$USE_ANSI_COLORS"; then
493 # Standard ANSI escape sequences
494 tc_reset=''
495 tc_bold=''; tc_standout=''
496 tc_red=''; tc_green=''
497 tc_blue=''; tc_cyan=''
498 else
499 # Otherwise trust the terminfo database after all.
500 test -n "`tput sgr0 2>/dev/null`" && {
501 tc_reset=`tput sgr0`
502 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
503 tc_standout=$tc_bold
504 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
505 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
506 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
507 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
508 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
509 }
510 fi
511 }
512
513 require_term_colors=:
514 }
515
516
517 ## ----------------- ##
518 ## Function library. ##
519 ## ----------------- ##
520
521 # This section contains a variety of useful functions to call in your
522 # scripts. Take note of the portable wrappers for features provided by
523 # some modern shells, which will fall back to slower equivalents on
524 # less featureful shells.
525
526
527 # func_append VAR VALUE
528 # ---------------------
529 # Append VALUE onto the existing contents of VAR.
530
531 # We should try to minimise forks, especially on Windows where they are
532 # unreasonably slow, so skip the feature probes when bash or zsh are
533 # being used:
534 if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then
535 : ${_G_HAVE_ARITH_OP="yes"}
536 : ${_G_HAVE_XSI_OPS="yes"}
537 # The += operator was introduced in bash 3.1
538 case $BASH_VERSION in
539 [12].* | 3.0 | 3.0*) ;;
540 *)
541 : ${_G_HAVE_PLUSEQ_OP="yes"}
542 ;;
543 esac
544 fi
545
546 # _G_HAVE_PLUSEQ_OP
547 # Can be empty, in which case the shell is probed, "yes" if += is
548 # useable or anything else if it does not work.
549 test -z "$_G_HAVE_PLUSEQ_OP" \
550 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
551 && _G_HAVE_PLUSEQ_OP=yes
552
553 if test yes = "$_G_HAVE_PLUSEQ_OP"
554 then
555 # This is an XSI compatible shell, allowing a faster implementation...
556 eval 'func_append ()
557 {
558 $debug_cmd
559
560 eval "$1+=\$2"
561 }'
562 else
563 # ...otherwise fall back to using expr, which is often a shell builtin.
564 func_append ()
565 {
566 $debug_cmd
567
568 eval "$1=\$$1\$2"
569 }
570 fi
571
572
573 # func_append_quoted VAR VALUE
574 # ----------------------------
575 # Quote VALUE and append to the end of shell variable VAR, separated
576 # by a space.
577 if test yes = "$_G_HAVE_PLUSEQ_OP"; then
578 eval 'func_append_quoted ()
579 {
580 $debug_cmd
581
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
584 }'
585 else
586 func_append_quoted ()
587 {
588 $debug_cmd
589
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
592 }
593 fi
594
595
596 # func_append_uniq VAR VALUE
597 # --------------------------
598 # Append unique VALUE onto the existing contents of VAR, assuming
599 # entries are delimited by the first character of VALUE. For example:
600 #
601 # func_append_uniq options " --another-option option-argument"
602 #
603 # will only append to $options if " --another-option option-argument "
604 # is not already present somewhere in $options already (note spaces at
605 # each end implied by leading space in second argument).
606 func_append_uniq ()
607 {
608 $debug_cmd
609
610 eval _G_current_value='`$ECHO $'$1'`'
611 _G_delim=`expr "$2" : '\(.\)'`
612
613 case $_G_delim$_G_current_value$_G_delim in
614 *"$2$_G_delim"*) ;;
615 *) func_append "$@" ;;
616 esac
617 }
618
619
620 # func_arith TERM...
621 # ------------------
622 # Set func_arith_result to the result of evaluating TERMs.
623 test -z "$_G_HAVE_ARITH_OP" \
624 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
625 && _G_HAVE_ARITH_OP=yes
626
627 if test yes = "$_G_HAVE_ARITH_OP"; then
628 eval 'func_arith ()
629 {
630 $debug_cmd
631
632 func_arith_result=$(( $* ))
633 }'
634 else
635 func_arith ()
636 {
637 $debug_cmd
638
639 func_arith_result=`expr "$@"`
640 }
641 fi
642
643
644 # func_basename FILE
645 # ------------------
646 # Set func_basename_result to FILE with everything up to and including
647 # the last / stripped.
648 if test yes = "$_G_HAVE_XSI_OPS"; then
649 # If this shell supports suffix pattern removal, then use it to avoid
650 # forking. Hide the definitions single quotes in case the shell chokes
651 # on unsupported syntax...
652 _b='func_basename_result=${1##*/}'
653 _d='case $1 in
654 */*) func_dirname_result=${1%/*}$2 ;;
655 * ) func_dirname_result=$3 ;;
656 esac'
657
658 else
659 # ...otherwise fall back to using sed.
660 _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`'
661 _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"`
662 if test "X$func_dirname_result" = "X$1"; then
663 func_dirname_result=$3
664 else
665 func_append func_dirname_result "$2"
666 fi'
667 fi
668
669 eval 'func_basename ()
670 {
671 $debug_cmd
672
673 '"$_b"'
674 }'
675
676
677 # func_dirname FILE APPEND NONDIR_REPLACEMENT
678 # -------------------------------------------
679 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
680 # otherwise set result to NONDIR_REPLACEMENT.
681 eval 'func_dirname ()
682 {
683 $debug_cmd
684
685 '"$_d"'
686 }'
687
688
689 # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT
690 # --------------------------------------------------------
691 # Perform func_basename and func_dirname in a single function
692 # call:
693 # dirname: Compute the dirname of FILE. If nonempty,
694 # add APPEND to the result, otherwise set result
695 # to NONDIR_REPLACEMENT.
696 # value returned in "$func_dirname_result"
697 # basename: Compute filename of FILE.
698 # value retuned in "$func_basename_result"
699 # For efficiency, we do not delegate to the functions above but instead
700 # duplicate the functionality here.
701 eval 'func_dirname_and_basename ()
702 {
703 $debug_cmd
704
705 '"$_b"'
706 '"$_d"'
707 }'
708
709
710 # func_echo ARG...
711 # ----------------
712 # Echo program name prefixed message.
713 func_echo ()
714 {
715 $debug_cmd
716
717 _G_message=$*
718
719 func_echo_IFS=$IFS
720 IFS=$nl
721 for _G_line in $_G_message; do
722 IFS=$func_echo_IFS
723 $ECHO "$progname: $_G_line"
724 done
725 IFS=$func_echo_IFS
726 }
727
728
729 # func_echo_all ARG...
730 # --------------------
731 # Invoke $ECHO with all args, space-separated.
732 func_echo_all ()
733 {
734 $ECHO "$*"
735 }
736
737
738 # func_echo_infix_1 INFIX ARG...
739 # ------------------------------
740 # Echo program name, followed by INFIX on the first line, with any
741 # additional lines not showing INFIX.
742 func_echo_infix_1 ()
743 {
744 $debug_cmd
745
746 $require_term_colors
747
748 _G_infix=$1; shift
749 _G_indent=$_G_infix
750 _G_prefix="$progname: $_G_infix: "
751 _G_message=$*
752
753 # Strip color escape sequences before counting printable length
754 for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan"
755 do
756 test -n "$_G_tc" && {
757 _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"`
758 _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"`
759 }
760 done
761 _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes
762
763 func_echo_infix_1_IFS=$IFS
764 IFS=$nl
765 for _G_line in $_G_message; do
766 IFS=$func_echo_infix_1_IFS
767 $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2
768 _G_prefix=$_G_indent
769 done
770 IFS=$func_echo_infix_1_IFS
771 }
772
773
774 # func_error ARG...
775 # -----------------
776 # Echo program name prefixed message to standard error.
777 func_error ()
778 {
779 $debug_cmd
780
781 $require_term_colors
782
783 func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2
784 }
785
786
787 # func_fatal_error ARG...
788 # -----------------------
789 # Echo program name prefixed message to standard error, and exit.
790 func_fatal_error ()
791 {
792 $debug_cmd
793
794 func_error "$*"
795 exit $EXIT_FAILURE
796 }
797
798
799 # func_grep EXPRESSION FILENAME
800 # -----------------------------
801 # Check whether EXPRESSION matches any line of FILENAME, without output.
802 func_grep ()
803 {
804 $debug_cmd
805
806 $GREP "$1" "$2" >/dev/null 2>&1
807 }
808
809
810 # func_len STRING
811 # ---------------
812 # Set func_len_result to the length of STRING. STRING may not
813 # start with a hyphen.
814 test -z "$_G_HAVE_XSI_OPS" \
815 && (eval 'x=a/b/c;
816 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
817 && _G_HAVE_XSI_OPS=yes
818
819 if test yes = "$_G_HAVE_XSI_OPS"; then
820 eval 'func_len ()
821 {
822 $debug_cmd
823
824 func_len_result=${#1}
825 }'
826 else
827 func_len ()
828 {
829 $debug_cmd
830
831 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
832 }
833 fi
834
835
836 # func_mkdir_p DIRECTORY-PATH
837 # ---------------------------
838 # Make sure the entire path to DIRECTORY-PATH is available.
839 func_mkdir_p ()
840 {
841 $debug_cmd
842
843 _G_directory_path=$1
844 _G_dir_list=
845
846 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
847
848 # Protect directory names starting with '-'
849 case $_G_directory_path in
850 -*) _G_directory_path=./$_G_directory_path ;;
851 esac
852
853 # While some portion of DIR does not yet exist...
854 while test ! -d "$_G_directory_path"; do
855 # ...make a list in topmost first order. Use a colon delimited
856 # list incase some portion of path contains whitespace.
857 _G_dir_list=$_G_directory_path:$_G_dir_list
858
859 # If the last portion added has no slash in it, the list is done
860 case $_G_directory_path in */*) ;; *) break ;; esac
861
862 # ...otherwise throw away the child directory and loop
863 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
864 done
865 _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'`
866
867 func_mkdir_p_IFS=$IFS; IFS=:
868 for _G_dir in $_G_dir_list; do
869 IFS=$func_mkdir_p_IFS
870 # mkdir can fail with a 'File exist' error if two processes
871 # try to create one of the directories concurrently. Don't
872 # stop in that case!
873 $MKDIR "$_G_dir" 2>/dev/null || :
874 done
875 IFS=$func_mkdir_p_IFS
876
877 # Bail out if we (or some other process) failed to create a directory.
878 test -d "$_G_directory_path" || \
879 func_fatal_error "Failed to create '$1'"
880 fi
881 }
882
883
884 # func_mktempdir [BASENAME]
885 # -------------------------
886 # Make a temporary directory that won't clash with other running
887 # libtool processes, and avoids race conditions if possible. If
888 # given, BASENAME is the basename for that directory.
889 func_mktempdir ()
890 {
891 $debug_cmd
892
893 _G_template=${TMPDIR-/tmp}/${1-$progname}
894
895 if test : = "$opt_dry_run"; then
896 # Return a directory name, but don't create it in dry-run mode
897 _G_tmpdir=$_G_template-$$
898 else
899
900 # If mktemp works, use that first and foremost
901 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
902
903 if test ! -d "$_G_tmpdir"; then
904 # Failing that, at least try and use $RANDOM to avoid a race
905 _G_tmpdir=$_G_template-${RANDOM-0}$$
906
907 func_mktempdir_umask=`umask`
908 umask 0077
909 $MKDIR "$_G_tmpdir"
910 umask $func_mktempdir_umask
911 fi
912
913 # If we're not in dry-run mode, bomb out on failure
914 test -d "$_G_tmpdir" || \
915 func_fatal_error "cannot create temporary directory '$_G_tmpdir'"
916 fi
917
918 $ECHO "$_G_tmpdir"
919 }
920
921
922 # func_normal_abspath PATH
923 # ------------------------
924 # Remove doubled-up and trailing slashes, "." path components,
925 # and cancel out any ".." path components in PATH after making
926 # it an absolute path.
927 func_normal_abspath ()
928 {
929 $debug_cmd
930
931 # These SED scripts presuppose an absolute path with a trailing slash.
932 _G_pathcar='s|^/\([^/]*\).*$|\1|'
933 _G_pathcdr='s|^/[^/]*||'
934 _G_removedotparts=':dotsl
935 s|/\./|/|g
936 t dotsl
937 s|/\.$|/|'
938 _G_collapseslashes='s|/\{1,\}|/|g'
939 _G_finalslash='s|/*$|/|'
940
941 # Start from root dir and reassemble the path.
942 func_normal_abspath_result=
943 func_normal_abspath_tpath=$1
944 func_normal_abspath_altnamespace=
945 case $func_normal_abspath_tpath in
946 "")
947 # Empty path, that just means $cwd.
948 func_stripname '' '/' "`pwd`"
949 func_normal_abspath_result=$func_stripname_result
950 return
951 ;;
952 # The next three entries are used to spot a run of precisely
953 # two leading slashes without using negated character classes;
954 # we take advantage of case's first-match behaviour.
955 ///*)
956 # Unusual form of absolute path, do nothing.
957 ;;
958 //*)
959 # Not necessarily an ordinary path; POSIX reserves leading '//'
960 # and for example Cygwin uses it to access remote file shares
961 # over CIFS/SMB, so we conserve a leading double slash if found.
962 func_normal_abspath_altnamespace=/
963 ;;
964 /*)
965 # Absolute path, do nothing.
966 ;;
967 *)
968 # Relative path, prepend $cwd.
969 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
970 ;;
971 esac
972
973 # Cancel out all the simple stuff to save iterations. We also want
974 # the path to end with a slash for ease of parsing, so make sure
975 # there is one (and only one) here.
976 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
977 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
978 while :; do
979 # Processed it all yet?
980 if test / = "$func_normal_abspath_tpath"; then
981 # If we ascended to the root using ".." the result may be empty now.
982 if test -z "$func_normal_abspath_result"; then
983 func_normal_abspath_result=/
984 fi
985 break
986 fi
987 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
988 -e "$_G_pathcar"`
989 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
990 -e "$_G_pathcdr"`
991 # Figure out what to do with it
992 case $func_normal_abspath_tcomponent in
993 "")
994 # Trailing empty path component, ignore it.
995 ;;
996 ..)
997 # Parent dir; strip last assembled component from result.
998 func_dirname "$func_normal_abspath_result"
999 func_normal_abspath_result=$func_dirname_result
1000 ;;
1001 *)
1002 # Actual path component, append it.
1003 func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent"
1004 ;;
1005 esac
1006 done
1007 # Restore leading double-slash if one was found on entry.
1008 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
1009 }
1010
1011
1012 # func_notquiet ARG...
1013 # --------------------
1014 # Echo program name prefixed message only when not in quiet mode.
1015 func_notquiet ()
1016 {
1017 $debug_cmd
1018
1019 $opt_quiet || func_echo ${1+"$@"}
1020
1021 # A bug in bash halts the script if the last line of a function
1022 # fails when set -e is in force, so we need another command to
1023 # work around that:
1024 :
1025 }
1026
1027
1028 # func_relative_path SRCDIR DSTDIR
1029 # --------------------------------
1030 # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.
1031 func_relative_path ()
1032 {
1033 $debug_cmd
1034
1035 func_relative_path_result=
1036 func_normal_abspath "$1"
1037 func_relative_path_tlibdir=$func_normal_abspath_result
1038 func_normal_abspath "$2"
1039 func_relative_path_tbindir=$func_normal_abspath_result
1040
1041 # Ascend the tree starting from libdir
1042 while :; do
1043 # check if we have found a prefix of bindir
1044 case $func_relative_path_tbindir in
1045 $func_relative_path_tlibdir)
1046 # found an exact match
1047 func_relative_path_tcancelled=
1048 break
1049 ;;
1050 $func_relative_path_tlibdir*)
1051 # found a matching prefix
1052 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
1053 func_relative_path_tcancelled=$func_stripname_result
1054 if test -z "$func_relative_path_result"; then
1055 func_relative_path_result=.
1056 fi
1057 break
1058 ;;
1059 *)
1060 func_dirname $func_relative_path_tlibdir
1061 func_relative_path_tlibdir=$func_dirname_result
1062 if test -z "$func_relative_path_tlibdir"; then
1063 # Have to descend all the way to the root!
1064 func_relative_path_result=../$func_relative_path_result
1065 func_relative_path_tcancelled=$func_relative_path_tbindir
1066 break
1067 fi
1068 func_relative_path_result=../$func_relative_path_result
1069 ;;
1070 esac
1071 done
1072
1073 # Now calculate path; take care to avoid doubling-up slashes.
1074 func_stripname '' '/' "$func_relative_path_result"
1075 func_relative_path_result=$func_stripname_result
1076 func_stripname '/' '/' "$func_relative_path_tcancelled"
1077 if test -n "$func_stripname_result"; then
1078 func_append func_relative_path_result "/$func_stripname_result"
1079 fi
1080
1081 # Normalisation. If bindir is libdir, return '.' else relative path.
1082 if test -n "$func_relative_path_result"; then
1083 func_stripname './' '' "$func_relative_path_result"
1084 func_relative_path_result=$func_stripname_result
1085 fi
1086
1087 test -n "$func_relative_path_result" || func_relative_path_result=.
1088
1089 :
1090 }
1091
1092
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1103 {
1104 $debug_cmd
1105
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1109 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
1114 esac
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
1119 fi
1120
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1129 ;;
1130 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1133 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1137 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1139 fi
1140 shift
1141 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
1147 # Aesthetically quote ARG to be evaled later; same as above,
1148 # but do not quote variable references.
1149 func_quote_for_expand ()
1150 {
1151 $debug_cmd
1152
1153 case $1 in
1154 *[\\\`\"]*)
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
1157 *)
1158 _G_arg=$1 ;;
1159 esac
1160
1161 case $_G_arg in
1162 # Double-quote args containing shell metacharacters to delay
1163 # word splitting and command substitution for a subsequent eval.
1164 # Many Bourne shells cannot handle close brackets correctly
1165 # in scan sets, so we specify it separately.
1166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1167 _G_arg=\"$_G_arg\"
1168 ;;
1169 esac
1170
1171 func_quote_for_expand_result=$_G_arg
1172 }
1173
1174
1175 # func_stripname PREFIX SUFFIX NAME
1176 # ---------------------------------
1177 # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result.
1178 # PREFIX and SUFFIX must not contain globbing or regex special
1179 # characters, hashes, percent signs, but SUFFIX may contain a leading
1180 # dot (in which case that matches only a dot).
1181 if test yes = "$_G_HAVE_XSI_OPS"; then
1182 eval 'func_stripname ()
1183 {
1184 $debug_cmd
1185
1186 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1187 # positional parameters, so assign one to ordinary variable first.
1188 func_stripname_result=$3
1189 func_stripname_result=${func_stripname_result#"$1"}
1190 func_stripname_result=${func_stripname_result%"$2"}
1191 }'
1192 else
1193 func_stripname ()
1194 {
1195 $debug_cmd
1196
1197 case $2 in
1198 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1199 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1200 esac
1201 }
1202 fi
1203
1204
1205 # func_show_eval CMD [FAIL_EXP]
1206 # -----------------------------
1207 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
1208 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
1209 # is given, then evaluate it.
1210 func_show_eval ()
1211 {
1212 $debug_cmd
1213
1214 _G_cmd=$1
1215 _G_fail_exp=${2-':'}
1216
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1219
1220 $opt_dry_run || {
1221 eval "$_G_cmd"
1222 _G_status=$?
1223 if test 0 -ne "$_G_status"; then
1224 eval "(exit $_G_status); $_G_fail_exp"
1225 fi
1226 }
1227 }
1228
1229
1230 # func_show_eval_locale CMD [FAIL_EXP]
1231 # ------------------------------------
1232 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
1233 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
1234 # is given, then evaluate it. Use the saved locale for evaluation.
1235 func_show_eval_locale ()
1236 {
1237 $debug_cmd
1238
1239 _G_cmd=$1
1240 _G_fail_exp=${2-':'}
1241
1242 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
1244 eval "func_echo $func_quote_for_expand_result"
1245 }
1246
1247 $opt_dry_run || {
1248 eval "$_G_user_locale
1249 $_G_cmd"
1250 _G_status=$?
1251 eval "$_G_safe_locale"
1252 if test 0 -ne "$_G_status"; then
1253 eval "(exit $_G_status); $_G_fail_exp"
1254 fi
1255 }
1256 }
1257
1258
1259 # func_tr_sh
1260 # ----------
1261 # Turn $1 into a string suitable for a shell variable name.
1262 # Result is stored in $func_tr_sh_result. All characters
1263 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1264 # if $1 begins with a digit, a '_' is prepended as well.
1265 func_tr_sh ()
1266 {
1267 $debug_cmd
1268
1269 case $1 in
1270 [0-9]* | *[!a-zA-Z0-9_]*)
1271 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1272 ;;
1273 * )
1274 func_tr_sh_result=$1
1275 ;;
1276 esac
1277 }
1278
1279
1280 # func_verbose ARG...
1281 # -------------------
1282 # Echo program name prefixed message in verbose mode only.
1283 func_verbose ()
1284 {
1285 $debug_cmd
1286
1287 $opt_verbose && func_echo "$*"
1288
1289 :
1290 }
1291
1292
1293 # func_warn_and_continue ARG...
1294 # -----------------------------
1295 # Echo program name prefixed warning message to standard error.
1296 func_warn_and_continue ()
1297 {
1298 $debug_cmd
1299
1300 $require_term_colors
1301
1302 func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2
1303 }
1304
1305
1306 # func_warning CATEGORY ARG...
1307 # ----------------------------
1308 # Echo program name prefixed warning message to standard error. Warning
1309 # messages can be filtered according to CATEGORY, where this function
1310 # elides messages where CATEGORY is not listed in the global variable
1311 # 'opt_warning_types'.
1312 func_warning ()
1313 {
1314 $debug_cmd
1315
1316 # CATEGORY must be in the warning_categories list!
1317 case " $warning_categories " in
1318 *" $1 "*) ;;
1319 *) func_internal_error "invalid warning category '$1'" ;;
1320 esac
1321
1322 _G_category=$1
1323 shift
1324
1325 case " $opt_warning_types " in
1326 *" $_G_category "*) $warning_func ${1+"$@"} ;;
1327 esac
1328 }
1329
1330
1331 # func_sort_ver VER1 VER2
1332 # -----------------------
1333 # 'sort -V' is not generally available.
1334 # Note this deviates from the version comparison in automake
1335 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1336 # but this should suffice as we won't be specifying old
1337 # version formats or redundant trailing .0 in bootstrap.conf.
1338 # If we did want full compatibility then we should probably
1339 # use m4_version_compare from autoconf.
1340 func_sort_ver ()
1341 {
1342 $debug_cmd
1343
1344 printf '%s\n%s\n' "$1" "$2" \
1345 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
1346 }
1347
1348 # func_lt_ver PREV CURR
1349 # ---------------------
1350 # Return true if PREV and CURR are in the correct order according to
1351 # func_sort_ver, otherwise false. Use it like this:
1352 #
1353 # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..."
1354 func_lt_ver ()
1355 {
1356 $debug_cmd
1357
1358 test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
1359 }
1360
1361
1362 # Local variables:
1363 # mode: shell-script
1364 # sh-indentation: 2
1365 # eval: (add-hook 'before-save-hook 'time-stamp)
1366 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1367 # time-stamp-time-zone: "UTC"
1368 # End:
1369 #! /bin/sh
1370
1371 # Set a version string for this script.
1372 scriptversion=2015-10-07.11; # UTC
1373
1374 # A portable, pluggable option parser for Bourne shell.
1375 # Written by Gary V. Vaughan, 2010
1376
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1395
1396
1397 ## ------ ##
1398 ## Usage. ##
1399 ## ------ ##
1400
1401 # This file is a library for parsing options in your shell scripts along
1402 # with assorted other useful supporting features that you can make use
1403 # of too.
1404 #
1405 # For the simplest scripts you might need only:
1406 #
1407 # #!/bin/sh
1408 # . relative/path/to/funclib.sh
1409 # . relative/path/to/options-parser
1410 # scriptversion=1.0
1411 # func_options ${1+"$@"}
1412 # eval set dummy "$func_options_result"; shift
1413 # ...rest of your script...
1414 #
1415 # In order for the '--version' option to work, you will need to have a
1416 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1418 #
1419 # For '-h' and '--help' to work, you will also need a one line
1420 # description of your script's purpose in a comment directly above the
1421 # '# Written by ' line, like the one at the top of this file.
1422 #
1423 # The default options also support '--debug', which will turn on shell
1424 # execution tracing (see the comment above debug_cmd below for another
1425 # use), and '--verbose' and the func_verbose function to allow your script
1426 # to display verbose messages only when your user has specified
1427 # '--verbose'.
1428 #
1429 # After sourcing this file, you can plug processing for additional
1430 # options by amending the variables from the 'Configuration' section
1431 # below, and following the instructions in the 'Option parsing'
1432 # section further down.
1433
1434 ## -------------- ##
1435 ## Configuration. ##
1436 ## -------------- ##
1437
1438 # You should override these variables in your script after sourcing this
1439 # file so that they reflect the customisations you have added to the
1440 # option parser.
1441
1442 # The usage line for option parsing errors and the start of '-h' and
1443 # '--help' output messages. You can embed shell variables for delayed
1444 # expansion at the time the message is displayed, but you will need to
1445 # quote other shell meta-characters carefully to prevent them being
1446 # expanded when the contents are evaled.
1447 usage='$progpath [OPTION]...'
1448
1449 # Short help message in response to '-h' and '--help'. Add to this or
1450 # override it after sourcing this library to reflect the full set of
1451 # options your script accepts.
1452 usage_message="\
1453 --debug enable verbose shell tracing
1454 -W, --warnings=CATEGORY
1455 report the warnings falling in CATEGORY [all]
1456 -v, --verbose verbosely report processing
1457 --version print version information and exit
1458 -h, --help print short or long help message and exit
1459 "
1460
1461 # Additional text appended to 'usage_message' in response to '--help'.
1462 long_help_message="
1463 Warning categories include:
1464 'all' show all warnings
1465 'none' turn off all the warnings
1466 'error' warnings are treated as fatal errors"
1467
1468 # Help message printed before fatal option parsing errors.
1469 fatal_help="Try '\$progname --help' for more information."
1470
1471
1472
1473 ## ------------------------- ##
1474 ## Hook function management. ##
1475 ## ------------------------- ##
1476
1477 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1480
1481 # func_hookable FUNC_NAME
1482 # -----------------------
1483 # Declare that FUNC_NAME will run hooks added with
1484 # 'func_add_hook FUNC_NAME ...'.
1485 func_hookable ()
1486 {
1487 $debug_cmd
1488
1489 func_append hookable_fns " $1"
1490 }
1491
1492
1493 # func_add_hook FUNC_NAME HOOK_FUNC
1494 # ---------------------------------
1495 # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must
1496 # first have been declared "hookable" by a call to 'func_hookable'.
1497 func_add_hook ()
1498 {
1499 $debug_cmd
1500
1501 case " $hookable_fns " in
1502 *" $1 "*) ;;
1503 *) func_fatal_error "'$1' does not accept hook functions." ;;
1504 esac
1505
1506 eval func_append ${1}_hooks '" $2"'
1507 }
1508
1509
1510 # func_remove_hook FUNC_NAME HOOK_FUNC
1511 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1513 func_remove_hook ()
1514 {
1515 $debug_cmd
1516
1517 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1518 }
1519
1520
1521 # func_run_hooks FUNC_NAME [ARG]...
1522 # ---------------------------------
1523 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1525 # than a whitespace-delimited list of legal shell function names, and
1526 # no effort is wasted trying to catch shell meta-characters or preserve
1527 # whitespace.
1528 func_run_hooks ()
1529 {
1530 $debug_cmd
1531
1532 _G_rc_run_hooks=false
1533
1534 case " $hookable_fns " in
1535 *" $1 "*) ;;
1536 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1537 esac
1538
1539 eval _G_hook_fns=\$$1_hooks; shift
1540
1541 for _G_hook in $_G_hook_fns; do
1542 if eval $_G_hook '"$@"'; then
1543 # store returned options list back into positional
1544 # parameters for next 'cmd' execution.
1545 eval _G_hook_result=\$${_G_hook}_result
1546 eval set dummy "$_G_hook_result"; shift
1547 _G_rc_run_hooks=:
1548 fi
1549 done
1550
1551 $_G_rc_run_hooks && func_run_hooks_result=$_G_hook_result
1552 }
1553
1554
1555
1556 ## --------------- ##
1557 ## Option parsing. ##
1558 ## --------------- ##
1559
1560 # In order to add your own option parsing hooks, you must accept the
1561 # full positional parameter list in your hook function, you may remove/edit
1562 # any options that you action, and then pass back the remaining unprocessed
1563 # options in '<hooked_function_name>_result', escaped suitably for
1564 # 'eval'. In this case you also must return $EXIT_SUCCESS to let the
1565 # hook's caller know that it should pay attention to
1566 # '<hooked_function_name>_result'. Returning $EXIT_FAILURE signalizes that
1567 # arguments are left untouched by the hook and therefore caller will ignore the
1568 # result variable.
1569 #
1570 # Like this:
1571 #
1572 # my_options_prep ()
1573 # {
1574 # $debug_cmd
1575 #
1576 # # Extend the existing usage message.
1577 # usage_message=$usage_message'
1578 # -s, --silent don'\''t print informational messages
1579 # '
1580 # # No change in '$@' (ignored completely by this hook). There is
1581 # # no need to do the equivalent (but slower) action:
1582 # # func_quote_for_eval ${1+"$@"}
1583 # # my_options_prep_result=$func_quote_for_eval_result
1584 # false
1585 # }
1586 # func_add_hook func_options_prep my_options_prep
1587 #
1588 #
1589 # my_silent_option ()
1590 # {
1591 # $debug_cmd
1592 #
1593 # args_changed=false
1594 #
1595 # # Note that for efficiency, we parse as many options as we can
1596 # # recognise in a loop before passing the remainder back to the
1597 # # caller on the first unrecognised argument we encounter.
1598 # while test $# -gt 0; do
1599 # opt=$1; shift
1600 # case $opt in
1601 # --silent|-s) opt_silent=:
1602 # args_changed=:
1603 # ;;
1604 # # Separate non-argument short options:
1605 # -s*) func_split_short_opt "$_G_opt"
1606 # set dummy "$func_split_short_opt_name" \
1607 # "-$func_split_short_opt_arg" ${1+"$@"}
1608 # shift
1609 # args_changed=:
1610 # ;;
1611 # *) # Make sure the first unrecognised option "$_G_opt"
1612 # # is added back to "$@", we could need that later
1613 # # if $args_changed is true.
1614 # set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1615 # esac
1616 # done
1617 #
1618 # if $args_changed; then
1619 # func_quote_for_eval ${1+"$@"}
1620 # my_silent_option_result=$func_quote_for_eval_result
1621 # fi
1622 #
1623 # $args_changed
1624 # }
1625 # func_add_hook func_parse_options my_silent_option
1626 #
1627 #
1628 # my_option_validation ()
1629 # {
1630 # $debug_cmd
1631 #
1632 # $opt_silent && $opt_verbose && func_fatal_help "\
1633 # '--silent' and '--verbose' options are mutually exclusive."
1634 #
1635 # false
1636 # }
1637 # func_add_hook func_validate_options my_option_validation
1638 #
1639 # You'll also need to manually amend $usage_message to reflect the extra
1640 # options you parse. It's preferable to append if you can, so that
1641 # multiple option parsing hooks can be added safely.
1642
1643
1644 # func_options_finish [ARG]...
1645 # ----------------------------
1646 # Finishing the option parse loop (call 'func_options' hooks ATM).
1647 func_options_finish ()
1648 {
1649 $debug_cmd
1650
1651 _G_func_options_finish_exit=false
1652 if func_run_hooks func_options ${1+"$@"}; then
1653 func_options_finish_result=$func_run_hooks_result
1654 _G_func_options_finish_exit=:
1655 fi
1656
1657 $_G_func_options_finish_exit
1658 }
1659
1660
1661 # func_options [ARG]...
1662 # ---------------------
1663 # All the functions called inside func_options are hookable. See the
1664 # individual implementations for details.
1665 func_hookable func_options
1666 func_options ()
1667 {
1668 $debug_cmd
1669
1670 _G_rc_options=false
1671
1672 for my_func in options_prep parse_options validate_options options_finish
1673 do
1674 if eval func_$my_func '${1+"$@"}'; then
1675 eval _G_res_var='$'"func_${my_func}_result"
1676 eval set dummy "$_G_res_var" ; shift
1677 _G_rc_options=:
1678 fi
1679 done
1680
1681 # Save modified positional parameters for caller. As a top-level
1682 # options-parser function we always need to set the 'func_options_result'
1683 # variable (regardless the $_G_rc_options value).
1684 if $_G_rc_options; then
1685 func_options_result=$_G_res_var
1686 else
1687 func_quote_for_eval ${1+"$@"}
1688 func_options_result=$func_quote_for_eval_result
1689 fi
1690
1691 $_G_rc_options
1692 }
1693
1694
1695 # func_options_prep [ARG]...
1696 # --------------------------
1697 # All initialisations required before starting the option parse loop.
1698 # Note that when calling hook functions, we pass through the list of
1699 # positional parameters. If a hook function modifies that list, and
1700 # needs to propagate that back to rest of this script, then the complete
1701 # modified list must be put in 'func_run_hooks_result' before
1702 # returning $EXIT_SUCCESS (otherwise $EXIT_FAILURE is returned).
1703 func_hookable func_options_prep
1704 func_options_prep ()
1705 {
1706 $debug_cmd
1707
1708 # Option defaults:
1709 opt_verbose=false
1710 opt_warning_types=
1711
1712 _G_rc_options_prep=false
1713 if func_run_hooks func_options_prep ${1+"$@"}; then
1714 _G_rc_options_prep=:
1715 # save modified positional parameters for caller
1716 func_options_prep_result=$func_run_hooks_result
1717 fi
1718
1719 $_G_rc_options_prep
1720 }
1721
1722
1723 # func_parse_options [ARG]...
1724 # ---------------------------
1725 # The main option parsing loop.
1726 func_hookable func_parse_options
1727 func_parse_options ()
1728 {
1729 $debug_cmd
1730
1731 func_parse_options_result=
1732
1733 _G_rc_parse_options=false
1734 # this just eases exit handling
1735 while test $# -gt 0; do
1736 # Defer to hook functions for initial option parsing, so they
1737 # get priority in the event of reusing an option name.
1738 if func_run_hooks func_parse_options ${1+"$@"}; then
1739 eval set dummy "$func_run_hooks_result"; shift
1740 _G_rc_parse_options=:
1741 fi
1742
1743 # Break out of the loop if we already parsed every option.
1744 test $# -gt 0 || break
1745
1746 _G_match_parse_options=:
1747 _G_opt=$1
1748 shift
1749 case $_G_opt in
1750 --debug|-x) debug_cmd='set -x'
1751 func_echo "enabling shell trace mode"
1752 $debug_cmd
1753 ;;
1754
1755 --no-warnings|--no-warning|--no-warn)
1756 set dummy --warnings none ${1+"$@"}
1757 shift
1758 ;;
1759
1760 --warnings|--warning|-W)
1761 if test $# = 0 && func_missing_arg $_G_opt; then
1762 _G_rc_parse_options=:
1763 break
1764 fi
1765 case " $warning_categories $1" in
1766 *" $1 "*)
1767 # trailing space prevents matching last $1 above
1768 func_append_uniq opt_warning_types " $1"
1769 ;;
1770 *all)
1771 opt_warning_types=$warning_categories
1772 ;;
1773 *none)
1774 opt_warning_types=none
1775 warning_func=:
1776 ;;
1777 *error)
1778 opt_warning_types=$warning_categories
1779 warning_func=func_fatal_error
1780 ;;
1781 *)
1782 func_fatal_error \
1783 "unsupported warning category: '$1'"
1784 ;;
1785 esac
1786 shift
1787 ;;
1788
1789 --verbose|-v) opt_verbose=: ;;
1790 --version) func_version ;;
1791 -\?|-h) func_usage ;;
1792 --help) func_help ;;
1793
1794 # Separate optargs to long options (plugins may need this):
1795 --*=*) func_split_equals "$_G_opt"
1796 set dummy "$func_split_equals_lhs" \
1797 "$func_split_equals_rhs" ${1+"$@"}
1798 shift
1799 ;;
1800
1801 # Separate optargs to short options:
1802 -W*)
1803 func_split_short_opt "$_G_opt"
1804 set dummy "$func_split_short_opt_name" \
1805 "$func_split_short_opt_arg" ${1+"$@"}
1806 shift
1807 ;;
1808
1809 # Separate non-argument short options:
1810 -\?*|-h*|-v*|-x*)
1811 func_split_short_opt "$_G_opt"
1812 set dummy "$func_split_short_opt_name" \
1813 "-$func_split_short_opt_arg" ${1+"$@"}
1814 shift
1815 ;;
1816
1817 --) _G_rc_parse_options=: ; break ;;
1818 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1819 *) set dummy "$_G_opt" ${1+"$@"}; shift
1820 _G_match_parse_options=false
1821 break
1822 ;;
1823 esac
1824
1825 $_G_match_parse_options && _G_rc_parse_options=:
1826 done
1827
1828
1829 if $_G_rc_parse_options; then
1830 # save modified positional parameters for caller
1831 func_quote_for_eval ${1+"$@"}
1832 func_parse_options_result=$func_quote_for_eval_result
1833 fi
1834
1835 $_G_rc_parse_options
1836 }
1837
1838
1839 # func_validate_options [ARG]...
1840 # ------------------------------
1841 # Perform any sanity checks on option settings and/or unconsumed
1842 # arguments.
1843 func_hookable func_validate_options
1844 func_validate_options ()
1845 {
1846 $debug_cmd
1847
1848 _G_rc_validate_options=false
1849
1850 # Display all warnings if -W was not given.
1851 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1852
1853 if func_run_hooks func_validate_options ${1+"$@"}; then
1854 # save modified positional parameters for caller
1855 func_validate_options_result=$func_run_hooks_result
1856 _G_rc_validate_options=:
1857 fi
1858
1859 # Bail if the options were screwed!
1860 $exit_cmd $EXIT_FAILURE
1861
1862 $_G_rc_validate_options
1863 }
1864
1865
1866
1867 ## ----------------- ##
1868 ## Helper functions. ##
1869 ## ----------------- ##
1870
1871 # This section contains the helper functions used by the rest of the
1872 # hookable option parser framework in ascii-betical order.
1873
1874
1875 # func_fatal_help ARG...
1876 # ----------------------
1877 # Echo program name prefixed message to standard error, followed by
1878 # a help hint, and exit.
1879 func_fatal_help ()
1880 {
1881 $debug_cmd
1882
1883 eval \$ECHO \""Usage: $usage"\"
1884 eval \$ECHO \""$fatal_help"\"
1885 func_error ${1+"$@"}
1886 exit $EXIT_FAILURE
1887 }
1888
1889
1890 # func_help
1891 # ---------
1892 # Echo long help message to standard output and exit.
1893 func_help ()
1894 {
1895 $debug_cmd
1896
1897 func_usage_message
1898 $ECHO "$long_help_message"
1899 exit 0
1900 }
1901
1902
1903 # func_missing_arg ARGNAME
1904 # ------------------------
1905 # Echo program name prefixed message to standard error and set global
1906 # exit_cmd.
1907 func_missing_arg ()
1908 {
1909 $debug_cmd
1910
1911 func_error "Missing argument for '$1'."
1912 exit_cmd=exit
1913 }
1914
1915
1916 # func_split_equals STRING
1917 # ------------------------
1918 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1919 # splitting STRING at the '=' sign.
1920 test -z "$_G_HAVE_XSI_OPS" \
1921 && (eval 'x=a/b/c;
1922 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
1923 && _G_HAVE_XSI_OPS=yes
1924
1925 if test yes = "$_G_HAVE_XSI_OPS"
1926 then
1927 # This is an XSI compatible shell, allowing a faster implementation...
1928 eval 'func_split_equals ()
1929 {
1930 $debug_cmd
1931
1932 func_split_equals_lhs=${1%%=*}
1933 func_split_equals_rhs=${1#*=}
1934 test "x$func_split_equals_lhs" = "x$1" \
1935 && func_split_equals_rhs=
1936 }'
1937 else
1938 # ...otherwise fall back to using expr, which is often a shell builtin.
1939 func_split_equals ()
1940 {
1941 $debug_cmd
1942
1943 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
1944 func_split_equals_rhs=
1945 test "x$func_split_equals_lhs" = "x$1" \
1946 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
1947 }
1948 fi #func_split_equals
1949
1950
1951 # func_split_short_opt SHORTOPT
1952 # -----------------------------
1953 # Set func_split_short_opt_name and func_split_short_opt_arg shell
1954 # variables after splitting SHORTOPT after the 2nd character.
1955 if test yes = "$_G_HAVE_XSI_OPS"
1956 then
1957 # This is an XSI compatible shell, allowing a faster implementation...
1958 eval 'func_split_short_opt ()
1959 {
1960 $debug_cmd
1961
1962 func_split_short_opt_arg=${1#??}
1963 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
1964 }'
1965 else
1966 # ...otherwise fall back to using expr, which is often a shell builtin.
1967 func_split_short_opt ()
1968 {
1969 $debug_cmd
1970
1971 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1972 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1973 }
1974 fi #func_split_short_opt
1975
1976
1977 # func_usage
1978 # ----------
1979 # Echo short help message to standard output and exit.
1980 func_usage ()
1981 {
1982 $debug_cmd
1983
1984 func_usage_message
1985 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1986 exit 0
1987 }
1988
1989
1990 # func_usage_message
1991 # ------------------
1992 # Echo short help message to standard output.
1993 func_usage_message ()
1994 {
1995 $debug_cmd
1996
1997 eval \$ECHO \""Usage: $usage"\"
1998 echo
1999 $SED -n 's|^# ||
2000 /^Written by/{
2001 x;p;x
2002 }
2003 h
2004 /^Written by/q' < "$progpath"
2005 echo
2006 eval \$ECHO \""$usage_message"\"
2007 }
2008
2009
2010 # func_version
2011 # ------------
2012 # Echo version message to standard output and exit.
2013 func_version ()
2014 {
2015 $debug_cmd
2016
2017 printf '%s\n' "$progname $scriptversion"
2018 $SED -n '
2019 /(C)/!b go
2020 :more
2021 /\./!{
2022 N
2023 s|\n# | |
2024 b more
2025 }
2026 :go
2027 /^# Written by /,/# warranty; / {
2028 s|^# ||
2029 s|^# *$||
2030 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2031 p
2032 }
2033 /^# Written by / {
2034 s|^# ||
2035 p
2036 }
2037 /^warranty; /q' < "$progpath"
2038
2039 exit $?
2040 }
2041
2042
2043 # Local variables:
2044 # mode: shell-script
2045 # sh-indentation: 2
2046 # eval: (add-hook 'before-save-hook 'time-stamp)
2047 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2048 # time-stamp-time-zone: "UTC"
2049 # End:
2050
2051 # Set a version string.
2052 scriptversion='(GNU libtool) 2.4.6'
2053
2054
2055 # func_echo ARG...
2056 # ----------------
2057 # Libtool also displays the current mode in messages, so override
2058 # funclib.sh func_echo with this custom definition.
2059 func_echo ()
2060 {
2061 $debug_cmd
2062
2063 _G_message=$*
2064
2065 func_echo_IFS=$IFS
2066 IFS=$nl
2067 for _G_line in $_G_message; do
2068 IFS=$func_echo_IFS
2069 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line"
2070 done
2071 IFS=$func_echo_IFS
2072 }
2073
2074
2075 # func_warning ARG...
2076 # -------------------
2077 # Libtool warnings are not categorized, so override funclib.sh
2078 # func_warning with this simpler definition.
2079 func_warning ()
2080 {
2081 $debug_cmd
2082
2083 $warning_func ${1+"$@"}
2084 }
2085
2086
2087 ## ---------------- ##
2088 ## Options parsing. ##
2089 ## ---------------- ##
2090
2091 # Hook in the functions to make sure our own options are parsed during
2092 # the option parsing loop.
2093
2094 usage='$progpath [OPTION]... [MODE-ARG]...'
2095
2096 # Short help message in response to '-h'.
2097 usage_message="Options:
2098 --config show all configuration variables
2099 --debug enable verbose shell tracing
2100 -n, --dry-run display commands without modifying any files
2101 --features display basic configuration information and exit
2102 --mode=MODE use operation mode MODE
2103 --no-warnings equivalent to '-Wnone'
2104 --preserve-dup-deps don't remove duplicate dependency libraries
2105 --quiet, --silent don't print informational messages
2106 --tag=TAG use configuration variables from tag TAG
2107 -v, --verbose print more informational messages than default
2108 --version print version information
2109 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2110 -h, --help, --help-all print short, long, or detailed help message
2111 "
2112
2113 # Additional text appended to 'usage_message' in response to '--help'.
2114 func_help ()
2115 {
2116 $debug_cmd
2117
2118 func_usage_message
2119 $ECHO "$long_help_message
2120
2121 MODE must be one of the following:
2122
2123 clean remove files from the build directory
2124 compile compile a source file into a libtool object
2125 execute automatically set library path, then run a program
2126 finish complete the installation of libtool libraries
2127 install install libraries or executables
2128 link create a library or an executable
2129 uninstall remove libraries from an installed directory
2130
2131 MODE-ARGS vary depending on the MODE. When passed as first option,
2132 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2133 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2134
2135 When reporting a bug, please describe a test case to reproduce it and
2136 include the following information:
2137
2138 host-triplet: $host
2139 shell: $SHELL
2140 compiler: $LTCC
2141 compiler flags: $LTCFLAGS
2142 linker: $LD (gnu? $with_gnu_ld)
2143 version: $progname $scriptversion Debian-2.4.6-14
2144 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2145 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2146
2147 Report bugs to <bug-libtool@gnu.org>.
2148 GNU libtool home page: <http://www.gnu.org/s/libtool/>.
2149 General help using GNU software: <http://www.gnu.org/gethelp/>."
2150 exit 0
2151 }
2152
2153
2154 # func_lo2o OBJECT-NAME
2155 # ---------------------
2156 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2157 # object suffix.
2158
2159 lo2o=s/\\.lo\$/.$objext/
2160 o2lo=s/\\.$objext\$/.lo/
2161
2162 if test yes = "$_G_HAVE_XSI_OPS"; then
2163 eval 'func_lo2o ()
2164 {
2165 case $1 in
2166 *.lo) func_lo2o_result=${1%.lo}.$objext ;;
2167 * ) func_lo2o_result=$1 ;;
2168 esac
2169 }'
2170
2171 # func_xform LIBOBJ-OR-SOURCE
2172 # ---------------------------
2173 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2174 # suffix to a '.lo' libtool-object suffix.
2175 eval 'func_xform ()
2176 {
2177 func_xform_result=${1%.*}.lo
2178 }'
2179 else
2180 # ...otherwise fall back to using sed.
2181 func_lo2o ()
2182 {
2183 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
2184 }
2185
2186 func_xform ()
2187 {
2188 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
2189 }
2190 fi
2191
2192
2193 # func_fatal_configuration ARG...
2194 # -------------------------------
2195 # Echo program name prefixed message to standard error, followed by
2196 # a configuration failure hint, and exit.
2197 func_fatal_configuration ()
2198 {
2199 func__fatal_error ${1+"$@"} \
2200 "See the $PACKAGE documentation for more information." \
2201 "Fatal configuration error."
2202 }
2203
2204
2205 # func_config
2206 # -----------
2207 # Display the configuration for all the tags in this script.
2208 func_config ()
2209 {
2210 re_begincf='^# ### BEGIN LIBTOOL'
2211 re_endcf='^# ### END LIBTOOL'
2212
2213 # Default configuration.
2214 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
2215
2216 # Now print the configurations for the tags.
2217 for tagname in $taglist; do
2218 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2219 done
2220
2221 exit $?
2222 }
2223
2224
2225 # func_features
2226 # -------------
2227 # Display the features supported by this script.
2228 func_features ()
2229 {
2230 echo "host: $host"
2231 if test yes = "$build_libtool_libs"; then
2232 echo "enable shared libraries"
2233 else
2234 echo "disable shared libraries"
2235 fi
2236 if test yes = "$build_old_libs"; then
2237 echo "enable static libraries"
2238 else
2239 echo "disable static libraries"
2240 fi
2241
2242 exit $?
2243 }
2244
2245
2246 # func_enable_tag TAGNAME
2247 # -----------------------
2248 # Verify that TAGNAME is valid, and either flag an error and exit, or
2249 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
2250 # variable here.
2251 func_enable_tag ()
2252 {
2253 # Global variable:
2254 tagname=$1
2255
2256 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
2257 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
2258 sed_extractcf=/$re_begincf/,/$re_endcf/p
2259
2260 # Validate tagname.
2261 case $tagname in
2262 *[!-_A-Za-z0-9,/]*)
2263 func_fatal_error "invalid tag name: $tagname"
2264 ;;
2265 esac
2266
2267 # Don't test for the "default" C tag, as we know it's
2268 # there but not specially marked.
2269 case $tagname in
2270 CC) ;;
2271 *)
2272 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2273 taglist="$taglist $tagname"
2274
2275 # Evaluate the configuration. Be careful to quote the path
2276 # and the sed script, to avoid splitting on whitespace, but
2277 # also don't use non-portable quotes within backquotes within
2278 # quotes we have to do it in 2 steps:
2279 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2280 eval "$extractedcf"
2281 else
2282 func_error "ignoring unknown tag $tagname"
2283 fi
2284 ;;
2285 esac
2286 }
2287
2288
2289 # func_check_version_match
2290 # ------------------------
2291 # Ensure that we are using m4 macros, and libtool script from the same
2292 # release of libtool.
2293 func_check_version_match ()
2294 {
2295 if test "$package_revision" != "$macro_revision"; then
2296 if test "$VERSION" != "$macro_version"; then
2297 if test -z "$macro_version"; then
2298 cat >&2 <<_LT_EOF
2299 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
2300 $progname: definition of this LT_INIT comes from an older release.
2301 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
2302 $progname: and run autoconf again.
2303 _LT_EOF
2304 else
2305 cat >&2 <<_LT_EOF
2306 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
2307 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
2308 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
2309 $progname: and run autoconf again.
2310 _LT_EOF
2311 fi
2312 else
2313 cat >&2 <<_LT_EOF
2314 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
2315 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
2316 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
2317 $progname: of $PACKAGE $VERSION and run autoconf again.
2318 _LT_EOF
2319 fi
2320
2321 exit $EXIT_MISMATCH
2322 fi
2323 }
2324
2325
2326 # libtool_options_prep [ARG]...
2327 # -----------------------------
2328 # Preparation for options parsed by libtool.
2329 libtool_options_prep ()
2330 {
2331 $debug_mode
2332
2333 # Option defaults:
2334 opt_config=false
2335 opt_dlopen=
2336 opt_dry_run=false
2337 opt_help=false
2338 opt_mode=
2339 opt_preserve_dup_deps=false
2340 opt_quiet=false
2341
2342 nonopt=
2343 preserve_args=
2344
2345 _G_rc_lt_options_prep=:
2346
2347 # Shorthand for --mode=foo, only valid as the first argument
2348 case $1 in
2349 clean|clea|cle|cl)
2350 shift; set dummy --mode clean ${1+"$@"}; shift
2351 ;;
2352 compile|compil|compi|comp|com|co|c)
2353 shift; set dummy --mode compile ${1+"$@"}; shift
2354 ;;
2355 execute|execut|execu|exec|exe|ex|e)
2356 shift; set dummy --mode execute ${1+"$@"}; shift
2357 ;;
2358 finish|finis|fini|fin|fi|f)
2359 shift; set dummy --mode finish ${1+"$@"}; shift
2360 ;;
2361 install|instal|insta|inst|ins|in|i)
2362 shift; set dummy --mode install ${1+"$@"}; shift
2363 ;;
2364 link|lin|li|l)
2365 shift; set dummy --mode link ${1+"$@"}; shift
2366 ;;
2367 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
2368 shift; set dummy --mode uninstall ${1+"$@"}; shift
2369 ;;
2370 *)
2371 _G_rc_lt_options_prep=false
2372 ;;
2373 esac
2374
2375 if $_G_rc_lt_options_prep; then
2376 # Pass back the list of options.
2377 func_quote_for_eval ${1+"$@"}
2378 libtool_options_prep_result=$func_quote_for_eval_result
2379 fi
2380
2381 $_G_rc_lt_options_prep
2382 }
2383 func_add_hook func_options_prep libtool_options_prep
2384
2385
2386 # libtool_parse_options [ARG]...
2387 # ---------------------------------
2388 # Provide handling for libtool specific options.
2389 libtool_parse_options ()
2390 {
2391 $debug_cmd
2392
2393 _G_rc_lt_parse_options=false
2394
2395 # Perform our own loop to consume as many options as possible in
2396 # each iteration.
2397 while test $# -gt 0; do
2398 _G_match_lt_parse_options=:
2399 _G_opt=$1
2400 shift
2401 case $_G_opt in
2402 --dry-run|--dryrun|-n)
2403 opt_dry_run=:
2404 ;;
2405
2406 --config) func_config ;;
2407
2408 --dlopen|-dlopen)
2409 opt_dlopen="${opt_dlopen+$opt_dlopen
2410 }$1"
2411 shift
2412 ;;
2413
2414 --preserve-dup-deps)
2415 opt_preserve_dup_deps=: ;;
2416
2417 --features) func_features ;;
2418
2419 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2420
2421 --help) opt_help=: ;;
2422
2423 --help-all) opt_help=': help-all' ;;
2424
2425 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2426 opt_mode=$1
2427 case $1 in
2428 # Valid mode arguments:
2429 clean|compile|execute|finish|install|link|relink|uninstall) ;;
2430
2431 # Catch anything else as an error
2432 *) func_error "invalid argument for $_G_opt"
2433 exit_cmd=exit
2434 break
2435 ;;
2436 esac
2437 shift
2438 ;;
2439
2440 --no-silent|--no-quiet)
2441 opt_quiet=false
2442 func_append preserve_args " $_G_opt"
2443 ;;
2444
2445 --no-warnings|--no-warning|--no-warn)
2446 opt_warning=false
2447 func_append preserve_args " $_G_opt"
2448 ;;
2449
2450 --no-verbose)
2451 opt_verbose=false
2452 func_append preserve_args " $_G_opt"
2453 ;;
2454
2455 --silent|--quiet)
2456 opt_quiet=:
2457 opt_verbose=false
2458 func_append preserve_args " $_G_opt"
2459 ;;
2460
2461 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2462 opt_tag=$1
2463 func_append preserve_args " $_G_opt $1"
2464 func_enable_tag "$1"
2465 shift
2466 ;;
2467
2468 --verbose|-v) opt_quiet=false
2469 opt_verbose=:
2470 func_append preserve_args " $_G_opt"
2471 ;;
2472
2473 # An option not handled by this hook function:
2474 *) set dummy "$_G_opt" ${1+"$@"} ; shift
2475 _G_match_lt_parse_options=false
2476 break
2477 ;;
2478 esac
2479 $_G_match_lt_parse_options && _G_rc_lt_parse_options=:
2480 done
2481
2482 if $_G_rc_lt_parse_options; then
2483 # save modified positional parameters for caller
2484 func_quote_for_eval ${1+"$@"}
2485 libtool_parse_options_result=$func_quote_for_eval_result
2486 fi
2487
2488 $_G_rc_lt_parse_options
2489 }
2490 func_add_hook func_parse_options libtool_parse_options
2491
2492
2493
2494 # libtool_validate_options [ARG]...
2495 # ---------------------------------
2496 # Perform any sanity checks on option settings and/or unconsumed
2497 # arguments.
2498 libtool_validate_options ()
2499 {
2500 # save first non-option argument
2501 if test 0 -lt $#; then
2502 nonopt=$1
2503 shift
2504 fi
2505
2506 # preserve --debug
2507 test : = "$debug_cmd" || func_append preserve_args " --debug"
2508
2509 case $host in
2510 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
2511 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
2512 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
2513 # don't eliminate duplications in $postdeps and $predeps
2514 opt_duplicate_compiler_generated_deps=:
2515 ;;
2516 *)
2517 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2518 ;;
2519 esac
2520
2521 $opt_help || {
2522 # Sanity checks first:
2523 func_check_version_match
2524
2525 test yes != "$build_libtool_libs" \
2526 && test yes != "$build_old_libs" \
2527 && func_fatal_configuration "not configured to build any kind of library"
2528
2529 # Darwin sucks
2530 eval std_shrext=\"$shrext_cmds\"
2531
2532 # Only execute mode is allowed to have -dlopen flags.
2533 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2534 func_error "unrecognized option '-dlopen'"
2535 $ECHO "$help" 1>&2
2536 exit $EXIT_FAILURE
2537 fi
2538
2539 # Change the help message to a mode-specific one.
2540 generic_help=$help
2541 help="Try '$progname --help --mode=$opt_mode' for more information."
2542 }
2543
2544 # Pass back the unparsed argument list
2545 func_quote_for_eval ${1+"$@"}
2546 libtool_validate_options_result=$func_quote_for_eval_result
2547 }
2548 func_add_hook func_validate_options libtool_validate_options
2549
2550
2551 # Process options as early as possible so that --help and --version
2552 # can return quickly.
2553 func_options ${1+"$@"}
2554 eval set dummy "$func_options_result"; shift
2555
2556
2557
2558 ## ----------- ##
2559 ## Main. ##
2560 ## ----------- ##
2561
2562 magic='%%%MAGIC variable%%%'
2563 magic_exe='%%%MAGIC EXE variable%%%'
2564
2565 # Global variables.
2566 extracted_archives=
2567 extracted_serial=0
2568
2569 # If this variable is set in any of the actions, the command in it
2570 # will be execed at the end. This prevents here-documents from being
2571 # left over by shells.
2572 exec_cmd=
2573
2574
2575 # A function that is used when there is no print builtin or printf.
2576 func_fallback_echo ()
2577 {
2578 eval 'cat <<_LTECHO_EOF
2579 $1
2580 _LTECHO_EOF'
2581 }
2582
2583 # func_generated_by_libtool
2584 # True iff stdin has been generated by Libtool. This function is only
2585 # a basic sanity check; it will hardly flush out determined imposters.
2586 func_generated_by_libtool_p ()
2587 {
2588 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2589 }
2590
2591 # func_lalib_p file
2592 # True iff FILE is a libtool '.la' library or '.lo' object file.
2593 # This function is only a basic sanity check; it will hardly flush out
2594 # determined imposters.
2595 func_lalib_p ()
2596 {
2597 test -f "$1" &&
2598 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2599 }
2600
2601 # func_lalib_unsafe_p file
2602 # True iff FILE is a libtool '.la' library or '.lo' object file.
2603 # This function implements the same check as func_lalib_p without
2604 # resorting to external programs. To this end, it redirects stdin and
2605 # closes it afterwards, without saving the original file descriptor.
2606 # As a safety measure, use it only where a negative result would be
2607 # fatal anyway. Works if 'file' does not exist.
2608 func_lalib_unsafe_p ()
2609 {
2610 lalib_p=no
2611 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2612 for lalib_p_l in 1 2 3 4
2613 do
2614 read lalib_p_line
2615 case $lalib_p_line in
2616 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
2617 esac
2618 done
2619 exec 0<&5 5<&-
2620 fi
2621 test yes = "$lalib_p"
2622 }
2623
2624 # func_ltwrapper_script_p file
2625 # True iff FILE is a libtool wrapper script
2626 # This function is only a basic sanity check; it will hardly flush out
2627 # determined imposters.
2628 func_ltwrapper_script_p ()
2629 {
2630 test -f "$1" &&
2631 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
2632 }
2633
2634 # func_ltwrapper_executable_p file
2635 # True iff FILE is a libtool wrapper executable
2636 # This function is only a basic sanity check; it will hardly flush out
2637 # determined imposters.
2638 func_ltwrapper_executable_p ()
2639 {
2640 func_ltwrapper_exec_suffix=
2641 case $1 in
2642 *.exe) ;;
2643 *) func_ltwrapper_exec_suffix=.exe ;;
2644 esac
2645 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
2646 }
2647
2648 # func_ltwrapper_scriptname file
2649 # Assumes file is an ltwrapper_executable
2650 # uses $file to determine the appropriate filename for a
2651 # temporary ltwrapper_script.
2652 func_ltwrapper_scriptname ()
2653 {
2654 func_dirname_and_basename "$1" "" "."
2655 func_stripname '' '.exe' "$func_basename_result"
2656 func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
2657 }
2658
2659 # func_ltwrapper_p file
2660 # True iff FILE is a libtool wrapper script or wrapper executable
2661 # This function is only a basic sanity check; it will hardly flush out
2662 # determined imposters.
2663 func_ltwrapper_p ()
2664 {
2665 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
2666 }
2667
2668
2669 # func_execute_cmds commands fail_cmd
2670 # Execute tilde-delimited COMMANDS.
2671 # If FAIL_CMD is given, eval that upon failure.
2672 # FAIL_CMD may read-access the current command in variable CMD!
2673 func_execute_cmds ()
2674 {
2675 $debug_cmd
2676
2677 save_ifs=$IFS; IFS='~'
2678 for cmd in $1; do
2679 IFS=$sp$nl
2680 eval cmd=\"$cmd\"
2681 IFS=$save_ifs
2682 func_show_eval "$cmd" "${2-:}"
2683 done
2684 IFS=$save_ifs
2685 }
2686
2687
2688 # func_source file
2689 # Source FILE, adding directory component if necessary.
2690 # Note that it is not necessary on cygwin/mingw to append a dot to
2691 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2692 # behavior happens only for exec(3), not for open(2)! Also, sourcing
2693 # 'FILE.' does not work on cygwin managed mounts.
2694 func_source ()
2695 {
2696 $debug_cmd
2697
2698 case $1 in
2699 */* | *\\*) . "$1" ;;
2700 *) . "./$1" ;;
2701 esac
2702 }
2703
2704
2705 # func_resolve_sysroot PATH
2706 # Replace a leading = in PATH with a sysroot. Store the result into
2707 # func_resolve_sysroot_result
2708 func_resolve_sysroot ()
2709 {
2710 func_resolve_sysroot_result=$1
2711 case $func_resolve_sysroot_result in
2712 =*)
2713 func_stripname '=' '' "$func_resolve_sysroot_result"
2714 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
2715 ;;
2716 esac
2717 }
2718
2719 # func_replace_sysroot PATH
2720 # If PATH begins with the sysroot, replace it with = and
2721 # store the result into func_replace_sysroot_result.
2722 func_replace_sysroot ()
2723 {
2724 case $lt_sysroot:$1 in
2725 ?*:"$lt_sysroot"*)
2726 func_stripname "$lt_sysroot" '' "$1"
2727 func_replace_sysroot_result='='$func_stripname_result
2728 ;;
2729 *)
2730 # Including no sysroot.
2731 func_replace_sysroot_result=$1
2732 ;;
2733 esac
2734 }
2735
2736 # func_infer_tag arg
2737 # Infer tagged configuration to use if any are available and
2738 # if one wasn't chosen via the "--tag" command line option.
2739 # Only attempt this if the compiler in the base compile
2740 # command doesn't match the default compiler.
2741 # arg is usually of the form 'gcc ...'
2742 func_infer_tag ()
2743 {
2744 $debug_cmd
2745
2746 if test -n "$available_tags" && test -z "$tagname"; then
2747 CC_quoted=
2748 for arg in $CC; do
2749 func_append_quoted CC_quoted "$arg"
2750 done
2751 CC_expanded=`func_echo_all $CC`
2752 CC_quoted_expanded=`func_echo_all $CC_quoted`
2753 case $@ in
2754 # Blanks in the command may have been stripped by the calling shell,
2755 # but not from the CC environment variable when configure was run.
2756 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
2757 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
2758 # Blanks at the start of $base_compile will cause this to fail
2759 # if we don't check for them as well.
2760 *)
2761 for z in $available_tags; do
2762 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
2763 # Evaluate the configuration.
2764 eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
2765 CC_quoted=
2766 for arg in $CC; do
2767 # Double-quote args containing other shell metacharacters.
2768 func_append_quoted CC_quoted "$arg"
2769 done
2770 CC_expanded=`func_echo_all $CC`
2771 CC_quoted_expanded=`func_echo_all $CC_quoted`
2772 case "$@ " in
2773 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
2774 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
2775 # The compiler in the base compile command matches
2776 # the one in the tagged configuration.
2777 # Assume this is the tagged configuration we want.
2778 tagname=$z
2779 break
2780 ;;
2781 esac
2782 fi
2783 done
2784 # If $tagname still isn't set, then no tagged configuration
2785 # was found and let the user know that the "--tag" command
2786 # line option must be used.
2787 if test -z "$tagname"; then
2788 func_echo "unable to infer tagged configuration"
2789 func_fatal_error "specify a tag with '--tag'"
2790 # else
2791 # func_verbose "using $tagname tagged configuration"
2792 fi
2793 ;;
2794 esac
2795 fi
2796 }
2797
2798
2799
2800 # func_write_libtool_object output_name pic_name nonpic_name
2801 # Create a libtool object file (analogous to a ".la" file),
2802 # but don't create it if we're doing a dry run.
2803 func_write_libtool_object ()
2804 {
2805 write_libobj=$1
2806 if test yes = "$build_libtool_libs"; then
2807 write_lobj=\'$2\'
2808 else
2809 write_lobj=none
2810 fi
2811
2812 if test yes = "$build_old_libs"; then
2813 write_oldobj=\'$3\'
2814 else
2815 write_oldobj=none
2816 fi
2817
2818 $opt_dry_run || {
2819 cat >${write_libobj}T <<EOF
2820 # $write_libobj - a libtool object file
2821 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
2822 #
2823 # Please DO NOT delete this file!
2824 # It is necessary for linking the library.
2825
2826 # Name of the PIC object.
2827 pic_object=$write_lobj
2828
2829 # Name of the non-PIC object
2830 non_pic_object=$write_oldobj
2831
2832 EOF
2833 $MV "${write_libobj}T" "$write_libobj"
2834 }
2835 }
2836
2837
2838 ##################################################
2839 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
2840 ##################################################
2841
2842 # func_convert_core_file_wine_to_w32 ARG
2843 # Helper function used by file name conversion functions when $build is *nix,
2844 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
2845 # correctly configured wine environment available, with the winepath program
2846 # in $build's $PATH.
2847 #
2848 # ARG is the $build file name to be converted to w32 format.
2849 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
2850 # be empty on error (or when ARG is empty)
2851 func_convert_core_file_wine_to_w32 ()
2852 {
2853 $debug_cmd
2854
2855 func_convert_core_file_wine_to_w32_result=$1
2856 if test -n "$1"; then
2857 # Unfortunately, winepath does not exit with a non-zero error code, so we
2858 # are forced to check the contents of stdout. On the other hand, if the
2859 # command is not found, the shell will set an exit code of 127 and print
2860 # *an error message* to stdout. So we must check for both error code of
2861 # zero AND non-empty stdout, which explains the odd construction:
2862 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
2863 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
2864 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
2865 $SED -e "$sed_naive_backslashify"`
2866 else
2867 func_convert_core_file_wine_to_w32_result=
2868 fi
2869 fi
2870 }
2871 # end: func_convert_core_file_wine_to_w32
2872
2873
2874 # func_convert_core_path_wine_to_w32 ARG
2875 # Helper function used by path conversion functions when $build is *nix, and
2876 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
2877 # configured wine environment available, with the winepath program in $build's
2878 # $PATH. Assumes ARG has no leading or trailing path separator characters.
2879 #
2880 # ARG is path to be converted from $build format to win32.
2881 # Result is available in $func_convert_core_path_wine_to_w32_result.
2882 # Unconvertible file (directory) names in ARG are skipped; if no directory names
2883 # are convertible, then the result may be empty.
2884 func_convert_core_path_wine_to_w32 ()
2885 {
2886 $debug_cmd
2887
2888 # unfortunately, winepath doesn't convert paths, only file names
2889 func_convert_core_path_wine_to_w32_result=
2890 if test -n "$1"; then
2891 oldIFS=$IFS
2892 IFS=:
2893 for func_convert_core_path_wine_to_w32_f in $1; do
2894 IFS=$oldIFS
2895 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
2896 if test -n "$func_convert_core_file_wine_to_w32_result"; then
2897 if test -z "$func_convert_core_path_wine_to_w32_result"; then
2898 func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result
2899 else
2900 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
2901 fi
2902 fi
2903 done
2904 IFS=$oldIFS
2905 fi
2906 }
2907 # end: func_convert_core_path_wine_to_w32
2908
2909
2910 # func_cygpath ARGS...
2911 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
2912 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
2913 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
2914 # (2), returns the Cygwin file name or path in func_cygpath_result (input
2915 # file name or path is assumed to be in w32 format, as previously converted
2916 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
2917 # or path in func_cygpath_result (input file name or path is assumed to be in
2918 # Cygwin format). Returns an empty string on error.
2919 #
2920 # ARGS are passed to cygpath, with the last one being the file name or path to
2921 # be converted.
2922 #
2923 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
2924 # environment variable; do not put it in $PATH.
2925 func_cygpath ()
2926 {
2927 $debug_cmd
2928
2929 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
2930 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
2931 if test "$?" -ne 0; then
2932 # on failure, ensure result is empty
2933 func_cygpath_result=
2934 fi
2935 else
2936 func_cygpath_result=
2937 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
2938 fi
2939 }
2940 #end: func_cygpath
2941
2942
2943 # func_convert_core_msys_to_w32 ARG
2944 # Convert file name or path ARG from MSYS format to w32 format. Return
2945 # result in func_convert_core_msys_to_w32_result.
2946 func_convert_core_msys_to_w32 ()
2947 {
2948 $debug_cmd
2949
2950 # awkward: cmd appends spaces to result
2951 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
2952 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
2953 }
2954 #end: func_convert_core_msys_to_w32
2955
2956
2957 # func_convert_file_check ARG1 ARG2
2958 # Verify that ARG1 (a file name in $build format) was converted to $host
2959 # format in ARG2. Otherwise, emit an error message, but continue (resetting
2960 # func_to_host_file_result to ARG1).
2961 func_convert_file_check ()
2962 {
2963 $debug_cmd
2964
2965 if test -z "$2" && test -n "$1"; then
2966 func_error "Could not determine host file name corresponding to"
2967 func_error " '$1'"
2968 func_error "Continuing, but uninstalled executables may not work."
2969 # Fallback:
2970 func_to_host_file_result=$1
2971 fi
2972 }
2973 # end func_convert_file_check
2974
2975
2976 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
2977 # Verify that FROM_PATH (a path in $build format) was converted to $host
2978 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
2979 # func_to_host_file_result to a simplistic fallback value (see below).
2980 func_convert_path_check ()
2981 {
2982 $debug_cmd
2983
2984 if test -z "$4" && test -n "$3"; then
2985 func_error "Could not determine the host path corresponding to"
2986 func_error " '$3'"
2987 func_error "Continuing, but uninstalled executables may not work."
2988 # Fallback. This is a deliberately simplistic "conversion" and
2989 # should not be "improved". See libtool.info.
2990 if test "x$1" != "x$2"; then
2991 lt_replace_pathsep_chars="s|$1|$2|g"
2992 func_to_host_path_result=`echo "$3" |
2993 $SED -e "$lt_replace_pathsep_chars"`
2994 else
2995 func_to_host_path_result=$3
2996 fi
2997 fi
2998 }
2999 # end func_convert_path_check
3000
3001
3002 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
3003 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
3004 # and appending REPL if ORIG matches BACKPAT.
3005 func_convert_path_front_back_pathsep ()
3006 {
3007 $debug_cmd
3008
3009 case $4 in
3010 $1 ) func_to_host_path_result=$3$func_to_host_path_result
3011 ;;
3012 esac
3013 case $4 in
3014 $2 ) func_append func_to_host_path_result "$3"
3015 ;;
3016 esac
3017 }
3018 # end func_convert_path_front_back_pathsep
3019
3020
3021 ##################################################
3022 # $build to $host FILE NAME CONVERSION FUNCTIONS #
3023 ##################################################
3024 # invoked via '$to_host_file_cmd ARG'
3025 #
3026 # In each case, ARG is the path to be converted from $build to $host format.
3027 # Result will be available in $func_to_host_file_result.
3028
3029
3030 # func_to_host_file ARG
3031 # Converts the file name ARG from $build format to $host format. Return result
3032 # in func_to_host_file_result.
3033 func_to_host_file ()
3034 {
3035 $debug_cmd
3036
3037 $to_host_file_cmd "$1"
3038 }
3039 # end func_to_host_file
3040
3041
3042 # func_to_tool_file ARG LAZY
3043 # converts the file name ARG from $build format to toolchain format. Return
3044 # result in func_to_tool_file_result. If the conversion in use is listed
3045 # in (the comma separated) LAZY, no conversion takes place.
3046 func_to_tool_file ()
3047 {
3048 $debug_cmd
3049
3050 case ,$2, in
3051 *,"$to_tool_file_cmd",*)
3052 func_to_tool_file_result=$1
3053 ;;
3054 *)
3055 $to_tool_file_cmd "$1"
3056 func_to_tool_file_result=$func_to_host_file_result
3057 ;;
3058 esac
3059 }
3060 # end func_to_tool_file
3061
3062
3063 # func_convert_file_noop ARG
3064 # Copy ARG to func_to_host_file_result.
3065 func_convert_file_noop ()
3066 {
3067 func_to_host_file_result=$1
3068 }
3069 # end func_convert_file_noop
3070
3071
3072 # func_convert_file_msys_to_w32 ARG
3073 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
3074 # conversion to w32 is not available inside the cwrapper. Returns result in
3075 # func_to_host_file_result.
3076 func_convert_file_msys_to_w32 ()
3077 {
3078 $debug_cmd
3079
3080 func_to_host_file_result=$1
3081 if test -n "$1"; then
3082 func_convert_core_msys_to_w32 "$1"
3083 func_to_host_file_result=$func_convert_core_msys_to_w32_result
3084 fi
3085 func_convert_file_check "$1" "$func_to_host_file_result"
3086 }
3087 # end func_convert_file_msys_to_w32
3088
3089
3090 # func_convert_file_cygwin_to_w32 ARG
3091 # Convert file name ARG from Cygwin to w32 format. Returns result in
3092 # func_to_host_file_result.
3093 func_convert_file_cygwin_to_w32 ()
3094 {
3095 $debug_cmd
3096
3097 func_to_host_file_result=$1
3098 if test -n "$1"; then
3099 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
3100 # LT_CYGPATH in this case.
3101 func_to_host_file_result=`cygpath -m "$1"`
3102 fi
3103 func_convert_file_check "$1" "$func_to_host_file_result"
3104 }
3105 # end func_convert_file_cygwin_to_w32
3106
3107
3108 # func_convert_file_nix_to_w32 ARG
3109 # Convert file name ARG from *nix to w32 format. Requires a wine environment
3110 # and a working winepath. Returns result in func_to_host_file_result.
3111 func_convert_file_nix_to_w32 ()
3112 {
3113 $debug_cmd
3114
3115 func_to_host_file_result=$1
3116 if test -n "$1"; then
3117 func_convert_core_file_wine_to_w32 "$1"
3118 func_to_host_file_result=$func_convert_core_file_wine_to_w32_result
3119 fi
3120 func_convert_file_check "$1" "$func_to_host_file_result"
3121 }
3122 # end func_convert_file_nix_to_w32
3123
3124
3125 # func_convert_file_msys_to_cygwin ARG
3126 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
3127 # Returns result in func_to_host_file_result.
3128 func_convert_file_msys_to_cygwin ()
3129 {
3130 $debug_cmd
3131
3132 func_to_host_file_result=$1
3133 if test -n "$1"; then
3134 func_convert_core_msys_to_w32 "$1"
3135 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3136 func_to_host_file_result=$func_cygpath_result
3137 fi
3138 func_convert_file_check "$1" "$func_to_host_file_result"
3139 }
3140 # end func_convert_file_msys_to_cygwin
3141
3142
3143 # func_convert_file_nix_to_cygwin ARG
3144 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
3145 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
3146 # in func_to_host_file_result.
3147 func_convert_file_nix_to_cygwin ()
3148 {
3149 $debug_cmd
3150
3151 func_to_host_file_result=$1
3152 if test -n "$1"; then
3153 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
3154 func_convert_core_file_wine_to_w32 "$1"
3155 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3156 func_to_host_file_result=$func_cygpath_result
3157 fi
3158 func_convert_file_check "$1" "$func_to_host_file_result"
3159 }
3160 # end func_convert_file_nix_to_cygwin
3161
3162
3163 #############################################
3164 # $build to $host PATH CONVERSION FUNCTIONS #
3165 #############################################
3166 # invoked via '$to_host_path_cmd ARG'
3167 #
3168 # In each case, ARG is the path to be converted from $build to $host format.
3169 # The result will be available in $func_to_host_path_result.
3170 #
3171 # Path separators are also converted from $build format to $host format. If
3172 # ARG begins or ends with a path separator character, it is preserved (but
3173 # converted to $host format) on output.
3174 #
3175 # All path conversion functions are named using the following convention:
3176 # file name conversion function : func_convert_file_X_to_Y ()
3177 # path conversion function : func_convert_path_X_to_Y ()
3178 # where, for any given $build/$host combination the 'X_to_Y' value is the
3179 # same. If conversion functions are added for new $build/$host combinations,
3180 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
3181 # will break.
3182
3183
3184 # func_init_to_host_path_cmd
3185 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
3186 # appropriate value, based on the value of $to_host_file_cmd.
3187 to_host_path_cmd=
3188 func_init_to_host_path_cmd ()
3189 {
3190 $debug_cmd
3191
3192 if test -z "$to_host_path_cmd"; then
3193 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
3194 to_host_path_cmd=func_convert_path_$func_stripname_result
3195 fi
3196 }
3197
3198
3199 # func_to_host_path ARG
3200 # Converts the path ARG from $build format to $host format. Return result
3201 # in func_to_host_path_result.
3202 func_to_host_path ()
3203 {
3204 $debug_cmd
3205
3206 func_init_to_host_path_cmd
3207 $to_host_path_cmd "$1"
3208 }
3209 # end func_to_host_path
3210
3211
3212 # func_convert_path_noop ARG
3213 # Copy ARG to func_to_host_path_result.
3214 func_convert_path_noop ()
3215 {
3216 func_to_host_path_result=$1
3217 }
3218 # end func_convert_path_noop
3219
3220
3221 # func_convert_path_msys_to_w32 ARG
3222 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
3223 # conversion to w32 is not available inside the cwrapper. Returns result in
3224 # func_to_host_path_result.
3225 func_convert_path_msys_to_w32 ()
3226 {
3227 $debug_cmd
3228
3229 func_to_host_path_result=$1
3230 if test -n "$1"; then
3231 # Remove leading and trailing path separator characters from ARG. MSYS
3232 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
3233 # and winepath ignores them completely.
3234 func_stripname : : "$1"
3235 func_to_host_path_tmp1=$func_stripname_result
3236 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
3237 func_to_host_path_result=$func_convert_core_msys_to_w32_result
3238 func_convert_path_check : ";" \
3239 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3240 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
3241 fi
3242 }
3243 # end func_convert_path_msys_to_w32
3244
3245
3246 # func_convert_path_cygwin_to_w32 ARG
3247 # Convert path ARG from Cygwin to w32 format. Returns result in
3248 # func_to_host_file_result.
3249 func_convert_path_cygwin_to_w32 ()
3250 {
3251 $debug_cmd
3252
3253 func_to_host_path_result=$1
3254 if test -n "$1"; then
3255 # See func_convert_path_msys_to_w32:
3256 func_stripname : : "$1"
3257 func_to_host_path_tmp1=$func_stripname_result
3258 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3259 func_convert_path_check : ";" \
3260 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3261 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
3262 fi
3263 }
3264 # end func_convert_path_cygwin_to_w32
3265
3266
3267 # func_convert_path_nix_to_w32 ARG
3268 # Convert path ARG from *nix to w32 format. Requires a wine environment and
3269 # a working winepath. Returns result in func_to_host_file_result.
3270 func_convert_path_nix_to_w32 ()
3271 {
3272 $debug_cmd
3273
3274 func_to_host_path_result=$1
3275 if test -n "$1"; then
3276 # See func_convert_path_msys_to_w32:
3277 func_stripname : : "$1"
3278 func_to_host_path_tmp1=$func_stripname_result
3279 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
3280 func_to_host_path_result=$func_convert_core_path_wine_to_w32_result
3281 func_convert_path_check : ";" \
3282 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3283 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
3284 fi
3285 }
3286 # end func_convert_path_nix_to_w32
3287
3288
3289 # func_convert_path_msys_to_cygwin ARG
3290 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
3291 # Returns result in func_to_host_file_result.
3292 func_convert_path_msys_to_cygwin ()
3293 {
3294 $debug_cmd
3295
3296 func_to_host_path_result=$1
3297 if test -n "$1"; then
3298 # See func_convert_path_msys_to_w32:
3299 func_stripname : : "$1"
3300 func_to_host_path_tmp1=$func_stripname_result
3301 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
3302 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3303 func_to_host_path_result=$func_cygpath_result
3304 func_convert_path_check : : \
3305 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3306 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
3307 fi
3308 }
3309 # end func_convert_path_msys_to_cygwin
3310
3311
3312 # func_convert_path_nix_to_cygwin ARG
3313 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
3314 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
3315 # func_to_host_file_result.
3316 func_convert_path_nix_to_cygwin ()
3317 {
3318 $debug_cmd
3319
3320 func_to_host_path_result=$1
3321 if test -n "$1"; then
3322 # Remove leading and trailing path separator characters from
3323 # ARG. msys behavior is inconsistent here, cygpath turns them
3324 # into '.;' and ';.', and winepath ignores them completely.
3325 func_stripname : : "$1"
3326 func_to_host_path_tmp1=$func_stripname_result
3327 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
3328 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3329 func_to_host_path_result=$func_cygpath_result
3330 func_convert_path_check : : \
3331 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3332 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
3333 fi
3334 }
3335 # end func_convert_path_nix_to_cygwin
3336
3337
3338 # func_dll_def_p FILE
3339 # True iff FILE is a Windows DLL '.def' file.
3340 # Keep in sync with _LT_DLL_DEF_P in libtool.m4
3341 func_dll_def_p ()
3342 {
3343 $debug_cmd
3344
3345 func_dll_def_p_tmp=`$SED -n \
3346 -e 's/^[ ]*//' \
3347 -e '/^\(;.*\)*$/d' \
3348 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3349 -e q \
3350 "$1"`
3351 test DEF = "$func_dll_def_p_tmp"
3352 }
3353
3354
3355 # func_mode_compile arg...
3356 func_mode_compile ()
3357 {
3358 $debug_cmd
3359
3360 # Get the compilation command and the source file.
3361 base_compile=
3362 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3363 suppress_opt=yes
3364 suppress_output=
3365 arg_mode=normal
3366 libobj=
3367 later=
3368 pie_flag=
3369
3370 for arg
3371 do
3372 case $arg_mode in
3373 arg )
3374 # do not "continue". Instead, add this to base_compile
3375 lastarg=$arg
3376 arg_mode=normal
3377 ;;
3378
3379 target )
3380 libobj=$arg
3381 arg_mode=normal
3382 continue
3383 ;;
3384
3385 normal )
3386 # Accept any command-line options.
3387 case $arg in
3388 -o)
3389 test -n "$libobj" && \
3390 func_fatal_error "you cannot specify '-o' more than once"
3391 arg_mode=target
3392 continue
3393 ;;
3394
3395 -pie | -fpie | -fPIE)
3396 func_append pie_flag " $arg"
3397 continue
3398 ;;
3399
3400 -shared | -static | -prefer-pic | -prefer-non-pic)
3401 func_append later " $arg"
3402 continue
3403 ;;
3404
3405 -no-suppress)
3406 suppress_opt=no
3407 continue
3408 ;;
3409
3410 -Xcompiler)
3411 arg_mode=arg # the next one goes into the "base_compile" arg list
3412 continue # The current "srcfile" will either be retained or
3413 ;; # replaced later. I would guess that would be a bug.
3414
3415 -Wc,*)
3416 func_stripname '-Wc,' '' "$arg"
3417 args=$func_stripname_result
3418 lastarg=
3419 save_ifs=$IFS; IFS=,
3420 for arg in $args; do
3421 IFS=$save_ifs
3422 func_append_quoted lastarg "$arg"
3423 done
3424 IFS=$save_ifs
3425 func_stripname ' ' '' "$lastarg"
3426 lastarg=$func_stripname_result
3427
3428 # Add the arguments to base_compile.
3429 func_append base_compile " $lastarg"
3430 continue
3431 ;;
3432
3433 *)
3434 # Accept the current argument as the source file.
3435 # The previous "srcfile" becomes the current argument.
3436 #
3437 lastarg=$srcfile
3438 srcfile=$arg
3439 ;;
3440 esac # case $arg
3441 ;;
3442 esac # case $arg_mode
3443
3444 # Aesthetically quote the previous argument.
3445 func_append_quoted base_compile "$lastarg"
3446 done # for arg
3447
3448 case $arg_mode in
3449 arg)
3450 func_fatal_error "you must specify an argument for -Xcompile"
3451 ;;
3452 target)
3453 func_fatal_error "you must specify a target with '-o'"
3454 ;;
3455 *)
3456 # Get the name of the library object.
3457 test -z "$libobj" && {
3458 func_basename "$srcfile"
3459 libobj=$func_basename_result
3460 }
3461 ;;
3462 esac
3463
3464 # Recognize several different file suffixes.
3465 # If the user specifies -o file.o, it is replaced with file.lo
3466 case $libobj in
3467 *.[cCFSifmso] | \
3468 *.ada | *.adb | *.ads | *.asm | \
3469 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
3470 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
3471 func_xform "$libobj"
3472 libobj=$func_xform_result
3473 ;;
3474 esac
3475
3476 case $libobj in
3477 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
3478 *)
3479 func_fatal_error "cannot determine name of library object from '$libobj'"
3480 ;;
3481 esac
3482
3483 func_infer_tag $base_compile
3484
3485 for arg in $later; do
3486 case $arg in
3487 -shared)
3488 test yes = "$build_libtool_libs" \
3489 || func_fatal_configuration "cannot build a shared library"
3490 build_old_libs=no
3491 continue
3492 ;;
3493
3494 -static)
3495 build_libtool_libs=no
3496 build_old_libs=yes
3497 continue
3498 ;;
3499
3500 -prefer-pic)
3501 pic_mode=yes
3502 continue
3503 ;;
3504
3505 -prefer-non-pic)
3506 pic_mode=no
3507 continue
3508 ;;
3509 esac
3510 done
3511
3512 func_quote_for_eval "$libobj"
3513 test "X$libobj" != "X$func_quote_for_eval_result" \
3514 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
3515 && func_warning "libobj name '$libobj' may not contain shell special characters."
3516 func_dirname_and_basename "$obj" "/" ""
3517 objname=$func_basename_result
3518 xdir=$func_dirname_result
3519 lobj=$xdir$objdir/$objname
3520
3521 test -z "$base_compile" && \
3522 func_fatal_help "you must specify a compilation command"
3523
3524 # Delete any leftover library objects.
3525 if test yes = "$build_old_libs"; then
3526 removelist="$obj $lobj $libobj ${libobj}T"
3527 else
3528 removelist="$lobj $libobj ${libobj}T"
3529 fi
3530
3531 # On Cygwin there's no "real" PIC flag so we must build both object types
3532 case $host_os in
3533 cygwin* | mingw* | pw32* | os2* | cegcc*)
3534 pic_mode=default
3535 ;;
3536 esac
3537 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
3538 # non-PIC code in shared libraries is not supported
3539 pic_mode=default
3540 fi
3541
3542 # Calculate the filename of the output object if compiler does
3543 # not support -o with -c
3544 if test no = "$compiler_c_o"; then
3545 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
3546 lockfile=$output_obj.lock
3547 else
3548 output_obj=
3549 need_locks=no
3550 lockfile=
3551 fi
3552
3553 # Lock this critical section if it is needed
3554 # We use this script file to make the link, it avoids creating a new file
3555 if test yes = "$need_locks"; then
3556 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3557 func_echo "Waiting for $lockfile to be removed"
3558 sleep 2
3559 done
3560 elif test warn = "$need_locks"; then
3561 if test -f "$lockfile"; then
3562 $ECHO "\
3563 *** ERROR, $lockfile exists and contains:
3564 `cat $lockfile 2>/dev/null`
3565
3566 This indicates that another process is trying to use the same
3567 temporary object file, and libtool could not work around it because
3568 your compiler does not support '-c' and '-o' together. If you
3569 repeat this compilation, it may succeed, by chance, but you had better
3570 avoid parallel builds (make -j) in this platform, or get a better
3571 compiler."
3572
3573 $opt_dry_run || $RM $removelist
3574 exit $EXIT_FAILURE
3575 fi
3576 func_append removelist " $output_obj"
3577 $ECHO "$srcfile" > "$lockfile"
3578 fi
3579
3580 $opt_dry_run || $RM $removelist
3581 func_append removelist " $lockfile"
3582 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
3583
3584 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
3585 srcfile=$func_to_tool_file_result
3586 func_quote_for_eval "$srcfile"
3587 qsrcfile=$func_quote_for_eval_result
3588
3589 # Only build a PIC object if we are building libtool libraries.
3590 if test yes = "$build_libtool_libs"; then
3591 # Without this assignment, base_compile gets emptied.
3592 fbsd_hideous_sh_bug=$base_compile
3593
3594 if test no != "$pic_mode"; then
3595 command="$base_compile $qsrcfile $pic_flag"
3596 else
3597 # Don't build PIC code
3598 command="$base_compile $qsrcfile"
3599 fi
3600
3601 func_mkdir_p "$xdir$objdir"
3602
3603 if test -z "$output_obj"; then
3604 # Place PIC objects in $objdir
3605 func_append command " -o $lobj"
3606 fi
3607
3608 func_show_eval_locale "$command" \
3609 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3610
3611 if test warn = "$need_locks" &&
3612 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3613 $ECHO "\
3614 *** ERROR, $lockfile contains:
3615 `cat $lockfile 2>/dev/null`
3616
3617 but it should contain:
3618 $srcfile
3619
3620 This indicates that another process is trying to use the same
3621 temporary object file, and libtool could not work around it because
3622 your compiler does not support '-c' and '-o' together. If you
3623 repeat this compilation, it may succeed, by chance, but you had better
3624 avoid parallel builds (make -j) in this platform, or get a better
3625 compiler."
3626
3627 $opt_dry_run || $RM $removelist
3628 exit $EXIT_FAILURE
3629 fi
3630
3631 # Just move the object if needed, then go on to compile the next one
3632 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3633 func_show_eval '$MV "$output_obj" "$lobj"' \
3634 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
3635 fi
3636
3637 # Allow error messages only from the first compilation.
3638 if test yes = "$suppress_opt"; then
3639 suppress_output=' >/dev/null 2>&1'
3640 fi
3641 fi
3642
3643 # Only build a position-dependent object if we build old libraries.
3644 if test yes = "$build_old_libs"; then
3645 if test yes != "$pic_mode"; then
3646 # Don't build PIC code
3647 command="$base_compile $qsrcfile$pie_flag"
3648 else
3649 command="$base_compile $qsrcfile $pic_flag"
3650 fi
3651 if test yes = "$compiler_c_o"; then
3652 func_append command " -o $obj"
3653 fi
3654
3655 # Suppress compiler output if we already did a PIC compilation.
3656 func_append command "$suppress_output"
3657 func_show_eval_locale "$command" \
3658 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
3659
3660 if test warn = "$need_locks" &&
3661 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3662 $ECHO "\
3663 *** ERROR, $lockfile contains:
3664 `cat $lockfile 2>/dev/null`
3665
3666 but it should contain:
3667 $srcfile
3668
3669 This indicates that another process is trying to use the same
3670 temporary object file, and libtool could not work around it because
3671 your compiler does not support '-c' and '-o' together. If you
3672 repeat this compilation, it may succeed, by chance, but you had better
3673 avoid parallel builds (make -j) in this platform, or get a better
3674 compiler."
3675
3676 $opt_dry_run || $RM $removelist
3677 exit $EXIT_FAILURE
3678 fi
3679
3680 # Just move the object if needed
3681 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3682 func_show_eval '$MV "$output_obj" "$obj"' \
3683 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
3684 fi
3685 fi
3686
3687 $opt_dry_run || {
3688 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
3689
3690 # Unlock the critical section if it was locked
3691 if test no != "$need_locks"; then
3692 removelist=$lockfile
3693 $RM "$lockfile"
3694 fi
3695 }
3696
3697 exit $EXIT_SUCCESS
3698 }
3699
3700 $opt_help || {
3701 test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
3702 }
3703
3704 func_mode_help ()
3705 {
3706 # We need to display help for each of the modes.
3707 case $opt_mode in
3708 "")
3709 # Generic help is extracted from the usage comments
3710 # at the start of this file.
3711 func_help
3712 ;;
3713
3714 clean)
3715 $ECHO \
3716 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3717
3718 Remove files from the build directory.
3719
3720 RM is the name of the program to use to delete files associated with each FILE
3721 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3722 to RM.
3723
3724 If FILE is a libtool library, object or program, all the files associated
3725 with it are deleted. Otherwise, only FILE itself is deleted using RM."
3726 ;;
3727
3728 compile)
3729 $ECHO \
3730 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3731
3732 Compile a source file into a libtool library object.
3733
3734 This mode accepts the following additional options:
3735
3736 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3737 -no-suppress do not suppress compiler output for multiple passes
3738 -prefer-pic try to build PIC objects only
3739 -prefer-non-pic try to build non-PIC objects only
3740 -shared do not build a '.o' file suitable for static linking
3741 -static only build a '.o' file suitable for static linking
3742 -Wc,FLAG pass FLAG directly to the compiler
3743
3744 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
3745 from the given SOURCEFILE.
3746
3747 The output file name is determined by removing the directory component from
3748 SOURCEFILE, then substituting the C source code suffix '.c' with the
3749 library object suffix, '.lo'."
3750 ;;
3751
3752 execute)
3753 $ECHO \
3754 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
3755
3756 Automatically set library path, then run a program.
3757
3758 This mode accepts the following additional options:
3759
3760 -dlopen FILE add the directory containing FILE to the library path
3761
3762 This mode sets the library path environment variable according to '-dlopen'
3763 flags.
3764
3765 If any of the ARGS are libtool executable wrappers, then they are translated
3766 into their corresponding uninstalled binary, and any of their required library
3767 directories are added to the library path.
3768
3769 Then, COMMAND is executed, with ARGS as arguments."
3770 ;;
3771
3772 finish)
3773 $ECHO \
3774 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
3775
3776 Complete the installation of libtool libraries.
3777
3778 Each LIBDIR is a directory that contains libtool libraries.
3779
3780 The commands that this mode executes may require superuser privileges. Use
3781 the '--dry-run' option if you just want to see what would be executed."
3782 ;;
3783
3784 install)
3785 $ECHO \
3786 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
3787
3788 Install executables or libraries.
3789
3790 INSTALL-COMMAND is the installation command. The first component should be
3791 either the 'install' or 'cp' program.
3792
3793 The following components of INSTALL-COMMAND are treated specially:
3794
3795 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
3796
3797 The rest of the components are interpreted as arguments to that command (only
3798 BSD-compatible install options are recognized)."
3799 ;;
3800
3801 link)
3802 $ECHO \
3803 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
3804
3805 Link object files or libraries together to form another library, or to
3806 create an executable program.
3807
3808 LINK-COMMAND is a command using the C compiler that you would use to create
3809 a program from several object files.
3810
3811 The following components of LINK-COMMAND are treated specially:
3812
3813 -all-static do not do any dynamic linking at all
3814 -avoid-version do not add a version suffix if possible
3815 -bindir BINDIR specify path to binaries directory (for systems where
3816 libraries must be found in the PATH setting at runtime)
3817 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
3818 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3819 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3820 -export-symbols SYMFILE
3821 try to export only the symbols listed in SYMFILE
3822 -export-symbols-regex REGEX
3823 try to export only the symbols matching REGEX
3824 -LLIBDIR search LIBDIR for required installed libraries
3825 -lNAME OUTPUT-FILE requires the installed library libNAME
3826 -module build a library that can dlopened
3827 -no-fast-install disable the fast-install mode
3828 -no-install link a not-installable executable
3829 -no-undefined declare that a library does not refer to external symbols
3830 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3831 -objectlist FILE use a list of object files found in FILE to specify objects
3832 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
3833 -precious-files-regex REGEX
3834 don't remove output files matching REGEX
3835 -release RELEASE specify package release information
3836 -rpath LIBDIR the created library will eventually be installed in LIBDIR
3837 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
3838 -shared only do dynamic linking of libtool libraries
3839 -shrext SUFFIX override the standard shared library file extension
3840 -static do not do any dynamic linking of uninstalled libtool libraries
3841 -static-libtool-libs
3842 do not do any dynamic linking of libtool libraries
3843 -version-info CURRENT[:REVISION[:AGE]]
3844 specify library version info [each variable defaults to 0]
3845 -weak LIBNAME declare that the target provides the LIBNAME interface
3846 -Wc,FLAG
3847 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
3848 -Wl,FLAG
3849 -Xlinker FLAG pass linker-specific FLAG directly to the linker
3850 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
3851
3852 All other options (arguments beginning with '-') are ignored.
3853
3854 Every other argument is treated as a filename. Files ending in '.la' are
3855 treated as uninstalled libtool libraries, other files are standard or library
3856 object files.
3857
3858 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3859 only library objects ('.lo' files) may be specified, and '-rpath' is
3860 required, except when creating a convenience library.
3861
3862 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3863 using 'ar' and 'ranlib', or on Windows using 'lib'.
3864
3865 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
3866 is created, otherwise an executable program is created."
3867 ;;
3868
3869 uninstall)
3870 $ECHO \
3871 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
3872
3873 Remove libraries from an installation directory.
3874
3875 RM is the name of the program to use to delete files associated with each FILE
3876 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3877 to RM.
3878
3879 If FILE is a libtool library, all the files associated with it are deleted.
3880 Otherwise, only FILE itself is deleted using RM."
3881 ;;
3882
3883 *)
3884 func_fatal_help "invalid operation mode '$opt_mode'"
3885 ;;
3886 esac
3887
3888 echo
3889 $ECHO "Try '$progname --help' for more information about other modes."
3890 }
3891
3892 # Now that we've collected a possible --mode arg, show help if necessary
3893 if $opt_help; then
3894 if test : = "$opt_help"; then
3895 func_mode_help
3896 else
3897 {
3898 func_help noexit
3899 for opt_mode in compile link execute install finish uninstall clean; do
3900 func_mode_help
3901 done
3902 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
3903 {
3904 func_help noexit
3905 for opt_mode in compile link execute install finish uninstall clean; do
3906 echo
3907 func_mode_help
3908 done
3909 } |
3910 $SED '1d
3911 /^When reporting/,/^Report/{
3912 H
3913 d
3914 }
3915 $x
3916 /information about other modes/d
3917 /more detailed .*MODE/d
3918 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
3919 fi
3920 exit $?
3921 fi
3922
3923
3924 # func_mode_execute arg...
3925 func_mode_execute ()
3926 {
3927 $debug_cmd
3928
3929 # The first argument is the command name.
3930 cmd=$nonopt
3931 test -z "$cmd" && \
3932 func_fatal_help "you must specify a COMMAND"
3933
3934 # Handle -dlopen flags immediately.
3935 for file in $opt_dlopen; do
3936 test -f "$file" \
3937 || func_fatal_help "'$file' is not a file"
3938
3939 dir=
3940 case $file in
3941 *.la)
3942 func_resolve_sysroot "$file"
3943 file=$func_resolve_sysroot_result
3944
3945 # Check to see that this really is a libtool archive.
3946 func_lalib_unsafe_p "$file" \
3947 || func_fatal_help "'$lib' is not a valid libtool archive"
3948
3949 # Read the libtool library.
3950 dlname=
3951 library_names=
3952 func_source "$file"
3953
3954 # Skip this library if it cannot be dlopened.
3955 if test -z "$dlname"; then
3956 # Warn if it was a shared library.
3957 test -n "$library_names" && \
3958 func_warning "'$file' was not linked with '-export-dynamic'"
3959 continue
3960 fi
3961
3962 func_dirname "$file" "" "."
3963 dir=$func_dirname_result
3964
3965 if test -f "$dir/$objdir/$dlname"; then
3966 func_append dir "/$objdir"
3967 else
3968 if test ! -f "$dir/$dlname"; then
3969 func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'"
3970 fi
3971 fi
3972 ;;
3973
3974 *.lo)
3975 # Just add the directory containing the .lo file.
3976 func_dirname "$file" "" "."
3977 dir=$func_dirname_result
3978 ;;
3979
3980 *)
3981 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
3982 continue
3983 ;;
3984 esac
3985
3986 # Get the absolute pathname.
3987 absdir=`cd "$dir" && pwd`
3988 test -n "$absdir" && dir=$absdir
3989
3990 # Now add the directory to shlibpath_var.
3991 if eval "test -z \"\$$shlibpath_var\""; then
3992 eval "$shlibpath_var=\"\$dir\""
3993 else
3994 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
3995 fi
3996 done
3997
3998 # This variable tells wrapper scripts just to set shlibpath_var
3999 # rather than running their programs.
4000 libtool_execute_magic=$magic
4001
4002 # Check if any of the arguments is a wrapper script.
4003 args=
4004 for file
4005 do
4006 case $file in
4007 -* | *.la | *.lo ) ;;
4008 *)
4009 # Do a test to see if this is really a libtool program.
4010 if func_ltwrapper_script_p "$file"; then
4011 func_source "$file"
4012 # Transform arg to wrapped name.
4013 file=$progdir/$program
4014 elif func_ltwrapper_executable_p "$file"; then
4015 func_ltwrapper_scriptname "$file"
4016 func_source "$func_ltwrapper_scriptname_result"
4017 # Transform arg to wrapped name.
4018 file=$progdir/$program
4019 fi
4020 ;;
4021 esac
4022 # Quote arguments (to preserve shell metacharacters).
4023 func_append_quoted args "$file"
4024 done
4025
4026 if $opt_dry_run; then
4027 # Display what would be done.
4028 if test -n "$shlibpath_var"; then
4029 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
4030 echo "export $shlibpath_var"
4031 fi
4032 $ECHO "$cmd$args"
4033 exit $EXIT_SUCCESS
4034 else
4035 if test -n "$shlibpath_var"; then
4036 # Export the shlibpath_var.
4037 eval "export $shlibpath_var"
4038 fi
4039
4040 # Restore saved environment variables
4041 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
4042 do
4043 eval "if test \"\${save_$lt_var+set}\" = set; then
4044 $lt_var=\$save_$lt_var; export $lt_var
4045 else
4046 $lt_unset $lt_var
4047 fi"
4048 done
4049
4050 # Now prepare to actually exec the command.
4051 exec_cmd=\$cmd$args
4052 fi
4053 }
4054
4055 test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
4056
4057
4058 # func_mode_finish arg...
4059 func_mode_finish ()
4060 {
4061 $debug_cmd
4062
4063 libs=
4064 libdirs=
4065 admincmds=
4066
4067 for opt in "$nonopt" ${1+"$@"}
4068 do
4069 if test -d "$opt"; then
4070 func_append libdirs " $opt"
4071
4072 elif test -f "$opt"; then
4073 if func_lalib_unsafe_p "$opt"; then
4074 func_append libs " $opt"
4075 else
4076 func_warning "'$opt' is not a valid libtool archive"
4077 fi
4078
4079 else
4080 func_fatal_error "invalid argument '$opt'"
4081 fi
4082 done
4083
4084 if test -n "$libs"; then
4085 if test -n "$lt_sysroot"; then
4086 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
4087 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
4088 else
4089 sysroot_cmd=
4090 fi
4091
4092 # Remove sysroot references
4093 if $opt_dry_run; then
4094 for lib in $libs; do
4095 echo "removing references to $lt_sysroot and '=' prefixes from $lib"
4096 done
4097 else
4098 tmpdir=`func_mktempdir`
4099 for lib in $libs; do
4100 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4101 > $tmpdir/tmp-la
4102 mv -f $tmpdir/tmp-la $lib
4103 done
4104 ${RM}r "$tmpdir"
4105 fi
4106 fi
4107
4108 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4109 for libdir in $libdirs; do
4110 if test -n "$finish_cmds"; then
4111 # Do each command in the finish commands.
4112 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
4113 '"$cmd"'"'
4114 fi
4115 if test -n "$finish_eval"; then
4116 # Do the single finish_eval.
4117 eval cmds=\"$finish_eval\"
4118 $opt_dry_run || eval "$cmds" || func_append admincmds "
4119 $cmds"
4120 fi
4121 done
4122 fi
4123
4124 # Exit here if they wanted silent mode.
4125 $opt_quiet && exit $EXIT_SUCCESS
4126
4127 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4128 echo "----------------------------------------------------------------------"
4129 echo "Libraries have been installed in:"
4130 for libdir in $libdirs; do
4131 $ECHO " $libdir"
4132 done
4133 echo
4134 echo "If you ever happen to want to link against installed libraries"
4135 echo "in a given directory, LIBDIR, you must either use libtool, and"
4136 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4137 echo "flag during linking and do at least one of the following:"
4138 if test -n "$shlibpath_var"; then
4139 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4140 echo " during execution"
4141 fi
4142 if test -n "$runpath_var"; then
4143 echo " - add LIBDIR to the '$runpath_var' environment variable"
4144 echo " during linking"
4145 fi
4146 if test -n "$hardcode_libdir_flag_spec"; then
4147 libdir=LIBDIR
4148 eval flag=\"$hardcode_libdir_flag_spec\"
4149
4150 $ECHO " - use the '$flag' linker flag"
4151 fi
4152 if test -n "$admincmds"; then
4153 $ECHO " - have your system administrator run these commands:$admincmds"
4154 fi
4155 if test -f /etc/ld.so.conf; then
4156 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4157 fi
4158 echo
4159
4160 echo "See any operating system documentation about shared libraries for"
4161 case $host in
4162 solaris2.[6789]|solaris2.1[0-9])
4163 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
4164 echo "pages."
4165 ;;
4166 *)
4167 echo "more information, such as the ld(1) and ld.so(8) manual pages."
4168 ;;
4169 esac
4170 echo "----------------------------------------------------------------------"
4171 fi
4172 exit $EXIT_SUCCESS
4173 }
4174
4175 test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
4176
4177
4178 # func_mode_install arg...
4179 func_mode_install ()
4180 {
4181 $debug_cmd
4182
4183 # There may be an optional sh(1) argument at the beginning of
4184 # install_prog (especially on Windows NT).
4185 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
4186 # Allow the use of GNU shtool's install command.
4187 case $nonopt in *shtool*) :;; *) false;; esac
4188 then
4189 # Aesthetically quote it.
4190 func_quote_for_eval "$nonopt"
4191 install_prog="$func_quote_for_eval_result "
4192 arg=$1
4193 shift
4194 else
4195 install_prog=
4196 arg=$nonopt
4197 fi
4198
4199 # The real first argument should be the name of the installation program.
4200 # Aesthetically quote it.
4201 func_quote_for_eval "$arg"
4202 func_append install_prog "$func_quote_for_eval_result"
4203 install_shared_prog=$install_prog
4204 case " $install_prog " in
4205 *[\\\ /]cp\ *) install_cp=: ;;
4206 *) install_cp=false ;;
4207 esac
4208
4209 # We need to accept at least all the BSD install flags.
4210 dest=
4211 files=
4212 opts=
4213 prev=
4214 install_type=
4215 isdir=false
4216 stripme=
4217 no_mode=:
4218 for arg
4219 do
4220 arg2=
4221 if test -n "$dest"; then
4222 func_append files " $dest"
4223 dest=$arg
4224 continue
4225 fi
4226
4227 case $arg in
4228 -d) isdir=: ;;
4229 -f)
4230 if $install_cp; then :; else
4231 prev=$arg
4232 fi
4233 ;;
4234 -g | -m | -o)
4235 prev=$arg
4236 ;;
4237 -s)
4238 stripme=" -s"
4239 continue
4240 ;;
4241 -*)
4242 ;;
4243 *)
4244 # If the previous option needed an argument, then skip it.
4245 if test -n "$prev"; then
4246 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4247 arg2=$install_override_mode
4248 no_mode=false
4249 fi
4250 prev=
4251 else
4252 dest=$arg
4253 continue
4254 fi
4255 ;;
4256 esac
4257
4258 # Aesthetically quote the argument.
4259 func_quote_for_eval "$arg"
4260 func_append install_prog " $func_quote_for_eval_result"
4261 if test -n "$arg2"; then
4262 func_quote_for_eval "$arg2"
4263 fi
4264 func_append install_shared_prog " $func_quote_for_eval_result"
4265 done
4266
4267 test -z "$install_prog" && \
4268 func_fatal_help "you must specify an install program"
4269
4270 test -n "$prev" && \
4271 func_fatal_help "the '$prev' option requires an argument"
4272
4273 if test -n "$install_override_mode" && $no_mode; then
4274 if $install_cp; then :; else
4275 func_quote_for_eval "$install_override_mode"
4276 func_append install_shared_prog " -m $func_quote_for_eval_result"
4277 fi
4278 fi
4279
4280 if test -z "$files"; then
4281 if test -z "$dest"; then
4282 func_fatal_help "no file or destination specified"
4283 else
4284 func_fatal_help "you must specify a destination"
4285 fi
4286 fi
4287
4288 # Strip any trailing slash from the destination.
4289 func_stripname '' '/' "$dest"
4290 dest=$func_stripname_result
4291
4292 # Check to see that the destination is a directory.
4293 test -d "$dest" && isdir=:
4294 if $isdir; then
4295 destdir=$dest
4296 destname=
4297 else
4298 func_dirname_and_basename "$dest" "" "."
4299 destdir=$func_dirname_result
4300 destname=$func_basename_result
4301
4302 # Not a directory, so check to see that there is only one file specified.
4303 set dummy $files; shift
4304 test "$#" -gt 1 && \
4305 func_fatal_help "'$dest' is not a directory"
4306 fi
4307 case $destdir in
4308 [\\/]* | [A-Za-z]:[\\/]*) ;;
4309 *)
4310 for file in $files; do
4311 case $file in
4312 *.lo) ;;
4313 *)
4314 func_fatal_help "'$destdir' must be an absolute directory name"
4315 ;;
4316 esac
4317 done
4318 ;;
4319 esac
4320
4321 # This variable tells wrapper scripts just to set variables rather
4322 # than running their programs.
4323 libtool_install_magic=$magic
4324
4325 staticlibs=
4326 future_libdirs=
4327 current_libdirs=
4328 for file in $files; do
4329
4330 # Do each installation.
4331 case $file in
4332 *.$libext)
4333 # Do the static libraries later.
4334 func_append staticlibs " $file"
4335 ;;
4336
4337 *.la)
4338 func_resolve_sysroot "$file"
4339 file=$func_resolve_sysroot_result
4340
4341 # Check to see that this really is a libtool archive.
4342 func_lalib_unsafe_p "$file" \
4343 || func_fatal_help "'$file' is not a valid libtool archive"
4344
4345 library_names=
4346 old_library=
4347 relink_command=
4348 func_source "$file"
4349
4350 # Add the libdir to current_libdirs if it is the destination.
4351 if test "X$destdir" = "X$libdir"; then
4352 case "$current_libdirs " in
4353 *" $libdir "*) ;;
4354 *) func_append current_libdirs " $libdir" ;;
4355 esac
4356 else
4357 # Note the libdir as a future libdir.
4358 case "$future_libdirs " in
4359 *" $libdir "*) ;;
4360 *) func_append future_libdirs " $libdir" ;;
4361 esac
4362 fi
4363
4364 func_dirname "$file" "/" ""
4365 dir=$func_dirname_result
4366 func_append dir "$objdir"
4367
4368 if test -n "$relink_command"; then
4369 # Determine the prefix the user has applied to our future dir.
4370 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4371
4372 # Don't allow the user to place us outside of our expected
4373 # location b/c this prevents finding dependent libraries that
4374 # are installed to the same prefix.
4375 # At present, this check doesn't affect windows .dll's that
4376 # are installed into $libdir/../bin (currently, that works fine)
4377 # but it's something to keep an eye on.
4378 test "$inst_prefix_dir" = "$destdir" && \
4379 func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir"
4380
4381 if test -n "$inst_prefix_dir"; then
4382 # Stick the inst_prefix_dir data into the link command.
4383 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
4384 else
4385 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
4386 fi
4387
4388 func_warning "relinking '$file'"
4389 func_show_eval "$relink_command" \
4390 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"'
4391 fi
4392
4393 # See the names of the shared library.
4394 set dummy $library_names; shift
4395 if test -n "$1"; then
4396 realname=$1
4397 shift
4398
4399 srcname=$realname
4400 test -n "$relink_command" && srcname=${realname}T
4401
4402 # Install the shared library and build the symlinks.
4403 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
4404 'exit $?'
4405 tstripme=$stripme
4406 case $host_os in
4407 cygwin* | mingw* | pw32* | cegcc*)
4408 case $realname in
4409 *.dll.a)
4410 tstripme=
4411 ;;
4412 esac
4413 ;;
4414 os2*)
4415 case $realname in
4416 *_dll.a)
4417 tstripme=
4418 ;;
4419 esac
4420 ;;
4421 esac
4422 if test -n "$tstripme" && test -n "$striplib"; then
4423 func_show_eval "$striplib $destdir/$realname" 'exit $?'
4424 fi
4425
4426 if test "$#" -gt 0; then
4427 # Delete the old symlinks, and create new ones.
4428 # Try 'ln -sf' first, because the 'ln' binary might depend on
4429 # the symlink we replace! Solaris /bin/ln does not understand -f,
4430 # so we also need to try rm && ln -s.
4431 for linkname
4432 do
4433 test "$linkname" != "$realname" \
4434 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
4435 done
4436 fi
4437
4438 # Do each command in the postinstall commands.
4439 lib=$destdir/$realname
4440 func_execute_cmds "$postinstall_cmds" 'exit $?'
4441 fi
4442
4443 # Install the pseudo-library for information purposes.
4444 func_basename "$file"
4445 name=$func_basename_result
4446 instname=$dir/${name}i
4447 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
4448
4449 # Maybe install the static library, too.
4450 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4451 ;;
4452
4453 *.lo)
4454 # Install (i.e. copy) a libtool object.
4455
4456 # Figure out destination file name, if it wasn't already specified.
4457 if test -n "$destname"; then
4458 destfile=$destdir/$destname
4459 else
4460 func_basename "$file"
4461 destfile=$func_basename_result
4462 destfile=$destdir/$destfile
4463 fi
4464
4465 # Deduce the name of the destination old-style object file.
4466 case $destfile in
4467 *.lo)
4468 func_lo2o "$destfile"
4469 staticdest=$func_lo2o_result
4470 ;;
4471 *.$objext)
4472 staticdest=$destfile
4473 destfile=
4474 ;;
4475 *)
4476 func_fatal_help "cannot copy a libtool object to '$destfile'"
4477 ;;
4478 esac
4479
4480 # Install the libtool object if requested.
4481 test -n "$destfile" && \
4482 func_show_eval "$install_prog $file $destfile" 'exit $?'
4483
4484 # Install the old object if enabled.
4485 if test yes = "$build_old_libs"; then
4486 # Deduce the name of the old-style object file.
4487 func_lo2o "$file"
4488 staticobj=$func_lo2o_result
4489 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
4490 fi
4491 exit $EXIT_SUCCESS
4492 ;;
4493
4494 *)
4495 # Figure out destination file name, if it wasn't already specified.
4496 if test -n "$destname"; then
4497 destfile=$destdir/$destname
4498 else
4499 func_basename "$file"
4500 destfile=$func_basename_result
4501 destfile=$destdir/$destfile
4502 fi
4503
4504 # If the file is missing, and there is a .exe on the end, strip it
4505 # because it is most likely a libtool script we actually want to
4506 # install
4507 stripped_ext=
4508 case $file in
4509 *.exe)
4510 if test ! -f "$file"; then
4511 func_stripname '' '.exe' "$file"
4512 file=$func_stripname_result
4513 stripped_ext=.exe
4514 fi
4515 ;;
4516 esac
4517
4518 # Do a test to see if this is really a libtool program.
4519 case $host in
4520 *cygwin* | *mingw*)
4521 if func_ltwrapper_executable_p "$file"; then
4522 func_ltwrapper_scriptname "$file"
4523 wrapper=$func_ltwrapper_scriptname_result
4524 else
4525 func_stripname '' '.exe' "$file"
4526 wrapper=$func_stripname_result
4527 fi
4528 ;;
4529 *)
4530 wrapper=$file
4531 ;;
4532 esac
4533 if func_ltwrapper_script_p "$wrapper"; then
4534 notinst_deplibs=
4535 relink_command=
4536
4537 func_source "$wrapper"
4538
4539 # Check the variables that should have been set.
4540 test -z "$generated_by_libtool_version" && \
4541 func_fatal_error "invalid libtool wrapper script '$wrapper'"
4542
4543 finalize=:
4544 for lib in $notinst_deplibs; do
4545 # Check to see that each library is installed.
4546 libdir=
4547 if test -f "$lib"; then
4548 func_source "$lib"
4549 fi
4550 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
4551 if test -n "$libdir" && test ! -f "$libfile"; then
4552 func_warning "'$lib' has not been installed in '$libdir'"
4553 finalize=false
4554 fi
4555 done
4556
4557 relink_command=
4558 func_source "$wrapper"
4559
4560 outputname=
4561 if test no = "$fast_install" && test -n "$relink_command"; then
4562 $opt_dry_run || {
4563 if $finalize; then
4564 tmpdir=`func_mktempdir`
4565 func_basename "$file$stripped_ext"
4566 file=$func_basename_result
4567 outputname=$tmpdir/$file
4568 # Replace the output file specification.
4569 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
4570
4571 $opt_quiet || {
4572 func_quote_for_expand "$relink_command"
4573 eval "func_echo $func_quote_for_expand_result"
4574 }
4575 if eval "$relink_command"; then :
4576 else
4577 func_error "error: relink '$file' with the above command before installing it"
4578 $opt_dry_run || ${RM}r "$tmpdir"
4579 continue
4580 fi
4581 file=$outputname
4582 else
4583 func_warning "cannot relink '$file'"
4584 fi
4585 }
4586 else
4587 # Install the binary that we compiled earlier.
4588 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
4589 fi
4590 fi
4591
4592 # remove .exe since cygwin /usr/bin/install will append another
4593 # one anyway
4594 case $install_prog,$host in
4595 */usr/bin/install*,*cygwin*)
4596 case $file:$destfile in
4597 *.exe:*.exe)
4598 # this is ok
4599 ;;
4600 *.exe:*)
4601 destfile=$destfile.exe
4602 ;;
4603 *:*.exe)
4604 func_stripname '' '.exe' "$destfile"
4605 destfile=$func_stripname_result
4606 ;;
4607 esac
4608 ;;
4609 esac
4610 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
4611 $opt_dry_run || if test -n "$outputname"; then
4612 ${RM}r "$tmpdir"
4613 fi
4614 ;;
4615 esac
4616 done
4617
4618 for file in $staticlibs; do
4619 func_basename "$file"
4620 name=$func_basename_result
4621
4622 # Set up the ranlib parameters.
4623 oldlib=$destdir/$name
4624 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
4625 tool_oldlib=$func_to_tool_file_result
4626
4627 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
4628
4629 if test -n "$stripme" && test -n "$old_striplib"; then
4630 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
4631 fi
4632
4633 # Do each command in the postinstall commands.
4634 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
4635 done
4636
4637 test -n "$future_libdirs" && \
4638 func_warning "remember to run '$progname --finish$future_libdirs'"
4639
4640 if test -n "$current_libdirs"; then
4641 # Maybe just do a dry run.
4642 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4643 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4644 else
4645 exit $EXIT_SUCCESS
4646 fi
4647 }
4648
4649 test install = "$opt_mode" && func_mode_install ${1+"$@"}
4650
4651
4652 # func_generate_dlsyms outputname originator pic_p
4653 # Extract symbols from dlprefiles and create ${outputname}S.o with
4654 # a dlpreopen symbol table.
4655 func_generate_dlsyms ()
4656 {
4657 $debug_cmd
4658
4659 my_outputname=$1
4660 my_originator=$2
4661 my_pic_p=${3-false}
4662 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4663 my_dlsyms=
4664
4665 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4666 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4667 my_dlsyms=${my_outputname}S.c
4668 else
4669 func_error "not configured to extract global symbols from dlpreopened files"
4670 fi
4671 fi
4672
4673 if test -n "$my_dlsyms"; then
4674 case $my_dlsyms in
4675 "") ;;
4676 *.c)
4677 # Discover the nlist of each of the dlfiles.
4678 nlist=$output_objdir/$my_outputname.nm
4679
4680 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
4681
4682 # Parse the name list into a source file.
4683 func_verbose "creating $output_objdir/$my_dlsyms"
4684
4685 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
4686 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4687 /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */
4688
4689 #ifdef __cplusplus
4690 extern \"C\" {
4691 #endif
4692
4693 #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
4694 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4695 #endif
4696
4697 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4698 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4699 /* DATA imports from DLLs on WIN32 can't be const, because runtime
4700 relocations are performed -- see ld's documentation on pseudo-relocs. */
4701 # define LT_DLSYM_CONST
4702 #elif defined __osf__
4703 /* This system does not cope well with relocations in const data. */
4704 # define LT_DLSYM_CONST
4705 #else
4706 # define LT_DLSYM_CONST const
4707 #endif
4708
4709 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
4710
4711 /* External symbol declarations for the compiler. */\
4712 "
4713
4714 if test yes = "$dlself"; then
4715 func_verbose "generating symbol list for '$output'"
4716
4717 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
4718
4719 # Add our own program objects to the symbol list.
4720 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
4721 for progfile in $progfiles; do
4722 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
4723 func_verbose "extracting global C symbols from '$func_to_tool_file_result'"
4724 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
4725 done
4726
4727 if test -n "$exclude_expsyms"; then
4728 $opt_dry_run || {
4729 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4730 eval '$MV "$nlist"T "$nlist"'
4731 }
4732 fi
4733
4734 if test -n "$export_symbols_regex"; then
4735 $opt_dry_run || {
4736 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4737 eval '$MV "$nlist"T "$nlist"'
4738 }
4739 fi
4740
4741 # Prepare the list of exported symbols
4742 if test -z "$export_symbols"; then
4743 export_symbols=$output_objdir/$outputname.exp
4744 $opt_dry_run || {
4745 $RM $export_symbols
4746 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4747 case $host in
4748 *cygwin* | *mingw* | *cegcc* )
4749 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4750 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4751 ;;
4752 esac
4753 }
4754 else
4755 $opt_dry_run || {
4756 eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4757 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4758 eval '$MV "$nlist"T "$nlist"'
4759 case $host in
4760 *cygwin* | *mingw* | *cegcc* )
4761 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4762 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4763 ;;
4764 esac
4765 }
4766 fi
4767 fi
4768
4769 for dlprefile in $dlprefiles; do
4770 func_verbose "extracting global C symbols from '$dlprefile'"
4771 func_basename "$dlprefile"
4772 name=$func_basename_result
4773 case $host in
4774 *cygwin* | *mingw* | *cegcc* )
4775 # if an import library, we need to obtain dlname
4776 if func_win32_import_lib_p "$dlprefile"; then
4777 func_tr_sh "$dlprefile"
4778 eval "curr_lafile=\$libfile_$func_tr_sh_result"
4779 dlprefile_dlbasename=
4780 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
4781 # Use subshell, to avoid clobbering current variable values
4782 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
4783 if test -n "$dlprefile_dlname"; then
4784 func_basename "$dlprefile_dlname"
4785 dlprefile_dlbasename=$func_basename_result
4786 else
4787 # no lafile. user explicitly requested -dlpreopen <import library>.
4788 $sharedlib_from_linklib_cmd "$dlprefile"
4789 dlprefile_dlbasename=$sharedlib_from_linklib_result
4790 fi
4791 fi
4792 $opt_dry_run || {
4793 if test -n "$dlprefile_dlbasename"; then
4794 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
4795 else
4796 func_warning "Could not compute DLL name from $name"
4797 eval '$ECHO ": $name " >> "$nlist"'
4798 fi
4799 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
4800 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
4801 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
4802 }
4803 else # not an import lib
4804 $opt_dry_run || {
4805 eval '$ECHO ": $name " >> "$nlist"'
4806 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
4807 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
4808 }
4809 fi
4810 ;;
4811 *)
4812 $opt_dry_run || {
4813 eval '$ECHO ": $name " >> "$nlist"'
4814 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
4815 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
4816 }
4817 ;;
4818 esac
4819 done
4820
4821 $opt_dry_run || {
4822 # Make sure we have at least an empty file.
4823 test -f "$nlist" || : > "$nlist"
4824
4825 if test -n "$exclude_expsyms"; then
4826 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4827 $MV "$nlist"T "$nlist"
4828 fi
4829
4830 # Try sorting and uniquifying the output.
4831 if $GREP -v "^: " < "$nlist" |
4832 if sort -k 3 </dev/null >/dev/null 2>&1; then
4833 sort -k 3
4834 else
4835 sort +2
4836 fi |
4837 uniq > "$nlist"S; then
4838 :
4839 else
4840 $GREP -v "^: " < "$nlist" > "$nlist"S
4841 fi
4842
4843 if test -f "$nlist"S; then
4844 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
4845 else
4846 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
4847 fi
4848
4849 func_show_eval '$RM "${nlist}I"'
4850 if test -n "$global_symbol_to_import"; then
4851 eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
4852 fi
4853
4854 echo >> "$output_objdir/$my_dlsyms" "\
4855
4856 /* The mapping between symbol names and symbols. */
4857 typedef struct {
4858 const char *name;
4859 void *address;
4860 } lt_dlsymlist;
4861 extern LT_DLSYM_CONST lt_dlsymlist
4862 lt_${my_prefix}_LTX_preloaded_symbols[];\
4863 "
4864
4865 if test -s "$nlist"I; then
4866 echo >> "$output_objdir/$my_dlsyms" "\
4867 static void lt_syminit(void)
4868 {
4869 LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
4870 for (; symbol->name; ++symbol)
4871 {"
4872 $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
4873 echo >> "$output_objdir/$my_dlsyms" "\
4874 }
4875 }"
4876 fi
4877 echo >> "$output_objdir/$my_dlsyms" "\
4878 LT_DLSYM_CONST lt_dlsymlist
4879 lt_${my_prefix}_LTX_preloaded_symbols[] =
4880 { {\"$my_originator\", (void *) 0},"
4881
4882 if test -s "$nlist"I; then
4883 echo >> "$output_objdir/$my_dlsyms" "\
4884 {\"@INIT@\", (void *) &lt_syminit},"
4885 fi
4886
4887 case $need_lib_prefix in
4888 no)
4889 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
4890 ;;
4891 *)
4892 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
4893 ;;
4894 esac
4895 echo >> "$output_objdir/$my_dlsyms" "\
4896 {0, (void *) 0}
4897 };
4898
4899 /* This works around a problem in FreeBSD linker */
4900 #ifdef FREEBSD_WORKAROUND
4901 static const void *lt_preloaded_setup() {
4902 return lt_${my_prefix}_LTX_preloaded_symbols;
4903 }
4904 #endif
4905
4906 #ifdef __cplusplus
4907 }
4908 #endif\
4909 "
4910 } # !$opt_dry_run
4911
4912 pic_flag_for_symtable=
4913 case "$compile_command " in
4914 *" -static "*) ;;
4915 *)
4916 case $host in
4917 # compiling the symbol table file with pic_flag works around
4918 # a FreeBSD bug that causes programs to crash when -lm is
4919 # linked before any other PIC object. But we must not use
4920 # pic_flag when linking with -static. The problem exists in
4921 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4922 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4923 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
4924 *-*-hpux*)
4925 pic_flag_for_symtable=" $pic_flag" ;;
4926 *)
4927 $my_pic_p && pic_flag_for_symtable=" $pic_flag"
4928 ;;
4929 esac
4930 ;;
4931 esac
4932 symtab_cflags=
4933 for arg in $LTCFLAGS; do
4934 case $arg in
4935 -pie | -fpie | -fPIE) ;;
4936 *) func_append symtab_cflags " $arg" ;;
4937 esac
4938 done
4939
4940 # Now compile the dynamic symbol file.
4941 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
4942
4943 # Clean up the generated files.
4944 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"'
4945
4946 # Transform the symbol file into the correct name.
4947 symfileobj=$output_objdir/${my_outputname}S.$objext
4948 case $host in
4949 *cygwin* | *mingw* | *cegcc* )
4950 if test -f "$output_objdir/$my_outputname.def"; then
4951 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
4952 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
4953 else
4954 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
4955 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
4956 fi
4957 ;;
4958 *)
4959 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
4960 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
4961 ;;
4962 esac
4963 ;;
4964 *)
4965 func_fatal_error "unknown suffix for '$my_dlsyms'"
4966 ;;
4967 esac
4968 else
4969 # We keep going just in case the user didn't refer to
4970 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4971 # really was required.
4972
4973 # Nullify the symbol file.
4974 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
4975 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
4976 fi
4977 }
4978
4979 # func_cygming_gnu_implib_p ARG
4980 # This predicate returns with zero status (TRUE) if
4981 # ARG is a GNU/binutils-style import library. Returns
4982 # with nonzero status (FALSE) otherwise.
4983 func_cygming_gnu_implib_p ()
4984 {
4985 $debug_cmd
4986
4987 func_to_tool_file "$1" func_convert_file_msys_to_w32
4988 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)$'`
4989 test -n "$func_cygming_gnu_implib_tmp"
4990 }
4991
4992 # func_cygming_ms_implib_p ARG
4993 # This predicate returns with zero status (TRUE) if
4994 # ARG is an MS-style import library. Returns
4995 # with nonzero status (FALSE) otherwise.
4996 func_cygming_ms_implib_p ()
4997 {
4998 $debug_cmd
4999
5000 func_to_tool_file "$1" func_convert_file_msys_to_w32
5001 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
5002 test -n "$func_cygming_ms_implib_tmp"
5003 }
5004
5005 # func_win32_libid arg
5006 # return the library type of file 'arg'
5007 #
5008 # Need a lot of goo to handle *both* DLLs and import libs
5009 # Has to be a shell function in order to 'eat' the argument
5010 # that is supplied when $file_magic_command is called.
5011 # Despite the name, also deal with 64 bit binaries.
5012 func_win32_libid ()
5013 {
5014 $debug_cmd
5015
5016 win32_libid_type=unknown
5017 win32_fileres=`file -L $1 2>/dev/null`
5018 case $win32_fileres in
5019 *ar\ archive\ import\ library*) # definitely import
5020 win32_libid_type="x86 archive import"
5021 ;;
5022 *ar\ archive*) # could be an import, or static
5023 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
5024 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
5025 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
5026 case $nm_interface in
5027 "MS dumpbin")
5028 if func_cygming_ms_implib_p "$1" ||
5029 func_cygming_gnu_implib_p "$1"
5030 then
5031 win32_nmres=import
5032 else
5033 win32_nmres=
5034 fi
5035 ;;
5036 *)
5037 func_to_tool_file "$1" func_convert_file_msys_to_w32
5038 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5039 $SED -n -e '
5040 1,100{
5041 / I /{
5042 s|.*|import|
5043 p
5044 q
5045 }
5046 }'`
5047 ;;
5048 esac
5049 case $win32_nmres in
5050 import*) win32_libid_type="x86 archive import";;
5051 *) win32_libid_type="x86 archive static";;
5052 esac
5053 fi
5054 ;;
5055 *DLL*)
5056 win32_libid_type="x86 DLL"
5057 ;;
5058 *executable*) # but shell scripts are "executable" too...
5059 case $win32_fileres in
5060 *MS\ Windows\ PE\ Intel*)
5061 win32_libid_type="x86 DLL"
5062 ;;
5063 esac
5064 ;;
5065 esac
5066 $ECHO "$win32_libid_type"
5067 }
5068
5069 # func_cygming_dll_for_implib ARG
5070 #
5071 # Platform-specific function to extract the
5072 # name of the DLL associated with the specified
5073 # import library ARG.
5074 # Invoked by eval'ing the libtool variable
5075 # $sharedlib_from_linklib_cmd
5076 # Result is available in the variable
5077 # $sharedlib_from_linklib_result
5078 func_cygming_dll_for_implib ()
5079 {
5080 $debug_cmd
5081
5082 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
5083 }
5084
5085 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
5086 #
5087 # The is the core of a fallback implementation of a
5088 # platform-specific function to extract the name of the
5089 # DLL associated with the specified import library LIBNAME.
5090 #
5091 # SECTION_NAME is either .idata$6 or .idata$7, depending
5092 # on the platform and compiler that created the implib.
5093 #
5094 # Echos the name of the DLL associated with the
5095 # specified import library.
5096 func_cygming_dll_for_implib_fallback_core ()
5097 {
5098 $debug_cmd
5099
5100 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
5101 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5102 $SED '/^Contents of section '"$match_literal"':/{
5103 # Place marker at beginning of archive member dllname section
5104 s/.*/====MARK====/
5105 p
5106 d
5107 }
5108 # These lines can sometimes be longer than 43 characters, but
5109 # are always uninteresting
5110 /:[ ]*file format pe[i]\{,1\}-/d
5111 /^In archive [^:]*:/d
5112 # Ensure marker is printed
5113 /^====MARK====/p
5114 # Remove all lines with less than 43 characters
5115 /^.\{43\}/!d
5116 # From remaining lines, remove first 43 characters
5117 s/^.\{43\}//' |
5118 $SED -n '
5119 # Join marker and all lines until next marker into a single line
5120 /^====MARK====/ b para
5121 H
5122 $ b para
5123 b
5124 :para
5125 x
5126 s/\n//g
5127 # Remove the marker
5128 s/^====MARK====//
5129 # Remove trailing dots and whitespace
5130 s/[\. \t]*$//
5131 # Print
5132 /./p' |
5133 # we now have a list, one entry per line, of the stringified
5134 # contents of the appropriate section of all members of the
5135 # archive that possess that section. Heuristic: eliminate
5136 # all those that have a first or second character that is
5137 # a '.' (that is, objdump's representation of an unprintable
5138 # character.) This should work for all archives with less than
5139 # 0x302f exports -- but will fail for DLLs whose name actually
5140 # begins with a literal '.' or a single character followed by
5141 # a '.'.
5142 #
5143 # Of those that remain, print the first one.
5144 $SED -e '/^\./d;/^.\./d;q'
5145 }
5146
5147 # func_cygming_dll_for_implib_fallback ARG
5148 # Platform-specific function to extract the
5149 # name of the DLL associated with the specified
5150 # import library ARG.
5151 #
5152 # This fallback implementation is for use when $DLLTOOL
5153 # does not support the --identify-strict option.
5154 # Invoked by eval'ing the libtool variable
5155 # $sharedlib_from_linklib_cmd
5156 # Result is available in the variable
5157 # $sharedlib_from_linklib_result
5158 func_cygming_dll_for_implib_fallback ()
5159 {
5160 $debug_cmd
5161
5162 if func_cygming_gnu_implib_p "$1"; then
5163 # binutils import library
5164 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
5165 elif func_cygming_ms_implib_p "$1"; then
5166 # ms-generated import library
5167 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
5168 else
5169 # unknown
5170 sharedlib_from_linklib_result=
5171 fi
5172 }
5173
5174
5175 # func_extract_an_archive dir oldlib
5176 func_extract_an_archive ()
5177 {
5178 $debug_cmd
5179
5180 f_ex_an_ar_dir=$1; shift
5181 f_ex_an_ar_oldlib=$1
5182 if test yes = "$lock_old_archive_extraction"; then
5183 lockfile=$f_ex_an_ar_oldlib.lock
5184 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
5185 func_echo "Waiting for $lockfile to be removed"
5186 sleep 2
5187 done
5188 fi
5189 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
5190 'stat=$?; rm -f "$lockfile"; exit $stat'
5191 if test yes = "$lock_old_archive_extraction"; then
5192 $opt_dry_run || rm -f "$lockfile"
5193 fi
5194 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5195 :
5196 else
5197 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
5198 fi
5199 }
5200
5201
5202 # func_extract_archives gentop oldlib ...
5203 func_extract_archives ()
5204 {
5205 $debug_cmd
5206
5207 my_gentop=$1; shift
5208 my_oldlibs=${1+"$@"}
5209 my_oldobjs=
5210 my_xlib=
5211 my_xabs=
5212 my_xdir=
5213
5214 for my_xlib in $my_oldlibs; do
5215 # Extract the objects.
5216 case $my_xlib in
5217 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5218 *) my_xabs=`pwd`"/$my_xlib" ;;
5219 esac
5220 func_basename "$my_xlib"
5221 my_xlib=$func_basename_result
5222 my_xlib_u=$my_xlib
5223 while :; do
5224 case " $extracted_archives " in
5225 *" $my_xlib_u "*)
5226 func_arith $extracted_serial + 1
5227 extracted_serial=$func_arith_result
5228 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5229 *) break ;;
5230 esac
5231 done
5232 extracted_archives="$extracted_archives $my_xlib_u"
5233 my_xdir=$my_gentop/$my_xlib_u
5234
5235 func_mkdir_p "$my_xdir"
5236
5237 case $host in
5238 *-darwin*)
5239 func_verbose "Extracting $my_xabs"
5240 # Do not bother doing anything if just a dry run
5241 $opt_dry_run || {
5242 darwin_orig_dir=`pwd`
5243 cd $my_xdir || exit $?
5244 darwin_archive=$my_xabs
5245 darwin_curdir=`pwd`
5246 func_basename "$darwin_archive"
5247 darwin_base_archive=$func_basename_result
5248 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5249 if test -n "$darwin_arches"; then
5250 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5251 darwin_arch=
5252 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
5253 for darwin_arch in $darwin_arches; do
5254 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5255 $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
5256 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5257 func_extract_an_archive "`pwd`" "$darwin_base_archive"
5258 cd "$darwin_curdir"
5259 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5260 done # $darwin_arches
5261 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
5262 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u`
5263 darwin_file=
5264 darwin_files=
5265 for darwin_file in $darwin_filelist; do
5266 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5267 $LIPO -create -output "$darwin_file" $darwin_files
5268 done # $darwin_filelist
5269 $RM -rf unfat-$$
5270 cd "$darwin_orig_dir"
5271 else
5272 cd $darwin_orig_dir
5273 func_extract_an_archive "$my_xdir" "$my_xabs"
5274 fi # $darwin_arches
5275 } # !$opt_dry_run
5276 ;;
5277 *)
5278 func_extract_an_archive "$my_xdir" "$my_xabs"
5279 ;;
5280 esac
5281 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
5282 done
5283
5284 func_extract_archives_result=$my_oldobjs
5285 }
5286
5287
5288 # func_emit_wrapper [arg=no]
5289 #
5290 # Emit a libtool wrapper script on stdout.
5291 # Don't directly open a file because we may want to
5292 # incorporate the script contents within a cygwin/mingw
5293 # wrapper executable. Must ONLY be called from within
5294 # func_mode_link because it depends on a number of variables
5295 # set therein.
5296 #
5297 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
5298 # variable will take. If 'yes', then the emitted script
5299 # will assume that the directory where it is stored is
5300 # the $objdir directory. This is a cygwin/mingw-specific
5301 # behavior.
5302 func_emit_wrapper ()
5303 {
5304 func_emit_wrapper_arg1=${1-no}
5305
5306 $ECHO "\
5307 #! $SHELL
5308
5309 # $output - temporary wrapper script for $objdir/$outputname
5310 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
5311 #
5312 # The $output program cannot be directly executed until all the libtool
5313 # libraries that it depends on are installed.
5314 #
5315 # This wrapper script should never be moved out of the build directory.
5316 # If it is, it will not operate correctly.
5317
5318 # Sed substitution that helps us do robust quoting. It backslashifies
5319 # metacharacters that are still active within double-quoted strings.
5320 sed_quote_subst='$sed_quote_subst'
5321
5322 # Be Bourne compatible
5323 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5324 emulate sh
5325 NULLCMD=:
5326 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5327 # is contrary to our usage. Disable this feature.
5328 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5329 setopt NO_GLOB_SUBST
5330 else
5331 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5332 fi
5333 BIN_SH=xpg4; export BIN_SH # for Tru64
5334 DUALCASE=1; export DUALCASE # for MKS sh
5335
5336 # The HP-UX ksh and POSIX shell print the target directory to stdout
5337 # if CDPATH is set.
5338 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5339
5340 relink_command=\"$relink_command\"
5341
5342 # This environment variable determines our operation mode.
5343 if test \"\$libtool_install_magic\" = \"$magic\"; then
5344 # install mode needs the following variables:
5345 generated_by_libtool_version='$macro_version'
5346 notinst_deplibs='$notinst_deplibs'
5347 else
5348 # When we are sourced in execute mode, \$file and \$ECHO are already set.
5349 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5350 file=\"\$0\""
5351
5352 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
5353 $ECHO "\
5354
5355 # A function that is used when there is no print builtin or printf.
5356 func_fallback_echo ()
5357 {
5358 eval 'cat <<_LTECHO_EOF
5359 \$1
5360 _LTECHO_EOF'
5361 }
5362 ECHO=\"$qECHO\"
5363 fi
5364
5365 # Very basic option parsing. These options are (a) specific to
5366 # the libtool wrapper, (b) are identical between the wrapper
5367 # /script/ and the wrapper /executable/ that is used only on
5368 # windows platforms, and (c) all begin with the string "--lt-"
5369 # (application programs are unlikely to have options that match
5370 # this pattern).
5371 #
5372 # There are only two supported options: --lt-debug and
5373 # --lt-dump-script. There is, deliberately, no --lt-help.
5374 #
5375 # The first argument to this parsing function should be the
5376 # script's $0 value, followed by "$@".
5377 lt_option_debug=
5378 func_parse_lt_options ()
5379 {
5380 lt_script_arg0=\$0
5381 shift
5382 for lt_opt
5383 do
5384 case \"\$lt_opt\" in
5385 --lt-debug) lt_option_debug=1 ;;
5386 --lt-dump-script)
5387 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5388 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
5389 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5390 cat \"\$lt_dump_D/\$lt_dump_F\"
5391 exit 0
5392 ;;
5393 --lt-*)
5394 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5395 exit 1
5396 ;;
5397 esac
5398 done
5399
5400 # Print the debug banner immediately:
5401 if test -n \"\$lt_option_debug\"; then
5402 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
5403 fi
5404 }
5405
5406 # Used when --lt-debug. Prints its arguments to stdout
5407 # (redirection is the responsibility of the caller)
5408 func_lt_dump_args ()
5409 {
5410 lt_dump_args_N=1;
5411 for lt_arg
5412 do
5413 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
5414 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
5415 done
5416 }
5417
5418 # Core function for launching the target application
5419 func_exec_program_core ()
5420 {
5421 "
5422 case $host in
5423 # Backslashes separate directories on plain windows
5424 *-*-mingw | *-*-os2* | *-cegcc*)
5425 $ECHO "\
5426 if test -n \"\$lt_option_debug\"; then
5427 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
5428 func_lt_dump_args \${1+\"\$@\"} 1>&2
5429 fi
5430 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5431 "
5432 ;;
5433
5434 *)
5435 $ECHO "\
5436 if test -n \"\$lt_option_debug\"; then
5437 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
5438 func_lt_dump_args \${1+\"\$@\"} 1>&2
5439 fi
5440 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5441 "
5442 ;;
5443 esac
5444 $ECHO "\
5445 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
5446 exit 1
5447 }
5448
5449 # A function to encapsulate launching the target application
5450 # Strips options in the --lt-* namespace from \$@ and
5451 # launches target application with the remaining arguments.
5452 func_exec_program ()
5453 {
5454 case \" \$* \" in
5455 *\\ --lt-*)
5456 for lt_wr_arg
5457 do
5458 case \$lt_wr_arg in
5459 --lt-*) ;;
5460 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
5461 esac
5462 shift
5463 done ;;
5464 esac
5465 func_exec_program_core \${1+\"\$@\"}
5466 }
5467
5468 # Parse options
5469 func_parse_lt_options \"\$0\" \${1+\"\$@\"}
5470
5471 # Find the directory that this script lives in.
5472 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
5473 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5474
5475 # Follow symbolic links until we get to the real thisdir.
5476 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5477 while test -n \"\$file\"; do
5478 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
5479
5480 # If there was a directory component, then change thisdir.
5481 if test \"x\$destdir\" != \"x\$file\"; then
5482 case \"\$destdir\" in
5483 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5484 *) thisdir=\"\$thisdir/\$destdir\" ;;
5485 esac
5486 fi
5487
5488 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
5489 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5490 done
5491
5492 # Usually 'no', except on cygwin/mingw when embedded into
5493 # the cwrapper.
5494 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
5495 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
5496 # special case for '.'
5497 if test \"\$thisdir\" = \".\"; then
5498 thisdir=\`pwd\`
5499 fi
5500 # remove .libs from thisdir
5501 case \"\$thisdir\" in
5502 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
5503 $objdir ) thisdir=. ;;
5504 esac
5505 fi
5506
5507 # Try to get the absolute directory name.
5508 absdir=\`cd \"\$thisdir\" && pwd\`
5509 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5510 "
5511
5512 if test yes = "$fast_install"; then
5513 $ECHO "\
5514 program=lt-'$outputname'$exeext
5515 progdir=\"\$thisdir/$objdir\"
5516
5517 if test ! -f \"\$progdir/\$program\" ||
5518 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5519 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5520
5521 file=\"\$\$-\$program\"
5522
5523 if test ! -d \"\$progdir\"; then
5524 $MKDIR \"\$progdir\"
5525 else
5526 $RM \"\$progdir/\$file\"
5527 fi"
5528
5529 $ECHO "\
5530
5531 # relink executable if necessary
5532 if test -n \"\$relink_command\"; then
5533 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5534 else
5535 \$ECHO \"\$relink_command_output\" >&2
5536 $RM \"\$progdir/\$file\"
5537 exit 1
5538 fi
5539 fi
5540
5541 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5542 { $RM \"\$progdir/\$program\";
5543 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5544 $RM \"\$progdir/\$file\"
5545 fi"
5546 else
5547 $ECHO "\
5548 program='$outputname'
5549 progdir=\"\$thisdir/$objdir\"
5550 "
5551 fi
5552
5553 $ECHO "\
5554
5555 if test -f \"\$progdir/\$program\"; then"
5556
5557 # fixup the dll searchpath if we need to.
5558 #
5559 # Fix the DLL searchpath if we need to. Do this before prepending
5560 # to shlibpath, because on Windows, both are PATH and uninstalled
5561 # libraries must come first.
5562 if test -n "$dllsearchpath"; then
5563 $ECHO "\
5564 # Add the dll search path components to the executable PATH
5565 PATH=$dllsearchpath:\$PATH
5566 "
5567 fi
5568
5569 # Export our shlibpath_var if we have one.
5570 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5571 $ECHO "\
5572 # Add our own library path to $shlibpath_var
5573 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5574
5575 # Some systems cannot cope with colon-terminated $shlibpath_var
5576 # The second colon is a workaround for a bug in BeOS R4 sed
5577 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
5578
5579 export $shlibpath_var
5580 "
5581 fi
5582
5583 $ECHO "\
5584 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5585 # Run the actual program with our arguments.
5586 func_exec_program \${1+\"\$@\"}
5587 fi
5588 else
5589 # The program doesn't exist.
5590 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
5591 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
5592 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
5593 exit 1
5594 fi
5595 fi\
5596 "
5597 }
5598
5599
5600 # func_emit_cwrapperexe_src
5601 # emit the source code for a wrapper executable on stdout
5602 # Must ONLY be called from within func_mode_link because
5603 # it depends on a number of variable set therein.
5604 func_emit_cwrapperexe_src ()
5605 {
5606 cat <<EOF
5607
5608 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5609 Generated by $PROGRAM (GNU $PACKAGE) $VERSION
5610
5611 The $output program cannot be directly executed until all the libtool
5612 libraries that it depends on are installed.
5613
5614 This wrapper executable should never be moved out of the build directory.
5615 If it is, it will not operate correctly.
5616 */
5617 EOF
5618 cat <<"EOF"
5619 #ifdef _MSC_VER
5620 # define _CRT_SECURE_NO_DEPRECATE 1
5621 #endif
5622 #include <stdio.h>
5623 #include <stdlib.h>
5624 #ifdef _MSC_VER
5625 # include <direct.h>
5626 # include <process.h>
5627 # include <io.h>
5628 #else
5629 # include <unistd.h>
5630 # include <stdint.h>
5631 # ifdef __CYGWIN__
5632 # include <io.h>
5633 # endif
5634 #endif
5635 #include <malloc.h>
5636 #include <stdarg.h>
5637 #include <assert.h>
5638 #include <string.h>
5639 #include <ctype.h>
5640 #include <errno.h>
5641 #include <fcntl.h>
5642 #include <sys/stat.h>
5643
5644 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
5645
5646 /* declarations of non-ANSI functions */
5647 #if defined __MINGW32__
5648 # ifdef __STRICT_ANSI__
5649 int _putenv (const char *);
5650 # endif
5651 #elif defined __CYGWIN__
5652 # ifdef __STRICT_ANSI__
5653 char *realpath (const char *, char *);
5654 int putenv (char *);
5655 int setenv (const char *, const char *, int);
5656 # endif
5657 /* #elif defined other_platform || defined ... */
5658 #endif
5659
5660 /* portability defines, excluding path handling macros */
5661 #if defined _MSC_VER
5662 # define setmode _setmode
5663 # define stat _stat
5664 # define chmod _chmod
5665 # define getcwd _getcwd
5666 # define putenv _putenv
5667 # define S_IXUSR _S_IEXEC
5668 #elif defined __MINGW32__
5669 # define setmode _setmode
5670 # define stat _stat
5671 # define chmod _chmod
5672 # define getcwd _getcwd
5673 # define putenv _putenv
5674 #elif defined __CYGWIN__
5675 # define HAVE_SETENV
5676 # define FOPEN_WB "wb"
5677 /* #elif defined other platforms ... */
5678 #endif
5679
5680 #if defined PATH_MAX
5681 # define LT_PATHMAX PATH_MAX
5682 #elif defined MAXPATHLEN
5683 # define LT_PATHMAX MAXPATHLEN
5684 #else
5685 # define LT_PATHMAX 1024
5686 #endif
5687
5688 #ifndef S_IXOTH
5689 # define S_IXOTH 0
5690 #endif
5691 #ifndef S_IXGRP
5692 # define S_IXGRP 0
5693 #endif
5694
5695 /* path handling portability macros */
5696 #ifndef DIR_SEPARATOR
5697 # define DIR_SEPARATOR '/'
5698 # define PATH_SEPARATOR ':'
5699 #endif
5700
5701 #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
5702 defined __OS2__
5703 # define HAVE_DOS_BASED_FILE_SYSTEM
5704 # define FOPEN_WB "wb"
5705 # ifndef DIR_SEPARATOR_2
5706 # define DIR_SEPARATOR_2 '\\'
5707 # endif
5708 # ifndef PATH_SEPARATOR_2
5709 # define PATH_SEPARATOR_2 ';'
5710 # endif
5711 #endif
5712
5713 #ifndef DIR_SEPARATOR_2
5714 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
5715 #else /* DIR_SEPARATOR_2 */
5716 # define IS_DIR_SEPARATOR(ch) \
5717 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
5718 #endif /* DIR_SEPARATOR_2 */
5719
5720 #ifndef PATH_SEPARATOR_2
5721 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5722 #else /* PATH_SEPARATOR_2 */
5723 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5724 #endif /* PATH_SEPARATOR_2 */
5725
5726 #ifndef FOPEN_WB
5727 # define FOPEN_WB "w"
5728 #endif
5729 #ifndef _O_BINARY
5730 # define _O_BINARY 0
5731 #endif
5732
5733 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
5734 #define XFREE(stale) do { \
5735 if (stale) { free (stale); stale = 0; } \
5736 } while (0)
5737
5738 #if defined LT_DEBUGWRAPPER
5739 static int lt_debug = 1;
5740 #else
5741 static int lt_debug = 0;
5742 #endif
5743
5744 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
5745
5746 void *xmalloc (size_t num);
5747 char *xstrdup (const char *string);
5748 const char *base_name (const char *name);
5749 char *find_executable (const char *wrapper);
5750 char *chase_symlinks (const char *pathspec);
5751 int make_executable (const char *path);
5752 int check_executable (const char *path);
5753 char *strendzap (char *str, const char *pat);
5754 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
5755 void lt_fatal (const char *file, int line, const char *message, ...);
5756 static const char *nonnull (const char *s);
5757 static const char *nonempty (const char *s);
5758 void lt_setenv (const char *name, const char *value);
5759 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
5760 void lt_update_exe_path (const char *name, const char *value);
5761 void lt_update_lib_path (const char *name, const char *value);
5762 char **prepare_spawn (char **argv);
5763 void lt_dump_script (FILE *f);
5764 EOF
5765
5766 cat <<EOF
5767 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5768 # define externally_visible volatile
5769 #else
5770 # define externally_visible __attribute__((externally_visible)) volatile
5771 #endif
5772 externally_visible const char * MAGIC_EXE = "$magic_exe";
5773 const char * LIB_PATH_VARNAME = "$shlibpath_var";
5774 EOF
5775
5776 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5777 func_to_host_path "$temp_rpath"
5778 cat <<EOF
5779 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
5780 EOF
5781 else
5782 cat <<"EOF"
5783 const char * LIB_PATH_VALUE = "";
5784 EOF
5785 fi
5786
5787 if test -n "$dllsearchpath"; then
5788 func_to_host_path "$dllsearchpath:"
5789 cat <<EOF
5790 const char * EXE_PATH_VARNAME = "PATH";
5791 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
5792 EOF
5793 else
5794 cat <<"EOF"
5795 const char * EXE_PATH_VARNAME = "";
5796 const char * EXE_PATH_VALUE = "";
5797 EOF
5798 fi
5799
5800 if test yes = "$fast_install"; then
5801 cat <<EOF
5802 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
5803 EOF
5804 else
5805 cat <<EOF
5806 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
5807 EOF
5808 fi
5809
5810
5811 cat <<"EOF"
5812
5813 #define LTWRAPPER_OPTION_PREFIX "--lt-"
5814
5815 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
5816 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
5817 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
5818
5819 int
5820 main (int argc, char *argv[])
5821 {
5822 char **newargz;
5823 int newargc;
5824 char *tmp_pathspec;
5825 char *actual_cwrapper_path;
5826 char *actual_cwrapper_name;
5827 char *target_name;
5828 char *lt_argv_zero;
5829 int rval = 127;
5830
5831 int i;
5832
5833 program_name = (char *) xstrdup (base_name (argv[0]));
5834 newargz = XMALLOC (char *, (size_t) argc + 1);
5835
5836 /* very simple arg parsing; don't want to rely on getopt
5837 * also, copy all non cwrapper options to newargz, except
5838 * argz[0], which is handled differently
5839 */
5840 newargc=0;
5841 for (i = 1; i < argc; i++)
5842 {
5843 if (STREQ (argv[i], dumpscript_opt))
5844 {
5845 EOF
5846 case $host in
5847 *mingw* | *cygwin* )
5848 # make stdout use "unix" line endings
5849 echo " setmode(1,_O_BINARY);"
5850 ;;
5851 esac
5852
5853 cat <<"EOF"
5854 lt_dump_script (stdout);
5855 return 0;
5856 }
5857 if (STREQ (argv[i], debug_opt))
5858 {
5859 lt_debug = 1;
5860 continue;
5861 }
5862 if (STREQ (argv[i], ltwrapper_option_prefix))
5863 {
5864 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
5865 namespace, but it is not one of the ones we know about and
5866 have already dealt with, above (inluding dump-script), then
5867 report an error. Otherwise, targets might begin to believe
5868 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
5869 namespace. The first time any user complains about this, we'll
5870 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
5871 or a configure.ac-settable value.
5872 */
5873 lt_fatal (__FILE__, __LINE__,
5874 "unrecognized %s option: '%s'",
5875 ltwrapper_option_prefix, argv[i]);
5876 }
5877 /* otherwise ... */
5878 newargz[++newargc] = xstrdup (argv[i]);
5879 }
5880 newargz[++newargc] = NULL;
5881
5882 EOF
5883 cat <<EOF
5884 /* The GNU banner must be the first non-error debug message */
5885 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n");
5886 EOF
5887 cat <<"EOF"
5888 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
5889 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
5890
5891 tmp_pathspec = find_executable (argv[0]);
5892 if (tmp_pathspec == NULL)
5893 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
5894 lt_debugprintf (__FILE__, __LINE__,
5895 "(main) found exe (before symlink chase) at: %s\n",
5896 tmp_pathspec);
5897
5898 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
5899 lt_debugprintf (__FILE__, __LINE__,
5900 "(main) found exe (after symlink chase) at: %s\n",
5901 actual_cwrapper_path);
5902 XFREE (tmp_pathspec);
5903
5904 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
5905 strendzap (actual_cwrapper_path, actual_cwrapper_name);
5906
5907 /* wrapper name transforms */
5908 strendzap (actual_cwrapper_name, ".exe");
5909 tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
5910 XFREE (actual_cwrapper_name);
5911 actual_cwrapper_name = tmp_pathspec;
5912 tmp_pathspec = 0;
5913
5914 /* target_name transforms -- use actual target program name; might have lt- prefix */
5915 target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
5916 strendzap (target_name, ".exe");
5917 tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
5918 XFREE (target_name);
5919 target_name = tmp_pathspec;
5920 tmp_pathspec = 0;
5921
5922 lt_debugprintf (__FILE__, __LINE__,
5923 "(main) libtool target name: %s\n",
5924 target_name);
5925 EOF
5926
5927 cat <<EOF
5928 newargz[0] =
5929 XMALLOC (char, (strlen (actual_cwrapper_path) +
5930 strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
5931 strcpy (newargz[0], actual_cwrapper_path);
5932 strcat (newargz[0], "$objdir");
5933 strcat (newargz[0], "/");
5934 EOF
5935
5936 cat <<"EOF"
5937 /* stop here, and copy so we don't have to do this twice */
5938 tmp_pathspec = xstrdup (newargz[0]);
5939
5940 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
5941 strcat (newargz[0], actual_cwrapper_name);
5942
5943 /* DO want the lt- prefix here if it exists, so use target_name */
5944 lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
5945 XFREE (tmp_pathspec);
5946 tmp_pathspec = NULL;
5947 EOF
5948
5949 case $host_os in
5950 mingw*)
5951 cat <<"EOF"
5952 {
5953 char* p;
5954 while ((p = strchr (newargz[0], '\\')) != NULL)
5955 {
5956 *p = '/';
5957 }
5958 while ((p = strchr (lt_argv_zero, '\\')) != NULL)
5959 {
5960 *p = '/';
5961 }
5962 }
5963 EOF
5964 ;;
5965 esac
5966
5967 cat <<"EOF"
5968 XFREE (target_name);
5969 XFREE (actual_cwrapper_path);
5970 XFREE (actual_cwrapper_name);
5971
5972 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
5973 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
5974 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
5975 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
5976 because on Windows, both *_VARNAMEs are PATH but uninstalled
5977 libraries must come first. */
5978 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
5979 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
5980
5981 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
5982 nonnull (lt_argv_zero));
5983 for (i = 0; i < newargc; i++)
5984 {
5985 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
5986 i, nonnull (newargz[i]));
5987 }
5988
5989 EOF
5990
5991 case $host_os in
5992 mingw*)
5993 cat <<"EOF"
5994 /* execv doesn't actually work on mingw as expected on unix */
5995 newargz = prepare_spawn (newargz);
5996 rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
5997 if (rval == -1)
5998 {
5999 /* failed to start process */
6000 lt_debugprintf (__FILE__, __LINE__,
6001 "(main) failed to launch target \"%s\": %s\n",
6002 lt_argv_zero, nonnull (strerror (errno)));
6003 return 127;
6004 }
6005 return rval;
6006 EOF
6007 ;;
6008 *)
6009 cat <<"EOF"
6010 execv (lt_argv_zero, newargz);
6011 return rval; /* =127, but avoids unused variable warning */
6012 EOF
6013 ;;
6014 esac
6015
6016 cat <<"EOF"
6017 }
6018
6019 void *
6020 xmalloc (size_t num)
6021 {
6022 void *p = (void *) malloc (num);
6023 if (!p)
6024 lt_fatal (__FILE__, __LINE__, "memory exhausted");
6025
6026 return p;
6027 }
6028
6029 char *
6030 xstrdup (const char *string)
6031 {
6032 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
6033 string) : NULL;
6034 }
6035
6036 const char *
6037 base_name (const char *name)
6038 {
6039 const char *base;
6040
6041 #if defined HAVE_DOS_BASED_FILE_SYSTEM
6042 /* Skip over the disk name in MSDOS pathnames. */
6043 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
6044 name += 2;
6045 #endif
6046
6047 for (base = name; *name; name++)
6048 if (IS_DIR_SEPARATOR (*name))
6049 base = name + 1;
6050 return base;
6051 }
6052
6053 int
6054 check_executable (const char *path)
6055 {
6056 struct stat st;
6057
6058 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
6059 nonempty (path));
6060 if ((!path) || (!*path))
6061 return 0;
6062
6063 if ((stat (path, &st) >= 0)
6064 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
6065 return 1;
6066 else
6067 return 0;
6068 }
6069
6070 int
6071 make_executable (const char *path)
6072 {
6073 int rval = 0;
6074 struct stat st;
6075
6076 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
6077 nonempty (path));
6078 if ((!path) || (!*path))
6079 return 0;
6080
6081 if (stat (path, &st) >= 0)
6082 {
6083 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
6084 }
6085 return rval;
6086 }
6087
6088 /* Searches for the full path of the wrapper. Returns
6089 newly allocated full path name if found, NULL otherwise
6090 Does not chase symlinks, even on platforms that support them.
6091 */
6092 char *
6093 find_executable (const char *wrapper)
6094 {
6095 int has_slash = 0;
6096 const char *p;
6097 const char *p_next;
6098 /* static buffer for getcwd */
6099 char tmp[LT_PATHMAX + 1];
6100 size_t tmp_len;
6101 char *concat_name;
6102
6103 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
6104 nonempty (wrapper));
6105
6106 if ((wrapper == NULL) || (*wrapper == '\0'))
6107 return NULL;
6108
6109 /* Absolute path? */
6110 #if defined HAVE_DOS_BASED_FILE_SYSTEM
6111 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
6112 {
6113 concat_name = xstrdup (wrapper);
6114 if (check_executable (concat_name))
6115 return concat_name;
6116 XFREE (concat_name);
6117 }
6118 else
6119 {
6120 #endif
6121 if (IS_DIR_SEPARATOR (wrapper[0]))
6122 {
6123 concat_name = xstrdup (wrapper);
6124 if (check_executable (concat_name))
6125 return concat_name;
6126 XFREE (concat_name);
6127 }
6128 #if defined HAVE_DOS_BASED_FILE_SYSTEM
6129 }
6130 #endif
6131
6132 for (p = wrapper; *p; p++)
6133 if (*p == '/')
6134 {
6135 has_slash = 1;
6136 break;
6137 }
6138 if (!has_slash)
6139 {
6140 /* no slashes; search PATH */
6141 const char *path = getenv ("PATH");
6142 if (path != NULL)
6143 {
6144 for (p = path; *p; p = p_next)
6145 {
6146 const char *q;
6147 size_t p_len;
6148 for (q = p; *q; q++)
6149 if (IS_PATH_SEPARATOR (*q))
6150 break;
6151 p_len = (size_t) (q - p);
6152 p_next = (*q == '\0' ? q : q + 1);
6153 if (p_len == 0)
6154 {
6155 /* empty path: current directory */
6156 if (getcwd (tmp, LT_PATHMAX) == NULL)
6157 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
6158 nonnull (strerror (errno)));
6159 tmp_len = strlen (tmp);
6160 concat_name =
6161 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
6162 memcpy (concat_name, tmp, tmp_len);
6163 concat_name[tmp_len] = '/';
6164 strcpy (concat_name + tmp_len + 1, wrapper);
6165 }
6166 else
6167 {
6168 concat_name =
6169 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
6170 memcpy (concat_name, p, p_len);
6171 concat_name[p_len] = '/';
6172 strcpy (concat_name + p_len + 1, wrapper);
6173 }
6174 if (check_executable (concat_name))
6175 return concat_name;
6176 XFREE (concat_name);
6177 }
6178 }
6179 /* not found in PATH; assume curdir */
6180 }
6181 /* Relative path | not found in path: prepend cwd */
6182 if (getcwd (tmp, LT_PATHMAX) == NULL)
6183 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
6184 nonnull (strerror (errno)));
6185 tmp_len = strlen (tmp);
6186 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
6187 memcpy (concat_name, tmp, tmp_len);
6188 concat_name[tmp_len] = '/';
6189 strcpy (concat_name + tmp_len + 1, wrapper);
6190
6191 if (check_executable (concat_name))
6192 return concat_name;
6193 XFREE (concat_name);
6194 return NULL;
6195 }
6196
6197 char *
6198 chase_symlinks (const char *pathspec)
6199 {
6200 #ifndef S_ISLNK
6201 return xstrdup (pathspec);
6202 #else
6203 char buf[LT_PATHMAX];
6204 struct stat s;
6205 char *tmp_pathspec = xstrdup (pathspec);
6206 char *p;
6207 int has_symlinks = 0;
6208 while (strlen (tmp_pathspec) && !has_symlinks)
6209 {
6210 lt_debugprintf (__FILE__, __LINE__,
6211 "checking path component for symlinks: %s\n",
6212 tmp_pathspec);
6213 if (lstat (tmp_pathspec, &s) == 0)
6214 {
6215 if (S_ISLNK (s.st_mode) != 0)
6216 {
6217 has_symlinks = 1;
6218 break;
6219 }
6220
6221 /* search backwards for last DIR_SEPARATOR */
6222 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6223 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
6224 p--;
6225 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
6226 {
6227 /* no more DIR_SEPARATORS left */
6228 break;
6229 }
6230 *p = '\0';
6231 }
6232 else
6233 {
6234 lt_fatal (__FILE__, __LINE__,
6235 "error accessing file \"%s\": %s",
6236 tmp_pathspec, nonnull (strerror (errno)));
6237 }
6238 }
6239 XFREE (tmp_pathspec);
6240
6241 if (!has_symlinks)
6242 {
6243 return xstrdup (pathspec);
6244 }
6245
6246 tmp_pathspec = realpath (pathspec, buf);
6247 if (tmp_pathspec == 0)
6248 {
6249 lt_fatal (__FILE__, __LINE__,
6250 "could not follow symlinks for %s", pathspec);
6251 }
6252 return xstrdup (tmp_pathspec);
6253 #endif
6254 }
6255
6256 char *
6257 strendzap (char *str, const char *pat)
6258 {
6259 size_t len, patlen;
6260
6261 assert (str != NULL);
6262 assert (pat != NULL);
6263
6264 len = strlen (str);
6265 patlen = strlen (pat);
6266
6267 if (patlen <= len)
6268 {
6269 str += len - patlen;
6270 if (STREQ (str, pat))
6271 *str = '\0';
6272 }
6273 return str;
6274 }
6275
6276 void
6277 lt_debugprintf (const char *file, int line, const char *fmt, ...)
6278 {
6279 va_list args;
6280 if (lt_debug)
6281 {
6282 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
6283 va_start (args, fmt);
6284 (void) vfprintf (stderr, fmt, args);
6285 va_end (args);
6286 }
6287 }
6288
6289 static void
6290 lt_error_core (int exit_status, const char *file,
6291 int line, const char *mode,
6292 const char *message, va_list ap)
6293 {
6294 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
6295 vfprintf (stderr, message, ap);
6296 fprintf (stderr, ".\n");
6297
6298 if (exit_status >= 0)
6299 exit (exit_status);
6300 }
6301
6302 void
6303 lt_fatal (const char *file, int line, const char *message, ...)
6304 {
6305 va_list ap;
6306 va_start (ap, message);
6307 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
6308 va_end (ap);
6309 }
6310
6311 static const char *
6312 nonnull (const char *s)
6313 {
6314 return s ? s : "(null)";
6315 }
6316
6317 static const char *
6318 nonempty (const char *s)
6319 {
6320 return (s && !*s) ? "(empty)" : nonnull (s);
6321 }
6322
6323 void
6324 lt_setenv (const char *name, const char *value)
6325 {
6326 lt_debugprintf (__FILE__, __LINE__,
6327 "(lt_setenv) setting '%s' to '%s'\n",
6328 nonnull (name), nonnull (value));
6329 {
6330 #ifdef HAVE_SETENV
6331 /* always make a copy, for consistency with !HAVE_SETENV */
6332 char *str = xstrdup (value);
6333 setenv (name, str, 1);
6334 #else
6335 size_t len = strlen (name) + 1 + strlen (value) + 1;
6336 char *str = XMALLOC (char, len);
6337 sprintf (str, "%s=%s", name, value);
6338 if (putenv (str) != EXIT_SUCCESS)
6339 {
6340 XFREE (str);
6341 }
6342 #endif
6343 }
6344 }
6345
6346 char *
6347 lt_extend_str (const char *orig_value, const char *add, int to_end)
6348 {
6349 char *new_value;
6350 if (orig_value && *orig_value)
6351 {
6352 size_t orig_value_len = strlen (orig_value);
6353 size_t add_len = strlen (add);
6354 new_value = XMALLOC (char, add_len + orig_value_len + 1);
6355 if (to_end)
6356 {
6357 strcpy (new_value, orig_value);
6358 strcpy (new_value + orig_value_len, add);
6359 }
6360 else
6361 {
6362 strcpy (new_value, add);
6363 strcpy (new_value + add_len, orig_value);
6364 }
6365 }
6366 else
6367 {
6368 new_value = xstrdup (add);
6369 }
6370 return new_value;
6371 }
6372
6373 void
6374 lt_update_exe_path (const char *name, const char *value)
6375 {
6376 lt_debugprintf (__FILE__, __LINE__,
6377 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
6378 nonnull (name), nonnull (value));
6379
6380 if (name && *name && value && *value)
6381 {
6382 char *new_value = lt_extend_str (getenv (name), value, 0);
6383 /* some systems can't cope with a ':'-terminated path #' */
6384 size_t len = strlen (new_value);
6385 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6386 {
6387 new_value[--len] = '\0';
6388 }
6389 lt_setenv (name, new_value);
6390 XFREE (new_value);
6391 }
6392 }
6393
6394 void
6395 lt_update_lib_path (const char *name, const char *value)
6396 {
6397 lt_debugprintf (__FILE__, __LINE__,
6398 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
6399 nonnull (name), nonnull (value));
6400
6401 if (name && *name && value && *value)
6402 {
6403 char *new_value = lt_extend_str (getenv (name), value, 0);
6404 lt_setenv (name, new_value);
6405 XFREE (new_value);
6406 }
6407 }
6408
6409 EOF
6410 case $host_os in
6411 mingw*)
6412 cat <<"EOF"
6413
6414 /* Prepares an argument vector before calling spawn().
6415 Note that spawn() does not by itself call the command interpreter
6416 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
6417 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
6418 GetVersionEx(&v);
6419 v.dwPlatformId == VER_PLATFORM_WIN32_NT;
6420 }) ? "cmd.exe" : "command.com").
6421 Instead it simply concatenates the arguments, separated by ' ', and calls
6422 CreateProcess(). We must quote the arguments since Win32 CreateProcess()
6423 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
6424 special way:
6425 - Space and tab are interpreted as delimiters. They are not treated as
6426 delimiters if they are surrounded by double quotes: "...".
6427 - Unescaped double quotes are removed from the input. Their only effect is
6428 that within double quotes, space and tab are treated like normal
6429 characters.
6430 - Backslashes not followed by double quotes are not special.
6431 - But 2*n+1 backslashes followed by a double quote become
6432 n backslashes followed by a double quote (n >= 0):
6433 \" -> "
6434 \\\" -> \"
6435 \\\\\" -> \\"
6436 */
6437 #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"
6438 #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"
6439 char **
6440 prepare_spawn (char **argv)
6441 {
6442 size_t argc;
6443 char **new_argv;
6444 size_t i;
6445
6446 /* Count number of arguments. */
6447 for (argc = 0; argv[argc] != NULL; argc++)
6448 ;
6449
6450 /* Allocate new argument vector. */
6451 new_argv = XMALLOC (char *, argc + 1);
6452
6453 /* Put quoted arguments into the new argument vector. */
6454 for (i = 0; i < argc; i++)
6455 {
6456 const char *string = argv[i];
6457
6458 if (string[0] == '\0')
6459 new_argv[i] = xstrdup ("\"\"");
6460 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
6461 {
6462 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
6463 size_t length;
6464 unsigned int backslashes;
6465 const char *s;
6466 char *quoted_string;
6467 char *p;
6468
6469 length = 0;
6470 backslashes = 0;
6471 if (quote_around)
6472 length++;
6473 for (s = string; *s != '\0'; s++)
6474 {
6475 char c = *s;
6476 if (c == '"')
6477 length += backslashes + 1;
6478 length++;
6479 if (c == '\\')
6480 backslashes++;
6481 else
6482 backslashes = 0;
6483 }
6484 if (quote_around)
6485 length += backslashes + 1;
6486
6487 quoted_string = XMALLOC (char, length + 1);
6488
6489 p = quoted_string;
6490 backslashes = 0;
6491 if (quote_around)
6492 *p++ = '"';
6493 for (s = string; *s != '\0'; s++)
6494 {
6495 char c = *s;
6496 if (c == '"')
6497 {
6498 unsigned int j;
6499 for (j = backslashes + 1; j > 0; j--)
6500 *p++ = '\\';
6501 }
6502 *p++ = c;
6503 if (c == '\\')
6504 backslashes++;
6505 else
6506 backslashes = 0;
6507 }
6508 if (quote_around)
6509 {
6510 unsigned int j;
6511 for (j = backslashes; j > 0; j--)
6512 *p++ = '\\';
6513 *p++ = '"';
6514 }
6515 *p = '\0';
6516
6517 new_argv[i] = quoted_string;
6518 }
6519 else
6520 new_argv[i] = (char *) string;
6521 }
6522 new_argv[argc] = NULL;
6523
6524 return new_argv;
6525 }
6526 EOF
6527 ;;
6528 esac
6529
6530 cat <<"EOF"
6531 void lt_dump_script (FILE* f)
6532 {
6533 EOF
6534 func_emit_wrapper yes |
6535 $SED -n -e '
6536 s/^\(.\{79\}\)\(..*\)/\1\
6537 \2/
6538 h
6539 s/\([\\"]\)/\\\1/g
6540 s/$/\\n/
6541 s/\([^\n]*\).*/ fputs ("\1", f);/p
6542 g
6543 D'
6544 cat <<"EOF"
6545 }
6546 EOF
6547 }
6548 # end: func_emit_cwrapperexe_src
6549
6550 # func_win32_import_lib_p ARG
6551 # True if ARG is an import lib, as indicated by $file_magic_cmd
6552 func_win32_import_lib_p ()
6553 {
6554 $debug_cmd
6555
6556 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6557 *import*) : ;;
6558 *) false ;;
6559 esac
6560 }
6561
6562 # func_suncc_cstd_abi
6563 # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!!
6564 # Several compiler flags select an ABI that is incompatible with the
6565 # Cstd library. Avoid specifying it if any are in CXXFLAGS.
6566 func_suncc_cstd_abi ()
6567 {
6568 $debug_cmd
6569
6570 case " $compile_command " in
6571 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6572 suncc_use_cstd_abi=no
6573 ;;
6574 *)
6575 suncc_use_cstd_abi=yes
6576 ;;
6577 esac
6578 }
6579
6580 # func_mode_link arg...
6581 func_mode_link ()
6582 {
6583 $debug_cmd
6584
6585 case $host in
6586 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6587 # It is impossible to link a dll without this setting, and
6588 # we shouldn't force the makefile maintainer to figure out
6589 # what system we are compiling for in order to pass an extra
6590 # flag for every libtool invocation.
6591 # allow_undefined=no
6592
6593 # FIXME: Unfortunately, there are problems with the above when trying
6594 # to make a dll that has undefined symbols, in which case not
6595 # even a static library is built. For now, we need to specify
6596 # -no-undefined on the libtool link line when we can be certain
6597 # that all symbols are satisfied, otherwise we get a static library.
6598 allow_undefined=yes
6599 ;;
6600 *)
6601 allow_undefined=yes
6602 ;;
6603 esac
6604 libtool_args=$nonopt
6605 base_compile="$nonopt $@"
6606 compile_command=$nonopt
6607 finalize_command=$nonopt
6608
6609 compile_rpath=
6610 finalize_rpath=
6611 compile_shlibpath=
6612 finalize_shlibpath=
6613 convenience=
6614 old_convenience=
6615 deplibs=
6616 old_deplibs=
6617 compiler_flags=
6618 linker_flags=
6619 dllsearchpath=
6620 lib_search_path=`pwd`
6621 inst_prefix_dir=
6622 new_inherited_linker_flags=
6623
6624 avoid_version=no
6625 bindir=
6626 dlfiles=
6627 dlprefiles=
6628 dlself=no
6629 export_dynamic=no
6630 export_symbols=
6631 export_symbols_regex=
6632 generated=
6633 libobjs=
6634 ltlibs=
6635 module=no
6636 no_install=no
6637 objs=
6638 os2dllname=
6639 non_pic_objects=
6640 precious_files_regex=
6641 prefer_static_libs=no
6642 preload=false
6643 prev=
6644 prevarg=
6645 release=
6646 rpath=
6647 xrpath=
6648 perm_rpath=
6649 temp_rpath=
6650 thread_safe=no
6651 vinfo=
6652 vinfo_number=no
6653 weak_libs=
6654 single_module=$wl-single_module
6655 func_infer_tag $base_compile
6656
6657 # We need to know -static, to get the right output filenames.
6658 for arg
6659 do
6660 case $arg in
6661 -shared)
6662 test yes != "$build_libtool_libs" \
6663 && func_fatal_configuration "cannot build a shared library"
6664 build_old_libs=no
6665 break
6666 ;;
6667 -all-static | -static | -static-libtool-libs)
6668 case $arg in
6669 -all-static)
6670 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6671 func_warning "complete static linking is impossible in this configuration"
6672 fi
6673 if test -n "$link_static_flag"; then
6674 dlopen_self=$dlopen_self_static
6675 fi
6676 prefer_static_libs=yes
6677 ;;
6678 -static)
6679 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6680 dlopen_self=$dlopen_self_static
6681 fi
6682 prefer_static_libs=built
6683 ;;
6684 -static-libtool-libs)
6685 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6686 dlopen_self=$dlopen_self_static
6687 fi
6688 prefer_static_libs=yes
6689 ;;
6690 esac
6691 build_libtool_libs=no
6692 build_old_libs=yes
6693 break
6694 ;;
6695 esac
6696 done
6697
6698 # See if our shared archives depend on static archives.
6699 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
6700
6701 # Go through the arguments, transforming them on the way.
6702 while test "$#" -gt 0; do
6703 arg=$1
6704 shift
6705 func_quote_for_eval "$arg"
6706 qarg=$func_quote_for_eval_unquoted_result
6707 func_append libtool_args " $func_quote_for_eval_result"
6708
6709 # If the previous option needs an argument, assign it.
6710 if test -n "$prev"; then
6711 case $prev in
6712 output)
6713 func_append compile_command " @OUTPUT@"
6714 func_append finalize_command " @OUTPUT@"
6715 ;;
6716 esac
6717
6718 case $prev in
6719 bindir)
6720 bindir=$arg
6721 prev=
6722 continue
6723 ;;
6724 dlfiles|dlprefiles)
6725 $preload || {
6726 # Add the symbol object into the linking commands.
6727 func_append compile_command " @SYMFILE@"
6728 func_append finalize_command " @SYMFILE@"
6729 preload=:
6730 }
6731 case $arg in
6732 *.la | *.lo) ;; # We handle these cases below.
6733 force)
6734 if test no = "$dlself"; then
6735 dlself=needless
6736 export_dynamic=yes
6737 fi
6738 prev=
6739 continue
6740 ;;
6741 self)
6742 if test dlprefiles = "$prev"; then
6743 dlself=yes
6744 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
6745 dlself=yes
6746 else
6747 dlself=needless
6748 export_dynamic=yes
6749 fi
6750 prev=
6751 continue
6752 ;;
6753 *)
6754 if test dlfiles = "$prev"; then
6755 func_append dlfiles " $arg"
6756 else
6757 func_append dlprefiles " $arg"
6758 fi
6759 prev=
6760 continue
6761 ;;
6762 esac
6763 ;;
6764 expsyms)
6765 export_symbols=$arg
6766 test -f "$arg" \
6767 || func_fatal_error "symbol file '$arg' does not exist"
6768 prev=
6769 continue
6770 ;;
6771 expsyms_regex)
6772 export_symbols_regex=$arg
6773 prev=
6774 continue
6775 ;;
6776 framework)
6777 case $host in
6778 *-*-darwin*)
6779 case "$deplibs " in
6780 *" $qarg.ltframework "*) ;;
6781 *) func_append deplibs " $qarg.ltframework" # this is fixed later
6782 ;;
6783 esac
6784 ;;
6785 esac
6786 prev=
6787 continue
6788 ;;
6789 inst_prefix)
6790 inst_prefix_dir=$arg
6791 prev=
6792 continue
6793 ;;
6794 mllvm)
6795 # Clang does not use LLVM to link, so we can simply discard any
6796 # '-mllvm $arg' options when doing the link step.
6797 prev=
6798 continue
6799 ;;
6800 objectlist)
6801 if test -f "$arg"; then
6802 save_arg=$arg
6803 moreargs=
6804 for fil in `cat "$save_arg"`
6805 do
6806 # func_append moreargs " $fil"
6807 arg=$fil
6808 # A libtool-controlled object.
6809
6810 # Check to see that this really is a libtool object.
6811 if func_lalib_unsafe_p "$arg"; then
6812 pic_object=
6813 non_pic_object=
6814
6815 # Read the .lo file
6816 func_source "$arg"
6817
6818 if test -z "$pic_object" ||
6819 test -z "$non_pic_object" ||
6820 test none = "$pic_object" &&
6821 test none = "$non_pic_object"; then
6822 func_fatal_error "cannot find name of object for '$arg'"
6823 fi
6824
6825 # Extract subdirectory from the argument.
6826 func_dirname "$arg" "/" ""
6827 xdir=$func_dirname_result
6828
6829 if test none != "$pic_object"; then
6830 # Prepend the subdirectory the object is found in.
6831 pic_object=$xdir$pic_object
6832
6833 if test dlfiles = "$prev"; then
6834 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
6835 func_append dlfiles " $pic_object"
6836 prev=
6837 continue
6838 else
6839 # If libtool objects are unsupported, then we need to preload.
6840 prev=dlprefiles
6841 fi
6842 fi
6843
6844 # CHECK ME: I think I busted this. -Ossama
6845 if test dlprefiles = "$prev"; then
6846 # Preload the old-style object.
6847 func_append dlprefiles " $pic_object"
6848 prev=
6849 fi
6850
6851 # A PIC object.
6852 func_append libobjs " $pic_object"
6853 arg=$pic_object
6854 fi
6855
6856 # Non-PIC object.
6857 if test none != "$non_pic_object"; then
6858 # Prepend the subdirectory the object is found in.
6859 non_pic_object=$xdir$non_pic_object
6860
6861 # A standard non-PIC object
6862 func_append non_pic_objects " $non_pic_object"
6863 if test -z "$pic_object" || test none = "$pic_object"; then
6864 arg=$non_pic_object
6865 fi
6866 else
6867 # If the PIC object exists, use it instead.
6868 # $xdir was prepended to $pic_object above.
6869 non_pic_object=$pic_object
6870 func_append non_pic_objects " $non_pic_object"
6871 fi
6872 else
6873 # Only an error if not doing a dry-run.
6874 if $opt_dry_run; then
6875 # Extract subdirectory from the argument.
6876 func_dirname "$arg" "/" ""
6877 xdir=$func_dirname_result
6878
6879 func_lo2o "$arg"
6880 pic_object=$xdir$objdir/$func_lo2o_result
6881 non_pic_object=$xdir$func_lo2o_result
6882 func_append libobjs " $pic_object"
6883 func_append non_pic_objects " $non_pic_object"
6884 else
6885 func_fatal_error "'$arg' is not a valid libtool object"
6886 fi
6887 fi
6888 done
6889 else
6890 func_fatal_error "link input file '$arg' does not exist"
6891 fi
6892 arg=$save_arg
6893 prev=
6894 continue
6895 ;;
6896 os2dllname)
6897 os2dllname=$arg
6898 prev=
6899 continue
6900 ;;
6901 precious_regex)
6902 precious_files_regex=$arg
6903 prev=
6904 continue
6905 ;;
6906 release)
6907 release=-$arg
6908 prev=
6909 continue
6910 ;;
6911 rpath | xrpath)
6912 # We need an absolute path.
6913 case $arg in
6914 [\\/]* | [A-Za-z]:[\\/]*) ;;
6915 *)
6916 func_fatal_error "only absolute run-paths are allowed"
6917 ;;
6918 esac
6919 if test rpath = "$prev"; then
6920 case "$rpath " in
6921 *" $arg "*) ;;
6922 *) func_append rpath " $arg" ;;
6923 esac
6924 else
6925 case "$xrpath " in
6926 *" $arg "*) ;;
6927 *) func_append xrpath " $arg" ;;
6928 esac
6929 fi
6930 prev=
6931 continue
6932 ;;
6933 shrext)
6934 shrext_cmds=$arg
6935 prev=
6936 continue
6937 ;;
6938 weak)
6939 func_append weak_libs " $arg"
6940 prev=
6941 continue
6942 ;;
6943 xcclinker)
6944 func_append linker_flags " $qarg"
6945 func_append compiler_flags " $qarg"
6946 prev=
6947 func_append compile_command " $qarg"
6948 func_append finalize_command " $qarg"
6949 continue
6950 ;;
6951 xcompiler)
6952 func_append compiler_flags " $qarg"
6953 prev=
6954 func_append compile_command " $qarg"
6955 func_append finalize_command " $qarg"
6956 continue
6957 ;;
6958 xlinker)
6959 func_append linker_flags " $qarg"
6960 func_append compiler_flags " $wl$qarg"
6961 prev=
6962 func_append compile_command " $wl$qarg"
6963 func_append finalize_command " $wl$qarg"
6964 continue
6965 ;;
6966 *)
6967 eval "$prev=\"\$arg\""
6968 prev=
6969 continue
6970 ;;
6971 esac
6972 fi # test -n "$prev"
6973
6974 prevarg=$arg
6975
6976 case $arg in
6977 -all-static)
6978 if test -n "$link_static_flag"; then
6979 # See comment for -static flag below, for more details.
6980 func_append compile_command " $link_static_flag"
6981 func_append finalize_command " $link_static_flag"
6982 fi
6983 continue
6984 ;;
6985
6986 -allow-undefined)
6987 # FIXME: remove this flag sometime in the future.
6988 func_fatal_error "'-allow-undefined' must not be used because it is the default"
6989 ;;
6990
6991 -avoid-version)
6992 avoid_version=yes
6993 continue
6994 ;;
6995
6996 -bindir)
6997 prev=bindir
6998 continue
6999 ;;
7000
7001 -dlopen)
7002 prev=dlfiles
7003 continue
7004 ;;
7005
7006 -dlpreopen)
7007 prev=dlprefiles
7008 continue
7009 ;;
7010
7011 -export-dynamic)
7012 export_dynamic=yes
7013 continue
7014 ;;
7015
7016 -export-symbols | -export-symbols-regex)
7017 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
7018 func_fatal_error "more than one -exported-symbols argument is not allowed"
7019 fi
7020 if test X-export-symbols = "X$arg"; then
7021 prev=expsyms
7022 else
7023 prev=expsyms_regex
7024 fi
7025 continue
7026 ;;
7027
7028 -framework)
7029 prev=framework
7030 continue
7031 ;;
7032
7033 -inst-prefix-dir)
7034 prev=inst_prefix
7035 continue
7036 ;;
7037
7038 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
7039 # so, if we see these flags be careful not to treat them like -L
7040 -L[A-Z][A-Z]*:*)
7041 case $with_gcc/$host in
7042 no/*-*-irix* | /*-*-irix*)
7043 func_append compile_command " $arg"
7044 func_append finalize_command " $arg"
7045 ;;
7046 esac
7047 continue
7048 ;;
7049
7050 -L*)
7051 func_stripname "-L" '' "$arg"
7052 if test -z "$func_stripname_result"; then
7053 if test "$#" -gt 0; then
7054 func_fatal_error "require no space between '-L' and '$1'"
7055 else
7056 func_fatal_error "need path for '-L' option"
7057 fi
7058 fi
7059 func_resolve_sysroot "$func_stripname_result"
7060 dir=$func_resolve_sysroot_result
7061 # We need an absolute path.
7062 case $dir in
7063 [\\/]* | [A-Za-z]:[\\/]*) ;;
7064 *)
7065 absdir=`cd "$dir" && pwd`
7066 test -z "$absdir" && \
7067 func_fatal_error "cannot determine absolute directory name of '$dir'"
7068 dir=$absdir
7069 ;;
7070 esac
7071 case "$deplibs " in
7072 *" -L$dir "* | *" $arg "*)
7073 # Will only happen for absolute or sysroot arguments
7074 ;;
7075 *)
7076 # Preserve sysroot, but never include relative directories
7077 case $dir in
7078 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
7079 *) func_append deplibs " -L$dir" ;;
7080 esac
7081 func_append lib_search_path " $dir"
7082 ;;
7083 esac
7084 case $host in
7085 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7086 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
7087 case :$dllsearchpath: in
7088 *":$dir:"*) ;;
7089 ::) dllsearchpath=$dir;;
7090 *) func_append dllsearchpath ":$dir";;
7091 esac
7092 case :$dllsearchpath: in
7093 *":$testbindir:"*) ;;
7094 ::) dllsearchpath=$testbindir;;
7095 *) func_append dllsearchpath ":$testbindir";;
7096 esac
7097 ;;
7098 esac
7099 continue
7100 ;;
7101
7102 -l*)
7103 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7104 case $host in
7105 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7106 # These systems don't actually have a C or math library (as such)
7107 continue
7108 ;;
7109 *-*-os2*)
7110 # These systems don't actually have a C library (as such)
7111 test X-lc = "X$arg" && continue
7112 ;;
7113 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7114 # Do not include libc due to us having libc/libc_r.
7115 test X-lc = "X$arg" && continue
7116 ;;
7117 *-*-rhapsody* | *-*-darwin1.[012])
7118 # Rhapsody C and math libraries are in the System framework
7119 func_append deplibs " System.ltframework"
7120 continue
7121 ;;
7122 *-*-sco3.2v5* | *-*-sco5v6*)
7123 # Causes problems with __ctype
7124 test X-lc = "X$arg" && continue
7125 ;;
7126 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7127 # Compiler inserts libc in the correct place for threads to work
7128 test X-lc = "X$arg" && continue
7129 ;;
7130 esac
7131 elif test X-lc_r = "X$arg"; then
7132 case $host in
7133 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7134 # Do not include libc_r directly, use -pthread flag.
7135 continue
7136 ;;
7137 esac
7138 fi
7139 func_append deplibs " $arg"
7140 continue
7141 ;;
7142
7143 -mllvm)
7144 prev=mllvm
7145 continue
7146 ;;
7147
7148 -module)
7149 module=yes
7150 continue
7151 ;;
7152
7153 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7154 # classes, name mangling, and exception handling.
7155 # Darwin uses the -arch flag to determine output architecture.
7156 -model|-arch|-isysroot|--sysroot)
7157 func_append compiler_flags " $arg"
7158 func_append compile_command " $arg"
7159 func_append finalize_command " $arg"
7160 prev=xcompiler
7161 continue
7162 ;;
7163
7164 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7165 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7166 func_append compiler_flags " $arg"
7167 func_append compile_command " $arg"
7168 func_append finalize_command " $arg"
7169 case "$new_inherited_linker_flags " in
7170 *" $arg "*) ;;
7171 * ) func_append new_inherited_linker_flags " $arg" ;;
7172 esac
7173 continue
7174 ;;
7175
7176 -multi_module)
7177 single_module=$wl-multi_module
7178 continue
7179 ;;
7180
7181 -no-fast-install)
7182 fast_install=no
7183 continue
7184 ;;
7185
7186 -no-install)
7187 case $host in
7188 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7189 # The PATH hackery in wrapper scripts is required on Windows
7190 # and Darwin in order for the loader to find any dlls it needs.
7191 func_warning "'-no-install' is ignored for $host"
7192 func_warning "assuming '-no-fast-install' instead"
7193 fast_install=no
7194 ;;
7195 *) no_install=yes ;;
7196 esac
7197 continue
7198 ;;
7199
7200 -no-undefined)
7201 allow_undefined=no
7202 continue
7203 ;;
7204
7205 -objectlist)
7206 prev=objectlist
7207 continue
7208 ;;
7209
7210 -os2dllname)
7211 prev=os2dllname
7212 continue
7213 ;;
7214
7215 -o) prev=output ;;
7216
7217 -precious-files-regex)
7218 prev=precious_regex
7219 continue
7220 ;;
7221
7222 -release)
7223 prev=release
7224 continue
7225 ;;
7226
7227 -rpath)
7228 prev=rpath
7229 continue
7230 ;;
7231
7232 -R)
7233 prev=xrpath
7234 continue
7235 ;;
7236
7237 -R*)
7238 func_stripname '-R' '' "$arg"
7239 dir=$func_stripname_result
7240 # We need an absolute path.
7241 case $dir in
7242 [\\/]* | [A-Za-z]:[\\/]*) ;;
7243 =*)
7244 func_stripname '=' '' "$dir"
7245 dir=$lt_sysroot$func_stripname_result
7246 ;;
7247 *)
7248 func_fatal_error "only absolute run-paths are allowed"
7249 ;;
7250 esac
7251 case "$xrpath " in
7252 *" $dir "*) ;;
7253 *) func_append xrpath " $dir" ;;
7254 esac
7255 continue
7256 ;;
7257
7258 -shared)
7259 # The effects of -shared are defined in a previous loop.
7260 continue
7261 ;;
7262
7263 -shrext)
7264 prev=shrext
7265 continue
7266 ;;
7267
7268 -static | -static-libtool-libs)
7269 # The effects of -static are defined in a previous loop.
7270 # We used to do the same as -all-static on platforms that
7271 # didn't have a PIC flag, but the assumption that the effects
7272 # would be equivalent was wrong. It would break on at least
7273 # Digital Unix and AIX.
7274 continue
7275 ;;
7276
7277 -thread-safe)
7278 thread_safe=yes
7279 continue
7280 ;;
7281
7282 -version-info)
7283 prev=vinfo
7284 continue
7285 ;;
7286
7287 -version-number)
7288 prev=vinfo
7289 vinfo_number=yes
7290 continue
7291 ;;
7292
7293 -weak)
7294 prev=weak
7295 continue
7296 ;;
7297
7298 -Wc,*)
7299 func_stripname '-Wc,' '' "$arg"
7300 args=$func_stripname_result
7301 arg=
7302 save_ifs=$IFS; IFS=,
7303 for flag in $args; do
7304 IFS=$save_ifs
7305 func_quote_for_eval "$flag"
7306 func_append arg " $func_quote_for_eval_result"
7307 func_append compiler_flags " $func_quote_for_eval_result"
7308 done
7309 IFS=$save_ifs
7310 func_stripname ' ' '' "$arg"
7311 arg=$func_stripname_result
7312 ;;
7313
7314 -Wl,*)
7315 func_stripname '-Wl,' '' "$arg"
7316 args=$func_stripname_result
7317 arg=
7318 save_ifs=$IFS; IFS=,
7319 for flag in $args; do
7320 IFS=$save_ifs
7321 func_quote_for_eval "$flag"
7322 func_append arg " $wl$func_quote_for_eval_result"
7323 func_append compiler_flags " $wl$func_quote_for_eval_result"
7324 func_append linker_flags " $func_quote_for_eval_result"
7325 done
7326 IFS=$save_ifs
7327 func_stripname ' ' '' "$arg"
7328 arg=$func_stripname_result
7329 ;;
7330
7331 -Xcompiler)
7332 prev=xcompiler
7333 continue
7334 ;;
7335
7336 -Xlinker)
7337 prev=xlinker
7338 continue
7339 ;;
7340
7341 -XCClinker)
7342 prev=xcclinker
7343 continue
7344 ;;
7345
7346 # -msg_* for osf cc
7347 -msg_*)
7348 func_quote_for_eval "$arg"
7349 arg=$func_quote_for_eval_result
7350 ;;
7351
7352 # Flags to be passed through unchanged, with rationale:
7353 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7354 # -r[0-9][0-9]* specify processor for the SGI compiler
7355 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7356 # +DA*, +DD* enable 64-bit mode for the HP compiler
7357 # -q* compiler args for the IBM compiler
7358 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7359 # -F/path path to uninstalled frameworks, gcc on darwin
7360 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7361 # -fstack-protector* stack protector flags for GCC
7362 # @file GCC response files
7363 # -tp=* Portland pgcc target processor selection
7364 # --sysroot=* for sysroot support
7365 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7366 # -specs=* GCC specs files
7367 # -stdlib=* select c++ std lib with clang
7368 # -fsanitize=* Clang/GCC memory and address sanitizer
7369 # -fuse-ld=* Linker select flags for GCC
7370 # -static-* direct GCC to link specific libraries statically
7371 # -fcilkplus Cilk Plus language extension features for C/C++
7372 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7373 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7374 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7375 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus)
7376 func_quote_for_eval "$arg"
7377 arg=$func_quote_for_eval_result
7378 func_append compile_command " $arg"
7379 func_append finalize_command " $arg"
7380 func_append compiler_flags " $arg"
7381 continue
7382 ;;
7383
7384 -Z*)
7385 if test os2 = "`expr $host : '.*\(os2\)'`"; then
7386 # OS/2 uses -Zxxx to specify OS/2-specific options
7387 compiler_flags="$compiler_flags $arg"
7388 func_append compile_command " $arg"
7389 func_append finalize_command " $arg"
7390 case $arg in
7391 -Zlinker | -Zstack)
7392 prev=xcompiler
7393 ;;
7394 esac
7395 continue
7396 else
7397 # Otherwise treat like 'Some other compiler flag' below
7398 func_quote_for_eval "$arg"
7399 arg=$func_quote_for_eval_result
7400 fi
7401 ;;
7402
7403 # Some other compiler flag.
7404 -* | +*)
7405 func_quote_for_eval "$arg"
7406 arg=$func_quote_for_eval_result
7407 ;;
7408
7409 *.$objext)
7410 # A standard object.
7411 func_append objs " $arg"
7412 ;;
7413
7414 *.lo)
7415 # A libtool-controlled object.
7416
7417 # Check to see that this really is a libtool object.
7418 if func_lalib_unsafe_p "$arg"; then
7419 pic_object=
7420 non_pic_object=
7421
7422 # Read the .lo file
7423 func_source "$arg"
7424
7425 if test -z "$pic_object" ||
7426 test -z "$non_pic_object" ||
7427 test none = "$pic_object" &&
7428 test none = "$non_pic_object"; then
7429 func_fatal_error "cannot find name of object for '$arg'"
7430 fi
7431
7432 # Extract subdirectory from the argument.
7433 func_dirname "$arg" "/" ""
7434 xdir=$func_dirname_result
7435
7436 test none = "$pic_object" || {
7437 # Prepend the subdirectory the object is found in.
7438 pic_object=$xdir$pic_object
7439
7440 if test dlfiles = "$prev"; then
7441 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
7442 func_append dlfiles " $pic_object"
7443 prev=
7444 continue
7445 else
7446 # If libtool objects are unsupported, then we need to preload.
7447 prev=dlprefiles
7448 fi
7449 fi
7450
7451 # CHECK ME: I think I busted this. -Ossama
7452 if test dlprefiles = "$prev"; then
7453 # Preload the old-style object.
7454 func_append dlprefiles " $pic_object"
7455 prev=
7456 fi
7457
7458 # A PIC object.
7459 func_append libobjs " $pic_object"
7460 arg=$pic_object
7461 }
7462
7463 # Non-PIC object.
7464 if test none != "$non_pic_object"; then
7465 # Prepend the subdirectory the object is found in.
7466 non_pic_object=$xdir$non_pic_object
7467
7468 # A standard non-PIC object
7469 func_append non_pic_objects " $non_pic_object"
7470 if test -z "$pic_object" || test none = "$pic_object"; then
7471 arg=$non_pic_object
7472 fi
7473 else
7474 # If the PIC object exists, use it instead.
7475 # $xdir was prepended to $pic_object above.
7476 non_pic_object=$pic_object
7477 func_append non_pic_objects " $non_pic_object"
7478 fi
7479 else
7480 # Only an error if not doing a dry-run.
7481 if $opt_dry_run; then
7482 # Extract subdirectory from the argument.
7483 func_dirname "$arg" "/" ""
7484 xdir=$func_dirname_result
7485
7486 func_lo2o "$arg"
7487 pic_object=$xdir$objdir/$func_lo2o_result
7488 non_pic_object=$xdir$func_lo2o_result
7489 func_append libobjs " $pic_object"
7490 func_append non_pic_objects " $non_pic_object"
7491 else
7492 func_fatal_error "'$arg' is not a valid libtool object"
7493 fi
7494 fi
7495 ;;
7496
7497 *.$libext)
7498 # An archive.
7499 func_append deplibs " $arg"
7500 func_append old_deplibs " $arg"
7501 continue
7502 ;;
7503
7504 *.la)
7505 # A libtool-controlled library.
7506
7507 func_resolve_sysroot "$arg"
7508 if test dlfiles = "$prev"; then
7509 # This library was specified with -dlopen.
7510 func_append dlfiles " $func_resolve_sysroot_result"
7511 prev=
7512 elif test dlprefiles = "$prev"; then
7513 # The library was specified with -dlpreopen.
7514 func_append dlprefiles " $func_resolve_sysroot_result"
7515 prev=
7516 else
7517 func_append deplibs " $func_resolve_sysroot_result"
7518 fi
7519 continue
7520 ;;
7521
7522 # Some other compiler argument.
7523 *)
7524 # Unknown arguments in both finalize_command and compile_command need
7525 # to be aesthetically quoted because they are evaled later.
7526 func_quote_for_eval "$arg"
7527 arg=$func_quote_for_eval_result
7528 ;;
7529 esac # arg
7530
7531 # Now actually substitute the argument into the commands.
7532 if test -n "$arg"; then
7533 func_append compile_command " $arg"
7534 func_append finalize_command " $arg"
7535 fi
7536 done # argument parsing loop
7537
7538 test -n "$prev" && \
7539 func_fatal_help "the '$prevarg' option requires an argument"
7540
7541 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7542 eval arg=\"$export_dynamic_flag_spec\"
7543 func_append compile_command " $arg"
7544 func_append finalize_command " $arg"
7545 fi
7546
7547 oldlibs=
7548 # calculate the name of the file, without its directory
7549 func_basename "$output"
7550 outputname=$func_basename_result
7551 libobjs_save=$libobjs
7552
7553 if test -n "$shlibpath_var"; then
7554 # get the directories listed in $shlibpath_var
7555 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
7556 else
7557 shlib_search_path=
7558 fi
7559 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
7560 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
7561
7562 # Definition is injected by LT_CONFIG during libtool generation.
7563 func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH"
7564
7565 func_dirname "$output" "/" ""
7566 output_objdir=$func_dirname_result$objdir
7567 func_to_tool_file "$output_objdir/"
7568 tool_output_objdir=$func_to_tool_file_result
7569 # Create the object directory.
7570 func_mkdir_p "$output_objdir"
7571
7572 # Determine the type of output
7573 case $output in
7574 "")
7575 func_fatal_help "you must specify an output file"
7576 ;;
7577 *.$libext) linkmode=oldlib ;;
7578 *.lo | *.$objext) linkmode=obj ;;
7579 *.la) linkmode=lib ;;
7580 *) linkmode=prog ;; # Anything else should be a program.
7581 esac
7582
7583 specialdeplibs=
7584
7585 libs=
7586 # Find all interdependent deplibs by searching for libraries
7587 # that are linked more than once (e.g. -la -lb -la)
7588 for deplib in $deplibs; do
7589 if $opt_preserve_dup_deps; then
7590 case "$libs " in
7591 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
7592 esac
7593 fi
7594 func_append libs " $deplib"
7595 done
7596
7597 if test lib = "$linkmode"; then
7598 libs="$predeps $libs $compiler_lib_search_path $postdeps"
7599
7600 # Compute libraries that are listed more than once in $predeps
7601 # $postdeps and mark them as special (i.e., whose duplicates are
7602 # not to be eliminated).
7603 pre_post_deps=
7604 if $opt_duplicate_compiler_generated_deps; then
7605 for pre_post_dep in $predeps $postdeps; do
7606 case "$pre_post_deps " in
7607 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
7608 esac
7609 func_append pre_post_deps " $pre_post_dep"
7610 done
7611 fi
7612 pre_post_deps=
7613 fi
7614
7615 deplibs=
7616 newdependency_libs=
7617 newlib_search_path=
7618 need_relink=no # whether we're linking any uninstalled libtool libraries
7619 notinst_deplibs= # not-installed libtool libraries
7620 notinst_path= # paths that contain not-installed libtool libraries
7621
7622 case $linkmode in
7623 lib)
7624 passes="conv dlpreopen link"
7625 for file in $dlfiles $dlprefiles; do
7626 case $file in
7627 *.la) ;;
7628 *)
7629 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
7630 ;;
7631 esac
7632 done
7633 ;;
7634 prog)
7635 compile_deplibs=
7636 finalize_deplibs=
7637 alldeplibs=false
7638 newdlfiles=
7639 newdlprefiles=
7640 passes="conv scan dlopen dlpreopen link"
7641 ;;
7642 *) passes="conv"
7643 ;;
7644 esac
7645
7646 for pass in $passes; do
7647 # The preopen pass in lib mode reverses $deplibs; put it back here
7648 # so that -L comes before libs that need it for instance...
7649 if test lib,link = "$linkmode,$pass"; then
7650 ## FIXME: Find the place where the list is rebuilt in the wrong
7651 ## order, and fix it there properly
7652 tmp_deplibs=
7653 for deplib in $deplibs; do
7654 tmp_deplibs="$deplib $tmp_deplibs"
7655 done
7656 deplibs=$tmp_deplibs
7657 fi
7658
7659 if test lib,link = "$linkmode,$pass" ||
7660 test prog,scan = "$linkmode,$pass"; then
7661 libs=$deplibs
7662 deplibs=
7663 fi
7664 if test prog = "$linkmode"; then
7665 case $pass in
7666 dlopen) libs=$dlfiles ;;
7667 dlpreopen) libs=$dlprefiles ;;
7668 link)
7669 libs="$deplibs %DEPLIBS%"
7670 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
7671 ;;
7672 esac
7673 fi
7674 if test lib,dlpreopen = "$linkmode,$pass"; then
7675 # Collect and forward deplibs of preopened libtool libs
7676 for lib in $dlprefiles; do
7677 # Ignore non-libtool-libs
7678 dependency_libs=
7679 func_resolve_sysroot "$lib"
7680 case $lib in
7681 *.la) func_source "$func_resolve_sysroot_result" ;;
7682 esac
7683
7684 # Collect preopened libtool deplibs, except any this library
7685 # has declared as weak libs
7686 for deplib in $dependency_libs; do
7687 func_basename "$deplib"
7688 deplib_base=$func_basename_result
7689 case " $weak_libs " in
7690 *" $deplib_base "*) ;;
7691 *) func_append deplibs " $deplib" ;;
7692 esac
7693 done
7694 done
7695 libs=$dlprefiles
7696 fi
7697 if test dlopen = "$pass"; then
7698 # Collect dlpreopened libraries
7699 save_deplibs=$deplibs
7700 deplibs=
7701 fi
7702
7703 for deplib in $libs; do
7704 lib=
7705 found=false
7706 case $deplib in
7707 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7708 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7709 if test prog,link = "$linkmode,$pass"; then
7710 compile_deplibs="$deplib $compile_deplibs"
7711 finalize_deplibs="$deplib $finalize_deplibs"
7712 else
7713 func_append compiler_flags " $deplib"
7714 if test lib = "$linkmode"; then
7715 case "$new_inherited_linker_flags " in
7716 *" $deplib "*) ;;
7717 * ) func_append new_inherited_linker_flags " $deplib" ;;
7718 esac
7719 fi
7720 fi
7721 continue
7722 ;;
7723 -l*)
7724 if test lib != "$linkmode" && test prog != "$linkmode"; then
7725 func_warning "'-l' is ignored for archives/objects"
7726 continue
7727 fi
7728 func_stripname '-l' '' "$deplib"
7729 name=$func_stripname_result
7730 if test lib = "$linkmode"; then
7731 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
7732 else
7733 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
7734 fi
7735 for searchdir in $searchdirs; do
7736 for search_ext in .la $std_shrext .so .a; do
7737 # Search the libtool library
7738 lib=$searchdir/lib$name$search_ext
7739 if test -f "$lib"; then
7740 if test .la = "$search_ext"; then
7741 found=:
7742 else
7743 found=false
7744 fi
7745 break 2
7746 fi
7747 done
7748 done
7749 if $found; then
7750 # deplib is a libtool library
7751 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
7752 # We need to do some special things here, and not later.
7753 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
7754 case " $predeps $postdeps " in
7755 *" $deplib "*)
7756 if func_lalib_p "$lib"; then
7757 library_names=
7758 old_library=
7759 func_source "$lib"
7760 for l in $old_library $library_names; do
7761 ll=$l
7762 done
7763 if test "X$ll" = "X$old_library"; then # only static version available
7764 found=false
7765 func_dirname "$lib" "" "."
7766 ladir=$func_dirname_result
7767 lib=$ladir/$old_library
7768 if test prog,link = "$linkmode,$pass"; then
7769 compile_deplibs="$deplib $compile_deplibs"
7770 finalize_deplibs="$deplib $finalize_deplibs"
7771 else
7772 deplibs="$deplib $deplibs"
7773 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7774 fi
7775 continue
7776 fi
7777 fi
7778 ;;
7779 *) ;;
7780 esac
7781 fi
7782 else
7783 # deplib doesn't seem to be a libtool library
7784 if test prog,link = "$linkmode,$pass"; then
7785 compile_deplibs="$deplib $compile_deplibs"
7786 finalize_deplibs="$deplib $finalize_deplibs"
7787 else
7788 deplibs="$deplib $deplibs"
7789 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7790 fi
7791 continue
7792 fi
7793 ;; # -l
7794 *.ltframework)
7795 if test prog,link = "$linkmode,$pass"; then
7796 compile_deplibs="$deplib $compile_deplibs"
7797 finalize_deplibs="$deplib $finalize_deplibs"
7798 else
7799 deplibs="$deplib $deplibs"
7800 if test lib = "$linkmode"; then
7801 case "$new_inherited_linker_flags " in
7802 *" $deplib "*) ;;
7803 * ) func_append new_inherited_linker_flags " $deplib" ;;
7804 esac
7805 fi
7806 fi
7807 continue
7808 ;;
7809 -L*)
7810 case $linkmode in
7811 lib)
7812 deplibs="$deplib $deplibs"
7813 test conv = "$pass" && continue
7814 newdependency_libs="$deplib $newdependency_libs"
7815 func_stripname '-L' '' "$deplib"
7816 func_resolve_sysroot "$func_stripname_result"
7817 func_append newlib_search_path " $func_resolve_sysroot_result"
7818 ;;
7819 prog)
7820 if test conv = "$pass"; then
7821 deplibs="$deplib $deplibs"
7822 continue
7823 fi
7824 if test scan = "$pass"; then
7825 deplibs="$deplib $deplibs"
7826 else
7827 compile_deplibs="$deplib $compile_deplibs"
7828 finalize_deplibs="$deplib $finalize_deplibs"
7829 fi
7830 func_stripname '-L' '' "$deplib"
7831 func_resolve_sysroot "$func_stripname_result"
7832 func_append newlib_search_path " $func_resolve_sysroot_result"
7833 ;;
7834 *)
7835 func_warning "'-L' is ignored for archives/objects"
7836 ;;
7837 esac # linkmode
7838 continue
7839 ;; # -L
7840 -R*)
7841 if test link = "$pass"; then
7842 func_stripname '-R' '' "$deplib"
7843 func_resolve_sysroot "$func_stripname_result"
7844 dir=$func_resolve_sysroot_result
7845 # Make sure the xrpath contains only unique directories.
7846 case "$xrpath " in
7847 *" $dir "*) ;;
7848 *) func_append xrpath " $dir" ;;
7849 esac
7850 fi
7851 deplibs="$deplib $deplibs"
7852 continue
7853 ;;
7854 *.la)
7855 func_resolve_sysroot "$deplib"
7856 lib=$func_resolve_sysroot_result
7857 ;;
7858 *.$libext)
7859 if test conv = "$pass"; then
7860 deplibs="$deplib $deplibs"
7861 continue
7862 fi
7863 case $linkmode in
7864 lib)
7865 # Linking convenience modules into shared libraries is allowed,
7866 # but linking other static libraries is non-portable.
7867 case " $dlpreconveniencelibs " in
7868 *" $deplib "*) ;;
7869 *)
7870 valid_a_lib=false
7871 case $deplibs_check_method in
7872 match_pattern*)
7873 set dummy $deplibs_check_method; shift
7874 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
7875 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
7876 | $EGREP "$match_pattern_regex" > /dev/null; then
7877 valid_a_lib=:
7878 fi
7879 ;;
7880 pass_all)
7881 valid_a_lib=:
7882 ;;
7883 esac
7884 if $valid_a_lib; then
7885 echo
7886 $ECHO "*** Warning: Linking the shared library $output against the"
7887 $ECHO "*** static library $deplib is not portable!"
7888 deplibs="$deplib $deplibs"
7889 else
7890 echo
7891 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
7892 echo "*** I have the capability to make that library automatically link in when"
7893 echo "*** you link to this library. But I can only do this if you have a"
7894 echo "*** shared version of the library, which you do not appear to have"
7895 echo "*** because the file extensions .$libext of this argument makes me believe"
7896 echo "*** that it is just a static archive that I should not use here."
7897 fi
7898 ;;
7899 esac
7900 continue
7901 ;;
7902 prog)
7903 if test link != "$pass"; then
7904 deplibs="$deplib $deplibs"
7905 else
7906 compile_deplibs="$deplib $compile_deplibs"
7907 finalize_deplibs="$deplib $finalize_deplibs"
7908 fi
7909 continue
7910 ;;
7911 esac # linkmode
7912 ;; # *.$libext
7913 *.lo | *.$objext)
7914 if test conv = "$pass"; then
7915 deplibs="$deplib $deplibs"
7916 elif test prog = "$linkmode"; then
7917 if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then
7918 # If there is no dlopen support or we're linking statically,
7919 # we need to preload.
7920 func_append newdlprefiles " $deplib"
7921 compile_deplibs="$deplib $compile_deplibs"
7922 finalize_deplibs="$deplib $finalize_deplibs"
7923 else
7924 func_append newdlfiles " $deplib"
7925 fi
7926 fi
7927 continue
7928 ;;
7929 %DEPLIBS%)
7930 alldeplibs=:
7931 continue
7932 ;;
7933 esac # case $deplib
7934
7935 $found || test -f "$lib" \
7936 || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'"
7937
7938 # Check to see that this really is a libtool archive.
7939 func_lalib_unsafe_p "$lib" \
7940 || func_fatal_error "'$lib' is not a valid libtool archive"
7941
7942 func_dirname "$lib" "" "."
7943 ladir=$func_dirname_result
7944
7945 dlname=
7946 dlopen=
7947 dlpreopen=
7948 libdir=
7949 library_names=
7950 old_library=
7951 inherited_linker_flags=
7952 # If the library was installed with an old release of libtool,
7953 # it will not redefine variables installed, or shouldnotlink
7954 installed=yes
7955 shouldnotlink=no
7956 avoidtemprpath=
7957
7958
7959 # Read the .la file
7960 func_source "$lib"
7961
7962 # Convert "-framework foo" to "foo.ltframework"
7963 if test -n "$inherited_linker_flags"; then
7964 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
7965 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
7966 case " $new_inherited_linker_flags " in
7967 *" $tmp_inherited_linker_flag "*) ;;
7968 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
7969 esac
7970 done
7971 fi
7972 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7973 if test lib,link = "$linkmode,$pass" ||
7974 test prog,scan = "$linkmode,$pass" ||
7975 { test prog != "$linkmode" && test lib != "$linkmode"; }; then
7976 test -n "$dlopen" && func_append dlfiles " $dlopen"
7977 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
7978 fi
7979
7980 if test conv = "$pass"; then
7981 # Only check for convenience libraries
7982 deplibs="$lib $deplibs"
7983 if test -z "$libdir"; then
7984 if test -z "$old_library"; then
7985 func_fatal_error "cannot find name of link library for '$lib'"
7986 fi
7987 # It is a libtool convenience library, so add in its objects.
7988 func_append convenience " $ladir/$objdir/$old_library"
7989 func_append old_convenience " $ladir/$objdir/$old_library"
7990 tmp_libs=
7991 for deplib in $dependency_libs; do
7992 deplibs="$deplib $deplibs"
7993 if $opt_preserve_dup_deps; then
7994 case "$tmp_libs " in
7995 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
7996 esac
7997 fi
7998 func_append tmp_libs " $deplib"
7999 done
8000 elif test prog != "$linkmode" && test lib != "$linkmode"; then
8001 func_fatal_error "'$lib' is not a convenience library"
8002 fi
8003 continue
8004 fi # $pass = conv
8005
8006
8007 # Get the name of the library we link against.
8008 linklib=
8009 if test -n "$old_library" &&
8010 { test yes = "$prefer_static_libs" ||
8011 test built,no = "$prefer_static_libs,$installed"; }; then
8012 linklib=$old_library
8013 else
8014 for l in $old_library $library_names; do
8015 linklib=$l
8016 done
8017 fi
8018 if test -z "$linklib"; then
8019 func_fatal_error "cannot find name of link library for '$lib'"
8020 fi
8021
8022 # This library was specified with -dlopen.
8023 if test dlopen = "$pass"; then
8024 test -z "$libdir" \
8025 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
8026 if test -z "$dlname" ||
8027 test yes != "$dlopen_support" ||
8028 test no = "$build_libtool_libs"
8029 then
8030 # If there is no dlname, no dlopen support or we're linking
8031 # statically, we need to preload. We also need to preload any
8032 # dependent libraries so libltdl's deplib preloader doesn't
8033 # bomb out in the load deplibs phase.
8034 func_append dlprefiles " $lib $dependency_libs"
8035 else
8036 func_append newdlfiles " $lib"
8037 fi
8038 continue
8039 fi # $pass = dlopen
8040
8041 # We need an absolute path.
8042 case $ladir in
8043 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
8044 *)
8045 abs_ladir=`cd "$ladir" && pwd`
8046 if test -z "$abs_ladir"; then
8047 func_warning "cannot determine absolute directory name of '$ladir'"
8048 func_warning "passing it literally to the linker, although it might fail"
8049 abs_ladir=$ladir
8050 fi
8051 ;;
8052 esac
8053 func_basename "$lib"
8054 laname=$func_basename_result
8055
8056 # Find the relevant object directory and library name.
8057 if test yes = "$installed"; then
8058 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8059 func_warning "library '$lib' was moved."
8060 dir=$ladir
8061 absdir=$abs_ladir
8062 libdir=$abs_ladir
8063 else
8064 dir=$lt_sysroot$libdir
8065 absdir=$lt_sysroot$libdir
8066 fi
8067 test yes = "$hardcode_automatic" && avoidtemprpath=yes
8068 else
8069 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8070 dir=$ladir
8071 absdir=$abs_ladir
8072 # Remove this search path later
8073 func_append notinst_path " $abs_ladir"
8074 else
8075 dir=$ladir/$objdir
8076 absdir=$abs_ladir/$objdir
8077 # Remove this search path later
8078 func_append notinst_path " $abs_ladir"
8079 fi
8080 fi # $installed = yes
8081 func_stripname 'lib' '.la' "$laname"
8082 name=$func_stripname_result
8083
8084 # This library was specified with -dlpreopen.
8085 if test dlpreopen = "$pass"; then
8086 if test -z "$libdir" && test prog = "$linkmode"; then
8087 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
8088 fi
8089 case $host in
8090 # special handling for platforms with PE-DLLs.
8091 *cygwin* | *mingw* | *cegcc* )
8092 # Linker will automatically link against shared library if both
8093 # static and shared are present. Therefore, ensure we extract
8094 # symbols from the import library if a shared library is present
8095 # (otherwise, the dlopen module name will be incorrect). We do
8096 # this by putting the import library name into $newdlprefiles.
8097 # We recover the dlopen module name by 'saving' the la file
8098 # name in a special purpose variable, and (later) extracting the
8099 # dlname from the la file.
8100 if test -n "$dlname"; then
8101 func_tr_sh "$dir/$linklib"
8102 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
8103 func_append newdlprefiles " $dir/$linklib"
8104 else
8105 func_append newdlprefiles " $dir/$old_library"
8106 # Keep a list of preopened convenience libraries to check
8107 # that they are being used correctly in the link pass.
8108 test -z "$libdir" && \
8109 func_append dlpreconveniencelibs " $dir/$old_library"
8110 fi
8111 ;;
8112 * )
8113 # Prefer using a static library (so that no silly _DYNAMIC symbols
8114 # are required to link).
8115 if test -n "$old_library"; then
8116 func_append newdlprefiles " $dir/$old_library"
8117 # Keep a list of preopened convenience libraries to check
8118 # that they are being used correctly in the link pass.
8119 test -z "$libdir" && \
8120 func_append dlpreconveniencelibs " $dir/$old_library"
8121 # Otherwise, use the dlname, so that lt_dlopen finds it.
8122 elif test -n "$dlname"; then
8123 func_append newdlprefiles " $dir/$dlname"
8124 else
8125 func_append newdlprefiles " $dir/$linklib"
8126 fi
8127 ;;
8128 esac
8129 fi # $pass = dlpreopen
8130
8131 if test -z "$libdir"; then
8132 # Link the convenience library
8133 if test lib = "$linkmode"; then
8134 deplibs="$dir/$old_library $deplibs"
8135 elif test prog,link = "$linkmode,$pass"; then
8136 compile_deplibs="$dir/$old_library $compile_deplibs"
8137 finalize_deplibs="$dir/$old_library $finalize_deplibs"
8138 else
8139 deplibs="$lib $deplibs" # used for prog,scan pass
8140 fi
8141 continue
8142 fi
8143
8144
8145 if test prog = "$linkmode" && test link != "$pass"; then
8146 func_append newlib_search_path " $ladir"
8147 deplibs="$lib $deplibs"
8148
8149 linkalldeplibs=false
8150 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8151 test no = "$build_libtool_libs"; then
8152 linkalldeplibs=:
8153 fi
8154
8155 tmp_libs=
8156 for deplib in $dependency_libs; do
8157 case $deplib in
8158 -L*) func_stripname '-L' '' "$deplib"
8159 func_resolve_sysroot "$func_stripname_result"
8160 func_append newlib_search_path " $func_resolve_sysroot_result"
8161 ;;
8162 esac
8163 # Need to link against all dependency_libs?
8164 if $linkalldeplibs; then
8165 deplibs="$deplib $deplibs"
8166 else
8167 # Need to hardcode shared library paths
8168 # or/and link against static libraries
8169 newdependency_libs="$deplib $newdependency_libs"
8170 fi
8171 if $opt_preserve_dup_deps; then
8172 case "$tmp_libs " in
8173 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
8174 esac
8175 fi
8176 func_append tmp_libs " $deplib"
8177 done # for deplib
8178 continue
8179 fi # $linkmode = prog...
8180
8181 if test prog,link = "$linkmode,$pass"; then
8182 if test -n "$library_names" &&
8183 { { test no = "$prefer_static_libs" ||
8184 test built,yes = "$prefer_static_libs,$installed"; } ||
8185 test -z "$old_library"; }; then
8186 # We need to hardcode the library path
8187 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8188 # Make sure the rpath contains only unique directories.
8189 case $temp_rpath: in
8190 *"$absdir:"*) ;;
8191 *) func_append temp_rpath "$absdir:" ;;
8192 esac
8193 fi
8194
8195 # Hardcode the library path.
8196 # Skip directories that are in the system default run-time
8197 # search path.
8198 case " $sys_lib_dlsearch_path " in
8199 *" $absdir "*) ;;
8200 *)
8201 case "$compile_rpath " in
8202 *" $absdir "*) ;;
8203 *) func_append compile_rpath " $absdir" ;;
8204 esac
8205 ;;
8206 esac
8207 case " $sys_lib_dlsearch_path " in
8208 *" $libdir "*) ;;
8209 *)
8210 case "$finalize_rpath " in
8211 *" $libdir "*) ;;
8212 *) func_append finalize_rpath " $libdir" ;;
8213 esac
8214 ;;
8215 esac
8216 fi # $linkmode,$pass = prog,link...
8217
8218 if $alldeplibs &&
8219 { test pass_all = "$deplibs_check_method" ||
8220 { test yes = "$build_libtool_libs" &&
8221 test -n "$library_names"; }; }; then
8222 # We only need to search for static libraries
8223 continue
8224 fi
8225 fi
8226
8227 link_static=no # Whether the deplib will be linked statically
8228 use_static_libs=$prefer_static_libs
8229 if test built = "$use_static_libs" && test yes = "$installed"; then
8230 use_static_libs=no
8231 fi
8232 if test -n "$library_names" &&
8233 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8234 case $host in
8235 *cygwin* | *mingw* | *cegcc* | *os2*)
8236 # No point in relinking DLLs because paths are not encoded
8237 func_append notinst_deplibs " $lib"
8238 need_relink=no
8239 ;;
8240 *)
8241 if test no = "$installed"; then
8242 func_append notinst_deplibs " $lib"
8243 need_relink=yes
8244 fi
8245 ;;
8246 esac
8247 # This is a shared library
8248
8249 # Warn about portability, can't link against -module's on some
8250 # systems (darwin). Don't bleat about dlopened modules though!
8251 dlopenmodule=
8252 for dlpremoduletest in $dlprefiles; do
8253 if test "X$dlpremoduletest" = "X$lib"; then
8254 dlopenmodule=$dlpremoduletest
8255 break
8256 fi
8257 done
8258 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8259 echo
8260 if test prog = "$linkmode"; then
8261 $ECHO "*** Warning: Linking the executable $output against the loadable module"
8262 else
8263 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
8264 fi
8265 $ECHO "*** $linklib is not portable!"
8266 fi
8267 if test lib = "$linkmode" &&
8268 test yes = "$hardcode_into_libs"; then
8269 # Hardcode the library path.
8270 # Skip directories that are in the system default run-time
8271 # search path.
8272 case " $sys_lib_dlsearch_path " in
8273 *" $absdir "*) ;;
8274 *)
8275 case "$compile_rpath " in
8276 *" $absdir "*) ;;
8277 *) func_append compile_rpath " $absdir" ;;
8278 esac
8279 ;;
8280 esac
8281 case " $sys_lib_dlsearch_path " in
8282 *" $libdir "*) ;;
8283 *)
8284 case "$finalize_rpath " in
8285 *" $libdir "*) ;;
8286 *) func_append finalize_rpath " $libdir" ;;
8287 esac
8288 ;;
8289 esac
8290 fi
8291
8292 if test -n "$old_archive_from_expsyms_cmds"; then
8293 # figure out the soname
8294 set dummy $library_names
8295 shift
8296 realname=$1
8297 shift
8298 libname=`eval "\\$ECHO \"$libname_spec\""`
8299 # use dlname if we got it. it's perfectly good, no?
8300 if test -n "$dlname"; then
8301 soname=$dlname
8302 elif test -n "$soname_spec"; then
8303 # bleh windows
8304 case $host in
8305 *cygwin* | mingw* | *cegcc* | *os2*)
8306 func_arith $current - $age
8307 major=$func_arith_result
8308 versuffix=-$major
8309 ;;
8310 esac
8311 eval soname=\"$soname_spec\"
8312 else
8313 soname=$realname
8314 fi
8315
8316 # Make a new name for the extract_expsyms_cmds to use
8317 soroot=$soname
8318 func_basename "$soroot"
8319 soname=$func_basename_result
8320 func_stripname 'lib' '.dll' "$soname"
8321 newlib=libimp-$func_stripname_result.a
8322
8323 # If the library has no export list, then create one now
8324 if test -f "$output_objdir/$soname-def"; then :
8325 else
8326 func_verbose "extracting exported symbol list from '$soname'"
8327 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
8328 fi
8329
8330 # Create $newlib
8331 if test -f "$output_objdir/$newlib"; then :; else
8332 func_verbose "generating import library for '$soname'"
8333 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
8334 fi
8335 # make sure the library variables are pointing to the new library
8336 dir=$output_objdir
8337 linklib=$newlib
8338 fi # test -n "$old_archive_from_expsyms_cmds"
8339
8340 if test prog = "$linkmode" || test relink != "$opt_mode"; then
8341 add_shlibpath=
8342 add_dir=
8343 add=
8344 lib_linked=yes
8345 case $hardcode_action in
8346 immediate | unsupported)
8347 if test no = "$hardcode_direct"; then
8348 add=$dir/$linklib
8349 case $host in
8350 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8351 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8352 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8353 *-*-unixware7*) add_dir=-L$dir ;;
8354 *-*-darwin* )
8355 # if the lib is a (non-dlopened) module then we cannot
8356 # link against it, someone is ignoring the earlier warnings
8357 if /usr/bin/file -L $add 2> /dev/null |
8358 $GREP ": [^:]* bundle" >/dev/null; then
8359 if test "X$dlopenmodule" != "X$lib"; then
8360 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
8361 if test -z "$old_library"; then
8362 echo
8363 echo "*** And there doesn't seem to be a static archive available"
8364 echo "*** The link will probably fail, sorry"
8365 else
8366 add=$dir/$old_library
8367 fi
8368 elif test -n "$old_library"; then
8369 add=$dir/$old_library
8370 fi
8371 fi
8372 esac
8373 elif test no = "$hardcode_minus_L"; then
8374 case $host in
8375 *-*-sunos*) add_shlibpath=$dir ;;
8376 esac
8377 add_dir=-L$dir
8378 add=-l$name
8379 elif test no = "$hardcode_shlibpath_var"; then
8380 add_shlibpath=$dir
8381 add=-l$name
8382 else
8383 lib_linked=no
8384 fi
8385 ;;
8386 relink)
8387 if test yes = "$hardcode_direct" &&
8388 test no = "$hardcode_direct_absolute"; then
8389 add=$dir/$linklib
8390 elif test yes = "$hardcode_minus_L"; then
8391 add_dir=-L$absdir
8392 # Try looking first in the location we're being installed to.
8393 if test -n "$inst_prefix_dir"; then
8394 case $libdir in
8395 [\\/]*)
8396 func_append add_dir " -L$inst_prefix_dir$libdir"
8397 ;;
8398 esac
8399 fi
8400 add=-l$name
8401 elif test yes = "$hardcode_shlibpath_var"; then
8402 add_shlibpath=$dir
8403 add=-l$name
8404 else
8405 lib_linked=no
8406 fi
8407 ;;
8408 *) lib_linked=no ;;
8409 esac
8410
8411 if test yes != "$lib_linked"; then
8412 func_fatal_configuration "unsupported hardcode properties"
8413 fi
8414
8415 if test -n "$add_shlibpath"; then
8416 case :$compile_shlibpath: in
8417 *":$add_shlibpath:"*) ;;
8418 *) func_append compile_shlibpath "$add_shlibpath:" ;;
8419 esac
8420 fi
8421 if test prog = "$linkmode"; then
8422 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8423 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8424 else
8425 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8426 test -n "$add" && deplibs="$add $deplibs"
8427 if test yes != "$hardcode_direct" &&
8428 test yes != "$hardcode_minus_L" &&
8429 test yes = "$hardcode_shlibpath_var"; then
8430 case :$finalize_shlibpath: in
8431 *":$libdir:"*) ;;
8432 *) func_append finalize_shlibpath "$libdir:" ;;
8433 esac
8434 fi
8435 fi
8436 fi
8437
8438 if test prog = "$linkmode" || test relink = "$opt_mode"; then
8439 add_shlibpath=
8440 add_dir=
8441 add=
8442 # Finalize command for both is simple: just hardcode it.
8443 if test yes = "$hardcode_direct" &&
8444 test no = "$hardcode_direct_absolute"; then
8445 add=$libdir/$linklib
8446 elif test yes = "$hardcode_minus_L"; then
8447 add_dir=-L$libdir
8448 add=-l$name
8449 elif test yes = "$hardcode_shlibpath_var"; then
8450 case :$finalize_shlibpath: in
8451 *":$libdir:"*) ;;
8452 *) func_append finalize_shlibpath "$libdir:" ;;
8453 esac
8454 add=-l$name
8455 elif test yes = "$hardcode_automatic"; then
8456 if test -n "$inst_prefix_dir" &&
8457 test -f "$inst_prefix_dir$libdir/$linklib"; then
8458 add=$inst_prefix_dir$libdir/$linklib
8459 else
8460 add=$libdir/$linklib
8461 fi
8462 else
8463 # We cannot seem to hardcode it, guess we'll fake it.
8464 add_dir=-L$libdir
8465 # Try looking first in the location we're being installed to.
8466 if test -n "$inst_prefix_dir"; then
8467 case $libdir in
8468 [\\/]*)
8469 func_append add_dir " -L$inst_prefix_dir$libdir"
8470 ;;
8471 esac
8472 fi
8473 add=-l$name
8474 fi
8475
8476 if test prog = "$linkmode"; then
8477 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8478 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8479 else
8480 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8481 test -n "$add" && deplibs="$add $deplibs"
8482 fi
8483 fi
8484 elif test prog = "$linkmode"; then
8485 # Here we assume that one of hardcode_direct or hardcode_minus_L
8486 # is not unsupported. This is valid on all known static and
8487 # shared platforms.
8488 if test unsupported != "$hardcode_direct"; then
8489 test -n "$old_library" && linklib=$old_library
8490 compile_deplibs="$dir/$linklib $compile_deplibs"
8491 finalize_deplibs="$dir/$linklib $finalize_deplibs"
8492 else
8493 compile_deplibs="-l$name -L$dir $compile_deplibs"
8494 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8495 fi
8496 elif test yes = "$build_libtool_libs"; then
8497 # Not a shared library
8498 if test pass_all != "$deplibs_check_method"; then
8499 # We're trying link a shared library against a static one
8500 # but the system doesn't support it.
8501
8502 # Just print a warning and add the library to dependency_libs so
8503 # that the program can be linked against the static library.
8504 echo
8505 $ECHO "*** Warning: This system cannot link to static lib archive $lib."
8506 echo "*** I have the capability to make that library automatically link in when"
8507 echo "*** you link to this library. But I can only do this if you have a"
8508 echo "*** shared version of the library, which you do not appear to have."
8509 if test yes = "$module"; then
8510 echo "*** But as you try to build a module library, libtool will still create "
8511 echo "*** a static module, that should work as long as the dlopening application"
8512 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8513 if test -z "$global_symbol_pipe"; then
8514 echo
8515 echo "*** However, this would only work if libtool was able to extract symbol"
8516 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
8517 echo "*** not find such a program. So, this module is probably useless."
8518 echo "*** 'nm' from GNU binutils and a full rebuild may help."
8519 fi
8520 if test no = "$build_old_libs"; then
8521 build_libtool_libs=module
8522 build_old_libs=yes
8523 else
8524 build_libtool_libs=no
8525 fi
8526 fi
8527 else
8528 deplibs="$dir/$old_library $deplibs"
8529 link_static=yes
8530 fi
8531 fi # link shared/static library?
8532
8533 if test lib = "$linkmode"; then
8534 if test -n "$dependency_libs" &&
8535 { test yes != "$hardcode_into_libs" ||
8536 test yes = "$build_old_libs" ||
8537 test yes = "$link_static"; }; then
8538 # Extract -R from dependency_libs
8539 temp_deplibs=
8540 for libdir in $dependency_libs; do
8541 case $libdir in
8542 -R*) func_stripname '-R' '' "$libdir"
8543 temp_xrpath=$func_stripname_result
8544 case " $xrpath " in
8545 *" $temp_xrpath "*) ;;
8546 *) func_append xrpath " $temp_xrpath";;
8547 esac;;
8548 *) func_append temp_deplibs " $libdir";;
8549 esac
8550 done
8551 dependency_libs=$temp_deplibs
8552 fi
8553
8554 func_append newlib_search_path " $absdir"
8555 # Link against this library
8556 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8557 # ... and its dependency_libs
8558 tmp_libs=
8559 for deplib in $dependency_libs; do
8560 newdependency_libs="$deplib $newdependency_libs"
8561 case $deplib in
8562 -L*) func_stripname '-L' '' "$deplib"
8563 func_resolve_sysroot "$func_stripname_result";;
8564 *) func_resolve_sysroot "$deplib" ;;
8565 esac
8566 if $opt_preserve_dup_deps; then
8567 case "$tmp_libs " in
8568 *" $func_resolve_sysroot_result "*)
8569 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
8570 esac
8571 fi
8572 func_append tmp_libs " $func_resolve_sysroot_result"
8573 done
8574
8575 if test no != "$link_all_deplibs"; then
8576 # Add the search paths of all dependency libraries
8577 for deplib in $dependency_libs; do
8578 path=
8579 case $deplib in
8580 -L*) path=$deplib ;;
8581 *.la)
8582 func_resolve_sysroot "$deplib"
8583 deplib=$func_resolve_sysroot_result
8584 func_dirname "$deplib" "" "."
8585 dir=$func_dirname_result
8586 # We need an absolute path.
8587 case $dir in
8588 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8589 *)
8590 absdir=`cd "$dir" && pwd`
8591 if test -z "$absdir"; then
8592 func_warning "cannot determine absolute directory name of '$dir'"
8593 absdir=$dir
8594 fi
8595 ;;
8596 esac
8597 if $GREP "^installed=no" $deplib > /dev/null; then
8598 case $host in
8599 *-*-darwin*)
8600 depdepl=
8601 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8602 if test -n "$deplibrary_names"; then
8603 for tmp in $deplibrary_names; do
8604 depdepl=$tmp
8605 done
8606 if test -f "$absdir/$objdir/$depdepl"; then
8607 depdepl=$absdir/$objdir/$depdepl
8608 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8609 if test -z "$darwin_install_name"; then
8610 darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8611 fi
8612 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8613 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8614 path=
8615 fi
8616 fi
8617 ;;
8618 *)
8619 path=-L$absdir/$objdir
8620 ;;
8621 esac
8622 else
8623 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8624 test -z "$libdir" && \
8625 func_fatal_error "'$deplib' is not a valid libtool archive"
8626 test "$absdir" != "$libdir" && \
8627 func_warning "'$deplib' seems to be moved"
8628
8629 path=-L$absdir
8630 fi
8631 ;;
8632 esac
8633 case " $deplibs " in
8634 *" $path "*) ;;
8635 *) deplibs="$path $deplibs" ;;
8636 esac
8637 done
8638 fi # link_all_deplibs != no
8639 fi # linkmode = lib
8640 done # for deplib in $libs
8641 if test link = "$pass"; then
8642 if test prog = "$linkmode"; then
8643 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
8644 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
8645 else
8646 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8647 fi
8648 fi
8649 dependency_libs=$newdependency_libs
8650 if test dlpreopen = "$pass"; then
8651 # Link the dlpreopened libraries before other libraries
8652 for deplib in $save_deplibs; do
8653 deplibs="$deplib $deplibs"
8654 done
8655 fi
8656 if test dlopen != "$pass"; then
8657 test conv = "$pass" || {
8658 # Make sure lib_search_path contains only unique directories.
8659 lib_search_path=
8660 for dir in $newlib_search_path; do
8661 case "$lib_search_path " in
8662 *" $dir "*) ;;
8663 *) func_append lib_search_path " $dir" ;;
8664 esac
8665 done
8666 newlib_search_path=
8667 }
8668
8669 if test prog,link = "$linkmode,$pass"; then
8670 vars="compile_deplibs finalize_deplibs"
8671 else
8672 vars=deplibs
8673 fi
8674 for var in $vars dependency_libs; do
8675 # Add libraries to $var in reverse order
8676 eval tmp_libs=\"\$$var\"
8677 new_libs=
8678 for deplib in $tmp_libs; do
8679 # FIXME: Pedantically, this is the right thing to do, so
8680 # that some nasty dependency loop isn't accidentally
8681 # broken:
8682 #new_libs="$deplib $new_libs"
8683 # Pragmatically, this seems to cause very few problems in
8684 # practice:
8685 case $deplib in
8686 -L*) new_libs="$deplib $new_libs" ;;
8687 -R*) ;;
8688 *)
8689 # And here is the reason: when a library appears more
8690 # than once as an explicit dependence of a library, or
8691 # is implicitly linked in more than once by the
8692 # compiler, it is considered special, and multiple
8693 # occurrences thereof are not removed. Compare this
8694 # with having the same library being listed as a
8695 # dependency of multiple other libraries: in this case,
8696 # we know (pedantically, we assume) the library does not
8697 # need to be listed more than once, so we keep only the
8698 # last copy. This is not always right, but it is rare
8699 # enough that we require users that really mean to play
8700 # such unportable linking tricks to link the library
8701 # using -Wl,-lname, so that libtool does not consider it
8702 # for duplicate removal.
8703 case " $specialdeplibs " in
8704 *" $deplib "*) new_libs="$deplib $new_libs" ;;
8705 *)
8706 case " $new_libs " in
8707 *" $deplib "*) ;;
8708 *) new_libs="$deplib $new_libs" ;;
8709 esac
8710 ;;
8711 esac
8712 ;;
8713 esac
8714 done
8715 tmp_libs=
8716 for deplib in $new_libs; do
8717 case $deplib in
8718 -L*)
8719 case " $tmp_libs " in
8720 *" $deplib "*) ;;
8721 *) func_append tmp_libs " $deplib" ;;
8722 esac
8723 ;;
8724 *) func_append tmp_libs " $deplib" ;;
8725 esac
8726 done
8727 eval $var=\"$tmp_libs\"
8728 done # for var
8729 fi
8730
8731 # Add Sun CC postdeps if required:
8732 test CXX = "$tagname" && {
8733 case $host_os in
8734 linux*)
8735 case `$CC -V 2>&1 | sed 5q` in
8736 *Sun\ C*) # Sun C++ 5.9
8737 func_suncc_cstd_abi
8738
8739 if test no != "$suncc_use_cstd_abi"; then
8740 func_append postdeps ' -library=Cstd -library=Crun'
8741 fi
8742 ;;
8743 esac
8744 ;;
8745
8746 solaris*)
8747 func_cc_basename "$CC"
8748 case $func_cc_basename_result in
8749 CC* | sunCC*)
8750 func_suncc_cstd_abi
8751
8752 if test no != "$suncc_use_cstd_abi"; then
8753 func_append postdeps ' -library=Cstd -library=Crun'
8754 fi
8755 ;;
8756 esac
8757 ;;
8758 esac
8759 }
8760
8761 # Last step: remove runtime libs from dependency_libs
8762 # (they stay in deplibs)
8763 tmp_libs=
8764 for i in $dependency_libs; do
8765 case " $predeps $postdeps $compiler_lib_search_path " in
8766 *" $i "*)
8767 i=
8768 ;;
8769 esac
8770 if test -n "$i"; then
8771 func_append tmp_libs " $i"
8772 fi
8773 done
8774 dependency_libs=$tmp_libs
8775 done # for pass
8776 if test prog = "$linkmode"; then
8777 dlfiles=$newdlfiles
8778 fi
8779 if test prog = "$linkmode" || test lib = "$linkmode"; then
8780 dlprefiles=$newdlprefiles
8781 fi
8782
8783 case $linkmode in
8784 oldlib)
8785 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8786 func_warning "'-dlopen' is ignored for archives"
8787 fi
8788
8789 case " $deplibs" in
8790 *\ -l* | *\ -L*)
8791 func_warning "'-l' and '-L' are ignored for archives" ;;
8792 esac
8793
8794 test -n "$rpath" && \
8795 func_warning "'-rpath' is ignored for archives"
8796
8797 test -n "$xrpath" && \
8798 func_warning "'-R' is ignored for archives"
8799
8800 test -n "$vinfo" && \
8801 func_warning "'-version-info/-version-number' is ignored for archives"
8802
8803 test -n "$release" && \
8804 func_warning "'-release' is ignored for archives"
8805
8806 test -n "$export_symbols$export_symbols_regex" && \
8807 func_warning "'-export-symbols' is ignored for archives"
8808
8809 # Now set the variables for building old libraries.
8810 build_libtool_libs=no
8811 oldlibs=$output
8812 func_append objs "$old_deplibs"
8813 ;;
8814
8815 lib)
8816 # Make sure we only generate libraries of the form 'libNAME.la'.
8817 case $outputname in
8818 lib*)
8819 func_stripname 'lib' '.la' "$outputname"
8820 name=$func_stripname_result
8821 eval shared_ext=\"$shrext_cmds\"
8822 eval libname=\"$libname_spec\"
8823 ;;
8824 *)
8825 test no = "$module" \
8826 && func_fatal_help "libtool library '$output' must begin with 'lib'"
8827
8828 if test no != "$need_lib_prefix"; then
8829 # Add the "lib" prefix for modules if required
8830 func_stripname '' '.la' "$outputname"
8831 name=$func_stripname_result
8832 eval shared_ext=\"$shrext_cmds\"
8833 eval libname=\"$libname_spec\"
8834 else
8835 func_stripname '' '.la' "$outputname"
8836 libname=$func_stripname_result
8837 fi
8838 ;;
8839 esac
8840
8841 if test -n "$objs"; then
8842 if test pass_all != "$deplibs_check_method"; then
8843 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
8844 else
8845 echo
8846 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
8847 $ECHO "*** objects $objs is not portable!"
8848 func_append libobjs " $objs"
8849 fi
8850 fi
8851
8852 test no = "$dlself" \
8853 || func_warning "'-dlopen self' is ignored for libtool libraries"
8854
8855 set dummy $rpath
8856 shift
8857 test 1 -lt "$#" \
8858 && func_warning "ignoring multiple '-rpath's for a libtool library"
8859
8860 install_libdir=$1
8861
8862 oldlibs=
8863 if test -z "$rpath"; then
8864 if test yes = "$build_libtool_libs"; then
8865 # Building a libtool convenience library.
8866 # Some compilers have problems with a '.al' extension so
8867 # convenience libraries should have the same extension an
8868 # archive normally would.
8869 oldlibs="$output_objdir/$libname.$libext $oldlibs"
8870 build_libtool_libs=convenience
8871 build_old_libs=yes
8872 fi
8873
8874 test -n "$vinfo" && \
8875 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
8876
8877 test -n "$release" && \
8878 func_warning "'-release' is ignored for convenience libraries"
8879 else
8880
8881 # Parse the version information argument.
8882 save_ifs=$IFS; IFS=:
8883 set dummy $vinfo 0 0 0
8884 shift
8885 IFS=$save_ifs
8886
8887 test -n "$7" && \
8888 func_fatal_help "too many parameters to '-version-info'"
8889
8890 # convert absolute version numbers to libtool ages
8891 # this retains compatibility with .la files and attempts
8892 # to make the code below a bit more comprehensible
8893
8894 case $vinfo_number in
8895 yes)
8896 number_major=$1
8897 number_minor=$2
8898 number_revision=$3
8899 #
8900 # There are really only two kinds -- those that
8901 # use the current revision as the major version
8902 # and those that subtract age and use age as
8903 # a minor version. But, then there is irix
8904 # that has an extra 1 added just for fun
8905 #
8906 case $version_type in
8907 # correct linux to gnu/linux during the next big refactor
8908 darwin|freebsd-elf|linux|osf|windows|none)
8909 func_arith $number_major + $number_minor
8910 current=$func_arith_result
8911 age=$number_minor
8912 revision=$number_revision
8913 ;;
8914 freebsd-aout|qnx|sunos)
8915 current=$number_major
8916 revision=$number_minor
8917 age=0
8918 ;;
8919 irix|nonstopux)
8920 func_arith $number_major + $number_minor
8921 current=$func_arith_result
8922 age=$number_minor
8923 revision=$number_minor
8924 lt_irix_increment=no
8925 ;;
8926 *)
8927 func_fatal_configuration "$modename: unknown library version type '$version_type'"
8928 ;;
8929 esac
8930 ;;
8931 no)
8932 current=$1
8933 revision=$2
8934 age=$3
8935 ;;
8936 esac
8937
8938 # Check that each of the things are valid numbers.
8939 case $current in
8940 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]) ;;
8941 *)
8942 func_error "CURRENT '$current' must be a nonnegative integer"
8943 func_fatal_error "'$vinfo' is not valid version information"
8944 ;;
8945 esac
8946
8947 case $revision in
8948 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]) ;;
8949 *)
8950 func_error "REVISION '$revision' must be a nonnegative integer"
8951 func_fatal_error "'$vinfo' is not valid version information"
8952 ;;
8953 esac
8954
8955 case $age in
8956 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]) ;;
8957 *)
8958 func_error "AGE '$age' must be a nonnegative integer"
8959 func_fatal_error "'$vinfo' is not valid version information"
8960 ;;
8961 esac
8962
8963 if test "$age" -gt "$current"; then
8964 func_error "AGE '$age' is greater than the current interface number '$current'"
8965 func_fatal_error "'$vinfo' is not valid version information"
8966 fi
8967
8968 # Calculate the version variables.
8969 major=
8970 versuffix=
8971 verstring=
8972 case $version_type in
8973 none) ;;
8974
8975 darwin)
8976 # Like Linux, but with the current version available in
8977 # verstring for coding it into the library header
8978 func_arith $current - $age
8979 major=.$func_arith_result
8980 versuffix=$major.$age.$revision
8981 # Darwin ld doesn't like 0 for these options...
8982 func_arith $current + 1
8983 minor_current=$func_arith_result
8984 xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
8985 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8986 # On Darwin other compilers
8987 case $CC in
8988 nagfor*)
8989 verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
8990 ;;
8991 *)
8992 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8993 ;;
8994 esac
8995 ;;
8996
8997 freebsd-aout)
8998 major=.$current
8999 versuffix=.$current.$revision
9000 ;;
9001
9002 freebsd-elf)
9003 func_arith $current - $age
9004 major=.$func_arith_result
9005 versuffix=$major.$age.$revision
9006 ;;
9007
9008 irix | nonstopux)
9009 if test no = "$lt_irix_increment"; then
9010 func_arith $current - $age
9011 else
9012 func_arith $current - $age + 1
9013 fi
9014 major=$func_arith_result
9015
9016 case $version_type in
9017 nonstopux) verstring_prefix=nonstopux ;;
9018 *) verstring_prefix=sgi ;;
9019 esac
9020 verstring=$verstring_prefix$major.$revision
9021
9022 # Add in all the interfaces that we are compatible with.
9023 loop=$revision
9024 while test 0 -ne "$loop"; do
9025 func_arith $revision - $loop
9026 iface=$func_arith_result
9027 func_arith $loop - 1
9028 loop=$func_arith_result
9029 verstring=$verstring_prefix$major.$iface:$verstring
9030 done
9031
9032 # Before this point, $major must not contain '.'.
9033 major=.$major
9034 versuffix=$major.$revision
9035 ;;
9036
9037 linux) # correct to gnu/linux during the next big refactor
9038 func_arith $current - $age
9039 major=.$func_arith_result
9040 versuffix=$major.$age.$revision
9041 ;;
9042
9043 osf)
9044 func_arith $current - $age
9045 major=.$func_arith_result
9046 versuffix=.$current.$age.$revision
9047 verstring=$current.$age.$revision
9048
9049 # Add in all the interfaces that we are compatible with.
9050 loop=$age
9051 while test 0 -ne "$loop"; do
9052 func_arith $current - $loop
9053 iface=$func_arith_result
9054 func_arith $loop - 1
9055 loop=$func_arith_result
9056 verstring=$verstring:$iface.0
9057 done
9058
9059 # Make executables depend on our current version.
9060 func_append verstring ":$current.0"
9061 ;;
9062
9063 qnx)
9064 major=.$current
9065 versuffix=.$current
9066 ;;
9067
9068 sco)
9069 major=.$current
9070 versuffix=.$current
9071 ;;
9072
9073 sunos)
9074 major=.$current
9075 versuffix=.$current.$revision
9076 ;;
9077
9078 windows)
9079 # Use '-' rather than '.', since we only want one
9080 # extension on DOS 8.3 file systems.
9081 func_arith $current - $age
9082 major=$func_arith_result
9083 versuffix=-$major
9084 ;;
9085
9086 *)
9087 func_fatal_configuration "unknown library version type '$version_type'"
9088 ;;
9089 esac
9090
9091 # Clear the version info if we defaulted, and they specified a release.
9092 if test -z "$vinfo" && test -n "$release"; then
9093 major=
9094 case $version_type in
9095 darwin)
9096 # we can't check for "0.0" in archive_cmds due to quoting
9097 # problems, so we reset it completely
9098 verstring=
9099 ;;
9100 *)
9101 verstring=0.0
9102 ;;
9103 esac
9104 if test no = "$need_version"; then
9105 versuffix=
9106 else
9107 versuffix=.0.0
9108 fi
9109 fi
9110
9111 # Remove version info from name if versioning should be avoided
9112 if test yes,no = "$avoid_version,$need_version"; then
9113 major=
9114 versuffix=
9115 verstring=
9116 fi
9117
9118 # Check to see if the archive will have undefined symbols.
9119 if test yes = "$allow_undefined"; then
9120 if test unsupported = "$allow_undefined_flag"; then
9121 if test yes = "$build_old_libs"; then
9122 func_warning "undefined symbols not allowed in $host shared libraries; building static only"
9123 build_libtool_libs=no
9124 else
9125 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9126 fi
9127 fi
9128 else
9129 # Don't allow undefined symbols.
9130 allow_undefined_flag=$no_undefined_flag
9131 fi
9132
9133 fi
9134
9135 func_generate_dlsyms "$libname" "$libname" :
9136 func_append libobjs " $symfileobj"
9137 test " " = "$libobjs" && libobjs=
9138
9139 if test relink != "$opt_mode"; then
9140 # Remove our outputs, but don't remove object files since they
9141 # may have been created when compiling PIC objects.
9142 removelist=
9143 tempremovelist=`$ECHO "$output_objdir/*"`
9144 for p in $tempremovelist; do
9145 case $p in
9146 *.$objext | *.gcno)
9147 ;;
9148 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
9149 if test -n "$precious_files_regex"; then
9150 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9151 then
9152 continue
9153 fi
9154 fi
9155 func_append removelist " $p"
9156 ;;
9157 *) ;;
9158 esac
9159 done
9160 test -n "$removelist" && \
9161 func_show_eval "${RM}r \$removelist"
9162 fi
9163
9164 # Now set the variables for building old libraries.
9165 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
9166 func_append oldlibs " $output_objdir/$libname.$libext"
9167
9168 # Transform .lo files to .o files.
9169 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
9170 fi
9171
9172 # Eliminate all temporary directories.
9173 #for path in $notinst_path; do
9174 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
9175 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9176 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9177 #done
9178
9179 if test -n "$xrpath"; then
9180 # If the user specified any rpath flags, then add them.
9181 temp_xrpath=
9182 for libdir in $xrpath; do
9183 func_replace_sysroot "$libdir"
9184 func_append temp_xrpath " -R$func_replace_sysroot_result"
9185 case "$finalize_rpath " in
9186 *" $libdir "*) ;;
9187 *) func_append finalize_rpath " $libdir" ;;
9188 esac
9189 done
9190 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
9191 dependency_libs="$temp_xrpath $dependency_libs"
9192 fi
9193 fi
9194
9195 # Make sure dlfiles contains only unique files that won't be dlpreopened
9196 old_dlfiles=$dlfiles
9197 dlfiles=
9198 for lib in $old_dlfiles; do
9199 case " $dlprefiles $dlfiles " in
9200 *" $lib "*) ;;
9201 *) func_append dlfiles " $lib" ;;
9202 esac
9203 done
9204
9205 # Make sure dlprefiles contains only unique files
9206 old_dlprefiles=$dlprefiles
9207 dlprefiles=
9208 for lib in $old_dlprefiles; do
9209 case "$dlprefiles " in
9210 *" $lib "*) ;;
9211 *) func_append dlprefiles " $lib" ;;
9212 esac
9213 done
9214
9215 if test yes = "$build_libtool_libs"; then
9216 if test -n "$rpath"; then
9217 case $host in
9218 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9219 # these systems don't actually have a c library (as such)!
9220 ;;
9221 *-*-rhapsody* | *-*-darwin1.[012])
9222 # Rhapsody C library is in the System framework
9223 func_append deplibs " System.ltframework"
9224 ;;
9225 *-*-netbsd*)
9226 # Don't link with libc until the a.out ld.so is fixed.
9227 ;;
9228 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
9229 # Do not include libc due to us having libc/libc_r.
9230 ;;
9231 *-*-sco3.2v5* | *-*-sco5v6*)
9232 # Causes problems with __ctype
9233 ;;
9234 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9235 # Compiler inserts libc in the correct place for threads to work
9236 ;;
9237 *)
9238 # Add libc to deplibs on all other systems if necessary.
9239 if test yes = "$build_libtool_need_lc"; then
9240 func_append deplibs " -lc"
9241 fi
9242 ;;
9243 esac
9244 fi
9245
9246 # Transform deplibs into only deplibs that can be linked in shared.
9247 name_save=$name
9248 libname_save=$libname
9249 release_save=$release
9250 versuffix_save=$versuffix
9251 major_save=$major
9252 # I'm not sure if I'm treating the release correctly. I think
9253 # release should show up in the -l (ie -lgmp5) so we don't want to
9254 # add it in twice. Is that correct?
9255 release=
9256 versuffix=
9257 major=
9258 newdeplibs=
9259 droppeddeps=no
9260 case $deplibs_check_method in
9261 pass_all)
9262 # Don't check for shared/static. Everything works.
9263 # This might be a little naive. We might want to check
9264 # whether the library exists or not. But this is on
9265 # osf3 & osf4 and I'm not really sure... Just
9266 # implementing what was already the behavior.
9267 newdeplibs=$deplibs
9268 ;;
9269 test_compile)
9270 # This code stresses the "libraries are programs" paradigm to its
9271 # limits. Maybe even breaks it. We compile a program, linking it
9272 # against the deplibs as a proxy for the library. Then we can check
9273 # whether they linked in statically or dynamically with ldd.
9274 $opt_dry_run || $RM conftest.c
9275 cat > conftest.c <<EOF
9276 int main() { return 0; }
9277 EOF
9278 $opt_dry_run || $RM conftest
9279 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
9280 ldd_output=`ldd conftest`
9281 for i in $deplibs; do
9282 case $i in
9283 -l*)
9284 func_stripname -l '' "$i"
9285 name=$func_stripname_result
9286 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9287 case " $predeps $postdeps " in
9288 *" $i "*)
9289 func_append newdeplibs " $i"
9290 i=
9291 ;;
9292 esac
9293 fi
9294 if test -n "$i"; then
9295 libname=`eval "\\$ECHO \"$libname_spec\""`
9296 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
9297 set dummy $deplib_matches; shift
9298 deplib_match=$1
9299 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9300 func_append newdeplibs " $i"
9301 else
9302 droppeddeps=yes
9303 echo
9304 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
9305 echo "*** I have the capability to make that library automatically link in when"
9306 echo "*** you link to this library. But I can only do this if you have a"
9307 echo "*** shared version of the library, which I believe you do not have"
9308 echo "*** because a test_compile did reveal that the linker did not use it for"
9309 echo "*** its dynamic dependency list that programs get resolved with at runtime."
9310 fi
9311 fi
9312 ;;
9313 *)
9314 func_append newdeplibs " $i"
9315 ;;
9316 esac
9317 done
9318 else
9319 # Error occurred in the first compile. Let's try to salvage
9320 # the situation: Compile a separate program for each library.
9321 for i in $deplibs; do
9322 case $i in
9323 -l*)
9324 func_stripname -l '' "$i"
9325 name=$func_stripname_result
9326 $opt_dry_run || $RM conftest
9327 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
9328 ldd_output=`ldd conftest`
9329 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9330 case " $predeps $postdeps " in
9331 *" $i "*)
9332 func_append newdeplibs " $i"
9333 i=
9334 ;;
9335 esac
9336 fi
9337 if test -n "$i"; then
9338 libname=`eval "\\$ECHO \"$libname_spec\""`
9339 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
9340 set dummy $deplib_matches; shift
9341 deplib_match=$1
9342 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9343 func_append newdeplibs " $i"
9344 else
9345 droppeddeps=yes
9346 echo
9347 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
9348 echo "*** I have the capability to make that library automatically link in when"
9349 echo "*** you link to this library. But I can only do this if you have a"
9350 echo "*** shared version of the library, which you do not appear to have"
9351 echo "*** because a test_compile did reveal that the linker did not use this one"
9352 echo "*** as a dynamic dependency that programs can get resolved with at runtime."
9353 fi
9354 fi
9355 else
9356 droppeddeps=yes
9357 echo
9358 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
9359 echo "*** make it link in! You will probably need to install it or some"
9360 echo "*** library that it depends on before this library will be fully"
9361 echo "*** functional. Installing it before continuing would be even better."
9362 fi
9363 ;;
9364 *)
9365 func_append newdeplibs " $i"
9366 ;;
9367 esac
9368 done
9369 fi
9370 ;;
9371 file_magic*)
9372 set dummy $deplibs_check_method; shift
9373 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
9374 for a_deplib in $deplibs; do
9375 case $a_deplib in
9376 -l*)
9377 func_stripname -l '' "$a_deplib"
9378 name=$func_stripname_result
9379 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9380 case " $predeps $postdeps " in
9381 *" $a_deplib "*)
9382 func_append newdeplibs " $a_deplib"
9383 a_deplib=
9384 ;;
9385 esac
9386 fi
9387 if test -n "$a_deplib"; then
9388 libname=`eval "\\$ECHO \"$libname_spec\""`
9389 if test -n "$file_magic_glob"; then
9390 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
9391 else
9392 libnameglob=$libname
9393 fi
9394 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9395 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
9396 if test yes = "$want_nocaseglob"; then
9397 shopt -s nocaseglob
9398 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9399 $nocaseglob
9400 else
9401 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9402 fi
9403 for potent_lib in $potential_libs; do
9404 # Follow soft links.
9405 if ls -lLd "$potent_lib" 2>/dev/null |
9406 $GREP " -> " >/dev/null; then
9407 continue
9408 fi
9409 # The statement above tries to avoid entering an
9410 # endless loop below, in case of cyclic links.
9411 # We might still enter an endless loop, since a link
9412 # loop can be closed while we follow links,
9413 # but so what?
9414 potlib=$potent_lib
9415 while test -h "$potlib" 2>/dev/null; do
9416 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9417 case $potliblink in
9418 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9419 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
9420 esac
9421 done
9422 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
9423 $SED -e 10q |
9424 $EGREP "$file_magic_regex" > /dev/null; then
9425 func_append newdeplibs " $a_deplib"
9426 a_deplib=
9427 break 2
9428 fi
9429 done
9430 done
9431 fi
9432 if test -n "$a_deplib"; then
9433 droppeddeps=yes
9434 echo
9435 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
9436 echo "*** I have the capability to make that library automatically link in when"
9437 echo "*** you link to this library. But I can only do this if you have a"
9438 echo "*** shared version of the library, which you do not appear to have"
9439 echo "*** because I did check the linker path looking for a file starting"
9440 if test -z "$potlib"; then
9441 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
9442 else
9443 $ECHO "*** with $libname and none of the candidates passed a file format test"
9444 $ECHO "*** using a file magic. Last file checked: $potlib"
9445 fi
9446 fi
9447 ;;
9448 *)
9449 # Add a -L argument.
9450 func_append newdeplibs " $a_deplib"
9451 ;;
9452 esac
9453 done # Gone through all deplibs.
9454 ;;
9455 match_pattern*)
9456 set dummy $deplibs_check_method; shift
9457 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
9458 for a_deplib in $deplibs; do
9459 case $a_deplib in
9460 -l*)
9461 func_stripname -l '' "$a_deplib"
9462 name=$func_stripname_result
9463 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9464 case " $predeps $postdeps " in
9465 *" $a_deplib "*)
9466 func_append newdeplibs " $a_deplib"
9467 a_deplib=
9468 ;;
9469 esac
9470 fi
9471 if test -n "$a_deplib"; then
9472 libname=`eval "\\$ECHO \"$libname_spec\""`
9473 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
9474 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9475 for potent_lib in $potential_libs; do
9476 potlib=$potent_lib # see symlink-check above in file_magic test
9477 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
9478 $EGREP "$match_pattern_regex" > /dev/null; then
9479 func_append newdeplibs " $a_deplib"
9480 a_deplib=
9481 break 2
9482 fi
9483 done
9484 done
9485 fi
9486 if test -n "$a_deplib"; then
9487 droppeddeps=yes
9488 echo
9489 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
9490 echo "*** I have the capability to make that library automatically link in when"
9491 echo "*** you link to this library. But I can only do this if you have a"
9492 echo "*** shared version of the library, which you do not appear to have"
9493 echo "*** because I did check the linker path looking for a file starting"
9494 if test -z "$potlib"; then
9495 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
9496 else
9497 $ECHO "*** with $libname and none of the candidates passed a file format test"
9498 $ECHO "*** using a regex pattern. Last file checked: $potlib"
9499 fi
9500 fi
9501 ;;
9502 *)
9503 # Add a -L argument.
9504 func_append newdeplibs " $a_deplib"
9505 ;;
9506 esac
9507 done # Gone through all deplibs.
9508 ;;
9509 none | unknown | *)
9510 newdeplibs=
9511 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9512 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9513 for i in $predeps $postdeps; do
9514 # can't use Xsed below, because $i might contain '/'
9515 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
9516 done
9517 fi
9518 case $tmp_deplibs in
9519 *[!\ \ ]*)
9520 echo
9521 if test none = "$deplibs_check_method"; then
9522 echo "*** Warning: inter-library dependencies are not supported in this platform."
9523 else
9524 echo "*** Warning: inter-library dependencies are not known to be supported."
9525 fi
9526 echo "*** All declared inter-library dependencies are being dropped."
9527 droppeddeps=yes
9528 ;;
9529 esac
9530 ;;
9531 esac
9532 versuffix=$versuffix_save
9533 major=$major_save
9534 release=$release_save
9535 libname=$libname_save
9536 name=$name_save
9537
9538 case $host in
9539 *-*-rhapsody* | *-*-darwin1.[012])
9540 # On Rhapsody replace the C library with the System framework
9541 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9542 ;;
9543 esac
9544
9545 if test yes = "$droppeddeps"; then
9546 if test yes = "$module"; then
9547 echo
9548 echo "*** Warning: libtool could not satisfy all declared inter-library"
9549 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
9550 echo "*** a static module, that should work as long as the dlopening"
9551 echo "*** application is linked with the -dlopen flag."
9552 if test -z "$global_symbol_pipe"; then
9553 echo
9554 echo "*** However, this would only work if libtool was able to extract symbol"
9555 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
9556 echo "*** not find such a program. So, this module is probably useless."
9557 echo "*** 'nm' from GNU binutils and a full rebuild may help."
9558 fi
9559 if test no = "$build_old_libs"; then
9560 oldlibs=$output_objdir/$libname.$libext
9561 build_libtool_libs=module
9562 build_old_libs=yes
9563 else
9564 build_libtool_libs=no
9565 fi
9566 else
9567 echo "*** The inter-library dependencies that have been dropped here will be"
9568 echo "*** automatically added whenever a program is linked with this library"
9569 echo "*** or is declared to -dlopen it."
9570
9571 if test no = "$allow_undefined"; then
9572 echo
9573 echo "*** Since this library must not contain undefined symbols,"
9574 echo "*** because either the platform does not support them or"
9575 echo "*** it was explicitly requested with -no-undefined,"
9576 echo "*** libtool will only create a static version of it."
9577 if test no = "$build_old_libs"; then
9578 oldlibs=$output_objdir/$libname.$libext
9579 build_libtool_libs=module
9580 build_old_libs=yes
9581 else
9582 build_libtool_libs=no
9583 fi
9584 fi
9585 fi
9586 fi
9587 # Done checking deplibs!
9588 deplibs=$newdeplibs
9589 fi
9590 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9591 case $host in
9592 *-*-darwin*)
9593 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9594 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9595 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9596 ;;
9597 esac
9598
9599 # move library search paths that coincide with paths to not yet
9600 # installed libraries to the beginning of the library search list
9601 new_libs=
9602 for path in $notinst_path; do
9603 case " $new_libs " in
9604 *" -L$path/$objdir "*) ;;
9605 *)
9606 case " $deplibs " in
9607 *" -L$path/$objdir "*)
9608 func_append new_libs " -L$path/$objdir" ;;
9609 esac
9610 ;;
9611 esac
9612 done
9613 for deplib in $deplibs; do
9614 case $deplib in
9615 -L*)
9616 case " $new_libs " in
9617 *" $deplib "*) ;;
9618 *) func_append new_libs " $deplib" ;;
9619 esac
9620 ;;
9621 *) func_append new_libs " $deplib" ;;
9622 esac
9623 done
9624 deplibs=$new_libs
9625
9626 # All the library-specific variables (install_libdir is set above).
9627 library_names=
9628 old_library=
9629 dlname=
9630
9631 # Test again, we may have decided not to build it any more
9632 if test yes = "$build_libtool_libs"; then
9633 # Remove $wl instances when linking with ld.
9634 # FIXME: should test the right _cmds variable.
9635 case $archive_cmds in
9636 *\$LD\ *) wl= ;;
9637 esac
9638 if test yes = "$hardcode_into_libs"; then
9639 # Hardcode the library paths
9640 hardcode_libdirs=
9641 dep_rpath=
9642 rpath=$finalize_rpath
9643 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
9644 for libdir in $rpath; do
9645 if test -n "$hardcode_libdir_flag_spec"; then
9646 if test -n "$hardcode_libdir_separator"; then
9647 func_replace_sysroot "$libdir"
9648 libdir=$func_replace_sysroot_result
9649 if test -z "$hardcode_libdirs"; then
9650 hardcode_libdirs=$libdir
9651 else
9652 # Just accumulate the unique libdirs.
9653 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
9654 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
9655 ;;
9656 *)
9657 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
9658 ;;
9659 esac
9660 fi
9661 else
9662 eval flag=\"$hardcode_libdir_flag_spec\"
9663 func_append dep_rpath " $flag"
9664 fi
9665 elif test -n "$runpath_var"; then
9666 case "$perm_rpath " in
9667 *" $libdir "*) ;;
9668 *) func_append perm_rpath " $libdir" ;;
9669 esac
9670 fi
9671 done
9672 # Substitute the hardcoded libdirs into the rpath.
9673 if test -n "$hardcode_libdir_separator" &&
9674 test -n "$hardcode_libdirs"; then
9675 libdir=$hardcode_libdirs
9676 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
9677 fi
9678 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9679 # We should set the runpath_var.
9680 rpath=
9681 for dir in $perm_rpath; do
9682 func_append rpath "$dir:"
9683 done
9684 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
9685 fi
9686 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9687 fi
9688
9689 shlibpath=$finalize_shlibpath
9690 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
9691 if test -n "$shlibpath"; then
9692 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
9693 fi
9694
9695 # Get the real and link names of the library.
9696 eval shared_ext=\"$shrext_cmds\"
9697 eval library_names=\"$library_names_spec\"
9698 set dummy $library_names
9699 shift
9700 realname=$1
9701 shift
9702
9703 if test -n "$soname_spec"; then
9704 eval soname=\"$soname_spec\"
9705 else
9706 soname=$realname
9707 fi
9708 if test -z "$dlname"; then
9709 dlname=$soname
9710 fi
9711
9712 lib=$output_objdir/$realname
9713 linknames=
9714 for link
9715 do
9716 func_append linknames " $link"
9717 done
9718
9719 # Use standard objects if they are pic
9720 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9721 test "X$libobjs" = "X " && libobjs=
9722
9723 delfiles=
9724 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9725 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
9726 export_symbols=$output_objdir/$libname.uexp
9727 func_append delfiles " $export_symbols"
9728 fi
9729
9730 orig_export_symbols=
9731 case $host_os in
9732 cygwin* | mingw* | cegcc*)
9733 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
9734 # exporting using user supplied symfile
9735 func_dll_def_p "$export_symbols" || {
9736 # and it's NOT already a .def file. Must figure out
9737 # which of the given symbols are data symbols and tag
9738 # them as such. So, trigger use of export_symbols_cmds.
9739 # export_symbols gets reassigned inside the "prepare
9740 # the list of exported symbols" if statement, so the
9741 # include_expsyms logic still works.
9742 orig_export_symbols=$export_symbols
9743 export_symbols=
9744 always_export_symbols=yes
9745 }
9746 fi
9747 ;;
9748 esac
9749
9750 # Prepare the list of exported symbols
9751 if test -z "$export_symbols"; then
9752 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9753 func_verbose "generating symbol list for '$libname.la'"
9754 export_symbols=$output_objdir/$libname.exp
9755 $opt_dry_run || $RM $export_symbols
9756 cmds=$export_symbols_cmds
9757 save_ifs=$IFS; IFS='~'
9758 for cmd1 in $cmds; do
9759 IFS=$save_ifs
9760 # Take the normal branch if the nm_file_list_spec branch
9761 # doesn't work or if tool conversion is not needed.
9762 case $nm_file_list_spec~$to_tool_file_cmd in
9763 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
9764 try_normal_branch=yes
9765 eval cmd=\"$cmd1\"
9766 func_len " $cmd"
9767 len=$func_len_result
9768 ;;
9769 *)
9770 try_normal_branch=no
9771 ;;
9772 esac
9773 if test yes = "$try_normal_branch" \
9774 && { test "$len" -lt "$max_cmd_len" \
9775 || test "$max_cmd_len" -le -1; }
9776 then
9777 func_show_eval "$cmd" 'exit $?'
9778 skipped_export=false
9779 elif test -n "$nm_file_list_spec"; then
9780 func_basename "$output"
9781 output_la=$func_basename_result
9782 save_libobjs=$libobjs
9783 save_output=$output
9784 output=$output_objdir/$output_la.nm
9785 func_to_tool_file "$output"
9786 libobjs=$nm_file_list_spec$func_to_tool_file_result
9787 func_append delfiles " $output"
9788 func_verbose "creating $NM input file list: $output"
9789 for obj in $save_libobjs; do
9790 func_to_tool_file "$obj"
9791 $ECHO "$func_to_tool_file_result"
9792 done > "$output"
9793 eval cmd=\"$cmd1\"
9794 func_show_eval "$cmd" 'exit $?'
9795 output=$save_output
9796 libobjs=$save_libobjs
9797 skipped_export=false
9798 else
9799 # The command line is too long to execute in one step.
9800 func_verbose "using reloadable object file for export list..."
9801 skipped_export=:
9802 # Break out early, otherwise skipped_export may be
9803 # set to false by a later but shorter cmd.
9804 break
9805 fi
9806 done
9807 IFS=$save_ifs
9808 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
9809 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
9810 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
9811 fi
9812 fi
9813 fi
9814
9815 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9816 tmp_export_symbols=$export_symbols
9817 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
9818 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
9819 fi
9820
9821 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
9822 # The given exports_symbols file has to be filtered, so filter it.
9823 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
9824 # FIXME: $output_objdir/$libname.filter potentially contains lots of
9825 # 's' commands, which not all seds can handle. GNU sed should be fine
9826 # though. Also, the filter scales superlinearly with the number of
9827 # global variables. join(1) would be nice here, but unfortunately
9828 # isn't a blessed tool.
9829 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
9830 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
9831 export_symbols=$output_objdir/$libname.def
9832 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
9833 fi
9834
9835 tmp_deplibs=
9836 for test_deplib in $deplibs; do
9837 case " $convenience " in
9838 *" $test_deplib "*) ;;
9839 *)
9840 func_append tmp_deplibs " $test_deplib"
9841 ;;
9842 esac
9843 done
9844 deplibs=$tmp_deplibs
9845
9846 if test -n "$convenience"; then
9847 if test -n "$whole_archive_flag_spec" &&
9848 test yes = "$compiler_needs_object" &&
9849 test -z "$libobjs"; then
9850 # extract the archives, so we have objects to list.
9851 # TODO: could optimize this to just extract one archive.
9852 whole_archive_flag_spec=
9853 fi
9854 if test -n "$whole_archive_flag_spec"; then
9855 save_libobjs=$libobjs
9856 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
9857 test "X$libobjs" = "X " && libobjs=
9858 else
9859 gentop=$output_objdir/${outputname}x
9860 func_append generated " $gentop"
9861
9862 func_extract_archives $gentop $convenience
9863 func_append libobjs " $func_extract_archives_result"
9864 test "X$libobjs" = "X " && libobjs=
9865 fi
9866 fi
9867
9868 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
9869 eval flag=\"$thread_safe_flag_spec\"
9870 func_append linker_flags " $flag"
9871 fi
9872
9873 # Make a backup of the uninstalled library when relinking
9874 if test relink = "$opt_mode"; then
9875 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
9876 fi
9877
9878 # Do each of the archive commands.
9879 if test yes = "$module" && test -n "$module_cmds"; then
9880 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
9881 eval test_cmds=\"$module_expsym_cmds\"
9882 cmds=$module_expsym_cmds
9883 else
9884 eval test_cmds=\"$module_cmds\"
9885 cmds=$module_cmds
9886 fi
9887 else
9888 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
9889 eval test_cmds=\"$archive_expsym_cmds\"
9890 cmds=$archive_expsym_cmds
9891 else
9892 eval test_cmds=\"$archive_cmds\"
9893 cmds=$archive_cmds
9894 fi
9895 fi
9896
9897 if test : != "$skipped_export" &&
9898 func_len " $test_cmds" &&
9899 len=$func_len_result &&
9900 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9901 :
9902 else
9903 # The command line is too long to link in one step, link piecewise
9904 # or, if using GNU ld and skipped_export is not :, use a linker
9905 # script.
9906
9907 # Save the value of $output and $libobjs because we want to
9908 # use them later. If we have whole_archive_flag_spec, we
9909 # want to use save_libobjs as it was before
9910 # whole_archive_flag_spec was expanded, because we can't
9911 # assume the linker understands whole_archive_flag_spec.
9912 # This may have to be revisited, in case too many
9913 # convenience libraries get linked in and end up exceeding
9914 # the spec.
9915 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
9916 save_libobjs=$libobjs
9917 fi
9918 save_output=$output
9919 func_basename "$output"
9920 output_la=$func_basename_result
9921
9922 # Clear the reloadable object creation command queue and
9923 # initialize k to one.
9924 test_cmds=
9925 concat_cmds=
9926 objlist=
9927 last_robj=
9928 k=1
9929
9930 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9931 output=$output_objdir/$output_la.lnkscript
9932 func_verbose "creating GNU ld script: $output"
9933 echo 'INPUT (' > $output
9934 for obj in $save_libobjs
9935 do
9936 func_to_tool_file "$obj"
9937 $ECHO "$func_to_tool_file_result" >> $output
9938 done
9939 echo ')' >> $output
9940 func_append delfiles " $output"
9941 func_to_tool_file "$output"
9942 output=$func_to_tool_file_result
9943 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9944 output=$output_objdir/$output_la.lnk
9945 func_verbose "creating linker input file list: $output"
9946 : > $output
9947 set x $save_libobjs
9948 shift
9949 firstobj=
9950 if test yes = "$compiler_needs_object"; then
9951 firstobj="$1 "
9952 shift
9953 fi
9954 for obj
9955 do
9956 func_to_tool_file "$obj"
9957 $ECHO "$func_to_tool_file_result" >> $output
9958 done
9959 func_append delfiles " $output"
9960 func_to_tool_file "$output"
9961 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
9962 else
9963 if test -n "$save_libobjs"; then
9964 func_verbose "creating reloadable object files..."
9965 output=$output_objdir/$output_la-$k.$objext
9966 eval test_cmds=\"$reload_cmds\"
9967 func_len " $test_cmds"
9968 len0=$func_len_result
9969 len=$len0
9970
9971 # Loop over the list of objects to be linked.
9972 for obj in $save_libobjs
9973 do
9974 func_len " $obj"
9975 func_arith $len + $func_len_result
9976 len=$func_arith_result
9977 if test -z "$objlist" ||
9978 test "$len" -lt "$max_cmd_len"; then
9979 func_append objlist " $obj"
9980 else
9981 # The command $test_cmds is almost too long, add a
9982 # command to the queue.
9983 if test 1 -eq "$k"; then
9984 # The first file doesn't have a previous command to add.
9985 reload_objs=$objlist
9986 eval concat_cmds=\"$reload_cmds\"
9987 else
9988 # All subsequent reloadable object files will link in
9989 # the last one created.
9990 reload_objs="$objlist $last_robj"
9991 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
9992 fi
9993 last_robj=$output_objdir/$output_la-$k.$objext
9994 func_arith $k + 1
9995 k=$func_arith_result
9996 output=$output_objdir/$output_la-$k.$objext
9997 objlist=" $obj"
9998 func_len " $last_robj"
9999 func_arith $len0 + $func_len_result
10000 len=$func_arith_result
10001 fi
10002 done
10003 # Handle the remaining objects by creating one last
10004 # reloadable object file. All subsequent reloadable object
10005 # files will link in the last one created.
10006 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10007 reload_objs="$objlist $last_robj"
10008 eval concat_cmds=\"\$concat_cmds$reload_cmds\"
10009 if test -n "$last_robj"; then
10010 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
10011 fi
10012 func_append delfiles " $output"
10013
10014 else
10015 output=
10016 fi
10017
10018 ${skipped_export-false} && {
10019 func_verbose "generating symbol list for '$libname.la'"
10020 export_symbols=$output_objdir/$libname.exp
10021 $opt_dry_run || $RM $export_symbols
10022 libobjs=$output
10023 # Append the command to create the export file.
10024 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10025 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
10026 if test -n "$last_robj"; then
10027 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
10028 fi
10029 }
10030
10031 test -n "$save_libobjs" &&
10032 func_verbose "creating a temporary reloadable object file: $output"
10033
10034 # Loop through the commands generated above and execute them.
10035 save_ifs=$IFS; IFS='~'
10036 for cmd in $concat_cmds; do
10037 IFS=$save_ifs
10038 $opt_quiet || {
10039 func_quote_for_expand "$cmd"
10040 eval "func_echo $func_quote_for_expand_result"
10041 }
10042 $opt_dry_run || eval "$cmd" || {
10043 lt_exit=$?
10044
10045 # Restore the uninstalled library and exit
10046 if test relink = "$opt_mode"; then
10047 ( cd "$output_objdir" && \
10048 $RM "${realname}T" && \
10049 $MV "${realname}U" "$realname" )
10050 fi
10051
10052 exit $lt_exit
10053 }
10054 done
10055 IFS=$save_ifs
10056
10057 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
10058 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10059 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
10060 fi
10061 fi
10062
10063 ${skipped_export-false} && {
10064 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10065 tmp_export_symbols=$export_symbols
10066 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10067 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
10068 fi
10069
10070 if test -n "$orig_export_symbols"; then
10071 # The given exports_symbols file has to be filtered, so filter it.
10072 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
10073 # FIXME: $output_objdir/$libname.filter potentially contains lots of
10074 # 's' commands, which not all seds can handle. GNU sed should be fine
10075 # though. Also, the filter scales superlinearly with the number of
10076 # global variables. join(1) would be nice here, but unfortunately
10077 # isn't a blessed tool.
10078 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
10079 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
10080 export_symbols=$output_objdir/$libname.def
10081 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10082 fi
10083 }
10084
10085 libobjs=$output
10086 # Restore the value of output.
10087 output=$save_output
10088
10089 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
10090 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
10091 test "X$libobjs" = "X " && libobjs=
10092 fi
10093 # Expand the library linking commands again to reset the
10094 # value of $libobjs for piecewise linking.
10095
10096 # Do each of the archive commands.
10097 if test yes = "$module" && test -n "$module_cmds"; then
10098 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10099 cmds=$module_expsym_cmds
10100 else
10101 cmds=$module_cmds
10102 fi
10103 else
10104 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10105 cmds=$archive_expsym_cmds
10106 else
10107 cmds=$archive_cmds
10108 fi
10109 fi
10110 fi
10111
10112 if test -n "$delfiles"; then
10113 # Append the command to remove temporary files to $cmds.
10114 eval cmds=\"\$cmds~\$RM $delfiles\"
10115 fi
10116
10117 # Add any objects from preloaded convenience libraries
10118 if test -n "$dlprefiles"; then
10119 gentop=$output_objdir/${outputname}x
10120 func_append generated " $gentop"
10121
10122 func_extract_archives $gentop $dlprefiles
10123 func_append libobjs " $func_extract_archives_result"
10124 test "X$libobjs" = "X " && libobjs=
10125 fi
10126
10127 save_ifs=$IFS; IFS='~'
10128 for cmd in $cmds; do
10129 IFS=$sp$nl
10130 eval cmd=\"$cmd\"
10131 IFS=$save_ifs
10132 $opt_quiet || {
10133 func_quote_for_expand "$cmd"
10134 eval "func_echo $func_quote_for_expand_result"
10135 }
10136 $opt_dry_run || eval "$cmd" || {
10137 lt_exit=$?
10138
10139 # Restore the uninstalled library and exit
10140 if test relink = "$opt_mode"; then
10141 ( cd "$output_objdir" && \
10142 $RM "${realname}T" && \
10143 $MV "${realname}U" "$realname" )
10144 fi
10145
10146 exit $lt_exit
10147 }
10148 done
10149 IFS=$save_ifs
10150
10151 # Restore the uninstalled library and exit
10152 if test relink = "$opt_mode"; then
10153 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
10154
10155 if test -n "$convenience"; then
10156 if test -z "$whole_archive_flag_spec"; then
10157 func_show_eval '${RM}r "$gentop"'
10158 fi
10159 fi
10160
10161 exit $EXIT_SUCCESS
10162 fi
10163
10164 # Create links to the real library.
10165 for linkname in $linknames; do
10166 if test "$realname" != "$linkname"; then
10167 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
10168 fi
10169 done
10170
10171 # If -module or -export-dynamic was specified, set the dlname.
10172 if test yes = "$module" || test yes = "$export_dynamic"; then
10173 # On all known operating systems, these are identical.
10174 dlname=$soname
10175 fi
10176 fi
10177 ;;
10178
10179 obj)
10180 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10181 func_warning "'-dlopen' is ignored for objects"
10182 fi
10183
10184 case " $deplibs" in
10185 *\ -l* | *\ -L*)
10186 func_warning "'-l' and '-L' are ignored for objects" ;;
10187 esac
10188
10189 test -n "$rpath" && \
10190 func_warning "'-rpath' is ignored for objects"
10191
10192 test -n "$xrpath" && \
10193 func_warning "'-R' is ignored for objects"
10194
10195 test -n "$vinfo" && \
10196 func_warning "'-version-info' is ignored for objects"
10197
10198 test -n "$release" && \
10199 func_warning "'-release' is ignored for objects"
10200
10201 case $output in
10202 *.lo)
10203 test -n "$objs$old_deplibs" && \
10204 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10205
10206 libobj=$output
10207 func_lo2o "$libobj"
10208 obj=$func_lo2o_result
10209 ;;
10210 *)
10211 libobj=
10212 obj=$output
10213 ;;
10214 esac
10215
10216 # Delete the old objects.
10217 $opt_dry_run || $RM $obj $libobj
10218
10219 # Objects from convenience libraries. This assumes
10220 # single-version convenience libraries. Whenever we create
10221 # different ones for PIC/non-PIC, this we'll have to duplicate
10222 # the extraction.
10223 reload_conv_objs=
10224 gentop=
10225 # if reload_cmds runs $LD directly, get rid of -Wl from
10226 # whole_archive_flag_spec and hope we can get by with turning comma
10227 # into space.
10228 case $reload_cmds in
10229 *\$LD[\ \$]*) wl= ;;
10230 esac
10231 if test -n "$convenience"; then
10232 if test -n "$whole_archive_flag_spec"; then
10233 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
10234 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10235 reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags
10236 else
10237 gentop=$output_objdir/${obj}x
10238 func_append generated " $gentop"
10239
10240 func_extract_archives $gentop $convenience
10241 reload_conv_objs="$reload_objs $func_extract_archives_result"
10242 fi
10243 fi
10244
10245 # If we're not building shared, we need to use non_pic_objs
10246 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
10247
10248 # Create the old-style object.
10249 reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs
10250
10251 output=$obj
10252 func_execute_cmds "$reload_cmds" 'exit $?'
10253
10254 # Exit if we aren't doing a library object file.
10255 if test -z "$libobj"; then
10256 if test -n "$gentop"; then
10257 func_show_eval '${RM}r "$gentop"'
10258 fi
10259
10260 exit $EXIT_SUCCESS
10261 fi
10262
10263 test yes = "$build_libtool_libs" || {
10264 if test -n "$gentop"; then
10265 func_show_eval '${RM}r "$gentop"'
10266 fi
10267
10268 # Create an invalid libtool object if no PIC, so that we don't
10269 # accidentally link it into a program.
10270 # $show "echo timestamp > $libobj"
10271 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
10272 exit $EXIT_SUCCESS
10273 }
10274
10275 if test -n "$pic_flag" || test default != "$pic_mode"; then
10276 # Only do commands if we really have different PIC objects.
10277 reload_objs="$libobjs $reload_conv_objs"
10278 output=$libobj
10279 func_execute_cmds "$reload_cmds" 'exit $?'
10280 fi
10281
10282 if test -n "$gentop"; then
10283 func_show_eval '${RM}r "$gentop"'
10284 fi
10285
10286 exit $EXIT_SUCCESS
10287 ;;
10288
10289 prog)
10290 case $host in
10291 *cygwin*) func_stripname '' '.exe' "$output"
10292 output=$func_stripname_result.exe;;
10293 esac
10294 test -n "$vinfo" && \
10295 func_warning "'-version-info' is ignored for programs"
10296
10297 test -n "$release" && \
10298 func_warning "'-release' is ignored for programs"
10299
10300 $preload \
10301 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
10302 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
10303
10304 case $host in
10305 *-*-rhapsody* | *-*-darwin1.[012])
10306 # On Rhapsody replace the C library is the System framework
10307 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10308 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10309 ;;
10310 esac
10311
10312 case $host in
10313 *-*-darwin*)
10314 # Don't allow lazy linking, it breaks C++ global constructors
10315 # But is supposedly fixed on 10.4 or later (yay!).
10316 if test CXX = "$tagname"; then
10317 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10318 10.[0123])
10319 func_append compile_command " $wl-bind_at_load"
10320 func_append finalize_command " $wl-bind_at_load"
10321 ;;
10322 esac
10323 fi
10324 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10325 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10326 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10327 ;;
10328 esac
10329
10330
10331 # move library search paths that coincide with paths to not yet
10332 # installed libraries to the beginning of the library search list
10333 new_libs=
10334 for path in $notinst_path; do
10335 case " $new_libs " in
10336 *" -L$path/$objdir "*) ;;
10337 *)
10338 case " $compile_deplibs " in
10339 *" -L$path/$objdir "*)
10340 func_append new_libs " -L$path/$objdir" ;;
10341 esac
10342 ;;
10343 esac
10344 done
10345 for deplib in $compile_deplibs; do
10346 case $deplib in
10347 -L*)
10348 case " $new_libs " in
10349 *" $deplib "*) ;;
10350 *) func_append new_libs " $deplib" ;;
10351 esac
10352 ;;
10353 *) func_append new_libs " $deplib" ;;
10354 esac
10355 done
10356 compile_deplibs=$new_libs
10357
10358
10359 func_append compile_command " $compile_deplibs"
10360 func_append finalize_command " $finalize_deplibs"
10361
10362 if test -n "$rpath$xrpath"; then
10363 # If the user specified any rpath flags, then add them.
10364 for libdir in $rpath $xrpath; do
10365 # This is the magic to use -rpath.
10366 case "$finalize_rpath " in
10367 *" $libdir "*) ;;
10368 *) func_append finalize_rpath " $libdir" ;;
10369 esac
10370 done
10371 fi
10372
10373 # Now hardcode the library paths
10374 rpath=
10375 hardcode_libdirs=
10376 for libdir in $compile_rpath $finalize_rpath; do
10377 if test -n "$hardcode_libdir_flag_spec"; then
10378 if test -n "$hardcode_libdir_separator"; then
10379 if test -z "$hardcode_libdirs"; then
10380 hardcode_libdirs=$libdir
10381 else
10382 # Just accumulate the unique libdirs.
10383 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
10384 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
10385 ;;
10386 *)
10387 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
10388 ;;
10389 esac
10390 fi
10391 else
10392 eval flag=\"$hardcode_libdir_flag_spec\"
10393 func_append rpath " $flag"
10394 fi
10395 elif test -n "$runpath_var"; then
10396 case "$perm_rpath " in
10397 *" $libdir "*) ;;
10398 *) func_append perm_rpath " $libdir" ;;
10399 esac
10400 fi
10401 case $host in
10402 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
10403 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10404 case :$dllsearchpath: in
10405 *":$libdir:"*) ;;
10406 ::) dllsearchpath=$libdir;;
10407 *) func_append dllsearchpath ":$libdir";;
10408 esac
10409 case :$dllsearchpath: in
10410 *":$testbindir:"*) ;;
10411 ::) dllsearchpath=$testbindir;;
10412 *) func_append dllsearchpath ":$testbindir";;
10413 esac
10414 ;;
10415 esac
10416 done
10417 # Substitute the hardcoded libdirs into the rpath.
10418 if test -n "$hardcode_libdir_separator" &&
10419 test -n "$hardcode_libdirs"; then
10420 libdir=$hardcode_libdirs
10421 eval rpath=\" $hardcode_libdir_flag_spec\"
10422 fi
10423 compile_rpath=$rpath
10424
10425 rpath=
10426 hardcode_libdirs=
10427 for libdir in $finalize_rpath; do
10428 if test -n "$hardcode_libdir_flag_spec"; then
10429 if test -n "$hardcode_libdir_separator"; then
10430 if test -z "$hardcode_libdirs"; then
10431 hardcode_libdirs=$libdir
10432 else
10433 # Just accumulate the unique libdirs.
10434 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
10435 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
10436 ;;
10437 *)
10438 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
10439 ;;
10440 esac
10441 fi
10442 else
10443 eval flag=\"$hardcode_libdir_flag_spec\"
10444 func_append rpath " $flag"
10445 fi
10446 elif test -n "$runpath_var"; then
10447 case "$finalize_perm_rpath " in
10448 *" $libdir "*) ;;
10449 *) func_append finalize_perm_rpath " $libdir" ;;
10450 esac
10451 fi
10452 done
10453 # Substitute the hardcoded libdirs into the rpath.
10454 if test -n "$hardcode_libdir_separator" &&
10455 test -n "$hardcode_libdirs"; then
10456 libdir=$hardcode_libdirs
10457 eval rpath=\" $hardcode_libdir_flag_spec\"
10458 fi
10459 finalize_rpath=$rpath
10460
10461 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10462 # Transform all the library objects into standard objects.
10463 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
10464 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
10465 fi
10466
10467 func_generate_dlsyms "$outputname" "@PROGRAM@" false
10468
10469 # template prelinking step
10470 if test -n "$prelink_cmds"; then
10471 func_execute_cmds "$prelink_cmds" 'exit $?'
10472 fi
10473
10474 wrappers_required=:
10475 case $host in
10476 *cegcc* | *mingw32ce*)
10477 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
10478 wrappers_required=false
10479 ;;
10480 *cygwin* | *mingw* )
10481 test yes = "$build_libtool_libs" || wrappers_required=false
10482 ;;
10483 *)
10484 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10485 wrappers_required=false
10486 fi
10487 ;;
10488 esac
10489 $wrappers_required || {
10490 # Replace the output file specification.
10491 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
10492 link_command=$compile_command$compile_rpath
10493
10494 # We have no uninstalled library dependencies, so finalize right now.
10495 exit_status=0
10496 func_show_eval "$link_command" 'exit_status=$?'
10497
10498 if test -n "$postlink_cmds"; then
10499 func_to_tool_file "$output"
10500 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
10501 func_execute_cmds "$postlink_cmds" 'exit $?'
10502 fi
10503
10504 # Delete the generated files.
10505 if test -f "$output_objdir/${outputname}S.$objext"; then
10506 func_show_eval '$RM "$output_objdir/${outputname}S.$objext"'
10507 fi
10508
10509 exit $exit_status
10510 }
10511
10512 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10513 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
10514 fi
10515 if test -n "$finalize_shlibpath"; then
10516 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
10517 fi
10518
10519 compile_var=
10520 finalize_var=
10521 if test -n "$runpath_var"; then
10522 if test -n "$perm_rpath"; then
10523 # We should set the runpath_var.
10524 rpath=
10525 for dir in $perm_rpath; do
10526 func_append rpath "$dir:"
10527 done
10528 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
10529 fi
10530 if test -n "$finalize_perm_rpath"; then
10531 # We should set the runpath_var.
10532 rpath=
10533 for dir in $finalize_perm_rpath; do
10534 func_append rpath "$dir:"
10535 done
10536 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
10537 fi
10538 fi
10539
10540 if test yes = "$no_install"; then
10541 # We don't need to create a wrapper script.
10542 link_command=$compile_var$compile_command$compile_rpath
10543 # Replace the output file specification.
10544 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
10545 # Delete the old output file.
10546 $opt_dry_run || $RM $output
10547 # Link the executable and exit
10548 func_show_eval "$link_command" 'exit $?'
10549
10550 if test -n "$postlink_cmds"; then
10551 func_to_tool_file "$output"
10552 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
10553 func_execute_cmds "$postlink_cmds" 'exit $?'
10554 fi
10555
10556 exit $EXIT_SUCCESS
10557 fi
10558
10559 case $hardcode_action,$fast_install in
10560 relink,*)
10561 # Fast installation is not supported
10562 link_command=$compile_var$compile_command$compile_rpath
10563 relink_command=$finalize_var$finalize_command$finalize_rpath
10564
10565 func_warning "this platform does not like uninstalled shared libraries"
10566 func_warning "'$output' will be relinked during installation"
10567 ;;
10568 *,yes)
10569 link_command=$finalize_var$compile_command$finalize_rpath
10570 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
10571 ;;
10572 *,no)
10573 link_command=$compile_var$compile_command$compile_rpath
10574 relink_command=$finalize_var$finalize_command$finalize_rpath
10575 ;;
10576 *,needless)
10577 link_command=$finalize_var$compile_command$finalize_rpath
10578 relink_command=
10579 ;;
10580 esac
10581
10582 # Replace the output file specification.
10583 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
10584
10585 # Delete the old output files.
10586 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10587
10588 func_show_eval "$link_command" 'exit $?'
10589
10590 if test -n "$postlink_cmds"; then
10591 func_to_tool_file "$output_objdir/$outputname"
10592 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'`
10593 func_execute_cmds "$postlink_cmds" 'exit $?'
10594 fi
10595
10596 # Now create the wrapper script.
10597 func_verbose "creating $output"
10598
10599 # Quote the relink command for shipping.
10600 if test -n "$relink_command"; then
10601 # Preserve any variables that may affect compiler behavior
10602 for var in $variables_saved_for_relink; do
10603 if eval test -z \"\${$var+set}\"; then
10604 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
10605 elif eval var_value=\$$var; test -z "$var_value"; then
10606 relink_command="$var=; export $var; $relink_command"
10607 else
10608 func_quote_for_eval "$var_value"
10609 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
10610 fi
10611 done
10612 relink_command="(cd `pwd`; $relink_command)"
10613 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
10614 fi
10615
10616 # Only actually do things if not in dry run mode.
10617 $opt_dry_run || {
10618 # win32 will think the script is a binary if it has
10619 # a .exe suffix, so we strip it off here.
10620 case $output in
10621 *.exe) func_stripname '' '.exe' "$output"
10622 output=$func_stripname_result ;;
10623 esac
10624 # test for cygwin because mv fails w/o .exe extensions
10625 case $host in
10626 *cygwin*)
10627 exeext=.exe
10628 func_stripname '' '.exe' "$outputname"
10629 outputname=$func_stripname_result ;;
10630 *) exeext= ;;
10631 esac
10632 case $host in
10633 *cygwin* | *mingw* )
10634 func_dirname_and_basename "$output" "" "."
10635 output_name=$func_basename_result
10636 output_path=$func_dirname_result
10637 cwrappersource=$output_path/$objdir/lt-$output_name.c
10638 cwrapper=$output_path/$output_name.exe
10639 $RM $cwrappersource $cwrapper
10640 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
10641
10642 func_emit_cwrapperexe_src > $cwrappersource
10643
10644 # The wrapper executable is built using the $host compiler,
10645 # because it contains $host paths and files. If cross-
10646 # compiling, it, like the target executable, must be
10647 # executed on the $host or under an emulation environment.
10648 $opt_dry_run || {
10649 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10650 $STRIP $cwrapper
10651 }
10652
10653 # Now, create the wrapper script for func_source use:
10654 func_ltwrapper_scriptname $cwrapper
10655 $RM $func_ltwrapper_scriptname_result
10656 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
10657 $opt_dry_run || {
10658 # note: this script will not be executed, so do not chmod.
10659 if test "x$build" = "x$host"; then
10660 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10661 else
10662 func_emit_wrapper no > $func_ltwrapper_scriptname_result
10663 fi
10664 }
10665 ;;
10666 * )
10667 $RM $output
10668 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
10669
10670 func_emit_wrapper no > $output
10671 chmod +x $output
10672 ;;
10673 esac
10674 }
10675 exit $EXIT_SUCCESS
10676 ;;
10677 esac
10678
10679 # See if we need to build an old-fashioned archive.
10680 for oldlib in $oldlibs; do
10681
10682 case $build_libtool_libs in
10683 convenience)
10684 oldobjs="$libobjs_save $symfileobj"
10685 addlibs=$convenience
10686 build_libtool_libs=no
10687 ;;
10688 module)
10689 oldobjs=$libobjs_save
10690 addlibs=$old_convenience
10691 build_libtool_libs=no
10692 ;;
10693 *)
10694 oldobjs="$old_deplibs $non_pic_objects"
10695 $preload && test -f "$symfileobj" \
10696 && func_append oldobjs " $symfileobj"
10697 addlibs=$old_convenience
10698 ;;
10699 esac
10700
10701 if test -n "$addlibs"; then
10702 gentop=$output_objdir/${outputname}x
10703 func_append generated " $gentop"
10704
10705 func_extract_archives $gentop $addlibs
10706 func_append oldobjs " $func_extract_archives_result"
10707 fi
10708
10709 # Do each command in the archive commands.
10710 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10711 cmds=$old_archive_from_new_cmds
10712 else
10713
10714 # Add any objects from preloaded convenience libraries
10715 if test -n "$dlprefiles"; then
10716 gentop=$output_objdir/${outputname}x
10717 func_append generated " $gentop"
10718
10719 func_extract_archives $gentop $dlprefiles
10720 func_append oldobjs " $func_extract_archives_result"
10721 fi
10722
10723 # POSIX demands no paths to be encoded in archives. We have
10724 # to avoid creating archives with duplicate basenames if we
10725 # might have to extract them afterwards, e.g., when creating a
10726 # static archive out of a convenience library, or when linking
10727 # the entirety of a libtool archive into another (currently
10728 # not supported by libtool).
10729 if (for obj in $oldobjs
10730 do
10731 func_basename "$obj"
10732 $ECHO "$func_basename_result"
10733 done | sort | sort -uc >/dev/null 2>&1); then
10734 :
10735 else
10736 echo "copying selected object files to avoid basename conflicts..."
10737 gentop=$output_objdir/${outputname}x
10738 func_append generated " $gentop"
10739 func_mkdir_p "$gentop"
10740 save_oldobjs=$oldobjs
10741 oldobjs=
10742 counter=1
10743 for obj in $save_oldobjs
10744 do
10745 func_basename "$obj"
10746 objbase=$func_basename_result
10747 case " $oldobjs " in
10748 " ") oldobjs=$obj ;;
10749 *[\ /]"$objbase "*)
10750 while :; do
10751 # Make sure we don't pick an alternate name that also
10752 # overlaps.
10753 newobj=lt$counter-$objbase
10754 func_arith $counter + 1
10755 counter=$func_arith_result
10756 case " $oldobjs " in
10757 *[\ /]"$newobj "*) ;;
10758 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
10759 esac
10760 done
10761 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
10762 func_append oldobjs " $gentop/$newobj"
10763 ;;
10764 *) func_append oldobjs " $obj" ;;
10765 esac
10766 done
10767 fi
10768 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
10769 tool_oldlib=$func_to_tool_file_result
10770 eval cmds=\"$old_archive_cmds\"
10771
10772 func_len " $cmds"
10773 len=$func_len_result
10774 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10775 cmds=$old_archive_cmds
10776 elif test -n "$archiver_list_spec"; then
10777 func_verbose "using command file archive linking..."
10778 for obj in $oldobjs
10779 do
10780 func_to_tool_file "$obj"
10781 $ECHO "$func_to_tool_file_result"
10782 done > $output_objdir/$libname.libcmd
10783 func_to_tool_file "$output_objdir/$libname.libcmd"
10784 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
10785 cmds=$old_archive_cmds
10786 else
10787 # the command line is too long to link in one step, link in parts
10788 func_verbose "using piecewise archive linking..."
10789 save_RANLIB=$RANLIB
10790 RANLIB=:
10791 objlist=
10792 concat_cmds=
10793 save_oldobjs=$oldobjs
10794 oldobjs=
10795 # Is there a better way of finding the last object in the list?
10796 for obj in $save_oldobjs
10797 do
10798 last_oldobj=$obj
10799 done
10800 eval test_cmds=\"$old_archive_cmds\"
10801 func_len " $test_cmds"
10802 len0=$func_len_result
10803 len=$len0
10804 for obj in $save_oldobjs
10805 do
10806 func_len " $obj"
10807 func_arith $len + $func_len_result
10808 len=$func_arith_result
10809 func_append objlist " $obj"
10810 if test "$len" -lt "$max_cmd_len"; then
10811 :
10812 else
10813 # the above command should be used before it gets too long
10814 oldobjs=$objlist
10815 if test "$obj" = "$last_oldobj"; then
10816 RANLIB=$save_RANLIB
10817 fi
10818 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10819 eval concat_cmds=\"\$concat_cmds$old_archive_cmds\"
10820 objlist=
10821 len=$len0
10822 fi
10823 done
10824 RANLIB=$save_RANLIB
10825 oldobjs=$objlist
10826 if test -z "$oldobjs"; then
10827 eval cmds=\"\$concat_cmds\"
10828 else
10829 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
10830 fi
10831 fi
10832 fi
10833 func_execute_cmds "$cmds" 'exit $?'
10834 done
10835
10836 test -n "$generated" && \
10837 func_show_eval "${RM}r$generated"
10838
10839 # Now create the libtool archive.
10840 case $output in
10841 *.la)
10842 old_library=
10843 test yes = "$build_old_libs" && old_library=$libname.$libext
10844 func_verbose "creating $output"
10845
10846 # Preserve any variables that may affect compiler behavior
10847 for var in $variables_saved_for_relink; do
10848 if eval test -z \"\${$var+set}\"; then
10849 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
10850 elif eval var_value=\$$var; test -z "$var_value"; then
10851 relink_command="$var=; export $var; $relink_command"
10852 else
10853 func_quote_for_eval "$var_value"
10854 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
10855 fi
10856 done
10857 # Quote the link command for shipping.
10858 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10859 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
10860 if test yes = "$hardcode_automatic"; then
10861 relink_command=
10862 fi
10863
10864 # Only create the output if not a dry run.
10865 $opt_dry_run || {
10866 for installed in no yes; do
10867 if test yes = "$installed"; then
10868 if test -z "$install_libdir"; then
10869 break
10870 fi
10871 output=$output_objdir/${outputname}i
10872 # Replace all uninstalled libtool libraries with the installed ones
10873 newdependency_libs=
10874 for deplib in $dependency_libs; do
10875 case $deplib in
10876 *.la)
10877 func_basename "$deplib"
10878 name=$func_basename_result
10879 func_resolve_sysroot "$deplib"
10880 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10881 test -z "$libdir" && \
10882 func_fatal_error "'$deplib' is not a valid libtool archive"
10883 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
10884 ;;
10885 -L*)
10886 func_stripname -L '' "$deplib"
10887 func_replace_sysroot "$func_stripname_result"
10888 func_append newdependency_libs " -L$func_replace_sysroot_result"
10889 ;;
10890 -R*)
10891 func_stripname -R '' "$deplib"
10892 func_replace_sysroot "$func_stripname_result"
10893 func_append newdependency_libs " -R$func_replace_sysroot_result"
10894 ;;
10895 *) func_append newdependency_libs " $deplib" ;;
10896 esac
10897 done
10898 dependency_libs=$newdependency_libs
10899 newdlfiles=
10900
10901 for lib in $dlfiles; do
10902 case $lib in
10903 *.la)
10904 func_basename "$lib"
10905 name=$func_basename_result
10906 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10907 test -z "$libdir" && \
10908 func_fatal_error "'$lib' is not a valid libtool archive"
10909 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
10910 ;;
10911 *) func_append newdlfiles " $lib" ;;
10912 esac
10913 done
10914 dlfiles=$newdlfiles
10915 newdlprefiles=
10916 for lib in $dlprefiles; do
10917 case $lib in
10918 *.la)
10919 # Only pass preopened files to the pseudo-archive (for
10920 # eventual linking with the app. that links it) if we
10921 # didn't already link the preopened objects directly into
10922 # the library:
10923 func_basename "$lib"
10924 name=$func_basename_result
10925 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10926 test -z "$libdir" && \
10927 func_fatal_error "'$lib' is not a valid libtool archive"
10928 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
10929 ;;
10930 esac
10931 done
10932 dlprefiles=$newdlprefiles
10933 else
10934 newdlfiles=
10935 for lib in $dlfiles; do
10936 case $lib in
10937 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
10938 *) abs=`pwd`"/$lib" ;;
10939 esac
10940 func_append newdlfiles " $abs"
10941 done
10942 dlfiles=$newdlfiles
10943 newdlprefiles=
10944 for lib in $dlprefiles; do
10945 case $lib in
10946 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
10947 *) abs=`pwd`"/$lib" ;;
10948 esac
10949 func_append newdlprefiles " $abs"
10950 done
10951 dlprefiles=$newdlprefiles
10952 fi
10953 $RM $output
10954 # place dlname in correct position for cygwin
10955 # In fact, it would be nice if we could use this code for all target
10956 # systems that can't hard-code library paths into their executables
10957 # and that have no shared library path variable independent of PATH,
10958 # but it turns out we can't easily determine that from inspecting
10959 # libtool variables, so we have to hard-code the OSs to which it
10960 # applies here; at the moment, that means platforms that use the PE
10961 # object format with DLL files. See the long comment at the top of
10962 # tests/bindir.at for full details.
10963 tdlname=$dlname
10964 case $host,$output,$installed,$module,$dlname in
10965 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
10966 # If a -bindir argument was supplied, place the dll there.
10967 if test -n "$bindir"; then
10968 func_relative_path "$install_libdir" "$bindir"
10969 tdlname=$func_relative_path_result/$dlname
10970 else
10971 # Otherwise fall back on heuristic.
10972 tdlname=../bin/$dlname
10973 fi
10974 ;;
10975 esac
10976 $ECHO > $output "\
10977 # $outputname - a libtool library file
10978 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
10979 #
10980 # Please DO NOT delete this file!
10981 # It is necessary for linking the library.
10982
10983 # The name that we can dlopen(3).
10984 dlname='$tdlname'
10985
10986 # Names of this library.
10987 library_names='$library_names'
10988
10989 # The name of the static archive.
10990 old_library='$old_library'
10991
10992 # Linker flags that cannot go in dependency_libs.
10993 inherited_linker_flags='$new_inherited_linker_flags'
10994
10995 # Libraries that this one depends upon.
10996 dependency_libs='$dependency_libs'
10997
10998 # Names of additional weak libraries provided by this library
10999 weak_library_names='$weak_libs'
11000
11001 # Version information for $libname.
11002 current=$current
11003 age=$age
11004 revision=$revision
11005
11006 # Is this an already installed library?
11007 installed=$installed
11008
11009 # Should we warn about portability when linking against -modules?
11010 shouldnotlink=$module
11011
11012 # Files to dlopen/dlpreopen
11013 dlopen='$dlfiles'
11014 dlpreopen='$dlprefiles'
11015
11016 # Directory that this library needs to be installed in:
11017 libdir='$install_libdir'"
11018 if test no,yes = "$installed,$need_relink"; then
11019 $ECHO >> $output "\
11020 relink_command=\"$relink_command\""
11021 fi
11022 done
11023 }
11024
11025 # Do a symbolic link so that the libtool archive can be found in
11026 # LD_LIBRARY_PATH before the program is installed.
11027 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
11028 ;;
11029 esac
11030 exit $EXIT_SUCCESS
11031 }
11032
11033 if test link = "$opt_mode" || test relink = "$opt_mode"; then
11034 func_mode_link ${1+"$@"}
11035 fi
11036
11037
11038 # func_mode_uninstall arg...
11039 func_mode_uninstall ()
11040 {
11041 $debug_cmd
11042
11043 RM=$nonopt
11044 files=
11045 rmforce=false
11046 exit_status=0
11047
11048 # This variable tells wrapper scripts just to set variables rather
11049 # than running their programs.
11050 libtool_install_magic=$magic
11051
11052 for arg
11053 do
11054 case $arg in
11055 -f) func_append RM " $arg"; rmforce=: ;;
11056 -*) func_append RM " $arg" ;;
11057 *) func_append files " $arg" ;;
11058 esac
11059 done
11060
11061 test -z "$RM" && \
11062 func_fatal_help "you must specify an RM program"
11063
11064 rmdirs=
11065
11066 for file in $files; do
11067 func_dirname "$file" "" "."
11068 dir=$func_dirname_result
11069 if test . = "$dir"; then
11070 odir=$objdir
11071 else
11072 odir=$dir/$objdir
11073 fi
11074 func_basename "$file"
11075 name=$func_basename_result
11076 test uninstall = "$opt_mode" && odir=$dir
11077
11078 # Remember odir for removal later, being careful to avoid duplicates
11079 if test clean = "$opt_mode"; then
11080 case " $rmdirs " in
11081 *" $odir "*) ;;
11082 *) func_append rmdirs " $odir" ;;
11083 esac
11084 fi
11085
11086 # Don't error if the file doesn't exist and rm -f was used.
11087 if { test -L "$file"; } >/dev/null 2>&1 ||
11088 { test -h "$file"; } >/dev/null 2>&1 ||
11089 test -f "$file"; then
11090 :
11091 elif test -d "$file"; then
11092 exit_status=1
11093 continue
11094 elif $rmforce; then
11095 continue
11096 fi
11097
11098 rmfiles=$file
11099
11100 case $name in
11101 *.la)
11102 # Possibly a libtool archive, so verify it.
11103 if func_lalib_p "$file"; then
11104 func_source $dir/$name
11105
11106 # Delete the libtool libraries and symlinks.
11107 for n in $library_names; do
11108 func_append rmfiles " $odir/$n"
11109 done
11110 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11111
11112 case $opt_mode in
11113 clean)
11114 case " $library_names " in
11115 *" $dlname "*) ;;
11116 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11117 esac
11118 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11119 ;;
11120 uninstall)
11121 if test -n "$library_names"; then
11122 # Do each command in the postuninstall commands.
11123 func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
11124 fi
11125
11126 if test -n "$old_library"; then
11127 # Do each command in the old_postuninstall commands.
11128 func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
11129 fi
11130 # FIXME: should reinstall the best remaining shared library.
11131 ;;
11132 esac
11133 fi
11134 ;;
11135
11136 *.lo)
11137 # Possibly a libtool object, so verify it.
11138 if func_lalib_p "$file"; then
11139
11140 # Read the .lo file
11141 func_source $dir/$name
11142
11143 # Add PIC object to the list of files to remove.
11144 if test -n "$pic_object" && test none != "$pic_object"; then
11145 func_append rmfiles " $dir/$pic_object"
11146 fi
11147
11148 # Add non-PIC object to the list of files to remove.
11149 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11150 func_append rmfiles " $dir/$non_pic_object"
11151 fi
11152 fi
11153 ;;
11154
11155 *)
11156 if test clean = "$opt_mode"; then
11157 noexename=$name
11158 case $file in
11159 *.exe)
11160 func_stripname '' '.exe' "$file"
11161 file=$func_stripname_result
11162 func_stripname '' '.exe' "$name"
11163 noexename=$func_stripname_result
11164 # $file with .exe has already been added to rmfiles,
11165 # add $file without .exe
11166 func_append rmfiles " $file"
11167 ;;
11168 esac
11169 # Do a test to see if this is a libtool program.
11170 if func_ltwrapper_p "$file"; then
11171 if func_ltwrapper_executable_p "$file"; then
11172 func_ltwrapper_scriptname "$file"
11173 relink_command=
11174 func_source $func_ltwrapper_scriptname_result
11175 func_append rmfiles " $func_ltwrapper_scriptname_result"
11176 else
11177 relink_command=
11178 func_source $dir/$noexename
11179 fi
11180
11181 # note $name still contains .exe if it was in $file originally
11182 # as does the version of $file that was added into $rmfiles
11183 func_append rmfiles " $odir/$name $odir/${name}S.$objext"
11184 if test yes = "$fast_install" && test -n "$relink_command"; then
11185 func_append rmfiles " $odir/lt-$name"
11186 fi
11187 if test "X$noexename" != "X$name"; then
11188 func_append rmfiles " $odir/lt-$noexename.c"
11189 fi
11190 fi
11191 fi
11192 ;;
11193 esac
11194 func_show_eval "$RM $rmfiles" 'exit_status=1'
11195 done
11196
11197 # Try to remove the $objdir's in the directories where we deleted files
11198 for dir in $rmdirs; do
11199 if test -d "$dir"; then
11200 func_show_eval "rmdir $dir >/dev/null 2>&1"
11201 fi
11202 done
11203
11204 exit $exit_status
11205 }
11206
11207 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
11208 func_mode_uninstall ${1+"$@"}
11209 fi
11210
11211 test -z "$opt_mode" && {
11212 help=$generic_help
11213 func_fatal_help "you must specify a MODE"
11214 }
11215
11216 test -z "$exec_cmd" && \
11217 func_fatal_help "invalid operation mode '$opt_mode'"
11218
11219 if test -n "$exec_cmd"; then
11220 eval exec "$exec_cmd"
11221 exit $EXIT_FAILURE
11222 fi
11223
11224 exit $exit_status
11225
11226
11227 # The TAGs below are defined such that we never get into a situation
11228 # where we disable both kinds of libraries. Given conflicting
11229 # choices, we go for a static library, that is the most portable,
11230 # since we can't tell whether shared libraries were disabled because
11231 # the user asked for that or because the platform doesn't support
11232 # them. This is particularly important on AIX, because we don't
11233 # support having both static and shared libraries enabled at the same
11234 # time on that platform, so we default to a shared-only configuration.
11235 # If a disable-shared tag is given, we'll fallback to a static-only
11236 # configuration. But we'll never go from static-only to shared-only.
11237
11238 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11239 build_libtool_libs=no
11240 build_old_libs=yes
11241 # ### END LIBTOOL TAG CONFIG: disable-shared
11242
11243 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11244 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
11245 # ### END LIBTOOL TAG CONFIG: disable-static
11246
11247 # Local Variables:
11248 # mode:shell-script
11249 # sh-indentation:2
11250 # End:
0 #! /bin/sh
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1996-2020 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 <https://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=https://www.perl.org/
104 flex_URL=https://github.com/westes/flex
105 gnu_software_URL=https://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 'autom4te' 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 'before-save-hook 'time-stamp)
210 # time-stamp-start: "scriptversion="
211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC0"
213 # time-stamp-end: "; # UTC"
214 # End:
22
33 lib_LTLIBRARIES = libdockapp.la
44
5 libdockapp_la_LDFLAGS = -version-info 3:0:0
5 libdockapp_la_LDFLAGS = -version-info 3:1:0
66
77 otherincludedir = $(includedir)/libdockapp
88 otherinclude_HEADERS = dockapp.h \
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 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
17 VPATH = @srcdir@
18 am__is_gnu_make = { \
19 if test -z '$(MAKELEVEL)'; then \
20 false; \
21 elif test -n '$(MAKE_HOST)'; then \
22 true; \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24 true; \
25 else \
26 false; \
27 fi; \
28 }
29 am__make_running_with_option = \
30 case $${target_option-} in \
31 ?) ;; \
32 *) echo "am__make_running_with_option: internal error: invalid" \
33 "target option '$${target_option-}' specified" >&2; \
34 exit 1;; \
35 esac; \
36 has_opt=no; \
37 sane_makeflags=$$MAKEFLAGS; \
38 if $(am__is_gnu_make); then \
39 sane_makeflags=$$MFLAGS; \
40 else \
41 case $$MAKEFLAGS in \
42 *\\[\ \ ]*) \
43 bs=\\; \
44 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
45 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
46 esac; \
47 fi; \
48 skip_next=no; \
49 strip_trailopt () \
50 { \
51 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
52 }; \
53 for flg in $$sane_makeflags; do \
54 test $$skip_next = yes && { skip_next=no; continue; }; \
55 case $$flg in \
56 *=*|--*) continue;; \
57 -*I) strip_trailopt 'I'; skip_next=yes;; \
58 -*I?*) strip_trailopt 'I';; \
59 -*O) strip_trailopt 'O'; skip_next=yes;; \
60 -*O?*) strip_trailopt 'O';; \
61 -*l) strip_trailopt 'l'; skip_next=yes;; \
62 -*l?*) strip_trailopt 'l';; \
63 -[dEDm]) skip_next=yes;; \
64 -[JT]) skip_next=yes;; \
65 esac; \
66 case $$flg in \
67 *$$target_option*) has_opt=yes; break;; \
68 esac; \
69 done; \
70 test $$has_opt = yes
71 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
72 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
73 pkgdatadir = $(datadir)/@PACKAGE@
74 pkgincludedir = $(includedir)/@PACKAGE@
75 pkglibdir = $(libdir)/@PACKAGE@
76 pkglibexecdir = $(libexecdir)/@PACKAGE@
77 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
78 install_sh_DATA = $(install_sh) -c -m 644
79 install_sh_PROGRAM = $(install_sh) -c
80 install_sh_SCRIPT = $(install_sh) -c
81 INSTALL_HEADER = $(INSTALL_DATA)
82 transform = $(program_transform_name)
83 NORMAL_INSTALL = :
84 PRE_INSTALL = :
85 POST_INSTALL = :
86 NORMAL_UNINSTALL = :
87 PRE_UNINSTALL = :
88 POST_UNINSTALL = :
89 build_triplet = @build@
90 host_triplet = @host@
91 subdir = src
92 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
93 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
94 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
95 $(ACLOCAL_M4)
96 DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \
97 $(otherinclude_HEADERS) $(am__DIST_COMMON)
98 mkinstalldirs = $(install_sh) -d
99 CONFIG_CLEAN_FILES =
100 CONFIG_CLEAN_VPATH_FILES =
101 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
102 am__vpath_adj = case $$p in \
103 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
104 *) f=$$p;; \
105 esac;
106 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
107 am__install_max = 40
108 am__nobase_strip_setup = \
109 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
110 am__nobase_strip = \
111 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
112 am__nobase_list = $(am__nobase_strip_setup); \
113 for p in $$list; do echo "$$p $$p"; done | \
114 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
115 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
116 if (++n[$$2] == $(am__install_max)) \
117 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
118 END { for (dir in files) print dir, files[dir] }'
119 am__base_list = \
120 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
121 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
122 am__uninstall_files_from_dir = { \
123 test -z "$$files" \
124 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
125 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
126 $(am__cd) "$$dir" && rm -f $$files; }; \
127 }
128 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(otherincludedir)"
129 LTLIBRARIES = $(lib_LTLIBRARIES)
130 libdockapp_la_LIBADD =
131 am_libdockapp_la_OBJECTS = daargs.lo dacallback.lo dacolor.lo \
132 daevent.lo damain.lo dapixmap.lo darect.lo dashaped.lo \
133 dautil.lo list.lo misc.lo wmgeneral.lo
134 libdockapp_la_OBJECTS = $(am_libdockapp_la_OBJECTS)
135 AM_V_lt = $(am__v_lt_@AM_V@)
136 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
137 am__v_lt_0 = --silent
138 am__v_lt_1 =
139 libdockapp_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
140 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
141 $(libdockapp_la_LDFLAGS) $(LDFLAGS) -o $@
142 AM_V_P = $(am__v_P_@AM_V@)
143 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
144 am__v_P_0 = false
145 am__v_P_1 = :
146 AM_V_GEN = $(am__v_GEN_@AM_V@)
147 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
148 am__v_GEN_0 = @echo " GEN " $@;
149 am__v_GEN_1 =
150 AM_V_at = $(am__v_at_@AM_V@)
151 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
152 am__v_at_0 = @
153 am__v_at_1 =
154 DEFAULT_INCLUDES = -I.@am__isrc@
155 depcomp =
156 am__maybe_remake_depfiles =
157 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
158 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
159 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
160 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
161 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
162 $(AM_CFLAGS) $(CFLAGS)
163 AM_V_CC = $(am__v_CC_@AM_V@)
164 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
165 am__v_CC_0 = @echo " CC " $@;
166 am__v_CC_1 =
167 CCLD = $(CC)
168 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
169 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
170 $(AM_LDFLAGS) $(LDFLAGS) -o $@
171 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
172 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
173 am__v_CCLD_0 = @echo " CCLD " $@;
174 am__v_CCLD_1 =
175 SOURCES = $(libdockapp_la_SOURCES)
176 DIST_SOURCES = $(libdockapp_la_SOURCES)
177 am__can_run_installinfo = \
178 case $$AM_UPDATE_INFO_DIR in \
179 n|no|NO) false;; \
180 *) (install-info --version) >/dev/null 2>&1;; \
181 esac
182 HEADERS = $(noinst_HEADERS) $(otherinclude_HEADERS)
183 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
184 # Read a list of newline-separated strings from the standard input,
185 # and print each of them once, without duplicates. Input order is
186 # *not* preserved.
187 am__uniquify_input = $(AWK) '\
188 BEGIN { nonempty = 0; } \
189 { items[$$0] = 1; nonempty = 1; } \
190 END { if (nonempty) { for (i in items) print i; }; } \
191 '
192 # Make sure the list of sources is unique. This is necessary because,
193 # e.g., the same source file might be shared among _SOURCES variables
194 # for different programs/libraries.
195 am__define_uniq_tagged_files = \
196 list='$(am__tagged_files)'; \
197 unique=`for i in $$list; do \
198 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
199 done | $(am__uniquify_input)`
200 ETAGS = etags
201 CTAGS = ctags
202 am__DIST_COMMON = $(srcdir)/Makefile.in
203 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
204 ACLOCAL = @ACLOCAL@
205 AMTAR = @AMTAR@
206 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
207 AR = @AR@
208 AUTOCONF = @AUTOCONF@
209 AUTOHEADER = @AUTOHEADER@
210 AUTOMAKE = @AUTOMAKE@
211 AWK = @AWK@
212 CC = @CC@
213 CCDEPMODE = @CCDEPMODE@
214 CFLAGS = @CFLAGS@
215 CPP = @CPP@
216 CPPFLAGS = @CPPFLAGS@
217 CYGPATH_W = @CYGPATH_W@
218 DEFS = @DEFS@
219 DEPDIR = @DEPDIR@
220 DFLAGS = @DFLAGS@
221 DLLTOOL = @DLLTOOL@
222 DSYMUTIL = @DSYMUTIL@
223 DUMPBIN = @DUMPBIN@
224 ECHO_C = @ECHO_C@
225 ECHO_N = @ECHO_N@
226 ECHO_T = @ECHO_T@
227 EGREP = @EGREP@
228 EXEEXT = @EXEEXT@
229 FCCACHE = @FCCACHE@
230 FGREP = @FGREP@
231 FONTDIR = @FONTDIR@
232 FONTROOTDIR = @FONTROOTDIR@
233 GREP = @GREP@
234 INSTALL = @INSTALL@
235 INSTALL_DATA = @INSTALL_DATA@
236 INSTALL_PROGRAM = @INSTALL_PROGRAM@
237 INSTALL_SCRIPT = @INSTALL_SCRIPT@
238 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
239 LD = @LD@
240 LDFLAGS = @LDFLAGS@
241 LIBOBJS = @LIBOBJS@
242 LIBS = @LIBS@ $(X11_LIBS) $(Xext_LIBS) $(xpm_LIBS)
243 LIBTOOL = @LIBTOOL@
244 LIPO = @LIPO@
245 LN_S = @LN_S@
246 LTLIBOBJS = @LTLIBOBJS@
247 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
248 MAKEINFO = @MAKEINFO@
249 MANIFEST_TOOL = @MANIFEST_TOOL@
250 MKDIR_P = @MKDIR_P@
251 MKFONTDIR = @MKFONTDIR@
252 NM = @NM@
253 NMEDIT = @NMEDIT@
254 OBJDUMP = @OBJDUMP@
255 OBJEXT = @OBJEXT@
256 OTOOL = @OTOOL@
257 OTOOL64 = @OTOOL64@
258 PACKAGE = @PACKAGE@
259 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
260 PACKAGE_NAME = @PACKAGE_NAME@
261 PACKAGE_STRING = @PACKAGE_STRING@
262 PACKAGE_TARNAME = @PACKAGE_TARNAME@
263 PACKAGE_URL = @PACKAGE_URL@
264 PACKAGE_VERSION = @PACKAGE_VERSION@
265 PATH_SEPARATOR = @PATH_SEPARATOR@
266 PKG_CONFIG = @PKG_CONFIG@
267 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
268 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
269 RANLIB = @RANLIB@
270 RUN_FCCACHE = @RUN_FCCACHE@
271 SED = @SED@
272 SET_MAKE = @SET_MAKE@
273 SHELL = @SHELL@
274 STRIP = @STRIP@
275 VERSION = @VERSION@
276 X11_CFLAGS = @X11_CFLAGS@
277 X11_LIBS = @X11_LIBS@
278 Xext_CFLAGS = @Xext_CFLAGS@
279 Xext_LIBS = @Xext_LIBS@
280 abs_builddir = @abs_builddir@
281 abs_srcdir = @abs_srcdir@
282 abs_top_builddir = @abs_top_builddir@
283 abs_top_srcdir = @abs_top_srcdir@
284 ac_ct_AR = @ac_ct_AR@
285 ac_ct_CC = @ac_ct_CC@
286 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
287 am__include = @am__include@
288 am__leading_dot = @am__leading_dot@
289 am__quote = @am__quote@
290 am__tar = @am__tar@
291 am__untar = @am__untar@
292 bindir = @bindir@
293 build = @build@
294 build_alias = @build_alias@
295 build_cpu = @build_cpu@
296 build_os = @build_os@
297 build_vendor = @build_vendor@
298 builddir = @builddir@
299 datadir = @datadir@
300 datarootdir = @datarootdir@
301 docdir = @docdir@
302 dvidir = @dvidir@
303 exec_prefix = @exec_prefix@
304 host = @host@
305 host_alias = @host_alias@
306 host_cpu = @host_cpu@
307 host_os = @host_os@
308 host_vendor = @host_vendor@
309 htmldir = @htmldir@
310 includedir = @includedir@
311 infodir = @infodir@
312 install_sh = @install_sh@
313 libdir = @libdir@
314 libexecdir = @libexecdir@
315 localedir = @localedir@
316 localstatedir = @localstatedir@
317 mandir = @mandir@
318 mkdir_p = @mkdir_p@
319 oldincludedir = @oldincludedir@
320 pdfdir = @pdfdir@
321 prefix = @prefix@
322 program_transform_name = @program_transform_name@
323 psdir = @psdir@
324 runstatedir = @runstatedir@
325 sbindir = @sbindir@
326 sharedstatedir = @sharedstatedir@
327 srcdir = @srcdir@
328 sysconfdir = @sysconfdir@
329 target_alias = @target_alias@
330 top_build_prefix = @top_build_prefix@
331 top_builddir = @top_builddir@
332 top_srcdir = @top_srcdir@
333 xpm_CFLAGS = @xpm_CFLAGS@
334 xpm_LIBS = @xpm_LIBS@
335 AUTOMAKE_OPTIONS = no-dependencies
336 lib_LTLIBRARIES = libdockapp.la
337 libdockapp_la_LDFLAGS = -version-info 3:1:0
338 otherincludedir = $(includedir)/libdockapp
339 otherinclude_HEADERS = dockapp.h \
340 wmgeneral.h \
341 list.h \
342 misc.h
343
344 libdockapp_la_SOURCES = \
345 dockapp.h \
346 daargs.c\
347 dacallback.c \
348 dacolor.c \
349 daevent.c \
350 damain.c \
351 dapixmap.c \
352 darect.c \
353 dashaped.c \
354 dautil.c \
355 list.c \
356 misc.c \
357 wmgeneral.c
358
359
360 # Include these in a distribution, but don't install
361 noinst_HEADERS = daargs.h dautil.h
362 AM_CFLAGS = $(X11_CFLAGS) $(Xext_CFLAGS) $(xpm_CFLAGS)
363 AM_CPPFLAGS = @CPPFLAGS@ @DFLAGS@
364 LIBLIST = libdockapp.la @XLIBS@
365 all: all-am
366
367 .SUFFIXES:
368 .SUFFIXES: .c .lo .o .obj
369 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
370 @for dep in $?; do \
371 case '$(am__configure_deps)' in \
372 *$$dep*) \
373 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
374 && { if test -f $@; then exit 0; else break; fi; }; \
375 exit 1;; \
376 esac; \
377 done; \
378 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
379 $(am__cd) $(top_srcdir) && \
380 $(AUTOMAKE) --gnu src/Makefile
381 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
382 @case '$?' in \
383 *config.status*) \
384 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
385 *) \
386 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
387 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
388 esac;
389
390 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
391 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
392
393 $(top_srcdir)/configure: $(am__configure_deps)
394 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
395 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
396 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
397 $(am__aclocal_m4_deps):
398
399 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
400 @$(NORMAL_INSTALL)
401 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
402 list2=; for p in $$list; do \
403 if test -f $$p; then \
404 list2="$$list2 $$p"; \
405 else :; fi; \
406 done; \
407 test -z "$$list2" || { \
408 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
409 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
410 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
411 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
412 }
413
414 uninstall-libLTLIBRARIES:
415 @$(NORMAL_UNINSTALL)
416 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
417 for p in $$list; do \
418 $(am__strip_dir) \
419 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
420 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
421 done
422
423 clean-libLTLIBRARIES:
424 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
425 @list='$(lib_LTLIBRARIES)'; \
426 locs=`for p in $$list; do echo $$p; done | \
427 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
428 sort -u`; \
429 test -z "$$locs" || { \
430 echo rm -f $${locs}; \
431 rm -f $${locs}; \
432 }
433
434 libdockapp.la: $(libdockapp_la_OBJECTS) $(libdockapp_la_DEPENDENCIES) $(EXTRA_libdockapp_la_DEPENDENCIES)
435 $(AM_V_CCLD)$(libdockapp_la_LINK) -rpath $(libdir) $(libdockapp_la_OBJECTS) $(libdockapp_la_LIBADD) $(LIBS)
436
437 mostlyclean-compile:
438 -rm -f *.$(OBJEXT)
439
440 distclean-compile:
441 -rm -f *.tab.c
442
443 .c.o:
444 $(AM_V_CC)$(COMPILE) -c -o $@ $<
445
446 .c.obj:
447 $(AM_V_CC)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
448
449 .c.lo:
450 $(AM_V_CC)$(LTCOMPILE) -c -o $@ $<
451
452 mostlyclean-libtool:
453 -rm -f *.lo
454
455 clean-libtool:
456 -rm -rf .libs _libs
457 install-otherincludeHEADERS: $(otherinclude_HEADERS)
458 @$(NORMAL_INSTALL)
459 @list='$(otherinclude_HEADERS)'; test -n "$(otherincludedir)" || list=; \
460 if test -n "$$list"; then \
461 echo " $(MKDIR_P) '$(DESTDIR)$(otherincludedir)'"; \
462 $(MKDIR_P) "$(DESTDIR)$(otherincludedir)" || exit 1; \
463 fi; \
464 for p in $$list; do \
465 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
466 echo "$$d$$p"; \
467 done | $(am__base_list) | \
468 while read files; do \
469 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(otherincludedir)'"; \
470 $(INSTALL_HEADER) $$files "$(DESTDIR)$(otherincludedir)" || exit $$?; \
471 done
472
473 uninstall-otherincludeHEADERS:
474 @$(NORMAL_UNINSTALL)
475 @list='$(otherinclude_HEADERS)'; test -n "$(otherincludedir)" || list=; \
476 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
477 dir='$(DESTDIR)$(otherincludedir)'; $(am__uninstall_files_from_dir)
478
479 ID: $(am__tagged_files)
480 $(am__define_uniq_tagged_files); mkid -fID $$unique
481 tags: tags-am
482 TAGS: tags
483
484 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
485 set x; \
486 here=`pwd`; \
487 $(am__define_uniq_tagged_files); \
488 shift; \
489 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
490 test -n "$$unique" || unique=$$empty_fix; \
491 if test $$# -gt 0; then \
492 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
493 "$$@" $$unique; \
494 else \
495 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
496 $$unique; \
497 fi; \
498 fi
499 ctags: ctags-am
500
501 CTAGS: ctags
502 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
503 $(am__define_uniq_tagged_files); \
504 test -z "$(CTAGS_ARGS)$$unique" \
505 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
506 $$unique
507
508 GTAGS:
509 here=`$(am__cd) $(top_builddir) && pwd` \
510 && $(am__cd) $(top_srcdir) \
511 && gtags -i $(GTAGS_ARGS) "$$here"
512 cscopelist: cscopelist-am
513
514 cscopelist-am: $(am__tagged_files)
515 list='$(am__tagged_files)'; \
516 case "$(srcdir)" in \
517 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
518 *) sdir=$(subdir)/$(srcdir) ;; \
519 esac; \
520 for i in $$list; do \
521 if test -f "$$i"; then \
522 echo "$(subdir)/$$i"; \
523 else \
524 echo "$$sdir/$$i"; \
525 fi; \
526 done >> $(top_builddir)/cscope.files
527
528 distclean-tags:
529 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
530
531 distdir: $(BUILT_SOURCES)
532 $(MAKE) $(AM_MAKEFLAGS) distdir-am
533
534 distdir-am: $(DISTFILES)
535 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
536 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
537 list='$(DISTFILES)'; \
538 dist_files=`for file in $$list; do echo $$file; done | \
539 sed -e "s|^$$srcdirstrip/||;t" \
540 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
541 case $$dist_files in \
542 */*) $(MKDIR_P) `echo "$$dist_files" | \
543 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
544 sort -u` ;; \
545 esac; \
546 for file in $$dist_files; do \
547 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
548 if test -d $$d/$$file; then \
549 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
550 if test -d "$(distdir)/$$file"; then \
551 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
552 fi; \
553 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
554 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
555 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
556 fi; \
557 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
558 else \
559 test -f "$(distdir)/$$file" \
560 || cp -p $$d/$$file "$(distdir)/$$file" \
561 || exit 1; \
562 fi; \
563 done
564 check-am: all-am
565 check: check-am
566 all-am: Makefile $(LTLIBRARIES) $(HEADERS)
567 installdirs:
568 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(otherincludedir)"; do \
569 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
570 done
571 install: install-am
572 install-exec: install-exec-am
573 install-data: install-data-am
574 uninstall: uninstall-am
575
576 install-am: all-am
577 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
578
579 installcheck: installcheck-am
580 install-strip:
581 if test -z '$(STRIP)'; then \
582 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
583 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
584 install; \
585 else \
586 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
587 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
588 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
589 fi
590 mostlyclean-generic:
591
592 clean-generic:
593
594 distclean-generic:
595 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
596 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
597
598 maintainer-clean-generic:
599 @echo "This command is intended for maintainers to use"
600 @echo "it deletes files that may require special tools to rebuild."
601 clean: clean-am
602
603 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
604 mostlyclean-am
605
606 distclean: distclean-am
607 -rm -f Makefile
608 distclean-am: clean-am distclean-compile distclean-generic \
609 distclean-tags
610
611 dvi: dvi-am
612
613 dvi-am:
614
615 html: html-am
616
617 html-am:
618
619 info: info-am
620
621 info-am:
622
623 install-data-am: install-otherincludeHEADERS
624
625 install-dvi: install-dvi-am
626
627 install-dvi-am:
628
629 install-exec-am: install-libLTLIBRARIES
630
631 install-html: install-html-am
632
633 install-html-am:
634
635 install-info: install-info-am
636
637 install-info-am:
638
639 install-man:
640
641 install-pdf: install-pdf-am
642
643 install-pdf-am:
644
645 install-ps: install-ps-am
646
647 install-ps-am:
648
649 installcheck-am:
650
651 maintainer-clean: maintainer-clean-am
652 -rm -f Makefile
653 maintainer-clean-am: distclean-am maintainer-clean-generic
654
655 mostlyclean: mostlyclean-am
656
657 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
658 mostlyclean-libtool
659
660 pdf: pdf-am
661
662 pdf-am:
663
664 ps: ps-am
665
666 ps-am:
667
668 uninstall-am: uninstall-libLTLIBRARIES uninstall-otherincludeHEADERS
669
670 .MAKE: install-am install-strip
671
672 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
673 clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \
674 ctags-am distclean distclean-compile distclean-generic \
675 distclean-libtool distclean-tags distdir dvi dvi-am html \
676 html-am info info-am install install-am install-data \
677 install-data-am install-dvi install-dvi-am install-exec \
678 install-exec-am install-html install-html-am install-info \
679 install-info-am install-libLTLIBRARIES install-man \
680 install-otherincludeHEADERS install-pdf install-pdf-am \
681 install-ps install-ps-am install-strip installcheck \
682 installcheck-am installdirs maintainer-clean \
683 maintainer-clean-generic mostlyclean mostlyclean-compile \
684 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
685 tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES \
686 uninstall-otherincludeHEADERS
687
688 .PRECIOUS: Makefile
689
690
691 # Tell versions [3.59,3.63) of GNU make to not export all variables.
692 # Otherwise a system limit (for SysV at least) may be exceeded.
693 .NOEXPORT:
5757 int i, j, size;
5858 int found = 0;
5959
60 _daContext = DAContextInit();
61
62 _daContext->argc = argc;
63 _daContext->argv = argv;
64 _daContext->programName = argv[0];
60 _daContext = DAContextInit(argc, argv);
6561
6662 size = (count + DEFAULT_OPTION_COUNT) * sizeof(DAProgramOption *);
6763 _daContext->options = malloc(size);
120116 int
121117 contains(char *needle, char *haystack)
122118 {
123 char c, *pos;
124
125 assert(strlen(needle) == 2);
126
127 c = needle[1];
128
129 pos = strchr(haystack, c);
119 char *pos = NULL;
120
121 if (strlen(needle) == 2 && needle[0] == '-') {
122 pos = strchr(haystack, needle[1]);
123 }
130124
131125 return (pos != NULL);
132126 }
206200 */
207201
208202 struct DAContext *
209 DAContextInit(void)
203 DAContextInit(int argc, char **argv)
210204 {
211205 struct DAContext *context = malloc(sizeof(struct DAContext));
212206
213207 memset(context, 0, sizeof(struct DAContext));
208
209 context->argc = argc;
210 context->argv = argv;
211 context->programName = argv[0];
214212
215213 return context;
216214 }
4141 };
4242
4343
44 struct DAContext *DAContextInit(void);
44 struct DAContext *DAContextInit(int argc, char **argv);
4545 void DAFreeContext(void);
4646
2222 #include "dockapp.h"
2323 #include "daargs.h"
2424 #include "dautil.h"
25 #include <ctype.h>
2526
2627 #define MIN(a, b) (a < b ? a : b)
2728
128129 {
129130 XClassHint *classHint;
130131 XWMHints *wmHints;
132 XTextProperty window_name;
131133 XGCValues gcv;
132134 unsigned long valueMask;
133135 char *resourceValue;
136 char class[100];
137
138 if (!_daContext)
139 _daContext = DAContextInit(argc, argv);
134140
135141 _daContext->width = width;
136142 _daContext->height = height;
153159 if (!classHint)
154160 printf("%s: can't allocate memory for class hints!\n",
155161 _daContext->programName), exit(1);
156 classHint->res_class = RES_CLASSNAME;
162 if (!_daContext->windowed) {
163 classHint->res_class = RES_CLASSNAME;
164 } else {
165 snprintf(class, 100, "%c%s", toupper(name[0]), name + 1);
166 classHint->res_class = class;
167 }
157168 classHint->res_name = name;
158
159169 XSetClassHint(DADisplay, DALeader, classHint);
160170 XFree(classHint);
171
172 /* Set WMName */
173 if (XStringListToTextProperty(&name, 1, &window_name) == 0)
174 printf("%s: can't allocate window name.\n",
175 _daContext->programName), exit(1);
176 XSetWMName(DADisplay, DALeader, &window_name);
161177
162178 /* Set WMHints */
163179 wmHints = XAllocWMHints();
8787 1));
8888 }
8989
90 Pixmap
91 DAMakeShapeFromData(char *data, unsigned int width, unsigned int height)
92 {
93 return (XCreateBitmapFromData(DADisplay, DAWindow, data,
94 width, height));
95 }
96
97 Pixmap
98 DAMakeShapeFromFile(char *filename)
99 {
100 Pixmap shape;
101 unsigned int width, height;
102 int result, x_hot, y_hot;
103
104 result = XReadBitmapFile(DADisplay, DAWindow, filename, &width, &height,
105 &shape, &x_hot, &y_hot);
106
107 switch (result) {
108 case BitmapOpenFailed:
109 DAWarning("bitmap file %s cannot be opened.", filename);
110 break;
111
112 case BitmapFileInvalid:
113 DAWarning("bitmap file %s not valid.", filename);
114 break;
115
116 case BitmapNoMemory:
117 DAWarning("insufficient memory to open bitmap file %s.",
118 filename);
119 break;
120 }
121
122 return shape;
123 }
124
90125 Bool
91126 DAMakePixmapFromData(char **data, Pixmap *pixmap, Pixmap *mask,
92127 unsigned short *width, unsigned short *height)
263263 */
264264 Pixmap DAMakeShape(void);
265265
266 /*
267 * DAMakeShapeFromData-
268 * Creates a shape pixmap suitable for use with DASetShape() from XBM data.
269 */
270 Pixmap DAMakeShapeFromData(char *data, unsigned int width, unsigned int height);
271
272 /*
273 * DAMakeShapeFromFile-
274 * Creates a shape pixmap suitable for use with DASetShape() from an
275 * XBM file.
276 */
277 Pixmap DAMakeShapeFromFile(char *filename);
266278
267279 /*
268280 * DAMakePixmapFromData-
6868 #include <stdio.h> /* for fprintf, stderr, NULL, etc */
6969 #include <stdlib.h> /* for exit, free */
7070 #include <string.h> /* for strcmp, strdup, strcspn, etc */
71 #include <libgen.h> /* for basename */
7172
7273 /*****************/
7374 /* X11 Variables */
7475 /*****************/
7576
77 Display *display;
7678 Window Root;
7779 int screen;
7880 int x_fd;
395397 unsigned int borderwidth = 1;
396398 XClassHint classHint;
397399 char *display_name = NULL;
398 char *wname = argv[0];
400 char *wname = basename (argv[0]);
399401 XTextProperty name;
400402
401403 XGCValues gcv;
6565 /* Global variable */
6666 /*******************/
6767
68 Display *display;
68 extern Display *display;
6969
7070 /***********************/
7171 /* Function Prototypes */