Codebase list libdockapp / 2ca41a1
Imported Debian patch 1:0.5.0-3 Chris Lamb authored 14 years ago Doug Torrance committed 9 years ago
17 changed file(s) with 46976 addition(s) and 25105 deletion(s). Raw diff Collapse all Expand all
0 Installation Instructions for Building/Installing libDockApp
1 ------------------------------------------------------------
2
3
4 SUPPORTED PLATFORMS
5 ===================
6 (ie: Window Maker works on these platforms so I'm sure this will do as well)
7
8 - Intel GNU/Linux Slackware 3.5 (primary platform)
9 - Intel GNU/Linux other distributions
10 - Sparc GNU/Linux RedHat 5.1
11 - PowerPC GNU/MkLinux
12 - Alpha GNU/Linux RedHat 5.1
13 - FreeBSD
14 - NetBSD
15 - OpenBSD
16 - BSDI 4.0
17 - Solaris 2.5.1, 2.5.2
18 - Solaris 2.6.0
19 - Solaris 2.7beta
20 - SCO Unix
21 - SGI Irix 5.x, 6.5
22 - OSF/1
23 - HP-UX
24 - AIX 3.2.5
25 - AIX 4.1.4 / IBM PowerPC
26 - AIX 4.3.1 / IBM CC compiler
27 - AIX 4.3.2 / IBM PowerPC
28 - AIX 5.3
29 - DEC Alpha/Digital UNIX 4.x
30 - XFree86 / OS/2
31 - Corel NetWinder
32 - SunOS 4.x
33 - PowerMac / Power MachTen 4.1.1 over MacOS
34 - Amiga 3000 running RedHat Linux 5.1 (Rawhide)
35
36 Patches to make it work on other platforms are welcome.
37
38
39 REQUIREMENTS:
40 =============
41
42 The following software is required to use Window Maker:
43
44 - X11R6.x
45 Any version of X that has Shape Extension support will most likely
46 work. We don't do anythign fancy.
47
48 - autoconf, automake and libtool
49 These tools are NOT needed, but IF you have one or
50 more of them installed, make sure you have ALL of the following
51 with exactly these versions:
52 autoconf 2.13
53 automake 1.4
54 libtool 1.3
55 If you have a different version, disable them by temporarily
56 renaming them to something else or uninstalling them from your
57 system. If you don't develop software you don't need them,
58 so you can safely uninstall.
59
60 - libXPM 4.7 or newer
61 Older versions may not work!!!
62 Available at ftp://sunsite.unc.edu/pub/Linux/libs/X/
63
64
65 INSTALLATION:
66 =============
67
68 Build libDockApp
69 ----------------
70 For a quick start, type the following in your shell prompt:
71
72 ./configure
73 make
74
75 then, login as root and type:
76
77 make install
78
79 or if you want to strip the debugging symbols from the binaries and make them
80 smaller, you can instead type:
81
82 make install-strip
83
84 This will build and install libDockApp with default parameters.
85
86 (on some platforms you may need to run ldconfig with proper paramters
87 check man ldconfig in those cases. On FreeBSD this is not necesarry
88 as libtool already takes care of this for you during install phase)
89
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
4 2006, 2007, 2008 Free Software Foundation, Inc.
5
6 This file is free documentation; the Free Software Foundation gives
7 unlimited permission to copy, distribute and modify it.
8
9 Basic Installation
10 ==================
11
12 Briefly, the shell commands `./configure; make; make install' should
13 configure, build, and install this package. The following
14 more-detailed instructions are generic; see the `README' file for
15 instructions specific to this package.
16
17 The `configure' shell script attempts to guess correct values for
18 various system-dependent variables used during compilation. It uses
19 those values to create a `Makefile' in each directory of the package.
20 It may also create one or more `.h' files containing system-dependent
21 definitions. Finally, it creates a shell script `config.status' that
22 you can run in the future to recreate the current configuration, and a
23 file `config.log' containing compiler output (useful mainly for
24 debugging `configure').
25
26 It can also use an optional file (typically called `config.cache'
27 and enabled with `--cache-file=config.cache' or simply `-C') that saves
28 the results of its tests to speed up reconfiguring. Caching is
29 disabled by default to prevent problems with accidental use of stale
30 cache files.
31
32 If you need to do unusual things to compile the package, please try
33 to figure out how `configure' could check whether to do them, and mail
34 diffs or instructions to the address given in the `README' so they can
35 be considered for the next release. If you are using the cache, and at
36 some point `config.cache' contains results you don't want to keep, you
37 may remove or edit it.
38
39 The file `configure.ac' (or `configure.in') is used to create
40 `configure' by a program called `autoconf'. You need `configure.ac' if
41 you want to change it or regenerate `configure' using a newer version
42 of `autoconf'.
43
44 The simplest way to compile this package is:
45
46 1. `cd' to the directory containing the package's source code and type
47 `./configure' to configure the package for your system.
48
49 Running `configure' might take a while. While running, it prints
50 some messages telling which features it is checking for.
51
52 2. Type `make' to compile the package.
53
54 3. Optionally, type `make check' to run any self-tests that come with
55 the package.
56
57 4. Type `make install' to install the programs and any data files and
58 documentation.
59
60 5. You can remove the program binaries and object files from the
61 source code directory by typing `make clean'. To also remove the
62 files that `configure' created (so you can compile the package for
63 a different kind of computer), type `make distclean'. There is
64 also a `make maintainer-clean' target, but that is intended mainly
65 for the package's developers. If you use it, you may have to get
66 all sorts of other programs in order to regenerate files that came
67 with the distribution.
68
69 6. Often, you can also type `make uninstall' to remove the installed
70 files again.
71
72 Compilers and Options
73 =====================
74
75 Some systems require unusual options for compilation or linking that
76 the `configure' script does not know about. Run `./configure --help'
77 for details on some of the pertinent environment variables.
78
79 You can give `configure' initial values for configuration parameters
80 by setting variables in the command line or in the environment. Here
81 is an example:
82
83 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
84
85 *Note Defining Variables::, for more details.
86
87 Compiling For Multiple Architectures
88 ====================================
89
90 You can compile the package for more than one kind of computer at the
91 same time, by placing the object files for each architecture in their
92 own directory. To do this, you can use GNU `make'. `cd' to the
93 directory where you want the object files and executables to go and run
94 the `configure' script. `configure' automatically checks for the
95 source code in the directory that `configure' is in and in `..'.
96
97 With a non-GNU `make', it is safer to compile the package for one
98 architecture at a time in the source code directory. After you have
99 installed the package for one architecture, use `make distclean' before
100 reconfiguring for another architecture.
101
102 On MacOS X 10.5 and later systems, you can create libraries and
103 executables that work on multiple system types--known as "fat" or
104 "universal" binaries--by specifying multiple `-arch' options to the
105 compiler but only a single `-arch' option to the preprocessor. Like
106 this:
107
108 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
109 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
110 CPP="gcc -E" CXXCPP="g++ -E"
111
112 This is not guaranteed to produce working output in all cases, you
113 may have to build one architecture at a time and combine the results
114 using the `lipo' tool if you have problems.
115
116 Installation Names
117 ==================
118
119 By default, `make install' installs the package's commands under
120 `/usr/local/bin', include files under `/usr/local/include', etc. You
121 can specify an installation prefix other than `/usr/local' by giving
122 `configure' the option `--prefix=PREFIX'.
123
124 You can specify separate installation prefixes for
125 architecture-specific files and architecture-independent files. If you
126 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
127 PREFIX as the prefix for installing programs and libraries.
128 Documentation and other data files still use the regular prefix.
129
130 In addition, if you use an unusual directory layout you can give
131 options like `--bindir=DIR' to specify different values for particular
132 kinds of files. Run `configure --help' for a list of the directories
133 you can set and what kinds of files go in them.
134
135 If the package supports it, you can cause programs to be installed
136 with an extra prefix or suffix on their names by giving `configure' the
137 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
138
139 Optional Features
140 =================
141
142 Some packages pay attention to `--enable-FEATURE' options to
143 `configure', where FEATURE indicates an optional part of the package.
144 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
145 is something like `gnu-as' or `x' (for the X Window System). The
146 `README' should mention any `--enable-' and `--with-' options that the
147 package recognizes.
148
149 For packages that use the X Window System, `configure' can usually
150 find the X include and library files automatically, but if it doesn't,
151 you can use the `configure' options `--x-includes=DIR' and
152 `--x-libraries=DIR' to specify their locations.
153
154 Particular systems
155 ==================
156
157 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
158 CC is not installed, it is recommended to use the following options in
159 order to use an ANSI C compiler:
160
161 ./configure CC="cc -Ae"
162
163 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
164
165 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
166 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
167 a workaround. If GNU CC is not installed, it is therefore recommended
168 to try
169
170 ./configure CC="cc"
171
172 and if that doesn't work, try
173
174 ./configure CC="cc -nodtk"
175
176 Specifying the System Type
177 ==========================
178
179 There may be some features `configure' cannot figure out
180 automatically, but needs to determine by the type of machine the package
181 will run on. Usually, assuming the package is built to be run on the
182 _same_ architectures, `configure' can figure that out, but if it prints
183 a message saying it cannot guess the machine type, give it the
184 `--build=TYPE' option. TYPE can either be a short name for the system
185 type, such as `sun4', or a canonical name which has the form:
186
187 CPU-COMPANY-SYSTEM
188
189 where SYSTEM can have one of these forms:
190
191 OS KERNEL-OS
192
193 See the file `config.sub' for the possible values of each field. If
194 `config.sub' isn't included in this package, then this package doesn't
195 need to know the machine type.
196
197 If you are _building_ compiler tools for cross-compiling, you should
198 use the option `--target=TYPE' to select the type of system they will
199 produce code for.
200
201 If you want to _use_ a cross compiler, that generates code for a
202 platform different from the build platform, you should specify the
203 "host" platform (i.e., that on which the generated programs will
204 eventually be run) with `--host=TYPE'.
205
206 Sharing Defaults
207 ================
208
209 If you want to set default values for `configure' scripts to share,
210 you can create a site shell script called `config.site' that gives
211 default values for variables like `CC', `cache_file', and `prefix'.
212 `configure' looks for `PREFIX/share/config.site' if it exists, then
213 `PREFIX/etc/config.site' if it exists. Or, you can set the
214 `CONFIG_SITE' environment variable to the location of the site script.
215 A warning: not all `configure' scripts look for a site script.
216
217 Defining Variables
218 ==================
219
220 Variables not defined in a site shell script can be set in the
221 environment passed to `configure'. However, some packages may run
222 configure again during the build, and the customized values of these
223 variables may be lost. In order to avoid this problem, you should set
224 them in the `configure' command line, using `VAR=value'. For example:
225
226 ./configure CC=/usr/local2/bin/gcc
227
228 causes the specified `gcc' to be used as the C compiler (unless it is
229 overridden in the site shell script).
230
231 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
232 an Autoconf bug. Until the bug is fixed you can use this workaround:
233
234 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
235
236 `configure' Invocation
237 ======================
238
239 `configure' recognizes the following options to control how it
240 operates.
241
242 `--help'
243 `-h'
244 Print a summary of all of the options to `configure', and exit.
245
246 `--help=short'
247 `--help=recursive'
248 Print a summary of the options unique to this package's
249 `configure', and exit. The `short' variant lists options used
250 only in the top level, while the `recursive' variant lists options
251 also present in any nested packages.
252
253 `--version'
254 `-V'
255 Print the version of Autoconf used to generate the `configure'
256 script, and exit.
257
258 `--cache-file=FILE'
259 Enable the cache: use and save the results of the tests in FILE,
260 traditionally `config.cache'. FILE defaults to `/dev/null' to
261 disable caching.
262
263 `--config-cache'
264 `-C'
265 Alias for `--cache-file=config.cache'.
266
267 `--quiet'
268 `--silent'
269 `-q'
270 Do not print messages saying which checks are being made. To
271 suppress all normal output, redirect it to `/dev/null' (any error
272 messages will still be shown).
273
274 `--srcdir=DIR'
275 Look for the package's source code in directory DIR. Usually
276 `configure' can determine that directory automatically.
277
278 `--prefix=DIR'
279 Use DIR as the installation prefix. *Note Installation Names::
280 for more details, including other options available for fine-tuning
281 the installation locations.
282
283 `--no-create'
284 `-n'
285 Run the configure checks, but stop before creating any output
286 files.
287
288 `configure' also accepts some other, not widely useful, options. Run
289 `configure --help' for more details.
290
0 # Makefile.in generated by automake 1.9.4 from Makefile.am.
0 # Makefile.in generated by automake 1.10.2 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1414 @SET_MAKE@
1515
1616 # $Id: Makefile.am,v 1.2 2003/03/27 16:39:44 dalroi Exp $
17 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
1917 VPATH = @srcdir@
2018 pkgdatadir = $(datadir)/@PACKAGE@
2119 pkglibdir = $(libdir)/@PACKAGE@
2220 pkgincludedir = $(includedir)/@PACKAGE@
23 top_builddir = .
2421 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
2622 install_sh_DATA = $(install_sh) -c -m 644
2723 install_sh_PROGRAM = $(install_sh) -c
2824 install_sh_SCRIPT = $(install_sh) -c
3632 POST_UNINSTALL = :
3733 build_triplet = @build@
3834 host_triplet = @host@
35 subdir = .
3936 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
4037 $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
4138 ChangeLog INSTALL NEWS config.guess config.sub install-sh \
4239 ltmain.sh missing
43 subdir = .
4440 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4541 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4642 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4743 $(ACLOCAL_M4)
4844 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
49 configure.lineno configure.status.lineno
45 configure.lineno config.status.lineno
5046 mkinstalldirs = $(install_sh) -d
5147 CONFIG_CLEAN_FILES =
5248 SOURCES =
5349 DIST_SOURCES =
5450 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
5551 html-recursive info-recursive install-data-recursive \
56 install-exec-recursive install-info-recursive \
57 install-recursive installcheck-recursive installdirs-recursive \
58 pdf-recursive ps-recursive uninstall-info-recursive \
59 uninstall-recursive
52 install-dvi-recursive install-exec-recursive \
53 install-html-recursive install-info-recursive \
54 install-pdf-recursive install-ps-recursive install-recursive \
55 installcheck-recursive installdirs-recursive pdf-recursive \
56 ps-recursive uninstall-recursive
57 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
58 distclean-recursive maintainer-clean-recursive
6059 ETAGS = etags
6160 CTAGS = ctags
6261 DIST_SUBDIRS = src fonts examples
7271 distuninstallcheck_listfiles = find . -type f -print
7372 distcleancheck_listfiles = find . -type f -print
7473 ACLOCAL = @ACLOCAL@
75 AMDEP_FALSE = @AMDEP_FALSE@
76 AMDEP_TRUE = @AMDEP_TRUE@
7774 AMTAR = @AMTAR@
7875 AR = @AR@
7976 AUTOCONF = @AUTOCONF@
8380 CC = @CC@
8481 CCDEPMODE = @CCDEPMODE@
8582 CFLAGS = @CFLAGS@
86 COND_EXAMPLES_FALSE = @COND_EXAMPLES_FALSE@
87 COND_EXAMPLES_TRUE = @COND_EXAMPLES_TRUE@
88 COND_FONT_FALSE = @COND_FONT_FALSE@
89 COND_FONT_TRUE = @COND_FONT_TRUE@
9083 CPP = @CPP@
9184 CPPFLAGS = @CPPFLAGS@
9285 CXX = @CXX@
9790 DEFS = @DEFS@
9891 DEPDIR = @DEPDIR@
9992 DFLAGS = @DFLAGS@
100 ECHO = @ECHO@
93 DSYMUTIL = @DSYMUTIL@
94 DUMPBIN = @DUMPBIN@
10195 ECHO_C = @ECHO_C@
10296 ECHO_N = @ECHO_N@
10397 ECHO_T = @ECHO_T@
10498 EGREP = @EGREP@
10599 EXEEXT = @EXEEXT@
106 F77 = @F77@
107 FFLAGS = @FFLAGS@
100 FGREP = @FGREP@
101 GREP = @GREP@
102 INSTALL = @INSTALL@
108103 INSTALL_DATA = @INSTALL_DATA@
109104 INSTALL_PROGRAM = @INSTALL_PROGRAM@
110105 INSTALL_SCRIPT = @INSTALL_SCRIPT@
111106 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
107 LD = @LD@
112108 LDFLAGS = @LDFLAGS@
113109 LIBOBJS = @LIBOBJS@
114110 LIBS = @LIBS@
115111 LIBTOOL = @LIBTOOL@
112 LIPO = @LIPO@
116113 LN_S = @LN_S@
117114 LTLIBOBJS = @LTLIBOBJS@
118115 MAINT = @MAINT@
119 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
120 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
121116 MAKEINFO = @MAKEINFO@
117 MKDIR_P = @MKDIR_P@
118 NM = @NM@
119 NMEDIT = @NMEDIT@
120 OBJDUMP = @OBJDUMP@
122121 OBJEXT = @OBJEXT@
122 OTOOL = @OTOOL@
123 OTOOL64 = @OTOOL64@
123124 PACKAGE = @PACKAGE@
124125 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
125126 PACKAGE_NAME = @PACKAGE_NAME@
128129 PACKAGE_VERSION = @PACKAGE_VERSION@
129130 PATH_SEPARATOR = @PATH_SEPARATOR@
130131 RANLIB = @RANLIB@
132 SED = @SED@
131133 SET_MAKE = @SET_MAKE@
132134 SHELL = @SHELL@
133135 STRIP = @STRIP@
134136 VERSION = @VERSION@
137 XMKMF = @XMKMF@
135138 X_CFLAGS = @X_CFLAGS@
136139 X_EXTRA_LIBS = @X_EXTRA_LIBS@
137140 X_LIBS = @X_LIBS@
138141 X_PRE_LIBS = @X_PRE_LIBS@
139 ac_ct_AR = @ac_ct_AR@
142 abs_builddir = @abs_builddir@
143 abs_srcdir = @abs_srcdir@
144 abs_top_builddir = @abs_top_builddir@
145 abs_top_srcdir = @abs_top_srcdir@
140146 ac_ct_CC = @ac_ct_CC@
141147 ac_ct_CXX = @ac_ct_CXX@
142 ac_ct_F77 = @ac_ct_F77@
143 ac_ct_RANLIB = @ac_ct_RANLIB@
144 ac_ct_STRIP = @ac_ct_STRIP@
145 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
146 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
147 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
148 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
148 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
149149 am__include = @am__include@
150150 am__leading_dot = @am__leading_dot@
151151 am__quote = @am__quote@
157157 build_cpu = @build_cpu@
158158 build_os = @build_os@
159159 build_vendor = @build_vendor@
160 builddir = @builddir@
160161 datadir = @datadir@
162 datarootdir = @datarootdir@
163 docdir = @docdir@
164 dvidir = @dvidir@
161165 exec_prefix = @exec_prefix@
162166 host = @host@
163167 host_alias = @host_alias@
164168 host_cpu = @host_cpu@
165169 host_os = @host_os@
166170 host_vendor = @host_vendor@
171 htmldir = @htmldir@
167172 includedir = @includedir@
168173 infodir = @infodir@
169174 install_sh = @install_sh@
170175 libdir = @libdir@
171176 libexecdir = @libexecdir@
177 localedir = @localedir@
172178 localstatedir = @localstatedir@
179 lt_ECHO = @lt_ECHO@
173180 mandir = @mandir@
174181 mkdir_p = @mkdir_p@
175182 oldincludedir = @oldincludedir@
183 pdfdir = @pdfdir@
176184 prefix = @prefix@
177185 program_transform_name = @program_transform_name@
186 psdir = @psdir@
178187 sbindir = @sbindir@
179188 sharedstatedir = @sharedstatedir@
189 srcdir = @srcdir@
180190 sysconfdir = @sysconfdir@
181191 target_alias = @target_alias@
192 top_build_prefix = @top_build_prefix@
193 top_builddir = @top_builddir@
194 top_srcdir = @top_srcdir@
182195 @COND_FONT_FALSE@COND_FONT = fonts
183196 @COND_FONT_TRUE@COND_FONT = fonts
184197 @COND_EXAMPLES_TRUE@COND_XMPS = examples
227240 -rm -rf .libs _libs
228241
229242 distclean-libtool:
230 -rm -f libtool
231 uninstall-info-am:
243 -rm -f libtool config.lt
232244
233245 # This directory's subdirectories are mostly independent; you can cd
234246 # into them and run `make' without going through this Makefile.
237249 # (which will cause the Makefiles to be regenerated when you run `make');
238250 # (2) otherwise, pass the desired values on the `make' command line.
239251 $(RECURSIVE_TARGETS):
240 @set fnord $$MAKEFLAGS; amf=$$2; \
252 @failcom='exit 1'; \
253 for f in x $$MAKEFLAGS; do \
254 case $$f in \
255 *=* | --[!k]*);; \
256 *k*) failcom='fail=yes';; \
257 esac; \
258 done; \
241259 dot_seen=no; \
242260 target=`echo $@ | sed s/-recursive//`; \
243261 list='$(SUBDIRS)'; for subdir in $$list; do \
249267 local_target="$$target"; \
250268 fi; \
251269 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
252 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
270 || eval $$failcom; \
253271 done; \
254272 if test "$$dot_seen" = "no"; then \
255273 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
256274 fi; test -z "$$fail"
257275
258 mostlyclean-recursive clean-recursive distclean-recursive \
259 maintainer-clean-recursive:
260 @set fnord $$MAKEFLAGS; amf=$$2; \
276 $(RECURSIVE_CLEAN_TARGETS):
277 @failcom='exit 1'; \
278 for f in x $$MAKEFLAGS; do \
279 case $$f in \
280 *=* | --[!k]*);; \
281 *k*) failcom='fail=yes';; \
282 esac; \
283 done; \
261284 dot_seen=no; \
262285 case "$@" in \
263286 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
278301 local_target="$$target"; \
279302 fi; \
280303 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
281 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
304 || eval $$failcom; \
282305 done && test -z "$$fail"
283306 tags-recursive:
284307 list='$(SUBDIRS)'; for subdir in $$list; do \
294317 unique=`for i in $$list; do \
295318 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
296319 done | \
297 $(AWK) ' { files[$$0] = 1; } \
298 END { for (i in files) print i; }'`; \
320 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
321 END { if (nonempty) { for (i in files) print i; }; }'`; \
299322 mkid -fID $$unique
300323 tags: TAGS
301324
320343 unique=`for i in $$list; do \
321344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
322345 done | \
323 $(AWK) ' { files[$$0] = 1; } \
324 END { for (i in files) print i; }'`; \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
325348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
326349 test -n "$$unique" || unique=$$empty_fix; \
327350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
331354 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
332355 $(TAGS_FILES) $(LISP)
333356 tags=; \
334 here=`pwd`; \
335357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
336358 unique=`for i in $$list; do \
337359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
338360 done | \
339 $(AWK) ' { files[$$0] = 1; } \
340 END { for (i in files) print i; }'`; \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
341363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
342364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
343365 $$tags $$unique
352374
353375 distdir: $(DISTFILES)
354376 $(am__remove_distdir)
355 mkdir $(distdir)
356 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
357 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
358 list='$(DISTFILES)'; for file in $$list; do \
359 case $$file in \
360 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
361 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
362 esac; \
377 test -d $(distdir) || mkdir $(distdir)
378 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 list='$(DISTFILES)'; \
381 dist_files=`for file in $$list; do echo $$file; done | \
382 sed -e "s|^$$srcdirstrip/||;t" \
383 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
384 case $$dist_files in \
385 */*) $(MKDIR_P) `echo "$$dist_files" | \
386 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
387 sort -u` ;; \
388 esac; \
389 for file in $$dist_files; do \
363390 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
364 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
365 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
366 dir="/$$dir"; \
367 $(mkdir_p) "$(distdir)$$dir"; \
368 else \
369 dir=''; \
370 fi; \
371391 if test -d $$d/$$file; then \
392 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
372393 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
373394 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
374395 fi; \
382403 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
383404 if test "$$subdir" = .; then :; else \
384405 test -d "$(distdir)/$$subdir" \
385 || $(mkdir_p) "$(distdir)/$$subdir" \
406 || $(MKDIR_P) "$(distdir)/$$subdir" \
386407 || exit 1; \
387408 distdir=`$(am__cd) $(distdir) && pwd`; \
388409 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
390411 $(MAKE) $(AM_MAKEFLAGS) \
391412 top_distdir="$$top_distdir" \
392413 distdir="$$distdir/$$subdir" \
414 am__remove_distdir=: \
415 am__skip_length_check=: \
393416 distdir) \
394417 || exit 1; \
395418 fi; \
397420 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
398421 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
399422 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
400 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
423 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
401424 || chmod -R a+r $(distdir)
402425 dist-gzip: distdir
403426 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
405428
406429 dist-bzip2: distdir
407430 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
431 $(am__remove_distdir)
432
433 dist-lzma: distdir
434 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
408435 $(am__remove_distdir)
409436
410437 dist-tarZ: distdir
433460 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
434461 *.tar.bz2*) \
435462 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
463 *.tar.lzma*) \
464 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
436465 *.tar.Z*) \
437466 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
438467 *.shar.gz*) \
472501 $(am__remove_distdir)
473502 @(echo "$(distdir) archives ready for distribution: "; \
474503 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
475 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
504 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
476505 distuninstallcheck:
477506 @cd $(distuninstallcheck_dir) \
478507 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
542571
543572 install-data-am:
544573
574 install-dvi: install-dvi-recursive
575
545576 install-exec-am:
546577
578 install-html: install-html-recursive
579
547580 install-info: install-info-recursive
548581
549582 install-man:
583
584 install-pdf: install-pdf-recursive
585
586 install-ps: install-ps-recursive
550587
551588 installcheck-am:
552589
568605
569606 ps-am:
570607
571 uninstall-am: uninstall-info-am
572
573 uninstall-info: uninstall-info-recursive
574
575 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
576 check-am clean clean-generic clean-libtool clean-recursive \
577 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
578 dist-shar dist-tarZ dist-zip distcheck distclean \
579 distclean-generic distclean-libtool distclean-recursive \
580 distclean-tags distcleancheck distdir distuninstallcheck dvi \
581 dvi-am html html-am info info-am install install-am \
582 install-data install-data-am install-exec install-exec-am \
583 install-info install-info-am install-man install-strip \
584 installcheck installcheck-am installdirs installdirs-am \
585 maintainer-clean maintainer-clean-generic \
586 maintainer-clean-recursive mostlyclean mostlyclean-generic \
587 mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
588 tags tags-recursive uninstall uninstall-am uninstall-info-am
608 uninstall-am:
609
610 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
611 install-strip
612
613 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
614 all all-am am--refresh check check-am clean clean-generic \
615 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
616 dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
617 distclean distclean-generic distclean-libtool distclean-tags \
618 distcleancheck distdir distuninstallcheck dvi dvi-am html \
619 html-am info info-am install install-am install-data \
620 install-data-am install-dvi install-dvi-am install-exec \
621 install-exec-am install-html install-html-am install-info \
622 install-info-am install-man install-pdf install-pdf-am \
623 install-ps install-ps-am install-strip installcheck \
624 installcheck-am installdirs installdirs-am maintainer-clean \
625 maintainer-clean-generic mostlyclean mostlyclean-generic \
626 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
627 uninstall uninstall-am
589628
590629
591630 #dist-hook:
+6074
-4179
aclocal.m4 less more
0 # generated automatically by aclocal 1.9.4 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
3 # Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.10.2 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
1212
13 m4_ifndef([AC_AUTOCONF_VERSION],
14 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
16 [m4_warning([this file was generated for autoconf 2.63.
17 You have another version of autoconf. It may work, but is not guaranteed to.
18 If you have problems, you may need to regenerate the build system entirely.
19 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20
1321 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
14
15 # serial 47 AC_PROG_LIBTOOL
16 # Debian $Rev: 214 $
17
18
19 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
20 # -----------------------------------------------------------
21 # If this macro is not defined by Autoconf, define it here.
22 m4_ifdef([AC_PROVIDE_IFELSE],
23 [],
24 [m4_define([AC_PROVIDE_IFELSE],
25 [m4_ifdef([AC_PROVIDE_$1],
26 [$2], [$3])])])
27
28
29 # AC_PROG_LIBTOOL
30 # ---------------
31 AC_DEFUN([AC_PROG_LIBTOOL],
32 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
33 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
34 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
35 AC_PROVIDE_IFELSE([AC_PROG_CXX],
36 [AC_LIBTOOL_CXX],
37 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
38 ])])
39 dnl And a similar setup for Fortran 77 support
40 AC_PROVIDE_IFELSE([AC_PROG_F77],
41 [AC_LIBTOOL_F77],
42 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
43 ])])
44
45 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
46 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
47 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
48 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
49 [AC_LIBTOOL_GCJ],
50 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
51 [AC_LIBTOOL_GCJ],
52 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
53 [AC_LIBTOOL_GCJ],
54 [ifdef([AC_PROG_GCJ],
55 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
56 ifdef([A][M_PROG_GCJ],
57 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
58 ifdef([LT_AC_PROG_GCJ],
59 [define([LT_AC_PROG_GCJ],
60 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
61 ])])# AC_PROG_LIBTOOL
62
63
64 # _AC_PROG_LIBTOOL
65 # ----------------
66 AC_DEFUN([_AC_PROG_LIBTOOL],
67 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
68 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
69 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
70 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
22 #
23 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24 # 2006, 2007, 2008 Free Software Foundation, Inc.
25 # Written by Gordon Matzigkeit, 1996
26 #
27 # This file is free software; the Free Software Foundation gives
28 # unlimited permission to copy and/or distribute it, with or without
29 # modifications, as long as this notice is preserved.
30
31 m4_define([_LT_COPYING], [dnl
32 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33 # 2006, 2007, 2008 Free Software Foundation, Inc.
34 # Written by Gordon Matzigkeit, 1996
35 #
36 # This file is part of GNU Libtool.
37 #
38 # GNU Libtool is free software; you can redistribute it and/or
39 # modify it under the terms of the GNU General Public License as
40 # published by the Free Software Foundation; either version 2 of
41 # the License, or (at your option) any later version.
42 #
43 # As a special exception to the GNU General Public License,
44 # if you distribute this file as part of a program or library that
45 # is built using GNU Libtool, you may include this file under the
46 # same distribution terms that you use for the rest of that program.
47 #
48 # GNU Libtool is distributed in the hope that it will be useful,
49 # but WITHOUT ANY WARRANTY; without even the implied warranty of
50 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51 # GNU General Public License for more details.
52 #
53 # You should have received a copy of the GNU General Public License
54 # along with GNU Libtool; see the file COPYING. If not, a copy
55 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
56 # obtained by writing to the Free Software Foundation, Inc.,
57 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
58 ])
59
60 # serial 56 LT_INIT
61
62
63 # LT_PREREQ(VERSION)
64 # ------------------
65 # Complain and exit if this libtool version is less that VERSION.
66 m4_defun([LT_PREREQ],
67 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
68 [m4_default([$3],
69 [m4_fatal([Libtool version $1 or higher is required],
70 63)])],
71 [$2])])
72
73
74 # _LT_CHECK_BUILDDIR
75 # ------------------
76 # Complain if the absolute build directory name contains unusual characters
77 m4_defun([_LT_CHECK_BUILDDIR],
78 [case `pwd` in
79 *\ * | *\ *)
80 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
81 esac
82 ])
83
84
85 # LT_INIT([OPTIONS])
86 # ------------------
87 AC_DEFUN([LT_INIT],
88 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
89 AC_BEFORE([$0], [LT_LANG])dnl
90 AC_BEFORE([$0], [LT_OUTPUT])dnl
91 AC_BEFORE([$0], [LTDL_INIT])dnl
92 m4_require([_LT_CHECK_BUILDDIR])dnl
93
94 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
95 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
96 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
97 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
98 dnl unless we require an AC_DEFUNed macro:
99 AC_REQUIRE([LTOPTIONS_VERSION])dnl
100 AC_REQUIRE([LTSUGAR_VERSION])dnl
101 AC_REQUIRE([LTVERSION_VERSION])dnl
102 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
103 m4_require([_LT_PROG_LTMAIN])dnl
104
105 dnl Parse OPTIONS
106 _LT_SET_OPTIONS([$0], [$1])
71107
72108 # This can be used to rebuild libtool when needed
73 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
109 LIBTOOL_DEPS="$ltmain"
74110
75111 # Always use our own libtool.
76112 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
77113 AC_SUBST(LIBTOOL)dnl
78114
79 # Prevent multiple expansion
80 define([AC_PROG_LIBTOOL], [])
81 ])# _AC_PROG_LIBTOOL
82
83
84 # AC_LIBTOOL_SETUP
85 # ----------------
86 AC_DEFUN([AC_LIBTOOL_SETUP],
87 [AC_PREREQ(2.50)dnl
88 AC_REQUIRE([AC_ENABLE_SHARED])dnl
89 AC_REQUIRE([AC_ENABLE_STATIC])dnl
90 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
91 AC_REQUIRE([AC_CANONICAL_HOST])dnl
115 _LT_SETUP
116
117 # Only expand once:
118 m4_define([LT_INIT])
119 ])# LT_INIT
120
121 # Old names:
122 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
123 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
124 dnl aclocal-1.4 backwards compatibility:
125 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
126 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
127
128
129 # _LT_CC_BASENAME(CC)
130 # -------------------
131 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
132 m4_defun([_LT_CC_BASENAME],
133 [for cc_temp in $1""; do
134 case $cc_temp in
135 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
136 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
137 \-*) ;;
138 *) break;;
139 esac
140 done
141 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
142 ])
143
144
145 # _LT_FILEUTILS_DEFAULTS
146 # ----------------------
147 # It is okay to use these file commands and assume they have been set
148 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
149 m4_defun([_LT_FILEUTILS_DEFAULTS],
150 [: ${CP="cp -f"}
151 : ${MV="mv -f"}
152 : ${RM="rm -f"}
153 ])# _LT_FILEUTILS_DEFAULTS
154
155
156 # _LT_SETUP
157 # ---------
158 m4_defun([_LT_SETUP],
159 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
92160 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
161 _LT_DECL([], [host_alias], [0], [The host system])dnl
162 _LT_DECL([], [host], [0])dnl
163 _LT_DECL([], [host_os], [0])dnl
164 dnl
165 _LT_DECL([], [build_alias], [0], [The build system])dnl
166 _LT_DECL([], [build], [0])dnl
167 _LT_DECL([], [build_os], [0])dnl
168 dnl
93169 AC_REQUIRE([AC_PROG_CC])dnl
94 AC_REQUIRE([AC_PROG_LD])dnl
95 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
96 AC_REQUIRE([AC_PROG_NM])dnl
97
170 AC_REQUIRE([LT_PATH_LD])dnl
171 AC_REQUIRE([LT_PATH_NM])dnl
172 dnl
98173 AC_REQUIRE([AC_PROG_LN_S])dnl
99 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
100 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
101 AC_REQUIRE([AC_OBJEXT])dnl
102 AC_REQUIRE([AC_EXEEXT])dnl
174 test -z "$LN_S" && LN_S="ln -s"
175 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
103176 dnl
104
105 AC_LIBTOOL_SYS_MAX_CMD_LEN
106 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
107 AC_LIBTOOL_OBJDIR
108
109 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
110 _LT_AC_PROG_ECHO_BACKSLASH
177 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
178 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
179 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
180 dnl
181 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
182 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
183 m4_require([_LT_CMD_RELOAD])dnl
184 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
185 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
186 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
187
188 _LT_CONFIG_LIBTOOL_INIT([
189 # See if we are running on zsh, and set the options which allow our
190 # commands through without removal of \ escapes INIT.
191 if test -n "\${ZSH_VERSION+set}" ; then
192 setopt NO_GLOB_SUBST
193 fi
194 ])
195 if test -n "${ZSH_VERSION+set}" ; then
196 setopt NO_GLOB_SUBST
197 fi
198
199 _LT_CHECK_OBJDIR
200
201 m4_require([_LT_TAG_COMPILER])dnl
202 _LT_PROG_ECHO_BACKSLASH
111203
112204 case $host_os in
113205 aix3*)
123215
124216 # Sed substitution that helps us do robust quoting. It backslashifies
125217 # metacharacters that are still active within double-quoted strings.
126 Xsed='sed -e s/^X//'
127 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
218 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
128219
129220 # Same as above, but do not quote variable references.
130 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
221 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
131222
132223 # Sed substitution to delay expansion of an escaped shell variable in a
133224 # double_quote_subst'ed string.
134225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
135226
227 # Sed substitution to delay expansion of an escaped single quote.
228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
229
136230 # Sed substitution to avoid accidental globbing in evaled expressions
137231 no_glob_subst='s/\*/\\\*/g'
138232
139 # Constants:
140 rm="rm -f"
141
142233 # Global variables:
143 default_ofile=libtool
234 ofile=libtool
144235 can_build_shared=yes
145236
146 # All known linkers require a `.a' archive for static linking (except M$VC,
237 # All known linkers require a `.a' archive for static linking (except MSVC,
147238 # which needs '.lib').
148239 libext=a
149 ltmain="$ac_aux_dir/ltmain.sh"
150 ofile="$default_ofile"
240
151241 with_gnu_ld="$lt_cv_prog_gnu_ld"
152
153 AC_CHECK_TOOL(AR, ar, false)
154 AC_CHECK_TOOL(RANLIB, ranlib, :)
155 AC_CHECK_TOOL(STRIP, strip, :)
156242
157243 old_CC="$CC"
158244 old_CFLAGS="$CFLAGS"
159245
160246 # Set sane defaults for various variables
161 test -z "$AR" && AR=ar
162 test -z "$AR_FLAGS" && AR_FLAGS=cru
163 test -z "$AS" && AS=as
164247 test -z "$CC" && CC=cc
165248 test -z "$LTCC" && LTCC=$CC
166 test -z "$DLLTOOL" && DLLTOOL=dlltool
249 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
167250 test -z "$LD" && LD=ld
168 test -z "$LN_S" && LN_S="ln -s"
251 test -z "$ac_objext" && ac_objext=o
252
253 _LT_CC_BASENAME([$compiler])
254
255 # Only perform the check for file, if the check method requires it
169256 test -z "$MAGIC_CMD" && MAGIC_CMD=file
170 test -z "$NM" && NM=nm
171 test -z "$SED" && SED=sed
172 test -z "$OBJDUMP" && OBJDUMP=objdump
173 test -z "$RANLIB" && RANLIB=:
174 test -z "$STRIP" && STRIP=:
175 test -z "$ac_objext" && ac_objext=o
176
177 # Determine commands to create old-style static archives.
178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
179 old_postinstall_cmds='chmod 644 $oldlib'
180 old_postuninstall_cmds=
181
182 if test -n "$RANLIB"; then
183 case $host_os in
184 openbsd*)
185 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
186 ;;
187 *)
188 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
189 ;;
190 esac
191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
192 fi
193
194 # Only perform the check for file, if the check method requires it
195257 case $deplibs_check_method in
196258 file_magic*)
197259 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
198 AC_PATH_MAGIC
260 _LT_PATH_MAGIC
199261 fi
200262 ;;
201263 esac
202264
203 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
204 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
205 enable_win32_dll=yes, enable_win32_dll=no)
206
207 AC_ARG_ENABLE([libtool-lock],
208 [AC_HELP_STRING([--disable-libtool-lock],
209 [avoid locking (might break parallel builds)])])
210 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
211
212 AC_ARG_WITH([pic],
213 [AC_HELP_STRING([--with-pic],
214 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
215 [pic_mode="$withval"],
216 [pic_mode=default])
217 test -z "$pic_mode" && pic_mode=default
218
219265 # Use C for the default configuration in the libtool script
220 tagname=
221 AC_LIBTOOL_LANG_C_CONFIG
222 _LT_AC_TAGCONFIG
223 ])# AC_LIBTOOL_SETUP
224
225
226 # _LT_AC_SYS_COMPILER
266 LT_SUPPORTED_TAG([CC])
267 _LT_LANG_C_CONFIG
268 _LT_LANG_DEFAULT_CONFIG
269 _LT_CONFIG_COMMANDS
270 ])# _LT_SETUP
271
272
273 # _LT_PROG_LTMAIN
274 # ---------------
275 # Note that this code is called both from `configure', and `config.status'
276 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
277 # `config.status' has no value for ac_aux_dir unless we are using Automake,
278 # so we pass a copy along to make sure it has a sensible value anyway.
279 m4_defun([_LT_PROG_LTMAIN],
280 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
281 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
282 ltmain="$ac_aux_dir/ltmain.sh"
283 ])# _LT_PROG_LTMAIN
284
285
286
287 # So that we can recreate a full libtool script including additional
288 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
289 # in macros and then make a single call at the end using the `libtool'
290 # label.
291
292
293 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
294 # ----------------------------------------
295 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
296 m4_define([_LT_CONFIG_LIBTOOL_INIT],
297 [m4_ifval([$1],
298 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
299 [$1
300 ])])])
301
302 # Initialize.
303 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
304
305
306 # _LT_CONFIG_LIBTOOL([COMMANDS])
307 # ------------------------------
308 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
309 m4_define([_LT_CONFIG_LIBTOOL],
310 [m4_ifval([$1],
311 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
312 [$1
313 ])])])
314
315 # Initialize.
316 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
317
318
319 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
320 # -----------------------------------------------------
321 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
322 [_LT_CONFIG_LIBTOOL([$1])
323 _LT_CONFIG_LIBTOOL_INIT([$2])
324 ])
325
326
327 # _LT_FORMAT_COMMENT([COMMENT])
328 # -----------------------------
329 # Add leading comment marks to the start of each line, and a trailing
330 # full-stop to the whole comment if one is not present already.
331 m4_define([_LT_FORMAT_COMMENT],
332 [m4_ifval([$1], [
333 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
334 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
335 )])
336
337
338
339
340
341 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
342 # -------------------------------------------------------------------
343 # CONFIGNAME is the name given to the value in the libtool script.
344 # VARNAME is the (base) name used in the configure script.
345 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
346 # VARNAME. Any other value will be used directly.
347 m4_define([_LT_DECL],
348 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
349 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
350 [m4_ifval([$1], [$1], [$2])])
351 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
352 m4_ifval([$4],
353 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
354 lt_dict_add_subkey([lt_decl_dict], [$2],
355 [tagged?], [m4_ifval([$5], [yes], [no])])])
356 ])
357
358
359 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
360 # --------------------------------------------------------
361 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
362
363
364 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
365 # ------------------------------------------------
366 m4_define([lt_decl_tag_varnames],
367 [_lt_decl_filter([tagged?], [yes], $@)])
368
369
370 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
371 # ---------------------------------------------------------
372 m4_define([_lt_decl_filter],
373 [m4_case([$#],
374 [0], [m4_fatal([$0: too few arguments: $#])],
375 [1], [m4_fatal([$0: too few arguments: $#: $1])],
376 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
377 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
378 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
379 ])
380
381
382 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
383 # --------------------------------------------------
384 m4_define([lt_decl_quote_varnames],
385 [_lt_decl_filter([value], [1], $@)])
386
387
388 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
389 # ---------------------------------------------------
390 m4_define([lt_decl_dquote_varnames],
391 [_lt_decl_filter([value], [2], $@)])
392
393
394 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
395 # ---------------------------------------------------
396 m4_define([lt_decl_varnames_tagged],
397 [m4_assert([$# <= 2])dnl
398 _$0(m4_quote(m4_default([$1], [[, ]])),
399 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
400 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
401 m4_define([_lt_decl_varnames_tagged],
402 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
403
404
405 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
406 # ------------------------------------------------
407 m4_define([lt_decl_all_varnames],
408 [_$0(m4_quote(m4_default([$1], [[, ]])),
409 m4_if([$2], [],
410 m4_quote(lt_decl_varnames),
411 m4_quote(m4_shift($@))))[]dnl
412 ])
413 m4_define([_lt_decl_all_varnames],
414 [lt_join($@, lt_decl_varnames_tagged([$1],
415 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
416 ])
417
418
419 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
420 # ------------------------------------
421 # Quote a variable value, and forward it to `config.status' so that its
422 # declaration there will have the same value as in `configure'. VARNAME
423 # must have a single quote delimited value for this to work.
424 m4_define([_LT_CONFIG_STATUS_DECLARE],
425 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
426
427
428 # _LT_CONFIG_STATUS_DECLARATIONS
429 # ------------------------------
430 # We delimit libtool config variables with single quotes, so when
431 # we write them to config.status, we have to be sure to quote all
432 # embedded single quotes properly. In configure, this macro expands
433 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
434 #
435 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
436 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
437 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
438 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
439
440
441 # _LT_LIBTOOL_TAGS
442 # ----------------
443 # Output comment and list of tags supported by the script
444 m4_defun([_LT_LIBTOOL_TAGS],
445 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
446 available_tags="_LT_TAGS"dnl
447 ])
448
449
450 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
451 # -----------------------------------
452 # Extract the dictionary values for VARNAME (optionally with TAG) and
453 # expand to a commented shell variable setting:
454 #
455 # # Some comment about what VAR is for.
456 # visible_name=$lt_internal_name
457 m4_define([_LT_LIBTOOL_DECLARE],
458 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
459 [description])))[]dnl
460 m4_pushdef([_libtool_name],
461 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
462 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
463 [0], [_libtool_name=[$]$1],
464 [1], [_libtool_name=$lt_[]$1],
465 [2], [_libtool_name=$lt_[]$1],
466 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
467 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
468 ])
469
470
471 # _LT_LIBTOOL_CONFIG_VARS
472 # -----------------------
473 # Produce commented declarations of non-tagged libtool config variables
474 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
475 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
476 # section) are produced by _LT_LIBTOOL_TAG_VARS.
477 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
478 [m4_foreach([_lt_var],
479 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
480 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
481
482
483 # _LT_LIBTOOL_TAG_VARS(TAG)
484 # -------------------------
485 m4_define([_LT_LIBTOOL_TAG_VARS],
486 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
487 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
488
489
490 # _LT_TAGVAR(VARNAME, [TAGNAME])
491 # ------------------------------
492 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
493
494
495 # _LT_CONFIG_COMMANDS
227496 # -------------------
228 AC_DEFUN([_LT_AC_SYS_COMPILER],
497 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
498 # variables for single and double quote escaping we saved from calls
499 # to _LT_DECL, we can put quote escaped variables declarations
500 # into `config.status', and then the shell code to quote escape them in
501 # for loops in `config.status'. Finally, any additional code accumulated
502 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
503 m4_defun([_LT_CONFIG_COMMANDS],
504 [AC_PROVIDE_IFELSE([LT_OUTPUT],
505 dnl If the libtool generation code has been placed in $CONFIG_LT,
506 dnl instead of duplicating it all over again into config.status,
507 dnl then we will have config.status run $CONFIG_LT later, so it
508 dnl needs to know what name is stored there:
509 [AC_CONFIG_COMMANDS([libtool],
510 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
511 dnl If the libtool generation code is destined for config.status,
512 dnl expand the accumulated commands and init code now:
513 [AC_CONFIG_COMMANDS([libtool],
514 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
515 ])#_LT_CONFIG_COMMANDS
516
517
518 # Initialize.
519 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
520 [
521
522 # The HP-UX ksh and POSIX shell print the target directory to stdout
523 # if CDPATH is set.
524 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
525
526 sed_quote_subst='$sed_quote_subst'
527 double_quote_subst='$double_quote_subst'
528 delay_variable_subst='$delay_variable_subst'
529 _LT_CONFIG_STATUS_DECLARATIONS
530 LTCC='$LTCC'
531 LTCFLAGS='$LTCFLAGS'
532 compiler='$compiler_DEFAULT'
533
534 # Quote evaled strings.
535 for var in lt_decl_all_varnames([[ \
536 ]], lt_decl_quote_varnames); do
537 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
538 *[[\\\\\\\`\\"\\\$]]*)
539 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
540 ;;
541 *)
542 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
543 ;;
544 esac
545 done
546
547 # Double-quote double-evaled strings.
548 for var in lt_decl_all_varnames([[ \
549 ]], lt_decl_dquote_varnames); do
550 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
551 *[[\\\\\\\`\\"\\\$]]*)
552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
553 ;;
554 *)
555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
556 ;;
557 esac
558 done
559
560 # Fix-up fallback echo if it was mangled by the above quoting rules.
561 case \$lt_ECHO in
562 *'\\\[$]0 --fallback-echo"')dnl "
563 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
564 ;;
565 esac
566
567 _LT_OUTPUT_LIBTOOL_INIT
568 ])
569
570
571 # LT_OUTPUT
572 # ---------
573 # This macro allows early generation of the libtool script (before
574 # AC_OUTPUT is called), incase it is used in configure for compilation
575 # tests.
576 AC_DEFUN([LT_OUTPUT],
577 [: ${CONFIG_LT=./config.lt}
578 AC_MSG_NOTICE([creating $CONFIG_LT])
579 cat >"$CONFIG_LT" <<_LTEOF
580 #! $SHELL
581 # Generated by $as_me.
582 # Run this file to recreate a libtool stub with the current configuration.
583
584 lt_cl_silent=false
585 SHELL=\${CONFIG_SHELL-$SHELL}
586 _LTEOF
587
588 cat >>"$CONFIG_LT" <<\_LTEOF
589 AS_SHELL_SANITIZE
590 _AS_PREPARE
591
592 exec AS_MESSAGE_FD>&1
593 exec AS_MESSAGE_LOG_FD>>config.log
594 {
595 echo
596 AS_BOX([Running $as_me.])
597 } >&AS_MESSAGE_LOG_FD
598
599 lt_cl_help="\
600 \`$as_me' creates a local libtool stub from the current configuration,
601 for use in further configure time tests before the real libtool is
602 generated.
603
604 Usage: $[0] [[OPTIONS]]
605
606 -h, --help print this help, then exit
607 -V, --version print version number, then exit
608 -q, --quiet do not print progress messages
609 -d, --debug don't remove temporary files
610
611 Report bugs to <bug-libtool@gnu.org>."
612
613 lt_cl_version="\
614 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
615 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
616 configured by $[0], generated by m4_PACKAGE_STRING.
617
618 Copyright (C) 2008 Free Software Foundation, Inc.
619 This config.lt script is free software; the Free Software Foundation
620 gives unlimited permision to copy, distribute and modify it."
621
622 while test $[#] != 0
623 do
624 case $[1] in
625 --version | --v* | -V )
626 echo "$lt_cl_version"; exit 0 ;;
627 --help | --h* | -h )
628 echo "$lt_cl_help"; exit 0 ;;
629 --debug | --d* | -d )
630 debug=: ;;
631 --quiet | --q* | --silent | --s* | -q )
632 lt_cl_silent=: ;;
633
634 -*) AC_MSG_ERROR([unrecognized option: $[1]
635 Try \`$[0] --help' for more information.]) ;;
636
637 *) AC_MSG_ERROR([unrecognized argument: $[1]
638 Try \`$[0] --help' for more information.]) ;;
639 esac
640 shift
641 done
642
643 if $lt_cl_silent; then
644 exec AS_MESSAGE_FD>/dev/null
645 fi
646 _LTEOF
647
648 cat >>"$CONFIG_LT" <<_LTEOF
649 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
650 _LTEOF
651
652 cat >>"$CONFIG_LT" <<\_LTEOF
653 AC_MSG_NOTICE([creating $ofile])
654 _LT_OUTPUT_LIBTOOL_COMMANDS
655 AS_EXIT(0)
656 _LTEOF
657 chmod +x "$CONFIG_LT"
658
659 # configure is writing to config.log, but config.lt does its own redirection,
660 # appending to config.log, which fails on DOS, as config.log is still kept
661 # open by configure. Here we exec the FD to /dev/null, effectively closing
662 # config.log, so it can be properly (re)opened and appended to by config.lt.
663 if test "$no_create" != yes; then
664 lt_cl_success=:
665 test "$silent" = yes &&
666 lt_config_lt_args="$lt_config_lt_args --quiet"
667 exec AS_MESSAGE_LOG_FD>/dev/null
668 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
669 exec AS_MESSAGE_LOG_FD>>config.log
670 $lt_cl_success || AS_EXIT(1)
671 fi
672 ])# LT_OUTPUT
673
674
675 # _LT_CONFIG(TAG)
676 # ---------------
677 # If TAG is the built-in tag, create an initial libtool script with a
678 # default configuration from the untagged config vars. Otherwise add code
679 # to config.status for appending the configuration named by TAG from the
680 # matching tagged config vars.
681 m4_defun([_LT_CONFIG],
682 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
683 _LT_CONFIG_SAVE_COMMANDS([
684 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
685 m4_if(_LT_TAG, [C], [
686 # See if we are running on zsh, and set the options which allow our
687 # commands through without removal of \ escapes.
688 if test -n "${ZSH_VERSION+set}" ; then
689 setopt NO_GLOB_SUBST
690 fi
691
692 cfgfile="${ofile}T"
693 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
694 $RM "$cfgfile"
695
696 cat <<_LT_EOF >> "$cfgfile"
697 #! $SHELL
698
699 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
700 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
702 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
703 #
704 _LT_COPYING
705 _LT_LIBTOOL_TAGS
706
707 # ### BEGIN LIBTOOL CONFIG
708 _LT_LIBTOOL_CONFIG_VARS
709 _LT_LIBTOOL_TAG_VARS
710 # ### END LIBTOOL CONFIG
711
712 _LT_EOF
713
714 case $host_os in
715 aix3*)
716 cat <<\_LT_EOF >> "$cfgfile"
717 # AIX sometimes has problems with the GCC collect2 program. For some
718 # reason, if we set the COLLECT_NAMES environment variable, the problems
719 # vanish in a puff of smoke.
720 if test "X${COLLECT_NAMES+set}" != Xset; then
721 COLLECT_NAMES=
722 export COLLECT_NAMES
723 fi
724 _LT_EOF
725 ;;
726 esac
727
728 _LT_PROG_LTMAIN
729
730 # We use sed instead of cat because bash on DJGPP gets confused if
731 # if finds mixed CR/LF and LF-only lines. Since sed operates in
732 # text mode, it properly converts lines to CR/LF. This bash problem
733 # is reportedly fixed, but why not run on old versions too?
734 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
735 || (rm -f "$cfgfile"; exit 1)
736
737 _LT_PROG_XSI_SHELLFNS
738
739 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
740 || (rm -f "$cfgfile"; exit 1)
741
742 mv -f "$cfgfile" "$ofile" ||
743 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
744 chmod +x "$ofile"
745 ],
746 [cat <<_LT_EOF >> "$ofile"
747
748 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
749 dnl in a comment (ie after a #).
750 # ### BEGIN LIBTOOL TAG CONFIG: $1
751 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
752 # ### END LIBTOOL TAG CONFIG: $1
753 _LT_EOF
754 ])dnl /m4_if
755 ],
756 [m4_if([$1], [], [
757 PACKAGE='$PACKAGE'
758 VERSION='$VERSION'
759 TIMESTAMP='$TIMESTAMP'
760 RM='$RM'
761 ofile='$ofile'], [])
762 ])dnl /_LT_CONFIG_SAVE_COMMANDS
763 ])# _LT_CONFIG
764
765
766 # LT_SUPPORTED_TAG(TAG)
767 # ---------------------
768 # Trace this macro to discover what tags are supported by the libtool
769 # --tag option, using:
770 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
771 AC_DEFUN([LT_SUPPORTED_TAG], [])
772
773
774 # C support is built-in for now
775 m4_define([_LT_LANG_C_enabled], [])
776 m4_define([_LT_TAGS], [])
777
778
779 # LT_LANG(LANG)
780 # -------------
781 # Enable libtool support for the given language if not already enabled.
782 AC_DEFUN([LT_LANG],
783 [AC_BEFORE([$0], [LT_OUTPUT])dnl
784 m4_case([$1],
785 [C], [_LT_LANG(C)],
786 [C++], [_LT_LANG(CXX)],
787 [Java], [_LT_LANG(GCJ)],
788 [Fortran 77], [_LT_LANG(F77)],
789 [Fortran], [_LT_LANG(FC)],
790 [Windows Resource], [_LT_LANG(RC)],
791 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
792 [_LT_LANG($1)],
793 [m4_fatal([$0: unsupported language: "$1"])])])dnl
794 ])# LT_LANG
795
796
797 # _LT_LANG(LANGNAME)
798 # ------------------
799 m4_defun([_LT_LANG],
800 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
801 [LT_SUPPORTED_TAG([$1])dnl
802 m4_append([_LT_TAGS], [$1 ])dnl
803 m4_define([_LT_LANG_]$1[_enabled], [])dnl
804 _LT_LANG_$1_CONFIG($1)])dnl
805 ])# _LT_LANG
806
807
808 # _LT_LANG_DEFAULT_CONFIG
809 # -----------------------
810 m4_defun([_LT_LANG_DEFAULT_CONFIG],
811 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
812 [LT_LANG(CXX)],
813 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
814
815 AC_PROVIDE_IFELSE([AC_PROG_F77],
816 [LT_LANG(F77)],
817 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
818
819 AC_PROVIDE_IFELSE([AC_PROG_FC],
820 [LT_LANG(FC)],
821 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
822
823 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
824 dnl pulling things in needlessly.
825 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
826 [LT_LANG(GCJ)],
827 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
828 [LT_LANG(GCJ)],
829 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
830 [LT_LANG(GCJ)],
831 [m4_ifdef([AC_PROG_GCJ],
832 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
833 m4_ifdef([A][M_PROG_GCJ],
834 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
835 m4_ifdef([LT_PROG_GCJ],
836 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
837
838 AC_PROVIDE_IFELSE([LT_PROG_RC],
839 [LT_LANG(RC)],
840 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
841 ])# _LT_LANG_DEFAULT_CONFIG
842
843 # Obsolete macros:
844 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
845 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
846 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
847 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
848 dnl aclocal-1.4 backwards compatibility:
849 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
850 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
851 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
852 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
853
854
855 # _LT_TAG_COMPILER
856 # ----------------
857 m4_defun([_LT_TAG_COMPILER],
229858 [AC_REQUIRE([AC_PROG_CC])dnl
859
860 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
861 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
862 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
863 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
230864
231865 # If no C compiler was specified, use CC.
232866 LTCC=${LTCC-"$CC"}
233867
868 # If no C compiler flags were specified, use CFLAGS.
869 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
870
234871 # Allow CC to be a program name with arguments.
235872 compiler=$CC
236 ])# _LT_AC_SYS_COMPILER
237
238
239 # _LT_AC_SYS_LIBPATH_AIX
873 ])# _LT_TAG_COMPILER
874
875
876 # _LT_COMPILER_BOILERPLATE
877 # ------------------------
878 # Check for compiler boilerplate output or warnings with
879 # the simple compiler test code.
880 m4_defun([_LT_COMPILER_BOILERPLATE],
881 [m4_require([_LT_DECL_SED])dnl
882 ac_outfile=conftest.$ac_objext
883 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
884 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
885 _lt_compiler_boilerplate=`cat conftest.err`
886 $RM conftest*
887 ])# _LT_COMPILER_BOILERPLATE
888
889
890 # _LT_LINKER_BOILERPLATE
240891 # ----------------------
892 # Check for linker boilerplate output or warnings with
893 # the simple link test code.
894 m4_defun([_LT_LINKER_BOILERPLATE],
895 [m4_require([_LT_DECL_SED])dnl
896 ac_outfile=conftest.$ac_objext
897 echo "$lt_simple_link_test_code" >conftest.$ac_ext
898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
899 _lt_linker_boilerplate=`cat conftest.err`
900 $RM -r conftest*
901 ])# _LT_LINKER_BOILERPLATE
902
903 # _LT_REQUIRED_DARWIN_CHECKS
904 # -------------------------
905 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
906 case $host_os in
907 rhapsody* | darwin*)
908 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
909 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
910 AC_CHECK_TOOL([LIPO], [lipo], [:])
911 AC_CHECK_TOOL([OTOOL], [otool], [:])
912 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
913 _LT_DECL([], [DSYMUTIL], [1],
914 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
915 _LT_DECL([], [NMEDIT], [1],
916 [Tool to change global to local symbols on Mac OS X])
917 _LT_DECL([], [LIPO], [1],
918 [Tool to manipulate fat objects and archives on Mac OS X])
919 _LT_DECL([], [OTOOL], [1],
920 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
921 _LT_DECL([], [OTOOL64], [1],
922 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
923
924 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
925 [lt_cv_apple_cc_single_mod=no
926 if test -z "${LT_MULTI_MODULE}"; then
927 # By default we will add the -single_module flag. You can override
928 # by either setting the environment variable LT_MULTI_MODULE
929 # non-empty at configure time, or by adding -multi_module to the
930 # link flags.
931 rm -rf libconftest.dylib*
932 echo "int foo(void){return 1;}" > conftest.c
933 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
934 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
935 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
936 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
937 _lt_result=$?
938 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
939 lt_cv_apple_cc_single_mod=yes
940 else
941 cat conftest.err >&AS_MESSAGE_LOG_FD
942 fi
943 rm -rf libconftest.dylib*
944 rm -f conftest.*
945 fi])
946 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
947 [lt_cv_ld_exported_symbols_list],
948 [lt_cv_ld_exported_symbols_list=no
949 save_LDFLAGS=$LDFLAGS
950 echo "_main" > conftest.sym
951 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
952 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
953 [lt_cv_ld_exported_symbols_list=yes],
954 [lt_cv_ld_exported_symbols_list=no])
955 LDFLAGS="$save_LDFLAGS"
956 ])
957 case $host_os in
958 rhapsody* | darwin1.[[012]])
959 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
960 darwin1.*)
961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
962 darwin*) # darwin 5.x on
963 # if running on 10.5 or later, the deployment target defaults
964 # to the OS version, if on x86, and 10.4, the deployment
965 # target defaults to 10.4. Don't you love it?
966 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
967 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
969 10.[[012]]*)
970 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
971 10.*)
972 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
973 esac
974 ;;
975 esac
976 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
977 _lt_dar_single_mod='$single_module'
978 fi
979 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
980 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
981 else
982 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
983 fi
984 if test "$DSYMUTIL" != ":"; then
985 _lt_dsymutil='~$DSYMUTIL $lib || :'
986 else
987 _lt_dsymutil=
988 fi
989 ;;
990 esac
991 ])
992
993
994 # _LT_DARWIN_LINKER_FEATURES
995 # --------------------------
996 # Checks for linker and compiler features on darwin
997 m4_defun([_LT_DARWIN_LINKER_FEATURES],
998 [
999 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1000 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1001 _LT_TAGVAR(hardcode_direct, $1)=no
1002 _LT_TAGVAR(hardcode_automatic, $1)=yes
1003 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1004 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1005 _LT_TAGVAR(link_all_deplibs, $1)=yes
1006 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1007 case $cc_basename in
1008 ifort*) _lt_dar_can_shared=yes ;;
1009 *) _lt_dar_can_shared=$GCC ;;
1010 esac
1011 if test "$_lt_dar_can_shared" = "yes"; then
1012 output_verbose_link_cmd=echo
1013 _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}"
1014 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1015 _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}"
1016 _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}"
1017 m4_if([$1], [CXX],
1018 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1019 _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}"
1020 _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}"
1021 fi
1022 ],[])
1023 else
1024 _LT_TAGVAR(ld_shlibs, $1)=no
1025 fi
1026 ])
1027
1028 # _LT_SYS_MODULE_PATH_AIX
1029 # -----------------------
2411030 # Links a minimal program and checks the executable
2421031 # for the system default hardcoded library path. In most cases,
2431032 # this is /usr/lib:/lib, but when the MPI compilers are used
2441033 # the location of the communication and MPI libs are included too.
2451034 # If we don't find anything, use the default library path according
2461035 # to the aix ld manual.
247 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
248 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
250 }'`
1036 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1037 [m4_require([_LT_DECL_SED])dnl
1038 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1039 lt_aix_libpath_sed='
1040 /Import File Strings/,/^$/ {
1041 /^0/ {
1042 s/^0 *\(.*\)$/\1/
1043 p
1044 }
1045 }'
1046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2511047 # Check for a 64-bit object if we didn't find anything.
252 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
253 }'`; fi],[])
1048 if test -z "$aix_libpath"; then
1049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1050 fi],[])
2541051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
255 ])# _LT_AC_SYS_LIBPATH_AIX
256
257
258 # _LT_AC_SHELL_INIT(ARG)
259 # ----------------------
260 AC_DEFUN([_LT_AC_SHELL_INIT],
1052 ])# _LT_SYS_MODULE_PATH_AIX
1053
1054
1055 # _LT_SHELL_INIT(ARG)
1056 # -------------------
1057 m4_define([_LT_SHELL_INIT],
2611058 [ifdef([AC_DIVERSION_NOTICE],
2621059 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2631060 [AC_DIVERT_PUSH(NOTICE)])
2641061 $1
2651062 AC_DIVERT_POP
266 ])# _LT_AC_SHELL_INIT
267
268
269 # _LT_AC_PROG_ECHO_BACKSLASH
270 # --------------------------
1063 ])# _LT_SHELL_INIT
1064
1065
1066 # _LT_PROG_ECHO_BACKSLASH
1067 # -----------------------
2711068 # Add some code to the start of the generated configure script which
2721069 # will find an echo command which doesn't interpret backslashes.
273 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
274 [_LT_AC_SHELL_INIT([
1070 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1071 [_LT_SHELL_INIT([
2751072 # Check that we are running under the correct shell.
2761073 SHELL=${CONFIG_SHELL-/bin/sh}
2771074
278 case X$ECHO in
1075 case X$lt_ECHO in
2791076 X*--fallback-echo)
2801077 # Remove one level of quotation (which was required for Make).
281 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1078 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2821079 ;;
2831080 esac
2841081
285 echo=${ECHO-echo}
1082 ECHO=${lt_ECHO-echo}
2861083 if test "X[$]1" = X--no-reexec; then
2871084 # Discard the --no-reexec flag, and continue.
2881085 shift
2891086 elif test "X[$]1" = X--fallback-echo; then
2901087 # Avoid inline document here, it may be left over
2911088 :
292 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
293 # Yippee, $echo works!
1089 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1090 # Yippee, $ECHO works!
2941091 :
2951092 else
2961093 # Restart under the correct shell.
3001097 if test "X[$]1" = X--fallback-echo; then
3011098 # used as fallback echo
3021099 shift
303 cat <<EOF
1100 cat <<_LT_EOF
3041101 [$]*
305 EOF
1102 _LT_EOF
3061103 exit 0
3071104 fi
3081105
3091106 # The HP-UX ksh and POSIX shell print the target directory to stdout
3101107 # if CDPATH is set.
311 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
312
313 if test -z "$ECHO"; then
314 if test "X${echo_test_string+set}" != Xset; then
315 # find a string as large as possible, as long as the shell can cope with it
316 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
317 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
318 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
319 echo_test_string="`eval $cmd`" &&
320 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
321 then
322 break
323 fi
324 done
325 fi
326
327 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 :
331 else
332 # The Solaris, AIX, and Digital Unix default echo programs unquote
333 # backslashes. This makes it impossible to quote backslashes using
334 # echo "$something" | sed 's/\\/\\\\/g'
335 #
336 # So, first we look for a working echo in the user's PATH.
337
338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
339 for dir in $PATH /usr/ucb; do
1108 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1109
1110 if test -z "$lt_ECHO"; then
1111 if test "X${echo_test_string+set}" != Xset; then
1112 # find a string as large as possible, as long as the shell can cope with it
1113 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1114 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1115 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1116 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1117 then
1118 break
1119 fi
1120 done
1121 fi
1122
1123 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1124 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 :
1127 else
1128 # The Solaris, AIX, and Digital Unix default echo programs unquote
1129 # backslashes. This makes it impossible to quote backslashes using
1130 # echo "$something" | sed 's/\\/\\\\/g'
1131 #
1132 # So, first we look for a working echo in the user's PATH.
1133
1134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1135 for dir in $PATH /usr/ucb; do
1136 IFS="$lt_save_ifs"
1137 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1138 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1139 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1140 test "X$echo_testing_string" = "X$echo_test_string"; then
1141 ECHO="$dir/echo"
1142 break
1143 fi
1144 done
3401145 IFS="$lt_save_ifs"
341 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
342 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
345 echo="$dir/echo"
346 break
347 fi
348 done
349 IFS="$lt_save_ifs"
350
351 if test "X$echo" = Xecho; then
352 # We didn't find a better echo, so look for alternatives.
353 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
354 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 # This shell has a builtin print -r that does the trick.
357 echo='print -r'
358 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
359 test "X$CONFIG_SHELL" != X/bin/ksh; then
360 # If we have ksh, try running configure again with it.
361 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
362 export ORIGINAL_CONFIG_SHELL
363 CONFIG_SHELL=/bin/ksh
364 export CONFIG_SHELL
365 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
366 else
367 # Try using printf.
368 echo='printf %s\n'
369 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
370 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
371 test "X$echo_testing_string" = "X$echo_test_string"; then
372 # Cool, printf works
373 :
374 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
375 test "X$echo_testing_string" = 'X\t' &&
376 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1146
1147 if test "X$ECHO" = Xecho; then
1148 # We didn't find a better echo, so look for alternatives.
1149 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1150 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1151 test "X$echo_testing_string" = "X$echo_test_string"; then
1152 # This shell has a builtin print -r that does the trick.
1153 ECHO='print -r'
1154 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1155 test "X$CONFIG_SHELL" != X/bin/ksh; then
1156 # If we have ksh, try running configure again with it.
1157 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1158 export ORIGINAL_CONFIG_SHELL
1159 CONFIG_SHELL=/bin/ksh
1160 export CONFIG_SHELL
1161 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1162 else
1163 # Try using printf.
1164 ECHO='printf %s\n'
1165 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1166 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
3771167 test "X$echo_testing_string" = "X$echo_test_string"; then
378 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
379 export CONFIG_SHELL
380 SHELL="$CONFIG_SHELL"
381 export SHELL
382 echo="$CONFIG_SHELL [$]0 --fallback-echo"
383 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
384 test "X$echo_testing_string" = 'X\t' &&
385 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
386 test "X$echo_testing_string" = "X$echo_test_string"; then
387 echo="$CONFIG_SHELL [$]0 --fallback-echo"
388 else
389 # maybe with a smaller string...
390 prev=:
391
392 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
393 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
394 then
395 break
1168 # Cool, printf works
1169 :
1170 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1171 test "X$echo_testing_string" = 'X\t' &&
1172 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1173 test "X$echo_testing_string" = "X$echo_test_string"; then
1174 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1175 export CONFIG_SHELL
1176 SHELL="$CONFIG_SHELL"
1177 export SHELL
1178 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1179 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1180 test "X$echo_testing_string" = 'X\t' &&
1181 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1182 test "X$echo_testing_string" = "X$echo_test_string"; then
1183 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1184 else
1185 # maybe with a smaller string...
1186 prev=:
1187
1188 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1189 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1190 then
1191 break
1192 fi
1193 prev="$cmd"
1194 done
1195
1196 if test "$prev" != 'sed 50q "[$]0"'; then
1197 echo_test_string=`eval $prev`
1198 export echo_test_string
1199 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1200 else
1201 # Oops. We lost completely, so just stick with echo.
1202 ECHO=echo
3961203 fi
397 prev="$cmd"
398 done
399
400 if test "$prev" != 'sed 50q "[$]0"'; then
401 echo_test_string=`eval $prev`
402 export echo_test_string
403 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
404 else
405 # Oops. We lost completely, so just stick with echo.
406 echo=echo
407 fi
1204 fi
4081205 fi
4091206 fi
4101207 fi
4111208 fi
412 fi
4131209
4141210 # Copy echo and quote the copy suitably for passing to libtool from
4151211 # the Makefile, instead of quoting the original, which is used later.
416 ECHO=$echo
417 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
418 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1212 lt_ECHO=$ECHO
1213 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1214 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
4191215 fi
4201216
421 AC_SUBST(ECHO)
422 ])])# _LT_AC_PROG_ECHO_BACKSLASH
423
424
425 # _LT_AC_LOCK
426 # -----------
427 AC_DEFUN([_LT_AC_LOCK],
1217 AC_SUBST(lt_ECHO)
1218 ])
1219 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1220 _LT_DECL([], [ECHO], [1],
1221 [An echo program that does not interpret backslashes])
1222 ])# _LT_PROG_ECHO_BACKSLASH
1223
1224
1225 # _LT_ENABLE_LOCK
1226 # ---------------
1227 m4_defun([_LT_ENABLE_LOCK],
4281228 [AC_ARG_ENABLE([libtool-lock],
429 [AC_HELP_STRING([--disable-libtool-lock],
430 [avoid locking (might break parallel builds)])])
1229 [AS_HELP_STRING([--disable-libtool-lock],
1230 [avoid locking (might break parallel builds)])])
4311231 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4321232
4331233 # Some flags need to be propagated to the compiler or linker for good
4381238 echo 'int i;' > conftest.$ac_ext
4391239 if AC_TRY_EVAL(ac_compile); then
4401240 case `/usr/bin/file conftest.$ac_objext` in
441 *ELF-32*)
442 HPUX_IA64_MODE="32"
443 ;;
444 *ELF-64*)
445 HPUX_IA64_MODE="64"
446 ;;
1241 *ELF-32*)
1242 HPUX_IA64_MODE="32"
1243 ;;
1244 *ELF-64*)
1245 HPUX_IA64_MODE="64"
1246 ;;
4471247 esac
4481248 fi
4491249 rm -rf conftest*
4521252 # Find out which ABI we are using.
4531253 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
4541254 if AC_TRY_EVAL(ac_compile); then
455 if test "$lt_cv_prog_gnu_ld" = yes; then
456 case `/usr/bin/file conftest.$ac_objext` in
457 *32-bit*)
458 LD="${LD-ld} -melf32bsmip"
459 ;;
460 *N32*)
461 LD="${LD-ld} -melf32bmipn32"
462 ;;
463 *64-bit*)
464 LD="${LD-ld} -melf64bmip"
465 ;;
466 esac
467 else
468 case `/usr/bin/file conftest.$ac_objext` in
469 *32-bit*)
470 LD="${LD-ld} -32"
471 ;;
472 *N32*)
473 LD="${LD-ld} -n32"
474 ;;
475 *64-bit*)
476 LD="${LD-ld} -64"
477 ;;
478 esac
479 fi
1255 if test "$lt_cv_prog_gnu_ld" = yes; then
1256 case `/usr/bin/file conftest.$ac_objext` in
1257 *32-bit*)
1258 LD="${LD-ld} -melf32bsmip"
1259 ;;
1260 *N32*)
1261 LD="${LD-ld} -melf32bmipn32"
1262 ;;
1263 *64-bit*)
1264 LD="${LD-ld} -melf64bmip"
1265 ;;
1266 esac
1267 else
1268 case `/usr/bin/file conftest.$ac_objext` in
1269 *32-bit*)
1270 LD="${LD-ld} -32"
1271 ;;
1272 *N32*)
1273 LD="${LD-ld} -n32"
1274 ;;
1275 *64-bit*)
1276 LD="${LD-ld} -64"
1277 ;;
1278 esac
1279 fi
4801280 fi
4811281 rm -rf conftest*
4821282 ;;
4831283
484 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1284 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1285 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4851286 # Find out which ABI we are using.
4861287 echo 'int i;' > conftest.$ac_ext
4871288 if AC_TRY_EVAL(ac_compile); then
488 case "`/usr/bin/file conftest.o`" in
489 *32-bit*)
490 case $host in
491 x86_64-*linux*)
492 LD="${LD-ld} -m elf_i386"
493 ;;
494 ppc64-*linux*|powerpc64-*linux*)
495 LD="${LD-ld} -m elf32ppclinux"
496 ;;
497 s390x-*linux*)
498 LD="${LD-ld} -m elf_s390"
499 ;;
500 sparc64-*linux*)
501 LD="${LD-ld} -m elf32_sparc"
502 ;;
503 esac
504 ;;
505 *64-bit*)
506 case $host in
507 x86_64-*linux*)
508 LD="${LD-ld} -m elf_x86_64"
509 ;;
510 ppc*-*linux*|powerpc*-*linux*)
511 LD="${LD-ld} -m elf64ppc"
512 ;;
513 s390*-*linux*)
514 LD="${LD-ld} -m elf64_s390"
515 ;;
516 sparc*-*linux*)
517 LD="${LD-ld} -m elf64_sparc"
518 ;;
519 esac
520 ;;
1289 case `/usr/bin/file conftest.o` in
1290 *32-bit*)
1291 case $host in
1292 x86_64-*kfreebsd*-gnu)
1293 LD="${LD-ld} -m elf_i386_fbsd"
1294 ;;
1295 x86_64-*linux*)
1296 LD="${LD-ld} -m elf_i386"
1297 ;;
1298 ppc64-*linux*|powerpc64-*linux*)
1299 LD="${LD-ld} -m elf32ppclinux"
1300 ;;
1301 s390x-*linux*)
1302 LD="${LD-ld} -m elf_s390"
1303 ;;
1304 sparc64-*linux*)
1305 LD="${LD-ld} -m elf32_sparc"
1306 ;;
1307 esac
1308 ;;
1309 *64-bit*)
1310 case $host in
1311 x86_64-*kfreebsd*-gnu)
1312 LD="${LD-ld} -m elf_x86_64_fbsd"
1313 ;;
1314 x86_64-*linux*)
1315 LD="${LD-ld} -m elf_x86_64"
1316 ;;
1317 ppc*-*linux*|powerpc*-*linux*)
1318 LD="${LD-ld} -m elf64ppc"
1319 ;;
1320 s390*-*linux*|s390*-*tpf*)
1321 LD="${LD-ld} -m elf64_s390"
1322 ;;
1323 sparc*-*linux*)
1324 LD="${LD-ld} -m elf64_sparc"
1325 ;;
1326 esac
1327 ;;
5211328 esac
5221329 fi
5231330 rm -rf conftest*
5291336 CFLAGS="$CFLAGS -belf"
5301337 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
5311338 [AC_LANG_PUSH(C)
532 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1339 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
5331340 AC_LANG_POP])
5341341 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5351342 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5361343 CFLAGS="$SAVE_CFLAGS"
5371344 fi
5381345 ;;
539 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
540 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
541 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
542 AC_CHECK_TOOL(AS, as, false)
543 AC_CHECK_TOOL(OBJDUMP, objdump, false)
544 ;;
545 ])
1346 sparc*-*solaris*)
1347 # Find out which ABI we are using.
1348 echo 'int i;' > conftest.$ac_ext
1349 if AC_TRY_EVAL(ac_compile); then
1350 case `/usr/bin/file conftest.o` in
1351 *64-bit*)
1352 case $lt_cv_prog_gnu_ld in
1353 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1354 *)
1355 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1356 LD="${LD-ld} -64"
1357 fi
1358 ;;
1359 esac
1360 ;;
1361 esac
1362 fi
1363 rm -rf conftest*
1364 ;;
5461365 esac
5471366
5481367 need_locks="$enable_libtool_lock"
549
550 ])# _LT_AC_LOCK
551
552
553 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1368 ])# _LT_ENABLE_LOCK
1369
1370
1371 # _LT_CMD_OLD_ARCHIVE
1372 # -------------------
1373 m4_defun([_LT_CMD_OLD_ARCHIVE],
1374 [AC_CHECK_TOOL(AR, ar, false)
1375 test -z "$AR" && AR=ar
1376 test -z "$AR_FLAGS" && AR_FLAGS=cru
1377 _LT_DECL([], [AR], [1], [The archiver])
1378 _LT_DECL([], [AR_FLAGS], [1])
1379
1380 AC_CHECK_TOOL(STRIP, strip, :)
1381 test -z "$STRIP" && STRIP=:
1382 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1383
1384 AC_CHECK_TOOL(RANLIB, ranlib, :)
1385 test -z "$RANLIB" && RANLIB=:
1386 _LT_DECL([], [RANLIB], [1],
1387 [Commands used to install an old-style archive])
1388
1389 # Determine commands to create old-style static archives.
1390 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1391 old_postinstall_cmds='chmod 644 $oldlib'
1392 old_postuninstall_cmds=
1393
1394 if test -n "$RANLIB"; then
1395 case $host_os in
1396 openbsd*)
1397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1398 ;;
1399 *)
1400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1401 ;;
1402 esac
1403 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1404 fi
1405 _LT_DECL([], [old_postinstall_cmds], [2])
1406 _LT_DECL([], [old_postuninstall_cmds], [2])
1407 _LT_TAGDECL([], [old_archive_cmds], [2],
1408 [Commands used to build an old-style archive])
1409 ])# _LT_CMD_OLD_ARCHIVE
1410
1411
1412 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
5541413 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
5551414 # ----------------------------------------------------------------
5561415 # Check whether the given compiler option works
557 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
558 [AC_REQUIRE([LT_AC_PROG_SED])
1416 AC_DEFUN([_LT_COMPILER_OPTION],
1417 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1418 m4_require([_LT_DECL_SED])dnl
5591419 AC_CACHE_CHECK([$1], [$2],
5601420 [$2=no
561 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1421 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5631423 lt_compiler_flag="$3"
5641424 # Insert the option either (1) after the last *FLAGS variable, or
5651425 # (2) before a word containing "conftest.", or (3) at the end.
5671427 # with a dollar sign (not a hyphen), so the echo should work correctly.
5681428 # The option is referenced via a variable to avoid confusing sed.
5691429 lt_compile=`echo "$ac_compile" | $SED \
570 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5711431 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
5721432 -e 's:$: $lt_compiler_flag:'`
5731433 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
5771437 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
5781438 if (exit $ac_status) && test -s "$ac_outfile"; then
5791439 # The compiler can only warn and ignore the option if not recognized
580 # So say no if there are warnings
581 if test ! -s conftest.err; then
1440 # So say no if there are warnings other than the usual output.
1441 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5821444 $2=yes
5831445 fi
5841446 fi
585 $rm conftest*
1447 $RM conftest*
5861448 ])
5871449
5881450 if test x"[$]$2" = xyes; then
589 ifelse([$5], , :, [$5])
1451 m4_if([$5], , :, [$5])
5901452 else
591 ifelse([$6], , :, [$6])
1453 m4_if([$6], , :, [$6])
5921454 fi
593 ])# AC_LIBTOOL_COMPILER_OPTION
594
595
596 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
597 # [ACTION-SUCCESS], [ACTION-FAILURE])
598 # ------------------------------------------------------------
599 # Check whether the given compiler option works
600 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
601 [AC_CACHE_CHECK([$1], [$2],
1455 ])# _LT_COMPILER_OPTION
1456
1457 # Old name:
1458 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1459 dnl aclocal-1.4 backwards compatibility:
1460 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1461
1462
1463 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1464 # [ACTION-SUCCESS], [ACTION-FAILURE])
1465 # ----------------------------------------------------
1466 # Check whether the given linker option works
1467 AC_DEFUN([_LT_LINKER_OPTION],
1468 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1469 m4_require([_LT_DECL_SED])dnl
1470 AC_CACHE_CHECK([$1], [$2],
6021471 [$2=no
6031472 save_LDFLAGS="$LDFLAGS"
6041473 LDFLAGS="$LDFLAGS $3"
605 printf "$lt_simple_link_test_code" > conftest.$ac_ext
1474 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6061475 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
607 # The compiler can only warn and ignore the option if not recognized
1476 # The linker can only warn and ignore the option if not recognized
6081477 # So say no if there are warnings
6091478 if test -s conftest.err; then
6101479 # Append any errors to the config.log.
6111480 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1481 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1483 if diff conftest.exp conftest.er2 >/dev/null; then
1484 $2=yes
1485 fi
6121486 else
6131487 $2=yes
6141488 fi
6151489 fi
616 $rm conftest*
1490 $RM -r conftest*
6171491 LDFLAGS="$save_LDFLAGS"
6181492 ])
6191493
6201494 if test x"[$]$2" = xyes; then
621 ifelse([$4], , :, [$4])
1495 m4_if([$4], , :, [$4])
6221496 else
623 ifelse([$5], , :, [$5])
1497 m4_if([$5], , :, [$5])
6241498 fi
625 ])# AC_LIBTOOL_LINKER_OPTION
626
627
628 # AC_LIBTOOL_SYS_MAX_CMD_LEN
629 # --------------------------
630 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
631 [# find the maximum length of command line arguments
1499 ])# _LT_LINKER_OPTION
1500
1501 # Old name:
1502 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1503 dnl aclocal-1.4 backwards compatibility:
1504 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1505
1506
1507 # LT_CMD_MAX_LEN
1508 #---------------
1509 AC_DEFUN([LT_CMD_MAX_LEN],
1510 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1511 # find the maximum length of command line arguments
6321512 AC_MSG_CHECKING([the maximum length of command line arguments])
6331513 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
6341514 i=0
6501530 lt_cv_sys_max_cmd_len=-1;
6511531 ;;
6521532
653 cygwin* | mingw*)
1533 cygwin* | mingw* | cegcc*)
6541534 # On Win9x/ME, this test blows up -- it succeeds, but takes
6551535 # about 5 minutes as the teststring grows exponentially.
6561536 # Worse, since 9x/ME are not pre-emptively multitasking,
6671547 lt_cv_sys_max_cmd_len=8192;
6681548 ;;
6691549
670 *)
671 # If test is not a shell built-in, we'll probably end up computing a
672 # maximum length that is only half of the actual maximum length, but
673 # we can't tell.
674 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
675 = "XX$teststring") >/dev/null 2>&1 &&
676 new_result=`expr "X$teststring" : ".*" 2>&1` &&
677 lt_cv_sys_max_cmd_len=$new_result &&
678 test $i != 17 # 1/2 MB should be enough
679 do
680 i=`expr $i + 1`
681 teststring=$teststring$teststring
682 done
683 teststring=
684 # Add a significant safety factor because C++ compilers can tack on massive
685 # amounts of additional arguments before passing them to the linker.
686 # It appears as though 1/2 is a usable value.
687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1550 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1551 # This has been around since 386BSD, at least. Likely further.
1552 if test -x /sbin/sysctl; then
1553 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1554 elif test -x /usr/sbin/sysctl; then
1555 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1556 else
1557 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1558 fi
1559 # And add a safety zone
1560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1562 ;;
1563
1564 interix*)
1565 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1566 lt_cv_sys_max_cmd_len=196608
1567 ;;
1568
1569 osf*)
1570 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1571 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1572 # nice to cause kernel panics so lets avoid the loop below.
1573 # First set a reasonable default.
1574 lt_cv_sys_max_cmd_len=16384
1575 #
1576 if test -x /sbin/sysconfig; then
1577 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1578 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1579 esac
1580 fi
1581 ;;
1582 sco3.2v5*)
1583 lt_cv_sys_max_cmd_len=102400
1584 ;;
1585 sysv5* | sco5v6* | sysv4.2uw2*)
1586 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1587 if test -n "$kargmax"; then
1588 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1589 else
1590 lt_cv_sys_max_cmd_len=32768
1591 fi
1592 ;;
1593 *)
1594 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1595 if test -n "$lt_cv_sys_max_cmd_len"; then
1596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1598 else
1599 # Make teststring a little bigger before we do anything with it.
1600 # a 1K string should be a reasonable start.
1601 for i in 1 2 3 4 5 6 7 8 ; do
1602 teststring=$teststring$teststring
1603 done
1604 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1605 # If test is not a shell built-in, we'll probably end up computing a
1606 # maximum length that is only half of the actual maximum length, but
1607 # we can't tell.
1608 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1609 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1610 test $i != 17 # 1/2 MB should be enough
1611 do
1612 i=`expr $i + 1`
1613 teststring=$teststring$teststring
1614 done
1615 # Only check the string length outside the loop.
1616 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1617 teststring=
1618 # Add a significant safety factor because C++ compilers can tack on
1619 # massive amounts of additional arguments before passing them to the
1620 # linker. It appears as though 1/2 is a usable value.
1621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1622 fi
6881623 ;;
6891624 esac
6901625 ])
6931628 else
6941629 AC_MSG_RESULT(none)
6951630 fi
696 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
697
698
699 # _LT_AC_CHECK_DLFCN
700 # --------------------
701 AC_DEFUN([_LT_AC_CHECK_DLFCN],
702 [AC_CHECK_HEADERS(dlfcn.h)dnl
703 ])# _LT_AC_CHECK_DLFCN
704
705
706 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
707 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
708 # ------------------------------------------------------------------
709 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
710 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1631 max_cmd_len=$lt_cv_sys_max_cmd_len
1632 _LT_DECL([], [max_cmd_len], [0],
1633 [What is the maximum length of a command?])
1634 ])# LT_CMD_MAX_LEN
1635
1636 # Old name:
1637 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1638 dnl aclocal-1.4 backwards compatibility:
1639 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1640
1641
1642 # _LT_HEADER_DLFCN
1643 # ----------------
1644 m4_defun([_LT_HEADER_DLFCN],
1645 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1646 ])# _LT_HEADER_DLFCN
1647
1648
1649 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1650 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1651 # ----------------------------------------------------------------
1652 m4_defun([_LT_TRY_DLOPEN_SELF],
1653 [m4_require([_LT_HEADER_DLFCN])dnl
7111654 if test "$cross_compiling" = yes; then :
7121655 [$4]
7131656 else
7141657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7151658 lt_status=$lt_dlunknown
716 cat > conftest.$ac_ext <<EOF
1659 cat > conftest.$ac_ext <<_LT_EOF
7171660 [#line __oline__ "configure"
7181661 #include "confdefs.h"
7191662
7551698 # endif
7561699 #endif
7571700
758 #ifdef __cplusplus
759 extern "C" void exit (int);
760 #endif
761
7621701 void fnord() { int i=42;}
7631702 int main ()
7641703 {
7711710 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7721711 /* dlclose (self); */
7731712 }
774
775 exit (status);
1713 else
1714 puts (dlerror ());
1715
1716 return status;
7761717 }]
777 EOF
1718 _LT_EOF
7781719 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
779 (./conftest; exit; ) 2>/dev/null
1720 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
7801721 lt_status=$?
7811722 case x$lt_status in
7821723 x$lt_dlno_uscore) $1 ;;
7831724 x$lt_dlneed_uscore) $2 ;;
784 x$lt_unknown|x*) $3 ;;
1725 x$lt_dlunknown|x*) $3 ;;
7851726 esac
7861727 else :
7871728 # compilation failed
7891730 fi
7901731 fi
7911732 rm -fr conftest*
792 ])# _LT_AC_TRY_DLOPEN_SELF
793
794
795 # AC_LIBTOOL_DLOPEN_SELF
796 # -------------------
797 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
798 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1733 ])# _LT_TRY_DLOPEN_SELF
1734
1735
1736 # LT_SYS_DLOPEN_SELF
1737 # ------------------
1738 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1739 [m4_require([_LT_HEADER_DLFCN])dnl
7991740 if test "x$enable_dlopen" != xyes; then
8001741 enable_dlopen=unknown
8011742 enable_dlopen_self=unknown
8111752 lt_cv_dlopen_self=yes
8121753 ;;
8131754
814 mingw* | pw32*)
1755 mingw* | pw32* | cegcc*)
8151756 lt_cv_dlopen="LoadLibrary"
8161757 lt_cv_dlopen_libs=
817 ;;
1758 ;;
8181759
8191760 cygwin*)
8201761 lt_cv_dlopen="dlopen"
8211762 lt_cv_dlopen_libs=
822 ;;
1763 ;;
8231764
8241765 darwin*)
8251766 # if libdl is installed we need to link against it
8291770 lt_cv_dlopen_libs=
8301771 lt_cv_dlopen_self=yes
8311772 ])
832 ;;
1773 ;;
8331774
8341775 *)
8351776 AC_CHECK_FUNC([shl_load],
8361777 [lt_cv_dlopen="shl_load"],
8371778 [AC_CHECK_LIB([dld], [shl_load],
838 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1779 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
8391780 [AC_CHECK_FUNC([dlopen],
8401781 [lt_cv_dlopen="dlopen"],
8411782 [AC_CHECK_LIB([dl], [dlopen],
8431784 [AC_CHECK_LIB([svld], [dlopen],
8441785 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
8451786 [AC_CHECK_LIB([dld], [dld_link],
846 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1787 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
8471788 ])
8481789 ])
8491790 ])
8641805 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8651806
8661807 save_LDFLAGS="$LDFLAGS"
867 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1808 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8681809
8691810 save_LIBS="$LIBS"
8701811 LIBS="$lt_cv_dlopen_libs $LIBS"
8711812
8721813 AC_CACHE_CHECK([whether a program can dlopen itself],
8731814 lt_cv_dlopen_self, [dnl
874 _LT_AC_TRY_DLOPEN_SELF(
1815 _LT_TRY_DLOPEN_SELF(
8751816 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
8761817 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
8771818 ])
8781819
8791820 if test "x$lt_cv_dlopen_self" = xyes; then
880 LDFLAGS="$LDFLAGS $link_static_flag"
1821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8811822 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
882 lt_cv_dlopen_self_static, [dnl
883 _LT_AC_TRY_DLOPEN_SELF(
1823 lt_cv_dlopen_self_static, [dnl
1824 _LT_TRY_DLOPEN_SELF(
8841825 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
8851826 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
8861827 ])
9021843 *) enable_dlopen_self_static=unknown ;;
9031844 esac
9041845 fi
905 ])# AC_LIBTOOL_DLOPEN_SELF
906
907
908 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
909 # ---------------------------------
910 # Check to see if options -c and -o are simultaneously supported by compiler
911 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
912 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1846 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1847 [Whether dlopen is supported])
1848 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1849 [Whether dlopen of programs is supported])
1850 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1851 [Whether dlopen of statically linked programs is supported])
1852 ])# LT_SYS_DLOPEN_SELF
1853
1854 # Old name:
1855 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1856 dnl aclocal-1.4 backwards compatibility:
1857 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1858
1859
1860 # _LT_COMPILER_C_O([TAGNAME])
1861 # ---------------------------
1862 # Check to see if options -c and -o are simultaneously supported by compiler.
1863 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1864 m4_defun([_LT_COMPILER_C_O],
1865 [m4_require([_LT_DECL_SED])dnl
1866 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1867 m4_require([_LT_TAG_COMPILER])dnl
9131868 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
914 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
915 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
916 $rm -r conftest 2>/dev/null
1869 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1870 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1871 $RM -r conftest 2>/dev/null
9171872 mkdir conftest
9181873 cd conftest
9191874 mkdir out
920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9211876
9221877 lt_compiler_flag="-o out/conftest2.$ac_objext"
9231878 # Insert the option either (1) after the last *FLAGS variable, or
9251880 # Note that $ac_compile itself does not contain backslashes and begins
9261881 # with a dollar sign (not a hyphen), so the echo should work correctly.
9271882 lt_compile=`echo "$ac_compile" | $SED \
928 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9291884 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
9301885 -e 's:$: $lt_compiler_flag:'`
9311886 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
9371892 then
9381893 # The compiler can only warn and ignore the option if not recognized
9391894 # So say no if there are warnings
940 if test ! -s out/conftest.err; then
941 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1895 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1898 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
9421899 fi
9431900 fi
944 chmod u+w .
945 $rm conftest*
1901 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1902 $RM conftest*
9461903 # SGI C++ compiler will create directory out/ii_files/ for
9471904 # template instantiation
948 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
949 $rm out/* && rmdir out
1905 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1906 $RM out/* && rmdir out
9501907 cd ..
951 rmdir conftest
952 $rm conftest*
1908 $RM -r conftest
1909 $RM conftest*
9531910 ])
954 ])# AC_LIBTOOL_PROG_CC_C_O
955
956
957 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
958 # -----------------------------------------
1911 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1912 [Does compiler simultaneously support -c and -o options?])
1913 ])# _LT_COMPILER_C_O
1914
1915
1916 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1917 # ----------------------------------
9591918 # Check to see if we can do hard links to lock some files if needed
960 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
961 [AC_REQUIRE([_LT_AC_LOCK])dnl
1919 m4_defun([_LT_COMPILER_FILE_LOCKS],
1920 [m4_require([_LT_ENABLE_LOCK])dnl
1921 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1922 _LT_COMPILER_C_O([$1])
9621923
9631924 hard_links="nottested"
964 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1925 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
9651926 # do not overwrite the value of need_locks provided by the user
9661927 AC_MSG_CHECKING([if we can lock with hard links])
9671928 hard_links=yes
968 $rm conftest*
1929 $RM conftest*
9691930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9701931 touch conftest.a
9711932 ln conftest.a conftest.b 2>&5 || hard_links=no
9781939 else
9791940 need_locks=no
9801941 fi
981 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
982
983
984 # AC_LIBTOOL_OBJDIR
985 # -----------------
986 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1942 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1943 ])# _LT_COMPILER_FILE_LOCKS
1944
1945
1946 # _LT_CHECK_OBJDIR
1947 # ----------------
1948 m4_defun([_LT_CHECK_OBJDIR],
9871949 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
9881950 [rm -f .libs 2>/dev/null
9891951 mkdir .libs 2>/dev/null
9951957 fi
9961958 rmdir .libs 2>/dev/null])
9971959 objdir=$lt_cv_objdir
998 ])# AC_LIBTOOL_OBJDIR
999
1000
1001 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1002 # ----------------------------------------------
1960 _LT_DECL([], [objdir], [0],
1961 [The name of the directory that contains temporary libtool files])dnl
1962 m4_pattern_allow([LT_OBJDIR])dnl
1963 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1964 [Define to the sub-directory in which libtool stores uninstalled libraries.])
1965 ])# _LT_CHECK_OBJDIR
1966
1967
1968 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1969 # --------------------------------------
10031970 # Check hardcoding attributes.
1004 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1971 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
10051972 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1006 _LT_AC_TAGVAR(hardcode_action, $1)=
1007 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1008 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1009 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
1010
1011 # We can hardcode non-existant directories.
1012 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1973 _LT_TAGVAR(hardcode_action, $1)=
1974 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1975 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1976 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1977
1978 # We can hardcode non-existent directories.
1979 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
10131980 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10141981 # have to relink, otherwise we might link with an installed library
10151982 # when we should be linking with a yet-to-be-installed one
1016 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1017 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1983 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1984 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
10181985 # Linking always hardcodes the temporary library directory.
1019 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1986 _LT_TAGVAR(hardcode_action, $1)=relink
10201987 else
10211988 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1022 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1989 _LT_TAGVAR(hardcode_action, $1)=immediate
10231990 fi
10241991 else
10251992 # We cannot hardcode anything, or else we can only hardcode existing
10261993 # directories.
1027 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1994 _LT_TAGVAR(hardcode_action, $1)=unsupported
10281995 fi
1029 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1030
1031 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1996 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1997
1998 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1999 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
10322000 # Fast installation is not supported
10332001 enable_fast_install=no
10342002 elif test "$shlibpath_overrides_runpath" = yes ||
10362004 # Fast installation is not necessary
10372005 enable_fast_install=needless
10382006 fi
1039 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1040
1041
1042 # AC_LIBTOOL_SYS_LIB_STRIP
1043 # ------------------------
1044 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1045 [striplib=
2007 _LT_TAGDECL([], [hardcode_action], [0],
2008 [How to hardcode a shared library path into an executable])
2009 ])# _LT_LINKER_HARDCODE_LIBPATH
2010
2011
2012 # _LT_CMD_STRIPLIB
2013 # ----------------
2014 m4_defun([_LT_CMD_STRIPLIB],
2015 [m4_require([_LT_DECL_EGREP])
2016 striplib=
10462017 old_striplib=
10472018 AC_MSG_CHECKING([whether stripping libraries is possible])
1048 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2019 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10492020 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10502021 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10512022 AC_MSG_RESULT([yes])
10522023 else
10532024 # FIXME - insert some real tests, host_os isn't really good enough
10542025 case $host_os in
1055 darwin*)
1056 if test -n "$STRIP" ; then
1057 striplib="$STRIP -x"
1058 AC_MSG_RESULT([yes])
1059 else
1060 AC_MSG_RESULT([no])
1061 fi
1062 ;;
1063 *)
1064 AC_MSG_RESULT([no])
2026 darwin*)
2027 if test -n "$STRIP" ; then
2028 striplib="$STRIP -x"
2029 old_striplib="$STRIP -S"
2030 AC_MSG_RESULT([yes])
2031 else
2032 AC_MSG_RESULT([no])
2033 fi
2034 ;;
2035 *)
2036 AC_MSG_RESULT([no])
10652037 ;;
10662038 esac
10672039 fi
1068 ])# AC_LIBTOOL_SYS_LIB_STRIP
1069
1070
1071 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
2040 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2041 _LT_DECL([], [striplib], [1])
2042 ])# _LT_CMD_STRIPLIB
2043
2044
2045 # _LT_SYS_DYNAMIC_LINKER([TAG])
10722046 # -----------------------------
10732047 # PORTME Fill in your ld.so characteristics
1074 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1075 [AC_MSG_CHECKING([dynamic linker characteristics])
2048 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2049 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2050 m4_require([_LT_DECL_EGREP])dnl
2051 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2052 m4_require([_LT_DECL_OBJDUMP])dnl
2053 m4_require([_LT_DECL_SED])dnl
2054 AC_MSG_CHECKING([dynamic linker characteristics])
2055 m4_if([$1],
2056 [], [
2057 if test "$GCC" = yes; then
2058 case $host_os in
2059 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2060 *) lt_awk_arg="/^libraries:/" ;;
2061 esac
2062 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2063 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2064 # if the path contains ";" then we assume it to be the separator
2065 # otherwise default to the standard path separator (i.e. ":") - it is
2066 # assumed that no part of a normal pathname contains ";" but that should
2067 # okay in the real world where ";" in dirpaths is itself problematic.
2068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2069 else
2070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2071 fi
2072 # Ok, now we have the path, separated by spaces, we can step through it
2073 # and add multilib dir if necessary.
2074 lt_tmp_lt_search_path_spec=
2075 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2076 for lt_sys_path in $lt_search_path_spec; do
2077 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2078 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2079 else
2080 test -d "$lt_sys_path" && \
2081 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2082 fi
2083 done
2084 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2085 BEGIN {RS=" "; FS="/|\n";} {
2086 lt_foo="";
2087 lt_count=0;
2088 for (lt_i = NF; lt_i > 0; lt_i--) {
2089 if ($lt_i != "" && $lt_i != ".") {
2090 if ($lt_i == "..") {
2091 lt_count++;
2092 } else {
2093 if (lt_count == 0) {
2094 lt_foo="/" $lt_i lt_foo;
2095 } else {
2096 lt_count--;
2097 }
2098 }
2099 }
2100 }
2101 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2102 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2103 }'`
2104 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2105 else
2106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2107 fi])
10762108 library_names_spec=
10772109 libname_spec='lib$name'
10782110 soname_spec=
10862118 version_type=none
10872119 dynamic_linker="$host_os ld.so"
10882120 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1089 if test "$GCC" = yes; then
1090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1091 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1092 # if the path contains ";" then we assume it to be the separator
1093 # otherwise default to the standard path separator (i.e. ":") - it is
1094 # assumed that no part of a normal pathname contains ";" but that should
1095 # okay in the real world where ";" in dirpaths is itself problematic.
1096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1097 else
1098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1099 fi
1100 else
1101 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1102 fi
11032121 need_lib_prefix=unknown
11042122 hardcode_into_libs=no
11052123
11172135 soname_spec='${libname}${release}${shared_ext}$major'
11182136 ;;
11192137
1120 aix4* | aix5*)
2138 aix[[4-9]]*)
11212139 version_type=linux
11222140 need_lib_prefix=no
11232141 need_version=no
11362154 aix4 | aix4.[[01]] | aix4.[[01]].*)
11372155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11382156 echo ' yes '
1139 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2157 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11402158 :
11412159 else
11422160 can_build_shared=no
11622180 ;;
11632181
11642182 amigaos*)
1165 library_names_spec='$libname.ixlibrary $libname.a'
1166 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1167 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2183 case $host_cpu in
2184 powerpc)
2185 # Since July 2007 AmigaOS4 officially supports .so libraries.
2186 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2188 ;;
2189 m68k)
2190 library_names_spec='$libname.ixlibrary $libname.a'
2191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2192 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2193 ;;
2194 esac
11682195 ;;
11692196
11702197 beos*)
11732200 shlibpath_var=LIBRARY_PATH
11742201 ;;
11752202
1176 bsdi4*)
2203 bsdi[[45]]*)
11772204 version_type=linux
11782205 need_version=no
11792206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11872214 # libtool to hard-code these into programs
11882215 ;;
11892216
1190 cygwin* | mingw* | pw32*)
2217 cygwin* | mingw* | pw32* | cegcc*)
11912218 version_type=windows
11922219 shrext_cmds=".dll"
11932220 need_version=no
11942221 need_lib_prefix=no
11952222
11962223 case $GCC,$host_os in
1197 yes,cygwin* | yes,mingw* | yes,pw32*)
2224 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11982225 library_names_spec='$libname.dll.a'
11992226 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12002227 postinstall_cmds='base_file=`basename \${file}`~
1201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12022229 dldir=$destdir/`dirname \$dlpath`~
12032230 test -d \$dldir || mkdir -p \$dldir~
1204 $install_prog $dir/$dlname \$dldir/$dlname'
2231 $install_prog $dir/$dlname \$dldir/$dlname~
2232 chmod a+x \$dldir/$dlname~
2233 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2234 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2235 fi'
12052236 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12062237 dlpath=$dir/\$dldll~
1207 $rm \$dlpath'
2238 $RM \$dlpath'
12082239 shlibpath_overrides_runpath=yes
12092240
12102241 case $host_os in
12132244 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
12142245 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12152246 ;;
1216 mingw*)
2247 mingw* | cegcc*)
12172248 # MinGW DLLs use traditional 'lib' prefix
12182249 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1220 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2250 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2251 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
12212252 # It is most probably a Windows format PATH printed by
12222253 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12232254 # path with ; separators, and with drive letters. We can handle the
12242255 # drive letters (cygwin fileutils understands them), so leave them,
12252256 # especially as we might pass files found there to a mingw objdump,
12262257 # which wouldn't understand a cygwinified path. Ahh.
1227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2258 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12282259 else
1229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2260 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12302261 fi
12312262 ;;
12322263 pw32*)
12332264 # pw32 DLLs use 'pw' prefix rather than 'lib'
1234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
2265 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
12352266 ;;
12362267 esac
12372268 ;;
12502281 version_type=darwin
12512282 need_lib_prefix=no
12522283 need_version=no
1253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2284 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12542285 soname_spec='${libname}${release}${major}$shared_ext'
12552286 shlibpath_overrides_runpath=yes
12562287 shlibpath_var=DYLD_LIBRARY_PATH
1257 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1258 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1259 if test "$GCC" = yes; then
1260 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1261 else
1262 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1263 fi
2288 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2289 m4_if([$1], [],[
2290 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
12642291 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12652292 ;;
12662293
12772304 dynamic_linker=no
12782305 ;;
12792306
1280 kfreebsd*-gnu)
1281 version_type=linux
1282 need_lib_prefix=no
1283 need_version=no
1284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1285 soname_spec='${libname}${release}${shared_ext}$major'
1286 shlibpath_var=LD_LIBRARY_PATH
1287 shlibpath_overrides_runpath=no
1288 hardcode_into_libs=yes
1289 dynamic_linker='GNU ld.so'
1290 ;;
1291
1292 freebsd*)
1293 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2307 freebsd* | dragonfly*)
2308 # DragonFly does not have aout. When/if they implement a new
2309 # versioning mechanism, adjust this.
2310 if test -x /usr/bin/objformat; then
2311 objformat=`/usr/bin/objformat`
2312 else
2313 case $host_os in
2314 freebsd[[123]]*) objformat=aout ;;
2315 *) objformat=elf ;;
2316 esac
2317 fi
12942318 version_type=freebsd-$objformat
12952319 case $version_type in
12962320 freebsd-elf*)
13082332 freebsd2*)
13092333 shlibpath_overrides_runpath=yes
13102334 ;;
1311 freebsd3.[01]* | freebsdelf3.[01]*)
2335 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
13122336 shlibpath_overrides_runpath=yes
13132337 hardcode_into_libs=yes
13142338 ;;
1315 *) # from 3.2 on
2339 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2340 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
13162341 shlibpath_overrides_runpath=no
2342 hardcode_into_libs=yes
2343 ;;
2344 *) # from 4.6 on, and DragonFly
2345 shlibpath_overrides_runpath=yes
13172346 hardcode_into_libs=yes
13182347 ;;
13192348 esac
13352364 version_type=sunos
13362365 need_lib_prefix=no
13372366 need_version=no
1338 case "$host_cpu" in
2367 case $host_cpu in
13392368 ia64*)
13402369 shrext_cmds='.so'
13412370 hardcode_into_libs=yes
13512380 fi
13522381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13532382 ;;
1354 hppa*64*)
1355 shrext_cmds='.sl'
1356 hardcode_into_libs=yes
1357 dynamic_linker="$host_os dld.sl"
1358 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1361 soname_spec='${libname}${release}${shared_ext}$major'
1362 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1364 ;;
1365 *)
2383 hppa*64*)
2384 shrext_cmds='.sl'
2385 hardcode_into_libs=yes
2386 dynamic_linker="$host_os dld.sl"
2387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2390 soname_spec='${libname}${release}${shared_ext}$major'
2391 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2393 ;;
2394 *)
13662395 shrext_cmds='.sl'
13672396 dynamic_linker="$host_os dld.sl"
13682397 shlibpath_var=SHLIB_PATH
13732402 esac
13742403 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13752404 postinstall_cmds='chmod 555 $lib'
2405 ;;
2406
2407 interix[[3-9]]*)
2408 version_type=linux
2409 need_lib_prefix=no
2410 need_version=no
2411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2412 soname_spec='${libname}${release}${shared_ext}$major'
2413 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2414 shlibpath_var=LD_LIBRARY_PATH
2415 shlibpath_overrides_runpath=no
2416 hardcode_into_libs=yes
13762417 ;;
13772418
13782419 irix5* | irix6* | nonstopux*)
14182459 ;;
14192460
14202461 # This must be Linux ELF.
1421 linux*)
2462 linux* | k*bsd*-gnu)
14222463 version_type=linux
14232464 need_lib_prefix=no
14242465 need_version=no
14272468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14282469 shlibpath_var=LD_LIBRARY_PATH
14292470 shlibpath_overrides_runpath=no
2471 # Some binutils ld are patched to set DT_RUNPATH
2472 save_LDFLAGS=$LDFLAGS
2473 save_libdir=$libdir
2474 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2475 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2476 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2477 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2478 [shlibpath_overrides_runpath=yes])])
2479 LDFLAGS=$save_LDFLAGS
2480 libdir=$save_libdir
2481
14302482 # This implies no fast_install, which is unacceptable.
14312483 # Some rework will be needed to allow for fast_install
14322484 # before this can be enabled.
14342486
14352487 # Append ld.so.conf contents to the search path
14362488 if test -f /etc/ld.so.conf; then
1437 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
2489 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14382490 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14392491 fi
14402492
14592511 dynamic_linker='NetBSD ld.elf_so'
14602512 ;;
14612513
1462 knetbsd*-gnu)
1463 version_type=linux
1464 need_lib_prefix=no
1465 need_version=no
1466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1467 soname_spec='${libname}${release}${shared_ext}$major'
1468 shlibpath_var=LD_LIBRARY_PATH
1469 shlibpath_overrides_runpath=no
1470 hardcode_into_libs=yes
1471 dynamic_linker='GNU ld.so'
1472 ;;
1473
14742514 netbsd*)
14752515 version_type=sunos
14762516 need_lib_prefix=no
14772517 need_version=no
1478 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14792519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14802520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14812521 dynamic_linker='NetBSD (a.out) ld.so'
14962536 shlibpath_overrides_runpath=yes
14972537 ;;
14982538
1499 nto-qnx*)
1500 version_type=linux
2539 *nto* | *qnx*)
2540 version_type=qnx
15012541 need_lib_prefix=no
15022542 need_version=no
15032543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15042544 soname_spec='${libname}${release}${shared_ext}$major'
15052545 shlibpath_var=LD_LIBRARY_PATH
1506 shlibpath_overrides_runpath=yes
2546 shlibpath_overrides_runpath=no
2547 hardcode_into_libs=yes
2548 dynamic_linker='ldqnx.so'
15072549 ;;
15082550
15092551 openbsd*)
15102552 version_type=sunos
2553 sys_lib_dlsearch_path_spec="/usr/lib"
15112554 need_lib_prefix=no
1512 need_version=yes
2555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2556 case $host_os in
2557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2558 *) need_version=no ;;
2559 esac
15132560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15142561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15152562 shlibpath_var=LD_LIBRARY_PATH
1516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15172564 case $host_os in
15182565 openbsd2.[[89]] | openbsd2.[[89]].*)
15192566 shlibpath_overrides_runpath=no
15472594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15482595 ;;
15492596
1550 sco3.2v5*)
1551 version_type=osf
1552 soname_spec='${libname}${release}${shared_ext}$major'
1553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1554 shlibpath_var=LD_LIBRARY_PATH
2597 rdos*)
2598 dynamic_linker=no
15552599 ;;
15562600
15572601 solaris*)
15792623 need_version=yes
15802624 ;;
15812625
1582 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2626 sysv4 | sysv4.3*)
15832627 version_type=linux
15842628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852629 soname_spec='${libname}${release}${shared_ext}$major'
15882632 sni)
15892633 shlibpath_overrides_runpath=no
15902634 need_lib_prefix=no
1591 export_dynamic_flag_spec='${wl}-Blargedynsym'
15922635 runpath_var=LD_RUN_PATH
15932636 ;;
15942637 siemens)
16122655 fi
16132656 ;;
16142657
2658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2659 version_type=freebsd-elf
2660 need_lib_prefix=no
2661 need_version=no
2662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2663 soname_spec='${libname}${release}${shared_ext}$major'
2664 shlibpath_var=LD_LIBRARY_PATH
2665 shlibpath_overrides_runpath=yes
2666 hardcode_into_libs=yes
2667 if test "$with_gnu_ld" = yes; then
2668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2669 else
2670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2671 case $host_os in
2672 sco3.2v5*)
2673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2674 ;;
2675 esac
2676 fi
2677 sys_lib_dlsearch_path_spec='/usr/lib'
2678 ;;
2679
2680 tpf*)
2681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2682 version_type=linux
2683 need_lib_prefix=no
2684 need_version=no
2685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2686 shlibpath_var=LD_LIBRARY_PATH
2687 shlibpath_overrides_runpath=no
2688 hardcode_into_libs=yes
2689 ;;
2690
16152691 uts4*)
16162692 version_type=linux
16172693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16252701 esac
16262702 AC_MSG_RESULT([$dynamic_linker])
16272703 test "$dynamic_linker" = no && can_build_shared=no
1628 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1629
1630
1631 # _LT_AC_TAGCONFIG
1632 # ----------------
1633 AC_DEFUN([_LT_AC_TAGCONFIG],
1634 [AC_ARG_WITH([tags],
1635 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1636 [include additional configurations @<:@automatic@:>@])],
1637 [tagnames="$withval"])
1638
1639 if test -f "$ltmain" && test -n "$tagnames"; then
1640 if test ! -f "${ofile}"; then
1641 AC_MSG_WARN([output file `$ofile' does not exist])
1642 fi
1643
1644 if test -z "$LTCC"; then
1645 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1646 if test -z "$LTCC"; then
1647 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1648 else
1649 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1650 fi
1651 fi
1652
1653 # Extract list of available tagged configurations in $ofile.
1654 # Note that this assumes the entire list is on one line.
1655 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1656
1657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1658 for tagname in $tagnames; do
1659 IFS="$lt_save_ifs"
1660 # Check whether tagname contains only valid characters
1661 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1662 "") ;;
1663 *) AC_MSG_ERROR([invalid tag name: $tagname])
1664 ;;
1665 esac
1666
1667 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1668 then
1669 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1670 fi
1671
1672 # Update the list of available tags.
1673 if test -n "$tagname"; then
1674 echo appending configuration tag \"$tagname\" to $ofile
1675
1676 case $tagname in
1677 CXX)
1678 if test -n "$CXX" && test "X$CXX" != "Xno"; then
1679 AC_LIBTOOL_LANG_CXX_CONFIG
1680 else
1681 tagname=""
1682 fi
1683 ;;
1684
1685 F77)
1686 if test -n "$F77" && test "X$F77" != "Xno"; then
1687 AC_LIBTOOL_LANG_F77_CONFIG
1688 else
1689 tagname=""
1690 fi
1691 ;;
1692
1693 GCJ)
1694 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1695 AC_LIBTOOL_LANG_GCJ_CONFIG
1696 else
1697 tagname=""
1698 fi
1699 ;;
1700
1701 RC)
1702 AC_LIBTOOL_LANG_RC_CONFIG
1703 ;;
1704
1705 *)
1706 AC_MSG_ERROR([Unsupported tag name: $tagname])
1707 ;;
1708 esac
1709
1710 # Append the new tag name to the list of available tags.
1711 if test -n "$tagname" ; then
1712 available_tags="$available_tags $tagname"
1713 fi
1714 fi
1715 done
1716 IFS="$lt_save_ifs"
1717
1718 # Now substitute the updated list of available tags.
1719 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1720 mv "${ofile}T" "$ofile"
1721 chmod +x "$ofile"
1722 else
1723 rm -f "${ofile}T"
1724 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1725 fi
2704
2705 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2706 if test "$GCC" = yes; then
2707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17262708 fi
1727 ])# _LT_AC_TAGCONFIG
1728
1729
1730 # AC_LIBTOOL_DLOPEN
1731 # -----------------
1732 # enable checks for dlopen support
1733 AC_DEFUN([AC_LIBTOOL_DLOPEN],
1734 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1735 ])# AC_LIBTOOL_DLOPEN
1736
1737
1738 # AC_LIBTOOL_WIN32_DLL
1739 # --------------------
1740 # declare package support for building win32 dll's
1741 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1742 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1743 ])# AC_LIBTOOL_WIN32_DLL
1744
1745
1746 # AC_ENABLE_SHARED([DEFAULT])
1747 # ---------------------------
1748 # implement the --enable-shared flag
1749 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1750 AC_DEFUN([AC_ENABLE_SHARED],
1751 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1752 AC_ARG_ENABLE([shared],
1753 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1754 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1755 [p=${PACKAGE-default}
1756 case $enableval in
1757 yes) enable_shared=yes ;;
1758 no) enable_shared=no ;;
1759 *)
1760 enable_shared=no
1761 # Look at the argument we got. We use all the common list separators.
1762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1763 for pkg in $enableval; do
1764 IFS="$lt_save_ifs"
1765 if test "X$pkg" = "X$p"; then
1766 enable_shared=yes
1767 fi
1768 done
1769 IFS="$lt_save_ifs"
1770 ;;
1771 esac],
1772 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1773 ])# AC_ENABLE_SHARED
1774
1775
1776 # AC_DISABLE_SHARED
1777 # -----------------
1778 #- set the default shared flag to --disable-shared
1779 AC_DEFUN([AC_DISABLE_SHARED],
1780 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1781 AC_ENABLE_SHARED(no)
1782 ])# AC_DISABLE_SHARED
1783
1784
1785 # AC_ENABLE_STATIC([DEFAULT])
1786 # ---------------------------
1787 # implement the --enable-static flag
1788 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1789 AC_DEFUN([AC_ENABLE_STATIC],
1790 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1791 AC_ARG_ENABLE([static],
1792 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1793 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1794 [p=${PACKAGE-default}
1795 case $enableval in
1796 yes) enable_static=yes ;;
1797 no) enable_static=no ;;
1798 *)
1799 enable_static=no
1800 # Look at the argument we got. We use all the common list separators.
1801 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1802 for pkg in $enableval; do
1803 IFS="$lt_save_ifs"
1804 if test "X$pkg" = "X$p"; then
1805 enable_static=yes
1806 fi
1807 done
1808 IFS="$lt_save_ifs"
1809 ;;
1810 esac],
1811 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
1812 ])# AC_ENABLE_STATIC
1813
1814
1815 # AC_DISABLE_STATIC
1816 # -----------------
1817 # set the default static flag to --disable-static
1818 AC_DEFUN([AC_DISABLE_STATIC],
1819 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1820 AC_ENABLE_STATIC(no)
1821 ])# AC_DISABLE_STATIC
1822
1823
1824 # AC_ENABLE_FAST_INSTALL([DEFAULT])
1825 # ---------------------------------
1826 # implement the --enable-fast-install flag
1827 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1828 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1829 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1830 AC_ARG_ENABLE([fast-install],
1831 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1832 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
1833 [p=${PACKAGE-default}
1834 case $enableval in
1835 yes) enable_fast_install=yes ;;
1836 no) enable_fast_install=no ;;
1837 *)
1838 enable_fast_install=no
1839 # Look at the argument we got. We use all the common list separators.
1840 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1841 for pkg in $enableval; do
1842 IFS="$lt_save_ifs"
1843 if test "X$pkg" = "X$p"; then
1844 enable_fast_install=yes
1845 fi
1846 done
1847 IFS="$lt_save_ifs"
1848 ;;
1849 esac],
1850 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
1851 ])# AC_ENABLE_FAST_INSTALL
1852
1853
1854 # AC_DISABLE_FAST_INSTALL
1855 # -----------------------
1856 # set the default to --disable-fast-install
1857 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
1858 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1859 AC_ENABLE_FAST_INSTALL(no)
1860 ])# AC_DISABLE_FAST_INSTALL
1861
1862
1863 # AC_LIBTOOL_PICMODE([MODE])
2709
2710 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2711 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2712 fi
2713 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2714 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2715 fi
2716
2717 _LT_DECL([], [variables_saved_for_relink], [1],
2718 [Variables whose values should be saved in libtool wrapper scripts and
2719 restored at link time])
2720 _LT_DECL([], [need_lib_prefix], [0],
2721 [Do we need the "lib" prefix for modules?])
2722 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2723 _LT_DECL([], [version_type], [0], [Library versioning type])
2724 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2725 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2726 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2727 [Is shlibpath searched before the hard-coded library search path?])
2728 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2729 _LT_DECL([], [library_names_spec], [1],
2730 [[List of archive names. First name is the real one, the rest are links.
2731 The last name is the one that the linker finds with -lNAME]])
2732 _LT_DECL([], [soname_spec], [1],
2733 [[The coded name of the library, if different from the real name]])
2734 _LT_DECL([], [postinstall_cmds], [2],
2735 [Command to use after installation of a shared archive])
2736 _LT_DECL([], [postuninstall_cmds], [2],
2737 [Command to use after uninstallation of a shared archive])
2738 _LT_DECL([], [finish_cmds], [2],
2739 [Commands used to finish a libtool library installation in a directory])
2740 _LT_DECL([], [finish_eval], [1],
2741 [[As "finish_cmds", except a single script fragment to be evaled but
2742 not shown]])
2743 _LT_DECL([], [hardcode_into_libs], [0],
2744 [Whether we should hardcode library paths into libraries])
2745 _LT_DECL([], [sys_lib_search_path_spec], [2],
2746 [Compile-time system search path for libraries])
2747 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2748 [Run-time system search path for libraries])
2749 ])# _LT_SYS_DYNAMIC_LINKER
2750
2751
2752 # _LT_PATH_TOOL_PREFIX(TOOL)
18642753 # --------------------------
1865 # implement the --with-pic flag
1866 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
1867 AC_DEFUN([AC_LIBTOOL_PICMODE],
1868 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1869 pic_mode=ifelse($#,1,$1,default)
1870 ])# AC_LIBTOOL_PICMODE
1871
1872
1873 # AC_PROG_EGREP
1874 # -------------
1875 # This is predefined starting with Autoconf 2.54, so this conditional
1876 # definition can be removed once we require Autoconf 2.54 or later.
1877 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
1878 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
1879 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1880 then ac_cv_prog_egrep='grep -E'
1881 else ac_cv_prog_egrep='egrep'
1882 fi])
1883 EGREP=$ac_cv_prog_egrep
1884 AC_SUBST([EGREP])
1885 ])])
1886
1887
1888 # AC_PATH_TOOL_PREFIX
1889 # -------------------
1890 # find a file program which can recognise shared library
1891 AC_DEFUN([AC_PATH_TOOL_PREFIX],
1892 [AC_REQUIRE([AC_PROG_EGREP])dnl
2754 # find a file program which can recognize shared library
2755 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2756 [m4_require([_LT_DECL_EGREP])dnl
18932757 AC_MSG_CHECKING([for $1])
18942758 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
18952759 [case $MAGIC_CMD in
19022766 dnl $ac_dummy forces splitting on constant user-supplied paths.
19032767 dnl POSIX.2 word splitting is done only on the output of word expansions,
19042768 dnl not every word. This closes a longstanding sh security hole.
1905 ac_dummy="ifelse([$2], , $PATH, [$2])"
2769 ac_dummy="m4_if([$2], , $PATH, [$2])"
19062770 for ac_dir in $ac_dummy; do
19072771 IFS="$lt_save_ifs"
19082772 test -z "$ac_dir" && ac_dir=.
19112775 if test -n "$file_magic_test_file"; then
19122776 case $deplibs_check_method in
19132777 "file_magic "*)
1914 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2778 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
19152779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19162780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
19172781 $EGREP "$file_magic_regex" > /dev/null; then
19182782 :
19192783 else
1920 cat <<EOF 1>&2
2784 cat <<_LT_EOF 1>&2
19212785
19222786 *** Warning: the command libtool uses to detect shared libraries,
19232787 *** $file_magic_cmd, produces output that libtool cannot recognize.
19282792 *** may want to report the problem to your system manager and/or to
19292793 *** bug-libtool@gnu.org
19302794
1931 EOF
2795 _LT_EOF
19322796 fi ;;
19332797 esac
19342798 fi
19452809 else
19462810 AC_MSG_RESULT(no)
19472811 fi
1948 ])# AC_PATH_TOOL_PREFIX
1949
1950
1951 # AC_PATH_MAGIC
1952 # -------------
1953 # find a file program which can recognise a shared library
1954 AC_DEFUN([AC_PATH_MAGIC],
1955 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2812 _LT_DECL([], [MAGIC_CMD], [0],
2813 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2814 ])# _LT_PATH_TOOL_PREFIX
2815
2816 # Old name:
2817 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2818 dnl aclocal-1.4 backwards compatibility:
2819 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2820
2821
2822 # _LT_PATH_MAGIC
2823 # --------------
2824 # find a file program which can recognize a shared library
2825 m4_defun([_LT_PATH_MAGIC],
2826 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
19562827 if test -z "$lt_cv_path_MAGIC_CMD"; then
19572828 if test -n "$ac_tool_prefix"; then
1958 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2829 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
19592830 else
19602831 MAGIC_CMD=:
19612832 fi
19622833 fi
1963 ])# AC_PATH_MAGIC
1964
1965
1966 # AC_PROG_LD
2834 ])# _LT_PATH_MAGIC
2835
2836
2837 # LT_PATH_LD
19672838 # ----------
19682839 # find the pathname to the GNU or non-GNU linker
1969 AC_DEFUN([AC_PROG_LD],
1970 [AC_ARG_WITH([gnu-ld],
1971 [AC_HELP_STRING([--with-gnu-ld],
2840 AC_DEFUN([LT_PATH_LD],
2841 [AC_REQUIRE([AC_PROG_CC])dnl
2842 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2843 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2844 m4_require([_LT_DECL_SED])dnl
2845 m4_require([_LT_DECL_EGREP])dnl
2846
2847 AC_ARG_WITH([gnu-ld],
2848 [AS_HELP_STRING([--with-gnu-ld],
19722849 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
19732850 [test "$withval" = no || with_gnu_ld=yes],
1974 [with_gnu_ld=no])
1975 AC_REQUIRE([LT_AC_PROG_SED])dnl
1976 AC_REQUIRE([AC_PROG_CC])dnl
1977 AC_REQUIRE([AC_CANONICAL_HOST])dnl
1978 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2851 [with_gnu_ld=no])dnl
2852
19792853 ac_prog=ld
19802854 if test "$GCC" = yes; then
19812855 # Check if gcc -print-prog-name=ld gives a path.
19922866 [[\\/]]* | ?:[[\\/]]*)
19932867 re_direlt='/[[^/]][[^/]]*/\.\./'
19942868 # Canonicalize the pathname of ld
1995 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
1996 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1997 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2869 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2870 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2871 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19982872 done
19992873 test -z "$LD" && LD="$ac_prog"
20002874 ;;
20212895 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20222896 lt_cv_path_LD="$ac_dir/$ac_prog"
20232897 # Check to see if the program is GNU ld. I'd rather use --version,
2024 # but apparently some GNU ld's only accept -v.
2898 # but apparently some variants of GNU ld only accept -v.
20252899 # Break only if it was the GNU/non-GNU ld that we prefer.
20262900 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20272901 *GNU* | *'with BFD'*)
20442918 AC_MSG_RESULT(no)
20452919 fi
20462920 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2047 AC_PROG_LD_GNU
2048 ])# AC_PROG_LD
2049
2050
2051 # AC_PROG_LD_GNU
2052 # --------------
2053 AC_DEFUN([AC_PROG_LD_GNU],
2054 [AC_REQUIRE([AC_PROG_EGREP])dnl
2055 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2056 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2921 _LT_PATH_LD_GNU
2922 AC_SUBST([LD])
2923
2924 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2925 ])# LT_PATH_LD
2926
2927 # Old names:
2928 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2929 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2930 dnl aclocal-1.4 backwards compatibility:
2931 dnl AC_DEFUN([AM_PROG_LD], [])
2932 dnl AC_DEFUN([AC_PROG_LD], [])
2933
2934
2935 # _LT_PATH_LD_GNU
2936 #- --------------
2937 m4_defun([_LT_PATH_LD_GNU],
2938 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2939 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
20572940 case `$LD -v 2>&1 </dev/null` in
20582941 *GNU* | *'with BFD'*)
20592942 lt_cv_prog_gnu_ld=yes
20632946 ;;
20642947 esac])
20652948 with_gnu_ld=$lt_cv_prog_gnu_ld
2066 ])# AC_PROG_LD_GNU
2067
2068
2069 # AC_PROG_LD_RELOAD_FLAG
2070 # ----------------------
2949 ])# _LT_PATH_LD_GNU
2950
2951
2952 # _LT_CMD_RELOAD
2953 # --------------
20712954 # find reload flag for linker
20722955 # -- PORTME Some linkers may need a different reload flag.
2073 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2956 m4_defun([_LT_CMD_RELOAD],
20742957 [AC_CACHE_CHECK([for $LD option to reload object files],
20752958 lt_cv_ld_reload_flag,
20762959 [lt_cv_ld_reload_flag='-r'])
20802963 *) reload_flag=" $reload_flag" ;;
20812964 esac
20822965 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2083 ])# AC_PROG_LD_RELOAD_FLAG
2084
2085
2086 # AC_DEPLIBS_CHECK_METHOD
2087 # -----------------------
2966 case $host_os in
2967 darwin*)
2968 if test "$GCC" = yes; then
2969 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2970 else
2971 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2972 fi
2973 ;;
2974 esac
2975 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2976 _LT_DECL([], [reload_cmds], [2])dnl
2977 ])# _LT_CMD_RELOAD
2978
2979
2980 # _LT_CHECK_MAGIC_METHOD
2981 # ----------------------
20882982 # how to check for library dependencies
20892983 # -- PORTME fill in with the dynamic library characteristics
2090 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2091 [AC_CACHE_CHECK([how to recognise dependent libraries],
2984 m4_defun([_LT_CHECK_MAGIC_METHOD],
2985 [m4_require([_LT_DECL_EGREP])
2986 m4_require([_LT_DECL_OBJDUMP])
2987 AC_CACHE_CHECK([how to recognize dependent libraries],
20922988 lt_cv_deplibs_check_method,
20932989 [lt_cv_file_magic_cmd='$MAGIC_CMD'
20942990 lt_cv_file_magic_test_file=
21053001 # whether `pass_all' will *always* work, you probably want this one.
21063002
21073003 case $host_os in
2108 aix4* | aix5*)
3004 aix[[4-9]]*)
21093005 lt_cv_deplibs_check_method=pass_all
21103006 ;;
21113007
21133009 lt_cv_deplibs_check_method=pass_all
21143010 ;;
21153011
2116 bsdi4*)
3012 bsdi[[45]]*)
21173013 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
21183014 lt_cv_file_magic_cmd='/usr/bin/file -L'
21193015 lt_cv_file_magic_test_file=/shlib/libc.so
21273023
21283024 mingw* | pw32*)
21293025 # Base MSYS/MinGW do not provide the 'file' command needed by
2130 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2131 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3026 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3027 # unless we find 'file', for example because we are cross-compiling.
3028 if ( file / ) >/dev/null 2>&1; then
3029 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3030 lt_cv_file_magic_cmd='func_win32_libid'
3031 else
3032 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3033 lt_cv_file_magic_cmd='$OBJDUMP -f'
3034 fi
3035 ;;
3036
3037 cegcc)
3038 # use the weaker test based on 'objdump'. See mingw*.
3039 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
21323040 lt_cv_file_magic_cmd='$OBJDUMP -f'
21333041 ;;
21343042
21363044 lt_cv_deplibs_check_method=pass_all
21373045 ;;
21383046
2139 freebsd* | kfreebsd*-gnu)
2140 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3047 freebsd* | dragonfly*)
3048 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
21413049 case $host_cpu in
21423050 i*86 )
21433051 # Not sure whether the presence of OpenBSD here was a mistake.
21443052 # Let's accept both of them until this is cleared up.
2145 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3053 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
21463054 lt_cv_file_magic_cmd=/usr/bin/file
21473055 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
21483056 ;;
21583066
21593067 hpux10.20* | hpux11*)
21603068 lt_cv_file_magic_cmd=/usr/bin/file
2161 case "$host_cpu" in
3069 case $host_cpu in
21623070 ia64*)
21633071 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
21643072 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
21743082 esac
21753083 ;;
21763084
3085 interix[[3-9]]*)
3086 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3087 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3088 ;;
3089
21773090 irix5* | irix6* | nonstopux*)
21783091 case $LD in
21793092 *-32|*"-32 ") libmagic=32-bit;;
21853098 ;;
21863099
21873100 # This must be Linux ELF.
2188 linux*)
3101 linux* | k*bsd*-gnu)
21893102 lt_cv_deplibs_check_method=pass_all
21903103 ;;
21913104
2192 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
2193 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3105 netbsd* | netbsdelf*-gnu)
3106 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
21943107 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
21953108 else
21963109 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
22033116 lt_cv_file_magic_test_file=/usr/lib/libnls.so
22043117 ;;
22053118
2206 nto-qnx*)
2207 lt_cv_deplibs_check_method=unknown
3119 *nto* | *qnx*)
3120 lt_cv_deplibs_check_method=pass_all
22083121 ;;
22093122
22103123 openbsd*)
2211 lt_cv_file_magic_cmd=/usr/bin/file
2212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2214 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3124 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3125 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
22153126 else
2216 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3127 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
22173128 fi
22183129 ;;
22193130
22213132 lt_cv_deplibs_check_method=pass_all
22223133 ;;
22233134
2224 sco3.2v5*)
3135 rdos*)
22253136 lt_cv_deplibs_check_method=pass_all
22263137 ;;
22273138
22293140 lt_cv_deplibs_check_method=pass_all
22303141 ;;
22313142
2232 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3143 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3144 lt_cv_deplibs_check_method=pass_all
3145 ;;
3146
3147 sysv4 | sysv4.3*)
22333148 case $host_vendor in
22343149 motorola)
22353150 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]]'
22503165 siemens)
22513166 lt_cv_deplibs_check_method=pass_all
22523167 ;;
3168 pc)
3169 lt_cv_deplibs_check_method=pass_all
3170 ;;
22533171 esac
22543172 ;;
22553173
2256 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3174 tpf*)
22573175 lt_cv_deplibs_check_method=pass_all
22583176 ;;
22593177 esac
22613179 file_magic_cmd=$lt_cv_file_magic_cmd
22623180 deplibs_check_method=$lt_cv_deplibs_check_method
22633181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2264 ])# AC_DEPLIBS_CHECK_METHOD
2265
2266
2267 # AC_PROG_NM
3182
3183 _LT_DECL([], [deplibs_check_method], [1],
3184 [Method to check whether dependent libraries are shared objects])
3185 _LT_DECL([], [file_magic_cmd], [1],
3186 [Command to use when deplibs_check_method == "file_magic"])
3187 ])# _LT_CHECK_MAGIC_METHOD
3188
3189
3190 # LT_PATH_NM
22683191 # ----------
2269 # find the pathname to a BSD-compatible name lister
2270 AC_DEFUN([AC_PROG_NM],
2271 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3192 # find the pathname to a BSD- or MS-compatible name lister
3193 AC_DEFUN([LT_PATH_NM],
3194 [AC_REQUIRE([AC_PROG_CC])dnl
3195 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
22723196 [if test -n "$NM"; then
22733197 # Let the user override the test.
22743198 lt_cv_path_NM="$NM"
22753199 else
2276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2277 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2278 IFS="$lt_save_ifs"
2279 test -z "$ac_dir" && ac_dir=.
2280 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2281 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2282 # Check to see if the nm accepts a BSD-compat flag.
2283 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2284 # nm: unknown option "B" ignored
2285 # Tru64's nm complains that /dev/null is an invalid object file
2286 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2287 */dev/null* | *'Invalid file or object type'*)
2288 lt_cv_path_NM="$tmp_nm -B"
2289 break
2290 ;;
2291 *)
2292 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2293 */dev/null*)
2294 lt_cv_path_NM="$tmp_nm -p"
3200 lt_nm_to_check="${ac_tool_prefix}nm"
3201 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3202 lt_nm_to_check="$lt_nm_to_check nm"
3203 fi
3204 for lt_tmp_nm in $lt_nm_to_check; do
3205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3206 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3207 IFS="$lt_save_ifs"
3208 test -z "$ac_dir" && ac_dir=.
3209 tmp_nm="$ac_dir/$lt_tmp_nm"
3210 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3211 # Check to see if the nm accepts a BSD-compat flag.
3212 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3213 # nm: unknown option "B" ignored
3214 # Tru64's nm complains that /dev/null is an invalid object file
3215 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3216 */dev/null* | *'Invalid file or object type'*)
3217 lt_cv_path_NM="$tmp_nm -B"
22953218 break
22963219 ;;
22973220 *)
2298 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2299 continue # so that we can try to find one that supports BSD flags
3221 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3222 */dev/null*)
3223 lt_cv_path_NM="$tmp_nm -p"
3224 break
3225 ;;
3226 *)
3227 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3228 continue # so that we can try to find one that supports BSD flags
3229 ;;
3230 esac
23003231 ;;
23013232 esac
2302 esac
2303 fi
3233 fi
3234 done
3235 IFS="$lt_save_ifs"
23043236 done
2305 IFS="$lt_save_ifs"
2306 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3237 : ${lt_cv_path_NM=no}
23073238 fi])
2308 NM="$lt_cv_path_NM"
2309 ])# AC_PROG_NM
2310
2311
2312 # AC_CHECK_LIBM
2313 # -------------
3239 if test "$lt_cv_path_NM" != "no"; then
3240 NM="$lt_cv_path_NM"
3241 else
3242 # Didn't find any BSD compatible name lister, look for dumpbin.
3243 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3244 AC_SUBST([DUMPBIN])
3245 if test "$DUMPBIN" != ":"; then
3246 NM="$DUMPBIN"
3247 fi
3248 fi
3249 test -z "$NM" && NM=nm
3250 AC_SUBST([NM])
3251 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3252
3253 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3254 [lt_cv_nm_interface="BSD nm"
3255 echo "int some_variable = 0;" > conftest.$ac_ext
3256 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3257 (eval "$ac_compile" 2>conftest.err)
3258 cat conftest.err >&AS_MESSAGE_LOG_FD
3259 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3260 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3261 cat conftest.err >&AS_MESSAGE_LOG_FD
3262 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3263 cat conftest.out >&AS_MESSAGE_LOG_FD
3264 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3265 lt_cv_nm_interface="MS dumpbin"
3266 fi
3267 rm -f conftest*])
3268 ])# LT_PATH_NM
3269
3270 # Old names:
3271 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3272 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3273 dnl aclocal-1.4 backwards compatibility:
3274 dnl AC_DEFUN([AM_PROG_NM], [])
3275 dnl AC_DEFUN([AC_PROG_NM], [])
3276
3277
3278 # LT_LIB_M
3279 # --------
23143280 # check for math library
2315 AC_DEFUN([AC_CHECK_LIBM],
3281 AC_DEFUN([LT_LIB_M],
23163282 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
23173283 LIBM=
23183284 case $host in
23273293 AC_CHECK_LIB(m, cos, LIBM="-lm")
23283294 ;;
23293295 esac
2330 ])# AC_CHECK_LIBM
2331
2332
2333 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2334 # -----------------------------------
2335 # sets LIBLTDL to the link flags for the libltdl convenience library and
2336 # LTDLINCL to the include flags for the libltdl header and adds
2337 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
2338 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2339 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
2340 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2341 # '${top_srcdir}/' (note the single quotes!). If your package is not
2342 # flat and you're not using automake, define top_builddir and
2343 # top_srcdir appropriately in the Makefiles.
2344 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2345 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2346 case $enable_ltdl_convenience in
2347 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2348 "") enable_ltdl_convenience=yes
2349 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2350 esac
2351 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2352 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2353 # For backwards non-gettext consistent compatibility...
2354 INCLTDL="$LTDLINCL"
2355 ])# AC_LIBLTDL_CONVENIENCE
2356
2357
2358 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2359 # -----------------------------------
2360 # sets LIBLTDL to the link flags for the libltdl installable library and
2361 # LTDLINCL to the include flags for the libltdl header and adds
2362 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL
2363 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2364 # DIRECTORY is not provided and an installed libltdl is not found, it is
2365 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
2366 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2367 # quotes!). If your package is not flat and you're not using automake,
2368 # define top_builddir and top_srcdir appropriately in the Makefiles.
2369 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2370 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2371 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2372 AC_CHECK_LIB(ltdl, lt_dlinit,
2373 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2374 [if test x"$enable_ltdl_install" = xno; then
2375 AC_MSG_WARN([libltdl not installed, but installation disabled])
2376 else
2377 enable_ltdl_install=yes
2378 fi
2379 ])
2380 if test x"$enable_ltdl_install" = x"yes"; then
2381 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2382 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2383 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2384 else
2385 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2386 LIBLTDL="-lltdl"
2387 LTDLINCL=
2388 fi
2389 # For backwards non-gettext consistent compatibility...
2390 INCLTDL="$LTDLINCL"
2391 ])# AC_LIBLTDL_INSTALLABLE
2392
2393
2394 # AC_LIBTOOL_CXX
2395 # --------------
2396 # enable support for C++ libraries
2397 AC_DEFUN([AC_LIBTOOL_CXX],
2398 [AC_REQUIRE([_LT_AC_LANG_CXX])
2399 ])# AC_LIBTOOL_CXX
2400
2401
2402 # _LT_AC_LANG_CXX
2403 # ---------------
2404 AC_DEFUN([_LT_AC_LANG_CXX],
2405 [AC_REQUIRE([AC_PROG_CXX])
2406 AC_REQUIRE([AC_PROG_CXXCPP])
2407 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2408 ])# _LT_AC_LANG_CXX
2409
2410
2411 # AC_LIBTOOL_F77
2412 # --------------
2413 # enable support for Fortran 77 libraries
2414 AC_DEFUN([AC_LIBTOOL_F77],
2415 [AC_REQUIRE([_LT_AC_LANG_F77])
2416 ])# AC_LIBTOOL_F77
2417
2418
2419 # _LT_AC_LANG_F77
2420 # ---------------
2421 AC_DEFUN([_LT_AC_LANG_F77],
2422 [AC_REQUIRE([AC_PROG_F77])
2423 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2424 ])# _LT_AC_LANG_F77
2425
2426
2427 # AC_LIBTOOL_GCJ
2428 # --------------
2429 # enable support for GCJ libraries
2430 AC_DEFUN([AC_LIBTOOL_GCJ],
2431 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2432 ])# AC_LIBTOOL_GCJ
2433
2434
2435 # _LT_AC_LANG_GCJ
2436 # ---------------
2437 AC_DEFUN([_LT_AC_LANG_GCJ],
2438 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2439 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2440 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2441 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2442 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2443 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2444 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2445 ])# _LT_AC_LANG_GCJ
2446
2447
2448 # AC_LIBTOOL_RC
2449 # --------------
2450 # enable support for Windows resource files
2451 AC_DEFUN([AC_LIBTOOL_RC],
2452 [AC_REQUIRE([LT_AC_PROG_RC])
2453 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2454 ])# AC_LIBTOOL_RC
2455
2456
2457 # AC_LIBTOOL_LANG_C_CONFIG
2458 # ------------------------
2459 # Ensure that the configuration vars for the C compiler are
2460 # suitably defined. Those variables are subsequently used by
2461 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2462 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2463 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2464 [lt_save_CC="$CC"
2465 AC_LANG_PUSH(C)
2466
2467 # Source file extension for C test sources.
2468 ac_ext=c
2469
2470 # Object file extension for compiled C test sources.
2471 objext=o
2472 _LT_AC_TAGVAR(objext, $1)=$objext
2473
2474 # Code to be used in simple compile tests
2475 lt_simple_compile_test_code="int some_variable = 0;\n"
2476
2477 # Code to be used in simple link tests
2478 lt_simple_link_test_code='int main(){return(0);}\n'
2479
2480 _LT_AC_SYS_COMPILER
2481
2482 #
2483 # Check for any special shared library compilation flags.
2484 #
2485 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2486 if test "$GCC" = no; then
2487 case $host_os in
2488 sco3.2v5*)
2489 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2490 ;;
2491 esac
2492 fi
2493 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2494 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2495 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2496 else
2497 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2498 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2499 fi
2500 fi
2501
2502
2503 #
2504 # Check to make sure the static flag actually works.
2505 #
2506 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2507 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2508 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2509 [],
2510 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2511
2512
2513 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2514 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2515 AC_LIBTOOL_PROG_CC_C_O($1)
2516 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2517 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2518 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2519 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2520 AC_LIBTOOL_SYS_LIB_STRIP
2521 AC_LIBTOOL_DLOPEN_SELF($1)
2522
2523 # Report which librarie types wil actually be built
2524 AC_MSG_CHECKING([if libtool supports shared libraries])
2525 AC_MSG_RESULT([$can_build_shared])
2526
2527 AC_MSG_CHECKING([whether to build shared libraries])
2528 test "$can_build_shared" = "no" && enable_shared=no
2529
2530 # On AIX, shared libraries and static libraries use the same namespace, and
2531 # are all built from PIC.
2532 case "$host_os" in
2533 aix3*)
2534 test "$enable_shared" = yes && enable_static=no
2535 if test -n "$RANLIB"; then
2536 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2537 postinstall_cmds='$RANLIB $lib'
2538 fi
2539 ;;
2540
2541 aix4* | aix5*)
2542 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2543 test "$enable_shared" = yes && enable_static=no
2544 fi
2545 ;;
2546 darwin* | rhapsody*)
2547 if test "$GCC" = yes; then
2548 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2549 case "$host_os" in
2550 rhapsody* | darwin1.[[012]])
2551 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2552 ;;
2553 *) # Darwin 1.3 on
2554 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2555 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2556 else
2557 case ${MACOSX_DEPLOYMENT_TARGET} in
2558 10.[[012]])
2559 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2560 ;;
2561 10.*)
2562 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2563 ;;
2564 esac
2565 fi
2566 ;;
2567 esac
2568 output_verbose_link_cmd='echo'
2569 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2570 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2571 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2572 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2573 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2574 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2575 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2576 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2577 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2578 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2579 else
2580 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2581 fi
2582 ;;
2583 esac
2584 AC_MSG_RESULT([$enable_shared])
2585
2586 AC_MSG_CHECKING([whether to build static libraries])
2587 # Make sure either enable_shared or enable_static is yes.
2588 test "$enable_shared" = yes || enable_static=yes
2589 AC_MSG_RESULT([$enable_static])
2590
2591 AC_LIBTOOL_CONFIG($1)
2592
2593 AC_LANG_POP
2594 CC="$lt_save_CC"
2595 ])# AC_LIBTOOL_LANG_C_CONFIG
2596
2597
2598 # AC_LIBTOOL_LANG_CXX_CONFIG
2599 # --------------------------
2600 # Ensure that the configuration vars for the C compiler are
2601 # suitably defined. Those variables are subsequently used by
2602 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2603 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2604 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2605 [AC_LANG_PUSH(C++)
2606 AC_REQUIRE([AC_PROG_CXX])
2607 AC_REQUIRE([AC_PROG_CXXCPP])
2608
2609 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2610 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2611 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2612 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2613 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2614 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2615 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2616 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2617 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2618 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2619 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2620 _LT_AC_TAGVAR(module_cmds, $1)=
2621 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2622 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2623 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2624 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2625 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2626 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2627
2628 # Dependencies to place before and after the object being linked:
2629 _LT_AC_TAGVAR(predep_objects, $1)=
2630 _LT_AC_TAGVAR(postdep_objects, $1)=
2631 _LT_AC_TAGVAR(predeps, $1)=
2632 _LT_AC_TAGVAR(postdeps, $1)=
2633 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2634
2635 # Source file extension for C++ test sources.
2636 ac_ext=cc
2637
2638 # Object file extension for compiled C++ test sources.
2639 objext=o
2640 _LT_AC_TAGVAR(objext, $1)=$objext
2641
2642 # Code to be used in simple compile tests
2643 lt_simple_compile_test_code="int some_variable = 0;\n"
2644
2645 # Code to be used in simple link tests
2646 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
2647
2648 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2649 _LT_AC_SYS_COMPILER
2650
2651 # Allow CC to be a program name with arguments.
2652 lt_save_CC=$CC
2653 lt_save_LD=$LD
2654 lt_save_GCC=$GCC
2655 GCC=$GXX
2656 lt_save_with_gnu_ld=$with_gnu_ld
2657 lt_save_path_LD=$lt_cv_path_LD
2658 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2659 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2660 else
2661 unset lt_cv_prog_gnu_ld
2662 fi
2663 if test -n "${lt_cv_path_LDCXX+set}"; then
2664 lt_cv_path_LD=$lt_cv_path_LDCXX
2665 else
2666 unset lt_cv_path_LD
2667 fi
2668 test -z "${LDCXX+set}" || LD=$LDCXX
2669 CC=${CXX-"c++"}
2670 compiler=$CC
2671 _LT_AC_TAGVAR(compiler, $1)=$CC
2672 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
2673
2674 # We don't want -fno-exception wen compiling C++ code, so set the
2675 # no_builtin_flag separately
2676 if test "$GXX" = yes; then
2677 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2678 else
2679 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2680 fi
2681
2682 if test "$GXX" = yes; then
2683 # Set up default GNU C++ configuration
2684
2685 AC_PROG_LD
2686
2687 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2688 # archiving commands below assume that GNU ld is being used.
2689 if test "$with_gnu_ld" = yes; then
2690 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2691 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2692
2693 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2694 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2695
2696 # If archive_cmds runs LD, not CC, wlarc should be empty
2697 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2698 # investigate it a little bit more. (MM)
2699 wlarc='${wl}'
2700
2701 # ancient GNU ld didn't support --whole-archive et. al.
2702 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2703 grep 'no-whole-archive' > /dev/null; then
2704 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2705 else
2706 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2707 fi
2708 else
2709 with_gnu_ld=no
2710 wlarc=
2711
2712 # A generic and very simple default shared library creation
2713 # command for GNU C++ for the case where it uses the native
2714 # linker, instead of GNU ld. If possible, this setting should
2715 # overridden to take advantage of the native linker features on
2716 # the platform it is being used on.
2717 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2718 fi
2719
2720 # Commands to make compiler produce verbose output that lists
2721 # what "hidden" libraries, object files and flags are used when
2722 # linking a shared library.
2723 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2724
2725 else
2726 GXX=no
2727 with_gnu_ld=no
2728 wlarc=
2729 fi
2730
2731 # PORTME: fill in a description of your system's C++ link characteristics
2732 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2733 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2734 case $host_os in
2735 aix3*)
2736 # FIXME: insert proper C++ library support
2737 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2738 ;;
2739 aix4* | aix5*)
2740 if test "$host_cpu" = ia64; then
2741 # On IA64, the linker does run time linking by default, so we don't
2742 # have to do anything special.
2743 aix_use_runtimelinking=no
2744 exp_sym_flag='-Bexport'
2745 no_entry_flag=""
2746 else
2747 aix_use_runtimelinking=no
2748
2749 # Test if we are trying to use run time linking or normal
2750 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2751 # need to do runtime linking.
2752 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2753 for ld_flag in $LDFLAGS; do
2754 case $ld_flag in
2755 *-brtl*)
2756 aix_use_runtimelinking=yes
2757 break
2758 ;;
2759 esac
2760 done
2761 esac
2762
2763 exp_sym_flag='-bexport'
2764 no_entry_flag='-bnoentry'
2765 fi
2766
2767 # When large executables or shared objects are built, AIX ld can
2768 # have problems creating the table of contents. If linking a library
2769 # or program results in "error TOC overflow" add -mminimal-toc to
2770 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2771 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2772
2773 _LT_AC_TAGVAR(archive_cmds, $1)=''
2774 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2775 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2776 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2777
2778 if test "$GXX" = yes; then
2779 case $host_os in aix4.[012]|aix4.[012].*)
2780 # We only want to do this on AIX 4.2 and lower, the check
2781 # below for broken collect2 doesn't work under 4.3+
2782 collect2name=`${CC} -print-prog-name=collect2`
2783 if test -f "$collect2name" && \
2784 strings "$collect2name" | grep resolve_lib_name >/dev/null
2785 then
2786 # We have reworked collect2
2787 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2788 else
2789 # We have old collect2
2790 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2791 # It fails to find uninstalled libraries when the uninstalled
2792 # path is not listed in the libpath. Setting hardcode_minus_L
2793 # to unsupported forces relinking
2794 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2795 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2796 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2797 fi
2798 esac
2799 shared_flag='-shared'
2800 else
2801 # not using gcc
2802 if test "$host_cpu" = ia64; then
2803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2804 # chokes on -Wl,-G. The following line is correct:
2805 shared_flag='-G'
2806 else
2807 if test "$aix_use_runtimelinking" = yes; then
2808 shared_flag='${wl}-G'
2809 else
2810 shared_flag='${wl}-bM:SRE'
2811 fi
2812 fi
2813 fi
2814
2815 # It seems that -bexpall does not export symbols beginning with
2816 # underscore (_), so it is better to generate a list of symbols to export.
2817 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2818 if test "$aix_use_runtimelinking" = yes; then
2819 # Warning - without using the other runtime loading flags (-brtl),
2820 # -berok will link without error, but may produce a broken library.
2821 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2822 # Determine the default libpath from the value encoded in an empty executable.
2823 _LT_AC_SYS_LIBPATH_AIX
2824 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2825
2826 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2827 else
2828 if test "$host_cpu" = ia64; then
2829 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2830 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2831 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2832 else
2833 # Determine the default libpath from the value encoded in an empty executable.
2834 _LT_AC_SYS_LIBPATH_AIX
2835 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2836 # Warning - without using the other run time loading flags,
2837 # -berok will link without error, but may produce a broken library.
2838 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2839 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2840 # -bexpall does not export symbols beginning with underscore (_)
2841 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2842 # Exported symbols can be pulled into shared objects from archives
2843 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2844 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2845 # This is similar to how AIX traditionally builds it's shared libraries.
2846 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2847 fi
2848 fi
2849 ;;
2850 chorus*)
2851 case $cc_basename in
2852 *)
2853 # FIXME: insert proper C++ library support
2854 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2855 ;;
2856 esac
2857 ;;
2858
2859 cygwin* | mingw* | pw32*)
2860 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2861 # as there is no search path for DLLs.
2862 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2863 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2864 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2865 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2866
2867 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2868 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2869 # If the export-symbols file already is a .def file (1st line
2870 # is EXPORTS), use it as is; otherwise, prepend...
2871 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2872 cp $export_symbols $output_objdir/$soname.def;
2873 else
2874 echo EXPORTS > $output_objdir/$soname.def;
2875 cat $export_symbols >> $output_objdir/$soname.def;
2876 fi~
2877 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2878 else
2879 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2880 fi
2881 ;;
2882
2883 darwin* | rhapsody*)
2884 if test "$GXX" = yes; then
2885 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2886 case "$host_os" in
2887 rhapsody* | darwin1.[[012]])
2888 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2889 ;;
2890 *) # Darwin 1.3 on
2891 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2892 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2893 else
2894 case ${MACOSX_DEPLOYMENT_TARGET} in
2895 10.[[012]])
2896 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2897 ;;
2898 10.*)
2899 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2900 ;;
2901 esac
2902 fi
2903 ;;
2904 esac
2905 lt_int_apple_cc_single_mod=no
2906 output_verbose_link_cmd='echo'
2907 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2908 lt_int_apple_cc_single_mod=yes
2909 fi
2910 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2911 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2912 else
2913 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
2914 fi
2915 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2916
2917 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2918 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2919 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2920 else
2921 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2922 fi
2923 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2924 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2925 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2926 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2927 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2928 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2929 else
2930 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2931 fi
2932 ;;
2933
2934 dgux*)
2935 case $cc_basename in
2936 ec++)
2937 # FIXME: insert proper C++ library support
2938 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2939 ;;
2940 ghcx)
2941 # Green Hills C++ Compiler
2942 # FIXME: insert proper C++ library support
2943 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2944 ;;
2945 *)
2946 # FIXME: insert proper C++ library support
2947 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2948 ;;
2949 esac
2950 ;;
2951 freebsd[12]*)
2952 # C++ shared libraries reported to be fairly broken before switch to ELF
2953 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2954 ;;
2955 freebsd-elf*)
2956 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2957 ;;
2958 freebsd* | kfreebsd*-gnu)
2959 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2960 # conventions
2961 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2962 ;;
2963 gnu*)
2964 ;;
2965 hpux9*)
2966 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2967 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2968 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2969 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2970 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
2971 # but as the default
2972 # location of the library.
2973
2974 case $cc_basename in
2975 CC)
2976 # FIXME: insert proper C++ library support
2977 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2978 ;;
2979 aCC)
2980 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2981 # Commands to make compiler produce verbose output that lists
2982 # what "hidden" libraries, object files and flags are used when
2983 # linking a shared library.
2984 #
2985 # There doesn't appear to be a way to prevent this compiler from
2986 # explicitly linking system object files so we need to strip them
2987 # from the output so that they don't get included in the library
2988 # dependencies.
2989 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2990 ;;
2991 *)
2992 if test "$GXX" = yes; then
2993 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2994 else
2995 # FIXME: insert proper C++ library support
2996 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2997 fi
2998 ;;
2999 esac
3000 ;;
3001 hpux10*|hpux11*)
3002 if test $with_gnu_ld = no; then
3003 case "$host_cpu" in
3004 hppa*64*)
3005 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3006 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3007 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3008 ;;
3009 ia64*)
3010 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3011 ;;
3012 *)
3013 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3014 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3015 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3016 ;;
3017 esac
3018 fi
3019 case "$host_cpu" in
3020 hppa*64*)
3021 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3022 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3023 ;;
3024 ia64*)
3025 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3026 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3027 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3028 # but as the default
3029 # location of the library.
3030 ;;
3031 *)
3032 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3033 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3034 # but as the default
3035 # location of the library.
3036 ;;
3037 esac
3038
3039 case $cc_basename in
3040 CC)
3041 # FIXME: insert proper C++ library support
3042 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3043 ;;
3044 aCC)
3045 case "$host_cpu" in
3046 hppa*64*|ia64*)
3047 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3048 ;;
3049 *)
3050 _LT_AC_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'
3051 ;;
3052 esac
3053 # Commands to make compiler produce verbose output that lists
3054 # what "hidden" libraries, object files and flags are used when
3055 # linking a shared library.
3056 #
3057 # There doesn't appear to be a way to prevent this compiler from
3058 # explicitly linking system object files so we need to strip them
3059 # from the output so that they don't get included in the library
3060 # dependencies.
3061 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3062 ;;
3063 *)
3064 if test "$GXX" = yes; then
3065 if test $with_gnu_ld = no; then
3066 case "$host_cpu" in
3067 ia64*|hppa*64*)
3068 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3069 ;;
3070 *)
3071 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3072 ;;
3073 esac
3074 fi
3075 else
3076 # FIXME: insert proper C++ library support
3077 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3078 fi
3079 ;;
3080 esac
3081 ;;
3082 irix5* | irix6*)
3083 case $cc_basename in
3084 CC)
3085 # SGI C++
3086 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3087
3088 # Archives containing C++ object files must be created using
3089 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3090 # necessary to make sure instantiated templates are included
3091 # in the archive.
3092 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3093 ;;
3094 *)
3095 if test "$GXX" = yes; then
3096 if test "$with_gnu_ld" = no; then
3097 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3098 else
3099 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3100 fi
3101 fi
3102 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3103 ;;
3104 esac
3105 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3106 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3107 ;;
3108 linux*)
3109 case $cc_basename in
3110 KCC)
3111 # Kuck and Associates, Inc. (KAI) C++ Compiler
3112
3113 # KCC will only create a shared library if the output file
3114 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3115 # to its proper name (with version) after linking.
3116 _LT_AC_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'
3117 _LT_AC_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'
3118 # Commands to make compiler produce verbose output that lists
3119 # what "hidden" libraries, object files and flags are used when
3120 # linking a shared library.
3121 #
3122 # There doesn't appear to be a way to prevent this compiler from
3123 # explicitly linking system object files so we need to strip them
3124 # from the output so that they don't get included in the library
3125 # dependencies.
3126 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3127
3128 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3129 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3130
3131 # Archives containing C++ object files must be created using
3132 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3133 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3134 ;;
3135 icpc)
3136 # Intel C++
3137 with_gnu_ld=yes
3138 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3139 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3140 _LT_AC_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'
3141 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3142 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3143 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3144 ;;
3145 cxx)
3146 # Compaq C++
3147 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3148 _LT_AC_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'
3149
3150 runpath_var=LD_RUN_PATH
3151 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3152 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3153
3154 # Commands to make compiler produce verbose output that lists
3155 # what "hidden" libraries, object files and flags are used when
3156 # linking a shared library.
3157 #
3158 # There doesn't appear to be a way to prevent this compiler from
3159 # explicitly linking system object files so we need to strip them
3160 # from the output so that they don't get included in the library
3161 # dependencies.
3162 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
3163 ;;
3164 esac
3165 ;;
3166 lynxos*)
3167 # FIXME: insert proper C++ library support
3168 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3169 ;;
3170 m88k*)
3171 # FIXME: insert proper C++ library support
3172 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3173 ;;
3174 mvs*)
3175 case $cc_basename in
3176 cxx)
3177 # FIXME: insert proper C++ library support
3178 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3179 ;;
3180 *)
3181 # FIXME: insert proper C++ library support
3182 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3183 ;;
3184 esac
3185 ;;
3186 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3187 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3188 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3189 wlarc=
3190 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3191 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3192 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3193 fi
3194 # Workaround some broken pre-1.5 toolchains
3195 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3196 ;;
3197 osf3*)
3198 case $cc_basename in
3199 KCC)
3200 # Kuck and Associates, Inc. (KAI) C++ Compiler
3201
3202 # KCC will only create a shared library if the output file
3203 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3204 # to its proper name (with version) after linking.
3205 _LT_AC_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'
3206
3207 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3208 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3209
3210 # Archives containing C++ object files must be created using
3211 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3212 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3213
3214 ;;
3215 RCC)
3216 # Rational C++ 2.4.1
3217 # FIXME: insert proper C++ library support
3218 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3219 ;;
3220 cxx)
3221 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3222 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3223
3224 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3225 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3226
3227 # Commands to make compiler produce verbose output that lists
3228 # what "hidden" libraries, object files and flags are used when
3229 # linking a shared library.
3230 #
3231 # There doesn't appear to be a way to prevent this compiler from
3232 # explicitly linking system object files so we need to strip them
3233 # from the output so that they don't get included in the library
3234 # dependencies.
3235 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
3236 ;;
3237 *)
3238 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3239 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3240 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3241
3242 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3243 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3244
3245 # Commands to make compiler produce verbose output that lists
3246 # what "hidden" libraries, object files and flags are used when
3247 # linking a shared library.
3248 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3249
3250 else
3251 # FIXME: insert proper C++ library support
3252 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3253 fi
3254 ;;
3255 esac
3256 ;;
3257 osf4* | osf5*)
3258 case $cc_basename in
3259 KCC)
3260 # Kuck and Associates, Inc. (KAI) C++ Compiler
3261
3262 # KCC will only create a shared library if the output file
3263 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3264 # to its proper name (with version) after linking.
3265 _LT_AC_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'
3266
3267 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3268 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3269
3270 # Archives containing C++ object files must be created using
3271 # the KAI C++ compiler.
3272 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3273 ;;
3274 RCC)
3275 # Rational C++ 2.4.1
3276 # FIXME: insert proper C++ library support
3277 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3278 ;;
3279 cxx)
3280 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3281 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3282 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3283 echo "-hidden">> $lib.exp~
3284 $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 $objdir/so_locations -o $lib~
3285 $rm $lib.exp'
3286
3287 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3288 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3289
3290 # Commands to make compiler produce verbose output that lists
3291 # what "hidden" libraries, object files and flags are used when
3292 # linking a shared library.
3293 #
3294 # There doesn't appear to be a way to prevent this compiler from
3295 # explicitly linking system object files so we need to strip them
3296 # from the output so that they don't get included in the library
3297 # dependencies.
3298 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
3299 ;;
3300 *)
3301 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3302 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3303 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3304
3305 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3306 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3307
3308 # Commands to make compiler produce verbose output that lists
3309 # what "hidden" libraries, object files and flags are used when
3310 # linking a shared library.
3311 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3312
3313 else
3314 # FIXME: insert proper C++ library support
3315 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3316 fi
3317 ;;
3318 esac
3319 ;;
3320 psos*)
3321 # FIXME: insert proper C++ library support
3322 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3323 ;;
3324 sco*)
3325 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3326 case $cc_basename in
3327 CC)
3328 # FIXME: insert proper C++ library support
3329 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3330 ;;
3331 *)
3332 # FIXME: insert proper C++ library support
3333 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3334 ;;
3335 esac
3336 ;;
3337 sunos4*)
3338 case $cc_basename in
3339 CC)
3340 # Sun C++ 4.x
3341 # FIXME: insert proper C++ library support
3342 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3343 ;;
3344 lcc)
3345 # Lucid
3346 # FIXME: insert proper C++ library support
3347 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3348 ;;
3349 *)
3350 # FIXME: insert proper C++ library support
3351 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3352 ;;
3353 esac
3354 ;;
3355 solaris*)
3356 case $cc_basename in
3357 CC)
3358 # Sun C++ 4.2, 5.x and Centerline C++
3359 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3360 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3361 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3362 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3363
3364 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3365 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3366 case $host_os in
3367 solaris2.[0-5] | solaris2.[0-5].*) ;;
3368 *)
3369 # The C++ compiler is used as linker so we must use $wl
3370 # flag to pass the commands to the underlying system
3371 # linker.
3372 # Supported since Solaris 2.6 (maybe 2.5.1?)
3373 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3374 ;;
3375 esac
3376 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3377
3378 # Commands to make compiler produce verbose output that lists
3379 # what "hidden" libraries, object files and flags are used when
3380 # linking a shared library.
3381 #
3382 # There doesn't appear to be a way to prevent this compiler from
3383 # explicitly linking system object files so we need to strip them
3384 # from the output so that they don't get included in the library
3385 # dependencies.
3386 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3387
3388 # Archives containing C++ object files must be created using
3389 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3390 # necessary to make sure instantiated templates are included
3391 # in the archive.
3392 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3393 ;;
3394 gcx)
3395 # Green Hills C++ Compiler
3396 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3397
3398 # The C++ compiler must be used to create the archive.
3399 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3400 ;;
3401 *)
3402 # GNU C++ compiler with Solaris linker
3403 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3404 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3405 if $CC --version | grep -v '^2\.7' > /dev/null; then
3406 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3407 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3408 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3409
3410 # Commands to make compiler produce verbose output that lists
3411 # what "hidden" libraries, object files and flags are used when
3412 # linking a shared library.
3413 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3414 else
3415 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3416 # platform.
3417 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3418 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3419 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3420
3421 # Commands to make compiler produce verbose output that lists
3422 # what "hidden" libraries, object files and flags are used when
3423 # linking a shared library.
3424 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3425 fi
3426
3427 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3428 fi
3429 ;;
3430 esac
3431 ;;
3432 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3433 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3434 ;;
3435 tandem*)
3436 case $cc_basename in
3437 NCC)
3438 # NonStop-UX NCC 3.20
3439 # FIXME: insert proper C++ library support
3440 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3441 ;;
3442 *)
3443 # FIXME: insert proper C++ library support
3444 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3445 ;;
3446 esac
3447 ;;
3448 vxworks*)
3449 # FIXME: insert proper C++ library support
3450 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3451 ;;
3452 *)
3453 # FIXME: insert proper C++ library support
3454 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3455 ;;
3456 esac
3457 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3458 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3459
3460 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3461 _LT_AC_TAGVAR(LD, $1)="$LD"
3462
3463 AC_LIBTOOL_POSTDEP_PREDEP($1)
3464 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3465 AC_LIBTOOL_PROG_CC_C_O($1)
3466 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3467 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3468 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3469 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3470 AC_LIBTOOL_SYS_LIB_STRIP
3471 AC_LIBTOOL_DLOPEN_SELF($1)
3472
3473 AC_LIBTOOL_CONFIG($1)
3474
3475 AC_LANG_POP
3476 CC=$lt_save_CC
3477 LDCXX=$LD
3478 LD=$lt_save_LD
3479 GCC=$lt_save_GCC
3480 with_gnu_ldcxx=$with_gnu_ld
3481 with_gnu_ld=$lt_save_with_gnu_ld
3482 lt_cv_path_LDCXX=$lt_cv_path_LD
3483 lt_cv_path_LD=$lt_save_path_LD
3484 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3485 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3486 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3487
3488 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3489 # ------------------------
3490 # Figure out "hidden" library dependencies from verbose
3491 # compiler output when linking a shared library.
3492 # Parse the compiler output and extract the necessary
3493 # objects, libraries and library flags.
3494 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3495 dnl we can't use the lt_simple_compile_test_code here,
3496 dnl because it contains code intended for an executable,
3497 dnl not a library. It's possible we should let each
3498 dnl tag define a new lt_????_link_test_code variable,
3499 dnl but it's only used here...
3500 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3501 int a;
3502 void foo (void) { a = 0; }
3503 EOF
3504 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3505 class Foo
3506 {
3507 public:
3508 Foo (void) { a = 0; }
3509 private:
3510 int a;
3511 };
3512 EOF
3513 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3514 subroutine foo
3515 implicit none
3516 integer*4 a
3517 a=0
3518 return
3519 end
3520 EOF
3521 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3522 public class foo {
3523 private int a;
3524 public void bar (void) {
3525 a = 0;
3526 }
3527 };
3528 EOF
3529 ])
3530 dnl Parse the compiler output and extract the necessary
3531 dnl objects, libraries and library flags.
3532 if AC_TRY_EVAL(ac_compile); then
3533 # Parse the compiler output and extract the necessary
3534 # objects, libraries and library flags.
3535
3536 # Sentinel used to keep track of whether or not we are before
3537 # the conftest object file.
3538 pre_test_object_deps_done=no
3539
3540 # The `*' in the case matches for architectures that use `case' in
3541 # $output_verbose_cmd can trigger glob expansion during the loop
3542 # eval without this substitution.
3543 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
3544
3545 for p in `eval $output_verbose_link_cmd`; do
3546 case $p in
3547
3548 -L* | -R* | -l*)
3549 # Some compilers place space between "-{L,R}" and the path.
3550 # Remove the space.
3551 if test $p = "-L" \
3552 || test $p = "-R"; then
3553 prev=$p
3554 continue
3555 else
3556 prev=
3557 fi
3558
3559 if test "$pre_test_object_deps_done" = no; then
3560 case $p in
3561 -L* | -R*)
3562 # Internal compiler library paths should come after those
3563 # provided the user. The postdeps already come after the
3564 # user supplied libs so there is no need to process them.
3565 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3566 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3567 else
3568 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3569 fi
3570 ;;
3571 # The "-l" case would never come before the object being
3572 # linked, so don't bother handling this case.
3573 esac
3574 else
3575 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3576 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3577 else
3578 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3579 fi
3580 fi
3581 ;;
3582
3583 *.$objext)
3584 # This assumes that the test object file only shows up
3585 # once in the compiler output.
3586 if test "$p" = "conftest.$objext"; then
3587 pre_test_object_deps_done=yes
3588 continue
3589 fi
3590
3591 if test "$pre_test_object_deps_done" = no; then
3592 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3593 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3594 else
3595 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3596 fi
3597 else
3598 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3599 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3600 else
3601 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3602 fi
3603 fi
3604 ;;
3605
3606 *) ;; # Ignore the rest.
3607
3608 esac
3609 done
3610
3611 # Clean up.
3612 rm -f a.out a.exe
3613 else
3614 echo "libtool.m4: error: problem compiling $1 test program"
3615 fi
3616
3617 $rm -f confest.$objext
3618
3619 case " $_LT_AC_TAGVAR(postdeps, $1) " in
3620 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3621 esac
3622 ])# AC_LIBTOOL_POSTDEP_PREDEP
3623
3624 # AC_LIBTOOL_LANG_F77_CONFIG
3625 # ------------------------
3626 # Ensure that the configuration vars for the C compiler are
3627 # suitably defined. Those variables are subsequently used by
3628 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3629 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3630 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3631 [AC_REQUIRE([AC_PROG_F77])
3632 AC_LANG_PUSH(Fortran 77)
3633
3634 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3635 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3636 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3637 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3638 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3639 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3640 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3641 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3642 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3643 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3644 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3645 _LT_AC_TAGVAR(module_cmds, $1)=
3646 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3647 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3648 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3649 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3650 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3651 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3652
3653 # Source file extension for f77 test sources.
3654 ac_ext=f
3655
3656 # Object file extension for compiled f77 test sources.
3657 objext=o
3658 _LT_AC_TAGVAR(objext, $1)=$objext
3659
3660 # Code to be used in simple compile tests
3661 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
3662
3663 # Code to be used in simple link tests
3664 lt_simple_link_test_code=" program t\n end\n"
3665
3666 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3667 _LT_AC_SYS_COMPILER
3668
3669 # Allow CC to be a program name with arguments.
3670 lt_save_CC="$CC"
3671 CC=${F77-"f77"}
3672 compiler=$CC
3673 _LT_AC_TAGVAR(compiler, $1)=$CC
3674 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3675
3676 AC_MSG_CHECKING([if libtool supports shared libraries])
3677 AC_MSG_RESULT([$can_build_shared])
3678
3679 AC_MSG_CHECKING([whether to build shared libraries])
3680 test "$can_build_shared" = "no" && enable_shared=no
3681
3682 # On AIX, shared libraries and static libraries use the same namespace, and
3683 # are all built from PIC.
3684 case "$host_os" in
3685 aix3*)
3686 test "$enable_shared" = yes && enable_static=no
3687 if test -n "$RANLIB"; then
3688 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3689 postinstall_cmds='$RANLIB $lib'
3690 fi
3691 ;;
3692 aix4* | aix5*)
3693 test "$enable_shared" = yes && enable_static=no
3694 ;;
3695 esac
3696 AC_MSG_RESULT([$enable_shared])
3697
3698 AC_MSG_CHECKING([whether to build static libraries])
3699 # Make sure either enable_shared or enable_static is yes.
3700 test "$enable_shared" = yes || enable_static=yes
3701 AC_MSG_RESULT([$enable_static])
3702
3703 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3704
3705 _LT_AC_TAGVAR(GCC, $1)="$G77"
3706 _LT_AC_TAGVAR(LD, $1)="$LD"
3707
3708 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3709 AC_LIBTOOL_PROG_CC_C_O($1)
3710 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3711 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3712 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3713 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3714 AC_LIBTOOL_SYS_LIB_STRIP
3715
3716
3717 AC_LIBTOOL_CONFIG($1)
3718
3719 AC_LANG_POP
3720 CC="$lt_save_CC"
3721 ])# AC_LIBTOOL_LANG_F77_CONFIG
3722
3723
3724 # AC_LIBTOOL_LANG_GCJ_CONFIG
3725 # --------------------------
3726 # Ensure that the configuration vars for the C compiler are
3727 # suitably defined. Those variables are subsequently used by
3728 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3729 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
3730 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
3731 [AC_LANG_SAVE
3732
3733 # Source file extension for Java test sources.
3734 ac_ext=java
3735
3736 # Object file extension for compiled Java test sources.
3737 objext=o
3738 _LT_AC_TAGVAR(objext, $1)=$objext
3739
3740 # Code to be used in simple compile tests
3741 lt_simple_compile_test_code="class foo {}\n"
3742
3743 # Code to be used in simple link tests
3744 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
3745
3746 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3747 _LT_AC_SYS_COMPILER
3748
3749 # Allow CC to be a program name with arguments.
3750 lt_save_CC="$CC"
3751 CC=${GCJ-"gcj"}
3752 compiler=$CC
3753 _LT_AC_TAGVAR(compiler, $1)=$CC
3754
3755 # GCJ did not exist at the time GCC didn't implicitly link libc in.
3756 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3757
3758 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3759 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3760 AC_LIBTOOL_PROG_CC_C_O($1)
3761 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3762 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3763 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3764 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3765 AC_LIBTOOL_SYS_LIB_STRIP
3766 AC_LIBTOOL_DLOPEN_SELF($1)
3767
3768 AC_LIBTOOL_CONFIG($1)
3769
3770 AC_LANG_RESTORE
3771 CC="$lt_save_CC"
3772 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
3773
3774
3775 # AC_LIBTOOL_LANG_RC_CONFIG
3776 # --------------------------
3777 # Ensure that the configuration vars for the Windows resource compiler are
3778 # suitably defined. Those variables are subsequently used by
3779 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3780 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
3781 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
3782 [AC_LANG_SAVE
3783
3784 # Source file extension for RC test sources.
3785 ac_ext=rc
3786
3787 # Object file extension for compiled RC test sources.
3788 objext=o
3789 _LT_AC_TAGVAR(objext, $1)=$objext
3790
3791 # Code to be used in simple compile tests
3792 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
3793
3794 # Code to be used in simple link tests
3795 lt_simple_link_test_code="$lt_simple_compile_test_code"
3796
3797 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3798 _LT_AC_SYS_COMPILER
3799
3800 # Allow CC to be a program name with arguments.
3801 lt_save_CC="$CC"
3802 CC=${RC-"windres"}
3803 compiler=$CC
3804 _LT_AC_TAGVAR(compiler, $1)=$CC
3805 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3806
3807 AC_LIBTOOL_CONFIG($1)
3808
3809 AC_LANG_RESTORE
3810 CC="$lt_save_CC"
3811 ])# AC_LIBTOOL_LANG_RC_CONFIG
3812
3813
3814 # AC_LIBTOOL_CONFIG([TAGNAME])
3815 # ----------------------------
3816 # If TAGNAME is not passed, then create an initial libtool script
3817 # with a default configuration from the untagged config vars. Otherwise
3818 # add code to config.status for appending the configuration named by
3819 # TAGNAME from the matching tagged config vars.
3820 AC_DEFUN([AC_LIBTOOL_CONFIG],
3821 [# The else clause should only fire when bootstrapping the
3822 # libtool distribution, otherwise you forgot to ship ltmain.sh
3823 # with your package, and you will get complaints that there are
3824 # no rules to generate ltmain.sh.
3825 if test -f "$ltmain"; then
3826 # See if we are running on zsh, and set the options which allow our commands through
3827 # without removal of \ escapes.
3828 if test -n "${ZSH_VERSION+set}" ; then
3829 setopt NO_GLOB_SUBST
3830 fi
3831 # Now quote all the things that may contain metacharacters while being
3832 # careful not to overquote the AC_SUBSTed values. We take copies of the
3833 # variables and quote the copies for generation of the libtool script.
3834 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
3835 SED SHELL STRIP \
3836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
3838 deplibs_check_method reload_flag reload_cmds need_locks \
3839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
3840 lt_cv_sys_global_symbol_to_c_name_address \
3841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
3842 old_postinstall_cmds old_postuninstall_cmds \
3843 _LT_AC_TAGVAR(compiler, $1) \
3844 _LT_AC_TAGVAR(CC, $1) \
3845 _LT_AC_TAGVAR(LD, $1) \
3846 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
3847 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
3848 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
3849 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
3850 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
3851 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
3852 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
3853 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
3854 _LT_AC_TAGVAR(old_archive_cmds, $1) \
3855 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
3856 _LT_AC_TAGVAR(predep_objects, $1) \
3857 _LT_AC_TAGVAR(postdep_objects, $1) \
3858 _LT_AC_TAGVAR(predeps, $1) \
3859 _LT_AC_TAGVAR(postdeps, $1) \
3860 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
3861 _LT_AC_TAGVAR(archive_cmds, $1) \
3862 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
3863 _LT_AC_TAGVAR(postinstall_cmds, $1) \
3864 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
3865 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
3866 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
3867 _LT_AC_TAGVAR(no_undefined_flag, $1) \
3868 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
3869 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
3870 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
3871 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
3872 _LT_AC_TAGVAR(hardcode_automatic, $1) \
3873 _LT_AC_TAGVAR(module_cmds, $1) \
3874 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
3875 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
3876 _LT_AC_TAGVAR(exclude_expsyms, $1) \
3877 _LT_AC_TAGVAR(include_expsyms, $1); do
3878
3879 case $var in
3880 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
3881 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
3882 _LT_AC_TAGVAR(archive_cmds, $1) | \
3883 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
3884 _LT_AC_TAGVAR(module_cmds, $1) | \
3885 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
3886 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
3887 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
3888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
3889 postinstall_cmds | postuninstall_cmds | \
3890 old_postinstall_cmds | old_postuninstall_cmds | \
3891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
3892 # Double-quote double-evaled strings.
3893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
3894 ;;
3895 *)
3896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
3897 ;;
3898 esac
3899 done
3900
3901 case $lt_echo in
3902 *'\[$]0 --fallback-echo"')
3903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
3904 ;;
3905 esac
3906
3907 ifelse([$1], [],
3908 [cfgfile="${ofile}T"
3909 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
3910 $rm -f "$cfgfile"
3911 AC_MSG_NOTICE([creating $ofile])],
3912 [cfgfile="$ofile"])
3913
3914 cat <<__EOF__ >> "$cfgfile"
3915 ifelse([$1], [],
3916 [#! $SHELL
3917
3918 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
3919 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
3920 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
3921 #
3922 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
3923 # Free Software Foundation, Inc.
3924 #
3925 # This file is part of GNU Libtool:
3926 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3927 #
3928 # This program is free software; you can redistribute it and/or modify
3929 # it under the terms of the GNU General Public License as published by
3930 # the Free Software Foundation; either version 2 of the License, or
3931 # (at your option) any later version.
3932 #
3933 # This program is distributed in the hope that it will be useful, but
3934 # WITHOUT ANY WARRANTY; without even the implied warranty of
3935 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3936 # General Public License for more details.
3937 #
3938 # You should have received a copy of the GNU General Public License
3939 # along with this program; if not, write to the Free Software
3940 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3941 #
3942 # As a special exception to the GNU General Public License, if you
3943 # distribute this file as part of a program that contains a
3944 # configuration script generated by Autoconf, you may include it under
3945 # the same distribution terms that you use for the rest of that program.
3946
3947 # A sed program that does not truncate output.
3948 SED=$lt_SED
3949
3950 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
3951 Xsed="$SED -e s/^X//"
3952
3953 # The HP-UX ksh and POSIX shell print the target directory to stdout
3954 # if CDPATH is set.
3955 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
3956
3957 # The names of the tagged configurations supported by this script.
3958 available_tags=
3959
3960 # ### BEGIN LIBTOOL CONFIG],
3961 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
3962
3963 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3964
3965 # Shell to use when invoking shell scripts.
3966 SHELL=$lt_SHELL
3967
3968 # Whether or not to build shared libraries.
3969 build_libtool_libs=$enable_shared
3970
3971 # Whether or not to build static libraries.
3972 build_old_libs=$enable_static
3973
3974 # Whether or not to add -lc for building shared libraries.
3975 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
3976
3977 # Whether or not to disallow shared libs when runtime libs are static
3978 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
3979
3980 # Whether or not to optimize for fast installation.
3981 fast_install=$enable_fast_install
3982
3983 # The host system.
3984 host_alias=$host_alias
3985 host=$host
3986
3987 # An echo program that does not interpret backslashes.
3988 echo=$lt_echo
3989
3990 # The archiver.
3991 AR=$lt_AR
3992 AR_FLAGS=$lt_AR_FLAGS
3993
3994 # A C compiler.
3995 LTCC=$lt_LTCC
3996
3997 # A language-specific compiler.
3998 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
3999
4000 # Is the compiler the GNU C compiler?
4001 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4002
4003 # An ERE matcher.
4004 EGREP=$lt_EGREP
4005
4006 # The linker used to build libraries.
4007 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4008
4009 # Whether we need hard or soft links.
4010 LN_S=$lt_LN_S
4011
4012 # A BSD-compatible nm program.
4013 NM=$lt_NM
4014
4015 # A symbol stripping program
4016 STRIP=$lt_STRIP
4017
4018 # Used to examine libraries when file_magic_cmd begins "file"
4019 MAGIC_CMD=$MAGIC_CMD
4020
4021 # Used on cygwin: DLL creation program.
4022 DLLTOOL="$DLLTOOL"
4023
4024 # Used on cygwin: object dumper.
4025 OBJDUMP="$OBJDUMP"
4026
4027 # Used on cygwin: assembler.
4028 AS="$AS"
4029
4030 # The name of the directory that contains temporary libtool files.
4031 objdir=$objdir
4032
4033 # How to create reloadable object files.
4034 reload_flag=$lt_reload_flag
4035 reload_cmds=$lt_reload_cmds
4036
4037 # How to pass a linker flag through the compiler.
4038 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4039
4040 # Object file suffix (normally "o").
4041 objext="$ac_objext"
4042
4043 # Old archive suffix (normally "a").
4044 libext="$libext"
4045
4046 # Shared library suffix (normally ".so").
4047 shrext_cmds='$shrext_cmds'
4048
4049 # Executable file suffix (normally "").
4050 exeext="$exeext"
4051
4052 # Additional compiler flags for building library objects.
4053 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4054 pic_mode=$pic_mode
4055
4056 # What is the maximum length of a command?
4057 max_cmd_len=$lt_cv_sys_max_cmd_len
4058
4059 # Does compiler simultaneously support -c and -o options?
4060 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4061
4062 # Must we lock files when doing compilation ?
4063 need_locks=$lt_need_locks
4064
4065 # Do we need the lib prefix for modules?
4066 need_lib_prefix=$need_lib_prefix
4067
4068 # Do we need a version for libraries?
4069 need_version=$need_version
4070
4071 # Whether dlopen is supported.
4072 dlopen_support=$enable_dlopen
4073
4074 # Whether dlopen of programs is supported.
4075 dlopen_self=$enable_dlopen_self
4076
4077 # Whether dlopen of statically linked programs is supported.
4078 dlopen_self_static=$enable_dlopen_self_static
4079
4080 # Compiler flag to prevent dynamic linking.
4081 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4082
4083 # Compiler flag to turn off builtin functions.
4084 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4085
4086 # Compiler flag to allow reflexive dlopens.
4087 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4088
4089 # Compiler flag to generate shared objects directly from archives.
4090 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4091
4092 # Compiler flag to generate thread-safe objects.
4093 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4094
4095 # Library versioning type.
4096 version_type=$version_type
4097
4098 # Format of library name prefix.
4099 libname_spec=$lt_libname_spec
4100
4101 # List of archive names. First name is the real one, the rest are links.
4102 # The last name is the one that the linker finds with -lNAME.
4103 library_names_spec=$lt_library_names_spec
4104
4105 # The coded name of the library, if different from the real name.
4106 soname_spec=$lt_soname_spec
4107
4108 # Commands used to build and install an old-style archive.
4109 RANLIB=$lt_RANLIB
4110 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4111 old_postinstall_cmds=$lt_old_postinstall_cmds
4112 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4113
4114 # Create an old-style archive from a shared archive.
4115 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4116
4117 # Create a temporary old-style archive to link instead of a shared archive.
4118 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4119
4120 # Commands used to build and install a shared archive.
4121 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4122 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4123 postinstall_cmds=$lt_postinstall_cmds
4124 postuninstall_cmds=$lt_postuninstall_cmds
4125
4126 # Commands used to build a loadable module (assumed same as above if empty)
4127 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4128 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4129
4130 # Commands to strip libraries.
4131 old_striplib=$lt_old_striplib
4132 striplib=$lt_striplib
4133
4134 # Dependencies to place before the objects being linked to create a
4135 # shared library.
4136 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4137
4138 # Dependencies to place after the objects being linked to create a
4139 # shared library.
4140 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4141
4142 # Dependencies to place before the objects being linked to create a
4143 # shared library.
4144 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4145
4146 # Dependencies to place after the objects being linked to create a
4147 # shared library.
4148 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4149
4150 # The library search path used internally by the compiler when linking
4151 # a shared library.
4152 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4153
4154 # Method to check whether dependent libraries are shared objects.
4155 deplibs_check_method=$lt_deplibs_check_method
4156
4157 # Command to use when deplibs_check_method == file_magic.
4158 file_magic_cmd=$lt_file_magic_cmd
4159
4160 # Flag that allows shared libraries with undefined symbols to be built.
4161 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4162
4163 # Flag that forces no undefined symbols.
4164 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4165
4166 # Commands used to finish a libtool library installation in a directory.
4167 finish_cmds=$lt_finish_cmds
4168
4169 # Same as above, but a single script fragment to be evaled but not shown.
4170 finish_eval=$lt_finish_eval
4171
4172 # Take the output of nm and produce a listing of raw symbols and C names.
4173 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4174
4175 # Transform the output of nm in a proper C declaration
4176 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4177
4178 # Transform the output of nm in a C name address pair
4179 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4180
4181 # This is the shared library runtime path variable.
4182 runpath_var=$runpath_var
4183
4184 # This is the shared library path variable.
4185 shlibpath_var=$shlibpath_var
4186
4187 # Is shlibpath searched before the hard-coded library search path?
4188 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4189
4190 # How to hardcode a shared library path into an executable.
4191 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4192
4193 # Whether we should hardcode library paths into libraries.
4194 hardcode_into_libs=$hardcode_into_libs
4195
4196 # Flag to hardcode \$libdir into a binary during linking.
4197 # This must work even if \$libdir does not exist.
4198 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4199
4200 # If ld is used when linking, flag to hardcode \$libdir into
4201 # a binary during linking. This must work even if \$libdir does
4202 # not exist.
4203 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4204
4205 # Whether we need a single -rpath flag with a separated argument.
4206 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4207
4208 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4209 # resulting binary.
4210 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4211
4212 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4213 # resulting binary.
4214 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4215
4216 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4217 # the resulting binary.
4218 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4219
4220 # Set to yes if building a shared library automatically hardcodes DIR into the library
4221 # and all subsequent libraries and executables linked against it.
4222 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4223
4224 # Variables whose values should be saved in libtool wrapper scripts and
4225 # restored at relink time.
4226 variables_saved_for_relink="$variables_saved_for_relink"
4227
4228 # Whether libtool must link a program against all its dependency libraries.
4229 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4230
4231 # Compile-time system search path for libraries
4232 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4233
4234 # Run-time system search path for libraries
4235 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4236
4237 # Fix the shell variable \$srcfile for the compiler.
4238 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4239
4240 # Set to yes if exported symbols are required.
4241 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4242
4243 # The commands to list exported symbols.
4244 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4245
4246 # The commands to extract the exported symbol list from a shared archive.
4247 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4248
4249 # Symbols that should not be listed in the preloaded symbols.
4250 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4251
4252 # Symbols that must always be exported.
4253 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4254
4255 ifelse([$1],[],
4256 [# ### END LIBTOOL CONFIG],
4257 [# ### END LIBTOOL TAG CONFIG: $tagname])
4258
4259 __EOF__
4260
4261 ifelse([$1],[], [
4262 case $host_os in
4263 aix3*)
4264 cat <<\EOF >> "$cfgfile"
4265
4266 # AIX sometimes has problems with the GCC collect2 program. For some
4267 # reason, if we set the COLLECT_NAMES environment variable, the problems
4268 # vanish in a puff of smoke.
4269 if test "X${COLLECT_NAMES+set}" != Xset; then
4270 COLLECT_NAMES=
4271 export COLLECT_NAMES
4272 fi
4273 EOF
4274 ;;
4275 esac
4276
4277 # We use sed instead of cat because bash on DJGPP gets confused if
4278 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4279 # text mode, it properly converts lines to CR/LF. This bash problem
4280 # is reportedly fixed, but why not run on old versions too?
4281 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4282
4283 mv -f "$cfgfile" "$ofile" || \
4284 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4285 chmod +x "$ofile"
4286 ])
4287 else
4288 # If there is no Makefile yet, we rely on a make rule to execute
4289 # `config.status --recheck' to rerun these tests and create the
4290 # libtool script then.
4291 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4292 if test -f "$ltmain_in"; then
4293 test -f Makefile && make "$ltmain"
4294 fi
4295 fi
4296 ])# AC_LIBTOOL_CONFIG
4297
4298
4299 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4300 # -------------------------------------------
4301 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4302 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4303
4304 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3296 AC_SUBST([LIBM])
3297 ])# LT_LIB_M
3298
3299 # Old name:
3300 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3301 dnl aclocal-1.4 backwards compatibility:
3302 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3303
3304
3305 # _LT_COMPILER_NO_RTTI([TAGNAME])
3306 # -------------------------------
3307 m4_defun([_LT_COMPILER_NO_RTTI],
3308 [m4_require([_LT_TAG_COMPILER])dnl
3309
3310 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
43053311
43063312 if test "$GCC" = yes; then
4307 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4308
4309 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3313 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3314
3315 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
43103316 lt_cv_prog_compiler_rtti_exceptions,
43113317 [-fno-rtti -fno-exceptions], [],
4312 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3318 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
43133319 fi
4314 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4315
4316
4317 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4318 # ---------------------------------
4319 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4320 [AC_REQUIRE([AC_CANONICAL_HOST])
4321 AC_REQUIRE([AC_PROG_NM])
4322 AC_REQUIRE([AC_OBJEXT])
3320 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3321 [Compiler flag to turn off builtin functions])
3322 ])# _LT_COMPILER_NO_RTTI
3323
3324
3325 # _LT_CMD_GLOBAL_SYMBOLS
3326 # ----------------------
3327 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3328 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3329 AC_REQUIRE([AC_PROG_CC])dnl
3330 AC_REQUIRE([LT_PATH_NM])dnl
3331 AC_REQUIRE([LT_PATH_LD])dnl
3332 m4_require([_LT_DECL_SED])dnl
3333 m4_require([_LT_DECL_EGREP])dnl
3334 m4_require([_LT_TAG_COMPILER])dnl
3335
43233336 # Check for command to grab the raw symbol name followed by C symbol from nm.
43243337 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
43253338 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
43333346 # Regexp to match symbols that can be accessed directly from C.
43343347 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
43353348
4336 # Transform the above into a raw symbol and a C symbol.
4337 symxfrm='\1 \2\3 \3'
4338
4339 # Transform an extracted symbol line into a proper C declaration
4340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4341
4342 # Transform an extracted symbol line into symbol name and symbol address
4343 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4344
43453349 # Define system-specific variables.
43463350 case $host_os in
43473351 aix*)
43483352 symcode='[[BCDT]]'
43493353 ;;
4350 cygwin* | mingw* | pw32*)
3354 cygwin* | mingw* | pw32* | cegcc*)
43513355 symcode='[[ABCDGISTW]]'
43523356 ;;
4353 hpux*) # Its linker distinguishes data from code symbols
3357 hpux*)
43543358 if test "$host_cpu" = ia64; then
43553359 symcode='[[ABCDEGRST]]'
43563360 fi
4357 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4358 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
43593361 ;;
43603362 irix* | nonstopux*)
43613363 symcode='[[BCDEGRST]]'
43633365 osf*)
43643366 symcode='[[BCDEGQRST]]'
43653367 ;;
4366 solaris* | sysv5*)
3368 solaris*)
43673369 symcode='[[BDRT]]'
3370 ;;
3371 sco3.2v5*)
3372 symcode='[[DT]]'
3373 ;;
3374 sysv4.2uw2*)
3375 symcode='[[DT]]'
3376 ;;
3377 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3378 symcode='[[ABDT]]'
43683379 ;;
43693380 sysv4)
43703381 symcode='[[DFNSTU]]'
4371 ;;
4372 esac
4373
4374 # Handle CRLF in mingw tool chain
4375 opt_cr=
4376 case $build_os in
4377 mingw*)
4378 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
43793382 ;;
43803383 esac
43813384
43853388 symcode='[[ABCDGIRSTW]]' ;;
43863389 esac
43873390
4388 # Try without a prefix undercore, then with it.
3391 # Transform an extracted symbol line into a proper C declaration.
3392 # Some systems (esp. on ia64) link data and code symbols differently,
3393 # so use this general approach.
3394 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3395
3396 # Transform an extracted symbol line into symbol name and symbol address
3397 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3398 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3399
3400 # Handle CRLF in mingw tool chain
3401 opt_cr=
3402 case $build_os in
3403 mingw*)
3404 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3405 ;;
3406 esac
3407
3408 # Try without a prefix underscore, then with it.
43893409 for ac_symprfx in "" "_"; do
43903410
3411 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3412 symxfrm="\\1 $ac_symprfx\\2 \\2"
3413
43913414 # Write the raw and C identifiers.
4392 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3415 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3416 # Fake it for dumpbin and say T for any non-static function
3417 # and D for any global variable.
3418 # Also find C++ and __fastcall symbols from MSVC++,
3419 # which start with @ or ?.
3420 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3421 " {last_section=section; section=\$ 3};"\
3422 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3423 " \$ 0!~/External *\|/{next};"\
3424 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3425 " {if(hide[section]) next};"\
3426 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3427 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3428 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3429 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3430 " ' prfx=^$ac_symprfx]"
3431 else
3432 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3433 fi
43933434
43943435 # Check to see that the pipe works correctly.
43953436 pipe_works=no
43963437
43973438 rm -f conftest*
4398 cat > conftest.$ac_ext <<EOF
3439 cat > conftest.$ac_ext <<_LT_EOF
43993440 #ifdef __cplusplus
44003441 extern "C" {
44013442 #endif
44023443 char nm_test_var;
4403 void nm_test_func(){}
3444 void nm_test_func(void);
3445 void nm_test_func(void){}
44043446 #ifdef __cplusplus
44053447 }
44063448 #endif
44073449 int main(){nm_test_var='a';nm_test_func();return(0);}
4408 EOF
3450 _LT_EOF
44093451
44103452 if AC_TRY_EVAL(ac_compile); then
44113453 # Now try to grab the symbols.
44193461 fi
44203462
44213463 # Make sure that we snagged all the symbols we need.
4422 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4423 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4424 cat <<EOF > conftest.$ac_ext
3464 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3465 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3466 cat <<_LT_EOF > conftest.$ac_ext
44253467 #ifdef __cplusplus
44263468 extern "C" {
44273469 #endif
44283470
4429 EOF
3471 _LT_EOF
44303472 # Now generate the symbol file.
4431 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4432
4433 cat <<EOF >> conftest.$ac_ext
4434 #if defined (__STDC__) && __STDC__
4435 # define lt_ptr_t void *
4436 #else
4437 # define lt_ptr_t char *
4438 # define const
4439 #endif
4440
4441 /* The mapping between symbol names and symbols. */
3473 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3474
3475 cat <<_LT_EOF >> conftest.$ac_ext
3476
3477 /* The mapping between symbol names and symbols. */
44423478 const struct {
44433479 const char *name;
4444 lt_ptr_t address;
3480 void *address;
44453481 }
4446 lt_preloaded_symbols[[]] =
3482 lt__PROGRAM__LTX_preloaded_symbols[[]] =
44473483 {
4448 EOF
4449 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4450 cat <<\EOF >> conftest.$ac_ext
4451 {0, (lt_ptr_t) 0}
3484 { "@PROGRAM@", (void *) 0 },
3485 _LT_EOF
3486 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3487 cat <<\_LT_EOF >> conftest.$ac_ext
3488 {0, (void *) 0}
44523489 };
3490
3491 /* This works around a problem in FreeBSD linker */
3492 #ifdef FREEBSD_WORKAROUND
3493 static const void *lt_preloaded_setup() {
3494 return lt__PROGRAM__LTX_preloaded_symbols;
3495 }
3496 #endif
44533497
44543498 #ifdef __cplusplus
44553499 }
44563500 #endif
4457 EOF
3501 _LT_EOF
44583502 # Now try linking the two files.
44593503 mv conftest.$ac_objext conftstm.$ac_objext
44603504 lt_save_LIBS="$LIBS"
44613505 lt_save_CFLAGS="$CFLAGS"
44623506 LIBS="conftstm.$ac_objext"
4463 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3507 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
44643508 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
44653509 pipe_works=yes
44663510 fi
44793523 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
44803524 cat conftest.$ac_ext >&5
44813525 fi
4482 rm -f conftest* conftst*
3526 rm -rf conftest* conftst*
44833527
44843528 # Do not use the global_symbol_pipe unless it works.
44853529 if test "$pipe_works" = yes; then
44973541 else
44983542 AC_MSG_RESULT(ok)
44993543 fi
4500 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4501
4502
4503 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4504 # ---------------------------------------
4505 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4506 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4507 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4508 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
3544
3545 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3546 [Take the output of nm and produce a listing of raw symbols and C names])
3547 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3548 [Transform the output of nm in a proper C declaration])
3549 _LT_DECL([global_symbol_to_c_name_address],
3550 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3551 [Transform the output of nm in a C name address pair])
3552 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3553 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3554 [Transform the output of nm in a C name address pair when lib prefix is needed])
3555 ]) # _LT_CMD_GLOBAL_SYMBOLS
3556
3557
3558 # _LT_COMPILER_PIC([TAGNAME])
3559 # ---------------------------
3560 m4_defun([_LT_COMPILER_PIC],
3561 [m4_require([_LT_TAG_COMPILER])dnl
3562 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3563 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3564 _LT_TAGVAR(lt_prog_compiler_static, $1)=
45093565
45103566 AC_MSG_CHECKING([for $compiler option to produce PIC])
4511 ifelse([$1],[CXX],[
3567 m4_if([$1], [CXX], [
45123568 # C++ specific cases for pic, static, wl, etc.
45133569 if test "$GXX" = yes; then
4514 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4515 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3570 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3571 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
45163572
45173573 case $host_os in
45183574 aix*)
45193575 # All AIX code is PIC.
45203576 if test "$host_cpu" = ia64; then
45213577 # AIX 5 now supports IA64 processor
4522 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3578 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
45233579 fi
45243580 ;;
3581
45253582 amigaos*)
4526 # FIXME: we need at least 68020 code to build shared libraries, but
4527 # adding the `-m68020' flag to GCC prevents building anything better,
4528 # like `-m68040'.
4529 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4530 ;;
4531 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3583 case $host_cpu in
3584 powerpc)
3585 # see comment about AmigaOS4 .so support
3586 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3587 ;;
3588 m68k)
3589 # FIXME: we need at least 68020 code to build shared libraries, but
3590 # adding the `-m68020' flag to GCC prevents building anything better,
3591 # like `-m68040'.
3592 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3593 ;;
3594 esac
3595 ;;
3596
3597 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
45323598 # PIC is the default for these OSes.
45333599 ;;
4534 mingw* | os2* | pw32*)
3600 mingw* | cygwin* | os2* | pw32* | cegcc*)
45353601 # This hack is so that the source file can tell whether it is being
45363602 # built for inclusion in a dll (and should export symbols for example).
4537 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3603 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3604 # (--disable-auto-import) libraries
3605 m4_if([$1], [GCJ], [],
3606 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
45383607 ;;
45393608 darwin* | rhapsody*)
45403609 # PIC is the default on this platform
45413610 # Common symbols not allowed in MH_DYLIB files
4542 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3611 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
45433612 ;;
45443613 *djgpp*)
45453614 # DJGPP does not support shared libraries at all
4546 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3615 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3616 ;;
3617 interix[[3-9]]*)
3618 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3619 # Instead, we relocate shared libraries at runtime.
45473620 ;;
45483621 sysv4*MP*)
45493622 if test -d /usr/nec; then
4550 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3623 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
45513624 fi
45523625 ;;
45533626 hpux*)
4554 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4555 # not for PA HP-UX.
4556 case "$host_cpu" in
4557 hppa*64*|ia64*)
3627 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3628 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3629 # sets the default TLS model and affects inlining.
3630 case $host_cpu in
3631 hppa*64*)
45583632 ;;
45593633 *)
4560 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3634 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
45613635 ;;
45623636 esac
45633637 ;;
3638 *qnx* | *nto*)
3639 # QNX uses GNU C++, but need to define -shared option too, otherwise
3640 # it will coredump.
3641 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3642 ;;
45643643 *)
4565 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3644 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
45663645 ;;
45673646 esac
45683647 else
45693648 case $host_os in
4570 aix4* | aix5*)
3649 aix[[4-9]]*)
45713650 # All AIX code is PIC.
45723651 if test "$host_cpu" = ia64; then
45733652 # AIX 5 now supports IA64 processor
4574 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3653 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
45753654 else
4576 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3655 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
45773656 fi
45783657 ;;
45793658 chorus*)
45803659 case $cc_basename in
4581 cxch68)
3660 cxch68*)
45823661 # Green Hills C++ Compiler
4583 # _LT_AC_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"
3662 # _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"
45843663 ;;
45853664 esac
45863665 ;;
45873666 dgux*)
45883667 case $cc_basename in
4589 ec++)
4590 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3668 ec++*)
3669 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
45913670 ;;
4592 ghcx)
3671 ghcx*)
45933672 # Green Hills C++ Compiler
4594 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3673 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
45953674 ;;
45963675 *)
45973676 ;;
45983677 esac
45993678 ;;
4600 freebsd* | kfreebsd*-gnu)
3679 freebsd* | dragonfly*)
46013680 # FreeBSD uses GNU C++
46023681 ;;
46033682 hpux9* | hpux10* | hpux11*)
46043683 case $cc_basename in
4605 CC)
4606 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4607 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
3684 CC*)
3685 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3686 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
46083687 if test "$host_cpu" != ia64; then
4609 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3688 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
46103689 fi
46113690 ;;
4612 aCC)
4613 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4614 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4615 case "$host_cpu" in
3691 aCC*)
3692 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3693 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3694 case $host_cpu in
46163695 hppa*64*|ia64*)
46173696 # +Z the default
46183697 ;;
46193698 *)
4620 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3699 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
46213700 ;;
46223701 esac
46233702 ;;
46253704 ;;
46263705 esac
46273706 ;;
3707 interix*)
3708 # This is c89, which is MS Visual C++ (no shared libs)
3709 # Anyone wants to do a port?
3710 ;;
46283711 irix5* | irix6* | nonstopux*)
46293712 case $cc_basename in
4630 CC)
4631 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4632 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3713 CC*)
3714 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3715 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
46333716 # CC pic flag -KPIC is the default.
46343717 ;;
46353718 *)
46363719 ;;
46373720 esac
46383721 ;;
4639 linux*)
3722 linux* | k*bsd*-gnu)
46403723 case $cc_basename in
4641 KCC)
3724 KCC*)
46423725 # KAI C++ Compiler
4643 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4644 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3726 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3727 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
46453728 ;;
4646 icpc)
4647 # Intel C++
4648 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4649 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4650 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3729 ecpc* )
3730 # old Intel C++ for x86_64 which still supported -KPIC.
3731 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3732 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3733 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
46513734 ;;
4652 cxx)
3735 icpc* )
3736 # Intel C++, used to be incompatible with GCC.
3737 # ICC 10 doesn't accept -KPIC any more.
3738 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3739 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3740 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3741 ;;
3742 pgCC* | pgcpp*)
3743 # Portland Group C++ compiler
3744 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3745 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3746 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3747 ;;
3748 cxx*)
46533749 # Compaq C++
46543750 # Make sure the PIC flag is empty. It appears that all Alpha
46553751 # Linux and Compaq Tru64 Unix objects are PIC.
4656 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4657 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3752 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3753 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3754 ;;
3755 xlc* | xlC*)
3756 # IBM XL 8.0 on PPC
3757 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3758 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3759 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
46583760 ;;
46593761 *)
3762 case `$CC -V 2>&1 | sed 5q` in
3763 *Sun\ C*)
3764 # Sun C++ 5.9
3765 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3766 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3767 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3768 ;;
3769 esac
46603770 ;;
46613771 esac
46623772 ;;
46663776 ;;
46673777 mvs*)
46683778 case $cc_basename in
4669 cxx)
4670 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3779 cxx*)
3780 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
46713781 ;;
46723782 *)
46733783 ;;
46743784 esac
46753785 ;;
4676 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3786 netbsd* | netbsdelf*-gnu)
46773787 ;;
3788 *qnx* | *nto*)
3789 # QNX uses GNU C++, but need to define -shared option too, otherwise
3790 # it will coredump.
3791 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3792 ;;
46783793 osf3* | osf4* | osf5*)
46793794 case $cc_basename in
4680 KCC)
4681 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3795 KCC*)
3796 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
46823797 ;;
4683 RCC)
3798 RCC*)
46843799 # Rational C++ 2.4.1
4685 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3800 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
46863801 ;;
4687 cxx)
3802 cxx*)
46883803 # Digital/Compaq C++
4689 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3804 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
46903805 # Make sure the PIC flag is empty. It appears that all Alpha
46913806 # Linux and Compaq Tru64 Unix objects are PIC.
4692 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4693 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3807 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3808 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
46943809 ;;
46953810 *)
46963811 ;;
46983813 ;;
46993814 psos*)
47003815 ;;
4701 sco*)
4702 case $cc_basename in
4703 CC)
4704 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4705 ;;
4706 *)
4707 ;;
4708 esac
4709 ;;
47103816 solaris*)
47113817 case $cc_basename in
4712 CC)
3818 CC*)
47133819 # Sun C++ 4.2, 5.x and Centerline C++
4714 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4715 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4716 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3820 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3821 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3822 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
47173823 ;;
4718 gcx)
3824 gcx*)
47193825 # Green Hills C++ Compiler
4720 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3826 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
47213827 ;;
47223828 *)
47233829 ;;
47253831 ;;
47263832 sunos4*)
47273833 case $cc_basename in
4728 CC)
3834 CC*)
47293835 # Sun C++ 4.x
4730 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4731 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3836 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3837 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
47323838 ;;
4733 lcc)
3839 lcc*)
47343840 # Lucid
4735 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3841 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
47363842 ;;
47373843 *)
47383844 ;;
47393845 esac
47403846 ;;
3847 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3848 case $cc_basename in
3849 CC*)
3850 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3851 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3852 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3853 ;;
3854 esac
3855 ;;
47413856 tandem*)
47423857 case $cc_basename in
4743 NCC)
3858 NCC*)
47443859 # NonStop-UX NCC 3.20
4745 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3860 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
47463861 ;;
47473862 *)
47483863 ;;
47493864 esac
47503865 ;;
4751 unixware*)
4752 ;;
47533866 vxworks*)
47543867 ;;
47553868 *)
4756 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3869 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
47573870 ;;
47583871 esac
47593872 fi
47603873 ],
47613874 [
47623875 if test "$GCC" = yes; then
4763 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4764 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3876 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3877 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
47653878
47663879 case $host_os in
47673880 aix*)
47683881 # All AIX code is PIC.
47693882 if test "$host_cpu" = ia64; then
47703883 # AIX 5 now supports IA64 processor
4771 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3884 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
47723885 fi
47733886 ;;
47743887
47753888 amigaos*)
4776 # FIXME: we need at least 68020 code to build shared libraries, but
4777 # adding the `-m68020' flag to GCC prevents building anything better,
4778 # like `-m68040'.
4779 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4780 ;;
4781
4782 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3889 case $host_cpu in
3890 powerpc)
3891 # see comment about AmigaOS4 .so support
3892 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3893 ;;
3894 m68k)
3895 # FIXME: we need at least 68020 code to build shared libraries, but
3896 # adding the `-m68020' flag to GCC prevents building anything better,
3897 # like `-m68040'.
3898 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3899 ;;
3900 esac
3901 ;;
3902
3903 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
47833904 # PIC is the default for these OSes.
47843905 ;;
47853906
4786 mingw* | pw32* | os2*)
3907 mingw* | cygwin* | pw32* | os2* | cegcc*)
47873908 # This hack is so that the source file can tell whether it is being
47883909 # built for inclusion in a dll (and should export symbols for example).
4789 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3910 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3911 # (--disable-auto-import) libraries
3912 m4_if([$1], [GCJ], [],
3913 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
47903914 ;;
47913915
47923916 darwin* | rhapsody*)
47933917 # PIC is the default on this platform
47943918 # Common symbols not allowed in MH_DYLIB files
4795 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3919 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3920 ;;
3921
3922 hpux*)
3923 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3924 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3925 # sets the default TLS model and affects inlining.
3926 case $host_cpu in
3927 hppa*64*)
3928 # +Z the default
3929 ;;
3930 *)
3931 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3932 ;;
3933 esac
3934 ;;
3935
3936 interix[[3-9]]*)
3937 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3938 # Instead, we relocate shared libraries at runtime.
47963939 ;;
47973940
47983941 msdosdjgpp*)
47993942 # Just because we use GCC doesn't mean we suddenly get shared libraries
48003943 # on systems that don't support them.
4801 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3944 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
48023945 enable_shared=no
3946 ;;
3947
3948 *nto* | *qnx*)
3949 # QNX uses GNU C++, but need to define -shared option too, otherwise
3950 # it will coredump.
3951 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
48033952 ;;
48043953
48053954 sysv4*MP*)
48063955 if test -d /usr/nec; then
4807 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3956 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
48083957 fi
48093958 ;;
48103959
4811 hpux*)
4812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4813 # not for PA HP-UX.
4814 case "$host_cpu" in
4815 hppa*64*|ia64*)
4816 # +Z the default
4817 ;;
4818 *)
4819 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4820 ;;
4821 esac
4822 ;;
4823
48243960 *)
4825 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3961 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
48263962 ;;
48273963 esac
48283964 else
48293965 # PORTME Check for flag to pass linker flags through the system compiler.
48303966 case $host_os in
48313967 aix*)
4832 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3968 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
48333969 if test "$host_cpu" = ia64; then
48343970 # AIX 5 now supports IA64 processor
4835 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3971 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
48363972 else
4837 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3973 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
48383974 fi
48393975 ;;
48403976
4841 mingw* | pw32* | os2*)
3977 mingw* | cygwin* | pw32* | os2* | cegcc*)
48423978 # This hack is so that the source file can tell whether it is being
48433979 # built for inclusion in a dll (and should export symbols for example).
4844 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3980 m4_if([$1], [GCJ], [],
3981 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
48453982 ;;
48463983
48473984 hpux9* | hpux10* | hpux11*)
4848 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3985 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
48493986 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
48503987 # not for PA HP-UX.
4851 case "$host_cpu" in
3988 case $host_cpu in
48523989 hppa*64*|ia64*)
48533990 # +Z the default
48543991 ;;
48553992 *)
4856 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3993 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
48573994 ;;
48583995 esac
48593996 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4860 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3997 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
48613998 ;;
48623999
48634000 irix5* | irix6* | nonstopux*)
4864 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4001 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
48654002 # PIC (with -KPIC) is the default.
4866 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4867 ;;
4868
4869 newsos6)
4870 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4871 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4872 ;;
4873
4874 linux*)
4875 case $CC in
4876 icc* | ecc*)
4877 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4878 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4879 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4003 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4004 ;;
4005
4006 linux* | k*bsd*-gnu)
4007 case $cc_basename in
4008 # old Intel for x86_64 which still supported -KPIC.
4009 ecc*)
4010 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4011 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4012 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4013 ;;
4014 # icc used to be incompatible with GCC.
4015 # ICC 10 doesn't accept -KPIC any more.
4016 icc* | ifort*)
4017 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4018 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4019 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4020 ;;
4021 # Lahey Fortran 8.1.
4022 lf95*)
4023 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4024 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4025 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4026 ;;
4027 pgcc* | pgf77* | pgf90* | pgf95*)
4028 # Portland Group compilers (*not* the Pentium gcc compiler,
4029 # which looks to be a dead project)
4030 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4031 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4032 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
48804033 ;;
48814034 ccc*)
4882 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4035 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
48834036 # All Alpha code is PIC.
4884 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4037 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
48854038 ;;
4039 xl*)
4040 # IBM XL C 8.0/Fortran 10.1 on PPC
4041 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4042 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4043 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4044 ;;
4045 *)
4046 case `$CC -V 2>&1 | sed 5q` in
4047 *Sun\ C*)
4048 # Sun C 5.9
4049 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4050 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4051 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4052 ;;
4053 *Sun\ F*)
4054 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4055 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4056 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4057 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4058 ;;
4059 esac
4060 ;;
48864061 esac
48874062 ;;
48884063
4064 newsos6)
4065 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4066 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4067 ;;
4068
4069 *nto* | *qnx*)
4070 # QNX uses GNU C++, but need to define -shared option too, otherwise
4071 # it will coredump.
4072 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4073 ;;
4074
48894075 osf3* | osf4* | osf5*)
4890 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4076 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
48914077 # All OSF/1 code is PIC.
4892 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4893 ;;
4894
4895 sco3.2v5*)
4896 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
4897 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
4078 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4079 ;;
4080
4081 rdos*)
4082 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
48984083 ;;
48994084
49004085 solaris*)
4901 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4902 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4903 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4086 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4087 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4088 case $cc_basename in
4089 f77* | f90* | f95*)
4090 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4091 *)
4092 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4093 esac
49044094 ;;
49054095
49064096 sunos4*)
4907 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4908 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4909 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4910 ;;
4911
4912 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4913 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4914 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4915 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4097 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4098 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4099 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4100 ;;
4101
4102 sysv4 | sysv4.2uw2* | sysv4.3*)
4103 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4104 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4105 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
49164106 ;;
49174107
49184108 sysv4*MP*)
49194109 if test -d /usr/nec ;then
4920 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4921 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4110 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4111 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
49224112 fi
49234113 ;;
49244114
4115 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4116 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4117 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4118 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4119 ;;
4120
4121 unicos*)
4122 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4123 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4124 ;;
4125
49254126 uts4*)
4926 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4927 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4127 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4128 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
49284129 ;;
49294130
49304131 *)
4931 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4132 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
49324133 ;;
49334134 esac
49344135 fi
49354136 ])
4936 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4137 case $host_os in
4138 # For platforms which do not support PIC, -DPIC is meaningless:
4139 *djgpp*)
4140 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4141 ;;
4142 *)
4143 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4144 ;;
4145 esac
4146 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4147 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4148 [How to pass a linker flag through the compiler])
49374149
49384150 #
49394151 # Check to make sure the PIC flag actually works.
49404152 #
4941 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
4942 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
4943 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
4944 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
4945 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4153 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4154 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4155 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4156 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4157 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
49464158 "" | " "*) ;;
4947 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4159 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
49484160 esac],
4949 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4950 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4161 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4162 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
49514163 fi
4952 case "$host_os" in
4953 # For platforms which do not support PIC, -DPIC is meaningless:
4954 *djgpp*)
4955 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4956 ;;
4957 *)
4958 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4959 ;;
4960 esac
4961 ])
4962
4963
4964 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
4965 # ------------------------------------
4164 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4165 [Additional compiler flags for building library objects])
4166
4167 #
4168 # Check to make sure the static flag actually works.
4169 #
4170 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4171 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4172 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4173 $lt_tmp_static_flag,
4174 [],
4175 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4176 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4177 [Compiler flag to prevent dynamic linking])
4178 ])# _LT_COMPILER_PIC
4179
4180
4181 # _LT_LINKER_SHLIBS([TAGNAME])
4182 # ----------------------------
49664183 # See if the linker supports building shared libraries.
4967 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
4968 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4969 ifelse([$1],[CXX],[
4970 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4184 m4_defun([_LT_LINKER_SHLIBS],
4185 [AC_REQUIRE([LT_PATH_LD])dnl
4186 AC_REQUIRE([LT_PATH_NM])dnl
4187 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4188 m4_require([_LT_DECL_EGREP])dnl
4189 m4_require([_LT_DECL_SED])dnl
4190 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4191 m4_require([_LT_TAG_COMPILER])dnl
4192 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4193 m4_if([$1], [CXX], [
4194 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
49714195 case $host_os in
4972 aix4* | aix5*)
4196 aix[[4-9]]*)
49734197 # If we're using GNU nm, then we don't want the "-C" option.
49744198 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4975 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
4976 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4199 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4200 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
49774201 else
4978 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4202 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
49794203 fi
49804204 ;;
49814205 pw32*)
4982 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4983 ;;
4984 cygwin* | mingw*)
4985 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
4986 ;;
4987 linux*)
4988 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
4206 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4207 ;;
4208 cygwin* | mingw* | cegcc*)
4209 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4210 ;;
4211 linux* | k*bsd*-gnu)
4212 _LT_TAGVAR(link_all_deplibs, $1)=no
49894213 ;;
49904214 *)
4991 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4215 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
49924216 ;;
49934217 esac
4994 ],[
4218 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4219 ], [
49954220 runpath_var=
4996 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4997 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4998 _LT_AC_TAGVAR(archive_cmds, $1)=
4999 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5000 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5001 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5002 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5003 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5004 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5005 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5006 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5007 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5008 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5009 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5010 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5011 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5012 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5013 _LT_AC_TAGVAR(module_cmds, $1)=
5014 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5015 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5016 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4221 _LT_TAGVAR(allow_undefined_flag, $1)=
4222 _LT_TAGVAR(always_export_symbols, $1)=no
4223 _LT_TAGVAR(archive_cmds, $1)=
4224 _LT_TAGVAR(archive_expsym_cmds, $1)=
4225 _LT_TAGVAR(compiler_needs_object, $1)=no
4226 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4227 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4228 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4229 _LT_TAGVAR(hardcode_automatic, $1)=no
4230 _LT_TAGVAR(hardcode_direct, $1)=no
4231 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4232 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4233 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4234 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4235 _LT_TAGVAR(hardcode_minus_L, $1)=no
4236 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4237 _LT_TAGVAR(inherit_rpath, $1)=no
4238 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4239 _LT_TAGVAR(module_cmds, $1)=
4240 _LT_TAGVAR(module_expsym_cmds, $1)=
4241 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4242 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4243 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4244 _LT_TAGVAR(whole_archive_flag_spec, $1)=
50174245 # include_expsyms should be a list of space-separated symbols to be *always*
50184246 # included in the symbol list
5019 _LT_AC_TAGVAR(include_expsyms, $1)=
4247 _LT_TAGVAR(include_expsyms, $1)=
50204248 # exclude_expsyms can be an extended regexp of symbols to exclude
50214249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
50224250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
50234251 # as well as any symbol that contains `d'.
5024 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
4252 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
50254253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
50264254 # platforms (ab)use it in PIC code, but their linkers get confused if
50274255 # the symbol is explicitly referenced. Since portable code cannot
50284256 # rely on this symbol name, it's probably fine to never include it in
50294257 # preloaded symbol tables.
4258 # Exclude shared library initialization/finalization symbols.
4259 dnl Note also adjust exclude_expsyms for C++ above.
50304260 extract_expsyms_cmds=
50314261
50324262 case $host_os in
5033 cygwin* | mingw* | pw32*)
4263 cygwin* | mingw* | pw32* | cegcc*)
50344264 # FIXME: the MSVC++ port hasn't been tested in a loooong time
50354265 # When not using gcc, we currently assume that we are using
50364266 # Microsoft Visual C++.
50384268 with_gnu_ld=no
50394269 fi
50404270 ;;
4271 interix*)
4272 # we just hope/assume this is gcc and not c89 (= MSVC++)
4273 with_gnu_ld=yes
4274 ;;
50414275 openbsd*)
50424276 with_gnu_ld=no
50434277 ;;
4278 linux* | k*bsd*-gnu)
4279 _LT_TAGVAR(link_all_deplibs, $1)=no
4280 ;;
50444281 esac
50454282
5046 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4283 _LT_TAGVAR(ld_shlibs, $1)=yes
50474284 if test "$with_gnu_ld" = yes; then
50484285 # If archive_cmds runs LD, not CC, wlarc should be empty
50494286 wlarc='${wl}'
50504287
4288 # Set some defaults for GNU ld with shared library support. These
4289 # are reset later if shared libraries are not supported. Putting them
4290 # here allows them to be overridden if necessary.
4291 runpath_var=LD_RUN_PATH
4292 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4293 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4294 # ancient GNU ld didn't support --whole-archive et. al.
4295 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4296 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4297 else
4298 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4299 fi
4300 supports_anon_versioning=no
4301 case `$LD -v 2>&1` in
4302 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4303 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4304 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4305 *\ 2.11.*) ;; # other 2.11 versions
4306 *) supports_anon_versioning=yes ;;
4307 esac
4308
50514309 # See if GNU ld supports shared libraries.
50524310 case $host_os in
5053 aix3* | aix4* | aix5*)
4311 aix[[3-9]]*)
50544312 # On AIX/PPC, the GNU linker is very broken
50554313 if test "$host_cpu" != ia64; then
5056 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5057 cat <<EOF 1>&2
4314 _LT_TAGVAR(ld_shlibs, $1)=no
4315 cat <<_LT_EOF 1>&2
50584316
50594317 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
50604318 *** to be unable to reliably create shared libraries on AIX.
50624320 *** really care for shared libraries, you may want to modify your PATH
50634321 *** so that a non-GNU linker is found, and then restart.
50644322
5065 EOF
4323 _LT_EOF
50664324 fi
50674325 ;;
50684326
50694327 amigaos*)
5070 _LT_AC_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)'
5071 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5072 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5073
5074 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5075 # that the semantics of dynamic libraries on AmigaOS, at least up
5076 # to version 4, is to share data among multiple programs linked
5077 # with the same dynamic library. Since this doesn't match the
5078 # behavior of shared libraries on other platforms, we can't use
5079 # them.
5080 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4328 case $host_cpu in
4329 powerpc)
4330 # see comment about AmigaOS4 .so support
4331 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4332 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4333 ;;
4334 m68k)
4335 _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)'
4336 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4337 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4338 ;;
4339 esac
50814340 ;;
50824341
50834342 beos*)
5084 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5085 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4344 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
50864345 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
50874346 # support --undefined. This deserves some investigation. FIXME
5088 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4347 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
50894348 else
5090 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4349 _LT_TAGVAR(ld_shlibs, $1)=no
50914350 fi
50924351 ;;
50934352
5094 cygwin* | mingw* | pw32*)
5095 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4353 cygwin* | mingw* | pw32* | cegcc*)
4354 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
50964355 # as there is no search path for DLLs.
5097 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5098 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5099 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5100 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5101 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5102
5103 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5104 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4356 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4357 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4358 _LT_TAGVAR(always_export_symbols, $1)=no
4359 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4360 _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'
4361
4362 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4363 _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'
51054364 # If the export-symbols file already is a .def file (1st line
51064365 # is EXPORTS), use it as is; otherwise, prepend...
5107 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4366 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
51084367 cp $export_symbols $output_objdir/$soname.def;
51094368 else
51104369 echo EXPORTS > $output_objdir/$soname.def;
51114370 cat $export_symbols >> $output_objdir/$soname.def;
51124371 fi~
5113 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4372 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
51144373 else
5115 ld_shlibs=no
4374 _LT_TAGVAR(ld_shlibs, $1)=no
51164375 fi
51174376 ;;
51184377
5119 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5121 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4378 interix[[3-9]]*)
4379 _LT_TAGVAR(hardcode_direct, $1)=no
4380 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4381 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4382 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4383 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4384 # Instead, shared libraries are loaded at an image base (0x10000000 by
4385 # default) and relocated if they conflict, which is a slow very memory
4386 # consuming and fragmenting process. To avoid this, we pick a random,
4387 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4388 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4389 _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'
4390 _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'
4391 ;;
4392
4393 gnu* | linux* | tpf* | k*bsd*-gnu)
4394 tmp_diet=no
4395 if test "$host_os" = linux-dietlibc; then
4396 case $cc_basename in
4397 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4398 esac
4399 fi
4400 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4401 && test "$tmp_diet" = no
4402 then
4403 tmp_addflag=
4404 tmp_sharedflag='-shared'
4405 case $cc_basename,$host_cpu in
4406 pgcc*) # Portland Group C compiler
4407 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4408 tmp_addflag=' $pic_flag'
4409 ;;
4410 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4411 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4412 tmp_addflag=' $pic_flag -Mnomain' ;;
4413 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4414 tmp_addflag=' -i_dynamic' ;;
4415 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4416 tmp_addflag=' -i_dynamic -nofor_main' ;;
4417 ifc* | ifort*) # Intel Fortran compiler
4418 tmp_addflag=' -nofor_main' ;;
4419 lf95*) # Lahey Fortran 8.1
4420 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4421 tmp_sharedflag='--shared' ;;
4422 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4423 tmp_sharedflag='-qmkshrobj'
4424 tmp_addflag= ;;
4425 esac
4426 case `$CC -V 2>&1 | sed 5q` in
4427 *Sun\ C*) # Sun C 5.9
4428 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4429 _LT_TAGVAR(compiler_needs_object, $1)=yes
4430 tmp_sharedflag='-G' ;;
4431 *Sun\ F*) # Sun Fortran 8.3
4432 tmp_sharedflag='-G' ;;
4433 esac
4434 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4435
4436 if test "x$supports_anon_versioning" = xyes; then
4437 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4438 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4439 echo "local: *; };" >> $output_objdir/$libname.ver~
4440 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4441 fi
4442
4443 case $cc_basename in
4444 xlf*)
4445 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4446 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4447 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4448 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4449 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4450 if test "x$supports_anon_versioning" = xyes; then
4451 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4453 echo "local: *; };" >> $output_objdir/$libname.ver~
4454 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4455 fi
4456 ;;
4457 esac
4458 else
4459 _LT_TAGVAR(ld_shlibs, $1)=no
4460 fi
4461 ;;
4462
4463 netbsd* | netbsdelf*-gnu)
4464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4465 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
51224466 wlarc=
51234467 else
5124 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5125 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4468 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4469 _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'
51264470 fi
51274471 ;;
51284472
5129 solaris* | sysv5*)
5130 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5131 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5132 cat <<EOF 1>&2
4473 solaris*)
4474 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4475 _LT_TAGVAR(ld_shlibs, $1)=no
4476 cat <<_LT_EOF 1>&2
51334477
51344478 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
51354479 *** create shared libraries on Solaris systems. Therefore, libtool
51384482 *** your PATH or compiler configuration so that the native linker is
51394483 *** used, and then restart.
51404484
5141 EOF
5142 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5143 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5144 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4485 _LT_EOF
4486 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4487 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4488 _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'
51454489 else
5146 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4490 _LT_TAGVAR(ld_shlibs, $1)=no
51474491 fi
51484492 ;;
51494493
4494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4495 case `$LD -v 2>&1` in
4496 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4497 _LT_TAGVAR(ld_shlibs, $1)=no
4498 cat <<_LT_EOF 1>&2
4499
4500 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4501 *** reliably create shared libraries on SCO systems. Therefore, libtool
4502 *** is disabling shared libraries support. We urge you to upgrade GNU
4503 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4504 *** your PATH or compiler configuration so that the native linker is
4505 *** used, and then restart.
4506
4507 _LT_EOF
4508 ;;
4509 *)
4510 # For security reasons, it is highly recommended that you always
4511 # use absolute paths for naming shared libraries, and exclude the
4512 # DT_RUNPATH tag from executables and libraries. But doing so
4513 # requires that you compile everything twice, which is a pain.
4514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4515 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4516 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4517 _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'
4518 else
4519 _LT_TAGVAR(ld_shlibs, $1)=no
4520 fi
4521 ;;
4522 esac
4523 ;;
4524
51504525 sunos4*)
5151 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4526 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
51524527 wlarc=
5153 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5154 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5155 ;;
5156
5157 linux*)
5158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5159 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5160 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5161 supports_anon_versioning=no
5162 case `$LD -v 2>/dev/null` in
5163 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5164 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5165 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5166 *\ 2.11.*) ;; # other 2.11 versions
5167 *) supports_anon_versioning=yes ;;
5168 esac
5169 if test $supports_anon_versioning = yes; then
5170 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5172 $echo "local: *; };" >> $output_objdir/$libname.ver~
5173 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4528 _LT_TAGVAR(hardcode_direct, $1)=yes
4529 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4530 ;;
4531
4532 *)
4533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4534 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4535 _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'
51744536 else
5175 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
4537 _LT_TAGVAR(ld_shlibs, $1)=no
51764538 fi
5177 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5178 else
5179 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5180 fi
5181 ;;
5182
5183 *)
5184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5185 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5186 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5187 else
5188 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5189 fi
51904539 ;;
51914540 esac
51924541
5193 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
5194 runpath_var=LD_RUN_PATH
5195 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5196 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5197 # ancient GNU ld didn't support --whole-archive et. al.
5198 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5199 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5200 else
5201 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5202 fi
4542 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4543 runpath_var=
4544 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4545 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4546 _LT_TAGVAR(whole_archive_flag_spec, $1)=
52034547 fi
52044548 else
52054549 # PORTME fill in a description of your system's linker (not GNU ld)
52064550 case $host_os in
52074551 aix3*)
5208 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5209 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5210 _LT_AC_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'
4552 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4553 _LT_TAGVAR(always_export_symbols, $1)=yes
4554 _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'
52114555 # Note: this linker hardcodes the directories in LIBPATH if there
52124556 # are no directories specified by -L.
5213 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5214 if test "$GCC" = yes && test -z "$link_static_flag"; then
4557 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4558 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
52154559 # Neither direct hardcoding nor static linking is supported with a
52164560 # broken collect2.
5217 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4561 _LT_TAGVAR(hardcode_direct, $1)=unsupported
52184562 fi
52194563 ;;
52204564
5221 aix4* | aix5*)
4565 aix[[4-9]]*)
52224566 if test "$host_cpu" = ia64; then
52234567 # On IA64, the linker does run time linking by default, so we don't
52244568 # have to do anything special.
52284572 else
52294573 # If we're using GNU nm, then we don't want the "-C" option.
52304574 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5231 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5232 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4575 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4576 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
52334577 else
5234 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4578 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
52354579 fi
52364580 aix_use_runtimelinking=no
52374581
52384582 # Test if we are trying to use run time linking or normal
52394583 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
52404584 # need to do runtime linking.
5241 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
4585 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
52424586 for ld_flag in $LDFLAGS; do
5243 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5244 aix_use_runtimelinking=yes
5245 break
5246 fi
4587 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4588 aix_use_runtimelinking=yes
4589 break
4590 fi
52474591 done
4592 ;;
52484593 esac
52494594
52504595 exp_sym_flag='-bexport'
52574602 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
52584603 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
52594604
5260 _LT_AC_TAGVAR(archive_cmds, $1)=''
5261 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5262 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5263 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4605 _LT_TAGVAR(archive_cmds, $1)=''
4606 _LT_TAGVAR(hardcode_direct, $1)=yes
4607 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4608 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4609 _LT_TAGVAR(link_all_deplibs, $1)=yes
4610 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
52644611
52654612 if test "$GCC" = yes; then
5266 case $host_os in aix4.[012]|aix4.[012].*)
4613 case $host_os in aix4.[[012]]|aix4.[[012]].*)
52674614 # We only want to do this on AIX 4.2 and lower, the check
52684615 # below for broken collect2 doesn't work under 4.3+
52694616 collect2name=`${CC} -print-prog-name=collect2`
5270 if test -f "$collect2name" && \
5271 strings "$collect2name" | grep resolve_lib_name >/dev/null
4617 if test -f "$collect2name" &&
4618 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
52724619 then
5273 # We have reworked collect2
5274 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4620 # We have reworked collect2
4621 :
52754622 else
5276 # We have old collect2
5277 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5278 # It fails to find uninstalled libraries when the uninstalled
5279 # path is not listed in the libpath. Setting hardcode_minus_L
5280 # to unsupported forces relinking
5281 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5282 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5283 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4623 # We have old collect2
4624 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4625 # It fails to find uninstalled libraries when the uninstalled
4626 # path is not listed in the libpath. Setting hardcode_minus_L
4627 # to unsupported forces relinking
4628 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4629 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4630 _LT_TAGVAR(hardcode_libdir_separator, $1)=
52844631 fi
4632 ;;
52854633 esac
52864634 shared_flag='-shared'
4635 if test "$aix_use_runtimelinking" = yes; then
4636 shared_flag="$shared_flag "'${wl}-G'
4637 fi
4638 _LT_TAGVAR(link_all_deplibs, $1)=no
52874639 else
52884640 # not using gcc
52894641 if test "$host_cpu" = ia64; then
5290 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5291 # chokes on -Wl,-G. The following line is correct:
4642 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4643 # chokes on -Wl,-G. The following line is correct:
52924644 shared_flag='-G'
52934645 else
5294 if test "$aix_use_runtimelinking" = yes; then
4646 if test "$aix_use_runtimelinking" = yes; then
52954647 shared_flag='${wl}-G'
52964648 else
52974649 shared_flag='${wl}-bM:SRE'
5298 fi
4650 fi
52994651 fi
53004652 fi
53014653
4654 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
53024655 # It seems that -bexpall does not export symbols beginning with
53034656 # underscore (_), so it is better to generate a list of symbols to export.
5304 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4657 _LT_TAGVAR(always_export_symbols, $1)=yes
53054658 if test "$aix_use_runtimelinking" = yes; then
53064659 # Warning - without using the other runtime loading flags (-brtl),
53074660 # -berok will link without error, but may produce a broken library.
5308 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5309 # Determine the default libpath from the value encoded in an empty executable.
5310 _LT_AC_SYS_LIBPATH_AIX
5311 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5312 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5313 else
4661 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4662 # Determine the default libpath from the value encoded in an
4663 # empty executable.
4664 _LT_SYS_MODULE_PATH_AIX
4665 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4666 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4667 else
53144668 if test "$host_cpu" = ia64; then
5315 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5316 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5317 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4670 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4671 _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"
53184672 else
5319 # Determine the default libpath from the value encoded in an empty executable.
5320 _LT_AC_SYS_LIBPATH_AIX
5321 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4673 # Determine the default libpath from the value encoded in an
4674 # empty executable.
4675 _LT_SYS_MODULE_PATH_AIX
4676 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
53224677 # Warning - without using the other run time loading flags,
53234678 # -berok will link without error, but may produce a broken library.
5324 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5325 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5326 # -bexpall does not export symbols beginning with underscore (_)
5327 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4679 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4680 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
53284681 # Exported symbols can be pulled into shared objects from archives
5329 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5330 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5331 # This is similar to how AIX traditionally builds it's shared libraries.
5332 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4682 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4683 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4684 # This is similar to how AIX traditionally builds its shared libraries.
4685 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
53334686 fi
53344687 fi
53354688 ;;
53364689
53374690 amigaos*)
5338 _LT_AC_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)'
5339 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5340 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5341 # see comment about different semantics on the GNU ld section
5342 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5343 ;;
5344
5345 bsdi4*)
5346 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5347 ;;
5348
5349 cygwin* | mingw* | pw32*)
4691 case $host_cpu in
4692 powerpc)
4693 # see comment about AmigaOS4 .so support
4694 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4695 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4696 ;;
4697 m68k)
4698 _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)'
4699 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4700 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4701 ;;
4702 esac
4703 ;;
4704
4705 bsdi[[45]]*)
4706 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4707 ;;
4708
4709 cygwin* | mingw* | pw32* | cegcc*)
53504710 # When not using gcc, we currently assume that we are using
53514711 # Microsoft Visual C++.
53524712 # hardcode_libdir_flag_spec is actually meaningless, as there is
53534713 # no search path for DLLs.
5354 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5355 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4714 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4715 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
53564716 # Tell ltmain to make .lib files, not .a files.
53574717 libext=lib
53584718 # Tell ltmain to make .dll files, not .so files.
53594719 shrext_cmds=".dll"
53604720 # FIXME: Setting linknames here is a bad hack.
5361 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
4721 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
53624722 # The linker will automatically build a .lib file if we build a DLL.
5363 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
4723 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
53644724 # FIXME: Should let the user specify the lib program.
5365 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5366 fix_srcfile_path='`cygpath -w "$srcfile"`'
5367 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4725 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4726 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4727 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
53684728 ;;
53694729
53704730 darwin* | rhapsody*)
5371 if test "$GXX" = yes ; then
5372 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5373 case "$host_os" in
5374 rhapsody* | darwin1.[[012]])
5375 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5376 ;;
5377 *) # Darwin 1.3 on
5378 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5379 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5380 else
5381 case ${MACOSX_DEPLOYMENT_TARGET} in
5382 10.[[012]])
5383 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5384 ;;
5385 10.*)
5386 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
5387 ;;
5388 esac
5389 fi
5390 ;;
5391 esac
5392 lt_int_apple_cc_single_mod=no
5393 output_verbose_link_cmd='echo'
5394 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5395 lt_int_apple_cc_single_mod=yes
5396 fi
5397 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5398 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5399 else
5400 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
5401 fi
5402 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5403 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5404 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5405 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5406 else
5407 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5408 fi
5409 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5410 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5411 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5412 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5413 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5414 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5415 else
5416 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5417 fi
4731 _LT_DARWIN_LINKER_FEATURES($1)
54184732 ;;
54194733
54204734 dgux*)
5421 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5422 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5423 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4735 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4736 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4737 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
54244738 ;;
54254739
54264740 freebsd1*)
5427 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4741 _LT_TAGVAR(ld_shlibs, $1)=no
54284742 ;;
54294743
54304744 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
54324746 # does not break anything, and helps significantly (at the cost of a little
54334747 # extra space).
54344748 freebsd2.2*)
5435 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5436 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5437 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5438 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4749 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4750 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4751 _LT_TAGVAR(hardcode_direct, $1)=yes
4752 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
54394753 ;;
54404754
54414755 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
54424756 freebsd2*)
5443 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5444 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5445 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5446 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4757 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4758 _LT_TAGVAR(hardcode_direct, $1)=yes
4759 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4760 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
54474761 ;;
54484762
54494763 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5450 freebsd* | kfreebsd*-gnu)
5451 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5452 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5453 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5454 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4764 freebsd* | dragonfly*)
4765 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4766 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4767 _LT_TAGVAR(hardcode_direct, $1)=yes
4768 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
54554769 ;;
54564770
54574771 hpux9*)
54584772 if test "$GCC" = yes; then
5459 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4773 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
54604774 else
5461 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4775 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
54624776 fi
5463 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5464 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5465 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4777 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4778 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4779 _LT_TAGVAR(hardcode_direct, $1)=yes
54664780
54674781 # hardcode_minus_L: Not really in the search PATH,
54684782 # but as the default location of the library.
5469 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5470 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5471 ;;
5472
5473 hpux10* | hpux11*)
4783 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4784 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4785 ;;
4786
4787 hpux10*)
54744788 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5475 case "$host_cpu" in
5476 hppa*64*|ia64*)
5477 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4789 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4790 else
4791 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4792 fi
4793 if test "$with_gnu_ld" = no; then
4794 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4795 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4796 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4797 _LT_TAGVAR(hardcode_direct, $1)=yes
4798 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4799 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4800 # hardcode_minus_L: Not really in the search PATH,
4801 # but as the default location of the library.
4802 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4803 fi
4804 ;;
4805
4806 hpux11*)
4807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4808 case $host_cpu in
4809 hppa*64*)
4810 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4811 ;;
4812 ia64*)
4813 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
54784814 ;;
54794815 *)
5480 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4816 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
54814817 ;;
54824818 esac
54834819 else
5484 case "$host_cpu" in
5485 hppa*64*|ia64*)
5486 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
4820 case $host_cpu in
4821 hppa*64*)
4822 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4823 ;;
4824 ia64*)
4825 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
54874826 ;;
54884827 *)
5489 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4828 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
54904829 ;;
54914830 esac
54924831 fi
54934832 if test "$with_gnu_ld" = no; then
5494 case "$host_cpu" in
5495 hppa*64*)
5496 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5497 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5498 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5499 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5500 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4833 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4834 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4835
4836 case $host_cpu in
4837 hppa*64*|ia64*)
4838 _LT_TAGVAR(hardcode_direct, $1)=no
4839 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
55014840 ;;
5502 ia64*)
5503 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5504 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5505 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4841 *)
4842 _LT_TAGVAR(hardcode_direct, $1)=yes
4843 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4844 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
55064845
55074846 # hardcode_minus_L: Not really in the search PATH,
55084847 # but as the default location of the library.
5509 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5510 ;;
5511 *)
5512 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5513 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5514 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5515 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5516
5517 # hardcode_minus_L: Not really in the search PATH,
5518 # but as the default location of the library.
5519 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4848 _LT_TAGVAR(hardcode_minus_L, $1)=yes
55204849 ;;
55214850 esac
55224851 fi
55244853
55254854 irix5* | irix6* | nonstopux*)
55264855 if test "$GCC" = yes; then
5527 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4856 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4857 # Try to use the -exported_symbol ld option, if it does not
4858 # work, assume that -exports_file does not work either and
4859 # implicitly export all symbols.
4860 save_LDFLAGS="$LDFLAGS"
4861 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4862 AC_LINK_IFELSE(int foo(void) {},
4863 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4864 )
4865 LDFLAGS="$save_LDFLAGS"
55284866 else
5529 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5530 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4867 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4868 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
55314869 fi
5532 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5533 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5534 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5535 ;;
5536
5537 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5539 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4870 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4871 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4872 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4873 _LT_TAGVAR(inherit_rpath, $1)=yes
4874 _LT_TAGVAR(link_all_deplibs, $1)=yes
4875 ;;
4876
4877 netbsd* | netbsdelf*-gnu)
4878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4879 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
55404880 else
5541 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4881 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
55424882 fi
5543 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5544 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5545 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4883 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4884 _LT_TAGVAR(hardcode_direct, $1)=yes
4885 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
55464886 ;;
55474887
55484888 newsos6)
5549 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5550 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5551 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5552 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5553 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4889 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4890 _LT_TAGVAR(hardcode_direct, $1)=yes
4891 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4892 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4893 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4894 ;;
4895
4896 *nto* | *qnx*)
55544897 ;;
55554898
55564899 openbsd*)
5557 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5558 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5560 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5561 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5562 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4900 if test -f /usr/libexec/ld.so; then
4901 _LT_TAGVAR(hardcode_direct, $1)=yes
4902 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4903 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4904 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4905 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4906 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4907 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4908 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4909 else
4910 case $host_os in
4911 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4912 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4914 ;;
4915 *)
4916 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4917 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4918 ;;
4919 esac
4920 fi
55634921 else
5564 case $host_os in
5565 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5566 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5567 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5568 ;;
5569 *)
5570 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5571 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5572 ;;
5573 esac
4922 _LT_TAGVAR(ld_shlibs, $1)=no
55744923 fi
55754924 ;;
55764925
55774926 os2*)
5578 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5579 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5580 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5581 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5582 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4927 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4928 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4929 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4930 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4931 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
55834932 ;;
55844933
55854934 osf3*)
55864935 if test "$GCC" = yes; then
5587 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5588 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4936 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4937 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
55894938 else
5590 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5591 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4939 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4940 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
55924941 fi
5593 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5594 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4942 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4944 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
55954945 ;;
55964946
55974947 osf4* | osf5*) # as osf3* with the addition of -msym flag
55984948 if test "$GCC" = yes; then
5599 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5600 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5601 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4949 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4950 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4951 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
56024952 else
5603 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5604 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5605 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5606 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4953 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4954 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4955 _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~
4956 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
56074957
56084958 # Both c and cxx compiler support -rpath directly
5609 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4959 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
56104960 fi
5611 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5612 ;;
5613
5614 sco3.2v5*)
5615 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5616 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5617 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5618 runpath_var=LD_RUN_PATH
5619 hardcode_runpath_var=yes
4961 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4962 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
56204963 ;;
56214964
56224965 solaris*)
5623 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4966 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
56244967 if test "$GCC" = yes; then
5625 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5626 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5627 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4968 wlarc='${wl}'
4969 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4970 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4971 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
56284972 else
5629 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5630 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5631 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4973 case `$CC -V 2>&1` in
4974 *"Compilers 5.0"*)
4975 wlarc=''
4976 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4977 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4978 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4979 ;;
4980 *)
4981 wlarc='${wl}'
4982 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4983 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4984 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4985 ;;
4986 esac
56324987 fi
5633 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5634 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4988 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4989 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
56354990 case $host_os in
56364991 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5637 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5638 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
4992 *)
4993 # The compiler driver will combine and reorder linker options,
4994 # but understands `-z linker_flag'. GCC discards it without `$wl',
4995 # but is careful enough not to reorder.
4996 # Supported since Solaris 2.6 (maybe 2.5.1?)
4997 if test "$GCC" = yes; then
4998 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4999 else
5000 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5001 fi
5002 ;;
56395003 esac
5640 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5004 _LT_TAGVAR(link_all_deplibs, $1)=yes
56415005 ;;
56425006
56435007 sunos4*)
56445008 if test "x$host_vendor" = xsequent; then
56455009 # Use $CC to link under sequent, because it throws in some extra .o
56465010 # files that make .init and .fini sections work.
5647 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5011 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
56485012 else
5649 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5013 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
56505014 fi
5651 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5652 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5653 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5654 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5015 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5016 _LT_TAGVAR(hardcode_direct, $1)=yes
5017 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5018 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
56555019 ;;
56565020
56575021 sysv4)
56585022 case $host_vendor in
56595023 sni)
5660 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5661 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5024 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5025 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
56625026 ;;
56635027 siemens)
56645028 ## LD is ld it makes a PLAMLIB
56655029 ## CC just makes a GrossModule.
5666 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5667 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5668 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5030 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5031 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5032 _LT_TAGVAR(hardcode_direct, $1)=no
56695033 ;;
56705034 motorola)
5671 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5672 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5035 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5036 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
56735037 ;;
56745038 esac
56755039 runpath_var='LD_RUN_PATH'
5676 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5040 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
56775041 ;;
56785042
56795043 sysv4.3*)
5680 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5681 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5682 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5044 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5045 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5046 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
56835047 ;;
56845048
56855049 sysv4*MP*)
56865050 if test -d /usr/nec; then
5687 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5688 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5051 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5052 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
56895053 runpath_var=LD_RUN_PATH
56905054 hardcode_runpath_var=yes
5691 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5055 _LT_TAGVAR(ld_shlibs, $1)=yes
56925056 fi
56935057 ;;
56945058
5695 sysv4.2uw2*)
5696 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5697 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5698 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5699 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5700 hardcode_runpath_var=yes
5701 runpath_var=LD_RUN_PATH
5702 ;;
5703
5704 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5705 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5060 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5061 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5062 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5063 runpath_var='LD_RUN_PATH'
5064
57065065 if test "$GCC" = yes; then
5707 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5066 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5067 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57085068 else
5709 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5069 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5070 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57105071 fi
5072 ;;
5073
5074 sysv5* | sco3.2v5* | sco5v6*)
5075 # Note: We can NOT use -z defs as we might desire, because we do not
5076 # link with -lc, and that would cause any symbols used from libc to
5077 # always be unresolved, which means just about no library would
5078 # ever link correctly. If we're not using GNU ld we use -z text
5079 # though, which does catch some bad symbols but isn't as heavy-handed
5080 # as -z defs.
5081 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5082 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5083 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5084 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5085 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5086 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5087 _LT_TAGVAR(link_all_deplibs, $1)=yes
5088 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
57115089 runpath_var='LD_RUN_PATH'
5712 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5713 ;;
5714
5715 sysv5*)
5716 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5717 # $CC -shared without GNU ld will not create a library from C++
5718 # object files and a static libstdc++, better avoid it by now
5719 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5720 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5721 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5722 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5723 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5724 runpath_var='LD_RUN_PATH'
5090
5091 if test "$GCC" = yes; then
5092 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5093 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5094 else
5095 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5096 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5097 fi
57255098 ;;
57265099
57275100 uts4*)
5728 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5729 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5730 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5101 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5102 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5103 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
57315104 ;;
57325105
57335106 *)
5734 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5107 _LT_TAGVAR(ld_shlibs, $1)=no
57355108 ;;
57365109 esac
5110
5111 if test x$host_vendor = xsni; then
5112 case $host in
5113 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5114 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5115 ;;
5116 esac
5117 fi
57375118 fi
57385119 ])
5739 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5740 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5741
5742 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5743 if test "$GCC" = yes; then
5744 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5745 fi
5120 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5121 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5122
5123 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5124
5125 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5126 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5127 _LT_DECL([], [extract_expsyms_cmds], [2],
5128 [The commands to extract the exported symbol list from a shared archive])
57465129
57475130 #
57485131 # Do we need to explicitly link libc?
57495132 #
5750 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
5133 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
57515134 x|xyes)
57525135 # Assume -lc should be added
5753 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5136 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
57545137
57555138 if test "$enable_shared" = yes && test "$GCC" = yes; then
5756 case $_LT_AC_TAGVAR(archive_cmds, $1) in
5139 case $_LT_TAGVAR(archive_cmds, $1) in
57575140 *'~'*)
57585141 # FIXME: we may have to deal with multi-command sequences.
57595142 ;;
57625145 # systems, -lgcc has to come before -lc. If gcc already passes -lc
57635146 # to ld, don't add -lc before -lgcc.
57645147 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5765 $rm conftest*
5766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5148 $RM conftest*
5149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
57675150
57685151 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
57695152 soname=conftest
57705153 lib=conftest
57715154 libobjs=conftest.$ac_objext
57725155 deplibs=
5773 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5156 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5157 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
57745158 compiler_flags=-v
57755159 linker_flags=-v
57765160 verstring=
57775161 output_objdir=.
57785162 libname=conftest
5779 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
5780 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5781 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5163 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5164 _LT_TAGVAR(allow_undefined_flag, $1)=
5165 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
57825166 then
5783 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5167 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
57845168 else
5785 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5169 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
57865170 fi
5787 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5171 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
57885172 else
57895173 cat conftest.err 1>&5
57905174 fi
5791 $rm conftest*
5792 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5175 $RM conftest*
5176 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
57935177 ;;
57945178 esac
57955179 fi
57965180 ;;
57975181 esac
5798 ])# AC_LIBTOOL_PROG_LD_SHLIBS
5799
5800
5801 # _LT_AC_FILE_LTDLL_C
5802 # -------------------
5803 # Be careful that the start marker always follows a newline.
5804 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
5805 # /* ltdll.c starts here */
5806 # #define WIN32_LEAN_AND_MEAN
5807 # #include <windows.h>
5808 # #undef WIN32_LEAN_AND_MEAN
5809 # #include <stdio.h>
5810 #
5811 # #ifndef __CYGWIN__
5812 # # ifdef __CYGWIN32__
5813 # # define __CYGWIN__ __CYGWIN32__
5814 # # endif
5815 # #endif
5816 #
5817 # #ifdef __cplusplus
5818 # extern "C" {
5819 # #endif
5820 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5821 # #ifdef __cplusplus
5822 # }
5823 # #endif
5824 #
5825 # #ifdef __CYGWIN__
5826 # #include <cygwin/cygwin_dll.h>
5827 # DECLARE_CYGWIN_DLL( DllMain );
5828 # #endif
5829 # HINSTANCE __hDllInstance_base;
5830 #
5831 # BOOL APIENTRY
5832 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5833 # {
5834 # __hDllInstance_base = hInst;
5835 # return TRUE;
5836 # }
5837 # /* ltdll.c ends here */
5838 ])# _LT_AC_FILE_LTDLL_C
5839
5840
5841 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5182
5183 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5184 [Whether or not to add -lc for building shared libraries])
5185 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5186 [enable_shared_with_static_runtimes], [0],
5187 [Whether or not to disallow shared libs when runtime libs are static])
5188 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5189 [Compiler flag to allow reflexive dlopens])
5190 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5191 [Compiler flag to generate shared objects directly from archives])
5192 _LT_TAGDECL([], [compiler_needs_object], [1],
5193 [Whether the compiler copes with passing no objects directly])
5194 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5195 [Create an old-style archive from a shared archive])
5196 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5197 [Create a temporary old-style archive to link instead of a shared archive])
5198 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5199 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5200 _LT_TAGDECL([], [module_cmds], [2],
5201 [Commands used to build a loadable module if different from building
5202 a shared archive.])
5203 _LT_TAGDECL([], [module_expsym_cmds], [2])
5204 _LT_TAGDECL([], [with_gnu_ld], [1],
5205 [Whether we are building with GNU ld or not])
5206 _LT_TAGDECL([], [allow_undefined_flag], [1],
5207 [Flag that allows shared libraries with undefined symbols to be built])
5208 _LT_TAGDECL([], [no_undefined_flag], [1],
5209 [Flag that enforces no undefined symbols])
5210 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5211 [Flag to hardcode $libdir into a binary during linking.
5212 This must work even if $libdir does not exist])
5213 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5214 [[If ld is used when linking, flag to hardcode $libdir into a binary
5215 during linking. This must work even if $libdir does not exist]])
5216 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5217 [Whether we need a single "-rpath" flag with a separated argument])
5218 _LT_TAGDECL([], [hardcode_direct], [0],
5219 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5220 DIR into the resulting binary])
5221 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5222 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5223 DIR into the resulting binary and the resulting library dependency is
5224 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5225 library is relocated])
5226 _LT_TAGDECL([], [hardcode_minus_L], [0],
5227 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5228 into the resulting binary])
5229 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5230 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5231 into the resulting binary])
5232 _LT_TAGDECL([], [hardcode_automatic], [0],
5233 [Set to "yes" if building a shared library automatically hardcodes DIR
5234 into the library and all subsequent libraries and executables linked
5235 against it])
5236 _LT_TAGDECL([], [inherit_rpath], [0],
5237 [Set to yes if linker adds runtime paths of dependent libraries
5238 to runtime path list])
5239 _LT_TAGDECL([], [link_all_deplibs], [0],
5240 [Whether libtool must link a program against all its dependency libraries])
5241 _LT_TAGDECL([], [fix_srcfile_path], [1],
5242 [Fix the shell variable $srcfile for the compiler])
5243 _LT_TAGDECL([], [always_export_symbols], [0],
5244 [Set to "yes" if exported symbols are required])
5245 _LT_TAGDECL([], [export_symbols_cmds], [2],
5246 [The commands to list exported symbols])
5247 _LT_TAGDECL([], [exclude_expsyms], [1],
5248 [Symbols that should not be listed in the preloaded symbols])
5249 _LT_TAGDECL([], [include_expsyms], [1],
5250 [Symbols that must always be exported])
5251 _LT_TAGDECL([], [prelink_cmds], [2],
5252 [Commands necessary for linking programs (against libraries) with templates])
5253 _LT_TAGDECL([], [file_list_spec], [1],
5254 [Specify filename containing input files])
5255 dnl FIXME: Not yet implemented
5256 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5257 dnl [Compiler flag to generate thread safe objects])
5258 ])# _LT_LINKER_SHLIBS
5259
5260
5261 # _LT_LANG_C_CONFIG([TAG])
5262 # ------------------------
5263 # Ensure that the configuration variables for a C compiler are suitably
5264 # defined. These variables are subsequently used by _LT_CONFIG to write
5265 # the compiler configuration to `libtool'.
5266 m4_defun([_LT_LANG_C_CONFIG],
5267 [m4_require([_LT_DECL_EGREP])dnl
5268 lt_save_CC="$CC"
5269 AC_LANG_PUSH(C)
5270
5271 # Source file extension for C test sources.
5272 ac_ext=c
5273
5274 # Object file extension for compiled C test sources.
5275 objext=o
5276 _LT_TAGVAR(objext, $1)=$objext
5277
5278 # Code to be used in simple compile tests
5279 lt_simple_compile_test_code="int some_variable = 0;"
5280
5281 # Code to be used in simple link tests
5282 lt_simple_link_test_code='int main(){return(0);}'
5283
5284 _LT_TAG_COMPILER
5285 # Save the default compiler, since it gets overwritten when the other
5286 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5287 compiler_DEFAULT=$CC
5288
5289 # save warnings/boilerplate of simple test code
5290 _LT_COMPILER_BOILERPLATE
5291 _LT_LINKER_BOILERPLATE
5292
5293 if test -n "$compiler"; then
5294 _LT_COMPILER_NO_RTTI($1)
5295 _LT_COMPILER_PIC($1)
5296 _LT_COMPILER_C_O($1)
5297 _LT_COMPILER_FILE_LOCKS($1)
5298 _LT_LINKER_SHLIBS($1)
5299 _LT_SYS_DYNAMIC_LINKER($1)
5300 _LT_LINKER_HARDCODE_LIBPATH($1)
5301 LT_SYS_DLOPEN_SELF
5302 _LT_CMD_STRIPLIB
5303
5304 # Report which library types will actually be built
5305 AC_MSG_CHECKING([if libtool supports shared libraries])
5306 AC_MSG_RESULT([$can_build_shared])
5307
5308 AC_MSG_CHECKING([whether to build shared libraries])
5309 test "$can_build_shared" = "no" && enable_shared=no
5310
5311 # On AIX, shared libraries and static libraries use the same namespace, and
5312 # are all built from PIC.
5313 case $host_os in
5314 aix3*)
5315 test "$enable_shared" = yes && enable_static=no
5316 if test -n "$RANLIB"; then
5317 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5318 postinstall_cmds='$RANLIB $lib'
5319 fi
5320 ;;
5321
5322 aix[[4-9]]*)
5323 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5324 test "$enable_shared" = yes && enable_static=no
5325 fi
5326 ;;
5327 esac
5328 AC_MSG_RESULT([$enable_shared])
5329
5330 AC_MSG_CHECKING([whether to build static libraries])
5331 # Make sure either enable_shared or enable_static is yes.
5332 test "$enable_shared" = yes || enable_static=yes
5333 AC_MSG_RESULT([$enable_static])
5334
5335 _LT_CONFIG($1)
5336 fi
5337 AC_LANG_POP
5338 CC="$lt_save_CC"
5339 ])# _LT_LANG_C_CONFIG
5340
5341
5342 # _LT_PROG_CXX
5343 # ------------
5344 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5345 # compiler, we have our own version here.
5346 m4_defun([_LT_PROG_CXX],
5347 [
5348 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5349 AC_PROG_CXX
5350 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5351 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5352 (test "X$CXX" != "Xg++"))) ; then
5353 AC_PROG_CXXCPP
5354 else
5355 _lt_caught_CXX_error=yes
5356 fi
5357 popdef([AC_MSG_ERROR])
5358 ])# _LT_PROG_CXX
5359
5360 dnl aclocal-1.4 backwards compatibility:
5361 dnl AC_DEFUN([_LT_PROG_CXX], [])
5362
5363
5364 # _LT_LANG_CXX_CONFIG([TAG])
5365 # --------------------------
5366 # Ensure that the configuration variables for a C++ compiler are suitably
5367 # defined. These variables are subsequently used by _LT_CONFIG to write
5368 # the compiler configuration to `libtool'.
5369 m4_defun([_LT_LANG_CXX_CONFIG],
5370 [AC_REQUIRE([_LT_PROG_CXX])dnl
5371 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5372 m4_require([_LT_DECL_EGREP])dnl
5373
5374 AC_LANG_PUSH(C++)
5375 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5376 _LT_TAGVAR(allow_undefined_flag, $1)=
5377 _LT_TAGVAR(always_export_symbols, $1)=no
5378 _LT_TAGVAR(archive_expsym_cmds, $1)=
5379 _LT_TAGVAR(compiler_needs_object, $1)=no
5380 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5381 _LT_TAGVAR(hardcode_direct, $1)=no
5382 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5383 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5384 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5385 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5386 _LT_TAGVAR(hardcode_minus_L, $1)=no
5387 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5388 _LT_TAGVAR(hardcode_automatic, $1)=no
5389 _LT_TAGVAR(inherit_rpath, $1)=no
5390 _LT_TAGVAR(module_cmds, $1)=
5391 _LT_TAGVAR(module_expsym_cmds, $1)=
5392 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5393 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5394 _LT_TAGVAR(no_undefined_flag, $1)=
5395 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5396 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5397
5398 # Source file extension for C++ test sources.
5399 ac_ext=cpp
5400
5401 # Object file extension for compiled C++ test sources.
5402 objext=o
5403 _LT_TAGVAR(objext, $1)=$objext
5404
5405 # No sense in running all these tests if we already determined that
5406 # the CXX compiler isn't working. Some variables (like enable_shared)
5407 # are currently assumed to apply to all compilers on this platform,
5408 # and will be corrupted by setting them based on a non-working compiler.
5409 if test "$_lt_caught_CXX_error" != yes; then
5410 # Code to be used in simple compile tests
5411 lt_simple_compile_test_code="int some_variable = 0;"
5412
5413 # Code to be used in simple link tests
5414 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5415
5416 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5417 _LT_TAG_COMPILER
5418
5419 # save warnings/boilerplate of simple test code
5420 _LT_COMPILER_BOILERPLATE
5421 _LT_LINKER_BOILERPLATE
5422
5423 # Allow CC to be a program name with arguments.
5424 lt_save_CC=$CC
5425 lt_save_LD=$LD
5426 lt_save_GCC=$GCC
5427 GCC=$GXX
5428 lt_save_with_gnu_ld=$with_gnu_ld
5429 lt_save_path_LD=$lt_cv_path_LD
5430 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5431 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5432 else
5433 $as_unset lt_cv_prog_gnu_ld
5434 fi
5435 if test -n "${lt_cv_path_LDCXX+set}"; then
5436 lt_cv_path_LD=$lt_cv_path_LDCXX
5437 else
5438 $as_unset lt_cv_path_LD
5439 fi
5440 test -z "${LDCXX+set}" || LD=$LDCXX
5441 CC=${CXX-"c++"}
5442 compiler=$CC
5443 _LT_TAGVAR(compiler, $1)=$CC
5444 _LT_CC_BASENAME([$compiler])
5445
5446 if test -n "$compiler"; then
5447 # We don't want -fno-exception when compiling C++ code, so set the
5448 # no_builtin_flag separately
5449 if test "$GXX" = yes; then
5450 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5451 else
5452 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5453 fi
5454
5455 if test "$GXX" = yes; then
5456 # Set up default GNU C++ configuration
5457
5458 LT_PATH_LD
5459
5460 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5461 # archiving commands below assume that GNU ld is being used.
5462 if test "$with_gnu_ld" = yes; then
5463 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5464 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5465
5466 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5467 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5468
5469 # If archive_cmds runs LD, not CC, wlarc should be empty
5470 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5471 # investigate it a little bit more. (MM)
5472 wlarc='${wl}'
5473
5474 # ancient GNU ld didn't support --whole-archive et. al.
5475 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5476 $GREP 'no-whole-archive' > /dev/null; then
5477 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5478 else
5479 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5480 fi
5481 else
5482 with_gnu_ld=no
5483 wlarc=
5484
5485 # A generic and very simple default shared library creation
5486 # command for GNU C++ for the case where it uses the native
5487 # linker, instead of GNU ld. If possible, this setting should
5488 # overridden to take advantage of the native linker features on
5489 # the platform it is being used on.
5490 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5491 fi
5492
5493 # Commands to make compiler produce verbose output that lists
5494 # what "hidden" libraries, object files and flags are used when
5495 # linking a shared library.
5496 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5497
5498 else
5499 GXX=no
5500 with_gnu_ld=no
5501 wlarc=
5502 fi
5503
5504 # PORTME: fill in a description of your system's C++ link characteristics
5505 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5506 _LT_TAGVAR(ld_shlibs, $1)=yes
5507 case $host_os in
5508 aix3*)
5509 # FIXME: insert proper C++ library support
5510 _LT_TAGVAR(ld_shlibs, $1)=no
5511 ;;
5512 aix[[4-9]]*)
5513 if test "$host_cpu" = ia64; then
5514 # On IA64, the linker does run time linking by default, so we don't
5515 # have to do anything special.
5516 aix_use_runtimelinking=no
5517 exp_sym_flag='-Bexport'
5518 no_entry_flag=""
5519 else
5520 aix_use_runtimelinking=no
5521
5522 # Test if we are trying to use run time linking or normal
5523 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5524 # need to do runtime linking.
5525 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5526 for ld_flag in $LDFLAGS; do
5527 case $ld_flag in
5528 *-brtl*)
5529 aix_use_runtimelinking=yes
5530 break
5531 ;;
5532 esac
5533 done
5534 ;;
5535 esac
5536
5537 exp_sym_flag='-bexport'
5538 no_entry_flag='-bnoentry'
5539 fi
5540
5541 # When large executables or shared objects are built, AIX ld can
5542 # have problems creating the table of contents. If linking a library
5543 # or program results in "error TOC overflow" add -mminimal-toc to
5544 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5545 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5546
5547 _LT_TAGVAR(archive_cmds, $1)=''
5548 _LT_TAGVAR(hardcode_direct, $1)=yes
5549 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5550 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5551 _LT_TAGVAR(link_all_deplibs, $1)=yes
5552 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5553
5554 if test "$GXX" = yes; then
5555 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5556 # We only want to do this on AIX 4.2 and lower, the check
5557 # below for broken collect2 doesn't work under 4.3+
5558 collect2name=`${CC} -print-prog-name=collect2`
5559 if test -f "$collect2name" &&
5560 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5561 then
5562 # We have reworked collect2
5563 :
5564 else
5565 # We have old collect2
5566 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5567 # It fails to find uninstalled libraries when the uninstalled
5568 # path is not listed in the libpath. Setting hardcode_minus_L
5569 # to unsupported forces relinking
5570 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5572 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5573 fi
5574 esac
5575 shared_flag='-shared'
5576 if test "$aix_use_runtimelinking" = yes; then
5577 shared_flag="$shared_flag "'${wl}-G'
5578 fi
5579 else
5580 # not using gcc
5581 if test "$host_cpu" = ia64; then
5582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5583 # chokes on -Wl,-G. The following line is correct:
5584 shared_flag='-G'
5585 else
5586 if test "$aix_use_runtimelinking" = yes; then
5587 shared_flag='${wl}-G'
5588 else
5589 shared_flag='${wl}-bM:SRE'
5590 fi
5591 fi
5592 fi
5593
5594 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5595 # It seems that -bexpall does not export symbols beginning with
5596 # underscore (_), so it is better to generate a list of symbols to
5597 # export.
5598 _LT_TAGVAR(always_export_symbols, $1)=yes
5599 if test "$aix_use_runtimelinking" = yes; then
5600 # Warning - without using the other runtime loading flags (-brtl),
5601 # -berok will link without error, but may produce a broken library.
5602 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5603 # Determine the default libpath from the value encoded in an empty
5604 # executable.
5605 _LT_SYS_MODULE_PATH_AIX
5606 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5607
5608 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5609 else
5610 if test "$host_cpu" = ia64; then
5611 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5612 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5613 _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"
5614 else
5615 # Determine the default libpath from the value encoded in an
5616 # empty executable.
5617 _LT_SYS_MODULE_PATH_AIX
5618 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5619 # Warning - without using the other run time loading flags,
5620 # -berok will link without error, but may produce a broken library.
5621 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5622 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5623 # Exported symbols can be pulled into shared objects from archives
5624 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5625 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5626 # This is similar to how AIX traditionally builds its shared
5627 # libraries.
5628 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5629 fi
5630 fi
5631 ;;
5632
5633 beos*)
5634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5635 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5636 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5637 # support --undefined. This deserves some investigation. FIXME
5638 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5639 else
5640 _LT_TAGVAR(ld_shlibs, $1)=no
5641 fi
5642 ;;
5643
5644 chorus*)
5645 case $cc_basename in
5646 *)
5647 # FIXME: insert proper C++ library support
5648 _LT_TAGVAR(ld_shlibs, $1)=no
5649 ;;
5650 esac
5651 ;;
5652
5653 cygwin* | mingw* | pw32* | cegcc*)
5654 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5655 # as there is no search path for DLLs.
5656 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5657 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5658 _LT_TAGVAR(always_export_symbols, $1)=no
5659 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5660
5661 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5662 _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'
5663 # If the export-symbols file already is a .def file (1st line
5664 # is EXPORTS), use it as is; otherwise, prepend...
5665 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5666 cp $export_symbols $output_objdir/$soname.def;
5667 else
5668 echo EXPORTS > $output_objdir/$soname.def;
5669 cat $export_symbols >> $output_objdir/$soname.def;
5670 fi~
5671 $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'
5672 else
5673 _LT_TAGVAR(ld_shlibs, $1)=no
5674 fi
5675 ;;
5676 darwin* | rhapsody*)
5677 _LT_DARWIN_LINKER_FEATURES($1)
5678 ;;
5679
5680 dgux*)
5681 case $cc_basename in
5682 ec++*)
5683 # FIXME: insert proper C++ library support
5684 _LT_TAGVAR(ld_shlibs, $1)=no
5685 ;;
5686 ghcx*)
5687 # Green Hills C++ Compiler
5688 # FIXME: insert proper C++ library support
5689 _LT_TAGVAR(ld_shlibs, $1)=no
5690 ;;
5691 *)
5692 # FIXME: insert proper C++ library support
5693 _LT_TAGVAR(ld_shlibs, $1)=no
5694 ;;
5695 esac
5696 ;;
5697
5698 freebsd[[12]]*)
5699 # C++ shared libraries reported to be fairly broken before
5700 # switch to ELF
5701 _LT_TAGVAR(ld_shlibs, $1)=no
5702 ;;
5703
5704 freebsd-elf*)
5705 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5706 ;;
5707
5708 freebsd* | dragonfly*)
5709 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5710 # conventions
5711 _LT_TAGVAR(ld_shlibs, $1)=yes
5712 ;;
5713
5714 gnu*)
5715 ;;
5716
5717 hpux9*)
5718 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5719 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5720 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5721 _LT_TAGVAR(hardcode_direct, $1)=yes
5722 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5723 # but as the default
5724 # location of the library.
5725
5726 case $cc_basename in
5727 CC*)
5728 # FIXME: insert proper C++ library support
5729 _LT_TAGVAR(ld_shlibs, $1)=no
5730 ;;
5731 aCC*)
5732 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5733 # Commands to make compiler produce verbose output that lists
5734 # what "hidden" libraries, object files and flags are used when
5735 # linking a shared library.
5736 #
5737 # There doesn't appear to be a way to prevent this compiler from
5738 # explicitly linking system object files so we need to strip them
5739 # from the output so that they don't get included in the library
5740 # dependencies.
5741 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5742 ;;
5743 *)
5744 if test "$GXX" = yes; then
5745 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5746 else
5747 # FIXME: insert proper C++ library support
5748 _LT_TAGVAR(ld_shlibs, $1)=no
5749 fi
5750 ;;
5751 esac
5752 ;;
5753
5754 hpux10*|hpux11*)
5755 if test $with_gnu_ld = no; then
5756 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5757 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5758
5759 case $host_cpu in
5760 hppa*64*|ia64*)
5761 ;;
5762 *)
5763 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5764 ;;
5765 esac
5766 fi
5767 case $host_cpu in
5768 hppa*64*|ia64*)
5769 _LT_TAGVAR(hardcode_direct, $1)=no
5770 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5771 ;;
5772 *)
5773 _LT_TAGVAR(hardcode_direct, $1)=yes
5774 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5775 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5776 # but as the default
5777 # location of the library.
5778 ;;
5779 esac
5780
5781 case $cc_basename in
5782 CC*)
5783 # FIXME: insert proper C++ library support
5784 _LT_TAGVAR(ld_shlibs, $1)=no
5785 ;;
5786 aCC*)
5787 case $host_cpu in
5788 hppa*64*)
5789 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5790 ;;
5791 ia64*)
5792 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5793 ;;
5794 *)
5795 _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'
5796 ;;
5797 esac
5798 # Commands to make compiler produce verbose output that lists
5799 # what "hidden" libraries, object files and flags are used when
5800 # linking a shared library.
5801 #
5802 # There doesn't appear to be a way to prevent this compiler from
5803 # explicitly linking system object files so we need to strip them
5804 # from the output so that they don't get included in the library
5805 # dependencies.
5806 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5807 ;;
5808 *)
5809 if test "$GXX" = yes; then
5810 if test $with_gnu_ld = no; then
5811 case $host_cpu in
5812 hppa*64*)
5813 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5814 ;;
5815 ia64*)
5816 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5817 ;;
5818 *)
5819 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5820 ;;
5821 esac
5822 fi
5823 else
5824 # FIXME: insert proper C++ library support
5825 _LT_TAGVAR(ld_shlibs, $1)=no
5826 fi
5827 ;;
5828 esac
5829 ;;
5830
5831 interix[[3-9]]*)
5832 _LT_TAGVAR(hardcode_direct, $1)=no
5833 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5834 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5835 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5836 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5837 # Instead, shared libraries are loaded at an image base (0x10000000 by
5838 # default) and relocated if they conflict, which is a slow very memory
5839 # consuming and fragmenting process. To avoid this, we pick a random,
5840 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5841 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5842 _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'
5843 _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'
5844 ;;
5845 irix5* | irix6*)
5846 case $cc_basename in
5847 CC*)
5848 # SGI C++
5849 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5850
5851 # Archives containing C++ object files must be created using
5852 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5853 # necessary to make sure instantiated templates are included
5854 # in the archive.
5855 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5856 ;;
5857 *)
5858 if test "$GXX" = yes; then
5859 if test "$with_gnu_ld" = no; then
5860 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5861 else
5862 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5863 fi
5864 fi
5865 _LT_TAGVAR(link_all_deplibs, $1)=yes
5866 ;;
5867 esac
5868 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5869 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5870 _LT_TAGVAR(inherit_rpath, $1)=yes
5871 ;;
5872
5873 linux* | k*bsd*-gnu)
5874 case $cc_basename in
5875 KCC*)
5876 # Kuck and Associates, Inc. (KAI) C++ Compiler
5877
5878 # KCC will only create a shared library if the output file
5879 # ends with ".so" (or ".sl" for HP-UX), so rename the library
5880 # to its proper name (with version) after linking.
5881 _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'
5882 _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'
5883 # Commands to make compiler produce verbose output that lists
5884 # what "hidden" libraries, object files and flags are used when
5885 # linking a shared library.
5886 #
5887 # There doesn't appear to be a way to prevent this compiler from
5888 # explicitly linking system object files so we need to strip them
5889 # from the output so that they don't get included in the library
5890 # dependencies.
5891 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5892
5893 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5894 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5895
5896 # Archives containing C++ object files must be created using
5897 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5898 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5899 ;;
5900 icpc* | ecpc* )
5901 # Intel C++
5902 with_gnu_ld=yes
5903 # version 8.0 and above of icpc choke on multiply defined symbols
5904 # if we add $predep_objects and $postdep_objects, however 7.1 and
5905 # earlier do not add the objects themselves.
5906 case `$CC -V 2>&1` in
5907 *"Version 7."*)
5908 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5909 _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'
5910 ;;
5911 *) # Version 8.0 or newer
5912 tmp_idyn=
5913 case $host_cpu in
5914 ia64*) tmp_idyn=' -i_dynamic';;
5915 esac
5916 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5917 _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'
5918 ;;
5919 esac
5920 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5921 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5922 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5923 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5924 ;;
5925 pgCC* | pgcpp*)
5926 # Portland Group C++ compiler
5927 case `$CC -V` in
5928 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5929 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5930 rm -rf $tpldir~
5931 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5932 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5933 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5934 rm -rf $tpldir~
5935 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5936 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5937 $RANLIB $oldlib'
5938 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5939 rm -rf $tpldir~
5940 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5941 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5942 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5943 rm -rf $tpldir~
5944 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5945 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5946 ;;
5947 *) # Version 6 will use weak symbols
5948 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5949 _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'
5950 ;;
5951 esac
5952
5953 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5954 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5955 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5956 ;;
5957 cxx*)
5958 # Compaq C++
5959 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5960 _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'
5961
5962 runpath_var=LD_RUN_PATH
5963 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5964 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5965
5966 # Commands to make compiler produce verbose output that lists
5967 # what "hidden" libraries, object files and flags are used when
5968 # linking a shared library.
5969 #
5970 # There doesn't appear to be a way to prevent this compiler from
5971 # explicitly linking system object files so we need to strip them
5972 # from the output so that they don't get included in the library
5973 # dependencies.
5974 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5975 ;;
5976 xl*)
5977 # IBM XL 8.0 on PPC, with GNU ld
5978 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5979 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5980 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5981 if test "x$supports_anon_versioning" = xyes; then
5982 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5984 echo "local: *; };" >> $output_objdir/$libname.ver~
5985 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5986 fi
5987 ;;
5988 *)
5989 case `$CC -V 2>&1 | sed 5q` in
5990 *Sun\ C*)
5991 # Sun C++ 5.9
5992 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5993 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5994 _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'
5995 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5996 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5997 _LT_TAGVAR(compiler_needs_object, $1)=yes
5998
5999 # Not sure whether something based on
6000 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6001 # would be better.
6002 output_verbose_link_cmd='echo'
6003
6004 # Archives containing C++ object files must be created using
6005 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6006 # necessary to make sure instantiated templates are included
6007 # in the archive.
6008 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6009 ;;
6010 esac
6011 ;;
6012 esac
6013 ;;
6014
6015 lynxos*)
6016 # FIXME: insert proper C++ library support
6017 _LT_TAGVAR(ld_shlibs, $1)=no
6018 ;;
6019
6020 m88k*)
6021 # FIXME: insert proper C++ library support
6022 _LT_TAGVAR(ld_shlibs, $1)=no
6023 ;;
6024
6025 mvs*)
6026 case $cc_basename in
6027 cxx*)
6028 # FIXME: insert proper C++ library support
6029 _LT_TAGVAR(ld_shlibs, $1)=no
6030 ;;
6031 *)
6032 # FIXME: insert proper C++ library support
6033 _LT_TAGVAR(ld_shlibs, $1)=no
6034 ;;
6035 esac
6036 ;;
6037
6038 netbsd*)
6039 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6040 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6041 wlarc=
6042 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6043 _LT_TAGVAR(hardcode_direct, $1)=yes
6044 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6045 fi
6046 # Workaround some broken pre-1.5 toolchains
6047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6048 ;;
6049
6050 *nto* | *qnx*)
6051 _LT_TAGVAR(ld_shlibs, $1)=yes
6052 ;;
6053
6054 openbsd2*)
6055 # C++ shared libraries are fairly broken
6056 _LT_TAGVAR(ld_shlibs, $1)=no
6057 ;;
6058
6059 openbsd*)
6060 if test -f /usr/libexec/ld.so; then
6061 _LT_TAGVAR(hardcode_direct, $1)=yes
6062 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6063 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6064 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6065 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6066 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6067 _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'
6068 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6069 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6070 fi
6071 output_verbose_link_cmd=echo
6072 else
6073 _LT_TAGVAR(ld_shlibs, $1)=no
6074 fi
6075 ;;
6076
6077 osf3* | osf4* | osf5*)
6078 case $cc_basename in
6079 KCC*)
6080 # Kuck and Associates, Inc. (KAI) C++ Compiler
6081
6082 # KCC will only create a shared library if the output file
6083 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6084 # to its proper name (with version) after linking.
6085 _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'
6086
6087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6088 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6089
6090 # Archives containing C++ object files must be created using
6091 # the KAI C++ compiler.
6092 case $host in
6093 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6094 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6095 esac
6096 ;;
6097 RCC*)
6098 # Rational C++ 2.4.1
6099 # FIXME: insert proper C++ library support
6100 _LT_TAGVAR(ld_shlibs, $1)=no
6101 ;;
6102 cxx*)
6103 case $host in
6104 osf3*)
6105 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6106 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6107 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6108 ;;
6109 *)
6110 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6111 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6112 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6113 echo "-hidden">> $lib.exp~
6114 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6115 $RM $lib.exp'
6116 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6117 ;;
6118 esac
6119
6120 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6121
6122 # Commands to make compiler produce verbose output that lists
6123 # what "hidden" libraries, object files and flags are used when
6124 # linking a shared library.
6125 #
6126 # There doesn't appear to be a way to prevent this compiler from
6127 # explicitly linking system object files so we need to strip them
6128 # from the output so that they don't get included in the library
6129 # dependencies.
6130 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6131 ;;
6132 *)
6133 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6134 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6135 case $host in
6136 osf3*)
6137 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6138 ;;
6139 *)
6140 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6141 ;;
6142 esac
6143
6144 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6145 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6146
6147 # Commands to make compiler produce verbose output that lists
6148 # what "hidden" libraries, object files and flags are used when
6149 # linking a shared library.
6150 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6151
6152 else
6153 # FIXME: insert proper C++ library support
6154 _LT_TAGVAR(ld_shlibs, $1)=no
6155 fi
6156 ;;
6157 esac
6158 ;;
6159
6160 psos*)
6161 # FIXME: insert proper C++ library support
6162 _LT_TAGVAR(ld_shlibs, $1)=no
6163 ;;
6164
6165 sunos4*)
6166 case $cc_basename in
6167 CC*)
6168 # Sun C++ 4.x
6169 # FIXME: insert proper C++ library support
6170 _LT_TAGVAR(ld_shlibs, $1)=no
6171 ;;
6172 lcc*)
6173 # Lucid
6174 # FIXME: insert proper C++ library support
6175 _LT_TAGVAR(ld_shlibs, $1)=no
6176 ;;
6177 *)
6178 # FIXME: insert proper C++ library support
6179 _LT_TAGVAR(ld_shlibs, $1)=no
6180 ;;
6181 esac
6182 ;;
6183
6184 solaris*)
6185 case $cc_basename in
6186 CC*)
6187 # Sun C++ 4.2, 5.x and Centerline C++
6188 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6189 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6190 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6191 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6192 $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'
6193
6194 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6195 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6196 case $host_os in
6197 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6198 *)
6199 # The compiler driver will combine and reorder linker options,
6200 # but understands `-z linker_flag'.
6201 # Supported since Solaris 2.6 (maybe 2.5.1?)
6202 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6203 ;;
6204 esac
6205 _LT_TAGVAR(link_all_deplibs, $1)=yes
6206
6207 output_verbose_link_cmd='echo'
6208
6209 # Archives containing C++ object files must be created using
6210 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6211 # necessary to make sure instantiated templates are included
6212 # in the archive.
6213 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6214 ;;
6215 gcx*)
6216 # Green Hills C++ Compiler
6217 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6218
6219 # The C++ compiler must be used to create the archive.
6220 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6221 ;;
6222 *)
6223 # GNU C++ compiler with Solaris linker
6224 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6225 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6226 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6227 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6228 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6229 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6230
6231 # Commands to make compiler produce verbose output that lists
6232 # what "hidden" libraries, object files and flags are used when
6233 # linking a shared library.
6234 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6235 else
6236 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6237 # platform.
6238 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6239 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6240 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6241
6242 # Commands to make compiler produce verbose output that lists
6243 # what "hidden" libraries, object files and flags are used when
6244 # linking a shared library.
6245 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6246 fi
6247
6248 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6249 case $host_os in
6250 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6251 *)
6252 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6253 ;;
6254 esac
6255 fi
6256 ;;
6257 esac
6258 ;;
6259
6260 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6261 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6262 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6263 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6264 runpath_var='LD_RUN_PATH'
6265
6266 case $cc_basename in
6267 CC*)
6268 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6269 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6270 ;;
6271 *)
6272 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6273 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6274 ;;
6275 esac
6276 ;;
6277
6278 sysv5* | sco3.2v5* | sco5v6*)
6279 # Note: We can NOT use -z defs as we might desire, because we do not
6280 # link with -lc, and that would cause any symbols used from libc to
6281 # always be unresolved, which means just about no library would
6282 # ever link correctly. If we're not using GNU ld we use -z text
6283 # though, which does catch some bad symbols but isn't as heavy-handed
6284 # as -z defs.
6285 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6286 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6287 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6288 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6289 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6290 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6291 _LT_TAGVAR(link_all_deplibs, $1)=yes
6292 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6293 runpath_var='LD_RUN_PATH'
6294
6295 case $cc_basename in
6296 CC*)
6297 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6298 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6299 ;;
6300 *)
6301 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6302 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6303 ;;
6304 esac
6305 ;;
6306
6307 tandem*)
6308 case $cc_basename in
6309 NCC*)
6310 # NonStop-UX NCC 3.20
6311 # FIXME: insert proper C++ library support
6312 _LT_TAGVAR(ld_shlibs, $1)=no
6313 ;;
6314 *)
6315 # FIXME: insert proper C++ library support
6316 _LT_TAGVAR(ld_shlibs, $1)=no
6317 ;;
6318 esac
6319 ;;
6320
6321 vxworks*)
6322 # FIXME: insert proper C++ library support
6323 _LT_TAGVAR(ld_shlibs, $1)=no
6324 ;;
6325
6326 *)
6327 # FIXME: insert proper C++ library support
6328 _LT_TAGVAR(ld_shlibs, $1)=no
6329 ;;
6330 esac
6331
6332 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6333 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6334
6335 _LT_TAGVAR(GCC, $1)="$GXX"
6336 _LT_TAGVAR(LD, $1)="$LD"
6337
6338 ## CAVEAT EMPTOR:
6339 ## There is no encapsulation within the following macros, do not change
6340 ## the running order or otherwise move them around unless you know exactly
6341 ## what you are doing...
6342 _LT_SYS_HIDDEN_LIBDEPS($1)
6343 _LT_COMPILER_PIC($1)
6344 _LT_COMPILER_C_O($1)
6345 _LT_COMPILER_FILE_LOCKS($1)
6346 _LT_LINKER_SHLIBS($1)
6347 _LT_SYS_DYNAMIC_LINKER($1)
6348 _LT_LINKER_HARDCODE_LIBPATH($1)
6349
6350 _LT_CONFIG($1)
6351 fi # test -n "$compiler"
6352
6353 CC=$lt_save_CC
6354 LDCXX=$LD
6355 LD=$lt_save_LD
6356 GCC=$lt_save_GCC
6357 with_gnu_ld=$lt_save_with_gnu_ld
6358 lt_cv_path_LDCXX=$lt_cv_path_LD
6359 lt_cv_path_LD=$lt_save_path_LD
6360 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6361 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6362 fi # test "$_lt_caught_CXX_error" != yes
6363
6364 AC_LANG_POP
6365 ])# _LT_LANG_CXX_CONFIG
6366
6367
6368 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
58426369 # ---------------------------------
5843 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
5844
5845
5846 # old names
5847 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
5848 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
5849 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
5850 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
5851 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
5852 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
5853 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
5854
5855 # This is just to silence aclocal about the macro not being used
5856 ifelse([AC_DISABLE_FAST_INSTALL])
5857
5858 AC_DEFUN([LT_AC_PROG_GCJ],
5859 [AC_CHECK_TOOL(GCJ, gcj, no)
5860 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5861 AC_SUBST(GCJFLAGS)
6370 # Figure out "hidden" library dependencies from verbose
6371 # compiler output when linking a shared library.
6372 # Parse the compiler output and extract the necessary
6373 # objects, libraries and library flags.
6374 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6375 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6376 # Dependencies to place before and after the object being linked:
6377 _LT_TAGVAR(predep_objects, $1)=
6378 _LT_TAGVAR(postdep_objects, $1)=
6379 _LT_TAGVAR(predeps, $1)=
6380 _LT_TAGVAR(postdeps, $1)=
6381 _LT_TAGVAR(compiler_lib_search_path, $1)=
6382
6383 dnl we can't use the lt_simple_compile_test_code here,
6384 dnl because it contains code intended for an executable,
6385 dnl not a library. It's possible we should let each
6386 dnl tag define a new lt_????_link_test_code variable,
6387 dnl but it's only used here...
6388 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6389 int a;
6390 void foo (void) { a = 0; }
6391 _LT_EOF
6392 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6393 class Foo
6394 {
6395 public:
6396 Foo (void) { a = 0; }
6397 private:
6398 int a;
6399 };
6400 _LT_EOF
6401 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6402 subroutine foo
6403 implicit none
6404 integer*4 a
6405 a=0
6406 return
6407 end
6408 _LT_EOF
6409 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6410 subroutine foo
6411 implicit none
6412 integer a
6413 a=0
6414 return
6415 end
6416 _LT_EOF
6417 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6418 public class foo {
6419 private int a;
6420 public void bar (void) {
6421 a = 0;
6422 }
6423 };
6424 _LT_EOF
58626425 ])
5863
5864 AC_DEFUN([LT_AC_PROG_RC],
5865 [AC_CHECK_TOOL(RC, windres, no)
6426 dnl Parse the compiler output and extract the necessary
6427 dnl objects, libraries and library flags.
6428 if AC_TRY_EVAL(ac_compile); then
6429 # Parse the compiler output and extract the necessary
6430 # objects, libraries and library flags.
6431
6432 # Sentinel used to keep track of whether or not we are before
6433 # the conftest object file.
6434 pre_test_object_deps_done=no
6435
6436 for p in `eval "$output_verbose_link_cmd"`; do
6437 case $p in
6438
6439 -L* | -R* | -l*)
6440 # Some compilers place space between "-{L,R}" and the path.
6441 # Remove the space.
6442 if test $p = "-L" ||
6443 test $p = "-R"; then
6444 prev=$p
6445 continue
6446 else
6447 prev=
6448 fi
6449
6450 if test "$pre_test_object_deps_done" = no; then
6451 case $p in
6452 -L* | -R*)
6453 # Internal compiler library paths should come after those
6454 # provided the user. The postdeps already come after the
6455 # user supplied libs so there is no need to process them.
6456 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6457 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6458 else
6459 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6460 fi
6461 ;;
6462 # The "-l" case would never come before the object being
6463 # linked, so don't bother handling this case.
6464 esac
6465 else
6466 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6467 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6468 else
6469 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6470 fi
6471 fi
6472 ;;
6473
6474 *.$objext)
6475 # This assumes that the test object file only shows up
6476 # once in the compiler output.
6477 if test "$p" = "conftest.$objext"; then
6478 pre_test_object_deps_done=yes
6479 continue
6480 fi
6481
6482 if test "$pre_test_object_deps_done" = no; then
6483 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6484 _LT_TAGVAR(predep_objects, $1)="$p"
6485 else
6486 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6487 fi
6488 else
6489 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6490 _LT_TAGVAR(postdep_objects, $1)="$p"
6491 else
6492 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6493 fi
6494 fi
6495 ;;
6496
6497 *) ;; # Ignore the rest.
6498
6499 esac
6500 done
6501
6502 # Clean up.
6503 rm -f a.out a.exe
6504 else
6505 echo "libtool.m4: error: problem compiling $1 test program"
6506 fi
6507
6508 $RM -f confest.$objext
6509
6510 # PORTME: override above test on systems where it is broken
6511 m4_if([$1], [CXX],
6512 [case $host_os in
6513 interix[[3-9]]*)
6514 # Interix 3.5 installs completely hosed .la files for C++, so rather than
6515 # hack all around it, let's just trust "g++" to DTRT.
6516 _LT_TAGVAR(predep_objects,$1)=
6517 _LT_TAGVAR(postdep_objects,$1)=
6518 _LT_TAGVAR(postdeps,$1)=
6519 ;;
6520
6521 linux*)
6522 case `$CC -V 2>&1 | sed 5q` in
6523 *Sun\ C*)
6524 # Sun C++ 5.9
6525
6526 # The more standards-conforming stlport4 library is
6527 # incompatible with the Cstd library. Avoid specifying
6528 # it if it's in CXXFLAGS. Ignore libCrun as
6529 # -library=stlport4 depends on it.
6530 case " $CXX $CXXFLAGS " in
6531 *" -library=stlport4 "*)
6532 solaris_use_stlport4=yes
6533 ;;
6534 esac
6535
6536 if test "$solaris_use_stlport4" != yes; then
6537 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6538 fi
6539 ;;
6540 esac
6541 ;;
6542
6543 solaris*)
6544 case $cc_basename in
6545 CC*)
6546 # The more standards-conforming stlport4 library is
6547 # incompatible with the Cstd library. Avoid specifying
6548 # it if it's in CXXFLAGS. Ignore libCrun as
6549 # -library=stlport4 depends on it.
6550 case " $CXX $CXXFLAGS " in
6551 *" -library=stlport4 "*)
6552 solaris_use_stlport4=yes
6553 ;;
6554 esac
6555
6556 # Adding this requires a known-good setup of shared libraries for
6557 # Sun compiler versions before 5.6, else PIC objects from an old
6558 # archive will be linked into the output, leading to subtle bugs.
6559 if test "$solaris_use_stlport4" != yes; then
6560 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6561 fi
6562 ;;
6563 esac
6564 ;;
6565 esac
58666566 ])
58676567
6568 case " $_LT_TAGVAR(postdeps, $1) " in
6569 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6570 esac
6571 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6572 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6573 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6574 fi
6575 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6576 [The directories searched by this compiler when creating a shared library])
6577 _LT_TAGDECL([], [predep_objects], [1],
6578 [Dependencies to place before and after the objects being linked to
6579 create a shared library])
6580 _LT_TAGDECL([], [postdep_objects], [1])
6581 _LT_TAGDECL([], [predeps], [1])
6582 _LT_TAGDECL([], [postdeps], [1])
6583 _LT_TAGDECL([], [compiler_lib_search_path], [1],
6584 [The library search path used internally by the compiler when linking
6585 a shared library])
6586 ])# _LT_SYS_HIDDEN_LIBDEPS
6587
6588
6589 # _LT_PROG_F77
6590 # ------------
6591 # Since AC_PROG_F77 is broken, in that it returns the empty string
6592 # if there is no fortran compiler, we have our own version here.
6593 m4_defun([_LT_PROG_F77],
6594 [
6595 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6596 AC_PROG_F77
6597 if test -z "$F77" || test "X$F77" = "Xno"; then
6598 _lt_disable_F77=yes
6599 fi
6600 popdef([AC_MSG_ERROR])
6601 ])# _LT_PROG_F77
6602
6603 dnl aclocal-1.4 backwards compatibility:
6604 dnl AC_DEFUN([_LT_PROG_F77], [])
6605
6606
6607 # _LT_LANG_F77_CONFIG([TAG])
6608 # --------------------------
6609 # Ensure that the configuration variables for a Fortran 77 compiler are
6610 # suitably defined. These variables are subsequently used by _LT_CONFIG
6611 # to write the compiler configuration to `libtool'.
6612 m4_defun([_LT_LANG_F77_CONFIG],
6613 [AC_REQUIRE([_LT_PROG_F77])dnl
6614 AC_LANG_PUSH(Fortran 77)
6615
6616 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6617 _LT_TAGVAR(allow_undefined_flag, $1)=
6618 _LT_TAGVAR(always_export_symbols, $1)=no
6619 _LT_TAGVAR(archive_expsym_cmds, $1)=
6620 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6621 _LT_TAGVAR(hardcode_direct, $1)=no
6622 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6623 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6624 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6625 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6626 _LT_TAGVAR(hardcode_minus_L, $1)=no
6627 _LT_TAGVAR(hardcode_automatic, $1)=no
6628 _LT_TAGVAR(inherit_rpath, $1)=no
6629 _LT_TAGVAR(module_cmds, $1)=
6630 _LT_TAGVAR(module_expsym_cmds, $1)=
6631 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6632 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6633 _LT_TAGVAR(no_undefined_flag, $1)=
6634 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6635 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6636
6637 # Source file extension for f77 test sources.
6638 ac_ext=f
6639
6640 # Object file extension for compiled f77 test sources.
6641 objext=o
6642 _LT_TAGVAR(objext, $1)=$objext
6643
6644 # No sense in running all these tests if we already determined that
6645 # the F77 compiler isn't working. Some variables (like enable_shared)
6646 # are currently assumed to apply to all compilers on this platform,
6647 # and will be corrupted by setting them based on a non-working compiler.
6648 if test "$_lt_disable_F77" != yes; then
6649 # Code to be used in simple compile tests
6650 lt_simple_compile_test_code="\
6651 subroutine t
6652 return
6653 end
6654 "
6655
6656 # Code to be used in simple link tests
6657 lt_simple_link_test_code="\
6658 program t
6659 end
6660 "
6661
6662 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6663 _LT_TAG_COMPILER
6664
6665 # save warnings/boilerplate of simple test code
6666 _LT_COMPILER_BOILERPLATE
6667 _LT_LINKER_BOILERPLATE
6668
6669 # Allow CC to be a program name with arguments.
6670 lt_save_CC="$CC"
6671 lt_save_GCC=$GCC
6672 CC=${F77-"f77"}
6673 compiler=$CC
6674 _LT_TAGVAR(compiler, $1)=$CC
6675 _LT_CC_BASENAME([$compiler])
6676 GCC=$G77
6677 if test -n "$compiler"; then
6678 AC_MSG_CHECKING([if libtool supports shared libraries])
6679 AC_MSG_RESULT([$can_build_shared])
6680
6681 AC_MSG_CHECKING([whether to build shared libraries])
6682 test "$can_build_shared" = "no" && enable_shared=no
6683
6684 # On AIX, shared libraries and static libraries use the same namespace, and
6685 # are all built from PIC.
6686 case $host_os in
6687 aix3*)
6688 test "$enable_shared" = yes && enable_static=no
6689 if test -n "$RANLIB"; then
6690 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6691 postinstall_cmds='$RANLIB $lib'
6692 fi
6693 ;;
6694 aix[[4-9]]*)
6695 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6696 test "$enable_shared" = yes && enable_static=no
6697 fi
6698 ;;
6699 esac
6700 AC_MSG_RESULT([$enable_shared])
6701
6702 AC_MSG_CHECKING([whether to build static libraries])
6703 # Make sure either enable_shared or enable_static is yes.
6704 test "$enable_shared" = yes || enable_static=yes
6705 AC_MSG_RESULT([$enable_static])
6706
6707 _LT_TAGVAR(GCC, $1)="$G77"
6708 _LT_TAGVAR(LD, $1)="$LD"
6709
6710 ## CAVEAT EMPTOR:
6711 ## There is no encapsulation within the following macros, do not change
6712 ## the running order or otherwise move them around unless you know exactly
6713 ## what you are doing...
6714 _LT_COMPILER_PIC($1)
6715 _LT_COMPILER_C_O($1)
6716 _LT_COMPILER_FILE_LOCKS($1)
6717 _LT_LINKER_SHLIBS($1)
6718 _LT_SYS_DYNAMIC_LINKER($1)
6719 _LT_LINKER_HARDCODE_LIBPATH($1)
6720
6721 _LT_CONFIG($1)
6722 fi # test -n "$compiler"
6723
6724 GCC=$lt_save_GCC
6725 CC="$lt_save_CC"
6726 fi # test "$_lt_disable_F77" != yes
6727
6728 AC_LANG_POP
6729 ])# _LT_LANG_F77_CONFIG
6730
6731
6732 # _LT_PROG_FC
6733 # -----------
6734 # Since AC_PROG_FC is broken, in that it returns the empty string
6735 # if there is no fortran compiler, we have our own version here.
6736 m4_defun([_LT_PROG_FC],
6737 [
6738 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6739 AC_PROG_FC
6740 if test -z "$FC" || test "X$FC" = "Xno"; then
6741 _lt_disable_FC=yes
6742 fi
6743 popdef([AC_MSG_ERROR])
6744 ])# _LT_PROG_FC
6745
6746 dnl aclocal-1.4 backwards compatibility:
6747 dnl AC_DEFUN([_LT_PROG_FC], [])
6748
6749
6750 # _LT_LANG_FC_CONFIG([TAG])
6751 # -------------------------
6752 # Ensure that the configuration variables for a Fortran compiler are
6753 # suitably defined. These variables are subsequently used by _LT_CONFIG
6754 # to write the compiler configuration to `libtool'.
6755 m4_defun([_LT_LANG_FC_CONFIG],
6756 [AC_REQUIRE([_LT_PROG_FC])dnl
6757 AC_LANG_PUSH(Fortran)
6758
6759 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6760 _LT_TAGVAR(allow_undefined_flag, $1)=
6761 _LT_TAGVAR(always_export_symbols, $1)=no
6762 _LT_TAGVAR(archive_expsym_cmds, $1)=
6763 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6764 _LT_TAGVAR(hardcode_direct, $1)=no
6765 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6766 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6767 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6768 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6769 _LT_TAGVAR(hardcode_minus_L, $1)=no
6770 _LT_TAGVAR(hardcode_automatic, $1)=no
6771 _LT_TAGVAR(inherit_rpath, $1)=no
6772 _LT_TAGVAR(module_cmds, $1)=
6773 _LT_TAGVAR(module_expsym_cmds, $1)=
6774 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6775 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6776 _LT_TAGVAR(no_undefined_flag, $1)=
6777 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6778 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6779
6780 # Source file extension for fc test sources.
6781 ac_ext=${ac_fc_srcext-f}
6782
6783 # Object file extension for compiled fc test sources.
6784 objext=o
6785 _LT_TAGVAR(objext, $1)=$objext
6786
6787 # No sense in running all these tests if we already determined that
6788 # the FC compiler isn't working. Some variables (like enable_shared)
6789 # are currently assumed to apply to all compilers on this platform,
6790 # and will be corrupted by setting them based on a non-working compiler.
6791 if test "$_lt_disable_FC" != yes; then
6792 # Code to be used in simple compile tests
6793 lt_simple_compile_test_code="\
6794 subroutine t
6795 return
6796 end
6797 "
6798
6799 # Code to be used in simple link tests
6800 lt_simple_link_test_code="\
6801 program t
6802 end
6803 "
6804
6805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6806 _LT_TAG_COMPILER
6807
6808 # save warnings/boilerplate of simple test code
6809 _LT_COMPILER_BOILERPLATE
6810 _LT_LINKER_BOILERPLATE
6811
6812 # Allow CC to be a program name with arguments.
6813 lt_save_CC="$CC"
6814 lt_save_GCC=$GCC
6815 CC=${FC-"f95"}
6816 compiler=$CC
6817 GCC=$ac_cv_fc_compiler_gnu
6818
6819 _LT_TAGVAR(compiler, $1)=$CC
6820 _LT_CC_BASENAME([$compiler])
6821
6822 if test -n "$compiler"; then
6823 AC_MSG_CHECKING([if libtool supports shared libraries])
6824 AC_MSG_RESULT([$can_build_shared])
6825
6826 AC_MSG_CHECKING([whether to build shared libraries])
6827 test "$can_build_shared" = "no" && enable_shared=no
6828
6829 # On AIX, shared libraries and static libraries use the same namespace, and
6830 # are all built from PIC.
6831 case $host_os in
6832 aix3*)
6833 test "$enable_shared" = yes && enable_static=no
6834 if test -n "$RANLIB"; then
6835 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6836 postinstall_cmds='$RANLIB $lib'
6837 fi
6838 ;;
6839 aix[[4-9]]*)
6840 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6841 test "$enable_shared" = yes && enable_static=no
6842 fi
6843 ;;
6844 esac
6845 AC_MSG_RESULT([$enable_shared])
6846
6847 AC_MSG_CHECKING([whether to build static libraries])
6848 # Make sure either enable_shared or enable_static is yes.
6849 test "$enable_shared" = yes || enable_static=yes
6850 AC_MSG_RESULT([$enable_static])
6851
6852 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6853 _LT_TAGVAR(LD, $1)="$LD"
6854
6855 ## CAVEAT EMPTOR:
6856 ## There is no encapsulation within the following macros, do not change
6857 ## the running order or otherwise move them around unless you know exactly
6858 ## what you are doing...
6859 _LT_SYS_HIDDEN_LIBDEPS($1)
6860 _LT_COMPILER_PIC($1)
6861 _LT_COMPILER_C_O($1)
6862 _LT_COMPILER_FILE_LOCKS($1)
6863 _LT_LINKER_SHLIBS($1)
6864 _LT_SYS_DYNAMIC_LINKER($1)
6865 _LT_LINKER_HARDCODE_LIBPATH($1)
6866
6867 _LT_CONFIG($1)
6868 fi # test -n "$compiler"
6869
6870 GCC=$lt_save_GCC
6871 CC="$lt_save_CC"
6872 fi # test "$_lt_disable_FC" != yes
6873
6874 AC_LANG_POP
6875 ])# _LT_LANG_FC_CONFIG
6876
6877
6878 # _LT_LANG_GCJ_CONFIG([TAG])
6879 # --------------------------
6880 # Ensure that the configuration variables for the GNU Java Compiler compiler
6881 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6882 # to write the compiler configuration to `libtool'.
6883 m4_defun([_LT_LANG_GCJ_CONFIG],
6884 [AC_REQUIRE([LT_PROG_GCJ])dnl
6885 AC_LANG_SAVE
6886
6887 # Source file extension for Java test sources.
6888 ac_ext=java
6889
6890 # Object file extension for compiled Java test sources.
6891 objext=o
6892 _LT_TAGVAR(objext, $1)=$objext
6893
6894 # Code to be used in simple compile tests
6895 lt_simple_compile_test_code="class foo {}"
6896
6897 # Code to be used in simple link tests
6898 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6899
6900 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6901 _LT_TAG_COMPILER
6902
6903 # save warnings/boilerplate of simple test code
6904 _LT_COMPILER_BOILERPLATE
6905 _LT_LINKER_BOILERPLATE
6906
6907 # Allow CC to be a program name with arguments.
6908 lt_save_CC="$CC"
6909 lt_save_GCC=$GCC
6910 GCC=yes
6911 CC=${GCJ-"gcj"}
6912 compiler=$CC
6913 _LT_TAGVAR(compiler, $1)=$CC
6914 _LT_TAGVAR(LD, $1)="$LD"
6915 _LT_CC_BASENAME([$compiler])
6916
6917 # GCJ did not exist at the time GCC didn't implicitly link libc in.
6918 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6919
6920 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6921
6922 if test -n "$compiler"; then
6923 _LT_COMPILER_NO_RTTI($1)
6924 _LT_COMPILER_PIC($1)
6925 _LT_COMPILER_C_O($1)
6926 _LT_COMPILER_FILE_LOCKS($1)
6927 _LT_LINKER_SHLIBS($1)
6928 _LT_LINKER_HARDCODE_LIBPATH($1)
6929
6930 _LT_CONFIG($1)
6931 fi
6932
6933 AC_LANG_RESTORE
6934
6935 GCC=$lt_save_GCC
6936 CC="$lt_save_CC"
6937 ])# _LT_LANG_GCJ_CONFIG
6938
6939
6940 # _LT_LANG_RC_CONFIG([TAG])
6941 # -------------------------
6942 # Ensure that the configuration variables for the Windows resource compiler
6943 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6944 # to write the compiler configuration to `libtool'.
6945 m4_defun([_LT_LANG_RC_CONFIG],
6946 [AC_REQUIRE([LT_PROG_RC])dnl
6947 AC_LANG_SAVE
6948
6949 # Source file extension for RC test sources.
6950 ac_ext=rc
6951
6952 # Object file extension for compiled RC test sources.
6953 objext=o
6954 _LT_TAGVAR(objext, $1)=$objext
6955
6956 # Code to be used in simple compile tests
6957 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6958
6959 # Code to be used in simple link tests
6960 lt_simple_link_test_code="$lt_simple_compile_test_code"
6961
6962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6963 _LT_TAG_COMPILER
6964
6965 # save warnings/boilerplate of simple test code
6966 _LT_COMPILER_BOILERPLATE
6967 _LT_LINKER_BOILERPLATE
6968
6969 # Allow CC to be a program name with arguments.
6970 lt_save_CC="$CC"
6971 lt_save_GCC=$GCC
6972 GCC=
6973 CC=${RC-"windres"}
6974 compiler=$CC
6975 _LT_TAGVAR(compiler, $1)=$CC
6976 _LT_CC_BASENAME([$compiler])
6977 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6978
6979 if test -n "$compiler"; then
6980 :
6981 _LT_CONFIG($1)
6982 fi
6983
6984 GCC=$lt_save_GCC
6985 AC_LANG_RESTORE
6986 CC="$lt_save_CC"
6987 ])# _LT_LANG_RC_CONFIG
6988
6989
6990 # LT_PROG_GCJ
6991 # -----------
6992 AC_DEFUN([LT_PROG_GCJ],
6993 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6994 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6995 [AC_CHECK_TOOL(GCJ, gcj,)
6996 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6997 AC_SUBST(GCJFLAGS)])])[]dnl
6998 ])
6999
7000 # Old name:
7001 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7002 dnl aclocal-1.4 backwards compatibility:
7003 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7004
7005
7006 # LT_PROG_RC
7007 # ----------
7008 AC_DEFUN([LT_PROG_RC],
7009 [AC_CHECK_TOOL(RC, windres,)
7010 ])
7011
7012 # Old name:
7013 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7014 dnl aclocal-1.4 backwards compatibility:
7015 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7016
7017
7018 # _LT_DECL_EGREP
7019 # --------------
7020 # If we don't have a new enough Autoconf to choose the best grep
7021 # available, choose the one first in the user's PATH.
7022 m4_defun([_LT_DECL_EGREP],
7023 [AC_REQUIRE([AC_PROG_EGREP])dnl
7024 AC_REQUIRE([AC_PROG_FGREP])dnl
7025 test -z "$GREP" && GREP=grep
7026 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7027 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7028 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7029 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7030 AC_SUBST([GREP])
7031 ])
7032
7033
7034 # _LT_DECL_OBJDUMP
7035 # --------------
7036 # If we don't have a new enough Autoconf to choose the best objdump
7037 # available, choose the one first in the user's PATH.
7038 m4_defun([_LT_DECL_OBJDUMP],
7039 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7040 test -z "$OBJDUMP" && OBJDUMP=objdump
7041 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7042 AC_SUBST([OBJDUMP])
7043 ])
7044
7045
7046 # _LT_DECL_SED
7047 # ------------
7048 # Check for a fully-functional sed program, that truncates
7049 # as few characters as possible. Prefer GNU sed if found.
7050 m4_defun([_LT_DECL_SED],
7051 [AC_PROG_SED
7052 test -z "$SED" && SED=sed
7053 Xsed="$SED -e 1s/^X//"
7054 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7055 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7056 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7057 ])# _LT_DECL_SED
7058
7059 m4_ifndef([AC_PROG_SED], [
58687060 # NOTE: This macro has been submitted for inclusion into #
58697061 # GNU Autoconf as AC_PROG_SED. When it is available in #
58707062 # a released version of Autoconf we should remove this #
58717063 # macro and use it instead. #
5872 # LT_AC_PROG_SED
5873 # --------------
5874 # Check for a fully-functional sed program, that truncates
5875 # as few characters as possible. Prefer GNU sed if found.
5876 AC_DEFUN([LT_AC_PROG_SED],
7064
7065 m4_defun([AC_PROG_SED],
58777066 [AC_MSG_CHECKING([for a sed that does not truncate output])
58787067 AC_CACHE_VAL(lt_cv_path_SED,
58797068 [# Loop through the user's path and test for sed and gsed.
58917080 done
58927081 done
58937082 done
7083 IFS=$as_save_IFS
58947084 lt_ac_max=0
58957085 lt_ac_count=0
58967086 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
58977087 # along with /bin/sed that truncates output.
58987088 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5899 test ! -f $lt_ac_sed && break
7089 test ! -f $lt_ac_sed && continue
59007090 cat /dev/null > conftest.in
59017091 lt_ac_count=0
59027092 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
59217111 fi
59227112 done
59237113 done
7114 ])
59247115 SED=$lt_cv_path_SED
7116 AC_SUBST([SED])
7117 AC_MSG_RESULT([$SED])
7118 ])#AC_PROG_SED
7119 ])#m4_ifndef
7120
7121 # Old name:
7122 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7123 dnl aclocal-1.4 backwards compatibility:
7124 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7125
7126
7127 # _LT_CHECK_SHELL_FEATURES
7128 # ------------------------
7129 # Find out whether the shell is Bourne or XSI compatible,
7130 # or has some other useful features.
7131 m4_defun([_LT_CHECK_SHELL_FEATURES],
7132 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7133 # Try some XSI features
7134 xsi_shell=no
7135 ( _lt_dummy="a/b/c"
7136 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7137 = c,a/b,, \
7138 && eval 'test $(( 1 + 1 )) -eq 2 \
7139 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7140 && xsi_shell=yes
7141 AC_MSG_RESULT([$xsi_shell])
7142 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7143
7144 AC_MSG_CHECKING([whether the shell understands "+="])
7145 lt_shell_append=no
7146 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7147 >/dev/null 2>&1 \
7148 && lt_shell_append=yes
7149 AC_MSG_RESULT([$lt_shell_append])
7150 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7151
7152 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7153 lt_unset=unset
7154 else
7155 lt_unset=false
7156 fi
7157 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7158
7159 # test EBCDIC or ASCII
7160 case `echo X|tr X '\101'` in
7161 A) # ASCII based system
7162 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7163 lt_SP2NL='tr \040 \012'
7164 lt_NL2SP='tr \015\012 \040\040'
7165 ;;
7166 *) # EBCDIC based system
7167 lt_SP2NL='tr \100 \n'
7168 lt_NL2SP='tr \r\n \100\100'
7169 ;;
7170 esac
7171 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7172 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7173 ])# _LT_CHECK_SHELL_FEATURES
7174
7175
7176 # _LT_PROG_XSI_SHELLFNS
7177 # ---------------------
7178 # Bourne and XSI compatible variants of some useful shell functions.
7179 m4_defun([_LT_PROG_XSI_SHELLFNS],
7180 [case $xsi_shell in
7181 yes)
7182 cat << \_LT_EOF >> "$cfgfile"
7183
7184 # func_dirname file append nondir_replacement
7185 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7186 # otherwise set result to NONDIR_REPLACEMENT.
7187 func_dirname ()
7188 {
7189 case ${1} in
7190 */*) func_dirname_result="${1%/*}${2}" ;;
7191 * ) func_dirname_result="${3}" ;;
7192 esac
7193 }
7194
7195 # func_basename file
7196 func_basename ()
7197 {
7198 func_basename_result="${1##*/}"
7199 }
7200
7201 # func_dirname_and_basename file append nondir_replacement
7202 # perform func_basename and func_dirname in a single function
7203 # call:
7204 # dirname: Compute the dirname of FILE. If nonempty,
7205 # add APPEND to the result, otherwise set result
7206 # to NONDIR_REPLACEMENT.
7207 # value returned in "$func_dirname_result"
7208 # basename: Compute filename of FILE.
7209 # value retuned in "$func_basename_result"
7210 # Implementation must be kept synchronized with func_dirname
7211 # and func_basename. For efficiency, we do not delegate to
7212 # those functions but instead duplicate the functionality here.
7213 func_dirname_and_basename ()
7214 {
7215 case ${1} in
7216 */*) func_dirname_result="${1%/*}${2}" ;;
7217 * ) func_dirname_result="${3}" ;;
7218 esac
7219 func_basename_result="${1##*/}"
7220 }
7221
7222 # func_stripname prefix suffix name
7223 # strip PREFIX and SUFFIX off of NAME.
7224 # PREFIX and SUFFIX must not contain globbing or regex special
7225 # characters, hashes, percent signs, but SUFFIX may contain a leading
7226 # dot (in which case that matches only a dot).
7227 func_stripname ()
7228 {
7229 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7230 # positional parameters, so assign one to ordinary parameter first.
7231 func_stripname_result=${3}
7232 func_stripname_result=${func_stripname_result#"${1}"}
7233 func_stripname_result=${func_stripname_result%"${2}"}
7234 }
7235
7236 # func_opt_split
7237 func_opt_split ()
7238 {
7239 func_opt_split_opt=${1%%=*}
7240 func_opt_split_arg=${1#*=}
7241 }
7242
7243 # func_lo2o object
7244 func_lo2o ()
7245 {
7246 case ${1} in
7247 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7248 *) func_lo2o_result=${1} ;;
7249 esac
7250 }
7251
7252 # func_xform libobj-or-source
7253 func_xform ()
7254 {
7255 func_xform_result=${1%.*}.lo
7256 }
7257
7258 # func_arith arithmetic-term...
7259 func_arith ()
7260 {
7261 func_arith_result=$(( $[*] ))
7262 }
7263
7264 # func_len string
7265 # STRING may not start with a hyphen.
7266 func_len ()
7267 {
7268 func_len_result=${#1}
7269 }
7270
7271 _LT_EOF
7272 ;;
7273 *) # Bourne compatible functions.
7274 cat << \_LT_EOF >> "$cfgfile"
7275
7276 # func_dirname file append nondir_replacement
7277 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7278 # otherwise set result to NONDIR_REPLACEMENT.
7279 func_dirname ()
7280 {
7281 # Extract subdirectory from the argument.
7282 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7283 if test "X$func_dirname_result" = "X${1}"; then
7284 func_dirname_result="${3}"
7285 else
7286 func_dirname_result="$func_dirname_result${2}"
7287 fi
7288 }
7289
7290 # func_basename file
7291 func_basename ()
7292 {
7293 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7294 }
7295
7296 dnl func_dirname_and_basename
7297 dnl A portable version of this function is already defined in general.m4sh
7298 dnl so there is no need for it here.
7299
7300 # func_stripname prefix suffix name
7301 # strip PREFIX and SUFFIX off of NAME.
7302 # PREFIX and SUFFIX must not contain globbing or regex special
7303 # characters, hashes, percent signs, but SUFFIX may contain a leading
7304 # dot (in which case that matches only a dot).
7305 # func_strip_suffix prefix name
7306 func_stripname ()
7307 {
7308 case ${2} in
7309 .*) func_stripname_result=`$ECHO "X${3}" \
7310 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7311 *) func_stripname_result=`$ECHO "X${3}" \
7312 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7313 esac
7314 }
7315
7316 # sed scripts:
7317 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7318 my_sed_long_arg='1s/^-[[^=]]*=//'
7319
7320 # func_opt_split
7321 func_opt_split ()
7322 {
7323 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7324 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7325 }
7326
7327 # func_lo2o object
7328 func_lo2o ()
7329 {
7330 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7331 }
7332
7333 # func_xform libobj-or-source
7334 func_xform ()
7335 {
7336 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7337 }
7338
7339 # func_arith arithmetic-term...
7340 func_arith ()
7341 {
7342 func_arith_result=`expr "$[@]"`
7343 }
7344
7345 # func_len string
7346 # STRING may not start with a hyphen.
7347 func_len ()
7348 {
7349 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7350 }
7351
7352 _LT_EOF
7353 esac
7354
7355 case $lt_shell_append in
7356 yes)
7357 cat << \_LT_EOF >> "$cfgfile"
7358
7359 # func_append var value
7360 # Append VALUE to the end of shell variable VAR.
7361 func_append ()
7362 {
7363 eval "$[1]+=\$[2]"
7364 }
7365 _LT_EOF
7366 ;;
7367 *)
7368 cat << \_LT_EOF >> "$cfgfile"
7369
7370 # func_append var value
7371 # Append VALUE to the end of shell variable VAR.
7372 func_append ()
7373 {
7374 eval "$[1]=\$$[1]\$[2]"
7375 }
7376
7377 _LT_EOF
7378 ;;
7379 esac
59257380 ])
5926 AC_MSG_RESULT([$SED])
7381
7382 # Helper functions for option handling. -*- Autoconf -*-
7383 #
7384 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7385 # Written by Gary V. Vaughan, 2004
7386 #
7387 # This file is free software; the Free Software Foundation gives
7388 # unlimited permission to copy and/or distribute it, with or without
7389 # modifications, as long as this notice is preserved.
7390
7391 # serial 6 ltoptions.m4
7392
7393 # This is to help aclocal find these macros, as it can't see m4_define.
7394 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7395
7396
7397 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7398 # ------------------------------------------
7399 m4_define([_LT_MANGLE_OPTION],
7400 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7401
7402
7403 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7404 # ---------------------------------------
7405 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7406 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
7407 # saved as a flag.
7408 m4_define([_LT_SET_OPTION],
7409 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7410 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7411 _LT_MANGLE_DEFUN([$1], [$2]),
7412 [m4_warning([Unknown $1 option `$2'])])[]dnl
59277413 ])
59287414
5929 # -*- Autoconf -*-
5930 # Copyright (C) 2002, 2003 Free Software Foundation, Inc.
5931 # Generated from amversion.in; do not edit by hand.
5932
5933 # This program is free software; you can redistribute it and/or modify
5934 # it under the terms of the GNU General Public License as published by
5935 # the Free Software Foundation; either version 2, or (at your option)
5936 # any later version.
5937
5938 # This program is distributed in the hope that it will be useful,
5939 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5941 # GNU General Public License for more details.
5942
5943 # You should have received a copy of the GNU General Public License
5944 # along with this program; if not, write to the Free Software
5945 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7415
7416 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7417 # ------------------------------------------------------------
7418 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7419 m4_define([_LT_IF_OPTION],
7420 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7421
7422
7423 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7424 # -------------------------------------------------------
7425 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7426 # are set.
7427 m4_define([_LT_UNLESS_OPTIONS],
7428 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7429 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7430 [m4_define([$0_found])])])[]dnl
7431 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7432 ])[]dnl
7433 ])
7434
7435
7436 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7437 # ----------------------------------------
7438 # OPTION-LIST is a space-separated list of Libtool options associated
7439 # with MACRO-NAME. If any OPTION has a matching handler declared with
7440 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7441 # the unknown option and exit.
7442 m4_defun([_LT_SET_OPTIONS],
7443 [# Set options
7444 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7445 [_LT_SET_OPTION([$1], _LT_Option)])
7446
7447 m4_if([$1],[LT_INIT],[
7448 dnl
7449 dnl Simply set some default values (i.e off) if boolean options were not
7450 dnl specified:
7451 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7452 ])
7453 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7454 ])
7455 dnl
7456 dnl If no reference was made to various pairs of opposing options, then
7457 dnl we run the default mode handler for the pair. For example, if neither
7458 dnl `shared' nor `disable-shared' was passed, we enable building of shared
7459 dnl archives by default:
7460 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7461 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7462 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7463 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7464 [_LT_ENABLE_FAST_INSTALL])
7465 ])
7466 ])# _LT_SET_OPTIONS
7467
7468
7469
7470 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7471 # -----------------------------------------
7472 m4_define([_LT_MANGLE_DEFUN],
7473 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7474
7475
7476 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7477 # -----------------------------------------------
7478 m4_define([LT_OPTION_DEFINE],
7479 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7480 ])# LT_OPTION_DEFINE
7481
7482
7483 # dlopen
7484 # ------
7485 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7486 ])
7487
7488 AU_DEFUN([AC_LIBTOOL_DLOPEN],
7489 [_LT_SET_OPTION([LT_INIT], [dlopen])
7490 AC_DIAGNOSE([obsolete],
7491 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7492 put the `dlopen' option into LT_INIT's first parameter.])
7493 ])
7494
7495 dnl aclocal-1.4 backwards compatibility:
7496 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7497
7498
7499 # win32-dll
7500 # ---------
7501 # Declare package support for building win32 dll's.
7502 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7503 [enable_win32_dll=yes
7504
7505 case $host in
7506 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7507 AC_CHECK_TOOL(AS, as, false)
7508 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7509 AC_CHECK_TOOL(OBJDUMP, objdump, false)
7510 ;;
7511 esac
7512
7513 test -z "$AS" && AS=as
7514 _LT_DECL([], [AS], [0], [Assembler program])dnl
7515
7516 test -z "$DLLTOOL" && DLLTOOL=dlltool
7517 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7518
7519 test -z "$OBJDUMP" && OBJDUMP=objdump
7520 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7521 ])# win32-dll
7522
7523 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7524 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7525 _LT_SET_OPTION([LT_INIT], [win32-dll])
7526 AC_DIAGNOSE([obsolete],
7527 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7528 put the `win32-dll' option into LT_INIT's first parameter.])
7529 ])
7530
7531 dnl aclocal-1.4 backwards compatibility:
7532 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7533
7534
7535 # _LT_ENABLE_SHARED([DEFAULT])
7536 # ----------------------------
7537 # implement the --enable-shared flag, and supports the `shared' and
7538 # `disable-shared' LT_INIT options.
7539 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7540 m4_define([_LT_ENABLE_SHARED],
7541 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7542 AC_ARG_ENABLE([shared],
7543 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7544 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7545 [p=${PACKAGE-default}
7546 case $enableval in
7547 yes) enable_shared=yes ;;
7548 no) enable_shared=no ;;
7549 *)
7550 enable_shared=no
7551 # Look at the argument we got. We use all the common list separators.
7552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7553 for pkg in $enableval; do
7554 IFS="$lt_save_ifs"
7555 if test "X$pkg" = "X$p"; then
7556 enable_shared=yes
7557 fi
7558 done
7559 IFS="$lt_save_ifs"
7560 ;;
7561 esac],
7562 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7563
7564 _LT_DECL([build_libtool_libs], [enable_shared], [0],
7565 [Whether or not to build shared libraries])
7566 ])# _LT_ENABLE_SHARED
7567
7568 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
7569 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
7570
7571 # Old names:
7572 AC_DEFUN([AC_ENABLE_SHARED],
7573 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
7574 ])
7575
7576 AC_DEFUN([AC_DISABLE_SHARED],
7577 [_LT_SET_OPTION([LT_INIT], [disable-shared])
7578 ])
7579
7580 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7581 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7582
7583 dnl aclocal-1.4 backwards compatibility:
7584 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
7585 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
7586
7587
7588
7589 # _LT_ENABLE_STATIC([DEFAULT])
7590 # ----------------------------
7591 # implement the --enable-static flag, and support the `static' and
7592 # `disable-static' LT_INIT options.
7593 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7594 m4_define([_LT_ENABLE_STATIC],
7595 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
7596 AC_ARG_ENABLE([static],
7597 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7598 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
7599 [p=${PACKAGE-default}
7600 case $enableval in
7601 yes) enable_static=yes ;;
7602 no) enable_static=no ;;
7603 *)
7604 enable_static=no
7605 # Look at the argument we got. We use all the common list separators.
7606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7607 for pkg in $enableval; do
7608 IFS="$lt_save_ifs"
7609 if test "X$pkg" = "X$p"; then
7610 enable_static=yes
7611 fi
7612 done
7613 IFS="$lt_save_ifs"
7614 ;;
7615 esac],
7616 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
7617
7618 _LT_DECL([build_old_libs], [enable_static], [0],
7619 [Whether or not to build static libraries])
7620 ])# _LT_ENABLE_STATIC
7621
7622 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
7623 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
7624
7625 # Old names:
7626 AC_DEFUN([AC_ENABLE_STATIC],
7627 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
7628 ])
7629
7630 AC_DEFUN([AC_DISABLE_STATIC],
7631 [_LT_SET_OPTION([LT_INIT], [disable-static])
7632 ])
7633
7634 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7635 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7636
7637 dnl aclocal-1.4 backwards compatibility:
7638 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
7639 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
7640
7641
7642
7643 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
7644 # ----------------------------------
7645 # implement the --enable-fast-install flag, and support the `fast-install'
7646 # and `disable-fast-install' LT_INIT options.
7647 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7648 m4_define([_LT_ENABLE_FAST_INSTALL],
7649 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
7650 AC_ARG_ENABLE([fast-install],
7651 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7652 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7653 [p=${PACKAGE-default}
7654 case $enableval in
7655 yes) enable_fast_install=yes ;;
7656 no) enable_fast_install=no ;;
7657 *)
7658 enable_fast_install=no
7659 # Look at the argument we got. We use all the common list separators.
7660 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7661 for pkg in $enableval; do
7662 IFS="$lt_save_ifs"
7663 if test "X$pkg" = "X$p"; then
7664 enable_fast_install=yes
7665 fi
7666 done
7667 IFS="$lt_save_ifs"
7668 ;;
7669 esac],
7670 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
7671
7672 _LT_DECL([fast_install], [enable_fast_install], [0],
7673 [Whether or not to optimize for fast installation])dnl
7674 ])# _LT_ENABLE_FAST_INSTALL
7675
7676 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
7677 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
7678
7679 # Old names:
7680 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
7681 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
7682 AC_DIAGNOSE([obsolete],
7683 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
7684 the `fast-install' option into LT_INIT's first parameter.])
7685 ])
7686
7687 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
7688 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
7689 AC_DIAGNOSE([obsolete],
7690 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
7691 the `disable-fast-install' option into LT_INIT's first parameter.])
7692 ])
7693
7694 dnl aclocal-1.4 backwards compatibility:
7695 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
7696 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
7697
7698
7699 # _LT_WITH_PIC([MODE])
7700 # --------------------
7701 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
7702 # LT_INIT options.
7703 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
7704 m4_define([_LT_WITH_PIC],
7705 [AC_ARG_WITH([pic],
7706 [AS_HELP_STRING([--with-pic],
7707 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7708 [pic_mode="$withval"],
7709 [pic_mode=default])
7710
7711 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7712
7713 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
7714 ])# _LT_WITH_PIC
7715
7716 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
7717 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
7718
7719 # Old name:
7720 AU_DEFUN([AC_LIBTOOL_PICMODE],
7721 [_LT_SET_OPTION([LT_INIT], [pic-only])
7722 AC_DIAGNOSE([obsolete],
7723 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7724 put the `pic-only' option into LT_INIT's first parameter.])
7725 ])
7726
7727 dnl aclocal-1.4 backwards compatibility:
7728 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
7729
7730
7731 m4_define([_LTDL_MODE], [])
7732 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
7733 [m4_define([_LTDL_MODE], [nonrecursive])])
7734 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
7735 [m4_define([_LTDL_MODE], [recursive])])
7736 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
7737 [m4_define([_LTDL_MODE], [subproject])])
7738
7739 m4_define([_LTDL_TYPE], [])
7740 LT_OPTION_DEFINE([LTDL_INIT], [installable],
7741 [m4_define([_LTDL_TYPE], [installable])])
7742 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
7743 [m4_define([_LTDL_TYPE], [convenience])])
7744
7745 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
7746 #
7747 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7748 # Written by Gary V. Vaughan, 2004
7749 #
7750 # This file is free software; the Free Software Foundation gives
7751 # unlimited permission to copy and/or distribute it, with or without
7752 # modifications, as long as this notice is preserved.
7753
7754 # serial 6 ltsugar.m4
7755
7756 # This is to help aclocal find these macros, as it can't see m4_define.
7757 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
7758
7759
7760 # lt_join(SEP, ARG1, [ARG2...])
7761 # -----------------------------
7762 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
7763 # associated separator.
7764 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
7765 # versions in m4sugar had bugs.
7766 m4_define([lt_join],
7767 [m4_if([$#], [1], [],
7768 [$#], [2], [[$2]],
7769 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
7770 m4_define([_lt_join],
7771 [m4_if([$#$2], [2], [],
7772 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
7773
7774
7775 # lt_car(LIST)
7776 # lt_cdr(LIST)
7777 # ------------
7778 # Manipulate m4 lists.
7779 # These macros are necessary as long as will still need to support
7780 # Autoconf-2.59 which quotes differently.
7781 m4_define([lt_car], [[$1]])
7782 m4_define([lt_cdr],
7783 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
7784 [$#], 1, [],
7785 [m4_dquote(m4_shift($@))])])
7786 m4_define([lt_unquote], $1)
7787
7788
7789 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
7790 # ------------------------------------------
7791 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
7792 # Note that neither SEPARATOR nor STRING are expanded; they are appended
7793 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
7794 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
7795 # than defined and empty).
7796 #
7797 # This macro is needed until we can rely on Autoconf 2.62, since earlier
7798 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
7799 m4_define([lt_append],
7800 [m4_define([$1],
7801 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
7802
7803
7804
7805 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
7806 # ----------------------------------------------------------
7807 # Produce a SEP delimited list of all paired combinations of elements of
7808 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
7809 # has the form PREFIXmINFIXSUFFIXn.
7810 # Needed until we can rely on m4_combine added in Autoconf 2.62.
7811 m4_define([lt_combine],
7812 [m4_if(m4_eval([$# > 3]), [1],
7813 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
7814 [[m4_foreach([_Lt_prefix], [$2],
7815 [m4_foreach([_Lt_suffix],
7816 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
7817 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
7818
7819
7820 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
7821 # -----------------------------------------------------------------------
7822 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
7823 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
7824 m4_define([lt_if_append_uniq],
7825 [m4_ifdef([$1],
7826 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
7827 [lt_append([$1], [$2], [$3])$4],
7828 [$5])],
7829 [lt_append([$1], [$2], [$3])$4])])
7830
7831
7832 # lt_dict_add(DICT, KEY, VALUE)
7833 # -----------------------------
7834 m4_define([lt_dict_add],
7835 [m4_define([$1($2)], [$3])])
7836
7837
7838 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
7839 # --------------------------------------------
7840 m4_define([lt_dict_add_subkey],
7841 [m4_define([$1($2:$3)], [$4])])
7842
7843
7844 # lt_dict_fetch(DICT, KEY, [SUBKEY])
7845 # ----------------------------------
7846 m4_define([lt_dict_fetch],
7847 [m4_ifval([$3],
7848 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
7849 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
7850
7851
7852 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
7853 # -----------------------------------------------------------------
7854 m4_define([lt_if_dict_fetch],
7855 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
7856 [$5],
7857 [$6])])
7858
7859
7860 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
7861 # --------------------------------------------------------------
7862 m4_define([lt_dict_filter],
7863 [m4_if([$5], [], [],
7864 [lt_join(m4_quote(m4_default([$4], [[, ]])),
7865 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
7866 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
7867 ])
7868
7869 # ltversion.m4 -- version numbers -*- Autoconf -*-
7870 #
7871 # Copyright (C) 2004 Free Software Foundation, Inc.
7872 # Written by Scott James Remnant, 2004
7873 #
7874 # This file is free software; the Free Software Foundation gives
7875 # unlimited permission to copy and/or distribute it, with or without
7876 # modifications, as long as this notice is preserved.
7877
7878 # Generated from ltversion.in.
7879
7880 # serial 3012 ltversion.m4
7881 # This file is part of GNU Libtool
7882
7883 m4_define([LT_PACKAGE_VERSION], [2.2.6])
7884 m4_define([LT_PACKAGE_REVISION], [1.3012])
7885
7886 AC_DEFUN([LTVERSION_VERSION],
7887 [macro_version='2.2.6'
7888 macro_revision='1.3012'
7889 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7890 _LT_DECL(, macro_revision, 0)
7891 ])
7892
7893 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
7894 #
7895 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7896 # Written by Scott James Remnant, 2004.
7897 #
7898 # This file is free software; the Free Software Foundation gives
7899 # unlimited permission to copy and/or distribute it, with or without
7900 # modifications, as long as this notice is preserved.
7901
7902 # serial 4 lt~obsolete.m4
7903
7904 # These exist entirely to fool aclocal when bootstrapping libtool.
7905 #
7906 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
7907 # which have later been changed to m4_define as they aren't part of the
7908 # exported API, or moved to Autoconf or Automake where they belong.
7909 #
7910 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
7911 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
7912 # using a macro with the same name in our local m4/libtool.m4 it'll
7913 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
7914 # and doesn't know about Autoconf macros at all.)
7915 #
7916 # So we provide this file, which has a silly filename so it's always
7917 # included after everything else. This provides aclocal with the
7918 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
7919 # because those macros already exist, or will be overwritten later.
7920 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
7921 #
7922 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
7923 # Yes, that means every name once taken will need to remain here until
7924 # we give up compatibility with versions before 1.7, at which point
7925 # we need to keep only those names which we still refer to.
7926
7927 # This is to help aclocal find these macros, as it can't see m4_define.
7928 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
7929
7930 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
7931 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
7932 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
7933 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
7934 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
7935 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
7936 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
7937 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
7938 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
7939 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
7940 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
7941 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
7942 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
7943 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
7944 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
7945 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
7946 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
7947 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
7948 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
7949 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
7950 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
7951 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
7952 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
7953 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
7954 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
7955 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
7956 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
7957 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
7958 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
7959 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
7960 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
7961 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
7962 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
7963 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
7964 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
7965 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
7966 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
7967 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
7968 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
7969 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7970 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7971 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7972 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
7973 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7974 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7975 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7976 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
7977 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
7978 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
7979 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
7980 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
7981 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
7982 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7983 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7984 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7985
7986 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7987 #
7988 # This file is free software; the Free Software Foundation
7989 # gives unlimited permission to copy and/or distribute it,
7990 # with or without modifications, as long as this notice is preserved.
59467991
59477992 # AM_AUTOMAKE_VERSION(VERSION)
59487993 # ----------------------------
59497994 # Automake X.Y traces this macro to ensure aclocal.m4 has been
59507995 # generated from the m4 files accompanying Automake X.Y.
5951 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
7996 # (This private macro should not be called outside this file.)
7997 AC_DEFUN([AM_AUTOMAKE_VERSION],
7998 [am__api_version='1.10'
7999 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8000 dnl require some minimum version. Point them to the right macro.
8001 m4_if([$1], [1.10.2], [],
8002 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8003 ])
8004
8005 # _AM_AUTOCONF_VERSION(VERSION)
8006 # -----------------------------
8007 # aclocal traces this macro to find the Autoconf version.
8008 # This is a private macro too. Using m4_define simplifies
8009 # the logic in aclocal, which can simply ignore this definition.
8010 m4_define([_AM_AUTOCONF_VERSION], [])
59528011
59538012 # AM_SET_CURRENT_AUTOMAKE_VERSION
59548013 # -------------------------------
5955 # Call AM_AUTOMAKE_VERSION so it can be traced.
5956 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
8014 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8015 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
59578016 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
5958 [AM_AUTOMAKE_VERSION([1.9.4])])
5959
5960 # AM_AUX_DIR_EXPAND
5961
5962 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
5963
5964 # This program is free software; you can redistribute it and/or modify
5965 # it under the terms of the GNU General Public License as published by
5966 # the Free Software Foundation; either version 2, or (at your option)
5967 # any later version.
5968
5969 # This program is distributed in the hope that it will be useful,
5970 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5971 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5972 # GNU General Public License for more details.
5973
5974 # You should have received a copy of the GNU General Public License
5975 # along with this program; if not, write to the Free Software
5976 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5977 # 02111-1307, USA.
8017 [AM_AUTOMAKE_VERSION([1.10.2])dnl
8018 m4_ifndef([AC_AUTOCONF_VERSION],
8019 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8020 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8021
8022 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
8023
8024 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8025 #
8026 # This file is free software; the Free Software Foundation
8027 # gives unlimited permission to copy and/or distribute it,
8028 # with or without modifications, as long as this notice is preserved.
59788029
59798030 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
59808031 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
60218072 am_aux_dir=`cd $ac_aux_dir && pwd`
60228073 ])
60238074
6024 # AM_CONDITIONAL -*- Autoconf -*-
6025
6026 # Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
6027
6028 # This program is free software; you can redistribute it and/or modify
6029 # it under the terms of the GNU General Public License as published by
6030 # the Free Software Foundation; either version 2, or (at your option)
6031 # any later version.
6032
6033 # This program is distributed in the hope that it will be useful,
6034 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6035 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6036 # GNU General Public License for more details.
6037
6038 # You should have received a copy of the GNU General Public License
6039 # along with this program; if not, write to the Free Software
6040 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6041 # 02111-1307, USA.
6042
6043 # serial 6
8075 # AM_CONDITIONAL -*- Autoconf -*-
8076
8077 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
8078 # Free Software Foundation, Inc.
8079 #
8080 # This file is free software; the Free Software Foundation
8081 # gives unlimited permission to copy and/or distribute it,
8082 # with or without modifications, as long as this notice is preserved.
8083
8084 # serial 8
60448085
60458086 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
60468087 # -------------------------------------
60498090 [AC_PREREQ(2.52)dnl
60508091 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
60518092 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6052 AC_SUBST([$1_TRUE])
6053 AC_SUBST([$1_FALSE])
8093 AC_SUBST([$1_TRUE])dnl
8094 AC_SUBST([$1_FALSE])dnl
8095 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
8096 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
60548097 if $2; then
60558098 $1_TRUE=
60568099 $1_FALSE='#'
60648107 Usually this means the macro was only invoked conditionally.]])
60658108 fi])])
60668109
6067 # serial 7 -*- Autoconf -*-
6068
6069 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
8110 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
60708111 # Free Software Foundation, Inc.
6071
6072 # This program is free software; you can redistribute it and/or modify
6073 # it under the terms of the GNU General Public License as published by
6074 # the Free Software Foundation; either version 2, or (at your option)
6075 # any later version.
6076
6077 # This program is distributed in the hope that it will be useful,
6078 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6079 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6080 # GNU General Public License for more details.
6081
6082 # You should have received a copy of the GNU General Public License
6083 # along with this program; if not, write to the Free Software
6084 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6085 # 02111-1307, USA.
6086
8112 #
8113 # This file is free software; the Free Software Foundation
8114 # gives unlimited permission to copy and/or distribute it,
8115 # with or without modifications, as long as this notice is preserved.
8116
8117 # serial 9
60878118
60888119 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
60898120 # written in clear, in which case automake, when reading aclocal.m4,
60908121 # will think it sees a *use*, and therefore will trigger all it's
60918122 # C support machinery. Also note that it means that autoscan, seeing
60928123 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6093
60948124
60958125
60968126 # _AM_DEPENDENCIES(NAME)
61128142 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
61138143 [$1], CXX, [depcc="$CXX" am_compiler_list=],
61148144 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8145 [$1], UPC, [depcc="$UPC" am_compiler_list=],
61158146 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
61168147 [depcc="$$1" am_compiler_list=])
61178148
61778208 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
61788209 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
61798210 >/dev/null 2>conftest.err &&
8211 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
61808212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
61818213 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
61828214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
62298261 AMDEPBACKSLASH='\'
62308262 fi
62318263 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6232 AC_SUBST([AMDEPBACKSLASH])
8264 AC_SUBST([AMDEPBACKSLASH])dnl
8265 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
62338266 ])
62348267
6235 # Generate code to set up dependency tracking. -*- Autoconf -*-
6236
6237 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
6238 # Free Software Foundation, Inc.
6239
6240 # This program is free software; you can redistribute it and/or modify
6241 # it under the terms of the GNU General Public License as published by
6242 # the Free Software Foundation; either version 2, or (at your option)
6243 # any later version.
6244
6245 # This program is distributed in the hope that it will be useful,
6246 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6247 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6248 # GNU General Public License for more details.
6249
6250 # You should have received a copy of the GNU General Public License
6251 # along with this program; if not, write to the Free Software
6252 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6253 # 02111-1307, USA.
6254
6255 #serial 2
8268 # Generate code to set up dependency tracking. -*- Autoconf -*-
8269
8270 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8271 # Free Software Foundation, Inc.
8272 #
8273 # This file is free software; the Free Software Foundation
8274 # gives unlimited permission to copy and/or distribute it,
8275 # with or without modifications, as long as this notice is preserved.
8276
8277 #serial 4
62568278
62578279 # _AM_OUTPUT_DEPENDENCY_COMMANDS
62588280 # ------------------------------
62598281 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6260 [for mf in $CONFIG_FILES; do
8282 [# Autoconf 2.62 quotes --file arguments for eval, but not when files
8283 # are listed without --file. Let's play safe and only enable the eval
8284 # if we detect the quoting.
8285 case $CONFIG_FILES in
8286 *\'*) eval set x "$CONFIG_FILES" ;;
8287 *) set x $CONFIG_FILES ;;
8288 esac
8289 shift
8290 for mf
8291 do
62618292 # Strip MF so we end up with the name of the file.
62628293 mf=`echo "$mf" | sed -e 's/:.*$//'`
62638294 # Check whether this is an Automake generated Makefile or not.
62658296 # some people rename them; so instead we look at the file content.
62668297 # Grep'ing the first line is not enough: some people post-process
62678298 # each Makefile.in and add a new line on top of each file to say so.
6268 # So let's grep whole file.
6269 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8299 # Grep'ing the whole file is not good either: AIX grep has a line
8300 # limit of 2048, but all sed's we know have understand at least 4000.
8301 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
62708302 dirpart=`AS_DIRNAME("$mf")`
62718303 else
62728304 continue
63118343 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
63128344 ])
63138345
6314 # Do all the work for Automake. -*- Autoconf -*-
6315
6316 # This macro actually does too much some checks are only needed if
8346 # Do all the work for Automake. -*- Autoconf -*-
8347
8348 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8349 # 2005, 2006, 2008 Free Software Foundation, Inc.
8350 #
8351 # This file is free software; the Free Software Foundation
8352 # gives unlimited permission to copy and/or distribute it,
8353 # with or without modifications, as long as this notice is preserved.
8354
8355 # serial 13
8356
8357 # This macro actually does too much. Some checks are only needed if
63178358 # your package does certain things. But this isn't really a big deal.
6318
6319 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
6320 # Free Software Foundation, Inc.
6321
6322 # This program is free software; you can redistribute it and/or modify
6323 # it under the terms of the GNU General Public License as published by
6324 # the Free Software Foundation; either version 2, or (at your option)
6325 # any later version.
6326
6327 # This program is distributed in the hope that it will be useful,
6328 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6329 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6330 # GNU General Public License for more details.
6331
6332 # You should have received a copy of the GNU General Public License
6333 # along with this program; if not, write to the Free Software
6334 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6335 # 02111-1307, USA.
6336
6337 # serial 11
63388359
63398360 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
63408361 # AM_INIT_AUTOMAKE([OPTIONS])
63488369 # arguments mandatory, and then we can depend on a new Autoconf
63498370 # release and drop the old call support.
63508371 AC_DEFUN([AM_INIT_AUTOMAKE],
6351 [AC_PREREQ([2.58])dnl
8372 [AC_PREREQ([2.60])dnl
63528373 dnl Autoconf wants to disallow AM_ names. We explicitly allow
63538374 dnl the ones we care about.
63548375 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
63558376 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
63568377 AC_REQUIRE([AC_PROG_INSTALL])dnl
6357 # test to see if srcdir already configured
6358 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6359 test -f $srcdir/config.status; then
6360 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8378 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8379 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8380 # is not polluted with repeated "-I."
8381 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
8382 # test to see if srcdir already configured
8383 if test -f $srcdir/config.status; then
8384 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8385 fi
63618386 fi
63628387
63638388 # test whether we have cygpath
63778402 AC_SUBST([PACKAGE], [$1])dnl
63788403 AC_SUBST([VERSION], [$2])],
63798404 [_AM_SET_OPTIONS([$1])dnl
8405 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
8406 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
8407 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
63808408 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
63818409 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
63828410
64128440 [_AM_DEPENDENCIES(CXX)],
64138441 [define([AC_PROG_CXX],
64148442 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
8443 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
8444 [_AM_DEPENDENCIES(OBJC)],
8445 [define([AC_PROG_OBJC],
8446 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
64158447 ])
64168448 ])
64178449
64258457 # our stamp files there.
64268458 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
64278459 [# Compute $1's index in $config_headers.
8460 _am_arg=$1
64288461 _am_stamp_count=1
64298462 for _am_header in $config_headers :; do
64308463 case $_am_header in
6431 $1 | $1:* )
8464 $_am_arg | $_am_arg:* )
64328465 break ;;
64338466 * )
64348467 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
64358468 esac
64368469 done
6437 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
8470 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
8471
8472 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8473 #
8474 # This file is free software; the Free Software Foundation
8475 # gives unlimited permission to copy and/or distribute it,
8476 # with or without modifications, as long as this notice is preserved.
64388477
64398478 # AM_PROG_INSTALL_SH
64408479 # ------------------
64418480 # Define $install_sh.
6442
6443 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6444
6445 # This program is free software; you can redistribute it and/or modify
6446 # it under the terms of the GNU General Public License as published by
6447 # the Free Software Foundation; either version 2, or (at your option)
6448 # any later version.
6449
6450 # This program is distributed in the hope that it will be useful,
6451 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6452 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6453 # GNU General Public License for more details.
6454
6455 # You should have received a copy of the GNU General Public License
6456 # along with this program; if not, write to the Free Software
6457 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6458 # 02111-1307, USA.
6459
64608481 AC_DEFUN([AM_PROG_INSTALL_SH],
64618482 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6462 install_sh=${install_sh-"$am_aux_dir/install-sh"}
8483 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
64638484 AC_SUBST(install_sh)])
64648485
6465 # -*- Autoconf -*-
6466 # Copyright (C) 2003 Free Software Foundation, Inc.
6467
6468 # This program is free software; you can redistribute it and/or modify
6469 # it under the terms of the GNU General Public License as published by
6470 # the Free Software Foundation; either version 2, or (at your option)
6471 # any later version.
6472
6473 # This program is distributed in the hope that it will be useful,
6474 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6475 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6476 # GNU General Public License for more details.
6477
6478 # You should have received a copy of the GNU General Public License
6479 # along with this program; if not, write to the Free Software
6480 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6481 # 02111-1307, USA.
6482
6483 # serial 1
8486 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
8487 #
8488 # This file is free software; the Free Software Foundation
8489 # gives unlimited permission to copy and/or distribute it,
8490 # with or without modifications, as long as this notice is preserved.
8491
8492 # serial 2
64848493
64858494 # Check whether the underlying file-system supports filenames
64868495 # with a leading dot. For instance MS-DOS doesn't.
64958504 rmdir .tst 2>/dev/null
64968505 AC_SUBST([am__leading_dot])])
64978506
6498 # Add --enable-maintainer-mode option to configure.
8507 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
64998508 # From Jim Meyering
65008509
6501 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
8510 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
65028511 # Free Software Foundation, Inc.
6503
6504 # This program is free software; you can redistribute it and/or modify
6505 # it under the terms of the GNU General Public License as published by
6506 # the Free Software Foundation; either version 2, or (at your option)
6507 # any later version.
6508
6509 # This program is distributed in the hope that it will be useful,
6510 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6511 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6512 # GNU General Public License for more details.
6513
6514 # You should have received a copy of the GNU General Public License
6515 # along with this program; if not, write to the Free Software
6516 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6517 # 02111-1307, USA.
6518
6519 # serial 3
8512 #
8513 # This file is free software; the Free Software Foundation
8514 # gives unlimited permission to copy and/or distribute it,
8515 # with or without modifications, as long as this notice is preserved.
8516
8517 # serial 4
65208518
65218519 AC_DEFUN([AM_MAINTAINER_MODE],
65228520 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
65358533
65368534 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
65378535
6538 # Check to see how 'make' treats includes. -*- Autoconf -*-
6539
6540 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6541
6542 # This program is free software; you can redistribute it and/or modify
6543 # it under the terms of the GNU General Public License as published by
6544 # the Free Software Foundation; either version 2, or (at your option)
6545 # any later version.
6546
6547 # This program is distributed in the hope that it will be useful,
6548 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6549 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6550 # GNU General Public License for more details.
6551
6552 # You should have received a copy of the GNU General Public License
6553 # along with this program; if not, write to the Free Software
6554 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6555 # 02111-1307, USA.
6556
6557 # serial 2
8536 # Check to see how 'make' treats includes. -*- Autoconf -*-
8537
8538 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8539 #
8540 # This file is free software; the Free Software Foundation
8541 # gives unlimited permission to copy and/or distribute it,
8542 # with or without modifications, as long as this notice is preserved.
8543
8544 # serial 3
65588545
65598546 # AM_MAKE_INCLUDE()
65608547 # -----------------
65988585 rm -f confinc confmf
65998586 ])
66008587
6601 # -*- Autoconf -*-
6602
6603
6604 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
6605
6606 # This program is free software; you can redistribute it and/or modify
6607 # it under the terms of the GNU General Public License as published by
6608 # the Free Software Foundation; either version 2, or (at your option)
6609 # any later version.
6610
6611 # This program is distributed in the hope that it will be useful,
6612 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6613 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6614 # GNU General Public License for more details.
6615
6616 # You should have received a copy of the GNU General Public License
6617 # along with this program; if not, write to the Free Software
6618 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6619 # 02111-1307, USA.
6620
6621 # serial 3
8588 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
8589
8590 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
8591 # Free Software Foundation, Inc.
8592 #
8593 # This file is free software; the Free Software Foundation
8594 # gives unlimited permission to copy and/or distribute it,
8595 # with or without modifications, as long as this notice is preserved.
8596
8597 # serial 5
66228598
66238599 # AM_MISSING_PROG(NAME, PROGRAM)
66248600 # ------------------------------
66348610 # If it does, set am_missing_run to use it, otherwise, to nothing.
66358611 AC_DEFUN([AM_MISSING_HAS_RUN],
66368612 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8613 AC_REQUIRE_AUX_FILE([missing])dnl
66378614 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
66388615 # Use eval to expand $SHELL
66398616 if eval "$MISSING --run true"; then
66448621 fi
66458622 ])
66468623
8624 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8625 #
8626 # This file is free software; the Free Software Foundation
8627 # gives unlimited permission to copy and/or distribute it,
8628 # with or without modifications, as long as this notice is preserved.
8629
66478630 # AM_PROG_MKDIR_P
66488631 # ---------------
6649 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6650
6651 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
6652
6653 # This program is free software; you can redistribute it and/or modify
6654 # it under the terms of the GNU General Public License as published by
6655 # the Free Software Foundation; either version 2, or (at your option)
6656 # any later version.
6657
6658 # This program is distributed in the hope that it will be useful,
6659 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6661 # GNU General Public License for more details.
6662
6663 # You should have received a copy of the GNU General Public License
6664 # along with this program; if not, write to the Free Software
6665 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6666 # 02111-1307, USA.
6667
6668 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6669 # created by `make install' are always world readable, even if the
6670 # installer happens to have an overly restrictive umask (e.g. 077).
6671 # This was a mistake. There are at least two reasons why we must not
6672 # use `-m 0755':
6673 # - it causes special bits like SGID to be ignored,
6674 # - it may be too restrictive (some setups expect 775 directories).
8632 # Check for `mkdir -p'.
8633 AC_DEFUN([AM_PROG_MKDIR_P],
8634 [AC_PREREQ([2.60])dnl
8635 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
8636 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
8637 dnl while keeping a definition of mkdir_p for backward compatibility.
8638 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
8639 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
8640 dnl Makefile.ins that do not define MKDIR_P, so we do our own
8641 dnl adjustment using top_builddir (which is defined more often than
8642 dnl MKDIR_P).
8643 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
8644 case $mkdir_p in
8645 [[\\/$]]* | ?:[[\\/]]*) ;;
8646 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8647 esac
8648 ])
8649
8650 # Helper functions for option handling. -*- Autoconf -*-
8651
8652 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
66758653 #
6676 # Do not use -m 0755 and let people choose whatever they expect by
6677 # setting umask.
6678 #
6679 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
6680 # Some implementations (such as Solaris 8's) are not thread-safe: if a
6681 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
6682 # concurrently, both version can detect that a/ is missing, but only
6683 # one can create it and the other will error out. Consequently we
6684 # restrict ourselves to GNU make (using the --version option ensures
6685 # this.)
6686 AC_DEFUN([AM_PROG_MKDIR_P],
6687 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6688 # We used to keeping the `.' as first argument, in order to
6689 # allow $(mkdir_p) to be used without argument. As in
6690 # $(mkdir_p) $(somedir)
6691 # where $(somedir) is conditionally defined. However this is wrong
6692 # for two reasons:
6693 # 1. if the package is installed by a user who cannot write `.'
6694 # make install will fail,
6695 # 2. the above comment should most certainly read
6696 # $(mkdir_p) $(DESTDIR)$(somedir)
6697 # so it does not work when $(somedir) is undefined and
6698 # $(DESTDIR) is not.
6699 # To support the latter case, we have to write
6700 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6701 # so the `.' trick is pointless.
6702 mkdir_p='mkdir -p --'
6703 else
6704 # On NextStep and OpenStep, the `mkdir' command does not
6705 # recognize any option. It will interpret all options as
6706 # directories to create, and then abort because `.' already
6707 # exists.
6708 for d in ./-p ./--version;
6709 do
6710 test -d $d && rmdir $d
6711 done
6712 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6713 if test -f "$ac_aux_dir/mkinstalldirs"; then
6714 mkdir_p='$(mkinstalldirs)'
6715 else
6716 mkdir_p='$(install_sh) -d'
6717 fi
6718 fi
6719 AC_SUBST([mkdir_p])])
6720
6721 # Helper functions for option handling. -*- Autoconf -*-
6722
6723 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6724
6725 # This program is free software; you can redistribute it and/or modify
6726 # it under the terms of the GNU General Public License as published by
6727 # the Free Software Foundation; either version 2, or (at your option)
6728 # any later version.
6729
6730 # This program is distributed in the hope that it will be useful,
6731 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6732 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6733 # GNU General Public License for more details.
6734
6735 # You should have received a copy of the GNU General Public License
6736 # along with this program; if not, write to the Free Software
6737 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6738 # 02111-1307, USA.
6739
6740 # serial 2
8654 # This file is free software; the Free Software Foundation
8655 # gives unlimited permission to copy and/or distribute it,
8656 # with or without modifications, as long as this notice is preserved.
8657
8658 # serial 4
67418659
67428660 # _AM_MANGLE_OPTION(NAME)
67438661 # -----------------------
67548672 # ----------------------------------
67558673 # OPTIONS is a space-separated list of Automake options.
67568674 AC_DEFUN([_AM_SET_OPTIONS],
6757 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8675 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
67588676
67598677 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
67608678 # -------------------------------------------
67628680 AC_DEFUN([_AM_IF_OPTION],
67638681 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
67648682
8683 # Check to make sure that the build environment is sane. -*- Autoconf -*-
8684
8685 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
8686 # Free Software Foundation, Inc.
67658687 #
6766 # Check to make sure that the build environment is sane.
6767 #
6768
6769 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6770
6771 # This program is free software; you can redistribute it and/or modify
6772 # it under the terms of the GNU General Public License as published by
6773 # the Free Software Foundation; either version 2, or (at your option)
6774 # any later version.
6775
6776 # This program is distributed in the hope that it will be useful,
6777 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6778 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6779 # GNU General Public License for more details.
6780
6781 # You should have received a copy of the GNU General Public License
6782 # along with this program; if not, write to the Free Software
6783 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6784 # 02111-1307, USA.
6785
6786 # serial 3
8688 # This file is free software; the Free Software Foundation
8689 # gives unlimited permission to copy and/or distribute it,
8690 # with or without modifications, as long as this notice is preserved.
8691
8692 # serial 4
67878693
67888694 # AM_SANITY_CHECK
67898695 # ---------------
68268732 fi
68278733 AC_MSG_RESULT(yes)])
68288734
8735 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8736 #
8737 # This file is free software; the Free Software Foundation
8738 # gives unlimited permission to copy and/or distribute it,
8739 # with or without modifications, as long as this notice is preserved.
8740
68298741 # AM_PROG_INSTALL_STRIP
6830
6831 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6832
6833 # This program is free software; you can redistribute it and/or modify
6834 # it under the terms of the GNU General Public License as published by
6835 # the Free Software Foundation; either version 2, or (at your option)
6836 # any later version.
6837
6838 # This program is distributed in the hope that it will be useful,
6839 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6840 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6841 # GNU General Public License for more details.
6842
6843 # You should have received a copy of the GNU General Public License
6844 # along with this program; if not, write to the Free Software
6845 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6846 # 02111-1307, USA.
6847
8742 # ---------------------
68488743 # One issue with vendor `install' (even GNU) is that you can't
68498744 # specify the program used to strip binaries. This is especially
68508745 # annoying in cross-compiling environments, where the build's strip
68628757 if test "$cross_compiling" != no; then
68638758 AC_CHECK_TOOL([STRIP], [strip], :)
68648759 fi
6865 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8760 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
68668761 AC_SUBST([INSTALL_STRIP_PROGRAM])])
68678762
8763 # Copyright (C) 2006 Free Software Foundation, Inc.
8764 #
8765 # This file is free software; the Free Software Foundation
8766 # gives unlimited permission to copy and/or distribute it,
8767 # with or without modifications, as long as this notice is preserved.
8768
8769 # _AM_SUBST_NOTMAKE(VARIABLE)
8770 # ---------------------------
8771 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
8772 # This macro is traced by Automake.
8773 AC_DEFUN([_AM_SUBST_NOTMAKE])
8774
68688775 # Check how to create a tarball. -*- Autoconf -*-
68698776
6870 # Copyright (C) 2004 Free Software Foundation, Inc.
6871
6872 # This program is free software; you can redistribute it and/or modify
6873 # it under the terms of the GNU General Public License as published by
6874 # the Free Software Foundation; either version 2, or (at your option)
6875 # any later version.
6876
6877 # This program is distributed in the hope that it will be useful,
6878 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6879 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6880 # GNU General Public License for more details.
6881
6882 # You should have received a copy of the GNU General Public License
6883 # along with this program; if not, write to the Free Software
6884 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6885 # 02111-1307, USA.
6886
6887 # serial 1
6888
8777 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
8778 #
8779 # This file is free software; the Free Software Foundation
8780 # gives unlimited permission to copy and/or distribute it,
8781 # with or without modifications, as long as this notice is preserved.
8782
8783 # serial 2
68898784
68908785 # _AM_PROG_TAR(FORMAT)
68918786 # --------------------
5050 echo
5151 echo LIBTOOLIZE...
5252
53 $LIBTOOLIZE --automake --copy || exit 1
53 $LIBTOOLIZE --automake --copy --force || exit 1
5454
5555 echo
5656 echo ACLOCAL...
6060 echo
6161 echo AUTOMAKE...
6262
63 $AUTOMAKE --add-missing --include-deps --copy || exit 1
63 $AUTOMAKE --add-missing --include-deps --copy --force || exit 1
6464
6565 echo
6666 echo AUTOCONF...
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
4
5 timestamp='2004-08-13'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-04-27'
67
78 # This file is free software; you can redistribute it and/or modify it
89 # under the terms of the GNU General Public License as published by
1617 #
1718 # You should have received a copy of the GNU General Public License
1819 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
2022 #
2123 # As a special exception to the GNU General Public License, if you
2224 # distribute this file as part of a program that contains a
2325 # configuration script generated by Autoconf, you may include it under
2426 # the same distribution terms that you use for the rest of that program.
27
2528
2629 # Originally written by Per Bothner <per@bothner.com>.
2730 # Please send patches to <config-patches@gnu.org>. Submit a context
5255 GNU config.guess ($timestamp)
5356
5457 Originally written by Per Bothner.
55 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
56 Free Software Foundation, Inc.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5760
5861 This is free software; see the source for copying conditions. There is NO
5962 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
6568 while test $# -gt 0 ; do
6669 case $1 in
6770 --time-stamp | --time* | -t )
68 echo "$timestamp" ; exit 0 ;;
71 echo "$timestamp" ; exit ;;
6972 --version | -v )
70 echo "$version" ; exit 0 ;;
73 echo "$version" ; exit ;;
7174 --help | --h* | -h )
72 echo "$usage"; exit 0 ;;
75 echo "$usage"; exit ;;
7376 -- ) # Stop option processing
7477 shift; break ;;
7578 - ) # Use stdin as input.
103106 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
104107 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
105108 : ${TMPDIR=/tmp} ;
106 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
107110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
108111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
109112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
122125 ;;
123126 ,,*) CC_FOR_BUILD=$CC ;;
124127 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
125 esac ;'
128 esac ; set_cc_for_build= ;'
126129
127130 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
128131 # (ghazi@noc.rutgers.edu 1994-08-24)
157160 arm*) machine=arm-unknown ;;
158161 sh3el) machine=shl-unknown ;;
159162 sh3eb) machine=sh-unknown ;;
163 sh5el) machine=sh5le-unknown ;;
160164 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
161165 esac
162166 # The Operating System including object format, if it has switched
195199 # contains redundant information, the shorter form:
196200 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
197201 echo "${machine}-${os}${release}"
198 exit 0 ;;
199 amd64:OpenBSD:*:*)
200 echo x86_64-unknown-openbsd${UNAME_RELEASE}
201 exit 0 ;;
202 amiga:OpenBSD:*:*)
203 echo m68k-unknown-openbsd${UNAME_RELEASE}
204 exit 0 ;;
205 cats:OpenBSD:*:*)
206 echo arm-unknown-openbsd${UNAME_RELEASE}
207 exit 0 ;;
208 hp300:OpenBSD:*:*)
209 echo m68k-unknown-openbsd${UNAME_RELEASE}
210 exit 0 ;;
211 luna88k:OpenBSD:*:*)
212 echo m88k-unknown-openbsd${UNAME_RELEASE}
213 exit 0 ;;
214 mac68k:OpenBSD:*:*)
215 echo m68k-unknown-openbsd${UNAME_RELEASE}
216 exit 0 ;;
217 macppc:OpenBSD:*:*)
218 echo powerpc-unknown-openbsd${UNAME_RELEASE}
219 exit 0 ;;
220 mvme68k:OpenBSD:*:*)
221 echo m68k-unknown-openbsd${UNAME_RELEASE}
222 exit 0 ;;
223 mvme88k:OpenBSD:*:*)
224 echo m88k-unknown-openbsd${UNAME_RELEASE}
225 exit 0 ;;
226 mvmeppc:OpenBSD:*:*)
227 echo powerpc-unknown-openbsd${UNAME_RELEASE}
228 exit 0 ;;
229 sgi:OpenBSD:*:*)
230 echo mips64-unknown-openbsd${UNAME_RELEASE}
231 exit 0 ;;
232 sun3:OpenBSD:*:*)
233 echo m68k-unknown-openbsd${UNAME_RELEASE}
234 exit 0 ;;
202 exit ;;
235203 *:OpenBSD:*:*)
236 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
237 exit 0 ;;
204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
206 exit ;;
238207 *:ekkoBSD:*:*)
239208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
240 exit 0 ;;
209 exit ;;
210 *:SolidBSD:*:*)
211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
212 exit ;;
241213 macppc:MirBSD:*:*)
242 echo powerppc-unknown-mirbsd${UNAME_RELEASE}
243 exit 0 ;;
214 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
215 exit ;;
244216 *:MirBSD:*:*)
245217 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
246 exit 0 ;;
218 exit ;;
247219 alpha:OSF1:*:*)
248220 case $UNAME_RELEASE in
249221 *4.0)
296268 # A Xn.n version is an unreleased experimental baselevel.
297269 # 1.2 uses "1.2" for uname -r.
298270 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
299 exit 0 ;;
271 exit ;;
300272 Alpha\ *:Windows_NT*:*)
301273 # How do we know it's Interix rather than the generic POSIX subsystem?
302274 # Should we change UNAME_MACHINE based on the output of uname instead
303275 # of the specific Alpha model?
304276 echo alpha-pc-interix
305 exit 0 ;;
277 exit ;;
306278 21064:Windows_NT:50:3)
307279 echo alpha-dec-winnt3.5
308 exit 0 ;;
280 exit ;;
309281 Amiga*:UNIX_System_V:4.0:*)
310282 echo m68k-unknown-sysv4
311 exit 0;;
283 exit ;;
312284 *:[Aa]miga[Oo][Ss]:*:*)
313285 echo ${UNAME_MACHINE}-unknown-amigaos
314 exit 0 ;;
286 exit ;;
315287 *:[Mm]orph[Oo][Ss]:*:*)
316288 echo ${UNAME_MACHINE}-unknown-morphos
317 exit 0 ;;
289 exit ;;
318290 *:OS/390:*:*)
319291 echo i370-ibm-openedition
320 exit 0 ;;
292 exit ;;
293 *:z/VM:*:*)
294 echo s390-ibm-zvmoe
295 exit ;;
321296 *:OS400:*:*)
322297 echo powerpc-ibm-os400
323 exit 0 ;;
298 exit ;;
324299 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
325300 echo arm-acorn-riscix${UNAME_RELEASE}
326 exit 0;;
301 exit ;;
302 arm:riscos:*:*|arm:RISCOS:*:*)
303 echo arm-unknown-riscos
304 exit ;;
327305 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
328306 echo hppa1.1-hitachi-hiuxmpp
329 exit 0;;
307 exit ;;
330308 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
331309 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
332310 if test "`(/bin/universe) 2>/dev/null`" = att ; then
334312 else
335313 echo pyramid-pyramid-bsd
336314 fi
337 exit 0 ;;
315 exit ;;
338316 NILE*:*:*:dcosx)
339317 echo pyramid-pyramid-svr4
340 exit 0 ;;
318 exit ;;
341319 DRS?6000:unix:4.0:6*)
342320 echo sparc-icl-nx6
343 exit 0 ;;
344 DRS?6000:UNIX_SV:4.2*:7*)
321 exit ;;
322 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
345323 case `/usr/bin/uname -p` in
346 sparc) echo sparc-icl-nx7 && exit 0 ;;
324 sparc) echo sparc-icl-nx7; exit ;;
347325 esac ;;
326 s390x:SunOS:*:*)
327 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328 exit ;;
348329 sun4H:SunOS:5.*:*)
349330 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
350 exit 0 ;;
331 exit ;;
351332 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
352333 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
353 exit 0 ;;
354 i86pc:SunOS:5.*:*)
355 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
356 exit 0 ;;
334 exit ;;
335 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
336 eval $set_cc_for_build
337 SUN_ARCH="i386"
338 # If there is a compiler, see if it is configured for 64-bit objects.
339 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
340 # This test works for both compilers.
341 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
342 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
343 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
344 grep IS_64BIT_ARCH >/dev/null
345 then
346 SUN_ARCH="x86_64"
347 fi
348 fi
349 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
350 exit ;;
357351 sun4*:SunOS:6*:*)
358352 # According to config.sub, this is the proper way to canonicalize
359353 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
360354 # it's likely to be more like Solaris than SunOS4.
361355 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
362 exit 0 ;;
356 exit ;;
363357 sun4*:SunOS:*:*)
364358 case "`/usr/bin/arch -k`" in
365359 Series*|S4*)
368362 esac
369363 # Japanese Language versions have a version number like `4.1.3-JL'.
370364 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
371 exit 0 ;;
365 exit ;;
372366 sun3*:SunOS:*:*)
373367 echo m68k-sun-sunos${UNAME_RELEASE}
374 exit 0 ;;
368 exit ;;
375369 sun*:*:4.2BSD:*)
376370 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
377371 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
383377 echo sparc-sun-sunos${UNAME_RELEASE}
384378 ;;
385379 esac
386 exit 0 ;;
380 exit ;;
387381 aushp:SunOS:*:*)
388382 echo sparc-auspex-sunos${UNAME_RELEASE}
389 exit 0 ;;
383 exit ;;
390384 # The situation for MiNT is a little confusing. The machine name
391385 # can be virtually everything (everything which is not
392386 # "atarist" or "atariste" at least should have a processor
397391 # be no problem.
398392 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
399393 echo m68k-atari-mint${UNAME_RELEASE}
400 exit 0 ;;
394 exit ;;
401395 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
402396 echo m68k-atari-mint${UNAME_RELEASE}
403 exit 0 ;;
397 exit ;;
404398 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
405399 echo m68k-atari-mint${UNAME_RELEASE}
406 exit 0 ;;
400 exit ;;
407401 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
408402 echo m68k-milan-mint${UNAME_RELEASE}
409 exit 0 ;;
403 exit ;;
410404 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
411405 echo m68k-hades-mint${UNAME_RELEASE}
412 exit 0 ;;
406 exit ;;
413407 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
414408 echo m68k-unknown-mint${UNAME_RELEASE}
415 exit 0 ;;
409 exit ;;
416410 m68k:machten:*:*)
417411 echo m68k-apple-machten${UNAME_RELEASE}
418 exit 0 ;;
412 exit ;;
419413 powerpc:machten:*:*)
420414 echo powerpc-apple-machten${UNAME_RELEASE}
421 exit 0 ;;
415 exit ;;
422416 RISC*:Mach:*:*)
423417 echo mips-dec-mach_bsd4.3
424 exit 0 ;;
418 exit ;;
425419 RISC*:ULTRIX:*:*)
426420 echo mips-dec-ultrix${UNAME_RELEASE}
427 exit 0 ;;
421 exit ;;
428422 VAX*:ULTRIX*:*:*)
429423 echo vax-dec-ultrix${UNAME_RELEASE}
430 exit 0 ;;
424 exit ;;
431425 2020:CLIX:*:* | 2430:CLIX:*:*)
432426 echo clipper-intergraph-clix${UNAME_RELEASE}
433 exit 0 ;;
427 exit ;;
434428 mips:*:*:UMIPS | mips:*:*:RISCos)
435429 eval $set_cc_for_build
436430 sed 's/^ //' << EOF >$dummy.c
454448 exit (-1);
455449 }
456450 EOF
457 $CC_FOR_BUILD -o $dummy $dummy.c \
458 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
459 && exit 0
451 $CC_FOR_BUILD -o $dummy $dummy.c &&
452 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
453 SYSTEM_NAME=`$dummy $dummyarg` &&
454 { echo "$SYSTEM_NAME"; exit; }
460455 echo mips-mips-riscos${UNAME_RELEASE}
461 exit 0 ;;
456 exit ;;
462457 Motorola:PowerMAX_OS:*:*)
463458 echo powerpc-motorola-powermax
464 exit 0 ;;
459 exit ;;
465460 Motorola:*:4.3:PL8-*)
466461 echo powerpc-harris-powermax
467 exit 0 ;;
462 exit ;;
468463 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
469464 echo powerpc-harris-powermax
470 exit 0 ;;
465 exit ;;
471466 Night_Hawk:Power_UNIX:*:*)
472467 echo powerpc-harris-powerunix
473 exit 0 ;;
468 exit ;;
474469 m88k:CX/UX:7*:*)
475470 echo m88k-harris-cxux7
476 exit 0 ;;
471 exit ;;
477472 m88k:*:4*:R4*)
478473 echo m88k-motorola-sysv4
479 exit 0 ;;
474 exit ;;
480475 m88k:*:3*:R3*)
481476 echo m88k-motorola-sysv3
482 exit 0 ;;
477 exit ;;
483478 AViiON:dgux:*:*)
484479 # DG/UX returns AViiON for all architectures
485480 UNAME_PROCESSOR=`/usr/bin/uname -p`
495490 else
496491 echo i586-dg-dgux${UNAME_RELEASE}
497492 fi
498 exit 0 ;;
493 exit ;;
499494 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
500495 echo m88k-dolphin-sysv3
501 exit 0 ;;
496 exit ;;
502497 M88*:*:R3*:*)
503498 # Delta 88k system running SVR3
504499 echo m88k-motorola-sysv3
505 exit 0 ;;
500 exit ;;
506501 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
507502 echo m88k-tektronix-sysv3
508 exit 0 ;;
503 exit ;;
509504 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
510505 echo m68k-tektronix-bsd
511 exit 0 ;;
506 exit ;;
512507 *:IRIX*:*:*)
513508 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
514 exit 0 ;;
509 exit ;;
515510 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
516 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
517 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
511 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
512 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
518513 i*86:AIX:*:*)
519514 echo i386-ibm-aix
520 exit 0 ;;
515 exit ;;
521516 ia64:AIX:*:*)
522517 if [ -x /usr/bin/oslevel ] ; then
523518 IBM_REV=`/usr/bin/oslevel`
525520 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
526521 fi
527522 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
528 exit 0 ;;
523 exit ;;
529524 *:AIX:2:3)
530525 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
531526 eval $set_cc_for_build
540535 exit(0);
541536 }
542537 EOF
543 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
544 echo rs6000-ibm-aix3.2.5
538 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
539 then
540 echo "$SYSTEM_NAME"
541 else
542 echo rs6000-ibm-aix3.2.5
543 fi
545544 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
546545 echo rs6000-ibm-aix3.2.4
547546 else
548547 echo rs6000-ibm-aix3.2
549548 fi
550 exit 0 ;;
551 *:AIX:*:[45])
549 exit ;;
550 *:AIX:*:[456])
552551 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
553552 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
554553 IBM_ARCH=rs6000
561560 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
562561 fi
563562 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
564 exit 0 ;;
563 exit ;;
565564 *:AIX:*:*)
566565 echo rs6000-ibm-aix
567 exit 0 ;;
566 exit ;;
568567 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
569568 echo romp-ibm-bsd4.4
570 exit 0 ;;
569 exit ;;
571570 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
572571 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
573 exit 0 ;; # report: romp-ibm BSD 4.3
572 exit ;; # report: romp-ibm BSD 4.3
574573 *:BOSX:*:*)
575574 echo rs6000-bull-bosx
576 exit 0 ;;
575 exit ;;
577576 DPX/2?00:B.O.S.:*:*)
578577 echo m68k-bull-sysv3
579 exit 0 ;;
578 exit ;;
580579 9000/[34]??:4.3bsd:1.*:*)
581580 echo m68k-hp-bsd
582 exit 0 ;;
581 exit ;;
583582 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
584583 echo m68k-hp-bsd4.4
585 exit 0 ;;
584 exit ;;
586585 9000/[34678]??:HP-UX:*:*)
587586 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
588587 case "${UNAME_MACHINE}" in
644643 esac
645644 if [ ${HP_ARCH} = "hppa2.0w" ]
646645 then
647 # avoid double evaluation of $set_cc_for_build
648 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
649 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
646 eval $set_cc_for_build
647
648 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
649 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
650 # generating 64-bit code. GNU and HP use different nomenclature:
651 #
652 # $ CC_FOR_BUILD=cc ./config.guess
653 # => hppa2.0w-hp-hpux11.23
654 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
655 # => hppa64-hp-hpux11.23
656
657 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
658 grep __LP64__ >/dev/null
650659 then
651660 HP_ARCH="hppa2.0w"
652661 else
654663 fi
655664 fi
656665 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
657 exit 0 ;;
666 exit ;;
658667 ia64:HP-UX:*:*)
659668 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
660669 echo ia64-hp-hpux${HPUX_REV}
661 exit 0 ;;
670 exit ;;
662671 3050*:HI-UX:*:*)
663672 eval $set_cc_for_build
664673 sed 's/^ //' << EOF >$dummy.c
686695 exit (0);
687696 }
688697 EOF
689 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
698 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
699 { echo "$SYSTEM_NAME"; exit; }
690700 echo unknown-hitachi-hiuxwe2
691 exit 0 ;;
701 exit ;;
692702 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
693703 echo hppa1.1-hp-bsd
694 exit 0 ;;
704 exit ;;
695705 9000/8??:4.3bsd:*:*)
696706 echo hppa1.0-hp-bsd
697 exit 0 ;;
707 exit ;;
698708 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
699709 echo hppa1.0-hp-mpeix
700 exit 0 ;;
710 exit ;;
701711 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
702712 echo hppa1.1-hp-osf
703 exit 0 ;;
713 exit ;;
704714 hp8??:OSF1:*:*)
705715 echo hppa1.0-hp-osf
706 exit 0 ;;
716 exit ;;
707717 i*86:OSF1:*:*)
708718 if [ -x /usr/sbin/sysversion ] ; then
709719 echo ${UNAME_MACHINE}-unknown-osf1mk
710720 else
711721 echo ${UNAME_MACHINE}-unknown-osf1
712722 fi
713 exit 0 ;;
723 exit ;;
714724 parisc*:Lites*:*:*)
715725 echo hppa1.1-hp-lites
716 exit 0 ;;
726 exit ;;
717727 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
718728 echo c1-convex-bsd
719 exit 0 ;;
729 exit ;;
720730 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
721731 if getsysinfo -f scalar_acc
722732 then echo c32-convex-bsd
723733 else echo c2-convex-bsd
724734 fi
725 exit 0 ;;
735 exit ;;
726736 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
727737 echo c34-convex-bsd
728 exit 0 ;;
738 exit ;;
729739 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
730740 echo c38-convex-bsd
731 exit 0 ;;
741 exit ;;
732742 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
733743 echo c4-convex-bsd
734 exit 0 ;;
744 exit ;;
735745 CRAY*Y-MP:*:*:*)
736746 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
737 exit 0 ;;
747 exit ;;
738748 CRAY*[A-Z]90:*:*:*)
739749 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
740750 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
741751 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
742752 -e 's/\.[^.]*$/.X/'
743 exit 0 ;;
753 exit ;;
744754 CRAY*TS:*:*:*)
745755 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
746 exit 0 ;;
756 exit ;;
747757 CRAY*T3E:*:*:*)
748758 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
749 exit 0 ;;
759 exit ;;
750760 CRAY*SV1:*:*:*)
751761 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
752 exit 0 ;;
762 exit ;;
753763 *:UNICOS/mp:*:*)
754764 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
755 exit 0 ;;
765 exit ;;
756766 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
757767 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
758768 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
759769 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
760770 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
761 exit 0 ;;
771 exit ;;
762772 5000:UNIX_System_V:4.*:*)
763773 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
764774 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
765775 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
766 exit 0 ;;
776 exit ;;
767777 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
768778 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
769 exit 0 ;;
779 exit ;;
770780 sparc*:BSD/OS:*:*)
771781 echo sparc-unknown-bsdi${UNAME_RELEASE}
772 exit 0 ;;
782 exit ;;
773783 *:BSD/OS:*:*)
774784 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
775 exit 0 ;;
785 exit ;;
776786 *:FreeBSD:*:*)
777 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
778 exit 0 ;;
787 case ${UNAME_MACHINE} in
788 pc98)
789 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
790 amd64)
791 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
792 *)
793 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
794 esac
795 exit ;;
779796 i*:CYGWIN*:*)
780797 echo ${UNAME_MACHINE}-pc-cygwin
781 exit 0 ;;
782 i*:MINGW*:*)
798 exit ;;
799 *:MINGW*:*)
783800 echo ${UNAME_MACHINE}-pc-mingw32
784 exit 0 ;;
801 exit ;;
802 i*:windows32*:*)
803 # uname -m includes "-pc" on this system.
804 echo ${UNAME_MACHINE}-mingw32
805 exit ;;
785806 i*:PW*:*)
786807 echo ${UNAME_MACHINE}-pc-pw32
787 exit 0 ;;
788 x86:Interix*:[34]*)
789 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
790 exit 0 ;;
808 exit ;;
809 *:Interix*:[3456]*)
810 case ${UNAME_MACHINE} in
811 x86)
812 echo i586-pc-interix${UNAME_RELEASE}
813 exit ;;
814 EM64T | authenticamd | genuineintel)
815 echo x86_64-unknown-interix${UNAME_RELEASE}
816 exit ;;
817 IA64)
818 echo ia64-unknown-interix${UNAME_RELEASE}
819 exit ;;
820 esac ;;
791821 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
792822 echo i${UNAME_MACHINE}-pc-mks
793 exit 0 ;;
823 exit ;;
794824 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
795825 # How do we know it's Interix rather than the generic POSIX subsystem?
796826 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
797827 # UNAME_MACHINE based on the output of uname instead of i386?
798828 echo i586-pc-interix
799 exit 0 ;;
829 exit ;;
800830 i*:UWIN*:*)
801831 echo ${UNAME_MACHINE}-pc-uwin
802 exit 0 ;;
832 exit ;;
833 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
834 echo x86_64-unknown-cygwin
835 exit ;;
803836 p*:CYGWIN*:*)
804837 echo powerpcle-unknown-cygwin
805 exit 0 ;;
838 exit ;;
806839 prep*:SunOS:5.*:*)
807840 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
808 exit 0 ;;
841 exit ;;
809842 *:GNU:*:*)
810843 # the GNU system
811844 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
812 exit 0 ;;
845 exit ;;
813846 *:GNU/*:*:*)
814847 # other systems with GNU libc and userland
815848 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
816 exit 0 ;;
849 exit ;;
817850 i*86:Minix:*:*)
818851 echo ${UNAME_MACHINE}-pc-minix
819 exit 0 ;;
852 exit ;;
820853 arm*:Linux:*:*)
854 eval $set_cc_for_build
855 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
856 | grep -q __ARM_EABI__
857 then
858 echo ${UNAME_MACHINE}-unknown-linux-gnu
859 else
860 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
861 fi
862 exit ;;
863 avr32*:Linux:*:*)
821864 echo ${UNAME_MACHINE}-unknown-linux-gnu
822 exit 0 ;;
865 exit ;;
823866 cris:Linux:*:*)
824867 echo cris-axis-linux-gnu
825 exit 0 ;;
868 exit ;;
869 crisv32:Linux:*:*)
870 echo crisv32-axis-linux-gnu
871 exit ;;
872 frv:Linux:*:*)
873 echo frv-unknown-linux-gnu
874 exit ;;
826875 ia64:Linux:*:*)
827876 echo ${UNAME_MACHINE}-unknown-linux-gnu
828 exit 0 ;;
877 exit ;;
829878 m32r*:Linux:*:*)
830879 echo ${UNAME_MACHINE}-unknown-linux-gnu
831 exit 0 ;;
880 exit ;;
832881 m68*:Linux:*:*)
833882 echo ${UNAME_MACHINE}-unknown-linux-gnu
834 exit 0 ;;
883 exit ;;
835884 mips:Linux:*:*)
836885 eval $set_cc_for_build
837886 sed 's/^ //' << EOF >$dummy.c
848897 #endif
849898 #endif
850899 EOF
851 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
852 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
900 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
901 /^CPU/{
902 s: ::g
903 p
904 }'`"
905 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
853906 ;;
854907 mips64:Linux:*:*)
855908 eval $set_cc_for_build
867920 #endif
868921 #endif
869922 EOF
870 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
871 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
923 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
924 /^CPU/{
925 s: ::g
926 p
927 }'`"
928 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
872929 ;;
930 or32:Linux:*:*)
931 echo or32-unknown-linux-gnu
932 exit ;;
873933 ppc:Linux:*:*)
874934 echo powerpc-unknown-linux-gnu
875 exit 0 ;;
935 exit ;;
876936 ppc64:Linux:*:*)
877937 echo powerpc64-unknown-linux-gnu
878 exit 0 ;;
938 exit ;;
879939 alpha:Linux:*:*)
880940 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
881941 EV5) UNAME_MACHINE=alphaev5 ;;
889949 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
890950 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
891951 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
892 exit 0 ;;
952 exit ;;
953 padre:Linux:*:*)
954 echo sparc-unknown-linux-gnu
955 exit ;;
893956 parisc:Linux:*:* | hppa:Linux:*:*)
894957 # Look for CPU level
895958 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
897960 PA8*) echo hppa2.0-unknown-linux-gnu ;;
898961 *) echo hppa-unknown-linux-gnu ;;
899962 esac
900 exit 0 ;;
963 exit ;;
901964 parisc64:Linux:*:* | hppa64:Linux:*:*)
902965 echo hppa64-unknown-linux-gnu
903 exit 0 ;;
966 exit ;;
904967 s390:Linux:*:* | s390x:Linux:*:*)
905968 echo ${UNAME_MACHINE}-ibm-linux
906 exit 0 ;;
969 exit ;;
907970 sh64*:Linux:*:*)
908971 echo ${UNAME_MACHINE}-unknown-linux-gnu
909 exit 0 ;;
972 exit ;;
910973 sh*:Linux:*:*)
911974 echo ${UNAME_MACHINE}-unknown-linux-gnu
912 exit 0 ;;
975 exit ;;
913976 sparc:Linux:*:* | sparc64:Linux:*:*)
914977 echo ${UNAME_MACHINE}-unknown-linux-gnu
915 exit 0 ;;
978 exit ;;
979 vax:Linux:*:*)
980 echo ${UNAME_MACHINE}-dec-linux-gnu
981 exit ;;
916982 x86_64:Linux:*:*)
917983 echo x86_64-unknown-linux-gnu
918 exit 0 ;;
984 exit ;;
985 xtensa*:Linux:*:*)
986 echo ${UNAME_MACHINE}-unknown-linux-gnu
987 exit ;;
919988 i*86:Linux:*:*)
920989 # The BFD linker knows what the default object file format is, so
921990 # first see if it will tell us. cd to the root directory to prevent
9331002 ;;
9341003 a.out-i386-linux)
9351004 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
936 exit 0 ;;
937 coff-i386)
938 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
939 exit 0 ;;
1005 exit ;;
9401006 "")
9411007 # Either a pre-BFD a.out linker (linux-gnuoldld) or
9421008 # one that does not give us useful --help.
9431009 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
944 exit 0 ;;
1010 exit ;;
9451011 esac
9461012 # Determine whether the default compiler is a.out or elf
9471013 eval $set_cc_for_build
9581024 LIBC=gnulibc1
9591025 # endif
9601026 #else
961 #ifdef __INTEL_COMPILER
1027 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
9621028 LIBC=gnu
9631029 #else
9641030 LIBC=gnuaout
9681034 LIBC=dietlibc
9691035 #endif
9701036 EOF
971 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
972 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
973 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
1037 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1038 /^LIBC/{
1039 s: ::g
1040 p
1041 }'`"
1042 test x"${LIBC}" != x && {
1043 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1044 exit
1045 }
1046 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
9741047 ;;
9751048 i*86:DYNIX/ptx:4*:*)
9761049 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
9771050 # earlier versions are messed up and put the nodename in both
9781051 # sysname and nodename.
9791052 echo i386-sequent-sysv4
980 exit 0 ;;
1053 exit ;;
9811054 i*86:UNIX_SV:4.2MP:2.*)
9821055 # Unixware is an offshoot of SVR4, but it has its own version
9831056 # number series starting with 2...
9851058 # I just have to hope. -- rms.
9861059 # Use sysv4.2uw... so that sysv4* matches it.
9871060 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
988 exit 0 ;;
1061 exit ;;
9891062 i*86:OS/2:*:*)
9901063 # If we were able to find `uname', then EMX Unix compatibility
9911064 # is probably installed.
9921065 echo ${UNAME_MACHINE}-pc-os2-emx
993 exit 0 ;;
1066 exit ;;
9941067 i*86:XTS-300:*:STOP)
9951068 echo ${UNAME_MACHINE}-unknown-stop
996 exit 0 ;;
1069 exit ;;
9971070 i*86:atheos:*:*)
9981071 echo ${UNAME_MACHINE}-unknown-atheos
999 exit 0 ;;
1000 i*86:syllable:*:*)
1072 exit ;;
1073 i*86:syllable:*:*)
10011074 echo ${UNAME_MACHINE}-pc-syllable
1002 exit 0 ;;
1075 exit ;;
10031076 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
10041077 echo i386-unknown-lynxos${UNAME_RELEASE}
1005 exit 0 ;;
1078 exit ;;
10061079 i*86:*DOS:*:*)
10071080 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1008 exit 0 ;;
1081 exit ;;
10091082 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
10101083 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
10111084 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
10131086 else
10141087 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
10151088 fi
1016 exit 0 ;;
1017 i*86:*:5:[78]*)
1089 exit ;;
1090 i*86:*:5:[678]*)
1091 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10181092 case `/bin/uname -X | grep "^Machine"` in
10191093 *486*) UNAME_MACHINE=i486 ;;
10201094 *Pentium) UNAME_MACHINE=i586 ;;
10211095 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
10221096 esac
10231097 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1024 exit 0 ;;
1098 exit ;;
10251099 i*86:*:3.2:*)
10261100 if test -f /usr/options/cb.name; then
10271101 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
10391113 else
10401114 echo ${UNAME_MACHINE}-pc-sysv32
10411115 fi
1042 exit 0 ;;
1116 exit ;;
10431117 pc:*:*:*)
10441118 # Left here for compatibility:
10451119 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1046 # the processor, so we play safe by assuming i386.
1047 echo i386-pc-msdosdjgpp
1048 exit 0 ;;
1120 # the processor, so we play safe by assuming i586.
1121 # Note: whatever this is, it MUST be the same as what config.sub
1122 # prints for the "djgpp" host, or else GDB configury will decide that
1123 # this is a cross-build.
1124 echo i586-pc-msdosdjgpp
1125 exit ;;
10491126 Intel:Mach:3*:*)
10501127 echo i386-pc-mach3
1051 exit 0 ;;
1128 exit ;;
10521129 paragon:*:*:*)
10531130 echo i860-intel-osf1
1054 exit 0 ;;
1131 exit ;;
10551132 i860:*:4.*:*) # i860-SVR4
10561133 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
10571134 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
10581135 else # Add other i860-SVR4 vendors below as they are discovered.
10591136 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
10601137 fi
1061 exit 0 ;;
1138 exit ;;
10621139 mini*:CTIX:SYS*5:*)
10631140 # "miniframe"
10641141 echo m68010-convergent-sysv
1065 exit 0 ;;
1142 exit ;;
10661143 mc68k:UNIX:SYSTEM5:3.51m)
10671144 echo m68k-convergent-sysv
1068 exit 0 ;;
1145 exit ;;
10691146 M680?0:D-NIX:5.3:*)
10701147 echo m68k-diab-dnix
1071 exit 0 ;;
1148 exit ;;
10721149 M68*:*:R3V[5678]*:*)
1073 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1150 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
10741151 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)
10751152 OS_REL=''
10761153 test -r /etc/.relid \
10771154 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
10781155 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1079 && echo i486-ncr-sysv4.3${OS_REL} && exit 0
1156 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
10801157 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1081 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
1158 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
10821159 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
10831160 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1084 && echo i486-ncr-sysv4 && exit 0 ;;
1161 && { echo i486-ncr-sysv4; exit; } ;;
1162 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1163 OS_REL='.3'
1164 test -r /etc/.relid \
1165 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1166 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1167 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1168 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1169 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1170 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1171 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
10851172 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
10861173 echo m68k-unknown-lynxos${UNAME_RELEASE}
1087 exit 0 ;;
1174 exit ;;
10881175 mc68030:UNIX_System_V:4.*:*)
10891176 echo m68k-atari-sysv4
1090 exit 0 ;;
1177 exit ;;
10911178 TSUNAMI:LynxOS:2.*:*)
10921179 echo sparc-unknown-lynxos${UNAME_RELEASE}
1093 exit 0 ;;
1180 exit ;;
10941181 rs6000:LynxOS:2.*:*)
10951182 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1096 exit 0 ;;
1183 exit ;;
10971184 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
10981185 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1099 exit 0 ;;
1186 exit ;;
11001187 SM[BE]S:UNIX_SV:*:*)
11011188 echo mips-dde-sysv${UNAME_RELEASE}
1102 exit 0 ;;
1189 exit ;;
11031190 RM*:ReliantUNIX-*:*:*)
11041191 echo mips-sni-sysv4
1105 exit 0 ;;
1192 exit ;;
11061193 RM*:SINIX-*:*:*)
11071194 echo mips-sni-sysv4
1108 exit 0 ;;
1195 exit ;;
11091196 *:SINIX-*:*:*)
11101197 if uname -p 2>/dev/null >/dev/null ; then
11111198 UNAME_MACHINE=`(uname -p) 2>/dev/null`
11131200 else
11141201 echo ns32k-sni-sysv
11151202 fi
1116 exit 0 ;;
1203 exit ;;
11171204 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
11181205 # says <Richard.M.Bartel@ccMail.Census.GOV>
11191206 echo i586-unisys-sysv4
1120 exit 0 ;;
1207 exit ;;
11211208 *:UNIX_System_V:4*:FTX*)
11221209 # From Gerald Hewes <hewes@openmarket.com>.
11231210 # How about differentiating between stratus architectures? -djm
11241211 echo hppa1.1-stratus-sysv4
1125 exit 0 ;;
1212 exit ;;
11261213 *:*:*:FTX*)
11271214 # From seanf@swdc.stratus.com.
11281215 echo i860-stratus-sysv4
1129 exit 0 ;;
1216 exit ;;
1217 i*86:VOS:*:*)
1218 # From Paul.Green@stratus.com.
1219 echo ${UNAME_MACHINE}-stratus-vos
1220 exit ;;
11301221 *:VOS:*:*)
11311222 # From Paul.Green@stratus.com.
11321223 echo hppa1.1-stratus-vos
1133 exit 0 ;;
1224 exit ;;
11341225 mc68*:A/UX:*:*)
11351226 echo m68k-apple-aux${UNAME_RELEASE}
1136 exit 0 ;;
1227 exit ;;
11371228 news*:NEWS-OS:6*:*)
11381229 echo mips-sony-newsos6
1139 exit 0 ;;
1230 exit ;;
11401231 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11411232 if [ -d /usr/nec ]; then
11421233 echo mips-nec-sysv${UNAME_RELEASE}
11431234 else
11441235 echo mips-unknown-sysv${UNAME_RELEASE}
11451236 fi
1146 exit 0 ;;
1237 exit ;;
11471238 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
11481239 echo powerpc-be-beos
1149 exit 0 ;;
1240 exit ;;
11501241 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
11511242 echo powerpc-apple-beos
1152 exit 0 ;;
1243 exit ;;
11531244 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
11541245 echo i586-pc-beos
1155 exit 0 ;;
1246 exit ;;
1247 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1248 echo i586-pc-haiku
1249 exit ;;
11561250 SX-4:SUPER-UX:*:*)
11571251 echo sx4-nec-superux${UNAME_RELEASE}
1158 exit 0 ;;
1252 exit ;;
11591253 SX-5:SUPER-UX:*:*)
11601254 echo sx5-nec-superux${UNAME_RELEASE}
1161 exit 0 ;;
1255 exit ;;
11621256 SX-6:SUPER-UX:*:*)
11631257 echo sx6-nec-superux${UNAME_RELEASE}
1164 exit 0 ;;
1258 exit ;;
1259 SX-7:SUPER-UX:*:*)
1260 echo sx7-nec-superux${UNAME_RELEASE}
1261 exit ;;
1262 SX-8:SUPER-UX:*:*)
1263 echo sx8-nec-superux${UNAME_RELEASE}
1264 exit ;;
1265 SX-8R:SUPER-UX:*:*)
1266 echo sx8r-nec-superux${UNAME_RELEASE}
1267 exit ;;
11651268 Power*:Rhapsody:*:*)
11661269 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1167 exit 0 ;;
1270 exit ;;
11681271 *:Rhapsody:*:*)
11691272 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1170 exit 0 ;;
1273 exit ;;
11711274 *:Darwin:*:*)
11721275 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
11731276 case $UNAME_PROCESSOR in
1174 *86) UNAME_PROCESSOR=i686 ;;
11751277 unknown) UNAME_PROCESSOR=powerpc ;;
11761278 esac
11771279 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1178 exit 0 ;;
1280 exit ;;
11791281 *:procnto*:*:* | *:QNX:[0123456789]*:*)
11801282 UNAME_PROCESSOR=`uname -p`
11811283 if test "$UNAME_PROCESSOR" = "x86"; then
11831285 UNAME_MACHINE=pc
11841286 fi
11851287 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1186 exit 0 ;;
1288 exit ;;
11871289 *:QNX:*:4*)
11881290 echo i386-pc-qnx
1189 exit 0 ;;
1291 exit ;;
1292 NSE-?:NONSTOP_KERNEL:*:*)
1293 echo nse-tandem-nsk${UNAME_RELEASE}
1294 exit ;;
11901295 NSR-?:NONSTOP_KERNEL:*:*)
11911296 echo nsr-tandem-nsk${UNAME_RELEASE}
1192 exit 0 ;;
1297 exit ;;
11931298 *:NonStop-UX:*:*)
11941299 echo mips-compaq-nonstopux
1195 exit 0 ;;
1300 exit ;;
11961301 BS2000:POSIX*:*:*)
11971302 echo bs2000-siemens-sysv
1198 exit 0 ;;
1303 exit ;;
11991304 DS/*:UNIX_System_V:*:*)
12001305 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1201 exit 0 ;;
1306 exit ;;
12021307 *:Plan9:*:*)
12031308 # "uname -m" is not consistent, so use $cputype instead. 386
12041309 # is converted to i386 for consistency with other x86
12091314 UNAME_MACHINE="$cputype"
12101315 fi
12111316 echo ${UNAME_MACHINE}-unknown-plan9
1212 exit 0 ;;
1317 exit ;;
12131318 *:TOPS-10:*:*)
12141319 echo pdp10-unknown-tops10
1215 exit 0 ;;
1320 exit ;;
12161321 *:TENEX:*:*)
12171322 echo pdp10-unknown-tenex
1218 exit 0 ;;
1323 exit ;;
12191324 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
12201325 echo pdp10-dec-tops20
1221 exit 0 ;;
1326 exit ;;
12221327 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
12231328 echo pdp10-xkl-tops20
1224 exit 0 ;;
1329 exit ;;
12251330 *:TOPS-20:*:*)
12261331 echo pdp10-unknown-tops20
1227 exit 0 ;;
1332 exit ;;
12281333 *:ITS:*:*)
12291334 echo pdp10-unknown-its
1230 exit 0 ;;
1335 exit ;;
12311336 SEI:*:*:SEIUX)
12321337 echo mips-sei-seiux${UNAME_RELEASE}
1233 exit 0 ;;
1338 exit ;;
12341339 *:DragonFly:*:*)
12351340 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1236 exit 0 ;;
1341 exit ;;
12371342 *:*VMS:*:*)
12381343 UNAME_MACHINE=`(uname -p) 2>/dev/null`
12391344 case "${UNAME_MACHINE}" in
1240 A*) echo alpha-dec-vms && exit 0 ;;
1241 I*) echo ia64-dec-vms && exit 0 ;;
1242 V*) echo vax-dec-vms && exit 0 ;;
1243 esac
1345 A*) echo alpha-dec-vms ; exit ;;
1346 I*) echo ia64-dec-vms ; exit ;;
1347 V*) echo vax-dec-vms ; exit ;;
1348 esac ;;
1349 *:XENIX:*:SysV)
1350 echo i386-pc-xenix
1351 exit ;;
1352 i*86:skyos:*:*)
1353 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1354 exit ;;
1355 i*86:rdos:*:*)
1356 echo ${UNAME_MACHINE}-pc-rdos
1357 exit ;;
1358 i*86:AROS:*:*)
1359 echo ${UNAME_MACHINE}-pc-aros
1360 exit ;;
12441361 esac
12451362
12461363 #echo '(No uname command or uname output not recognized.)' 1>&2
12721389 #endif
12731390
12741391 #if defined (__arm) && defined (__acorn) && defined (__unix)
1275 printf ("arm-acorn-riscix"); exit (0);
1392 printf ("arm-acorn-riscix\n"); exit (0);
12761393 #endif
12771394
12781395 #if defined (hp300) && !defined (hpux)
13611478 }
13621479 EOF
13631480
1364 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
1481 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1482 { echo "$SYSTEM_NAME"; exit; }
13651483
13661484 # Apollos put the system type in the environment.
13671485
1368 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
1486 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
13691487
13701488 # Convex versions that predate uname can use getsysinfo(1)
13711489
13741492 case `getsysinfo -f cpu_type` in
13751493 c1*)
13761494 echo c1-convex-bsd
1377 exit 0 ;;
1495 exit ;;
13781496 c2*)
13791497 if getsysinfo -f scalar_acc
13801498 then echo c32-convex-bsd
13811499 else echo c2-convex-bsd
13821500 fi
1383 exit 0 ;;
1501 exit ;;
13841502 c34*)
13851503 echo c34-convex-bsd
1386 exit 0 ;;
1504 exit ;;
13871505 c38*)
13881506 echo c38-convex-bsd
1389 exit 0 ;;
1507 exit ;;
13901508 c4*)
13911509 echo c4-convex-bsd
1392 exit 0 ;;
1510 exit ;;
13931511 esac
13941512 fi
13951513
14001518 the operating system you are using. It is advised that you
14011519 download the most up to date version of the config scripts from
14021520
1403 ftp://ftp.gnu.org/pub/gnu/config/
1521 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1522 and
1523 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
14041524
14051525 If the version you run ($0) is already up to date, please
14061526 send the following data and any information you think might be
00 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
4
5 timestamp='2004-06-24'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-04-17'
67
78 # This file is (in principle) common to ALL GNU software.
89 # The presence of a machine in this file suggests that SOME GNU software
2021 #
2122 # You should have received a copy of the GNU General Public License
2223 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place - Suite 330,
24 # Boston, MA 02111-1307, USA.
25
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
2627 # As a special exception to the GNU General Public License, if you
2728 # distribute this file as part of a program that contains a
2829 # configuration script generated by Autoconf, you may include it under
2930 # the same distribution terms that you use for the rest of that program.
31
3032
3133 # Please send patches to <config-patches@gnu.org>. Submit a context
3234 # diff and a properly formatted ChangeLog entry.
6971 version="\
7072 GNU config.sub ($timestamp)
7173
72 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
73 Free Software Foundation, Inc.
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
75 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7476
7577 This is free software; see the source for copying conditions. There is NO
7678 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8284 while test $# -gt 0 ; do
8385 case $1 in
8486 --time-stamp | --time* | -t )
85 echo "$timestamp" ; exit 0 ;;
87 echo "$timestamp" ; exit ;;
8688 --version | -v )
87 echo "$version" ; exit 0 ;;
89 echo "$version" ; exit ;;
8890 --help | --h* | -h )
89 echo "$usage"; exit 0 ;;
91 echo "$usage"; exit ;;
9092 -- ) # Stop option processing
9193 shift; break ;;
9294 - ) # Use stdin as input.
98100 *local*)
99101 # First pass through any local machine types.
100102 echo $1
101 exit 0;;
103 exit ;;
102104
103105 * )
104106 break ;;
117119 # Here we must recognize all the valid KERNEL-OS combinations.
118120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
119121 case $maybe_os in
120 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
121 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 kopensolaris*-gnu* | \
125 storm-chaos* | os2-emx* | rtmk-nova*)
122126 os=-$maybe_os
123127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124128 ;;
169173 -hiux*)
170174 os=-hiuxwe2
171175 ;;
176 -sco6)
177 os=-sco5v6
178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 ;;
172180 -sco5)
173181 os=-sco3.2v5
174182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183191 ;;
184192 -sco3.2v[4-9]*)
193 # Don't forget version if it is 3.2v4 or newer.
194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195 ;;
196 -sco5v6*)
185197 # Don't forget version if it is 3.2v4 or newer.
186198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187199 ;;
229241 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
231243 | am33_2.0 \
232 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
244 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
245 | bfin \
233246 | c4x | clipper \
234247 | d10v | d30v | dlx | dsp16xx \
235 | fr30 | frv \
248 | fido | fr30 | frv \
236249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
237250 | i370 | i860 | i960 | ia64 \
238251 | ip2k | iq2000 \
239 | m32r | m32rle | m68000 | m68k | m88k | mcore \
252 | lm32 \
253 | m32c | m32r | m32rle | m68000 | m68k | m88k \
254 | maxq | mb | microblaze | mcore | mep | metag \
240255 | mips | mipsbe | mipseb | mipsel | mipsle \
241256 | mips16 \
242257 | mips64 | mips64el \
258 | mips64octeon | mips64octeonel \
259 | mips64orion | mips64orionel \
260 | mips64r5900 | mips64r5900el \
243261 | mips64vr | mips64vrel \
244 | mips64orion | mips64orionel \
245262 | mips64vr4100 | mips64vr4100el \
246263 | mips64vr4300 | mips64vr4300el \
247264 | mips64vr5000 | mips64vr5000el \
265 | mips64vr5900 | mips64vr5900el \
248266 | mipsisa32 | mipsisa32el \
249267 | mipsisa32r2 | mipsisa32r2el \
250268 | mipsisa64 | mipsisa64el \
253271 | mipsisa64sr71k | mipsisa64sr71kel \
254272 | mipstx39 | mipstx39el \
255273 | mn10200 | mn10300 \
274 | moxie \
275 | mt \
256276 | msp430 \
277 | nios | nios2 \
257278 | ns16k | ns32k \
258 | openrisc | or32 \
279 | or32 \
259280 | pdp10 | pdp11 | pj | pjl \
260281 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
261282 | pyramid \
262 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
283 | score \
284 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
263285 | sh64 | sh64le \
264 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
265 | strongarm \
286 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
287 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
288 | spu | strongarm \
266289 | tahoe | thumb | tic4x | tic80 | tron \
267290 | v850 | v850e \
268291 | we32k \
269 | x86 | xscale | xstormy16 | xtensa \
270 | z8k)
292 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
293 | z8k | z80)
271294 basic_machine=$basic_machine-unknown
272295 ;;
273296 m6811 | m68hc11 | m6812 | m68hc12)
276299 os=-none
277300 ;;
278301 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
302 ;;
303 ms1)
304 basic_machine=mt-unknown
279305 ;;
280306
281307 # We use `pc' rather than `unknown'
296322 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
297323 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
298324 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
299 | avr-* \
300 | bs2000-* \
325 | avr-* | avr32-* \
326 | bfin-* | bs2000-* \
301327 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
302328 | clipper-* | craynv-* | cydra-* \
303329 | d10v-* | d30v-* | dlx-* \
304330 | elxsi-* \
305 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
331 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
306332 | h8300-* | h8500-* \
307333 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
308334 | i*86-* | i860-* | i960-* | ia64-* \
309335 | ip2k-* | iq2000-* \
310 | m32r-* | m32rle-* \
336 | lm32-* \
337 | m32c-* | m32r-* | m32rle-* \
311338 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
312 | m88110-* | m88k-* | mcore-* \
339 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
313340 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
314341 | mips16-* \
315342 | mips64-* | mips64el-* \
343 | mips64octeon-* | mips64octeonel-* \
344 | mips64orion-* | mips64orionel-* \
345 | mips64r5900-* | mips64r5900el-* \
316346 | mips64vr-* | mips64vrel-* \
317 | mips64orion-* | mips64orionel-* \
318347 | mips64vr4100-* | mips64vr4100el-* \
319348 | mips64vr4300-* | mips64vr4300el-* \
320349 | mips64vr5000-* | mips64vr5000el-* \
350 | mips64vr5900-* | mips64vr5900el-* \
321351 | mipsisa32-* | mipsisa32el-* \
322352 | mipsisa32r2-* | mipsisa32r2el-* \
323353 | mipsisa64-* | mipsisa64el-* \
326356 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
327357 | mipstx39-* | mipstx39el-* \
328358 | mmix-* \
359 | mt-* \
329360 | msp430-* \
361 | nios-* | nios2-* \
330362 | none-* | np1-* | ns16k-* | ns32k-* \
331363 | orion-* \
332364 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
333365 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
334366 | pyramid-* \
335367 | romp-* | rs6000-* \
336 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
368 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
337369 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
338 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
339 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
370 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
371 | sparclite-* \
372 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
340373 | tahoe-* | thumb-* \
341 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
374 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
342375 | tron-* \
343376 | v850-* | v850e-* | vax-* \
344377 | we32k-* \
345 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
346 | xtensa-* \
378 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
379 | xstormy16-* | xtensa*-* \
347380 | ymp-* \
348 | z8k-*)
381 | z8k-* | z80-*)
382 ;;
383 # Recognize the basic CPU types without company name, with glob match.
384 xtensa*)
385 basic_machine=$basic_machine-unknown
349386 ;;
350387 # Recognize the various machine names and aliases which stand
351388 # for a CPU type and a company and sometimes even an OS.
409446 basic_machine=m68k-apollo
410447 os=-bsd
411448 ;;
449 aros)
450 basic_machine=i386-pc
451 os=-aros
452 ;;
412453 aux)
413454 basic_machine=m68k-apple
414455 os=-aux
417458 basic_machine=ns32k-sequent
418459 os=-dynix
419460 ;;
461 blackfin)
462 basic_machine=bfin-unknown
463 os=-linux
464 ;;
465 blackfin-*)
466 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
467 os=-linux
468 ;;
420469 c90)
421470 basic_machine=c90-cray
422471 os=-unicos
423472 ;;
473 cegcc)
474 basic_machine=arm-unknown
475 os=-cegcc
476 ;;
424477 convex-c1)
425478 basic_machine=c1-convex
426479 os=-bsd
449502 basic_machine=craynv-cray
450503 os=-unicosmp
451504 ;;
452 cr16c)
453 basic_machine=cr16c-unknown
505 cr16)
506 basic_machine=cr16-unknown
454507 os=-elf
455508 ;;
456509 crds | unos)
457510 basic_machine=m68k-crds
511 ;;
512 crisv32 | crisv32-* | etraxfs*)
513 basic_machine=crisv32-axis
458514 ;;
459515 cris | cris-* | etrax*)
460516 basic_machine=cris-axis
484540 delta88)
485541 basic_machine=m88k-motorola
486542 os=-sysv3
543 ;;
544 dicos)
545 basic_machine=i686-pc
546 os=-dicos
547 ;;
548 djgpp)
549 basic_machine=i586-pc
550 os=-msdosdjgpp
487551 ;;
488552 dpx20 | dpx20-*)
489553 basic_machine=rs6000-bull
635699 basic_machine=m68k-isi
636700 os=-sysv
637701 ;;
702 m68knommu)
703 basic_machine=m68k-unknown
704 os=-linux
705 ;;
706 m68knommu-*)
707 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
708 os=-linux
709 ;;
638710 m88k-omron*)
639711 basic_machine=m88k-omron
640712 ;;
650722 basic_machine=i386-pc
651723 os=-mingw32
652724 ;;
725 mingw32ce)
726 basic_machine=arm-unknown
727 os=-mingw32ce
728 ;;
653729 miniframe)
654730 basic_machine=m68000-convergent
655731 ;;
674750 msdos)
675751 basic_machine=i386-pc
676752 os=-msdos
753 ;;
754 ms1-*)
755 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
677756 ;;
678757 mvs)
679758 basic_machine=i370-ibm
750829 basic_machine=hppa1.1-oki
751830 os=-proelf
752831 ;;
753 or32 | or32-*)
832 openrisc | openrisc-*)
754833 basic_machine=or32-unknown
755 os=-coff
756834 ;;
757835 os400)
758836 basic_machine=powerpc-ibm
774852 basic_machine=i860-intel
775853 os=-osf
776854 ;;
855 parisc)
856 basic_machine=hppa-unknown
857 os=-linux
858 ;;
859 parisc-*)
860 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
861 os=-linux
862 ;;
777863 pbd)
778864 basic_machine=sparc-tti
779865 ;;
782868 ;;
783869 pc532 | pc532-*)
784870 basic_machine=ns32k-pc532
871 ;;
872 pc98)
873 basic_machine=i386-pc
874 ;;
875 pc98-*)
876 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
785877 ;;
786878 pentium | p5 | k5 | k6 | nexgen | viac3)
787879 basic_machine=i586-pc
839931 basic_machine=i586-unknown
840932 os=-pw32
841933 ;;
934 rdos)
935 basic_machine=i386-pc
936 os=-rdos
937 ;;
842938 rom68k)
843939 basic_machine=m68k-rom68k
844940 os=-coff
865961 sb1el)
866962 basic_machine=mipsisa64sb1el-unknown
867963 ;;
964 sde)
965 basic_machine=mipsisa32-sde
966 os=-elf
967 ;;
868968 sei)
869969 basic_machine=mips-sei
870970 os=-seiux
876976 basic_machine=sh-hitachi
877977 os=-hms
878978 ;;
979 sh5el)
980 basic_machine=sh5le-unknown
981 ;;
879982 sh64)
880983 basic_machine=sh64-unknown
881984 ;;
9651068 basic_machine=tic6x-unknown
9661069 os=-coff
9671070 ;;
1071 tile*)
1072 basic_machine=tile-unknown
1073 os=-linux-gnu
1074 ;;
9681075 tx39)
9691076 basic_machine=mipstx39-unknown
9701077 ;;
10251132 basic_machine=hppa1.1-winbond
10261133 os=-proelf
10271134 ;;
1135 xbox)
1136 basic_machine=i686-pc
1137 os=-mingw32
1138 ;;
10281139 xps | xps100)
10291140 basic_machine=xps100-honeywell
10301141 ;;
10341145 ;;
10351146 z8k-*-coff)
10361147 basic_machine=z8k-unknown
1148 os=-sim
1149 ;;
1150 z80-*-coff)
1151 basic_machine=z80-unknown
10371152 os=-sim
10381153 ;;
10391154 none)
10741189 we32k)
10751190 basic_machine=we32k-att
10761191 ;;
1077 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1192 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
10781193 basic_machine=sh-unknown
10791194 ;;
1080 sh64)
1081 basic_machine=sh64-unknown
1082 ;;
1083 sparc | sparcv8 | sparcv9 | sparcv9b)
1195 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
10841196 basic_machine=sparc-sun
10851197 ;;
10861198 cydra)
11491261 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
11501262 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
11511263 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1264 | -kopensolaris* \
11521265 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1153 | -aos* \
1266 | -aos* | -aros* \
11541267 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
11551268 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1156 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1269 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1270 | -openbsd* | -solidbsd* \
11571271 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
11581272 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
11591273 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
11601274 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1161 | -chorusos* | -chorusrdb* \
1275 | -chorusos* | -chorusrdb* | -cegcc* \
11621276 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1163 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1277 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1278 | -uxpv* | -beos* | -mpeix* | -udk* \
11641279 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
11651280 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
11661281 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
11671282 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
11681283 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1169 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1284 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1285 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
11701286 # Remember, each alternative MUST END IN *, to match a version number.
11711287 ;;
11721288 -qnx*)
11841300 os=`echo $os | sed -e 's|nto|nto-qnx|'`
11851301 ;;
11861302 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1187 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1303 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
11881304 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
11891305 ;;
11901306 -mac*)
12921408 ;;
12931409 -kaos*)
12941410 os=-kaos
1411 ;;
1412 -zvmoe)
1413 os=-zvmoe
1414 ;;
1415 -dicos*)
1416 os=-dicos
12951417 ;;
12961418 -none)
12971419 ;;
13151437 # system, and we'll never get to this point.
13161438
13171439 case $basic_machine in
1440 score-*)
1441 os=-elf
1442 ;;
1443 spu-*)
1444 os=-elf
1445 ;;
13181446 *-acorn)
13191447 os=-riscix1.2
13201448 ;;
13241452 arm*-semi)
13251453 os=-aout
13261454 ;;
1327 c4x-* | tic4x-*)
1328 os=-coff
1329 ;;
1455 c4x-* | tic4x-*)
1456 os=-coff
1457 ;;
13301458 # This must come before the *-dec entry.
13311459 pdp10-*)
13321460 os=-tops20
13521480 m68*-cisco)
13531481 os=-aout
13541482 ;;
1483 mep-*)
1484 os=-elf
1485 ;;
13551486 mips*-cisco)
13561487 os=-elf
13571488 ;;
13691500 ;;
13701501 *-be)
13711502 os=-beos
1503 ;;
1504 *-haiku)
1505 os=-haiku
13721506 ;;
13731507 *-ibm)
13741508 os=-aix
15411675 esac
15421676
15431677 echo $basic_machine$os
1544 exit 0
1678 exit
15451679
15461680 # Local variables:
15471681 # eval: (add-hook 'write-file-hooks 'time-stamp)
+13224
-16325
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59.
2 # Generated by GNU Autoconf 2.63.
33 #
4 # Copyright (C) 2003 Free Software Foundation, Inc.
4 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
56 # This configure script is free software; the Free Software Foundation
67 # gives unlimited permission to copy, distribute and modify it.
78 ## --------------------- ##
89 ## M4sh Initialization. ##
910 ## --------------------- ##
1011
11 # Be Bourne compatible
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
1214 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1315 emulate sh
1416 NULLCMD=:
15 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1618 # is contrary to our usage. Disable this feature.
1719 alias -g '${1+"$@"}'='"$@"'
18 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19 set -o posix
20 fi
21 DUALCASE=1; export DUALCASE # for MKS sh
22
23 # Support unset when possible.
24 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25 as_unset=unset
26 else
27 as_unset=false
28 fi
29
30
31 # Work around bugs in pre-3.0 UWIN ksh.
32 $as_unset ENV MAIL MAILPATH
33 PS1='$ '
34 PS2='> '
35 PS4='+ '
36
37 # NLS nuisances.
38 for as_var in \
39 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41 LC_TELEPHONE LC_TIME
42 do
43 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
45 else
46 $as_unset $as_var
47 fi
48 done
49
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52 as_expr=expr
53 else
54 as_expr=false
55 fi
56
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58 as_basename=basename
59 else
60 as_basename=false
61 fi
62
63
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
75
76
77 # PATH needs CR, and LINENO needs CR and PATH.
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in
23 *posix*) set -o posix ;;
24 esac
25
26 fi
27
28
29
30
31 # PATH needs CR
7832 # Avoid depending upon Character Ranges.
7933 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8236 as_cr_digits='0123456789'
8337 as_cr_alnum=$as_cr_Letters$as_cr_digits
8438
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='printf %s\n'
48 as_echo_n='printf %s'
49 else
50 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
52 as_echo_n='/usr/ucb/echo -n'
53 else
54 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
55 as_echo_n_body='eval
56 arg=$1;
57 case $arg in
58 *"$as_nl"*)
59 expr "X$arg" : "X\\(.*\\)$as_nl";
60 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61 esac;
62 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 '
64 export as_echo_n_body
65 as_echo_n='sh -c $as_echo_n_body as_echo'
66 fi
67 export as_echo_body
68 as_echo='sh -c $as_echo_body as_echo'
69 fi
70
8571 # The user is always right.
8672 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conf$$.sh
88 echo "exit 0" >>conf$$.sh
89 chmod +x conf$$.sh
90 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
91 PATH_SEPARATOR=';'
92 else
93 PATH_SEPARATOR=:
94 fi
95 rm -f conf$$.sh
96 fi
97
98
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 PATH_SEPARATOR=:
74 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
75 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
76 PATH_SEPARATOR=';'
77 }
78 fi
79
80 # Support unset when possible.
81 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
82 as_unset=unset
83 else
84 as_unset=false
85 fi
86
87
88 # IFS
89 # We need space, tab and new line, in precisely that order. Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
93 IFS=" "" $as_nl"
94
95 # Find who we are. Look in the path if we contain no directory separator.
96 case $0 in
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999 for as_dir in $PATH
110100 do
111101 IFS=$as_save_IFS
112102 test -z "$as_dir" && as_dir=.
113103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114104 done
115
116 ;;
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
122 fi
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
126 fi
127 case $CONFIG_SHELL in
128 '')
105 IFS=$as_save_IFS
106
107 ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 { (exit 1); exit 1; }
117 fi
118
119 # Work around bugs in pre-3.0 UWIN ksh.
120 for as_var in ENV MAIL MAILPATH
121 do ($as_unset $as_var) >/dev/null 2>&1 && $as_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 # Required to use basename.
134 if expr a : '\(a\)' >/dev/null 2>&1 &&
135 test "X`expr 00001 : '.*\(...\)'`" = X001; then
136 as_expr=expr
137 else
138 as_expr=false
139 fi
140
141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
142 as_basename=basename
143 else
144 as_basename=false
145 fi
146
147
148 # Name of the executable.
149 as_me=`$as_basename -- "$0" ||
150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
151 X"$0" : 'X\(//\)$' \| \
152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
153 $as_echo X/"$0" |
154 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 s//\1/
156 q
157 }
158 /^X\/\(\/\/\)$/{
159 s//\1/
160 q
161 }
162 /^X\/\(\/\).*/{
163 s//\1/
164 q
165 }
166 s/.*/./; q'`
167
168 # CDPATH.
169 $as_unset CDPATH
170
171
172 if test "x$CONFIG_SHELL" = x; then
173 if (eval ":") 2>/dev/null; then
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178
179 if test $as_have_required = yes && (eval ":
180 (as_func_return () {
181 (exit \$1)
182 }
183 as_func_success () {
184 as_func_return 0
185 }
186 as_func_failure () {
187 as_func_return 1
188 }
189 as_func_ret_success () {
190 return 0
191 }
192 as_func_ret_failure () {
193 return 1
194 }
195
196 exitcode=0
197 if as_func_success; then
198 :
199 else
200 exitcode=1
201 echo as_func_success failed.
202 fi
203
204 if as_func_failure; then
205 exitcode=1
206 echo as_func_failure succeeded.
207 fi
208
209 if as_func_ret_success; then
210 :
211 else
212 exitcode=1
213 echo as_func_ret_success failed.
214 fi
215
216 if as_func_ret_failure; then
217 exitcode=1
218 echo as_func_ret_failure succeeded.
219 fi
220
221 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
222 :
223 else
224 exitcode=1
225 echo positional parameters were not saved.
226 fi
227
228 test \$exitcode = 0) || { (exit 1); exit 1; }
229
230 (
231 as_lineno_1=\$LINENO
232 as_lineno_2=\$LINENO
233 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
234 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
235 ") 2> /dev/null; then
236 :
237 else
238 as_candidate_shells=
129239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130240 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131241 do
132242 IFS=$as_save_IFS
133243 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
244 case $as_dir in
136245 /*)
137 if ("$as_dir/$as_base" -c '
246 for as_base in sh bash ksh sh5; do
247 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
248 done;;
249 esac
250 done
251 IFS=$as_save_IFS
252
253
254 for as_shell in $as_candidate_shells $SHELL; do
255 # Try only shells that exist, to save several forks.
256 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
257 { ("$as_shell") 2> /dev/null <<\_ASEOF
258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
259 emulate sh
260 NULLCMD=:
261 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
262 # is contrary to our usage. Disable this feature.
263 alias -g '${1+"$@"}'='"$@"'
264 setopt NO_GLOB_SUBST
265 else
266 case `(set -o) 2>/dev/null` in
267 *posix*) set -o posix ;;
268 esac
269
270 fi
271
272
273 :
274 _ASEOF
275 }; then
276 CONFIG_SHELL=$as_shell
277 as_have_required=yes
278 if { "$as_shell" 2> /dev/null <<\_ASEOF
279 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
280 emulate sh
281 NULLCMD=:
282 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
283 # is contrary to our usage. Disable this feature.
284 alias -g '${1+"$@"}'='"$@"'
285 setopt NO_GLOB_SUBST
286 else
287 case `(set -o) 2>/dev/null` in
288 *posix*) set -o posix ;;
289 esac
290
291 fi
292
293
294 :
295 (as_func_return () {
296 (exit $1)
297 }
298 as_func_success () {
299 as_func_return 0
300 }
301 as_func_failure () {
302 as_func_return 1
303 }
304 as_func_ret_success () {
305 return 0
306 }
307 as_func_ret_failure () {
308 return 1
309 }
310
311 exitcode=0
312 if as_func_success; then
313 :
314 else
315 exitcode=1
316 echo as_func_success failed.
317 fi
318
319 if as_func_failure; then
320 exitcode=1
321 echo as_func_failure succeeded.
322 fi
323
324 if as_func_ret_success; then
325 :
326 else
327 exitcode=1
328 echo as_func_ret_success failed.
329 fi
330
331 if as_func_ret_failure; then
332 exitcode=1
333 echo as_func_ret_failure succeeded.
334 fi
335
336 if ( set x; as_func_ret_success y && test x = "$1" ); then
337 :
338 else
339 exitcode=1
340 echo positional parameters were not saved.
341 fi
342
343 test $exitcode = 0) || { (exit 1); exit 1; }
344
345 (
138346 as_lineno_1=$LINENO
139347 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141348 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
146 export CONFIG_SHELL
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148 fi;;
149 esac
150 done
151 done
152 ;;
153 esac
349 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
350
351 _ASEOF
352 }; then
353 break
354 fi
355
356 fi
357
358 done
359
360 if test "x$CONFIG_SHELL" != x; then
361 for as_var in BASH_ENV ENV
362 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
363 done
364 export CONFIG_SHELL
365 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
366 fi
367
368
369 if test $as_have_required = no; then
370 echo This script requires a shell more modern than all the
371 echo shells that I found on your system. Please install a
372 echo modern shell, or manually run the script under such a
373 echo shell if you do have one.
374 { (exit 1); exit 1; }
375 fi
376
377
378 fi
379
380 fi
381
382
383
384 (eval "as_func_return () {
385 (exit \$1)
386 }
387 as_func_success () {
388 as_func_return 0
389 }
390 as_func_failure () {
391 as_func_return 1
392 }
393 as_func_ret_success () {
394 return 0
395 }
396 as_func_ret_failure () {
397 return 1
398 }
399
400 exitcode=0
401 if as_func_success; then
402 :
403 else
404 exitcode=1
405 echo as_func_success failed.
406 fi
407
408 if as_func_failure; then
409 exitcode=1
410 echo as_func_failure succeeded.
411 fi
412
413 if as_func_ret_success; then
414 :
415 else
416 exitcode=1
417 echo as_func_ret_success failed.
418 fi
419
420 if as_func_ret_failure; then
421 exitcode=1
422 echo as_func_ret_failure succeeded.
423 fi
424
425 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
426 :
427 else
428 exitcode=1
429 echo positional parameters were not saved.
430 fi
431
432 test \$exitcode = 0") || {
433 echo No shell found that supports shell functions.
434 echo Please tell bug-autoconf@gnu.org about your system,
435 echo including any error possibly output before this message.
436 echo This can help us improve future autoconf versions.
437 echo Configuration will now proceed without shell functions.
438 }
439
440
441
442 as_lineno_1=$LINENO
443 as_lineno_2=$LINENO
444 test "x$as_lineno_1" != "x$as_lineno_2" &&
445 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
154446
155447 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156448 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
449 # line-number line after each line using $LINENO; the second 'sed'
450 # does the real work. The second script uses 'N' to pair each
451 # line-number line with the line containing $LINENO, and appends
452 # trailing '-' during substitution so that $LINENO is not a special
453 # case at line end.
161454 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
455 # scripts with optimization help from Paolo Bonzini. Blame Lee
456 # E. McMahon (1931-1989) for sed's syntax. :-)
457 sed -n '
458 p
459 /[$]LINENO/=
460 ' <$as_myself |
164461 sed '
462 s/[$]LINENO.*/&-/
463 t lineno
464 b
465 :lineno
165466 N
166 s,$,-,
167 : loop
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
467 :loop
468 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
169469 t loop
170 s,-$,,
171 s,^['$as_cr_digits']*\n,,
470 s/-\n.*//
172471 ' >$as_me.lineno &&
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
472 chmod +x "$as_me.lineno" ||
473 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175474 { (exit 1); exit 1; }; }
176475
177476 # Don't try to exec as it changes $[0], causing all sort of problems
178477 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
180 . ./$as_me.lineno
478 # original and so on. Autoconf is especially sensitive to this).
479 . "./$as_me.lineno"
181480 # Exit status is that of the last command.
182481 exit
183482 }
184483
185484
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T=' ' ;;
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
485 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
486 as_dirname=dirname
487 else
488 as_dirname=false
489 fi
490
491 ECHO_C= ECHO_N= ECHO_T=
492 case `echo -n x` in
493 -n*)
494 case `echo 'x\c'` in
495 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
496 *) ECHO_C='\c';;
497 esac;;
498 *)
499 ECHO_N='-n';;
191500 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
501 if expr a : '\(a\)' >/dev/null 2>&1 &&
502 test "X`expr 00001 : '.*\(...\)'`" = X001; then
194503 as_expr=expr
195504 else
196505 as_expr=false
197506 fi
198507
199508 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
509 if test -d conf$$.dir; then
510 rm -f conf$$.dir/conf$$.file
511 else
512 rm -f conf$$.dir
513 mkdir conf$$.dir 2>/dev/null
514 fi
515 if (echo >conf$$.file) 2>/dev/null; then
516 if ln -s conf$$.file conf$$ 2>/dev/null; then
517 as_ln_s='ln -s'
518 # ... but there are two gotchas:
519 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
520 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
521 # In both cases, we have to default to `cp -p'.
522 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
523 as_ln_s='cp -p'
524 elif ln conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s=ln
526 else
206527 as_ln_s='cp -p'
207 else
208 as_ln_s='ln -s'
209528 fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211 as_ln_s=ln
212529 else
213530 as_ln_s='cp -p'
214531 fi
215 rm -f conf$$ conf$$.exe conf$$.file
532 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
533 rmdir conf$$.dir 2>/dev/null
216534
217535 if mkdir -p . 2>/dev/null; then
218536 as_mkdir_p=:
221539 as_mkdir_p=false
222540 fi
223541
224 as_executable_p="test -f"
542 if test -x / >/dev/null 2>&1; then
543 as_test_x='test -x'
544 else
545 if ls -dL / >/dev/null 2>&1; then
546 as_ls_L_option=L
547 else
548 as_ls_L_option=
549 fi
550 as_test_x='
551 eval sh -c '\''
552 if test -d "$1"; then
553 test -d "$1/.";
554 else
555 case $1 in
556 -*)set "./$1";;
557 esac;
558 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
559 ???[sx]*):;;*)false;;esac;fi
560 '\'' sh
561 '
562 fi
563 as_executable_p=$as_test_x
225564
226565 # Sed expression to map a string onto a valid CPP name.
227566 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230569 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231570
232571
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242572
243573
244574 # Check that we are running under the correct shell.
245575 SHELL=${CONFIG_SHELL-/bin/sh}
246576
247 case X$ECHO in
577 case X$lt_ECHO in
248578 X*--fallback-echo)
249579 # Remove one level of quotation (which was required for Make).
250 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
580 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
251581 ;;
252582 esac
253583
254 echo=${ECHO-echo}
584 ECHO=${lt_ECHO-echo}
255585 if test "X$1" = X--no-reexec; then
256586 # Discard the --no-reexec flag, and continue.
257587 shift
258588 elif test "X$1" = X--fallback-echo; then
259589 # Avoid inline document here, it may be left over
260590 :
261 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262 # Yippee, $echo works!
591 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
592 # Yippee, $ECHO works!
263593 :
264594 else
265595 # Restart under the correct shell.
269599 if test "X$1" = X--fallback-echo; then
270600 # used as fallback echo
271601 shift
272 cat <<EOF
602 cat <<_LT_EOF
273603 $*
274 EOF
604 _LT_EOF
275605 exit 0
276606 fi
277607
278608 # The HP-UX ksh and POSIX shell print the target directory to stdout
279609 # if CDPATH is set.
280 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281
282 if test -z "$ECHO"; then
283 if test "X${echo_test_string+set}" != Xset; then
284 # find a string as large as possible, as long as the shell can cope with it
285 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288 echo_test_string="`eval $cmd`" &&
289 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
610 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
611
612 if test -z "$lt_ECHO"; then
613 if test "X${echo_test_string+set}" != Xset; then
614 # find a string as large as possible, as long as the shell can cope with it
615 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
616 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
617 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
618 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
619 then
620 break
621 fi
622 done
623 fi
624
625 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
628 :
629 else
630 # The Solaris, AIX, and Digital Unix default echo programs unquote
631 # backslashes. This makes it impossible to quote backslashes using
632 # echo "$something" | sed 's/\\/\\\\/g'
633 #
634 # So, first we look for a working echo in the user's PATH.
635
636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
637 for dir in $PATH /usr/ucb; do
638 IFS="$lt_save_ifs"
639 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
640 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
641 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 ECHO="$dir/echo"
644 break
645 fi
646 done
309647 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 echo="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$echo" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 echo='print -r'
327 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 echo='printf %s\n'
338 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648
649 if test "X$ECHO" = Xecho; then
650 # We didn't find a better echo, so look for alternatives.
651 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # This shell has a builtin print -r that does the trick.
655 ECHO='print -r'
656 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
657 test "X$CONFIG_SHELL" != X/bin/ksh; then
658 # If we have ksh, try running configure again with it.
659 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
660 export ORIGINAL_CONFIG_SHELL
661 CONFIG_SHELL=/bin/ksh
662 export CONFIG_SHELL
663 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
664 else
665 # Try using printf.
666 ECHO='printf %s\n'
667 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
668 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
346669 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 echo="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
363 then
364 break
670 # Cool, printf works
671 :
672 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
673 test "X$echo_testing_string" = 'X\t' &&
674 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
675 test "X$echo_testing_string" = "X$echo_test_string"; then
676 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
677 export CONFIG_SHELL
678 SHELL="$CONFIG_SHELL"
679 export SHELL
680 ECHO="$CONFIG_SHELL $0 --fallback-echo"
681 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
682 test "X$echo_testing_string" = 'X\t' &&
683 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
684 test "X$echo_testing_string" = "X$echo_test_string"; then
685 ECHO="$CONFIG_SHELL $0 --fallback-echo"
686 else
687 # maybe with a smaller string...
688 prev=:
689
690 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
691 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
692 then
693 break
694 fi
695 prev="$cmd"
696 done
697
698 if test "$prev" != 'sed 50q "$0"'; then
699 echo_test_string=`eval $prev`
700 export echo_test_string
701 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
702 else
703 # Oops. We lost completely, so just stick with echo.
704 ECHO=echo
365705 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 echo=echo
376 fi
706 fi
377707 fi
378708 fi
379709 fi
380710 fi
381 fi
382711
383712 # Copy echo and quote the copy suitably for passing to libtool from
384713 # the Makefile, instead of quoting the original, which is used later.
385 ECHO=$echo
386 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 tagnames=${tagnames+${tagnames},}CXX
394
395 tagnames=${tagnames+${tagnames},}F77
714 lt_ECHO=$ECHO
715 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
716 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
717 fi
718
719
720
721
722 exec 7<&0 </dev/null 6>&1
396723
397724 # Name of the host.
398725 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399726 # so uname gets run too.
400727 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401728
402 exec 6>&1
403
404729 #
405730 # Initializations.
406731 #
407732 ac_default_prefix=/usr/local
733 ac_clean_files=
408734 ac_config_libobj_dir=.
735 LIBOBJS=
409736 cross_compiling=no
410737 subdirs=
411738 MFLAGS=
412739 MAKEFLAGS=
413740 SHELL=${CONFIG_SHELL-/bin/sh}
414
415 # Maximum number of lines to put in a shell here document.
416 # This variable seems obsolete. It should probably be removed, and
417 # only ac_max_sed_lines should be used.
418 : ${ac_max_here_lines=38}
419741
420742 # Identity of this package.
421743 PACKAGE_NAME=
428750 # Factoring default headers for most tests.
429751 ac_includes_default="\
430752 #include <stdio.h>
431 #if HAVE_SYS_TYPES_H
753 #ifdef HAVE_SYS_TYPES_H
432754 # include <sys/types.h>
433755 #endif
434 #if HAVE_SYS_STAT_H
756 #ifdef HAVE_SYS_STAT_H
435757 # include <sys/stat.h>
436758 #endif
437 #if STDC_HEADERS
759 #ifdef STDC_HEADERS
438760 # include <stdlib.h>
439761 # include <stddef.h>
440762 #else
441 # if HAVE_STDLIB_H
763 # ifdef HAVE_STDLIB_H
442764 # include <stdlib.h>
443765 # endif
444766 #endif
445 #if HAVE_STRING_H
446 # if !STDC_HEADERS && HAVE_MEMORY_H
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
447769 # include <memory.h>
448770 # endif
449771 # include <string.h>
450772 #endif
451 #if HAVE_STRINGS_H
773 #ifdef HAVE_STRINGS_H
452774 # include <strings.h>
453775 #endif
454 #if HAVE_INTTYPES_H
776 #ifdef HAVE_INTTYPES_H
455777 # include <inttypes.h>
456 #else
457 # if HAVE_STDINT_H
458 # include <stdint.h>
459 # endif
460778 #endif
461 #if HAVE_UNISTD_H
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
462783 # include <unistd.h>
463784 #endif"
464785
465 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT COND_FONT_TRUE COND_FONT_FALSE COND_EXAMPLES_TRUE COND_EXAMPLES_FALSE RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS DFLAGS LIBOBJS LTLIBOBJS'
786 ac_subst_vars='LTLIBOBJS
787 LIBOBJS
788 DFLAGS
789 X_EXTRA_LIBS
790 X_LIBS
791 X_PRE_LIBS
792 X_CFLAGS
793 XMKMF
794 CXXCPP
795 am__fastdepCXX_FALSE
796 am__fastdepCXX_TRUE
797 CXXDEPMODE
798 ac_ct_CXX
799 CXXFLAGS
800 CXX
801 CPP
802 OTOOL64
803 OTOOL
804 LIPO
805 NMEDIT
806 DSYMUTIL
807 lt_ECHO
808 AR
809 OBJDUMP
810 LN_S
811 NM
812 ac_ct_DUMPBIN
813 DUMPBIN
814 LD
815 FGREP
816 EGREP
817 GREP
818 SED
819 am__fastdepCC_FALSE
820 am__fastdepCC_TRUE
821 CCDEPMODE
822 AMDEPBACKSLASH
823 AMDEP_FALSE
824 AMDEP_TRUE
825 am__quote
826 am__include
827 DEPDIR
828 OBJEXT
829 EXEEXT
830 ac_ct_CC
831 CPPFLAGS
832 LDFLAGS
833 CFLAGS
834 CC
835 host_os
836 host_vendor
837 host_cpu
838 host
839 build_os
840 build_vendor
841 build_cpu
842 build
843 LIBTOOL
844 RANLIB
845 COND_EXAMPLES_FALSE
846 COND_EXAMPLES_TRUE
847 COND_FONT_FALSE
848 COND_FONT_TRUE
849 MAINT
850 MAINTAINER_MODE_FALSE
851 MAINTAINER_MODE_TRUE
852 am__untar
853 am__tar
854 AMTAR
855 am__leading_dot
856 SET_MAKE
857 AWK
858 mkdir_p
859 MKDIR_P
860 INSTALL_STRIP_PROGRAM
861 STRIP
862 install_sh
863 MAKEINFO
864 AUTOHEADER
865 AUTOMAKE
866 AUTOCONF
867 ACLOCAL
868 VERSION
869 PACKAGE
870 CYGPATH_W
871 am__isrc
872 INSTALL_DATA
873 INSTALL_SCRIPT
874 INSTALL_PROGRAM
875 target_alias
876 host_alias
877 build_alias
878 LIBS
879 ECHO_T
880 ECHO_N
881 ECHO_C
882 DEFS
883 mandir
884 localedir
885 libdir
886 psdir
887 pdfdir
888 dvidir
889 htmldir
890 infodir
891 docdir
892 oldincludedir
893 includedir
894 localstatedir
895 sharedstatedir
896 sysconfdir
897 datadir
898 datarootdir
899 libexecdir
900 sbindir
901 bindir
902 program_transform_name
903 prefix
904 exec_prefix
905 PACKAGE_BUGREPORT
906 PACKAGE_STRING
907 PACKAGE_VERSION
908 PACKAGE_TARNAME
909 PACKAGE_NAME
910 PATH_SEPARATOR
911 SHELL'
466912 ac_subst_files=''
913 ac_user_opts='
914 enable_option_checking
915 enable_maintainer_mode
916 with_font
917 with_examples
918 enable_shared
919 enable_static
920 with_pic
921 enable_fast_install
922 enable_dependency_tracking
923 with_gnu_ld
924 enable_libtool_lock
925 with_x
926 enable_debug
927 '
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CPP
937 CXX
938 CXXFLAGS
939 CCC
940 CXXCPP
941 XMKMF'
942
467943
468944 # Initialize some variables set by options.
469945 ac_init_help=
470946 ac_init_version=false
947 ac_unrecognized_opts=
948 ac_unrecognized_sep=
471949 # The variables have the same names as the options, with
472950 # dashes changed to underlines.
473951 cache_file=/dev/null
490968 # and all the variables that are supposed to be based on exec_prefix
491969 # by default will actually change.
492970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
493972 bindir='${exec_prefix}/bin'
494973 sbindir='${exec_prefix}/sbin'
495974 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
497977 sysconfdir='${prefix}/etc'
498978 sharedstatedir='${prefix}/com'
499979 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501980 includedir='${prefix}/include'
502981 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
982 docdir='${datarootdir}/doc/${PACKAGE}'
983 infodir='${datarootdir}/info'
984 htmldir='${docdir}'
985 dvidir='${docdir}'
986 pdfdir='${docdir}'
987 psdir='${docdir}'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
505991
506992 ac_prev=
993 ac_dashdash=
507994 for ac_option
508995 do
509996 # If the previous option needs an argument, assign it.
510997 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
998 eval $ac_prev=\$ac_option
512999 ac_prev=
5131000 continue
5141001 fi
5151002
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1003 case $ac_option in
1004 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 *) ac_optarg=yes ;;
1006 esac
5171007
5181008 # Accept the important Cygnus configure options, so we can diagnose typos.
5191009
520 case $ac_option in
1010 case $ac_dashdash$ac_option in
1011 --)
1012 ac_dashdash=yes ;;
5211013
5221014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
5231015 ac_prev=bindir ;;
5391031 --config-cache | -C)
5401032 cache_file=config.cache ;;
5411033
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1034 -datadir | --datadir | --datadi | --datad)
5431035 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
5461037 datadir=$ac_optarg ;;
5471038
1039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1045
5481046 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
5501048 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
5531051 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1055 *"
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=no ;;
1062
1063 -docdir | --docdir | --docdi | --doc | --do)
1064 ac_prev=docdir ;;
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1067
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 ac_prev=dvidir ;;
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
5561072
5571073 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
5591075 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
5621078 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564 case $ac_option in
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566 *) ac_optarg=yes ;;
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083 "enable_$ac_useropt"
1084 "*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
5671087 esac
568 eval "enable_$ac_feature='$ac_optarg'" ;;
1088 eval enable_$ac_useropt=\$ac_optarg ;;
5691089
5701090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
5711091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
5921112 -host=* | --host=* | --hos=* | --ho=*)
5931113 host_alias=$ac_optarg ;;
5941114
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 ac_prev=htmldir ;;
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 | --ht=*)
1119 htmldir=$ac_optarg ;;
1120
5951121 -includedir | --includedir | --includedi | --included | --include \
5961122 | --includ | --inclu | --incl | --inc)
5971123 ac_prev=includedir ;;
6161142 | --libexe=* | --libex=* | --libe=*)
6171143 libexecdir=$ac_optarg ;;
6181144
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1149
6191150 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
1151 | --localstate | --localstat | --localsta | --localst | --locals)
6221152 ac_prev=localstatedir ;;
6231153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6261155 localstatedir=$ac_optarg ;;
6271156
6281157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
6871216 | --progr-tra=* | --program-tr=* | --program-t=*)
6881217 program_transform_name=$ac_optarg ;;
6891218
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 ac_prev=pdfdir ;;
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1223
1224 -psdir | --psdir | --psdi | --psd | --ps)
1225 ac_prev=psdir ;;
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 psdir=$ac_optarg ;;
1228
6901229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6911230 | -silent | --silent | --silen | --sile | --sil)
6921231 silent=yes ;;
7371276 ac_init_version=: ;;
7381277
7391278 -with-* | --with-*)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
7411280 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
7441283 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
746 case $ac_option in
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748 *) ac_optarg=yes ;;
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
7491292 esac
750 eval "with_$ac_package='$ac_optarg'" ;;
1293 eval with_$ac_useropt=\$ac_optarg ;;
7511294
7521295 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
7541297 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
7571300 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1304 *"
1305 "with_$ac_useropt"
1306 "*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval with_$ac_useropt=no ;;
7601311
7611312 --x)
7621313 # Obsolete; use --with-x.
7761327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
7771328 x_libraries=$ac_optarg ;;
7781329
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
1330 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
7801331 Try \`$0 --help' for more information." >&2
7811332 { (exit 1); exit 1; }; }
7821333 ;;
7851336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
7861337 # Reject names that are not valid shell variable names.
7871338 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1339 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
7891340 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
1341 eval $ac_envvar=\$ac_optarg
7921342 export $ac_envvar ;;
7931343
7941344 *)
7951345 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
7971347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
7991349 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
8001350 ;;
8011351
8041354
8051355 if test -n "$ac_prev"; then
8061356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
1357 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
8081358 { (exit 1); exit 1; }; }
8091359 fi
8101360
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1365 { (exit 1); exit 1; }; } ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 esac
1368 fi
1369
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir
8131375 do
814 eval ac_val=$`echo $ac_var`
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
8151378 case $ac_val in
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
1379 */ )
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
8191382 esac
820 done
821
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
825 do
826 eval ac_val=$`echo $ac_var`
1383 # Be sure to have absolute directory names.
8271384 case $ac_val in
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
8311387 esac
1388 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1389 { (exit 1); exit 1; }; }
8321390 done
8331391
8341392 # There might be people who depend on the old broken behavior: `$host'
8421400 if test "x$host_alias" != x; then
8431401 if test "x$build_alias" = x; then
8441402 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1403 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
8461404 If a cross compiler is detected then cross compile mode will be used." >&2
8471405 elif test "x$build_alias" != "x$host_alias"; then
8481406 cross_compiling=yes
8551413 test "$silent" = yes && exec 6>/dev/null
8561414
8571415
1416 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di=`ls -di .` &&
1418 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1420 { (exit 1); exit 1; }; }
1421 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1423 { (exit 1); exit 1; }; }
1424
1425
8581426 # Find the source files, if location was not specified.
8591427 if test -z "$srcdir"; then
8601428 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
868 echo X"$0" |
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
873 s/.*/./; q'`
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)[^/].*/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\/\)$/{
1445 s//\1/
1446 q
1447 }
1448 /^X\(\/\).*/{
1449 s//\1/
1450 q
1451 }
1452 s/.*/./; q'`
8741453 srcdir=$ac_confdir
875 if test ! -r $srcdir/$ac_unique_file; then
1454 if test ! -r "$srcdir/$ac_unique_file"; then
8761455 srcdir=..
8771456 fi
8781457 else
8791458 ac_srcdir_defaulted=no
8801459 fi
881 if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
8841463 { (exit 1); exit 1; }; }
885 else
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1464 fi
1465 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1466 ac_abs_confdir=`(
1467 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
8871468 { (exit 1); exit 1; }; }
888 fi
889 fi
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
907 ac_env_CC_value=$CC
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
1469 pwd)`
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 srcdir=.
1473 fi
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1477 case $srcdir in
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479 esac
1480 for ac_var in $ac_precious_vars; do
1481 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_env_${ac_var}_value=\$${ac_var}
1483 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 done
9461486
9471487 #
9481488 # Report the --help message.
9711511 -n, --no-create do not create output files
9721512 --srcdir=DIR find the sources in DIR [configure dir or \`..']
9731513
974 _ACEOF
975
976 cat <<_ACEOF
9771514 Installation directories:
9781515 --prefix=PREFIX install architecture-independent files in PREFIX
979 [$ac_default_prefix]
1516 [$ac_default_prefix]
9801517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
981 [PREFIX]
1518 [PREFIX]
9821519
9831520 By default, \`make install' will install all the files in
9841521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
9881525 For better control, use the options below.
9891526
9901527 Fine tuning of the installation directories:
991 --bindir=DIR user executables [EPREFIX/bin]
992 --sbindir=DIR system admin executables [EPREFIX/sbin]
993 --libexecdir=DIR program executables [EPREFIX/libexec]
994 --datadir=DIR read-only architecture-independent data [PREFIX/share]
995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
997 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
998 --libdir=DIR object code libraries [EPREFIX/lib]
999 --includedir=DIR C header files [PREFIX/include]
1000 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1001 --infodir=DIR info documentation [PREFIX/info]
1002 --mandir=DIR man documentation [PREFIX/man]
1528 --bindir=DIR user executables [EPREFIX/bin]
1529 --sbindir=DIR system admin executables [EPREFIX/sbin]
1530 --libexecdir=DIR program executables [EPREFIX/libexec]
1531 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1532 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1533 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1534 --libdir=DIR object code libraries [EPREFIX/lib]
1535 --includedir=DIR C header files [PREFIX/include]
1536 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1537 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1538 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1539 --infodir=DIR info documentation [DATAROOTDIR/info]
1540 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1541 --mandir=DIR man documentation [DATAROOTDIR/man]
1542 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1543 --htmldir=DIR html documentation [DOCDIR]
1544 --dvidir=DIR dvi documentation [DOCDIR]
1545 --pdfdir=DIR pdf documentation [DOCDIR]
1546 --psdir=DIR ps documentation [DOCDIR]
10031547 _ACEOF
10041548
10051549 cat <<\_ACEOF
10241568 cat <<\_ACEOF
10251569
10261570 Optional Features:
1571 --disable-option-checking ignore unrecognized --enable/--with options
10271572 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
10281573 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
10291574 --enable-maintainer-mode enable make rules and dependencies not useful
10301575 (and sometimes confusing) to the casual installer
1031 --enable-shared[=PKGS]
1032 build shared libraries [default=yes]
1033 --enable-static[=PKGS]
1034 build static libraries [default=yes]
1576 --enable-shared[=PKGS] build shared libraries [default=yes]
1577 --enable-static[=PKGS] build static libraries [default=yes]
10351578 --enable-fast-install[=PKGS]
10361579 optimize for fast installation [default=yes]
10371580 --disable-dependency-tracking speeds up one-time build
10441587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
10451588 --with-font install the dockapp font (default=yes)
10461589 --with-examples install the examples (default=yes)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
10481590 --with-pic try to use only PIC/non-PIC objects [default=use
10491591 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
1592 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
10521593 --with-x use the X Window System
10531594
10541595 Some influential environment variables:
10561597 CFLAGS C compiler flags
10571598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
10581599 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1600 LIBS libraries to pass to the linker, e.g. -l<library>
1601 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
10611603 CPP C preprocessor
10621604 CXX C++ compiler command
10631605 CXXFLAGS C++ compiler flags
10641606 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1607 XMKMF Path to xmkmf, Makefile generator for X Window System
10671608
10681609 Use these variables to override the choices made by `configure' or to help
10691610 it to find libraries and programs with nonstandard names/locations.
10701611
10711612 _ACEOF
1613 ac_status=$?
10721614 fi
10731615
10741616 if test "$ac_init_help" = "recursive"; then
10751617 # If there are subdirs, report their specific --help.
1076 ac_popdir=`pwd`
10771618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621 continue
10791622 ac_builddir=.
10801623
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 else
1086 ac_dir_suffix= ac_top_builddir=
1087 fi
1624 case "$ac_dir" in
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *)
1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 esac ;;
1634 esac
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
10881639
10891640 case $srcdir in
1090 .) # No --srcdir option. We are building in place.
1641 .) # We are building in place.
10911642 ac_srcdir=.
1092 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1649 *) # Relative name.
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 esac
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure" --help=recursive
10941664 else
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 fi ;;
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1100 *) # Relative path.
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 esac
1104
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1107 case `pwd` in
1108 .) ac_abs_builddir="$ac_dir";;
1109 *)
1110 case "$ac_dir" in
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *)
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1127 *)
1128 case $ac_srcdir in
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *)
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 esac;;
1142 esac
1143
1144 cd $ac_dir
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1147 echo
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1150 echo
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1154 echo
1155 $ac_configure --help
1156 else
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 fi
1159 cd "$ac_popdir"
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 fi || ac_status=$?
1667 cd "$ac_pwd" || { ac_status=$?; break; }
11601668 done
11611669 fi
11621670
1163 test -n "$ac_init_help" && exit 0
1671 test -n "$ac_init_help" && exit $ac_status
11641672 if $ac_init_version; then
11651673 cat <<\_ACEOF
1166
1167 Copyright (C) 2003 Free Software Foundation, Inc.
1674 configure
1675 generated by GNU Autoconf 2.63
1676
1677 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1678 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
11681679 This configure script is free software; the Free Software Foundation
11691680 gives unlimited permission to copy, distribute and modify it.
11701681 _ACEOF
1171 exit 0
1172 fi
1173 exec 5>config.log
1174 cat >&5 <<_ACEOF
1682 exit
1683 fi
1684 cat >config.log <<_ACEOF
11751685 This file contains any messages produced by compilers while
11761686 running configure, to aid debugging if configure makes a mistake.
11771687
11781688 It was created by $as_me, which was
1179 generated by GNU Autoconf 2.59. Invocation command line was
1689 generated by GNU Autoconf 2.63. Invocation command line was
11801690
11811691 $ $0 $@
11821692
11831693 _ACEOF
1694 exec 5>>config.log
11841695 {
11851696 cat <<_ASUNAME
11861697 ## --------- ##
11991710 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
12001711 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
12011712 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1713 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
12031714 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
12041715 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
12051716 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
12111722 do
12121723 IFS=$as_save_IFS
12131724 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1725 $as_echo "PATH: $as_dir"
12151726 done
1727 IFS=$as_save_IFS
12161728
12171729 } >&5
12181730
12341746 ac_configure_args=
12351747 ac_configure_args0=
12361748 ac_configure_args1=
1237 ac_sep=
12381749 ac_must_keep_next=false
12391750 for ac_pass in 1 2
12401751 do
12451756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12461757 | -silent | --silent | --silen | --sile | --sil)
12471758 continue ;;
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1759 *\'*)
1760 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12501761 esac
12511762 case $ac_pass in
12521763 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
12671778 -* ) ac_must_keep_next=true ;;
12681779 esac
12691780 fi
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1272 ac_sep=" "
1781 ac_configure_args="$ac_configure_args '$ac_arg'"
12731782 ;;
12741783 esac
12751784 done
12801789 # When interrupted or exit'd, cleanup temporary files, and complete
12811790 # config.log. We remove comments because anyway the quotes in there
12821791 # would cause problems or look ugly.
1283 # WARNING: Be sure not to use single quotes in there, as some shells,
1284 # such as our DU 5.0 friend, will then `close' the trap.
1792 # WARNING: Use '\'' to represent an apostrophe within the trap.
1793 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
12851794 trap 'exit_status=$?
12861795 # Save into config.log some information that might help in debugging.
12871796 {
12941803 _ASBOX
12951804 echo
12961805 # The following way of writing the cache mishandles newlines in values,
1297 {
1806 (
1807 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1808 eval ac_val=\$$ac_var
1809 case $ac_val in #(
1810 *${as_nl}*)
1811 case $ac_var in #(
1812 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1813 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1814 esac
1815 case $ac_var in #(
1816 _ | IFS | as_nl) ;; #(
1817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1818 *) $as_unset $ac_var ;;
1819 esac ;;
1820 esac
1821 done
12981822 (set) 2>&1 |
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 *ac_space=\ *)
1823 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1824 *${as_nl}ac_space=\ *)
13011825 sed -n \
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1826 "s/'\''/'\''\\\\'\'''\''/g;
1827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1828 ;; #(
1829 *)
1830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13041831 ;;
1305 *)
1306 sed -n \
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308 ;;
1309 esac;
1310 }
1832 esac |
1833 sort
1834 )
13111835 echo
13121836
13131837 cat <<\_ASBOX
13181842 echo
13191843 for ac_var in $ac_subst_vars
13201844 do
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1845 eval ac_val=\$$ac_var
1846 case $ac_val in
1847 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848 esac
1849 $as_echo "$ac_var='\''$ac_val'\''"
13231850 done | sort
13241851 echo
13251852
13261853 if test -n "$ac_subst_files"; then
13271854 cat <<\_ASBOX
1328 ## ------------- ##
1329 ## Output files. ##
1330 ## ------------- ##
1855 ## ------------------- ##
1856 ## File substitutions. ##
1857 ## ------------------- ##
13311858 _ASBOX
13321859 echo
13331860 for ac_var in $ac_subst_files
13341861 do
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1862 eval ac_val=\$$ac_var
1863 case $ac_val in
1864 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 esac
1866 $as_echo "$ac_var='\''$ac_val'\''"
13371867 done | sort
13381868 echo
13391869 fi
13451875 ## ----------- ##
13461876 _ASBOX
13471877 echo
1348 sed "/^$/d" confdefs.h | sort
1878 cat confdefs.h
13491879 echo
13501880 fi
13511881 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1882 $as_echo "$as_me: caught signal $ac_signal"
1883 $as_echo "$as_me: exit $exit_status"
13541884 } >&5
1355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1885 rm -f core *.core core.conftest.* &&
1886 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13571887 exit $exit_status
1358 ' 0
1888 ' 0
13591889 for ac_signal in 1 2 13 15; do
13601890 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
13611891 done
13621892 ac_signal=0
13631893
13641894 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1365 rm -rf conftest* confdefs.h
1366 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367 echo >confdefs.h
1895 rm -f -r conftest* confdefs.h
13681896
13691897 # Predefined preprocessor variables.
13701898
13941922
13951923
13961924 # Let the site file select an alternate cache file if it wants to.
1397 # Prefer explicitly selected file to automatically selected ones.
1398 if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 else
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403 fi
1404 fi
1405 for ac_site_file in $CONFIG_SITE; do
1925 # Prefer an explicitly selected file to automatically selected ones.
1926 ac_site_file1=NONE
1927 ac_site_file2=NONE
1928 if test -n "$CONFIG_SITE"; then
1929 ac_site_file1=$CONFIG_SITE
1930 elif test "x$prefix" != xNONE; then
1931 ac_site_file1=$prefix/share/config.site
1932 ac_site_file2=$prefix/etc/config.site
1933 else
1934 ac_site_file1=$ac_default_prefix/share/config.site
1935 ac_site_file2=$ac_default_prefix/etc/config.site
1936 fi
1937 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1938 do
1939 test "x$ac_site_file" = xNONE && continue
14061940 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408 echo "$as_me: loading site script $ac_site_file" >&6;}
1941 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1942 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
14091943 sed 's/^/| /' "$ac_site_file" >&5
14101944 . "$ac_site_file"
14111945 fi
14151949 # Some versions of bash will fail to source /dev/null (special
14161950 # files actually), so we avoid doing that.
14171951 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419 echo "$as_me: loading cache $cache_file" >&6;}
1952 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1953 $as_echo "$as_me: loading cache $cache_file" >&6;}
14201954 case $cache_file in
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1955 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1956 *) . "./$cache_file";;
14231957 esac
14241958 fi
14251959 else
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427 echo "$as_me: creating cache $cache_file" >&6;}
1960 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1961 $as_echo "$as_me: creating cache $cache_file" >&6;}
14281962 >$cache_file
14291963 fi
14301964
14311965 # Check that the precious variables saved in the cache have kept the same
14321966 # value.
14331967 ac_cache_corrupted=false
1434 for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1968 for ac_var in $ac_precious_vars; do
14361969 eval ac_old_set=\$ac_cv_env_${ac_var}_set
14371970 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1971 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1972 eval ac_new_val=\$ac_env_${ac_var}_value
14401973 case $ac_old_set,$ac_new_set in
14411974 set,)
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1975 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1976 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
14441977 ac_cache_corrupted=: ;;
14451978 ,set)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1980 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
14481981 ac_cache_corrupted=: ;;
14491982 ,);;
14501983 *)
14511984 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455 echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457 echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1985 # differences in whitespace do not lead to failure.
1986 ac_old_val_w=`echo x $ac_old_val`
1987 ac_new_val_w=`echo x $ac_new_val`
1988 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1989 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1990 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1991 ac_cache_corrupted=:
1992 else
1993 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1994 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1995 eval $ac_var=\$ac_old_val
1996 fi
1997 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1998 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1999 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2000 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
14592001 fi;;
14602002 esac
14612003 # Pass precious variables to config.status.
14622004 if test "$ac_new_set" = set; then
14632005 case $ac_new_val in
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
14662007 *) ac_arg=$ac_var=$ac_new_val ;;
14672008 esac
14682009 case " $ac_configure_args " in
14722013 fi
14732014 done
14742015 if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2016 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2019 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2020 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2021 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
14792022 { (exit 1); exit 1; }; }
14802023 fi
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
14812040
14822041 ac_ext=c
14832042 ac_cpp='$CPP $CPPFLAGS'
14862045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14872046
14882047
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506 am__api_version="1.9"
2048 am__api_version='1.10'
2049
15072050 ac_aux_dir=
1508 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1509 if test -f $ac_dir/install-sh; then
2051 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2052 if test -f "$ac_dir/install-sh"; then
15102053 ac_aux_dir=$ac_dir
15112054 ac_install_sh="$ac_aux_dir/install-sh -c"
15122055 break
1513 elif test -f $ac_dir/install.sh; then
2056 elif test -f "$ac_dir/install.sh"; then
15142057 ac_aux_dir=$ac_dir
15152058 ac_install_sh="$ac_aux_dir/install.sh -c"
15162059 break
1517 elif test -f $ac_dir/shtool; then
2060 elif test -f "$ac_dir/shtool"; then
15182061 ac_aux_dir=$ac_dir
15192062 ac_install_sh="$ac_aux_dir/shtool install -c"
15202063 break
15212064 fi
15222065 done
15232066 if test -z "$ac_aux_dir"; then
1524 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1525 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2067 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2068 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
15262069 { (exit 1); exit 1; }; }
15272070 fi
1528 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1529 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1530 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2071
2072 # These three variables are undocumented and unsupported,
2073 # and are intended to be withdrawn in a future Autoconf release.
2074 # They can cause serious problems if a builder's source tree is in a directory
2075 # whose full name contains unusual characters.
2076 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2077 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2078 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2079
15312080
15322081 # Find a good install program. We prefer a C program (faster),
15332082 # so one script is as good as another. But avoid the broken or
15422091 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15432092 # OS/2's system install, which has a completely different semantic
15442093 # ./install, which can be erroneously created by make from ./install.sh.
1545 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1546 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2094 # Reject install programs that cannot install multiple files.
2095 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2096 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15472097 if test -z "$INSTALL"; then
15482098 if test "${ac_cv_path_install+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 $as_echo_n "(cached) " >&6
15502100 else
15512101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15522102 for as_dir in $PATH
15652115 # by default.
15662116 for ac_prog in ginstall scoinst install; do
15672117 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2118 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15692119 if test $ac_prog = install &&
15702120 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15712121 # AIX install. It has an incompatible calling convention.
15752125 # program-specific install script used by HP pwplus--don't use.
15762126 :
15772127 else
1578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1579 break 3
2128 rm -rf conftest.one conftest.two conftest.dir
2129 echo one > conftest.one
2130 echo two > conftest.two
2131 mkdir conftest.dir
2132 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2133 test -s conftest.one && test -s conftest.two &&
2134 test -s conftest.dir/conftest.one &&
2135 test -s conftest.dir/conftest.two
2136 then
2137 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2138 break 3
2139 fi
15802140 fi
15812141 fi
15822142 done
15832143 done
15842144 ;;
15852145 esac
2146
15862147 done
1587
2148 IFS=$as_save_IFS
2149
2150 rm -rf conftest.one conftest.two conftest.dir
15882151
15892152 fi
15902153 if test "${ac_cv_path_install+set}" = set; then
15912154 INSTALL=$ac_cv_path_install
15922155 else
1593 # As a last resort, use the slow shell script. We don't cache a
1594 # path for INSTALL within a source directory, because that will
2156 # As a last resort, use the slow shell script. Don't cache a
2157 # value for INSTALL within a source directory, because that will
15952158 # break other packages using the cache if that directory is
1596 # removed, or if the path is relative.
2159 # removed, or if the value is a relative name.
15972160 INSTALL=$ac_install_sh
15982161 fi
15992162 fi
1600 echo "$as_me:$LINENO: result: $INSTALL" >&5
1601 echo "${ECHO_T}$INSTALL" >&6
2163 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2164 $as_echo "$INSTALL" >&6; }
16022165
16032166 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16042167 # It thinks the first close brace ends the variable substitution.
16082171
16092172 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16102173
1611 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1612 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2174 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2175 $as_echo_n "checking whether build environment is sane... " >&6; }
16132176 # Just in case
16142177 sleep 1
16152178 echo timestamp > conftest.file
16322195 # if, for instance, CONFIG_SHELL is bash and it inherits a
16332196 # broken ls alias from the environment. This has actually
16342197 # happened. Such a system could not be considered "sane".
1635 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2198 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
16362199 alias in your environment" >&5
1637 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2200 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
16382201 alias in your environment" >&2;}
16392202 { (exit 1); exit 1; }; }
16402203 fi
16452208 # Ok.
16462209 :
16472210 else
1648 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2211 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
16492212 Check your system clock" >&5
1650 echo "$as_me: error: newly created file is older than distributed files!
2213 $as_echo "$as_me: error: newly created file is older than distributed files!
16512214 Check your system clock" >&2;}
16522215 { (exit 1); exit 1; }; }
16532216 fi
1654 echo "$as_me:$LINENO: result: yes" >&5
1655 echo "${ECHO_T}yes" >&6
2217 { $as_echo "$as_me:$LINENO: result: yes" >&5
2218 $as_echo "yes" >&6; }
16562219 test "$program_prefix" != NONE &&
1657 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2220 program_transform_name="s&^&$program_prefix&;$program_transform_name"
16582221 # Use a double $ so make ignores it.
16592222 test "$program_suffix" != NONE &&
1660 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1661 # Double any \ or $. echo might interpret backslashes.
2223 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2224 # Double any \ or $.
16622225 # By default was `s,x,x', remove it if useless.
1663 cat <<\_ACEOF >conftest.sed
1664 s/[\\$]/&&/g;s/;s,x,x,$//
1665 _ACEOF
1666 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1667 rm conftest.sed
2226 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2227 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
16682228
16692229 # expand $ac_aux_dir to an absolute path
16702230 am_aux_dir=`cd $ac_aux_dir && pwd`
16752235 am_missing_run="$MISSING --run "
16762236 else
16772237 am_missing_run=
1678 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1679 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1680 fi
1681
1682 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1683 # We used to keeping the `.' as first argument, in order to
1684 # allow $(mkdir_p) to be used without argument. As in
1685 # $(mkdir_p) $(somedir)
1686 # where $(somedir) is conditionally defined. However this is wrong
1687 # for two reasons:
1688 # 1. if the package is installed by a user who cannot write `.'
1689 # make install will fail,
1690 # 2. the above comment should most certainly read
1691 # $(mkdir_p) $(DESTDIR)$(somedir)
1692 # so it does not work when $(somedir) is undefined and
1693 # $(DESTDIR) is not.
1694 # To support the latter case, we have to write
1695 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1696 # so the `.' trick is pointless.
1697 mkdir_p='mkdir -p --'
1698 else
1699 # On NextStep and OpenStep, the `mkdir' command does not
1700 # recognize any option. It will interpret all options as
1701 # directories to create, and then abort because `.' already
1702 # exists.
1703 for d in ./-p ./--version;
1704 do
1705 test -d $d && rmdir $d
1706 done
1707 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1708 if test -f "$ac_aux_dir/mkinstalldirs"; then
1709 mkdir_p='$(mkinstalldirs)'
2238 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2239 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2240 fi
2241
2242 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2243 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2244 if test -z "$MKDIR_P"; then
2245 if test "${ac_cv_path_mkdir+set}" = set; then
2246 $as_echo_n "(cached) " >&6
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2250 do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_prog in mkdir gmkdir; do
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2256 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2257 'mkdir (GNU coreutils) '* | \
2258 'mkdir (coreutils) '* | \
2259 'mkdir (fileutils) '4.1*)
2260 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2261 break 3;;
2262 esac
2263 done
2264 done
2265 done
2266 IFS=$as_save_IFS
2267
2268 fi
2269
2270 if test "${ac_cv_path_mkdir+set}" = set; then
2271 MKDIR_P="$ac_cv_path_mkdir -p"
17102272 else
1711 mkdir_p='$(install_sh) -d'
2273 # As a last resort, use the slow shell script. Don't cache a
2274 # value for MKDIR_P within a source directory, because that will
2275 # break other packages using the cache if that directory is
2276 # removed, or if the value is a relative name.
2277 test -d ./--version && rmdir ./--version
2278 MKDIR_P="$ac_install_sh -d"
17122279 fi
17132280 fi
2281 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2282 $as_echo "$MKDIR_P" >&6; }
2283
2284 mkdir_p="$MKDIR_P"
2285 case $mkdir_p in
2286 [\\/$]* | ?:[\\/]*) ;;
2287 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2288 esac
17142289
17152290 for ac_prog in gawk mawk nawk awk
17162291 do
17172292 # Extract the first word of "$ac_prog", so it can be a program name with args.
17182293 set dummy $ac_prog; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 $as_echo_n "checking for $ac_word... " >&6; }
17212296 if test "${ac_cv_prog_AWK+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 $as_echo_n "(cached) " >&6
17232298 else
17242299 if test -n "$AWK"; then
17252300 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17302305 IFS=$as_save_IFS
17312306 test -z "$as_dir" && as_dir=.
17322307 for ac_exec_ext in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17342309 ac_cv_prog_AWK="$ac_prog"
1735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17362311 break 2
17372312 fi
17382313 done
17392314 done
2315 IFS=$as_save_IFS
17402316
17412317 fi
17422318 fi
17432319 AWK=$ac_cv_prog_AWK
17442320 if test -n "$AWK"; then
1745 echo "$as_me:$LINENO: result: $AWK" >&5
1746 echo "${ECHO_T}$AWK" >&6
1747 else
1748 echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 fi
2321 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2322 $as_echo "$AWK" >&6; }
2323 else
2324 { $as_echo "$as_me:$LINENO: result: no" >&5
2325 $as_echo "no" >&6; }
2326 fi
2327
17512328
17522329 test -n "$AWK" && break
17532330 done
17542331
1755 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1756 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1757 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1758 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2333 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2334 set x ${MAKE-make}
2335 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2336 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2337 $as_echo_n "(cached) " >&6
17602338 else
17612339 cat >conftest.make <<\_ACEOF
2340 SHELL = /bin/sh
17622341 all:
1763 @echo 'ac_maketemp="$(MAKE)"'
2342 @echo '@@@%%%=$(MAKE)=@@@%%%'
17642343 _ACEOF
17652344 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1766 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1767 if test -n "$ac_maketemp"; then
1768 eval ac_cv_prog_make_${ac_make}_set=yes
1769 else
1770 eval ac_cv_prog_make_${ac_make}_set=no
1771 fi
2345 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2346 *@@@%%%=?*=@@@%%%*)
2347 eval ac_cv_prog_make_${ac_make}_set=yes;;
2348 *)
2349 eval ac_cv_prog_make_${ac_make}_set=no;;
2350 esac
17722351 rm -f conftest.make
17732352 fi
1774 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1775 echo "$as_me:$LINENO: result: yes" >&5
1776 echo "${ECHO_T}yes" >&6
2353 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2354 { $as_echo "$as_me:$LINENO: result: yes" >&5
2355 $as_echo "yes" >&6; }
17772356 SET_MAKE=
17782357 else
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
2358 { $as_echo "$as_me:$LINENO: result: no" >&5
2359 $as_echo "no" >&6; }
17812360 SET_MAKE="MAKE=${MAKE-make}"
17822361 fi
17832362
17902369 fi
17912370 rmdir .tst 2>/dev/null
17922371
1793 # test to see if srcdir already configured
1794 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1795 test -f $srcdir/config.status; then
1796 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1797 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2372 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2373 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2374 # is not polluted with repeated "-I."
2375 am__isrc=' -I$(srcdir)'
2376 # test to see if srcdir already configured
2377 if test -f $srcdir/config.status; then
2378 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2379 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
17982380 { (exit 1); exit 1; }; }
2381 fi
17992382 fi
18002383
18012384 # test whether we have cygpath
18382421
18392422 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
18402423
1841 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2424 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
18422425
18432426 # Installed binaries are usually stripped using `strip' when the user
18442427 # run `make install-strip'. However `strip' might not be the right
18482431 if test -n "$ac_tool_prefix"; then
18492432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18502433 set dummy ${ac_tool_prefix}strip; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
18532436 if test "${ac_cv_prog_STRIP+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 $as_echo_n "(cached) " >&6
18552438 else
18562439 if test -n "$STRIP"; then
18572440 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
18622445 IFS=$as_save_IFS
18632446 test -z "$as_dir" && as_dir=.
18642447 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18662449 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18682451 break 2
18692452 fi
18702453 done
18712454 done
2455 IFS=$as_save_IFS
18722456
18732457 fi
18742458 fi
18752459 STRIP=$ac_cv_prog_STRIP
18762460 if test -n "$STRIP"; then
1877 echo "$as_me:$LINENO: result: $STRIP" >&5
1878 echo "${ECHO_T}$STRIP" >&6
1879 else
1880 echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1882 fi
2461 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2462 $as_echo "$STRIP" >&6; }
2463 else
2464 { $as_echo "$as_me:$LINENO: result: no" >&5
2465 $as_echo "no" >&6; }
2466 fi
2467
18832468
18842469 fi
18852470 if test -z "$ac_cv_prog_STRIP"; then
18862471 ac_ct_STRIP=$STRIP
18872472 # Extract the first word of "strip", so it can be a program name with args.
18882473 set dummy strip; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 $as_echo_n "checking for $ac_word... " >&6; }
18912476 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 $as_echo_n "(cached) " >&6
18932478 else
18942479 if test -n "$ac_ct_STRIP"; then
18952480 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19002485 IFS=$as_save_IFS
19012486 test -z "$as_dir" && as_dir=.
19022487 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19042489 ac_cv_prog_ac_ct_STRIP="strip"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19062491 break 2
19072492 fi
19082493 done
19092494 done
1910
1911 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2495 IFS=$as_save_IFS
2496
19122497 fi
19132498 fi
19142499 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19152500 if test -n "$ac_ct_STRIP"; then
1916 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1917 echo "${ECHO_T}$ac_ct_STRIP" >&6
1918 else
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1921 fi
1922
1923 STRIP=$ac_ct_STRIP
2501 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2502 $as_echo "$ac_ct_STRIP" >&6; }
2503 else
2504 { $as_echo "$as_me:$LINENO: result: no" >&5
2505 $as_echo "no" >&6; }
2506 fi
2507
2508 if test "x$ac_ct_STRIP" = x; then
2509 STRIP=":"
2510 else
2511 case $cross_compiling:$ac_tool_warned in
2512 yes:)
2513 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2515 ac_tool_warned=yes ;;
2516 esac
2517 STRIP=$ac_ct_STRIP
2518 fi
19242519 else
19252520 STRIP="$ac_cv_prog_STRIP"
19262521 fi
19272522
19282523 fi
1929 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2524 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19302525
19312526 # We need awk for the "check" target. The system "awk" is bad on
19322527 # some platforms.
19402535
19412536
19422537
1943 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1944 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1945 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2538 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2539 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2540 # Check whether --enable-maintainer-mode was given.
19462541 if test "${enable_maintainer_mode+set}" = set; then
1947 enableval="$enable_maintainer_mode"
1948 USE_MAINTAINER_MODE=$enableval
2542 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19492543 else
19502544 USE_MAINTAINER_MODE=no
1951 fi;
1952 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1953 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1954
1955
1956 if test $USE_MAINTAINER_MODE = yes; then
2545 fi
2546
2547 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2548 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2549 if test $USE_MAINTAINER_MODE = yes; then
19572550 MAINTAINER_MODE_TRUE=
19582551 MAINTAINER_MODE_FALSE='#'
19592552 else
19682561
19692562
19702563
1971 # Check whether --with-font or --without-font was given.
2564 # Check whether --with-font was given.
19722565 if test "${with_font+set}" = set; then
1973 withval="$with_font"
1974 with_font=$withval
2566 withval=$with_font; with_font=$withval
19752567 else
19762568 with_font=yes
1977 fi;
1978
1979
1980 # Check whether --with-examples or --without-examples was given.
2569 fi
2570
2571
2572
2573 # Check whether --with-examples was given.
19812574 if test "${with_examples+set}" = set; then
1982 withval="$with_examples"
1983 with_examples=$withval
2575 withval=$with_examples; with_examples=$withval
19842576 else
19852577 with_examples=yes
1986 fi;
1987
1988
1989
1990
1991 if test "$with_font" = yes; then
2578 fi
2579
2580
2581
2582 if test "$with_font" = yes; then
19922583 COND_FONT_TRUE=
19932584 COND_FONT_FALSE='#'
19942585 else
19962587 COND_FONT_FALSE=
19972588 fi
19982589
1999
2000
2001 if test "$with_examples" = yes; then
2590 if test "$with_examples" = yes; then
20022591 COND_EXAMPLES_TRUE=
20032592 COND_EXAMPLES_FALSE='#'
20042593 else
20112600 if test -n "$ac_tool_prefix"; then
20122601 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20132602 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2014 echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
20162605 if test "${ac_cv_prog_RANLIB+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 $as_echo_n "(cached) " >&6
20182607 else
20192608 if test -n "$RANLIB"; then
20202609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20252614 IFS=$as_save_IFS
20262615 test -z "$as_dir" && as_dir=.
20272616 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20292618 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20312620 break 2
20322621 fi
20332622 done
20342623 done
2624 IFS=$as_save_IFS
20352625
20362626 fi
20372627 fi
20382628 RANLIB=$ac_cv_prog_RANLIB
20392629 if test -n "$RANLIB"; then
2040 echo "$as_me:$LINENO: result: $RANLIB" >&5
2041 echo "${ECHO_T}$RANLIB" >&6
2042 else
2043 echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6
2045 fi
2630 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
2631 $as_echo "$RANLIB" >&6; }
2632 else
2633 { $as_echo "$as_me:$LINENO: result: no" >&5
2634 $as_echo "no" >&6; }
2635 fi
2636
20462637
20472638 fi
20482639 if test -z "$ac_cv_prog_RANLIB"; then
20492640 ac_ct_RANLIB=$RANLIB
20502641 # Extract the first word of "ranlib", so it can be a program name with args.
20512642 set dummy ranlib; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
20542645 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 $as_echo_n "(cached) " >&6
20562647 else
20572648 if test -n "$ac_ct_RANLIB"; then
20582649 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20632654 IFS=$as_save_IFS
20642655 test -z "$as_dir" && as_dir=.
20652656 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20672658 ac_cv_prog_ac_ct_RANLIB="ranlib"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20692660 break 2
20702661 fi
20712662 done
20722663 done
2073
2074 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2664 IFS=$as_save_IFS
2665
20752666 fi
20762667 fi
20772668 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20782669 if test -n "$ac_ct_RANLIB"; then
2079 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2080 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2081 else
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086 RANLIB=$ac_ct_RANLIB
2670 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2671 $as_echo "$ac_ct_RANLIB" >&6; }
2672 else
2673 { $as_echo "$as_me:$LINENO: result: no" >&5
2674 $as_echo "no" >&6; }
2675 fi
2676
2677 if test "x$ac_ct_RANLIB" = x; then
2678 RANLIB=":"
2679 else
2680 case $cross_compiling:$ac_tool_warned in
2681 yes:)
2682 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2684 ac_tool_warned=yes ;;
2685 esac
2686 RANLIB=$ac_ct_RANLIB
2687 fi
20872688 else
20882689 RANLIB="$ac_cv_prog_RANLIB"
20892690 fi
20902691
2091 # Check whether --enable-shared or --disable-shared was given.
2092 if test "${enable_shared+set}" = set; then
2093 enableval="$enable_shared"
2094 p=${PACKAGE-default}
2095 case $enableval in
2096 yes) enable_shared=yes ;;
2097 no) enable_shared=no ;;
2098 *)
2099 enable_shared=no
2100 # Look at the argument we got. We use all the common list separators.
2101 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2102 for pkg in $enableval; do
2103 IFS="$lt_save_ifs"
2104 if test "X$pkg" = "X$p"; then
2105 enable_shared=yes
2106 fi
2107 done
2108 IFS="$lt_save_ifs"
2109 ;;
2110 esac
2111 else
2112 enable_shared=yes
2113 fi;
2114
2115 # Check whether --enable-static or --disable-static was given.
2116 if test "${enable_static+set}" = set; then
2117 enableval="$enable_static"
2118 p=${PACKAGE-default}
2119 case $enableval in
2120 yes) enable_static=yes ;;
2121 no) enable_static=no ;;
2122 *)
2123 enable_static=no
2124 # Look at the argument we got. We use all the common list separators.
2125 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2126 for pkg in $enableval; do
2127 IFS="$lt_save_ifs"
2128 if test "X$pkg" = "X$p"; then
2129 enable_static=yes
2130 fi
2131 done
2132 IFS="$lt_save_ifs"
2133 ;;
2134 esac
2135 else
2136 enable_static=yes
2137 fi;
2138
2139 # Check whether --enable-fast-install or --disable-fast-install was given.
2140 if test "${enable_fast_install+set}" = set; then
2141 enableval="$enable_fast_install"
2142 p=${PACKAGE-default}
2143 case $enableval in
2144 yes) enable_fast_install=yes ;;
2145 no) enable_fast_install=no ;;
2146 *)
2147 enable_fast_install=no
2148 # Look at the argument we got. We use all the common list separators.
2149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2150 for pkg in $enableval; do
2151 IFS="$lt_save_ifs"
2152 if test "X$pkg" = "X$p"; then
2153 enable_fast_install=yes
2154 fi
2155 done
2156 IFS="$lt_save_ifs"
2157 ;;
2158 esac
2159 else
2160 enable_fast_install=yes
2161 fi;
2692 case `pwd` in
2693 *\ * | *\ *)
2694 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2695 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2696 esac
2697
2698
2699
2700 macro_version='2.2.6'
2701 macro_revision='1.3012'
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715 ltmain="$ac_aux_dir/ltmain.sh"
21622716
21632717 # Make sure we can run config.sub.
2164 $ac_config_sub sun4 >/dev/null 2>&1 ||
2165 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2166 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2718 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2719 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2720 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
21672721 { (exit 1); exit 1; }; }
21682722
2169 echo "$as_me:$LINENO: checking build system type" >&5
2170 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2723 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2724 $as_echo_n "checking build system type... " >&6; }
21712725 if test "${ac_cv_build+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 ac_cv_build_alias=$build_alias
2175 test -z "$ac_cv_build_alias" &&
2176 ac_cv_build_alias=`$ac_config_guess`
2177 test -z "$ac_cv_build_alias" &&
2178 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2179 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2726 $as_echo_n "(cached) " >&6
2727 else
2728 ac_build_alias=$build_alias
2729 test "x$ac_build_alias" = x &&
2730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2731 test "x$ac_build_alias" = x &&
2732 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2733 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
21802734 { (exit 1); exit 1; }; }
2181 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2182 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2183 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2735 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2736 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2737 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
21842738 { (exit 1); exit 1; }; }
21852739
21862740 fi
2187 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2188 echo "${ECHO_T}$ac_cv_build" >&6
2741 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2742 $as_echo "$ac_cv_build" >&6; }
2743 case $ac_cv_build in
2744 *-*-*) ;;
2745 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2746 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2747 { (exit 1); exit 1; }; };;
2748 esac
21892749 build=$ac_cv_build
2190 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2191 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2192 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2193
2194
2195 echo "$as_me:$LINENO: checking host system type" >&5
2196 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2750 ac_save_IFS=$IFS; IFS='-'
2751 set x $ac_cv_build
2752 shift
2753 build_cpu=$1
2754 build_vendor=$2
2755 shift; shift
2756 # Remember, the first character of IFS is used to create $*,
2757 # except with old shells:
2758 build_os=$*
2759 IFS=$ac_save_IFS
2760 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2761
2762
2763 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2764 $as_echo_n "checking host system type... " >&6; }
21972765 if test "${ac_cv_host+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200 ac_cv_host_alias=$host_alias
2201 test -z "$ac_cv_host_alias" &&
2202 ac_cv_host_alias=$ac_cv_build_alias
2203 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2204 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2205 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2766 $as_echo_n "(cached) " >&6
2767 else
2768 if test "x$host_alias" = x; then
2769 ac_cv_host=$ac_cv_build
2770 else
2771 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2772 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2773 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
22062774 { (exit 1); exit 1; }; }
2207
2208 fi
2209 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210 echo "${ECHO_T}$ac_cv_host" >&6
2775 fi
2776
2777 fi
2778 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2779 $as_echo "$ac_cv_host" >&6; }
2780 case $ac_cv_host in
2781 *-*-*) ;;
2782 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2783 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2784 { (exit 1); exit 1; }; };;
2785 esac
22112786 host=$ac_cv_host
2212 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2213 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2214 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2787 ac_save_IFS=$IFS; IFS='-'
2788 set x $ac_cv_host
2789 shift
2790 host_cpu=$1
2791 host_vendor=$2
2792 shift; shift
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2795 host_os=$*
2796 IFS=$ac_save_IFS
2797 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
22152798
22162799
22172800 DEPDIR="${am__leading_dot}deps"
22182801
2219 ac_config_commands="$ac_config_commands depfiles"
2802 ac_config_commands="$ac_config_commands depfiles"
22202803
22212804
22222805 am_make=${MAKE-make}
22262809 .PHONY: am__doit
22272810 END
22282811 # If we don't find an include directive, just comment out the code.
2229 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2230 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2812 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2813 $as_echo_n "checking for style of include used by $am_make... " >&6; }
22312814 am__include="#"
22322815 am__quote=
22332816 _am_result=none
22542837 fi
22552838
22562839
2257 echo "$as_me:$LINENO: result: $_am_result" >&5
2258 echo "${ECHO_T}$_am_result" >&6
2840 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2841 $as_echo "$_am_result" >&6; }
22592842 rm -f confinc confmf
22602843
2261 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2844 # Check whether --enable-dependency-tracking was given.
22622845 if test "${enable_dependency_tracking+set}" = set; then
2263 enableval="$enable_dependency_tracking"
2264
2265 fi;
2846 enableval=$enable_dependency_tracking;
2847 fi
2848
22662849 if test "x$enable_dependency_tracking" != xno; then
22672850 am_depcomp="$ac_aux_dir/depcomp"
22682851 AMDEPBACKSLASH='\'
22692852 fi
2270
2271
2272 if test "x$enable_dependency_tracking" != xno; then
2853 if test "x$enable_dependency_tracking" != xno; then
22732854 AMDEP_TRUE=
22742855 AMDEP_FALSE='#'
22752856 else
22762857 AMDEP_TRUE='#'
22772858 AMDEP_FALSE=
22782859 fi
2279
22802860
22812861
22822862 ac_ext=c
22872867 if test -n "$ac_tool_prefix"; then
22882868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22892869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2290 echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
22922872 if test "${ac_cv_prog_CC+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 $as_echo_n "(cached) " >&6
22942874 else
22952875 if test -n "$CC"; then
22962876 ac_cv_prog_CC="$CC" # Let the user override the test.
23012881 IFS=$as_save_IFS
23022882 test -z "$as_dir" && as_dir=.
23032883 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23052885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23072887 break 2
23082888 fi
23092889 done
23102890 done
2891 IFS=$as_save_IFS
23112892
23122893 fi
23132894 fi
23142895 CC=$ac_cv_prog_CC
23152896 if test -n "$CC"; then
2316 echo "$as_me:$LINENO: result: $CC" >&5
2317 echo "${ECHO_T}$CC" >&6
2318 else
2319 echo "$as_me:$LINENO: result: no" >&5
2320 echo "${ECHO_T}no" >&6
2321 fi
2897 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2899 else
2900 { $as_echo "$as_me:$LINENO: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
23222904
23232905 fi
23242906 if test -z "$ac_cv_prog_CC"; then
23252907 ac_ct_CC=$CC
23262908 # Extract the first word of "gcc", so it can be a program name with args.
23272909 set dummy gcc; ac_word=$2
2328 echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2910 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
23302912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 $as_echo_n "(cached) " >&6
23322914 else
23332915 if test -n "$ac_ct_CC"; then
23342916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
23392921 IFS=$as_save_IFS
23402922 test -z "$as_dir" && as_dir=.
23412923 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23432925 ac_cv_prog_ac_ct_CC="gcc"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23452927 break 2
23462928 fi
23472929 done
23482930 done
2931 IFS=$as_save_IFS
23492932
23502933 fi
23512934 fi
23522935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
23532936 if test -n "$ac_ct_CC"; then
2354 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2355 echo "${ECHO_T}$ac_ct_CC" >&6
2356 else
2357 echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6
2359 fi
2360
2361 CC=$ac_ct_CC
2937 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2938 $as_echo "$ac_ct_CC" >&6; }
2939 else
2940 { $as_echo "$as_me:$LINENO: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944 if test "x$ac_ct_CC" = x; then
2945 CC=""
2946 else
2947 case $cross_compiling:$ac_tool_warned in
2948 yes:)
2949 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2951 ac_tool_warned=yes ;;
2952 esac
2953 CC=$ac_ct_CC
2954 fi
23622955 else
23632956 CC="$ac_cv_prog_CC"
23642957 fi
23652958
23662959 if test -z "$CC"; then
2367 if test -n "$ac_tool_prefix"; then
2368 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2960 if test -n "$ac_tool_prefix"; then
2961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
23692962 set dummy ${ac_tool_prefix}cc; ac_word=$2
2370 echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
23722965 if test "${ac_cv_prog_CC+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 $as_echo_n "(cached) " >&6
23742967 else
23752968 if test -n "$CC"; then
23762969 ac_cv_prog_CC="$CC" # Let the user override the test.
23812974 IFS=$as_save_IFS
23822975 test -z "$as_dir" && as_dir=.
23832976 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23852978 ac_cv_prog_CC="${ac_tool_prefix}cc"
2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23872980 break 2
23882981 fi
23892982 done
23902983 done
2984 IFS=$as_save_IFS
23912985
23922986 fi
23932987 fi
23942988 CC=$ac_cv_prog_CC
23952989 if test -n "$CC"; then
2396 echo "$as_me:$LINENO: result: $CC" >&5
2397 echo "${ECHO_T}$CC" >&6
2398 else
2399 echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6
2401 fi
2402
2403 fi
2404 if test -z "$ac_cv_prog_CC"; then
2405 ac_ct_CC=$CC
2406 # Extract the first word of "cc", so it can be a program name with args.
2407 set dummy cc; ac_word=$2
2408 echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413 if test -n "$ac_ct_CC"; then
2414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_ac_ct_CC="cc"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2990 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2992 else
2993 { $as_echo "$as_me:$LINENO: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2996
2997
24262998 fi
2427 done
2428 done
2429
2430 fi
2431 fi
2432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2433 if test -n "$ac_ct_CC"; then
2434 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2435 echo "${ECHO_T}$ac_ct_CC" >&6
2436 else
2437 echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6
2439 fi
2440
2441 CC=$ac_ct_CC
2442 else
2443 CC="$ac_cv_prog_CC"
2444 fi
2445
24462999 fi
24473000 if test -z "$CC"; then
24483001 # Extract the first word of "cc", so it can be a program name with args.
24493002 set dummy cc; ac_word=$2
2450 echo "$as_me:$LINENO: checking for $ac_word" >&5
2451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3003 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
24523005 if test "${ac_cv_prog_CC+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 $as_echo_n "(cached) " >&6
24543007 else
24553008 if test -n "$CC"; then
24563009 ac_cv_prog_CC="$CC" # Let the user override the test.
24623015 IFS=$as_save_IFS
24633016 test -z "$as_dir" && as_dir=.
24643017 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24663019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
24673020 ac_prog_rejected=yes
24683021 continue
24693022 fi
24703023 ac_cv_prog_CC="cc"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24723025 break 2
24733026 fi
24743027 done
24753028 done
3029 IFS=$as_save_IFS
24763030
24773031 if test $ac_prog_rejected = yes; then
24783032 # We found a bogon in the path, so make sure we never use it.
24903044 fi
24913045 CC=$ac_cv_prog_CC
24923046 if test -n "$CC"; then
2493 echo "$as_me:$LINENO: result: $CC" >&5
2494 echo "${ECHO_T}$CC" >&6
2495 else
2496 echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6
2498 fi
3047 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050 { $as_echo "$as_me:$LINENO: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
24993054
25003055 fi
25013056 if test -z "$CC"; then
25023057 if test -n "$ac_tool_prefix"; then
2503 for ac_prog in cl
3058 for ac_prog in cl.exe
25043059 do
25053060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25063061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2507 echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
25093064 if test "${ac_cv_prog_CC+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 $as_echo_n "(cached) " >&6
25113066 else
25123067 if test -n "$CC"; then
25133068 ac_cv_prog_CC="$CC" # Let the user override the test.
25183073 IFS=$as_save_IFS
25193074 test -z "$as_dir" && as_dir=.
25203075 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25223077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25243079 break 2
25253080 fi
25263081 done
25273082 done
3083 IFS=$as_save_IFS
25283084
25293085 fi
25303086 fi
25313087 CC=$ac_cv_prog_CC
25323088 if test -n "$CC"; then
2533 echo "$as_me:$LINENO: result: $CC" >&5
2534 echo "${ECHO_T}$CC" >&6
2535 else
2536 echo "$as_me:$LINENO: result: no" >&5
2537 echo "${ECHO_T}no" >&6
2538 fi
3089 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092 { $as_echo "$as_me:$LINENO: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
25393096
25403097 test -n "$CC" && break
25413098 done
25423099 fi
25433100 if test -z "$CC"; then
25443101 ac_ct_CC=$CC
2545 for ac_prog in cl
3102 for ac_prog in cl.exe
25463103 do
25473104 # Extract the first word of "$ac_prog", so it can be a program name with args.
25483105 set dummy $ac_prog; ac_word=$2
2549 echo "$as_me:$LINENO: checking for $ac_word" >&5
2550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
25513108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 $as_echo_n "(cached) " >&6
25533110 else
25543111 if test -n "$ac_ct_CC"; then
25553112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
25603117 IFS=$as_save_IFS
25613118 test -z "$as_dir" && as_dir=.
25623119 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25643121 ac_cv_prog_ac_ct_CC="$ac_prog"
2565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25663123 break 2
25673124 fi
25683125 done
25693126 done
3127 IFS=$as_save_IFS
25703128
25713129 fi
25723130 fi
25733131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
25743132 if test -n "$ac_ct_CC"; then
2575 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2576 echo "${ECHO_T}$ac_ct_CC" >&6
2577 else
2578 echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2580 fi
3133 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3134 $as_echo "$ac_ct_CC" >&6; }
3135 else
3136 { $as_echo "$as_me:$LINENO: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
25813140
25823141 test -n "$ac_ct_CC" && break
25833142 done
25843143
2585 CC=$ac_ct_CC
2586 fi
2587
2588 fi
2589
2590
2591 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3144 if test "x$ac_ct_CC" = x; then
3145 CC=""
3146 else
3147 case $cross_compiling:$ac_tool_warned in
3148 yes:)
3149 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3151 ac_tool_warned=yes ;;
3152 esac
3153 CC=$ac_ct_CC
3154 fi
3155 fi
3156
3157 fi
3158
3159
3160 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
25923163 See \`config.log' for more details." >&5
2593 echo "$as_me: error: no acceptable C compiler found in \$PATH
3164 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
25943165 See \`config.log' for more details." >&2;}
2595 { (exit 1); exit 1; }; }
3166 { (exit 1); exit 1; }; }; }
25963167
25973168 # Provide some information about the compiler.
2598 echo "$as_me:$LINENO:" \
2599 "checking for C compiler version" >&5
2600 ac_compiler=`set X $ac_compile; echo $2`
2601 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2602 (eval $ac_compiler --version </dev/null >&5) 2>&5
3169 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3170 set X $ac_compile
3171 ac_compiler=$2
3172 { (ac_try="$ac_compiler --version >&5"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3178 $as_echo "$ac_try_echo") >&5
3179 (eval "$ac_compiler --version >&5") 2>&5
26033180 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053182 (exit $ac_status); }
2606 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2607 (eval $ac_compiler -v </dev/null >&5) 2>&5
3183 { (ac_try="$ac_compiler -v >&5"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3189 $as_echo "$ac_try_echo") >&5
3190 (eval "$ac_compiler -v >&5") 2>&5
26083191 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103193 (exit $ac_status); }
2611 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2612 (eval $ac_compiler -V </dev/null >&5) 2>&5
3194 { (ac_try="$ac_compiler -V >&5"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3200 $as_echo "$ac_try_echo") >&5
3201 (eval "$ac_compiler -V >&5") 2>&5
26133202 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153204 (exit $ac_status); }
26163205
26173206 cat >conftest.$ac_ext <<_ACEOF
26303219 }
26313220 _ACEOF
26323221 ac_clean_files_save=$ac_clean_files
2633 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3222 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
26343223 # Try to create an executable without -o first, disregard a.out.
26353224 # It will help us diagnose broken compilers, and finding out an intuition
26363225 # of exeext.
2637 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2638 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2639 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2640 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2641 (eval $ac_link_default) 2>&5
3226 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3227 $as_echo_n "checking for C compiler default output file name... " >&6; }
3228 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3229
3230 # The possible output files:
3231 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3232
3233 ac_rmfiles=
3234 for ac_file in $ac_files
3235 do
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3238 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3239 esac
3240 done
3241 rm -f $ac_rmfiles
3242
3243 if { (ac_try="$ac_link_default"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250 (eval "$ac_link_default") 2>&5
26423251 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443253 (exit $ac_status); }; then
2645 # Find the output, starting from the most likely. This scheme is
2646 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2647 # resort.
2648
2649 # Be careful to initialize this variable, since it used to be cached.
2650 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2651 ac_cv_exeext=
2652 # b.out is created by i960 compilers.
2653 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3254 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3255 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3256 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3257 # so that the user can short-circuit this test for compilers unknown to
3258 # Autoconf.
3259 for ac_file in $ac_files ''
26543260 do
26553261 test -f "$ac_file" || continue
26563262 case $ac_file in
2657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2658 ;;
2659 conftest.$ac_ext )
2660 # This is the source file.
3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
26613264 ;;
26623265 [ab].out )
26633266 # We found the default executable, but exeext='' is most
26643267 # certainly right.
26653268 break;;
26663269 *.* )
2667 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2668 # FIXME: I believe we export ac_cv_exeext for Libtool,
2669 # but it would be cool to find out if it's true. Does anybody
2670 # maintain Libtool? --akim.
2671 export ac_cv_exeext
3270 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3271 then :; else
3272 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3273 fi
3274 # We set ac_cv_exeext here because the later test for it is not
3275 # safe: cross compilers may not add the suffix if given an `-o'
3276 # argument, so we may need to know it at that point already.
3277 # Even if this section looks crufty: it has the advantage of
3278 # actually working.
26723279 break;;
26733280 * )
26743281 break;;
26753282 esac
26763283 done
2677 else
2678 echo "$as_me: failed program was:" >&5
3284 test "$ac_cv_exeext" = no && ac_cv_exeext=
3285
3286 else
3287 ac_file=''
3288 fi
3289
3290 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3291 $as_echo "$ac_file" >&6; }
3292 if test -z "$ac_file"; then
3293 $as_echo "$as_me: failed program was:" >&5
26793294 sed 's/^/| /' conftest.$ac_ext >&5
26803295
2681 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3296 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
26823299 See \`config.log' for more details." >&5
2683 echo "$as_me: error: C compiler cannot create executables
3300 $as_echo "$as_me: error: C compiler cannot create executables
26843301 See \`config.log' for more details." >&2;}
2685 { (exit 77); exit 77; }; }
3302 { (exit 77); exit 77; }; }; }
26863303 fi
26873304
26883305 ac_exeext=$ac_cv_exeext
2689 echo "$as_me:$LINENO: result: $ac_file" >&5
2690 echo "${ECHO_T}$ac_file" >&6
2691
2692 # Check the compiler produces executables we can run. If not, either
3306
3307 # Check that the compiler produces executables we can run. If not, either
26933308 # the compiler is broken, or we cross compile.
2694 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2695 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3309 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3310 $as_echo_n "checking whether the C compiler works... " >&6; }
26963311 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
26973312 # If not cross compiling, check that we can run a simple program.
26983313 if test "$cross_compiling" != yes; then
26993314 if { ac_try='./$ac_file'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321 (eval "$ac_try") 2>&5
27023322 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043324 (exit $ac_status); }; }; then
27053325 cross_compiling=no
27063326 else
27073327 if test "$cross_compiling" = maybe; then
27083328 cross_compiling=yes
27093329 else
2710 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3330 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
27113333 If you meant to cross compile, use \`--host'.
27123334 See \`config.log' for more details." >&5
2713 echo "$as_me: error: cannot run C compiled programs.
3335 $as_echo "$as_me: error: cannot run C compiled programs.
27143336 If you meant to cross compile, use \`--host'.
27153337 See \`config.log' for more details." >&2;}
2716 { (exit 1); exit 1; }; }
3338 { (exit 1); exit 1; }; }; }
27173339 fi
27183340 fi
27193341 fi
2720 echo "$as_me:$LINENO: result: yes" >&5
2721 echo "${ECHO_T}yes" >&6
2722
2723 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3342 { $as_echo "$as_me:$LINENO: result: yes" >&5
3343 $as_echo "yes" >&6; }
3344
3345 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
27243346 ac_clean_files=$ac_clean_files_save
2725 # Check the compiler produces executables we can run. If not, either
3347 # Check that the compiler produces executables we can run. If not, either
27263348 # the compiler is broken, or we cross compile.
2727 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2728 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2729 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2730 echo "${ECHO_T}$cross_compiling" >&6
2731
2732 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2733 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2735 (eval $ac_link) 2>&5
3349 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3350 $as_echo_n "checking whether we are cross compiling... " >&6; }
3351 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3352 $as_echo "$cross_compiling" >&6; }
3353
3354 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3355 $as_echo_n "checking for suffix of executables... " >&6; }
3356 if { (ac_try="$ac_link"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363 (eval "$ac_link") 2>&5
27363364 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383366 (exit $ac_status); }; then
27393367 # If both `conftest.exe' and `conftest' are `present' (well, observable)
27403368 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
27433371 for ac_file in conftest.exe conftest conftest.*; do
27443372 test -f "$ac_file" || continue
27453373 case $ac_file in
2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
27473375 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2748 export ac_cv_exeext
27493376 break;;
27503377 * ) break;;
27513378 esac
27523379 done
27533380 else
2754 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3381 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
27553384 See \`config.log' for more details." >&5
2756 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3385 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
27573386 See \`config.log' for more details." >&2;}
2758 { (exit 1); exit 1; }; }
3387 { (exit 1); exit 1; }; }; }
27593388 fi
27603389
27613390 rm -f conftest$ac_cv_exeext
2762 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2763 echo "${ECHO_T}$ac_cv_exeext" >&6
3391 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3392 $as_echo "$ac_cv_exeext" >&6; }
27643393
27653394 rm -f conftest.$ac_ext
27663395 EXEEXT=$ac_cv_exeext
27673396 ac_exeext=$EXEEXT
2768 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2769 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3397 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3398 $as_echo_n "checking for suffix of object files... " >&6; }
27703399 if test "${ac_cv_objext+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 $as_echo_n "(cached) " >&6
27723401 else
27733402 cat >conftest.$ac_ext <<_ACEOF
27743403 /* confdefs.h. */
27863415 }
27873416 _ACEOF
27883417 rm -f conftest.o conftest.obj
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>&5
3418 if { (ac_try="$ac_compile"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3424 $as_echo "$ac_try_echo") >&5
3425 (eval "$ac_compile") 2>&5
27913426 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933428 (exit $ac_status); }; then
2794 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3429 for ac_file in conftest.o conftest.obj conftest.*; do
3430 test -f "$ac_file" || continue;
27953431 case $ac_file in
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
27973433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
27983434 break;;
27993435 esac
28003436 done
28013437 else
2802 echo "$as_me: failed program was:" >&5
3438 $as_echo "$as_me: failed program was:" >&5
28033439 sed 's/^/| /' conftest.$ac_ext >&5
28043440
2805 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3441 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
28063444 See \`config.log' for more details." >&5
2807 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3445 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
28083446 See \`config.log' for more details." >&2;}
2809 { (exit 1); exit 1; }; }
3447 { (exit 1); exit 1; }; }; }
28103448 fi
28113449
28123450 rm -f conftest.$ac_cv_objext conftest.$ac_ext
28133451 fi
2814 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2815 echo "${ECHO_T}$ac_cv_objext" >&6
3452 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3453 $as_echo "$ac_cv_objext" >&6; }
28163454 OBJEXT=$ac_cv_objext
28173455 ac_objext=$OBJEXT
2818 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2819 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3456 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3457 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
28203458 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 $as_echo_n "(cached) " >&6
28223460 else
28233461 cat >conftest.$ac_ext <<_ACEOF
28243462 /* confdefs.h. */
28393477 }
28403478 _ACEOF
28413479 rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
3480 if { (ac_try="$ac_compile"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487 (eval "$ac_compile") 2>conftest.er1
28443488 ac_status=$?
28453489 grep -v '^ *+' conftest.er1 >conftest.err
28463490 rm -f conftest.er1
28473491 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 (eval $ac_try) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; } &&
2856 { ac_try='test -s conftest.$ac_objext'
2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 (eval $ac_try) 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
3492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
28623497 ac_compiler_gnu=yes
28633498 else
2864 echo "$as_me: failed program was:" >&5
3499 $as_echo "$as_me: failed program was:" >&5
28653500 sed 's/^/| /' conftest.$ac_ext >&5
28663501
2867 ac_compiler_gnu=no
2868 fi
2869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_compiler_gnu=no
3503 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28703506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
28713507
28723508 fi
2873 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2874 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2875 GCC=`test $ac_compiler_gnu = yes && echo yes`
3509 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3510 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3511 if test $ac_compiler_gnu = yes; then
3512 GCC=yes
3513 else
3514 GCC=
3515 fi
28763516 ac_test_CFLAGS=${CFLAGS+set}
28773517 ac_save_CFLAGS=$CFLAGS
2878 CFLAGS="-g"
2879 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2880 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3518 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3519 $as_echo_n "checking whether $CC accepts -g... " >&6; }
28813520 if test "${ac_cv_prog_cc_g+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 cat >conftest.$ac_ext <<_ACEOF
3521 $as_echo_n "(cached) " >&6
3522 else
3523 ac_save_c_werror_flag=$ac_c_werror_flag
3524 ac_c_werror_flag=yes
3525 ac_cv_prog_cc_g=no
3526 CFLAGS="-g"
3527 cat >conftest.$ac_ext <<_ACEOF
28853528 /* confdefs.h. */
28863529 _ACEOF
28873530 cat confdefs.h >>conftest.$ac_ext
28973540 }
28983541 _ACEOF
28993542 rm -f conftest.$ac_objext
2900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2901 (eval $ac_compile) 2>conftest.er1
3543 if { (ac_try="$ac_compile"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3549 $as_echo "$ac_try_echo") >&5
3550 (eval "$ac_compile") 2>conftest.er1
29023551 ac_status=$?
29033552 grep -v '^ *+' conftest.er1 >conftest.err
29043553 rm -f conftest.er1
29053554 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
2908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 (eval $ac_try) 2>&5
3555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } && {
3557 test -z "$ac_c_werror_flag" ||
3558 test ! -s conftest.err
3559 } && test -s conftest.$ac_objext; then
3560 ac_cv_prog_cc_g=yes
3561 else
3562 $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 CFLAGS=""
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572
3573 int
3574 main ()
3575 {
3576
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (ac_try="$ac_compile"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3588 $as_echo "$ac_try_echo") >&5
3589 (eval "$ac_compile") 2>conftest.er1
29113590 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 (eval $ac_try) 2>&5
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } && {
3596 test -z "$ac_c_werror_flag" ||
3597 test ! -s conftest.err
3598 } && test -s conftest.$ac_objext; then
3599 :
3600 else
3601 $as_echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3605 CFLAGS="-g"
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612
3613 int
3614 main ()
3615 {
3616
3617 ;
3618 return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3628 $as_echo "$ac_try_echo") >&5
3629 (eval "$ac_compile") 2>conftest.er1
29173630 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } && {
3636 test -z "$ac_c_werror_flag" ||
3637 test ! -s conftest.err
3638 } && test -s conftest.$ac_objext; then
29203639 ac_cv_prog_cc_g=yes
29213640 else
2922 echo "$as_me: failed program was:" >&5
3641 $as_echo "$as_me: failed program was:" >&5
29233642 sed 's/^/| /' conftest.$ac_ext >&5
29243643
2925 ac_cv_prog_cc_g=no
2926 fi
2927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928 fi
2929 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2930 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3644
3645 fi
3646
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 fi
3649
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 fi
3652
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_c_werror_flag=$ac_save_c_werror_flag
3655 fi
3656 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3657 $as_echo "$ac_cv_prog_cc_g" >&6; }
29313658 if test "$ac_test_CFLAGS" = set; then
29323659 CFLAGS=$ac_save_CFLAGS
29333660 elif test $ac_cv_prog_cc_g = yes; then
29433670 CFLAGS=
29443671 fi
29453672 fi
2946 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2947 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2948 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951 ac_cv_prog_cc_stdc=no
3673 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3674 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3675 if test "${ac_cv_prog_cc_c89+set}" = set; then
3676 $as_echo_n "(cached) " >&6
3677 else
3678 ac_cv_prog_cc_c89=no
29523679 ac_save_CC=$CC
29533680 cat >conftest.$ac_ext <<_ACEOF
29543681 /* confdefs.h. */
29823709 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
29833710 function prototypes and stuff, but not '\xHH' hex character constants.
29843711 These don't provoke an error unfortunately, instead are silently treated
2985 as 'x'. The following induces an error, until -std1 is added to get
3712 as 'x'. The following induces an error, until -std is added to get
29863713 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
29873714 array size at least. It's necessary to write '\x00'==0 to get something
2988 that's true only with -std1. */
3715 that's true only with -std. */
29893716 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717
3718 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3719 inside strings and character constants. */
3720 #define FOO(x) 'x'
3721 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
29903722
29913723 int test (int i, double x);
29923724 struct s1 {int (*f) (int a);};
30023734 return 0;
30033735 }
30043736 _ACEOF
3005 # Don't try gcc -ansi; that turns off useful extensions and
3006 # breaks some systems' header files.
3007 # AIX -qlanglvl=ansi
3008 # Ultrix and OSF/1 -std1
3009 # HP-UX 10.20 and later -Ae
3010 # HP-UX older versions -Aa -D_HPUX_SOURCE
3011 # SVR4 -Xc -D__EXTENSIONS__
3012 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3737 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3738 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30133739 do
30143740 CC="$ac_save_CC $ac_arg"
30153741 rm -f conftest.$ac_objext
3016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017 (eval $ac_compile) 2>conftest.er1
3742 if { (ac_try="$ac_compile"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
30183750 ac_status=$?
30193751 grep -v '^ *+' conftest.er1 >conftest.err
30203752 rm -f conftest.er1
30213753 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; } &&
3030 { ac_try='test -s conftest.$ac_objext'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 (eval $ac_try) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 ac_cv_prog_cc_stdc=$ac_arg
3037 break
3038 else
3039 echo "$as_me: failed program was:" >&5
3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3759 ac_cv_prog_cc_c89=$ac_arg
3760 else
3761 $as_echo "$as_me: failed program was:" >&5
30403762 sed 's/^/| /' conftest.$ac_ext >&5
30413763
3042 fi
3043 rm -f conftest.err conftest.$ac_objext
3764
3765 fi
3766
3767 rm -f core conftest.err conftest.$ac_objext
3768 test "x$ac_cv_prog_cc_c89" != "xno" && break
30443769 done
3045 rm -f conftest.$ac_ext conftest.$ac_objext
3770 rm -f conftest.$ac_ext
30463771 CC=$ac_save_CC
30473772
30483773 fi
3049
3050 case "x$ac_cv_prog_cc_stdc" in
3051 x|xno)
3052 echo "$as_me:$LINENO: result: none needed" >&5
3053 echo "${ECHO_T}none needed" >&6 ;;
3774 # AC_CACHE_VAL
3775 case "x$ac_cv_prog_cc_c89" in
3776 x)
3777 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3778 $as_echo "none needed" >&6; } ;;
3779 xno)
3780 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3781 $as_echo "unsupported" >&6; } ;;
30543782 *)
3055 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3056 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3057 CC="$CC $ac_cv_prog_cc_stdc" ;;
3783 CC="$CC $ac_cv_prog_cc_c89"
3784 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3785 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
30583786 esac
30593787
3060 # Some people use a C++ compiler to compile C. Since we use `exit',
3061 # in C++ we need to declare it. In case someone uses the same compiler
3062 # for both compiling C and C++ we need to have the C++ compiler decide
3063 # the declaration of exit, since it's the most demanding environment.
3064 cat >conftest.$ac_ext <<_ACEOF
3065 #ifndef __cplusplus
3066 choke me
3067 #endif
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3071 (eval $ac_compile) 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 (eval $ac_try) 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 (eval $ac_try) 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 for ac_declaration in \
3091 '' \
3092 'extern "C" void std::exit (int) throw (); using std::exit;' \
3093 'extern "C" void std::exit (int); using std::exit;' \
3094 'extern "C" void exit (int) throw ();' \
3095 'extern "C" void exit (int);' \
3096 'void exit (int);'
3097 do
3098 cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3104 $ac_declaration
3105 #include <stdlib.h>
3106 int
3107 main ()
3108 {
3109 exit (42);
3110 ;
3111 return 0;
3112 }
3113 _ACEOF
3114 rm -f conftest.$ac_objext
3115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3116 (eval $ac_compile) 2>conftest.er1
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 (eval $ac_try) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; } &&
3129 { ac_try='test -s conftest.$ac_objext'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 (eval $ac_try) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 :
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 continue
3141 fi
3142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3143 cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h. */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3149 $ac_declaration
3150 int
3151 main ()
3152 {
3153 exit (42);
3154 ;
3155 return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3160 (eval $ac_compile) 2>conftest.er1
3161 ac_status=$?
3162 grep -v '^ *+' conftest.er1 >conftest.err
3163 rm -f conftest.er1
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } &&
3167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 (eval $ac_try) 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 (eval $ac_try) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 break
3180 else
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 fi
3185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3186 done
3187 rm -f conftest*
3188 if test -n "$ac_declaration"; then
3189 echo '#ifdef __cplusplus' >>confdefs.h
3190 echo $ac_declaration >>confdefs.h
3191 echo '#endif' >>confdefs.h
3192 fi
3193
3194 else
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 fi
3199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3788
32003789 ac_ext=c
32013790 ac_cpp='$CPP $CPPFLAGS'
32023791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32053794
32063795 depcc="$CC" am_compiler_list=
32073796
3208 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3209 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3797 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3798 $as_echo_n "checking dependency style of $depcc... " >&6; }
32103799 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 $as_echo_n "(cached) " >&6
32123801 else
32133802 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32143803 # We make a subdir and do the tests there. Otherwise we can end up
32703859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32713860 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
32723861 >/dev/null 2>conftest.err &&
3862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
32733863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32743864 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
32753865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32953885 fi
32963886
32973887 fi
3298 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3299 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3888 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3889 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
33003890 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
33013891
3302
3303
3304 if
3892 if
33053893 test "x$enable_dependency_tracking" != xno \
33063894 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
33073895 am__fastdepCC_TRUE=
33123900 fi
33133901
33143902
3315 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3316 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3317 if test "${lt_cv_path_SED+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 # Loop through the user's path and test for sed and gsed.
3321 # Then use that list of sed's as ones to test for truncation.
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3904 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3905 if test "${ac_cv_path_SED+set}" = set; then
3906 $as_echo_n "(cached) " >&6
3907 else
3908 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3909 for ac_i in 1 2 3 4 5 6 7; do
3910 ac_script="$ac_script$as_nl$ac_script"
3911 done
3912 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3913 $as_unset ac_script || ac_script=
3914 if test -z "$SED"; then
3915 ac_path_SED_found=false
3916 # Loop through the user's path and test for each of PROGNAME-LIST
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33233918 for as_dir in $PATH
33243919 do
33253920 IFS=$as_save_IFS
33263921 test -z "$as_dir" && as_dir=.
3327 for lt_ac_prog in sed gsed; do
3922 for ac_prog in sed gsed; do
33283923 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3330 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3331 fi
3924 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3925 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3926 # Check for GNU ac_path_SED and select it if it is found.
3927 # Check for GNU $ac_path_SED
3928 case `"$ac_path_SED" --version 2>&1` in
3929 *GNU*)
3930 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3931 *)
3932 ac_count=0
3933 $as_echo_n 0123456789 >"conftest.in"
3934 while :
3935 do
3936 cat "conftest.in" "conftest.in" >"conftest.tmp"
3937 mv "conftest.tmp" "conftest.in"
3938 cp "conftest.in" "conftest.nl"
3939 $as_echo '' >> "conftest.nl"
3940 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3942 ac_count=`expr $ac_count + 1`
3943 if test $ac_count -gt ${ac_path_SED_max-0}; then
3944 # Best one so far, save it but keep looking for a better one
3945 ac_cv_path_SED="$ac_path_SED"
3946 ac_path_SED_max=$ac_count
3947 fi
3948 # 10*(2^10) chars as input seems more than enough
3949 test $ac_count -gt 10 && break
3950 done
3951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952 esac
3953
3954 $ac_path_SED_found && break 3
33323955 done
33333956 done
33343957 done
3335 lt_ac_max=0
3336 lt_ac_count=0
3337 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3338 # along with /bin/sed that truncates output.
3339 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3340 test ! -f $lt_ac_sed && break
3341 cat /dev/null > conftest.in
3342 lt_ac_count=0
3343 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3344 # Check for GNU sed and select it if it is found.
3345 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3346 lt_cv_path_SED=$lt_ac_sed
3347 break
3958 IFS=$as_save_IFS
3959 if test -z "$ac_cv_path_SED"; then
3960 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3961 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3962 { (exit 1); exit 1; }; }
33483963 fi
3349 while true; do
3350 cat conftest.in conftest.in >conftest.tmp
3351 mv conftest.tmp conftest.in
3352 cp conftest.in conftest.nl
3353 echo >>conftest.nl
3354 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3355 cmp -s conftest.out conftest.nl || break
3356 # 10000 chars as input seems more than enough
3357 test $lt_ac_count -gt 10 && break
3358 lt_ac_count=`expr $lt_ac_count + 1`
3359 if test $lt_ac_count -gt $lt_ac_max; then
3360 lt_ac_max=$lt_ac_count
3361 lt_cv_path_SED=$lt_ac_sed
3964 else
3965 ac_cv_path_SED=$SED
3966 fi
3967
3968 fi
3969 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3970 $as_echo "$ac_cv_path_SED" >&6; }
3971 SED="$ac_cv_path_SED"
3972 rm -f conftest.sed
3973
3974 test -z "$SED" && SED=sed
3975 Xsed="$SED -e 1s/^X//"
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3988 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3989 if test "${ac_cv_path_GREP+set}" = set; then
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -z "$GREP"; then
3993 ac_path_GREP_found=false
3994 # Loop through the user's path and test for each of PROGNAME-LIST
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997 do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_prog in grep ggrep; do
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4003 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4004 # Check for GNU ac_path_GREP and select it if it is found.
4005 # Check for GNU $ac_path_GREP
4006 case `"$ac_path_GREP" --version 2>&1` in
4007 *GNU*)
4008 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4009 *)
4010 ac_count=0
4011 $as_echo_n 0123456789 >"conftest.in"
4012 while :
4013 do
4014 cat "conftest.in" "conftest.in" >"conftest.tmp"
4015 mv "conftest.tmp" "conftest.in"
4016 cp "conftest.in" "conftest.nl"
4017 $as_echo 'GREP' >> "conftest.nl"
4018 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020 ac_count=`expr $ac_count + 1`
4021 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4022 # Best one so far, save it but keep looking for a better one
4023 ac_cv_path_GREP="$ac_path_GREP"
4024 ac_path_GREP_max=$ac_count
33624025 fi
4026 # 10*(2^10) chars as input seems more than enough
4027 test $ac_count -gt 10 && break
4028 done
4029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 esac
4031
4032 $ac_path_GREP_found && break 3
4033 done
33634034 done
33644035 done
3365 SED=$lt_cv_path_SED
3366
3367 fi
3368
3369 echo "$as_me:$LINENO: result: $SED" >&5
3370 echo "${ECHO_T}$SED" >&6
3371
3372 echo "$as_me:$LINENO: checking for egrep" >&5
3373 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3374 if test "${ac_cv_prog_egrep+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3378 then ac_cv_prog_egrep='grep -E'
3379 else ac_cv_prog_egrep='egrep'
4036 IFS=$as_save_IFS
4037 if test -z "$ac_cv_path_GREP"; then
4038 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4039 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4040 { (exit 1); exit 1; }; }
4041 fi
4042 else
4043 ac_cv_path_GREP=$GREP
4044 fi
4045
4046 fi
4047 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4048 $as_echo "$ac_cv_path_GREP" >&6; }
4049 GREP="$ac_cv_path_GREP"
4050
4051
4052 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4053 $as_echo_n "checking for egrep... " >&6; }
4054 if test "${ac_cv_path_EGREP+set}" = set; then
4055 $as_echo_n "(cached) " >&6
4056 else
4057 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4058 then ac_cv_path_EGREP="$GREP -E"
4059 else
4060 if test -z "$EGREP"; then
4061 ac_path_EGREP_found=false
4062 # Loop through the user's path and test for each of PROGNAME-LIST
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4065 do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_prog in egrep; do
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4071 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4072 # Check for GNU ac_path_EGREP and select it if it is found.
4073 # Check for GNU $ac_path_EGREP
4074 case `"$ac_path_EGREP" --version 2>&1` in
4075 *GNU*)
4076 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4077 *)
4078 ac_count=0
4079 $as_echo_n 0123456789 >"conftest.in"
4080 while :
4081 do
4082 cat "conftest.in" "conftest.in" >"conftest.tmp"
4083 mv "conftest.tmp" "conftest.in"
4084 cp "conftest.in" "conftest.nl"
4085 $as_echo 'EGREP' >> "conftest.nl"
4086 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4088 ac_count=`expr $ac_count + 1`
4089 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4090 # Best one so far, save it but keep looking for a better one
4091 ac_cv_path_EGREP="$ac_path_EGREP"
4092 ac_path_EGREP_max=$ac_count
33804093 fi
3381 fi
3382 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3383 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3384 EGREP=$ac_cv_prog_egrep
3385
3386
3387
3388 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4094 # 10*(2^10) chars as input seems more than enough
4095 test $ac_count -gt 10 && break
4096 done
4097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4098 esac
4099
4100 $ac_path_EGREP_found && break 3
4101 done
4102 done
4103 done
4104 IFS=$as_save_IFS
4105 if test -z "$ac_cv_path_EGREP"; then
4106 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4107 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4108 { (exit 1); exit 1; }; }
4109 fi
4110 else
4111 ac_cv_path_EGREP=$EGREP
4112 fi
4113
4114 fi
4115 fi
4116 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117 $as_echo "$ac_cv_path_EGREP" >&6; }
4118 EGREP="$ac_cv_path_EGREP"
4119
4120
4121 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4122 $as_echo_n "checking for fgrep... " >&6; }
4123 if test "${ac_cv_path_FGREP+set}" = set; then
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4127 then ac_cv_path_FGREP="$GREP -F"
4128 else
4129 if test -z "$FGREP"; then
4130 ac_path_FGREP_found=false
4131 # Loop through the user's path and test for each of PROGNAME-LIST
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4134 do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_prog in fgrep; do
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4140 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4141 # Check for GNU ac_path_FGREP and select it if it is found.
4142 # Check for GNU $ac_path_FGREP
4143 case `"$ac_path_FGREP" --version 2>&1` in
4144 *GNU*)
4145 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4146 *)
4147 ac_count=0
4148 $as_echo_n 0123456789 >"conftest.in"
4149 while :
4150 do
4151 cat "conftest.in" "conftest.in" >"conftest.tmp"
4152 mv "conftest.tmp" "conftest.in"
4153 cp "conftest.in" "conftest.nl"
4154 $as_echo 'FGREP' >> "conftest.nl"
4155 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4156 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4157 ac_count=`expr $ac_count + 1`
4158 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4159 # Best one so far, save it but keep looking for a better one
4160 ac_cv_path_FGREP="$ac_path_FGREP"
4161 ac_path_FGREP_max=$ac_count
4162 fi
4163 # 10*(2^10) chars as input seems more than enough
4164 test $ac_count -gt 10 && break
4165 done
4166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4167 esac
4168
4169 $ac_path_FGREP_found && break 3
4170 done
4171 done
4172 done
4173 IFS=$as_save_IFS
4174 if test -z "$ac_cv_path_FGREP"; then
4175 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4176 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4177 { (exit 1); exit 1; }; }
4178 fi
4179 else
4180 ac_cv_path_FGREP=$FGREP
4181 fi
4182
4183 fi
4184 fi
4185 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4186 $as_echo "$ac_cv_path_FGREP" >&6; }
4187 FGREP="$ac_cv_path_FGREP"
4188
4189
4190 test -z "$GREP" && GREP=grep
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210 # Check whether --with-gnu-ld was given.
33894211 if test "${with_gnu_ld+set}" = set; then
3390 withval="$with_gnu_ld"
3391 test "$withval" = no || with_gnu_ld=yes
4212 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
33924213 else
33934214 with_gnu_ld=no
3394 fi;
4215 fi
4216
33954217 ac_prog=ld
33964218 if test "$GCC" = yes; then
33974219 # Check if gcc -print-prog-name=ld gives a path.
3398 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3399 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4220 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4221 $as_echo_n "checking for ld used by $CC... " >&6; }
34004222 case $host in
34014223 *-*-mingw*)
34024224 # gcc leaves a trailing carriage return which upsets mingw
34094231 [\\/]* | ?:[\\/]*)
34104232 re_direlt='/[^/][^/]*/\.\./'
34114233 # Canonicalize the pathname of ld
3412 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3413 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3414 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4234 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4235 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4236 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
34154237 done
34164238 test -z "$LD" && LD="$ac_prog"
34174239 ;;
34254247 ;;
34264248 esac
34274249 elif test "$with_gnu_ld" = yes; then
3428 echo "$as_me:$LINENO: checking for GNU ld" >&5
3429 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3430 else
3431 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3432 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4250 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4251 $as_echo_n "checking for GNU ld... " >&6; }
4252 else
4253 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4254 $as_echo_n "checking for non-GNU ld... " >&6; }
34334255 fi
34344256 if test "${lt_cv_path_LD+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 $as_echo_n "(cached) " >&6
34364258 else
34374259 if test -z "$LD"; then
34384260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34424264 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
34434265 lt_cv_path_LD="$ac_dir/$ac_prog"
34444266 # Check to see if the program is GNU ld. I'd rather use --version,
3445 # but apparently some GNU ld's only accept -v.
4267 # but apparently some variants of GNU ld only accept -v.
34464268 # Break only if it was the GNU/non-GNU ld that we prefer.
34474269 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
34484270 *GNU* | *'with BFD'*)
34624284
34634285 LD="$lt_cv_path_LD"
34644286 if test -n "$LD"; then
3465 echo "$as_me:$LINENO: result: $LD" >&5
3466 echo "${ECHO_T}$LD" >&6
3467 else
3468 echo "$as_me:$LINENO: result: no" >&5
3469 echo "${ECHO_T}no" >&6
3470 fi
3471 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3472 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4287 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4288 $as_echo "$LD" >&6; }
4289 else
4290 { $as_echo "$as_me:$LINENO: result: no" >&5
4291 $as_echo "no" >&6; }
4292 fi
4293 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4294 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
34734295 { (exit 1); exit 1; }; }
3474 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3475 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4296 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4297 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
34764298 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4299 $as_echo_n "(cached) " >&6
4300 else
4301 # I'd rather use --version here, but apparently some GNU lds only accept -v.
34804302 case `$LD -v 2>&1 </dev/null` in
34814303 *GNU* | *'with BFD'*)
34824304 lt_cv_prog_gnu_ld=yes
34864308 ;;
34874309 esac
34884310 fi
3489 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3490 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4311 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4312 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
34914313 with_gnu_ld=$lt_cv_prog_gnu_ld
34924314
34934315
3494 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3495 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4316
4317
4318
4319
4320
4321
4322
4323 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4324 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4325 if test "${lt_cv_path_NM+set}" = set; then
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -n "$NM"; then
4329 # Let the user override the test.
4330 lt_cv_path_NM="$NM"
4331 else
4332 lt_nm_to_check="${ac_tool_prefix}nm"
4333 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4334 lt_nm_to_check="$lt_nm_to_check nm"
4335 fi
4336 for lt_tmp_nm in $lt_nm_to_check; do
4337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4338 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4339 IFS="$lt_save_ifs"
4340 test -z "$ac_dir" && ac_dir=.
4341 tmp_nm="$ac_dir/$lt_tmp_nm"
4342 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4343 # Check to see if the nm accepts a BSD-compat flag.
4344 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4345 # nm: unknown option "B" ignored
4346 # Tru64's nm complains that /dev/null is an invalid object file
4347 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4348 */dev/null* | *'Invalid file or object type'*)
4349 lt_cv_path_NM="$tmp_nm -B"
4350 break
4351 ;;
4352 *)
4353 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4354 */dev/null*)
4355 lt_cv_path_NM="$tmp_nm -p"
4356 break
4357 ;;
4358 *)
4359 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4360 continue # so that we can try to find one that supports BSD flags
4361 ;;
4362 esac
4363 ;;
4364 esac
4365 fi
4366 done
4367 IFS="$lt_save_ifs"
4368 done
4369 : ${lt_cv_path_NM=no}
4370 fi
4371 fi
4372 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4373 $as_echo "$lt_cv_path_NM" >&6; }
4374 if test "$lt_cv_path_NM" != "no"; then
4375 NM="$lt_cv_path_NM"
4376 else
4377 # Didn't find any BSD compatible name lister, look for dumpbin.
4378 if test -n "$ac_tool_prefix"; then
4379 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4380 do
4381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -n "$DUMPBIN"; then
4389 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4393 do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4398 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4401 fi
4402 done
4403 done
4404 IFS=$as_save_IFS
4405
4406 fi
4407 fi
4408 DUMPBIN=$ac_cv_prog_DUMPBIN
4409 if test -n "$DUMPBIN"; then
4410 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4411 $as_echo "$DUMPBIN" >&6; }
4412 else
4413 { $as_echo "$as_me:$LINENO: result: no" >&5
4414 $as_echo "no" >&6; }
4415 fi
4416
4417
4418 test -n "$DUMPBIN" && break
4419 done
4420 fi
4421 if test -z "$DUMPBIN"; then
4422 ac_ct_DUMPBIN=$DUMPBIN
4423 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4424 do
4425 # Extract the first word of "$ac_prog", so it can be a program name with args.
4426 set dummy $ac_prog; ac_word=$2
4427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4430 $as_echo_n "(cached) " >&6
4431 else
4432 if test -n "$ac_ct_DUMPBIN"; then
4433 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4445 fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4453 if test -n "$ac_ct_DUMPBIN"; then
4454 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4455 $as_echo "$ac_ct_DUMPBIN" >&6; }
4456 else
4457 { $as_echo "$as_me:$LINENO: result: no" >&5
4458 $as_echo "no" >&6; }
4459 fi
4460
4461
4462 test -n "$ac_ct_DUMPBIN" && break
4463 done
4464
4465 if test "x$ac_ct_DUMPBIN" = x; then
4466 DUMPBIN=":"
4467 else
4468 case $cross_compiling:$ac_tool_warned in
4469 yes:)
4470 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4472 ac_tool_warned=yes ;;
4473 esac
4474 DUMPBIN=$ac_ct_DUMPBIN
4475 fi
4476 fi
4477
4478
4479 if test "$DUMPBIN" != ":"; then
4480 NM="$DUMPBIN"
4481 fi
4482 fi
4483 test -z "$NM" && NM=nm
4484
4485
4486
4487
4488
4489
4490 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4491 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4492 if test "${lt_cv_nm_interface+set}" = set; then
4493 $as_echo_n "(cached) " >&6
4494 else
4495 lt_cv_nm_interface="BSD nm"
4496 echo "int some_variable = 0;" > conftest.$ac_ext
4497 (eval echo "\"\$as_me:4498: $ac_compile\"" >&5)
4498 (eval "$ac_compile" 2>conftest.err)
4499 cat conftest.err >&5
4500 (eval echo "\"\$as_me:4501: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4501 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4502 cat conftest.err >&5
4503 (eval echo "\"\$as_me:4504: output\"" >&5)
4504 cat conftest.out >&5
4505 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4506 lt_cv_nm_interface="MS dumpbin"
4507 fi
4508 rm -f conftest*
4509 fi
4510 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4511 $as_echo "$lt_cv_nm_interface" >&6; }
4512
4513 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4514 $as_echo_n "checking whether ln -s works... " >&6; }
4515 LN_S=$as_ln_s
4516 if test "$LN_S" = "ln -s"; then
4517 { $as_echo "$as_me:$LINENO: result: yes" >&5
4518 $as_echo "yes" >&6; }
4519 else
4520 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4521 $as_echo "no, using $LN_S" >&6; }
4522 fi
4523
4524 # find the maximum length of command line arguments
4525 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4526 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4527 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4528 $as_echo_n "(cached) " >&6
4529 else
4530 i=0
4531 teststring="ABCD"
4532
4533 case $build_os in
4534 msdosdjgpp*)
4535 # On DJGPP, this test can blow up pretty badly due to problems in libc
4536 # (any single argument exceeding 2000 bytes causes a buffer overrun
4537 # during glob expansion). Even if it were fixed, the result of this
4538 # check would be larger than it should be.
4539 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4540 ;;
4541
4542 gnu*)
4543 # Under GNU Hurd, this test is not required because there is
4544 # no limit to the length of command line arguments.
4545 # Libtool will interpret -1 as no limit whatsoever
4546 lt_cv_sys_max_cmd_len=-1;
4547 ;;
4548
4549 cygwin* | mingw* | cegcc*)
4550 # On Win9x/ME, this test blows up -- it succeeds, but takes
4551 # about 5 minutes as the teststring grows exponentially.
4552 # Worse, since 9x/ME are not pre-emptively multitasking,
4553 # you end up with a "frozen" computer, even though with patience
4554 # the test eventually succeeds (with a max line length of 256k).
4555 # Instead, let's just punt: use the minimum linelength reported by
4556 # all of the supported platforms: 8192 (on NT/2K/XP).
4557 lt_cv_sys_max_cmd_len=8192;
4558 ;;
4559
4560 amigaos*)
4561 # On AmigaOS with pdksh, this test takes hours, literally.
4562 # So we just punt and use a minimum line length of 8192.
4563 lt_cv_sys_max_cmd_len=8192;
4564 ;;
4565
4566 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4567 # This has been around since 386BSD, at least. Likely further.
4568 if test -x /sbin/sysctl; then
4569 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4570 elif test -x /usr/sbin/sysctl; then
4571 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4572 else
4573 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4574 fi
4575 # And add a safety zone
4576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4578 ;;
4579
4580 interix*)
4581 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4582 lt_cv_sys_max_cmd_len=196608
4583 ;;
4584
4585 osf*)
4586 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4587 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4588 # nice to cause kernel panics so lets avoid the loop below.
4589 # First set a reasonable default.
4590 lt_cv_sys_max_cmd_len=16384
4591 #
4592 if test -x /sbin/sysconfig; then
4593 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4594 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4595 esac
4596 fi
4597 ;;
4598 sco3.2v5*)
4599 lt_cv_sys_max_cmd_len=102400
4600 ;;
4601 sysv5* | sco5v6* | sysv4.2uw2*)
4602 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4603 if test -n "$kargmax"; then
4604 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4605 else
4606 lt_cv_sys_max_cmd_len=32768
4607 fi
4608 ;;
4609 *)
4610 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4611 if test -n "$lt_cv_sys_max_cmd_len"; then
4612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4614 else
4615 # Make teststring a little bigger before we do anything with it.
4616 # a 1K string should be a reasonable start.
4617 for i in 1 2 3 4 5 6 7 8 ; do
4618 teststring=$teststring$teststring
4619 done
4620 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4621 # If test is not a shell built-in, we'll probably end up computing a
4622 # maximum length that is only half of the actual maximum length, but
4623 # we can't tell.
4624 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4625 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4626 test $i != 17 # 1/2 MB should be enough
4627 do
4628 i=`expr $i + 1`
4629 teststring=$teststring$teststring
4630 done
4631 # Only check the string length outside the loop.
4632 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4633 teststring=
4634 # Add a significant safety factor because C++ compilers can tack on
4635 # massive amounts of additional arguments before passing them to the
4636 # linker. It appears as though 1/2 is a usable value.
4637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4638 fi
4639 ;;
4640 esac
4641
4642 fi
4643
4644 if test -n $lt_cv_sys_max_cmd_len ; then
4645 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4646 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4647 else
4648 { $as_echo "$as_me:$LINENO: result: none" >&5
4649 $as_echo "none" >&6; }
4650 fi
4651 max_cmd_len=$lt_cv_sys_max_cmd_len
4652
4653
4654
4655
4656
4657
4658 : ${CP="cp -f"}
4659 : ${MV="mv -f"}
4660 : ${RM="rm -f"}
4661
4662 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4663 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4664 # Try some XSI features
4665 xsi_shell=no
4666 ( _lt_dummy="a/b/c"
4667 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4668 = c,a/b,, \
4669 && eval 'test $(( 1 + 1 )) -eq 2 \
4670 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4671 && xsi_shell=yes
4672 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4673 $as_echo "$xsi_shell" >&6; }
4674
4675
4676 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4677 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4678 lt_shell_append=no
4679 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4680 >/dev/null 2>&1 \
4681 && lt_shell_append=yes
4682 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4683 $as_echo "$lt_shell_append" >&6; }
4684
4685
4686 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4687 lt_unset=unset
4688 else
4689 lt_unset=false
4690 fi
4691
4692
4693
4694
4695
4696 # test EBCDIC or ASCII
4697 case `echo X|tr X '\101'` in
4698 A) # ASCII based system
4699 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4700 lt_SP2NL='tr \040 \012'
4701 lt_NL2SP='tr \015\012 \040\040'
4702 ;;
4703 *) # EBCDIC based system
4704 lt_SP2NL='tr \100 \n'
4705 lt_NL2SP='tr \r\n \100\100'
4706 ;;
4707 esac
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4718 $as_echo_n "checking for $LD option to reload object files... " >&6; }
34964719 if test "${lt_cv_ld_reload_flag+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 $as_echo_n "(cached) " >&6
34984721 else
34994722 lt_cv_ld_reload_flag='-r'
35004723 fi
3501 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3502 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4724 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4725 $as_echo "$lt_cv_ld_reload_flag" >&6; }
35034726 reload_flag=$lt_cv_ld_reload_flag
35044727 case $reload_flag in
35054728 "" | " "*) ;;
35064729 *) reload_flag=" $reload_flag" ;;
35074730 esac
35084731 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3509
3510 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3511 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3512 if test "${lt_cv_path_NM+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 if test -n "$NM"; then
3516 # Let the user override the test.
3517 lt_cv_path_NM="$NM"
3518 else
3519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3520 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3521 IFS="$lt_save_ifs"
3522 test -z "$ac_dir" && ac_dir=.
3523 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3524 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3525 # Check to see if the nm accepts a BSD-compat flag.
3526 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3527 # nm: unknown option "B" ignored
3528 # Tru64's nm complains that /dev/null is an invalid object file
3529 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3530 */dev/null* | *'Invalid file or object type'*)
3531 lt_cv_path_NM="$tmp_nm -B"
3532 break
3533 ;;
3534 *)
3535 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3536 */dev/null*)
3537 lt_cv_path_NM="$tmp_nm -p"
3538 break
3539 ;;
3540 *)
3541 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3542 continue # so that we can try to find one that supports BSD flags
3543 ;;
3544 esac
3545 esac
4732 case $host_os in
4733 darwin*)
4734 if test "$GCC" = yes; then
4735 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4736 else
4737 reload_cmds='$LD$reload_flag -o $output$reload_objs'
35464738 fi
3547 done
3548 IFS="$lt_save_ifs"
3549 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3550 fi
3551 fi
3552 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3553 echo "${ECHO_T}$lt_cv_path_NM" >&6
3554 NM="$lt_cv_path_NM"
3555
3556 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3557 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3558 LN_S=$as_ln_s
3559 if test "$LN_S" = "ln -s"; then
3560 echo "$as_me:$LINENO: result: yes" >&5
3561 echo "${ECHO_T}yes" >&6
3562 else
3563 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3564 echo "${ECHO_T}no, using $LN_S" >&6
3565 fi
3566
3567 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3568 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4739 ;;
4740 esac
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4752 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$OBJDUMP"; then
4759 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772 done
4773 done
4774 IFS=$as_save_IFS
4775
4776 fi
4777 fi
4778 OBJDUMP=$ac_cv_prog_OBJDUMP
4779 if test -n "$OBJDUMP"; then
4780 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4781 $as_echo "$OBJDUMP" >&6; }
4782 else
4783 { $as_echo "$as_me:$LINENO: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786
4787
4788 fi
4789 if test -z "$ac_cv_prog_OBJDUMP"; then
4790 ac_ct_OBJDUMP=$OBJDUMP
4791 # Extract the first word of "objdump", so it can be a program name with args.
4792 set dummy objdump; ac_word=$2
4793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4796 $as_echo_n "(cached) " >&6
4797 else
4798 if test -n "$ac_ct_OBJDUMP"; then
4799 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812 done
4813 done
4814 IFS=$as_save_IFS
4815
4816 fi
4817 fi
4818 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4819 if test -n "$ac_ct_OBJDUMP"; then
4820 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4821 $as_echo "$ac_ct_OBJDUMP" >&6; }
4822 else
4823 { $as_echo "$as_me:$LINENO: result: no" >&5
4824 $as_echo "no" >&6; }
4825 fi
4826
4827 if test "x$ac_ct_OBJDUMP" = x; then
4828 OBJDUMP="false"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831 yes:)
4832 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4835 esac
4836 OBJDUMP=$ac_ct_OBJDUMP
4837 fi
4838 else
4839 OBJDUMP="$ac_cv_prog_OBJDUMP"
4840 fi
4841
4842 test -z "$OBJDUMP" && OBJDUMP=objdump
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4853 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
35694854 if test "${lt_cv_deplibs_check_method+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 $as_echo_n "(cached) " >&6
35714856 else
35724857 lt_cv_file_magic_cmd='$MAGIC_CMD'
35734858 lt_cv_file_magic_test_file=
35844869 # whether `pass_all' will *always* work, you probably want this one.
35854870
35864871 case $host_os in
3587 aix4* | aix5*)
4872 aix[4-9]*)
35884873 lt_cv_deplibs_check_method=pass_all
35894874 ;;
35904875
35924877 lt_cv_deplibs_check_method=pass_all
35934878 ;;
35944879
3595 bsdi4*)
4880 bsdi[45]*)
35964881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
35974882 lt_cv_file_magic_cmd='/usr/bin/file -L'
35984883 lt_cv_file_magic_test_file=/shlib/libc.so
36064891
36074892 mingw* | pw32*)
36084893 # Base MSYS/MinGW do not provide the 'file' command needed by
3609 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3610 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4894 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4895 # unless we find 'file', for example because we are cross-compiling.
4896 if ( file / ) >/dev/null 2>&1; then
4897 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4898 lt_cv_file_magic_cmd='func_win32_libid'
4899 else
4900 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4901 lt_cv_file_magic_cmd='$OBJDUMP -f'
4902 fi
4903 ;;
4904
4905 cegcc)
4906 # use the weaker test based on 'objdump'. See mingw*.
4907 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
36114908 lt_cv_file_magic_cmd='$OBJDUMP -f'
36124909 ;;
36134910
36154912 lt_cv_deplibs_check_method=pass_all
36164913 ;;
36174914
3618 freebsd* | kfreebsd*-gnu)
3619 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4915 freebsd* | dragonfly*)
4916 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
36204917 case $host_cpu in
36214918 i*86 )
36224919 # Not sure whether the presence of OpenBSD here was a mistake.
36234920 # Let's accept both of them until this is cleared up.
3624 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4921 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
36254922 lt_cv_file_magic_cmd=/usr/bin/file
36264923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
36274924 ;;
36374934
36384935 hpux10.20* | hpux11*)
36394936 lt_cv_file_magic_cmd=/usr/bin/file
3640 case "$host_cpu" in
4937 case $host_cpu in
36414938 ia64*)
36424939 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
36434940 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
36534950 esac
36544951 ;;
36554952
4953 interix[3-9]*)
4954 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4956 ;;
4957
36564958 irix5* | irix6* | nonstopux*)
36574959 case $LD in
36584960 *-32|*"-32 ") libmagic=32-bit;;
36644966 ;;
36654967
36664968 # This must be Linux ELF.
3667 linux*)
4969 linux* | k*bsd*-gnu)
36684970 lt_cv_deplibs_check_method=pass_all
36694971 ;;
36704972
3671 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3672 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4973 netbsd* | netbsdelf*-gnu)
4974 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
36734975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
36744976 else
36754977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
36824984 lt_cv_file_magic_test_file=/usr/lib/libnls.so
36834985 ;;
36844986
3685 nto-qnx*)
3686 lt_cv_deplibs_check_method=unknown
4987 *nto* | *qnx*)
4988 lt_cv_deplibs_check_method=pass_all
36874989 ;;
36884990
36894991 openbsd*)
3690 lt_cv_file_magic_cmd=/usr/bin/file
3691 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4992 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
36944994 else
3695 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
36964996 fi
36974997 ;;
36984998
37005000 lt_cv_deplibs_check_method=pass_all
37015001 ;;
37025002
3703 sco3.2v5*)
5003 rdos*)
37045004 lt_cv_deplibs_check_method=pass_all
37055005 ;;
37065006
37085008 lt_cv_deplibs_check_method=pass_all
37095009 ;;
37105010
3711 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5012 lt_cv_deplibs_check_method=pass_all
5013 ;;
5014
5015 sysv4 | sysv4.3*)
37125016 case $host_vendor in
37135017 motorola)
37145018 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]'
37295033 siemens)
37305034 lt_cv_deplibs_check_method=pass_all
37315035 ;;
5036 pc)
5037 lt_cv_deplibs_check_method=pass_all
5038 ;;
37325039 esac
37335040 ;;
37345041
3735 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5042 tpf*)
37365043 lt_cv_deplibs_check_method=pass_all
37375044 ;;
37385045 esac
37395046
37405047 fi
3741 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3742 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5048 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5049 $as_echo "$lt_cv_deplibs_check_method" >&6; }
37435050 file_magic_cmd=$lt_cv_file_magic_cmd
37445051 deplibs_check_method=$lt_cv_deplibs_check_method
37455052 test -z "$deplibs_check_method" && deplibs_check_method=unknown
37475054
37485055
37495056
5057
5058
5059
5060
5061
5062
5063
5064
5065 if test -n "$ac_tool_prefix"; then
5066 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5067 set dummy ${ac_tool_prefix}ar; ac_word=$2
5068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if test "${ac_cv_prog_AR+set}" = set; then
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -n "$AR"; then
5074 ac_cv_prog_AR="$AR" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_prog_AR="${ac_tool_prefix}ar"
5084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5086 fi
5087 done
5088 done
5089 IFS=$as_save_IFS
5090
5091 fi
5092 fi
5093 AR=$ac_cv_prog_AR
5094 if test -n "$AR"; then
5095 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5096 $as_echo "$AR" >&6; }
5097 else
5098 { $as_echo "$as_me:$LINENO: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101
5102
5103 fi
5104 if test -z "$ac_cv_prog_AR"; then
5105 ac_ct_AR=$AR
5106 # Extract the first word of "ar", so it can be a program name with args.
5107 set dummy ar; ac_word=$2
5108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$ac_ct_AR"; then
5114 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_prog_ac_ct_AR="ar"
5124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127 done
5128 done
5129 IFS=$as_save_IFS
5130
5131 fi
5132 fi
5133 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5134 if test -n "$ac_ct_AR"; then
5135 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5136 $as_echo "$ac_ct_AR" >&6; }
5137 else
5138 { $as_echo "$as_me:$LINENO: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141
5142 if test "x$ac_ct_AR" = x; then
5143 AR="false"
5144 else
5145 case $cross_compiling:$ac_tool_warned in
5146 yes:)
5147 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149 ac_tool_warned=yes ;;
5150 esac
5151 AR=$ac_ct_AR
5152 fi
5153 else
5154 AR="$ac_cv_prog_AR"
5155 fi
5156
5157 test -z "$AR" && AR=ar
5158 test -z "$AR_FLAGS" && AR_FLAGS=cru
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 if test -n "$ac_tool_prefix"; then
5171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5172 set dummy ${ac_tool_prefix}strip; ac_word=$2
5173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if test "${ac_cv_prog_STRIP+set}" = set; then
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$STRIP"; then
5179 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 fi
5197 fi
5198 STRIP=$ac_cv_prog_STRIP
5199 if test -n "$STRIP"; then
5200 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5201 $as_echo "$STRIP" >&6; }
5202 else
5203 { $as_echo "$as_me:$LINENO: result: no" >&5
5204 $as_echo "no" >&6; }
5205 fi
5206
5207
5208 fi
5209 if test -z "$ac_cv_prog_STRIP"; then
5210 ac_ct_STRIP=$STRIP
5211 # Extract the first word of "strip", so it can be a program name with args.
5212 set dummy strip; ac_word=$2
5213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$ac_ct_STRIP"; then
5219 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_ac_ct_STRIP="strip"
5229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232 done
5233 done
5234 IFS=$as_save_IFS
5235
5236 fi
5237 fi
5238 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5239 if test -n "$ac_ct_STRIP"; then
5240 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5241 $as_echo "$ac_ct_STRIP" >&6; }
5242 else
5243 { $as_echo "$as_me:$LINENO: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246
5247 if test "x$ac_ct_STRIP" = x; then
5248 STRIP=":"
5249 else
5250 case $cross_compiling:$ac_tool_warned in
5251 yes:)
5252 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254 ac_tool_warned=yes ;;
5255 esac
5256 STRIP=$ac_ct_STRIP
5257 fi
5258 else
5259 STRIP="$ac_cv_prog_STRIP"
5260 fi
5261
5262 test -z "$STRIP" && STRIP=:
5263
5264
5265
5266
5267
5268
5269 if test -n "$ac_tool_prefix"; then
5270 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5271 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if test "${ac_cv_prog_RANLIB+set}" = set; then
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -n "$RANLIB"; then
5278 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5290 fi
5291 done
5292 done
5293 IFS=$as_save_IFS
5294
5295 fi
5296 fi
5297 RANLIB=$ac_cv_prog_RANLIB
5298 if test -n "$RANLIB"; then
5299 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5300 $as_echo "$RANLIB" >&6; }
5301 else
5302 { $as_echo "$as_me:$LINENO: result: no" >&5
5303 $as_echo "no" >&6; }
5304 fi
5305
5306
5307 fi
5308 if test -z "$ac_cv_prog_RANLIB"; then
5309 ac_ct_RANLIB=$RANLIB
5310 # Extract the first word of "ranlib", so it can be a program name with args.
5311 set dummy ranlib; ac_word=$2
5312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if test -n "$ac_ct_RANLIB"; then
5318 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_ac_ct_RANLIB="ranlib"
5328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331 done
5332 done
5333 IFS=$as_save_IFS
5334
5335 fi
5336 fi
5337 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5338 if test -n "$ac_ct_RANLIB"; then
5339 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5340 $as_echo "$ac_ct_RANLIB" >&6; }
5341 else
5342 { $as_echo "$as_me:$LINENO: result: no" >&5
5343 $as_echo "no" >&6; }
5344 fi
5345
5346 if test "x$ac_ct_RANLIB" = x; then
5347 RANLIB=":"
5348 else
5349 case $cross_compiling:$ac_tool_warned in
5350 yes:)
5351 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5353 ac_tool_warned=yes ;;
5354 esac
5355 RANLIB=$ac_ct_RANLIB
5356 fi
5357 else
5358 RANLIB="$ac_cv_prog_RANLIB"
5359 fi
5360
5361 test -z "$RANLIB" && RANLIB=:
5362
5363
5364
5365
5366
5367
5368 # Determine commands to create old-style static archives.
5369 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5370 old_postinstall_cmds='chmod 644 $oldlib'
5371 old_postuninstall_cmds=
5372
5373 if test -n "$RANLIB"; then
5374 case $host_os in
5375 openbsd*)
5376 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5377 ;;
5378 *)
5379 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5380 ;;
5381 esac
5382 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5383 fi
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
37505418 # If no C compiler was specified, use CC.
37515419 LTCC=${LTCC-"$CC"}
37525420
5421 # If no C compiler flags were specified, use CFLAGS.
5422 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5423
37535424 # Allow CC to be a program name with arguments.
37545425 compiler=$CC
37555426
37565427
3757 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5428 # Check for command to grab the raw symbol name followed by C symbol from nm.
5429 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5430 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5431 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5432 $as_echo_n "(cached) " >&6
5433 else
5434
5435 # These are sane defaults that work on at least a few old systems.
5436 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5437
5438 # Character class describing NM global symbol codes.
5439 symcode='[BCDEGRST]'
5440
5441 # Regexp to match symbols that can be accessed directly from C.
5442 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5443
5444 # Define system-specific variables.
5445 case $host_os in
5446 aix*)
5447 symcode='[BCDT]'
5448 ;;
5449 cygwin* | mingw* | pw32* | cegcc*)
5450 symcode='[ABCDGISTW]'
5451 ;;
5452 hpux*)
5453 if test "$host_cpu" = ia64; then
5454 symcode='[ABCDEGRST]'
5455 fi
5456 ;;
5457 irix* | nonstopux*)
5458 symcode='[BCDEGRST]'
5459 ;;
5460 osf*)
5461 symcode='[BCDEGQRST]'
5462 ;;
5463 solaris*)
5464 symcode='[BDRT]'
5465 ;;
5466 sco3.2v5*)
5467 symcode='[DT]'
5468 ;;
5469 sysv4.2uw2*)
5470 symcode='[DT]'
5471 ;;
5472 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5473 symcode='[ABDT]'
5474 ;;
5475 sysv4)
5476 symcode='[DFNSTU]'
5477 ;;
5478 esac
5479
5480 # If we're using GNU nm, then use its standard symbol codes.
5481 case `$NM -V 2>&1` in
5482 *GNU* | *'with BFD'*)
5483 symcode='[ABCDGIRSTW]' ;;
5484 esac
5485
5486 # Transform an extracted symbol line into a proper C declaration.
5487 # Some systems (esp. on ia64) link data and code symbols differently,
5488 # so use this general approach.
5489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5490
5491 # Transform an extracted symbol line into symbol name and symbol address
5492 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5493 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5494
5495 # Handle CRLF in mingw tool chain
5496 opt_cr=
5497 case $build_os in
5498 mingw*)
5499 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5500 ;;
5501 esac
5502
5503 # Try without a prefix underscore, then with it.
5504 for ac_symprfx in "" "_"; do
5505
5506 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5507 symxfrm="\\1 $ac_symprfx\\2 \\2"
5508
5509 # Write the raw and C identifiers.
5510 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5511 # Fake it for dumpbin and say T for any non-static function
5512 # and D for any global variable.
5513 # Also find C++ and __fastcall symbols from MSVC++,
5514 # which start with @ or ?.
5515 lt_cv_sys_global_symbol_pipe="$AWK '"\
5516 " {last_section=section; section=\$ 3};"\
5517 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5518 " \$ 0!~/External *\|/{next};"\
5519 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5520 " {if(hide[section]) next};"\
5521 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5522 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5523 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5524 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5525 " ' prfx=^$ac_symprfx"
5526 else
5527 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5528 fi
5529
5530 # Check to see that the pipe works correctly.
5531 pipe_works=no
5532
5533 rm -f conftest*
5534 cat > conftest.$ac_ext <<_LT_EOF
5535 #ifdef __cplusplus
5536 extern "C" {
5537 #endif
5538 char nm_test_var;
5539 void nm_test_func(void);
5540 void nm_test_func(void){}
5541 #ifdef __cplusplus
5542 }
5543 #endif
5544 int main(){nm_test_var='a';nm_test_func();return(0);}
5545 _LT_EOF
5546
5547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5548 (eval $ac_compile) 2>&5
5549 ac_status=$?
5550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; then
5552 # Now try to grab the symbols.
5553 nlist=conftest.nm
5554 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5555 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5556 ac_status=$?
5557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } && test -s "$nlist"; then
5559 # Try sorting and uniquifying the output.
5560 if sort "$nlist" | uniq > "$nlist"T; then
5561 mv -f "$nlist"T "$nlist"
5562 else
5563 rm -f "$nlist"T
5564 fi
5565
5566 # Make sure that we snagged all the symbols we need.
5567 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5568 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5569 cat <<_LT_EOF > conftest.$ac_ext
5570 #ifdef __cplusplus
5571 extern "C" {
5572 #endif
5573
5574 _LT_EOF
5575 # Now generate the symbol file.
5576 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5577
5578 cat <<_LT_EOF >> conftest.$ac_ext
5579
5580 /* The mapping between symbol names and symbols. */
5581 const struct {
5582 const char *name;
5583 void *address;
5584 }
5585 lt__PROGRAM__LTX_preloaded_symbols[] =
5586 {
5587 { "@PROGRAM@", (void *) 0 },
5588 _LT_EOF
5589 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5590 cat <<\_LT_EOF >> conftest.$ac_ext
5591 {0, (void *) 0}
5592 };
5593
5594 /* This works around a problem in FreeBSD linker */
5595 #ifdef FREEBSD_WORKAROUND
5596 static const void *lt_preloaded_setup() {
5597 return lt__PROGRAM__LTX_preloaded_symbols;
5598 }
5599 #endif
5600
5601 #ifdef __cplusplus
5602 }
5603 #endif
5604 _LT_EOF
5605 # Now try linking the two files.
5606 mv conftest.$ac_objext conftstm.$ac_objext
5607 lt_save_LIBS="$LIBS"
5608 lt_save_CFLAGS="$CFLAGS"
5609 LIBS="conftstm.$ac_objext"
5610 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5613 ac_status=$?
5614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5616 pipe_works=yes
5617 fi
5618 LIBS="$lt_save_LIBS"
5619 CFLAGS="$lt_save_CFLAGS"
5620 else
5621 echo "cannot find nm_test_func in $nlist" >&5
5622 fi
5623 else
5624 echo "cannot find nm_test_var in $nlist" >&5
5625 fi
5626 else
5627 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5628 fi
5629 else
5630 echo "$progname: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5632 fi
5633 rm -rf conftest* conftst*
5634
5635 # Do not use the global_symbol_pipe unless it works.
5636 if test "$pipe_works" = yes; then
5637 break
5638 else
5639 lt_cv_sys_global_symbol_pipe=
5640 fi
5641 done
5642
5643 fi
5644
5645 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5646 lt_cv_sys_global_symbol_to_cdecl=
5647 fi
5648 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5649 { $as_echo "$as_me:$LINENO: result: failed" >&5
5650 $as_echo "failed" >&6; }
5651 else
5652 { $as_echo "$as_me:$LINENO: result: ok" >&5
5653 $as_echo "ok" >&6; }
5654 fi
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678 # Check whether --enable-libtool-lock was given.
37585679 if test "${enable_libtool_lock+set}" = set; then
3759 enableval="$enable_libtool_lock"
3760
3761 fi;
5680 enableval=$enable_libtool_lock;
5681 fi
5682
37625683 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
37635684
37645685 # Some flags need to be propagated to the compiler or linker for good
37705691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37715692 (eval $ac_compile) 2>&5
37725693 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745695 (exit $ac_status); }; then
37755696 case `/usr/bin/file conftest.$ac_objext` in
3776 *ELF-32*)
3777 HPUX_IA64_MODE="32"
3778 ;;
3779 *ELF-64*)
3780 HPUX_IA64_MODE="64"
3781 ;;
5697 *ELF-32*)
5698 HPUX_IA64_MODE="32"
5699 ;;
5700 *ELF-64*)
5701 HPUX_IA64_MODE="64"
5702 ;;
37825703 esac
37835704 fi
37845705 rm -rf conftest*
37855706 ;;
37865707 *-*-irix6*)
37875708 # Find out which ABI we are using.
3788 echo '#line 3789 "configure"' > conftest.$ac_ext
5709 echo '#line 5710 "configure"' > conftest.$ac_ext
37895710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37905711 (eval $ac_compile) 2>&5
37915712 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37935714 (exit $ac_status); }; then
3794 if test "$lt_cv_prog_gnu_ld" = yes; then
3795 case `/usr/bin/file conftest.$ac_objext` in
3796 *32-bit*)
3797 LD="${LD-ld} -melf32bsmip"
3798 ;;
3799 *N32*)
3800 LD="${LD-ld} -melf32bmipn32"
3801 ;;
3802 *64-bit*)
3803 LD="${LD-ld} -melf64bmip"
3804 ;;
3805 esac
3806 else
3807 case `/usr/bin/file conftest.$ac_objext` in
3808 *32-bit*)
3809 LD="${LD-ld} -32"
3810 ;;
3811 *N32*)
3812 LD="${LD-ld} -n32"
3813 ;;
3814 *64-bit*)
3815 LD="${LD-ld} -64"
3816 ;;
3817 esac
3818 fi
5715 if test "$lt_cv_prog_gnu_ld" = yes; then
5716 case `/usr/bin/file conftest.$ac_objext` in
5717 *32-bit*)
5718 LD="${LD-ld} -melf32bsmip"
5719 ;;
5720 *N32*)
5721 LD="${LD-ld} -melf32bmipn32"
5722 ;;
5723 *64-bit*)
5724 LD="${LD-ld} -melf64bmip"
5725 ;;
5726 esac
5727 else
5728 case `/usr/bin/file conftest.$ac_objext` in
5729 *32-bit*)
5730 LD="${LD-ld} -32"
5731 ;;
5732 *N32*)
5733 LD="${LD-ld} -n32"
5734 ;;
5735 *64-bit*)
5736 LD="${LD-ld} -64"
5737 ;;
5738 esac
5739 fi
38195740 fi
38205741 rm -rf conftest*
38215742 ;;
38225743
3823 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5744 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5745 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
38245746 # Find out which ABI we are using.
38255747 echo 'int i;' > conftest.$ac_ext
38265748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38275749 (eval $ac_compile) 2>&5
38285750 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305752 (exit $ac_status); }; then
3831 case "`/usr/bin/file conftest.o`" in
3832 *32-bit*)
3833 case $host in
3834 x86_64-*linux*)
3835 LD="${LD-ld} -m elf_i386"
3836 ;;
3837 ppc64-*linux*|powerpc64-*linux*)
3838 LD="${LD-ld} -m elf32ppclinux"
3839 ;;
3840 s390x-*linux*)
3841 LD="${LD-ld} -m elf_s390"
3842 ;;
3843 sparc64-*linux*)
3844 LD="${LD-ld} -m elf32_sparc"
3845 ;;
3846 esac
3847 ;;
5753 case `/usr/bin/file conftest.o` in
5754 *32-bit*)
5755 case $host in
5756 x86_64-*kfreebsd*-gnu)
5757 LD="${LD-ld} -m elf_i386_fbsd"
5758 ;;
5759 x86_64-*linux*)
5760 LD="${LD-ld} -m elf_i386"
5761 ;;
5762 ppc64-*linux*|powerpc64-*linux*)
5763 LD="${LD-ld} -m elf32ppclinux"
5764 ;;
5765 s390x-*linux*)
5766 LD="${LD-ld} -m elf_s390"
5767 ;;
5768 sparc64-*linux*)
5769 LD="${LD-ld} -m elf32_sparc"
5770 ;;
5771 esac
5772 ;;
5773 *64-bit*)
5774 case $host in
5775 x86_64-*kfreebsd*-gnu)
5776 LD="${LD-ld} -m elf_x86_64_fbsd"
5777 ;;
5778 x86_64-*linux*)
5779 LD="${LD-ld} -m elf_x86_64"
5780 ;;
5781 ppc*-*linux*|powerpc*-*linux*)
5782 LD="${LD-ld} -m elf64ppc"
5783 ;;
5784 s390*-*linux*|s390*-*tpf*)
5785 LD="${LD-ld} -m elf64_s390"
5786 ;;
5787 sparc*-*linux*)
5788 LD="${LD-ld} -m elf64_sparc"
5789 ;;
5790 esac
5791 ;;
5792 esac
5793 fi
5794 rm -rf conftest*
5795 ;;
5796
5797 *-*-sco3.2v5*)
5798 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5799 SAVE_CFLAGS="$CFLAGS"
5800 CFLAGS="$CFLAGS -belf"
5801 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5802 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5803 if test "${lt_cv_cc_needs_belf+set}" = set; then
5804 $as_echo_n "(cached) " >&6
5805 else
5806 ac_ext=c
5807 ac_cpp='$CPP $CPPFLAGS'
5808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818
5819 int
5820 main ()
5821 {
5822
5823 ;
5824 return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (ac_try="$ac_link"
5829 case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5834 $as_echo "$ac_try_echo") >&5
5835 (eval "$ac_link") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest$ac_exeext && {
5845 test "$cross_compiling" = yes ||
5846 $as_test_x conftest$ac_exeext
5847 }; then
5848 lt_cv_cc_needs_belf=yes
5849 else
5850 $as_echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 lt_cv_cc_needs_belf=no
5854 fi
5855
5856 rm -rf conftest.dSYM
5857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5858 conftest$ac_exeext conftest.$ac_ext
5859 ac_ext=c
5860 ac_cpp='$CPP $CPPFLAGS'
5861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5864
5865 fi
5866 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5867 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5868 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5869 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5870 CFLAGS="$SAVE_CFLAGS"
5871 fi
5872 ;;
5873 sparc*-*solaris*)
5874 # Find out which ABI we are using.
5875 echo 'int i;' > conftest.$ac_ext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>&5
5878 ac_status=$?
5879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; then
5881 case `/usr/bin/file conftest.o` in
38485882 *64-bit*)
3849 case $host in
3850 x86_64-*linux*)
3851 LD="${LD-ld} -m elf_x86_64"
3852 ;;
3853 ppc*-*linux*|powerpc*-*linux*)
3854 LD="${LD-ld} -m elf64ppc"
3855 ;;
3856 s390*-*linux*)
3857 LD="${LD-ld} -m elf64_s390"
3858 ;;
3859 sparc*-*linux*)
3860 LD="${LD-ld} -m elf64_sparc"
3861 ;;
5883 case $lt_cv_prog_gnu_ld in
5884 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5885 *)
5886 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5887 LD="${LD-ld} -64"
5888 fi
5889 ;;
38625890 esac
38635891 ;;
38645892 esac
38655893 fi
38665894 rm -rf conftest*
38675895 ;;
3868
3869 *-*-sco3.2v5*)
3870 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3871 SAVE_CFLAGS="$CFLAGS"
3872 CFLAGS="$CFLAGS -belf"
3873 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3874 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3875 if test "${lt_cv_cc_needs_belf+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878 ac_ext=c
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883
3884 cat >conftest.$ac_ext <<_ACEOF
5896 esac
5897
5898 need_locks="$enable_libtool_lock"
5899
5900
5901 case $host_os in
5902 rhapsody* | darwin*)
5903 if test -n "$ac_tool_prefix"; then
5904 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5905 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -n "$DSYMUTIL"; then
5912 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5932 if test -n "$DSYMUTIL"; then
5933 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5934 $as_echo "$DSYMUTIL" >&6; }
5935 else
5936 { $as_echo "$as_me:$LINENO: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939
5940
5941 fi
5942 if test -z "$ac_cv_prog_DSYMUTIL"; then
5943 ac_ct_DSYMUTIL=$DSYMUTIL
5944 # Extract the first word of "dsymutil", so it can be a program name with args.
5945 set dummy dsymutil; ac_word=$2
5946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test -n "$ac_ct_DSYMUTIL"; then
5952 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969 fi
5970 fi
5971 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5972 if test -n "$ac_ct_DSYMUTIL"; then
5973 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5974 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5975 else
5976 { $as_echo "$as_me:$LINENO: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979
5980 if test "x$ac_ct_DSYMUTIL" = x; then
5981 DSYMUTIL=":"
5982 else
5983 case $cross_compiling:$ac_tool_warned in
5984 yes:)
5985 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5987 ac_tool_warned=yes ;;
5988 esac
5989 DSYMUTIL=$ac_ct_DSYMUTIL
5990 fi
5991 else
5992 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5993 fi
5994
5995 if test -n "$ac_tool_prefix"; then
5996 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5997 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if test -n "$NMEDIT"; then
6004 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6014 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 NMEDIT=$ac_cv_prog_NMEDIT
6024 if test -n "$NMEDIT"; then
6025 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6026 $as_echo "$NMEDIT" >&6; }
6027 else
6028 { $as_echo "$as_me:$LINENO: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032
6033 fi
6034 if test -z "$ac_cv_prog_NMEDIT"; then
6035 ac_ct_NMEDIT=$NMEDIT
6036 # Extract the first word of "nmedit", so it can be a program name with args.
6037 set dummy nmedit; ac_word=$2
6038 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$ac_ct_NMEDIT"; then
6044 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6056 fi
6057 done
6058 done
6059 IFS=$as_save_IFS
6060
6061 fi
6062 fi
6063 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6064 if test -n "$ac_ct_NMEDIT"; then
6065 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6066 $as_echo "$ac_ct_NMEDIT" >&6; }
6067 else
6068 { $as_echo "$as_me:$LINENO: result: no" >&5
6069 $as_echo "no" >&6; }
6070 fi
6071
6072 if test "x$ac_ct_NMEDIT" = x; then
6073 NMEDIT=":"
6074 else
6075 case $cross_compiling:$ac_tool_warned in
6076 yes:)
6077 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079 ac_tool_warned=yes ;;
6080 esac
6081 NMEDIT=$ac_ct_NMEDIT
6082 fi
6083 else
6084 NMEDIT="$ac_cv_prog_NMEDIT"
6085 fi
6086
6087 if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if test "${ac_cv_prog_LIPO+set}" = set; then
6093 $as_echo_n "(cached) " >&6
6094 else
6095 if test -n "$LIPO"; then
6096 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 LIPO=$ac_cv_prog_LIPO
6116 if test -n "$LIPO"; then
6117 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6118 $as_echo "$LIPO" >&6; }
6119 else
6120 { $as_echo "$as_me:$LINENO: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124
6125 fi
6126 if test -z "$ac_cv_prog_LIPO"; then
6127 ac_ct_LIPO=$LIPO
6128 # Extract the first word of "lipo", so it can be a program name with args.
6129 set dummy lipo; ac_word=$2
6130 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test -n "$ac_ct_LIPO"; then
6136 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_prog_ac_ct_LIPO="lipo"
6146 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6156 if test -n "$ac_ct_LIPO"; then
6157 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6158 $as_echo "$ac_ct_LIPO" >&6; }
6159 else
6160 { $as_echo "$as_me:$LINENO: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164 if test "x$ac_ct_LIPO" = x; then
6165 LIPO=":"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173 LIPO=$ac_ct_LIPO
6174 fi
6175 else
6176 LIPO="$ac_cv_prog_LIPO"
6177 fi
6178
6179 if test -n "$ac_tool_prefix"; then
6180 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6181 set dummy ${ac_tool_prefix}otool; ac_word=$2
6182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if test "${ac_cv_prog_OTOOL+set}" = set; then
6185 $as_echo_n "(cached) " >&6
6186 else
6187 if test -n "$OTOOL"; then
6188 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 OTOOL=$ac_cv_prog_OTOOL
6208 if test -n "$OTOOL"; then
6209 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6210 $as_echo "$OTOOL" >&6; }
6211 else
6212 { $as_echo "$as_me:$LINENO: result: no" >&5
6213 $as_echo "no" >&6; }
6214 fi
6215
6216
6217 fi
6218 if test -z "$ac_cv_prog_OTOOL"; then
6219 ac_ct_OTOOL=$OTOOL
6220 # Extract the first word of "otool", so it can be a program name with args.
6221 set dummy otool; ac_word=$2
6222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 $as_echo_n "checking for $ac_word... " >&6; }
6224 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6225 $as_echo_n "(cached) " >&6
6226 else
6227 if test -n "$ac_ct_OTOOL"; then
6228 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_ac_ct_OTOOL="otool"
6238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241 done
6242 done
6243 IFS=$as_save_IFS
6244
6245 fi
6246 fi
6247 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6248 if test -n "$ac_ct_OTOOL"; then
6249 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6250 $as_echo "$ac_ct_OTOOL" >&6; }
6251 else
6252 { $as_echo "$as_me:$LINENO: result: no" >&5
6253 $as_echo "no" >&6; }
6254 fi
6255
6256 if test "x$ac_ct_OTOOL" = x; then
6257 OTOOL=":"
6258 else
6259 case $cross_compiling:$ac_tool_warned in
6260 yes:)
6261 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6263 ac_tool_warned=yes ;;
6264 esac
6265 OTOOL=$ac_ct_OTOOL
6266 fi
6267 else
6268 OTOOL="$ac_cv_prog_OTOOL"
6269 fi
6270
6271 if test -n "$ac_tool_prefix"; then
6272 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6273 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6274 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6277 $as_echo_n "(cached) " >&6
6278 else
6279 if test -n "$OTOOL64"; then
6280 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6290 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6292 fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297 fi
6298 fi
6299 OTOOL64=$ac_cv_prog_OTOOL64
6300 if test -n "$OTOOL64"; then
6301 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6302 $as_echo "$OTOOL64" >&6; }
6303 else
6304 { $as_echo "$as_me:$LINENO: result: no" >&5
6305 $as_echo "no" >&6; }
6306 fi
6307
6308
6309 fi
6310 if test -z "$ac_cv_prog_OTOOL64"; then
6311 ac_ct_OTOOL64=$OTOOL64
6312 # Extract the first word of "otool64", so it can be a program name with args.
6313 set dummy otool64; ac_word=$2
6314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6317 $as_echo_n "(cached) " >&6
6318 else
6319 if test -n "$ac_ct_OTOOL64"; then
6320 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_ac_ct_OTOOL64="otool64"
6330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333 done
6334 done
6335 IFS=$as_save_IFS
6336
6337 fi
6338 fi
6339 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6340 if test -n "$ac_ct_OTOOL64"; then
6341 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6342 $as_echo "$ac_ct_OTOOL64" >&6; }
6343 else
6344 { $as_echo "$as_me:$LINENO: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347
6348 if test "x$ac_ct_OTOOL64" = x; then
6349 OTOOL64=":"
6350 else
6351 case $cross_compiling:$ac_tool_warned in
6352 yes:)
6353 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355 ac_tool_warned=yes ;;
6356 esac
6357 OTOOL64=$ac_ct_OTOOL64
6358 fi
6359 else
6360 OTOOL64="$ac_cv_prog_OTOOL64"
6361 fi
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6390 $as_echo_n "checking for -single_module linker flag... " >&6; }
6391 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6392 $as_echo_n "(cached) " >&6
6393 else
6394 lt_cv_apple_cc_single_mod=no
6395 if test -z "${LT_MULTI_MODULE}"; then
6396 # By default we will add the -single_module flag. You can override
6397 # by either setting the environment variable LT_MULTI_MODULE
6398 # non-empty at configure time, or by adding -multi_module to the
6399 # link flags.
6400 rm -rf libconftest.dylib*
6401 echo "int foo(void){return 1;}" > conftest.c
6402 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6403 -dynamiclib -Wl,-single_module conftest.c" >&5
6404 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6405 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6406 _lt_result=$?
6407 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6408 lt_cv_apple_cc_single_mod=yes
6409 else
6410 cat conftest.err >&5
6411 fi
6412 rm -rf libconftest.dylib*
6413 rm -f conftest.*
6414 fi
6415 fi
6416 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6417 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6418 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6419 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6420 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6421 $as_echo_n "(cached) " >&6
6422 else
6423 lt_cv_ld_exported_symbols_list=no
6424 save_LDFLAGS=$LDFLAGS
6425 echo "_main" > conftest.sym
6426 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6427 cat >conftest.$ac_ext <<_ACEOF
38856428 /* confdefs.h. */
38866429 _ACEOF
38876430 cat confdefs.h >>conftest.$ac_ext
38976440 }
38986441 _ACEOF
38996442 rm -f conftest.$ac_objext conftest$ac_exeext
3900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3901 (eval $ac_link) 2>conftest.er1
6443 if { (ac_try="$ac_link"
6444 case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447 esac
6448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6449 $as_echo "$ac_try_echo") >&5
6450 (eval "$ac_link") 2>conftest.er1
39026451 ac_status=$?
39036452 grep -v '^ *+' conftest.er1 >conftest.err
39046453 rm -f conftest.er1
39056454 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } &&
3908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; } &&
3914 { ac_try='test -s conftest$ac_exeext'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 lt_cv_cc_needs_belf=yes
3921 else
3922 echo "$as_me: failed program was:" >&5
6455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } && {
6457 test -z "$ac_c_werror_flag" ||
6458 test ! -s conftest.err
6459 } && test -s conftest$ac_exeext && {
6460 test "$cross_compiling" = yes ||
6461 $as_test_x conftest$ac_exeext
6462 }; then
6463 lt_cv_ld_exported_symbols_list=yes
6464 else
6465 $as_echo "$as_me: failed program was:" >&5
39236466 sed 's/^/| /' conftest.$ac_ext >&5
39246467
3925 lt_cv_cc_needs_belf=no
3926 fi
3927 rm -f conftest.err conftest.$ac_objext \
6468 lt_cv_ld_exported_symbols_list=no
6469 fi
6470
6471 rm -rf conftest.dSYM
6472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39286473 conftest$ac_exeext conftest.$ac_ext
3929 ac_ext=c
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934
3935 fi
3936 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3937 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3938 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3939 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3940 CFLAGS="$SAVE_CFLAGS"
3941 fi
3942 ;;
3943
3944 esac
3945
3946 need_locks="$enable_libtool_lock"
3947
6474 LDFLAGS="$save_LDFLAGS"
6475
6476 fi
6477 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6478 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6479 case $host_os in
6480 rhapsody* | darwin1.[012])
6481 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6482 darwin1.*)
6483 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6484 darwin*) # darwin 5.x on
6485 # if running on 10.5 or later, the deployment target defaults
6486 # to the OS version, if on x86, and 10.4, the deployment
6487 # target defaults to 10.4. Don't you love it?
6488 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6489 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6490 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6491 10.[012]*)
6492 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6493 10.*)
6494 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6495 esac
6496 ;;
6497 esac
6498 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6499 _lt_dar_single_mod='$single_module'
6500 fi
6501 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6502 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6503 else
6504 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6505 fi
6506 if test "$DSYMUTIL" != ":"; then
6507 _lt_dsymutil='~$DSYMUTIL $lib || :'
6508 else
6509 _lt_dsymutil=
6510 fi
6511 ;;
6512 esac
39486513
39496514 ac_ext=c
39506515 ac_cpp='$CPP $CPPFLAGS'
39516516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39526517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39536518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3955 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6519 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6520 $as_echo_n "checking how to run the C preprocessor... " >&6; }
39566521 # On Suns, sometimes $CPP names a directory.
39576522 if test -n "$CPP" && test -d "$CPP"; then
39586523 CPP=
39596524 fi
39606525 if test -z "$CPP"; then
39616526 if test "${ac_cv_prog_CPP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 $as_echo_n "(cached) " >&6
39636528 else
39646529 # Double quotes because CPP needs to be expanded
39656530 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
39866551 #endif
39876552 Syntax error
39886553 _ACEOF
3989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6554 if { (ac_try="$ac_cpp conftest.$ac_ext"
6555 case "(($ac_try" in
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6558 esac
6559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6560 $as_echo "$ac_try_echo") >&5
6561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39916562 ac_status=$?
39926563 grep -v '^ *+' conftest.er1 >conftest.err
39936564 rm -f conftest.er1
39946565 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } >/dev/null; then
3997 if test -s conftest.err; then
3998 ac_cpp_err=$ac_c_preproc_warn_flag
3999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4000 else
4001 ac_cpp_err=
4002 fi
4003 else
4004 ac_cpp_err=yes
4005 fi
4006 if test -z "$ac_cpp_err"; then
6566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } >/dev/null && {
6568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6569 test ! -s conftest.err
6570 }; then
40076571 :
40086572 else
4009 echo "$as_me: failed program was:" >&5
6573 $as_echo "$as_me: failed program was:" >&5
40106574 sed 's/^/| /' conftest.$ac_ext >&5
40116575
40126576 # Broken: fails on valid input.
40136577 continue
40146578 fi
6579
40156580 rm -f conftest.err conftest.$ac_ext
40166581
4017 # OK, works on sane cases. Now check whether non-existent headers
6582 # OK, works on sane cases. Now check whether nonexistent headers
40186583 # can be detected and how.
40196584 cat >conftest.$ac_ext <<_ACEOF
40206585 /* confdefs.h. */
40246589 /* end confdefs.h. */
40256590 #include <ac_nonexistent.h>
40266591 _ACEOF
4027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6592 if { (ac_try="$ac_cpp conftest.$ac_ext"
6593 case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596 esac
6597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6598 $as_echo "$ac_try_echo") >&5
6599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40296600 ac_status=$?
40306601 grep -v '^ *+' conftest.er1 >conftest.err
40316602 rm -f conftest.er1
40326603 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } >/dev/null; then
4035 if test -s conftest.err; then
4036 ac_cpp_err=$ac_c_preproc_warn_flag
4037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4038 else
4039 ac_cpp_err=
4040 fi
4041 else
4042 ac_cpp_err=yes
4043 fi
4044 if test -z "$ac_cpp_err"; then
6604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } >/dev/null && {
6606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 }; then
40456609 # Broken: success on invalid input.
40466610 continue
40476611 else
4048 echo "$as_me: failed program was:" >&5
6612 $as_echo "$as_me: failed program was:" >&5
40496613 sed 's/^/| /' conftest.$ac_ext >&5
40506614
40516615 # Passes both tests.
40526616 ac_preproc_ok=:
40536617 break
40546618 fi
6619
40556620 rm -f conftest.err conftest.$ac_ext
40566621
40576622 done
40696634 else
40706635 ac_cv_prog_CPP=$CPP
40716636 fi
4072 echo "$as_me:$LINENO: result: $CPP" >&5
4073 echo "${ECHO_T}$CPP" >&6
6637 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6638 $as_echo "$CPP" >&6; }
40746639 ac_preproc_ok=false
40756640 for ac_c_preproc_warn_flag in '' yes
40766641 do
40936658 #endif
40946659 Syntax error
40956660 _ACEOF
4096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6661 if { (ac_try="$ac_cpp conftest.$ac_ext"
6662 case "(($ac_try" in
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6665 esac
6666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6667 $as_echo "$ac_try_echo") >&5
6668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40986669 ac_status=$?
40996670 grep -v '^ *+' conftest.er1 >conftest.err
41006671 rm -f conftest.er1
41016672 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev/null; then
4104 if test -s conftest.err; then
4105 ac_cpp_err=$ac_c_preproc_warn_flag
4106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4107 else
4108 ac_cpp_err=
4109 fi
4110 else
4111 ac_cpp_err=yes
4112 fi
4113 if test -z "$ac_cpp_err"; then
6673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } >/dev/null && {
6675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 }; then
41146678 :
41156679 else
4116 echo "$as_me: failed program was:" >&5
6680 $as_echo "$as_me: failed program was:" >&5
41176681 sed 's/^/| /' conftest.$ac_ext >&5
41186682
41196683 # Broken: fails on valid input.
41206684 continue
41216685 fi
6686
41226687 rm -f conftest.err conftest.$ac_ext
41236688
4124 # OK, works on sane cases. Now check whether non-existent headers
6689 # OK, works on sane cases. Now check whether nonexistent headers
41256690 # can be detected and how.
41266691 cat >conftest.$ac_ext <<_ACEOF
41276692 /* confdefs.h. */
41316696 /* end confdefs.h. */
41326697 #include <ac_nonexistent.h>
41336698 _ACEOF
4134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6699 if { (ac_try="$ac_cpp conftest.$ac_ext"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705 $as_echo "$ac_try_echo") >&5
6706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41366707 ac_status=$?
41376708 grep -v '^ *+' conftest.er1 >conftest.err
41386709 rm -f conftest.er1
41396710 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } >/dev/null; then
4142 if test -s conftest.err; then
4143 ac_cpp_err=$ac_c_preproc_warn_flag
4144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4145 else
4146 ac_cpp_err=
4147 fi
4148 else
4149 ac_cpp_err=yes
4150 fi
4151 if test -z "$ac_cpp_err"; then
6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } >/dev/null && {
6713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 }; then
41526716 # Broken: success on invalid input.
41536717 continue
41546718 else
4155 echo "$as_me: failed program was:" >&5
6719 $as_echo "$as_me: failed program was:" >&5
41566720 sed 's/^/| /' conftest.$ac_ext >&5
41576721
41586722 # Passes both tests.
41596723 ac_preproc_ok=:
41606724 break
41616725 fi
6726
41626727 rm -f conftest.err conftest.$ac_ext
41636728
41646729 done
41676732 if $ac_preproc_ok; then
41686733 :
41696734 else
4170 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6735 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6737 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
41716738 See \`config.log' for more details." >&5
4172 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6739 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
41736740 See \`config.log' for more details." >&2;}
4174 { (exit 1); exit 1; }; }
6741 { (exit 1); exit 1; }; }; }
41756742 fi
41766743
41776744 ac_ext=c
41816748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41826749
41836750
4184 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4185 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6751 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6752 $as_echo_n "checking for ANSI C header files... " >&6; }
41866753 if test "${ac_cv_header_stdc+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 $as_echo_n "(cached) " >&6
41886755 else
41896756 cat >conftest.$ac_ext <<_ACEOF
41906757 /* confdefs.h. */
42066773 }
42076774 _ACEOF
42086775 rm -f conftest.$ac_objext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
6776 if { (ac_try="$ac_compile"
6777 case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780 esac
6781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6782 $as_echo "$ac_try_echo") >&5
6783 (eval "$ac_compile") 2>conftest.er1
42116784 ac_status=$?
42126785 grep -v '^ *+' conftest.er1 >conftest.err
42136786 rm -f conftest.er1
42146787 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 (eval $ac_try) 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; } &&
4223 { ac_try='test -s conftest.$ac_objext'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; }; then
6788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest.$ac_objext; then
42296793 ac_cv_header_stdc=yes
42306794 else
4231 echo "$as_me: failed program was:" >&5
6795 $as_echo "$as_me: failed program was:" >&5
42326796 sed 's/^/| /' conftest.$ac_ext >&5
42336797
4234 ac_cv_header_stdc=no
4235 fi
4236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798 ac_cv_header_stdc=no
6799 fi
6800
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42376802
42386803 if test $ac_cv_header_stdc = yes; then
42396804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
42896854 cat >>conftest.$ac_ext <<_ACEOF
42906855 /* end confdefs.h. */
42916856 #include <ctype.h>
6857 #include <stdlib.h>
42926858 #if ((' ' & 0x0FF) == 0x020)
42936859 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
42946860 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
43086874 for (i = 0; i < 256; i++)
43096875 if (XOR (islower (i), ISLOWER (i))
43106876 || toupper (i) != TOUPPER (i))
4311 exit(2);
4312 exit (0);
6877 return 2;
6878 return 0;
43136879 }
43146880 _ACEOF
43156881 rm -f conftest$ac_exeext
4316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4317 (eval $ac_link) 2>&5
6882 if { (ac_try="$ac_link"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889 (eval "$ac_link") 2>&5
43186890 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43206892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 (eval $ac_try) 2>&5
6893 { (case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896 esac
6897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898 $as_echo "$ac_try_echo") >&5
6899 (eval "$ac_try") 2>&5
43236900 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43256902 (exit $ac_status); }; }; then
43266903 :
43276904 else
4328 echo "$as_me: program exited with status $ac_status" >&5
4329 echo "$as_me: failed program was:" >&5
6905 $as_echo "$as_me: program exited with status $ac_status" >&5
6906 $as_echo "$as_me: failed program was:" >&5
43306907 sed 's/^/| /' conftest.$ac_ext >&5
43316908
43326909 ( exit $ac_status )
43336910 ac_cv_header_stdc=no
43346911 fi
4335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4336 fi
4337 fi
4338 fi
4339 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4340 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6912 rm -rf conftest.dSYM
6913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6914 fi
6915
6916
6917 fi
6918 fi
6919 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6920 $as_echo "$ac_cv_header_stdc" >&6; }
43416921 if test $ac_cv_header_stdc = yes; then
43426922
43436923 cat >>confdefs.h <<\_ACEOF
43596939 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
43606940 inttypes.h stdint.h unistd.h
43616941 do
4362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4363 echo "$as_me:$LINENO: checking for $ac_header" >&5
4364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6944 $as_echo_n "checking for $ac_header... " >&6; }
6945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6946 $as_echo_n "(cached) " >&6
43676947 else
43686948 cat >conftest.$ac_ext <<_ACEOF
43696949 /* confdefs.h. */
43766956 #include <$ac_header>
43776957 _ACEOF
43786958 rm -f conftest.$ac_objext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>conftest.er1
6959 if { (ac_try="$ac_compile"
6960 case "(($ac_try" in
6961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962 *) ac_try_echo=$ac_try;;
6963 esac
6964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6965 $as_echo "$ac_try_echo") >&5
6966 (eval "$ac_compile") 2>conftest.er1
43816967 ac_status=$?
43826968 grep -v '^ *+' conftest.er1 >conftest.err
43836969 rm -f conftest.er1
43846970 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
6971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } && {
6973 test -z "$ac_c_werror_flag" ||
6974 test ! -s conftest.err
6975 } && test -s conftest.$ac_objext; then
43996976 eval "$as_ac_Header=yes"
44006977 else
4401 echo "$as_me: failed program was:" >&5
6978 $as_echo "$as_me: failed program was:" >&5
44026979 sed 's/^/| /' conftest.$ac_ext >&5
44036980
4404 eval "$as_ac_Header=no"
4405 fi
4406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4407 fi
4408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6981 eval "$as_ac_Header=no"
6982 fi
6983
6984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 fi
6986 ac_res=`eval 'as_val=${'$as_ac_Header'}
6987 $as_echo "$as_val"'`
6988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6989 $as_echo "$ac_res" >&6; }
6990 as_val=`eval 'as_val=${'$as_ac_Header'}
6991 $as_echo "$as_val"'`
6992 if test "x$as_val" = x""yes; then
44116993 cat >>confdefs.h <<_ACEOF
4412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44136995 _ACEOF
44146996
44156997 fi
44207002
44217003 for ac_header in dlfcn.h
44227004 do
4423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425 echo "$as_me:$LINENO: checking for $ac_header" >&5
4426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 fi
4430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4432 else
4433 # Is the header compilable?
4434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4436 cat >conftest.$ac_ext <<_ACEOF
7005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7006 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7007 $as_echo_n "checking for $ac_header... " >&6; }
7008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7009 $as_echo_n "(cached) " >&6
7010 else
7011 cat >conftest.$ac_ext <<_ACEOF
44377012 /* confdefs.h. */
44387013 _ACEOF
44397014 cat confdefs.h >>conftest.$ac_ext
44407015 cat >>conftest.$ac_ext <<_ACEOF
44417016 /* end confdefs.h. */
44427017 $ac_includes_default
7018
44437019 #include <$ac_header>
44447020 _ACEOF
44457021 rm -f conftest.$ac_objext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447 (eval $ac_compile) 2>conftest.er1
7022 if { (ac_try="$ac_compile"
7023 case "(($ac_try" in
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7026 esac
7027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7028 $as_echo "$ac_try_echo") >&5
7029 (eval "$ac_compile") 2>conftest.er1
44487030 ac_status=$?
44497031 grep -v '^ *+' conftest.er1 >conftest.err
44507032 rm -f conftest.er1
44517033 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 ac_header_compiler=yes
4467 else
4468 echo "$as_me: failed program was:" >&5
7034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } && {
7036 test -z "$ac_c_werror_flag" ||
7037 test ! -s conftest.err
7038 } && test -s conftest.$ac_objext; then
7039 eval "$as_ac_Header=yes"
7040 else
7041 $as_echo "$as_me: failed program was:" >&5
44697042 sed 's/^/| /' conftest.$ac_ext >&5
44707043
4471 ac_header_compiler=no
4472 fi
4473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4475 echo "${ECHO_T}$ac_header_compiler" >&6
4476
4477 # Is the header present?
4478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h. */
7044 eval "$as_ac_Header=no"
7045 fi
7046
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048 fi
7049 ac_res=`eval 'as_val=${'$as_ac_Header'}
7050 $as_echo "$as_val"'`
7051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7052 $as_echo "$ac_res" >&6; }
7053 as_val=`eval 'as_val=${'$as_ac_Header'}
7054 $as_echo "$as_val"'`
7055 if test "x$as_val" = x""yes; then
7056 cat >>confdefs.h <<_ACEOF
7057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44827058 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 #include <$ac_header>
4487 _ACEOF
4488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null; then
4496 if test -s conftest.err; then
4497 ac_cpp_err=$ac_c_preproc_warn_flag
4498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4499 else
4500 ac_cpp_err=
4501 fi
4502 else
4503 ac_cpp_err=yes
4504 fi
4505 if test -z "$ac_cpp_err"; then
4506 ac_header_preproc=yes
4507 else
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511 ac_header_preproc=no
4512 fi
4513 rm -f conftest.err conftest.$ac_ext
4514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4515 echo "${ECHO_T}$ac_header_preproc" >&6
4516
4517 # So? What about this header?
4518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4519 yes:no: )
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4524 ac_header_preproc=yes
4525 ;;
4526 no:yes:* )
4527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4539 (
4540 cat <<\_ASBOX
4541 ## ------------------------------------------ ##
4542 ## Report this to the AC_PACKAGE_NAME lists. ##
4543 ## ------------------------------------------ ##
4544 _ASBOX
4545 ) |
4546 sed "s/^/$as_me: WARNING: /" >&2
4547 ;;
4548 esac
4549 echo "$as_me:$LINENO: checking for $ac_header" >&5
4550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 eval "$as_ac_Header=\$ac_header_preproc"
4555 fi
4556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4558
4559 fi
4560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4561 cat >>confdefs.h <<_ACEOF
4562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4563 _ACEOF
45647059
45657060 fi
45667061
45677062 done
45687063
4569 ac_ext=cc
4570 ac_cpp='$CXXCPP $CPPFLAGS'
4571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4574 if test -n "$ac_tool_prefix"; then
4575 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4576 do
4577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_prog_CXX+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 if test -n "$CXX"; then
4585 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4597 fi
4598 done
4599 done
4600
4601 fi
4602 fi
4603 CXX=$ac_cv_prog_CXX
4604 if test -n "$CXX"; then
4605 echo "$as_me:$LINENO: result: $CXX" >&5
4606 echo "${ECHO_T}$CXX" >&6
4607 else
4608 echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6
4610 fi
4611
4612 test -n "$CXX" && break
4613 done
4614 fi
4615 if test -z "$CXX"; then
4616 ac_ct_CXX=$CXX
4617 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4618 do
4619 # Extract the first word of "$ac_prog", so it can be a program name with args.
4620 set dummy $ac_prog; ac_word=$2
4621 echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 if test -n "$ac_ct_CXX"; then
4627 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_ac_ct_CXX="$ac_prog"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640 done
4641 done
4642
4643 fi
4644 fi
4645 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4646 if test -n "$ac_ct_CXX"; then
4647 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4648 echo "${ECHO_T}$ac_ct_CXX" >&6
4649 else
4650 echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4652 fi
4653
4654 test -n "$ac_ct_CXX" && break
4655 done
4656 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4657
4658 CXX=$ac_ct_CXX
4659 fi
4660
4661
4662 # Provide some information about the compiler.
4663 echo "$as_me:$LINENO:" \
4664 "checking for C++ compiler version" >&5
4665 ac_compiler=`set X $ac_compile; echo $2`
4666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4667 (eval $ac_compiler --version </dev/null >&5) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }
4671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4672 (eval $ac_compiler -v </dev/null >&5) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }
4676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4677 (eval $ac_compiler -V </dev/null >&5) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }
4681
4682 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4683 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687 cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h. */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693
4694 int
4695 main ()
4696 {
4697 #ifndef __GNUC__
4698 choke me
4699 #endif
4700
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707 (eval $ac_compile) 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; } &&
4720 { ac_try='test -s conftest.$ac_objext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4726 ac_compiler_gnu=yes
4727 else
4728 echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4730
4731 ac_compiler_gnu=no
4732 fi
4733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4734 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4735
4736 fi
4737 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4738 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4739 GXX=`test $ac_compiler_gnu = yes && echo yes`
4740 ac_test_CXXFLAGS=${CXXFLAGS+set}
4741 ac_save_CXXFLAGS=$CXXFLAGS
4742 CXXFLAGS="-g"
4743 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4744 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4745 if test "${ac_cv_prog_cxx_g+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754
4755 int
4756 main ()
4757 {
4758
4759 ;
4760 return 0;
4761 }
4762 _ACEOF
4763 rm -f conftest.$ac_objext
4764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4765 (eval $ac_compile) 2>conftest.er1
4766 ac_status=$?
4767 grep -v '^ *+' conftest.er1 >conftest.err
4768 rm -f conftest.er1
4769 cat conftest.err >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
4772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; } &&
4778 { ac_try='test -s conftest.$ac_objext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4784 ac_cv_prog_cxx_g=yes
4785 else
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 ac_cv_prog_cxx_g=no
4790 fi
4791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4792 fi
4793 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4794 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4795 if test "$ac_test_CXXFLAGS" = set; then
4796 CXXFLAGS=$ac_save_CXXFLAGS
4797 elif test $ac_cv_prog_cxx_g = yes; then
4798 if test "$GXX" = yes; then
4799 CXXFLAGS="-g -O2"
4800 else
4801 CXXFLAGS="-g"
4802 fi
4803 else
4804 if test "$GXX" = yes; then
4805 CXXFLAGS="-O2"
4806 else
4807 CXXFLAGS=
4808 fi
4809 fi
4810 for ac_declaration in \
4811 '' \
4812 'extern "C" void std::exit (int) throw (); using std::exit;' \
4813 'extern "C" void std::exit (int); using std::exit;' \
4814 'extern "C" void exit (int) throw ();' \
4815 'extern "C" void exit (int);' \
4816 'void exit (int);'
4817 do
4818 cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h. */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 $ac_declaration
4825 #include <stdlib.h>
4826 int
4827 main ()
4828 {
4829 exit (42);
4830 ;
4831 return 0;
4832 }
4833 _ACEOF
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 :
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 continue
4861 fi
4862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 $ac_declaration
4870 int
4871 main ()
4872 {
4873 exit (42);
4874 ;
4875 return 0;
4876 }
4877 _ACEOF
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; } &&
4893 { ac_try='test -s conftest.$ac_objext'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 break
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4903
4904 fi
4905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4906 done
4907 rm -f conftest*
4908 if test -n "$ac_declaration"; then
4909 echo '#ifdef __cplusplus' >>confdefs.h
4910 echo $ac_declaration >>confdefs.h
4911 echo '#endif' >>confdefs.h
4912 fi
4913
4914 ac_ext=cc
4915 ac_cpp='$CXXCPP $CPPFLAGS'
4916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4919
4920 depcc="$CXX" am_compiler_list=
4921
4922 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4923 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4924 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4928 # We make a subdir and do the tests there. Otherwise we can end up
4929 # making bogus files that we don't know about and never remove. For
4930 # instance it was reported that on HP-UX the gcc test will end up
4931 # making a dummy file named `D' -- because `-MD' means `put the output
4932 # in D'.
4933 mkdir conftest.dir
4934 # Copy depcomp to subdir because otherwise we won't find it if we're
4935 # using a relative directory.
4936 cp "$am_depcomp" conftest.dir
4937 cd conftest.dir
4938 # We will build objects and dependencies in a subdirectory because
4939 # it helps to detect inapplicable dependency modes. For instance
4940 # both Tru64's cc and ICC support -MD to output dependencies as a
4941 # side effect of compilation, but ICC will put the dependencies in
4942 # the current directory while Tru64 will put them in the object
4943 # directory.
4944 mkdir sub
4945
4946 am_cv_CXX_dependencies_compiler_type=none
4947 if test "$am_compiler_list" = ""; then
4948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4949 fi
4950 for depmode in $am_compiler_list; do
4951 # Setup a source with many dependencies, because some compilers
4952 # like to wrap large dependency lists on column 80 (with \), and
4953 # we should not choose a depcomp mode which is confused by this.
4954 #
4955 # We need to recreate these files for each test, as the compiler may
4956 # overwrite some of them when testing with obscure command lines.
4957 # This happens at least with the AIX C compiler.
4958 : > sub/conftest.c
4959 for i in 1 2 3 4 5 6; do
4960 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4961 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4962 # Solaris 8's {/usr,}/bin/sh.
4963 touch sub/conftst$i.h
4964 done
4965 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4966
4967 case $depmode in
4968 nosideeffect)
4969 # after this tag, mechanisms are not by side-effect, so they'll
4970 # only be used when explicitly requested
4971 if test "x$enable_dependency_tracking" = xyes; then
4972 continue
4973 else
4974 break
4975 fi
7064
7065
7066 # Set options
7067
7068
7069
7070 enable_dlopen=no
7071
7072
7073 enable_win32_dll=no
7074
7075
7076 # Check whether --enable-shared was given.
7077 if test "${enable_shared+set}" = set; then
7078 enableval=$enable_shared; p=${PACKAGE-default}
7079 case $enableval in
7080 yes) enable_shared=yes ;;
7081 no) enable_shared=no ;;
7082 *)
7083 enable_shared=no
7084 # Look at the argument we got. We use all the common list separators.
7085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7086 for pkg in $enableval; do
7087 IFS="$lt_save_ifs"
7088 if test "X$pkg" = "X$p"; then
7089 enable_shared=yes
7090 fi
7091 done
7092 IFS="$lt_save_ifs"
49767093 ;;
4977 none) break ;;
49787094 esac
4979 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4980 # mode. It turns out that the SunPro C++ compiler does not properly
4981 # handle `-M -o', and we need to detect this.
4982 if depmode=$depmode \
4983 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4984 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4985 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4986 >/dev/null 2>conftest.err &&
4987 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4988 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4989 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4990 # icc doesn't choke on unknown options, it will just issue warnings
4991 # or remarks (even with -Werror). So we grep stderr for any message
4992 # that says an option was ignored or not supported.
4993 # When given -MP, icc 7.0 and 7.1 complain thusly:
4994 # icc: Command line warning: ignoring option '-M'; no argument required
4995 # The diagnosis changed in icc 8.0:
4996 # icc: Command line remark: option '-MP' not supported
4997 if (grep 'ignoring option' conftest.err ||
4998 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4999 am_cv_CXX_dependencies_compiler_type=$depmode
5000 break
5001 fi
5002 fi
5003 done
5004
5005 cd ..
5006 rm -rf conftest.dir
5007 else
5008 am_cv_CXX_dependencies_compiler_type=none
5009 fi
5010
5011 fi
5012 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5013 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5014 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5015
5016
5017
5018 if
5019 test "x$enable_dependency_tracking" != xno \
5020 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5021 am__fastdepCXX_TRUE=
5022 am__fastdepCXX_FALSE='#'
5023 else
5024 am__fastdepCXX_TRUE='#'
5025 am__fastdepCXX_FALSE=
5026 fi
5027
5028
5029 ac_ext=cc
5030 ac_cpp='$CXXCPP $CPPFLAGS'
5031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5034 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5035 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5036 if test -z "$CXXCPP"; then
5037 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040 # Double quotes because CXXCPP needs to be expanded
5041 for CXXCPP in "$CXX -E" "/lib/cpp"
5042 do
5043 ac_preproc_ok=false
5044 for ac_cxx_preproc_warn_flag in '' yes
5045 do
5046 # Use a header file that comes with gcc, so configuring glibc
5047 # with a fresh cross-compiler works.
5048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5049 # <limits.h> exists even on freestanding compilers.
5050 # On the NeXT, cc -E runs the code through the compiler's parser,
5051 # not just through cpp. "Syntax error" is here to catch this case.
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #ifdef __STDC__
5059 # include <limits.h>
5060 #else
5061 # include <assert.h>
5062 #endif
5063 Syntax error
5064 _ACEOF
5065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } >/dev/null; then
5073 if test -s conftest.err; then
5074 ac_cpp_err=$ac_cxx_preproc_warn_flag
5075 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5076 else
5077 ac_cpp_err=
5078 fi
5079 else
5080 ac_cpp_err=yes
5081 fi
5082 if test -z "$ac_cpp_err"; then
5083 :
5084 else
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
5088 # Broken: fails on valid input.
5089 continue
5090 fi
5091 rm -f conftest.err conftest.$ac_ext
5092
5093 # OK, works on sane cases. Now check whether non-existent headers
5094 # can be detected and how.
5095 cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #include <ac_nonexistent.h>
5102 _ACEOF
5103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } >/dev/null; then
5111 if test -s conftest.err; then
5112 ac_cpp_err=$ac_cxx_preproc_warn_flag
5113 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5114 else
5115 ac_cpp_err=
5116 fi
5117 else
5118 ac_cpp_err=yes
5119 fi
5120 if test -z "$ac_cpp_err"; then
5121 # Broken: success on invalid input.
5122 continue
5123 else
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5126
5127 # Passes both tests.
5128 ac_preproc_ok=:
5129 break
5130 fi
5131 rm -f conftest.err conftest.$ac_ext
5132
5133 done
5134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5135 rm -f conftest.err conftest.$ac_ext
5136 if $ac_preproc_ok; then
5137 break
5138 fi
5139
5140 done
5141 ac_cv_prog_CXXCPP=$CXXCPP
5142
5143 fi
5144 CXXCPP=$ac_cv_prog_CXXCPP
5145 else
5146 ac_cv_prog_CXXCPP=$CXXCPP
5147 fi
5148 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5149 echo "${ECHO_T}$CXXCPP" >&6
5150 ac_preproc_ok=false
5151 for ac_cxx_preproc_warn_flag in '' yes
5152 do
5153 # Use a header file that comes with gcc, so configuring glibc
5154 # with a fresh cross-compiler works.
5155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5156 # <limits.h> exists even on freestanding compilers.
5157 # On the NeXT, cc -E runs the code through the compiler's parser,
5158 # not just through cpp. "Syntax error" is here to catch this case.
5159 cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h. */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 #ifdef __STDC__
5166 # include <limits.h>
5167 #else
5168 # include <assert.h>
5169 #endif
5170 Syntax error
5171 _ACEOF
5172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5174 ac_status=$?
5175 grep -v '^ *+' conftest.er1 >conftest.err
5176 rm -f conftest.er1
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } >/dev/null; then
5180 if test -s conftest.err; then
5181 ac_cpp_err=$ac_cxx_preproc_warn_flag
5182 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5183 else
5184 ac_cpp_err=
5185 fi
5186 else
5187 ac_cpp_err=yes
5188 fi
5189 if test -z "$ac_cpp_err"; then
5190 :
5191 else
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5194
5195 # Broken: fails on valid input.
5196 continue
5197 fi
5198 rm -f conftest.err conftest.$ac_ext
5199
5200 # OK, works on sane cases. Now check whether non-existent headers
5201 # can be detected and how.
5202 cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h. */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 #include <ac_nonexistent.h>
5209 _ACEOF
5210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5212 ac_status=$?
5213 grep -v '^ *+' conftest.er1 >conftest.err
5214 rm -f conftest.er1
5215 cat conftest.err >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } >/dev/null; then
5218 if test -s conftest.err; then
5219 ac_cpp_err=$ac_cxx_preproc_warn_flag
5220 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5221 else
5222 ac_cpp_err=
5223 fi
5224 else
5225 ac_cpp_err=yes
5226 fi
5227 if test -z "$ac_cpp_err"; then
5228 # Broken: success on invalid input.
5229 continue
5230 else
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234 # Passes both tests.
5235 ac_preproc_ok=:
5236 break
5237 fi
5238 rm -f conftest.err conftest.$ac_ext
5239
5240 done
5241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5242 rm -f conftest.err conftest.$ac_ext
5243 if $ac_preproc_ok; then
5244 :
5245 else
5246 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5247 See \`config.log' for more details." >&5
5248 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5249 See \`config.log' for more details." >&2;}
5250 { (exit 1); exit 1; }; }
5251 fi
5252
5253 ac_ext=cc
5254 ac_cpp='$CXXCPP $CPPFLAGS'
5255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5258
5259
5260 ac_ext=f
5261 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5262 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5264 if test -n "$ac_tool_prefix"; then
5265 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5266 do
5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5269 echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5271 if test "${ac_cv_prog_F77+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274 if test -n "$F77"; then
5275 ac_cv_prog_F77="$F77" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5287 fi
5288 done
5289 done
5290
5291 fi
5292 fi
5293 F77=$ac_cv_prog_F77
5294 if test -n "$F77"; then
5295 echo "$as_me:$LINENO: result: $F77" >&5
5296 echo "${ECHO_T}$F77" >&6
5297 else
5298 echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6
5300 fi
5301
5302 test -n "$F77" && break
5303 done
5304 fi
5305 if test -z "$F77"; then
5306 ac_ct_F77=$F77
5307 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5308 do
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 echo "$as_me:$LINENO: checking for $ac_word" >&5
5312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5313 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316 if test -n "$ac_ct_F77"; then
5317 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326 ac_cv_prog_ac_ct_F77="$ac_prog"
5327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5329 fi
5330 done
5331 done
5332
5333 fi
5334 fi
5335 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5336 if test -n "$ac_ct_F77"; then
5337 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5338 echo "${ECHO_T}$ac_ct_F77" >&6
5339 else
5340 echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6
5342 fi
5343
5344 test -n "$ac_ct_F77" && break
5345 done
5346
5347 F77=$ac_ct_F77
5348 fi
5349
5350
5351 # Provide some information about the compiler.
5352 echo "$as_me:5353:" \
5353 "checking for Fortran 77 compiler version" >&5
5354 ac_compiler=`set X $ac_compile; echo $2`
5355 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5356 (eval $ac_compiler --version </dev/null >&5) 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }
5360 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5361 (eval $ac_compiler -v </dev/null >&5) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }
5365 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5366 (eval $ac_compiler -V </dev/null >&5) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }
5370 rm -f a.out
5371
5372 # If we don't use `.F' as extension, the preprocessor is not run on the
5373 # input file. (Note that this only needs to work for GNU compilers.)
5374 ac_save_ext=$ac_ext
5375 ac_ext=F
5376 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5377 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5378 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381 cat >conftest.$ac_ext <<_ACEOF
5382 program main
5383 #ifndef __GNUC__
5384 choke me
5385 #endif
5386
5387 end
5388 _ACEOF
5389 rm -f conftest.$ac_objext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5391 (eval $ac_compile) 2>conftest.er1
5392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_compiler_gnu=yes
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_compiler_gnu=no
5416 fi
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5419
5420 fi
5421 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5422 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5423 ac_ext=$ac_save_ext
5424 ac_test_FFLAGS=${FFLAGS+set}
5425 ac_save_FFLAGS=$FFLAGS
5426 FFLAGS=
5427 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5428 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5429 if test "${ac_cv_prog_f77_g+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 FFLAGS=-g
5433 cat >conftest.$ac_ext <<_ACEOF
5434 program main
5435
5436 end
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 (eval $ac_try) 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_cv_prog_f77_g=yes
5460 else
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 ac_cv_prog_f77_g=no
5465 fi
5466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5467
5468 fi
5469 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5470 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5471 if test "$ac_test_FFLAGS" = set; then
5472 FFLAGS=$ac_save_FFLAGS
5473 elif test $ac_cv_prog_f77_g = yes; then
5474 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5475 FFLAGS="-g -O2"
5476 else
5477 FFLAGS="-g"
5478 fi
5479 else
5480 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5481 FFLAGS="-O2"
5482 else
5483 FFLAGS=
5484 fi
5485 fi
5486
5487 G77=`test $ac_compiler_gnu = yes && echo yes`
5488 ac_ext=c
5489 ac_cpp='$CPP $CPPFLAGS'
5490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5493
5494
5495
5496 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5497
5498 # find the maximum length of command line arguments
5499 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5500 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5501 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 i=0
5505 teststring="ABCD"
5506
5507 case $build_os in
5508 msdosdjgpp*)
5509 # On DJGPP, this test can blow up pretty badly due to problems in libc
5510 # (any single argument exceeding 2000 bytes causes a buffer overrun
5511 # during glob expansion). Even if it were fixed, the result of this
5512 # check would be larger than it should be.
5513 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5514 ;;
5515
5516 gnu*)
5517 # Under GNU Hurd, this test is not required because there is
5518 # no limit to the length of command line arguments.
5519 # Libtool will interpret -1 as no limit whatsoever
5520 lt_cv_sys_max_cmd_len=-1;
5521 ;;
5522
5523 cygwin* | mingw*)
5524 # On Win9x/ME, this test blows up -- it succeeds, but takes
5525 # about 5 minutes as the teststring grows exponentially.
5526 # Worse, since 9x/ME are not pre-emptively multitasking,
5527 # you end up with a "frozen" computer, even though with patience
5528 # the test eventually succeeds (with a max line length of 256k).
5529 # Instead, let's just punt: use the minimum linelength reported by
5530 # all of the supported platforms: 8192 (on NT/2K/XP).
5531 lt_cv_sys_max_cmd_len=8192;
5532 ;;
5533
5534 amigaos*)
5535 # On AmigaOS with pdksh, this test takes hours, literally.
5536 # So we just punt and use a minimum line length of 8192.
5537 lt_cv_sys_max_cmd_len=8192;
5538 ;;
5539
5540 *)
5541 # If test is not a shell built-in, we'll probably end up computing a
5542 # maximum length that is only half of the actual maximum length, but
5543 # we can't tell.
5544 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5545 = "XX$teststring") >/dev/null 2>&1 &&
5546 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5547 lt_cv_sys_max_cmd_len=$new_result &&
5548 test $i != 17 # 1/2 MB should be enough
5549 do
5550 i=`expr $i + 1`
5551 teststring=$teststring$teststring
5552 done
5553 teststring=
5554 # Add a significant safety factor because C++ compilers can tack on massive
5555 # amounts of additional arguments before passing them to the linker.
5556 # It appears as though 1/2 is a usable value.
5557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5558 ;;
5559 esac
5560
5561 fi
5562
5563 if test -n $lt_cv_sys_max_cmd_len ; then
5564 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5565 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5566 else
5567 echo "$as_me:$LINENO: result: none" >&5
5568 echo "${ECHO_T}none" >&6
5569 fi
5570
5571
5572
5573
5574 # Check for command to grab the raw symbol name followed by C symbol from nm.
5575 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5576 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5577 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580
5581 # These are sane defaults that work on at least a few old systems.
5582 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5583
5584 # Character class describing NM global symbol codes.
5585 symcode='[BCDEGRST]'
5586
5587 # Regexp to match symbols that can be accessed directly from C.
5588 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5589
5590 # Transform the above into a raw symbol and a C symbol.
5591 symxfrm='\1 \2\3 \3'
5592
5593 # Transform an extracted symbol line into a proper C declaration
5594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5595
5596 # Transform an extracted symbol line into symbol name and symbol address
5597 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5598
5599 # Define system-specific variables.
5600 case $host_os in
5601 aix*)
5602 symcode='[BCDT]'
5603 ;;
5604 cygwin* | mingw* | pw32*)
5605 symcode='[ABCDGISTW]'
5606 ;;
5607 hpux*) # Its linker distinguishes data from code symbols
5608 if test "$host_cpu" = ia64; then
5609 symcode='[ABCDEGRST]'
5610 fi
5611 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5612 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5613 ;;
5614 irix* | nonstopux*)
5615 symcode='[BCDEGRST]'
5616 ;;
5617 osf*)
5618 symcode='[BCDEGQRST]'
5619 ;;
5620 solaris* | sysv5*)
5621 symcode='[BDRT]'
5622 ;;
5623 sysv4)
5624 symcode='[DFNSTU]'
5625 ;;
5626 esac
5627
5628 # Handle CRLF in mingw tool chain
5629 opt_cr=
5630 case $build_os in
5631 mingw*)
5632 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5633 ;;
5634 esac
5635
5636 # If we're using GNU nm, then use its standard symbol codes.
5637 case `$NM -V 2>&1` in
5638 *GNU* | *'with BFD'*)
5639 symcode='[ABCDGIRSTW]' ;;
5640 esac
5641
5642 # Try without a prefix undercore, then with it.
5643 for ac_symprfx in "" "_"; do
5644
5645 # Write the raw and C identifiers.
5646 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5647
5648 # Check to see that the pipe works correctly.
5649 pipe_works=no
5650
5651 rm -f conftest*
5652 cat > conftest.$ac_ext <<EOF
5653 #ifdef __cplusplus
5654 extern "C" {
5655 #endif
5656 char nm_test_var;
5657 void nm_test_func(){}
5658 #ifdef __cplusplus
5659 }
5660 #endif
5661 int main(){nm_test_var='a';nm_test_func();return(0);}
5662 EOF
5663
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; then
5669 # Now try to grab the symbols.
5670 nlist=conftest.nm
5671 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5672 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && test -s "$nlist"; then
5676 # Try sorting and uniquifying the output.
5677 if sort "$nlist" | uniq > "$nlist"T; then
5678 mv -f "$nlist"T "$nlist"
5679 else
5680 rm -f "$nlist"T
5681 fi
5682
5683 # Make sure that we snagged all the symbols we need.
5684 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5685 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5686 cat <<EOF > conftest.$ac_ext
5687 #ifdef __cplusplus
5688 extern "C" {
5689 #endif
5690
5691 EOF
5692 # Now generate the symbol file.
5693 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5694
5695 cat <<EOF >> conftest.$ac_ext
5696 #if defined (__STDC__) && __STDC__
5697 # define lt_ptr_t void *
5698 #else
5699 # define lt_ptr_t char *
5700 # define const
5701 #endif
5702
5703 /* The mapping between symbol names and symbols. */
5704 const struct {
5705 const char *name;
5706 lt_ptr_t address;
5707 }
5708 lt_preloaded_symbols[] =
5709 {
5710 EOF
5711 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5712 cat <<\EOF >> conftest.$ac_ext
5713 {0, (lt_ptr_t) 0}
5714 };
5715
5716 #ifdef __cplusplus
5717 }
5718 #endif
5719 EOF
5720 # Now try linking the two files.
5721 mv conftest.$ac_objext conftstm.$ac_objext
5722 lt_save_LIBS="$LIBS"
5723 lt_save_CFLAGS="$CFLAGS"
5724 LIBS="conftstm.$ac_objext"
5725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5727 (eval $ac_link) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5731 pipe_works=yes
5732 fi
5733 LIBS="$lt_save_LIBS"
5734 CFLAGS="$lt_save_CFLAGS"
5735 else
5736 echo "cannot find nm_test_func in $nlist" >&5
7095 else
7096 enable_shared=yes
7097 fi
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107 # Check whether --enable-static was given.
7108 if test "${enable_static+set}" = set; then
7109 enableval=$enable_static; p=${PACKAGE-default}
7110 case $enableval in
7111 yes) enable_static=yes ;;
7112 no) enable_static=no ;;
7113 *)
7114 enable_static=no
7115 # Look at the argument we got. We use all the common list separators.
7116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7117 for pkg in $enableval; do
7118 IFS="$lt_save_ifs"
7119 if test "X$pkg" = "X$p"; then
7120 enable_static=yes
57377121 fi
5738 else
5739 echo "cannot find nm_test_var in $nlist" >&5
5740 fi
5741 else
5742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5743 fi
5744 else
5745 echo "$progname: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5747 fi
5748 rm -f conftest* conftst*
5749
5750 # Do not use the global_symbol_pipe unless it works.
5751 if test "$pipe_works" = yes; then
5752 break
5753 else
5754 lt_cv_sys_global_symbol_pipe=
5755 fi
5756 done
5757
5758 fi
5759
5760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5761 lt_cv_sys_global_symbol_to_cdecl=
5762 fi
5763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5764 echo "$as_me:$LINENO: result: failed" >&5
5765 echo "${ECHO_T}failed" >&6
5766 else
5767 echo "$as_me:$LINENO: result: ok" >&5
5768 echo "${ECHO_T}ok" >&6
5769 fi
5770
5771 echo "$as_me:$LINENO: checking for objdir" >&5
5772 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7122 done
7123 IFS="$lt_save_ifs"
7124 ;;
7125 esac
7126 else
7127 enable_static=yes
7128 fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139 # Check whether --with-pic was given.
7140 if test "${with_pic+set}" = set; then
7141 withval=$with_pic; pic_mode="$withval"
7142 else
7143 pic_mode=default
7144 fi
7145
7146
7147 test -z "$pic_mode" && pic_mode=default
7148
7149
7150
7151
7152
7153
7154
7155 # Check whether --enable-fast-install was given.
7156 if test "${enable_fast_install+set}" = set; then
7157 enableval=$enable_fast_install; p=${PACKAGE-default}
7158 case $enableval in
7159 yes) enable_fast_install=yes ;;
7160 no) enable_fast_install=no ;;
7161 *)
7162 enable_fast_install=no
7163 # Look at the argument we got. We use all the common list separators.
7164 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7165 for pkg in $enableval; do
7166 IFS="$lt_save_ifs"
7167 if test "X$pkg" = "X$p"; then
7168 enable_fast_install=yes
7169 fi
7170 done
7171 IFS="$lt_save_ifs"
7172 ;;
7173 esac
7174 else
7175 enable_fast_install=yes
7176 fi
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188 # This can be used to rebuild libtool when needed
7189 LIBTOOL_DEPS="$ltmain"
7190
7191 # Always use our own libtool.
7192 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 test -z "$LN_S" && LN_S="ln -s"
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233 if test -n "${ZSH_VERSION+set}" ; then
7234 setopt NO_GLOB_SUBST
7235 fi
7236
7237 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7238 $as_echo_n "checking for objdir... " >&6; }
57737239 if test "${lt_cv_objdir+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 $as_echo_n "(cached) " >&6
57757241 else
57767242 rm -f .libs 2>/dev/null
57777243 mkdir .libs 2>/dev/null
57837249 fi
57847250 rmdir .libs 2>/dev/null
57857251 fi
5786 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5787 echo "${ECHO_T}$lt_cv_objdir" >&6
7252 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7253 $as_echo "$lt_cv_objdir" >&6; }
57887254 objdir=$lt_cv_objdir
7255
7256
7257
7258
7259
7260 cat >>confdefs.h <<_ACEOF
7261 #define LT_OBJDIR "$lt_cv_objdir/"
7262 _ACEOF
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
57897275
57907276
57917277
58057291
58067292 # Sed substitution that helps us do robust quoting. It backslashifies
58077293 # metacharacters that are still active within double-quoted strings.
5808 Xsed='sed -e s/^X//'
5809 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7294 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
58107295
58117296 # Same as above, but do not quote variable references.
5812 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7297 double_quote_subst='s/\(["`\\]\)/\\\1/g'
58137298
58147299 # Sed substitution to delay expansion of an escaped shell variable in a
58157300 # double_quote_subst'ed string.
58167301 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
58177302
7303 # Sed substitution to delay expansion of an escaped single quote.
7304 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7305
58187306 # Sed substitution to avoid accidental globbing in evaled expressions
58197307 no_glob_subst='s/\*/\\\*/g'
58207308
5821 # Constants:
5822 rm="rm -f"
5823
58247309 # Global variables:
5825 default_ofile=libtool
7310 ofile=libtool
58267311 can_build_shared=yes
58277312
5828 # All known linkers require a `.a' archive for static linking (except M$VC,
7313 # All known linkers require a `.a' archive for static linking (except MSVC,
58297314 # which needs '.lib').
58307315 libext=a
5831 ltmain="$ac_aux_dir/ltmain.sh"
5832 ofile="$default_ofile"
7316
58337317 with_gnu_ld="$lt_cv_prog_gnu_ld"
5834
5835 if test -n "$ac_tool_prefix"; then
5836 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5837 set dummy ${ac_tool_prefix}ar; ac_word=$2
5838 echo "$as_me:$LINENO: checking for $ac_word" >&5
5839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5840 if test "${ac_cv_prog_AR+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843 if test -n "$AR"; then
5844 ac_cv_prog_AR="$AR" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853 ac_cv_prog_AR="${ac_tool_prefix}ar"
5854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857 done
5858 done
5859
5860 fi
5861 fi
5862 AR=$ac_cv_prog_AR
5863 if test -n "$AR"; then
5864 echo "$as_me:$LINENO: result: $AR" >&5
5865 echo "${ECHO_T}$AR" >&6
5866 else
5867 echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6
5869 fi
5870
5871 fi
5872 if test -z "$ac_cv_prog_AR"; then
5873 ac_ct_AR=$AR
5874 # Extract the first word of "ar", so it can be a program name with args.
5875 set dummy ar; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881 if test -n "$ac_ct_AR"; then
5882 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_ac_ct_AR="ar"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895 done
5896 done
5897
5898 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5899 fi
5900 fi
5901 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5902 if test -n "$ac_ct_AR"; then
5903 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5904 echo "${ECHO_T}$ac_ct_AR" >&6
5905 else
5906 echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5908 fi
5909
5910 AR=$ac_ct_AR
5911 else
5912 AR="$ac_cv_prog_AR"
5913 fi
5914
5915 if test -n "$ac_tool_prefix"; then
5916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5918 echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5920 if test "${ac_cv_prog_RANLIB+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923 if test -n "$RANLIB"; then
5924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937 done
5938 done
5939
5940 fi
5941 fi
5942 RANLIB=$ac_cv_prog_RANLIB
5943 if test -n "$RANLIB"; then
5944 echo "$as_me:$LINENO: result: $RANLIB" >&5
5945 echo "${ECHO_T}$RANLIB" >&6
5946 else
5947 echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6
5949 fi
5950
5951 fi
5952 if test -z "$ac_cv_prog_RANLIB"; then
5953 ac_ct_RANLIB=$RANLIB
5954 # Extract the first word of "ranlib", so it can be a program name with args.
5955 set dummy ranlib; ac_word=$2
5956 echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 if test -n "$ac_ct_RANLIB"; then
5962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_ac_ct_RANLIB="ranlib"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5974 fi
5975 done
5976 done
5977
5978 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5979 fi
5980 fi
5981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5982 if test -n "$ac_ct_RANLIB"; then
5983 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5984 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5985 else
5986 echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6
5988 fi
5989
5990 RANLIB=$ac_ct_RANLIB
5991 else
5992 RANLIB="$ac_cv_prog_RANLIB"
5993 fi
5994
5995 if test -n "$ac_tool_prefix"; then
5996 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5997 set dummy ${ac_tool_prefix}strip; ac_word=$2
5998 echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6000 if test "${ac_cv_prog_STRIP+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003 if test -n "$STRIP"; then
6004 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017 done
6018 done
6019
6020 fi
6021 fi
6022 STRIP=$ac_cv_prog_STRIP
6023 if test -n "$STRIP"; then
6024 echo "$as_me:$LINENO: result: $STRIP" >&5
6025 echo "${ECHO_T}$STRIP" >&6
6026 else
6027 echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6
6029 fi
6030
6031 fi
6032 if test -z "$ac_cv_prog_STRIP"; then
6033 ac_ct_STRIP=$STRIP
6034 # Extract the first word of "strip", so it can be a program name with args.
6035 set dummy strip; ac_word=$2
6036 echo "$as_me:$LINENO: checking for $ac_word" >&5
6037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041 if test -n "$ac_ct_STRIP"; then
6042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_STRIP="strip"
6052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055 done
6056 done
6057
6058 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6059 fi
6060 fi
6061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6062 if test -n "$ac_ct_STRIP"; then
6063 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6064 echo "${ECHO_T}$ac_ct_STRIP" >&6
6065 else
6066 echo "$as_me:$LINENO: result: no" >&5
6067 echo "${ECHO_T}no" >&6
6068 fi
6069
6070 STRIP=$ac_ct_STRIP
6071 else
6072 STRIP="$ac_cv_prog_STRIP"
6073 fi
6074
60757318
60767319 old_CC="$CC"
60777320 old_CFLAGS="$CFLAGS"
60787321
60797322 # Set sane defaults for various variables
6080 test -z "$AR" && AR=ar
6081 test -z "$AR_FLAGS" && AR_FLAGS=cru
6082 test -z "$AS" && AS=as
60837323 test -z "$CC" && CC=cc
60847324 test -z "$LTCC" && LTCC=$CC
6085 test -z "$DLLTOOL" && DLLTOOL=dlltool
7325 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
60867326 test -z "$LD" && LD=ld
6087 test -z "$LN_S" && LN_S="ln -s"
7327 test -z "$ac_objext" && ac_objext=o
7328
7329 for cc_temp in $compiler""; do
7330 case $cc_temp in
7331 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7332 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7333 \-*) ;;
7334 *) break;;
7335 esac
7336 done
7337 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7338
7339
7340 # Only perform the check for file, if the check method requires it
60887341 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6089 test -z "$NM" && NM=nm
6090 test -z "$SED" && SED=sed
6091 test -z "$OBJDUMP" && OBJDUMP=objdump
6092 test -z "$RANLIB" && RANLIB=:
6093 test -z "$STRIP" && STRIP=:
6094 test -z "$ac_objext" && ac_objext=o
6095
6096 # Determine commands to create old-style static archives.
6097 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6098 old_postinstall_cmds='chmod 644 $oldlib'
6099 old_postuninstall_cmds=
6100
6101 if test -n "$RANLIB"; then
6102 case $host_os in
6103 openbsd*)
6104 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6105 ;;
6106 *)
6107 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6108 ;;
6109 esac
6110 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6111 fi
6112
6113 # Only perform the check for file, if the check method requires it
61147342 case $deplibs_check_method in
61157343 file_magic*)
61167344 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6117 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6118 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7345 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7346 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
61197347 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 $as_echo_n "(cached) " >&6
61217349 else
61227350 case $MAGIC_CMD in
61237351 [\\/*] | ?:[\\/]*)
61357363 if test -n "$file_magic_test_file"; then
61367364 case $deplibs_check_method in
61377365 "file_magic "*)
6138 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7366 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
61397367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
61407368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
61417369 $EGREP "$file_magic_regex" > /dev/null; then
61427370 :
61437371 else
6144 cat <<EOF 1>&2
7372 cat <<_LT_EOF 1>&2
61457373
61467374 *** Warning: the command libtool uses to detect shared libraries,
61477375 *** $file_magic_cmd, produces output that libtool cannot recognize.
61527380 *** may want to report the problem to your system manager and/or to
61537381 *** bug-libtool@gnu.org
61547382
6155 EOF
7383 _LT_EOF
61567384 fi ;;
61577385 esac
61587386 fi
61677395
61687396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
61697397 if test -n "$MAGIC_CMD"; then
6170 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6171 echo "${ECHO_T}$MAGIC_CMD" >&6
6172 else
6173 echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6
6175 fi
7398 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7399 $as_echo "$MAGIC_CMD" >&6; }
7400 else
7401 { $as_echo "$as_me:$LINENO: result: no" >&5
7402 $as_echo "no" >&6; }
7403 fi
7404
7405
7406
7407
61767408
61777409 if test -z "$lt_cv_path_MAGIC_CMD"; then
61787410 if test -n "$ac_tool_prefix"; then
6179 echo "$as_me:$LINENO: checking for file" >&5
6180 echo $ECHO_N "checking for file... $ECHO_C" >&6
7411 { $as_echo "$as_me:$LINENO: checking for file" >&5
7412 $as_echo_n "checking for file... " >&6; }
61817413 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 $as_echo_n "(cached) " >&6
61837415 else
61847416 case $MAGIC_CMD in
61857417 [\\/*] | ?:[\\/]*)
61977429 if test -n "$file_magic_test_file"; then
61987430 case $deplibs_check_method in
61997431 "file_magic "*)
6200 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7432 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
62017433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
62027434 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
62037435 $EGREP "$file_magic_regex" > /dev/null; then
62047436 :
62057437 else
6206 cat <<EOF 1>&2
7438 cat <<_LT_EOF 1>&2
62077439
62087440 *** Warning: the command libtool uses to detect shared libraries,
62097441 *** $file_magic_cmd, produces output that libtool cannot recognize.
62147446 *** may want to report the problem to your system manager and/or to
62157447 *** bug-libtool@gnu.org
62167448
6217 EOF
7449 _LT_EOF
62187450 fi ;;
62197451 esac
62207452 fi
62297461
62307462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
62317463 if test -n "$MAGIC_CMD"; then
6232 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6233 echo "${ECHO_T}$MAGIC_CMD" >&6
6234 else
6235 echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6
6237 fi
7464 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7465 $as_echo "$MAGIC_CMD" >&6; }
7466 else
7467 { $as_echo "$as_me:$LINENO: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470
62387471
62397472 else
62407473 MAGIC_CMD=:
62457478 ;;
62467479 esac
62477480
6248 enable_dlopen=no
6249 enable_win32_dll=no
6250
6251 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6252 if test "${enable_libtool_lock+set}" = set; then
6253 enableval="$enable_libtool_lock"
6254
6255 fi;
6256 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6257
6258
6259 # Check whether --with-pic or --without-pic was given.
6260 if test "${with_pic+set}" = set; then
6261 withval="$with_pic"
6262 pic_mode="$withval"
6263 else
6264 pic_mode=default
6265 fi;
6266 test -z "$pic_mode" && pic_mode=default
6267
62687481 # Use C for the default configuration in the libtool script
6269 tagname=
7482
62707483 lt_save_CC="$CC"
62717484 ac_ext=c
62727485 ac_cpp='$CPP $CPPFLAGS'
62837496 objext=$objext
62847497
62857498 # Code to be used in simple compile tests
6286 lt_simple_compile_test_code="int some_variable = 0;\n"
7499 lt_simple_compile_test_code="int some_variable = 0;"
62877500
62887501 # Code to be used in simple link tests
6289 lt_simple_link_test_code='int main(){return(0);}\n'
7502 lt_simple_link_test_code='int main(){return(0);}'
7503
7504
7505
7506
7507
62907508
62917509
62927510 # If no C compiler was specified, use CC.
62937511 LTCC=${LTCC-"$CC"}
62947512
7513 # If no C compiler flags were specified, use CFLAGS.
7514 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7515
62957516 # Allow CC to be a program name with arguments.
62967517 compiler=$CC
62977518
6298
6299 #
6300 # Check for any special shared library compilation flags.
6301 #
6302 lt_prog_cc_shlib=
6303 if test "$GCC" = no; then
6304 case $host_os in
6305 sco3.2v5*)
6306 lt_prog_cc_shlib='-belf'
6307 ;;
6308 esac
6309 fi
6310 if test -n "$lt_prog_cc_shlib"; then
6311 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6312 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6313 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6314 else
6315 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6316 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6317 lt_cv_prog_cc_can_build_shared=no
6318 fi
6319 fi
6320
6321
6322 #
6323 # Check to make sure the static flag actually works.
6324 #
6325 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6326 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6327 if test "${lt_prog_compiler_static_works+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 lt_prog_compiler_static_works=no
6331 save_LDFLAGS="$LDFLAGS"
6332 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6333 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6335 # The compiler can only warn and ignore the option if not recognized
6336 # So say no if there are warnings
6337 if test -s conftest.err; then
6338 # Append any errors to the config.log.
6339 cat conftest.err 1>&5
6340 else
6341 lt_prog_compiler_static_works=yes
6342 fi
6343 fi
6344 $rm conftest*
6345 LDFLAGS="$save_LDFLAGS"
6346
6347 fi
6348 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6349 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6350
6351 if test x"$lt_prog_compiler_static_works" = xyes; then
6352 :
6353 else
6354 lt_prog_compiler_static=
6355 fi
6356
6357
6358
7519 # Save the default compiler, since it gets overwritten when the other
7520 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7521 compiler_DEFAULT=$CC
7522
7523 # save warnings/boilerplate of simple test code
7524 ac_outfile=conftest.$ac_objext
7525 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7526 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7527 _lt_compiler_boilerplate=`cat conftest.err`
7528 $RM conftest*
7529
7530 ac_outfile=conftest.$ac_objext
7531 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7532 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7533 _lt_linker_boilerplate=`cat conftest.err`
7534 $RM -r conftest*
7535
7536
7537 if test -n "$compiler"; then
63597538
63607539 lt_prog_compiler_no_builtin_flag=
63617540
63627541 if test "$GCC" = yes; then
63637542 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
63647543
6365
6366 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6367 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7544 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7545 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
63687546 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 $as_echo_n "(cached) " >&6
63707548 else
63717549 lt_cv_prog_compiler_rtti_exceptions=no
6372 ac_outfile=conftest.$ac_objext
6373 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7550 ac_outfile=conftest.$ac_objext
7551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
63747552 lt_compiler_flag="-fno-rtti -fno-exceptions"
63757553 # Insert the option either (1) after the last *FLAGS variable, or
63767554 # (2) before a word containing "conftest.", or (3) at the end.
63787556 # with a dollar sign (not a hyphen), so the echo should work correctly.
63797557 # The option is referenced via a variable to avoid confusing sed.
63807558 lt_compile=`echo "$ac_compile" | $SED \
6381 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
63827560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
63837561 -e 's:$: $lt_compiler_flag:'`
6384 (eval echo "\"\$as_me:6385: $lt_compile\"" >&5)
7562 (eval echo "\"\$as_me:7563: $lt_compile\"" >&5)
63857563 (eval "$lt_compile" 2>conftest.err)
63867564 ac_status=$?
63877565 cat conftest.err >&5
6388 echo "$as_me:6389: \$? = $ac_status" >&5
7566 echo "$as_me:7567: \$? = $ac_status" >&5
63897567 if (exit $ac_status) && test -s "$ac_outfile"; then
63907568 # The compiler can only warn and ignore the option if not recognized
6391 # So say no if there are warnings
6392 if test ! -s conftest.err; then
7569 # So say no if there are warnings other than the usual output.
7570 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7572 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
63937573 lt_cv_prog_compiler_rtti_exceptions=yes
63947574 fi
63957575 fi
6396 $rm conftest*
6397
6398 fi
6399 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6400 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7576 $RM conftest*
7577
7578 fi
7579 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7580 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
64017581
64027582 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
64037583 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
64077587
64087588 fi
64097589
6410 lt_prog_compiler_wl=
7590
7591
7592
7593
7594
7595 lt_prog_compiler_wl=
64117596 lt_prog_compiler_pic=
64127597 lt_prog_compiler_static=
64137598
6414 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6415 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7599 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7600 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
64167601
64177602 if test "$GCC" = yes; then
64187603 lt_prog_compiler_wl='-Wl,'
64287613 ;;
64297614
64307615 amigaos*)
6431 # FIXME: we need at least 68020 code to build shared libraries, but
6432 # adding the `-m68020' flag to GCC prevents building anything better,
6433 # like `-m68040'.
6434 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7616 case $host_cpu in
7617 powerpc)
7618 # see comment about AmigaOS4 .so support
7619 lt_prog_compiler_pic='-fPIC'
7620 ;;
7621 m68k)
7622 # FIXME: we need at least 68020 code to build shared libraries, but
7623 # adding the `-m68020' flag to GCC prevents building anything better,
7624 # like `-m68040'.
7625 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7626 ;;
7627 esac
64357628 ;;
64367629
6437 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7630 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
64387631 # PIC is the default for these OSes.
64397632 ;;
64407633
6441 mingw* | pw32* | os2*)
7634 mingw* | cygwin* | pw32* | os2* | cegcc*)
64427635 # This hack is so that the source file can tell whether it is being
64437636 # built for inclusion in a dll (and should export symbols for example).
7637 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7638 # (--disable-auto-import) libraries
64447639 lt_prog_compiler_pic='-DDLL_EXPORT'
64457640 ;;
64467641
64487643 # PIC is the default on this platform
64497644 # Common symbols not allowed in MH_DYLIB files
64507645 lt_prog_compiler_pic='-fno-common'
7646 ;;
7647
7648 hpux*)
7649 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7650 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7651 # sets the default TLS model and affects inlining.
7652 case $host_cpu in
7653 hppa*64*)
7654 # +Z the default
7655 ;;
7656 *)
7657 lt_prog_compiler_pic='-fPIC'
7658 ;;
7659 esac
7660 ;;
7661
7662 interix[3-9]*)
7663 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7664 # Instead, we relocate shared libraries at runtime.
64517665 ;;
64527666
64537667 msdosdjgpp*)
64577671 enable_shared=no
64587672 ;;
64597673
7674 *nto* | *qnx*)
7675 # QNX uses GNU C++, but need to define -shared option too, otherwise
7676 # it will coredump.
7677 lt_prog_compiler_pic='-fPIC -shared'
7678 ;;
7679
64607680 sysv4*MP*)
64617681 if test -d /usr/nec; then
64627682 lt_prog_compiler_pic=-Kconform_pic
64637683 fi
6464 ;;
6465
6466 hpux*)
6467 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6468 # not for PA HP-UX.
6469 case "$host_cpu" in
6470 hppa*64*|ia64*)
6471 # +Z the default
6472 ;;
6473 *)
6474 lt_prog_compiler_pic='-fPIC'
6475 ;;
6476 esac
64777684 ;;
64787685
64797686 *)
64937700 fi
64947701 ;;
64957702
6496 mingw* | pw32* | os2*)
7703 mingw* | cygwin* | pw32* | os2* | cegcc*)
64977704 # This hack is so that the source file can tell whether it is being
64987705 # built for inclusion in a dll (and should export symbols for example).
64997706 lt_prog_compiler_pic='-DDLL_EXPORT'
65037710 lt_prog_compiler_wl='-Wl,'
65047711 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
65057712 # not for PA HP-UX.
6506 case "$host_cpu" in
7713 case $host_cpu in
65077714 hppa*64*|ia64*)
65087715 # +Z the default
65097716 ;;
65217728 lt_prog_compiler_static='-non_shared'
65227729 ;;
65237730
6524 newsos6)
6525 lt_prog_compiler_pic='-KPIC'
6526 lt_prog_compiler_static='-Bstatic'
6527 ;;
6528
6529 linux*)
6530 case $CC in
6531 icc* | ecc*)
7731 linux* | k*bsd*-gnu)
7732 case $cc_basename in
7733 # old Intel for x86_64 which still supported -KPIC.
7734 ecc*)
65327735 lt_prog_compiler_wl='-Wl,'
65337736 lt_prog_compiler_pic='-KPIC'
65347737 lt_prog_compiler_static='-static'
7738 ;;
7739 # icc used to be incompatible with GCC.
7740 # ICC 10 doesn't accept -KPIC any more.
7741 icc* | ifort*)
7742 lt_prog_compiler_wl='-Wl,'
7743 lt_prog_compiler_pic='-fPIC'
7744 lt_prog_compiler_static='-static'
7745 ;;
7746 # Lahey Fortran 8.1.
7747 lf95*)
7748 lt_prog_compiler_wl='-Wl,'
7749 lt_prog_compiler_pic='--shared'
7750 lt_prog_compiler_static='--static'
7751 ;;
7752 pgcc* | pgf77* | pgf90* | pgf95*)
7753 # Portland Group compilers (*not* the Pentium gcc compiler,
7754 # which looks to be a dead project)
7755 lt_prog_compiler_wl='-Wl,'
7756 lt_prog_compiler_pic='-fpic'
7757 lt_prog_compiler_static='-Bstatic'
65357758 ;;
65367759 ccc*)
65377760 lt_prog_compiler_wl='-Wl,'
65387761 # All Alpha code is PIC.
65397762 lt_prog_compiler_static='-non_shared'
65407763 ;;
7764 xl*)
7765 # IBM XL C 8.0/Fortran 10.1 on PPC
7766 lt_prog_compiler_wl='-Wl,'
7767 lt_prog_compiler_pic='-qpic'
7768 lt_prog_compiler_static='-qstaticlink'
7769 ;;
7770 *)
7771 case `$CC -V 2>&1 | sed 5q` in
7772 *Sun\ C*)
7773 # Sun C 5.9
7774 lt_prog_compiler_pic='-KPIC'
7775 lt_prog_compiler_static='-Bstatic'
7776 lt_prog_compiler_wl='-Wl,'
7777 ;;
7778 *Sun\ F*)
7779 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7780 lt_prog_compiler_pic='-KPIC'
7781 lt_prog_compiler_static='-Bstatic'
7782 lt_prog_compiler_wl=''
7783 ;;
7784 esac
7785 ;;
65417786 esac
7787 ;;
7788
7789 newsos6)
7790 lt_prog_compiler_pic='-KPIC'
7791 lt_prog_compiler_static='-Bstatic'
7792 ;;
7793
7794 *nto* | *qnx*)
7795 # QNX uses GNU C++, but need to define -shared option too, otherwise
7796 # it will coredump.
7797 lt_prog_compiler_pic='-fPIC -shared'
65427798 ;;
65437799
65447800 osf3* | osf4* | osf5*)
65477803 lt_prog_compiler_static='-non_shared'
65487804 ;;
65497805
6550 sco3.2v5*)
6551 lt_prog_compiler_pic='-Kpic'
6552 lt_prog_compiler_static='-dn'
7806 rdos*)
7807 lt_prog_compiler_static='-non_shared'
65537808 ;;
65547809
65557810 solaris*)
6556 lt_prog_compiler_wl='-Wl,'
65577811 lt_prog_compiler_pic='-KPIC'
65587812 lt_prog_compiler_static='-Bstatic'
7813 case $cc_basename in
7814 f77* | f90* | f95*)
7815 lt_prog_compiler_wl='-Qoption ld ';;
7816 *)
7817 lt_prog_compiler_wl='-Wl,';;
7818 esac
65597819 ;;
65607820
65617821 sunos4*)
65647824 lt_prog_compiler_static='-Bstatic'
65657825 ;;
65667826
6567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7827 sysv4 | sysv4.2uw2* | sysv4.3*)
65687828 lt_prog_compiler_wl='-Wl,'
65697829 lt_prog_compiler_pic='-KPIC'
65707830 lt_prog_compiler_static='-Bstatic'
65777837 fi
65787838 ;;
65797839
7840 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7841 lt_prog_compiler_wl='-Wl,'
7842 lt_prog_compiler_pic='-KPIC'
7843 lt_prog_compiler_static='-Bstatic'
7844 ;;
7845
7846 unicos*)
7847 lt_prog_compiler_wl='-Wl,'
7848 lt_prog_compiler_can_build_shared=no
7849 ;;
7850
65807851 uts4*)
65817852 lt_prog_compiler_pic='-pic'
65827853 lt_prog_compiler_static='-Bstatic'
65887859 esac
65897860 fi
65907861
6591 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6592 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6593
6594 #
6595 # Check to make sure the PIC flag actually works.
6596 #
6597 if test -n "$lt_prog_compiler_pic"; then
6598
6599 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6600 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6601 if test "${lt_prog_compiler_pic_works+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 lt_prog_compiler_pic_works=no
6605 ac_outfile=conftest.$ac_objext
6606 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6607 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6608 # Insert the option either (1) after the last *FLAGS variable, or
6609 # (2) before a word containing "conftest.", or (3) at the end.
6610 # Note that $ac_compile itself does not contain backslashes and begins
6611 # with a dollar sign (not a hyphen), so the echo should work correctly.
6612 # The option is referenced via a variable to avoid confusing sed.
6613 lt_compile=`echo "$ac_compile" | $SED \
6614 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6616 -e 's:$: $lt_compiler_flag:'`
6617 (eval echo "\"\$as_me:6618: $lt_compile\"" >&5)
6618 (eval "$lt_compile" 2>conftest.err)
6619 ac_status=$?
6620 cat conftest.err >&5
6621 echo "$as_me:6622: \$? = $ac_status" >&5
6622 if (exit $ac_status) && test -s "$ac_outfile"; then
6623 # The compiler can only warn and ignore the option if not recognized
6624 # So say no if there are warnings
6625 if test ! -s conftest.err; then
6626 lt_prog_compiler_pic_works=yes
6627 fi
6628 fi
6629 $rm conftest*
6630
6631 fi
6632 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6633 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6634
6635 if test x"$lt_prog_compiler_pic_works" = xyes; then
6636 case $lt_prog_compiler_pic in
6637 "" | " "*) ;;
6638 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6639 esac
6640 else
6641 lt_prog_compiler_pic=
6642 lt_prog_compiler_can_build_shared=no
6643 fi
6644
6645 fi
6646 case "$host_os" in
7862 case $host_os in
66477863 # For platforms which do not support PIC, -DPIC is meaningless:
66487864 *djgpp*)
66497865 lt_prog_compiler_pic=
66527868 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
66537869 ;;
66547870 esac
6655
6656 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6657 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7871 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7872 $as_echo "$lt_prog_compiler_pic" >&6; }
7873
7874
7875
7876
7877
7878
7879 #
7880 # Check to make sure the PIC flag actually works.
7881 #
7882 if test -n "$lt_prog_compiler_pic"; then
7883 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7884 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7885 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7886 $as_echo_n "(cached) " >&6
7887 else
7888 lt_cv_prog_compiler_pic_works=no
7889 ac_outfile=conftest.$ac_objext
7890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7891 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7892 # Insert the option either (1) after the last *FLAGS variable, or
7893 # (2) before a word containing "conftest.", or (3) at the end.
7894 # Note that $ac_compile itself does not contain backslashes and begins
7895 # with a dollar sign (not a hyphen), so the echo should work correctly.
7896 # The option is referenced via a variable to avoid confusing sed.
7897 lt_compile=`echo "$ac_compile" | $SED \
7898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7900 -e 's:$: $lt_compiler_flag:'`
7901 (eval echo "\"\$as_me:7902: $lt_compile\"" >&5)
7902 (eval "$lt_compile" 2>conftest.err)
7903 ac_status=$?
7904 cat conftest.err >&5
7905 echo "$as_me:7906: \$? = $ac_status" >&5
7906 if (exit $ac_status) && test -s "$ac_outfile"; then
7907 # The compiler can only warn and ignore the option if not recognized
7908 # So say no if there are warnings other than the usual output.
7909 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7912 lt_cv_prog_compiler_pic_works=yes
7913 fi
7914 fi
7915 $RM conftest*
7916
7917 fi
7918 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7919 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7920
7921 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7922 case $lt_prog_compiler_pic in
7923 "" | " "*) ;;
7924 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7925 esac
7926 else
7927 lt_prog_compiler_pic=
7928 lt_prog_compiler_can_build_shared=no
7929 fi
7930
7931 fi
7932
7933
7934
7935
7936
7937
7938 #
7939 # Check to make sure the static flag actually works.
7940 #
7941 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7942 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7943 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7944 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7945 $as_echo_n "(cached) " >&6
7946 else
7947 lt_cv_prog_compiler_static_works=no
7948 save_LDFLAGS="$LDFLAGS"
7949 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7950 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7952 # The linker can only warn and ignore the option if not recognized
7953 # So say no if there are warnings
7954 if test -s conftest.err; then
7955 # Append any errors to the config.log.
7956 cat conftest.err 1>&5
7957 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7959 if diff conftest.exp conftest.er2 >/dev/null; then
7960 lt_cv_prog_compiler_static_works=yes
7961 fi
7962 else
7963 lt_cv_prog_compiler_static_works=yes
7964 fi
7965 fi
7966 $RM -r conftest*
7967 LDFLAGS="$save_LDFLAGS"
7968
7969 fi
7970 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7971 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7972
7973 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7974 :
7975 else
7976 lt_prog_compiler_static=
7977 fi
7978
7979
7980
7981
7982
7983
7984
7985 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7986 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
66587987 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 $as_echo_n "(cached) " >&6
66607989 else
66617990 lt_cv_prog_compiler_c_o=no
6662 $rm -r conftest 2>/dev/null
7991 $RM -r conftest 2>/dev/null
66637992 mkdir conftest
66647993 cd conftest
66657994 mkdir out
6666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
66677996
66687997 lt_compiler_flag="-o out/conftest2.$ac_objext"
66697998 # Insert the option either (1) after the last *FLAGS variable, or
66718000 # Note that $ac_compile itself does not contain backslashes and begins
66728001 # with a dollar sign (not a hyphen), so the echo should work correctly.
66738002 lt_compile=`echo "$ac_compile" | $SED \
6674 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
66758004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
66768005 -e 's:$: $lt_compiler_flag:'`
6677 (eval echo "\"\$as_me:6678: $lt_compile\"" >&5)
8006 (eval echo "\"\$as_me:8007: $lt_compile\"" >&5)
66788007 (eval "$lt_compile" 2>out/conftest.err)
66798008 ac_status=$?
66808009 cat out/conftest.err >&5
6681 echo "$as_me:6682: \$? = $ac_status" >&5
8010 echo "$as_me:8011: \$? = $ac_status" >&5
66828011 if (exit $ac_status) && test -s out/conftest2.$ac_objext
66838012 then
66848013 # The compiler can only warn and ignore the option if not recognized
66858014 # So say no if there are warnings
6686 if test ! -s out/conftest.err; then
8015 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8016 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8017 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
66878018 lt_cv_prog_compiler_c_o=yes
66888019 fi
66898020 fi
6690 chmod u+w .
6691 $rm conftest*
8021 chmod u+w . 2>&5
8022 $RM conftest*
66928023 # SGI C++ compiler will create directory out/ii_files/ for
66938024 # template instantiation
6694 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6695 $rm out/* && rmdir out
8025 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8026 $RM out/* && rmdir out
66968027 cd ..
6697 rmdir conftest
6698 $rm conftest*
6699
6700 fi
6701 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6702 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8028 $RM -r conftest
8029 $RM conftest*
8030
8031 fi
8032 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8033 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8034
8035
8036
8037
8038
8039
8040 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8041 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8042 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8043 $as_echo_n "(cached) " >&6
8044 else
8045 lt_cv_prog_compiler_c_o=no
8046 $RM -r conftest 2>/dev/null
8047 mkdir conftest
8048 cd conftest
8049 mkdir out
8050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8051
8052 lt_compiler_flag="-o out/conftest2.$ac_objext"
8053 # Insert the option either (1) after the last *FLAGS variable, or
8054 # (2) before a word containing "conftest.", or (3) at the end.
8055 # Note that $ac_compile itself does not contain backslashes and begins
8056 # with a dollar sign (not a hyphen), so the echo should work correctly.
8057 lt_compile=`echo "$ac_compile" | $SED \
8058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8060 -e 's:$: $lt_compiler_flag:'`
8061 (eval echo "\"\$as_me:8062: $lt_compile\"" >&5)
8062 (eval "$lt_compile" 2>out/conftest.err)
8063 ac_status=$?
8064 cat out/conftest.err >&5
8065 echo "$as_me:8066: \$? = $ac_status" >&5
8066 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8067 then
8068 # The compiler can only warn and ignore the option if not recognized
8069 # So say no if there are warnings
8070 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8071 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8072 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8073 lt_cv_prog_compiler_c_o=yes
8074 fi
8075 fi
8076 chmod u+w . 2>&5
8077 $RM conftest*
8078 # SGI C++ compiler will create directory out/ii_files/ for
8079 # template instantiation
8080 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8081 $RM out/* && rmdir out
8082 cd ..
8083 $RM -r conftest
8084 $RM conftest*
8085
8086 fi
8087 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8088 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8089
8090
67038091
67048092
67058093 hard_links="nottested"
67068094 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
67078095 # do not overwrite the value of need_locks provided by the user
6708 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6709 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8096 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8097 $as_echo_n "checking if we can lock with hard links... " >&6; }
67108098 hard_links=yes
6711 $rm conftest*
8099 $RM conftest*
67128100 ln conftest.a conftest.b 2>/dev/null && hard_links=no
67138101 touch conftest.a
67148102 ln conftest.a conftest.b 2>&5 || hard_links=no
67158103 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6716 echo "$as_me:$LINENO: result: $hard_links" >&5
6717 echo "${ECHO_T}$hard_links" >&6
8104 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8105 $as_echo "$hard_links" >&6; }
67188106 if test "$hard_links" = no; then
6719 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6720 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8107 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8108 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
67218109 need_locks=warn
67228110 fi
67238111 else
67248112 need_locks=no
67258113 fi
67268114
6727 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6728 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8115
8116
8117
8118
8119
8120 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8121 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
67298122
67308123 runpath_var=
67318124 allow_undefined_flag=
6732 enable_shared_with_static_runtimes=no
8125 always_export_symbols=no
67338126 archive_cmds=
67348127 archive_expsym_cmds=
6735 old_archive_From_new_cmds=
6736 old_archive_from_expsyms_cmds=
8128 compiler_needs_object=no
8129 enable_shared_with_static_runtimes=no
67378130 export_dynamic_flag_spec=
6738 whole_archive_flag_spec=
6739 thread_safe_flag_spec=
8131 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8132 hardcode_automatic=no
8133 hardcode_direct=no
8134 hardcode_direct_absolute=no
67408135 hardcode_libdir_flag_spec=
67418136 hardcode_libdir_flag_spec_ld=
67428137 hardcode_libdir_separator=
6743 hardcode_direct=no
67448138 hardcode_minus_L=no
67458139 hardcode_shlibpath_var=unsupported
8140 inherit_rpath=no
67468141 link_all_deplibs=unknown
6747 hardcode_automatic=no
67488142 module_cmds=
67498143 module_expsym_cmds=
6750 always_export_symbols=no
6751 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8144 old_archive_from_new_cmds=
8145 old_archive_from_expsyms_cmds=
8146 thread_safe_flag_spec=
8147 whole_archive_flag_spec=
67528148 # include_expsyms should be a list of space-separated symbols to be *always*
67538149 # included in the symbol list
67548150 include_expsyms=
67568152 # it will be wrapped by ` (' and `)$', so one must not match beginning or
67578153 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
67588154 # as well as any symbol that contains `d'.
6759 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8155 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
67608156 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
67618157 # platforms (ab)use it in PIC code, but their linkers get confused if
67628158 # the symbol is explicitly referenced. Since portable code cannot
67638159 # rely on this symbol name, it's probably fine to never include it in
67648160 # preloaded symbol tables.
8161 # Exclude shared library initialization/finalization symbols.
67658162 extract_expsyms_cmds=
67668163
67678164 case $host_os in
6768 cygwin* | mingw* | pw32*)
8165 cygwin* | mingw* | pw32* | cegcc*)
67698166 # FIXME: the MSVC++ port hasn't been tested in a loooong time
67708167 # When not using gcc, we currently assume that we are using
67718168 # Microsoft Visual C++.
67738170 with_gnu_ld=no
67748171 fi
67758172 ;;
8173 interix*)
8174 # we just hope/assume this is gcc and not c89 (= MSVC++)
8175 with_gnu_ld=yes
8176 ;;
67768177 openbsd*)
67778178 with_gnu_ld=no
8179 ;;
8180 linux* | k*bsd*-gnu)
8181 link_all_deplibs=no
67788182 ;;
67798183 esac
67808184
67838187 # If archive_cmds runs LD, not CC, wlarc should be empty
67848188 wlarc='${wl}'
67858189
8190 # Set some defaults for GNU ld with shared library support. These
8191 # are reset later if shared libraries are not supported. Putting them
8192 # here allows them to be overridden if necessary.
8193 runpath_var=LD_RUN_PATH
8194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8195 export_dynamic_flag_spec='${wl}--export-dynamic'
8196 # ancient GNU ld didn't support --whole-archive et. al.
8197 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8198 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8199 else
8200 whole_archive_flag_spec=
8201 fi
8202 supports_anon_versioning=no
8203 case `$LD -v 2>&1` in
8204 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8205 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8206 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8207 *\ 2.11.*) ;; # other 2.11 versions
8208 *) supports_anon_versioning=yes ;;
8209 esac
8210
67868211 # See if GNU ld supports shared libraries.
67878212 case $host_os in
6788 aix3* | aix4* | aix5*)
8213 aix[3-9]*)
67898214 # On AIX/PPC, the GNU linker is very broken
67908215 if test "$host_cpu" != ia64; then
67918216 ld_shlibs=no
6792 cat <<EOF 1>&2
8217 cat <<_LT_EOF 1>&2
67938218
67948219 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
67958220 *** to be unable to reliably create shared libraries on AIX.
67978222 *** really care for shared libraries, you may want to modify your PATH
67988223 *** so that a non-GNU linker is found, and then restart.
67998224
6800 EOF
8225 _LT_EOF
68018226 fi
68028227 ;;
68038228
68048229 amigaos*)
6805 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)'
6806 hardcode_libdir_flag_spec='-L$libdir'
6807 hardcode_minus_L=yes
6808
6809 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6810 # that the semantics of dynamic libraries on AmigaOS, at least up
6811 # to version 4, is to share data among multiple programs linked
6812 # with the same dynamic library. Since this doesn't match the
6813 # behavior of shared libraries on other platforms, we can't use
6814 # them.
6815 ld_shlibs=no
8230 case $host_cpu in
8231 powerpc)
8232 # see comment about AmigaOS4 .so support
8233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8234 archive_expsym_cmds=''
8235 ;;
8236 m68k)
8237 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)'
8238 hardcode_libdir_flag_spec='-L$libdir'
8239 hardcode_minus_L=yes
8240 ;;
8241 esac
68168242 ;;
68178243
68188244 beos*)
6819 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8245 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
68208246 allow_undefined_flag=unsupported
68218247 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
68228248 # support --undefined. This deserves some investigation. FIXME
68268252 fi
68278253 ;;
68288254
6829 cygwin* | mingw* | pw32*)
6830 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8255 cygwin* | mingw* | pw32* | cegcc*)
8256 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
68318257 # as there is no search path for DLLs.
68328258 hardcode_libdir_flag_spec='-L$libdir'
68338259 allow_undefined_flag=unsupported
68348260 always_export_symbols=no
68358261 enable_shared_with_static_runtimes=yes
6836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6837
6838 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8262 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8263
8264 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
68408266 # If the export-symbols file already is a .def file (1st line
68418267 # is EXPORTS), use it as is; otherwise, prepend...
68428268 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
68458271 echo EXPORTS > $output_objdir/$soname.def;
68468272 cat $export_symbols >> $output_objdir/$soname.def;
68478273 fi~
6848 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8274 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
68498275 else
68508276 ld_shlibs=no
68518277 fi
68528278 ;;
68538279
6854 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8280 interix[3-9]*)
8281 hardcode_direct=no
8282 hardcode_shlibpath_var=no
8283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8284 export_dynamic_flag_spec='${wl}-E'
8285 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8286 # Instead, shared libraries are loaded at an image base (0x10000000 by
8287 # default) and relocated if they conflict, which is a slow very memory
8288 # consuming and fragmenting process. To avoid this, we pick a random,
8289 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8290 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8291 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8292 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'
8293 ;;
8294
8295 gnu* | linux* | tpf* | k*bsd*-gnu)
8296 tmp_diet=no
8297 if test "$host_os" = linux-dietlibc; then
8298 case $cc_basename in
8299 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8300 esac
8301 fi
8302 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8303 && test "$tmp_diet" = no
8304 then
8305 tmp_addflag=
8306 tmp_sharedflag='-shared'
8307 case $cc_basename,$host_cpu in
8308 pgcc*) # Portland Group C compiler
8309 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8310 tmp_addflag=' $pic_flag'
8311 ;;
8312 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8313 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8314 tmp_addflag=' $pic_flag -Mnomain' ;;
8315 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8316 tmp_addflag=' -i_dynamic' ;;
8317 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8318 tmp_addflag=' -i_dynamic -nofor_main' ;;
8319 ifc* | ifort*) # Intel Fortran compiler
8320 tmp_addflag=' -nofor_main' ;;
8321 lf95*) # Lahey Fortran 8.1
8322 whole_archive_flag_spec=
8323 tmp_sharedflag='--shared' ;;
8324 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8325 tmp_sharedflag='-qmkshrobj'
8326 tmp_addflag= ;;
8327 esac
8328 case `$CC -V 2>&1 | sed 5q` in
8329 *Sun\ C*) # Sun C 5.9
8330 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8331 compiler_needs_object=yes
8332 tmp_sharedflag='-G' ;;
8333 *Sun\ F*) # Sun Fortran 8.3
8334 tmp_sharedflag='-G' ;;
8335 esac
8336 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8337
8338 if test "x$supports_anon_versioning" = xyes; then
8339 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8341 echo "local: *; };" >> $output_objdir/$libname.ver~
8342 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8343 fi
8344
8345 case $cc_basename in
8346 xlf*)
8347 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8348 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8349 hardcode_libdir_flag_spec=
8350 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8351 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8352 if test "x$supports_anon_versioning" = xyes; then
8353 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8355 echo "local: *; };" >> $output_objdir/$libname.ver~
8356 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8357 fi
8358 ;;
8359 esac
8360 else
8361 ld_shlibs=no
8362 fi
8363 ;;
8364
8365 netbsd* | netbsdelf*-gnu)
8366 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
68568367 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
68578368 wlarc=
68588369 else
68618372 fi
68628373 ;;
68638374
6864 solaris* | sysv5*)
6865 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8375 solaris*)
8376 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
68668377 ld_shlibs=no
6867 cat <<EOF 1>&2
8378 cat <<_LT_EOF 1>&2
68688379
68698380 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
68708381 *** create shared libraries on Solaris systems. Therefore, libtool
68738384 *** your PATH or compiler configuration so that the native linker is
68748385 *** used, and then restart.
68758386
6876 EOF
6877 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8387 _LT_EOF
8388 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
68788389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
68798390 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
68808391 else
68828393 fi
68838394 ;;
68848395
8396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8397 case `$LD -v 2>&1` in
8398 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8399 ld_shlibs=no
8400 cat <<_LT_EOF 1>&2
8401
8402 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8403 *** reliably create shared libraries on SCO systems. Therefore, libtool
8404 *** is disabling shared libraries support. We urge you to upgrade GNU
8405 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8406 *** your PATH or compiler configuration so that the native linker is
8407 *** used, and then restart.
8408
8409 _LT_EOF
8410 ;;
8411 *)
8412 # For security reasons, it is highly recommended that you always
8413 # use absolute paths for naming shared libraries, and exclude the
8414 # DT_RUNPATH tag from executables and libraries. But doing so
8415 # requires that you compile everything twice, which is a pain.
8416 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8420 else
8421 ld_shlibs=no
8422 fi
8423 ;;
8424 esac
8425 ;;
8426
68858427 sunos4*)
68868428 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
68878429 wlarc=
68898431 hardcode_shlibpath_var=no
68908432 ;;
68918433
6892 linux*)
6893 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6894 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6895 archive_cmds="$tmp_archive_cmds"
6896 supports_anon_versioning=no
6897 case `$LD -v 2>/dev/null` in
6898 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6899 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6900 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6901 *\ 2.11.*) ;; # other 2.11 versions
6902 *) supports_anon_versioning=yes ;;
6903 esac
6904 if test $supports_anon_versioning = yes; then
6905 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6906 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6907 $echo "local: *; };" >> $output_objdir/$libname.ver~
6908 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6909 else
6910 archive_expsym_cmds="$tmp_archive_cmds"
6911 fi
6912 link_all_deplibs=no
6913 else
6914 ld_shlibs=no
6915 fi
6916 ;;
6917
69188434 *)
6919 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8435 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
69208436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
69218437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
69228438 else
69258441 ;;
69268442 esac
69278443
6928 if test "$ld_shlibs" = yes; then
6929 runpath_var=LD_RUN_PATH
6930 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6931 export_dynamic_flag_spec='${wl}--export-dynamic'
6932 # ancient GNU ld didn't support --whole-archive et. al.
6933 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6934 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6935 else
6936 whole_archive_flag_spec=
6937 fi
8444 if test "$ld_shlibs" = no; then
8445 runpath_var=
8446 hardcode_libdir_flag_spec=
8447 export_dynamic_flag_spec=
8448 whole_archive_flag_spec=
69388449 fi
69398450 else
69408451 # PORTME fill in a description of your system's linker (not GNU ld)
69468457 # Note: this linker hardcodes the directories in LIBPATH if there
69478458 # are no directories specified by -L.
69488459 hardcode_minus_L=yes
6949 if test "$GCC" = yes && test -z "$link_static_flag"; then
8460 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
69508461 # Neither direct hardcoding nor static linking is supported with a
69518462 # broken collect2.
69528463 hardcode_direct=unsupported
69538464 fi
69548465 ;;
69558466
6956 aix4* | aix5*)
8467 aix[4-9]*)
69578468 if test "$host_cpu" = ia64; then
69588469 # On IA64, the linker does run time linking by default, so we don't
69598470 # have to do anything special.
69638474 else
69648475 # If we're using GNU nm, then we don't want the "-C" option.
69658476 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6966 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6967 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8477 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8478 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
69688479 else
6969 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8480 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
69708481 fi
69718482 aix_use_runtimelinking=no
69728483
69738484 # Test if we are trying to use run time linking or normal
69748485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
69758486 # need to do runtime linking.
6976 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8487 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
69778488 for ld_flag in $LDFLAGS; do
6978 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6979 aix_use_runtimelinking=yes
6980 break
6981 fi
8489 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8490 aix_use_runtimelinking=yes
8491 break
8492 fi
69828493 done
8494 ;;
69838495 esac
69848496
69858497 exp_sym_flag='-bexport'
69948506
69958507 archive_cmds=''
69968508 hardcode_direct=yes
8509 hardcode_direct_absolute=yes
69978510 hardcode_libdir_separator=':'
69988511 link_all_deplibs=yes
8512 file_list_spec='${wl}-f,'
69998513
70008514 if test "$GCC" = yes; then
7001 case $host_os in aix4.012|aix4.012.*)
8515 case $host_os in aix4.[012]|aix4.[012].*)
70028516 # We only want to do this on AIX 4.2 and lower, the check
70038517 # below for broken collect2 doesn't work under 4.3+
70048518 collect2name=`${CC} -print-prog-name=collect2`
7005 if test -f "$collect2name" && \
7006 strings "$collect2name" | grep resolve_lib_name >/dev/null
8519 if test -f "$collect2name" &&
8520 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
70078521 then
7008 # We have reworked collect2
7009 hardcode_direct=yes
8522 # We have reworked collect2
8523 :
70108524 else
7011 # We have old collect2
7012 hardcode_direct=unsupported
7013 # It fails to find uninstalled libraries when the uninstalled
7014 # path is not listed in the libpath. Setting hardcode_minus_L
7015 # to unsupported forces relinking
7016 hardcode_minus_L=yes
7017 hardcode_libdir_flag_spec='-L$libdir'
7018 hardcode_libdir_separator=
8525 # We have old collect2
8526 hardcode_direct=unsupported
8527 # It fails to find uninstalled libraries when the uninstalled
8528 # path is not listed in the libpath. Setting hardcode_minus_L
8529 # to unsupported forces relinking
8530 hardcode_minus_L=yes
8531 hardcode_libdir_flag_spec='-L$libdir'
8532 hardcode_libdir_separator=
70198533 fi
8534 ;;
70208535 esac
70218536 shared_flag='-shared'
8537 if test "$aix_use_runtimelinking" = yes; then
8538 shared_flag="$shared_flag "'${wl}-G'
8539 fi
8540 link_all_deplibs=no
70228541 else
70238542 # not using gcc
70248543 if test "$host_cpu" = ia64; then
7025 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7026 # chokes on -Wl,-G. The following line is correct:
8544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8545 # chokes on -Wl,-G. The following line is correct:
70278546 shared_flag='-G'
70288547 else
7029 if test "$aix_use_runtimelinking" = yes; then
8548 if test "$aix_use_runtimelinking" = yes; then
70308549 shared_flag='${wl}-G'
70318550 else
70328551 shared_flag='${wl}-bM:SRE'
7033 fi
8552 fi
70348553 fi
70358554 fi
70368555
8556 export_dynamic_flag_spec='${wl}-bexpall'
70378557 # It seems that -bexpall does not export symbols beginning with
70388558 # underscore (_), so it is better to generate a list of symbols to export.
70398559 always_export_symbols=yes
70418561 # Warning - without using the other runtime loading flags (-brtl),
70428562 # -berok will link without error, but may produce a broken library.
70438563 allow_undefined_flag='-berok'
7044 # Determine the default libpath from the value encoded in an empty executable.
7045 cat >conftest.$ac_ext <<_ACEOF
8564 # Determine the default libpath from the value encoded in an
8565 # empty executable.
8566 cat >conftest.$ac_ext <<_ACEOF
70468567 /* confdefs.h. */
70478568 _ACEOF
70488569 cat confdefs.h >>conftest.$ac_ext
70588579 }
70598580 _ACEOF
70608581 rm -f conftest.$ac_objext conftest$ac_exeext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062 (eval $ac_link) 2>conftest.er1
8582 if { (ac_try="$ac_link"
8583 case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8586 esac
8587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8588 $as_echo "$ac_try_echo") >&5
8589 (eval "$ac_link") 2>conftest.er1
70638590 ac_status=$?
70648591 grep -v '^ *+' conftest.er1 >conftest.err
70658592 rm -f conftest.er1
70668593 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } &&
7069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; } &&
7075 { ac_try='test -s conftest$ac_exeext'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; }; then
7081
7082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7083 }'`
8594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest$ac_exeext && {
8599 test "$cross_compiling" = yes ||
8600 $as_test_x conftest$ac_exeext
8601 }; then
8602
8603 lt_aix_libpath_sed='
8604 /Import File Strings/,/^$/ {
8605 /^0/ {
8606 s/^0 *\(.*\)$/\1/
8607 p
8608 }
8609 }'
8610 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
70848611 # Check for a 64-bit object if we didn't find anything.
7085 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7086 }'`; fi
7087 else
7088 echo "$as_me: failed program was:" >&5
8612 if test -z "$aix_libpath"; then
8613 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8614 fi
8615 else
8616 $as_echo "$as_me: failed program was:" >&5
70898617 sed 's/^/| /' conftest.$ac_ext >&5
70908618
7091 fi
7092 rm -f conftest.err conftest.$ac_objext \
8619
8620 fi
8621
8622 rm -rf conftest.dSYM
8623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70938624 conftest$ac_exeext conftest.$ac_ext
70948625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
70958626
7096 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7097 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7098 else
8627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8628 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8629 else
70998630 if test "$host_cpu" = ia64; then
71008631 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
71018632 allow_undefined_flag="-z nodefs"
7102 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8633 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"
71038634 else
7104 # Determine the default libpath from the value encoded in an empty executable.
8635 # Determine the default libpath from the value encoded in an
8636 # empty executable.
71058637 cat >conftest.$ac_ext <<_ACEOF
71068638 /* confdefs.h. */
71078639 _ACEOF
71188650 }
71198651 _ACEOF
71208652 rm -f conftest.$ac_objext conftest$ac_exeext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122 (eval $ac_link) 2>conftest.er1
8653 if { (ac_try="$ac_link"
8654 case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8657 esac
8658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8659 $as_echo "$ac_try_echo") >&5
8660 (eval "$ac_link") 2>conftest.er1
71238661 ac_status=$?
71248662 grep -v '^ *+' conftest.er1 >conftest.err
71258663 rm -f conftest.er1
71268664 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } &&
7129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 (eval $ac_try) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; } &&
7135 { ac_try='test -s conftest$ac_exeext'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; }; then
7141
7142 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7143 }'`
8665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } && {
8667 test -z "$ac_c_werror_flag" ||
8668 test ! -s conftest.err
8669 } && test -s conftest$ac_exeext && {
8670 test "$cross_compiling" = yes ||
8671 $as_test_x conftest$ac_exeext
8672 }; then
8673
8674 lt_aix_libpath_sed='
8675 /Import File Strings/,/^$/ {
8676 /^0/ {
8677 s/^0 *\(.*\)$/\1/
8678 p
8679 }
8680 }'
8681 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
71448682 # Check for a 64-bit object if we didn't find anything.
7145 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7146 }'`; fi
7147 else
7148 echo "$as_me: failed program was:" >&5
8683 if test -z "$aix_libpath"; then
8684 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8685 fi
8686 else
8687 $as_echo "$as_me: failed program was:" >&5
71498688 sed 's/^/| /' conftest.$ac_ext >&5
71508689
7151 fi
7152 rm -f conftest.err conftest.$ac_objext \
8690
8691 fi
8692
8693 rm -rf conftest.dSYM
8694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71538695 conftest$ac_exeext conftest.$ac_ext
71548696 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
71558697
71588700 # -berok will link without error, but may produce a broken library.
71598701 no_undefined_flag=' ${wl}-bernotok'
71608702 allow_undefined_flag=' ${wl}-berok'
7161 # -bexpall does not export symbols beginning with underscore (_)
7162 always_export_symbols=yes
71638703 # Exported symbols can be pulled into shared objects from archives
7164 whole_archive_flag_spec=' '
8704 whole_archive_flag_spec='$convenience'
71658705 archive_cmds_need_lc=yes
7166 # This is similar to how AIX traditionally builds it's shared libraries.
7167 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8706 # This is similar to how AIX traditionally builds its shared libraries.
8707 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
71688708 fi
71698709 fi
71708710 ;;
71718711
71728712 amigaos*)
7173 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)'
7174 hardcode_libdir_flag_spec='-L$libdir'
7175 hardcode_minus_L=yes
7176 # see comment about different semantics on the GNU ld section
7177 ld_shlibs=no
8713 case $host_cpu in
8714 powerpc)
8715 # see comment about AmigaOS4 .so support
8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8717 archive_expsym_cmds=''
8718 ;;
8719 m68k)
8720 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)'
8721 hardcode_libdir_flag_spec='-L$libdir'
8722 hardcode_minus_L=yes
8723 ;;
8724 esac
71788725 ;;
71798726
7180 bsdi4*)
8727 bsdi[45]*)
71818728 export_dynamic_flag_spec=-rdynamic
71828729 ;;
71838730
7184 cygwin* | mingw* | pw32*)
8731 cygwin* | mingw* | pw32* | cegcc*)
71858732 # When not using gcc, we currently assume that we are using
71868733 # Microsoft Visual C++.
71878734 # hardcode_libdir_flag_spec is actually meaningless, as there is
71938740 # Tell ltmain to make .dll files, not .so files.
71948741 shrext_cmds=".dll"
71958742 # FIXME: Setting linknames here is a bad hack.
7196 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8743 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
71978744 # The linker will automatically build a .lib file if we build a DLL.
7198 old_archive_From_new_cmds='true'
8745 old_archive_from_new_cmds='true'
71998746 # FIXME: Should let the user specify the lib program.
7200 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8747 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
72018748 fix_srcfile_path='`cygpath -w "$srcfile"`'
72028749 enable_shared_with_static_runtimes=yes
72038750 ;;
72048751
72058752 darwin* | rhapsody*)
7206 if test "$GXX" = yes ; then
7207 archive_cmds_need_lc=no
7208 case "$host_os" in
7209 rhapsody* | darwin1.[012])
7210 allow_undefined_flag='-undefined suppress'
7211 ;;
7212 *) # Darwin 1.3 on
7213 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7214 allow_undefined_flag='-flat_namespace -undefined suppress'
7215 else
7216 case ${MACOSX_DEPLOYMENT_TARGET} in
7217 10.[012])
7218 allow_undefined_flag='-flat_namespace -undefined suppress'
7219 ;;
7220 10.*)
7221 allow_undefined_flag='-undefined dynamic_lookup'
7222 ;;
7223 esac
7224 fi
7225 ;;
7226 esac
7227 lt_int_apple_cc_single_mod=no
7228 output_verbose_link_cmd='echo'
7229 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7230 lt_int_apple_cc_single_mod=yes
7231 fi
7232 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7233 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7234 else
7235 archive_cmds='$CC -r ${wl}-bind_at_load -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'
7236 fi
7237 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7238 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7239 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7240 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7241 else
7242 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7243 fi
7244 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7245 hardcode_direct=no
7246 hardcode_automatic=yes
7247 hardcode_shlibpath_var=unsupported
7248 whole_archive_flag_spec='-all_load $convenience'
7249 link_all_deplibs=yes
7250 else
7251 ld_shlibs=no
7252 fi
8753
8754
8755 archive_cmds_need_lc=no
8756 hardcode_direct=no
8757 hardcode_automatic=yes
8758 hardcode_shlibpath_var=unsupported
8759 whole_archive_flag_spec=''
8760 link_all_deplibs=yes
8761 allow_undefined_flag="$_lt_dar_allow_undefined"
8762 case $cc_basename in
8763 ifort*) _lt_dar_can_shared=yes ;;
8764 *) _lt_dar_can_shared=$GCC ;;
8765 esac
8766 if test "$_lt_dar_can_shared" = "yes"; then
8767 output_verbose_link_cmd=echo
8768 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8769 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8770 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}"
8771 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}"
8772
8773 else
8774 ld_shlibs=no
8775 fi
8776
72538777 ;;
72548778
72558779 dgux*)
72828806 ;;
72838807
72848808 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7285 freebsd* | kfreebsd*-gnu)
8809 freebsd* | dragonfly*)
72868810 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
72878811 hardcode_libdir_flag_spec='-R$libdir'
72888812 hardcode_direct=yes
72918815
72928816 hpux9*)
72938817 if test "$GCC" = yes; then
7294 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8818 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
72958819 else
7296 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8820 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
72978821 fi
72988822 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
72998823 hardcode_libdir_separator=:
73058829 export_dynamic_flag_spec='${wl}-E'
73068830 ;;
73078831
7308 hpux10* | hpux11*)
8832 hpux10*)
73098833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7310 case "$host_cpu" in
7311 hppa*64*|ia64*)
8834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8835 else
8836 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8837 fi
8838 if test "$with_gnu_ld" = no; then
8839 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8840 hardcode_libdir_flag_spec_ld='+b $libdir'
8841 hardcode_libdir_separator=:
8842 hardcode_direct=yes
8843 hardcode_direct_absolute=yes
8844 export_dynamic_flag_spec='${wl}-E'
8845 # hardcode_minus_L: Not really in the search PATH,
8846 # but as the default location of the library.
8847 hardcode_minus_L=yes
8848 fi
8849 ;;
8850
8851 hpux11*)
8852 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8853 case $host_cpu in
8854 hppa*64*)
73128855 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8856 ;;
8857 ia64*)
8858 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
73138859 ;;
73148860 *)
73158861 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
73168862 ;;
73178863 esac
73188864 else
7319 case "$host_cpu" in
7320 hppa*64*|ia64*)
7321 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 case $host_cpu in
8866 hppa*64*)
8867 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8868 ;;
8869 ia64*)
8870 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
73228871 ;;
73238872 *)
7324 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8873 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
73258874 ;;
73268875 esac
73278876 fi
73288877 if test "$with_gnu_ld" = no; then
7329 case "$host_cpu" in
7330 hppa*64*)
7331 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7332 hardcode_libdir_flag_spec_ld='+b $libdir'
7333 hardcode_libdir_separator=:
8878 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8879 hardcode_libdir_separator=:
8880
8881 case $host_cpu in
8882 hppa*64*|ia64*)
73348883 hardcode_direct=no
73358884 hardcode_shlibpath_var=no
73368885 ;;
7337 ia64*)
7338 hardcode_libdir_flag_spec='-L$libdir'
7339 hardcode_direct=no
7340 hardcode_shlibpath_var=no
7341
7342 # hardcode_minus_L: Not really in the search PATH,
7343 # but as the default location of the library.
7344 hardcode_minus_L=yes
7345 ;;
73468886 *)
7347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7348 hardcode_libdir_separator=:
73498887 hardcode_direct=yes
8888 hardcode_direct_absolute=yes
73508889 export_dynamic_flag_spec='${wl}-E'
73518890
73528891 # hardcode_minus_L: Not really in the search PATH,
73598898
73608899 irix5* | irix6* | nonstopux*)
73618900 if test "$GCC" = yes; then
7362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8902 # Try to use the -exported_symbol ld option, if it does not
8903 # work, assume that -exports_file does not work either and
8904 # implicitly export all symbols.
8905 save_LDFLAGS="$LDFLAGS"
8906 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8907 cat >conftest.$ac_ext <<_ACEOF
8908 int foo(void) {}
8909 _ACEOF
8910 rm -f conftest.$ac_objext conftest$ac_exeext
8911 if { (ac_try="$ac_link"
8912 case "(($ac_try" in
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8915 esac
8916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8917 $as_echo "$ac_try_echo") >&5
8918 (eval "$ac_link") 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest$ac_exeext && {
8928 test "$cross_compiling" = yes ||
8929 $as_test_x conftest$ac_exeext
8930 }; then
8931 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8932
8933 else
8934 $as_echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937
8938 fi
8939
8940 rm -rf conftest.dSYM
8941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8942 conftest$ac_exeext conftest.$ac_ext
8943 LDFLAGS="$save_LDFLAGS"
73638944 else
7364 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7365 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8946 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
73668947 fi
8948 archive_cmds_need_lc='no'
73678949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
73688950 hardcode_libdir_separator=:
8951 inherit_rpath=yes
73698952 link_all_deplibs=yes
73708953 ;;
73718954
7372 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8955 netbsd* | netbsdelf*-gnu)
8956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
73748957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
73758958 else
73768959 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
73888971 hardcode_shlibpath_var=no
73898972 ;;
73908973
8974 *nto* | *qnx*)
8975 ;;
8976
73918977 openbsd*)
7392 hardcode_direct=yes
7393 hardcode_shlibpath_var=no
7394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7395 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7396 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7397 export_dynamic_flag_spec='${wl}-E'
8978 if test -f /usr/libexec/ld.so; then
8979 hardcode_direct=yes
8980 hardcode_shlibpath_var=no
8981 hardcode_direct_absolute=yes
8982 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8983 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8984 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8986 export_dynamic_flag_spec='${wl}-E'
8987 else
8988 case $host_os in
8989 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8991 hardcode_libdir_flag_spec='-R$libdir'
8992 ;;
8993 *)
8994 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8996 ;;
8997 esac
8998 fi
73988999 else
7399 case $host_os in
7400 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7402 hardcode_libdir_flag_spec='-R$libdir'
7403 ;;
7404 *)
7405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7407 ;;
7408 esac
9000 ld_shlibs=no
74099001 fi
74109002 ;;
74119003
74139005 hardcode_libdir_flag_spec='-L$libdir'
74149006 hardcode_minus_L=yes
74159007 allow_undefined_flag=unsupported
7416 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7417 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9008 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9009 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
74189010 ;;
74199011
74209012 osf3*)
74219013 if test "$GCC" = yes; then
74229014 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7423 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9015 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
74249016 else
74259017 allow_undefined_flag=' -expect_unresolved \*'
7426 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9018 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
74279019 fi
9020 archive_cmds_need_lc='no'
74289021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
74299022 hardcode_libdir_separator=:
74309023 ;;
74329025 osf4* | osf5*) # as osf3* with the addition of -msym flag
74339026 if test "$GCC" = yes; then
74349027 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7435 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9028 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
74369029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
74379030 else
74389031 allow_undefined_flag=' -expect_unresolved \*'
7439 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7440 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7441 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
9032 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9033 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~
9034 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
74429035
74439036 # Both c and cxx compiler support -rpath directly
74449037 hardcode_libdir_flag_spec='-rpath $libdir'
74459038 fi
9039 archive_cmds_need_lc='no'
74469040 hardcode_libdir_separator=:
74479041 ;;
74489042
7449 sco3.2v5*)
7450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7451 hardcode_shlibpath_var=no
7452 export_dynamic_flag_spec='${wl}-Bexport'
7453 runpath_var=LD_RUN_PATH
7454 hardcode_runpath_var=yes
7455 ;;
7456
74579043 solaris*)
7458 no_undefined_flag=' -z text'
9044 no_undefined_flag=' -z defs'
74599045 if test "$GCC" = yes; then
7460 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7461 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7462 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9046 wlarc='${wl}'
9047 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9048 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9049 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
74639050 else
7464 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7465 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7466 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9051 case `$CC -V 2>&1` in
9052 *"Compilers 5.0"*)
9053 wlarc=''
9054 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9056 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9057 ;;
9058 *)
9059 wlarc='${wl}'
9060 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9062 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9063 ;;
9064 esac
74679065 fi
74689066 hardcode_libdir_flag_spec='-R$libdir'
74699067 hardcode_shlibpath_var=no
74709068 case $host_os in
74719069 solaris2.[0-5] | solaris2.[0-5].*) ;;
7472 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7473 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9070 *)
9071 # The compiler driver will combine and reorder linker options,
9072 # but understands `-z linker_flag'. GCC discards it without `$wl',
9073 # but is careful enough not to reorder.
9074 # Supported since Solaris 2.6 (maybe 2.5.1?)
9075 if test "$GCC" = yes; then
9076 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9077 else
9078 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9079 fi
9080 ;;
74749081 esac
74759082 link_all_deplibs=yes
74769083 ;;
75279134 fi
75289135 ;;
75299136
7530 sysv4.2uw2*)
7531 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7532 hardcode_direct=yes
7533 hardcode_minus_L=no
7534 hardcode_shlibpath_var=no
7535 hardcode_runpath_var=yes
7536 runpath_var=LD_RUN_PATH
7537 ;;
7538
7539 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7540 no_undefined_flag='${wl}-z ${wl}text'
7541 if test "$GCC" = yes; then
7542 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7543 else
7544 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7545 fi
7546 runpath_var='LD_RUN_PATH'
7547 hardcode_shlibpath_var=no
7548 ;;
7549
7550 sysv5*)
7551 no_undefined_flag=' -z text'
7552 # $CC -shared without GNU ld will not create a library from C++
7553 # object files and a static libstdc++, better avoid it by now
7554 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7555 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7556 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7557 hardcode_libdir_flag_spec=
9137 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9138 no_undefined_flag='${wl}-z,text'
9139 archive_cmds_need_lc=no
75589140 hardcode_shlibpath_var=no
75599141 runpath_var='LD_RUN_PATH'
9142
9143 if test "$GCC" = yes; then
9144 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9145 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 else
9147 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9148 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149 fi
9150 ;;
9151
9152 sysv5* | sco3.2v5* | sco5v6*)
9153 # Note: We can NOT use -z defs as we might desire, because we do not
9154 # link with -lc, and that would cause any symbols used from libc to
9155 # always be unresolved, which means just about no library would
9156 # ever link correctly. If we're not using GNU ld we use -z text
9157 # though, which does catch some bad symbols but isn't as heavy-handed
9158 # as -z defs.
9159 no_undefined_flag='${wl}-z,text'
9160 allow_undefined_flag='${wl}-z,nodefs'
9161 archive_cmds_need_lc=no
9162 hardcode_shlibpath_var=no
9163 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9164 hardcode_libdir_separator=':'
9165 link_all_deplibs=yes
9166 export_dynamic_flag_spec='${wl}-Bexport'
9167 runpath_var='LD_RUN_PATH'
9168
9169 if test "$GCC" = yes; then
9170 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9171 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172 else
9173 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9174 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175 fi
75609176 ;;
75619177
75629178 uts4*)
75699185 ld_shlibs=no
75709186 ;;
75719187 esac
9188
9189 if test x$host_vendor = xsni; then
9190 case $host in
9191 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9192 export_dynamic_flag_spec='${wl}-Blargedynsym'
9193 ;;
9194 esac
9195 fi
75729196 fi
75739197
7574 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7575 echo "${ECHO_T}$ld_shlibs" >&6
9198 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9199 $as_echo "$ld_shlibs" >&6; }
75769200 test "$ld_shlibs" = no && can_build_shared=no
75779201
7578 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7579 if test "$GCC" = yes; then
7580 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7581 fi
9202 with_gnu_ld=$with_gnu_ld
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
75829217
75839218 #
75849219 # Do we need to explicitly link libc?
75979232 # Test whether the compiler implicitly links with -lc since on some
75989233 # systems, -lgcc has to come before -lc. If gcc already passes -lc
75999234 # to ld, don't add -lc before -lgcc.
7600 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7601 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7602 $rm conftest*
7603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9235 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9236 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9237 $RM conftest*
9238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
76049239
76059240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
76069241 (eval $ac_compile) 2>&5
76079242 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76099244 (exit $ac_status); } 2>conftest.err; then
76109245 soname=conftest
76119246 lib=conftest
76129247 libobjs=conftest.$ac_objext
76139248 deplibs=
76149249 wl=$lt_prog_compiler_wl
9250 pic_flag=$lt_prog_compiler_pic
76159251 compiler_flags=-v
76169252 linker_flags=-v
76179253 verstring=
76199255 libname=conftest
76209256 lt_save_allow_undefined_flag=$allow_undefined_flag
76219257 allow_undefined_flag=
7622 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7623 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9258 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9259 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
76249260 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76269262 (exit $ac_status); }
76279263 then
76289264 archive_cmds_need_lc=no
76339269 else
76349270 cat conftest.err 1>&5
76359271 fi
7636 $rm conftest*
7637 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7638 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9272 $RM conftest*
9273 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9274 $as_echo "$archive_cmds_need_lc" >&6; }
76399275 ;;
76409276 esac
76419277 fi
76429278 ;;
76439279 esac
76449280
7645 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7646 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9438 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9439
9440 if test "$GCC" = yes; then
9441 case $host_os in
9442 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9443 *) lt_awk_arg="/^libraries:/" ;;
9444 esac
9445 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9446 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9447 # if the path contains ";" then we assume it to be the separator
9448 # otherwise default to the standard path separator (i.e. ":") - it is
9449 # assumed that no part of a normal pathname contains ";" but that should
9450 # okay in the real world where ";" in dirpaths is itself problematic.
9451 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9452 else
9453 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9454 fi
9455 # Ok, now we have the path, separated by spaces, we can step through it
9456 # and add multilib dir if necessary.
9457 lt_tmp_lt_search_path_spec=
9458 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9459 for lt_sys_path in $lt_search_path_spec; do
9460 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9462 else
9463 test -d "$lt_sys_path" && \
9464 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9465 fi
9466 done
9467 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9468 BEGIN {RS=" "; FS="/|\n";} {
9469 lt_foo="";
9470 lt_count=0;
9471 for (lt_i = NF; lt_i > 0; lt_i--) {
9472 if ($lt_i != "" && $lt_i != ".") {
9473 if ($lt_i == "..") {
9474 lt_count++;
9475 } else {
9476 if (lt_count == 0) {
9477 lt_foo="/" $lt_i lt_foo;
9478 } else {
9479 lt_count--;
9480 }
9481 }
9482 }
9483 }
9484 if (lt_foo != "") { lt_freq[lt_foo]++; }
9485 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9486 }'`
9487 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9488 else
9489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9490 fi
76479491 library_names_spec=
76489492 libname_spec='lib$name'
76499493 soname_spec=
76579501 version_type=none
76589502 dynamic_linker="$host_os ld.so"
76599503 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7660 if test "$GCC" = yes; then
7661 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7662 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7663 # if the path contains ";" then we assume it to be the separator
7664 # otherwise default to the standard path separator (i.e. ":") - it is
7665 # assumed that no part of a normal pathname contains ";" but that should
7666 # okay in the real world where ";" in dirpaths is itself problematic.
7667 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7668 else
7669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7670 fi
7671 else
7672 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7673 fi
76749504 need_lib_prefix=unknown
76759505 hardcode_into_libs=no
76769506
76889518 soname_spec='${libname}${release}${shared_ext}$major'
76899519 ;;
76909520
7691 aix4* | aix5*)
9521 aix[4-9]*)
76929522 version_type=linux
76939523 need_lib_prefix=no
76949524 need_version=no
77079537 aix4 | aix4.[01] | aix4.[01].*)
77089538 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
77099539 echo ' yes '
7710 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9540 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
77119541 :
77129542 else
77139543 can_build_shared=no
77339563 ;;
77349564
77359565 amigaos*)
7736 library_names_spec='$libname.ixlibrary $libname.a'
7737 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7738 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9566 case $host_cpu in
9567 powerpc)
9568 # Since July 2007 AmigaOS4 officially supports .so libraries.
9569 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 ;;
9572 m68k)
9573 library_names_spec='$libname.ixlibrary $libname.a'
9574 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9575 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9576 ;;
9577 esac
77399578 ;;
77409579
77419580 beos*)
77449583 shlibpath_var=LIBRARY_PATH
77459584 ;;
77469585
7747 bsdi4*)
9586 bsdi[45]*)
77489587 version_type=linux
77499588 need_version=no
77509589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
77589597 # libtool to hard-code these into programs
77599598 ;;
77609599
7761 cygwin* | mingw* | pw32*)
9600 cygwin* | mingw* | pw32* | cegcc*)
77629601 version_type=windows
77639602 shrext_cmds=".dll"
77649603 need_version=no
77659604 need_lib_prefix=no
77669605
77679606 case $GCC,$host_os in
7768 yes,cygwin* | yes,mingw* | yes,pw32*)
9607 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
77699608 library_names_spec='$libname.dll.a'
77709609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
77719610 postinstall_cmds='base_file=`basename \${file}`~
7772 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
77739612 dldir=$destdir/`dirname \$dlpath`~
77749613 test -d \$dldir || mkdir -p \$dldir~
7775 $install_prog $dir/$dlname \$dldir/$dlname'
9614 $install_prog $dir/$dlname \$dldir/$dlname~
9615 chmod a+x \$dldir/$dlname~
9616 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9617 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9618 fi'
77769619 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
77779620 dlpath=$dir/\$dldll~
7778 $rm \$dlpath'
9621 $RM \$dlpath'
77799622 shlibpath_overrides_runpath=yes
77809623
77819624 case $host_os in
77849627 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
77859628 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
77869629 ;;
7787 mingw*)
9630 mingw* | cegcc*)
77889631 # MinGW DLLs use traditional 'lib' prefix
77899632 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7790 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7791 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9633 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9634 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
77929635 # It is most probably a Windows format PATH printed by
77939636 # mingw gcc, but we are running on Cygwin. Gcc prints its search
77949637 # path with ; separators, and with drive letters. We can handle the
77959638 # drive letters (cygwin fileutils understands them), so leave them,
77969639 # especially as we might pass files found there to a mingw objdump,
77979640 # which wouldn't understand a cygwinified path. Ahh.
7798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
77999642 else
7800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9643 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
78019644 fi
78029645 ;;
78039646 pw32*)
78049647 # pw32 DLLs use 'pw' prefix rather than 'lib'
7805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9648 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
78069649 ;;
78079650 esac
78089651 ;;
78219664 version_type=darwin
78229665 need_lib_prefix=no
78239666 need_version=no
7824 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9667 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
78259668 soname_spec='${libname}${release}${major}$shared_ext'
78269669 shlibpath_overrides_runpath=yes
78279670 shlibpath_var=DYLD_LIBRARY_PATH
7828 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7829 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7830 if test "$GCC" = yes; then
7831 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7832 else
7833 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7834 fi
9671 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9672
9673 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
78359674 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
78369675 ;;
78379676
78489687 dynamic_linker=no
78499688 ;;
78509689
7851 kfreebsd*-gnu)
7852 version_type=linux
7853 need_lib_prefix=no
7854 need_version=no
7855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7856 soname_spec='${libname}${release}${shared_ext}$major'
7857 shlibpath_var=LD_LIBRARY_PATH
7858 shlibpath_overrides_runpath=no
7859 hardcode_into_libs=yes
7860 dynamic_linker='GNU ld.so'
7861 ;;
7862
7863 freebsd*)
7864 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9690 freebsd* | dragonfly*)
9691 # DragonFly does not have aout. When/if they implement a new
9692 # versioning mechanism, adjust this.
9693 if test -x /usr/bin/objformat; then
9694 objformat=`/usr/bin/objformat`
9695 else
9696 case $host_os in
9697 freebsd[123]*) objformat=aout ;;
9698 *) objformat=elf ;;
9699 esac
9700 fi
78659701 version_type=freebsd-$objformat
78669702 case $version_type in
78679703 freebsd-elf*)
78799715 freebsd2*)
78809716 shlibpath_overrides_runpath=yes
78819717 ;;
7882 freebsd3.01* | freebsdelf3.01*)
9718 freebsd3.[01]* | freebsdelf3.[01]*)
78839719 shlibpath_overrides_runpath=yes
78849720 hardcode_into_libs=yes
78859721 ;;
7886 *) # from 3.2 on
9722 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9723 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
78879724 shlibpath_overrides_runpath=no
9725 hardcode_into_libs=yes
9726 ;;
9727 *) # from 4.6 on, and DragonFly
9728 shlibpath_overrides_runpath=yes
78889729 hardcode_into_libs=yes
78899730 ;;
78909731 esac
79069747 version_type=sunos
79079748 need_lib_prefix=no
79089749 need_version=no
7909 case "$host_cpu" in
9750 case $host_cpu in
79109751 ia64*)
79119752 shrext_cmds='.so'
79129753 hardcode_into_libs=yes
79229763 fi
79239764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
79249765 ;;
7925 hppa*64*)
7926 shrext_cmds='.sl'
7927 hardcode_into_libs=yes
7928 dynamic_linker="$host_os dld.sl"
7929 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7932 soname_spec='${libname}${release}${shared_ext}$major'
7933 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7935 ;;
7936 *)
9766 hppa*64*)
9767 shrext_cmds='.sl'
9768 hardcode_into_libs=yes
9769 dynamic_linker="$host_os dld.sl"
9770 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9776 ;;
9777 *)
79379778 shrext_cmds='.sl'
79389779 dynamic_linker="$host_os dld.sl"
79399780 shlibpath_var=SHLIB_PATH
79449785 esac
79459786 # HP-UX runs *really* slowly unless shared libraries are mode 555.
79469787 postinstall_cmds='chmod 555 $lib'
9788 ;;
9789
9790 interix[3-9]*)
9791 version_type=linux
9792 need_lib_prefix=no
9793 need_version=no
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9795 soname_spec='${libname}${release}${shared_ext}$major'
9796 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9797 shlibpath_var=LD_LIBRARY_PATH
9798 shlibpath_overrides_runpath=no
9799 hardcode_into_libs=yes
79479800 ;;
79489801
79499802 irix5* | irix6* | nonstopux*)
79899842 ;;
79909843
79919844 # This must be Linux ELF.
7992 linux*)
9845 linux* | k*bsd*-gnu)
79939846 version_type=linux
79949847 need_lib_prefix=no
79959848 need_version=no
79989851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
79999852 shlibpath_var=LD_LIBRARY_PATH
80009853 shlibpath_overrides_runpath=no
9854 # Some binutils ld are patched to set DT_RUNPATH
9855 save_LDFLAGS=$LDFLAGS
9856 save_libdir=$libdir
9857 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9858 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9859 cat >conftest.$ac_ext <<_ACEOF
9860 /* confdefs.h. */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9865
9866 int
9867 main ()
9868 {
9869
9870 ;
9871 return 0;
9872 }
9873 _ACEOF
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (ac_try="$ac_link"
9876 case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879 esac
9880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9881 $as_echo "$ac_try_echo") >&5
9882 (eval "$ac_link") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest$ac_exeext && {
9892 test "$cross_compiling" = yes ||
9893 $as_test_x conftest$ac_exeext
9894 }; then
9895 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9896 shlibpath_overrides_runpath=yes
9897 fi
9898
9899 else
9900 $as_echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903
9904 fi
9905
9906 rm -rf conftest.dSYM
9907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9908 conftest$ac_exeext conftest.$ac_ext
9909 LDFLAGS=$save_LDFLAGS
9910 libdir=$save_libdir
9911
80019912 # This implies no fast_install, which is unacceptable.
80029913 # Some rework will be needed to allow for fast_install
80039914 # before this can be enabled.
80059916
80069917 # Append ld.so.conf contents to the search path
80079918 if test -f /etc/ld.so.conf; then
8008 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9919 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
80099920 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
80109921 fi
80119922
80309941 dynamic_linker='NetBSD ld.elf_so'
80319942 ;;
80329943
8033 knetbsd*-gnu)
8034 version_type=linux
8035 need_lib_prefix=no
8036 need_version=no
8037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8038 soname_spec='${libname}${release}${shared_ext}$major'
8039 shlibpath_var=LD_LIBRARY_PATH
8040 shlibpath_overrides_runpath=no
8041 hardcode_into_libs=yes
8042 dynamic_linker='GNU ld.so'
8043 ;;
8044
80459944 netbsd*)
80469945 version_type=sunos
80479946 need_lib_prefix=no
80489947 need_version=no
8049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
80509949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
80519950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
80529951 dynamic_linker='NetBSD (a.out) ld.so'
80679966 shlibpath_overrides_runpath=yes
80689967 ;;
80699968
8070 nto-qnx*)
8071 version_type=linux
9969 *nto* | *qnx*)
9970 version_type=qnx
80729971 need_lib_prefix=no
80739972 need_version=no
80749973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
80759974 soname_spec='${libname}${release}${shared_ext}$major'
80769975 shlibpath_var=LD_LIBRARY_PATH
8077 shlibpath_overrides_runpath=yes
9976 shlibpath_overrides_runpath=no
9977 hardcode_into_libs=yes
9978 dynamic_linker='ldqnx.so'
80789979 ;;
80799980
80809981 openbsd*)
80819982 version_type=sunos
9983 sys_lib_dlsearch_path_spec="/usr/lib"
80829984 need_lib_prefix=no
8083 need_version=yes
9985 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9986 case $host_os in
9987 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9988 *) need_version=no ;;
9989 esac
80849990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
80859991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
80869992 shlibpath_var=LD_LIBRARY_PATH
8087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
80889994 case $host_os in
80899995 openbsd2.[89] | openbsd2.[89].*)
80909996 shlibpath_overrides_runpath=no
811810024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
811910025 ;;
812010026
8121 sco3.2v5*)
8122 version_type=osf
8123 soname_spec='${libname}${release}${shared_ext}$major'
8124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8125 shlibpath_var=LD_LIBRARY_PATH
10027 rdos*)
10028 dynamic_linker=no
812610029 ;;
812710030
812810031 solaris*)
815010053 need_version=yes
815110054 ;;
815210055
8153 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10056 sysv4 | sysv4.3*)
815410057 version_type=linux
815510058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
815610059 soname_spec='${libname}${release}${shared_ext}$major'
815910062 sni)
816010063 shlibpath_overrides_runpath=no
816110064 need_lib_prefix=no
8162 export_dynamic_flag_spec='${wl}-Blargedynsym'
816310065 runpath_var=LD_RUN_PATH
816410066 ;;
816510067 siemens)
818310085 fi
818410086 ;;
818510087
10088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10089 version_type=freebsd-elf
10090 need_lib_prefix=no
10091 need_version=no
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 shlibpath_var=LD_LIBRARY_PATH
10095 shlibpath_overrides_runpath=yes
10096 hardcode_into_libs=yes
10097 if test "$with_gnu_ld" = yes; then
10098 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10099 else
10100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10101 case $host_os in
10102 sco3.2v5*)
10103 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10104 ;;
10105 esac
10106 fi
10107 sys_lib_dlsearch_path_spec='/usr/lib'
10108 ;;
10109
10110 tpf*)
10111 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10112 version_type=linux
10113 need_lib_prefix=no
10114 need_version=no
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 shlibpath_overrides_runpath=no
10118 hardcode_into_libs=yes
10119 ;;
10120
818610121 uts4*)
818710122 version_type=linux
818810123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
819410129 dynamic_linker=no
819510130 ;;
819610131 esac
8197 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8198 echo "${ECHO_T}$dynamic_linker" >&6
10132 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10133 $as_echo "$dynamic_linker" >&6; }
819910134 test "$dynamic_linker" = no && can_build_shared=no
820010135
8201 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8202 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10137 if test "$GCC" = yes; then
10138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10139 fi
10140
10141 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10142 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10143 fi
10144 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10145 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10146 fi
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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
820310236 hardcode_action=
8204 if test -n "$hardcode_libdir_flag_spec" || \
8205 test -n "$runpath_var " || \
8206 test "X$hardcode_automatic"="Xyes" ; then
8207
8208 # We can hardcode non-existant directories.
10237 if test -n "$hardcode_libdir_flag_spec" ||
10238 test -n "$runpath_var" ||
10239 test "X$hardcode_automatic" = "Xyes" ; then
10240
10241 # We can hardcode non-existent directories.
820910242 if test "$hardcode_direct" != no &&
821010243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
821110244 # have to relink, otherwise we might link with an installed library
821210245 # when we should be linking with a yet-to-be-installed one
8213 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10246 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
821410247 test "$hardcode_minus_L" != no; then
821510248 # Linking always hardcodes the temporary library directory.
821610249 hardcode_action=relink
822310256 # directories.
822410257 hardcode_action=unsupported
822510258 fi
8226 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8227 echo "${ECHO_T}$hardcode_action" >&6
8228
8229 if test "$hardcode_action" = relink; then
10259 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10260 $as_echo "$hardcode_action" >&6; }
10261
10262 if test "$hardcode_action" = relink ||
10263 test "$inherit_rpath" = yes; then
823010264 # Fast installation is not supported
823110265 enable_fast_install=no
823210266 elif test "$shlibpath_overrides_runpath" = yes ||
823510269 enable_fast_install=needless
823610270 fi
823710271
8238 striplib=
8239 old_striplib=
8240 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8241 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8242 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8243 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8244 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8245 echo "$as_me:$LINENO: result: yes" >&5
8246 echo "${ECHO_T}yes" >&6
8247 else
8248 # FIXME - insert some real tests, host_os isn't really good enough
8249 case $host_os in
8250 darwin*)
8251 if test -n "$STRIP" ; then
8252 striplib="$STRIP -x"
8253 echo "$as_me:$LINENO: result: yes" >&5
8254 echo "${ECHO_T}yes" >&6
8255 else
8256 echo "$as_me:$LINENO: result: no" >&5
8257 echo "${ECHO_T}no" >&6
8258 fi
8259 ;;
8260 *)
8261 echo "$as_me:$LINENO: result: no" >&5
8262 echo "${ECHO_T}no" >&6
8263 ;;
8264 esac
8265 fi
8266
8267 if test "x$enable_dlopen" != xyes; then
10272
10273
10274
10275
10276
10277 if test "x$enable_dlopen" != xyes; then
826810278 enable_dlopen=unknown
826910279 enable_dlopen_self=unknown
827010280 enable_dlopen_self_static=unknown
827910289 lt_cv_dlopen_self=yes
828010290 ;;
828110291
8282 mingw* | pw32*)
10292 mingw* | pw32* | cegcc*)
828310293 lt_cv_dlopen="LoadLibrary"
828410294 lt_cv_dlopen_libs=
8285 ;;
10295 ;;
828610296
828710297 cygwin*)
828810298 lt_cv_dlopen="dlopen"
828910299 lt_cv_dlopen_libs=
8290 ;;
10300 ;;
829110301
829210302 darwin*)
829310303 # if libdl is installed we need to link against it
8294 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8295 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10304 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
829610306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 $as_echo_n "(cached) " >&6
829810308 else
829910309 ac_check_lib_save_LIBS=$LIBS
830010310 LIBS="-ldl $LIBS"
830510315 cat >>conftest.$ac_ext <<_ACEOF
830610316 /* end confdefs.h. */
830710317
8308 /* Override any gcc2 internal prototype to avoid an error. */
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
830910321 #ifdef __cplusplus
831010322 extern "C"
831110323 #endif
8312 /* We use char because int might match the return type of a gcc2
8313 builtin and then its argument prototype would still apply. */
831410324 char dlopen ();
831510325 int
831610326 main ()
831710327 {
8318 dlopen ();
10328 return dlopen ();
831910329 ;
832010330 return 0;
832110331 }
832210332 _ACEOF
832310333 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325 (eval $ac_link) 2>conftest.er1
10334 if { (ac_try="$ac_link"
10335 case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10338 esac
10339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10340 $as_echo "$ac_try_echo") >&5
10341 (eval "$ac_link") 2>conftest.er1
832610342 ac_status=$?
832710343 grep -v '^ *+' conftest.er1 >conftest.err
832810344 rm -f conftest.er1
832910345 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } &&
8332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
10346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && {
10348 test -z "$ac_c_werror_flag" ||
10349 test ! -s conftest.err
10350 } && test -s conftest$ac_exeext && {
10351 test "$cross_compiling" = yes ||
10352 $as_test_x conftest$ac_exeext
10353 }; then
834410354 ac_cv_lib_dl_dlopen=yes
834510355 else
8346 echo "$as_me: failed program was:" >&5
10356 $as_echo "$as_me: failed program was:" >&5
834710357 sed 's/^/| /' conftest.$ac_ext >&5
834810358
8349 ac_cv_lib_dl_dlopen=no
8350 fi
8351 rm -f conftest.err conftest.$ac_objext \
10359 ac_cv_lib_dl_dlopen=no
10360 fi
10361
10362 rm -rf conftest.dSYM
10363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
835210364 conftest$ac_exeext conftest.$ac_ext
835310365 LIBS=$ac_check_lib_save_LIBS
835410366 fi
8355 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8356 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8357 if test $ac_cv_lib_dl_dlopen = yes; then
10367 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10368 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10369 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
835810370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
835910371 else
836010372
836410376
836510377 fi
836610378
8367 ;;
10379 ;;
836810380
836910381 *)
8370 echo "$as_me:$LINENO: checking for shl_load" >&5
8371 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10382 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10383 $as_echo_n "checking for shl_load... " >&6; }
837210384 if test "${ac_cv_func_shl_load+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 $as_echo_n "(cached) " >&6
837410386 else
837510387 cat >conftest.$ac_ext <<_ACEOF
837610388 /* confdefs.h. */
839510407
839610408 #undef shl_load
839710409
8398 /* Override any gcc2 internal prototype to avoid an error. */
10410 /* Override any GCC internal prototype to avoid an error.
10411 Use char because int might match the return type of a GCC
10412 builtin and then its argument prototype would still apply. */
839910413 #ifdef __cplusplus
840010414 extern "C"
8401 {
840210415 #endif
8403 /* We use char because int might match the return type of a gcc2
8404 builtin and then its argument prototype would still apply. */
840510416 char shl_load ();
840610417 /* The GNU C library defines this for functions which it implements
840710418 to always fail with ENOSYS. Some functions are actually named
840810419 something starting with __ and the normal name is an alias. */
8409 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10420 #if defined __stub_shl_load || defined __stub___shl_load
841010421 choke me
8411 #else
8412 char (*f) () = shl_load;
8413 #endif
8414 #ifdef __cplusplus
8415 }
841610422 #endif
841710423
841810424 int
841910425 main ()
842010426 {
8421 return f != shl_load;
10427 return shl_load ();
842210428 ;
842310429 return 0;
842410430 }
842510431 _ACEOF
842610432 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>conftest.er1
10433 if { (ac_try="$ac_link"
10434 case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437 esac
10438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10439 $as_echo "$ac_try_echo") >&5
10440 (eval "$ac_link") 2>conftest.er1
842910441 ac_status=$?
843010442 grep -v '^ *+' conftest.er1 >conftest.err
843110443 rm -f conftest.er1
843210444 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 (eval $ac_try) 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; } &&
8441 { ac_try='test -s conftest$ac_exeext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 (eval $ac_try) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
10445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && {
10447 test -z "$ac_c_werror_flag" ||
10448 test ! -s conftest.err
10449 } && test -s conftest$ac_exeext && {
10450 test "$cross_compiling" = yes ||
10451 $as_test_x conftest$ac_exeext
10452 }; then
844710453 ac_cv_func_shl_load=yes
844810454 else
8449 echo "$as_me: failed program was:" >&5
10455 $as_echo "$as_me: failed program was:" >&5
845010456 sed 's/^/| /' conftest.$ac_ext >&5
845110457
8452 ac_cv_func_shl_load=no
8453 fi
8454 rm -f conftest.err conftest.$ac_objext \
10458 ac_cv_func_shl_load=no
10459 fi
10460
10461 rm -rf conftest.dSYM
10462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
845510463 conftest$ac_exeext conftest.$ac_ext
845610464 fi
8457 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8458 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8459 if test $ac_cv_func_shl_load = yes; then
10465 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10466 $as_echo "$ac_cv_func_shl_load" >&6; }
10467 if test "x$ac_cv_func_shl_load" = x""yes; then
846010468 lt_cv_dlopen="shl_load"
846110469 else
8462 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8463 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10470 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10471 $as_echo_n "checking for shl_load in -ldld... " >&6; }
846410472 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 $as_echo_n "(cached) " >&6
846610474 else
846710475 ac_check_lib_save_LIBS=$LIBS
846810476 LIBS="-ldld $LIBS"
847310481 cat >>conftest.$ac_ext <<_ACEOF
847410482 /* end confdefs.h. */
847510483
8476 /* Override any gcc2 internal prototype to avoid an error. */
10484 /* Override any GCC internal prototype to avoid an error.
10485 Use char because int might match the return type of a GCC
10486 builtin and then its argument prototype would still apply. */
847710487 #ifdef __cplusplus
847810488 extern "C"
847910489 #endif
8480 /* We use char because int might match the return type of a gcc2
8481 builtin and then its argument prototype would still apply. */
848210490 char shl_load ();
848310491 int
848410492 main ()
848510493 {
8486 shl_load ();
10494 return shl_load ();
848710495 ;
848810496 return 0;
848910497 }
849010498 _ACEOF
849110499 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8493 (eval $ac_link) 2>conftest.er1
10500 if { (ac_try="$ac_link"
10501 case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10504 esac
10505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10506 $as_echo "$ac_try_echo") >&5
10507 (eval "$ac_link") 2>conftest.er1
849410508 ac_status=$?
849510509 grep -v '^ *+' conftest.er1 >conftest.err
849610510 rm -f conftest.er1
849710511 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; } &&
8506 { ac_try='test -s conftest$ac_exeext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 (eval $ac_try) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
10512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && {
10514 test -z "$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10516 } && test -s conftest$ac_exeext && {
10517 test "$cross_compiling" = yes ||
10518 $as_test_x conftest$ac_exeext
10519 }; then
851210520 ac_cv_lib_dld_shl_load=yes
851310521 else
8514 echo "$as_me: failed program was:" >&5
10522 $as_echo "$as_me: failed program was:" >&5
851510523 sed 's/^/| /' conftest.$ac_ext >&5
851610524
8517 ac_cv_lib_dld_shl_load=no
8518 fi
8519 rm -f conftest.err conftest.$ac_objext \
10525 ac_cv_lib_dld_shl_load=no
10526 fi
10527
10528 rm -rf conftest.dSYM
10529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
852010530 conftest$ac_exeext conftest.$ac_ext
852110531 LIBS=$ac_check_lib_save_LIBS
852210532 fi
8523 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8524 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8525 if test $ac_cv_lib_dld_shl_load = yes; then
8526 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8527 else
8528 echo "$as_me:$LINENO: checking for dlopen" >&5
8529 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10533 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10534 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10535 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10536 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10537 else
10538 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10539 $as_echo_n "checking for dlopen... " >&6; }
853010540 if test "${ac_cv_func_dlopen+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 $as_echo_n "(cached) " >&6
853210542 else
853310543 cat >conftest.$ac_ext <<_ACEOF
853410544 /* confdefs.h. */
855310563
855410564 #undef dlopen
855510565
8556 /* Override any gcc2 internal prototype to avoid an error. */
10566 /* Override any GCC internal prototype to avoid an error.
10567 Use char because int might match the return type of a GCC
10568 builtin and then its argument prototype would still apply. */
855710569 #ifdef __cplusplus
855810570 extern "C"
8559 {
856010571 #endif
8561 /* We use char because int might match the return type of a gcc2
8562 builtin and then its argument prototype would still apply. */
856310572 char dlopen ();
856410573 /* The GNU C library defines this for functions which it implements
856510574 to always fail with ENOSYS. Some functions are actually named
856610575 something starting with __ and the normal name is an alias. */
8567 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10576 #if defined __stub_dlopen || defined __stub___dlopen
856810577 choke me
8569 #else
8570 char (*f) () = dlopen;
8571 #endif
8572 #ifdef __cplusplus
8573 }
857410578 #endif
857510579
857610580 int
857710581 main ()
857810582 {
8579 return f != dlopen;
10583 return dlopen ();
858010584 ;
858110585 return 0;
858210586 }
858310587 _ACEOF
858410588 rm -f conftest.$ac_objext conftest$ac_exeext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586 (eval $ac_link) 2>conftest.er1
10589 if { (ac_try="$ac_link"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593 esac
10594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10595 $as_echo "$ac_try_echo") >&5
10596 (eval "$ac_link") 2>conftest.er1
858710597 ac_status=$?
858810598 grep -v '^ *+' conftest.er1 >conftest.err
858910599 rm -f conftest.er1
859010600 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 (eval $ac_try) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest$ac_exeext'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 (eval $ac_try) 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
10601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && {
10603 test -z "$ac_c_werror_flag" ||
10604 test ! -s conftest.err
10605 } && test -s conftest$ac_exeext && {
10606 test "$cross_compiling" = yes ||
10607 $as_test_x conftest$ac_exeext
10608 }; then
860510609 ac_cv_func_dlopen=yes
860610610 else
8607 echo "$as_me: failed program was:" >&5
10611 $as_echo "$as_me: failed program was:" >&5
860810612 sed 's/^/| /' conftest.$ac_ext >&5
860910613
8610 ac_cv_func_dlopen=no
8611 fi
8612 rm -f conftest.err conftest.$ac_objext \
10614 ac_cv_func_dlopen=no
10615 fi
10616
10617 rm -rf conftest.dSYM
10618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
861310619 conftest$ac_exeext conftest.$ac_ext
861410620 fi
8615 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8616 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8617 if test $ac_cv_func_dlopen = yes; then
10621 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10622 $as_echo "$ac_cv_func_dlopen" >&6; }
10623 if test "x$ac_cv_func_dlopen" = x""yes; then
861810624 lt_cv_dlopen="dlopen"
861910625 else
8620 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8621 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10626 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
862210628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 $as_echo_n "(cached) " >&6
862410630 else
862510631 ac_check_lib_save_LIBS=$LIBS
862610632 LIBS="-ldl $LIBS"
863110637 cat >>conftest.$ac_ext <<_ACEOF
863210638 /* end confdefs.h. */
863310639
8634 /* Override any gcc2 internal prototype to avoid an error. */
10640 /* Override any GCC internal prototype to avoid an error.
10641 Use char because int might match the return type of a GCC
10642 builtin and then its argument prototype would still apply. */
863510643 #ifdef __cplusplus
863610644 extern "C"
863710645 #endif
8638 /* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
864010646 char dlopen ();
864110647 int
864210648 main ()
864310649 {
8644 dlopen ();
10650 return dlopen ();
864510651 ;
864610652 return 0;
864710653 }
864810654 _ACEOF
864910655 rm -f conftest.$ac_objext conftest$ac_exeext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8651 (eval $ac_link) 2>conftest.er1
10656 if { (ac_try="$ac_link"
10657 case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660 esac
10661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10662 $as_echo "$ac_try_echo") >&5
10663 (eval "$ac_link") 2>conftest.er1
865210664 ac_status=$?
865310665 grep -v '^ *+' conftest.er1 >conftest.err
865410666 rm -f conftest.er1
865510667 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; } &&
8664 { ac_try='test -s conftest$ac_exeext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
10668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && {
10670 test -z "$ac_c_werror_flag" ||
10671 test ! -s conftest.err
10672 } && test -s conftest$ac_exeext && {
10673 test "$cross_compiling" = yes ||
10674 $as_test_x conftest$ac_exeext
10675 }; then
867010676 ac_cv_lib_dl_dlopen=yes
867110677 else
8672 echo "$as_me: failed program was:" >&5
10678 $as_echo "$as_me: failed program was:" >&5
867310679 sed 's/^/| /' conftest.$ac_ext >&5
867410680
8675 ac_cv_lib_dl_dlopen=no
8676 fi
8677 rm -f conftest.err conftest.$ac_objext \
10681 ac_cv_lib_dl_dlopen=no
10682 fi
10683
10684 rm -rf conftest.dSYM
10685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
867810686 conftest$ac_exeext conftest.$ac_ext
867910687 LIBS=$ac_check_lib_save_LIBS
868010688 fi
8681 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8683 if test $ac_cv_lib_dl_dlopen = yes; then
10689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10691 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
868410692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
868510693 else
8686 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8687 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10694 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10695 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
868810696 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 $as_echo_n "(cached) " >&6
869010698 else
869110699 ac_check_lib_save_LIBS=$LIBS
869210700 LIBS="-lsvld $LIBS"
869710705 cat >>conftest.$ac_ext <<_ACEOF
869810706 /* end confdefs.h. */
869910707
8700 /* Override any gcc2 internal prototype to avoid an error. */
10708 /* Override any GCC internal prototype to avoid an error.
10709 Use char because int might match the return type of a GCC
10710 builtin and then its argument prototype would still apply. */
870110711 #ifdef __cplusplus
870210712 extern "C"
870310713 #endif
8704 /* We use char because int might match the return type of a gcc2
8705 builtin and then its argument prototype would still apply. */
870610714 char dlopen ();
870710715 int
870810716 main ()
870910717 {
8710 dlopen ();
10718 return dlopen ();
871110719 ;
871210720 return 0;
871310721 }
871410722 _ACEOF
871510723 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717 (eval $ac_link) 2>conftest.er1
10724 if { (ac_try="$ac_link"
10725 case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10728 esac
10729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10730 $as_echo "$ac_try_echo") >&5
10731 (eval "$ac_link") 2>conftest.er1
871810732 ac_status=$?
871910733 grep -v '^ *+' conftest.er1 >conftest.err
872010734 rm -f conftest.er1
872110735 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 (eval $ac_try) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest$ac_exeext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
10736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } && {
10738 test -z "$ac_c_werror_flag" ||
10739 test ! -s conftest.err
10740 } && test -s conftest$ac_exeext && {
10741 test "$cross_compiling" = yes ||
10742 $as_test_x conftest$ac_exeext
10743 }; then
873610744 ac_cv_lib_svld_dlopen=yes
873710745 else
8738 echo "$as_me: failed program was:" >&5
10746 $as_echo "$as_me: failed program was:" >&5
873910747 sed 's/^/| /' conftest.$ac_ext >&5
874010748
8741 ac_cv_lib_svld_dlopen=no
8742 fi
8743 rm -f conftest.err conftest.$ac_objext \
10749 ac_cv_lib_svld_dlopen=no
10750 fi
10751
10752 rm -rf conftest.dSYM
10753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
874410754 conftest$ac_exeext conftest.$ac_ext
874510755 LIBS=$ac_check_lib_save_LIBS
874610756 fi
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8748 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8749 if test $ac_cv_lib_svld_dlopen = yes; then
10757 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10758 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10759 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
875010760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
875110761 else
8752 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8753 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10762 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10763 $as_echo_n "checking for dld_link in -ldld... " >&6; }
875410764 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 $as_echo_n "(cached) " >&6
875610766 else
875710767 ac_check_lib_save_LIBS=$LIBS
875810768 LIBS="-ldld $LIBS"
876310773 cat >>conftest.$ac_ext <<_ACEOF
876410774 /* end confdefs.h. */
876510775
8766 /* Override any gcc2 internal prototype to avoid an error. */
10776 /* Override any GCC internal prototype to avoid an error.
10777 Use char because int might match the return type of a GCC
10778 builtin and then its argument prototype would still apply. */
876710779 #ifdef __cplusplus
876810780 extern "C"
876910781 #endif
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
877210782 char dld_link ();
877310783 int
877410784 main ()
877510785 {
8776 dld_link ();
10786 return dld_link ();
877710787 ;
877810788 return 0;
877910789 }
878010790 _ACEOF
878110791 rm -f conftest.$ac_objext conftest$ac_exeext
8782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8783 (eval $ac_link) 2>conftest.er1
10792 if { (ac_try="$ac_link"
10793 case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10796 esac
10797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10798 $as_echo "$ac_try_echo") >&5
10799 (eval "$ac_link") 2>conftest.er1
878410800 ac_status=$?
878510801 grep -v '^ *+' conftest.er1 >conftest.err
878610802 rm -f conftest.er1
878710803 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } &&
8790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 (eval $ac_try) 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; } &&
8796 { ac_try='test -s conftest$ac_exeext'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 (eval $ac_try) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; }; then
10804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest$ac_exeext && {
10809 test "$cross_compiling" = yes ||
10810 $as_test_x conftest$ac_exeext
10811 }; then
880210812 ac_cv_lib_dld_dld_link=yes
880310813 else
8804 echo "$as_me: failed program was:" >&5
10814 $as_echo "$as_me: failed program was:" >&5
880510815 sed 's/^/| /' conftest.$ac_ext >&5
880610816
8807 ac_cv_lib_dld_dld_link=no
8808 fi
8809 rm -f conftest.err conftest.$ac_objext \
10817 ac_cv_lib_dld_dld_link=no
10818 fi
10819
10820 rm -rf conftest.dSYM
10821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
881010822 conftest$ac_exeext conftest.$ac_ext
881110823 LIBS=$ac_check_lib_save_LIBS
881210824 fi
8813 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8814 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8815 if test $ac_cv_lib_dld_dld_link = yes; then
8816 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10826 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10827 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10828 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
881710829 fi
881810830
881910831
884610858 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
884710859
884810860 save_LDFLAGS="$LDFLAGS"
8849 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10861 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
885010862
885110863 save_LIBS="$LIBS"
885210864 LIBS="$lt_cv_dlopen_libs $LIBS"
885310865
8854 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8855 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10866 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10867 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
885610868 if test "${lt_cv_dlopen_self+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 $as_echo_n "(cached) " >&6
885810870 else
885910871 if test "$cross_compiling" = yes; then :
886010872 lt_cv_dlopen_self=cross
886110873 else
886210874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
886310875 lt_status=$lt_dlunknown
8864 cat > conftest.$ac_ext <<EOF
8865 #line 8866 "configure"
10876 cat > conftest.$ac_ext <<_LT_EOF
10877 #line 10878 "configure"
886610878 #include "confdefs.h"
886710879
886810880 #if HAVE_DLFCN_H
890310915 # endif
890410916 #endif
890510917
8906 #ifdef __cplusplus
8907 extern "C" void exit (int);
8908 #endif
8909
891010918 void fnord() { int i=42;}
891110919 int main ()
891210920 {
891910927 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
892010928 /* dlclose (self); */
892110929 }
8922
8923 exit (status);
10930 else
10931 puts (dlerror ());
10932
10933 return status;
892410934 }
8925 EOF
10935 _LT_EOF
892610936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
892710937 (eval $ac_link) 2>&5
892810938 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
893010940 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8931 (./conftest; exit; ) 2>/dev/null
10941 (./conftest; exit; ) >&5 2>/dev/null
893210942 lt_status=$?
893310943 case x$lt_status in
893410944 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
893510945 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8936 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10946 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
893710947 esac
893810948 else :
893910949 # compilation failed
894410954
894510955
894610956 fi
8947 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8948 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10957 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10958 $as_echo "$lt_cv_dlopen_self" >&6; }
894910959
895010960 if test "x$lt_cv_dlopen_self" = xyes; then
8951 LDFLAGS="$LDFLAGS $link_static_flag"
8952 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8953 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10961 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10962 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10963 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
895410964 if test "${lt_cv_dlopen_self_static+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 $as_echo_n "(cached) " >&6
895610966 else
895710967 if test "$cross_compiling" = yes; then :
895810968 lt_cv_dlopen_self_static=cross
895910969 else
896010970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
896110971 lt_status=$lt_dlunknown
8962 cat > conftest.$ac_ext <<EOF
8963 #line 8964 "configure"
10972 cat > conftest.$ac_ext <<_LT_EOF
10973 #line 10974 "configure"
896410974 #include "confdefs.h"
896510975
896610976 #if HAVE_DLFCN_H
900111011 # endif
900211012 #endif
900311013
9004 #ifdef __cplusplus
9005 extern "C" void exit (int);
9006 #endif
9007
900811014 void fnord() { int i=42;}
900911015 int main ()
901011016 {
901711023 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
901811024 /* dlclose (self); */
901911025 }
9020
9021 exit (status);
11026 else
11027 puts (dlerror ());
11028
11029 return status;
902211030 }
9023 EOF
11031 _LT_EOF
902411032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
902511033 (eval $ac_link) 2>&5
902611034 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
902811036 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9029 (./conftest; exit; ) 2>/dev/null
11037 (./conftest; exit; ) >&5 2>/dev/null
903011038 lt_status=$?
903111039 case x$lt_status in
903211040 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
903311041 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9034 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11042 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
903511043 esac
903611044 else :
903711045 # compilation failed
904211050
904311051
904411052 fi
9045 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9046 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11053 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11054 $as_echo "$lt_cv_dlopen_self_static" >&6; }
904711055 fi
904811056
904911057 CPPFLAGS="$save_CPPFLAGS"
906411072 fi
906511073
906611074
9067 # Report which librarie types wil actually be built
9068 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9069 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9070 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9071 echo "${ECHO_T}$can_build_shared" >&6
9072
9073 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9074 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9075 test "$can_build_shared" = "no" && enable_shared=no
9076
9077 # On AIX, shared libraries and static libraries use the same namespace, and
9078 # are all built from PIC.
9079 case "$host_os" in
9080 aix3*)
9081 test "$enable_shared" = yes && enable_static=no
9082 if test -n "$RANLIB"; then
9083 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9084 postinstall_cmds='$RANLIB $lib'
9085 fi
9086 ;;
9087
9088 aix4* | aix5*)
9089 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9090 test "$enable_shared" = yes && enable_static=no
9091 fi
9092 ;;
9093 darwin* | rhapsody*)
9094 if test "$GCC" = yes; then
9095 archive_cmds_need_lc=no
9096 case "$host_os" in
9097 rhapsody* | darwin1.[012])
9098 allow_undefined_flag='-undefined suppress'
9099 ;;
9100 *) # Darwin 1.3 on
9101 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9102 allow_undefined_flag='-flat_namespace -undefined suppress'
9103 else
9104 case ${MACOSX_DEPLOYMENT_TARGET} in
9105 10.[012])
9106 allow_undefined_flag='-flat_namespace -undefined suppress'
9107 ;;
9108 10.*)
9109 allow_undefined_flag='-undefined dynamic_lookup'
9110 ;;
9111 esac
9112 fi
9113 ;;
9114 esac
9115 output_verbose_link_cmd='echo'
9116 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9117 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9118 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9119 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9120 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9121 hardcode_direct=no
9122 hardcode_automatic=yes
9123 hardcode_shlibpath_var=unsupported
9124 whole_archive_flag_spec='-all_load $convenience'
9125 link_all_deplibs=yes
9126 else
9127 ld_shlibs=no
9128 fi
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090 striplib=
11091 old_striplib=
11092 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11093 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11094 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11095 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11096 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11097 { $as_echo "$as_me:$LINENO: result: yes" >&5
11098 $as_echo "yes" >&6; }
11099 else
11100 # FIXME - insert some real tests, host_os isn't really good enough
11101 case $host_os in
11102 darwin*)
11103 if test -n "$STRIP" ; then
11104 striplib="$STRIP -x"
11105 old_striplib="$STRIP -S"
11106 { $as_echo "$as_me:$LINENO: result: yes" >&5
11107 $as_echo "yes" >&6; }
11108 else
11109 { $as_echo "$as_me:$LINENO: result: no" >&5
11110 $as_echo "no" >&6; }
11111 fi
912911112 ;;
9130 esac
9131 echo "$as_me:$LINENO: result: $enable_shared" >&5
9132 echo "${ECHO_T}$enable_shared" >&6
9133
9134 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9135 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9136 # Make sure either enable_shared or enable_static is yes.
9137 test "$enable_shared" = yes || enable_static=yes
9138 echo "$as_me:$LINENO: result: $enable_static" >&5
9139 echo "${ECHO_T}$enable_static" >&6
9140
9141 # The else clause should only fire when bootstrapping the
9142 # libtool distribution, otherwise you forgot to ship ltmain.sh
9143 # with your package, and you will get complaints that there are
9144 # no rules to generate ltmain.sh.
9145 if test -f "$ltmain"; then
9146 # See if we are running on zsh, and set the options which allow our commands through
9147 # without removal of \ escapes.
9148 if test -n "${ZSH_VERSION+set}" ; then
9149 setopt NO_GLOB_SUBST
9150 fi
9151 # Now quote all the things that may contain metacharacters while being
9152 # careful not to overquote the AC_SUBSTed values. We take copies of the
9153 # variables and quote the copies for generation of the libtool script.
9154 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9155 SED SHELL STRIP \
9156 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9157 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9158 deplibs_check_method reload_flag reload_cmds need_locks \
9159 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9160 lt_cv_sys_global_symbol_to_c_name_address \
9161 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9162 old_postinstall_cmds old_postuninstall_cmds \
9163 compiler \
9164 CC \
9165 LD \
9166 lt_prog_compiler_wl \
9167 lt_prog_compiler_pic \
9168 lt_prog_compiler_static \
9169 lt_prog_compiler_no_builtin_flag \
9170 export_dynamic_flag_spec \
9171 thread_safe_flag_spec \
9172 whole_archive_flag_spec \
9173 enable_shared_with_static_runtimes \
9174 old_archive_cmds \
9175 old_archive_from_new_cmds \
9176 predep_objects \
9177 postdep_objects \
9178 predeps \
9179 postdeps \
9180 compiler_lib_search_path \
9181 archive_cmds \
9182 archive_expsym_cmds \
9183 postinstall_cmds \
9184 postuninstall_cmds \
9185 old_archive_from_expsyms_cmds \
9186 allow_undefined_flag \
9187 no_undefined_flag \
9188 export_symbols_cmds \
9189 hardcode_libdir_flag_spec \
9190 hardcode_libdir_flag_spec_ld \
9191 hardcode_libdir_separator \
9192 hardcode_automatic \
9193 module_cmds \
9194 module_expsym_cmds \
9195 lt_cv_prog_compiler_c_o \
9196 exclude_expsyms \
9197 include_expsyms; do
9198
9199 case $var in
9200 old_archive_cmds | \
9201 old_archive_from_new_cmds | \
9202 archive_cmds | \
9203 archive_expsym_cmds | \
9204 module_cmds | \
9205 module_expsym_cmds | \
9206 old_archive_from_expsyms_cmds | \
9207 export_symbols_cmds | \
9208 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9209 postinstall_cmds | postuninstall_cmds | \
9210 old_postinstall_cmds | old_postuninstall_cmds | \
9211 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9212 # Double-quote double-evaled strings.
9213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9214 ;;
9215 *)
9216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9217 ;;
9218 esac
9219 done
9220
9221 case $lt_echo in
9222 *'\$0 --fallback-echo"')
9223 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11113 *)
11114 { $as_echo "$as_me:$LINENO: result: no" >&5
11115 $as_echo "no" >&6; }
922411116 ;;
922511117 esac
9226
9227 cfgfile="${ofile}T"
9228 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9229 $rm -f "$cfgfile"
9230 { echo "$as_me:$LINENO: creating $ofile" >&5
9231 echo "$as_me: creating $ofile" >&6;}
9232
9233 cat <<__EOF__ >> "$cfgfile"
9234 #! $SHELL
9235
9236 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9237 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9238 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9239 #
9240 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9241 # Free Software Foundation, Inc.
9242 #
9243 # This file is part of GNU Libtool:
9244 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9245 #
9246 # This program is free software; you can redistribute it and/or modify
9247 # it under the terms of the GNU General Public License as published by
9248 # the Free Software Foundation; either version 2 of the License, or
9249 # (at your option) any later version.
9250 #
9251 # This program is distributed in the hope that it will be useful, but
9252 # WITHOUT ANY WARRANTY; without even the implied warranty of
9253 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9254 # General Public License for more details.
9255 #
9256 # You should have received a copy of the GNU General Public License
9257 # along with this program; if not, write to the Free Software
9258 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9259 #
9260 # As a special exception to the GNU General Public License, if you
9261 # distribute this file as part of a program that contains a
9262 # configuration script generated by Autoconf, you may include it under
9263 # the same distribution terms that you use for the rest of that program.
9264
9265 # A sed program that does not truncate output.
9266 SED=$lt_SED
9267
9268 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9269 Xsed="$SED -e s/^X//"
9270
9271 # The HP-UX ksh and POSIX shell print the target directory to stdout
9272 # if CDPATH is set.
9273 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9274
9275 # The names of the tagged configurations supported by this script.
9276 available_tags=
9277
9278 # ### BEGIN LIBTOOL CONFIG
9279
9280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9281
9282 # Shell to use when invoking shell scripts.
9283 SHELL=$lt_SHELL
9284
9285 # Whether or not to build shared libraries.
9286 build_libtool_libs=$enable_shared
9287
9288 # Whether or not to build static libraries.
9289 build_old_libs=$enable_static
9290
9291 # Whether or not to add -lc for building shared libraries.
9292 build_libtool_need_lc=$archive_cmds_need_lc
9293
9294 # Whether or not to disallow shared libs when runtime libs are static
9295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9296
9297 # Whether or not to optimize for fast installation.
9298 fast_install=$enable_fast_install
9299
9300 # The host system.
9301 host_alias=$host_alias
9302 host=$host
9303
9304 # An echo program that does not interpret backslashes.
9305 echo=$lt_echo
9306
9307 # The archiver.
9308 AR=$lt_AR
9309 AR_FLAGS=$lt_AR_FLAGS
9310
9311 # A C compiler.
9312 LTCC=$lt_LTCC
9313
9314 # A language-specific compiler.
9315 CC=$lt_compiler
9316
9317 # Is the compiler the GNU C compiler?
9318 with_gcc=$GCC
9319
9320 # An ERE matcher.
9321 EGREP=$lt_EGREP
9322
9323 # The linker used to build libraries.
9324 LD=$lt_LD
9325
9326 # Whether we need hard or soft links.
9327 LN_S=$lt_LN_S
9328
9329 # A BSD-compatible nm program.
9330 NM=$lt_NM
9331
9332 # A symbol stripping program
9333 STRIP=$lt_STRIP
9334
9335 # Used to examine libraries when file_magic_cmd begins "file"
9336 MAGIC_CMD=$MAGIC_CMD
9337
9338 # Used on cygwin: DLL creation program.
9339 DLLTOOL="$DLLTOOL"
9340
9341 # Used on cygwin: object dumper.
9342 OBJDUMP="$OBJDUMP"
9343
9344 # Used on cygwin: assembler.
9345 AS="$AS"
9346
9347 # The name of the directory that contains temporary libtool files.
9348 objdir=$objdir
9349
9350 # How to create reloadable object files.
9351 reload_flag=$lt_reload_flag
9352 reload_cmds=$lt_reload_cmds
9353
9354 # How to pass a linker flag through the compiler.
9355 wl=$lt_lt_prog_compiler_wl
9356
9357 # Object file suffix (normally "o").
9358 objext="$ac_objext"
9359
9360 # Old archive suffix (normally "a").
9361 libext="$libext"
9362
9363 # Shared library suffix (normally ".so").
9364 shrext_cmds='$shrext_cmds'
9365
9366 # Executable file suffix (normally "").
9367 exeext="$exeext"
9368
9369 # Additional compiler flags for building library objects.
9370 pic_flag=$lt_lt_prog_compiler_pic
9371 pic_mode=$pic_mode
9372
9373 # What is the maximum length of a command?
9374 max_cmd_len=$lt_cv_sys_max_cmd_len
9375
9376 # Does compiler simultaneously support -c and -o options?
9377 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9378
9379 # Must we lock files when doing compilation ?
9380 need_locks=$lt_need_locks
9381
9382 # Do we need the lib prefix for modules?
9383 need_lib_prefix=$need_lib_prefix
9384
9385 # Do we need a version for libraries?
9386 need_version=$need_version
9387
9388 # Whether dlopen is supported.
9389 dlopen_support=$enable_dlopen
9390
9391 # Whether dlopen of programs is supported.
9392 dlopen_self=$enable_dlopen_self
9393
9394 # Whether dlopen of statically linked programs is supported.
9395 dlopen_self_static=$enable_dlopen_self_static
9396
9397 # Compiler flag to prevent dynamic linking.
9398 link_static_flag=$lt_lt_prog_compiler_static
9399
9400 # Compiler flag to turn off builtin functions.
9401 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9402
9403 # Compiler flag to allow reflexive dlopens.
9404 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9405
9406 # Compiler flag to generate shared objects directly from archives.
9407 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9408
9409 # Compiler flag to generate thread-safe objects.
9410 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9411
9412 # Library versioning type.
9413 version_type=$version_type
9414
9415 # Format of library name prefix.
9416 libname_spec=$lt_libname_spec
9417
9418 # List of archive names. First name is the real one, the rest are links.
9419 # The last name is the one that the linker finds with -lNAME.
9420 library_names_spec=$lt_library_names_spec
9421
9422 # The coded name of the library, if different from the real name.
9423 soname_spec=$lt_soname_spec
9424
9425 # Commands used to build and install an old-style archive.
9426 RANLIB=$lt_RANLIB
9427 old_archive_cmds=$lt_old_archive_cmds
9428 old_postinstall_cmds=$lt_old_postinstall_cmds
9429 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9430
9431 # Create an old-style archive from a shared archive.
9432 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9433
9434 # Create a temporary old-style archive to link instead of a shared archive.
9435 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9436
9437 # Commands used to build and install a shared archive.
9438 archive_cmds=$lt_archive_cmds
9439 archive_expsym_cmds=$lt_archive_expsym_cmds
9440 postinstall_cmds=$lt_postinstall_cmds
9441 postuninstall_cmds=$lt_postuninstall_cmds
9442
9443 # Commands used to build a loadable module (assumed same as above if empty)
9444 module_cmds=$lt_module_cmds
9445 module_expsym_cmds=$lt_module_expsym_cmds
9446
9447 # Commands to strip libraries.
9448 old_striplib=$lt_old_striplib
9449 striplib=$lt_striplib
9450
9451 # Dependencies to place before the objects being linked to create a
9452 # shared library.
9453 predep_objects=$lt_predep_objects
9454
9455 # Dependencies to place after the objects being linked to create a
9456 # shared library.
9457 postdep_objects=$lt_postdep_objects
9458
9459 # Dependencies to place before the objects being linked to create a
9460 # shared library.
9461 predeps=$lt_predeps
9462
9463 # Dependencies to place after the objects being linked to create a
9464 # shared library.
9465 postdeps=$lt_postdeps
9466
9467 # The library search path used internally by the compiler when linking
9468 # a shared library.
9469 compiler_lib_search_path=$lt_compiler_lib_search_path
9470
9471 # Method to check whether dependent libraries are shared objects.
9472 deplibs_check_method=$lt_deplibs_check_method
9473
9474 # Command to use when deplibs_check_method == file_magic.
9475 file_magic_cmd=$lt_file_magic_cmd
9476
9477 # Flag that allows shared libraries with undefined symbols to be built.
9478 allow_undefined_flag=$lt_allow_undefined_flag
9479
9480 # Flag that forces no undefined symbols.
9481 no_undefined_flag=$lt_no_undefined_flag
9482
9483 # Commands used to finish a libtool library installation in a directory.
9484 finish_cmds=$lt_finish_cmds
9485
9486 # Same as above, but a single script fragment to be evaled but not shown.
9487 finish_eval=$lt_finish_eval
9488
9489 # Take the output of nm and produce a listing of raw symbols and C names.
9490 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9491
9492 # Transform the output of nm in a proper C declaration
9493 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9494
9495 # Transform the output of nm in a C name address pair
9496 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9497
9498 # This is the shared library runtime path variable.
9499 runpath_var=$runpath_var
9500
9501 # This is the shared library path variable.
9502 shlibpath_var=$shlibpath_var
9503
9504 # Is shlibpath searched before the hard-coded library search path?
9505 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9506
9507 # How to hardcode a shared library path into an executable.
9508 hardcode_action=$hardcode_action
9509
9510 # Whether we should hardcode library paths into libraries.
9511 hardcode_into_libs=$hardcode_into_libs
9512
9513 # Flag to hardcode \$libdir into a binary during linking.
9514 # This must work even if \$libdir does not exist.
9515 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9516
9517 # If ld is used when linking, flag to hardcode \$libdir into
9518 # a binary during linking. This must work even if \$libdir does
9519 # not exist.
9520 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9521
9522 # Whether we need a single -rpath flag with a separated argument.
9523 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9524
9525 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9526 # resulting binary.
9527 hardcode_direct=$hardcode_direct
9528
9529 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9530 # resulting binary.
9531 hardcode_minus_L=$hardcode_minus_L
9532
9533 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9534 # the resulting binary.
9535 hardcode_shlibpath_var=$hardcode_shlibpath_var
9536
9537 # Set to yes if building a shared library automatically hardcodes DIR into the library
9538 # and all subsequent libraries and executables linked against it.
9539 hardcode_automatic=$hardcode_automatic
9540
9541 # Variables whose values should be saved in libtool wrapper scripts and
9542 # restored at relink time.
9543 variables_saved_for_relink="$variables_saved_for_relink"
9544
9545 # Whether libtool must link a program against all its dependency libraries.
9546 link_all_deplibs=$link_all_deplibs
9547
9548 # Compile-time system search path for libraries
9549 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9550
9551 # Run-time system search path for libraries
9552 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9553
9554 # Fix the shell variable \$srcfile for the compiler.
9555 fix_srcfile_path="$fix_srcfile_path"
9556
9557 # Set to yes if exported symbols are required.
9558 always_export_symbols=$always_export_symbols
9559
9560 # The commands to list exported symbols.
9561 export_symbols_cmds=$lt_export_symbols_cmds
9562
9563 # The commands to extract the exported symbol list from a shared archive.
9564 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9565
9566 # Symbols that should not be listed in the preloaded symbols.
9567 exclude_expsyms=$lt_exclude_expsyms
9568
9569 # Symbols that must always be exported.
9570 include_expsyms=$lt_include_expsyms
9571
9572 # ### END LIBTOOL CONFIG
9573
9574 __EOF__
9575
9576
11118 fi
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131 # Report which library types will actually be built
11132 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11133 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11134 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11135 $as_echo "$can_build_shared" >&6; }
11136
11137 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11138 $as_echo_n "checking whether to build shared libraries... " >&6; }
11139 test "$can_build_shared" = "no" && enable_shared=no
11140
11141 # On AIX, shared libraries and static libraries use the same namespace, and
11142 # are all built from PIC.
957711143 case $host_os in
957811144 aix3*)
9579 cat <<\EOF >> "$cfgfile"
9580
9581 # AIX sometimes has problems with the GCC collect2 program. For some
9582 # reason, if we set the COLLECT_NAMES environment variable, the problems
9583 # vanish in a puff of smoke.
9584 if test "X${COLLECT_NAMES+set}" != Xset; then
9585 COLLECT_NAMES=
9586 export COLLECT_NAMES
9587 fi
9588 EOF
11145 test "$enable_shared" = yes && enable_static=no
11146 if test -n "$RANLIB"; then
11147 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11148 postinstall_cmds='$RANLIB $lib'
11149 fi
11150 ;;
11151
11152 aix[4-9]*)
11153 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11154 test "$enable_shared" = yes && enable_static=no
11155 fi
958911156 ;;
959011157 esac
9591
9592 # We use sed instead of cat because bash on DJGPP gets confused if
9593 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9594 # text mode, it properly converts lines to CR/LF. This bash problem
9595 # is reportedly fixed, but why not run on old versions too?
9596 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9597
9598 mv -f "$cfgfile" "$ofile" || \
9599 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9600 chmod +x "$ofile"
9601
9602 else
9603 # If there is no Makefile yet, we rely on a make rule to execute
9604 # `config.status --recheck' to rerun these tests and create the
9605 # libtool script then.
9606 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9607 if test -f "$ltmain_in"; then
9608 test -f Makefile && make "$ltmain"
9609 fi
9610 fi
9611
9612
11158 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11159 $as_echo "$enable_shared" >&6; }
11160
11161 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11162 $as_echo_n "checking whether to build static libraries... " >&6; }
11163 # Make sure either enable_shared or enable_static is yes.
11164 test "$enable_shared" = yes || enable_static=yes
11165 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11166 $as_echo "$enable_static" >&6; }
11167
11168
11169
11170
11171 fi
961311172 ac_ext=c
961411173 ac_cpp='$CPP $CPPFLAGS'
961511174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
961911178 CC="$lt_save_CC"
962011179
962111180
9622 # Check whether --with-tags or --without-tags was given.
9623 if test "${with_tags+set}" = set; then
9624 withval="$with_tags"
9625 tagnames="$withval"
9626 fi;
9627
9628 if test -f "$ltmain" && test -n "$tagnames"; then
9629 if test ! -f "${ofile}"; then
9630 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9631 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192 ac_config_commands="$ac_config_commands libtool"
11193
11194
11195
11196
11197 # Only expand once:
11198
11199
11200 ac_ext=c
11201 ac_cpp='$CPP $CPPFLAGS'
11202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11205 if test -n "$ac_tool_prefix"; then
11206 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11207 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11209 $as_echo_n "checking for $ac_word... " >&6; }
11210 if test "${ac_cv_prog_CC+set}" = set; then
11211 $as_echo_n "(cached) " >&6
11212 else
11213 if test -n "$CC"; then
11214 ac_cv_prog_CC="$CC" # Let the user override the test.
11215 else
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
963211226 fi
9633
9634 if test -z "$LTCC"; then
9635 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9636 if test -z "$LTCC"; then
9637 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9638 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9639 else
9640 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9641 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11227 done
11228 done
11229 IFS=$as_save_IFS
11230
11231 fi
11232 fi
11233 CC=$ac_cv_prog_CC
11234 if test -n "$CC"; then
11235 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11236 $as_echo "$CC" >&6; }
11237 else
11238 { $as_echo "$as_me:$LINENO: result: no" >&5
11239 $as_echo "no" >&6; }
11240 fi
11241
11242
11243 fi
11244 if test -z "$ac_cv_prog_CC"; then
11245 ac_ct_CC=$CC
11246 # Extract the first word of "gcc", so it can be a program name with args.
11247 set dummy gcc; ac_word=$2
11248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11251 $as_echo_n "(cached) " >&6
11252 else
11253 if test -n "$ac_ct_CC"; then
11254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11255 else
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11258 do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11263 ac_cv_prog_ac_ct_CC="gcc"
11264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 break 2
11266 fi
11267 done
11268 done
11269 IFS=$as_save_IFS
11270
11271 fi
11272 fi
11273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11274 if test -n "$ac_ct_CC"; then
11275 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11276 $as_echo "$ac_ct_CC" >&6; }
11277 else
11278 { $as_echo "$as_me:$LINENO: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281
11282 if test "x$ac_ct_CC" = x; then
11283 CC=""
11284 else
11285 case $cross_compiling:$ac_tool_warned in
11286 yes:)
11287 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11289 ac_tool_warned=yes ;;
11290 esac
11291 CC=$ac_ct_CC
11292 fi
11293 else
11294 CC="$ac_cv_prog_CC"
11295 fi
11296
11297 if test -z "$CC"; then
11298 if test -n "$ac_tool_prefix"; then
11299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11300 set dummy ${ac_tool_prefix}cc; ac_word=$2
11301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if test "${ac_cv_prog_CC+set}" = set; then
11304 $as_echo_n "(cached) " >&6
11305 else
11306 if test -n "$CC"; then
11307 ac_cv_prog_CC="$CC" # Let the user override the test.
11308 else
11309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310 for as_dir in $PATH
11311 do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11316 ac_cv_prog_CC="${ac_tool_prefix}cc"
11317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11318 break 2
11319 fi
11320 done
11321 done
11322 IFS=$as_save_IFS
11323
11324 fi
11325 fi
11326 CC=$ac_cv_prog_CC
11327 if test -n "$CC"; then
11328 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11329 $as_echo "$CC" >&6; }
11330 else
11331 { $as_echo "$as_me:$LINENO: result: no" >&5
11332 $as_echo "no" >&6; }
11333 fi
11334
11335
11336 fi
11337 fi
11338 if test -z "$CC"; then
11339 # Extract the first word of "cc", so it can be a program name with args.
11340 set dummy cc; ac_word=$2
11341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11342 $as_echo_n "checking for $ac_word... " >&6; }
11343 if test "${ac_cv_prog_CC+set}" = set; then
11344 $as_echo_n "(cached) " >&6
11345 else
11346 if test -n "$CC"; then
11347 ac_cv_prog_CC="$CC" # Let the user override the test.
11348 else
11349 ac_prog_rejected=no
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11352 do
11353 IFS=$as_save_IFS
11354 test -z "$as_dir" && as_dir=.
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11358 ac_prog_rejected=yes
11359 continue
11360 fi
11361 ac_cv_prog_CC="cc"
11362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11364 fi
11365 done
11366 done
11367 IFS=$as_save_IFS
11368
11369 if test $ac_prog_rejected = yes; then
11370 # We found a bogon in the path, so make sure we never use it.
11371 set dummy $ac_cv_prog_CC
11372 shift
11373 if test $# != 0; then
11374 # We chose a different compiler from the bogus one.
11375 # However, it has the same basename, so the bogon will be chosen
11376 # first if we set CC to just the basename; use the full file name.
11377 shift
11378 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11379 fi
11380 fi
11381 fi
11382 fi
11383 CC=$ac_cv_prog_CC
11384 if test -n "$CC"; then
11385 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11386 $as_echo "$CC" >&6; }
11387 else
11388 { $as_echo "$as_me:$LINENO: result: no" >&5
11389 $as_echo "no" >&6; }
11390 fi
11391
11392
11393 fi
11394 if test -z "$CC"; then
11395 if test -n "$ac_tool_prefix"; then
11396 for ac_prog in cl.exe
11397 do
11398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11401 $as_echo_n "checking for $ac_word... " >&6; }
11402 if test "${ac_cv_prog_CC+set}" = set; then
11403 $as_echo_n "(cached) " >&6
11404 else
11405 if test -n "$CC"; then
11406 ac_cv_prog_CC="$CC" # Let the user override the test.
11407 else
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11410 do
11411 IFS=$as_save_IFS
11412 test -z "$as_dir" && as_dir=.
11413 for ac_exec_ext in '' $ac_executable_extensions; do
11414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 break 2
11418 fi
11419 done
11420 done
11421 IFS=$as_save_IFS
11422
11423 fi
11424 fi
11425 CC=$ac_cv_prog_CC
11426 if test -n "$CC"; then
11427 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11428 $as_echo "$CC" >&6; }
11429 else
11430 { $as_echo "$as_me:$LINENO: result: no" >&5
11431 $as_echo "no" >&6; }
11432 fi
11433
11434
11435 test -n "$CC" && break
11436 done
11437 fi
11438 if test -z "$CC"; then
11439 ac_ct_CC=$CC
11440 for ac_prog in cl.exe
11441 do
11442 # Extract the first word of "$ac_prog", so it can be a program name with args.
11443 set dummy $ac_prog; ac_word=$2
11444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11445 $as_echo_n "checking for $ac_word... " >&6; }
11446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11447 $as_echo_n "(cached) " >&6
11448 else
11449 if test -n "$ac_ct_CC"; then
11450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11451 else
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11454 do
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11459 ac_cv_prog_ac_ct_CC="$ac_prog"
11460 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 break 2
11462 fi
11463 done
11464 done
11465 IFS=$as_save_IFS
11466
11467 fi
11468 fi
11469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11470 if test -n "$ac_ct_CC"; then
11471 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11472 $as_echo "$ac_ct_CC" >&6; }
11473 else
11474 { $as_echo "$as_me:$LINENO: result: no" >&5
11475 $as_echo "no" >&6; }
11476 fi
11477
11478
11479 test -n "$ac_ct_CC" && break
11480 done
11481
11482 if test "x$ac_ct_CC" = x; then
11483 CC=""
11484 else
11485 case $cross_compiling:$ac_tool_warned in
11486 yes:)
11487 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11489 ac_tool_warned=yes ;;
11490 esac
11491 CC=$ac_ct_CC
11492 fi
11493 fi
11494
11495 fi
11496
11497
11498 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11500 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11501 See \`config.log' for more details." >&5
11502 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11503 See \`config.log' for more details." >&2;}
11504 { (exit 1); exit 1; }; }; }
11505
11506 # Provide some information about the compiler.
11507 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11508 set X $ac_compile
11509 ac_compiler=$2
11510 { (ac_try="$ac_compiler --version >&5"
11511 case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514 esac
11515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11516 $as_echo "$ac_try_echo") >&5
11517 (eval "$ac_compiler --version >&5") 2>&5
11518 ac_status=$?
11519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }
11521 { (ac_try="$ac_compiler -v >&5"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11525 esac
11526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11527 $as_echo "$ac_try_echo") >&5
11528 (eval "$ac_compiler -v >&5") 2>&5
11529 ac_status=$?
11530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }
11532 { (ac_try="$ac_compiler -V >&5"
11533 case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536 esac
11537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11538 $as_echo "$ac_try_echo") >&5
11539 (eval "$ac_compiler -V >&5") 2>&5
11540 ac_status=$?
11541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }
11543
11544 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11546 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11547 $as_echo_n "(cached) " >&6
11548 else
11549 cat >conftest.$ac_ext <<_ACEOF
11550 /* confdefs.h. */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555
11556 int
11557 main ()
11558 {
11559 #ifndef __GNUC__
11560 choke me
11561 #endif
11562
11563 ;
11564 return 0;
11565 }
11566 _ACEOF
11567 rm -f conftest.$ac_objext
11568 if { (ac_try="$ac_compile"
11569 case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11572 esac
11573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11574 $as_echo "$ac_try_echo") >&5
11575 (eval "$ac_compile") 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } && {
11582 test -z "$ac_c_werror_flag" ||
11583 test ! -s conftest.err
11584 } && test -s conftest.$ac_objext; then
11585 ac_compiler_gnu=yes
11586 else
11587 $as_echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11589
11590 ac_compiler_gnu=no
11591 fi
11592
11593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11594 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11595
11596 fi
11597 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11598 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11599 if test $ac_compiler_gnu = yes; then
11600 GCC=yes
11601 else
11602 GCC=
11603 fi
11604 ac_test_CFLAGS=${CFLAGS+set}
11605 ac_save_CFLAGS=$CFLAGS
11606 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11607 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11608 if test "${ac_cv_prog_cc_g+set}" = set; then
11609 $as_echo_n "(cached) " >&6
11610 else
11611 ac_save_c_werror_flag=$ac_c_werror_flag
11612 ac_c_werror_flag=yes
11613 ac_cv_prog_cc_g=no
11614 CFLAGS="-g"
11615 cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h. */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621
11622 int
11623 main ()
11624 {
11625
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 rm -f conftest.$ac_objext
11631 if { (ac_try="$ac_compile"
11632 case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635 esac
11636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11637 $as_echo "$ac_try_echo") >&5
11638 (eval "$ac_compile") 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && {
11645 test -z "$ac_c_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest.$ac_objext; then
11648 ac_cv_prog_cc_g=yes
11649 else
11650 $as_echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11652
11653 CFLAGS=""
11654 cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h. */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660
11661 int
11662 main ()
11663 {
11664
11665 ;
11666 return 0;
11667 }
11668 _ACEOF
11669 rm -f conftest.$ac_objext
11670 if { (ac_try="$ac_compile"
11671 case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11674 esac
11675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11676 $as_echo "$ac_try_echo") >&5
11677 (eval "$ac_compile") 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } && {
11684 test -z "$ac_c_werror_flag" ||
11685 test ! -s conftest.err
11686 } && test -s conftest.$ac_objext; then
11687 :
11688 else
11689 $as_echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692 ac_c_werror_flag=$ac_save_c_werror_flag
11693 CFLAGS="-g"
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h. */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700
11701 int
11702 main ()
11703 {
11704
11705 ;
11706 return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext
11710 if { (ac_try="$ac_compile"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714 esac
11715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11716 $as_echo "$ac_try_echo") >&5
11717 (eval "$ac_compile") 2>conftest.er1
11718 ac_status=$?
11719 grep -v '^ *+' conftest.er1 >conftest.err
11720 rm -f conftest.er1
11721 cat conftest.err >&5
11722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && {
11724 test -z "$ac_c_werror_flag" ||
11725 test ! -s conftest.err
11726 } && test -s conftest.$ac_objext; then
11727 ac_cv_prog_cc_g=yes
11728 else
11729 $as_echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11731
11732
11733 fi
11734
11735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736 fi
11737
11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 fi
11740
11741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742 ac_c_werror_flag=$ac_save_c_werror_flag
11743 fi
11744 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11745 $as_echo "$ac_cv_prog_cc_g" >&6; }
11746 if test "$ac_test_CFLAGS" = set; then
11747 CFLAGS=$ac_save_CFLAGS
11748 elif test $ac_cv_prog_cc_g = yes; then
11749 if test "$GCC" = yes; then
11750 CFLAGS="-g -O2"
11751 else
11752 CFLAGS="-g"
11753 fi
11754 else
11755 if test "$GCC" = yes; then
11756 CFLAGS="-O2"
11757 else
11758 CFLAGS=
11759 fi
11760 fi
11761 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11763 if test "${ac_cv_prog_cc_c89+set}" = set; then
11764 $as_echo_n "(cached) " >&6
11765 else
11766 ac_cv_prog_cc_c89=no
11767 ac_save_CC=$CC
11768 cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h. */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 #include <stdarg.h>
11775 #include <stdio.h>
11776 #include <sys/types.h>
11777 #include <sys/stat.h>
11778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11779 struct buf { int x; };
11780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11781 static char *e (p, i)
11782 char **p;
11783 int i;
11784 {
11785 return p[i];
11786 }
11787 static char *f (char * (*g) (char **, int), char **p, ...)
11788 {
11789 char *s;
11790 va_list v;
11791 va_start (v,p);
11792 s = g (p, va_arg (v,int));
11793 va_end (v);
11794 return s;
11795 }
11796
11797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11798 function prototypes and stuff, but not '\xHH' hex character constants.
11799 These don't provoke an error unfortunately, instead are silently treated
11800 as 'x'. The following induces an error, until -std is added to get
11801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11802 array size at least. It's necessary to write '\x00'==0 to get something
11803 that's true only with -std. */
11804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11805
11806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11807 inside strings and character constants. */
11808 #define FOO(x) 'x'
11809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11810
11811 int test (int i, double x);
11812 struct s1 {int (*f) (int a);};
11813 struct s2 {int (*f) (double a);};
11814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11815 int argc;
11816 char **argv;
11817 int
11818 main ()
11819 {
11820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11821 ;
11822 return 0;
11823 }
11824 _ACEOF
11825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11827 do
11828 CC="$ac_save_CC $ac_arg"
11829 rm -f conftest.$ac_objext
11830 if { (ac_try="$ac_compile"
11831 case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834 esac
11835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11836 $as_echo "$ac_try_echo") >&5
11837 (eval "$ac_compile") 2>conftest.er1
11838 ac_status=$?
11839 grep -v '^ *+' conftest.er1 >conftest.err
11840 rm -f conftest.er1
11841 cat conftest.err >&5
11842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } && {
11844 test -z "$ac_c_werror_flag" ||
11845 test ! -s conftest.err
11846 } && test -s conftest.$ac_objext; then
11847 ac_cv_prog_cc_c89=$ac_arg
11848 else
11849 $as_echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11851
11852
11853 fi
11854
11855 rm -f core conftest.err conftest.$ac_objext
11856 test "x$ac_cv_prog_cc_c89" != "xno" && break
11857 done
11858 rm -f conftest.$ac_ext
11859 CC=$ac_save_CC
11860
11861 fi
11862 # AC_CACHE_VAL
11863 case "x$ac_cv_prog_cc_c89" in
11864 x)
11865 { $as_echo "$as_me:$LINENO: result: none needed" >&5
11866 $as_echo "none needed" >&6; } ;;
11867 xno)
11868 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11869 $as_echo "unsupported" >&6; } ;;
11870 *)
11871 CC="$CC $ac_cv_prog_cc_c89"
11872 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11873 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11874 esac
11875
11876
11877 ac_ext=c
11878 ac_cpp='$CPP $CPPFLAGS'
11879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11882
11883 depcc="$CC" am_compiler_list=
11884
11885 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11886 $as_echo_n "checking dependency style of $depcc... " >&6; }
11887 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11888 $as_echo_n "(cached) " >&6
11889 else
11890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11891 # We make a subdir and do the tests there. Otherwise we can end up
11892 # making bogus files that we don't know about and never remove. For
11893 # instance it was reported that on HP-UX the gcc test will end up
11894 # making a dummy file named `D' -- because `-MD' means `put the output
11895 # in D'.
11896 mkdir conftest.dir
11897 # Copy depcomp to subdir because otherwise we won't find it if we're
11898 # using a relative directory.
11899 cp "$am_depcomp" conftest.dir
11900 cd conftest.dir
11901 # We will build objects and dependencies in a subdirectory because
11902 # it helps to detect inapplicable dependency modes. For instance
11903 # both Tru64's cc and ICC support -MD to output dependencies as a
11904 # side effect of compilation, but ICC will put the dependencies in
11905 # the current directory while Tru64 will put them in the object
11906 # directory.
11907 mkdir sub
11908
11909 am_cv_CC_dependencies_compiler_type=none
11910 if test "$am_compiler_list" = ""; then
11911 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11912 fi
11913 for depmode in $am_compiler_list; do
11914 # Setup a source with many dependencies, because some compilers
11915 # like to wrap large dependency lists on column 80 (with \), and
11916 # we should not choose a depcomp mode which is confused by this.
11917 #
11918 # We need to recreate these files for each test, as the compiler may
11919 # overwrite some of them when testing with obscure command lines.
11920 # This happens at least with the AIX C compiler.
11921 : > sub/conftest.c
11922 for i in 1 2 3 4 5 6; do
11923 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11924 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11925 # Solaris 8's {/usr,}/bin/sh.
11926 touch sub/conftst$i.h
11927 done
11928 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11929
11930 case $depmode in
11931 nosideeffect)
11932 # after this tag, mechanisms are not by side-effect, so they'll
11933 # only be used when explicitly requested
11934 if test "x$enable_dependency_tracking" = xyes; then
11935 continue
11936 else
11937 break
11938 fi
11939 ;;
11940 none) break ;;
11941 esac
11942 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11943 # mode. It turns out that the SunPro C++ compiler does not properly
11944 # handle `-M -o', and we need to detect this.
11945 if depmode=$depmode \
11946 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11947 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11948 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11949 >/dev/null 2>conftest.err &&
11950 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11951 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11952 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11953 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11954 # icc doesn't choke on unknown options, it will just issue warnings
11955 # or remarks (even with -Werror). So we grep stderr for any message
11956 # that says an option was ignored or not supported.
11957 # When given -MP, icc 7.0 and 7.1 complain thusly:
11958 # icc: Command line warning: ignoring option '-M'; no argument required
11959 # The diagnosis changed in icc 8.0:
11960 # icc: Command line remark: option '-MP' not supported
11961 if (grep 'ignoring option' conftest.err ||
11962 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11963 am_cv_CC_dependencies_compiler_type=$depmode
11964 break
11965 fi
964211966 fi
9643 fi
9644
9645 # Extract list of available tagged configurations in $ofile.
9646 # Note that this assumes the entire list is on one line.
9647 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9648
9649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9650 for tagname in $tagnames; do
9651 IFS="$lt_save_ifs"
9652 # Check whether tagname contains only valid characters
9653 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9654 "") ;;
9655 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9656 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9657 { (exit 1); exit 1; }; }
9658 ;;
9659 esac
9660
9661 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9662 then
9663 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9664 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9665 { (exit 1); exit 1; }; }
9666 fi
9667
9668 # Update the list of available tags.
9669 if test -n "$tagname"; then
9670 echo appending configuration tag \"$tagname\" to $ofile
9671
9672 case $tagname in
9673 CXX)
9674 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9675 ac_ext=cc
11967 done
11968
11969 cd ..
11970 rm -rf conftest.dir
11971 else
11972 am_cv_CC_dependencies_compiler_type=none
11973 fi
11974
11975 fi
11976 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11977 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11978 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11979
11980 if
11981 test "x$enable_dependency_tracking" != xno \
11982 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11983 am__fastdepCC_TRUE=
11984 am__fastdepCC_FALSE='#'
11985 else
11986 am__fastdepCC_TRUE='#'
11987 am__fastdepCC_FALSE=
11988 fi
11989
11990
11991 ac_ext=cpp
967611992 ac_cpp='$CXXCPP $CPPFLAGS'
967711993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
967811994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
967911995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9680
9681
9682
11996 if test -z "$CXX"; then
11997 if test -n "$CCC"; then
11998 CXX=$CCC
11999 else
12000 if test -n "$ac_tool_prefix"; then
12001 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12002 do
12003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if test "${ac_cv_prog_CXX+set}" = set; then
12008 $as_echo_n "(cached) " >&6
12009 else
12010 if test -n "$CXX"; then
12011 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12012 else
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12015 do
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12020 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12022 break 2
12023 fi
12024 done
12025 done
12026 IFS=$as_save_IFS
12027
12028 fi
12029 fi
12030 CXX=$ac_cv_prog_CXX
12031 if test -n "$CXX"; then
12032 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
12033 $as_echo "$CXX" >&6; }
12034 else
12035 { $as_echo "$as_me:$LINENO: result: no" >&5
12036 $as_echo "no" >&6; }
12037 fi
12038
12039
12040 test -n "$CXX" && break
12041 done
12042 fi
12043 if test -z "$CXX"; then
12044 ac_ct_CXX=$CXX
12045 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12046 do
12047 # Extract the first word of "$ac_prog", so it can be a program name with args.
12048 set dummy $ac_prog; ac_word=$2
12049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12050 $as_echo_n "checking for $ac_word... " >&6; }
12051 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12052 $as_echo_n "(cached) " >&6
12053 else
12054 if test -n "$ac_ct_CXX"; then
12055 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12056 else
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12059 do
12060 IFS=$as_save_IFS
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12064 ac_cv_prog_ac_ct_CXX="$ac_prog"
12065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12066 break 2
12067 fi
12068 done
12069 done
12070 IFS=$as_save_IFS
12071
12072 fi
12073 fi
12074 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12075 if test -n "$ac_ct_CXX"; then
12076 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12077 $as_echo "$ac_ct_CXX" >&6; }
12078 else
12079 { $as_echo "$as_me:$LINENO: result: no" >&5
12080 $as_echo "no" >&6; }
12081 fi
12082
12083
12084 test -n "$ac_ct_CXX" && break
12085 done
12086
12087 if test "x$ac_ct_CXX" = x; then
12088 CXX="g++"
12089 else
12090 case $cross_compiling:$ac_tool_warned in
12091 yes:)
12092 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12094 ac_tool_warned=yes ;;
12095 esac
12096 CXX=$ac_ct_CXX
12097 fi
12098 fi
12099
12100 fi
12101 fi
12102 # Provide some information about the compiler.
12103 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12104 set X $ac_compile
12105 ac_compiler=$2
12106 { (ac_try="$ac_compiler --version >&5"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12110 esac
12111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12112 $as_echo "$ac_try_echo") >&5
12113 (eval "$ac_compiler --version >&5") 2>&5
12114 ac_status=$?
12115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }
12117 { (ac_try="$ac_compiler -v >&5"
12118 case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12121 esac
12122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12123 $as_echo "$ac_try_echo") >&5
12124 (eval "$ac_compiler -v >&5") 2>&5
12125 ac_status=$?
12126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }
12128 { (ac_try="$ac_compiler -V >&5"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132 esac
12133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12134 $as_echo "$ac_try_echo") >&5
12135 (eval "$ac_compiler -V >&5") 2>&5
12136 ac_status=$?
12137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }
12139
12140 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12141 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12142 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12143 $as_echo_n "(cached) " >&6
12144 else
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h. */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151
12152 int
12153 main ()
12154 {
12155 #ifndef __GNUC__
12156 choke me
12157 #endif
12158
12159 ;
12160 return 0;
12161 }
12162 _ACEOF
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168 esac
12169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170 $as_echo "$ac_try_echo") >&5
12171 (eval "$ac_compile") 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_cxx_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest.$ac_objext; then
12181 ac_compiler_gnu=yes
12182 else
12183 $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186 ac_compiler_gnu=no
12187 fi
12188
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12191
12192 fi
12193 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12194 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12195 if test $ac_compiler_gnu = yes; then
12196 GXX=yes
12197 else
12198 GXX=
12199 fi
12200 ac_test_CXXFLAGS=${CXXFLAGS+set}
12201 ac_save_CXXFLAGS=$CXXFLAGS
12202 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12203 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12204 if test "${ac_cv_prog_cxx_g+set}" = set; then
12205 $as_echo_n "(cached) " >&6
12206 else
12207 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12208 ac_cxx_werror_flag=yes
12209 ac_cv_prog_cxx_g=no
12210 CXXFLAGS="-g"
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h. */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217
12218 int
12219 main ()
12220 {
12221
12222 ;
12223 return 0;
12224 }
12225 _ACEOF
12226 rm -f conftest.$ac_objext
12227 if { (ac_try="$ac_compile"
12228 case "(($ac_try" in
12229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230 *) ac_try_echo=$ac_try;;
12231 esac
12232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12233 $as_echo "$ac_try_echo") >&5
12234 (eval "$ac_compile") 2>conftest.er1
12235 ac_status=$?
12236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
12239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && {
12241 test -z "$ac_cxx_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest.$ac_objext; then
12244 ac_cv_prog_cxx_g=yes
12245 else
12246 $as_echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12248
12249 CXXFLAGS=""
12250 cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h. */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256
12257 int
12258 main ()
12259 {
12260
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (ac_try="$ac_compile"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270 esac
12271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12272 $as_echo "$ac_try_echo") >&5
12273 (eval "$ac_compile") 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_cxx_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest.$ac_objext; then
12283 :
12284 else
12285 $as_echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12287
12288 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12289 CXXFLAGS="-g"
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296
12297 int
12298 main ()
12299 {
12300
12301 ;
12302 return 0;
12303 }
12304 _ACEOF
12305 rm -f conftest.$ac_objext
12306 if { (ac_try="$ac_compile"
12307 case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12310 esac
12311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12312 $as_echo "$ac_try_echo") >&5
12313 (eval "$ac_compile") 2>conftest.er1
12314 ac_status=$?
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -f conftest.er1
12317 cat conftest.err >&5
12318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && {
12320 test -z "$ac_cxx_werror_flag" ||
12321 test ! -s conftest.err
12322 } && test -s conftest.$ac_objext; then
12323 ac_cv_prog_cxx_g=yes
12324 else
12325 $as_echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12327
12328
12329 fi
12330
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 fi
12333
12334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12335 fi
12336
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12339 fi
12340 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12341 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12342 if test "$ac_test_CXXFLAGS" = set; then
12343 CXXFLAGS=$ac_save_CXXFLAGS
12344 elif test $ac_cv_prog_cxx_g = yes; then
12345 if test "$GXX" = yes; then
12346 CXXFLAGS="-g -O2"
12347 else
12348 CXXFLAGS="-g"
12349 fi
12350 else
12351 if test "$GXX" = yes; then
12352 CXXFLAGS="-O2"
12353 else
12354 CXXFLAGS=
12355 fi
12356 fi
12357 ac_ext=c
12358 ac_cpp='$CPP $CPPFLAGS'
12359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12362
12363 depcc="$CXX" am_compiler_list=
12364
12365 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12366 $as_echo_n "checking dependency style of $depcc... " >&6; }
12367 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12368 $as_echo_n "(cached) " >&6
12369 else
12370 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12371 # We make a subdir and do the tests there. Otherwise we can end up
12372 # making bogus files that we don't know about and never remove. For
12373 # instance it was reported that on HP-UX the gcc test will end up
12374 # making a dummy file named `D' -- because `-MD' means `put the output
12375 # in D'.
12376 mkdir conftest.dir
12377 # Copy depcomp to subdir because otherwise we won't find it if we're
12378 # using a relative directory.
12379 cp "$am_depcomp" conftest.dir
12380 cd conftest.dir
12381 # We will build objects and dependencies in a subdirectory because
12382 # it helps to detect inapplicable dependency modes. For instance
12383 # both Tru64's cc and ICC support -MD to output dependencies as a
12384 # side effect of compilation, but ICC will put the dependencies in
12385 # the current directory while Tru64 will put them in the object
12386 # directory.
12387 mkdir sub
12388
12389 am_cv_CXX_dependencies_compiler_type=none
12390 if test "$am_compiler_list" = ""; then
12391 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12392 fi
12393 for depmode in $am_compiler_list; do
12394 # Setup a source with many dependencies, because some compilers
12395 # like to wrap large dependency lists on column 80 (with \), and
12396 # we should not choose a depcomp mode which is confused by this.
12397 #
12398 # We need to recreate these files for each test, as the compiler may
12399 # overwrite some of them when testing with obscure command lines.
12400 # This happens at least with the AIX C compiler.
12401 : > sub/conftest.c
12402 for i in 1 2 3 4 5 6; do
12403 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12404 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12405 # Solaris 8's {/usr,}/bin/sh.
12406 touch sub/conftst$i.h
12407 done
12408 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12409
12410 case $depmode in
12411 nosideeffect)
12412 # after this tag, mechanisms are not by side-effect, so they'll
12413 # only be used when explicitly requested
12414 if test "x$enable_dependency_tracking" = xyes; then
12415 continue
12416 else
12417 break
12418 fi
12419 ;;
12420 none) break ;;
12421 esac
12422 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12423 # mode. It turns out that the SunPro C++ compiler does not properly
12424 # handle `-M -o', and we need to detect this.
12425 if depmode=$depmode \
12426 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12427 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12428 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12429 >/dev/null 2>conftest.err &&
12430 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12431 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12432 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12433 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12434 # icc doesn't choke on unknown options, it will just issue warnings
12435 # or remarks (even with -Werror). So we grep stderr for any message
12436 # that says an option was ignored or not supported.
12437 # When given -MP, icc 7.0 and 7.1 complain thusly:
12438 # icc: Command line warning: ignoring option '-M'; no argument required
12439 # The diagnosis changed in icc 8.0:
12440 # icc: Command line remark: option '-MP' not supported
12441 if (grep 'ignoring option' conftest.err ||
12442 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12443 am_cv_CXX_dependencies_compiler_type=$depmode
12444 break
12445 fi
12446 fi
12447 done
12448
12449 cd ..
12450 rm -rf conftest.dir
12451 else
12452 am_cv_CXX_dependencies_compiler_type=none
12453 fi
12454
12455 fi
12456 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12457 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12458 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12459
12460 if
12461 test "x$enable_dependency_tracking" != xno \
12462 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12463 am__fastdepCXX_TRUE=
12464 am__fastdepCXX_FALSE='#'
12465 else
12466 am__fastdepCXX_TRUE='#'
12467 am__fastdepCXX_FALSE=
12468 fi
12469
12470
12471
12472 ac_ext=cpp
12473 ac_cpp='$CXXCPP $CPPFLAGS'
12474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12477 if test -z "$CXX"; then
12478 if test -n "$CCC"; then
12479 CXX=$CCC
12480 else
12481 if test -n "$ac_tool_prefix"; then
12482 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12483 do
12484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12486 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12487 $as_echo_n "checking for $ac_word... " >&6; }
12488 if test "${ac_cv_prog_CXX+set}" = set; then
12489 $as_echo_n "(cached) " >&6
12490 else
12491 if test -n "$CXX"; then
12492 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12493 else
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12496 do
12497 IFS=$as_save_IFS
12498 test -z "$as_dir" && as_dir=.
12499 for ac_exec_ext in '' $ac_executable_extensions; do
12500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12501 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12502 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12503 break 2
12504 fi
12505 done
12506 done
12507 IFS=$as_save_IFS
12508
12509 fi
12510 fi
12511 CXX=$ac_cv_prog_CXX
12512 if test -n "$CXX"; then
12513 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
12514 $as_echo "$CXX" >&6; }
12515 else
12516 { $as_echo "$as_me:$LINENO: result: no" >&5
12517 $as_echo "no" >&6; }
12518 fi
12519
12520
12521 test -n "$CXX" && break
12522 done
12523 fi
12524 if test -z "$CXX"; then
12525 ac_ct_CXX=$CXX
12526 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12527 do
12528 # Extract the first word of "$ac_prog", so it can be a program name with args.
12529 set dummy $ac_prog; ac_word=$2
12530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12533 $as_echo_n "(cached) " >&6
12534 else
12535 if test -n "$ac_ct_CXX"; then
12536 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12537 else
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12540 do
12541 IFS=$as_save_IFS
12542 test -z "$as_dir" && as_dir=.
12543 for ac_exec_ext in '' $ac_executable_extensions; do
12544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12545 ac_cv_prog_ac_ct_CXX="$ac_prog"
12546 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12547 break 2
12548 fi
12549 done
12550 done
12551 IFS=$as_save_IFS
12552
12553 fi
12554 fi
12555 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12556 if test -n "$ac_ct_CXX"; then
12557 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12558 $as_echo "$ac_ct_CXX" >&6; }
12559 else
12560 { $as_echo "$as_me:$LINENO: result: no" >&5
12561 $as_echo "no" >&6; }
12562 fi
12563
12564
12565 test -n "$ac_ct_CXX" && break
12566 done
12567
12568 if test "x$ac_ct_CXX" = x; then
12569 CXX="g++"
12570 else
12571 case $cross_compiling:$ac_tool_warned in
12572 yes:)
12573 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12575 ac_tool_warned=yes ;;
12576 esac
12577 CXX=$ac_ct_CXX
12578 fi
12579 fi
12580
12581 fi
12582 fi
12583 # Provide some information about the compiler.
12584 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12585 set X $ac_compile
12586 ac_compiler=$2
12587 { (ac_try="$ac_compiler --version >&5"
12588 case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591 esac
12592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12593 $as_echo "$ac_try_echo") >&5
12594 (eval "$ac_compiler --version >&5") 2>&5
12595 ac_status=$?
12596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }
12598 { (ac_try="$ac_compiler -v >&5"
12599 case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602 esac
12603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12604 $as_echo "$ac_try_echo") >&5
12605 (eval "$ac_compiler -v >&5") 2>&5
12606 ac_status=$?
12607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }
12609 { (ac_try="$ac_compiler -V >&5"
12610 case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12613 esac
12614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12615 $as_echo "$ac_try_echo") >&5
12616 (eval "$ac_compiler -V >&5") 2>&5
12617 ac_status=$?
12618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }
12620
12621 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12622 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12623 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12624 $as_echo_n "(cached) " >&6
12625 else
12626 cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h. */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632
12633 int
12634 main ()
12635 {
12636 #ifndef __GNUC__
12637 choke me
12638 #endif
12639
12640 ;
12641 return 0;
12642 }
12643 _ACEOF
12644 rm -f conftest.$ac_objext
12645 if { (ac_try="$ac_compile"
12646 case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649 esac
12650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12651 $as_echo "$ac_try_echo") >&5
12652 (eval "$ac_compile") 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && {
12659 test -z "$ac_cxx_werror_flag" ||
12660 test ! -s conftest.err
12661 } && test -s conftest.$ac_objext; then
12662 ac_compiler_gnu=yes
12663 else
12664 $as_echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 ac_compiler_gnu=no
12668 fi
12669
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12671 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12672
12673 fi
12674 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12675 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12676 if test $ac_compiler_gnu = yes; then
12677 GXX=yes
12678 else
12679 GXX=
12680 fi
12681 ac_test_CXXFLAGS=${CXXFLAGS+set}
12682 ac_save_CXXFLAGS=$CXXFLAGS
12683 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12684 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12685 if test "${ac_cv_prog_cxx_g+set}" = set; then
12686 $as_echo_n "(cached) " >&6
12687 else
12688 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12689 ac_cxx_werror_flag=yes
12690 ac_cv_prog_cxx_g=no
12691 CXXFLAGS="-g"
12692 cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h. */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698
12699 int
12700 main ()
12701 {
12702
12703 ;
12704 return 0;
12705 }
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (ac_try="$ac_compile"
12709 case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12712 esac
12713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12714 $as_echo "$ac_try_echo") >&5
12715 (eval "$ac_compile") 2>conftest.er1
12716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && {
12722 test -z "$ac_cxx_werror_flag" ||
12723 test ! -s conftest.err
12724 } && test -s conftest.$ac_objext; then
12725 ac_cv_prog_cxx_g=yes
12726 else
12727 $as_echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 CXXFLAGS=""
12731 cat >conftest.$ac_ext <<_ACEOF
12732 /* confdefs.h. */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737
12738 int
12739 main ()
12740 {
12741
12742 ;
12743 return 0;
12744 }
12745 _ACEOF
12746 rm -f conftest.$ac_objext
12747 if { (ac_try="$ac_compile"
12748 case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12751 esac
12752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12753 $as_echo "$ac_try_echo") >&5
12754 (eval "$ac_compile") 2>conftest.er1
12755 ac_status=$?
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
12759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && {
12761 test -z "$ac_cxx_werror_flag" ||
12762 test ! -s conftest.err
12763 } && test -s conftest.$ac_objext; then
12764 :
12765 else
12766 $as_echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12770 CXXFLAGS="-g"
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h. */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777
12778 int
12779 main ()
12780 {
12781
12782 ;
12783 return 0;
12784 }
12785 _ACEOF
12786 rm -f conftest.$ac_objext
12787 if { (ac_try="$ac_compile"
12788 case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12791 esac
12792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12793 $as_echo "$ac_try_echo") >&5
12794 (eval "$ac_compile") 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } && {
12801 test -z "$ac_cxx_werror_flag" ||
12802 test ! -s conftest.err
12803 } && test -s conftest.$ac_objext; then
12804 ac_cv_prog_cxx_g=yes
12805 else
12806 $as_echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12808
12809
12810 fi
12811
12812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 fi
12814
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816 fi
12817
12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12820 fi
12821 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12822 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12823 if test "$ac_test_CXXFLAGS" = set; then
12824 CXXFLAGS=$ac_save_CXXFLAGS
12825 elif test $ac_cv_prog_cxx_g = yes; then
12826 if test "$GXX" = yes; then
12827 CXXFLAGS="-g -O2"
12828 else
12829 CXXFLAGS="-g"
12830 fi
12831 else
12832 if test "$GXX" = yes; then
12833 CXXFLAGS="-O2"
12834 else
12835 CXXFLAGS=
12836 fi
12837 fi
12838 ac_ext=c
12839 ac_cpp='$CPP $CPPFLAGS'
12840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12843
12844 depcc="$CXX" am_compiler_list=
12845
12846 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12847 $as_echo_n "checking dependency style of $depcc... " >&6; }
12848 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12849 $as_echo_n "(cached) " >&6
12850 else
12851 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12852 # We make a subdir and do the tests there. Otherwise we can end up
12853 # making bogus files that we don't know about and never remove. For
12854 # instance it was reported that on HP-UX the gcc test will end up
12855 # making a dummy file named `D' -- because `-MD' means `put the output
12856 # in D'.
12857 mkdir conftest.dir
12858 # Copy depcomp to subdir because otherwise we won't find it if we're
12859 # using a relative directory.
12860 cp "$am_depcomp" conftest.dir
12861 cd conftest.dir
12862 # We will build objects and dependencies in a subdirectory because
12863 # it helps to detect inapplicable dependency modes. For instance
12864 # both Tru64's cc and ICC support -MD to output dependencies as a
12865 # side effect of compilation, but ICC will put the dependencies in
12866 # the current directory while Tru64 will put them in the object
12867 # directory.
12868 mkdir sub
12869
12870 am_cv_CXX_dependencies_compiler_type=none
12871 if test "$am_compiler_list" = ""; then
12872 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12873 fi
12874 for depmode in $am_compiler_list; do
12875 # Setup a source with many dependencies, because some compilers
12876 # like to wrap large dependency lists on column 80 (with \), and
12877 # we should not choose a depcomp mode which is confused by this.
12878 #
12879 # We need to recreate these files for each test, as the compiler may
12880 # overwrite some of them when testing with obscure command lines.
12881 # This happens at least with the AIX C compiler.
12882 : > sub/conftest.c
12883 for i in 1 2 3 4 5 6; do
12884 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12885 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12886 # Solaris 8's {/usr,}/bin/sh.
12887 touch sub/conftst$i.h
12888 done
12889 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12890
12891 case $depmode in
12892 nosideeffect)
12893 # after this tag, mechanisms are not by side-effect, so they'll
12894 # only be used when explicitly requested
12895 if test "x$enable_dependency_tracking" = xyes; then
12896 continue
12897 else
12898 break
12899 fi
12900 ;;
12901 none) break ;;
12902 esac
12903 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12904 # mode. It turns out that the SunPro C++ compiler does not properly
12905 # handle `-M -o', and we need to detect this.
12906 if depmode=$depmode \
12907 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12909 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12910 >/dev/null 2>conftest.err &&
12911 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12912 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12913 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12914 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12915 # icc doesn't choke on unknown options, it will just issue warnings
12916 # or remarks (even with -Werror). So we grep stderr for any message
12917 # that says an option was ignored or not supported.
12918 # When given -MP, icc 7.0 and 7.1 complain thusly:
12919 # icc: Command line warning: ignoring option '-M'; no argument required
12920 # The diagnosis changed in icc 8.0:
12921 # icc: Command line remark: option '-MP' not supported
12922 if (grep 'ignoring option' conftest.err ||
12923 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12924 am_cv_CXX_dependencies_compiler_type=$depmode
12925 break
12926 fi
12927 fi
12928 done
12929
12930 cd ..
12931 rm -rf conftest.dir
12932 else
12933 am_cv_CXX_dependencies_compiler_type=none
12934 fi
12935
12936 fi
12937 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12938 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12939 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12940
12941 if
12942 test "x$enable_dependency_tracking" != xno \
12943 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12944 am__fastdepCXX_TRUE=
12945 am__fastdepCXX_FALSE='#'
12946 else
12947 am__fastdepCXX_TRUE='#'
12948 am__fastdepCXX_FALSE=
12949 fi
12950
12951
12952 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12953 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12954 (test "X$CXX" != "Xg++"))) ; then
12955 ac_ext=cpp
12956 ac_cpp='$CXXCPP $CPPFLAGS'
12957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12960 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12961 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12962 if test -z "$CXXCPP"; then
12963 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12964 $as_echo_n "(cached) " >&6
12965 else
12966 # Double quotes because CXXCPP needs to be expanded
12967 for CXXCPP in "$CXX -E" "/lib/cpp"
12968 do
12969 ac_preproc_ok=false
12970 for ac_cxx_preproc_warn_flag in '' yes
12971 do
12972 # Use a header file that comes with gcc, so configuring glibc
12973 # with a fresh cross-compiler works.
12974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12975 # <limits.h> exists even on freestanding compilers.
12976 # On the NeXT, cc -E runs the code through the compiler's parser,
12977 # not just through cpp. "Syntax error" is here to catch this case.
12978 cat >conftest.$ac_ext <<_ACEOF
12979 /* confdefs.h. */
12980 _ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12984 #ifdef __STDC__
12985 # include <limits.h>
12986 #else
12987 # include <assert.h>
12988 #endif
12989 Syntax error
12990 _ACEOF
12991 if { (ac_try="$ac_cpp conftest.$ac_ext"
12992 case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995 esac
12996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12997 $as_echo "$ac_try_echo") >&5
12998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } >/dev/null && {
13005 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13006 test ! -s conftest.err
13007 }; then
13008 :
13009 else
13010 $as_echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13012
13013 # Broken: fails on valid input.
13014 continue
13015 fi
13016
13017 rm -f conftest.err conftest.$ac_ext
13018
13019 # OK, works on sane cases. Now check whether nonexistent headers
13020 # can be detected and how.
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h. */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13027 #include <ac_nonexistent.h>
13028 _ACEOF
13029 if { (ac_try="$ac_cpp conftest.$ac_ext"
13030 case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13033 esac
13034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13035 $as_echo "$ac_try_echo") >&5
13036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13037 ac_status=$?
13038 grep -v '^ *+' conftest.er1 >conftest.err
13039 rm -f conftest.er1
13040 cat conftest.err >&5
13041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } >/dev/null && {
13043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13044 test ! -s conftest.err
13045 }; then
13046 # Broken: success on invalid input.
13047 continue
13048 else
13049 $as_echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052 # Passes both tests.
13053 ac_preproc_ok=:
13054 break
13055 fi
13056
13057 rm -f conftest.err conftest.$ac_ext
13058
13059 done
13060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13061 rm -f conftest.err conftest.$ac_ext
13062 if $ac_preproc_ok; then
13063 break
13064 fi
13065
13066 done
13067 ac_cv_prog_CXXCPP=$CXXCPP
13068
13069 fi
13070 CXXCPP=$ac_cv_prog_CXXCPP
13071 else
13072 ac_cv_prog_CXXCPP=$CXXCPP
13073 fi
13074 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
13075 $as_echo "$CXXCPP" >&6; }
13076 ac_preproc_ok=false
13077 for ac_cxx_preproc_warn_flag in '' yes
13078 do
13079 # Use a header file that comes with gcc, so configuring glibc
13080 # with a fresh cross-compiler works.
13081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13082 # <limits.h> exists even on freestanding compilers.
13083 # On the NeXT, cc -E runs the code through the compiler's parser,
13084 # not just through cpp. "Syntax error" is here to catch this case.
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h. */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 #ifdef __STDC__
13092 # include <limits.h>
13093 #else
13094 # include <assert.h>
13095 #endif
13096 Syntax error
13097 _ACEOF
13098 if { (ac_try="$ac_cpp conftest.$ac_ext"
13099 case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13102 esac
13103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13104 $as_echo "$ac_try_echo") >&5
13105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13106 ac_status=$?
13107 grep -v '^ *+' conftest.er1 >conftest.err
13108 rm -f conftest.er1
13109 cat conftest.err >&5
13110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } >/dev/null && {
13112 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13113 test ! -s conftest.err
13114 }; then
13115 :
13116 else
13117 $as_echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13119
13120 # Broken: fails on valid input.
13121 continue
13122 fi
13123
13124 rm -f conftest.err conftest.$ac_ext
13125
13126 # OK, works on sane cases. Now check whether nonexistent headers
13127 # can be detected and how.
13128 cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h. */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 #include <ac_nonexistent.h>
13135 _ACEOF
13136 if { (ac_try="$ac_cpp conftest.$ac_ext"
13137 case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13140 esac
13141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13142 $as_echo "$ac_try_echo") >&5
13143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13144 ac_status=$?
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
13148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } >/dev/null && {
13150 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13151 test ! -s conftest.err
13152 }; then
13153 # Broken: success on invalid input.
13154 continue
13155 else
13156 $as_echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159 # Passes both tests.
13160 ac_preproc_ok=:
13161 break
13162 fi
13163
13164 rm -f conftest.err conftest.$ac_ext
13165
13166 done
13167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13168 rm -f conftest.err conftest.$ac_ext
13169 if $ac_preproc_ok; then
13170 :
13171 else
13172 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13174 _lt_caught_CXX_error=yes; }
13175 fi
13176
13177 ac_ext=c
13178 ac_cpp='$CPP $CPPFLAGS'
13179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13182
13183 else
13184 _lt_caught_CXX_error=yes
13185 fi
13186
13187
13188
13189
13190 ac_ext=cpp
13191 ac_cpp='$CXXCPP $CPPFLAGS'
13192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
968313195
968413196 archive_cmds_need_lc_CXX=no
968513197 allow_undefined_flag_CXX=
968613198 always_export_symbols_CXX=no
968713199 archive_expsym_cmds_CXX=
13200 compiler_needs_object_CXX=no
968813201 export_dynamic_flag_spec_CXX=
968913202 hardcode_direct_CXX=no
13203 hardcode_direct_absolute_CXX=no
969013204 hardcode_libdir_flag_spec_CXX=
969113205 hardcode_libdir_flag_spec_ld_CXX=
969213206 hardcode_libdir_separator_CXX=
969313207 hardcode_minus_L_CXX=no
13208 hardcode_shlibpath_var_CXX=unsupported
969413209 hardcode_automatic_CXX=no
13210 inherit_rpath_CXX=no
969513211 module_cmds_CXX=
969613212 module_expsym_cmds_CXX=
969713213 link_all_deplibs_CXX=unknown
970013216 whole_archive_flag_spec_CXX=
970113217 enable_shared_with_static_runtimes_CXX=no
970213218
9703 # Dependencies to place before and after the object being linked:
9704 predep_objects_CXX=
9705 postdep_objects_CXX=
9706 predeps_CXX=
9707 postdeps_CXX=
9708 compiler_lib_search_path_CXX=
9709
971013219 # Source file extension for C++ test sources.
9711 ac_ext=cc
13220 ac_ext=cpp
971213221
971313222 # Object file extension for compiled C++ test sources.
971413223 objext=o
971513224 objext_CXX=$objext
971613225
9717 # Code to be used in simple compile tests
9718 lt_simple_compile_test_code="int some_variable = 0;\n"
9719
9720 # Code to be used in simple link tests
9721 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9722
9723 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13226 # No sense in running all these tests if we already determined that
13227 # the CXX compiler isn't working. Some variables (like enable_shared)
13228 # are currently assumed to apply to all compilers on this platform,
13229 # and will be corrupted by setting them based on a non-working compiler.
13230 if test "$_lt_caught_CXX_error" != yes; then
13231 # Code to be used in simple compile tests
13232 lt_simple_compile_test_code="int some_variable = 0;"
13233
13234 # Code to be used in simple link tests
13235 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13236
13237 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13238
13239
13240
13241
13242
972413243
972513244 # If no C compiler was specified, use CC.
972613245 LTCC=${LTCC-"$CC"}
972713246
13247 # If no C compiler flags were specified, use CFLAGS.
13248 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13249
972813250 # Allow CC to be a program name with arguments.
972913251 compiler=$CC
973013252
973113253
9732 # Allow CC to be a program name with arguments.
9733 lt_save_CC=$CC
9734 lt_save_LD=$LD
9735 lt_save_GCC=$GCC
9736 GCC=$GXX
9737 lt_save_with_gnu_ld=$with_gnu_ld
9738 lt_save_path_LD=$lt_cv_path_LD
9739 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9740 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9741 else
9742 unset lt_cv_prog_gnu_ld
9743 fi
9744 if test -n "${lt_cv_path_LDCXX+set}"; then
9745 lt_cv_path_LD=$lt_cv_path_LDCXX
9746 else
9747 unset lt_cv_path_LD
9748 fi
9749 test -z "${LDCXX+set}" || LD=$LDCXX
9750 CC=${CXX-"c++"}
9751 compiler=$CC
9752 compiler_CXX=$CC
9753 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9754
9755 # We don't want -fno-exception wen compiling C++ code, so set the
9756 # no_builtin_flag separately
9757 if test "$GXX" = yes; then
9758 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9759 else
9760 lt_prog_compiler_no_builtin_flag_CXX=
9761 fi
9762
9763 if test "$GXX" = yes; then
9764 # Set up default GNU C++ configuration
9765
9766
9767 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13254 # save warnings/boilerplate of simple test code
13255 ac_outfile=conftest.$ac_objext
13256 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13257 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13258 _lt_compiler_boilerplate=`cat conftest.err`
13259 $RM conftest*
13260
13261 ac_outfile=conftest.$ac_objext
13262 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13263 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13264 _lt_linker_boilerplate=`cat conftest.err`
13265 $RM -r conftest*
13266
13267
13268 # Allow CC to be a program name with arguments.
13269 lt_save_CC=$CC
13270 lt_save_LD=$LD
13271 lt_save_GCC=$GCC
13272 GCC=$GXX
13273 lt_save_with_gnu_ld=$with_gnu_ld
13274 lt_save_path_LD=$lt_cv_path_LD
13275 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13276 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13277 else
13278 $as_unset lt_cv_prog_gnu_ld
13279 fi
13280 if test -n "${lt_cv_path_LDCXX+set}"; then
13281 lt_cv_path_LD=$lt_cv_path_LDCXX
13282 else
13283 $as_unset lt_cv_path_LD
13284 fi
13285 test -z "${LDCXX+set}" || LD=$LDCXX
13286 CC=${CXX-"c++"}
13287 compiler=$CC
13288 compiler_CXX=$CC
13289 for cc_temp in $compiler""; do
13290 case $cc_temp in
13291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13293 \-*) ;;
13294 *) break;;
13295 esac
13296 done
13297 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13298
13299
13300 if test -n "$compiler"; then
13301 # We don't want -fno-exception when compiling C++ code, so set the
13302 # no_builtin_flag separately
13303 if test "$GXX" = yes; then
13304 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13305 else
13306 lt_prog_compiler_no_builtin_flag_CXX=
13307 fi
13308
13309 if test "$GXX" = yes; then
13310 # Set up default GNU C++ configuration
13311
13312
13313
13314 # Check whether --with-gnu-ld was given.
976813315 if test "${with_gnu_ld+set}" = set; then
9769 withval="$with_gnu_ld"
9770 test "$withval" = no || with_gnu_ld=yes
13316 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
977113317 else
977213318 with_gnu_ld=no
9773 fi;
13319 fi
13320
977413321 ac_prog=ld
977513322 if test "$GCC" = yes; then
977613323 # Check if gcc -print-prog-name=ld gives a path.
9777 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9778 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13324 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13325 $as_echo_n "checking for ld used by $CC... " >&6; }
977913326 case $host in
978013327 *-*-mingw*)
978113328 # gcc leaves a trailing carriage return which upsets mingw
978813335 [\\/]* | ?:[\\/]*)
978913336 re_direlt='/[^/][^/]*/\.\./'
979013337 # Canonicalize the pathname of ld
9791 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9793 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13338 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13339 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13340 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
979413341 done
979513342 test -z "$LD" && LD="$ac_prog"
979613343 ;;
980413351 ;;
980513352 esac
980613353 elif test "$with_gnu_ld" = yes; then
9807 echo "$as_me:$LINENO: checking for GNU ld" >&5
9808 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9809 else
9810 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9811 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13354 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13355 $as_echo_n "checking for GNU ld... " >&6; }
13356 else
13357 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13358 $as_echo_n "checking for non-GNU ld... " >&6; }
981213359 fi
981313360 if test "${lt_cv_path_LD+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 $as_echo_n "(cached) " >&6
981513362 else
981613363 if test -z "$LD"; then
981713364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
982113368 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
982213369 lt_cv_path_LD="$ac_dir/$ac_prog"
982313370 # Check to see if the program is GNU ld. I'd rather use --version,
9824 # but apparently some GNU ld's only accept -v.
13371 # but apparently some variants of GNU ld only accept -v.
982513372 # Break only if it was the GNU/non-GNU ld that we prefer.
982613373 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
982713374 *GNU* | *'with BFD'*)
984113388
984213389 LD="$lt_cv_path_LD"
984313390 if test -n "$LD"; then
9844 echo "$as_me:$LINENO: result: $LD" >&5
9845 echo "${ECHO_T}$LD" >&6
9846 else
9847 echo "$as_me:$LINENO: result: no" >&5
9848 echo "${ECHO_T}no" >&6
9849 fi
9850 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9851 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13391 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13392 $as_echo "$LD" >&6; }
13393 else
13394 { $as_echo "$as_me:$LINENO: result: no" >&5
13395 $as_echo "no" >&6; }
13396 fi
13397 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13398 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
985213399 { (exit 1); exit 1; }; }
9853 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9854 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13400 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13401 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
985513402 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13403 $as_echo_n "(cached) " >&6
13404 else
13405 # I'd rather use --version here, but apparently some GNU lds only accept -v.
985913406 case `$LD -v 2>&1 </dev/null` in
986013407 *GNU* | *'with BFD'*)
986113408 lt_cv_prog_gnu_ld=yes
986513412 ;;
986613413 esac
986713414 fi
9868 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9869 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13415 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13416 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
987013417 with_gnu_ld=$lt_cv_prog_gnu_ld
987113418
987213419
987313420
9874 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9875 # archiving commands below assume that GNU ld is being used.
9876 if test "$with_gnu_ld" = yes; then
9877 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9878 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9879
9880 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9881 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9882
9883 # If archive_cmds runs LD, not CC, wlarc should be empty
9884 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9885 # investigate it a little bit more. (MM)
9886 wlarc='${wl}'
9887
9888 # ancient GNU ld didn't support --whole-archive et. al.
9889 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9890 grep 'no-whole-archive' > /dev/null; then
9891 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13421
13422
13423
13424
13425 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13426 # archiving commands below assume that GNU ld is being used.
13427 if test "$with_gnu_ld" = yes; then
13428 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13429 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13430
13431 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13432 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13433
13434 # If archive_cmds runs LD, not CC, wlarc should be empty
13435 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13436 # investigate it a little bit more. (MM)
13437 wlarc='${wl}'
13438
13439 # ancient GNU ld didn't support --whole-archive et. al.
13440 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13441 $GREP 'no-whole-archive' > /dev/null; then
13442 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13443 else
13444 whole_archive_flag_spec_CXX=
13445 fi
13446 else
13447 with_gnu_ld=no
13448 wlarc=
13449
13450 # A generic and very simple default shared library creation
13451 # command for GNU C++ for the case where it uses the native
13452 # linker, instead of GNU ld. If possible, this setting should
13453 # overridden to take advantage of the native linker features on
13454 # the platform it is being used on.
13455 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13456 fi
13457
13458 # Commands to make compiler produce verbose output that lists
13459 # what "hidden" libraries, object files and flags are used when
13460 # linking a shared library.
13461 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13462
989213463 else
9893 whole_archive_flag_spec_CXX=
13464 GXX=no
13465 with_gnu_ld=no
13466 wlarc=
989413467 fi
9895 else
9896 with_gnu_ld=no
9897 wlarc=
9898
9899 # A generic and very simple default shared library creation
9900 # command for GNU C++ for the case where it uses the native
9901 # linker, instead of GNU ld. If possible, this setting should
9902 # overridden to take advantage of the native linker features on
9903 # the platform it is being used on.
9904 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9905 fi
9906
9907 # Commands to make compiler produce verbose output that lists
9908 # what "hidden" libraries, object files and flags are used when
9909 # linking a shared library.
9910 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9911
9912 else
9913 GXX=no
9914 with_gnu_ld=no
9915 wlarc=
9916 fi
9917
9918 # PORTME: fill in a description of your system's C++ link characteristics
9919 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9921 ld_shlibs_CXX=yes
9922 case $host_os in
9923 aix3*)
9924 # FIXME: insert proper C++ library support
9925 ld_shlibs_CXX=no
9926 ;;
9927 aix4* | aix5*)
9928 if test "$host_cpu" = ia64; then
9929 # On IA64, the linker does run time linking by default, so we don't
9930 # have to do anything special.
9931 aix_use_runtimelinking=no
9932 exp_sym_flag='-Bexport'
9933 no_entry_flag=""
9934 else
9935 aix_use_runtimelinking=no
9936
9937 # Test if we are trying to use run time linking or normal
9938 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9939 # need to do runtime linking.
9940 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9941 for ld_flag in $LDFLAGS; do
9942 case $ld_flag in
9943 *-brtl*)
9944 aix_use_runtimelinking=yes
9945 break
13468
13469 # PORTME: fill in a description of your system's C++ link characteristics
13470 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13472 ld_shlibs_CXX=yes
13473 case $host_os in
13474 aix3*)
13475 # FIXME: insert proper C++ library support
13476 ld_shlibs_CXX=no
13477 ;;
13478 aix[4-9]*)
13479 if test "$host_cpu" = ia64; then
13480 # On IA64, the linker does run time linking by default, so we don't
13481 # have to do anything special.
13482 aix_use_runtimelinking=no
13483 exp_sym_flag='-Bexport'
13484 no_entry_flag=""
13485 else
13486 aix_use_runtimelinking=no
13487
13488 # Test if we are trying to use run time linking or normal
13489 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13490 # need to do runtime linking.
13491 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13492 for ld_flag in $LDFLAGS; do
13493 case $ld_flag in
13494 *-brtl*)
13495 aix_use_runtimelinking=yes
13496 break
13497 ;;
13498 esac
13499 done
994613500 ;;
9947 esac
9948 done
9949 esac
9950
9951 exp_sym_flag='-bexport'
9952 no_entry_flag='-bnoentry'
9953 fi
9954
9955 # When large executables or shared objects are built, AIX ld can
9956 # have problems creating the table of contents. If linking a library
9957 # or program results in "error TOC overflow" add -mminimal-toc to
9958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9960
9961 archive_cmds_CXX=''
9962 hardcode_direct_CXX=yes
9963 hardcode_libdir_separator_CXX=':'
9964 link_all_deplibs_CXX=yes
9965
9966 if test "$GXX" = yes; then
9967 case $host_os in aix4.012|aix4.012.*)
9968 # We only want to do this on AIX 4.2 and lower, the check
9969 # below for broken collect2 doesn't work under 4.3+
9970 collect2name=`${CC} -print-prog-name=collect2`
9971 if test -f "$collect2name" && \
9972 strings "$collect2name" | grep resolve_lib_name >/dev/null
9973 then
9974 # We have reworked collect2
9975 hardcode_direct_CXX=yes
9976 else
9977 # We have old collect2
9978 hardcode_direct_CXX=unsupported
9979 # It fails to find uninstalled libraries when the uninstalled
9980 # path is not listed in the libpath. Setting hardcode_minus_L
9981 # to unsupported forces relinking
9982 hardcode_minus_L_CXX=yes
9983 hardcode_libdir_flag_spec_CXX='-L$libdir'
9984 hardcode_libdir_separator_CXX=
9985 fi
9986 esac
9987 shared_flag='-shared'
9988 else
9989 # not using gcc
9990 if test "$host_cpu" = ia64; then
9991 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9992 # chokes on -Wl,-G. The following line is correct:
9993 shared_flag='-G'
9994 else
9995 if test "$aix_use_runtimelinking" = yes; then
9996 shared_flag='${wl}-G'
9997 else
9998 shared_flag='${wl}-bM:SRE'
9999 fi
10000 fi
10001 fi
10002
10003 # It seems that -bexpall does not export symbols beginning with
10004 # underscore (_), so it is better to generate a list of symbols to export.
10005 always_export_symbols_CXX=yes
10006 if test "$aix_use_runtimelinking" = yes; then
10007 # Warning - without using the other runtime loading flags (-brtl),
10008 # -berok will link without error, but may produce a broken library.
10009 allow_undefined_flag_CXX='-berok'
10010 # Determine the default libpath from the value encoded in an empty executable.
10011 cat >conftest.$ac_ext <<_ACEOF
13501 esac
13502
13503 exp_sym_flag='-bexport'
13504 no_entry_flag='-bnoentry'
13505 fi
13506
13507 # When large executables or shared objects are built, AIX ld can
13508 # have problems creating the table of contents. If linking a library
13509 # or program results in "error TOC overflow" add -mminimal-toc to
13510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13512
13513 archive_cmds_CXX=''
13514 hardcode_direct_CXX=yes
13515 hardcode_direct_absolute_CXX=yes
13516 hardcode_libdir_separator_CXX=':'
13517 link_all_deplibs_CXX=yes
13518 file_list_spec_CXX='${wl}-f,'
13519
13520 if test "$GXX" = yes; then
13521 case $host_os in aix4.[012]|aix4.[012].*)
13522 # We only want to do this on AIX 4.2 and lower, the check
13523 # below for broken collect2 doesn't work under 4.3+
13524 collect2name=`${CC} -print-prog-name=collect2`
13525 if test -f "$collect2name" &&
13526 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13527 then
13528 # We have reworked collect2
13529 :
13530 else
13531 # We have old collect2
13532 hardcode_direct_CXX=unsupported
13533 # It fails to find uninstalled libraries when the uninstalled
13534 # path is not listed in the libpath. Setting hardcode_minus_L
13535 # to unsupported forces relinking
13536 hardcode_minus_L_CXX=yes
13537 hardcode_libdir_flag_spec_CXX='-L$libdir'
13538 hardcode_libdir_separator_CXX=
13539 fi
13540 esac
13541 shared_flag='-shared'
13542 if test "$aix_use_runtimelinking" = yes; then
13543 shared_flag="$shared_flag "'${wl}-G'
13544 fi
13545 else
13546 # not using gcc
13547 if test "$host_cpu" = ia64; then
13548 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13549 # chokes on -Wl,-G. The following line is correct:
13550 shared_flag='-G'
13551 else
13552 if test "$aix_use_runtimelinking" = yes; then
13553 shared_flag='${wl}-G'
13554 else
13555 shared_flag='${wl}-bM:SRE'
13556 fi
13557 fi
13558 fi
13559
13560 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13561 # It seems that -bexpall does not export symbols beginning with
13562 # underscore (_), so it is better to generate a list of symbols to
13563 # export.
13564 always_export_symbols_CXX=yes
13565 if test "$aix_use_runtimelinking" = yes; then
13566 # Warning - without using the other runtime loading flags (-brtl),
13567 # -berok will link without error, but may produce a broken library.
13568 allow_undefined_flag_CXX='-berok'
13569 # Determine the default libpath from the value encoded in an empty
13570 # executable.
13571 cat >conftest.$ac_ext <<_ACEOF
1001213572 /* confdefs.h. */
1001313573 _ACEOF
1001413574 cat confdefs.h >>conftest.$ac_ext
1002413584 }
1002513585 _ACEOF
1002613586 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>conftest.er1
13587 if { (ac_try="$ac_link"
13588 case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591 esac
13592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13593 $as_echo "$ac_try_echo") >&5
13594 (eval "$ac_link") 2>conftest.er1
1002913595 ac_status=$?
1003013596 grep -v '^ *+' conftest.er1 >conftest.err
1003113597 rm -f conftest.er1
1003213598 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; } &&
10041 { ac_try='test -s conftest$ac_exeext'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047
10048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10049 }'`
13599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } && {
13601 test -z "$ac_cxx_werror_flag" ||
13602 test ! -s conftest.err
13603 } && test -s conftest$ac_exeext && {
13604 test "$cross_compiling" = yes ||
13605 $as_test_x conftest$ac_exeext
13606 }; then
13607
13608 lt_aix_libpath_sed='
13609 /Import File Strings/,/^$/ {
13610 /^0/ {
13611 s/^0 *\(.*\)$/\1/
13612 p
13613 }
13614 }'
13615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1005013616 # Check for a 64-bit object if we didn't find anything.
10051 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10052 }'`; fi
10053 else
10054 echo "$as_me: failed program was:" >&5
13617 if test -z "$aix_libpath"; then
13618 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13619 fi
13620 else
13621 $as_echo "$as_me: failed program was:" >&5
1005513622 sed 's/^/| /' conftest.$ac_ext >&5
1005613623
10057 fi
10058 rm -f conftest.err conftest.$ac_objext \
13624
13625 fi
13626
13627 rm -rf conftest.dSYM
13628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1005913629 conftest$ac_exeext conftest.$ac_ext
1006013630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1006113631
10062 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10063
10064 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10065 else
10066 if test "$host_cpu" = ia64; then
10067 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10068 allow_undefined_flag_CXX="-z nodefs"
10069 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10070 else
10071 # Determine the default libpath from the value encoded in an empty executable.
10072 cat >conftest.$ac_ext <<_ACEOF
13632 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13633
13634 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13635 else
13636 if test "$host_cpu" = ia64; then
13637 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13638 allow_undefined_flag_CXX="-z nodefs"
13639 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13640 else
13641 # Determine the default libpath from the value encoded in an
13642 # empty executable.
13643 cat >conftest.$ac_ext <<_ACEOF
1007313644 /* confdefs.h. */
1007413645 _ACEOF
1007513646 cat confdefs.h >>conftest.$ac_ext
1008513656 }
1008613657 _ACEOF
1008713658 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>conftest.er1
13659 if { (ac_try="$ac_link"
13660 case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13663 esac
13664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13665 $as_echo "$ac_try_echo") >&5
13666 (eval "$ac_link") 2>conftest.er1
1009013667 ac_status=$?
1009113668 grep -v '^ *+' conftest.er1 >conftest.err
1009213669 rm -f conftest.er1
1009313670 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest$ac_exeext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108
10109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10110 }'`
13671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } && {
13673 test -z "$ac_cxx_werror_flag" ||
13674 test ! -s conftest.err
13675 } && test -s conftest$ac_exeext && {
13676 test "$cross_compiling" = yes ||
13677 $as_test_x conftest$ac_exeext
13678 }; then
13679
13680 lt_aix_libpath_sed='
13681 /Import File Strings/,/^$/ {
13682 /^0/ {
13683 s/^0 *\(.*\)$/\1/
13684 p
13685 }
13686 }'
13687 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1011113688 # Check for a 64-bit object if we didn't find anything.
10112 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10113 }'`; fi
10114 else
10115 echo "$as_me: failed program was:" >&5
13689 if test -z "$aix_libpath"; then
13690 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13691 fi
13692 else
13693 $as_echo "$as_me: failed program was:" >&5
1011613694 sed 's/^/| /' conftest.$ac_ext >&5
1011713695
10118 fi
10119 rm -f conftest.err conftest.$ac_objext \
13696
13697 fi
13698
13699 rm -rf conftest.dSYM
13700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1012013701 conftest$ac_exeext conftest.$ac_ext
1012113702 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1012213703
10123 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10124 # Warning - without using the other run time loading flags,
10125 # -berok will link without error, but may produce a broken library.
10126 no_undefined_flag_CXX=' ${wl}-bernotok'
10127 allow_undefined_flag_CXX=' ${wl}-berok'
10128 # -bexpall does not export symbols beginning with underscore (_)
10129 always_export_symbols_CXX=yes
10130 # Exported symbols can be pulled into shared objects from archives
10131 whole_archive_flag_spec_CXX=' '
10132 archive_cmds_need_lc_CXX=yes
10133 # This is similar to how AIX traditionally builds it's shared libraries.
10134 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10135 fi
10136 fi
10137 ;;
10138 chorus*)
10139 case $cc_basename in
10140 *)
10141 # FIXME: insert proper C++ library support
10142 ld_shlibs_CXX=no
10143 ;;
10144 esac
10145 ;;
10146
10147 cygwin* | mingw* | pw32*)
10148 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10149 # as there is no search path for DLLs.
10150 hardcode_libdir_flag_spec_CXX='-L$libdir'
10151 allow_undefined_flag_CXX=unsupported
10152 always_export_symbols_CXX=no
10153 enable_shared_with_static_runtimes_CXX=yes
10154
10155 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10156 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10157 # If the export-symbols file already is a .def file (1st line
10158 # is EXPORTS), use it as is; otherwise, prepend...
10159 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10160 cp $export_symbols $output_objdir/$soname.def;
10161 else
10162 echo EXPORTS > $output_objdir/$soname.def;
10163 cat $export_symbols >> $output_objdir/$soname.def;
10164 fi~
10165 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10166 else
10167 ld_shlibs_CXX=no
10168 fi
10169 ;;
10170
10171 darwin* | rhapsody*)
10172 if test "$GXX" = yes; then
10173 archive_cmds_need_lc_CXX=no
10174 case "$host_os" in
10175 rhapsody* | darwin1.[012])
10176 allow_undefined_flag_CXX='-undefined suppress'
10177 ;;
10178 *) # Darwin 1.3 on
10179 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10180 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10181 else
10182 case ${MACOSX_DEPLOYMENT_TARGET} in
10183 10.[012])
10184 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10185 ;;
10186 10.*)
10187 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10188 ;;
10189 esac
10190 fi
10191 ;;
10192 esac
10193 lt_int_apple_cc_single_mod=no
10194 output_verbose_link_cmd='echo'
10195 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10196 lt_int_apple_cc_single_mod=yes
10197 fi
10198 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10199 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10200 else
10201 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10202 fi
10203 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10204
10205 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10206 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10207 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10208 else
10209 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10210 fi
10211 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10212 hardcode_direct_CXX=no
10213 hardcode_automatic_CXX=yes
10214 hardcode_shlibpath_var_CXX=unsupported
10215 whole_archive_flag_spec_CXX='-all_load $convenience'
10216 link_all_deplibs_CXX=yes
10217 else
10218 ld_shlibs_CXX=no
10219 fi
10220 ;;
10221
10222 dgux*)
10223 case $cc_basename in
10224 ec++)
10225 # FIXME: insert proper C++ library support
10226 ld_shlibs_CXX=no
10227 ;;
10228 ghcx)
10229 # Green Hills C++ Compiler
10230 # FIXME: insert proper C++ library support
10231 ld_shlibs_CXX=no
10232 ;;
10233 *)
10234 # FIXME: insert proper C++ library support
10235 ld_shlibs_CXX=no
10236 ;;
10237 esac
10238 ;;
10239 freebsd12*)
10240 # C++ shared libraries reported to be fairly broken before switch to ELF
10241 ld_shlibs_CXX=no
10242 ;;
10243 freebsd-elf*)
10244 archive_cmds_need_lc_CXX=no
10245 ;;
10246 freebsd* | kfreebsd*-gnu)
10247 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10248 # conventions
10249 ld_shlibs_CXX=yes
10250 ;;
10251 gnu*)
10252 ;;
10253 hpux9*)
10254 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10255 hardcode_libdir_separator_CXX=:
10256 export_dynamic_flag_spec_CXX='${wl}-E'
10257 hardcode_direct_CXX=yes
10258 hardcode_minus_L_CXX=yes # Not in the search PATH,
10259 # but as the default
10260 # location of the library.
10261
10262 case $cc_basename in
10263 CC)
10264 # FIXME: insert proper C++ library support
10265 ld_shlibs_CXX=no
10266 ;;
10267 aCC)
10268 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10269 # Commands to make compiler produce verbose output that lists
10270 # what "hidden" libraries, object files and flags are used when
10271 # linking a shared library.
10272 #
10273 # There doesn't appear to be a way to prevent this compiler from
10274 # explicitly linking system object files so we need to strip them
10275 # from the output so that they don't get included in the library
10276 # dependencies.
10277 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10278 ;;
10279 *)
10280 if test "$GXX" = yes; then
10281 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10282 else
10283 # FIXME: insert proper C++ library support
10284 ld_shlibs_CXX=no
10285 fi
10286 ;;
10287 esac
10288 ;;
10289 hpux10*|hpux11*)
10290 if test $with_gnu_ld = no; then
10291 case "$host_cpu" in
10292 hppa*64*)
10293 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10294 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10295 hardcode_libdir_separator_CXX=:
13704 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13705 # Warning - without using the other run time loading flags,
13706 # -berok will link without error, but may produce a broken library.
13707 no_undefined_flag_CXX=' ${wl}-bernotok'
13708 allow_undefined_flag_CXX=' ${wl}-berok'
13709 # Exported symbols can be pulled into shared objects from archives
13710 whole_archive_flag_spec_CXX='$convenience'
13711 archive_cmds_need_lc_CXX=yes
13712 # This is similar to how AIX traditionally builds its shared
13713 # libraries.
13714 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13715 fi
13716 fi
1029613717 ;;
10297 ia64*)
10298 hardcode_libdir_flag_spec_CXX='-L$libdir'
10299 ;;
10300 *)
10301 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10302 hardcode_libdir_separator_CXX=:
10303 export_dynamic_flag_spec_CXX='${wl}-E'
10304 ;;
10305 esac
10306 fi
10307 case "$host_cpu" in
10308 hppa*64*)
10309 hardcode_direct_CXX=no
10310 hardcode_shlibpath_var_CXX=no
10311 ;;
10312 ia64*)
10313 hardcode_direct_CXX=no
10314 hardcode_shlibpath_var_CXX=no
10315 hardcode_minus_L_CXX=yes # Not in the search PATH,
10316 # but as the default
10317 # location of the library.
10318 ;;
10319 *)
10320 hardcode_direct_CXX=yes
10321 hardcode_minus_L_CXX=yes # Not in the search PATH,
10322 # but as the default
10323 # location of the library.
10324 ;;
10325 esac
10326
10327 case $cc_basename in
10328 CC)
10329 # FIXME: insert proper C++ library support
10330 ld_shlibs_CXX=no
10331 ;;
10332 aCC)
10333 case "$host_cpu" in
10334 hppa*64*|ia64*)
10335 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10336 ;;
10337 *)
10338 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10339 ;;
10340 esac
10341 # Commands to make compiler produce verbose output that lists
10342 # what "hidden" libraries, object files and flags are used when
10343 # linking a shared library.
10344 #
10345 # There doesn't appear to be a way to prevent this compiler from
10346 # explicitly linking system object files so we need to strip them
10347 # from the output so that they don't get included in the library
10348 # dependencies.
10349 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10350 ;;
10351 *)
10352 if test "$GXX" = yes; then
10353 if test $with_gnu_ld = no; then
10354 case "$host_cpu" in
10355 ia64*|hppa*64*)
10356 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10357 ;;
10358 *)
10359 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10360 ;;
10361 esac
10362 fi
13718
13719 beos*)
13720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13721 allow_undefined_flag_CXX=unsupported
13722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13723 # support --undefined. This deserves some investigation. FIXME
13724 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1036313725 else
10364 # FIXME: insert proper C++ library support
1036513726 ld_shlibs_CXX=no
1036613727 fi
1036713728 ;;
10368 esac
10369 ;;
10370 irix5* | irix6*)
10371 case $cc_basename in
10372 CC)
10373 # SGI C++
10374 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10375
10376 # Archives containing C++ object files must be created using
10377 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10378 # necessary to make sure instantiated templates are included
10379 # in the archive.
10380 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13729
13730 chorus*)
13731 case $cc_basename in
13732 *)
13733 # FIXME: insert proper C++ library support
13734 ld_shlibs_CXX=no
13735 ;;
13736 esac
13737 ;;
13738
13739 cygwin* | mingw* | pw32* | cegcc*)
13740 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13741 # as there is no search path for DLLs.
13742 hardcode_libdir_flag_spec_CXX='-L$libdir'
13743 allow_undefined_flag_CXX=unsupported
13744 always_export_symbols_CXX=no
13745 enable_shared_with_static_runtimes_CXX=yes
13746
13747 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13748 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13749 # If the export-symbols file already is a .def file (1st line
13750 # is EXPORTS), use it as is; otherwise, prepend...
13751 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13752 cp $export_symbols $output_objdir/$soname.def;
13753 else
13754 echo EXPORTS > $output_objdir/$soname.def;
13755 cat $export_symbols >> $output_objdir/$soname.def;
13756 fi~
13757 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13758 else
13759 ld_shlibs_CXX=no
13760 fi
13761 ;;
13762 darwin* | rhapsody*)
13763
13764
13765 archive_cmds_need_lc_CXX=no
13766 hardcode_direct_CXX=no
13767 hardcode_automatic_CXX=yes
13768 hardcode_shlibpath_var_CXX=unsupported
13769 whole_archive_flag_spec_CXX=''
13770 link_all_deplibs_CXX=yes
13771 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13772 case $cc_basename in
13773 ifort*) _lt_dar_can_shared=yes ;;
13774 *) _lt_dar_can_shared=$GCC ;;
13775 esac
13776 if test "$_lt_dar_can_shared" = "yes"; then
13777 output_verbose_link_cmd=echo
13778 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13779 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13780 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13781 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13782 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13783 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13784 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13785 fi
13786
13787 else
13788 ld_shlibs_CXX=no
13789 fi
13790
1038113791 ;;
10382 *)
10383 if test "$GXX" = yes; then
10384 if test "$with_gnu_ld" = no; then
10385 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10386 else
10387 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10388 fi
10389 fi
10390 link_all_deplibs_CXX=yes
13792
13793 dgux*)
13794 case $cc_basename in
13795 ec++*)
13796 # FIXME: insert proper C++ library support
13797 ld_shlibs_CXX=no
13798 ;;
13799 ghcx*)
13800 # Green Hills C++ Compiler
13801 # FIXME: insert proper C++ library support
13802 ld_shlibs_CXX=no
13803 ;;
13804 *)
13805 # FIXME: insert proper C++ library support
13806 ld_shlibs_CXX=no
13807 ;;
13808 esac
13809 ;;
13810
13811 freebsd[12]*)
13812 # C++ shared libraries reported to be fairly broken before
13813 # switch to ELF
13814 ld_shlibs_CXX=no
13815 ;;
13816
13817 freebsd-elf*)
13818 archive_cmds_need_lc_CXX=no
13819 ;;
13820
13821 freebsd* | dragonfly*)
13822 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13823 # conventions
13824 ld_shlibs_CXX=yes
13825 ;;
13826
13827 gnu*)
13828 ;;
13829
13830 hpux9*)
13831 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13832 hardcode_libdir_separator_CXX=:
13833 export_dynamic_flag_spec_CXX='${wl}-E'
13834 hardcode_direct_CXX=yes
13835 hardcode_minus_L_CXX=yes # Not in the search PATH,
13836 # but as the default
13837 # location of the library.
13838
13839 case $cc_basename in
13840 CC*)
13841 # FIXME: insert proper C++ library support
13842 ld_shlibs_CXX=no
13843 ;;
13844 aCC*)
13845 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13846 # Commands to make compiler produce verbose output that lists
13847 # what "hidden" libraries, object files and flags are used when
13848 # linking a shared library.
13849 #
13850 # There doesn't appear to be a way to prevent this compiler from
13851 # explicitly linking system object files so we need to strip them
13852 # from the output so that they don't get included in the library
13853 # dependencies.
13854 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13855 ;;
13856 *)
13857 if test "$GXX" = yes; then
13858 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13859 else
13860 # FIXME: insert proper C++ library support
13861 ld_shlibs_CXX=no
13862 fi
13863 ;;
13864 esac
13865 ;;
13866
13867 hpux10*|hpux11*)
13868 if test $with_gnu_ld = no; then
13869 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13870 hardcode_libdir_separator_CXX=:
13871
13872 case $host_cpu in
13873 hppa*64*|ia64*)
13874 ;;
13875 *)
13876 export_dynamic_flag_spec_CXX='${wl}-E'
13877 ;;
13878 esac
13879 fi
13880 case $host_cpu in
13881 hppa*64*|ia64*)
13882 hardcode_direct_CXX=no
13883 hardcode_shlibpath_var_CXX=no
13884 ;;
13885 *)
13886 hardcode_direct_CXX=yes
13887 hardcode_direct_absolute_CXX=yes
13888 hardcode_minus_L_CXX=yes # Not in the search PATH,
13889 # but as the default
13890 # location of the library.
13891 ;;
13892 esac
13893
13894 case $cc_basename in
13895 CC*)
13896 # FIXME: insert proper C++ library support
13897 ld_shlibs_CXX=no
13898 ;;
13899 aCC*)
13900 case $host_cpu in
13901 hppa*64*)
13902 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13903 ;;
13904 ia64*)
13905 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13906 ;;
13907 *)
13908 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13909 ;;
13910 esac
13911 # Commands to make compiler produce verbose output that lists
13912 # what "hidden" libraries, object files and flags are used when
13913 # linking a shared library.
13914 #
13915 # There doesn't appear to be a way to prevent this compiler from
13916 # explicitly linking system object files so we need to strip them
13917 # from the output so that they don't get included in the library
13918 # dependencies.
13919 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13920 ;;
13921 *)
13922 if test "$GXX" = yes; then
13923 if test $with_gnu_ld = no; then
13924 case $host_cpu in
13925 hppa*64*)
13926 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13927 ;;
13928 ia64*)
13929 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13930 ;;
13931 *)
13932 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13933 ;;
13934 esac
13935 fi
13936 else
13937 # FIXME: insert proper C++ library support
13938 ld_shlibs_CXX=no
13939 fi
13940 ;;
13941 esac
13942 ;;
13943
13944 interix[3-9]*)
13945 hardcode_direct_CXX=no
13946 hardcode_shlibpath_var_CXX=no
13947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13948 export_dynamic_flag_spec_CXX='${wl}-E'
13949 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13950 # Instead, shared libraries are loaded at an image base (0x10000000 by
13951 # default) and relocated if they conflict, which is a slow very memory
13952 # consuming and fragmenting process. To avoid this, we pick a random,
13953 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13954 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13955 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13956 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1039113957 ;;
10392 esac
10393 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10394 hardcode_libdir_separator_CXX=:
10395 ;;
10396 linux*)
10397 case $cc_basename in
10398 KCC)
10399 # Kuck and Associates, Inc. (KAI) C++ Compiler
10400
10401 # KCC will only create a shared library if the output file
10402 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10403 # to its proper name (with version) after linking.
10404 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10405 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10406 # Commands to make compiler produce verbose output that lists
10407 # what "hidden" libraries, object files and flags are used when
10408 # linking a shared library.
10409 #
10410 # There doesn't appear to be a way to prevent this compiler from
10411 # explicitly linking system object files so we need to strip them
10412 # from the output so that they don't get included in the library
10413 # dependencies.
10414 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10415
10416 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10417 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10418
10419 # Archives containing C++ object files must be created using
10420 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10421 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13958 irix5* | irix6*)
13959 case $cc_basename in
13960 CC*)
13961 # SGI C++
13962 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13963
13964 # Archives containing C++ object files must be created using
13965 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13966 # necessary to make sure instantiated templates are included
13967 # in the archive.
13968 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13969 ;;
13970 *)
13971 if test "$GXX" = yes; then
13972 if test "$with_gnu_ld" = no; then
13973 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13974 else
13975 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13976 fi
13977 fi
13978 link_all_deplibs_CXX=yes
13979 ;;
13980 esac
13981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13982 hardcode_libdir_separator_CXX=:
13983 inherit_rpath_CXX=yes
13984 ;;
13985
13986 linux* | k*bsd*-gnu)
13987 case $cc_basename in
13988 KCC*)
13989 # Kuck and Associates, Inc. (KAI) C++ Compiler
13990
13991 # KCC will only create a shared library if the output file
13992 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13993 # to its proper name (with version) after linking.
13994 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13995 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13996 # Commands to make compiler produce verbose output that lists
13997 # what "hidden" libraries, object files and flags are used when
13998 # linking a shared library.
13999 #
14000 # There doesn't appear to be a way to prevent this compiler from
14001 # explicitly linking system object files so we need to strip them
14002 # from the output so that they don't get included in the library
14003 # dependencies.
14004 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14005
14006 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14007 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14008
14009 # Archives containing C++ object files must be created using
14010 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14011 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14012 ;;
14013 icpc* | ecpc* )
14014 # Intel C++
14015 with_gnu_ld=yes
14016 # version 8.0 and above of icpc choke on multiply defined symbols
14017 # if we add $predep_objects and $postdep_objects, however 7.1 and
14018 # earlier do not add the objects themselves.
14019 case `$CC -V 2>&1` in
14020 *"Version 7."*)
14021 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14022 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14023 ;;
14024 *) # Version 8.0 or newer
14025 tmp_idyn=
14026 case $host_cpu in
14027 ia64*) tmp_idyn=' -i_dynamic';;
14028 esac
14029 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14030 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14031 ;;
14032 esac
14033 archive_cmds_need_lc_CXX=no
14034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14035 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14036 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14037 ;;
14038 pgCC* | pgcpp*)
14039 # Portland Group C++ compiler
14040 case `$CC -V` in
14041 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14042 prelink_cmds_CXX='tpldir=Template.dir~
14043 rm -rf $tpldir~
14044 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14045 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14046 old_archive_cmds_CXX='tpldir=Template.dir~
14047 rm -rf $tpldir~
14048 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14049 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14050 $RANLIB $oldlib'
14051 archive_cmds_CXX='tpldir=Template.dir~
14052 rm -rf $tpldir~
14053 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14054 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14055 archive_expsym_cmds_CXX='tpldir=Template.dir~
14056 rm -rf $tpldir~
14057 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14058 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14059 ;;
14060 *) # Version 6 will use weak symbols
14061 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14062 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14063 ;;
14064 esac
14065
14066 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14067 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14068 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14069 ;;
14070 cxx*)
14071 # Compaq C++
14072 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14073 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14074
14075 runpath_var=LD_RUN_PATH
14076 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14077 hardcode_libdir_separator_CXX=:
14078
14079 # Commands to make compiler produce verbose output that lists
14080 # what "hidden" libraries, object files and flags are used when
14081 # linking a shared library.
14082 #
14083 # There doesn't appear to be a way to prevent this compiler from
14084 # explicitly linking system object files so we need to strip them
14085 # from the output so that they don't get included in the library
14086 # dependencies.
14087 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14088 ;;
14089 xl*)
14090 # IBM XL 8.0 on PPC, with GNU ld
14091 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14093 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14094 if test "x$supports_anon_versioning" = xyes; then
14095 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14096 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14097 echo "local: *; };" >> $output_objdir/$libname.ver~
14098 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14099 fi
14100 ;;
14101 *)
14102 case `$CC -V 2>&1 | sed 5q` in
14103 *Sun\ C*)
14104 # Sun C++ 5.9
14105 no_undefined_flag_CXX=' -zdefs'
14106 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14107 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14108 hardcode_libdir_flag_spec_CXX='-R$libdir'
14109 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14110 compiler_needs_object_CXX=yes
14111
14112 # Not sure whether something based on
14113 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14114 # would be better.
14115 output_verbose_link_cmd='echo'
14116
14117 # Archives containing C++ object files must be created using
14118 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14119 # necessary to make sure instantiated templates are included
14120 # in the archive.
14121 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14122 ;;
14123 esac
14124 ;;
14125 esac
1042214126 ;;
10423 icpc)
10424 # Intel C++
10425 with_gnu_ld=yes
10426 archive_cmds_need_lc_CXX=no
10427 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10428 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10430 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10431 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10432 ;;
10433 cxx)
10434 # Compaq C++
10435 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10436 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10437
10438 runpath_var=LD_RUN_PATH
10439 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10440 hardcode_libdir_separator_CXX=:
10441
10442 # Commands to make compiler produce verbose output that lists
10443 # what "hidden" libraries, object files and flags are used when
10444 # linking a shared library.
10445 #
10446 # There doesn't appear to be a way to prevent this compiler from
10447 # explicitly linking system object files so we need to strip them
10448 # from the output so that they don't get included in the library
10449 # dependencies.
10450 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
10451 ;;
10452 esac
10453 ;;
10454 lynxos*)
10455 # FIXME: insert proper C++ library support
10456 ld_shlibs_CXX=no
10457 ;;
10458 m88k*)
10459 # FIXME: insert proper C++ library support
10460 ld_shlibs_CXX=no
10461 ;;
10462 mvs*)
10463 case $cc_basename in
10464 cxx)
10465 # FIXME: insert proper C++ library support
14127
14128 lynxos*)
14129 # FIXME: insert proper C++ library support
1046614130 ld_shlibs_CXX=no
1046714131 ;;
10468 *)
10469 # FIXME: insert proper C++ library support
14132
14133 m88k*)
14134 # FIXME: insert proper C++ library support
14135 ld_shlibs_CXX=no
14136 ;;
14137
14138 mvs*)
14139 case $cc_basename in
14140 cxx*)
14141 # FIXME: insert proper C++ library support
14142 ld_shlibs_CXX=no
14143 ;;
14144 *)
14145 # FIXME: insert proper C++ library support
14146 ld_shlibs_CXX=no
14147 ;;
14148 esac
14149 ;;
14150
14151 netbsd*)
14152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14153 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14154 wlarc=
14155 hardcode_libdir_flag_spec_CXX='-R$libdir'
14156 hardcode_direct_CXX=yes
14157 hardcode_shlibpath_var_CXX=no
14158 fi
14159 # Workaround some broken pre-1.5 toolchains
14160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14161 ;;
14162
14163 *nto* | *qnx*)
14164 ld_shlibs_CXX=yes
14165 ;;
14166
14167 openbsd2*)
14168 # C++ shared libraries are fairly broken
1047014169 ld_shlibs_CXX=no
1047114170 ;;
10472 esac
10473 ;;
10474 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10475 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10476 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10477 wlarc=
10478 hardcode_libdir_flag_spec_CXX='-R$libdir'
10479 hardcode_direct_CXX=yes
10480 hardcode_shlibpath_var_CXX=no
10481 fi
10482 # Workaround some broken pre-1.5 toolchains
10483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10484 ;;
10485 osf3*)
10486 case $cc_basename in
10487 KCC)
10488 # Kuck and Associates, Inc. (KAI) C++ Compiler
10489
10490 # KCC will only create a shared library if the output file
10491 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10492 # to its proper name (with version) after linking.
10493 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10494
10495 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10496 hardcode_libdir_separator_CXX=:
10497
10498 # Archives containing C++ object files must be created using
10499 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10500 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10501
10502 ;;
10503 RCC)
10504 # Rational C++ 2.4.1
10505 # FIXME: insert proper C++ library support
10506 ld_shlibs_CXX=no
10507 ;;
10508 cxx)
10509 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10510 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10511
10512 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10513 hardcode_libdir_separator_CXX=:
10514
10515 # Commands to make compiler produce verbose output that lists
10516 # what "hidden" libraries, object files and flags are used when
10517 # linking a shared library.
10518 #
10519 # There doesn't appear to be a way to prevent this compiler from
10520 # explicitly linking system object files so we need to strip them
10521 # from the output so that they don't get included in the library
10522 # dependencies.
10523 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
10524 ;;
10525 *)
10526 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10527 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10528 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10529
10530 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10531 hardcode_libdir_separator_CXX=:
10532
10533 # Commands to make compiler produce verbose output that lists
10534 # what "hidden" libraries, object files and flags are used when
10535 # linking a shared library.
10536 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10537
14171
14172 openbsd*)
14173 if test -f /usr/libexec/ld.so; then
14174 hardcode_direct_CXX=yes
14175 hardcode_shlibpath_var_CXX=no
14176 hardcode_direct_absolute_CXX=yes
14177 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14178 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14179 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14180 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14181 export_dynamic_flag_spec_CXX='${wl}-E'
14182 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14183 fi
14184 output_verbose_link_cmd=echo
1053814185 else
10539 # FIXME: insert proper C++ library support
1054014186 ld_shlibs_CXX=no
1054114187 fi
1054214188 ;;
10543 esac
10544 ;;
10545 osf4* | osf5*)
10546 case $cc_basename in
10547 KCC)
10548 # Kuck and Associates, Inc. (KAI) C++ Compiler
10549
10550 # KCC will only create a shared library if the output file
10551 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10552 # to its proper name (with version) after linking.
10553 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10554
10555 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10556 hardcode_libdir_separator_CXX=:
10557
10558 # Archives containing C++ object files must be created using
10559 # the KAI C++ compiler.
10560 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10561 ;;
10562 RCC)
10563 # Rational C++ 2.4.1
10564 # FIXME: insert proper C++ library support
10565 ld_shlibs_CXX=no
10566 ;;
10567 cxx)
10568 allow_undefined_flag_CXX=' -expect_unresolved \*'
10569 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10570 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10571 echo "-hidden">> $lib.exp~
10572 $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 $objdir/so_locations -o $lib~
10573 $rm $lib.exp'
10574
10575 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10576 hardcode_libdir_separator_CXX=:
10577
10578 # Commands to make compiler produce verbose output that lists
10579 # what "hidden" libraries, object files and flags are used when
10580 # linking a shared library.
10581 #
10582 # There doesn't appear to be a way to prevent this compiler from
10583 # explicitly linking system object files so we need to strip them
10584 # from the output so that they don't get included in the library
10585 # dependencies.
10586 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
10587 ;;
10588 *)
10589 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10590 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10591 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10592
10593 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10594 hardcode_libdir_separator_CXX=:
10595
10596 # Commands to make compiler produce verbose output that lists
10597 # what "hidden" libraries, object files and flags are used when
10598 # linking a shared library.
10599 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10600
10601 else
10602 # FIXME: insert proper C++ library support
10603 ld_shlibs_CXX=no
10604 fi
10605 ;;
10606 esac
10607 ;;
10608 psos*)
10609 # FIXME: insert proper C++ library support
10610 ld_shlibs_CXX=no
10611 ;;
10612 sco*)
10613 archive_cmds_need_lc_CXX=no
10614 case $cc_basename in
10615 CC)
10616 # FIXME: insert proper C++ library support
10617 ld_shlibs_CXX=no
10618 ;;
10619 *)
10620 # FIXME: insert proper C++ library support
10621 ld_shlibs_CXX=no
10622 ;;
10623 esac
10624 ;;
10625 sunos4*)
10626 case $cc_basename in
10627 CC)
10628 # Sun C++ 4.x
10629 # FIXME: insert proper C++ library support
10630 ld_shlibs_CXX=no
10631 ;;
10632 lcc)
10633 # Lucid
10634 # FIXME: insert proper C++ library support
10635 ld_shlibs_CXX=no
10636 ;;
10637 *)
10638 # FIXME: insert proper C++ library support
10639 ld_shlibs_CXX=no
10640 ;;
10641 esac
10642 ;;
10643 solaris*)
10644 case $cc_basename in
10645 CC)
10646 # Sun C++ 4.2, 5.x and Centerline C++
10647 no_undefined_flag_CXX=' -zdefs'
10648 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10649 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10650 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10651
10652 hardcode_libdir_flag_spec_CXX='-R$libdir'
10653 hardcode_shlibpath_var_CXX=no
10654 case $host_os in
10655 solaris2.0-5 | solaris2.0-5.*) ;;
10656 *)
10657 # The C++ compiler is used as linker so we must use $wl
10658 # flag to pass the commands to the underlying system
10659 # linker.
10660 # Supported since Solaris 2.6 (maybe 2.5.1?)
10661 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14189
14190 osf3* | osf4* | osf5*)
14191 case $cc_basename in
14192 KCC*)
14193 # Kuck and Associates, Inc. (KAI) C++ Compiler
14194
14195 # KCC will only create a shared library if the output file
14196 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14197 # to its proper name (with version) after linking.
14198 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14199
14200 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14201 hardcode_libdir_separator_CXX=:
14202
14203 # Archives containing C++ object files must be created using
14204 # the KAI C++ compiler.
14205 case $host in
14206 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14207 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14208 esac
1066214209 ;;
10663 esac
10664 link_all_deplibs_CXX=yes
10665
10666 # Commands to make compiler produce verbose output that lists
10667 # what "hidden" libraries, object files and flags are used when
10668 # linking a shared library.
10669 #
10670 # There doesn't appear to be a way to prevent this compiler from
10671 # explicitly linking system object files so we need to strip them
10672 # from the output so that they don't get included in the library
10673 # dependencies.
10674 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10675
10676 # Archives containing C++ object files must be created using
10677 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10678 # necessary to make sure instantiated templates are included
10679 # in the archive.
10680 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10681 ;;
10682 gcx)
10683 # Green Hills C++ Compiler
10684 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10685
10686 # The C++ compiler must be used to create the archive.
10687 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10688 ;;
10689 *)
10690 # GNU C++ compiler with Solaris linker
10691 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10692 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10693 if $CC --version | grep -v '^2\.7' > /dev/null; then
10694 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10695 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10696 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14210 RCC*)
14211 # Rational C++ 2.4.1
14212 # FIXME: insert proper C++ library support
14213 ld_shlibs_CXX=no
14214 ;;
14215 cxx*)
14216 case $host in
14217 osf3*)
14218 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14219 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14220 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14221 ;;
14222 *)
14223 allow_undefined_flag_CXX=' -expect_unresolved \*'
14224 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14225 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14226 echo "-hidden">> $lib.exp~
14227 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14228 $RM $lib.exp'
14229 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14230 ;;
14231 esac
14232
14233 hardcode_libdir_separator_CXX=:
1069714234
1069814235 # Commands to make compiler produce verbose output that lists
1069914236 # what "hidden" libraries, object files and flags are used when
1070014237 # linking a shared library.
10701 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10702 else
10703 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10704 # platform.
10705 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10706 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10707 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10708
10709 # Commands to make compiler produce verbose output that lists
10710 # what "hidden" libraries, object files and flags are used when
10711 # linking a shared library.
10712 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10713 fi
10714
10715 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10716 fi
10717 ;;
14238 #
14239 # There doesn't appear to be a way to prevent this compiler from
14240 # explicitly linking system object files so we need to strip them
14241 # from the output so that they don't get included in the library
14242 # dependencies.
14243 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14244 ;;
14245 *)
14246 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14247 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14248 case $host in
14249 osf3*)
14250 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14251 ;;
14252 *)
14253 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14254 ;;
14255 esac
14256
14257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14258 hardcode_libdir_separator_CXX=:
14259
14260 # Commands to make compiler produce verbose output that lists
14261 # what "hidden" libraries, object files and flags are used when
14262 # linking a shared library.
14263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14264
14265 else
14266 # FIXME: insert proper C++ library support
14267 ld_shlibs_CXX=no
14268 fi
14269 ;;
14270 esac
14271 ;;
14272
14273 psos*)
14274 # FIXME: insert proper C++ library support
14275 ld_shlibs_CXX=no
14276 ;;
14277
14278 sunos4*)
14279 case $cc_basename in
14280 CC*)
14281 # Sun C++ 4.x
14282 # FIXME: insert proper C++ library support
14283 ld_shlibs_CXX=no
14284 ;;
14285 lcc*)
14286 # Lucid
14287 # FIXME: insert proper C++ library support
14288 ld_shlibs_CXX=no
14289 ;;
14290 *)
14291 # FIXME: insert proper C++ library support
14292 ld_shlibs_CXX=no
14293 ;;
14294 esac
14295 ;;
14296
14297 solaris*)
14298 case $cc_basename in
14299 CC*)
14300 # Sun C++ 4.2, 5.x and Centerline C++
14301 archive_cmds_need_lc_CXX=yes
14302 no_undefined_flag_CXX=' -zdefs'
14303 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14304 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14305 $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'
14306
14307 hardcode_libdir_flag_spec_CXX='-R$libdir'
14308 hardcode_shlibpath_var_CXX=no
14309 case $host_os in
14310 solaris2.[0-5] | solaris2.[0-5].*) ;;
14311 *)
14312 # The compiler driver will combine and reorder linker options,
14313 # but understands `-z linker_flag'.
14314 # Supported since Solaris 2.6 (maybe 2.5.1?)
14315 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14316 ;;
14317 esac
14318 link_all_deplibs_CXX=yes
14319
14320 output_verbose_link_cmd='echo'
14321
14322 # Archives containing C++ object files must be created using
14323 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14324 # necessary to make sure instantiated templates are included
14325 # in the archive.
14326 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14327 ;;
14328 gcx*)
14329 # Green Hills C++ Compiler
14330 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14331
14332 # The C++ compiler must be used to create the archive.
14333 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14334 ;;
14335 *)
14336 # GNU C++ compiler with Solaris linker
14337 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14338 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14339 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14340 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14341 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14342 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14343
14344 # Commands to make compiler produce verbose output that lists
14345 # what "hidden" libraries, object files and flags are used when
14346 # linking a shared library.
14347 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14348 else
14349 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14350 # platform.
14351 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14352 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14353 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14354
14355 # Commands to make compiler produce verbose output that lists
14356 # what "hidden" libraries, object files and flags are used when
14357 # linking a shared library.
14358 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14359 fi
14360
14361 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14362 case $host_os in
14363 solaris2.[0-5] | solaris2.[0-5].*) ;;
14364 *)
14365 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14366 ;;
14367 esac
14368 fi
14369 ;;
14370 esac
14371 ;;
14372
14373 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14374 no_undefined_flag_CXX='${wl}-z,text'
14375 archive_cmds_need_lc_CXX=no
14376 hardcode_shlibpath_var_CXX=no
14377 runpath_var='LD_RUN_PATH'
14378
14379 case $cc_basename in
14380 CC*)
14381 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14382 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14383 ;;
14384 *)
14385 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14386 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14387 ;;
14388 esac
14389 ;;
14390
14391 sysv5* | sco3.2v5* | sco5v6*)
14392 # Note: We can NOT use -z defs as we might desire, because we do not
14393 # link with -lc, and that would cause any symbols used from libc to
14394 # always be unresolved, which means just about no library would
14395 # ever link correctly. If we're not using GNU ld we use -z text
14396 # though, which does catch some bad symbols but isn't as heavy-handed
14397 # as -z defs.
14398 no_undefined_flag_CXX='${wl}-z,text'
14399 allow_undefined_flag_CXX='${wl}-z,nodefs'
14400 archive_cmds_need_lc_CXX=no
14401 hardcode_shlibpath_var_CXX=no
14402 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14403 hardcode_libdir_separator_CXX=':'
14404 link_all_deplibs_CXX=yes
14405 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14406 runpath_var='LD_RUN_PATH'
14407
14408 case $cc_basename in
14409 CC*)
14410 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14411 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14412 ;;
14413 *)
14414 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14415 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14416 ;;
14417 esac
14418 ;;
14419
14420 tandem*)
14421 case $cc_basename in
14422 NCC*)
14423 # NonStop-UX NCC 3.20
14424 # FIXME: insert proper C++ library support
14425 ld_shlibs_CXX=no
14426 ;;
14427 *)
14428 # FIXME: insert proper C++ library support
14429 ld_shlibs_CXX=no
14430 ;;
14431 esac
14432 ;;
14433
14434 vxworks*)
14435 # FIXME: insert proper C++ library support
14436 ld_shlibs_CXX=no
14437 ;;
14438
14439 *)
14440 # FIXME: insert proper C++ library support
14441 ld_shlibs_CXX=no
14442 ;;
1071814443 esac
10719 ;;
10720 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10721 archive_cmds_need_lc_CXX=no
10722 ;;
10723 tandem*)
10724 case $cc_basename in
10725 NCC)
10726 # NonStop-UX NCC 3.20
10727 # FIXME: insert proper C++ library support
10728 ld_shlibs_CXX=no
10729 ;;
10730 *)
10731 # FIXME: insert proper C++ library support
10732 ld_shlibs_CXX=no
10733 ;;
10734 esac
10735 ;;
10736 vxworks*)
10737 # FIXME: insert proper C++ library support
10738 ld_shlibs_CXX=no
10739 ;;
10740 *)
10741 # FIXME: insert proper C++ library support
10742 ld_shlibs_CXX=no
10743 ;;
10744 esac
10745 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10746 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10747 test "$ld_shlibs_CXX" = no && can_build_shared=no
10748
10749 GCC_CXX="$GXX"
10750 LD_CXX="$LD"
10751
10752
10753 cat > conftest.$ac_ext <<EOF
14444
14445 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14446 $as_echo "$ld_shlibs_CXX" >&6; }
14447 test "$ld_shlibs_CXX" = no && can_build_shared=no
14448
14449 GCC_CXX="$GXX"
14450 LD_CXX="$LD"
14451
14452 ## CAVEAT EMPTOR:
14453 ## There is no encapsulation within the following macros, do not change
14454 ## the running order or otherwise move them around unless you know exactly
14455 ## what you are doing...
14456 # Dependencies to place before and after the object being linked:
14457 predep_objects_CXX=
14458 postdep_objects_CXX=
14459 predeps_CXX=
14460 postdeps_CXX=
14461 compiler_lib_search_path_CXX=
14462
14463 cat > conftest.$ac_ext <<_LT_EOF
1075414464 class Foo
1075514465 {
1075614466 public:
1075814468 private:
1075914469 int a;
1076014470 };
10761 EOF
14471 _LT_EOF
1076214472
1076314473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1076414474 (eval $ac_compile) 2>&5
1076514475 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1076714477 (exit $ac_status); }; then
1076814478 # Parse the compiler output and extract the necessary
1076914479 # objects, libraries and library flags.
1077214482 # the conftest object file.
1077314483 pre_test_object_deps_done=no
1077414484
10775 # The `*' in the case matches for architectures that use `case' in
10776 # $output_verbose_cmd can trigger glob expansion during the loop
10777 # eval without this substitution.
10778 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10779
10780 for p in `eval $output_verbose_link_cmd`; do
14485 for p in `eval "$output_verbose_link_cmd"`; do
1078114486 case $p in
1078214487
1078314488 -L* | -R* | -l*)
1078414489 # Some compilers place space between "-{L,R}" and the path.
1078514490 # Remove the space.
10786 if test $p = "-L" \
10787 || test $p = "-R"; then
14491 if test $p = "-L" ||
14492 test $p = "-R"; then
1078814493 prev=$p
1078914494 continue
1079014495 else
1084914554 echo "libtool.m4: error: problem compiling CXX test program"
1085014555 fi
1085114556
10852 $rm -f confest.$objext
14557 $RM -f confest.$objext
14558
14559 # PORTME: override above test on systems where it is broken
14560 case $host_os in
14561 interix[3-9]*)
14562 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14563 # hack all around it, let's just trust "g++" to DTRT.
14564 predep_objects_CXX=
14565 postdep_objects_CXX=
14566 postdeps_CXX=
14567 ;;
14568
14569 linux*)
14570 case `$CC -V 2>&1 | sed 5q` in
14571 *Sun\ C*)
14572 # Sun C++ 5.9
14573
14574 # The more standards-conforming stlport4 library is
14575 # incompatible with the Cstd library. Avoid specifying
14576 # it if it's in CXXFLAGS. Ignore libCrun as
14577 # -library=stlport4 depends on it.
14578 case " $CXX $CXXFLAGS " in
14579 *" -library=stlport4 "*)
14580 solaris_use_stlport4=yes
14581 ;;
14582 esac
14583
14584 if test "$solaris_use_stlport4" != yes; then
14585 postdeps_CXX='-library=Cstd -library=Crun'
14586 fi
14587 ;;
14588 esac
14589 ;;
14590
14591 solaris*)
14592 case $cc_basename in
14593 CC*)
14594 # The more standards-conforming stlport4 library is
14595 # incompatible with the Cstd library. Avoid specifying
14596 # it if it's in CXXFLAGS. Ignore libCrun as
14597 # -library=stlport4 depends on it.
14598 case " $CXX $CXXFLAGS " in
14599 *" -library=stlport4 "*)
14600 solaris_use_stlport4=yes
14601 ;;
14602 esac
14603
14604 # Adding this requires a known-good setup of shared libraries for
14605 # Sun compiler versions before 5.6, else PIC objects from an old
14606 # archive will be linked into the output, leading to subtle bugs.
14607 if test "$solaris_use_stlport4" != yes; then
14608 postdeps_CXX='-library=Cstd -library=Crun'
14609 fi
14610 ;;
14611 esac
14612 ;;
14613 esac
14614
1085314615
1085414616 case " $postdeps_CXX " in
1085514617 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
1085614618 esac
10857
10858 lt_prog_compiler_wl_CXX=
14619 compiler_lib_search_dirs_CXX=
14620 if test -n "${compiler_lib_search_path_CXX}"; then
14621 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14622 fi
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654 lt_prog_compiler_wl_CXX=
1085914655 lt_prog_compiler_pic_CXX=
1086014656 lt_prog_compiler_static_CXX=
1086114657
10862 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10863 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14658 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14659 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1086414660
1086514661 # C++ specific cases for pic, static, wl, etc.
1086614662 if test "$GXX" = yes; then
1087514671 lt_prog_compiler_static_CXX='-Bstatic'
1087614672 fi
1087714673 ;;
14674
1087814675 amigaos*)
10879 # FIXME: we need at least 68020 code to build shared libraries, but
10880 # adding the `-m68020' flag to GCC prevents building anything better,
10881 # like `-m68040'.
10882 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14676 case $host_cpu in
14677 powerpc)
14678 # see comment about AmigaOS4 .so support
14679 lt_prog_compiler_pic_CXX='-fPIC'
14680 ;;
14681 m68k)
14682 # FIXME: we need at least 68020 code to build shared libraries, but
14683 # adding the `-m68020' flag to GCC prevents building anything better,
14684 # like `-m68040'.
14685 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14686 ;;
14687 esac
1088314688 ;;
10884 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14689
14690 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1088514691 # PIC is the default for these OSes.
1088614692 ;;
10887 mingw* | os2* | pw32*)
14693 mingw* | cygwin* | os2* | pw32* | cegcc*)
1088814694 # This hack is so that the source file can tell whether it is being
1088914695 # built for inclusion in a dll (and should export symbols for example).
14696 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14697 # (--disable-auto-import) libraries
1089014698 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
1089114699 ;;
1089214700 darwin* | rhapsody*)
1089814706 # DJGPP does not support shared libraries at all
1089914707 lt_prog_compiler_pic_CXX=
1090014708 ;;
14709 interix[3-9]*)
14710 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14711 # Instead, we relocate shared libraries at runtime.
14712 ;;
1090114713 sysv4*MP*)
1090214714 if test -d /usr/nec; then
1090314715 lt_prog_compiler_pic_CXX=-Kconform_pic
1090414716 fi
1090514717 ;;
1090614718 hpux*)
10907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10908 # not for PA HP-UX.
10909 case "$host_cpu" in
10910 hppa*64*|ia64*)
14719 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14720 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14721 # sets the default TLS model and affects inlining.
14722 case $host_cpu in
14723 hppa*64*)
1091114724 ;;
1091214725 *)
1091314726 lt_prog_compiler_pic_CXX='-fPIC'
1091414727 ;;
1091514728 esac
14729 ;;
14730 *qnx* | *nto*)
14731 # QNX uses GNU C++, but need to define -shared option too, otherwise
14732 # it will coredump.
14733 lt_prog_compiler_pic_CXX='-fPIC -shared'
1091614734 ;;
1091714735 *)
1091814736 lt_prog_compiler_pic_CXX='-fPIC'
1092014738 esac
1092114739 else
1092214740 case $host_os in
10923 aix4* | aix5*)
14741 aix[4-9]*)
1092414742 # All AIX code is PIC.
1092514743 if test "$host_cpu" = ia64; then
1092614744 # AIX 5 now supports IA64 processor
1093114749 ;;
1093214750 chorus*)
1093314751 case $cc_basename in
10934 cxch68)
14752 cxch68*)
1093514753 # Green Hills C++ Compiler
10936 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14754 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
1093714755 ;;
1093814756 esac
1093914757 ;;
1094014758 dgux*)
1094114759 case $cc_basename in
10942 ec++)
14760 ec++*)
1094314761 lt_prog_compiler_pic_CXX='-KPIC'
1094414762 ;;
10945 ghcx)
14763 ghcx*)
1094614764 # Green Hills C++ Compiler
1094714765 lt_prog_compiler_pic_CXX='-pic'
1094814766 ;;
1095014768 ;;
1095114769 esac
1095214770 ;;
10953 freebsd* | kfreebsd*-gnu)
14771 freebsd* | dragonfly*)
1095414772 # FreeBSD uses GNU C++
1095514773 ;;
1095614774 hpux9* | hpux10* | hpux11*)
1095714775 case $cc_basename in
10958 CC)
14776 CC*)
1095914777 lt_prog_compiler_wl_CXX='-Wl,'
10960 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14778 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
1096114779 if test "$host_cpu" != ia64; then
1096214780 lt_prog_compiler_pic_CXX='+Z'
1096314781 fi
1096414782 ;;
10965 aCC)
14783 aCC*)
1096614784 lt_prog_compiler_wl_CXX='-Wl,'
10967 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10968 case "$host_cpu" in
14785 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14786 case $host_cpu in
1096914787 hppa*64*|ia64*)
1097014788 # +Z the default
1097114789 ;;
1097814796 ;;
1097914797 esac
1098014798 ;;
14799 interix*)
14800 # This is c89, which is MS Visual C++ (no shared libs)
14801 # Anyone wants to do a port?
14802 ;;
1098114803 irix5* | irix6* | nonstopux*)
1098214804 case $cc_basename in
10983 CC)
14805 CC*)
1098414806 lt_prog_compiler_wl_CXX='-Wl,'
1098514807 lt_prog_compiler_static_CXX='-non_shared'
1098614808 # CC pic flag -KPIC is the default.
1098914811 ;;
1099014812 esac
1099114813 ;;
10992 linux*)
14814 linux* | k*bsd*-gnu)
1099314815 case $cc_basename in
10994 KCC)
14816 KCC*)
1099514817 # KAI C++ Compiler
1099614818 lt_prog_compiler_wl_CXX='--backend -Wl,'
1099714819 lt_prog_compiler_pic_CXX='-fPIC'
1099814820 ;;
10999 icpc)
11000 # Intel C++
14821 ecpc* )
14822 # old Intel C++ for x86_64 which still supported -KPIC.
1100114823 lt_prog_compiler_wl_CXX='-Wl,'
1100214824 lt_prog_compiler_pic_CXX='-KPIC'
1100314825 lt_prog_compiler_static_CXX='-static'
1100414826 ;;
11005 cxx)
14827 icpc* )
14828 # Intel C++, used to be incompatible with GCC.
14829 # ICC 10 doesn't accept -KPIC any more.
14830 lt_prog_compiler_wl_CXX='-Wl,'
14831 lt_prog_compiler_pic_CXX='-fPIC'
14832 lt_prog_compiler_static_CXX='-static'
14833 ;;
14834 pgCC* | pgcpp*)
14835 # Portland Group C++ compiler
14836 lt_prog_compiler_wl_CXX='-Wl,'
14837 lt_prog_compiler_pic_CXX='-fpic'
14838 lt_prog_compiler_static_CXX='-Bstatic'
14839 ;;
14840 cxx*)
1100614841 # Compaq C++
1100714842 # Make sure the PIC flag is empty. It appears that all Alpha
1100814843 # Linux and Compaq Tru64 Unix objects are PIC.
1100914844 lt_prog_compiler_pic_CXX=
1101014845 lt_prog_compiler_static_CXX='-non_shared'
1101114846 ;;
14847 xlc* | xlC*)
14848 # IBM XL 8.0 on PPC
14849 lt_prog_compiler_wl_CXX='-Wl,'
14850 lt_prog_compiler_pic_CXX='-qpic'
14851 lt_prog_compiler_static_CXX='-qstaticlink'
14852 ;;
1101214853 *)
14854 case `$CC -V 2>&1 | sed 5q` in
14855 *Sun\ C*)
14856 # Sun C++ 5.9
14857 lt_prog_compiler_pic_CXX='-KPIC'
14858 lt_prog_compiler_static_CXX='-Bstatic'
14859 lt_prog_compiler_wl_CXX='-Qoption ld '
14860 ;;
14861 esac
1101314862 ;;
1101414863 esac
1101514864 ;;
1101914868 ;;
1102014869 mvs*)
1102114870 case $cc_basename in
11022 cxx)
14871 cxx*)
1102314872 lt_prog_compiler_pic_CXX='-W c,exportall'
1102414873 ;;
1102514874 *)
1102614875 ;;
1102714876 esac
1102814877 ;;
11029 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14878 netbsd* | netbsdelf*-gnu)
1103014879 ;;
14880 *qnx* | *nto*)
14881 # QNX uses GNU C++, but need to define -shared option too, otherwise
14882 # it will coredump.
14883 lt_prog_compiler_pic_CXX='-fPIC -shared'
14884 ;;
1103114885 osf3* | osf4* | osf5*)
1103214886 case $cc_basename in
11033 KCC)
14887 KCC*)
1103414888 lt_prog_compiler_wl_CXX='--backend -Wl,'
1103514889 ;;
11036 RCC)
14890 RCC*)
1103714891 # Rational C++ 2.4.1
1103814892 lt_prog_compiler_pic_CXX='-pic'
1103914893 ;;
11040 cxx)
14894 cxx*)
1104114895 # Digital/Compaq C++
1104214896 lt_prog_compiler_wl_CXX='-Wl,'
1104314897 # Make sure the PIC flag is empty. It appears that all Alpha
1105114905 ;;
1105214906 psos*)
1105314907 ;;
11054 sco*)
11055 case $cc_basename in
11056 CC)
11057 lt_prog_compiler_pic_CXX='-fPIC'
11058 ;;
11059 *)
11060 ;;
11061 esac
11062 ;;
1106314908 solaris*)
1106414909 case $cc_basename in
11065 CC)
14910 CC*)
1106614911 # Sun C++ 4.2, 5.x and Centerline C++
1106714912 lt_prog_compiler_pic_CXX='-KPIC'
1106814913 lt_prog_compiler_static_CXX='-Bstatic'
1106914914 lt_prog_compiler_wl_CXX='-Qoption ld '
1107014915 ;;
11071 gcx)
14916 gcx*)
1107214917 # Green Hills C++ Compiler
1107314918 lt_prog_compiler_pic_CXX='-PIC'
1107414919 ;;
1107814923 ;;
1107914924 sunos4*)
1108014925 case $cc_basename in
11081 CC)
14926 CC*)
1108214927 # Sun C++ 4.x
1108314928 lt_prog_compiler_pic_CXX='-pic'
1108414929 lt_prog_compiler_static_CXX='-Bstatic'
1108514930 ;;
11086 lcc)
14931 lcc*)
1108714932 # Lucid
1108814933 lt_prog_compiler_pic_CXX='-pic'
1108914934 ;;
1109114936 ;;
1109214937 esac
1109314938 ;;
14939 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14940 case $cc_basename in
14941 CC*)
14942 lt_prog_compiler_wl_CXX='-Wl,'
14943 lt_prog_compiler_pic_CXX='-KPIC'
14944 lt_prog_compiler_static_CXX='-Bstatic'
14945 ;;
14946 esac
14947 ;;
1109414948 tandem*)
1109514949 case $cc_basename in
11096 NCC)
14950 NCC*)
1109714951 # NonStop-UX NCC 3.20
1109814952 lt_prog_compiler_pic_CXX='-KPIC'
1109914953 ;;
1110014954 *)
1110114955 ;;
1110214956 esac
11103 ;;
11104 unixware*)
1110514957 ;;
1110614958 vxworks*)
1110714959 ;;
1111114963 esac
1111214964 fi
1111314965
11114 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11115 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11116
11117 #
11118 # Check to make sure the PIC flag actually works.
11119 #
11120 if test -n "$lt_prog_compiler_pic_CXX"; then
11121
11122 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11123 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11124 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127 lt_prog_compiler_pic_works_CXX=no
11128 ac_outfile=conftest.$ac_objext
11129 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11130 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11131 # Insert the option either (1) after the last *FLAGS variable, or
11132 # (2) before a word containing "conftest.", or (3) at the end.
11133 # Note that $ac_compile itself does not contain backslashes and begins
11134 # with a dollar sign (not a hyphen), so the echo should work correctly.
11135 # The option is referenced via a variable to avoid confusing sed.
11136 lt_compile=`echo "$ac_compile" | $SED \
11137 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11139 -e 's:$: $lt_compiler_flag:'`
11140 (eval echo "\"\$as_me:11141: $lt_compile\"" >&5)
11141 (eval "$lt_compile" 2>conftest.err)
11142 ac_status=$?
11143 cat conftest.err >&5
11144 echo "$as_me:11145: \$? = $ac_status" >&5
11145 if (exit $ac_status) && test -s "$ac_outfile"; then
11146 # The compiler can only warn and ignore the option if not recognized
11147 # So say no if there are warnings
11148 if test ! -s conftest.err; then
11149 lt_prog_compiler_pic_works_CXX=yes
11150 fi
11151 fi
11152 $rm conftest*
11153
11154 fi
11155 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11156 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11157
11158 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11159 case $lt_prog_compiler_pic_CXX in
11160 "" | " "*) ;;
11161 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11162 esac
11163 else
11164 lt_prog_compiler_pic_CXX=
11165 lt_prog_compiler_can_build_shared_CXX=no
11166 fi
11167
11168 fi
11169 case "$host_os" in
14966 case $host_os in
1117014967 # For platforms which do not support PIC, -DPIC is meaningless:
1117114968 *djgpp*)
1117214969 lt_prog_compiler_pic_CXX=
1117514972 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
1117614973 ;;
1117714974 esac
11178
11179 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11180 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14975 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14976 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14977
14978
14979
14980 #
14981 # Check to make sure the PIC flag actually works.
14982 #
14983 if test -n "$lt_prog_compiler_pic_CXX"; then
14984 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14985 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14986 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14987 $as_echo_n "(cached) " >&6
14988 else
14989 lt_cv_prog_compiler_pic_works_CXX=no
14990 ac_outfile=conftest.$ac_objext
14991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14992 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14993 # Insert the option either (1) after the last *FLAGS variable, or
14994 # (2) before a word containing "conftest.", or (3) at the end.
14995 # Note that $ac_compile itself does not contain backslashes and begins
14996 # with a dollar sign (not a hyphen), so the echo should work correctly.
14997 # The option is referenced via a variable to avoid confusing sed.
14998 lt_compile=`echo "$ac_compile" | $SED \
14999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15001 -e 's:$: $lt_compiler_flag:'`
15002 (eval echo "\"\$as_me:15003: $lt_compile\"" >&5)
15003 (eval "$lt_compile" 2>conftest.err)
15004 ac_status=$?
15005 cat conftest.err >&5
15006 echo "$as_me:15007: \$? = $ac_status" >&5
15007 if (exit $ac_status) && test -s "$ac_outfile"; then
15008 # The compiler can only warn and ignore the option if not recognized
15009 # So say no if there are warnings other than the usual output.
15010 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15013 lt_cv_prog_compiler_pic_works_CXX=yes
15014 fi
15015 fi
15016 $RM conftest*
15017
15018 fi
15019 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15020 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15021
15022 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15023 case $lt_prog_compiler_pic_CXX in
15024 "" | " "*) ;;
15025 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15026 esac
15027 else
15028 lt_prog_compiler_pic_CXX=
15029 lt_prog_compiler_can_build_shared_CXX=no
15030 fi
15031
15032 fi
15033
15034
15035
15036 #
15037 # Check to make sure the static flag actually works.
15038 #
15039 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15040 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15041 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15042 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15043 $as_echo_n "(cached) " >&6
15044 else
15045 lt_cv_prog_compiler_static_works_CXX=no
15046 save_LDFLAGS="$LDFLAGS"
15047 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15048 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15049 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15050 # The linker can only warn and ignore the option if not recognized
15051 # So say no if there are warnings
15052 if test -s conftest.err; then
15053 # Append any errors to the config.log.
15054 cat conftest.err 1>&5
15055 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15057 if diff conftest.exp conftest.er2 >/dev/null; then
15058 lt_cv_prog_compiler_static_works_CXX=yes
15059 fi
15060 else
15061 lt_cv_prog_compiler_static_works_CXX=yes
15062 fi
15063 fi
15064 $RM -r conftest*
15065 LDFLAGS="$save_LDFLAGS"
15066
15067 fi
15068 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15069 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15070
15071 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15072 :
15073 else
15074 lt_prog_compiler_static_CXX=
15075 fi
15076
15077
15078
15079
15080 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15081 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1118115082 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 $as_echo_n "(cached) " >&6
1118315084 else
1118415085 lt_cv_prog_compiler_c_o_CXX=no
11185 $rm -r conftest 2>/dev/null
15086 $RM -r conftest 2>/dev/null
1118615087 mkdir conftest
1118715088 cd conftest
1118815089 mkdir out
11189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1119015091
1119115092 lt_compiler_flag="-o out/conftest2.$ac_objext"
1119215093 # Insert the option either (1) after the last *FLAGS variable, or
1119415095 # Note that $ac_compile itself does not contain backslashes and begins
1119515096 # with a dollar sign (not a hyphen), so the echo should work correctly.
1119615097 lt_compile=`echo "$ac_compile" | $SED \
11197 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1119815099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1119915100 -e 's:$: $lt_compiler_flag:'`
11200 (eval echo "\"\$as_me:11201: $lt_compile\"" >&5)
15101 (eval echo "\"\$as_me:15102: $lt_compile\"" >&5)
1120115102 (eval "$lt_compile" 2>out/conftest.err)
1120215103 ac_status=$?
1120315104 cat out/conftest.err >&5
11204 echo "$as_me:11205: \$? = $ac_status" >&5
15105 echo "$as_me:15106: \$? = $ac_status" >&5
1120515106 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1120615107 then
1120715108 # The compiler can only warn and ignore the option if not recognized
1120815109 # So say no if there are warnings
11209 if test ! -s out/conftest.err; then
15110 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15111 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15112 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1121015113 lt_cv_prog_compiler_c_o_CXX=yes
1121115114 fi
1121215115 fi
11213 chmod u+w .
11214 $rm conftest*
15116 chmod u+w . 2>&5
15117 $RM conftest*
1121515118 # SGI C++ compiler will create directory out/ii_files/ for
1121615119 # template instantiation
11217 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11218 $rm out/* && rmdir out
15120 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15121 $RM out/* && rmdir out
1121915122 cd ..
11220 rmdir conftest
11221 $rm conftest*
11222
11223 fi
11224 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11225 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15123 $RM -r conftest
15124 $RM conftest*
15125
15126 fi
15127 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15128 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15129
15130
15131
15132 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15133 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15134 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15135 $as_echo_n "(cached) " >&6
15136 else
15137 lt_cv_prog_compiler_c_o_CXX=no
15138 $RM -r conftest 2>/dev/null
15139 mkdir conftest
15140 cd conftest
15141 mkdir out
15142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15143
15144 lt_compiler_flag="-o out/conftest2.$ac_objext"
15145 # Insert the option either (1) after the last *FLAGS variable, or
15146 # (2) before a word containing "conftest.", or (3) at the end.
15147 # Note that $ac_compile itself does not contain backslashes and begins
15148 # with a dollar sign (not a hyphen), so the echo should work correctly.
15149 lt_compile=`echo "$ac_compile" | $SED \
15150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15152 -e 's:$: $lt_compiler_flag:'`
15153 (eval echo "\"\$as_me:15154: $lt_compile\"" >&5)
15154 (eval "$lt_compile" 2>out/conftest.err)
15155 ac_status=$?
15156 cat out/conftest.err >&5
15157 echo "$as_me:15158: \$? = $ac_status" >&5
15158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15159 then
15160 # The compiler can only warn and ignore the option if not recognized
15161 # So say no if there are warnings
15162 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15165 lt_cv_prog_compiler_c_o_CXX=yes
15166 fi
15167 fi
15168 chmod u+w . 2>&5
15169 $RM conftest*
15170 # SGI C++ compiler will create directory out/ii_files/ for
15171 # template instantiation
15172 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15173 $RM out/* && rmdir out
15174 cd ..
15175 $RM -r conftest
15176 $RM conftest*
15177
15178 fi
15179 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15180 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15181
15182
1122615183
1122715184
1122815185 hard_links="nottested"
1122915186 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
1123015187 # do not overwrite the value of need_locks provided by the user
11231 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11232 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15188 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15189 $as_echo_n "checking if we can lock with hard links... " >&6; }
1123315190 hard_links=yes
11234 $rm conftest*
15191 $RM conftest*
1123515192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1123615193 touch conftest.a
1123715194 ln conftest.a conftest.b 2>&5 || hard_links=no
1123815195 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11239 echo "$as_me:$LINENO: result: $hard_links" >&5
11240 echo "${ECHO_T}$hard_links" >&6
15196 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15197 $as_echo "$hard_links" >&6; }
1124115198 if test "$hard_links" = no; then
11242 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11243 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15199 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15200 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1124415201 need_locks=warn
1124515202 fi
1124615203 else
1124715204 need_locks=no
1124815205 fi
1124915206
11250 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11251 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15207
15208
15209 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15210 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1125215211
1125315212 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1125415213 case $host_os in
11255 aix4* | aix5*)
15214 aix[4-9]*)
1125615215 # If we're using GNU nm, then we don't want the "-C" option.
1125715216 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11258 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11259 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15217 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15218 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1126015219 else
11261 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15220 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1126215221 fi
1126315222 ;;
1126415223 pw32*)
1126515224 export_symbols_cmds_CXX="$ltdll_cmds"
1126615225 ;;
11267 cygwin* | mingw*)
11268 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15226 cygwin* | mingw* | cegcc*)
15227 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
1126915228 ;;
11270 linux*)
15229 linux* | k*bsd*-gnu)
1127115230 link_all_deplibs_CXX=no
1127215231 ;;
1127315232 *)
1127415233 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1127515234 ;;
1127615235 esac
11277
11278 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11279 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15236 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15237
15238 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15239 $as_echo "$ld_shlibs_CXX" >&6; }
1128015240 test "$ld_shlibs_CXX" = no && can_build_shared=no
1128115241
11282 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11283 if test "$GCC" = yes; then
11284 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11285 fi
15242 with_gnu_ld_CXX=$with_gnu_ld
15243
15244
15245
15246
15247
1128615248
1128715249 #
1128815250 # Do we need to explicitly link libc?
1130115263 # Test whether the compiler implicitly links with -lc since on some
1130215264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
1130315265 # to ld, don't add -lc before -lgcc.
11304 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11305 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11306 $rm conftest*
11307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15266 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15267 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15268 $RM conftest*
15269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1130815270
1130915271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1131015272 (eval $ac_compile) 2>&5
1131115273 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1131315275 (exit $ac_status); } 2>conftest.err; then
1131415276 soname=conftest
1131515277 lib=conftest
1131615278 libobjs=conftest.$ac_objext
1131715279 deplibs=
1131815280 wl=$lt_prog_compiler_wl_CXX
15281 pic_flag=$lt_prog_compiler_pic_CXX
1131915282 compiler_flags=-v
1132015283 linker_flags=-v
1132115284 verstring=
1132315286 libname=conftest
1132415287 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
1132515288 allow_undefined_flag_CXX=
11326 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11327 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15289 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15290 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1132815291 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1133015293 (exit $ac_status); }
1133115294 then
1133215295 archive_cmds_need_lc_CXX=no
1133715300 else
1133815301 cat conftest.err 1>&5
1133915302 fi
11340 $rm conftest*
11341 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11342 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15303 $RM conftest*
15304 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15305 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
1134315306 ;;
1134415307 esac
1134515308 fi
1134615309 ;;
1134715310 esac
1134815311
11349 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11350 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15376 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15377
1135115378 library_names_spec=
1135215379 libname_spec='lib$name'
1135315380 soname_spec=
1136115388 version_type=none
1136215389 dynamic_linker="$host_os ld.so"
1136315390 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11364 if test "$GCC" = yes; then
11365 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11366 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11367 # if the path contains ";" then we assume it to be the separator
11368 # otherwise default to the standard path separator (i.e. ":") - it is
11369 # assumed that no part of a normal pathname contains ";" but that should
11370 # okay in the real world where ";" in dirpaths is itself problematic.
11371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11372 else
11373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11374 fi
11375 else
11376 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11377 fi
1137815391 need_lib_prefix=unknown
1137915392 hardcode_into_libs=no
1138015393
1139215405 soname_spec='${libname}${release}${shared_ext}$major'
1139315406 ;;
1139415407
11395 aix4* | aix5*)
15408 aix[4-9]*)
1139615409 version_type=linux
1139715410 need_lib_prefix=no
1139815411 need_version=no
1141115424 aix4 | aix4.[01] | aix4.[01].*)
1141215425 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1141315426 echo ' yes '
11414 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15427 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1141515428 :
1141615429 else
1141715430 can_build_shared=no
1143715450 ;;
1143815451
1143915452 amigaos*)
11440 library_names_spec='$libname.ixlibrary $libname.a'
11441 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11442 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15453 case $host_cpu in
15454 powerpc)
15455 # Since July 2007 AmigaOS4 officially supports .so libraries.
15456 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458 ;;
15459 m68k)
15460 library_names_spec='$libname.ixlibrary $libname.a'
15461 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15462 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15463 ;;
15464 esac
1144315465 ;;
1144415466
1144515467 beos*)
1144815470 shlibpath_var=LIBRARY_PATH
1144915471 ;;
1145015472
11451 bsdi4*)
15473 bsdi[45]*)
1145215474 version_type=linux
1145315475 need_version=no
1145415476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1146215484 # libtool to hard-code these into programs
1146315485 ;;
1146415486
11465 cygwin* | mingw* | pw32*)
15487 cygwin* | mingw* | pw32* | cegcc*)
1146615488 version_type=windows
1146715489 shrext_cmds=".dll"
1146815490 need_version=no
1146915491 need_lib_prefix=no
1147015492
1147115493 case $GCC,$host_os in
11472 yes,cygwin* | yes,mingw* | yes,pw32*)
15494 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1147315495 library_names_spec='$libname.dll.a'
1147415496 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1147515497 postinstall_cmds='base_file=`basename \${file}`~
11476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15498 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1147715499 dldir=$destdir/`dirname \$dlpath`~
1147815500 test -d \$dldir || mkdir -p \$dldir~
11479 $install_prog $dir/$dlname \$dldir/$dlname'
15501 $install_prog $dir/$dlname \$dldir/$dlname~
15502 chmod a+x \$dldir/$dlname~
15503 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15504 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15505 fi'
1148015506 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1148115507 dlpath=$dir/\$dldll~
11482 $rm \$dlpath'
15508 $RM \$dlpath'
1148315509 shlibpath_overrides_runpath=yes
1148415510
1148515511 case $host_os in
1148815514 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1148915515 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1149015516 ;;
11491 mingw*)
15517 mingw* | cegcc*)
1149215518 # MinGW DLLs use traditional 'lib' prefix
1149315519 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11494 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11495 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15520 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15521 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1149615522 # It is most probably a Windows format PATH printed by
1149715523 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1149815524 # path with ; separators, and with drive letters. We can handle the
1149915525 # drive letters (cygwin fileutils understands them), so leave them,
1150015526 # especially as we might pass files found there to a mingw objdump,
1150115527 # which wouldn't understand a cygwinified path. Ahh.
11502 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15528 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1150315529 else
11504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15530 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1150515531 fi
1150615532 ;;
1150715533 pw32*)
1150815534 # pw32 DLLs use 'pw' prefix rather than 'lib'
11509 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15535 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1151015536 ;;
1151115537 esac
1151215538 ;;
1152515551 version_type=darwin
1152615552 need_lib_prefix=no
1152715553 need_version=no
11528 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15554 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1152915555 soname_spec='${libname}${release}${major}$shared_ext'
1153015556 shlibpath_overrides_runpath=yes
1153115557 shlibpath_var=DYLD_LIBRARY_PATH
11532 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11533 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11534 if test "$GCC" = yes; then
11535 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11536 else
11537 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11538 fi
15558 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15559
1153915560 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1154015561 ;;
1154115562
1155215573 dynamic_linker=no
1155315574 ;;
1155415575
11555 kfreebsd*-gnu)
11556 version_type=linux
11557 need_lib_prefix=no
11558 need_version=no
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 shlibpath_overrides_runpath=no
11563 hardcode_into_libs=yes
11564 dynamic_linker='GNU ld.so'
11565 ;;
11566
11567 freebsd*)
11568 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15576 freebsd* | dragonfly*)
15577 # DragonFly does not have aout. When/if they implement a new
15578 # versioning mechanism, adjust this.
15579 if test -x /usr/bin/objformat; then
15580 objformat=`/usr/bin/objformat`
15581 else
15582 case $host_os in
15583 freebsd[123]*) objformat=aout ;;
15584 *) objformat=elf ;;
15585 esac
15586 fi
1156915587 version_type=freebsd-$objformat
1157015588 case $version_type in
1157115589 freebsd-elf*)
1158315601 freebsd2*)
1158415602 shlibpath_overrides_runpath=yes
1158515603 ;;
11586 freebsd3.01* | freebsdelf3.01*)
15604 freebsd3.[01]* | freebsdelf3.[01]*)
1158715605 shlibpath_overrides_runpath=yes
1158815606 hardcode_into_libs=yes
1158915607 ;;
11590 *) # from 3.2 on
15608 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15609 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1159115610 shlibpath_overrides_runpath=no
15611 hardcode_into_libs=yes
15612 ;;
15613 *) # from 4.6 on, and DragonFly
15614 shlibpath_overrides_runpath=yes
1159215615 hardcode_into_libs=yes
1159315616 ;;
1159415617 esac
1161015633 version_type=sunos
1161115634 need_lib_prefix=no
1161215635 need_version=no
11613 case "$host_cpu" in
15636 case $host_cpu in
1161415637 ia64*)
1161515638 shrext_cmds='.so'
1161615639 hardcode_into_libs=yes
1162615649 fi
1162715650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1162815651 ;;
11629 hppa*64*)
11630 shrext_cmds='.sl'
11631 hardcode_into_libs=yes
11632 dynamic_linker="$host_os dld.sl"
11633 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 soname_spec='${libname}${release}${shared_ext}$major'
11637 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11638 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11639 ;;
11640 *)
15652 hppa*64*)
15653 shrext_cmds='.sl'
15654 hardcode_into_libs=yes
15655 dynamic_linker="$host_os dld.sl"
15656 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659 soname_spec='${libname}${release}${shared_ext}$major'
15660 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15662 ;;
15663 *)
1164115664 shrext_cmds='.sl'
1164215665 dynamic_linker="$host_os dld.sl"
1164315666 shlibpath_var=SHLIB_PATH
1164815671 esac
1164915672 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1165015673 postinstall_cmds='chmod 555 $lib'
15674 ;;
15675
15676 interix[3-9]*)
15677 version_type=linux
15678 need_lib_prefix=no
15679 need_version=no
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 shlibpath_overrides_runpath=no
15685 hardcode_into_libs=yes
1165115686 ;;
1165215687
1165315688 irix5* | irix6* | nonstopux*)
1169315728 ;;
1169415729
1169515730 # This must be Linux ELF.
11696 linux*)
15731 linux* | k*bsd*-gnu)
1169715732 version_type=linux
1169815733 need_lib_prefix=no
1169915734 need_version=no
1170215737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1170315738 shlibpath_var=LD_LIBRARY_PATH
1170415739 shlibpath_overrides_runpath=no
15740 # Some binutils ld are patched to set DT_RUNPATH
15741 save_LDFLAGS=$LDFLAGS
15742 save_libdir=$libdir
15743 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15744 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15745 cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h. */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751
15752 int
15753 main ()
15754 {
15755
15756 ;
15757 return 0;
15758 }
15759 _ACEOF
15760 rm -f conftest.$ac_objext conftest$ac_exeext
15761 if { (ac_try="$ac_link"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15765 esac
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_link") 2>conftest.er1
15769 ac_status=$?
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_cxx_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest$ac_exeext && {
15778 test "$cross_compiling" = yes ||
15779 $as_test_x conftest$ac_exeext
15780 }; then
15781 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15782 shlibpath_overrides_runpath=yes
15783 fi
15784
15785 else
15786 $as_echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789
15790 fi
15791
15792 rm -rf conftest.dSYM
15793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15794 conftest$ac_exeext conftest.$ac_ext
15795 LDFLAGS=$save_LDFLAGS
15796 libdir=$save_libdir
15797
1170515798 # This implies no fast_install, which is unacceptable.
1170615799 # Some rework will be needed to allow for fast_install
1170715800 # before this can be enabled.
1170915802
1171015803 # Append ld.so.conf contents to the search path
1171115804 if test -f /etc/ld.so.conf; then
11712 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15805 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1171315806 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1171415807 fi
1171515808
1173415827 dynamic_linker='NetBSD ld.elf_so'
1173515828 ;;
1173615829
11737 knetbsd*-gnu)
11738 version_type=linux
11739 need_lib_prefix=no
11740 need_version=no
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11742 soname_spec='${libname}${release}${shared_ext}$major'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 shlibpath_overrides_runpath=no
11745 hardcode_into_libs=yes
11746 dynamic_linker='GNU ld.so'
11747 ;;
11748
1174915830 netbsd*)
1175015831 version_type=sunos
1175115832 need_lib_prefix=no
1175215833 need_version=no
11753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15834 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1175415835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1175515836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1175615837 dynamic_linker='NetBSD (a.out) ld.so'
1177115852 shlibpath_overrides_runpath=yes
1177215853 ;;
1177315854
11774 nto-qnx*)
11775 version_type=linux
15855 *nto* | *qnx*)
15856 version_type=qnx
1177615857 need_lib_prefix=no
1177715858 need_version=no
1177815859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1177915860 soname_spec='${libname}${release}${shared_ext}$major'
1178015861 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=yes
15862 shlibpath_overrides_runpath=no
15863 hardcode_into_libs=yes
15864 dynamic_linker='ldqnx.so'
1178215865 ;;
1178315866
1178415867 openbsd*)
1178515868 version_type=sunos
15869 sys_lib_dlsearch_path_spec="/usr/lib"
1178615870 need_lib_prefix=no
11787 need_version=yes
15871 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15872 case $host_os in
15873 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15874 *) need_version=no ;;
15875 esac
1178815876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1178915877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1179015878 shlibpath_var=LD_LIBRARY_PATH
11791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1179215880 case $host_os in
1179315881 openbsd2.[89] | openbsd2.[89].*)
1179415882 shlibpath_overrides_runpath=no
1182215910 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1182315911 ;;
1182415912
11825 sco3.2v5*)
11826 version_type=osf
11827 soname_spec='${libname}${release}${shared_ext}$major'
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829 shlibpath_var=LD_LIBRARY_PATH
15913 rdos*)
15914 dynamic_linker=no
1183015915 ;;
1183115916
1183215917 solaris*)
1185415939 need_version=yes
1185515940 ;;
1185615941
11857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15942 sysv4 | sysv4.3*)
1185815943 version_type=linux
1185915944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1186015945 soname_spec='${libname}${release}${shared_ext}$major'
1186315948 sni)
1186415949 shlibpath_overrides_runpath=no
1186515950 need_lib_prefix=no
11866 export_dynamic_flag_spec='${wl}-Blargedynsym'
1186715951 runpath_var=LD_RUN_PATH
1186815952 ;;
1186915953 siemens)
1188715971 fi
1188815972 ;;
1188915973
15974 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15975 version_type=freebsd-elf
15976 need_lib_prefix=no
15977 need_version=no
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15979 soname_spec='${libname}${release}${shared_ext}$major'
15980 shlibpath_var=LD_LIBRARY_PATH
15981 shlibpath_overrides_runpath=yes
15982 hardcode_into_libs=yes
15983 if test "$with_gnu_ld" = yes; then
15984 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15985 else
15986 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15987 case $host_os in
15988 sco3.2v5*)
15989 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15990 ;;
15991 esac
15992 fi
15993 sys_lib_dlsearch_path_spec='/usr/lib'
15994 ;;
15995
15996 tpf*)
15997 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15998 version_type=linux
15999 need_lib_prefix=no
16000 need_version=no
16001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002 shlibpath_var=LD_LIBRARY_PATH
16003 shlibpath_overrides_runpath=no
16004 hardcode_into_libs=yes
16005 ;;
16006
1189016007 uts4*)
1189116008 version_type=linux
1189216009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1189816015 dynamic_linker=no
1189916016 ;;
1190016017 esac
11901 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11902 echo "${ECHO_T}$dynamic_linker" >&6
16018 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16019 $as_echo "$dynamic_linker" >&6; }
1190316020 test "$dynamic_linker" = no && can_build_shared=no
1190416021
11905 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11906 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16022 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16023 if test "$GCC" = yes; then
16024 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16025 fi
16026
16027 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16028 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16029 fi
16030 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16031 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16032 fi
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16070 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1190716071 hardcode_action_CXX=
11908 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11909 test -n "$runpath_var CXX" || \
11910 test "X$hardcode_automatic_CXX"="Xyes" ; then
11911
11912 # We can hardcode non-existant directories.
16072 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16073 test -n "$runpath_var_CXX" ||
16074 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16075
16076 # We can hardcode non-existent directories.
1191316077 if test "$hardcode_direct_CXX" != no &&
1191416078 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1191516079 # have to relink, otherwise we might link with an installed library
1191616080 # when we should be linking with a yet-to-be-installed one
11917 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16081 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
1191816082 test "$hardcode_minus_L_CXX" != no; then
1191916083 # Linking always hardcodes the temporary library directory.
1192016084 hardcode_action_CXX=relink
1192716091 # directories.
1192816092 hardcode_action_CXX=unsupported
1192916093 fi
11930 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11931 echo "${ECHO_T}$hardcode_action_CXX" >&6
11932
11933 if test "$hardcode_action_CXX" = relink; then
16094 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16095 $as_echo "$hardcode_action_CXX" >&6; }
16096
16097 if test "$hardcode_action_CXX" = relink ||
16098 test "$inherit_rpath_CXX" = yes; then
1193416099 # Fast installation is not supported
1193516100 enable_fast_install=no
1193616101 elif test "$shlibpath_overrides_runpath" = yes ||
1193916104 enable_fast_install=needless
1194016105 fi
1194116106
11942 striplib=
11943 old_striplib=
11944 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11945 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11946 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11947 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11948 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11949 echo "$as_me:$LINENO: result: yes" >&5
11950 echo "${ECHO_T}yes" >&6
11951 else
11952 # FIXME - insert some real tests, host_os isn't really good enough
11953 case $host_os in
11954 darwin*)
11955 if test -n "$STRIP" ; then
11956 striplib="$STRIP -x"
11957 echo "$as_me:$LINENO: result: yes" >&5
11958 echo "${ECHO_T}yes" >&6
11959 else
11960 echo "$as_me:$LINENO: result: no" >&5
11961 echo "${ECHO_T}no" >&6
11962 fi
11963 ;;
11964 *)
11965 echo "$as_me:$LINENO: result: no" >&5
11966 echo "${ECHO_T}no" >&6
11967 ;;
11968 esac
11969 fi
11970
11971 if test "x$enable_dlopen" != xyes; then
11972 enable_dlopen=unknown
11973 enable_dlopen_self=unknown
11974 enable_dlopen_self_static=unknown
11975 else
11976 lt_cv_dlopen=no
11977 lt_cv_dlopen_libs=
11978
11979 case $host_os in
11980 beos*)
11981 lt_cv_dlopen="load_add_on"
11982 lt_cv_dlopen_libs=
11983 lt_cv_dlopen_self=yes
11984 ;;
11985
11986 mingw* | pw32*)
11987 lt_cv_dlopen="LoadLibrary"
11988 lt_cv_dlopen_libs=
11989 ;;
11990
11991 cygwin*)
11992 lt_cv_dlopen="dlopen"
11993 lt_cv_dlopen_libs=
11994 ;;
11995
11996 darwin*)
11997 # if libdl is installed we need to link against it
11998 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11999 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12000 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 ac_check_lib_save_LIBS=$LIBS
12004 LIBS="-ldl $LIBS"
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011
12012 /* Override any gcc2 internal prototype to avoid an error. */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 /* We use char because int might match the return type of a gcc2
12017 builtin and then its argument prototype would still apply. */
12018 char dlopen ();
12019 int
12020 main ()
12021 {
12022 dlopen ();
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest$ac_exeext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_cv_lib_dl_dlopen=yes
12049 else
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053 ac_cv_lib_dl_dlopen=no
12054 fi
12055 rm -f conftest.err conftest.$ac_objext \
12056 conftest$ac_exeext conftest.$ac_ext
12057 LIBS=$ac_check_lib_save_LIBS
12058 fi
12059 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12060 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12061 if test $ac_cv_lib_dl_dlopen = yes; then
12062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12063 else
12064
12065 lt_cv_dlopen="dyld"
12066 lt_cv_dlopen_libs=
12067 lt_cv_dlopen_self=yes
12068
12069 fi
12070
12071 ;;
12072
12073 *)
12074 echo "$as_me:$LINENO: checking for shl_load" >&5
12075 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12076 if test "${ac_cv_func_shl_load+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 else
12079 cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h. */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12087 #define shl_load innocuous_shl_load
12088
12089 /* System header to define __stub macros and hopefully few prototypes,
12090 which can conflict with char shl_load (); below.
12091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12092 <limits.h> exists even on freestanding compilers. */
12093
12094 #ifdef __STDC__
12095 # include <limits.h>
12096 #else
12097 # include <assert.h>
12098 #endif
12099
12100 #undef shl_load
12101
12102 /* Override any gcc2 internal prototype to avoid an error. */
12103 #ifdef __cplusplus
12104 extern "C"
12105 {
12106 #endif
12107 /* We use char because int might match the return type of a gcc2
12108 builtin and then its argument prototype would still apply. */
12109 char shl_load ();
12110 /* The GNU C library defines this for functions which it implements
12111 to always fail with ENOSYS. Some functions are actually named
12112 something starting with __ and the normal name is an alias. */
12113 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12114 choke me
12115 #else
12116 char (*f) () = shl_load;
12117 #endif
12118 #ifdef __cplusplus
12119 }
12120 #endif
12121
12122 int
12123 main ()
12124 {
12125 return f != shl_load;
12126 ;
12127 return 0;
12128 }
12129 _ACEOF
12130 rm -f conftest.$ac_objext conftest$ac_exeext
12131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12132 (eval $ac_link) 2>conftest.er1
12133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } &&
12139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; } &&
12145 { ac_try='test -s conftest$ac_exeext'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; }; then
12151 ac_cv_func_shl_load=yes
12152 else
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12155
12156 ac_cv_func_shl_load=no
12157 fi
12158 rm -f conftest.err conftest.$ac_objext \
12159 conftest$ac_exeext conftest.$ac_ext
12160 fi
12161 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12162 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12163 if test $ac_cv_func_shl_load = yes; then
12164 lt_cv_dlopen="shl_load"
12165 else
12166 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12167 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12168 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171 ac_check_lib_save_LIBS=$LIBS
12172 LIBS="-ldld $LIBS"
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h. */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12179
12180 /* Override any gcc2 internal prototype to avoid an error. */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 /* We use char because int might match the return type of a gcc2
12185 builtin and then its argument prototype would still apply. */
12186 char shl_load ();
12187 int
12188 main ()
12189 {
12190 shl_load ();
12191 ;
12192 return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12197 (eval $ac_link) 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest$ac_exeext'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_cv_lib_dld_shl_load=yes
12217 else
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12220
12221 ac_cv_lib_dld_shl_load=no
12222 fi
12223 rm -f conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225 LIBS=$ac_check_lib_save_LIBS
12226 fi
12227 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12228 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12229 if test $ac_cv_lib_dld_shl_load = yes; then
12230 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12231 else
12232 echo "$as_me:$LINENO: checking for dlopen" >&5
12233 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12234 if test "${ac_cv_func_dlopen+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h. */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12245 #define dlopen innocuous_dlopen
12246
12247 /* System header to define __stub macros and hopefully few prototypes,
12248 which can conflict with char dlopen (); below.
12249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12250 <limits.h> exists even on freestanding compilers. */
12251
12252 #ifdef __STDC__
12253 # include <limits.h>
12254 #else
12255 # include <assert.h>
12256 #endif
12257
12258 #undef dlopen
12259
12260 /* Override any gcc2 internal prototype to avoid an error. */
12261 #ifdef __cplusplus
12262 extern "C"
12263 {
12264 #endif
12265 /* We use char because int might match the return type of a gcc2
12266 builtin and then its argument prototype would still apply. */
12267 char dlopen ();
12268 /* The GNU C library defines this for functions which it implements
12269 to always fail with ENOSYS. Some functions are actually named
12270 something starting with __ and the normal name is an alias. */
12271 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12272 choke me
12273 #else
12274 char (*f) () = dlopen;
12275 #endif
12276 #ifdef __cplusplus
12277 }
12278 #endif
12279
12280 int
12281 main ()
12282 {
12283 return f != dlopen;
12284 ;
12285 return 0;
12286 }
12287 _ACEOF
12288 rm -f conftest.$ac_objext conftest$ac_exeext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290 (eval $ac_link) 2>conftest.er1
12291 ac_status=$?
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest$ac_exeext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_cv_func_dlopen=yes
12310 else
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12313
12314 ac_cv_func_dlopen=no
12315 fi
12316 rm -f conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12318 fi
12319 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12320 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12321 if test $ac_cv_func_dlopen = yes; then
12322 lt_cv_dlopen="dlopen"
12323 else
12324 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12325 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12326 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329 ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-ldl $LIBS"
12331 cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h. */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337
12338 /* Override any gcc2 internal prototype to avoid an error. */
12339 #ifdef __cplusplus
12340 extern "C"
12341 #endif
12342 /* We use char because int might match the return type of a gcc2
12343 builtin and then its argument prototype would still apply. */
12344 char dlopen ();
12345 int
12346 main ()
12347 {
12348 dlopen ();
12349 ;
12350 return 0;
12351 }
12352 _ACEOF
12353 rm -f conftest.$ac_objext conftest$ac_exeext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12355 (eval $ac_link) 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_cv_lib_dl_dlopen=yes
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_cv_lib_dl_dlopen=no
12380 fi
12381 rm -f conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383 LIBS=$ac_check_lib_save_LIBS
12384 fi
12385 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12386 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12387 if test $ac_cv_lib_dl_dlopen = yes; then
12388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12389 else
12390 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12391 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12392 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 else
12395 ac_check_lib_save_LIBS=$LIBS
12396 LIBS="-lsvld $LIBS"
12397 cat >conftest.$ac_ext <<_ACEOF
12398 /* confdefs.h. */
12399 _ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12403
12404 /* Override any gcc2 internal prototype to avoid an error. */
12405 #ifdef __cplusplus
12406 extern "C"
12407 #endif
12408 /* We use char because int might match the return type of a gcc2
12409 builtin and then its argument prototype would still apply. */
12410 char dlopen ();
12411 int
12412 main ()
12413 {
12414 dlopen ();
12415 ;
12416 return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12421 (eval $ac_link) 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_lib_svld_dlopen=yes
12441 else
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12444
12445 ac_cv_lib_svld_dlopen=no
12446 fi
12447 rm -f conftest.err conftest.$ac_objext \
12448 conftest$ac_exeext conftest.$ac_ext
12449 LIBS=$ac_check_lib_save_LIBS
12450 fi
12451 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12452 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12453 if test $ac_cv_lib_svld_dlopen = yes; then
12454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12455 else
12456 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12457 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12458 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461 ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-ldld $LIBS"
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h. */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469
12470 /* Override any gcc2 internal prototype to avoid an error. */
12471 #ifdef __cplusplus
12472 extern "C"
12473 #endif
12474 /* We use char because int might match the return type of a gcc2
12475 builtin and then its argument prototype would still apply. */
12476 char dld_link ();
12477 int
12478 main ()
12479 {
12480 dld_link ();
12481 ;
12482 return 0;
12483 }
12484 _ACEOF
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12487 (eval $ac_link) 2>conftest.er1
12488 ac_status=$?
12489 grep -v '^ *+' conftest.er1 >conftest.err
12490 rm -f conftest.er1
12491 cat conftest.err >&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; } &&
12500 { ac_try='test -s conftest$ac_exeext'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12503 ac_status=$?
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; }; then
12506 ac_cv_lib_dld_dld_link=yes
12507 else
12508 echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12510
12511 ac_cv_lib_dld_dld_link=no
12512 fi
12513 rm -f conftest.err conftest.$ac_objext \
12514 conftest$ac_exeext conftest.$ac_ext
12515 LIBS=$ac_check_lib_save_LIBS
12516 fi
12517 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12518 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12519 if test $ac_cv_lib_dld_dld_link = yes; then
12520 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12521 fi
12522
12523
12524 fi
12525
12526
12527 fi
12528
12529
12530 fi
12531
12532
12533 fi
12534
12535
12536 fi
12537
12538 ;;
12539 esac
12540
12541 if test "x$lt_cv_dlopen" != xno; then
12542 enable_dlopen=yes
12543 else
12544 enable_dlopen=no
12545 fi
12546
12547 case $lt_cv_dlopen in
12548 dlopen)
12549 save_CPPFLAGS="$CPPFLAGS"
12550 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12551
12552 save_LDFLAGS="$LDFLAGS"
12553 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12554
12555 save_LIBS="$LIBS"
12556 LIBS="$lt_cv_dlopen_libs $LIBS"
12557
12558 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12559 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12560 if test "${lt_cv_dlopen_self+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 else
12563 if test "$cross_compiling" = yes; then :
12564 lt_cv_dlopen_self=cross
12565 else
12566 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12567 lt_status=$lt_dlunknown
12568 cat > conftest.$ac_ext <<EOF
12569 #line 12570 "configure"
12570 #include "confdefs.h"
12571
12572 #if HAVE_DLFCN_H
12573 #include <dlfcn.h>
12574 #endif
12575
12576 #include <stdio.h>
12577
12578 #ifdef RTLD_GLOBAL
12579 # define LT_DLGLOBAL RTLD_GLOBAL
12580 #else
12581 # ifdef DL_GLOBAL
12582 # define LT_DLGLOBAL DL_GLOBAL
12583 # else
12584 # define LT_DLGLOBAL 0
12585 # endif
12586 #endif
12587
12588 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12589 find out it does not work in some platform. */
12590 #ifndef LT_DLLAZY_OR_NOW
12591 # ifdef RTLD_LAZY
12592 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12593 # else
12594 # ifdef DL_LAZY
12595 # define LT_DLLAZY_OR_NOW DL_LAZY
12596 # else
12597 # ifdef RTLD_NOW
12598 # define LT_DLLAZY_OR_NOW RTLD_NOW
12599 # else
12600 # ifdef DL_NOW
12601 # define LT_DLLAZY_OR_NOW DL_NOW
12602 # else
12603 # define LT_DLLAZY_OR_NOW 0
12604 # endif
12605 # endif
12606 # endif
12607 # endif
12608 #endif
12609
12610 #ifdef __cplusplus
12611 extern "C" void exit (int);
12612 #endif
12613
12614 void fnord() { int i=42;}
12615 int main ()
12616 {
12617 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12618 int status = $lt_dlunknown;
12619
12620 if (self)
12621 {
12622 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12623 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12624 /* dlclose (self); */
12625 }
12626
12627 exit (status);
12628 }
12629 EOF
12630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12631 (eval $ac_link) 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12635 (./conftest; exit; ) 2>/dev/null
12636 lt_status=$?
12637 case x$lt_status in
12638 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12639 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12640 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12641 esac
12642 else :
12643 # compilation failed
12644 lt_cv_dlopen_self=no
12645 fi
12646 fi
12647 rm -fr conftest*
12648
12649
12650 fi
12651 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12652 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12653
12654 if test "x$lt_cv_dlopen_self" = xyes; then
12655 LDFLAGS="$LDFLAGS $link_static_flag"
12656 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12657 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12658 if test "${lt_cv_dlopen_self_static+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661 if test "$cross_compiling" = yes; then :
12662 lt_cv_dlopen_self_static=cross
12663 else
12664 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12665 lt_status=$lt_dlunknown
12666 cat > conftest.$ac_ext <<EOF
12667 #line 12668 "configure"
12668 #include "confdefs.h"
12669
12670 #if HAVE_DLFCN_H
12671 #include <dlfcn.h>
12672 #endif
12673
12674 #include <stdio.h>
12675
12676 #ifdef RTLD_GLOBAL
12677 # define LT_DLGLOBAL RTLD_GLOBAL
12678 #else
12679 # ifdef DL_GLOBAL
12680 # define LT_DLGLOBAL DL_GLOBAL
12681 # else
12682 # define LT_DLGLOBAL 0
12683 # endif
12684 #endif
12685
12686 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12687 find out it does not work in some platform. */
12688 #ifndef LT_DLLAZY_OR_NOW
12689 # ifdef RTLD_LAZY
12690 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12691 # else
12692 # ifdef DL_LAZY
12693 # define LT_DLLAZY_OR_NOW DL_LAZY
12694 # else
12695 # ifdef RTLD_NOW
12696 # define LT_DLLAZY_OR_NOW RTLD_NOW
12697 # else
12698 # ifdef DL_NOW
12699 # define LT_DLLAZY_OR_NOW DL_NOW
12700 # else
12701 # define LT_DLLAZY_OR_NOW 0
12702 # endif
12703 # endif
12704 # endif
12705 # endif
12706 #endif
12707
12708 #ifdef __cplusplus
12709 extern "C" void exit (int);
12710 #endif
12711
12712 void fnord() { int i=42;}
12713 int main ()
12714 {
12715 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12716 int status = $lt_dlunknown;
12717
12718 if (self)
12719 {
12720 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12721 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12722 /* dlclose (self); */
12723 }
12724
12725 exit (status);
12726 }
12727 EOF
12728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12729 (eval $ac_link) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12733 (./conftest; exit; ) 2>/dev/null
12734 lt_status=$?
12735 case x$lt_status in
12736 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12737 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12738 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12739 esac
12740 else :
12741 # compilation failed
12742 lt_cv_dlopen_self_static=no
12743 fi
12744 fi
12745 rm -fr conftest*
12746
12747
12748 fi
12749 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12750 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12751 fi
12752
12753 CPPFLAGS="$save_CPPFLAGS"
12754 LDFLAGS="$save_LDFLAGS"
12755 LIBS="$save_LIBS"
12756 ;;
12757 esac
12758
12759 case $lt_cv_dlopen_self in
12760 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12761 *) enable_dlopen_self=unknown ;;
12762 esac
12763
12764 case $lt_cv_dlopen_self_static in
12765 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12766 *) enable_dlopen_self_static=unknown ;;
12767 esac
12768 fi
12769
12770
12771 # The else clause should only fire when bootstrapping the
12772 # libtool distribution, otherwise you forgot to ship ltmain.sh
12773 # with your package, and you will get complaints that there are
12774 # no rules to generate ltmain.sh.
12775 if test -f "$ltmain"; then
12776 # See if we are running on zsh, and set the options which allow our commands through
12777 # without removal of \ escapes.
12778 if test -n "${ZSH_VERSION+set}" ; then
12779 setopt NO_GLOB_SUBST
12780 fi
12781 # Now quote all the things that may contain metacharacters while being
12782 # careful not to overquote the AC_SUBSTed values. We take copies of the
12783 # variables and quote the copies for generation of the libtool script.
12784 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12785 SED SHELL STRIP \
12786 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12787 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12788 deplibs_check_method reload_flag reload_cmds need_locks \
12789 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12790 lt_cv_sys_global_symbol_to_c_name_address \
12791 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12792 old_postinstall_cmds old_postuninstall_cmds \
12793 compiler_CXX \
12794 CC_CXX \
12795 LD_CXX \
12796 lt_prog_compiler_wl_CXX \
12797 lt_prog_compiler_pic_CXX \
12798 lt_prog_compiler_static_CXX \
12799 lt_prog_compiler_no_builtin_flag_CXX \
12800 export_dynamic_flag_spec_CXX \
12801 thread_safe_flag_spec_CXX \
12802 whole_archive_flag_spec_CXX \
12803 enable_shared_with_static_runtimes_CXX \
12804 old_archive_cmds_CXX \
12805 old_archive_from_new_cmds_CXX \
12806 predep_objects_CXX \
12807 postdep_objects_CXX \
12808 predeps_CXX \
12809 postdeps_CXX \
12810 compiler_lib_search_path_CXX \
12811 archive_cmds_CXX \
12812 archive_expsym_cmds_CXX \
12813 postinstall_cmds_CXX \
12814 postuninstall_cmds_CXX \
12815 old_archive_from_expsyms_cmds_CXX \
12816 allow_undefined_flag_CXX \
12817 no_undefined_flag_CXX \
12818 export_symbols_cmds_CXX \
12819 hardcode_libdir_flag_spec_CXX \
12820 hardcode_libdir_flag_spec_ld_CXX \
12821 hardcode_libdir_separator_CXX \
12822 hardcode_automatic_CXX \
12823 module_cmds_CXX \
12824 module_expsym_cmds_CXX \
12825 lt_cv_prog_compiler_c_o_CXX \
12826 exclude_expsyms_CXX \
12827 include_expsyms_CXX; do
12828
12829 case $var in
12830 old_archive_cmds_CXX | \
12831 old_archive_from_new_cmds_CXX | \
12832 archive_cmds_CXX | \
12833 archive_expsym_cmds_CXX | \
12834 module_cmds_CXX | \
12835 module_expsym_cmds_CXX | \
12836 old_archive_from_expsyms_cmds_CXX | \
12837 export_symbols_cmds_CXX | \
12838 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12839 postinstall_cmds | postuninstall_cmds | \
12840 old_postinstall_cmds | old_postuninstall_cmds | \
12841 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12842 # Double-quote double-evaled strings.
12843 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12844 ;;
12845 *)
12846 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12847 ;;
12848 esac
12849 done
12850
12851 case $lt_echo in
12852 *'\$0 --fallback-echo"')
12853 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12854 ;;
12855 esac
12856
12857 cfgfile="$ofile"
12858
12859 cat <<__EOF__ >> "$cfgfile"
12860 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12861
12862 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12863
12864 # Shell to use when invoking shell scripts.
12865 SHELL=$lt_SHELL
12866
12867 # Whether or not to build shared libraries.
12868 build_libtool_libs=$enable_shared
12869
12870 # Whether or not to build static libraries.
12871 build_old_libs=$enable_static
12872
12873 # Whether or not to add -lc for building shared libraries.
12874 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12875
12876 # Whether or not to disallow shared libs when runtime libs are static
12877 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12878
12879 # Whether or not to optimize for fast installation.
12880 fast_install=$enable_fast_install
12881
12882 # The host system.
12883 host_alias=$host_alias
12884 host=$host
12885
12886 # An echo program that does not interpret backslashes.
12887 echo=$lt_echo
12888
12889 # The archiver.
12890 AR=$lt_AR
12891 AR_FLAGS=$lt_AR_FLAGS
12892
12893 # A C compiler.
12894 LTCC=$lt_LTCC
12895
12896 # A language-specific compiler.
12897 CC=$lt_compiler_CXX
12898
12899 # Is the compiler the GNU C compiler?
12900 with_gcc=$GCC_CXX
12901
12902 # An ERE matcher.
12903 EGREP=$lt_EGREP
12904
12905 # The linker used to build libraries.
12906 LD=$lt_LD_CXX
12907
12908 # Whether we need hard or soft links.
12909 LN_S=$lt_LN_S
12910
12911 # A BSD-compatible nm program.
12912 NM=$lt_NM
12913
12914 # A symbol stripping program
12915 STRIP=$lt_STRIP
12916
12917 # Used to examine libraries when file_magic_cmd begins "file"
12918 MAGIC_CMD=$MAGIC_CMD
12919
12920 # Used on cygwin: DLL creation program.
12921 DLLTOOL="$DLLTOOL"
12922
12923 # Used on cygwin: object dumper.
12924 OBJDUMP="$OBJDUMP"
12925
12926 # Used on cygwin: assembler.
12927 AS="$AS"
12928
12929 # The name of the directory that contains temporary libtool files.
12930 objdir=$objdir
12931
12932 # How to create reloadable object files.
12933 reload_flag=$lt_reload_flag
12934 reload_cmds=$lt_reload_cmds
12935
12936 # How to pass a linker flag through the compiler.
12937 wl=$lt_lt_prog_compiler_wl_CXX
12938
12939 # Object file suffix (normally "o").
12940 objext="$ac_objext"
12941
12942 # Old archive suffix (normally "a").
12943 libext="$libext"
12944
12945 # Shared library suffix (normally ".so").
12946 shrext_cmds='$shrext_cmds'
12947
12948 # Executable file suffix (normally "").
12949 exeext="$exeext"
12950
12951 # Additional compiler flags for building library objects.
12952 pic_flag=$lt_lt_prog_compiler_pic_CXX
12953 pic_mode=$pic_mode
12954
12955 # What is the maximum length of a command?
12956 max_cmd_len=$lt_cv_sys_max_cmd_len
12957
12958 # Does compiler simultaneously support -c and -o options?
12959 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12960
12961 # Must we lock files when doing compilation ?
12962 need_locks=$lt_need_locks
12963
12964 # Do we need the lib prefix for modules?
12965 need_lib_prefix=$need_lib_prefix
12966
12967 # Do we need a version for libraries?
12968 need_version=$need_version
12969
12970 # Whether dlopen is supported.
12971 dlopen_support=$enable_dlopen
12972
12973 # Whether dlopen of programs is supported.
12974 dlopen_self=$enable_dlopen_self
12975
12976 # Whether dlopen of statically linked programs is supported.
12977 dlopen_self_static=$enable_dlopen_self_static
12978
12979 # Compiler flag to prevent dynamic linking.
12980 link_static_flag=$lt_lt_prog_compiler_static_CXX
12981
12982 # Compiler flag to turn off builtin functions.
12983 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12984
12985 # Compiler flag to allow reflexive dlopens.
12986 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12987
12988 # Compiler flag to generate shared objects directly from archives.
12989 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12990
12991 # Compiler flag to generate thread-safe objects.
12992 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12993
12994 # Library versioning type.
12995 version_type=$version_type
12996
12997 # Format of library name prefix.
12998 libname_spec=$lt_libname_spec
12999
13000 # List of archive names. First name is the real one, the rest are links.
13001 # The last name is the one that the linker finds with -lNAME.
13002 library_names_spec=$lt_library_names_spec
13003
13004 # The coded name of the library, if different from the real name.
13005 soname_spec=$lt_soname_spec
13006
13007 # Commands used to build and install an old-style archive.
13008 RANLIB=$lt_RANLIB
13009 old_archive_cmds=$lt_old_archive_cmds_CXX
13010 old_postinstall_cmds=$lt_old_postinstall_cmds
13011 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13012
13013 # Create an old-style archive from a shared archive.
13014 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13015
13016 # Create a temporary old-style archive to link instead of a shared archive.
13017 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13018
13019 # Commands used to build and install a shared archive.
13020 archive_cmds=$lt_archive_cmds_CXX
13021 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13022 postinstall_cmds=$lt_postinstall_cmds
13023 postuninstall_cmds=$lt_postuninstall_cmds
13024
13025 # Commands used to build a loadable module (assumed same as above if empty)
13026 module_cmds=$lt_module_cmds_CXX
13027 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13028
13029 # Commands to strip libraries.
13030 old_striplib=$lt_old_striplib
13031 striplib=$lt_striplib
13032
13033 # Dependencies to place before the objects being linked to create a
13034 # shared library.
13035 predep_objects=$lt_predep_objects_CXX
13036
13037 # Dependencies to place after the objects being linked to create a
13038 # shared library.
13039 postdep_objects=$lt_postdep_objects_CXX
13040
13041 # Dependencies to place before the objects being linked to create a
13042 # shared library.
13043 predeps=$lt_predeps_CXX
13044
13045 # Dependencies to place after the objects being linked to create a
13046 # shared library.
13047 postdeps=$lt_postdeps_CXX
13048
13049 # The library search path used internally by the compiler when linking
13050 # a shared library.
13051 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13052
13053 # Method to check whether dependent libraries are shared objects.
13054 deplibs_check_method=$lt_deplibs_check_method
13055
13056 # Command to use when deplibs_check_method == file_magic.
13057 file_magic_cmd=$lt_file_magic_cmd
13058
13059 # Flag that allows shared libraries with undefined symbols to be built.
13060 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13061
13062 # Flag that forces no undefined symbols.
13063 no_undefined_flag=$lt_no_undefined_flag_CXX
13064
13065 # Commands used to finish a libtool library installation in a directory.
13066 finish_cmds=$lt_finish_cmds
13067
13068 # Same as above, but a single script fragment to be evaled but not shown.
13069 finish_eval=$lt_finish_eval
13070
13071 # Take the output of nm and produce a listing of raw symbols and C names.
13072 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13073
13074 # Transform the output of nm in a proper C declaration
13075 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13076
13077 # Transform the output of nm in a C name address pair
13078 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13079
13080 # This is the shared library runtime path variable.
13081 runpath_var=$runpath_var
13082
13083 # This is the shared library path variable.
13084 shlibpath_var=$shlibpath_var
13085
13086 # Is shlibpath searched before the hard-coded library search path?
13087 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13088
13089 # How to hardcode a shared library path into an executable.
13090 hardcode_action=$hardcode_action_CXX
13091
13092 # Whether we should hardcode library paths into libraries.
13093 hardcode_into_libs=$hardcode_into_libs
13094
13095 # Flag to hardcode \$libdir into a binary during linking.
13096 # This must work even if \$libdir does not exist.
13097 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13098
13099 # If ld is used when linking, flag to hardcode \$libdir into
13100 # a binary during linking. This must work even if \$libdir does
13101 # not exist.
13102 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13103
13104 # Whether we need a single -rpath flag with a separated argument.
13105 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13106
13107 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13108 # resulting binary.
13109 hardcode_direct=$hardcode_direct_CXX
13110
13111 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13112 # resulting binary.
13113 hardcode_minus_L=$hardcode_minus_L_CXX
13114
13115 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13116 # the resulting binary.
13117 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13118
13119 # Set to yes if building a shared library automatically hardcodes DIR into the library
13120 # and all subsequent libraries and executables linked against it.
13121 hardcode_automatic=$hardcode_automatic_CXX
13122
13123 # Variables whose values should be saved in libtool wrapper scripts and
13124 # restored at relink time.
13125 variables_saved_for_relink="$variables_saved_for_relink"
13126
13127 # Whether libtool must link a program against all its dependency libraries.
13128 link_all_deplibs=$link_all_deplibs_CXX
13129
13130 # Compile-time system search path for libraries
13131 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13132
13133 # Run-time system search path for libraries
13134 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13135
13136 # Fix the shell variable \$srcfile for the compiler.
13137 fix_srcfile_path="$fix_srcfile_path_CXX"
13138
13139 # Set to yes if exported symbols are required.
13140 always_export_symbols=$always_export_symbols_CXX
13141
13142 # The commands to list exported symbols.
13143 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13144
13145 # The commands to extract the exported symbol list from a shared archive.
13146 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13147
13148 # Symbols that should not be listed in the preloaded symbols.
13149 exclude_expsyms=$lt_exclude_expsyms_CXX
13150
13151 # Symbols that must always be exported.
13152 include_expsyms=$lt_include_expsyms_CXX
13153
13154 # ### END LIBTOOL TAG CONFIG: $tagname
13155
13156 __EOF__
13157
13158
13159 else
13160 # If there is no Makefile yet, we rely on a make rule to execute
13161 # `config.status --recheck' to rerun these tests and create the
13162 # libtool script then.
13163 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13164 if test -f "$ltmain_in"; then
13165 test -f Makefile && make "$ltmain"
13166 fi
13167 fi
13168
16107
16108
16109
16110
16111
16112
16113 fi # test -n "$compiler"
16114
16115 CC=$lt_save_CC
16116 LDCXX=$LD
16117 LD=$lt_save_LD
16118 GCC=$lt_save_GCC
16119 with_gnu_ld=$lt_save_with_gnu_ld
16120 lt_cv_path_LDCXX=$lt_cv_path_LD
16121 lt_cv_path_LD=$lt_save_path_LD
16122 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16123 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16124 fi # test "$_lt_caught_CXX_error" != yes
1316916125
1317016126 ac_ext=c
1317116127 ac_cpp='$CPP $CPPFLAGS'
1317216128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317316129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1317416130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13175
13176 CC=$lt_save_CC
13177 LDCXX=$LD
13178 LD=$lt_save_LD
13179 GCC=$lt_save_GCC
13180 with_gnu_ldcxx=$with_gnu_ld
13181 with_gnu_ld=$lt_save_with_gnu_ld
13182 lt_cv_path_LDCXX=$lt_cv_path_LD
13183 lt_cv_path_LD=$lt_save_path_LD
13184 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13185 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13186
13187 else
13188 tagname=""
13189 fi
13190 ;;
13191
13192 F77)
13193 if test -n "$F77" && test "X$F77" != "Xno"; then
13194
13195 ac_ext=f
13196 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13197 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13198 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13199
13200
13201 archive_cmds_need_lc_F77=no
13202 allow_undefined_flag_F77=
13203 always_export_symbols_F77=no
13204 archive_expsym_cmds_F77=
13205 export_dynamic_flag_spec_F77=
13206 hardcode_direct_F77=no
13207 hardcode_libdir_flag_spec_F77=
13208 hardcode_libdir_flag_spec_ld_F77=
13209 hardcode_libdir_separator_F77=
13210 hardcode_minus_L_F77=no
13211 hardcode_automatic_F77=no
13212 module_cmds_F77=
13213 module_expsym_cmds_F77=
13214 link_all_deplibs_F77=unknown
13215 old_archive_cmds_F77=$old_archive_cmds
13216 no_undefined_flag_F77=
13217 whole_archive_flag_spec_F77=
13218 enable_shared_with_static_runtimes_F77=no
13219
13220 # Source file extension for f77 test sources.
13221 ac_ext=f
13222
13223 # Object file extension for compiled f77 test sources.
13224 objext=o
13225 objext_F77=$objext
13226
13227 # Code to be used in simple compile tests
13228 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13229
13230 # Code to be used in simple link tests
13231 lt_simple_link_test_code=" program t\n end\n"
13232
13233 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13234
13235 # If no C compiler was specified, use CC.
13236 LTCC=${LTCC-"$CC"}
13237
13238 # Allow CC to be a program name with arguments.
13239 compiler=$CC
13240
13241
13242 # Allow CC to be a program name with arguments.
13243 lt_save_CC="$CC"
13244 CC=${F77-"f77"}
13245 compiler=$CC
13246 compiler_F77=$CC
13247 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13248
13249 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13250 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13251 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13252 echo "${ECHO_T}$can_build_shared" >&6
13253
13254 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13255 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13256 test "$can_build_shared" = "no" && enable_shared=no
13257
13258 # On AIX, shared libraries and static libraries use the same namespace, and
13259 # are all built from PIC.
13260 case "$host_os" in
13261 aix3*)
13262 test "$enable_shared" = yes && enable_static=no
13263 if test -n "$RANLIB"; then
13264 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13265 postinstall_cmds='$RANLIB $lib'
13266 fi
13267 ;;
13268 aix4* | aix5*)
13269 test "$enable_shared" = yes && enable_static=no
13270 ;;
13271 esac
13272 echo "$as_me:$LINENO: result: $enable_shared" >&5
13273 echo "${ECHO_T}$enable_shared" >&6
13274
13275 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13276 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13277 # Make sure either enable_shared or enable_static is yes.
13278 test "$enable_shared" = yes || enable_static=yes
13279 echo "$as_me:$LINENO: result: $enable_static" >&5
13280 echo "${ECHO_T}$enable_static" >&6
13281
13282 test "$ld_shlibs_F77" = no && can_build_shared=no
13283
13284 GCC_F77="$G77"
13285 LD_F77="$LD"
13286
13287 lt_prog_compiler_wl_F77=
13288 lt_prog_compiler_pic_F77=
13289 lt_prog_compiler_static_F77=
13290
13291 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13292 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13293
13294 if test "$GCC" = yes; then
13295 lt_prog_compiler_wl_F77='-Wl,'
13296 lt_prog_compiler_static_F77='-static'
13297
13298 case $host_os in
13299 aix*)
13300 # All AIX code is PIC.
13301 if test "$host_cpu" = ia64; then
13302 # AIX 5 now supports IA64 processor
13303 lt_prog_compiler_static_F77='-Bstatic'
13304 fi
13305 ;;
13306
13307 amigaos*)
13308 # FIXME: we need at least 68020 code to build shared libraries, but
13309 # adding the `-m68020' flag to GCC prevents building anything better,
13310 # like `-m68040'.
13311 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13312 ;;
13313
13314 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13315 # PIC is the default for these OSes.
13316 ;;
13317
13318 mingw* | pw32* | os2*)
13319 # This hack is so that the source file can tell whether it is being
13320 # built for inclusion in a dll (and should export symbols for example).
13321 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13322 ;;
13323
13324 darwin* | rhapsody*)
13325 # PIC is the default on this platform
13326 # Common symbols not allowed in MH_DYLIB files
13327 lt_prog_compiler_pic_F77='-fno-common'
13328 ;;
13329
13330 msdosdjgpp*)
13331 # Just because we use GCC doesn't mean we suddenly get shared libraries
13332 # on systems that don't support them.
13333 lt_prog_compiler_can_build_shared_F77=no
13334 enable_shared=no
13335 ;;
13336
13337 sysv4*MP*)
13338 if test -d /usr/nec; then
13339 lt_prog_compiler_pic_F77=-Kconform_pic
13340 fi
13341 ;;
13342
13343 hpux*)
13344 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13345 # not for PA HP-UX.
13346 case "$host_cpu" in
13347 hppa*64*|ia64*)
13348 # +Z the default
13349 ;;
13350 *)
13351 lt_prog_compiler_pic_F77='-fPIC'
13352 ;;
13353 esac
13354 ;;
13355
13356 *)
13357 lt_prog_compiler_pic_F77='-fPIC'
13358 ;;
13359 esac
13360 else
13361 # PORTME Check for flag to pass linker flags through the system compiler.
13362 case $host_os in
13363 aix*)
13364 lt_prog_compiler_wl_F77='-Wl,'
13365 if test "$host_cpu" = ia64; then
13366 # AIX 5 now supports IA64 processor
13367 lt_prog_compiler_static_F77='-Bstatic'
13368 else
13369 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13370 fi
13371 ;;
13372
13373 mingw* | pw32* | os2*)
13374 # This hack is so that the source file can tell whether it is being
13375 # built for inclusion in a dll (and should export symbols for example).
13376 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13377 ;;
13378
13379 hpux9* | hpux10* | hpux11*)
13380 lt_prog_compiler_wl_F77='-Wl,'
13381 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13382 # not for PA HP-UX.
13383 case "$host_cpu" in
13384 hppa*64*|ia64*)
13385 # +Z the default
13386 ;;
13387 *)
13388 lt_prog_compiler_pic_F77='+Z'
13389 ;;
13390 esac
13391 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13392 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13393 ;;
13394
13395 irix5* | irix6* | nonstopux*)
13396 lt_prog_compiler_wl_F77='-Wl,'
13397 # PIC (with -KPIC) is the default.
13398 lt_prog_compiler_static_F77='-non_shared'
13399 ;;
13400
13401 newsos6)
13402 lt_prog_compiler_pic_F77='-KPIC'
13403 lt_prog_compiler_static_F77='-Bstatic'
13404 ;;
13405
13406 linux*)
13407 case $CC in
13408 icc* | ecc*)
13409 lt_prog_compiler_wl_F77='-Wl,'
13410 lt_prog_compiler_pic_F77='-KPIC'
13411 lt_prog_compiler_static_F77='-static'
13412 ;;
13413 ccc*)
13414 lt_prog_compiler_wl_F77='-Wl,'
13415 # All Alpha code is PIC.
13416 lt_prog_compiler_static_F77='-non_shared'
13417 ;;
13418 esac
13419 ;;
13420
13421 osf3* | osf4* | osf5*)
13422 lt_prog_compiler_wl_F77='-Wl,'
13423 # All OSF/1 code is PIC.
13424 lt_prog_compiler_static_F77='-non_shared'
13425 ;;
13426
13427 sco3.2v5*)
13428 lt_prog_compiler_pic_F77='-Kpic'
13429 lt_prog_compiler_static_F77='-dn'
13430 ;;
13431
13432 solaris*)
13433 lt_prog_compiler_wl_F77='-Wl,'
13434 lt_prog_compiler_pic_F77='-KPIC'
13435 lt_prog_compiler_static_F77='-Bstatic'
13436 ;;
13437
13438 sunos4*)
13439 lt_prog_compiler_wl_F77='-Qoption ld '
13440 lt_prog_compiler_pic_F77='-PIC'
13441 lt_prog_compiler_static_F77='-Bstatic'
13442 ;;
13443
13444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13445 lt_prog_compiler_wl_F77='-Wl,'
13446 lt_prog_compiler_pic_F77='-KPIC'
13447 lt_prog_compiler_static_F77='-Bstatic'
13448 ;;
13449
13450 sysv4*MP*)
13451 if test -d /usr/nec ;then
13452 lt_prog_compiler_pic_F77='-Kconform_pic'
13453 lt_prog_compiler_static_F77='-Bstatic'
13454 fi
13455 ;;
13456
13457 uts4*)
13458 lt_prog_compiler_pic_F77='-pic'
13459 lt_prog_compiler_static_F77='-Bstatic'
13460 ;;
13461
13462 *)
13463 lt_prog_compiler_can_build_shared_F77=no
13464 ;;
13465 esac
13466 fi
13467
13468 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13469 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13470
13471 #
13472 # Check to make sure the PIC flag actually works.
13473 #
13474 if test -n "$lt_prog_compiler_pic_F77"; then
13475
13476 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13477 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13478 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 else
13481 lt_prog_compiler_pic_works_F77=no
13482 ac_outfile=conftest.$ac_objext
13483 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13484 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13485 # Insert the option either (1) after the last *FLAGS variable, or
13486 # (2) before a word containing "conftest.", or (3) at the end.
13487 # Note that $ac_compile itself does not contain backslashes and begins
13488 # with a dollar sign (not a hyphen), so the echo should work correctly.
13489 # The option is referenced via a variable to avoid confusing sed.
13490 lt_compile=`echo "$ac_compile" | $SED \
13491 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13493 -e 's:$: $lt_compiler_flag:'`
13494 (eval echo "\"\$as_me:13495: $lt_compile\"" >&5)
13495 (eval "$lt_compile" 2>conftest.err)
13496 ac_status=$?
13497 cat conftest.err >&5
13498 echo "$as_me:13499: \$? = $ac_status" >&5
13499 if (exit $ac_status) && test -s "$ac_outfile"; then
13500 # The compiler can only warn and ignore the option if not recognized
13501 # So say no if there are warnings
13502 if test ! -s conftest.err; then
13503 lt_prog_compiler_pic_works_F77=yes
13504 fi
13505 fi
13506 $rm conftest*
13507
13508 fi
13509 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13510 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13511
13512 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13513 case $lt_prog_compiler_pic_F77 in
13514 "" | " "*) ;;
13515 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13516 esac
13517 else
13518 lt_prog_compiler_pic_F77=
13519 lt_prog_compiler_can_build_shared_F77=no
13520 fi
13521
13522 fi
13523 case "$host_os" in
13524 # For platforms which do not support PIC, -DPIC is meaningless:
13525 *djgpp*)
13526 lt_prog_compiler_pic_F77=
13527 ;;
13528 *)
13529 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13530 ;;
13531 esac
13532
13533 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13534 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13535 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538 lt_cv_prog_compiler_c_o_F77=no
13539 $rm -r conftest 2>/dev/null
13540 mkdir conftest
13541 cd conftest
13542 mkdir out
13543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13544
13545 lt_compiler_flag="-o out/conftest2.$ac_objext"
13546 # Insert the option either (1) after the last *FLAGS variable, or
13547 # (2) before a word containing "conftest.", or (3) at the end.
13548 # Note that $ac_compile itself does not contain backslashes and begins
13549 # with a dollar sign (not a hyphen), so the echo should work correctly.
13550 lt_compile=`echo "$ac_compile" | $SED \
13551 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13553 -e 's:$: $lt_compiler_flag:'`
13554 (eval echo "\"\$as_me:13555: $lt_compile\"" >&5)
13555 (eval "$lt_compile" 2>out/conftest.err)
13556 ac_status=$?
13557 cat out/conftest.err >&5
13558 echo "$as_me:13559: \$? = $ac_status" >&5
13559 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13560 then
13561 # The compiler can only warn and ignore the option if not recognized
13562 # So say no if there are warnings
13563 if test ! -s out/conftest.err; then
13564 lt_cv_prog_compiler_c_o_F77=yes
13565 fi
13566 fi
13567 chmod u+w .
13568 $rm conftest*
13569 # SGI C++ compiler will create directory out/ii_files/ for
13570 # template instantiation
13571 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13572 $rm out/* && rmdir out
13573 cd ..
13574 rmdir conftest
13575 $rm conftest*
13576
13577 fi
13578 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13579 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13580
13581
13582 hard_links="nottested"
13583 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13584 # do not overwrite the value of need_locks provided by the user
13585 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13586 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13587 hard_links=yes
13588 $rm conftest*
13589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13590 touch conftest.a
13591 ln conftest.a conftest.b 2>&5 || hard_links=no
13592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13593 echo "$as_me:$LINENO: result: $hard_links" >&5
13594 echo "${ECHO_T}$hard_links" >&6
13595 if test "$hard_links" = no; then
13596 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13597 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13598 need_locks=warn
13599 fi
13600 else
13601 need_locks=no
13602 fi
13603
13604 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13605 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13606
13607 runpath_var=
13608 allow_undefined_flag_F77=
13609 enable_shared_with_static_runtimes_F77=no
13610 archive_cmds_F77=
13611 archive_expsym_cmds_F77=
13612 old_archive_From_new_cmds_F77=
13613 old_archive_from_expsyms_cmds_F77=
13614 export_dynamic_flag_spec_F77=
13615 whole_archive_flag_spec_F77=
13616 thread_safe_flag_spec_F77=
13617 hardcode_libdir_flag_spec_F77=
13618 hardcode_libdir_flag_spec_ld_F77=
13619 hardcode_libdir_separator_F77=
13620 hardcode_direct_F77=no
13621 hardcode_minus_L_F77=no
13622 hardcode_shlibpath_var_F77=unsupported
13623 link_all_deplibs_F77=unknown
13624 hardcode_automatic_F77=no
13625 module_cmds_F77=
13626 module_expsym_cmds_F77=
13627 always_export_symbols_F77=no
13628 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13629 # include_expsyms should be a list of space-separated symbols to be *always*
13630 # included in the symbol list
13631 include_expsyms_F77=
13632 # exclude_expsyms can be an extended regexp of symbols to exclude
13633 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13634 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13635 # as well as any symbol that contains `d'.
13636 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13637 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13638 # platforms (ab)use it in PIC code, but their linkers get confused if
13639 # the symbol is explicitly referenced. Since portable code cannot
13640 # rely on this symbol name, it's probably fine to never include it in
13641 # preloaded symbol tables.
13642 extract_expsyms_cmds=
13643
13644 case $host_os in
13645 cygwin* | mingw* | pw32*)
13646 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13647 # When not using gcc, we currently assume that we are using
13648 # Microsoft Visual C++.
13649 if test "$GCC" != yes; then
13650 with_gnu_ld=no
13651 fi
13652 ;;
13653 openbsd*)
13654 with_gnu_ld=no
13655 ;;
13656 esac
13657
13658 ld_shlibs_F77=yes
13659 if test "$with_gnu_ld" = yes; then
13660 # If archive_cmds runs LD, not CC, wlarc should be empty
13661 wlarc='${wl}'
13662
13663 # See if GNU ld supports shared libraries.
13664 case $host_os in
13665 aix3* | aix4* | aix5*)
13666 # On AIX/PPC, the GNU linker is very broken
13667 if test "$host_cpu" != ia64; then
13668 ld_shlibs_F77=no
13669 cat <<EOF 1>&2
13670
13671 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13672 *** to be unable to reliably create shared libraries on AIX.
13673 *** Therefore, libtool is disabling shared libraries support. If you
13674 *** really care for shared libraries, you may want to modify your PATH
13675 *** so that a non-GNU linker is found, and then restart.
13676
13677 EOF
13678 fi
13679 ;;
13680
13681 amigaos*)
13682 archive_cmds_F77='$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)'
13683 hardcode_libdir_flag_spec_F77='-L$libdir'
13684 hardcode_minus_L_F77=yes
13685
13686 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13687 # that the semantics of dynamic libraries on AmigaOS, at least up
13688 # to version 4, is to share data among multiple programs linked
13689 # with the same dynamic library. Since this doesn't match the
13690 # behavior of shared libraries on other platforms, we can't use
13691 # them.
13692 ld_shlibs_F77=no
13693 ;;
13694
13695 beos*)
13696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13697 allow_undefined_flag_F77=unsupported
13698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13699 # support --undefined. This deserves some investigation. FIXME
13700 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13701 else
13702 ld_shlibs_F77=no
13703 fi
13704 ;;
13705
13706 cygwin* | mingw* | pw32*)
13707 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13708 # as there is no search path for DLLs.
13709 hardcode_libdir_flag_spec_F77='-L$libdir'
13710 allow_undefined_flag_F77=unsupported
13711 always_export_symbols_F77=no
13712 enable_shared_with_static_runtimes_F77=yes
13713 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13714
13715 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13716 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13717 # If the export-symbols file already is a .def file (1st line
13718 # is EXPORTS), use it as is; otherwise, prepend...
13719 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13720 cp $export_symbols $output_objdir/$soname.def;
13721 else
13722 echo EXPORTS > $output_objdir/$soname.def;
13723 cat $export_symbols >> $output_objdir/$soname.def;
13724 fi~
13725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13726 else
13727 ld_shlibs=no
13728 fi
13729 ;;
13730
13731 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13733 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13734 wlarc=
13735 else
13736 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13737 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13738 fi
13739 ;;
13740
13741 solaris* | sysv5*)
13742 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13743 ld_shlibs_F77=no
13744 cat <<EOF 1>&2
13745
13746 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13747 *** create shared libraries on Solaris systems. Therefore, libtool
13748 *** is disabling shared libraries support. We urge you to upgrade GNU
13749 *** binutils to release 2.9.1 or newer. Another option is to modify
13750 *** your PATH or compiler configuration so that the native linker is
13751 *** used, and then restart.
13752
13753 EOF
13754 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13755 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13756 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13757 else
13758 ld_shlibs_F77=no
13759 fi
13760 ;;
13761
13762 sunos4*)
13763 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13764 wlarc=
13765 hardcode_direct_F77=yes
13766 hardcode_shlibpath_var_F77=no
13767 ;;
13768
13769 linux*)
13770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13771 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13772 archive_cmds_F77="$tmp_archive_cmds"
13773 supports_anon_versioning=no
13774 case `$LD -v 2>/dev/null` in
13775 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13776 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13777 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13778 *\ 2.11.*) ;; # other 2.11 versions
13779 *) supports_anon_versioning=yes ;;
13780 esac
13781 if test $supports_anon_versioning = yes; then
13782 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13783 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13784 $echo "local: *; };" >> $output_objdir/$libname.ver~
13785 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13786 else
13787 archive_expsym_cmds_F77="$tmp_archive_cmds"
13788 fi
13789 link_all_deplibs_F77=no
13790 else
13791 ld_shlibs_F77=no
13792 fi
13793 ;;
13794
13795 *)
13796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13797 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13798 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13799 else
13800 ld_shlibs_F77=no
13801 fi
13802 ;;
13803 esac
13804
13805 if test "$ld_shlibs_F77" = yes; then
13806 runpath_var=LD_RUN_PATH
13807 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13808 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13809 # ancient GNU ld didn't support --whole-archive et. al.
13810 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13811 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13812 else
13813 whole_archive_flag_spec_F77=
13814 fi
13815 fi
13816 else
13817 # PORTME fill in a description of your system's linker (not GNU ld)
13818 case $host_os in
13819 aix3*)
13820 allow_undefined_flag_F77=unsupported
13821 always_export_symbols_F77=yes
13822 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13823 # Note: this linker hardcodes the directories in LIBPATH if there
13824 # are no directories specified by -L.
13825 hardcode_minus_L_F77=yes
13826 if test "$GCC" = yes && test -z "$link_static_flag"; then
13827 # Neither direct hardcoding nor static linking is supported with a
13828 # broken collect2.
13829 hardcode_direct_F77=unsupported
13830 fi
13831 ;;
13832
13833 aix4* | aix5*)
13834 if test "$host_cpu" = ia64; then
13835 # On IA64, the linker does run time linking by default, so we don't
13836 # have to do anything special.
13837 aix_use_runtimelinking=no
13838 exp_sym_flag='-Bexport'
13839 no_entry_flag=""
13840 else
13841 # If we're using GNU nm, then we don't want the "-C" option.
13842 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13843 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13844 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13845 else
13846 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13847 fi
13848 aix_use_runtimelinking=no
13849
13850 # Test if we are trying to use run time linking or normal
13851 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13852 # need to do runtime linking.
13853 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13854 for ld_flag in $LDFLAGS; do
13855 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13856 aix_use_runtimelinking=yes
13857 break
13858 fi
13859 done
13860 esac
13861
13862 exp_sym_flag='-bexport'
13863 no_entry_flag='-bnoentry'
13864 fi
13865
13866 # When large executables or shared objects are built, AIX ld can
13867 # have problems creating the table of contents. If linking a library
13868 # or program results in "error TOC overflow" add -mminimal-toc to
13869 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13870 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13871
13872 archive_cmds_F77=''
13873 hardcode_direct_F77=yes
13874 hardcode_libdir_separator_F77=':'
13875 link_all_deplibs_F77=yes
13876
13877 if test "$GCC" = yes; then
13878 case $host_os in aix4.012|aix4.012.*)
13879 # We only want to do this on AIX 4.2 and lower, the check
13880 # below for broken collect2 doesn't work under 4.3+
13881 collect2name=`${CC} -print-prog-name=collect2`
13882 if test -f "$collect2name" && \
13883 strings "$collect2name" | grep resolve_lib_name >/dev/null
13884 then
13885 # We have reworked collect2
13886 hardcode_direct_F77=yes
13887 else
13888 # We have old collect2
13889 hardcode_direct_F77=unsupported
13890 # It fails to find uninstalled libraries when the uninstalled
13891 # path is not listed in the libpath. Setting hardcode_minus_L
13892 # to unsupported forces relinking
13893 hardcode_minus_L_F77=yes
13894 hardcode_libdir_flag_spec_F77='-L$libdir'
13895 hardcode_libdir_separator_F77=
13896 fi
13897 esac
13898 shared_flag='-shared'
13899 else
13900 # not using gcc
13901 if test "$host_cpu" = ia64; then
13902 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13903 # chokes on -Wl,-G. The following line is correct:
13904 shared_flag='-G'
13905 else
13906 if test "$aix_use_runtimelinking" = yes; then
13907 shared_flag='${wl}-G'
13908 else
13909 shared_flag='${wl}-bM:SRE'
13910 fi
13911 fi
13912 fi
13913
13914 # It seems that -bexpall does not export symbols beginning with
13915 # underscore (_), so it is better to generate a list of symbols to export.
13916 always_export_symbols_F77=yes
13917 if test "$aix_use_runtimelinking" = yes; then
13918 # Warning - without using the other runtime loading flags (-brtl),
13919 # -berok will link without error, but may produce a broken library.
13920 allow_undefined_flag_F77='-berok'
13921 # Determine the default libpath from the value encoded in an empty executable.
13922 cat >conftest.$ac_ext <<_ACEOF
13923 program main
13924
13925 end
13926 _ACEOF
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>conftest.er1
13930 ac_status=$?
13931 grep -v '^ *+' conftest.er1 >conftest.err
13932 rm -f conftest.er1
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948
13949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13950 }'`
13951 # Check for a 64-bit object if we didn't find anything.
13952 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13953 }'`; fi
13954 else
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13957
13958 fi
13959 rm -f conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13962
13963 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13964 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13965 else
13966 if test "$host_cpu" = ia64; then
13967 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13968 allow_undefined_flag_F77="-z nodefs"
13969 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13970 else
13971 # Determine the default libpath from the value encoded in an empty executable.
13972 cat >conftest.$ac_ext <<_ACEOF
13973 program main
13974
13975 end
13976 _ACEOF
13977 rm -f conftest.$ac_objext conftest$ac_exeext
13978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13979 (eval $ac_link) 2>conftest.er1
13980 ac_status=$?
13981 grep -v '^ *+' conftest.er1 >conftest.err
13982 rm -f conftest.er1
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } &&
13986 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; } &&
13992 { ac_try='test -s conftest$ac_exeext'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998
13999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14000 }'`
14001 # Check for a 64-bit object if we didn't find anything.
14002 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14003 }'`; fi
14004 else
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008 fi
14009 rm -f conftest.err conftest.$ac_objext \
14010 conftest$ac_exeext conftest.$ac_ext
14011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14012
14013 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14014 # Warning - without using the other run time loading flags,
14015 # -berok will link without error, but may produce a broken library.
14016 no_undefined_flag_F77=' ${wl}-bernotok'
14017 allow_undefined_flag_F77=' ${wl}-berok'
14018 # -bexpall does not export symbols beginning with underscore (_)
14019 always_export_symbols_F77=yes
14020 # Exported symbols can be pulled into shared objects from archives
14021 whole_archive_flag_spec_F77=' '
14022 archive_cmds_need_lc_F77=yes
14023 # This is similar to how AIX traditionally builds it's shared libraries.
14024 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14025 fi
14026 fi
14027 ;;
14028
14029 amigaos*)
14030 archive_cmds_F77='$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)'
14031 hardcode_libdir_flag_spec_F77='-L$libdir'
14032 hardcode_minus_L_F77=yes
14033 # see comment about different semantics on the GNU ld section
14034 ld_shlibs_F77=no
14035 ;;
14036
14037 bsdi4*)
14038 export_dynamic_flag_spec_F77=-rdynamic
14039 ;;
14040
14041 cygwin* | mingw* | pw32*)
14042 # When not using gcc, we currently assume that we are using
14043 # Microsoft Visual C++.
14044 # hardcode_libdir_flag_spec is actually meaningless, as there is
14045 # no search path for DLLs.
14046 hardcode_libdir_flag_spec_F77=' '
14047 allow_undefined_flag_F77=unsupported
14048 # Tell ltmain to make .lib files, not .a files.
14049 libext=lib
14050 # Tell ltmain to make .dll files, not .so files.
14051 shrext_cmds=".dll"
14052 # FIXME: Setting linknames here is a bad hack.
14053 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14054 # The linker will automatically build a .lib file if we build a DLL.
14055 old_archive_From_new_cmds_F77='true'
14056 # FIXME: Should let the user specify the lib program.
14057 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14058 fix_srcfile_path='`cygpath -w "$srcfile"`'
14059 enable_shared_with_static_runtimes_F77=yes
14060 ;;
14061
14062 darwin* | rhapsody*)
14063 if test "$GXX" = yes ; then
14064 archive_cmds_need_lc_F77=no
14065 case "$host_os" in
14066 rhapsody* | darwin1.[012])
14067 allow_undefined_flag_F77='-undefined suppress'
14068 ;;
14069 *) # Darwin 1.3 on
14070 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14071 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14072 else
14073 case ${MACOSX_DEPLOYMENT_TARGET} in
14074 10.[012])
14075 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14076 ;;
14077 10.*)
14078 allow_undefined_flag_F77='-undefined dynamic_lookup'
14079 ;;
14080 esac
14081 fi
14082 ;;
14083 esac
14084 lt_int_apple_cc_single_mod=no
14085 output_verbose_link_cmd='echo'
14086 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14087 lt_int_apple_cc_single_mod=yes
14088 fi
14089 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14090 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14091 else
14092 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14093 fi
14094 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14095 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14096 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14097 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14098 else
14099 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14100 fi
14101 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14102 hardcode_direct_F77=no
14103 hardcode_automatic_F77=yes
14104 hardcode_shlibpath_var_F77=unsupported
14105 whole_archive_flag_spec_F77='-all_load $convenience'
14106 link_all_deplibs_F77=yes
14107 else
14108 ld_shlibs_F77=no
14109 fi
14110 ;;
14111
14112 dgux*)
14113 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14114 hardcode_libdir_flag_spec_F77='-L$libdir'
14115 hardcode_shlibpath_var_F77=no
14116 ;;
14117
14118 freebsd1*)
14119 ld_shlibs_F77=no
14120 ;;
14121
14122 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14123 # support. Future versions do this automatically, but an explicit c++rt0.o
14124 # does not break anything, and helps significantly (at the cost of a little
14125 # extra space).
14126 freebsd2.2*)
14127 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14128 hardcode_libdir_flag_spec_F77='-R$libdir'
14129 hardcode_direct_F77=yes
14130 hardcode_shlibpath_var_F77=no
14131 ;;
14132
14133 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14134 freebsd2*)
14135 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14136 hardcode_direct_F77=yes
14137 hardcode_minus_L_F77=yes
14138 hardcode_shlibpath_var_F77=no
14139 ;;
14140
14141 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14142 freebsd* | kfreebsd*-gnu)
14143 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14144 hardcode_libdir_flag_spec_F77='-R$libdir'
14145 hardcode_direct_F77=yes
14146 hardcode_shlibpath_var_F77=no
14147 ;;
14148
14149 hpux9*)
14150 if test "$GCC" = yes; then
14151 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14152 else
14153 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14154 fi
14155 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14156 hardcode_libdir_separator_F77=:
14157 hardcode_direct_F77=yes
14158
14159 # hardcode_minus_L: Not really in the search PATH,
14160 # but as the default location of the library.
14161 hardcode_minus_L_F77=yes
14162 export_dynamic_flag_spec_F77='${wl}-E'
14163 ;;
14164
14165 hpux10* | hpux11*)
14166 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14167 case "$host_cpu" in
14168 hppa*64*|ia64*)
14169 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14170 ;;
14171 *)
14172 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14173 ;;
14174 esac
14175 else
14176 case "$host_cpu" in
14177 hppa*64*|ia64*)
14178 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14179 ;;
14180 *)
14181 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14182 ;;
14183 esac
14184 fi
14185 if test "$with_gnu_ld" = no; then
14186 case "$host_cpu" in
14187 hppa*64*)
14188 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14189 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14190 hardcode_libdir_separator_F77=:
14191 hardcode_direct_F77=no
14192 hardcode_shlibpath_var_F77=no
14193 ;;
14194 ia64*)
14195 hardcode_libdir_flag_spec_F77='-L$libdir'
14196 hardcode_direct_F77=no
14197 hardcode_shlibpath_var_F77=no
14198
14199 # hardcode_minus_L: Not really in the search PATH,
14200 # but as the default location of the library.
14201 hardcode_minus_L_F77=yes
14202 ;;
14203 *)
14204 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14205 hardcode_libdir_separator_F77=:
14206 hardcode_direct_F77=yes
14207 export_dynamic_flag_spec_F77='${wl}-E'
14208
14209 # hardcode_minus_L: Not really in the search PATH,
14210 # but as the default location of the library.
14211 hardcode_minus_L_F77=yes
14212 ;;
14213 esac
14214 fi
14215 ;;
14216
14217 irix5* | irix6* | nonstopux*)
14218 if test "$GCC" = yes; then
14219 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14220 else
14221 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14222 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14223 fi
14224 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14225 hardcode_libdir_separator_F77=:
14226 link_all_deplibs_F77=yes
14227 ;;
14228
14229 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14230 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14231 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14232 else
14233 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14234 fi
14235 hardcode_libdir_flag_spec_F77='-R$libdir'
14236 hardcode_direct_F77=yes
14237 hardcode_shlibpath_var_F77=no
14238 ;;
14239
14240 newsos6)
14241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14242 hardcode_direct_F77=yes
14243 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14244 hardcode_libdir_separator_F77=:
14245 hardcode_shlibpath_var_F77=no
14246 ;;
14247
14248 openbsd*)
14249 hardcode_direct_F77=yes
14250 hardcode_shlibpath_var_F77=no
14251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14252 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14253 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14254 export_dynamic_flag_spec_F77='${wl}-E'
14255 else
14256 case $host_os in
14257 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14258 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14259 hardcode_libdir_flag_spec_F77='-R$libdir'
14260 ;;
14261 *)
14262 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14263 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14264 ;;
14265 esac
14266 fi
14267 ;;
14268
14269 os2*)
14270 hardcode_libdir_flag_spec_F77='-L$libdir'
14271 hardcode_minus_L_F77=yes
14272 allow_undefined_flag_F77=unsupported
14273 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14274 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14275 ;;
14276
14277 osf3*)
14278 if test "$GCC" = yes; then
14279 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14280 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14281 else
14282 allow_undefined_flag_F77=' -expect_unresolved \*'
14283 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14284 fi
14285 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14286 hardcode_libdir_separator_F77=:
14287 ;;
14288
14289 osf4* | osf5*) # as osf3* with the addition of -msym flag
14290 if test "$GCC" = yes; then
14291 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14292 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14293 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14294 else
14295 allow_undefined_flag_F77=' -expect_unresolved \*'
14296 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14297 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14298 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14299
14300 # Both c and cxx compiler support -rpath directly
14301 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14302 fi
14303 hardcode_libdir_separator_F77=:
14304 ;;
14305
14306 sco3.2v5*)
14307 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14308 hardcode_shlibpath_var_F77=no
14309 export_dynamic_flag_spec_F77='${wl}-Bexport'
14310 runpath_var=LD_RUN_PATH
14311 hardcode_runpath_var=yes
14312 ;;
14313
14314 solaris*)
14315 no_undefined_flag_F77=' -z text'
14316 if test "$GCC" = yes; then
14317 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14318 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14319 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14320 else
14321 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14322 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14323 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14324 fi
14325 hardcode_libdir_flag_spec_F77='-R$libdir'
14326 hardcode_shlibpath_var_F77=no
14327 case $host_os in
14328 solaris2.[0-5] | solaris2.[0-5].*) ;;
14329 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14330 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14331 esac
14332 link_all_deplibs_F77=yes
14333 ;;
14334
14335 sunos4*)
14336 if test "x$host_vendor" = xsequent; then
14337 # Use $CC to link under sequent, because it throws in some extra .o
14338 # files that make .init and .fini sections work.
14339 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14340 else
14341 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14342 fi
14343 hardcode_libdir_flag_spec_F77='-L$libdir'
14344 hardcode_direct_F77=yes
14345 hardcode_minus_L_F77=yes
14346 hardcode_shlibpath_var_F77=no
14347 ;;
14348
14349 sysv4)
14350 case $host_vendor in
14351 sni)
14352 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14353 hardcode_direct_F77=yes # is this really true???
14354 ;;
14355 siemens)
14356 ## LD is ld it makes a PLAMLIB
14357 ## CC just makes a GrossModule.
14358 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14359 reload_cmds_F77='$CC -r -o $output$reload_objs'
14360 hardcode_direct_F77=no
14361 ;;
14362 motorola)
14363 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14364 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14365 ;;
14366 esac
14367 runpath_var='LD_RUN_PATH'
14368 hardcode_shlibpath_var_F77=no
14369 ;;
14370
14371 sysv4.3*)
14372 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14373 hardcode_shlibpath_var_F77=no
14374 export_dynamic_flag_spec_F77='-Bexport'
14375 ;;
14376
14377 sysv4*MP*)
14378 if test -d /usr/nec; then
14379 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14380 hardcode_shlibpath_var_F77=no
14381 runpath_var=LD_RUN_PATH
14382 hardcode_runpath_var=yes
14383 ld_shlibs_F77=yes
14384 fi
14385 ;;
14386
14387 sysv4.2uw2*)
14388 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14389 hardcode_direct_F77=yes
14390 hardcode_minus_L_F77=no
14391 hardcode_shlibpath_var_F77=no
14392 hardcode_runpath_var=yes
14393 runpath_var=LD_RUN_PATH
14394 ;;
14395
14396 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14397 no_undefined_flag_F77='${wl}-z ${wl}text'
14398 if test "$GCC" = yes; then
14399 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14400 else
14401 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14402 fi
14403 runpath_var='LD_RUN_PATH'
14404 hardcode_shlibpath_var_F77=no
14405 ;;
14406
14407 sysv5*)
14408 no_undefined_flag_F77=' -z text'
14409 # $CC -shared without GNU ld will not create a library from C++
14410 # object files and a static libstdc++, better avoid it by now
14411 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14412 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14413 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14414 hardcode_libdir_flag_spec_F77=
14415 hardcode_shlibpath_var_F77=no
14416 runpath_var='LD_RUN_PATH'
14417 ;;
14418
14419 uts4*)
14420 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14421 hardcode_libdir_flag_spec_F77='-L$libdir'
14422 hardcode_shlibpath_var_F77=no
14423 ;;
14424
14425 *)
14426 ld_shlibs_F77=no
14427 ;;
14428 esac
14429 fi
14430
14431 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14432 echo "${ECHO_T}$ld_shlibs_F77" >&6
14433 test "$ld_shlibs_F77" = no && can_build_shared=no
14434
14435 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14436 if test "$GCC" = yes; then
14437 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14438 fi
14439
14440 #
14441 # Do we need to explicitly link libc?
14442 #
14443 case "x$archive_cmds_need_lc_F77" in
14444 x|xyes)
14445 # Assume -lc should be added
14446 archive_cmds_need_lc_F77=yes
14447
14448 if test "$enable_shared" = yes && test "$GCC" = yes; then
14449 case $archive_cmds_F77 in
14450 *'~'*)
14451 # FIXME: we may have to deal with multi-command sequences.
14452 ;;
14453 '$CC '*)
14454 # Test whether the compiler implicitly links with -lc since on some
14455 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14456 # to ld, don't add -lc before -lgcc.
14457 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14458 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14459 $rm conftest*
14460 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14461
14462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14463 (eval $ac_compile) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } 2>conftest.err; then
14467 soname=conftest
14468 lib=conftest
14469 libobjs=conftest.$ac_objext
14470 deplibs=
14471 wl=$lt_prog_compiler_wl_F77
14472 compiler_flags=-v
14473 linker_flags=-v
14474 verstring=
14475 output_objdir=.
14476 libname=conftest
14477 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14478 allow_undefined_flag_F77=
14479 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14480 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14481 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }
14484 then
14485 archive_cmds_need_lc_F77=no
14486 else
14487 archive_cmds_need_lc_F77=yes
14488 fi
14489 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14490 else
14491 cat conftest.err 1>&5
14492 fi
14493 $rm conftest*
14494 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14495 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14496 ;;
14497 esac
14498 fi
14499 ;;
14500 esac
14501
14502 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14503 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14504 library_names_spec=
14505 libname_spec='lib$name'
14506 soname_spec=
14507 shrext_cmds=".so"
14508 postinstall_cmds=
14509 postuninstall_cmds=
14510 finish_cmds=
14511 finish_eval=
14512 shlibpath_var=
14513 shlibpath_overrides_runpath=unknown
14514 version_type=none
14515 dynamic_linker="$host_os ld.so"
14516 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14517 if test "$GCC" = yes; then
14518 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14519 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14520 # if the path contains ";" then we assume it to be the separator
14521 # otherwise default to the standard path separator (i.e. ":") - it is
14522 # assumed that no part of a normal pathname contains ";" but that should
14523 # okay in the real world where ";" in dirpaths is itself problematic.
14524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14525 else
14526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14527 fi
14528 else
14529 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14530 fi
14531 need_lib_prefix=unknown
14532 hardcode_into_libs=no
14533
14534 # when you set need_version to no, make sure it does not cause -set_version
14535 # flags to be left without arguments
14536 need_version=unknown
14537
14538 case $host_os in
14539 aix3*)
14540 version_type=linux
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14542 shlibpath_var=LIBPATH
14543
14544 # AIX 3 has no versioning support, so we append a major version to the name.
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 ;;
14547
14548 aix4* | aix5*)
14549 version_type=linux
14550 need_lib_prefix=no
14551 need_version=no
14552 hardcode_into_libs=yes
14553 if test "$host_cpu" = ia64; then
14554 # AIX 5 supports IA64
14555 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14556 shlibpath_var=LD_LIBRARY_PATH
14557 else
14558 # With GCC up to 2.95.x, collect2 would create an import file
14559 # for dependence libraries. The import file would start with
14560 # the line `#! .'. This would cause the generated library to
14561 # depend on `.', always an invalid library. This was fixed in
14562 # development snapshots of GCC prior to 3.0.
14563 case $host_os in
14564 aix4 | aix4.[01] | aix4.[01].*)
14565 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14566 echo ' yes '
14567 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14568 :
14569 else
14570 can_build_shared=no
14571 fi
14572 ;;
14573 esac
14574 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14575 # soname into executable. Probably we can add versioning support to
14576 # collect2, so additional links can be useful in future.
14577 if test "$aix_use_runtimelinking" = yes; then
14578 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14579 # instead of lib<name>.a to let people know that these are not
14580 # typical AIX shared libraries.
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582 else
14583 # We preserve .a as extension for shared libraries through AIX4.2
14584 # and later when we are not doing run time linking.
14585 library_names_spec='${libname}${release}.a $libname.a'
14586 soname_spec='${libname}${release}${shared_ext}$major'
14587 fi
14588 shlibpath_var=LIBPATH
14589 fi
14590 ;;
14591
14592 amigaos*)
14593 library_names_spec='$libname.ixlibrary $libname.a'
14594 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14595 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14596 ;;
14597
14598 beos*)
14599 library_names_spec='${libname}${shared_ext}'
14600 dynamic_linker="$host_os ld.so"
14601 shlibpath_var=LIBRARY_PATH
14602 ;;
14603
14604 bsdi4*)
14605 version_type=linux
14606 need_version=no
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14608 soname_spec='${libname}${release}${shared_ext}$major'
14609 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14610 shlibpath_var=LD_LIBRARY_PATH
14611 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14612 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14613 # the default ld.so.conf also contains /usr/contrib/lib and
14614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14615 # libtool to hard-code these into programs
14616 ;;
14617
14618 cygwin* | mingw* | pw32*)
14619 version_type=windows
14620 shrext_cmds=".dll"
14621 need_version=no
14622 need_lib_prefix=no
14623
14624 case $GCC,$host_os in
14625 yes,cygwin* | yes,mingw* | yes,pw32*)
14626 library_names_spec='$libname.dll.a'
14627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14628 postinstall_cmds='base_file=`basename \${file}`~
14629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14630 dldir=$destdir/`dirname \$dlpath`~
14631 test -d \$dldir || mkdir -p \$dldir~
14632 $install_prog $dir/$dlname \$dldir/$dlname'
14633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14634 dlpath=$dir/\$dldll~
14635 $rm \$dlpath'
14636 shlibpath_overrides_runpath=yes
14637
14638 case $host_os in
14639 cygwin*)
14640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14642 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14643 ;;
14644 mingw*)
14645 # MinGW DLLs use traditional 'lib' prefix
14646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14648 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14649 # It is most probably a Windows format PATH printed by
14650 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14651 # path with ; separators, and with drive letters. We can handle the
14652 # drive letters (cygwin fileutils understands them), so leave them,
14653 # especially as we might pass files found there to a mingw objdump,
14654 # which wouldn't understand a cygwinified path. Ahh.
14655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14656 else
14657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14658 fi
14659 ;;
14660 pw32*)
14661 # pw32 DLLs use 'pw' prefix rather than 'lib'
14662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14663 ;;
14664 esac
14665 ;;
14666
14667 *)
14668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14669 ;;
14670 esac
14671 dynamic_linker='Win32 ld.exe'
14672 # FIXME: first we should search . and the directory the executable is in
14673 shlibpath_var=PATH
14674 ;;
14675
14676 darwin* | rhapsody*)
14677 dynamic_linker="$host_os dyld"
14678 version_type=darwin
14679 need_lib_prefix=no
14680 need_version=no
14681 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14682 soname_spec='${libname}${release}${major}$shared_ext'
14683 shlibpath_overrides_runpath=yes
14684 shlibpath_var=DYLD_LIBRARY_PATH
14685 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14686 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14687 if test "$GCC" = yes; then
14688 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14689 else
14690 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14691 fi
14692 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14693 ;;
14694
14695 dgux*)
14696 version_type=linux
14697 need_lib_prefix=no
14698 need_version=no
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 ;;
14703
14704 freebsd1*)
14705 dynamic_linker=no
14706 ;;
14707
14708 kfreebsd*-gnu)
14709 version_type=linux
14710 need_lib_prefix=no
14711 need_version=no
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 shlibpath_var=LD_LIBRARY_PATH
14715 shlibpath_overrides_runpath=no
14716 hardcode_into_libs=yes
14717 dynamic_linker='GNU ld.so'
14718 ;;
14719
14720 freebsd*)
14721 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14722 version_type=freebsd-$objformat
14723 case $version_type in
14724 freebsd-elf*)
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14726 need_version=no
14727 need_lib_prefix=no
14728 ;;
14729 freebsd-*)
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14731 need_version=yes
14732 ;;
14733 esac
14734 shlibpath_var=LD_LIBRARY_PATH
14735 case $host_os in
14736 freebsd2*)
14737 shlibpath_overrides_runpath=yes
14738 ;;
14739 freebsd3.01* | freebsdelf3.01*)
14740 shlibpath_overrides_runpath=yes
14741 hardcode_into_libs=yes
14742 ;;
14743 *) # from 3.2 on
14744 shlibpath_overrides_runpath=no
14745 hardcode_into_libs=yes
14746 ;;
14747 esac
14748 ;;
14749
14750 gnu*)
14751 version_type=linux
14752 need_lib_prefix=no
14753 need_version=no
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14755 soname_spec='${libname}${release}${shared_ext}$major'
14756 shlibpath_var=LD_LIBRARY_PATH
14757 hardcode_into_libs=yes
14758 ;;
14759
14760 hpux9* | hpux10* | hpux11*)
14761 # Give a soname corresponding to the major version so that dld.sl refuses to
14762 # link against other versions.
14763 version_type=sunos
14764 need_lib_prefix=no
14765 need_version=no
14766 case "$host_cpu" in
14767 ia64*)
14768 shrext_cmds='.so'
14769 hardcode_into_libs=yes
14770 dynamic_linker="$host_os dld.so"
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774 soname_spec='${libname}${release}${shared_ext}$major'
14775 if test "X$HPUX_IA64_MODE" = X32; then
14776 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14777 else
14778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14779 fi
14780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14781 ;;
14782 hppa*64*)
14783 shrext_cmds='.sl'
14784 hardcode_into_libs=yes
14785 dynamic_linker="$host_os dld.sl"
14786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14792 ;;
14793 *)
14794 shrext_cmds='.sl'
14795 dynamic_linker="$host_os dld.sl"
14796 shlibpath_var=SHLIB_PATH
14797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 ;;
14801 esac
14802 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14803 postinstall_cmds='chmod 555 $lib'
14804 ;;
14805
14806 irix5* | irix6* | nonstopux*)
14807 case $host_os in
14808 nonstopux*) version_type=nonstopux ;;
14809 *)
14810 if test "$lt_cv_prog_gnu_ld" = yes; then
14811 version_type=linux
14812 else
14813 version_type=irix
14814 fi ;;
14815 esac
14816 need_lib_prefix=no
14817 need_version=no
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14820 case $host_os in
14821 irix5* | nonstopux*)
14822 libsuff= shlibsuff=
14823 ;;
14824 *)
14825 case $LD in # libtool.m4 will add one of these switches to LD
14826 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14827 libsuff= shlibsuff= libmagic=32-bit;;
14828 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14829 libsuff=32 shlibsuff=N32 libmagic=N32;;
14830 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14831 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14832 *) libsuff= shlibsuff= libmagic=never-match;;
14833 esac
14834 ;;
14835 esac
14836 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14837 shlibpath_overrides_runpath=no
14838 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14839 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14840 hardcode_into_libs=yes
14841 ;;
14842
14843 # No shared lib support for Linux oldld, aout, or coff.
14844 linux*oldld* | linux*aout* | linux*coff*)
14845 dynamic_linker=no
14846 ;;
14847
14848 # This must be Linux ELF.
14849 linux*)
14850 version_type=linux
14851 need_lib_prefix=no
14852 need_version=no
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14854 soname_spec='${libname}${release}${shared_ext}$major'
14855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=no
14858 # This implies no fast_install, which is unacceptable.
14859 # Some rework will be needed to allow for fast_install
14860 # before this can be enabled.
14861 hardcode_into_libs=yes
14862
14863 # Append ld.so.conf contents to the search path
14864 if test -f /etc/ld.so.conf; then
14865 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14866 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14867 fi
14868
14869 # We used to test for /lib/ld.so.1 and disable shared libraries on
14870 # powerpc, because MkLinux only supported shared libraries with the
14871 # GNU dynamic linker. Since this was broken with cross compilers,
14872 # most powerpc-linux boxes support dynamic linking these days and
14873 # people can always --disable-shared, the test was removed, and we
14874 # assume the GNU/Linux dynamic linker is in use.
14875 dynamic_linker='GNU/Linux ld.so'
14876 ;;
14877
14878 netbsdelf*-gnu)
14879 version_type=linux
14880 need_lib_prefix=no
14881 need_version=no
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14883 soname_spec='${libname}${release}${shared_ext}$major'
14884 shlibpath_var=LD_LIBRARY_PATH
14885 shlibpath_overrides_runpath=no
14886 hardcode_into_libs=yes
14887 dynamic_linker='NetBSD ld.elf_so'
14888 ;;
14889
14890 knetbsd*-gnu)
14891 version_type=linux
14892 need_lib_prefix=no
14893 need_version=no
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath=no
14898 hardcode_into_libs=yes
14899 dynamic_linker='GNU ld.so'
14900 ;;
14901
14902 netbsd*)
14903 version_type=sunos
14904 need_lib_prefix=no
14905 need_version=no
14906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14909 dynamic_linker='NetBSD (a.out) ld.so'
14910 else
14911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14912 soname_spec='${libname}${release}${shared_ext}$major'
14913 dynamic_linker='NetBSD ld.elf_so'
14914 fi
14915 shlibpath_var=LD_LIBRARY_PATH
14916 shlibpath_overrides_runpath=yes
14917 hardcode_into_libs=yes
14918 ;;
14919
14920 newsos6)
14921 version_type=linux
14922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 shlibpath_overrides_runpath=yes
14925 ;;
14926
14927 nto-qnx*)
14928 version_type=linux
14929 need_lib_prefix=no
14930 need_version=no
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932 soname_spec='${libname}${release}${shared_ext}$major'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 shlibpath_overrides_runpath=yes
14935 ;;
14936
14937 openbsd*)
14938 version_type=sunos
14939 need_lib_prefix=no
14940 need_version=yes
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14943 shlibpath_var=LD_LIBRARY_PATH
14944 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14945 case $host_os in
14946 openbsd2.[89] | openbsd2.[89].*)
14947 shlibpath_overrides_runpath=no
14948 ;;
14949 *)
14950 shlibpath_overrides_runpath=yes
14951 ;;
14952 esac
14953 else
14954 shlibpath_overrides_runpath=yes
14955 fi
14956 ;;
14957
14958 os2*)
14959 libname_spec='$name'
14960 shrext_cmds=".dll"
14961 need_lib_prefix=no
14962 library_names_spec='$libname${shared_ext} $libname.a'
14963 dynamic_linker='OS/2 ld.exe'
14964 shlibpath_var=LIBPATH
14965 ;;
14966
14967 osf3* | osf4* | osf5*)
14968 version_type=osf
14969 need_lib_prefix=no
14970 need_version=no
14971 soname_spec='${libname}${release}${shared_ext}$major'
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973 shlibpath_var=LD_LIBRARY_PATH
14974 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14975 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14976 ;;
14977
14978 sco3.2v5*)
14979 version_type=osf
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982 shlibpath_var=LD_LIBRARY_PATH
14983 ;;
14984
14985 solaris*)
14986 version_type=linux
14987 need_lib_prefix=no
14988 need_version=no
14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14990 soname_spec='${libname}${release}${shared_ext}$major'
14991 shlibpath_var=LD_LIBRARY_PATH
14992 shlibpath_overrides_runpath=yes
14993 hardcode_into_libs=yes
14994 # ldd complains unless libraries are executable
14995 postinstall_cmds='chmod +x $lib'
14996 ;;
14997
14998 sunos4*)
14999 version_type=sunos
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15001 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15002 shlibpath_var=LD_LIBRARY_PATH
15003 shlibpath_overrides_runpath=yes
15004 if test "$with_gnu_ld" = yes; then
15005 need_lib_prefix=no
15006 fi
15007 need_version=yes
15008 ;;
15009
15010 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15011 version_type=linux
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15013 soname_spec='${libname}${release}${shared_ext}$major'
15014 shlibpath_var=LD_LIBRARY_PATH
15015 case $host_vendor in
15016 sni)
15017 shlibpath_overrides_runpath=no
15018 need_lib_prefix=no
15019 export_dynamic_flag_spec='${wl}-Blargedynsym'
15020 runpath_var=LD_RUN_PATH
15021 ;;
15022 siemens)
15023 need_lib_prefix=no
15024 ;;
15025 motorola)
15026 need_lib_prefix=no
15027 need_version=no
15028 shlibpath_overrides_runpath=no
15029 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15030 ;;
15031 esac
15032 ;;
15033
15034 sysv4*MP*)
15035 if test -d /usr/nec ;then
15036 version_type=linux
15037 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15038 soname_spec='$libname${shared_ext}.$major'
15039 shlibpath_var=LD_LIBRARY_PATH
15040 fi
15041 ;;
15042
15043 uts4*)
15044 version_type=linux
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15047 shlibpath_var=LD_LIBRARY_PATH
15048 ;;
15049
15050 *)
15051 dynamic_linker=no
15052 ;;
15053 esac
15054 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15055 echo "${ECHO_T}$dynamic_linker" >&6
15056 test "$dynamic_linker" = no && can_build_shared=no
15057
15058 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15059 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15060 hardcode_action_F77=
15061 if test -n "$hardcode_libdir_flag_spec_F77" || \
15062 test -n "$runpath_var F77" || \
15063 test "X$hardcode_automatic_F77"="Xyes" ; then
15064
15065 # We can hardcode non-existant directories.
15066 if test "$hardcode_direct_F77" != no &&
15067 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15068 # have to relink, otherwise we might link with an installed library
15069 # when we should be linking with a yet-to-be-installed one
15070 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15071 test "$hardcode_minus_L_F77" != no; then
15072 # Linking always hardcodes the temporary library directory.
15073 hardcode_action_F77=relink
15074 else
15075 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15076 hardcode_action_F77=immediate
15077 fi
15078 else
15079 # We cannot hardcode anything, or else we can only hardcode existing
15080 # directories.
15081 hardcode_action_F77=unsupported
15082 fi
15083 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15084 echo "${ECHO_T}$hardcode_action_F77" >&6
15085
15086 if test "$hardcode_action_F77" = relink; then
15087 # Fast installation is not supported
15088 enable_fast_install=no
15089 elif test "$shlibpath_overrides_runpath" = yes ||
15090 test "$enable_shared" = no; then
15091 # Fast installation is not necessary
15092 enable_fast_install=needless
15093 fi
15094
15095 striplib=
15096 old_striplib=
15097 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15098 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15099 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15100 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15101 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15102 echo "$as_me:$LINENO: result: yes" >&5
15103 echo "${ECHO_T}yes" >&6
15104 else
15105 # FIXME - insert some real tests, host_os isn't really good enough
15106 case $host_os in
15107 darwin*)
15108 if test -n "$STRIP" ; then
15109 striplib="$STRIP -x"
15110 echo "$as_me:$LINENO: result: yes" >&5
15111 echo "${ECHO_T}yes" >&6
15112 else
15113 echo "$as_me:$LINENO: result: no" >&5
15114 echo "${ECHO_T}no" >&6
15115 fi
15116 ;;
15117 *)
15118 echo "$as_me:$LINENO: result: no" >&5
15119 echo "${ECHO_T}no" >&6
15120 ;;
15121 esac
15122 fi
15123
15124
15125
15126 # The else clause should only fire when bootstrapping the
15127 # libtool distribution, otherwise you forgot to ship ltmain.sh
15128 # with your package, and you will get complaints that there are
15129 # no rules to generate ltmain.sh.
15130 if test -f "$ltmain"; then
15131 # See if we are running on zsh, and set the options which allow our commands through
15132 # without removal of \ escapes.
15133 if test -n "${ZSH_VERSION+set}" ; then
15134 setopt NO_GLOB_SUBST
15135 fi
15136 # Now quote all the things that may contain metacharacters while being
15137 # careful not to overquote the AC_SUBSTed values. We take copies of the
15138 # variables and quote the copies for generation of the libtool script.
15139 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15140 SED SHELL STRIP \
15141 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15142 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15143 deplibs_check_method reload_flag reload_cmds need_locks \
15144 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15145 lt_cv_sys_global_symbol_to_c_name_address \
15146 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15147 old_postinstall_cmds old_postuninstall_cmds \
15148 compiler_F77 \
15149 CC_F77 \
15150 LD_F77 \
15151 lt_prog_compiler_wl_F77 \
15152 lt_prog_compiler_pic_F77 \
15153 lt_prog_compiler_static_F77 \
15154 lt_prog_compiler_no_builtin_flag_F77 \
15155 export_dynamic_flag_spec_F77 \
15156 thread_safe_flag_spec_F77 \
15157 whole_archive_flag_spec_F77 \
15158 enable_shared_with_static_runtimes_F77 \
15159 old_archive_cmds_F77 \
15160 old_archive_from_new_cmds_F77 \
15161 predep_objects_F77 \
15162 postdep_objects_F77 \
15163 predeps_F77 \
15164 postdeps_F77 \
15165 compiler_lib_search_path_F77 \
15166 archive_cmds_F77 \
15167 archive_expsym_cmds_F77 \
15168 postinstall_cmds_F77 \
15169 postuninstall_cmds_F77 \
15170 old_archive_from_expsyms_cmds_F77 \
15171 allow_undefined_flag_F77 \
15172 no_undefined_flag_F77 \
15173 export_symbols_cmds_F77 \
15174 hardcode_libdir_flag_spec_F77 \
15175 hardcode_libdir_flag_spec_ld_F77 \
15176 hardcode_libdir_separator_F77 \
15177 hardcode_automatic_F77 \
15178 module_cmds_F77 \
15179 module_expsym_cmds_F77 \
15180 lt_cv_prog_compiler_c_o_F77 \
15181 exclude_expsyms_F77 \
15182 include_expsyms_F77; do
15183
15184 case $var in
15185 old_archive_cmds_F77 | \
15186 old_archive_from_new_cmds_F77 | \
15187 archive_cmds_F77 | \
15188 archive_expsym_cmds_F77 | \
15189 module_cmds_F77 | \
15190 module_expsym_cmds_F77 | \
15191 old_archive_from_expsyms_cmds_F77 | \
15192 export_symbols_cmds_F77 | \
15193 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15194 postinstall_cmds | postuninstall_cmds | \
15195 old_postinstall_cmds | old_postuninstall_cmds | \
15196 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15197 # Double-quote double-evaled strings.
15198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15199 ;;
15200 *)
15201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15202 ;;
15203 esac
15204 done
15205
15206 case $lt_echo in
15207 *'\$0 --fallback-echo"')
15208 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15209 ;;
15210 esac
15211
15212 cfgfile="$ofile"
15213
15214 cat <<__EOF__ >> "$cfgfile"
15215 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15216
15217 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15218
15219 # Shell to use when invoking shell scripts.
15220 SHELL=$lt_SHELL
15221
15222 # Whether or not to build shared libraries.
15223 build_libtool_libs=$enable_shared
15224
15225 # Whether or not to build static libraries.
15226 build_old_libs=$enable_static
15227
15228 # Whether or not to add -lc for building shared libraries.
15229 build_libtool_need_lc=$archive_cmds_need_lc_F77
15230
15231 # Whether or not to disallow shared libs when runtime libs are static
15232 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15233
15234 # Whether or not to optimize for fast installation.
15235 fast_install=$enable_fast_install
15236
15237 # The host system.
15238 host_alias=$host_alias
15239 host=$host
15240
15241 # An echo program that does not interpret backslashes.
15242 echo=$lt_echo
15243
15244 # The archiver.
15245 AR=$lt_AR
15246 AR_FLAGS=$lt_AR_FLAGS
15247
15248 # A C compiler.
15249 LTCC=$lt_LTCC
15250
15251 # A language-specific compiler.
15252 CC=$lt_compiler_F77
15253
15254 # Is the compiler the GNU C compiler?
15255 with_gcc=$GCC_F77
15256
15257 # An ERE matcher.
15258 EGREP=$lt_EGREP
15259
15260 # The linker used to build libraries.
15261 LD=$lt_LD_F77
15262
15263 # Whether we need hard or soft links.
15264 LN_S=$lt_LN_S
15265
15266 # A BSD-compatible nm program.
15267 NM=$lt_NM
15268
15269 # A symbol stripping program
15270 STRIP=$lt_STRIP
15271
15272 # Used to examine libraries when file_magic_cmd begins "file"
15273 MAGIC_CMD=$MAGIC_CMD
15274
15275 # Used on cygwin: DLL creation program.
15276 DLLTOOL="$DLLTOOL"
15277
15278 # Used on cygwin: object dumper.
15279 OBJDUMP="$OBJDUMP"
15280
15281 # Used on cygwin: assembler.
15282 AS="$AS"
15283
15284 # The name of the directory that contains temporary libtool files.
15285 objdir=$objdir
15286
15287 # How to create reloadable object files.
15288 reload_flag=$lt_reload_flag
15289 reload_cmds=$lt_reload_cmds
15290
15291 # How to pass a linker flag through the compiler.
15292 wl=$lt_lt_prog_compiler_wl_F77
15293
15294 # Object file suffix (normally "o").
15295 objext="$ac_objext"
15296
15297 # Old archive suffix (normally "a").
15298 libext="$libext"
15299
15300 # Shared library suffix (normally ".so").
15301 shrext_cmds='$shrext_cmds'
15302
15303 # Executable file suffix (normally "").
15304 exeext="$exeext"
15305
15306 # Additional compiler flags for building library objects.
15307 pic_flag=$lt_lt_prog_compiler_pic_F77
15308 pic_mode=$pic_mode
15309
15310 # What is the maximum length of a command?
15311 max_cmd_len=$lt_cv_sys_max_cmd_len
15312
15313 # Does compiler simultaneously support -c and -o options?
15314 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15315
15316 # Must we lock files when doing compilation ?
15317 need_locks=$lt_need_locks
15318
15319 # Do we need the lib prefix for modules?
15320 need_lib_prefix=$need_lib_prefix
15321
15322 # Do we need a version for libraries?
15323 need_version=$need_version
15324
15325 # Whether dlopen is supported.
15326 dlopen_support=$enable_dlopen
15327
15328 # Whether dlopen of programs is supported.
15329 dlopen_self=$enable_dlopen_self
15330
15331 # Whether dlopen of statically linked programs is supported.
15332 dlopen_self_static=$enable_dlopen_self_static
15333
15334 # Compiler flag to prevent dynamic linking.
15335 link_static_flag=$lt_lt_prog_compiler_static_F77
15336
15337 # Compiler flag to turn off builtin functions.
15338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15339
15340 # Compiler flag to allow reflexive dlopens.
15341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15342
15343 # Compiler flag to generate shared objects directly from archives.
15344 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15345
15346 # Compiler flag to generate thread-safe objects.
15347 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15348
15349 # Library versioning type.
15350 version_type=$version_type
15351
15352 # Format of library name prefix.
15353 libname_spec=$lt_libname_spec
15354
15355 # List of archive names. First name is the real one, the rest are links.
15356 # The last name is the one that the linker finds with -lNAME.
15357 library_names_spec=$lt_library_names_spec
15358
15359 # The coded name of the library, if different from the real name.
15360 soname_spec=$lt_soname_spec
15361
15362 # Commands used to build and install an old-style archive.
15363 RANLIB=$lt_RANLIB
15364 old_archive_cmds=$lt_old_archive_cmds_F77
15365 old_postinstall_cmds=$lt_old_postinstall_cmds
15366 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15367
15368 # Create an old-style archive from a shared archive.
15369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15370
15371 # Create a temporary old-style archive to link instead of a shared archive.
15372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15373
15374 # Commands used to build and install a shared archive.
15375 archive_cmds=$lt_archive_cmds_F77
15376 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15377 postinstall_cmds=$lt_postinstall_cmds
15378 postuninstall_cmds=$lt_postuninstall_cmds
15379
15380 # Commands used to build a loadable module (assumed same as above if empty)
15381 module_cmds=$lt_module_cmds_F77
15382 module_expsym_cmds=$lt_module_expsym_cmds_F77
15383
15384 # Commands to strip libraries.
15385 old_striplib=$lt_old_striplib
15386 striplib=$lt_striplib
15387
15388 # Dependencies to place before the objects being linked to create a
15389 # shared library.
15390 predep_objects=$lt_predep_objects_F77
15391
15392 # Dependencies to place after the objects being linked to create a
15393 # shared library.
15394 postdep_objects=$lt_postdep_objects_F77
15395
15396 # Dependencies to place before the objects being linked to create a
15397 # shared library.
15398 predeps=$lt_predeps_F77
15399
15400 # Dependencies to place after the objects being linked to create a
15401 # shared library.
15402 postdeps=$lt_postdeps_F77
15403
15404 # The library search path used internally by the compiler when linking
15405 # a shared library.
15406 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15407
15408 # Method to check whether dependent libraries are shared objects.
15409 deplibs_check_method=$lt_deplibs_check_method
15410
15411 # Command to use when deplibs_check_method == file_magic.
15412 file_magic_cmd=$lt_file_magic_cmd
15413
15414 # Flag that allows shared libraries with undefined symbols to be built.
15415 allow_undefined_flag=$lt_allow_undefined_flag_F77
15416
15417 # Flag that forces no undefined symbols.
15418 no_undefined_flag=$lt_no_undefined_flag_F77
15419
15420 # Commands used to finish a libtool library installation in a directory.
15421 finish_cmds=$lt_finish_cmds
15422
15423 # Same as above, but a single script fragment to be evaled but not shown.
15424 finish_eval=$lt_finish_eval
15425
15426 # Take the output of nm and produce a listing of raw symbols and C names.
15427 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15428
15429 # Transform the output of nm in a proper C declaration
15430 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15431
15432 # Transform the output of nm in a C name address pair
15433 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15434
15435 # This is the shared library runtime path variable.
15436 runpath_var=$runpath_var
15437
15438 # This is the shared library path variable.
15439 shlibpath_var=$shlibpath_var
15440
15441 # Is shlibpath searched before the hard-coded library search path?
15442 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15443
15444 # How to hardcode a shared library path into an executable.
15445 hardcode_action=$hardcode_action_F77
15446
15447 # Whether we should hardcode library paths into libraries.
15448 hardcode_into_libs=$hardcode_into_libs
15449
15450 # Flag to hardcode \$libdir into a binary during linking.
15451 # This must work even if \$libdir does not exist.
15452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15453
15454 # If ld is used when linking, flag to hardcode \$libdir into
15455 # a binary during linking. This must work even if \$libdir does
15456 # not exist.
15457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15458
15459 # Whether we need a single -rpath flag with a separated argument.
15460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15461
15462 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15463 # resulting binary.
15464 hardcode_direct=$hardcode_direct_F77
15465
15466 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15467 # resulting binary.
15468 hardcode_minus_L=$hardcode_minus_L_F77
15469
15470 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15471 # the resulting binary.
15472 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15473
15474 # Set to yes if building a shared library automatically hardcodes DIR into the library
15475 # and all subsequent libraries and executables linked against it.
15476 hardcode_automatic=$hardcode_automatic_F77
15477
15478 # Variables whose values should be saved in libtool wrapper scripts and
15479 # restored at relink time.
15480 variables_saved_for_relink="$variables_saved_for_relink"
15481
15482 # Whether libtool must link a program against all its dependency libraries.
15483 link_all_deplibs=$link_all_deplibs_F77
15484
15485 # Compile-time system search path for libraries
15486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15487
15488 # Run-time system search path for libraries
15489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15490
15491 # Fix the shell variable \$srcfile for the compiler.
15492 fix_srcfile_path="$fix_srcfile_path_F77"
15493
15494 # Set to yes if exported symbols are required.
15495 always_export_symbols=$always_export_symbols_F77
15496
15497 # The commands to list exported symbols.
15498 export_symbols_cmds=$lt_export_symbols_cmds_F77
15499
15500 # The commands to extract the exported symbol list from a shared archive.
15501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15502
15503 # Symbols that should not be listed in the preloaded symbols.
15504 exclude_expsyms=$lt_exclude_expsyms_F77
15505
15506 # Symbols that must always be exported.
15507 include_expsyms=$lt_include_expsyms_F77
15508
15509 # ### END LIBTOOL TAG CONFIG: $tagname
15510
15511 __EOF__
15512
15513
15514 else
15515 # If there is no Makefile yet, we rely on a make rule to execute
15516 # `config.status --recheck' to rerun these tests and create the
15517 # libtool script then.
15518 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15519 if test -f "$ltmain_in"; then
15520 test -f Makefile && make "$ltmain"
15521 fi
15522 fi
15523
15524
15525 ac_ext=c
15526 ac_cpp='$CPP $CPPFLAGS'
15527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15530
15531 CC="$lt_save_CC"
15532
15533 else
15534 tagname=""
15535 fi
15536 ;;
15537
15538 GCJ)
15539 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15540
15541
15542
15543 # Source file extension for Java test sources.
15544 ac_ext=java
15545
15546 # Object file extension for compiled Java test sources.
15547 objext=o
15548 objext_GCJ=$objext
15549
15550 # Code to be used in simple compile tests
15551 lt_simple_compile_test_code="class foo {}\n"
15552
15553 # Code to be used in simple link tests
15554 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15555
15556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15557
15558 # If no C compiler was specified, use CC.
15559 LTCC=${LTCC-"$CC"}
15560
15561 # Allow CC to be a program name with arguments.
15562 compiler=$CC
15563
15564
15565 # Allow CC to be a program name with arguments.
15566 lt_save_CC="$CC"
15567 CC=${GCJ-"gcj"}
15568 compiler=$CC
15569 compiler_GCJ=$CC
15570
15571 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15572 archive_cmds_need_lc_GCJ=no
15573
15574
15575 lt_prog_compiler_no_builtin_flag_GCJ=
15576
15577 if test "$GCC" = yes; then
15578 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15579
15580
15581 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15582 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15583 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 else
15586 lt_cv_prog_compiler_rtti_exceptions=no
15587 ac_outfile=conftest.$ac_objext
15588 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15589 lt_compiler_flag="-fno-rtti -fno-exceptions"
15590 # Insert the option either (1) after the last *FLAGS variable, or
15591 # (2) before a word containing "conftest.", or (3) at the end.
15592 # Note that $ac_compile itself does not contain backslashes and begins
15593 # with a dollar sign (not a hyphen), so the echo should work correctly.
15594 # The option is referenced via a variable to avoid confusing sed.
15595 lt_compile=`echo "$ac_compile" | $SED \
15596 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15598 -e 's:$: $lt_compiler_flag:'`
15599 (eval echo "\"\$as_me:15600: $lt_compile\"" >&5)
15600 (eval "$lt_compile" 2>conftest.err)
15601 ac_status=$?
15602 cat conftest.err >&5
15603 echo "$as_me:15604: \$? = $ac_status" >&5
15604 if (exit $ac_status) && test -s "$ac_outfile"; then
15605 # The compiler can only warn and ignore the option if not recognized
15606 # So say no if there are warnings
15607 if test ! -s conftest.err; then
15608 lt_cv_prog_compiler_rtti_exceptions=yes
15609 fi
15610 fi
15611 $rm conftest*
15612
15613 fi
15614 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15615 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15616
15617 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15618 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15619 else
15620 :
15621 fi
15622
15623 fi
15624
15625 lt_prog_compiler_wl_GCJ=
15626 lt_prog_compiler_pic_GCJ=
15627 lt_prog_compiler_static_GCJ=
15628
15629 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15630 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15631
15632 if test "$GCC" = yes; then
15633 lt_prog_compiler_wl_GCJ='-Wl,'
15634 lt_prog_compiler_static_GCJ='-static'
15635
15636 case $host_os in
15637 aix*)
15638 # All AIX code is PIC.
15639 if test "$host_cpu" = ia64; then
15640 # AIX 5 now supports IA64 processor
15641 lt_prog_compiler_static_GCJ='-Bstatic'
15642 fi
15643 ;;
15644
15645 amigaos*)
15646 # FIXME: we need at least 68020 code to build shared libraries, but
15647 # adding the `-m68020' flag to GCC prevents building anything better,
15648 # like `-m68040'.
15649 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15650 ;;
15651
15652 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15653 # PIC is the default for these OSes.
15654 ;;
15655
15656 mingw* | pw32* | os2*)
15657 # This hack is so that the source file can tell whether it is being
15658 # built for inclusion in a dll (and should export symbols for example).
15659 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15660 ;;
15661
15662 darwin* | rhapsody*)
15663 # PIC is the default on this platform
15664 # Common symbols not allowed in MH_DYLIB files
15665 lt_prog_compiler_pic_GCJ='-fno-common'
15666 ;;
15667
15668 msdosdjgpp*)
15669 # Just because we use GCC doesn't mean we suddenly get shared libraries
15670 # on systems that don't support them.
15671 lt_prog_compiler_can_build_shared_GCJ=no
15672 enable_shared=no
15673 ;;
15674
15675 sysv4*MP*)
15676 if test -d /usr/nec; then
15677 lt_prog_compiler_pic_GCJ=-Kconform_pic
15678 fi
15679 ;;
15680
15681 hpux*)
15682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15683 # not for PA HP-UX.
15684 case "$host_cpu" in
15685 hppa*64*|ia64*)
15686 # +Z the default
15687 ;;
15688 *)
15689 lt_prog_compiler_pic_GCJ='-fPIC'
15690 ;;
15691 esac
15692 ;;
15693
15694 *)
15695 lt_prog_compiler_pic_GCJ='-fPIC'
15696 ;;
15697 esac
15698 else
15699 # PORTME Check for flag to pass linker flags through the system compiler.
15700 case $host_os in
15701 aix*)
15702 lt_prog_compiler_wl_GCJ='-Wl,'
15703 if test "$host_cpu" = ia64; then
15704 # AIX 5 now supports IA64 processor
15705 lt_prog_compiler_static_GCJ='-Bstatic'
15706 else
15707 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15708 fi
15709 ;;
15710
15711 mingw* | pw32* | os2*)
15712 # This hack is so that the source file can tell whether it is being
15713 # built for inclusion in a dll (and should export symbols for example).
15714 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15715 ;;
15716
15717 hpux9* | hpux10* | hpux11*)
15718 lt_prog_compiler_wl_GCJ='-Wl,'
15719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15720 # not for PA HP-UX.
15721 case "$host_cpu" in
15722 hppa*64*|ia64*)
15723 # +Z the default
15724 ;;
15725 *)
15726 lt_prog_compiler_pic_GCJ='+Z'
15727 ;;
15728 esac
15729 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15730 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15731 ;;
15732
15733 irix5* | irix6* | nonstopux*)
15734 lt_prog_compiler_wl_GCJ='-Wl,'
15735 # PIC (with -KPIC) is the default.
15736 lt_prog_compiler_static_GCJ='-non_shared'
15737 ;;
15738
15739 newsos6)
15740 lt_prog_compiler_pic_GCJ='-KPIC'
15741 lt_prog_compiler_static_GCJ='-Bstatic'
15742 ;;
15743
15744 linux*)
15745 case $CC in
15746 icc* | ecc*)
15747 lt_prog_compiler_wl_GCJ='-Wl,'
15748 lt_prog_compiler_pic_GCJ='-KPIC'
15749 lt_prog_compiler_static_GCJ='-static'
15750 ;;
15751 ccc*)
15752 lt_prog_compiler_wl_GCJ='-Wl,'
15753 # All Alpha code is PIC.
15754 lt_prog_compiler_static_GCJ='-non_shared'
15755 ;;
15756 esac
15757 ;;
15758
15759 osf3* | osf4* | osf5*)
15760 lt_prog_compiler_wl_GCJ='-Wl,'
15761 # All OSF/1 code is PIC.
15762 lt_prog_compiler_static_GCJ='-non_shared'
15763 ;;
15764
15765 sco3.2v5*)
15766 lt_prog_compiler_pic_GCJ='-Kpic'
15767 lt_prog_compiler_static_GCJ='-dn'
15768 ;;
15769
15770 solaris*)
15771 lt_prog_compiler_wl_GCJ='-Wl,'
15772 lt_prog_compiler_pic_GCJ='-KPIC'
15773 lt_prog_compiler_static_GCJ='-Bstatic'
15774 ;;
15775
15776 sunos4*)
15777 lt_prog_compiler_wl_GCJ='-Qoption ld '
15778 lt_prog_compiler_pic_GCJ='-PIC'
15779 lt_prog_compiler_static_GCJ='-Bstatic'
15780 ;;
15781
15782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15783 lt_prog_compiler_wl_GCJ='-Wl,'
15784 lt_prog_compiler_pic_GCJ='-KPIC'
15785 lt_prog_compiler_static_GCJ='-Bstatic'
15786 ;;
15787
15788 sysv4*MP*)
15789 if test -d /usr/nec ;then
15790 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15791 lt_prog_compiler_static_GCJ='-Bstatic'
15792 fi
15793 ;;
15794
15795 uts4*)
15796 lt_prog_compiler_pic_GCJ='-pic'
15797 lt_prog_compiler_static_GCJ='-Bstatic'
15798 ;;
15799
15800 *)
15801 lt_prog_compiler_can_build_shared_GCJ=no
15802 ;;
15803 esac
15804 fi
15805
15806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15807 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15808
15809 #
15810 # Check to make sure the PIC flag actually works.
15811 #
15812 if test -n "$lt_prog_compiler_pic_GCJ"; then
15813
15814 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15815 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15816 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 else
15819 lt_prog_compiler_pic_works_GCJ=no
15820 ac_outfile=conftest.$ac_objext
15821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15822 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15823 # Insert the option either (1) after the last *FLAGS variable, or
15824 # (2) before a word containing "conftest.", or (3) at the end.
15825 # Note that $ac_compile itself does not contain backslashes and begins
15826 # with a dollar sign (not a hyphen), so the echo should work correctly.
15827 # The option is referenced via a variable to avoid confusing sed.
15828 lt_compile=`echo "$ac_compile" | $SED \
15829 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15831 -e 's:$: $lt_compiler_flag:'`
15832 (eval echo "\"\$as_me:15833: $lt_compile\"" >&5)
15833 (eval "$lt_compile" 2>conftest.err)
15834 ac_status=$?
15835 cat conftest.err >&5
15836 echo "$as_me:15837: \$? = $ac_status" >&5
15837 if (exit $ac_status) && test -s "$ac_outfile"; then
15838 # The compiler can only warn and ignore the option if not recognized
15839 # So say no if there are warnings
15840 if test ! -s conftest.err; then
15841 lt_prog_compiler_pic_works_GCJ=yes
15842 fi
15843 fi
15844 $rm conftest*
15845
15846 fi
15847 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15848 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15849
15850 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15851 case $lt_prog_compiler_pic_GCJ in
15852 "" | " "*) ;;
15853 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15854 esac
15855 else
15856 lt_prog_compiler_pic_GCJ=
15857 lt_prog_compiler_can_build_shared_GCJ=no
15858 fi
15859
15860 fi
15861 case "$host_os" in
15862 # For platforms which do not support PIC, -DPIC is meaningless:
15863 *djgpp*)
15864 lt_prog_compiler_pic_GCJ=
15865 ;;
15866 *)
15867 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15868 ;;
15869 esac
15870
15871 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15873 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876 lt_cv_prog_compiler_c_o_GCJ=no
15877 $rm -r conftest 2>/dev/null
15878 mkdir conftest
15879 cd conftest
15880 mkdir out
15881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15882
15883 lt_compiler_flag="-o out/conftest2.$ac_objext"
15884 # Insert the option either (1) after the last *FLAGS variable, or
15885 # (2) before a word containing "conftest.", or (3) at the end.
15886 # Note that $ac_compile itself does not contain backslashes and begins
15887 # with a dollar sign (not a hyphen), so the echo should work correctly.
15888 lt_compile=`echo "$ac_compile" | $SED \
15889 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15891 -e 's:$: $lt_compiler_flag:'`
15892 (eval echo "\"\$as_me:15893: $lt_compile\"" >&5)
15893 (eval "$lt_compile" 2>out/conftest.err)
15894 ac_status=$?
15895 cat out/conftest.err >&5
15896 echo "$as_me:15897: \$? = $ac_status" >&5
15897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15898 then
15899 # The compiler can only warn and ignore the option if not recognized
15900 # So say no if there are warnings
15901 if test ! -s out/conftest.err; then
15902 lt_cv_prog_compiler_c_o_GCJ=yes
15903 fi
15904 fi
15905 chmod u+w .
15906 $rm conftest*
15907 # SGI C++ compiler will create directory out/ii_files/ for
15908 # template instantiation
15909 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15910 $rm out/* && rmdir out
15911 cd ..
15912 rmdir conftest
15913 $rm conftest*
15914
15915 fi
15916 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15918
15919
15920 hard_links="nottested"
15921 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15922 # do not overwrite the value of need_locks provided by the user
15923 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15924 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15925 hard_links=yes
15926 $rm conftest*
15927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15928 touch conftest.a
15929 ln conftest.a conftest.b 2>&5 || hard_links=no
15930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15931 echo "$as_me:$LINENO: result: $hard_links" >&5
15932 echo "${ECHO_T}$hard_links" >&6
15933 if test "$hard_links" = no; then
15934 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15935 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15936 need_locks=warn
15937 fi
15938 else
15939 need_locks=no
15940 fi
15941
15942 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15943 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15944
15945 runpath_var=
15946 allow_undefined_flag_GCJ=
15947 enable_shared_with_static_runtimes_GCJ=no
15948 archive_cmds_GCJ=
15949 archive_expsym_cmds_GCJ=
15950 old_archive_From_new_cmds_GCJ=
15951 old_archive_from_expsyms_cmds_GCJ=
15952 export_dynamic_flag_spec_GCJ=
15953 whole_archive_flag_spec_GCJ=
15954 thread_safe_flag_spec_GCJ=
15955 hardcode_libdir_flag_spec_GCJ=
15956 hardcode_libdir_flag_spec_ld_GCJ=
15957 hardcode_libdir_separator_GCJ=
15958 hardcode_direct_GCJ=no
15959 hardcode_minus_L_GCJ=no
15960 hardcode_shlibpath_var_GCJ=unsupported
15961 link_all_deplibs_GCJ=unknown
15962 hardcode_automatic_GCJ=no
15963 module_cmds_GCJ=
15964 module_expsym_cmds_GCJ=
15965 always_export_symbols_GCJ=no
15966 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15967 # include_expsyms should be a list of space-separated symbols to be *always*
15968 # included in the symbol list
15969 include_expsyms_GCJ=
15970 # exclude_expsyms can be an extended regexp of symbols to exclude
15971 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15972 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15973 # as well as any symbol that contains `d'.
15974 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15975 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15976 # platforms (ab)use it in PIC code, but their linkers get confused if
15977 # the symbol is explicitly referenced. Since portable code cannot
15978 # rely on this symbol name, it's probably fine to never include it in
15979 # preloaded symbol tables.
15980 extract_expsyms_cmds=
15981
15982 case $host_os in
15983 cygwin* | mingw* | pw32*)
15984 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15985 # When not using gcc, we currently assume that we are using
15986 # Microsoft Visual C++.
15987 if test "$GCC" != yes; then
15988 with_gnu_ld=no
15989 fi
15990 ;;
15991 openbsd*)
15992 with_gnu_ld=no
15993 ;;
15994 esac
15995
15996 ld_shlibs_GCJ=yes
15997 if test "$with_gnu_ld" = yes; then
15998 # If archive_cmds runs LD, not CC, wlarc should be empty
15999 wlarc='${wl}'
16000
16001 # See if GNU ld supports shared libraries.
16002 case $host_os in
16003 aix3* | aix4* | aix5*)
16004 # On AIX/PPC, the GNU linker is very broken
16005 if test "$host_cpu" != ia64; then
16006 ld_shlibs_GCJ=no
16007 cat <<EOF 1>&2
16008
16009 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16010 *** to be unable to reliably create shared libraries on AIX.
16011 *** Therefore, libtool is disabling shared libraries support. If you
16012 *** really care for shared libraries, you may want to modify your PATH
16013 *** so that a non-GNU linker is found, and then restart.
16014
16015 EOF
16016 fi
16017 ;;
16018
16019 amigaos*)
16020 archive_cmds_GCJ='$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)'
16021 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16022 hardcode_minus_L_GCJ=yes
16023
16024 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16025 # that the semantics of dynamic libraries on AmigaOS, at least up
16026 # to version 4, is to share data among multiple programs linked
16027 # with the same dynamic library. Since this doesn't match the
16028 # behavior of shared libraries on other platforms, we can't use
16029 # them.
16030 ld_shlibs_GCJ=no
16031 ;;
16032
16033 beos*)
16034 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16035 allow_undefined_flag_GCJ=unsupported
16036 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16037 # support --undefined. This deserves some investigation. FIXME
16038 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16039 else
16040 ld_shlibs_GCJ=no
16041 fi
16042 ;;
16043
16044 cygwin* | mingw* | pw32*)
16045 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16046 # as there is no search path for DLLs.
16047 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16048 allow_undefined_flag_GCJ=unsupported
16049 always_export_symbols_GCJ=no
16050 enable_shared_with_static_runtimes_GCJ=yes
16051 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16052
16053 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16054 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16055 # If the export-symbols file already is a .def file (1st line
16056 # is EXPORTS), use it as is; otherwise, prepend...
16057 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16058 cp $export_symbols $output_objdir/$soname.def;
16059 else
16060 echo EXPORTS > $output_objdir/$soname.def;
16061 cat $export_symbols >> $output_objdir/$soname.def;
16062 fi~
16063 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16064 else
16065 ld_shlibs=no
16066 fi
16067 ;;
16068
16069 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16071 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16072 wlarc=
16073 else
16074 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16075 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16076 fi
16077 ;;
16078
16079 solaris* | sysv5*)
16080 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16081 ld_shlibs_GCJ=no
16082 cat <<EOF 1>&2
16083
16084 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16085 *** create shared libraries on Solaris systems. Therefore, libtool
16086 *** is disabling shared libraries support. We urge you to upgrade GNU
16087 *** binutils to release 2.9.1 or newer. Another option is to modify
16088 *** your PATH or compiler configuration so that the native linker is
16089 *** used, and then restart.
16090
16091 EOF
16092 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16093 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16094 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16095 else
16096 ld_shlibs_GCJ=no
16097 fi
16098 ;;
16099
16100 sunos4*)
16101 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16102 wlarc=
16103 hardcode_direct_GCJ=yes
16104 hardcode_shlibpath_var_GCJ=no
16105 ;;
16106
16107 linux*)
16108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16109 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16110 archive_cmds_GCJ="$tmp_archive_cmds"
16111 supports_anon_versioning=no
16112 case `$LD -v 2>/dev/null` in
16113 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16114 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16115 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16116 *\ 2.11.*) ;; # other 2.11 versions
16117 *) supports_anon_versioning=yes ;;
16118 esac
16119 if test $supports_anon_versioning = yes; then
16120 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16122 $echo "local: *; };" >> $output_objdir/$libname.ver~
16123 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16124 else
16125 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16126 fi
16127 link_all_deplibs_GCJ=no
16128 else
16129 ld_shlibs_GCJ=no
16130 fi
16131 ;;
16132
16133 *)
16134 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16135 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16136 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16137 else
16138 ld_shlibs_GCJ=no
16139 fi
16140 ;;
16141 esac
16142
16143 if test "$ld_shlibs_GCJ" = yes; then
16144 runpath_var=LD_RUN_PATH
16145 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16146 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16147 # ancient GNU ld didn't support --whole-archive et. al.
16148 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16149 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16150 else
16151 whole_archive_flag_spec_GCJ=
16152 fi
16153 fi
16154 else
16155 # PORTME fill in a description of your system's linker (not GNU ld)
16156 case $host_os in
16157 aix3*)
16158 allow_undefined_flag_GCJ=unsupported
16159 always_export_symbols_GCJ=yes
16160 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16161 # Note: this linker hardcodes the directories in LIBPATH if there
16162 # are no directories specified by -L.
16163 hardcode_minus_L_GCJ=yes
16164 if test "$GCC" = yes && test -z "$link_static_flag"; then
16165 # Neither direct hardcoding nor static linking is supported with a
16166 # broken collect2.
16167 hardcode_direct_GCJ=unsupported
16168 fi
16169 ;;
16170
16171 aix4* | aix5*)
16172 if test "$host_cpu" = ia64; then
16173 # On IA64, the linker does run time linking by default, so we don't
16174 # have to do anything special.
16175 aix_use_runtimelinking=no
16176 exp_sym_flag='-Bexport'
16177 no_entry_flag=""
16178 else
16179 # If we're using GNU nm, then we don't want the "-C" option.
16180 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16181 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16182 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16183 else
16184 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16185 fi
16186 aix_use_runtimelinking=no
16187
16188 # Test if we are trying to use run time linking or normal
16189 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16190 # need to do runtime linking.
16191 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16192 for ld_flag in $LDFLAGS; do
16193 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16194 aix_use_runtimelinking=yes
16195 break
16196 fi
16197 done
16198 esac
16199
16200 exp_sym_flag='-bexport'
16201 no_entry_flag='-bnoentry'
16202 fi
16203
16204 # When large executables or shared objects are built, AIX ld can
16205 # have problems creating the table of contents. If linking a library
16206 # or program results in "error TOC overflow" add -mminimal-toc to
16207 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16208 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16209
16210 archive_cmds_GCJ=''
16211 hardcode_direct_GCJ=yes
16212 hardcode_libdir_separator_GCJ=':'
16213 link_all_deplibs_GCJ=yes
16214
16215 if test "$GCC" = yes; then
16216 case $host_os in aix4.012|aix4.012.*)
16217 # We only want to do this on AIX 4.2 and lower, the check
16218 # below for broken collect2 doesn't work under 4.3+
16219 collect2name=`${CC} -print-prog-name=collect2`
16220 if test -f "$collect2name" && \
16221 strings "$collect2name" | grep resolve_lib_name >/dev/null
16222 then
16223 # We have reworked collect2
16224 hardcode_direct_GCJ=yes
16225 else
16226 # We have old collect2
16227 hardcode_direct_GCJ=unsupported
16228 # It fails to find uninstalled libraries when the uninstalled
16229 # path is not listed in the libpath. Setting hardcode_minus_L
16230 # to unsupported forces relinking
16231 hardcode_minus_L_GCJ=yes
16232 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16233 hardcode_libdir_separator_GCJ=
16234 fi
16235 esac
16236 shared_flag='-shared'
16237 else
16238 # not using gcc
16239 if test "$host_cpu" = ia64; then
16240 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16241 # chokes on -Wl,-G. The following line is correct:
16242 shared_flag='-G'
16243 else
16244 if test "$aix_use_runtimelinking" = yes; then
16245 shared_flag='${wl}-G'
16246 else
16247 shared_flag='${wl}-bM:SRE'
16248 fi
16249 fi
16250 fi
16251
16252 # It seems that -bexpall does not export symbols beginning with
16253 # underscore (_), so it is better to generate a list of symbols to export.
16254 always_export_symbols_GCJ=yes
16255 if test "$aix_use_runtimelinking" = yes; then
16256 # Warning - without using the other runtime loading flags (-brtl),
16257 # -berok will link without error, but may produce a broken library.
16258 allow_undefined_flag_GCJ='-berok'
16259 # Determine the default libpath from the value encoded in an empty executable.
16260 cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h. */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266
16267 int
16268 main ()
16269 {
16270
16271 ;
16272 return 0;
16273 }
16274 _ACEOF
16275 rm -f conftest.$ac_objext conftest$ac_exeext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16277 (eval $ac_link) 2>conftest.er1
16278 ac_status=$?
16279 grep -v '^ *+' conftest.er1 >conftest.err
16280 rm -f conftest.er1
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; } &&
16290 { ac_try='test -s conftest$ac_exeext'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; }; then
16296
16297 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16298 }'`
16299 # Check for a 64-bit object if we didn't find anything.
16300 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16301 }'`; fi
16302 else
16303 echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 fi
16307 rm -f conftest.err conftest.$ac_objext \
16308 conftest$ac_exeext conftest.$ac_ext
16309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16310
16311 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16312 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16313 else
16314 if test "$host_cpu" = ia64; then
16315 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16316 allow_undefined_flag_GCJ="-z nodefs"
16317 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16318 else
16319 # Determine the default libpath from the value encoded in an empty executable.
16320 cat >conftest.$ac_ext <<_ACEOF
16321 /* confdefs.h. */
16322 _ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h. */
16326
16327 int
16328 main ()
16329 {
16330
16331 ;
16332 return 0;
16333 }
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16337 (eval $ac_link) 2>conftest.er1
16338 ac_status=$?
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; } &&
16350 { ac_try='test -s conftest$ac_exeext'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356
16357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16358 }'`
16359 # Check for a 64-bit object if we didn't find anything.
16360 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16361 }'`; fi
16362 else
16363 echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16365
16366 fi
16367 rm -f conftest.err conftest.$ac_objext \
16368 conftest$ac_exeext conftest.$ac_ext
16369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16370
16371 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16372 # Warning - without using the other run time loading flags,
16373 # -berok will link without error, but may produce a broken library.
16374 no_undefined_flag_GCJ=' ${wl}-bernotok'
16375 allow_undefined_flag_GCJ=' ${wl}-berok'
16376 # -bexpall does not export symbols beginning with underscore (_)
16377 always_export_symbols_GCJ=yes
16378 # Exported symbols can be pulled into shared objects from archives
16379 whole_archive_flag_spec_GCJ=' '
16380 archive_cmds_need_lc_GCJ=yes
16381 # This is similar to how AIX traditionally builds it's shared libraries.
16382 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16383 fi
16384 fi
16385 ;;
16386
16387 amigaos*)
16388 archive_cmds_GCJ='$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)'
16389 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16390 hardcode_minus_L_GCJ=yes
16391 # see comment about different semantics on the GNU ld section
16392 ld_shlibs_GCJ=no
16393 ;;
16394
16395 bsdi4*)
16396 export_dynamic_flag_spec_GCJ=-rdynamic
16397 ;;
16398
16399 cygwin* | mingw* | pw32*)
16400 # When not using gcc, we currently assume that we are using
16401 # Microsoft Visual C++.
16402 # hardcode_libdir_flag_spec is actually meaningless, as there is
16403 # no search path for DLLs.
16404 hardcode_libdir_flag_spec_GCJ=' '
16405 allow_undefined_flag_GCJ=unsupported
16406 # Tell ltmain to make .lib files, not .a files.
16407 libext=lib
16408 # Tell ltmain to make .dll files, not .so files.
16409 shrext_cmds=".dll"
16410 # FIXME: Setting linknames here is a bad hack.
16411 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16412 # The linker will automatically build a .lib file if we build a DLL.
16413 old_archive_From_new_cmds_GCJ='true'
16414 # FIXME: Should let the user specify the lib program.
16415 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16416 fix_srcfile_path='`cygpath -w "$srcfile"`'
16417 enable_shared_with_static_runtimes_GCJ=yes
16418 ;;
16419
16420 darwin* | rhapsody*)
16421 if test "$GXX" = yes ; then
16422 archive_cmds_need_lc_GCJ=no
16423 case "$host_os" in
16424 rhapsody* | darwin1.[012])
16425 allow_undefined_flag_GCJ='-undefined suppress'
16426 ;;
16427 *) # Darwin 1.3 on
16428 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16429 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16430 else
16431 case ${MACOSX_DEPLOYMENT_TARGET} in
16432 10.[012])
16433 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16434 ;;
16435 10.*)
16436 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16437 ;;
16438 esac
16439 fi
16440 ;;
16441 esac
16442 lt_int_apple_cc_single_mod=no
16443 output_verbose_link_cmd='echo'
16444 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16445 lt_int_apple_cc_single_mod=yes
16446 fi
16447 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16448 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16449 else
16450 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16451 fi
16452 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16453 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16454 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16455 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16456 else
16457 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16458 fi
16459 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16460 hardcode_direct_GCJ=no
16461 hardcode_automatic_GCJ=yes
16462 hardcode_shlibpath_var_GCJ=unsupported
16463 whole_archive_flag_spec_GCJ='-all_load $convenience'
16464 link_all_deplibs_GCJ=yes
16465 else
16466 ld_shlibs_GCJ=no
16467 fi
16468 ;;
16469
16470 dgux*)
16471 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16472 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16473 hardcode_shlibpath_var_GCJ=no
16474 ;;
16475
16476 freebsd1*)
16477 ld_shlibs_GCJ=no
16478 ;;
16479
16480 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16481 # support. Future versions do this automatically, but an explicit c++rt0.o
16482 # does not break anything, and helps significantly (at the cost of a little
16483 # extra space).
16484 freebsd2.2*)
16485 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16486 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16487 hardcode_direct_GCJ=yes
16488 hardcode_shlibpath_var_GCJ=no
16489 ;;
16490
16491 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16492 freebsd2*)
16493 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16494 hardcode_direct_GCJ=yes
16495 hardcode_minus_L_GCJ=yes
16496 hardcode_shlibpath_var_GCJ=no
16497 ;;
16498
16499 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16500 freebsd* | kfreebsd*-gnu)
16501 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16502 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16503 hardcode_direct_GCJ=yes
16504 hardcode_shlibpath_var_GCJ=no
16505 ;;
16506
16507 hpux9*)
16508 if test "$GCC" = yes; then
16509 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16510 else
16511 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16512 fi
16513 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16514 hardcode_libdir_separator_GCJ=:
16515 hardcode_direct_GCJ=yes
16516
16517 # hardcode_minus_L: Not really in the search PATH,
16518 # but as the default location of the library.
16519 hardcode_minus_L_GCJ=yes
16520 export_dynamic_flag_spec_GCJ='${wl}-E'
16521 ;;
16522
16523 hpux10* | hpux11*)
16524 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16525 case "$host_cpu" in
16526 hppa*64*|ia64*)
16527 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16528 ;;
16529 *)
16530 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16531 ;;
16532 esac
16533 else
16534 case "$host_cpu" in
16535 hppa*64*|ia64*)
16536 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16537 ;;
16538 *)
16539 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16540 ;;
16541 esac
16542 fi
16543 if test "$with_gnu_ld" = no; then
16544 case "$host_cpu" in
16545 hppa*64*)
16546 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16547 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16548 hardcode_libdir_separator_GCJ=:
16549 hardcode_direct_GCJ=no
16550 hardcode_shlibpath_var_GCJ=no
16551 ;;
16552 ia64*)
16553 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16554 hardcode_direct_GCJ=no
16555 hardcode_shlibpath_var_GCJ=no
16556
16557 # hardcode_minus_L: Not really in the search PATH,
16558 # but as the default location of the library.
16559 hardcode_minus_L_GCJ=yes
16560 ;;
16561 *)
16562 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16563 hardcode_libdir_separator_GCJ=:
16564 hardcode_direct_GCJ=yes
16565 export_dynamic_flag_spec_GCJ='${wl}-E'
16566
16567 # hardcode_minus_L: Not really in the search PATH,
16568 # but as the default location of the library.
16569 hardcode_minus_L_GCJ=yes
16570 ;;
16571 esac
16572 fi
16573 ;;
16574
16575 irix5* | irix6* | nonstopux*)
16576 if test "$GCC" = yes; then
16577 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16578 else
16579 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16580 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16581 fi
16582 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16583 hardcode_libdir_separator_GCJ=:
16584 link_all_deplibs_GCJ=yes
16585 ;;
16586
16587 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16589 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16590 else
16591 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16592 fi
16593 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16594 hardcode_direct_GCJ=yes
16595 hardcode_shlibpath_var_GCJ=no
16596 ;;
16597
16598 newsos6)
16599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16600 hardcode_direct_GCJ=yes
16601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16602 hardcode_libdir_separator_GCJ=:
16603 hardcode_shlibpath_var_GCJ=no
16604 ;;
16605
16606 openbsd*)
16607 hardcode_direct_GCJ=yes
16608 hardcode_shlibpath_var_GCJ=no
16609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16610 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16611 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16612 export_dynamic_flag_spec_GCJ='${wl}-E'
16613 else
16614 case $host_os in
16615 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16616 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16617 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16618 ;;
16619 *)
16620 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16622 ;;
16623 esac
16624 fi
16625 ;;
16626
16627 os2*)
16628 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16629 hardcode_minus_L_GCJ=yes
16630 allow_undefined_flag_GCJ=unsupported
16631 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16632 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16633 ;;
16634
16635 osf3*)
16636 if test "$GCC" = yes; then
16637 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16638 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16639 else
16640 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16641 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16642 fi
16643 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16644 hardcode_libdir_separator_GCJ=:
16645 ;;
16646
16647 osf4* | osf5*) # as osf3* with the addition of -msym flag
16648 if test "$GCC" = yes; then
16649 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16650 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16651 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16652 else
16653 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16654 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16655 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16656 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16657
16658 # Both c and cxx compiler support -rpath directly
16659 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16660 fi
16661 hardcode_libdir_separator_GCJ=:
16662 ;;
16663
16664 sco3.2v5*)
16665 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16666 hardcode_shlibpath_var_GCJ=no
16667 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16668 runpath_var=LD_RUN_PATH
16669 hardcode_runpath_var=yes
16670 ;;
16671
16672 solaris*)
16673 no_undefined_flag_GCJ=' -z text'
16674 if test "$GCC" = yes; then
16675 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16676 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16677 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16678 else
16679 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16680 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16681 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16682 fi
16683 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16684 hardcode_shlibpath_var_GCJ=no
16685 case $host_os in
16686 solaris2.[0-5] | solaris2.[0-5].*) ;;
16687 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16688 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16689 esac
16690 link_all_deplibs_GCJ=yes
16691 ;;
16692
16693 sunos4*)
16694 if test "x$host_vendor" = xsequent; then
16695 # Use $CC to link under sequent, because it throws in some extra .o
16696 # files that make .init and .fini sections work.
16697 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16698 else
16699 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16700 fi
16701 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16702 hardcode_direct_GCJ=yes
16703 hardcode_minus_L_GCJ=yes
16704 hardcode_shlibpath_var_GCJ=no
16705 ;;
16706
16707 sysv4)
16708 case $host_vendor in
16709 sni)
16710 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16711 hardcode_direct_GCJ=yes # is this really true???
16712 ;;
16713 siemens)
16714 ## LD is ld it makes a PLAMLIB
16715 ## CC just makes a GrossModule.
16716 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16717 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16718 hardcode_direct_GCJ=no
16719 ;;
16720 motorola)
16721 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16722 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16723 ;;
16724 esac
16725 runpath_var='LD_RUN_PATH'
16726 hardcode_shlibpath_var_GCJ=no
16727 ;;
16728
16729 sysv4.3*)
16730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16731 hardcode_shlibpath_var_GCJ=no
16732 export_dynamic_flag_spec_GCJ='-Bexport'
16733 ;;
16734
16735 sysv4*MP*)
16736 if test -d /usr/nec; then
16737 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738 hardcode_shlibpath_var_GCJ=no
16739 runpath_var=LD_RUN_PATH
16740 hardcode_runpath_var=yes
16741 ld_shlibs_GCJ=yes
16742 fi
16743 ;;
16744
16745 sysv4.2uw2*)
16746 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16747 hardcode_direct_GCJ=yes
16748 hardcode_minus_L_GCJ=no
16749 hardcode_shlibpath_var_GCJ=no
16750 hardcode_runpath_var=yes
16751 runpath_var=LD_RUN_PATH
16752 ;;
16753
16754 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16755 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16756 if test "$GCC" = yes; then
16757 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16758 else
16759 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16760 fi
16761 runpath_var='LD_RUN_PATH'
16762 hardcode_shlibpath_var_GCJ=no
16763 ;;
16764
16765 sysv5*)
16766 no_undefined_flag_GCJ=' -z text'
16767 # $CC -shared without GNU ld will not create a library from C++
16768 # object files and a static libstdc++, better avoid it by now
16769 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16770 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16771 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16772 hardcode_libdir_flag_spec_GCJ=
16773 hardcode_shlibpath_var_GCJ=no
16774 runpath_var='LD_RUN_PATH'
16775 ;;
16776
16777 uts4*)
16778 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16780 hardcode_shlibpath_var_GCJ=no
16781 ;;
16782
16783 *)
16784 ld_shlibs_GCJ=no
16785 ;;
16786 esac
16787 fi
16788
16789 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16790 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16791 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16792
16793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16794 if test "$GCC" = yes; then
16795 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16796 fi
16797
16798 #
16799 # Do we need to explicitly link libc?
16800 #
16801 case "x$archive_cmds_need_lc_GCJ" in
16802 x|xyes)
16803 # Assume -lc should be added
16804 archive_cmds_need_lc_GCJ=yes
16805
16806 if test "$enable_shared" = yes && test "$GCC" = yes; then
16807 case $archive_cmds_GCJ in
16808 *'~'*)
16809 # FIXME: we may have to deal with multi-command sequences.
16810 ;;
16811 '$CC '*)
16812 # Test whether the compiler implicitly links with -lc since on some
16813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16814 # to ld, don't add -lc before -lgcc.
16815 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16816 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16817 $rm conftest*
16818 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16819
16820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16821 (eval $ac_compile) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } 2>conftest.err; then
16825 soname=conftest
16826 lib=conftest
16827 libobjs=conftest.$ac_objext
16828 deplibs=
16829 wl=$lt_prog_compiler_wl_GCJ
16830 compiler_flags=-v
16831 linker_flags=-v
16832 verstring=
16833 output_objdir=.
16834 libname=conftest
16835 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16836 allow_undefined_flag_GCJ=
16837 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16838 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }
16842 then
16843 archive_cmds_need_lc_GCJ=no
16844 else
16845 archive_cmds_need_lc_GCJ=yes
16846 fi
16847 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16848 else
16849 cat conftest.err 1>&5
16850 fi
16851 $rm conftest*
16852 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16853 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16854 ;;
16855 esac
16856 fi
16857 ;;
16858 esac
16859
16860 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16861 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16862 library_names_spec=
16863 libname_spec='lib$name'
16864 soname_spec=
16865 shrext_cmds=".so"
16866 postinstall_cmds=
16867 postuninstall_cmds=
16868 finish_cmds=
16869 finish_eval=
16870 shlibpath_var=
16871 shlibpath_overrides_runpath=unknown
16872 version_type=none
16873 dynamic_linker="$host_os ld.so"
16874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16875 if test "$GCC" = yes; then
16876 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16877 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16878 # if the path contains ";" then we assume it to be the separator
16879 # otherwise default to the standard path separator (i.e. ":") - it is
16880 # assumed that no part of a normal pathname contains ";" but that should
16881 # okay in the real world where ";" in dirpaths is itself problematic.
16882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16883 else
16884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16885 fi
16886 else
16887 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16888 fi
16889 need_lib_prefix=unknown
16890 hardcode_into_libs=no
16891
16892 # when you set need_version to no, make sure it does not cause -set_version
16893 # flags to be left without arguments
16894 need_version=unknown
16895
16896 case $host_os in
16897 aix3*)
16898 version_type=linux
16899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16900 shlibpath_var=LIBPATH
16901
16902 # AIX 3 has no versioning support, so we append a major version to the name.
16903 soname_spec='${libname}${release}${shared_ext}$major'
16904 ;;
16905
16906 aix4* | aix5*)
16907 version_type=linux
16908 need_lib_prefix=no
16909 need_version=no
16910 hardcode_into_libs=yes
16911 if test "$host_cpu" = ia64; then
16912 # AIX 5 supports IA64
16913 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16914 shlibpath_var=LD_LIBRARY_PATH
16915 else
16916 # With GCC up to 2.95.x, collect2 would create an import file
16917 # for dependence libraries. The import file would start with
16918 # the line `#! .'. This would cause the generated library to
16919 # depend on `.', always an invalid library. This was fixed in
16920 # development snapshots of GCC prior to 3.0.
16921 case $host_os in
16922 aix4 | aix4.[01] | aix4.[01].*)
16923 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16924 echo ' yes '
16925 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16926 :
16927 else
16928 can_build_shared=no
16929 fi
16930 ;;
16931 esac
16932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16933 # soname into executable. Probably we can add versioning support to
16934 # collect2, so additional links can be useful in future.
16935 if test "$aix_use_runtimelinking" = yes; then
16936 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16937 # instead of lib<name>.a to let people know that these are not
16938 # typical AIX shared libraries.
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940 else
16941 # We preserve .a as extension for shared libraries through AIX4.2
16942 # and later when we are not doing run time linking.
16943 library_names_spec='${libname}${release}.a $libname.a'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 fi
16946 shlibpath_var=LIBPATH
16947 fi
16948 ;;
16949
16950 amigaos*)
16951 library_names_spec='$libname.ixlibrary $libname.a'
16952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16953 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16954 ;;
16955
16956 beos*)
16957 library_names_spec='${libname}${shared_ext}'
16958 dynamic_linker="$host_os ld.so"
16959 shlibpath_var=LIBRARY_PATH
16960 ;;
16961
16962 bsdi4*)
16963 version_type=linux
16964 need_version=no
16965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16966 soname_spec='${libname}${release}${shared_ext}$major'
16967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16971 # the default ld.so.conf also contains /usr/contrib/lib and
16972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16973 # libtool to hard-code these into programs
16974 ;;
16975
16976 cygwin* | mingw* | pw32*)
16977 version_type=windows
16978 shrext_cmds=".dll"
16979 need_version=no
16980 need_lib_prefix=no
16981
16982 case $GCC,$host_os in
16983 yes,cygwin* | yes,mingw* | yes,pw32*)
16984 library_names_spec='$libname.dll.a'
16985 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16986 postinstall_cmds='base_file=`basename \${file}`~
16987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16988 dldir=$destdir/`dirname \$dlpath`~
16989 test -d \$dldir || mkdir -p \$dldir~
16990 $install_prog $dir/$dlname \$dldir/$dlname'
16991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16992 dlpath=$dir/\$dldll~
16993 $rm \$dlpath'
16994 shlibpath_overrides_runpath=yes
16995
16996 case $host_os in
16997 cygwin*)
16998 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17000 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17001 ;;
17002 mingw*)
17003 # MinGW DLLs use traditional 'lib' prefix
17004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17006 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17007 # It is most probably a Windows format PATH printed by
17008 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17009 # path with ; separators, and with drive letters. We can handle the
17010 # drive letters (cygwin fileutils understands them), so leave them,
17011 # especially as we might pass files found there to a mingw objdump,
17012 # which wouldn't understand a cygwinified path. Ahh.
17013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17014 else
17015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17016 fi
17017 ;;
17018 pw32*)
17019 # pw32 DLLs use 'pw' prefix rather than 'lib'
17020 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17021 ;;
17022 esac
17023 ;;
17024
17025 *)
17026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17027 ;;
17028 esac
17029 dynamic_linker='Win32 ld.exe'
17030 # FIXME: first we should search . and the directory the executable is in
17031 shlibpath_var=PATH
17032 ;;
17033
17034 darwin* | rhapsody*)
17035 dynamic_linker="$host_os dyld"
17036 version_type=darwin
17037 need_lib_prefix=no
17038 need_version=no
17039 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17040 soname_spec='${libname}${release}${major}$shared_ext'
17041 shlibpath_overrides_runpath=yes
17042 shlibpath_var=DYLD_LIBRARY_PATH
17043 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17044 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17045 if test "$GCC" = yes; then
17046 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17047 else
17048 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17049 fi
17050 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17051 ;;
17052
17053 dgux*)
17054 version_type=linux
17055 need_lib_prefix=no
17056 need_version=no
17057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17058 soname_spec='${libname}${release}${shared_ext}$major'
17059 shlibpath_var=LD_LIBRARY_PATH
17060 ;;
17061
17062 freebsd1*)
17063 dynamic_linker=no
17064 ;;
17065
17066 kfreebsd*-gnu)
17067 version_type=linux
17068 need_lib_prefix=no
17069 need_version=no
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=no
17074 hardcode_into_libs=yes
17075 dynamic_linker='GNU ld.so'
17076 ;;
17077
17078 freebsd*)
17079 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17080 version_type=freebsd-$objformat
17081 case $version_type in
17082 freebsd-elf*)
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17084 need_version=no
17085 need_lib_prefix=no
17086 ;;
17087 freebsd-*)
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17089 need_version=yes
17090 ;;
17091 esac
17092 shlibpath_var=LD_LIBRARY_PATH
17093 case $host_os in
17094 freebsd2*)
17095 shlibpath_overrides_runpath=yes
17096 ;;
17097 freebsd3.01* | freebsdelf3.01*)
17098 shlibpath_overrides_runpath=yes
17099 hardcode_into_libs=yes
17100 ;;
17101 *) # from 3.2 on
17102 shlibpath_overrides_runpath=no
17103 hardcode_into_libs=yes
17104 ;;
17105 esac
17106 ;;
17107
17108 gnu*)
17109 version_type=linux
17110 need_lib_prefix=no
17111 need_version=no
17112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17113 soname_spec='${libname}${release}${shared_ext}$major'
17114 shlibpath_var=LD_LIBRARY_PATH
17115 hardcode_into_libs=yes
17116 ;;
17117
17118 hpux9* | hpux10* | hpux11*)
17119 # Give a soname corresponding to the major version so that dld.sl refuses to
17120 # link against other versions.
17121 version_type=sunos
17122 need_lib_prefix=no
17123 need_version=no
17124 case "$host_cpu" in
17125 ia64*)
17126 shrext_cmds='.so'
17127 hardcode_into_libs=yes
17128 dynamic_linker="$host_os dld.so"
17129 shlibpath_var=LD_LIBRARY_PATH
17130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17132 soname_spec='${libname}${release}${shared_ext}$major'
17133 if test "X$HPUX_IA64_MODE" = X32; then
17134 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17135 else
17136 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17137 fi
17138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17139 ;;
17140 hppa*64*)
17141 shrext_cmds='.sl'
17142 hardcode_into_libs=yes
17143 dynamic_linker="$host_os dld.sl"
17144 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17145 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17147 soname_spec='${libname}${release}${shared_ext}$major'
17148 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17150 ;;
17151 *)
17152 shrext_cmds='.sl'
17153 dynamic_linker="$host_os dld.sl"
17154 shlibpath_var=SHLIB_PATH
17155 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17157 soname_spec='${libname}${release}${shared_ext}$major'
17158 ;;
17159 esac
17160 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17161 postinstall_cmds='chmod 555 $lib'
17162 ;;
17163
17164 irix5* | irix6* | nonstopux*)
17165 case $host_os in
17166 nonstopux*) version_type=nonstopux ;;
17167 *)
17168 if test "$lt_cv_prog_gnu_ld" = yes; then
17169 version_type=linux
17170 else
17171 version_type=irix
17172 fi ;;
17173 esac
17174 need_lib_prefix=no
17175 need_version=no
17176 soname_spec='${libname}${release}${shared_ext}$major'
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17178 case $host_os in
17179 irix5* | nonstopux*)
17180 libsuff= shlibsuff=
17181 ;;
17182 *)
17183 case $LD in # libtool.m4 will add one of these switches to LD
17184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17185 libsuff= shlibsuff= libmagic=32-bit;;
17186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17187 libsuff=32 shlibsuff=N32 libmagic=N32;;
17188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17189 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17190 *) libsuff= shlibsuff= libmagic=never-match;;
17191 esac
17192 ;;
17193 esac
17194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17195 shlibpath_overrides_runpath=no
17196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17198 hardcode_into_libs=yes
17199 ;;
17200
17201 # No shared lib support for Linux oldld, aout, or coff.
17202 linux*oldld* | linux*aout* | linux*coff*)
17203 dynamic_linker=no
17204 ;;
17205
17206 # This must be Linux ELF.
17207 linux*)
17208 version_type=linux
17209 need_lib_prefix=no
17210 need_version=no
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17214 shlibpath_var=LD_LIBRARY_PATH
17215 shlibpath_overrides_runpath=no
17216 # This implies no fast_install, which is unacceptable.
17217 # Some rework will be needed to allow for fast_install
17218 # before this can be enabled.
17219 hardcode_into_libs=yes
17220
17221 # Append ld.so.conf contents to the search path
17222 if test -f /etc/ld.so.conf; then
17223 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17224 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17225 fi
17226
17227 # We used to test for /lib/ld.so.1 and disable shared libraries on
17228 # powerpc, because MkLinux only supported shared libraries with the
17229 # GNU dynamic linker. Since this was broken with cross compilers,
17230 # most powerpc-linux boxes support dynamic linking these days and
17231 # people can always --disable-shared, the test was removed, and we
17232 # assume the GNU/Linux dynamic linker is in use.
17233 dynamic_linker='GNU/Linux ld.so'
17234 ;;
17235
17236 netbsdelf*-gnu)
17237 version_type=linux
17238 need_lib_prefix=no
17239 need_version=no
17240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17241 soname_spec='${libname}${release}${shared_ext}$major'
17242 shlibpath_var=LD_LIBRARY_PATH
17243 shlibpath_overrides_runpath=no
17244 hardcode_into_libs=yes
17245 dynamic_linker='NetBSD ld.elf_so'
17246 ;;
17247
17248 knetbsd*-gnu)
17249 version_type=linux
17250 need_lib_prefix=no
17251 need_version=no
17252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17253 soname_spec='${libname}${release}${shared_ext}$major'
17254 shlibpath_var=LD_LIBRARY_PATH
17255 shlibpath_overrides_runpath=no
17256 hardcode_into_libs=yes
17257 dynamic_linker='GNU ld.so'
17258 ;;
17259
17260 netbsd*)
17261 version_type=sunos
17262 need_lib_prefix=no
17263 need_version=no
17264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17267 dynamic_linker='NetBSD (a.out) ld.so'
17268 else
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17270 soname_spec='${libname}${release}${shared_ext}$major'
17271 dynamic_linker='NetBSD ld.elf_so'
17272 fi
17273 shlibpath_var=LD_LIBRARY_PATH
17274 shlibpath_overrides_runpath=yes
17275 hardcode_into_libs=yes
17276 ;;
17277
17278 newsos6)
17279 version_type=linux
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 shlibpath_overrides_runpath=yes
17283 ;;
17284
17285 nto-qnx*)
17286 version_type=linux
17287 need_lib_prefix=no
17288 need_version=no
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath=yes
17293 ;;
17294
17295 openbsd*)
17296 version_type=sunos
17297 need_lib_prefix=no
17298 need_version=yes
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17303 case $host_os in
17304 openbsd2.[89] | openbsd2.[89].*)
17305 shlibpath_overrides_runpath=no
17306 ;;
17307 *)
17308 shlibpath_overrides_runpath=yes
17309 ;;
17310 esac
17311 else
17312 shlibpath_overrides_runpath=yes
17313 fi
17314 ;;
17315
17316 os2*)
17317 libname_spec='$name'
17318 shrext_cmds=".dll"
17319 need_lib_prefix=no
17320 library_names_spec='$libname${shared_ext} $libname.a'
17321 dynamic_linker='OS/2 ld.exe'
17322 shlibpath_var=LIBPATH
17323 ;;
17324
17325 osf3* | osf4* | osf5*)
17326 version_type=osf
17327 need_lib_prefix=no
17328 need_version=no
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331 shlibpath_var=LD_LIBRARY_PATH
17332 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17333 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17334 ;;
17335
17336 sco3.2v5*)
17337 version_type=osf
17338 soname_spec='${libname}${release}${shared_ext}$major'
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 shlibpath_var=LD_LIBRARY_PATH
17341 ;;
17342
17343 solaris*)
17344 version_type=linux
17345 need_lib_prefix=no
17346 need_version=no
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 shlibpath_var=LD_LIBRARY_PATH
17350 shlibpath_overrides_runpath=yes
17351 hardcode_into_libs=yes
17352 # ldd complains unless libraries are executable
17353 postinstall_cmds='chmod +x $lib'
17354 ;;
17355
17356 sunos4*)
17357 version_type=sunos
17358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17359 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17360 shlibpath_var=LD_LIBRARY_PATH
17361 shlibpath_overrides_runpath=yes
17362 if test "$with_gnu_ld" = yes; then
17363 need_lib_prefix=no
17364 fi
17365 need_version=yes
17366 ;;
17367
17368 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17369 version_type=linux
17370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371 soname_spec='${libname}${release}${shared_ext}$major'
17372 shlibpath_var=LD_LIBRARY_PATH
17373 case $host_vendor in
17374 sni)
17375 shlibpath_overrides_runpath=no
17376 need_lib_prefix=no
17377 export_dynamic_flag_spec='${wl}-Blargedynsym'
17378 runpath_var=LD_RUN_PATH
17379 ;;
17380 siemens)
17381 need_lib_prefix=no
17382 ;;
17383 motorola)
17384 need_lib_prefix=no
17385 need_version=no
17386 shlibpath_overrides_runpath=no
17387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17388 ;;
17389 esac
17390 ;;
17391
17392 sysv4*MP*)
17393 if test -d /usr/nec ;then
17394 version_type=linux
17395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17396 soname_spec='$libname${shared_ext}.$major'
17397 shlibpath_var=LD_LIBRARY_PATH
17398 fi
17399 ;;
17400
17401 uts4*)
17402 version_type=linux
17403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17404 soname_spec='${libname}${release}${shared_ext}$major'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 ;;
17407
17408 *)
17409 dynamic_linker=no
17410 ;;
17411 esac
17412 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17413 echo "${ECHO_T}$dynamic_linker" >&6
17414 test "$dynamic_linker" = no && can_build_shared=no
17415
17416 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17417 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17418 hardcode_action_GCJ=
17419 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17420 test -n "$runpath_var GCJ" || \
17421 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17422
17423 # We can hardcode non-existant directories.
17424 if test "$hardcode_direct_GCJ" != no &&
17425 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17426 # have to relink, otherwise we might link with an installed library
17427 # when we should be linking with a yet-to-be-installed one
17428 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17429 test "$hardcode_minus_L_GCJ" != no; then
17430 # Linking always hardcodes the temporary library directory.
17431 hardcode_action_GCJ=relink
17432 else
17433 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17434 hardcode_action_GCJ=immediate
17435 fi
17436 else
17437 # We cannot hardcode anything, or else we can only hardcode existing
17438 # directories.
17439 hardcode_action_GCJ=unsupported
17440 fi
17441 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17442 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17443
17444 if test "$hardcode_action_GCJ" = relink; then
17445 # Fast installation is not supported
17446 enable_fast_install=no
17447 elif test "$shlibpath_overrides_runpath" = yes ||
17448 test "$enable_shared" = no; then
17449 # Fast installation is not necessary
17450 enable_fast_install=needless
17451 fi
17452
17453 striplib=
17454 old_striplib=
17455 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17456 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17457 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17458 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17459 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17460 echo "$as_me:$LINENO: result: yes" >&5
17461 echo "${ECHO_T}yes" >&6
17462 else
17463 # FIXME - insert some real tests, host_os isn't really good enough
17464 case $host_os in
17465 darwin*)
17466 if test -n "$STRIP" ; then
17467 striplib="$STRIP -x"
17468 echo "$as_me:$LINENO: result: yes" >&5
17469 echo "${ECHO_T}yes" >&6
17470 else
17471 echo "$as_me:$LINENO: result: no" >&5
17472 echo "${ECHO_T}no" >&6
17473 fi
17474 ;;
17475 *)
17476 echo "$as_me:$LINENO: result: no" >&5
17477 echo "${ECHO_T}no" >&6
17478 ;;
17479 esac
17480 fi
17481
17482 if test "x$enable_dlopen" != xyes; then
17483 enable_dlopen=unknown
17484 enable_dlopen_self=unknown
17485 enable_dlopen_self_static=unknown
17486 else
17487 lt_cv_dlopen=no
17488 lt_cv_dlopen_libs=
17489
17490 case $host_os in
17491 beos*)
17492 lt_cv_dlopen="load_add_on"
17493 lt_cv_dlopen_libs=
17494 lt_cv_dlopen_self=yes
17495 ;;
17496
17497 mingw* | pw32*)
17498 lt_cv_dlopen="LoadLibrary"
17499 lt_cv_dlopen_libs=
17500 ;;
17501
17502 cygwin*)
17503 lt_cv_dlopen="dlopen"
17504 lt_cv_dlopen_libs=
17505 ;;
17506
17507 darwin*)
17508 # if libdl is installed we need to link against it
17509 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17510 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17511 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 else
17514 ac_check_lib_save_LIBS=$LIBS
17515 LIBS="-ldl $LIBS"
17516 cat >conftest.$ac_ext <<_ACEOF
17517 /* confdefs.h. */
17518 _ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h. */
17522
17523 /* Override any gcc2 internal prototype to avoid an error. */
17524 #ifdef __cplusplus
17525 extern "C"
17526 #endif
17527 /* We use char because int might match the return type of a gcc2
17528 builtin and then its argument prototype would still apply. */
17529 char dlopen ();
17530 int
17531 main ()
17532 {
17533 dlopen ();
17534 ;
17535 return 0;
17536 }
17537 _ACEOF
17538 rm -f conftest.$ac_objext conftest$ac_exeext
17539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17540 (eval $ac_link) 2>conftest.er1
17541 ac_status=$?
17542 grep -v '^ *+' conftest.er1 >conftest.err
17543 rm -f conftest.er1
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } &&
17547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; } &&
17553 { ac_try='test -s conftest$ac_exeext'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_cv_lib_dl_dlopen=yes
17560 else
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564 ac_cv_lib_dl_dlopen=no
17565 fi
17566 rm -f conftest.err conftest.$ac_objext \
17567 conftest$ac_exeext conftest.$ac_ext
17568 LIBS=$ac_check_lib_save_LIBS
17569 fi
17570 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17571 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17572 if test $ac_cv_lib_dl_dlopen = yes; then
17573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17574 else
17575
17576 lt_cv_dlopen="dyld"
17577 lt_cv_dlopen_libs=
17578 lt_cv_dlopen_self=yes
17579
17580 fi
17581
17582 ;;
17583
17584 *)
17585 echo "$as_me:$LINENO: checking for shl_load" >&5
17586 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17587 if test "${ac_cv_func_shl_load+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590 cat >conftest.$ac_ext <<_ACEOF
17591 /* confdefs.h. */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17598 #define shl_load innocuous_shl_load
17599
17600 /* System header to define __stub macros and hopefully few prototypes,
17601 which can conflict with char shl_load (); below.
17602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17603 <limits.h> exists even on freestanding compilers. */
17604
17605 #ifdef __STDC__
17606 # include <limits.h>
17607 #else
17608 # include <assert.h>
17609 #endif
17610
17611 #undef shl_load
17612
17613 /* Override any gcc2 internal prototype to avoid an error. */
17614 #ifdef __cplusplus
17615 extern "C"
17616 {
17617 #endif
17618 /* We use char because int might match the return type of a gcc2
17619 builtin and then its argument prototype would still apply. */
17620 char shl_load ();
17621 /* The GNU C library defines this for functions which it implements
17622 to always fail with ENOSYS. Some functions are actually named
17623 something starting with __ and the normal name is an alias. */
17624 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17625 choke me
17626 #else
17627 char (*f) () = shl_load;
17628 #endif
17629 #ifdef __cplusplus
17630 }
17631 #endif
17632
17633 int
17634 main ()
17635 {
17636 return f != shl_load;
17637 ;
17638 return 0;
17639 }
17640 _ACEOF
17641 rm -f conftest.$ac_objext conftest$ac_exeext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17643 (eval $ac_link) 2>conftest.er1
17644 ac_status=$?
17645 grep -v '^ *+' conftest.er1 >conftest.err
17646 rm -f conftest.er1
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
17650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest$ac_exeext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
17662 ac_cv_func_shl_load=yes
17663 else
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17666
17667 ac_cv_func_shl_load=no
17668 fi
17669 rm -f conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
17671 fi
17672 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17673 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17674 if test $ac_cv_func_shl_load = yes; then
17675 lt_cv_dlopen="shl_load"
17676 else
17677 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17678 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17679 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682 ac_check_lib_save_LIBS=$LIBS
17683 LIBS="-ldld $LIBS"
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h. */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690
17691 /* Override any gcc2 internal prototype to avoid an error. */
17692 #ifdef __cplusplus
17693 extern "C"
17694 #endif
17695 /* We use char because int might match the return type of a gcc2
17696 builtin and then its argument prototype would still apply. */
17697 char shl_load ();
17698 int
17699 main ()
17700 {
17701 shl_load ();
17702 ;
17703 return 0;
17704 }
17705 _ACEOF
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17708 (eval $ac_link) 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest$ac_exeext'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17724 ac_status=$?
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 ac_cv_lib_dld_shl_load=yes
17728 else
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17731
17732 ac_cv_lib_dld_shl_load=no
17733 fi
17734 rm -f conftest.err conftest.$ac_objext \
17735 conftest$ac_exeext conftest.$ac_ext
17736 LIBS=$ac_check_lib_save_LIBS
17737 fi
17738 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17739 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17740 if test $ac_cv_lib_dld_shl_load = yes; then
17741 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17742 else
17743 echo "$as_me:$LINENO: checking for dlopen" >&5
17744 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17745 if test "${ac_cv_func_dlopen+set}" = set; then
17746 echo $ECHO_N "(cached) $ECHO_C" >&6
17747 else
17748 cat >conftest.$ac_ext <<_ACEOF
17749 /* confdefs.h. */
17750 _ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h. */
17754 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17756 #define dlopen innocuous_dlopen
17757
17758 /* System header to define __stub macros and hopefully few prototypes,
17759 which can conflict with char dlopen (); below.
17760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17761 <limits.h> exists even on freestanding compilers. */
17762
17763 #ifdef __STDC__
17764 # include <limits.h>
17765 #else
17766 # include <assert.h>
17767 #endif
17768
17769 #undef dlopen
17770
17771 /* Override any gcc2 internal prototype to avoid an error. */
17772 #ifdef __cplusplus
17773 extern "C"
17774 {
17775 #endif
17776 /* We use char because int might match the return type of a gcc2
17777 builtin and then its argument prototype would still apply. */
17778 char dlopen ();
17779 /* The GNU C library defines this for functions which it implements
17780 to always fail with ENOSYS. Some functions are actually named
17781 something starting with __ and the normal name is an alias. */
17782 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17783 choke me
17784 #else
17785 char (*f) () = dlopen;
17786 #endif
17787 #ifdef __cplusplus
17788 }
17789 #endif
17790
17791 int
17792 main ()
17793 {
17794 return f != dlopen;
17795 ;
17796 return 0;
17797 }
17798 _ACEOF
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17801 (eval $ac_link) 2>conftest.er1
17802 ac_status=$?
17803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
17808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest$ac_exeext'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17820 ac_cv_func_dlopen=yes
17821 else
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17824
17825 ac_cv_func_dlopen=no
17826 fi
17827 rm -f conftest.err conftest.$ac_objext \
17828 conftest$ac_exeext conftest.$ac_ext
17829 fi
17830 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17831 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17832 if test $ac_cv_func_dlopen = yes; then
17833 lt_cv_dlopen="dlopen"
17834 else
17835 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17836 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17837 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 else
17840 ac_check_lib_save_LIBS=$LIBS
17841 LIBS="-ldl $LIBS"
17842 cat >conftest.$ac_ext <<_ACEOF
17843 /* confdefs.h. */
17844 _ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h. */
17848
17849 /* Override any gcc2 internal prototype to avoid an error. */
17850 #ifdef __cplusplus
17851 extern "C"
17852 #endif
17853 /* We use char because int might match the return type of a gcc2
17854 builtin and then its argument prototype would still apply. */
17855 char dlopen ();
17856 int
17857 main ()
17858 {
17859 dlopen ();
17860 ;
17861 return 0;
17862 }
17863 _ACEOF
17864 rm -f conftest.$ac_objext conftest$ac_exeext
17865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17866 (eval $ac_link) 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } &&
17873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17876 ac_status=$?
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; } &&
17879 { ac_try='test -s conftest$ac_exeext'
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17882 ac_status=$?
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; }; then
17885 ac_cv_lib_dl_dlopen=yes
17886 else
17887 echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17889
17890 ac_cv_lib_dl_dlopen=no
17891 fi
17892 rm -f conftest.err conftest.$ac_objext \
17893 conftest$ac_exeext conftest.$ac_ext
17894 LIBS=$ac_check_lib_save_LIBS
17895 fi
17896 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17897 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17898 if test $ac_cv_lib_dl_dlopen = yes; then
17899 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17900 else
17901 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17902 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17903 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17904 echo $ECHO_N "(cached) $ECHO_C" >&6
17905 else
17906 ac_check_lib_save_LIBS=$LIBS
17907 LIBS="-lsvld $LIBS"
17908 cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h. */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17914
17915 /* Override any gcc2 internal prototype to avoid an error. */
17916 #ifdef __cplusplus
17917 extern "C"
17918 #endif
17919 /* We use char because int might match the return type of a gcc2
17920 builtin and then its argument prototype would still apply. */
17921 char dlopen ();
17922 int
17923 main ()
17924 {
17925 dlopen ();
17926 ;
17927 return 0;
17928 }
17929 _ACEOF
17930 rm -f conftest.$ac_objext conftest$ac_exeext
17931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17932 (eval $ac_link) 2>conftest.er1
17933 ac_status=$?
17934 grep -v '^ *+' conftest.er1 >conftest.err
17935 rm -f conftest.er1
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try='test -s conftest$ac_exeext'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 ac_cv_lib_svld_dlopen=yes
17952 else
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17955
17956 ac_cv_lib_svld_dlopen=no
17957 fi
17958 rm -f conftest.err conftest.$ac_objext \
17959 conftest$ac_exeext conftest.$ac_ext
17960 LIBS=$ac_check_lib_save_LIBS
17961 fi
17962 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17963 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17964 if test $ac_cv_lib_svld_dlopen = yes; then
17965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17966 else
17967 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17968 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17969 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 else
17972 ac_check_lib_save_LIBS=$LIBS
17973 LIBS="-ldld $LIBS"
17974 cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h. */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17980
17981 /* Override any gcc2 internal prototype to avoid an error. */
17982 #ifdef __cplusplus
17983 extern "C"
17984 #endif
17985 /* We use char because int might match the return type of a gcc2
17986 builtin and then its argument prototype would still apply. */
17987 char dld_link ();
17988 int
17989 main ()
17990 {
17991 dld_link ();
17992 ;
17993 return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext conftest$ac_exeext
17997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17998 (eval $ac_link) 2>conftest.er1
17999 ac_status=$?
18000 grep -v '^ *+' conftest.er1 >conftest.err
18001 rm -f conftest.er1
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
18005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest$ac_exeext'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_cv_lib_dld_dld_link=yes
18018 else
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022 ac_cv_lib_dld_dld_link=no
18023 fi
18024 rm -f conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18026 LIBS=$ac_check_lib_save_LIBS
18027 fi
18028 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18029 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18030 if test $ac_cv_lib_dld_dld_link = yes; then
18031 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18032 fi
18033
18034
18035 fi
18036
18037
18038 fi
18039
18040
18041 fi
18042
18043
18044 fi
18045
18046
18047 fi
18048
18049 ;;
18050 esac
18051
18052 if test "x$lt_cv_dlopen" != xno; then
18053 enable_dlopen=yes
18054 else
18055 enable_dlopen=no
18056 fi
18057
18058 case $lt_cv_dlopen in
18059 dlopen)
18060 save_CPPFLAGS="$CPPFLAGS"
18061 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18062
18063 save_LDFLAGS="$LDFLAGS"
18064 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18065
18066 save_LIBS="$LIBS"
18067 LIBS="$lt_cv_dlopen_libs $LIBS"
18068
18069 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18070 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18071 if test "${lt_cv_dlopen_self+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18073 else
18074 if test "$cross_compiling" = yes; then :
18075 lt_cv_dlopen_self=cross
18076 else
18077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18078 lt_status=$lt_dlunknown
18079 cat > conftest.$ac_ext <<EOF
18080 #line 18081 "configure"
18081 #include "confdefs.h"
18082
18083 #if HAVE_DLFCN_H
18084 #include <dlfcn.h>
18085 #endif
18086
18087 #include <stdio.h>
18088
18089 #ifdef RTLD_GLOBAL
18090 # define LT_DLGLOBAL RTLD_GLOBAL
18091 #else
18092 # ifdef DL_GLOBAL
18093 # define LT_DLGLOBAL DL_GLOBAL
18094 # else
18095 # define LT_DLGLOBAL 0
18096 # endif
18097 #endif
18098
18099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18100 find out it does not work in some platform. */
18101 #ifndef LT_DLLAZY_OR_NOW
18102 # ifdef RTLD_LAZY
18103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18104 # else
18105 # ifdef DL_LAZY
18106 # define LT_DLLAZY_OR_NOW DL_LAZY
18107 # else
18108 # ifdef RTLD_NOW
18109 # define LT_DLLAZY_OR_NOW RTLD_NOW
18110 # else
18111 # ifdef DL_NOW
18112 # define LT_DLLAZY_OR_NOW DL_NOW
18113 # else
18114 # define LT_DLLAZY_OR_NOW 0
18115 # endif
18116 # endif
18117 # endif
18118 # endif
18119 #endif
18120
18121 #ifdef __cplusplus
18122 extern "C" void exit (int);
18123 #endif
18124
18125 void fnord() { int i=42;}
18126 int main ()
18127 {
18128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18129 int status = $lt_dlunknown;
18130
18131 if (self)
18132 {
18133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18134 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18135 /* dlclose (self); */
18136 }
18137
18138 exit (status);
18139 }
18140 EOF
18141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18142 (eval $ac_link) 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18146 (./conftest; exit; ) 2>/dev/null
18147 lt_status=$?
18148 case x$lt_status in
18149 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18150 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18151 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18152 esac
18153 else :
18154 # compilation failed
18155 lt_cv_dlopen_self=no
18156 fi
18157 fi
18158 rm -fr conftest*
18159
18160
18161 fi
18162 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18163 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18164
18165 if test "x$lt_cv_dlopen_self" = xyes; then
18166 LDFLAGS="$LDFLAGS $link_static_flag"
18167 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18168 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18169 if test "${lt_cv_dlopen_self_static+set}" = set; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18171 else
18172 if test "$cross_compiling" = yes; then :
18173 lt_cv_dlopen_self_static=cross
18174 else
18175 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18176 lt_status=$lt_dlunknown
18177 cat > conftest.$ac_ext <<EOF
18178 #line 18179 "configure"
18179 #include "confdefs.h"
18180
18181 #if HAVE_DLFCN_H
18182 #include <dlfcn.h>
18183 #endif
18184
18185 #include <stdio.h>
18186
18187 #ifdef RTLD_GLOBAL
18188 # define LT_DLGLOBAL RTLD_GLOBAL
18189 #else
18190 # ifdef DL_GLOBAL
18191 # define LT_DLGLOBAL DL_GLOBAL
18192 # else
18193 # define LT_DLGLOBAL 0
18194 # endif
18195 #endif
18196
18197 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18198 find out it does not work in some platform. */
18199 #ifndef LT_DLLAZY_OR_NOW
18200 # ifdef RTLD_LAZY
18201 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18202 # else
18203 # ifdef DL_LAZY
18204 # define LT_DLLAZY_OR_NOW DL_LAZY
18205 # else
18206 # ifdef RTLD_NOW
18207 # define LT_DLLAZY_OR_NOW RTLD_NOW
18208 # else
18209 # ifdef DL_NOW
18210 # define LT_DLLAZY_OR_NOW DL_NOW
18211 # else
18212 # define LT_DLLAZY_OR_NOW 0
18213 # endif
18214 # endif
18215 # endif
18216 # endif
18217 #endif
18218
18219 #ifdef __cplusplus
18220 extern "C" void exit (int);
18221 #endif
18222
18223 void fnord() { int i=42;}
18224 int main ()
18225 {
18226 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18227 int status = $lt_dlunknown;
18228
18229 if (self)
18230 {
18231 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18232 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18233 /* dlclose (self); */
18234 }
18235
18236 exit (status);
18237 }
18238 EOF
18239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18240 (eval $ac_link) 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18244 (./conftest; exit; ) 2>/dev/null
18245 lt_status=$?
18246 case x$lt_status in
18247 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18248 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18249 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18250 esac
18251 else :
18252 # compilation failed
18253 lt_cv_dlopen_self_static=no
18254 fi
18255 fi
18256 rm -fr conftest*
18257
18258
18259 fi
18260 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18261 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18262 fi
18263
18264 CPPFLAGS="$save_CPPFLAGS"
18265 LDFLAGS="$save_LDFLAGS"
18266 LIBS="$save_LIBS"
18267 ;;
18268 esac
18269
18270 case $lt_cv_dlopen_self in
18271 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18272 *) enable_dlopen_self=unknown ;;
18273 esac
18274
18275 case $lt_cv_dlopen_self_static in
18276 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18277 *) enable_dlopen_self_static=unknown ;;
18278 esac
18279 fi
18280
18281
18282 # The else clause should only fire when bootstrapping the
18283 # libtool distribution, otherwise you forgot to ship ltmain.sh
18284 # with your package, and you will get complaints that there are
18285 # no rules to generate ltmain.sh.
18286 if test -f "$ltmain"; then
18287 # See if we are running on zsh, and set the options which allow our commands through
18288 # without removal of \ escapes.
18289 if test -n "${ZSH_VERSION+set}" ; then
18290 setopt NO_GLOB_SUBST
18291 fi
18292 # Now quote all the things that may contain metacharacters while being
18293 # careful not to overquote the AC_SUBSTed values. We take copies of the
18294 # variables and quote the copies for generation of the libtool script.
18295 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18296 SED SHELL STRIP \
18297 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18298 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18299 deplibs_check_method reload_flag reload_cmds need_locks \
18300 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18301 lt_cv_sys_global_symbol_to_c_name_address \
18302 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18303 old_postinstall_cmds old_postuninstall_cmds \
18304 compiler_GCJ \
18305 CC_GCJ \
18306 LD_GCJ \
18307 lt_prog_compiler_wl_GCJ \
18308 lt_prog_compiler_pic_GCJ \
18309 lt_prog_compiler_static_GCJ \
18310 lt_prog_compiler_no_builtin_flag_GCJ \
18311 export_dynamic_flag_spec_GCJ \
18312 thread_safe_flag_spec_GCJ \
18313 whole_archive_flag_spec_GCJ \
18314 enable_shared_with_static_runtimes_GCJ \
18315 old_archive_cmds_GCJ \
18316 old_archive_from_new_cmds_GCJ \
18317 predep_objects_GCJ \
18318 postdep_objects_GCJ \
18319 predeps_GCJ \
18320 postdeps_GCJ \
18321 compiler_lib_search_path_GCJ \
18322 archive_cmds_GCJ \
18323 archive_expsym_cmds_GCJ \
18324 postinstall_cmds_GCJ \
18325 postuninstall_cmds_GCJ \
18326 old_archive_from_expsyms_cmds_GCJ \
18327 allow_undefined_flag_GCJ \
18328 no_undefined_flag_GCJ \
18329 export_symbols_cmds_GCJ \
18330 hardcode_libdir_flag_spec_GCJ \
18331 hardcode_libdir_flag_spec_ld_GCJ \
18332 hardcode_libdir_separator_GCJ \
18333 hardcode_automatic_GCJ \
18334 module_cmds_GCJ \
18335 module_expsym_cmds_GCJ \
18336 lt_cv_prog_compiler_c_o_GCJ \
18337 exclude_expsyms_GCJ \
18338 include_expsyms_GCJ; do
18339
18340 case $var in
18341 old_archive_cmds_GCJ | \
18342 old_archive_from_new_cmds_GCJ | \
18343 archive_cmds_GCJ | \
18344 archive_expsym_cmds_GCJ | \
18345 module_cmds_GCJ | \
18346 module_expsym_cmds_GCJ | \
18347 old_archive_from_expsyms_cmds_GCJ | \
18348 export_symbols_cmds_GCJ | \
18349 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18350 postinstall_cmds | postuninstall_cmds | \
18351 old_postinstall_cmds | old_postuninstall_cmds | \
18352 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18353 # Double-quote double-evaled strings.
18354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18355 ;;
18356 *)
18357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18358 ;;
18359 esac
18360 done
18361
18362 case $lt_echo in
18363 *'\$0 --fallback-echo"')
18364 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18365 ;;
18366 esac
18367
18368 cfgfile="$ofile"
18369
18370 cat <<__EOF__ >> "$cfgfile"
18371 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18372
18373 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18374
18375 # Shell to use when invoking shell scripts.
18376 SHELL=$lt_SHELL
18377
18378 # Whether or not to build shared libraries.
18379 build_libtool_libs=$enable_shared
18380
18381 # Whether or not to build static libraries.
18382 build_old_libs=$enable_static
18383
18384 # Whether or not to add -lc for building shared libraries.
18385 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18386
18387 # Whether or not to disallow shared libs when runtime libs are static
18388 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18389
18390 # Whether or not to optimize for fast installation.
18391 fast_install=$enable_fast_install
18392
18393 # The host system.
18394 host_alias=$host_alias
18395 host=$host
18396
18397 # An echo program that does not interpret backslashes.
18398 echo=$lt_echo
18399
18400 # The archiver.
18401 AR=$lt_AR
18402 AR_FLAGS=$lt_AR_FLAGS
18403
18404 # A C compiler.
18405 LTCC=$lt_LTCC
18406
18407 # A language-specific compiler.
18408 CC=$lt_compiler_GCJ
18409
18410 # Is the compiler the GNU C compiler?
18411 with_gcc=$GCC_GCJ
18412
18413 # An ERE matcher.
18414 EGREP=$lt_EGREP
18415
18416 # The linker used to build libraries.
18417 LD=$lt_LD_GCJ
18418
18419 # Whether we need hard or soft links.
18420 LN_S=$lt_LN_S
18421
18422 # A BSD-compatible nm program.
18423 NM=$lt_NM
18424
18425 # A symbol stripping program
18426 STRIP=$lt_STRIP
18427
18428 # Used to examine libraries when file_magic_cmd begins "file"
18429 MAGIC_CMD=$MAGIC_CMD
18430
18431 # Used on cygwin: DLL creation program.
18432 DLLTOOL="$DLLTOOL"
18433
18434 # Used on cygwin: object dumper.
18435 OBJDUMP="$OBJDUMP"
18436
18437 # Used on cygwin: assembler.
18438 AS="$AS"
18439
18440 # The name of the directory that contains temporary libtool files.
18441 objdir=$objdir
18442
18443 # How to create reloadable object files.
18444 reload_flag=$lt_reload_flag
18445 reload_cmds=$lt_reload_cmds
18446
18447 # How to pass a linker flag through the compiler.
18448 wl=$lt_lt_prog_compiler_wl_GCJ
18449
18450 # Object file suffix (normally "o").
18451 objext="$ac_objext"
18452
18453 # Old archive suffix (normally "a").
18454 libext="$libext"
18455
18456 # Shared library suffix (normally ".so").
18457 shrext_cmds='$shrext_cmds'
18458
18459 # Executable file suffix (normally "").
18460 exeext="$exeext"
18461
18462 # Additional compiler flags for building library objects.
18463 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18464 pic_mode=$pic_mode
18465
18466 # What is the maximum length of a command?
18467 max_cmd_len=$lt_cv_sys_max_cmd_len
18468
18469 # Does compiler simultaneously support -c and -o options?
18470 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18471
18472 # Must we lock files when doing compilation ?
18473 need_locks=$lt_need_locks
18474
18475 # Do we need the lib prefix for modules?
18476 need_lib_prefix=$need_lib_prefix
18477
18478 # Do we need a version for libraries?
18479 need_version=$need_version
18480
18481 # Whether dlopen is supported.
18482 dlopen_support=$enable_dlopen
18483
18484 # Whether dlopen of programs is supported.
18485 dlopen_self=$enable_dlopen_self
18486
18487 # Whether dlopen of statically linked programs is supported.
18488 dlopen_self_static=$enable_dlopen_self_static
18489
18490 # Compiler flag to prevent dynamic linking.
18491 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18492
18493 # Compiler flag to turn off builtin functions.
18494 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18495
18496 # Compiler flag to allow reflexive dlopens.
18497 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18498
18499 # Compiler flag to generate shared objects directly from archives.
18500 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18501
18502 # Compiler flag to generate thread-safe objects.
18503 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18504
18505 # Library versioning type.
18506 version_type=$version_type
18507
18508 # Format of library name prefix.
18509 libname_spec=$lt_libname_spec
18510
18511 # List of archive names. First name is the real one, the rest are links.
18512 # The last name is the one that the linker finds with -lNAME.
18513 library_names_spec=$lt_library_names_spec
18514
18515 # The coded name of the library, if different from the real name.
18516 soname_spec=$lt_soname_spec
18517
18518 # Commands used to build and install an old-style archive.
18519 RANLIB=$lt_RANLIB
18520 old_archive_cmds=$lt_old_archive_cmds_GCJ
18521 old_postinstall_cmds=$lt_old_postinstall_cmds
18522 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18523
18524 # Create an old-style archive from a shared archive.
18525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18526
18527 # Create a temporary old-style archive to link instead of a shared archive.
18528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18529
18530 # Commands used to build and install a shared archive.
18531 archive_cmds=$lt_archive_cmds_GCJ
18532 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18533 postinstall_cmds=$lt_postinstall_cmds
18534 postuninstall_cmds=$lt_postuninstall_cmds
18535
18536 # Commands used to build a loadable module (assumed same as above if empty)
18537 module_cmds=$lt_module_cmds_GCJ
18538 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18539
18540 # Commands to strip libraries.
18541 old_striplib=$lt_old_striplib
18542 striplib=$lt_striplib
18543
18544 # Dependencies to place before the objects being linked to create a
18545 # shared library.
18546 predep_objects=$lt_predep_objects_GCJ
18547
18548 # Dependencies to place after the objects being linked to create a
18549 # shared library.
18550 postdep_objects=$lt_postdep_objects_GCJ
18551
18552 # Dependencies to place before the objects being linked to create a
18553 # shared library.
18554 predeps=$lt_predeps_GCJ
18555
18556 # Dependencies to place after the objects being linked to create a
18557 # shared library.
18558 postdeps=$lt_postdeps_GCJ
18559
18560 # The library search path used internally by the compiler when linking
18561 # a shared library.
18562 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18563
18564 # Method to check whether dependent libraries are shared objects.
18565 deplibs_check_method=$lt_deplibs_check_method
18566
18567 # Command to use when deplibs_check_method == file_magic.
18568 file_magic_cmd=$lt_file_magic_cmd
18569
18570 # Flag that allows shared libraries with undefined symbols to be built.
18571 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18572
18573 # Flag that forces no undefined symbols.
18574 no_undefined_flag=$lt_no_undefined_flag_GCJ
18575
18576 # Commands used to finish a libtool library installation in a directory.
18577 finish_cmds=$lt_finish_cmds
18578
18579 # Same as above, but a single script fragment to be evaled but not shown.
18580 finish_eval=$lt_finish_eval
18581
18582 # Take the output of nm and produce a listing of raw symbols and C names.
18583 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18584
18585 # Transform the output of nm in a proper C declaration
18586 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18587
18588 # Transform the output of nm in a C name address pair
18589 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18590
18591 # This is the shared library runtime path variable.
18592 runpath_var=$runpath_var
18593
18594 # This is the shared library path variable.
18595 shlibpath_var=$shlibpath_var
18596
18597 # Is shlibpath searched before the hard-coded library search path?
18598 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18599
18600 # How to hardcode a shared library path into an executable.
18601 hardcode_action=$hardcode_action_GCJ
18602
18603 # Whether we should hardcode library paths into libraries.
18604 hardcode_into_libs=$hardcode_into_libs
18605
18606 # Flag to hardcode \$libdir into a binary during linking.
18607 # This must work even if \$libdir does not exist.
18608 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18609
18610 # If ld is used when linking, flag to hardcode \$libdir into
18611 # a binary during linking. This must work even if \$libdir does
18612 # not exist.
18613 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18614
18615 # Whether we need a single -rpath flag with a separated argument.
18616 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18617
18618 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18619 # resulting binary.
18620 hardcode_direct=$hardcode_direct_GCJ
18621
18622 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18623 # resulting binary.
18624 hardcode_minus_L=$hardcode_minus_L_GCJ
18625
18626 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18627 # the resulting binary.
18628 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18629
18630 # Set to yes if building a shared library automatically hardcodes DIR into the library
18631 # and all subsequent libraries and executables linked against it.
18632 hardcode_automatic=$hardcode_automatic_GCJ
18633
18634 # Variables whose values should be saved in libtool wrapper scripts and
18635 # restored at relink time.
18636 variables_saved_for_relink="$variables_saved_for_relink"
18637
18638 # Whether libtool must link a program against all its dependency libraries.
18639 link_all_deplibs=$link_all_deplibs_GCJ
18640
18641 # Compile-time system search path for libraries
18642 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18643
18644 # Run-time system search path for libraries
18645 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18646
18647 # Fix the shell variable \$srcfile for the compiler.
18648 fix_srcfile_path="$fix_srcfile_path_GCJ"
18649
18650 # Set to yes if exported symbols are required.
18651 always_export_symbols=$always_export_symbols_GCJ
18652
18653 # The commands to list exported symbols.
18654 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18655
18656 # The commands to extract the exported symbol list from a shared archive.
18657 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18658
18659 # Symbols that should not be listed in the preloaded symbols.
18660 exclude_expsyms=$lt_exclude_expsyms_GCJ
18661
18662 # Symbols that must always be exported.
18663 include_expsyms=$lt_include_expsyms_GCJ
18664
18665 # ### END LIBTOOL TAG CONFIG: $tagname
18666
18667 __EOF__
18668
18669
18670 else
18671 # If there is no Makefile yet, we rely on a make rule to execute
18672 # `config.status --recheck' to rerun these tests and create the
18673 # libtool script then.
18674 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18675 if test -f "$ltmain_in"; then
18676 test -f Makefile && make "$ltmain"
18677 fi
18678 fi
18679
18680
18681 ac_ext=c
18682 ac_cpp='$CPP $CPPFLAGS'
18683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18686
18687 CC="$lt_save_CC"
18688
18689 else
18690 tagname=""
18691 fi
18692 ;;
18693
18694 RC)
18695
18696
18697
18698 # Source file extension for RC test sources.
18699 ac_ext=rc
18700
18701 # Object file extension for compiled RC test sources.
18702 objext=o
18703 objext_RC=$objext
18704
18705 # Code to be used in simple compile tests
18706 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18707
18708 # Code to be used in simple link tests
18709 lt_simple_link_test_code="$lt_simple_compile_test_code"
18710
18711 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18712
18713 # If no C compiler was specified, use CC.
18714 LTCC=${LTCC-"$CC"}
18715
18716 # Allow CC to be a program name with arguments.
18717 compiler=$CC
18718
18719
18720 # Allow CC to be a program name with arguments.
18721 lt_save_CC="$CC"
18722 CC=${RC-"windres"}
18723 compiler=$CC
18724 compiler_RC=$CC
18725 lt_cv_prog_compiler_c_o_RC=yes
18726
18727 # The else clause should only fire when bootstrapping the
18728 # libtool distribution, otherwise you forgot to ship ltmain.sh
18729 # with your package, and you will get complaints that there are
18730 # no rules to generate ltmain.sh.
18731 if test -f "$ltmain"; then
18732 # See if we are running on zsh, and set the options which allow our commands through
18733 # without removal of \ escapes.
18734 if test -n "${ZSH_VERSION+set}" ; then
18735 setopt NO_GLOB_SUBST
18736 fi
18737 # Now quote all the things that may contain metacharacters while being
18738 # careful not to overquote the AC_SUBSTed values. We take copies of the
18739 # variables and quote the copies for generation of the libtool script.
18740 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18741 SED SHELL STRIP \
18742 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18743 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18744 deplibs_check_method reload_flag reload_cmds need_locks \
18745 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18746 lt_cv_sys_global_symbol_to_c_name_address \
18747 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18748 old_postinstall_cmds old_postuninstall_cmds \
18749 compiler_RC \
18750 CC_RC \
18751 LD_RC \
18752 lt_prog_compiler_wl_RC \
18753 lt_prog_compiler_pic_RC \
18754 lt_prog_compiler_static_RC \
18755 lt_prog_compiler_no_builtin_flag_RC \
18756 export_dynamic_flag_spec_RC \
18757 thread_safe_flag_spec_RC \
18758 whole_archive_flag_spec_RC \
18759 enable_shared_with_static_runtimes_RC \
18760 old_archive_cmds_RC \
18761 old_archive_from_new_cmds_RC \
18762 predep_objects_RC \
18763 postdep_objects_RC \
18764 predeps_RC \
18765 postdeps_RC \
18766 compiler_lib_search_path_RC \
18767 archive_cmds_RC \
18768 archive_expsym_cmds_RC \
18769 postinstall_cmds_RC \
18770 postuninstall_cmds_RC \
18771 old_archive_from_expsyms_cmds_RC \
18772 allow_undefined_flag_RC \
18773 no_undefined_flag_RC \
18774 export_symbols_cmds_RC \
18775 hardcode_libdir_flag_spec_RC \
18776 hardcode_libdir_flag_spec_ld_RC \
18777 hardcode_libdir_separator_RC \
18778 hardcode_automatic_RC \
18779 module_cmds_RC \
18780 module_expsym_cmds_RC \
18781 lt_cv_prog_compiler_c_o_RC \
18782 exclude_expsyms_RC \
18783 include_expsyms_RC; do
18784
18785 case $var in
18786 old_archive_cmds_RC | \
18787 old_archive_from_new_cmds_RC | \
18788 archive_cmds_RC | \
18789 archive_expsym_cmds_RC | \
18790 module_cmds_RC | \
18791 module_expsym_cmds_RC | \
18792 old_archive_from_expsyms_cmds_RC | \
18793 export_symbols_cmds_RC | \
18794 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18795 postinstall_cmds | postuninstall_cmds | \
18796 old_postinstall_cmds | old_postuninstall_cmds | \
18797 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18798 # Double-quote double-evaled strings.
18799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18800 ;;
18801 *)
18802 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18803 ;;
18804 esac
18805 done
18806
18807 case $lt_echo in
18808 *'\$0 --fallback-echo"')
18809 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18810 ;;
18811 esac
18812
18813 cfgfile="$ofile"
18814
18815 cat <<__EOF__ >> "$cfgfile"
18816 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18817
18818 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18819
18820 # Shell to use when invoking shell scripts.
18821 SHELL=$lt_SHELL
18822
18823 # Whether or not to build shared libraries.
18824 build_libtool_libs=$enable_shared
18825
18826 # Whether or not to build static libraries.
18827 build_old_libs=$enable_static
18828
18829 # Whether or not to add -lc for building shared libraries.
18830 build_libtool_need_lc=$archive_cmds_need_lc_RC
18831
18832 # Whether or not to disallow shared libs when runtime libs are static
18833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18834
18835 # Whether or not to optimize for fast installation.
18836 fast_install=$enable_fast_install
18837
18838 # The host system.
18839 host_alias=$host_alias
18840 host=$host
18841
18842 # An echo program that does not interpret backslashes.
18843 echo=$lt_echo
18844
18845 # The archiver.
18846 AR=$lt_AR
18847 AR_FLAGS=$lt_AR_FLAGS
18848
18849 # A C compiler.
18850 LTCC=$lt_LTCC
18851
18852 # A language-specific compiler.
18853 CC=$lt_compiler_RC
18854
18855 # Is the compiler the GNU C compiler?
18856 with_gcc=$GCC_RC
18857
18858 # An ERE matcher.
18859 EGREP=$lt_EGREP
18860
18861 # The linker used to build libraries.
18862 LD=$lt_LD_RC
18863
18864 # Whether we need hard or soft links.
18865 LN_S=$lt_LN_S
18866
18867 # A BSD-compatible nm program.
18868 NM=$lt_NM
18869
18870 # A symbol stripping program
18871 STRIP=$lt_STRIP
18872
18873 # Used to examine libraries when file_magic_cmd begins "file"
18874 MAGIC_CMD=$MAGIC_CMD
18875
18876 # Used on cygwin: DLL creation program.
18877 DLLTOOL="$DLLTOOL"
18878
18879 # Used on cygwin: object dumper.
18880 OBJDUMP="$OBJDUMP"
18881
18882 # Used on cygwin: assembler.
18883 AS="$AS"
18884
18885 # The name of the directory that contains temporary libtool files.
18886 objdir=$objdir
18887
18888 # How to create reloadable object files.
18889 reload_flag=$lt_reload_flag
18890 reload_cmds=$lt_reload_cmds
18891
18892 # How to pass a linker flag through the compiler.
18893 wl=$lt_lt_prog_compiler_wl_RC
18894
18895 # Object file suffix (normally "o").
18896 objext="$ac_objext"
18897
18898 # Old archive suffix (normally "a").
18899 libext="$libext"
18900
18901 # Shared library suffix (normally ".so").
18902 shrext_cmds='$shrext_cmds'
18903
18904 # Executable file suffix (normally "").
18905 exeext="$exeext"
18906
18907 # Additional compiler flags for building library objects.
18908 pic_flag=$lt_lt_prog_compiler_pic_RC
18909 pic_mode=$pic_mode
18910
18911 # What is the maximum length of a command?
18912 max_cmd_len=$lt_cv_sys_max_cmd_len
18913
18914 # Does compiler simultaneously support -c and -o options?
18915 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18916
18917 # Must we lock files when doing compilation ?
18918 need_locks=$lt_need_locks
18919
18920 # Do we need the lib prefix for modules?
18921 need_lib_prefix=$need_lib_prefix
18922
18923 # Do we need a version for libraries?
18924 need_version=$need_version
18925
18926 # Whether dlopen is supported.
18927 dlopen_support=$enable_dlopen
18928
18929 # Whether dlopen of programs is supported.
18930 dlopen_self=$enable_dlopen_self
18931
18932 # Whether dlopen of statically linked programs is supported.
18933 dlopen_self_static=$enable_dlopen_self_static
18934
18935 # Compiler flag to prevent dynamic linking.
18936 link_static_flag=$lt_lt_prog_compiler_static_RC
18937
18938 # Compiler flag to turn off builtin functions.
18939 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18940
18941 # Compiler flag to allow reflexive dlopens.
18942 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18943
18944 # Compiler flag to generate shared objects directly from archives.
18945 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18946
18947 # Compiler flag to generate thread-safe objects.
18948 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18949
18950 # Library versioning type.
18951 version_type=$version_type
18952
18953 # Format of library name prefix.
18954 libname_spec=$lt_libname_spec
18955
18956 # List of archive names. First name is the real one, the rest are links.
18957 # The last name is the one that the linker finds with -lNAME.
18958 library_names_spec=$lt_library_names_spec
18959
18960 # The coded name of the library, if different from the real name.
18961 soname_spec=$lt_soname_spec
18962
18963 # Commands used to build and install an old-style archive.
18964 RANLIB=$lt_RANLIB
18965 old_archive_cmds=$lt_old_archive_cmds_RC
18966 old_postinstall_cmds=$lt_old_postinstall_cmds
18967 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18968
18969 # Create an old-style archive from a shared archive.
18970 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18971
18972 # Create a temporary old-style archive to link instead of a shared archive.
18973 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18974
18975 # Commands used to build and install a shared archive.
18976 archive_cmds=$lt_archive_cmds_RC
18977 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18978 postinstall_cmds=$lt_postinstall_cmds
18979 postuninstall_cmds=$lt_postuninstall_cmds
18980
18981 # Commands used to build a loadable module (assumed same as above if empty)
18982 module_cmds=$lt_module_cmds_RC
18983 module_expsym_cmds=$lt_module_expsym_cmds_RC
18984
18985 # Commands to strip libraries.
18986 old_striplib=$lt_old_striplib
18987 striplib=$lt_striplib
18988
18989 # Dependencies to place before the objects being linked to create a
18990 # shared library.
18991 predep_objects=$lt_predep_objects_RC
18992
18993 # Dependencies to place after the objects being linked to create a
18994 # shared library.
18995 postdep_objects=$lt_postdep_objects_RC
18996
18997 # Dependencies to place before the objects being linked to create a
18998 # shared library.
18999 predeps=$lt_predeps_RC
19000
19001 # Dependencies to place after the objects being linked to create a
19002 # shared library.
19003 postdeps=$lt_postdeps_RC
19004
19005 # The library search path used internally by the compiler when linking
19006 # a shared library.
19007 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19008
19009 # Method to check whether dependent libraries are shared objects.
19010 deplibs_check_method=$lt_deplibs_check_method
19011
19012 # Command to use when deplibs_check_method == file_magic.
19013 file_magic_cmd=$lt_file_magic_cmd
19014
19015 # Flag that allows shared libraries with undefined symbols to be built.
19016 allow_undefined_flag=$lt_allow_undefined_flag_RC
19017
19018 # Flag that forces no undefined symbols.
19019 no_undefined_flag=$lt_no_undefined_flag_RC
19020
19021 # Commands used to finish a libtool library installation in a directory.
19022 finish_cmds=$lt_finish_cmds
19023
19024 # Same as above, but a single script fragment to be evaled but not shown.
19025 finish_eval=$lt_finish_eval
19026
19027 # Take the output of nm and produce a listing of raw symbols and C names.
19028 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19029
19030 # Transform the output of nm in a proper C declaration
19031 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19032
19033 # Transform the output of nm in a C name address pair
19034 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19035
19036 # This is the shared library runtime path variable.
19037 runpath_var=$runpath_var
19038
19039 # This is the shared library path variable.
19040 shlibpath_var=$shlibpath_var
19041
19042 # Is shlibpath searched before the hard-coded library search path?
19043 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19044
19045 # How to hardcode a shared library path into an executable.
19046 hardcode_action=$hardcode_action_RC
19047
19048 # Whether we should hardcode library paths into libraries.
19049 hardcode_into_libs=$hardcode_into_libs
19050
19051 # Flag to hardcode \$libdir into a binary during linking.
19052 # This must work even if \$libdir does not exist.
19053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19054
19055 # If ld is used when linking, flag to hardcode \$libdir into
19056 # a binary during linking. This must work even if \$libdir does
19057 # not exist.
19058 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19059
19060 # Whether we need a single -rpath flag with a separated argument.
19061 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19062
19063 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19064 # resulting binary.
19065 hardcode_direct=$hardcode_direct_RC
19066
19067 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19068 # resulting binary.
19069 hardcode_minus_L=$hardcode_minus_L_RC
19070
19071 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19072 # the resulting binary.
19073 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19074
19075 # Set to yes if building a shared library automatically hardcodes DIR into the library
19076 # and all subsequent libraries and executables linked against it.
19077 hardcode_automatic=$hardcode_automatic_RC
19078
19079 # Variables whose values should be saved in libtool wrapper scripts and
19080 # restored at relink time.
19081 variables_saved_for_relink="$variables_saved_for_relink"
19082
19083 # Whether libtool must link a program against all its dependency libraries.
19084 link_all_deplibs=$link_all_deplibs_RC
19085
19086 # Compile-time system search path for libraries
19087 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19088
19089 # Run-time system search path for libraries
19090 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19091
19092 # Fix the shell variable \$srcfile for the compiler.
19093 fix_srcfile_path="$fix_srcfile_path_RC"
19094
19095 # Set to yes if exported symbols are required.
19096 always_export_symbols=$always_export_symbols_RC
19097
19098 # The commands to list exported symbols.
19099 export_symbols_cmds=$lt_export_symbols_cmds_RC
19100
19101 # The commands to extract the exported symbol list from a shared archive.
19102 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19103
19104 # Symbols that should not be listed in the preloaded symbols.
19105 exclude_expsyms=$lt_exclude_expsyms_RC
19106
19107 # Symbols that must always be exported.
19108 include_expsyms=$lt_include_expsyms_RC
19109
19110 # ### END LIBTOOL TAG CONFIG: $tagname
19111
19112 __EOF__
19113
19114
19115 else
19116 # If there is no Makefile yet, we rely on a make rule to execute
19117 # `config.status --recheck' to rerun these tests and create the
19118 # libtool script then.
19119 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19120 if test -f "$ltmain_in"; then
19121 test -f Makefile && make "$ltmain"
19122 fi
19123 fi
19124
19125
19126 ac_ext=c
19127 ac_cpp='$CPP $CPPFLAGS'
19128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19131
19132 CC="$lt_save_CC"
19133
19134 ;;
19135
19136 *)
19137 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19138 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19139 { (exit 1); exit 1; }; }
19140 ;;
19141 esac
19142
19143 # Append the new tag name to the list of available tags.
19144 if test -n "$tagname" ; then
19145 available_tags="$available_tags $tagname"
19146 fi
19147 fi
19148 done
19149 IFS="$lt_save_ifs"
19150
19151 # Now substitute the updated list of available tags.
19152 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19153 mv "${ofile}T" "$ofile"
19154 chmod +x "$ofile"
19155 else
19156 rm -f "${ofile}T"
19157 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19158 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19159 { (exit 1); exit 1; }; }
19160 fi
19161 fi
19162
19163
19164
19165 # This can be used to rebuild libtool when needed
19166 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19167
19168 # Always use our own libtool.
19169 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19170
19171 # Prevent multiple expansion
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192 ac_ext=c
19193 ac_cpp='$CPP $CPPFLAGS'
19194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19197 if test -n "$ac_tool_prefix"; then
19198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19200 echo "$as_me:$LINENO: checking for $ac_word" >&5
19201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19202 if test "${ac_cv_prog_CC+set}" = set; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19204 else
19205 if test -n "$CC"; then
19206 ac_cv_prog_CC="$CC" # Let the user override the test.
19207 else
19208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19209 for as_dir in $PATH
19210 do
19211 IFS=$as_save_IFS
19212 test -z "$as_dir" && as_dir=.
19213 for ac_exec_ext in '' $ac_executable_extensions; do
19214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19217 break 2
19218 fi
19219 done
19220 done
19221
19222 fi
19223 fi
19224 CC=$ac_cv_prog_CC
19225 if test -n "$CC"; then
19226 echo "$as_me:$LINENO: result: $CC" >&5
19227 echo "${ECHO_T}$CC" >&6
19228 else
19229 echo "$as_me:$LINENO: result: no" >&5
19230 echo "${ECHO_T}no" >&6
19231 fi
19232
19233 fi
19234 if test -z "$ac_cv_prog_CC"; then
19235 ac_ct_CC=$CC
19236 # Extract the first word of "gcc", so it can be a program name with args.
19237 set dummy gcc; ac_word=$2
19238 echo "$as_me:$LINENO: checking for $ac_word" >&5
19239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19242 else
19243 if test -n "$ac_ct_CC"; then
19244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19245 else
19246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19247 for as_dir in $PATH
19248 do
19249 IFS=$as_save_IFS
19250 test -z "$as_dir" && as_dir=.
19251 for ac_exec_ext in '' $ac_executable_extensions; do
19252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19253 ac_cv_prog_ac_ct_CC="gcc"
19254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19255 break 2
19256 fi
19257 done
19258 done
19259
19260 fi
19261 fi
19262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19263 if test -n "$ac_ct_CC"; then
19264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19265 echo "${ECHO_T}$ac_ct_CC" >&6
19266 else
19267 echo "$as_me:$LINENO: result: no" >&5
19268 echo "${ECHO_T}no" >&6
19269 fi
19270
19271 CC=$ac_ct_CC
19272 else
19273 CC="$ac_cv_prog_CC"
19274 fi
19275
19276 if test -z "$CC"; then
19277 if test -n "$ac_tool_prefix"; then
19278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19279 set dummy ${ac_tool_prefix}cc; ac_word=$2
19280 echo "$as_me:$LINENO: checking for $ac_word" >&5
19281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19282 if test "${ac_cv_prog_CC+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19284 else
19285 if test -n "$CC"; then
19286 ac_cv_prog_CC="$CC" # Let the user override the test.
19287 else
19288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19289 for as_dir in $PATH
19290 do
19291 IFS=$as_save_IFS
19292 test -z "$as_dir" && as_dir=.
19293 for ac_exec_ext in '' $ac_executable_extensions; do
19294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19295 ac_cv_prog_CC="${ac_tool_prefix}cc"
19296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19297 break 2
19298 fi
19299 done
19300 done
19301
19302 fi
19303 fi
19304 CC=$ac_cv_prog_CC
19305 if test -n "$CC"; then
19306 echo "$as_me:$LINENO: result: $CC" >&5
19307 echo "${ECHO_T}$CC" >&6
19308 else
19309 echo "$as_me:$LINENO: result: no" >&5
19310 echo "${ECHO_T}no" >&6
19311 fi
19312
19313 fi
19314 if test -z "$ac_cv_prog_CC"; then
19315 ac_ct_CC=$CC
19316 # Extract the first word of "cc", so it can be a program name with args.
19317 set dummy cc; ac_word=$2
19318 echo "$as_me:$LINENO: checking for $ac_word" >&5
19319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323 if test -n "$ac_ct_CC"; then
19324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19325 else
19326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19327 for as_dir in $PATH
19328 do
19329 IFS=$as_save_IFS
19330 test -z "$as_dir" && as_dir=.
19331 for ac_exec_ext in '' $ac_executable_extensions; do
19332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19333 ac_cv_prog_ac_ct_CC="cc"
19334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19335 break 2
19336 fi
19337 done
19338 done
19339
19340 fi
19341 fi
19342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19343 if test -n "$ac_ct_CC"; then
19344 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19345 echo "${ECHO_T}$ac_ct_CC" >&6
19346 else
19347 echo "$as_me:$LINENO: result: no" >&5
19348 echo "${ECHO_T}no" >&6
19349 fi
19350
19351 CC=$ac_ct_CC
19352 else
19353 CC="$ac_cv_prog_CC"
19354 fi
19355
19356 fi
19357 if test -z "$CC"; then
19358 # Extract the first word of "cc", so it can be a program name with args.
19359 set dummy cc; ac_word=$2
19360 echo "$as_me:$LINENO: checking for $ac_word" >&5
19361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19362 if test "${ac_cv_prog_CC+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365 if test -n "$CC"; then
19366 ac_cv_prog_CC="$CC" # Let the user override the test.
19367 else
19368 ac_prog_rejected=no
19369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19370 for as_dir in $PATH
19371 do
19372 IFS=$as_save_IFS
19373 test -z "$as_dir" && as_dir=.
19374 for ac_exec_ext in '' $ac_executable_extensions; do
19375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19377 ac_prog_rejected=yes
19378 continue
19379 fi
19380 ac_cv_prog_CC="cc"
19381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19382 break 2
19383 fi
19384 done
19385 done
19386
19387 if test $ac_prog_rejected = yes; then
19388 # We found a bogon in the path, so make sure we never use it.
19389 set dummy $ac_cv_prog_CC
19390 shift
19391 if test $# != 0; then
19392 # We chose a different compiler from the bogus one.
19393 # However, it has the same basename, so the bogon will be chosen
19394 # first if we set CC to just the basename; use the full file name.
19395 shift
19396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19397 fi
19398 fi
19399 fi
19400 fi
19401 CC=$ac_cv_prog_CC
19402 if test -n "$CC"; then
19403 echo "$as_me:$LINENO: result: $CC" >&5
19404 echo "${ECHO_T}$CC" >&6
19405 else
19406 echo "$as_me:$LINENO: result: no" >&5
19407 echo "${ECHO_T}no" >&6
19408 fi
19409
19410 fi
19411 if test -z "$CC"; then
19412 if test -n "$ac_tool_prefix"; then
19413 for ac_prog in cl
19414 do
19415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19417 echo "$as_me:$LINENO: checking for $ac_word" >&5
19418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19419 if test "${ac_cv_prog_CC+set}" = set; then
19420 echo $ECHO_N "(cached) $ECHO_C" >&6
19421 else
19422 if test -n "$CC"; then
19423 ac_cv_prog_CC="$CC" # Let the user override the test.
19424 else
19425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19426 for as_dir in $PATH
19427 do
19428 IFS=$as_save_IFS
19429 test -z "$as_dir" && as_dir=.
19430 for ac_exec_ext in '' $ac_executable_extensions; do
19431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19434 break 2
19435 fi
19436 done
19437 done
19438
19439 fi
19440 fi
19441 CC=$ac_cv_prog_CC
19442 if test -n "$CC"; then
19443 echo "$as_me:$LINENO: result: $CC" >&5
19444 echo "${ECHO_T}$CC" >&6
19445 else
19446 echo "$as_me:$LINENO: result: no" >&5
19447 echo "${ECHO_T}no" >&6
19448 fi
19449
19450 test -n "$CC" && break
19451 done
19452 fi
19453 if test -z "$CC"; then
19454 ac_ct_CC=$CC
19455 for ac_prog in cl
19456 do
19457 # Extract the first word of "$ac_prog", so it can be a program name with args.
19458 set dummy $ac_prog; ac_word=$2
19459 echo "$as_me:$LINENO: checking for $ac_word" >&5
19460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464 if test -n "$ac_ct_CC"; then
19465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19466 else
19467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19468 for as_dir in $PATH
19469 do
19470 IFS=$as_save_IFS
19471 test -z "$as_dir" && as_dir=.
19472 for ac_exec_ext in '' $ac_executable_extensions; do
19473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19474 ac_cv_prog_ac_ct_CC="$ac_prog"
19475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19476 break 2
19477 fi
19478 done
19479 done
19480
19481 fi
19482 fi
19483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19484 if test -n "$ac_ct_CC"; then
19485 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19486 echo "${ECHO_T}$ac_ct_CC" >&6
19487 else
19488 echo "$as_me:$LINENO: result: no" >&5
19489 echo "${ECHO_T}no" >&6
19490 fi
19491
19492 test -n "$ac_ct_CC" && break
19493 done
19494
19495 CC=$ac_ct_CC
19496 fi
19497
19498 fi
19499
19500
19501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19502 See \`config.log' for more details." >&5
19503 echo "$as_me: error: no acceptable C compiler found in \$PATH
19504 See \`config.log' for more details." >&2;}
19505 { (exit 1); exit 1; }; }
19506
19507 # Provide some information about the compiler.
19508 echo "$as_me:$LINENO:" \
19509 "checking for C compiler version" >&5
19510 ac_compiler=`set X $ac_compile; echo $2`
19511 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19512 (eval $ac_compiler --version </dev/null >&5) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }
19516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19517 (eval $ac_compiler -v </dev/null >&5) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }
19521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19522 (eval $ac_compiler -V </dev/null >&5) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }
19526
19527 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19528 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532 cat >conftest.$ac_ext <<_ACEOF
19533 /* confdefs.h. */
19534 _ACEOF
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h. */
19538
19539 int
19540 main ()
19541 {
19542 #ifndef __GNUC__
19543 choke me
19544 #endif
19545
19546 ;
19547 return 0;
19548 }
19549 _ACEOF
19550 rm -f conftest.$ac_objext
19551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19552 (eval $ac_compile) 2>conftest.er1
19553 ac_status=$?
19554 grep -v '^ *+' conftest.er1 >conftest.err
19555 rm -f conftest.er1
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } &&
19559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest.$ac_objext'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_compiler_gnu=yes
19572 else
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 ac_compiler_gnu=no
19577 fi
19578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19580
19581 fi
19582 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19583 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19584 GCC=`test $ac_compiler_gnu = yes && echo yes`
19585 ac_test_CFLAGS=${CFLAGS+set}
19586 ac_save_CFLAGS=$CFLAGS
19587 CFLAGS="-g"
19588 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19589 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19590 if test "${ac_cv_prog_cc_g+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593 cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h. */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599
19600 int
19601 main ()
19602 {
19603
19604 ;
19605 return 0;
19606 }
19607 _ACEOF
19608 rm -f conftest.$ac_objext
19609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19610 (eval $ac_compile) 2>conftest.er1
19611 ac_status=$?
19612 grep -v '^ *+' conftest.er1 >conftest.err
19613 rm -f conftest.er1
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
19617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; } &&
19623 { ac_try='test -s conftest.$ac_objext'
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; }; then
19629 ac_cv_prog_cc_g=yes
19630 else
19631 echo "$as_me: failed program was:" >&5
19632 sed 's/^/| /' conftest.$ac_ext >&5
19633
19634 ac_cv_prog_cc_g=no
19635 fi
19636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19637 fi
19638 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19639 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19640 if test "$ac_test_CFLAGS" = set; then
19641 CFLAGS=$ac_save_CFLAGS
19642 elif test $ac_cv_prog_cc_g = yes; then
19643 if test "$GCC" = yes; then
19644 CFLAGS="-g -O2"
19645 else
19646 CFLAGS="-g"
19647 fi
19648 else
19649 if test "$GCC" = yes; then
19650 CFLAGS="-O2"
19651 else
19652 CFLAGS=
19653 fi
19654 fi
19655 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19656 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19657 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660 ac_cv_prog_cc_stdc=no
19661 ac_save_CC=$CC
19662 cat >conftest.$ac_ext <<_ACEOF
19663 /* confdefs.h. */
19664 _ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h. */
19668 #include <stdarg.h>
19669 #include <stdio.h>
19670 #include <sys/types.h>
19671 #include <sys/stat.h>
19672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19673 struct buf { int x; };
19674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19675 static char *e (p, i)
19676 char **p;
19677 int i;
19678 {
19679 return p[i];
19680 }
19681 static char *f (char * (*g) (char **, int), char **p, ...)
19682 {
19683 char *s;
19684 va_list v;
19685 va_start (v,p);
19686 s = g (p, va_arg (v,int));
19687 va_end (v);
19688 return s;
19689 }
19690
19691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19692 function prototypes and stuff, but not '\xHH' hex character constants.
19693 These don't provoke an error unfortunately, instead are silently treated
19694 as 'x'. The following induces an error, until -std1 is added to get
19695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19696 array size at least. It's necessary to write '\x00'==0 to get something
19697 that's true only with -std1. */
19698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19699
19700 int test (int i, double x);
19701 struct s1 {int (*f) (int a);};
19702 struct s2 {int (*f) (double a);};
19703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19704 int argc;
19705 char **argv;
19706 int
19707 main ()
19708 {
19709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19710 ;
19711 return 0;
19712 }
19713 _ACEOF
19714 # Don't try gcc -ansi; that turns off useful extensions and
19715 # breaks some systems' header files.
19716 # AIX -qlanglvl=ansi
19717 # Ultrix and OSF/1 -std1
19718 # HP-UX 10.20 and later -Ae
19719 # HP-UX older versions -Aa -D_HPUX_SOURCE
19720 # SVR4 -Xc -D__EXTENSIONS__
19721 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19722 do
19723 CC="$ac_save_CC $ac_arg"
19724 rm -f conftest.$ac_objext
19725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19726 (eval $ac_compile) 2>conftest.er1
19727 ac_status=$?
19728 grep -v '^ *+' conftest.er1 >conftest.err
19729 rm -f conftest.er1
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
19733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19736 ac_status=$?
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; } &&
19739 { ac_try='test -s conftest.$ac_objext'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19742 ac_status=$?
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19745 ac_cv_prog_cc_stdc=$ac_arg
19746 break
19747 else
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751 fi
19752 rm -f conftest.err conftest.$ac_objext
19753 done
19754 rm -f conftest.$ac_ext conftest.$ac_objext
19755 CC=$ac_save_CC
19756
19757 fi
19758
19759 case "x$ac_cv_prog_cc_stdc" in
19760 x|xno)
19761 echo "$as_me:$LINENO: result: none needed" >&5
19762 echo "${ECHO_T}none needed" >&6 ;;
19763 *)
19764 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19765 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19766 CC="$CC $ac_cv_prog_cc_stdc" ;;
19767 esac
19768
19769 # Some people use a C++ compiler to compile C. Since we use `exit',
19770 # in C++ we need to declare it. In case someone uses the same compiler
19771 # for both compiling C and C++ we need to have the C++ compiler decide
19772 # the declaration of exit, since it's the most demanding environment.
19773 cat >conftest.$ac_ext <<_ACEOF
19774 #ifndef __cplusplus
19775 choke me
19776 #endif
19777 _ACEOF
19778 rm -f conftest.$ac_objext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19780 (eval $ac_compile) 2>conftest.er1
19781 ac_status=$?
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
19787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest.$ac_objext'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 for ac_declaration in \
19800 '' \
19801 'extern "C" void std::exit (int) throw (); using std::exit;' \
19802 'extern "C" void std::exit (int); using std::exit;' \
19803 'extern "C" void exit (int) throw ();' \
19804 'extern "C" void exit (int);' \
19805 'void exit (int);'
19806 do
19807 cat >conftest.$ac_ext <<_ACEOF
19808 /* confdefs.h. */
19809 _ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h. */
19813 $ac_declaration
19814 #include <stdlib.h>
19815 int
19816 main ()
19817 {
19818 exit (42);
19819 ;
19820 return 0;
19821 }
19822 _ACEOF
19823 rm -f conftest.$ac_objext
19824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19825 (eval $ac_compile) 2>conftest.er1
19826 ac_status=$?
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest.$ac_objext'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 :
19845 else
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19848
19849 continue
19850 fi
19851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h. */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 $ac_declaration
19859 int
19860 main ()
19861 {
19862 exit (42);
19863 ;
19864 return 0;
19865 }
19866 _ACEOF
19867 rm -f conftest.$ac_objext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19869 (eval $ac_compile) 2>conftest.er1
19870 ac_status=$?
19871 grep -v '^ *+' conftest.er1 >conftest.err
19872 rm -f conftest.er1
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } &&
19876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest.$ac_objext'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 break
19889 else
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 fi
19894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19895 done
19896 rm -f conftest*
19897 if test -n "$ac_declaration"; then
19898 echo '#ifdef __cplusplus' >>confdefs.h
19899 echo $ac_declaration >>confdefs.h
19900 echo '#endif' >>confdefs.h
19901 fi
19902
19903 else
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19906
19907 fi
19908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19909 ac_ext=c
19910 ac_cpp='$CPP $CPPFLAGS'
19911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19914
19915 depcc="$CC" am_compiler_list=
19916
19917 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19918 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19919 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 else
19922 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19923 # We make a subdir and do the tests there. Otherwise we can end up
19924 # making bogus files that we don't know about and never remove. For
19925 # instance it was reported that on HP-UX the gcc test will end up
19926 # making a dummy file named `D' -- because `-MD' means `put the output
19927 # in D'.
19928 mkdir conftest.dir
19929 # Copy depcomp to subdir because otherwise we won't find it if we're
19930 # using a relative directory.
19931 cp "$am_depcomp" conftest.dir
19932 cd conftest.dir
19933 # We will build objects and dependencies in a subdirectory because
19934 # it helps to detect inapplicable dependency modes. For instance
19935 # both Tru64's cc and ICC support -MD to output dependencies as a
19936 # side effect of compilation, but ICC will put the dependencies in
19937 # the current directory while Tru64 will put them in the object
19938 # directory.
19939 mkdir sub
19940
19941 am_cv_CC_dependencies_compiler_type=none
19942 if test "$am_compiler_list" = ""; then
19943 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19944 fi
19945 for depmode in $am_compiler_list; do
19946 # Setup a source with many dependencies, because some compilers
19947 # like to wrap large dependency lists on column 80 (with \), and
19948 # we should not choose a depcomp mode which is confused by this.
19949 #
19950 # We need to recreate these files for each test, as the compiler may
19951 # overwrite some of them when testing with obscure command lines.
19952 # This happens at least with the AIX C compiler.
19953 : > sub/conftest.c
19954 for i in 1 2 3 4 5 6; do
19955 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19956 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19957 # Solaris 8's {/usr,}/bin/sh.
19958 touch sub/conftst$i.h
19959 done
19960 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19961
19962 case $depmode in
19963 nosideeffect)
19964 # after this tag, mechanisms are not by side-effect, so they'll
19965 # only be used when explicitly requested
19966 if test "x$enable_dependency_tracking" = xyes; then
19967 continue
19968 else
19969 break
19970 fi
19971 ;;
19972 none) break ;;
19973 esac
19974 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19975 # mode. It turns out that the SunPro C++ compiler does not properly
19976 # handle `-M -o', and we need to detect this.
19977 if depmode=$depmode \
19978 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19979 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19980 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19981 >/dev/null 2>conftest.err &&
19982 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19983 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19984 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19985 # icc doesn't choke on unknown options, it will just issue warnings
19986 # or remarks (even with -Werror). So we grep stderr for any message
19987 # that says an option was ignored or not supported.
19988 # When given -MP, icc 7.0 and 7.1 complain thusly:
19989 # icc: Command line warning: ignoring option '-M'; no argument required
19990 # The diagnosis changed in icc 8.0:
19991 # icc: Command line remark: option '-MP' not supported
19992 if (grep 'ignoring option' conftest.err ||
19993 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19994 am_cv_CC_dependencies_compiler_type=$depmode
19995 break
19996 fi
19997 fi
19998 done
19999
20000 cd ..
20001 rm -rf conftest.dir
20002 else
20003 am_cv_CC_dependencies_compiler_type=none
20004 fi
20005
20006 fi
20007 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20008 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20009 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20010
20011
20012
20013 if
20014 test "x$enable_dependency_tracking" != xno \
20015 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20016 am__fastdepCC_TRUE=
20017 am__fastdepCC_FALSE='#'
20018 else
20019 am__fastdepCC_TRUE='#'
20020 am__fastdepCC_FALSE=
20021 fi
20022
20023
20024 ac_ext=cc
20025 ac_cpp='$CXXCPP $CPPFLAGS'
20026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20029 if test -n "$ac_tool_prefix"; then
20030 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20031 do
20032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20034 echo "$as_me:$LINENO: checking for $ac_word" >&5
20035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20036 if test "${ac_cv_prog_CXX+set}" = set; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 else
20039 if test -n "$CXX"; then
20040 ac_cv_prog_CXX="$CXX" # Let the user override the test.
20041 else
20042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20043 for as_dir in $PATH
20044 do
20045 IFS=$as_save_IFS
20046 test -z "$as_dir" && as_dir=.
20047 for ac_exec_ext in '' $ac_executable_extensions; do
20048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20049 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20051 break 2
20052 fi
20053 done
20054 done
20055
20056 fi
20057 fi
20058 CXX=$ac_cv_prog_CXX
20059 if test -n "$CXX"; then
20060 echo "$as_me:$LINENO: result: $CXX" >&5
20061 echo "${ECHO_T}$CXX" >&6
20062 else
20063 echo "$as_me:$LINENO: result: no" >&5
20064 echo "${ECHO_T}no" >&6
20065 fi
20066
20067 test -n "$CXX" && break
20068 done
20069 fi
20070 if test -z "$CXX"; then
20071 ac_ct_CXX=$CXX
20072 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20073 do
20074 # Extract the first word of "$ac_prog", so it can be a program name with args.
20075 set dummy $ac_prog; ac_word=$2
20076 echo "$as_me:$LINENO: checking for $ac_word" >&5
20077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20078 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 else
20081 if test -n "$ac_ct_CXX"; then
20082 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20083 else
20084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20085 for as_dir in $PATH
20086 do
20087 IFS=$as_save_IFS
20088 test -z "$as_dir" && as_dir=.
20089 for ac_exec_ext in '' $ac_executable_extensions; do
20090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20091 ac_cv_prog_ac_ct_CXX="$ac_prog"
20092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20093 break 2
20094 fi
20095 done
20096 done
20097
20098 fi
20099 fi
20100 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20101 if test -n "$ac_ct_CXX"; then
20102 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20103 echo "${ECHO_T}$ac_ct_CXX" >&6
20104 else
20105 echo "$as_me:$LINENO: result: no" >&5
20106 echo "${ECHO_T}no" >&6
20107 fi
20108
20109 test -n "$ac_ct_CXX" && break
20110 done
20111 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
20112
20113 CXX=$ac_ct_CXX
20114 fi
20115
20116
20117 # Provide some information about the compiler.
20118 echo "$as_me:$LINENO:" \
20119 "checking for C++ compiler version" >&5
20120 ac_compiler=`set X $ac_compile; echo $2`
20121 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20122 (eval $ac_compiler --version </dev/null >&5) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }
20126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20127 (eval $ac_compiler -v </dev/null >&5) 2>&5
20128 ac_status=$?
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }
20131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20132 (eval $ac_compiler -V </dev/null >&5) 2>&5
20133 ac_status=$?
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }
20136
20137 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20138 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
20139 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148
20149 int
20150 main ()
20151 {
20152 #ifndef __GNUC__
20153 choke me
20154 #endif
20155
20156 ;
20157 return 0;
20158 }
20159 _ACEOF
20160 rm -f conftest.$ac_objext
20161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20162 (eval $ac_compile) 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
20169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; } &&
20175 { ac_try='test -s conftest.$ac_objext'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
20181 ac_compiler_gnu=yes
20182 else
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185
20186 ac_compiler_gnu=no
20187 fi
20188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20189 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20190
20191 fi
20192 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20193 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
20194 GXX=`test $ac_compiler_gnu = yes && echo yes`
20195 ac_test_CXXFLAGS=${CXXFLAGS+set}
20196 ac_save_CXXFLAGS=$CXXFLAGS
20197 CXXFLAGS="-g"
20198 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20199 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
20200 if test "${ac_cv_prog_cxx_g+set}" = set; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 else
20203 cat >conftest.$ac_ext <<_ACEOF
20204 /* confdefs.h. */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20209
20210 int
20211 main ()
20212 {
20213
20214 ;
20215 return 0;
20216 }
20217 _ACEOF
20218 rm -f conftest.$ac_objext
20219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220 (eval $ac_compile) 2>conftest.er1
20221 ac_status=$?
20222 grep -v '^ *+' conftest.er1 >conftest.err
20223 rm -f conftest.er1
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
20227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20230 ac_status=$?
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; } &&
20233 { ac_try='test -s conftest.$ac_objext'
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 ac_cv_prog_cxx_g=yes
20240 else
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20243
20244 ac_cv_prog_cxx_g=no
20245 fi
20246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20247 fi
20248 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20249 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
20250 if test "$ac_test_CXXFLAGS" = set; then
20251 CXXFLAGS=$ac_save_CXXFLAGS
20252 elif test $ac_cv_prog_cxx_g = yes; then
20253 if test "$GXX" = yes; then
20254 CXXFLAGS="-g -O2"
20255 else
20256 CXXFLAGS="-g"
20257 fi
20258 else
20259 if test "$GXX" = yes; then
20260 CXXFLAGS="-O2"
20261 else
20262 CXXFLAGS=
20263 fi
20264 fi
20265 for ac_declaration in \
20266 '' \
20267 'extern "C" void std::exit (int) throw (); using std::exit;' \
20268 'extern "C" void std::exit (int); using std::exit;' \
20269 'extern "C" void exit (int) throw ();' \
20270 'extern "C" void exit (int);' \
20271 'void exit (int);'
20272 do
20273 cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h. */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20279 $ac_declaration
20280 #include <stdlib.h>
20281 int
20282 main ()
20283 {
20284 exit (42);
20285 ;
20286 return 0;
20287 }
20288 _ACEOF
20289 rm -f conftest.$ac_objext
20290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20291 (eval $ac_compile) 2>conftest.er1
20292 ac_status=$?
20293 grep -v '^ *+' conftest.er1 >conftest.err
20294 rm -f conftest.er1
20295 cat conftest.err >&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } &&
20298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20301 ac_status=$?
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; } &&
20304 { ac_try='test -s conftest.$ac_objext'
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20307 ac_status=$?
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; }; then
20310 :
20311 else
20312 echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20314
20315 continue
20316 fi
20317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20318 cat >conftest.$ac_ext <<_ACEOF
20319 /* confdefs.h. */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 $ac_declaration
20325 int
20326 main ()
20327 {
20328 exit (42);
20329 ;
20330 return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest.$ac_objext
20334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20335 (eval $ac_compile) 2>conftest.er1
20336 ac_status=$?
20337 grep -v '^ *+' conftest.er1 >conftest.err
20338 rm -f conftest.er1
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } &&
20342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; } &&
20348 { ac_try='test -s conftest.$ac_objext'
20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350 (eval $ac_try) 2>&5
20351 ac_status=$?
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; }; then
20354 break
20355 else
20356 echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20358
20359 fi
20360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20361 done
20362 rm -f conftest*
20363 if test -n "$ac_declaration"; then
20364 echo '#ifdef __cplusplus' >>confdefs.h
20365 echo $ac_declaration >>confdefs.h
20366 echo '#endif' >>confdefs.h
20367 fi
20368
20369 ac_ext=c
20370 ac_cpp='$CPP $CPPFLAGS'
20371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20374
20375 depcc="$CXX" am_compiler_list=
20376
20377 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20378 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20379 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 else
20382 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20383 # We make a subdir and do the tests there. Otherwise we can end up
20384 # making bogus files that we don't know about and never remove. For
20385 # instance it was reported that on HP-UX the gcc test will end up
20386 # making a dummy file named `D' -- because `-MD' means `put the output
20387 # in D'.
20388 mkdir conftest.dir
20389 # Copy depcomp to subdir because otherwise we won't find it if we're
20390 # using a relative directory.
20391 cp "$am_depcomp" conftest.dir
20392 cd conftest.dir
20393 # We will build objects and dependencies in a subdirectory because
20394 # it helps to detect inapplicable dependency modes. For instance
20395 # both Tru64's cc and ICC support -MD to output dependencies as a
20396 # side effect of compilation, but ICC will put the dependencies in
20397 # the current directory while Tru64 will put them in the object
20398 # directory.
20399 mkdir sub
20400
20401 am_cv_CXX_dependencies_compiler_type=none
20402 if test "$am_compiler_list" = ""; then
20403 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20404 fi
20405 for depmode in $am_compiler_list; do
20406 # Setup a source with many dependencies, because some compilers
20407 # like to wrap large dependency lists on column 80 (with \), and
20408 # we should not choose a depcomp mode which is confused by this.
20409 #
20410 # We need to recreate these files for each test, as the compiler may
20411 # overwrite some of them when testing with obscure command lines.
20412 # This happens at least with the AIX C compiler.
20413 : > sub/conftest.c
20414 for i in 1 2 3 4 5 6; do
20415 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20416 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20417 # Solaris 8's {/usr,}/bin/sh.
20418 touch sub/conftst$i.h
20419 done
20420 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20421
20422 case $depmode in
20423 nosideeffect)
20424 # after this tag, mechanisms are not by side-effect, so they'll
20425 # only be used when explicitly requested
20426 if test "x$enable_dependency_tracking" = xyes; then
20427 continue
20428 else
20429 break
20430 fi
20431 ;;
20432 none) break ;;
20433 esac
20434 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20435 # mode. It turns out that the SunPro C++ compiler does not properly
20436 # handle `-M -o', and we need to detect this.
20437 if depmode=$depmode \
20438 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20439 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20440 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20441 >/dev/null 2>conftest.err &&
20442 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20443 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20444 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20445 # icc doesn't choke on unknown options, it will just issue warnings
20446 # or remarks (even with -Werror). So we grep stderr for any message
20447 # that says an option was ignored or not supported.
20448 # When given -MP, icc 7.0 and 7.1 complain thusly:
20449 # icc: Command line warning: ignoring option '-M'; no argument required
20450 # The diagnosis changed in icc 8.0:
20451 # icc: Command line remark: option '-MP' not supported
20452 if (grep 'ignoring option' conftest.err ||
20453 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20454 am_cv_CXX_dependencies_compiler_type=$depmode
20455 break
20456 fi
20457 fi
20458 done
20459
20460 cd ..
20461 rm -rf conftest.dir
20462 else
20463 am_cv_CXX_dependencies_compiler_type=none
20464 fi
20465
20466 fi
20467 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20468 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
20469 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20470
20471
20472
20473 if
20474 test "x$enable_dependency_tracking" != xno \
20475 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20476 am__fastdepCXX_TRUE=
20477 am__fastdepCXX_FALSE='#'
20478 else
20479 am__fastdepCXX_TRUE='#'
20480 am__fastdepCXX_FALSE=
20481 fi
2048216131
2048316132
2048416133 # Find a good install program. We prefer a C program (faster),
2049416143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2049516144 # OS/2's system install, which has a completely different semantic
2049616145 # ./install, which can be erroneously created by make from ./install.sh.
20497 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20498 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
16146 # Reject install programs that cannot install multiple files.
16147 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16148 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2049916149 if test -z "$INSTALL"; then
2050016150 if test "${ac_cv_path_install+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 $as_echo_n "(cached) " >&6
2050216152 else
2050316153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050416154 for as_dir in $PATH
2051716167 # by default.
2051816168 for ac_prog in ginstall scoinst install; do
2051916169 for ac_exec_ext in '' $ac_executable_extensions; do
20520 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
16170 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2052116171 if test $ac_prog = install &&
2052216172 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2052316173 # AIX install. It has an incompatible calling convention.
2052716177 # program-specific install script used by HP pwplus--don't use.
2052816178 :
2052916179 else
20530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20531 break 3
16180 rm -rf conftest.one conftest.two conftest.dir
16181 echo one > conftest.one
16182 echo two > conftest.two
16183 mkdir conftest.dir
16184 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
16185 test -s conftest.one && test -s conftest.two &&
16186 test -s conftest.dir/conftest.one &&
16187 test -s conftest.dir/conftest.two
16188 then
16189 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16190 break 3
16191 fi
2053216192 fi
2053316193 fi
2053416194 done
2053516195 done
2053616196 ;;
2053716197 esac
16198
2053816199 done
20539
16200 IFS=$as_save_IFS
16201
16202 rm -rf conftest.one conftest.two conftest.dir
2054016203
2054116204 fi
2054216205 if test "${ac_cv_path_install+set}" = set; then
2054316206 INSTALL=$ac_cv_path_install
2054416207 else
20545 # As a last resort, use the slow shell script. We don't cache a
20546 # path for INSTALL within a source directory, because that will
16208 # As a last resort, use the slow shell script. Don't cache a
16209 # value for INSTALL within a source directory, because that will
2054716210 # break other packages using the cache if that directory is
20548 # removed, or if the path is relative.
16211 # removed, or if the value is a relative name.
2054916212 INSTALL=$ac_install_sh
2055016213 fi
2055116214 fi
20552 echo "$as_me:$LINENO: result: $INSTALL" >&5
20553 echo "${ECHO_T}$INSTALL" >&6
16215 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
16216 $as_echo "$INSTALL" >&6; }
2055416217
2055516218 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2055616219 # It thinks the first close brace ends the variable substitution.
2056116224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2056216225
2056316226
20564
20565 if test "x$ac_path_x_has_been_run" != xyes; then
20566 echo "$as_me:$LINENO: checking for X" >&5
20567 echo $ECHO_N "checking for X... $ECHO_C" >&6
20568
20569 ac_path_x_has_been_run=yes
20570
20571 # Check whether --with-x or --without-x was given.
16227 { $as_echo "$as_me:$LINENO: checking for X" >&5
16228 $as_echo_n "checking for X... " >&6; }
16229
16230
16231 # Check whether --with-x was given.
2057216232 if test "${with_x+set}" = set; then
20573 withval="$with_x"
20574
20575 fi;
16233 withval=$with_x;
16234 fi
16235
2057616236 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2057716237 if test "x$with_x" = xno; then
2057816238 # The user explicitly disabled X.
2057916239 have_x=disabled
2058016240 else
20581 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20582 # Both variables are already set.
20583 have_x=yes
20584 else
20585 if test "${ac_cv_have_x+set}" = set; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 case $x_includes,$x_libraries in #(
16242 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
16243 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
16244 { (exit 1); exit 1; }; };; #(
16245 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
16246 $as_echo_n "(cached) " >&6
2058716247 else
2058816248 # One or both of the vars are not set, and there is no cached value.
2058916249 ac_x_includes=no ac_x_libraries=no
20590 rm -fr conftest.dir
16250 rm -f -r conftest.dir
2059116251 if mkdir conftest.dir; then
2059216252 cd conftest.dir
20593 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2059416253 cat >Imakefile <<'_ACEOF'
20595 acfindx:
20596 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
16254 incroot:
16255 @echo incroot='${INCROOT}'
16256 usrlibdir:
16257 @echo usrlibdir='${USRLIBDIR}'
16258 libdir:
16259 @echo libdir='${LIBDIR}'
2059716260 _ACEOF
20598 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
16261 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
2059916262 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20600 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
16263 for ac_var in incroot usrlibdir libdir; do
16264 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16265 done
2060116266 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20602 for ac_extension in a so sl; do
20603 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20604 test -f $ac_im_libdir/libX11.$ac_extension; then
16267 for ac_extension in a so sl dylib la dll; do
16268 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16269 test -f "$ac_im_libdir/libX11.$ac_extension"; then
2060516270 ac_im_usrlibdir=$ac_im_libdir; break
2060616271 fi
2060716272 done
2060916274 # bogus both because they are the default anyway, and because
2061016275 # using them would break gcc on systems where it needs fixed includes.
2061116276 case $ac_im_incroot in
20612 /usr/include) ;;
16277 /usr/include) ac_x_includes= ;;
2061316278 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2061416279 esac
2061516280 case $ac_im_usrlibdir in
20616 /usr/lib | /lib) ;;
16281 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
2061716282 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2061816283 esac
2061916284 fi
2062016285 cd ..
20621 rm -fr conftest.dir
16286 rm -f -r conftest.dir
2062216287 fi
2062316288
2062416289 # Standard set of common directories for X headers.
2065916324 /usr/openwin/share/include'
2066016325
2066116326 if test "$ac_x_includes" = no; then
20662 # Guess where to find include files, by looking for a specified header file.
16327 # Guess where to find include files, by looking for Xlib.h.
2066316328 # First, try using that file with no special directory specified.
2066416329 cat >conftest.$ac_ext <<_ACEOF
2066516330 /* confdefs.h. */
2066716332 cat confdefs.h >>conftest.$ac_ext
2066816333 cat >>conftest.$ac_ext <<_ACEOF
2066916334 /* end confdefs.h. */
20670 #include <X11/Intrinsic.h>
16335 #include <X11/Xlib.h>
2067116336 _ACEOF
20672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16337 if { (ac_try="$ac_cpp conftest.$ac_ext"
16338 case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16341 esac
16342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16343 $as_echo "$ac_try_echo") >&5
16344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2067416345 ac_status=$?
2067516346 grep -v '^ *+' conftest.er1 >conftest.err
2067616347 rm -f conftest.er1
2067716348 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } >/dev/null; then
20680 if test -s conftest.err; then
20681 ac_cpp_err=$ac_c_preproc_warn_flag
20682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20683 else
20684 ac_cpp_err=
20685 fi
20686 else
20687 ac_cpp_err=yes
20688 fi
20689 if test -z "$ac_cpp_err"; then
16349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } >/dev/null && {
16351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16352 test ! -s conftest.err
16353 }; then
2069016354 # We can compile using X headers with no special include directory.
2069116355 ac_x_includes=
2069216356 else
20693 echo "$as_me: failed program was:" >&5
16357 $as_echo "$as_me: failed program was:" >&5
2069416358 sed 's/^/| /' conftest.$ac_ext >&5
2069516359
2069616360 for ac_dir in $ac_x_header_dirs; do
20697 if test -r "$ac_dir/X11/Intrinsic.h"; then
16361 if test -r "$ac_dir/X11/Xlib.h"; then
2069816362 ac_x_includes=$ac_dir
2069916363 break
2070016364 fi
2070116365 done
2070216366 fi
16367
2070316368 rm -f conftest.err conftest.$ac_ext
2070416369 fi # $ac_x_includes = no
2070516370
2070816373 # See if we find them without any special options.
2070916374 # Don't add to $LIBS permanently.
2071016375 ac_save_LIBS=$LIBS
20711 LIBS="-lXt $LIBS"
16376 LIBS="-lX11 $LIBS"
2071216377 cat >conftest.$ac_ext <<_ACEOF
2071316378 /* confdefs.h. */
2071416379 _ACEOF
2071516380 cat confdefs.h >>conftest.$ac_ext
2071616381 cat >>conftest.$ac_ext <<_ACEOF
2071716382 /* end confdefs.h. */
20718 #include <X11/Intrinsic.h>
16383 #include <X11/Xlib.h>
2071916384 int
2072016385 main ()
2072116386 {
20722 XtMalloc (0)
16387 XrmInitialize ()
2072316388 ;
2072416389 return 0;
2072516390 }
2072616391 _ACEOF
2072716392 rm -f conftest.$ac_objext conftest$ac_exeext
20728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20729 (eval $ac_link) 2>conftest.er1
16393 if { (ac_try="$ac_link"
16394 case "(($ac_try" in
16395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396 *) ac_try_echo=$ac_try;;
16397 esac
16398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16399 $as_echo "$ac_try_echo") >&5
16400 (eval "$ac_link") 2>conftest.er1
2073016401 ac_status=$?
2073116402 grep -v '^ *+' conftest.er1 >conftest.err
2073216403 rm -f conftest.er1
2073316404 cat conftest.err >&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } &&
20736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; } &&
20742 { ac_try='test -s conftest$ac_exeext'
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
16405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } && {
16407 test -z "$ac_c_werror_flag" ||
16408 test ! -s conftest.err
16409 } && test -s conftest$ac_exeext && {
16410 test "$cross_compiling" = yes ||
16411 $as_test_x conftest$ac_exeext
16412 }; then
2074816413 LIBS=$ac_save_LIBS
2074916414 # We can link X programs with no special library path.
2075016415 ac_x_libraries=
2075116416 else
20752 echo "$as_me: failed program was:" >&5
16417 $as_echo "$as_me: failed program was:" >&5
2075316418 sed 's/^/| /' conftest.$ac_ext >&5
2075416419
20755 LIBS=$ac_save_LIBS
20756 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16420 LIBS=$ac_save_LIBS
16421 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2075716422 do
2075816423 # Don't even attempt the hair of trying to link an X program!
20759 for ac_extension in a so sl; do
20760 if test -r $ac_dir/libXt.$ac_extension; then
16424 for ac_extension in a so sl dylib la dll; do
16425 if test -r "$ac_dir/libX11.$ac_extension"; then
2076116426 ac_x_libraries=$ac_dir
2076216427 break 2
2076316428 fi
2076416429 done
2076516430 done
2076616431 fi
20767 rm -f conftest.err conftest.$ac_objext \
16432
16433 rm -rf conftest.dSYM
16434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2076816435 conftest$ac_exeext conftest.$ac_ext
2076916436 fi # $ac_x_libraries = no
2077016437
20771 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20772 # Didn't find X anywhere. Cache the known absence of X.
20773 ac_cv_have_x="have_x=no"
20774 else
20775 # Record where we found X for the cache.
20776 ac_cv_have_x="have_x=yes \
20777 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20778 fi
20779 fi
20780
20781 fi
16438 case $ac_x_includes,$ac_x_libraries in #(
16439 no,* | *,no | *\'*)
16440 # Didn't find X, or a directory has "'" in its name.
16441 ac_cv_have_x="have_x=no";; #(
16442 *)
16443 # Record where we found X for the cache.
16444 ac_cv_have_x="have_x=yes\
16445 ac_x_includes='$ac_x_includes'\
16446 ac_x_libraries='$ac_x_libraries'"
16447 esac
16448 fi
16449 ;; #(
16450 *) have_x=yes;;
16451 esac
2078216452 eval "$ac_cv_have_x"
2078316453 fi # $with_x != no
2078416454
2078516455 if test "$have_x" != yes; then
20786 echo "$as_me:$LINENO: result: $have_x" >&5
20787 echo "${ECHO_T}$have_x" >&6
16456 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
16457 $as_echo "$have_x" >&6; }
2078816458 no_x=yes
2078916459 else
2079016460 # If each of the values was on the command line, it overrides each guess.
2079116461 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2079216462 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2079316463 # Update the cache value to reflect the command line values.
20794 ac_cv_have_x="have_x=yes \
20795 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20796 # It might be that x_includes is empty (headers are found in the
20797 # standard search path. Then output the corresponding message
20798 ac_out_x_includes=$x_includes
20799 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
20800 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
20801 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
20802 fi
20803
20804 fi
16464 ac_cv_have_x="have_x=yes\
16465 ac_x_includes='$x_includes'\
16466 ac_x_libraries='$x_libraries'"
16467 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
16468 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16469 fi
16470
2080516471 if test "$no_x" = yes; then
2080616472 # Not all programs may use this symbol, but it does not hurt to define it.
2080716473
2082016486 X_LIBS="$X_LIBS -L$x_libraries"
2082116487 # For Solaris; some versions of Sun CC require a space after -R and
2082216488 # others require no space. Words are not sufficient . . . .
20823 case `(uname -sr) 2>/dev/null` in
20824 "SunOS 5"*)
20825 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20826 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
20827 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20828 cat >conftest.$ac_ext <<_ACEOF
16489 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
16490 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
16491 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
16492 ac_xsave_c_werror_flag=$ac_c_werror_flag
16493 ac_c_werror_flag=yes
16494 cat >conftest.$ac_ext <<_ACEOF
2082916495 /* confdefs.h. */
2083016496 _ACEOF
2083116497 cat confdefs.h >>conftest.$ac_ext
2084116507 }
2084216508 _ACEOF
2084316509 rm -f conftest.$ac_objext conftest$ac_exeext
20844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20845 (eval $ac_link) 2>conftest.er1
16510 if { (ac_try="$ac_link"
16511 case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16514 esac
16515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16516 $as_echo "$ac_try_echo") >&5
16517 (eval "$ac_link") 2>conftest.er1
2084616518 ac_status=$?
2084716519 grep -v '^ *+' conftest.er1 >conftest.err
2084816520 rm -f conftest.er1
2084916521 cat conftest.err >&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } &&
20852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; } &&
20858 { ac_try='test -s conftest$ac_exeext'
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20861 ac_status=$?
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; }; then
20864 ac_R_nospace=yes
20865 else
20866 echo "$as_me: failed program was:" >&5
16522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } && {
16524 test -z "$ac_c_werror_flag" ||
16525 test ! -s conftest.err
16526 } && test -s conftest$ac_exeext && {
16527 test "$cross_compiling" = yes ||
16528 $as_test_x conftest$ac_exeext
16529 }; then
16530 { $as_echo "$as_me:$LINENO: result: no" >&5
16531 $as_echo "no" >&6; }
16532 X_LIBS="$X_LIBS -R$x_libraries"
16533 else
16534 $as_echo "$as_me: failed program was:" >&5
2086716535 sed 's/^/| /' conftest.$ac_ext >&5
2086816536
20869 ac_R_nospace=no
20870 fi
20871 rm -f conftest.err conftest.$ac_objext \
20872 conftest$ac_exeext conftest.$ac_ext
20873 if test $ac_R_nospace = yes; then
20874 echo "$as_me:$LINENO: result: no" >&5
20875 echo "${ECHO_T}no" >&6
20876 X_LIBS="$X_LIBS -R$x_libraries"
20877 else
2087816537 LIBS="$ac_xsave_LIBS -R $x_libraries"
20879 cat >conftest.$ac_ext <<_ACEOF
16538 cat >conftest.$ac_ext <<_ACEOF
2088016539 /* confdefs.h. */
2088116540 _ACEOF
2088216541 cat confdefs.h >>conftest.$ac_ext
2089216551 }
2089316552 _ACEOF
2089416553 rm -f conftest.$ac_objext conftest$ac_exeext
20895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20896 (eval $ac_link) 2>conftest.er1
16554 if { (ac_try="$ac_link"
16555 case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16558 esac
16559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16560 $as_echo "$ac_try_echo") >&5
16561 (eval "$ac_link") 2>conftest.er1
2089716562 ac_status=$?
2089816563 grep -v '^ *+' conftest.er1 >conftest.err
2089916564 rm -f conftest.er1
2090016565 cat conftest.err >&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } &&
20903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20906 ac_status=$?
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; } &&
20909 { ac_try='test -s conftest$ac_exeext'
20910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20911 (eval $ac_try) 2>&5
20912 ac_status=$?
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; }; then
20915 ac_R_space=yes
20916 else
20917 echo "$as_me: failed program was:" >&5
16566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } && {
16568 test -z "$ac_c_werror_flag" ||
16569 test ! -s conftest.err
16570 } && test -s conftest$ac_exeext && {
16571 test "$cross_compiling" = yes ||
16572 $as_test_x conftest$ac_exeext
16573 }; then
16574 { $as_echo "$as_me:$LINENO: result: yes" >&5
16575 $as_echo "yes" >&6; }
16576 X_LIBS="$X_LIBS -R $x_libraries"
16577 else
16578 $as_echo "$as_me: failed program was:" >&5
2091816579 sed 's/^/| /' conftest.$ac_ext >&5
2091916580
20920 ac_R_space=no
20921 fi
20922 rm -f conftest.err conftest.$ac_objext \
16581 { $as_echo "$as_me:$LINENO: result: neither works" >&5
16582 $as_echo "neither works" >&6; }
16583 fi
16584
16585 rm -rf conftest.dSYM
16586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2092316587 conftest$ac_exeext conftest.$ac_ext
20924 if test $ac_R_space = yes; then
20925 echo "$as_me:$LINENO: result: yes" >&5
20926 echo "${ECHO_T}yes" >&6
20927 X_LIBS="$X_LIBS -R $x_libraries"
20928 else
20929 echo "$as_me:$LINENO: result: neither works" >&5
20930 echo "${ECHO_T}neither works" >&6
20931 fi
20932 fi
20933 LIBS=$ac_xsave_LIBS
20934 esac
16588 fi
16589
16590 rm -rf conftest.dSYM
16591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16592 conftest$ac_exeext conftest.$ac_ext
16593 ac_c_werror_flag=$ac_xsave_c_werror_flag
16594 LIBS=$ac_xsave_LIBS
2093516595 fi
2093616596
2093716597 # Check for system-dependent libraries X programs must link with.
2095216612 cat >>conftest.$ac_ext <<_ACEOF
2095316613 /* end confdefs.h. */
2095416614
20955 /* Override any gcc2 internal prototype to avoid an error. */
16615 /* Override any GCC internal prototype to avoid an error.
16616 Use char because int might match the return type of a GCC
16617 builtin and then its argument prototype would still apply. */
2095616618 #ifdef __cplusplus
2095716619 extern "C"
2095816620 #endif
20959 /* We use char because int might match the return type of a gcc2
20960 builtin and then its argument prototype would still apply. */
2096116621 char XOpenDisplay ();
2096216622 int
2096316623 main ()
2096416624 {
20965 XOpenDisplay ();
16625 return XOpenDisplay ();
2096616626 ;
2096716627 return 0;
2096816628 }
2096916629 _ACEOF
2097016630 rm -f conftest.$ac_objext conftest$ac_exeext
20971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20972 (eval $ac_link) 2>conftest.er1
16631 if { (ac_try="$ac_link"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635 esac
16636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16637 $as_echo "$ac_try_echo") >&5
16638 (eval "$ac_link") 2>conftest.er1
2097316639 ac_status=$?
2097416640 grep -v '^ *+' conftest.er1 >conftest.err
2097516641 rm -f conftest.er1
2097616642 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } &&
20979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try='test -s conftest$ac_exeext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
16643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } && {
16645 test -z "$ac_c_werror_flag" ||
16646 test ! -s conftest.err
16647 } && test -s conftest$ac_exeext && {
16648 test "$cross_compiling" = yes ||
16649 $as_test_x conftest$ac_exeext
16650 }; then
2099116651 :
2099216652 else
20993 echo "$as_me: failed program was:" >&5
16653 $as_echo "$as_me: failed program was:" >&5
2099416654 sed 's/^/| /' conftest.$ac_ext >&5
2099516655
20996 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20997 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
16656 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
16657 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
2099816658 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20999 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 $as_echo_n "(cached) " >&6
2100016660 else
2100116661 ac_check_lib_save_LIBS=$LIBS
2100216662 LIBS="-ldnet $LIBS"
2100716667 cat >>conftest.$ac_ext <<_ACEOF
2100816668 /* end confdefs.h. */
2100916669
21010 /* Override any gcc2 internal prototype to avoid an error. */
16670 /* Override any GCC internal prototype to avoid an error.
16671 Use char because int might match the return type of a GCC
16672 builtin and then its argument prototype would still apply. */
2101116673 #ifdef __cplusplus
2101216674 extern "C"
2101316675 #endif
21014 /* We use char because int might match the return type of a gcc2
21015 builtin and then its argument prototype would still apply. */
2101616676 char dnet_ntoa ();
2101716677 int
2101816678 main ()
2101916679 {
21020 dnet_ntoa ();
16680 return dnet_ntoa ();
2102116681 ;
2102216682 return 0;
2102316683 }
2102416684 _ACEOF
2102516685 rm -f conftest.$ac_objext conftest$ac_exeext
21026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21027 (eval $ac_link) 2>conftest.er1
16686 if { (ac_try="$ac_link"
16687 case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16690 esac
16691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16692 $as_echo "$ac_try_echo") >&5
16693 (eval "$ac_link") 2>conftest.er1
2102816694 ac_status=$?
2102916695 grep -v '^ *+' conftest.er1 >conftest.err
2103016696 rm -f conftest.er1
2103116697 cat conftest.err >&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } &&
21034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21037 ac_status=$?
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; } &&
21040 { ac_try='test -s conftest$ac_exeext'
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21043 ac_status=$?
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
16698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } && {
16700 test -z "$ac_c_werror_flag" ||
16701 test ! -s conftest.err
16702 } && test -s conftest$ac_exeext && {
16703 test "$cross_compiling" = yes ||
16704 $as_test_x conftest$ac_exeext
16705 }; then
2104616706 ac_cv_lib_dnet_dnet_ntoa=yes
2104716707 else
21048 echo "$as_me: failed program was:" >&5
16708 $as_echo "$as_me: failed program was:" >&5
2104916709 sed 's/^/| /' conftest.$ac_ext >&5
2105016710
21051 ac_cv_lib_dnet_dnet_ntoa=no
21052 fi
21053 rm -f conftest.err conftest.$ac_objext \
16711 ac_cv_lib_dnet_dnet_ntoa=no
16712 fi
16713
16714 rm -rf conftest.dSYM
16715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2105416716 conftest$ac_exeext conftest.$ac_ext
2105516717 LIBS=$ac_check_lib_save_LIBS
2105616718 fi
21057 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21058 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21059 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
16719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
16720 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
16721 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
2106016722 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2106116723 fi
2106216724
2106316725 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21064 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21065 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
16726 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
16727 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
2106616728 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
16729 $as_echo_n "(cached) " >&6
2106816730 else
2106916731 ac_check_lib_save_LIBS=$LIBS
2107016732 LIBS="-ldnet_stub $LIBS"
2107516737 cat >>conftest.$ac_ext <<_ACEOF
2107616738 /* end confdefs.h. */
2107716739
21078 /* Override any gcc2 internal prototype to avoid an error. */
16740 /* Override any GCC internal prototype to avoid an error.
16741 Use char because int might match the return type of a GCC
16742 builtin and then its argument prototype would still apply. */
2107916743 #ifdef __cplusplus
2108016744 extern "C"
2108116745 #endif
21082 /* We use char because int might match the return type of a gcc2
21083 builtin and then its argument prototype would still apply. */
2108416746 char dnet_ntoa ();
2108516747 int
2108616748 main ()
2108716749 {
21088 dnet_ntoa ();
16750 return dnet_ntoa ();
2108916751 ;
2109016752 return 0;
2109116753 }
2109216754 _ACEOF
2109316755 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21095 (eval $ac_link) 2>conftest.er1
16756 if { (ac_try="$ac_link"
16757 case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16760 esac
16761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16762 $as_echo "$ac_try_echo") >&5
16763 (eval "$ac_link") 2>conftest.er1
2109616764 ac_status=$?
2109716765 grep -v '^ *+' conftest.er1 >conftest.err
2109816766 rm -f conftest.er1
2109916767 cat conftest.err >&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } &&
21102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; } &&
21108 { ac_try='test -s conftest$ac_exeext'
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21111 ac_status=$?
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; }; then
16768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } && {
16770 test -z "$ac_c_werror_flag" ||
16771 test ! -s conftest.err
16772 } && test -s conftest$ac_exeext && {
16773 test "$cross_compiling" = yes ||
16774 $as_test_x conftest$ac_exeext
16775 }; then
2111416776 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2111516777 else
21116 echo "$as_me: failed program was:" >&5
16778 $as_echo "$as_me: failed program was:" >&5
2111716779 sed 's/^/| /' conftest.$ac_ext >&5
2111816780
21119 ac_cv_lib_dnet_stub_dnet_ntoa=no
21120 fi
21121 rm -f conftest.err conftest.$ac_objext \
16781 ac_cv_lib_dnet_stub_dnet_ntoa=no
16782 fi
16783
16784 rm -rf conftest.dSYM
16785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2112216786 conftest$ac_exeext conftest.$ac_ext
2112316787 LIBS=$ac_check_lib_save_LIBS
2112416788 fi
21125 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21126 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21127 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
16789 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
16790 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
16791 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
2112816792 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2112916793 fi
2113016794
2113116795 fi
2113216796 fi
21133 rm -f conftest.err conftest.$ac_objext \
16797
16798 rm -rf conftest.dSYM
16799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2113416800 conftest$ac_exeext conftest.$ac_ext
2113516801 LIBS="$ac_xsave_LIBS"
2113616802
2114216808 # on Irix 5.2, according to T.E. Dickey.
2114316809 # The functions gethostbyname, getservbyname, and inet_addr are
2114416810 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21145 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21146 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
16811 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
16812 $as_echo_n "checking for gethostbyname... " >&6; }
2114716813 if test "${ac_cv_func_gethostbyname+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 $as_echo_n "(cached) " >&6
2114916815 else
2115016816 cat >conftest.$ac_ext <<_ACEOF
2115116817 /* confdefs.h. */
2117016836
2117116837 #undef gethostbyname
2117216838
21173 /* Override any gcc2 internal prototype to avoid an error. */
16839 /* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
2117416842 #ifdef __cplusplus
2117516843 extern "C"
21176 {
2117716844 #endif
21178 /* We use char because int might match the return type of a gcc2
21179 builtin and then its argument prototype would still apply. */
2118016845 char gethostbyname ();
2118116846 /* The GNU C library defines this for functions which it implements
2118216847 to always fail with ENOSYS. Some functions are actually named
2118316848 something starting with __ and the normal name is an alias. */
21184 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
16849 #if defined __stub_gethostbyname || defined __stub___gethostbyname
2118516850 choke me
21186 #else
21187 char (*f) () = gethostbyname;
21188 #endif
21189 #ifdef __cplusplus
21190 }
2119116851 #endif
2119216852
2119316853 int
2119416854 main ()
2119516855 {
21196 return f != gethostbyname;
16856 return gethostbyname ();
2119716857 ;
2119816858 return 0;
2119916859 }
2120016860 _ACEOF
2120116861 rm -f conftest.$ac_objext conftest$ac_exeext
21202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21203 (eval $ac_link) 2>conftest.er1
16862 if { (ac_try="$ac_link"
16863 case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866 esac
16867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16868 $as_echo "$ac_try_echo") >&5
16869 (eval "$ac_link") 2>conftest.er1
2120416870 ac_status=$?
2120516871 grep -v '^ *+' conftest.er1 >conftest.err
2120616872 rm -f conftest.er1
2120716873 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
21210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212 (eval $ac_try) 2>&5
21213 ac_status=$?
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; } &&
21216 { ac_try='test -s conftest$ac_exeext'
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218 (eval $ac_try) 2>&5
21219 ac_status=$?
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; }; then
16874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } && {
16876 test -z "$ac_c_werror_flag" ||
16877 test ! -s conftest.err
16878 } && test -s conftest$ac_exeext && {
16879 test "$cross_compiling" = yes ||
16880 $as_test_x conftest$ac_exeext
16881 }; then
2122216882 ac_cv_func_gethostbyname=yes
2122316883 else
21224 echo "$as_me: failed program was:" >&5
16884 $as_echo "$as_me: failed program was:" >&5
2122516885 sed 's/^/| /' conftest.$ac_ext >&5
2122616886
21227 ac_cv_func_gethostbyname=no
21228 fi
21229 rm -f conftest.err conftest.$ac_objext \
16887 ac_cv_func_gethostbyname=no
16888 fi
16889
16890 rm -rf conftest.dSYM
16891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2123016892 conftest$ac_exeext conftest.$ac_ext
2123116893 fi
21232 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21233 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
16894 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
16895 $as_echo "$ac_cv_func_gethostbyname" >&6; }
2123416896
2123516897 if test $ac_cv_func_gethostbyname = no; then
21236 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21237 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
16898 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
16899 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
2123816900 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21239 echo $ECHO_N "(cached) $ECHO_C" >&6
16901 $as_echo_n "(cached) " >&6
2124016902 else
2124116903 ac_check_lib_save_LIBS=$LIBS
2124216904 LIBS="-lnsl $LIBS"
2124716909 cat >>conftest.$ac_ext <<_ACEOF
2124816910 /* end confdefs.h. */
2124916911
21250 /* Override any gcc2 internal prototype to avoid an error. */
16912 /* Override any GCC internal prototype to avoid an error.
16913 Use char because int might match the return type of a GCC
16914 builtin and then its argument prototype would still apply. */
2125116915 #ifdef __cplusplus
2125216916 extern "C"
2125316917 #endif
21254 /* We use char because int might match the return type of a gcc2
21255 builtin and then its argument prototype would still apply. */
2125616918 char gethostbyname ();
2125716919 int
2125816920 main ()
2125916921 {
21260 gethostbyname ();
16922 return gethostbyname ();
2126116923 ;
2126216924 return 0;
2126316925 }
2126416926 _ACEOF
2126516927 rm -f conftest.$ac_objext conftest$ac_exeext
21266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21267 (eval $ac_link) 2>conftest.er1
16928 if { (ac_try="$ac_link"
16929 case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932 esac
16933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16934 $as_echo "$ac_try_echo") >&5
16935 (eval "$ac_link") 2>conftest.er1
2126816936 ac_status=$?
2126916937 grep -v '^ *+' conftest.er1 >conftest.err
2127016938 rm -f conftest.er1
2127116939 cat conftest.err >&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } &&
21274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276 (eval $ac_try) 2>&5
21277 ac_status=$?
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; } &&
21280 { ac_try='test -s conftest$ac_exeext'
21281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282 (eval $ac_try) 2>&5
21283 ac_status=$?
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); }; }; then
16940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } && {
16942 test -z "$ac_c_werror_flag" ||
16943 test ! -s conftest.err
16944 } && test -s conftest$ac_exeext && {
16945 test "$cross_compiling" = yes ||
16946 $as_test_x conftest$ac_exeext
16947 }; then
2128616948 ac_cv_lib_nsl_gethostbyname=yes
2128716949 else
21288 echo "$as_me: failed program was:" >&5
16950 $as_echo "$as_me: failed program was:" >&5
2128916951 sed 's/^/| /' conftest.$ac_ext >&5
2129016952
21291 ac_cv_lib_nsl_gethostbyname=no
21292 fi
21293 rm -f conftest.err conftest.$ac_objext \
16953 ac_cv_lib_nsl_gethostbyname=no
16954 fi
16955
16956 rm -rf conftest.dSYM
16957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2129416958 conftest$ac_exeext conftest.$ac_ext
2129516959 LIBS=$ac_check_lib_save_LIBS
2129616960 fi
21297 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21298 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21299 if test $ac_cv_lib_nsl_gethostbyname = yes; then
16961 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
16962 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16963 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
2130016964 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2130116965 fi
2130216966
2130316967 if test $ac_cv_lib_nsl_gethostbyname = no; then
21304 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21305 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
16968 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
16969 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
2130616970 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21307 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 $as_echo_n "(cached) " >&6
2130816972 else
2130916973 ac_check_lib_save_LIBS=$LIBS
2131016974 LIBS="-lbsd $LIBS"
2131516979 cat >>conftest.$ac_ext <<_ACEOF
2131616980 /* end confdefs.h. */
2131716981
21318 /* Override any gcc2 internal prototype to avoid an error. */
16982 /* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply. */
2131916985 #ifdef __cplusplus
2132016986 extern "C"
2132116987 #endif
21322 /* We use char because int might match the return type of a gcc2
21323 builtin and then its argument prototype would still apply. */
2132416988 char gethostbyname ();
2132516989 int
2132616990 main ()
2132716991 {
21328 gethostbyname ();
16992 return gethostbyname ();
2132916993 ;
2133016994 return 0;
2133116995 }
2133216996 _ACEOF
2133316997 rm -f conftest.$ac_objext conftest$ac_exeext
21334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21335 (eval $ac_link) 2>conftest.er1
16998 if { (ac_try="$ac_link"
16999 case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002 esac
17003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17004 $as_echo "$ac_try_echo") >&5
17005 (eval "$ac_link") 2>conftest.er1
2133617006 ac_status=$?
2133717007 grep -v '^ *+' conftest.er1 >conftest.err
2133817008 rm -f conftest.er1
2133917009 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } &&
21342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21345 ac_status=$?
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; } &&
21348 { ac_try='test -s conftest$ac_exeext'
21349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350 (eval $ac_try) 2>&5
21351 ac_status=$?
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); }; }; then
17010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } && {
17012 test -z "$ac_c_werror_flag" ||
17013 test ! -s conftest.err
17014 } && test -s conftest$ac_exeext && {
17015 test "$cross_compiling" = yes ||
17016 $as_test_x conftest$ac_exeext
17017 }; then
2135417018 ac_cv_lib_bsd_gethostbyname=yes
2135517019 else
21356 echo "$as_me: failed program was:" >&5
17020 $as_echo "$as_me: failed program was:" >&5
2135717021 sed 's/^/| /' conftest.$ac_ext >&5
2135817022
21359 ac_cv_lib_bsd_gethostbyname=no
21360 fi
21361 rm -f conftest.err conftest.$ac_objext \
17023 ac_cv_lib_bsd_gethostbyname=no
17024 fi
17025
17026 rm -rf conftest.dSYM
17027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2136217028 conftest$ac_exeext conftest.$ac_ext
2136317029 LIBS=$ac_check_lib_save_LIBS
2136417030 fi
21365 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21366 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21367 if test $ac_cv_lib_bsd_gethostbyname = yes; then
17031 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
17032 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
17033 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
2136817034 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
2136917035 fi
2137017036
2137817044 # variants that don't use the name server (or something). -lsocket
2137917045 # must be given before -lnsl if both are needed. We assume that
2138017046 # if connect needs -lnsl, so does gethostbyname.
21381 echo "$as_me:$LINENO: checking for connect" >&5
21382 echo $ECHO_N "checking for connect... $ECHO_C" >&6
17047 { $as_echo "$as_me:$LINENO: checking for connect" >&5
17048 $as_echo_n "checking for connect... " >&6; }
2138317049 if test "${ac_cv_func_connect+set}" = set; then
21384 echo $ECHO_N "(cached) $ECHO_C" >&6
17050 $as_echo_n "(cached) " >&6
2138517051 else
2138617052 cat >conftest.$ac_ext <<_ACEOF
2138717053 /* confdefs.h. */
2140617072
2140717073 #undef connect
2140817074
21409 /* Override any gcc2 internal prototype to avoid an error. */
17075 /* Override any GCC internal prototype to avoid an error.
17076 Use char because int might match the return type of a GCC
17077 builtin and then its argument prototype would still apply. */
2141017078 #ifdef __cplusplus
2141117079 extern "C"
21412 {
2141317080 #endif
21414 /* We use char because int might match the return type of a gcc2
21415 builtin and then its argument prototype would still apply. */
2141617081 char connect ();
2141717082 /* The GNU C library defines this for functions which it implements
2141817083 to always fail with ENOSYS. Some functions are actually named
2141917084 something starting with __ and the normal name is an alias. */
21420 #if defined (__stub_connect) || defined (__stub___connect)
17085 #if defined __stub_connect || defined __stub___connect
2142117086 choke me
21422 #else
21423 char (*f) () = connect;
21424 #endif
21425 #ifdef __cplusplus
21426 }
2142717087 #endif
2142817088
2142917089 int
2143017090 main ()
2143117091 {
21432 return f != connect;
17092 return connect ();
2143317093 ;
2143417094 return 0;
2143517095 }
2143617096 _ACEOF
2143717097 rm -f conftest.$ac_objext conftest$ac_exeext
21438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21439 (eval $ac_link) 2>conftest.er1
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17102 esac
17103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17104 $as_echo "$ac_try_echo") >&5
17105 (eval "$ac_link") 2>conftest.er1
2144017106 ac_status=$?
2144117107 grep -v '^ *+' conftest.er1 >conftest.err
2144217108 rm -f conftest.er1
2144317109 cat conftest.err >&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } &&
21446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21448 (eval $ac_try) 2>&5
21449 ac_status=$?
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); }; } &&
21452 { ac_try='test -s conftest$ac_exeext'
21453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21454 (eval $ac_try) 2>&5
21455 ac_status=$?
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); }; }; then
17110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } && {
17112 test -z "$ac_c_werror_flag" ||
17113 test ! -s conftest.err
17114 } && test -s conftest$ac_exeext && {
17115 test "$cross_compiling" = yes ||
17116 $as_test_x conftest$ac_exeext
17117 }; then
2145817118 ac_cv_func_connect=yes
2145917119 else
21460 echo "$as_me: failed program was:" >&5
17120 $as_echo "$as_me: failed program was:" >&5
2146117121 sed 's/^/| /' conftest.$ac_ext >&5
2146217122
21463 ac_cv_func_connect=no
21464 fi
21465 rm -f conftest.err conftest.$ac_objext \
17123 ac_cv_func_connect=no
17124 fi
17125
17126 rm -rf conftest.dSYM
17127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2146617128 conftest$ac_exeext conftest.$ac_ext
2146717129 fi
21468 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21469 echo "${ECHO_T}$ac_cv_func_connect" >&6
17130 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
17131 $as_echo "$ac_cv_func_connect" >&6; }
2147017132
2147117133 if test $ac_cv_func_connect = no; then
21472 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21473 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
17134 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
17135 $as_echo_n "checking for connect in -lsocket... " >&6; }
2147417136 if test "${ac_cv_lib_socket_connect+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
17137 $as_echo_n "(cached) " >&6
2147617138 else
2147717139 ac_check_lib_save_LIBS=$LIBS
2147817140 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2148317145 cat >>conftest.$ac_ext <<_ACEOF
2148417146 /* end confdefs.h. */
2148517147
21486 /* Override any gcc2 internal prototype to avoid an error. */
17148 /* Override any GCC internal prototype to avoid an error.
17149 Use char because int might match the return type of a GCC
17150 builtin and then its argument prototype would still apply. */
2148717151 #ifdef __cplusplus
2148817152 extern "C"
2148917153 #endif
21490 /* We use char because int might match the return type of a gcc2
21491 builtin and then its argument prototype would still apply. */
2149217154 char connect ();
2149317155 int
2149417156 main ()
2149517157 {
21496 connect ();
17158 return connect ();
2149717159 ;
2149817160 return 0;
2149917161 }
2150017162 _ACEOF
2150117163 rm -f conftest.$ac_objext conftest$ac_exeext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21503 (eval $ac_link) 2>conftest.er1
17164 if { (ac_try="$ac_link"
17165 case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168 esac
17169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17170 $as_echo "$ac_try_echo") >&5
17171 (eval "$ac_link") 2>conftest.er1
2150417172 ac_status=$?
2150517173 grep -v '^ *+' conftest.er1 >conftest.err
2150617174 rm -f conftest.er1
2150717175 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } &&
21510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512 (eval $ac_try) 2>&5
21513 ac_status=$?
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; } &&
21516 { ac_try='test -s conftest$ac_exeext'
21517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21518 (eval $ac_try) 2>&5
21519 ac_status=$?
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; }; then
17176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } && {
17178 test -z "$ac_c_werror_flag" ||
17179 test ! -s conftest.err
17180 } && test -s conftest$ac_exeext && {
17181 test "$cross_compiling" = yes ||
17182 $as_test_x conftest$ac_exeext
17183 }; then
2152217184 ac_cv_lib_socket_connect=yes
2152317185 else
21524 echo "$as_me: failed program was:" >&5
17186 $as_echo "$as_me: failed program was:" >&5
2152517187 sed 's/^/| /' conftest.$ac_ext >&5
2152617188
21527 ac_cv_lib_socket_connect=no
21528 fi
21529 rm -f conftest.err conftest.$ac_objext \
17189 ac_cv_lib_socket_connect=no
17190 fi
17191
17192 rm -rf conftest.dSYM
17193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2153017194 conftest$ac_exeext conftest.$ac_ext
2153117195 LIBS=$ac_check_lib_save_LIBS
2153217196 fi
21533 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21534 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21535 if test $ac_cv_lib_socket_connect = yes; then
17197 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
17198 $as_echo "$ac_cv_lib_socket_connect" >&6; }
17199 if test "x$ac_cv_lib_socket_connect" = x""yes; then
2153617200 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2153717201 fi
2153817202
2153917203 fi
2154017204
2154117205 # Guillermo Gomez says -lposix is necessary on A/UX.
21542 echo "$as_me:$LINENO: checking for remove" >&5
21543 echo $ECHO_N "checking for remove... $ECHO_C" >&6
17206 { $as_echo "$as_me:$LINENO: checking for remove" >&5
17207 $as_echo_n "checking for remove... " >&6; }
2154417208 if test "${ac_cv_func_remove+set}" = set; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 $as_echo_n "(cached) " >&6
2154617210 else
2154717211 cat >conftest.$ac_ext <<_ACEOF
2154817212 /* confdefs.h. */
2156717231
2156817232 #undef remove
2156917233
21570 /* Override any gcc2 internal prototype to avoid an error. */
17234 /* Override any GCC internal prototype to avoid an error.
17235 Use char because int might match the return type of a GCC
17236 builtin and then its argument prototype would still apply. */
2157117237 #ifdef __cplusplus
2157217238 extern "C"
21573 {
2157417239 #endif
21575 /* We use char because int might match the return type of a gcc2
21576 builtin and then its argument prototype would still apply. */
2157717240 char remove ();
2157817241 /* The GNU C library defines this for functions which it implements
2157917242 to always fail with ENOSYS. Some functions are actually named
2158017243 something starting with __ and the normal name is an alias. */
21581 #if defined (__stub_remove) || defined (__stub___remove)
17244 #if defined __stub_remove || defined __stub___remove
2158217245 choke me
21583 #else
21584 char (*f) () = remove;
21585 #endif
21586 #ifdef __cplusplus
21587 }
2158817246 #endif
2158917247
2159017248 int
2159117249 main ()
2159217250 {
21593 return f != remove;
17251 return remove ();
2159417252 ;
2159517253 return 0;
2159617254 }
2159717255 _ACEOF
2159817256 rm -f conftest.$ac_objext conftest$ac_exeext
21599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21600 (eval $ac_link) 2>conftest.er1
17257 if { (ac_try="$ac_link"
17258 case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17261 esac
17262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17263 $as_echo "$ac_try_echo") >&5
17264 (eval "$ac_link") 2>conftest.er1
2160117265 ac_status=$?
2160217266 grep -v '^ *+' conftest.er1 >conftest.err
2160317267 rm -f conftest.er1
2160417268 cat conftest.err >&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } &&
21607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; } &&
21613 { ac_try='test -s conftest$ac_exeext'
21614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615 (eval $ac_try) 2>&5
21616 ac_status=$?
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); }; }; then
17269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } && {
17271 test -z "$ac_c_werror_flag" ||
17272 test ! -s conftest.err
17273 } && test -s conftest$ac_exeext && {
17274 test "$cross_compiling" = yes ||
17275 $as_test_x conftest$ac_exeext
17276 }; then
2161917277 ac_cv_func_remove=yes
2162017278 else
21621 echo "$as_me: failed program was:" >&5
17279 $as_echo "$as_me: failed program was:" >&5
2162217280 sed 's/^/| /' conftest.$ac_ext >&5
2162317281
21624 ac_cv_func_remove=no
21625 fi
21626 rm -f conftest.err conftest.$ac_objext \
17282 ac_cv_func_remove=no
17283 fi
17284
17285 rm -rf conftest.dSYM
17286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2162717287 conftest$ac_exeext conftest.$ac_ext
2162817288 fi
21629 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21630 echo "${ECHO_T}$ac_cv_func_remove" >&6
17289 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
17290 $as_echo "$ac_cv_func_remove" >&6; }
2163117291
2163217292 if test $ac_cv_func_remove = no; then
21633 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21634 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
17293 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
17294 $as_echo_n "checking for remove in -lposix... " >&6; }
2163517295 if test "${ac_cv_lib_posix_remove+set}" = set; then
21636 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 $as_echo_n "(cached) " >&6
2163717297 else
2163817298 ac_check_lib_save_LIBS=$LIBS
2163917299 LIBS="-lposix $LIBS"
2164417304 cat >>conftest.$ac_ext <<_ACEOF
2164517305 /* end confdefs.h. */
2164617306
21647 /* Override any gcc2 internal prototype to avoid an error. */
17307 /* Override any GCC internal prototype to avoid an error.
17308 Use char because int might match the return type of a GCC
17309 builtin and then its argument prototype would still apply. */
2164817310 #ifdef __cplusplus
2164917311 extern "C"
2165017312 #endif
21651 /* We use char because int might match the return type of a gcc2
21652 builtin and then its argument prototype would still apply. */
2165317313 char remove ();
2165417314 int
2165517315 main ()
2165617316 {
21657 remove ();
17317 return remove ();
2165817318 ;
2165917319 return 0;
2166017320 }
2166117321 _ACEOF
2166217322 rm -f conftest.$ac_objext conftest$ac_exeext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21664 (eval $ac_link) 2>conftest.er1
17323 if { (ac_try="$ac_link"
17324 case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17327 esac
17328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17329 $as_echo "$ac_try_echo") >&5
17330 (eval "$ac_link") 2>conftest.er1
2166517331 ac_status=$?
2166617332 grep -v '^ *+' conftest.er1 >conftest.err
2166717333 rm -f conftest.er1
2166817334 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } &&
21671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21674 ac_status=$?
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; } &&
21677 { ac_try='test -s conftest$ac_exeext'
21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21680 ac_status=$?
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; }; then
17335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } && {
17337 test -z "$ac_c_werror_flag" ||
17338 test ! -s conftest.err
17339 } && test -s conftest$ac_exeext && {
17340 test "$cross_compiling" = yes ||
17341 $as_test_x conftest$ac_exeext
17342 }; then
2168317343 ac_cv_lib_posix_remove=yes
2168417344 else
21685 echo "$as_me: failed program was:" >&5
17345 $as_echo "$as_me: failed program was:" >&5
2168617346 sed 's/^/| /' conftest.$ac_ext >&5
2168717347
21688 ac_cv_lib_posix_remove=no
21689 fi
21690 rm -f conftest.err conftest.$ac_objext \
17348 ac_cv_lib_posix_remove=no
17349 fi
17350
17351 rm -rf conftest.dSYM
17352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2169117353 conftest$ac_exeext conftest.$ac_ext
2169217354 LIBS=$ac_check_lib_save_LIBS
2169317355 fi
21694 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21695 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21696 if test $ac_cv_lib_posix_remove = yes; then
17356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
17357 $as_echo "$ac_cv_lib_posix_remove" >&6; }
17358 if test "x$ac_cv_lib_posix_remove" = x""yes; then
2169717359 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2169817360 fi
2169917361
2170017362 fi
2170117363
2170217364 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21703 echo "$as_me:$LINENO: checking for shmat" >&5
21704 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
17365 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
17366 $as_echo_n "checking for shmat... " >&6; }
2170517367 if test "${ac_cv_func_shmat+set}" = set; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
17368 $as_echo_n "(cached) " >&6
2170717369 else
2170817370 cat >conftest.$ac_ext <<_ACEOF
2170917371 /* confdefs.h. */
2172817390
2172917391 #undef shmat
2173017392
21731 /* Override any gcc2 internal prototype to avoid an error. */
17393 /* Override any GCC internal prototype to avoid an error.
17394 Use char because int might match the return type of a GCC
17395 builtin and then its argument prototype would still apply. */
2173217396 #ifdef __cplusplus
2173317397 extern "C"
21734 {
2173517398 #endif
21736 /* We use char because int might match the return type of a gcc2
21737 builtin and then its argument prototype would still apply. */
2173817399 char shmat ();
2173917400 /* The GNU C library defines this for functions which it implements
2174017401 to always fail with ENOSYS. Some functions are actually named
2174117402 something starting with __ and the normal name is an alias. */
21742 #if defined (__stub_shmat) || defined (__stub___shmat)
17403 #if defined __stub_shmat || defined __stub___shmat
2174317404 choke me
21744 #else
21745 char (*f) () = shmat;
21746 #endif
21747 #ifdef __cplusplus
21748 }
2174917405 #endif
2175017406
2175117407 int
2175217408 main ()
2175317409 {
21754 return f != shmat;
17410 return shmat ();
2175517411 ;
2175617412 return 0;
2175717413 }
2175817414 _ACEOF
2175917415 rm -f conftest.$ac_objext conftest$ac_exeext
21760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21761 (eval $ac_link) 2>conftest.er1
17416 if { (ac_try="$ac_link"
17417 case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17420 esac
17421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17422 $as_echo "$ac_try_echo") >&5
17423 (eval "$ac_link") 2>conftest.er1
2176217424 ac_status=$?
2176317425 grep -v '^ *+' conftest.er1 >conftest.err
2176417426 rm -f conftest.er1
2176517427 cat conftest.err >&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); } &&
21768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770 (eval $ac_try) 2>&5
21771 ac_status=$?
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); }; } &&
21774 { ac_try='test -s conftest$ac_exeext'
21775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776 (eval $ac_try) 2>&5
21777 ac_status=$?
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; }; then
17428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } && {
17430 test -z "$ac_c_werror_flag" ||
17431 test ! -s conftest.err
17432 } && test -s conftest$ac_exeext && {
17433 test "$cross_compiling" = yes ||
17434 $as_test_x conftest$ac_exeext
17435 }; then
2178017436 ac_cv_func_shmat=yes
2178117437 else
21782 echo "$as_me: failed program was:" >&5
17438 $as_echo "$as_me: failed program was:" >&5
2178317439 sed 's/^/| /' conftest.$ac_ext >&5
2178417440
21785 ac_cv_func_shmat=no
21786 fi
21787 rm -f conftest.err conftest.$ac_objext \
17441 ac_cv_func_shmat=no
17442 fi
17443
17444 rm -rf conftest.dSYM
17445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2178817446 conftest$ac_exeext conftest.$ac_ext
2178917447 fi
21790 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21791 echo "${ECHO_T}$ac_cv_func_shmat" >&6
17448 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
17449 $as_echo "$ac_cv_func_shmat" >&6; }
2179217450
2179317451 if test $ac_cv_func_shmat = no; then
21794 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21795 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
17452 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
17453 $as_echo_n "checking for shmat in -lipc... " >&6; }
2179617454 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21797 echo $ECHO_N "(cached) $ECHO_C" >&6
17455 $as_echo_n "(cached) " >&6
2179817456 else
2179917457 ac_check_lib_save_LIBS=$LIBS
2180017458 LIBS="-lipc $LIBS"
2180517463 cat >>conftest.$ac_ext <<_ACEOF
2180617464 /* end confdefs.h. */
2180717465
21808 /* Override any gcc2 internal prototype to avoid an error. */
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
2180917469 #ifdef __cplusplus
2181017470 extern "C"
2181117471 #endif
21812 /* We use char because int might match the return type of a gcc2
21813 builtin and then its argument prototype would still apply. */
2181417472 char shmat ();
2181517473 int
2181617474 main ()
2181717475 {
21818 shmat ();
17476 return shmat ();
2181917477 ;
2182017478 return 0;
2182117479 }
2182217480 _ACEOF
2182317481 rm -f conftest.$ac_objext conftest$ac_exeext
21824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21825 (eval $ac_link) 2>conftest.er1
17482 if { (ac_try="$ac_link"
17483 case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17486 esac
17487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17488 $as_echo "$ac_try_echo") >&5
17489 (eval "$ac_link") 2>conftest.er1
2182617490 ac_status=$?
2182717491 grep -v '^ *+' conftest.er1 >conftest.err
2182817492 rm -f conftest.er1
2182917493 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } &&
21832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834 (eval $ac_try) 2>&5
21835 ac_status=$?
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); }; } &&
21838 { ac_try='test -s conftest$ac_exeext'
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; }; then
17494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } && {
17496 test -z "$ac_c_werror_flag" ||
17497 test ! -s conftest.err
17498 } && test -s conftest$ac_exeext && {
17499 test "$cross_compiling" = yes ||
17500 $as_test_x conftest$ac_exeext
17501 }; then
2184417502 ac_cv_lib_ipc_shmat=yes
2184517503 else
21846 echo "$as_me: failed program was:" >&5
17504 $as_echo "$as_me: failed program was:" >&5
2184717505 sed 's/^/| /' conftest.$ac_ext >&5
2184817506
21849 ac_cv_lib_ipc_shmat=no
21850 fi
21851 rm -f conftest.err conftest.$ac_objext \
17507 ac_cv_lib_ipc_shmat=no
17508 fi
17509
17510 rm -rf conftest.dSYM
17511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2185217512 conftest$ac_exeext conftest.$ac_ext
2185317513 LIBS=$ac_check_lib_save_LIBS
2185417514 fi
21855 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21856 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21857 if test $ac_cv_lib_ipc_shmat = yes; then
17515 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
17516 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
17517 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
2185817518 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2185917519 fi
2186017520
2187017530 # These have to be linked with before -lX11, unlike the other
2187117531 # libraries we check for below, so use a different variable.
2187217532 # John Interrante, Karl Berry
21873 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21874 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
17533 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
17534 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
2187517535 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21876 echo $ECHO_N "(cached) $ECHO_C" >&6
17536 $as_echo_n "(cached) " >&6
2187717537 else
2187817538 ac_check_lib_save_LIBS=$LIBS
2187917539 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2188417544 cat >>conftest.$ac_ext <<_ACEOF
2188517545 /* end confdefs.h. */
2188617546
21887 /* Override any gcc2 internal prototype to avoid an error. */
17547 /* Override any GCC internal prototype to avoid an error.
17548 Use char because int might match the return type of a GCC
17549 builtin and then its argument prototype would still apply. */
2188817550 #ifdef __cplusplus
2188917551 extern "C"
2189017552 #endif
21891 /* We use char because int might match the return type of a gcc2
21892 builtin and then its argument prototype would still apply. */
2189317553 char IceConnectionNumber ();
2189417554 int
2189517555 main ()
2189617556 {
21897 IceConnectionNumber ();
17557 return IceConnectionNumber ();
2189817558 ;
2189917559 return 0;
2190017560 }
2190117561 _ACEOF
2190217562 rm -f conftest.$ac_objext conftest$ac_exeext
21903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21904 (eval $ac_link) 2>conftest.er1
17563 if { (ac_try="$ac_link"
17564 case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17567 esac
17568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17569 $as_echo "$ac_try_echo") >&5
17570 (eval "$ac_link") 2>conftest.er1
2190517571 ac_status=$?
2190617572 grep -v '^ *+' conftest.er1 >conftest.err
2190717573 rm -f conftest.er1
2190817574 cat conftest.err >&5
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); } &&
21911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; } &&
21917 { ac_try='test -s conftest$ac_exeext'
21918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21920 ac_status=$?
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; }; then
17575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } && {
17577 test -z "$ac_c_werror_flag" ||
17578 test ! -s conftest.err
17579 } && test -s conftest$ac_exeext && {
17580 test "$cross_compiling" = yes ||
17581 $as_test_x conftest$ac_exeext
17582 }; then
2192317583 ac_cv_lib_ICE_IceConnectionNumber=yes
2192417584 else
21925 echo "$as_me: failed program was:" >&5
17585 $as_echo "$as_me: failed program was:" >&5
2192617586 sed 's/^/| /' conftest.$ac_ext >&5
2192717587
21928 ac_cv_lib_ICE_IceConnectionNumber=no
21929 fi
21930 rm -f conftest.err conftest.$ac_objext \
17588 ac_cv_lib_ICE_IceConnectionNumber=no
17589 fi
17590
17591 rm -rf conftest.dSYM
17592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2193117593 conftest$ac_exeext conftest.$ac_ext
2193217594 LIBS=$ac_check_lib_save_LIBS
2193317595 fi
21934 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21935 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21936 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
17596 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
17597 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
17598 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
2193717599 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2193817600 fi
2193917601
2194317605
2194417606
2194517607
21946 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
21947 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
17608 { $as_echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
17609 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
2194817610 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
17611 $as_echo_n "(cached) " >&6
2195017612 else
2195117613 ac_check_lib_save_LIBS=$LIBS
2195217614 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
2195717619 cat >>conftest.$ac_ext <<_ACEOF
2195817620 /* end confdefs.h. */
2195917621
21960 /* Override any gcc2 internal prototype to avoid an error. */
17622 /* Override any GCC internal prototype to avoid an error.
17623 Use char because int might match the return type of a GCC
17624 builtin and then its argument prototype would still apply. */
2196117625 #ifdef __cplusplus
2196217626 extern "C"
2196317627 #endif
21964 /* We use char because int might match the return type of a gcc2
21965 builtin and then its argument prototype would still apply. */
2196617628 char XShapeCombineMask ();
2196717629 int
2196817630 main ()
2196917631 {
21970 XShapeCombineMask ();
17632 return XShapeCombineMask ();
2197117633 ;
2197217634 return 0;
2197317635 }
2197417636 _ACEOF
2197517637 rm -f conftest.$ac_objext conftest$ac_exeext
21976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21977 (eval $ac_link) 2>conftest.er1
17638 if { (ac_try="$ac_link"
17639 case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17642 esac
17643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17644 $as_echo "$ac_try_echo") >&5
17645 (eval "$ac_link") 2>conftest.er1
2197817646 ac_status=$?
2197917647 grep -v '^ *+' conftest.er1 >conftest.err
2198017648 rm -f conftest.er1
2198117649 cat conftest.err >&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } &&
21984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986 (eval $ac_try) 2>&5
21987 ac_status=$?
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; } &&
21990 { ac_try='test -s conftest$ac_exeext'
21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
17650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } && {
17652 test -z "$ac_c_werror_flag" ||
17653 test ! -s conftest.err
17654 } && test -s conftest$ac_exeext && {
17655 test "$cross_compiling" = yes ||
17656 $as_test_x conftest$ac_exeext
17657 }; then
2199617658 ac_cv_lib_Xext_XShapeCombineMask=yes
2199717659 else
21998 echo "$as_me: failed program was:" >&5
17660 $as_echo "$as_me: failed program was:" >&5
2199917661 sed 's/^/| /' conftest.$ac_ext >&5
2200017662
22001 ac_cv_lib_Xext_XShapeCombineMask=no
22002 fi
22003 rm -f conftest.err conftest.$ac_objext \
17663 ac_cv_lib_Xext_XShapeCombineMask=no
17664 fi
17665
17666 rm -rf conftest.dSYM
17667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2200417668 conftest$ac_exeext conftest.$ac_ext
2200517669 LIBS=$ac_check_lib_save_LIBS
2200617670 fi
22007 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
22008 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
22009 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
17671 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
17672 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
17673 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then
2201017674 cat >>confdefs.h <<_ACEOF
2201117675 #define HAVE_LIBXEXT 1
2201217676 _ACEOF
2202017684
2202117685
2202217686
22023 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
22024 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
17687 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
17688 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
2202517689 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
22026 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 $as_echo_n "(cached) " >&6
2202717691 else
2202817692 ac_check_lib_save_LIBS=$LIBS
2202917693 LIBS="-lXpm $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
2203417698 cat >>conftest.$ac_ext <<_ACEOF
2203517699 /* end confdefs.h. */
2203617700
22037 /* Override any gcc2 internal prototype to avoid an error. */
17701 /* Override any GCC internal prototype to avoid an error.
17702 Use char because int might match the return type of a GCC
17703 builtin and then its argument prototype would still apply. */
2203817704 #ifdef __cplusplus
2203917705 extern "C"
2204017706 #endif
22041 /* We use char because int might match the return type of a gcc2
22042 builtin and then its argument prototype would still apply. */
2204317707 char XpmCreatePixmapFromData ();
2204417708 int
2204517709 main ()
2204617710 {
22047 XpmCreatePixmapFromData ();
17711 return XpmCreatePixmapFromData ();
2204817712 ;
2204917713 return 0;
2205017714 }
2205117715 _ACEOF
2205217716 rm -f conftest.$ac_objext conftest$ac_exeext
22053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22054 (eval $ac_link) 2>conftest.er1
17717 if { (ac_try="$ac_link"
17718 case "(($ac_try" in
17719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720 *) ac_try_echo=$ac_try;;
17721 esac
17722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17723 $as_echo "$ac_try_echo") >&5
17724 (eval "$ac_link") 2>conftest.er1
2205517725 ac_status=$?
2205617726 grep -v '^ *+' conftest.er1 >conftest.err
2205717727 rm -f conftest.er1
2205817728 cat conftest.err >&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); } &&
22061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; } &&
22067 { ac_try='test -s conftest$ac_exeext'
22068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22069 (eval $ac_try) 2>&5
22070 ac_status=$?
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
17729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } && {
17731 test -z "$ac_c_werror_flag" ||
17732 test ! -s conftest.err
17733 } && test -s conftest$ac_exeext && {
17734 test "$cross_compiling" = yes ||
17735 $as_test_x conftest$ac_exeext
17736 }; then
2207317737 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
2207417738 else
22075 echo "$as_me: failed program was:" >&5
17739 $as_echo "$as_me: failed program was:" >&5
2207617740 sed 's/^/| /' conftest.$ac_ext >&5
2207717741
22078 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
22079 fi
22080 rm -f conftest.err conftest.$ac_objext \
17742 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
17743 fi
17744
17745 rm -rf conftest.dSYM
17746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2208117747 conftest$ac_exeext conftest.$ac_ext
2208217748 LIBS=$ac_check_lib_save_LIBS
2208317749 fi
22084 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
22085 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
22086 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
17750 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
17751 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
17752 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
2208717753 cat >>confdefs.h <<_ACEOF
2208817754 #define HAVE_LIBXPM 1
2208917755 _ACEOF
2209917765
2210017766
2210117767
22102 # Check whether --enable-debug or --disable-debug was given.
17768 # Check whether --enable-debug was given.
2210317769 if test "${enable_debug+set}" = set; then
22104 enableval="$enable_debug"
22105
17770 enableval=$enable_debug;
2210617771 else
2210717772 enable_debug=no
22108 fi;
17773 fi
17774
2210917775 if test "$enable_debug" = yes; then
2211017776 DFLAGS="-Wall -g -ansi -pedantic"
2211117777 fi
2211217778
2211317779
2211417780
22115 ac_config_files="$ac_config_files Makefile src/Makefile fonts/Makefile examples/Makefile"
17781 ac_config_files="$ac_config_files Makefile src/Makefile fonts/Makefile examples/Makefile"
17782
2211617783 cat >confcache <<\_ACEOF
2211717784 # This file is a shell script that caches the results of configure
2211817785 # tests run on this system so they can be shared between configure
2213117798
2213217799 # The following way of writing the cache mishandles newlines in values,
2213317800 # but we know of no workaround that is simple, portable, and efficient.
22134 # So, don't put newlines in cache variables' values.
17801 # So, we kill variables containing newlines.
2213517802 # Ultrix sh set writes to stderr and can't be redirected directly,
2213617803 # and sets the high bit in the cache file unless we assign to the vars.
22137 {
17804 (
17805 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17806 eval ac_val=\$$ac_var
17807 case $ac_val in #(
17808 *${as_nl}*)
17809 case $ac_var in #(
17810 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17811 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17812 esac
17813 case $ac_var in #(
17814 _ | IFS | as_nl) ;; #(
17815 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17816 *) $as_unset $ac_var ;;
17817 esac ;;
17818 esac
17819 done
17820
2213817821 (set) 2>&1 |
22139 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22140 *ac_space=\ *)
17822 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17823 *${as_nl}ac_space=\ *)
2214117824 # `set' does not quote correctly, so add quotes (double-quote
2214217825 # substitution turns \\\\ into \\, and sed turns \\ into \).
2214317826 sed -n \
2214417827 "s/'/'\\\\''/g;
2214517828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22146 ;;
17829 ;; #(
2214717830 *)
2214817831 # `set' quotes correctly as required by POSIX, so do not add quotes.
22149 sed -n \
22150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17832 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2215117833 ;;
22152 esac;
22153 } |
17834 esac |
17835 sort
17836 ) |
2215417837 sed '
17838 /^ac_cv_env_/b end
2215517839 t clear
22156 : clear
17840 :clear
2215717841 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2215817842 t end
22159 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22160 : end' >>confcache
22161 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22162 if test -w $cache_file; then
22163 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17843 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17844 :end' >>confcache
17845 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17846 if test -w "$cache_file"; then
17847 test "x$cache_file" != "x/dev/null" &&
17848 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17849 $as_echo "$as_me: updating cache $cache_file" >&6;}
2216417850 cat confcache >$cache_file
2216517851 else
22166 echo "not updating unwritable cache $cache_file"
17852 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17853 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2216717854 fi
2216817855 fi
2216917856 rm -f confcache
2217117858 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2217217859 # Let make expand exec_prefix.
2217317860 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22174
22175 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22176 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22177 # trailing colons and then remove the whole line if VPATH becomes empty
22178 # (actually we leave an empty line to preserve line numbers).
22179 if test "x$srcdir" = x.; then
22180 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22181 s/:*\$(srcdir):*/:/;
22182 s/:*\${srcdir}:*/:/;
22183 s/:*@srcdir@:*/:/;
22184 s/^\([^=]*=[ ]*\):*/\1/;
22185 s/:*$//;
22186 s/^[^=]*=[ ]*$//;
22187 }'
22188 fi
2218917861
2219017862 # Transform confdefs.h into DEFS.
2219117863 # Protect against shell expansion while executing Makefile rules.
2219217864 # Protect against Makefile macro expansion.
2219317865 #
2219417866 # If the first sed substitution is executed (which looks for macros that
22195 # take arguments), then we branch to the quote section. Otherwise,
17867 # take arguments), then branch to the quote section. Otherwise,
2219617868 # look for a macro that doesn't take arguments.
22197 cat >confdef2opt.sed <<\_ACEOF
17869 ac_script='
17870 :mline
17871 /\\$/{
17872 N
17873 s,\\\n,,
17874 b mline
17875 }
2219817876 t clear
22199 : clear
22200 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
17877 :clear
17878 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2220117879 t quote
22202 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
17880 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2220317881 t quote
22204 d
22205 : quote
22206 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
22207 s,\[,\\&,g
22208 s,\],\\&,g
22209 s,\$,$$,g
22210 p
22211 _ACEOF
22212 # We use echo to avoid assuming a particular line-breaking character.
22213 # The extra dot is to prevent the shell from consuming trailing
22214 # line-breaks from the sub-command output. A line-break within
22215 # single-quotes doesn't work because, if this script is created in a
22216 # platform that uses two characters for line-breaks (e.g., DOS), tr
22217 # would break.
22218 ac_LF_and_DOT=`echo; echo .`
22219 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
22220 rm -f confdef2opt.sed
17882 b any
17883 :quote
17884 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17885 s/\[/\\&/g
17886 s/\]/\\&/g
17887 s/\$/$$/g
17888 H
17889 :any
17890 ${
17891 g
17892 s/^\n//
17893 s/\n/ /g
17894 p
17895 }
17896 '
17897 DEFS=`sed -n "$ac_script" confdefs.h`
2222117898
2222217899
2222317900 ac_libobjs=
2222417901 ac_ltlibobjs=
2222517902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2222617903 # 1. Remove the extension, and $U if already installed.
22227 ac_i=`echo "$ac_i" |
22228 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22229 # 2. Add them.
22230 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22231 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17904 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17905 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17906 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17907 # will be set to the directory where LIBOBJS objects are built.
17908 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17909 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2223217910 done
2223317911 LIBOBJS=$ac_libobjs
2223417912
2223617914
2223717915
2223817916 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22239 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17917 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
2224017918 Usually this means the macro was only invoked conditionally." >&5
22241 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17919 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
2224217920 Usually this means the macro was only invoked conditionally." >&2;}
2224317921 { (exit 1); exit 1; }; }
2224417922 fi
2224517923 if test -z "${COND_FONT_TRUE}" && test -z "${COND_FONT_FALSE}"; then
22246 { { echo "$as_me:$LINENO: error: conditional \"COND_FONT\" was never defined.
17924 { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FONT\" was never defined.
2224717925 Usually this means the macro was only invoked conditionally." >&5
22248 echo "$as_me: error: conditional \"COND_FONT\" was never defined.
17926 $as_echo "$as_me: error: conditional \"COND_FONT\" was never defined.
2224917927 Usually this means the macro was only invoked conditionally." >&2;}
2225017928 { (exit 1); exit 1; }; }
2225117929 fi
2225217930 if test -z "${COND_EXAMPLES_TRUE}" && test -z "${COND_EXAMPLES_FALSE}"; then
22253 { { echo "$as_me:$LINENO: error: conditional \"COND_EXAMPLES\" was never defined.
17931 { { $as_echo "$as_me:$LINENO: error: conditional \"COND_EXAMPLES\" was never defined.
2225417932 Usually this means the macro was only invoked conditionally." >&5
22255 echo "$as_me: error: conditional \"COND_EXAMPLES\" was never defined.
17933 $as_echo "$as_me: error: conditional \"COND_EXAMPLES\" was never defined.
2225617934 Usually this means the macro was only invoked conditionally." >&2;}
2225717935 { (exit 1); exit 1; }; }
2225817936 fi
2225917937 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22260 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17938 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
2226117939 Usually this means the macro was only invoked conditionally." >&5
22262 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17940 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
2226317941 Usually this means the macro was only invoked conditionally." >&2;}
2226417942 { (exit 1); exit 1; }; }
2226517943 fi
2226617944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22267 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17945 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2226817946 Usually this means the macro was only invoked conditionally." >&5
22269 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17947 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2227017948 Usually this means the macro was only invoked conditionally." >&2;}
2227117949 { (exit 1); exit 1; }; }
2227217950 fi
22273 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22274 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17951 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17952 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2227517953 Usually this means the macro was only invoked conditionally." >&5
22276 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17954 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2227717955 Usually this means the macro was only invoked conditionally." >&2;}
2227817956 { (exit 1); exit 1; }; }
2227917957 fi
22280 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22281 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17958 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17959 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
2228217960 Usually this means the macro was only invoked conditionally." >&5
22283 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17961 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
2228417962 Usually this means the macro was only invoked conditionally." >&2;}
2228517963 { (exit 1); exit 1; }; }
2228617964 fi
2228717965 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22288 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17966 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
2228917967 Usually this means the macro was only invoked conditionally." >&5
22290 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17968 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
2229117969 Usually this means the macro was only invoked conditionally." >&2;}
2229217970 { (exit 1); exit 1; }; }
2229317971 fi
2229417972
2229517973 : ${CONFIG_STATUS=./config.status}
17974 ac_write_fail=0
2229617975 ac_clean_files_save=$ac_clean_files
2229717976 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22298 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22299 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22300 cat >$CONFIG_STATUS <<_ACEOF
17977 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17978 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17979 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2230117980 #! $SHELL
2230217981 # Generated by $as_me.
2230317982 # Run this file to recreate the current configuration.
2231017989 SHELL=\${CONFIG_SHELL-$SHELL}
2231117990 _ACEOF
2231217991
22313 cat >>$CONFIG_STATUS <<\_ACEOF
17992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2231417993 ## --------------------- ##
2231517994 ## M4sh Initialization. ##
2231617995 ## --------------------- ##
2231717996
22318 # Be Bourne compatible
17997 # Be more Bourne compatible
17998 DUALCASE=1; export DUALCASE # for MKS sh
2231917999 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2232018000 emulate sh
2232118001 NULLCMD=:
22322 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18002 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2232318003 # is contrary to our usage. Disable this feature.
2232418004 alias -g '${1+"$@"}'='"$@"'
22325 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22326 set -o posix
22327 fi
22328 DUALCASE=1; export DUALCASE # for MKS sh
22329
22330 # Support unset when possible.
22331 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22332 as_unset=unset
22333 else
22334 as_unset=false
22335 fi
22336
22337
22338 # Work around bugs in pre-3.0 UWIN ksh.
22339 $as_unset ENV MAIL MAILPATH
22340 PS1='$ '
22341 PS2='> '
22342 PS4='+ '
22343
22344 # NLS nuisances.
22345 for as_var in \
22346 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22347 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22348 LC_TELEPHONE LC_TIME
22349 do
22350 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22351 eval $as_var=C; export $as_var
22352 else
22353 $as_unset $as_var
22354 fi
22355 done
22356
22357 # Required to use basename.
22358 if expr a : '\(a\)' >/dev/null 2>&1; then
22359 as_expr=expr
22360 else
22361 as_expr=false
22362 fi
22363
22364 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22365 as_basename=basename
22366 else
22367 as_basename=false
22368 fi
22369
22370
22371 # Name of the executable.
22372 as_me=`$as_basename "$0" ||
22373 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22374 X"$0" : 'X\(//\)$' \| \
22375 X"$0" : 'X\(/\)$' \| \
22376 . : '\(.\)' 2>/dev/null ||
22377 echo X/"$0" |
22378 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22379 /^X\/\(\/\/\)$/{ s//\1/; q; }
22380 /^X\/\(\/\).*/{ s//\1/; q; }
22381 s/.*/./; q'`
22382
22383
22384 # PATH needs CR, and LINENO needs CR and PATH.
18005 setopt NO_GLOB_SUBST
18006 else
18007 case `(set -o) 2>/dev/null` in
18008 *posix*) set -o posix ;;
18009 esac
18010
18011 fi
18012
18013
18014
18015
18016 # PATH needs CR
2238518017 # Avoid depending upon Character Ranges.
2238618018 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2238718019 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2238918021 as_cr_digits='0123456789'
2239018022 as_cr_alnum=$as_cr_Letters$as_cr_digits
2239118023
18024 as_nl='
18025 '
18026 export as_nl
18027 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18028 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18029 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18030 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18031 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18032 as_echo='printf %s\n'
18033 as_echo_n='printf %s'
18034 else
18035 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18036 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18037 as_echo_n='/usr/ucb/echo -n'
18038 else
18039 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18040 as_echo_n_body='eval
18041 arg=$1;
18042 case $arg in
18043 *"$as_nl"*)
18044 expr "X$arg" : "X\\(.*\\)$as_nl";
18045 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18046 esac;
18047 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18048 '
18049 export as_echo_n_body
18050 as_echo_n='sh -c $as_echo_n_body as_echo'
18051 fi
18052 export as_echo_body
18053 as_echo='sh -c $as_echo_body as_echo'
18054 fi
18055
2239218056 # The user is always right.
2239318057 if test "${PATH_SEPARATOR+set}" != set; then
22394 echo "#! /bin/sh" >conf$$.sh
22395 echo "exit 0" >>conf$$.sh
22396 chmod +x conf$$.sh
22397 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22398 PATH_SEPARATOR=';'
22399 else
22400 PATH_SEPARATOR=:
22401 fi
22402 rm -f conf$$.sh
22403 fi
22404
22405
22406 as_lineno_1=$LINENO
22407 as_lineno_2=$LINENO
22408 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22409 test "x$as_lineno_1" != "x$as_lineno_2" &&
22410 test "x$as_lineno_3" = "x$as_lineno_2" || {
22411 # Find who we are. Look in the path if we contain no path at all
22412 # relative or not.
22413 case $0 in
22414 *[\\/]* ) as_myself=$0 ;;
22415 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18058 PATH_SEPARATOR=:
18059 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18060 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18061 PATH_SEPARATOR=';'
18062 }
18063 fi
18064
18065 # Support unset when possible.
18066 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18067 as_unset=unset
18068 else
18069 as_unset=false
18070 fi
18071
18072
18073 # IFS
18074 # We need space, tab and new line, in precisely that order. Quoting is
18075 # there to prevent editors from complaining about space-tab.
18076 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18077 # splitting by setting IFS to empty value.)
18078 IFS=" "" $as_nl"
18079
18080 # Find who we are. Look in the path if we contain no directory separator.
18081 case $0 in
18082 *[\\/]* ) as_myself=$0 ;;
18083 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241618084 for as_dir in $PATH
2241718085 do
2241818086 IFS=$as_save_IFS
2241918087 test -z "$as_dir" && as_dir=.
2242018088 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2242118089 done
22422
22423 ;;
22424 esac
22425 # We did not find ourselves, most probably we were run as `sh COMMAND'
22426 # in which case we are not to be found in the path.
22427 if test "x$as_myself" = x; then
22428 as_myself=$0
22429 fi
22430 if test ! -f "$as_myself"; then
22431 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22432 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22433 { (exit 1); exit 1; }; }
22434 fi
22435 case $CONFIG_SHELL in
22436 '')
22437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22438 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22439 do
22440 IFS=$as_save_IFS
22441 test -z "$as_dir" && as_dir=.
22442 for as_base in sh bash ksh sh5; do
22443 case $as_dir in
22444 /*)
22445 if ("$as_dir/$as_base" -c '
18090 IFS=$as_save_IFS
18091
18092 ;;
18093 esac
18094 # We did not find ourselves, most probably we were run as `sh COMMAND'
18095 # in which case we are not to be found in the path.
18096 if test "x$as_myself" = x; then
18097 as_myself=$0
18098 fi
18099 if test ! -f "$as_myself"; then
18100 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18101 { (exit 1); exit 1; }
18102 fi
18103
18104 # Work around bugs in pre-3.0 UWIN ksh.
18105 for as_var in ENV MAIL MAILPATH
18106 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18107 done
18108 PS1='$ '
18109 PS2='> '
18110 PS4='+ '
18111
18112 # NLS nuisances.
18113 LC_ALL=C
18114 export LC_ALL
18115 LANGUAGE=C
18116 export LANGUAGE
18117
18118 # Required to use basename.
18119 if expr a : '\(a\)' >/dev/null 2>&1 &&
18120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18121 as_expr=expr
18122 else
18123 as_expr=false
18124 fi
18125
18126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18127 as_basename=basename
18128 else
18129 as_basename=false
18130 fi
18131
18132
18133 # Name of the executable.
18134 as_me=`$as_basename -- "$0" ||
18135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18136 X"$0" : 'X\(//\)$' \| \
18137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18138 $as_echo X/"$0" |
18139 sed '/^.*\/\([^/][^/]*\)\/*$/{
18140 s//\1/
18141 q
18142 }
18143 /^X\/\(\/\/\)$/{
18144 s//\1/
18145 q
18146 }
18147 /^X\/\(\/\).*/{
18148 s//\1/
18149 q
18150 }
18151 s/.*/./; q'`
18152
18153 # CDPATH.
18154 $as_unset CDPATH
18155
18156
18157
2244618158 as_lineno_1=$LINENO
2244718159 as_lineno_2=$LINENO
22448 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2244918160 test "x$as_lineno_1" != "x$as_lineno_2" &&
22450 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22451 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22452 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22453 CONFIG_SHELL=$as_dir/$as_base
22454 export CONFIG_SHELL
22455 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22456 fi;;
22457 esac
22458 done
22459 done
22460 ;;
22461 esac
18161 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2246218162
2246318163 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2246418164 # uniformly replaced by the line number. The first 'sed' inserts a
22465 # line-number line before each line; the second 'sed' does the real
22466 # work. The second script uses 'N' to pair each line-number line
22467 # with the numbered line, and appends trailing '-' during
22468 # substitution so that $LINENO is not a special case at line end.
18165 # line-number line after each line using $LINENO; the second 'sed'
18166 # does the real work. The second script uses 'N' to pair each
18167 # line-number line with the line containing $LINENO, and appends
18168 # trailing '-' during substitution so that $LINENO is not a special
18169 # case at line end.
2246918170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22470 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22471 sed '=' <$as_myself |
18171 # scripts with optimization help from Paolo Bonzini. Blame Lee
18172 # E. McMahon (1931-1989) for sed's syntax. :-)
18173 sed -n '
18174 p
18175 /[$]LINENO/=
18176 ' <$as_myself |
2247218177 sed '
18178 s/[$]LINENO.*/&-/
18179 t lineno
18180 b
18181 :lineno
2247318182 N
22474 s,$,-,
22475 : loop
22476 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18183 :loop
18184 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2247718185 t loop
22478 s,-$,,
22479 s,^['$as_cr_digits']*\n,,
18186 s/-\n.*//
2248018187 ' >$as_me.lineno &&
22481 chmod +x $as_me.lineno ||
22482 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22483 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18188 chmod +x "$as_me.lineno" ||
18189 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2248418190 { (exit 1); exit 1; }; }
2248518191
2248618192 # Don't try to exec as it changes $[0], causing all sort of problems
2248718193 # (the dirname of $[0] is not the place where we might find the
22488 # original and so on. Autoconf is especially sensible to this).
22489 . ./$as_me.lineno
18194 # original and so on. Autoconf is especially sensitive to this).
18195 . "./$as_me.lineno"
2249018196 # Exit status is that of the last command.
2249118197 exit
2249218198 }
2249318199
2249418200
22495 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22496 *c*,-n*) ECHO_N= ECHO_C='
22497 ' ECHO_T=' ' ;;
22498 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22499 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18201 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18202 as_dirname=dirname
18203 else
18204 as_dirname=false
18205 fi
18206
18207 ECHO_C= ECHO_N= ECHO_T=
18208 case `echo -n x` in
18209 -n*)
18210 case `echo 'x\c'` in
18211 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18212 *) ECHO_C='\c';;
18213 esac;;
18214 *)
18215 ECHO_N='-n';;
2250018216 esac
22501
22502 if expr a : '\(a\)' >/dev/null 2>&1; then
18217 if expr a : '\(a\)' >/dev/null 2>&1 &&
18218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2250318219 as_expr=expr
2250418220 else
2250518221 as_expr=false
2250618222 fi
2250718223
2250818224 rm -f conf$$ conf$$.exe conf$$.file
22509 echo >conf$$.file
22510 if ln -s conf$$.file conf$$ 2>/dev/null; then
22511 # We could just check for DJGPP; but this test a) works b) is more generic
22512 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22513 if test -f conf$$.exe; then
22514 # Don't use ln at all; we don't have any links
18225 if test -d conf$$.dir; then
18226 rm -f conf$$.dir/conf$$.file
18227 else
18228 rm -f conf$$.dir
18229 mkdir conf$$.dir 2>/dev/null
18230 fi
18231 if (echo >conf$$.file) 2>/dev/null; then
18232 if ln -s conf$$.file conf$$ 2>/dev/null; then
18233 as_ln_s='ln -s'
18234 # ... but there are two gotchas:
18235 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18236 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18237 # In both cases, we have to default to `cp -p'.
18238 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18239 as_ln_s='cp -p'
18240 elif ln conf$$.file conf$$ 2>/dev/null; then
18241 as_ln_s=ln
18242 else
2251518243 as_ln_s='cp -p'
22516 else
22517 as_ln_s='ln -s'
2251818244 fi
22519 elif ln conf$$.file conf$$ 2>/dev/null; then
22520 as_ln_s=ln
2252118245 else
2252218246 as_ln_s='cp -p'
2252318247 fi
22524 rm -f conf$$ conf$$.exe conf$$.file
18248 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18249 rmdir conf$$.dir 2>/dev/null
2252518250
2252618251 if mkdir -p . 2>/dev/null; then
2252718252 as_mkdir_p=:
2253018255 as_mkdir_p=false
2253118256 fi
2253218257
22533 as_executable_p="test -f"
18258 if test -x / >/dev/null 2>&1; then
18259 as_test_x='test -x'
18260 else
18261 if ls -dL / >/dev/null 2>&1; then
18262 as_ls_L_option=L
18263 else
18264 as_ls_L_option=
18265 fi
18266 as_test_x='
18267 eval sh -c '\''
18268 if test -d "$1"; then
18269 test -d "$1/.";
18270 else
18271 case $1 in
18272 -*)set "./$1";;
18273 esac;
18274 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18275 ???[sx]*):;;*)false;;esac;fi
18276 '\'' sh
18277 '
18278 fi
18279 as_executable_p=$as_test_x
2253418280
2253518281 # Sed expression to map a string onto a valid CPP name.
2253618282 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2253918285 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2254018286
2254118287
22542 # IFS
22543 # We need space, tab and new line, in precisely that order.
22544 as_nl='
22545 '
22546 IFS=" $as_nl"
22547
22548 # CDPATH.
22549 $as_unset CDPATH
22550
2255118288 exec 6>&1
2255218289
22553 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18290 # Save the log message, to keep $[0] and so on meaningful, and to
2255418291 # report actual input values of CONFIG_FILES etc. instead of their
22555 # values after options handling. Logging --version etc. is OK.
18292 # values after options handling.
18293 ac_log="
18294 This file was extended by $as_me, which was
18295 generated by GNU Autoconf 2.63. Invocation command line was
18296
18297 CONFIG_FILES = $CONFIG_FILES
18298 CONFIG_HEADERS = $CONFIG_HEADERS
18299 CONFIG_LINKS = $CONFIG_LINKS
18300 CONFIG_COMMANDS = $CONFIG_COMMANDS
18301 $ $0 $@
18302
18303 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18304 "
18305
18306 _ACEOF
18307
18308 case $ac_config_files in *"
18309 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18310 esac
18311
18312
18313
18314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18315 # Files that config.status was made for.
18316 config_files="$ac_config_files"
18317 config_commands="$ac_config_commands"
18318
18319 _ACEOF
18320
18321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18322 ac_cs_usage="\
18323 \`$as_me' instantiates files from templates according to the
18324 current configuration.
18325
18326 Usage: $0 [OPTION]... [FILE]...
18327
18328 -h, --help print this help, then exit
18329 -V, --version print version number and configuration settings, then exit
18330 -q, --quiet, --silent
18331 do not print progress messages
18332 -d, --debug don't remove temporary files
18333 --recheck update $as_me by reconfiguring in the same conditions
18334 --file=FILE[:TEMPLATE]
18335 instantiate the configuration file FILE
18336
18337 Configuration files:
18338 $config_files
18339
18340 Configuration commands:
18341 $config_commands
18342
18343 Report bugs to <bug-autoconf@gnu.org>."
18344
18345 _ACEOF
18346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18347 ac_cs_version="\\
18348 config.status
18349 configured by $0, generated by GNU Autoconf 2.63,
18350 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18351
18352 Copyright (C) 2008 Free Software Foundation, Inc.
18353 This config.status script is free software; the Free Software Foundation
18354 gives unlimited permission to copy, distribute and modify it."
18355
18356 ac_pwd='$ac_pwd'
18357 srcdir='$srcdir'
18358 INSTALL='$INSTALL'
18359 MKDIR_P='$MKDIR_P'
18360 AWK='$AWK'
18361 test -n "\$AWK" || AWK=awk
18362 _ACEOF
18363
18364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18365 # The default lists apply if the user does not specify any file.
18366 ac_need_defaults=:
18367 while test $# != 0
18368 do
18369 case $1 in
18370 --*=*)
18371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18372 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18373 ac_shift=:
18374 ;;
18375 *)
18376 ac_option=$1
18377 ac_optarg=$2
18378 ac_shift=shift
18379 ;;
18380 esac
18381
18382 case $ac_option in
18383 # Handling of the options.
18384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18385 ac_cs_recheck=: ;;
18386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18387 $as_echo "$ac_cs_version"; exit ;;
18388 --debug | --debu | --deb | --de | --d | -d )
18389 debug=: ;;
18390 --file | --fil | --fi | --f )
18391 $ac_shift
18392 case $ac_optarg in
18393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18394 esac
18395 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18396 ac_need_defaults=false;;
18397 --he | --h | --help | --hel | -h )
18398 $as_echo "$ac_cs_usage"; exit ;;
18399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18400 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18401 ac_cs_silent=: ;;
18402
18403 # This is an error.
18404 -*) { $as_echo "$as_me: error: unrecognized option: $1
18405 Try \`$0 --help' for more information." >&2
18406 { (exit 1); exit 1; }; } ;;
18407
18408 *) ac_config_targets="$ac_config_targets $1"
18409 ac_need_defaults=false ;;
18410
18411 esac
18412 shift
18413 done
18414
18415 ac_configure_extra_args=
18416
18417 if $ac_cs_silent; then
18418 exec 6>/dev/null
18419 ac_configure_extra_args="$ac_configure_extra_args --silent"
18420 fi
18421
18422 _ACEOF
18423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18424 if \$ac_cs_recheck; then
18425 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18426 shift
18427 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18428 CONFIG_SHELL='$SHELL'
18429 export CONFIG_SHELL
18430 exec "\$@"
18431 fi
18432
18433 _ACEOF
18434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2255618435 exec 5>>config.log
2255718436 {
2255818437 echo
2255918438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2256018439 ## Running $as_me. ##
2256118440 _ASBOX
18441 $as_echo "$ac_log"
2256218442 } >&5
22563 cat >&5 <<_CSEOF
22564
22565 This file was extended by $as_me, which was
22566 generated by GNU Autoconf 2.59. Invocation command line was
22567
22568 CONFIG_FILES = $CONFIG_FILES
22569 CONFIG_HEADERS = $CONFIG_HEADERS
22570 CONFIG_LINKS = $CONFIG_LINKS
22571 CONFIG_COMMANDS = $CONFIG_COMMANDS
22572 $ $0 $@
22573
22574 _CSEOF
22575 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22576 echo >&5
18443
2257718444 _ACEOF
22578
22579 # Files that config.status was made for.
22580 if test -n "$ac_config_files"; then
22581 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22582 fi
22583
22584 if test -n "$ac_config_headers"; then
22585 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22586 fi
22587
22588 if test -n "$ac_config_links"; then
22589 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22590 fi
22591
22592 if test -n "$ac_config_commands"; then
22593 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22594 fi
22595
22596 cat >>$CONFIG_STATUS <<\_ACEOF
22597
22598 ac_cs_usage="\
22599 \`$as_me' instantiates files from templates according to the
22600 current configuration.
22601
22602 Usage: $0 [OPTIONS] [FILE]...
22603
22604 -h, --help print this help, then exit
22605 -V, --version print version number, then exit
22606 -q, --quiet do not print progress messages
22607 -d, --debug don't remove temporary files
22608 --recheck update $as_me by reconfiguring in the same conditions
22609 --file=FILE[:TEMPLATE]
22610 instantiate the configuration file FILE
22611
22612 Configuration files:
22613 $config_files
22614
22615 Configuration commands:
22616 $config_commands
22617
22618 Report bugs to <bug-autoconf@gnu.org>."
18445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18446 #
18447 # INIT-COMMANDS
18448 #
18449 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18450
18451
18452 # The HP-UX ksh and POSIX shell print the target directory to stdout
18453 # if CDPATH is set.
18454 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18455
18456 sed_quote_subst='$sed_quote_subst'
18457 double_quote_subst='$double_quote_subst'
18458 delay_variable_subst='$delay_variable_subst'
18459 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18460 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18461 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18462 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18463 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18464 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18465 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18466 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18467 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18468 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18469 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18470 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18471 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18472 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18473 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18474 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18475 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18476 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18477 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18478 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18479 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18480 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18481 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18482 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18483 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18484 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18485 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18486 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18487 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18488 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18489 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18490 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18491 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18492 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18493 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18494 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18495 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18496 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18497 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18498 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18499 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18500 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18501 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18502 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18503 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18504 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18505 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18506 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18507 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18508 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18509 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18510 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18511 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18512 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18513 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18514 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18515 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18516 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18517 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18518 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18519 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18520 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18521 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18522 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18523 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18524 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18525 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18526 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18527 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18528 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18529 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18530 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18531 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18532 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18533 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18534 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18535 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18536 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18537 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18538 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18539 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18540 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18541 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18542 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18543 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18544 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18545 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18546 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18547 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18548 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18549 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18550 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18551 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18552 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18553 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18554 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18555 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18556 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18557 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18558 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18559 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18560 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18561 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18562 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18563 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18564 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18565 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18566 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18567 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18568 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18569 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18570 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18571 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18572 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18573 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18574 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18575 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18576 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18577 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18578 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18579 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18580 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18581 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18582 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18583 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18584 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18585 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18586 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18587 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18588 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18589 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18590 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18591 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18592 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18593 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18594 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18595 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18596 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18597 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18598 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18599 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18600 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18601 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18602 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18603 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18604 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18605 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18606 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18607 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18608 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18609 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18610 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18611 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18612 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18613 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18614 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18615 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18616 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18617 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18618 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18619 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18620 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18621 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18622 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18623 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18624 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18625 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18626 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18627 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18628 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18629 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18630
18631 LTCC='$LTCC'
18632 LTCFLAGS='$LTCFLAGS'
18633 compiler='$compiler_DEFAULT'
18634
18635 # Quote evaled strings.
18636 for var in SED \
18637 GREP \
18638 EGREP \
18639 FGREP \
18640 LD \
18641 NM \
18642 LN_S \
18643 lt_SP2NL \
18644 lt_NL2SP \
18645 reload_flag \
18646 OBJDUMP \
18647 deplibs_check_method \
18648 file_magic_cmd \
18649 AR \
18650 AR_FLAGS \
18651 STRIP \
18652 RANLIB \
18653 CC \
18654 CFLAGS \
18655 compiler \
18656 lt_cv_sys_global_symbol_pipe \
18657 lt_cv_sys_global_symbol_to_cdecl \
18658 lt_cv_sys_global_symbol_to_c_name_address \
18659 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18660 SHELL \
18661 ECHO \
18662 lt_prog_compiler_no_builtin_flag \
18663 lt_prog_compiler_wl \
18664 lt_prog_compiler_pic \
18665 lt_prog_compiler_static \
18666 lt_cv_prog_compiler_c_o \
18667 need_locks \
18668 DSYMUTIL \
18669 NMEDIT \
18670 LIPO \
18671 OTOOL \
18672 OTOOL64 \
18673 shrext_cmds \
18674 export_dynamic_flag_spec \
18675 whole_archive_flag_spec \
18676 compiler_needs_object \
18677 with_gnu_ld \
18678 allow_undefined_flag \
18679 no_undefined_flag \
18680 hardcode_libdir_flag_spec \
18681 hardcode_libdir_flag_spec_ld \
18682 hardcode_libdir_separator \
18683 fix_srcfile_path \
18684 exclude_expsyms \
18685 include_expsyms \
18686 file_list_spec \
18687 variables_saved_for_relink \
18688 libname_spec \
18689 library_names_spec \
18690 soname_spec \
18691 finish_eval \
18692 old_striplib \
18693 striplib \
18694 compiler_lib_search_dirs \
18695 predep_objects \
18696 postdep_objects \
18697 predeps \
18698 postdeps \
18699 compiler_lib_search_path \
18700 LD_CXX \
18701 compiler_CXX \
18702 lt_prog_compiler_no_builtin_flag_CXX \
18703 lt_prog_compiler_wl_CXX \
18704 lt_prog_compiler_pic_CXX \
18705 lt_prog_compiler_static_CXX \
18706 lt_cv_prog_compiler_c_o_CXX \
18707 export_dynamic_flag_spec_CXX \
18708 whole_archive_flag_spec_CXX \
18709 compiler_needs_object_CXX \
18710 with_gnu_ld_CXX \
18711 allow_undefined_flag_CXX \
18712 no_undefined_flag_CXX \
18713 hardcode_libdir_flag_spec_CXX \
18714 hardcode_libdir_flag_spec_ld_CXX \
18715 hardcode_libdir_separator_CXX \
18716 fix_srcfile_path_CXX \
18717 exclude_expsyms_CXX \
18718 include_expsyms_CXX \
18719 file_list_spec_CXX \
18720 compiler_lib_search_dirs_CXX \
18721 predep_objects_CXX \
18722 postdep_objects_CXX \
18723 predeps_CXX \
18724 postdeps_CXX \
18725 compiler_lib_search_path_CXX; do
18726 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18727 *[\\\\\\\`\\"\\\$]*)
18728 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18729 ;;
18730 *)
18731 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18732 ;;
18733 esac
18734 done
18735
18736 # Double-quote double-evaled strings.
18737 for var in reload_cmds \
18738 old_postinstall_cmds \
18739 old_postuninstall_cmds \
18740 old_archive_cmds \
18741 extract_expsyms_cmds \
18742 old_archive_from_new_cmds \
18743 old_archive_from_expsyms_cmds \
18744 archive_cmds \
18745 archive_expsym_cmds \
18746 module_cmds \
18747 module_expsym_cmds \
18748 export_symbols_cmds \
18749 prelink_cmds \
18750 postinstall_cmds \
18751 postuninstall_cmds \
18752 finish_cmds \
18753 sys_lib_search_path_spec \
18754 sys_lib_dlsearch_path_spec \
18755 old_archive_cmds_CXX \
18756 old_archive_from_new_cmds_CXX \
18757 old_archive_from_expsyms_cmds_CXX \
18758 archive_cmds_CXX \
18759 archive_expsym_cmds_CXX \
18760 module_cmds_CXX \
18761 module_expsym_cmds_CXX \
18762 export_symbols_cmds_CXX \
18763 prelink_cmds_CXX; do
18764 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18765 *[\\\\\\\`\\"\\\$]*)
18766 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18767 ;;
18768 *)
18769 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18770 ;;
18771 esac
18772 done
18773
18774 # Fix-up fallback echo if it was mangled by the above quoting rules.
18775 case \$lt_ECHO in
18776 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18777 ;;
18778 esac
18779
18780 ac_aux_dir='$ac_aux_dir'
18781 xsi_shell='$xsi_shell'
18782 lt_shell_append='$lt_shell_append'
18783
18784 # See if we are running on zsh, and set the options which allow our
18785 # commands through without removal of \ escapes INIT.
18786 if test -n "\${ZSH_VERSION+set}" ; then
18787 setopt NO_GLOB_SUBST
18788 fi
18789
18790
18791 PACKAGE='$PACKAGE'
18792 VERSION='$VERSION'
18793 TIMESTAMP='$TIMESTAMP'
18794 RM='$RM'
18795 ofile='$ofile'
18796
18797
18798
18799
18800
18801
2261918802 _ACEOF
2262018803
22621 cat >>$CONFIG_STATUS <<_ACEOF
22622 ac_cs_version="\\
22623 config.status
22624 configured by $0, generated by GNU Autoconf 2.59,
22625 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22626
22627 Copyright (C) 2003 Free Software Foundation, Inc.
22628 This config.status script is free software; the Free Software Foundation
22629 gives unlimited permission to copy, distribute and modify it."
22630 srcdir=$srcdir
22631 INSTALL="$INSTALL"
22632 _ACEOF
22633
22634 cat >>$CONFIG_STATUS <<\_ACEOF
22635 # If no file are specified by the user, then we need to provide default
22636 # value. By we need to know if files were specified by the user.
22637 ac_need_defaults=:
22638 while test $# != 0
22639 do
22640 case $1 in
22641 --*=*)
22642 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22643 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22644 ac_shift=:
22645 ;;
22646 -*)
22647 ac_option=$1
22648 ac_optarg=$2
22649 ac_shift=shift
22650 ;;
22651 *) # This is not an option, so the user has probably given explicit
22652 # arguments.
22653 ac_option=$1
22654 ac_need_defaults=false;;
22655 esac
22656
22657 case $ac_option in
22658 # Handling of the options.
22659 _ACEOF
22660 cat >>$CONFIG_STATUS <<\_ACEOF
22661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22662 ac_cs_recheck=: ;;
22663 --version | --vers* | -V )
22664 echo "$ac_cs_version"; exit 0 ;;
22665 --he | --h)
22666 # Conflict between --help and --header
22667 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22668 Try \`$0 --help' for more information." >&5
22669 echo "$as_me: error: ambiguous option: $1
22670 Try \`$0 --help' for more information." >&2;}
22671 { (exit 1); exit 1; }; };;
22672 --help | --hel | -h )
22673 echo "$ac_cs_usage"; exit 0 ;;
22674 --debug | --d* | -d )
22675 debug=: ;;
22676 --file | --fil | --fi | --f )
22677 $ac_shift
22678 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22679 ac_need_defaults=false;;
22680 --header | --heade | --head | --hea )
22681 $ac_shift
22682 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22683 ac_need_defaults=false;;
22684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22685 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22686 ac_cs_silent=: ;;
22687
22688 # This is an error.
22689 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22690 Try \`$0 --help' for more information." >&5
22691 echo "$as_me: error: unrecognized option: $1
22692 Try \`$0 --help' for more information." >&2;}
22693 { (exit 1); exit 1; }; } ;;
22694
22695 *) ac_config_targets="$ac_config_targets $1" ;;
22696
22697 esac
22698 shift
22699 done
22700
22701 ac_configure_extra_args=
22702
22703 if $ac_cs_silent; then
22704 exec 6>/dev/null
22705 ac_configure_extra_args="$ac_configure_extra_args --silent"
22706 fi
22707
22708 _ACEOF
22709 cat >>$CONFIG_STATUS <<_ACEOF
22710 if \$ac_cs_recheck; then
22711 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22712 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22713 fi
22714
22715 _ACEOF
22716
22717 cat >>$CONFIG_STATUS <<_ACEOF
22718 #
22719 # INIT-COMMANDS section.
22720 #
22721
22722 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22723
22724 _ACEOF
22725
22726
22727
22728 cat >>$CONFIG_STATUS <<\_ACEOF
18804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18805
18806 # Handling of arguments.
2272918807 for ac_config_target in $ac_config_targets
2273018808 do
22731 case "$ac_config_target" in
22732 # Handling of arguments.
22733 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22734 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22735 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
22736 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22737 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22738 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22739 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18809 case $ac_config_target in
18810 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18811 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18812 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18813 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18814 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
18815 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18816
18817 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18818 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2274018819 { (exit 1); exit 1; }; };;
2274118820 esac
2274218821 done
18822
2274318823
2274418824 # If the user did not use the arguments to specify the items to instantiate,
2274518825 # then the envvar interface is used. Set only those that are not.
2275118831 fi
2275218832
2275318833 # Have a temporary directory for convenience. Make it in the build tree
22754 # simply because there is no reason to put it here, and in addition,
18834 # simply because there is no reason against having it here, and in addition,
2275518835 # creating and moving files from /tmp can sometimes cause problems.
22756 # Create a temporary directory, and hook for its removal unless debugging.
18836 # Hook for its removal unless debugging.
18837 # Note that there is a small window in which the directory will not be cleaned:
18838 # after its creation but before its name has been assigned to `$tmp'.
2275718839 $debug ||
2275818840 {
22759 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18841 tmp=
18842 trap 'exit_status=$?
18843 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18844 ' 0
2276018845 trap '{ (exit 1); exit 1; }' 1 2 13 15
2276118846 }
22762
2276318847 # Create a (secure) tmp directory for tmp files.
2276418848
2276518849 {
22766 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18850 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2276718851 test -n "$tmp" && test -d "$tmp"
2276818852 } ||
2276918853 {
22770 tmp=./confstat$$-$RANDOM
22771 (umask 077 && mkdir $tmp)
18854 tmp=./conf$$-$RANDOM
18855 (umask 077 && mkdir "$tmp")
2277218856 } ||
2277318857 {
22774 echo "$me: cannot create a temporary directory in ." >&2
18858 $as_echo "$as_me: cannot create a temporary directory in ." >&2
2277518859 { (exit 1); exit 1; }
2277618860 }
2277718861
18862 # Set up the scripts for CONFIG_FILES section.
18863 # No need to generate them if there are no CONFIG_FILES.
18864 # This happens for instance with `./config.status config.h'.
18865 if test -n "$CONFIG_FILES"; then
18866
18867
18868 ac_cr='
18869 '
18870 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18871 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18872 ac_cs_awk_cr='\\r'
18873 else
18874 ac_cs_awk_cr=$ac_cr
18875 fi
18876
18877 echo 'BEGIN {' >"$tmp/subs1.awk" &&
2277818878 _ACEOF
2277918879
22780 cat >>$CONFIG_STATUS <<_ACEOF
22781
22782 #
22783 # CONFIG_FILES section.
22784 #
22785
22786 # No need to generate the scripts if there are no CONFIG_FILES.
22787 # This happens for instance when ./config.status config.h
22788 if test -n "\$CONFIG_FILES"; then
22789 # Protect against being on the right side of a sed subst in config.status.
22790 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22791 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22792 s,@SHELL@,$SHELL,;t t
22793 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22794 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22795 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22796 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22797 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22798 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22799 s,@exec_prefix@,$exec_prefix,;t t
22800 s,@prefix@,$prefix,;t t
22801 s,@program_transform_name@,$program_transform_name,;t t
22802 s,@bindir@,$bindir,;t t
22803 s,@sbindir@,$sbindir,;t t
22804 s,@libexecdir@,$libexecdir,;t t
22805 s,@datadir@,$datadir,;t t
22806 s,@sysconfdir@,$sysconfdir,;t t
22807 s,@sharedstatedir@,$sharedstatedir,;t t
22808 s,@localstatedir@,$localstatedir,;t t
22809 s,@libdir@,$libdir,;t t
22810 s,@includedir@,$includedir,;t t
22811 s,@oldincludedir@,$oldincludedir,;t t
22812 s,@infodir@,$infodir,;t t
22813 s,@mandir@,$mandir,;t t
22814 s,@build_alias@,$build_alias,;t t
22815 s,@host_alias@,$host_alias,;t t
22816 s,@target_alias@,$target_alias,;t t
22817 s,@DEFS@,$DEFS,;t t
22818 s,@ECHO_C@,$ECHO_C,;t t
22819 s,@ECHO_N@,$ECHO_N,;t t
22820 s,@ECHO_T@,$ECHO_T,;t t
22821 s,@LIBS@,$LIBS,;t t
22822 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22823 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22824 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22825 s,@CYGPATH_W@,$CYGPATH_W,;t t
22826 s,@PACKAGE@,$PACKAGE,;t t
22827 s,@VERSION@,$VERSION,;t t
22828 s,@ACLOCAL@,$ACLOCAL,;t t
22829 s,@AUTOCONF@,$AUTOCONF,;t t
22830 s,@AUTOMAKE@,$AUTOMAKE,;t t
22831 s,@AUTOHEADER@,$AUTOHEADER,;t t
22832 s,@MAKEINFO@,$MAKEINFO,;t t
22833 s,@install_sh@,$install_sh,;t t
22834 s,@STRIP@,$STRIP,;t t
22835 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22836 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22837 s,@mkdir_p@,$mkdir_p,;t t
22838 s,@AWK@,$AWK,;t t
22839 s,@SET_MAKE@,$SET_MAKE,;t t
22840 s,@am__leading_dot@,$am__leading_dot,;t t
22841 s,@AMTAR@,$AMTAR,;t t
22842 s,@am__tar@,$am__tar,;t t
22843 s,@am__untar@,$am__untar,;t t
22844 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22845 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22846 s,@MAINT@,$MAINT,;t t
22847 s,@COND_FONT_TRUE@,$COND_FONT_TRUE,;t t
22848 s,@COND_FONT_FALSE@,$COND_FONT_FALSE,;t t
22849 s,@COND_EXAMPLES_TRUE@,$COND_EXAMPLES_TRUE,;t t
22850 s,@COND_EXAMPLES_FALSE@,$COND_EXAMPLES_FALSE,;t t
22851 s,@RANLIB@,$RANLIB,;t t
22852 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22853 s,@build@,$build,;t t
22854 s,@build_cpu@,$build_cpu,;t t
22855 s,@build_vendor@,$build_vendor,;t t
22856 s,@build_os@,$build_os,;t t
22857 s,@host@,$host,;t t
22858 s,@host_cpu@,$host_cpu,;t t
22859 s,@host_vendor@,$host_vendor,;t t
22860 s,@host_os@,$host_os,;t t
22861 s,@CC@,$CC,;t t
22862 s,@CFLAGS@,$CFLAGS,;t t
22863 s,@LDFLAGS@,$LDFLAGS,;t t
22864 s,@CPPFLAGS@,$CPPFLAGS,;t t
22865 s,@ac_ct_CC@,$ac_ct_CC,;t t
22866 s,@EXEEXT@,$EXEEXT,;t t
22867 s,@OBJEXT@,$OBJEXT,;t t
22868 s,@DEPDIR@,$DEPDIR,;t t
22869 s,@am__include@,$am__include,;t t
22870 s,@am__quote@,$am__quote,;t t
22871 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22872 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22873 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22874 s,@CCDEPMODE@,$CCDEPMODE,;t t
22875 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22876 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22877 s,@EGREP@,$EGREP,;t t
22878 s,@LN_S@,$LN_S,;t t
22879 s,@ECHO@,$ECHO,;t t
22880 s,@AR@,$AR,;t t
22881 s,@ac_ct_AR@,$ac_ct_AR,;t t
22882 s,@CPP@,$CPP,;t t
22883 s,@CXX@,$CXX,;t t
22884 s,@CXXFLAGS@,$CXXFLAGS,;t t
22885 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22886 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22887 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22888 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22889 s,@CXXCPP@,$CXXCPP,;t t
22890 s,@F77@,$F77,;t t
22891 s,@FFLAGS@,$FFLAGS,;t t
22892 s,@ac_ct_F77@,$ac_ct_F77,;t t
22893 s,@LIBTOOL@,$LIBTOOL,;t t
22894 s,@X_CFLAGS@,$X_CFLAGS,;t t
22895 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22896 s,@X_LIBS@,$X_LIBS,;t t
22897 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22898 s,@DFLAGS@,$DFLAGS,;t t
22899 s,@LIBOBJS@,$LIBOBJS,;t t
22900 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22901 CEOF
22902
18880
18881 {
18882 echo "cat >conf$$subs.awk <<_ACEOF" &&
18883 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18884 echo "_ACEOF"
18885 } >conf$$subs.sh ||
18886 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18887 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18888 { (exit 1); exit 1; }; }
18889 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18890 ac_delim='%!_!# '
18891 for ac_last_try in false false false false false :; do
18892 . ./conf$$subs.sh ||
18893 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18894 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18895 { (exit 1); exit 1; }; }
18896
18897 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18898 if test $ac_delim_n = $ac_delim_num; then
18899 break
18900 elif $ac_last_try; then
18901 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18902 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18903 { (exit 1); exit 1; }; }
18904 else
18905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18906 fi
18907 done
18908 rm -f conf$$subs.sh
18909
18910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18911 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2290318912 _ACEOF
22904
22905 cat >>$CONFIG_STATUS <<\_ACEOF
22906 # Split the substitutions into bite-sized pieces for seds with
22907 # small command number limits, like on Digital OSF/1 and HP-UX.
22908 ac_max_sed_lines=48
22909 ac_sed_frag=1 # Number of current file.
22910 ac_beg=1 # First line for current file.
22911 ac_end=$ac_max_sed_lines # Line after last line for current file.
22912 ac_more_lines=:
22913 ac_sed_cmds=
22914 while $ac_more_lines; do
22915 if test $ac_beg -gt 1; then
22916 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22917 else
22918 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18913 sed -n '
18914 h
18915 s/^/S["/; s/!.*/"]=/
18916 p
18917 g
18918 s/^[^!]*!//
18919 :repl
18920 t repl
18921 s/'"$ac_delim"'$//
18922 t delim
18923 :nl
18924 h
18925 s/\(.\{148\}\).*/\1/
18926 t more1
18927 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18928 p
18929 n
18930 b repl
18931 :more1
18932 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18933 p
18934 g
18935 s/.\{148\}//
18936 t nl
18937 :delim
18938 h
18939 s/\(.\{148\}\).*/\1/
18940 t more2
18941 s/["\\]/\\&/g; s/^/"/; s/$/"/
18942 p
18943 b
18944 :more2
18945 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18946 p
18947 g
18948 s/.\{148\}//
18949 t delim
18950 ' <conf$$subs.awk | sed '
18951 /^[^""]/{
18952 N
18953 s/\n//
18954 }
18955 ' >>$CONFIG_STATUS || ac_write_fail=1
18956 rm -f conf$$subs.awk
18957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18958 _ACAWK
18959 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18960 for (key in S) S_is_set[key] = 1
18961 FS = ""
18962
18963 }
18964 {
18965 line = $ 0
18966 nfields = split(line, field, "@")
18967 substed = 0
18968 len = length(field[1])
18969 for (i = 2; i < nfields; i++) {
18970 key = field[i]
18971 keylen = length(key)
18972 if (S_is_set[key]) {
18973 value = S[key]
18974 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18975 len += length(value) + length(field[++i])
18976 substed = 1
18977 } else
18978 len += 1 + keylen
18979 }
18980
18981 print line
18982 }
18983
18984 _ACAWK
18985 _ACEOF
18986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18987 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18988 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18989 else
18990 cat
18991 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18992 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18993 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18994 { (exit 1); exit 1; }; }
18995 _ACEOF
18996
18997 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18998 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18999 # trailing colons and then remove the whole line if VPATH becomes empty
19000 # (actually we leave an empty line to preserve line numbers).
19001 if test "x$srcdir" = x.; then
19002 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19003 s/:*\$(srcdir):*/:/
19004 s/:*\${srcdir}:*/:/
19005 s/:*@srcdir@:*/:/
19006 s/^\([^=]*=[ ]*\):*/\1/
19007 s/:*$//
19008 s/^[^=]*=[ ]*$//
19009 }'
19010 fi
19011
19012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19013 fi # test -n "$CONFIG_FILES"
19014
19015
19016 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
19017 shift
19018 for ac_tag
19019 do
19020 case $ac_tag in
19021 :[FHLC]) ac_mode=$ac_tag; continue;;
19022 esac
19023 case $ac_mode$ac_tag in
19024 :[FHL]*:*);;
19025 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19026 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19027 { (exit 1); exit 1; }; };;
19028 :[FH]-) ac_tag=-:-;;
19029 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19030 esac
19031 ac_save_IFS=$IFS
19032 IFS=:
19033 set x $ac_tag
19034 IFS=$ac_save_IFS
19035 shift
19036 ac_file=$1
19037 shift
19038
19039 case $ac_mode in
19040 :L) ac_source=$1;;
19041 :[FH])
19042 ac_file_inputs=
19043 for ac_f
19044 do
19045 case $ac_f in
19046 -) ac_f="$tmp/stdin";;
19047 *) # Look for the file first in the build tree, then in the source tree
19048 # (if the path is not absolute). The absolute path cannot be DOS-style,
19049 # because $ac_f cannot contain `:'.
19050 test -f "$ac_f" ||
19051 case $ac_f in
19052 [\\/$]*) false;;
19053 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19054 esac ||
19055 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19056 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19057 { (exit 1); exit 1; }; };;
19058 esac
19059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19060 ac_file_inputs="$ac_file_inputs '$ac_f'"
19061 done
19062
19063 # Let's still pretend it is `configure' which instantiates (i.e., don't
19064 # use $as_me), people would be surprised to read:
19065 # /* config.h. Generated by config.status. */
19066 configure_input='Generated from '`
19067 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19068 `' by configure.'
19069 if test x"$ac_file" != x-; then
19070 configure_input="$ac_file. $configure_input"
19071 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19072 $as_echo "$as_me: creating $ac_file" >&6;}
2291919073 fi
22920 if test ! -s $tmp/subs.frag; then
22921 ac_more_lines=false
22922 else
22923 # The purpose of the label and of the branching condition is to
22924 # speed up the sed processing (if there are no `@' at all, there
22925 # is no need to browse any of the substitutions).
22926 # These are the two extra sed commands mentioned above.
22927 (echo ':t
22928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22929 if test -z "$ac_sed_cmds"; then
22930 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22931 else
22932 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22933 fi
22934 ac_sed_frag=`expr $ac_sed_frag + 1`
22935 ac_beg=$ac_end
22936 ac_end=`expr $ac_end + $ac_max_sed_lines`
22937 fi
22938 done
22939 if test -z "$ac_sed_cmds"; then
22940 ac_sed_cmds=cat
22941 fi
22942 fi # test -n "$CONFIG_FILES"
22943
22944 _ACEOF
22945 cat >>$CONFIG_STATUS <<\_ACEOF
22946 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22947 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22948 case $ac_file in
22949 - | *:- | *:-:* ) # input from stdin
22950 cat >$tmp/stdin
22951 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22952 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22953 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22955 * ) ac_file_in=$ac_file.in ;;
19074 # Neutralize special characters interpreted by sed in replacement strings.
19075 case $configure_input in #(
19076 *\&* | *\|* | *\\* )
19077 ac_sed_conf_input=`$as_echo "$configure_input" |
19078 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19079 *) ac_sed_conf_input=$configure_input;;
19080 esac
19081
19082 case $ac_tag in
19083 *:-:* | *:-) cat >"$tmp/stdin" \
19084 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19085 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19086 { (exit 1); exit 1; }; } ;;
19087 esac
19088 ;;
2295619089 esac
2295719090
22958 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22959 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19091 ac_dir=`$as_dirname -- "$ac_file" ||
2296019092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2296119093 X"$ac_file" : 'X\(//\)[^/]' \| \
2296219094 X"$ac_file" : 'X\(//\)$' \| \
22963 X"$ac_file" : 'X\(/\)' \| \
22964 . : '\(.\)' 2>/dev/null ||
22965 echo X"$ac_file" |
22966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22968 /^X\(\/\/\)$/{ s//\1/; q; }
22969 /^X\(\/\).*/{ s//\1/; q; }
22970 s/.*/./; q'`
22971 { if $as_mkdir_p; then
22972 mkdir -p "$ac_dir"
22973 else
22974 as_dir="$ac_dir"
19095 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19096 $as_echo X"$ac_file" |
19097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19098 s//\1/
19099 q
19100 }
19101 /^X\(\/\/\)[^/].*/{
19102 s//\1/
19103 q
19104 }
19105 /^X\(\/\/\)$/{
19106 s//\1/
19107 q
19108 }
19109 /^X\(\/\).*/{
19110 s//\1/
19111 q
19112 }
19113 s/.*/./; q'`
19114 { as_dir="$ac_dir"
19115 case $as_dir in #(
19116 -*) as_dir=./$as_dir;;
19117 esac
19118 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2297519119 as_dirs=
22976 while test ! -d "$as_dir"; do
22977 as_dirs="$as_dir $as_dirs"
22978 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19120 while :; do
19121 case $as_dir in #(
19122 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19123 *) as_qdir=$as_dir;;
19124 esac
19125 as_dirs="'$as_qdir' $as_dirs"
19126 as_dir=`$as_dirname -- "$as_dir" ||
2297919127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2298019128 X"$as_dir" : 'X\(//\)[^/]' \| \
2298119129 X"$as_dir" : 'X\(//\)$' \| \
22982 X"$as_dir" : 'X\(/\)' \| \
22983 . : '\(.\)' 2>/dev/null ||
22984 echo X"$as_dir" |
22985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22987 /^X\(\/\/\)$/{ s//\1/; q; }
22988 /^X\(\/\).*/{ s//\1/; q; }
22989 s/.*/./; q'`
19130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19131 $as_echo X"$as_dir" |
19132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19133 s//\1/
19134 q
19135 }
19136 /^X\(\/\/\)[^/].*/{
19137 s//\1/
19138 q
19139 }
19140 /^X\(\/\/\)$/{
19141 s//\1/
19142 q
19143 }
19144 /^X\(\/\).*/{
19145 s//\1/
19146 q
19147 }
19148 s/.*/./; q'`
19149 test -d "$as_dir" && break
2299019150 done
22991 test ! -n "$as_dirs" || mkdir $as_dirs
22992 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22993 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19151 test -z "$as_dirs" || eval "mkdir $as_dirs"
19152 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19153 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2299419154 { (exit 1); exit 1; }; }; }
22995
2299619155 ac_builddir=.
2299719156
22998 if test "$ac_dir" != .; then
22999 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23000 # A "../" for each directory in $ac_dir_suffix.
23001 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23002 else
23003 ac_dir_suffix= ac_top_builddir=
23004 fi
19157 case "$ac_dir" in
19158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19159 *)
19160 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19161 # A ".." for each directory in $ac_dir_suffix.
19162 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19163 case $ac_top_builddir_sub in
19164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19166 esac ;;
19167 esac
19168 ac_abs_top_builddir=$ac_pwd
19169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19170 # for backward compatibility:
19171 ac_top_builddir=$ac_top_build_prefix
2300519172
2300619173 case $srcdir in
23007 .) # No --srcdir option. We are building in place.
19174 .) # We are building in place.
2300819175 ac_srcdir=.
23009 if test -z "$ac_top_builddir"; then
23010 ac_top_srcdir=.
23011 else
23012 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23013 fi ;;
23014 [\\/]* | ?:[\\/]* ) # Absolute path.
19176 ac_top_srcdir=$ac_top_builddir_sub
19177 ac_abs_top_srcdir=$ac_pwd ;;
19178 [\\/]* | ?:[\\/]* ) # Absolute name.
2301519179 ac_srcdir=$srcdir$ac_dir_suffix;
23016 ac_top_srcdir=$srcdir ;;
23017 *) # Relative path.
23018 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23019 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19180 ac_top_srcdir=$srcdir
19181 ac_abs_top_srcdir=$srcdir ;;
19182 *) # Relative name.
19183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19184 ac_top_srcdir=$ac_top_build_prefix$srcdir
19185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2302019186 esac
23021
23022 # Do not use `cd foo && pwd` to compute absolute paths, because
23023 # the directories may not exist.
23024 case `pwd` in
23025 .) ac_abs_builddir="$ac_dir";;
23026 *)
23027 case "$ac_dir" in
23028 .) ac_abs_builddir=`pwd`;;
23029 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23030 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23031 esac;;
23032 esac
23033 case $ac_abs_builddir in
23034 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23035 *)
23036 case ${ac_top_builddir}. in
23037 .) ac_abs_top_builddir=$ac_abs_builddir;;
23038 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23039 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23040 esac;;
23041 esac
23042 case $ac_abs_builddir in
23043 .) ac_abs_srcdir=$ac_srcdir;;
23044 *)
23045 case $ac_srcdir in
23046 .) ac_abs_srcdir=$ac_abs_builddir;;
23047 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23048 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23049 esac;;
23050 esac
23051 case $ac_abs_builddir in
23052 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23053 *)
23054 case $ac_top_srcdir in
23055 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23056 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23057 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23058 esac;;
23059 esac
23060
19187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19188
19189
19190 case $ac_mode in
19191 :F)
19192 #
19193 # CONFIG_FILE
19194 #
2306119195
2306219196 case $INSTALL in
2306319197 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23064 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19198 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
2306519199 esac
23066
23067 # Let's still pretend it is `configure' which instantiates (i.e., don't
23068 # use $as_me), people would be surprised to read:
23069 # /* config.h. Generated by config.status. */
23070 if test x"$ac_file" = x-; then
23071 configure_input=
23072 else
23073 configure_input="$ac_file. "
23074 fi
23075 configure_input=$configure_input"Generated from `echo $ac_file_in |
23076 sed 's,.*/,,'` by configure."
23077
23078 # First look for the input files in the build tree, otherwise in the
23079 # src tree.
23080 ac_file_inputs=`IFS=:
23081 for f in $ac_file_in; do
23082 case $f in
23083 -) echo $tmp/stdin ;;
23084 [\\/$]*)
23085 # Absolute (can't be DOS-style, as IFS=:)
23086 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23087 echo "$as_me: error: cannot find input file: $f" >&2;}
23088 { (exit 1); exit 1; }; }
23089 echo "$f";;
23090 *) # Relative
23091 if test -f "$f"; then
23092 # Build tree
23093 echo "$f"
23094 elif test -f "$srcdir/$f"; then
23095 # Source tree
23096 echo "$srcdir/$f"
23097 else
23098 # /dev/null tree
23099 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23100 echo "$as_me: error: cannot find input file: $f" >&2;}
23101 { (exit 1); exit 1; }; }
23102 fi;;
23103 esac
23104 done` || { (exit 1); exit 1; }
23105
23106 if test x"$ac_file" != x-; then
23107 { echo "$as_me:$LINENO: creating $ac_file" >&5
23108 echo "$as_me: creating $ac_file" >&6;}
23109 rm -f "$ac_file"
23110 fi
19200 ac_MKDIR_P=$MKDIR_P
19201 case $MKDIR_P in
19202 [\\/$]* | ?:[\\/]* ) ;;
19203 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19204 esac
2311119205 _ACEOF
23112 cat >>$CONFIG_STATUS <<_ACEOF
23113 sed "$ac_vpsub
19206
19207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19208 # If the template does not know about datarootdir, expand it.
19209 # FIXME: This hack should be removed a few years after 2.60.
19210 ac_datarootdir_hack=; ac_datarootdir_seen=
19211
19212 ac_sed_dataroot='
19213 /datarootdir/ {
19214 p
19215 q
19216 }
19217 /@datadir@/p
19218 /@docdir@/p
19219 /@infodir@/p
19220 /@localedir@/p
19221 /@mandir@/p
19222 '
19223 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19224 *datarootdir*) ac_datarootdir_seen=yes;;
19225 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19226 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19227 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19228 _ACEOF
19229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19230 ac_datarootdir_hack='
19231 s&@datadir@&$datadir&g
19232 s&@docdir@&$docdir&g
19233 s&@infodir@&$infodir&g
19234 s&@localedir@&$localedir&g
19235 s&@mandir@&$mandir&g
19236 s&\\\${datarootdir}&$datarootdir&g' ;;
19237 esac
19238 _ACEOF
19239
19240 # Neutralize VPATH when `$srcdir' = `.'.
19241 # Shell code in configure.ac might set extrasub.
19242 # FIXME: do we really want to maintain this feature?
19243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19244 ac_sed_extra="$ac_vpsub
2311419245 $extrasub
2311519246 _ACEOF
23116 cat >>$CONFIG_STATUS <<\_ACEOF
19247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2311719248 :t
2311819249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23119 s,@configure_input@,$configure_input,;t t
23120 s,@srcdir@,$ac_srcdir,;t t
23121 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23122 s,@top_srcdir@,$ac_top_srcdir,;t t
23123 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23124 s,@builddir@,$ac_builddir,;t t
23125 s,@abs_builddir@,$ac_abs_builddir,;t t
23126 s,@top_builddir@,$ac_top_builddir,;t t
23127 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23128 s,@INSTALL@,$ac_INSTALL,;t t
23129 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23130 rm -f $tmp/stdin
23131 if test x"$ac_file" != x-; then
23132 mv $tmp/out $ac_file
23133 else
23134 cat $tmp/out
23135 rm -f $tmp/out
23136 fi
23137
23138 done
23139 _ACEOF
23140 cat >>$CONFIG_STATUS <<\_ACEOF
23141
23142 #
23143 # CONFIG_COMMANDS section.
23144 #
23145 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23146 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23147 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23148 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23149 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23150 X"$ac_dest" : 'X\(//\)[^/]' \| \
23151 X"$ac_dest" : 'X\(//\)$' \| \
23152 X"$ac_dest" : 'X\(/\)' \| \
23153 . : '\(.\)' 2>/dev/null ||
23154 echo X"$ac_dest" |
23155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23157 /^X\(\/\/\)$/{ s//\1/; q; }
23158 /^X\(\/\).*/{ s//\1/; q; }
23159 s/.*/./; q'`
23160 { if $as_mkdir_p; then
23161 mkdir -p "$ac_dir"
23162 else
23163 as_dir="$ac_dir"
23164 as_dirs=
23165 while test ! -d "$as_dir"; do
23166 as_dirs="$as_dir $as_dirs"
23167 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23169 X"$as_dir" : 'X\(//\)[^/]' \| \
23170 X"$as_dir" : 'X\(//\)$' \| \
23171 X"$as_dir" : 'X\(/\)' \| \
23172 . : '\(.\)' 2>/dev/null ||
23173 echo X"$as_dir" |
23174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23176 /^X\(\/\/\)$/{ s//\1/; q; }
23177 /^X\(\/\).*/{ s//\1/; q; }
23178 s/.*/./; q'`
23179 done
23180 test ! -n "$as_dirs" || mkdir $as_dirs
23181 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23182 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23183 { (exit 1); exit 1; }; }; }
23184
23185 ac_builddir=.
23186
23187 if test "$ac_dir" != .; then
23188 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23189 # A "../" for each directory in $ac_dir_suffix.
23190 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23191 else
23192 ac_dir_suffix= ac_top_builddir=
23193 fi
23194
23195 case $srcdir in
23196 .) # No --srcdir option. We are building in place.
23197 ac_srcdir=.
23198 if test -z "$ac_top_builddir"; then
23199 ac_top_srcdir=.
23200 else
23201 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23202 fi ;;
23203 [\\/]* | ?:[\\/]* ) # Absolute path.
23204 ac_srcdir=$srcdir$ac_dir_suffix;
23205 ac_top_srcdir=$srcdir ;;
23206 *) # Relative path.
23207 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23208 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19250 s|@configure_input@|$ac_sed_conf_input|;t t
19251 s&@top_builddir@&$ac_top_builddir_sub&;t t
19252 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19253 s&@srcdir@&$ac_srcdir&;t t
19254 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19255 s&@top_srcdir@&$ac_top_srcdir&;t t
19256 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19257 s&@builddir@&$ac_builddir&;t t
19258 s&@abs_builddir@&$ac_abs_builddir&;t t
19259 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19260 s&@INSTALL@&$ac_INSTALL&;t t
19261 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19262 $ac_datarootdir_hack
19263 "
19264 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19265 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19266 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19267 { (exit 1); exit 1; }; }
19268
19269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19270 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19271 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19272 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19273 which seems to be undefined. Please make sure it is defined." >&5
19274 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19275 which seems to be undefined. Please make sure it is defined." >&2;}
19276
19277 rm -f "$tmp/stdin"
19278 case $ac_file in
19279 -) cat "$tmp/out" && rm -f "$tmp/out";;
19280 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19281 esac \
19282 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19283 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19284 { (exit 1); exit 1; }; }
19285 ;;
19286
19287
19288 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19289 $as_echo "$as_me: executing $ac_file commands" >&6;}
19290 ;;
19291 esac
19292
19293
19294 case $ac_file$ac_mode in
19295 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
19296 # are listed without --file. Let's play safe and only enable the eval
19297 # if we detect the quoting.
19298 case $CONFIG_FILES in
19299 *\'*) eval set x "$CONFIG_FILES" ;;
19300 *) set x $CONFIG_FILES ;;
2320919301 esac
23210
23211 # Do not use `cd foo && pwd` to compute absolute paths, because
23212 # the directories may not exist.
23213 case `pwd` in
23214 .) ac_abs_builddir="$ac_dir";;
23215 *)
23216 case "$ac_dir" in
23217 .) ac_abs_builddir=`pwd`;;
23218 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23219 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23220 esac;;
23221 esac
23222 case $ac_abs_builddir in
23223 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23224 *)
23225 case ${ac_top_builddir}. in
23226 .) ac_abs_top_builddir=$ac_abs_builddir;;
23227 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23228 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23229 esac;;
23230 esac
23231 case $ac_abs_builddir in
23232 .) ac_abs_srcdir=$ac_srcdir;;
23233 *)
23234 case $ac_srcdir in
23235 .) ac_abs_srcdir=$ac_abs_builddir;;
23236 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23237 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23238 esac;;
23239 esac
23240 case $ac_abs_builddir in
23241 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23242 *)
23243 case $ac_top_srcdir in
23244 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23245 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23246 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23247 esac;;
23248 esac
23249
23250
23251 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23252 echo "$as_me: executing $ac_dest commands" >&6;}
23253 case $ac_dest in
23254 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19302 shift
19303 for mf
19304 do
2325519305 # Strip MF so we end up with the name of the file.
2325619306 mf=`echo "$mf" | sed -e 's/:.*$//'`
2325719307 # Check whether this is an Automake generated Makefile or not.
2325919309 # some people rename them; so instead we look at the file content.
2326019310 # Grep'ing the first line is not enough: some people post-process
2326119311 # each Makefile.in and add a new line on top of each file to say so.
23262 # So let's grep whole file.
23263 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23264 dirpart=`(dirname "$mf") 2>/dev/null ||
19312 # Grep'ing the whole file is not good either: AIX grep has a line
19313 # limit of 2048, but all sed's we know have understand at least 4000.
19314 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19315 dirpart=`$as_dirname -- "$mf" ||
2326519316 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2326619317 X"$mf" : 'X\(//\)[^/]' \| \
2326719318 X"$mf" : 'X\(//\)$' \| \
23268 X"$mf" : 'X\(/\)' \| \
23269 . : '\(.\)' 2>/dev/null ||
23270 echo X"$mf" |
23271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23273 /^X\(\/\/\)$/{ s//\1/; q; }
23274 /^X\(\/\).*/{ s//\1/; q; }
23275 s/.*/./; q'`
19319 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19320 $as_echo X"$mf" |
19321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19322 s//\1/
19323 q
19324 }
19325 /^X\(\/\/\)[^/].*/{
19326 s//\1/
19327 q
19328 }
19329 /^X\(\/\/\)$/{
19330 s//\1/
19331 q
19332 }
19333 /^X\(\/\).*/{
19334 s//\1/
19335 q
19336 }
19337 s/.*/./; q'`
2327619338 else
2327719339 continue
2327819340 fi
2329419356 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2329519357 # Make sure the directory exists.
2329619358 test -f "$dirpart/$file" && continue
23297 fdir=`(dirname "$file") 2>/dev/null ||
19359 fdir=`$as_dirname -- "$file" ||
2329819360 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2329919361 X"$file" : 'X\(//\)[^/]' \| \
2330019362 X"$file" : 'X\(//\)$' \| \
23301 X"$file" : 'X\(/\)' \| \
23302 . : '\(.\)' 2>/dev/null ||
23303 echo X"$file" |
23304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23306 /^X\(\/\/\)$/{ s//\1/; q; }
23307 /^X\(\/\).*/{ s//\1/; q; }
23308 s/.*/./; q'`
23309 { if $as_mkdir_p; then
23310 mkdir -p $dirpart/$fdir
23311 else
23312 as_dir=$dirpart/$fdir
19363 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19364 $as_echo X"$file" |
19365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19366 s//\1/
19367 q
19368 }
19369 /^X\(\/\/\)[^/].*/{
19370 s//\1/
19371 q
19372 }
19373 /^X\(\/\/\)$/{
19374 s//\1/
19375 q
19376 }
19377 /^X\(\/\).*/{
19378 s//\1/
19379 q
19380 }
19381 s/.*/./; q'`
19382 { as_dir=$dirpart/$fdir
19383 case $as_dir in #(
19384 -*) as_dir=./$as_dir;;
19385 esac
19386 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2331319387 as_dirs=
23314 while test ! -d "$as_dir"; do
23315 as_dirs="$as_dir $as_dirs"
23316 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19388 while :; do
19389 case $as_dir in #(
19390 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19391 *) as_qdir=$as_dir;;
19392 esac
19393 as_dirs="'$as_qdir' $as_dirs"
19394 as_dir=`$as_dirname -- "$as_dir" ||
2331719395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2331819396 X"$as_dir" : 'X\(//\)[^/]' \| \
2331919397 X"$as_dir" : 'X\(//\)$' \| \
23320 X"$as_dir" : 'X\(/\)' \| \
23321 . : '\(.\)' 2>/dev/null ||
23322 echo X"$as_dir" |
23323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23325 /^X\(\/\/\)$/{ s//\1/; q; }
23326 /^X\(\/\).*/{ s//\1/; q; }
23327 s/.*/./; q'`
19398 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19399 $as_echo X"$as_dir" |
19400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19401 s//\1/
19402 q
19403 }
19404 /^X\(\/\/\)[^/].*/{
19405 s//\1/
19406 q
19407 }
19408 /^X\(\/\/\)$/{
19409 s//\1/
19410 q
19411 }
19412 /^X\(\/\).*/{
19413 s//\1/
19414 q
19415 }
19416 s/.*/./; q'`
19417 test -d "$as_dir" && break
2332819418 done
23329 test ! -n "$as_dirs" || mkdir $as_dirs
23330 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23331 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19419 test -z "$as_dirs" || eval "mkdir $as_dirs"
19420 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19421 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2333219422 { (exit 1); exit 1; }; }; }
23333
2333419423 # echo "creating $dirpart/$file"
2333519424 echo '# dummy' > "$dirpart/$file"
2333619425 done
2333719426 done
2333819427 ;;
19428 "libtool":C)
19429
19430 # See if we are running on zsh, and set the options which allow our
19431 # commands through without removal of \ escapes.
19432 if test -n "${ZSH_VERSION+set}" ; then
19433 setopt NO_GLOB_SUBST
19434 fi
19435
19436 cfgfile="${ofile}T"
19437 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19438 $RM "$cfgfile"
19439
19440 cat <<_LT_EOF >> "$cfgfile"
19441 #! $SHELL
19442
19443 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19444 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19445 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19446 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19447 #
19448 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19449 # 2006, 2007, 2008 Free Software Foundation, Inc.
19450 # Written by Gordon Matzigkeit, 1996
19451 #
19452 # This file is part of GNU Libtool.
19453 #
19454 # GNU Libtool is free software; you can redistribute it and/or
19455 # modify it under the terms of the GNU General Public License as
19456 # published by the Free Software Foundation; either version 2 of
19457 # the License, or (at your option) any later version.
19458 #
19459 # As a special exception to the GNU General Public License,
19460 # if you distribute this file as part of a program or library that
19461 # is built using GNU Libtool, you may include this file under the
19462 # same distribution terms that you use for the rest of that program.
19463 #
19464 # GNU Libtool is distributed in the hope that it will be useful,
19465 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19466 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19467 # GNU General Public License for more details.
19468 #
19469 # You should have received a copy of the GNU General Public License
19470 # along with GNU Libtool; see the file COPYING. If not, a copy
19471 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19472 # obtained by writing to the Free Software Foundation, Inc.,
19473 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19474
19475
19476 # The names of the tagged configurations supported by this script.
19477 available_tags="CXX "
19478
19479 # ### BEGIN LIBTOOL CONFIG
19480
19481 # Which release of libtool.m4 was used?
19482 macro_version=$macro_version
19483 macro_revision=$macro_revision
19484
19485 # Whether or not to build shared libraries.
19486 build_libtool_libs=$enable_shared
19487
19488 # Whether or not to build static libraries.
19489 build_old_libs=$enable_static
19490
19491 # What type of objects to build.
19492 pic_mode=$pic_mode
19493
19494 # Whether or not to optimize for fast installation.
19495 fast_install=$enable_fast_install
19496
19497 # The host system.
19498 host_alias=$host_alias
19499 host=$host
19500 host_os=$host_os
19501
19502 # The build system.
19503 build_alias=$build_alias
19504 build=$build
19505 build_os=$build_os
19506
19507 # A sed program that does not truncate output.
19508 SED=$lt_SED
19509
19510 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19511 Xsed="\$SED -e 1s/^X//"
19512
19513 # A grep program that handles long lines.
19514 GREP=$lt_GREP
19515
19516 # An ERE matcher.
19517 EGREP=$lt_EGREP
19518
19519 # A literal string matcher.
19520 FGREP=$lt_FGREP
19521
19522 # A BSD- or MS-compatible name lister.
19523 NM=$lt_NM
19524
19525 # Whether we need soft or hard links.
19526 LN_S=$lt_LN_S
19527
19528 # What is the maximum length of a command?
19529 max_cmd_len=$max_cmd_len
19530
19531 # Object file suffix (normally "o").
19532 objext=$ac_objext
19533
19534 # Executable file suffix (normally "").
19535 exeext=$exeext
19536
19537 # whether the shell understands "unset".
19538 lt_unset=$lt_unset
19539
19540 # turn spaces into newlines.
19541 SP2NL=$lt_lt_SP2NL
19542
19543 # turn newlines into spaces.
19544 NL2SP=$lt_lt_NL2SP
19545
19546 # How to create reloadable object files.
19547 reload_flag=$lt_reload_flag
19548 reload_cmds=$lt_reload_cmds
19549
19550 # An object symbol dumper.
19551 OBJDUMP=$lt_OBJDUMP
19552
19553 # Method to check whether dependent libraries are shared objects.
19554 deplibs_check_method=$lt_deplibs_check_method
19555
19556 # Command to use when deplibs_check_method == "file_magic".
19557 file_magic_cmd=$lt_file_magic_cmd
19558
19559 # The archiver.
19560 AR=$lt_AR
19561 AR_FLAGS=$lt_AR_FLAGS
19562
19563 # A symbol stripping program.
19564 STRIP=$lt_STRIP
19565
19566 # Commands used to install an old-style archive.
19567 RANLIB=$lt_RANLIB
19568 old_postinstall_cmds=$lt_old_postinstall_cmds
19569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19570
19571 # A C compiler.
19572 LTCC=$lt_CC
19573
19574 # LTCC compiler flags.
19575 LTCFLAGS=$lt_CFLAGS
19576
19577 # Take the output of nm and produce a listing of raw symbols and C names.
19578 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19579
19580 # Transform the output of nm in a proper C declaration.
19581 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19582
19583 # Transform the output of nm in a C name address pair.
19584 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19585
19586 # Transform the output of nm in a C name address pair when lib prefix is needed.
19587 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19588
19589 # The name of the directory that contains temporary libtool files.
19590 objdir=$objdir
19591
19592 # Shell to use when invoking shell scripts.
19593 SHELL=$lt_SHELL
19594
19595 # An echo program that does not interpret backslashes.
19596 ECHO=$lt_ECHO
19597
19598 # Used to examine libraries when file_magic_cmd begins with "file".
19599 MAGIC_CMD=$MAGIC_CMD
19600
19601 # Must we lock files when doing compilation?
19602 need_locks=$lt_need_locks
19603
19604 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19605 DSYMUTIL=$lt_DSYMUTIL
19606
19607 # Tool to change global to local symbols on Mac OS X.
19608 NMEDIT=$lt_NMEDIT
19609
19610 # Tool to manipulate fat objects and archives on Mac OS X.
19611 LIPO=$lt_LIPO
19612
19613 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19614 OTOOL=$lt_OTOOL
19615
19616 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19617 OTOOL64=$lt_OTOOL64
19618
19619 # Old archive suffix (normally "a").
19620 libext=$libext
19621
19622 # Shared library suffix (normally ".so").
19623 shrext_cmds=$lt_shrext_cmds
19624
19625 # The commands to extract the exported symbol list from a shared archive.
19626 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19627
19628 # Variables whose values should be saved in libtool wrapper scripts and
19629 # restored at link time.
19630 variables_saved_for_relink=$lt_variables_saved_for_relink
19631
19632 # Do we need the "lib" prefix for modules?
19633 need_lib_prefix=$need_lib_prefix
19634
19635 # Do we need a version for libraries?
19636 need_version=$need_version
19637
19638 # Library versioning type.
19639 version_type=$version_type
19640
19641 # Shared library runtime path variable.
19642 runpath_var=$runpath_var
19643
19644 # Shared library path variable.
19645 shlibpath_var=$shlibpath_var
19646
19647 # Is shlibpath searched before the hard-coded library search path?
19648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19649
19650 # Format of library name prefix.
19651 libname_spec=$lt_libname_spec
19652
19653 # List of archive names. First name is the real one, the rest are links.
19654 # The last name is the one that the linker finds with -lNAME
19655 library_names_spec=$lt_library_names_spec
19656
19657 # The coded name of the library, if different from the real name.
19658 soname_spec=$lt_soname_spec
19659
19660 # Command to use after installation of a shared archive.
19661 postinstall_cmds=$lt_postinstall_cmds
19662
19663 # Command to use after uninstallation of a shared archive.
19664 postuninstall_cmds=$lt_postuninstall_cmds
19665
19666 # Commands used to finish a libtool library installation in a directory.
19667 finish_cmds=$lt_finish_cmds
19668
19669 # As "finish_cmds", except a single script fragment to be evaled but
19670 # not shown.
19671 finish_eval=$lt_finish_eval
19672
19673 # Whether we should hardcode library paths into libraries.
19674 hardcode_into_libs=$hardcode_into_libs
19675
19676 # Compile-time system search path for libraries.
19677 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19678
19679 # Run-time system search path for libraries.
19680 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19681
19682 # Whether dlopen is supported.
19683 dlopen_support=$enable_dlopen
19684
19685 # Whether dlopen of programs is supported.
19686 dlopen_self=$enable_dlopen_self
19687
19688 # Whether dlopen of statically linked programs is supported.
19689 dlopen_self_static=$enable_dlopen_self_static
19690
19691 # Commands to strip libraries.
19692 old_striplib=$lt_old_striplib
19693 striplib=$lt_striplib
19694
19695
19696 # The linker used to build libraries.
19697 LD=$lt_LD
19698
19699 # Commands used to build an old-style archive.
19700 old_archive_cmds=$lt_old_archive_cmds
19701
19702 # A language specific compiler.
19703 CC=$lt_compiler
19704
19705 # Is the compiler the GNU compiler?
19706 with_gcc=$GCC
19707
19708 # Compiler flag to turn off builtin functions.
19709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19710
19711 # How to pass a linker flag through the compiler.
19712 wl=$lt_lt_prog_compiler_wl
19713
19714 # Additional compiler flags for building library objects.
19715 pic_flag=$lt_lt_prog_compiler_pic
19716
19717 # Compiler flag to prevent dynamic linking.
19718 link_static_flag=$lt_lt_prog_compiler_static
19719
19720 # Does compiler simultaneously support -c and -o options?
19721 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19722
19723 # Whether or not to add -lc for building shared libraries.
19724 build_libtool_need_lc=$archive_cmds_need_lc
19725
19726 # Whether or not to disallow shared libs when runtime libs are static.
19727 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19728
19729 # Compiler flag to allow reflexive dlopens.
19730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19731
19732 # Compiler flag to generate shared objects directly from archives.
19733 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19734
19735 # Whether the compiler copes with passing no objects directly.
19736 compiler_needs_object=$lt_compiler_needs_object
19737
19738 # Create an old-style archive from a shared archive.
19739 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19740
19741 # Create a temporary old-style archive to link instead of a shared archive.
19742 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19743
19744 # Commands used to build a shared archive.
19745 archive_cmds=$lt_archive_cmds
19746 archive_expsym_cmds=$lt_archive_expsym_cmds
19747
19748 # Commands used to build a loadable module if different from building
19749 # a shared archive.
19750 module_cmds=$lt_module_cmds
19751 module_expsym_cmds=$lt_module_expsym_cmds
19752
19753 # Whether we are building with GNU ld or not.
19754 with_gnu_ld=$lt_with_gnu_ld
19755
19756 # Flag that allows shared libraries with undefined symbols to be built.
19757 allow_undefined_flag=$lt_allow_undefined_flag
19758
19759 # Flag that enforces no undefined symbols.
19760 no_undefined_flag=$lt_no_undefined_flag
19761
19762 # Flag to hardcode \$libdir into a binary during linking.
19763 # This must work even if \$libdir does not exist
19764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19765
19766 # If ld is used when linking, flag to hardcode \$libdir into a binary
19767 # during linking. This must work even if \$libdir does not exist.
19768 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19769
19770 # Whether we need a single "-rpath" flag with a separated argument.
19771 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19772
19773 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19774 # DIR into the resulting binary.
19775 hardcode_direct=$hardcode_direct
19776
19777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19778 # DIR into the resulting binary and the resulting library dependency is
19779 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19780 # library is relocated.
19781 hardcode_direct_absolute=$hardcode_direct_absolute
19782
19783 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19784 # into the resulting binary.
19785 hardcode_minus_L=$hardcode_minus_L
19786
19787 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19788 # into the resulting binary.
19789 hardcode_shlibpath_var=$hardcode_shlibpath_var
19790
19791 # Set to "yes" if building a shared library automatically hardcodes DIR
19792 # into the library and all subsequent libraries and executables linked
19793 # against it.
19794 hardcode_automatic=$hardcode_automatic
19795
19796 # Set to yes if linker adds runtime paths of dependent libraries
19797 # to runtime path list.
19798 inherit_rpath=$inherit_rpath
19799
19800 # Whether libtool must link a program against all its dependency libraries.
19801 link_all_deplibs=$link_all_deplibs
19802
19803 # Fix the shell variable \$srcfile for the compiler.
19804 fix_srcfile_path=$lt_fix_srcfile_path
19805
19806 # Set to "yes" if exported symbols are required.
19807 always_export_symbols=$always_export_symbols
19808
19809 # The commands to list exported symbols.
19810 export_symbols_cmds=$lt_export_symbols_cmds
19811
19812 # Symbols that should not be listed in the preloaded symbols.
19813 exclude_expsyms=$lt_exclude_expsyms
19814
19815 # Symbols that must always be exported.
19816 include_expsyms=$lt_include_expsyms
19817
19818 # Commands necessary for linking programs (against libraries) with templates.
19819 prelink_cmds=$lt_prelink_cmds
19820
19821 # Specify filename containing input files.
19822 file_list_spec=$lt_file_list_spec
19823
19824 # How to hardcode a shared library path into an executable.
19825 hardcode_action=$hardcode_action
19826
19827 # The directories searched by this compiler when creating a shared library.
19828 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19829
19830 # Dependencies to place before and after the objects being linked to
19831 # create a shared library.
19832 predep_objects=$lt_predep_objects
19833 postdep_objects=$lt_postdep_objects
19834 predeps=$lt_predeps
19835 postdeps=$lt_postdeps
19836
19837 # The library search path used internally by the compiler when linking
19838 # a shared library.
19839 compiler_lib_search_path=$lt_compiler_lib_search_path
19840
19841 # ### END LIBTOOL CONFIG
19842
19843 _LT_EOF
19844
19845 case $host_os in
19846 aix3*)
19847 cat <<\_LT_EOF >> "$cfgfile"
19848 # AIX sometimes has problems with the GCC collect2 program. For some
19849 # reason, if we set the COLLECT_NAMES environment variable, the problems
19850 # vanish in a puff of smoke.
19851 if test "X${COLLECT_NAMES+set}" != Xset; then
19852 COLLECT_NAMES=
19853 export COLLECT_NAMES
19854 fi
19855 _LT_EOF
19856 ;;
2333919857 esac
23340 done
23341 _ACEOF
23342
23343 cat >>$CONFIG_STATUS <<\_ACEOF
19858
19859
19860 ltmain="$ac_aux_dir/ltmain.sh"
19861
19862
19863 # We use sed instead of cat because bash on DJGPP gets confused if
19864 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19865 # text mode, it properly converts lines to CR/LF. This bash problem
19866 # is reportedly fixed, but why not run on old versions too?
19867 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19868 || (rm -f "$cfgfile"; exit 1)
19869
19870 case $xsi_shell in
19871 yes)
19872 cat << \_LT_EOF >> "$cfgfile"
19873
19874 # func_dirname file append nondir_replacement
19875 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19876 # otherwise set result to NONDIR_REPLACEMENT.
19877 func_dirname ()
19878 {
19879 case ${1} in
19880 */*) func_dirname_result="${1%/*}${2}" ;;
19881 * ) func_dirname_result="${3}" ;;
19882 esac
19883 }
19884
19885 # func_basename file
19886 func_basename ()
19887 {
19888 func_basename_result="${1##*/}"
19889 }
19890
19891 # func_dirname_and_basename file append nondir_replacement
19892 # perform func_basename and func_dirname in a single function
19893 # call:
19894 # dirname: Compute the dirname of FILE. If nonempty,
19895 # add APPEND to the result, otherwise set result
19896 # to NONDIR_REPLACEMENT.
19897 # value returned in "$func_dirname_result"
19898 # basename: Compute filename of FILE.
19899 # value retuned in "$func_basename_result"
19900 # Implementation must be kept synchronized with func_dirname
19901 # and func_basename. For efficiency, we do not delegate to
19902 # those functions but instead duplicate the functionality here.
19903 func_dirname_and_basename ()
19904 {
19905 case ${1} in
19906 */*) func_dirname_result="${1%/*}${2}" ;;
19907 * ) func_dirname_result="${3}" ;;
19908 esac
19909 func_basename_result="${1##*/}"
19910 }
19911
19912 # func_stripname prefix suffix name
19913 # strip PREFIX and SUFFIX off of NAME.
19914 # PREFIX and SUFFIX must not contain globbing or regex special
19915 # characters, hashes, percent signs, but SUFFIX may contain a leading
19916 # dot (in which case that matches only a dot).
19917 func_stripname ()
19918 {
19919 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19920 # positional parameters, so assign one to ordinary parameter first.
19921 func_stripname_result=${3}
19922 func_stripname_result=${func_stripname_result#"${1}"}
19923 func_stripname_result=${func_stripname_result%"${2}"}
19924 }
19925
19926 # func_opt_split
19927 func_opt_split ()
19928 {
19929 func_opt_split_opt=${1%%=*}
19930 func_opt_split_arg=${1#*=}
19931 }
19932
19933 # func_lo2o object
19934 func_lo2o ()
19935 {
19936 case ${1} in
19937 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19938 *) func_lo2o_result=${1} ;;
19939 esac
19940 }
19941
19942 # func_xform libobj-or-source
19943 func_xform ()
19944 {
19945 func_xform_result=${1%.*}.lo
19946 }
19947
19948 # func_arith arithmetic-term...
19949 func_arith ()
19950 {
19951 func_arith_result=$(( $* ))
19952 }
19953
19954 # func_len string
19955 # STRING may not start with a hyphen.
19956 func_len ()
19957 {
19958 func_len_result=${#1}
19959 }
19960
19961 _LT_EOF
19962 ;;
19963 *) # Bourne compatible functions.
19964 cat << \_LT_EOF >> "$cfgfile"
19965
19966 # func_dirname file append nondir_replacement
19967 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19968 # otherwise set result to NONDIR_REPLACEMENT.
19969 func_dirname ()
19970 {
19971 # Extract subdirectory from the argument.
19972 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19973 if test "X$func_dirname_result" = "X${1}"; then
19974 func_dirname_result="${3}"
19975 else
19976 func_dirname_result="$func_dirname_result${2}"
19977 fi
19978 }
19979
19980 # func_basename file
19981 func_basename ()
19982 {
19983 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19984 }
19985
19986
19987 # func_stripname prefix suffix name
19988 # strip PREFIX and SUFFIX off of NAME.
19989 # PREFIX and SUFFIX must not contain globbing or regex special
19990 # characters, hashes, percent signs, but SUFFIX may contain a leading
19991 # dot (in which case that matches only a dot).
19992 # func_strip_suffix prefix name
19993 func_stripname ()
19994 {
19995 case ${2} in
19996 .*) func_stripname_result=`$ECHO "X${3}" \
19997 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19998 *) func_stripname_result=`$ECHO "X${3}" \
19999 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20000 esac
20001 }
20002
20003 # sed scripts:
20004 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20005 my_sed_long_arg='1s/^-[^=]*=//'
20006
20007 # func_opt_split
20008 func_opt_split ()
20009 {
20010 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20011 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20012 }
20013
20014 # func_lo2o object
20015 func_lo2o ()
20016 {
20017 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20018 }
20019
20020 # func_xform libobj-or-source
20021 func_xform ()
20022 {
20023 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20024 }
20025
20026 # func_arith arithmetic-term...
20027 func_arith ()
20028 {
20029 func_arith_result=`expr "$@"`
20030 }
20031
20032 # func_len string
20033 # STRING may not start with a hyphen.
20034 func_len ()
20035 {
20036 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20037 }
20038
20039 _LT_EOF
20040 esac
20041
20042 case $lt_shell_append in
20043 yes)
20044 cat << \_LT_EOF >> "$cfgfile"
20045
20046 # func_append var value
20047 # Append VALUE to the end of shell variable VAR.
20048 func_append ()
20049 {
20050 eval "$1+=\$2"
20051 }
20052 _LT_EOF
20053 ;;
20054 *)
20055 cat << \_LT_EOF >> "$cfgfile"
20056
20057 # func_append var value
20058 # Append VALUE to the end of shell variable VAR.
20059 func_append ()
20060 {
20061 eval "$1=\$$1\$2"
20062 }
20063
20064 _LT_EOF
20065 ;;
20066 esac
20067
20068
20069 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20070 || (rm -f "$cfgfile"; exit 1)
20071
20072 mv -f "$cfgfile" "$ofile" ||
20073 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20074 chmod +x "$ofile"
20075
20076
20077 cat <<_LT_EOF >> "$ofile"
20078
20079 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20080
20081 # The linker used to build libraries.
20082 LD=$lt_LD_CXX
20083
20084 # Commands used to build an old-style archive.
20085 old_archive_cmds=$lt_old_archive_cmds_CXX
20086
20087 # A language specific compiler.
20088 CC=$lt_compiler_CXX
20089
20090 # Is the compiler the GNU compiler?
20091 with_gcc=$GCC_CXX
20092
20093 # Compiler flag to turn off builtin functions.
20094 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20095
20096 # How to pass a linker flag through the compiler.
20097 wl=$lt_lt_prog_compiler_wl_CXX
20098
20099 # Additional compiler flags for building library objects.
20100 pic_flag=$lt_lt_prog_compiler_pic_CXX
20101
20102 # Compiler flag to prevent dynamic linking.
20103 link_static_flag=$lt_lt_prog_compiler_static_CXX
20104
20105 # Does compiler simultaneously support -c and -o options?
20106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20107
20108 # Whether or not to add -lc for building shared libraries.
20109 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20110
20111 # Whether or not to disallow shared libs when runtime libs are static.
20112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20113
20114 # Compiler flag to allow reflexive dlopens.
20115 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20116
20117 # Compiler flag to generate shared objects directly from archives.
20118 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20119
20120 # Whether the compiler copes with passing no objects directly.
20121 compiler_needs_object=$lt_compiler_needs_object_CXX
20122
20123 # Create an old-style archive from a shared archive.
20124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20125
20126 # Create a temporary old-style archive to link instead of a shared archive.
20127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20128
20129 # Commands used to build a shared archive.
20130 archive_cmds=$lt_archive_cmds_CXX
20131 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20132
20133 # Commands used to build a loadable module if different from building
20134 # a shared archive.
20135 module_cmds=$lt_module_cmds_CXX
20136 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20137
20138 # Whether we are building with GNU ld or not.
20139 with_gnu_ld=$lt_with_gnu_ld_CXX
20140
20141 # Flag that allows shared libraries with undefined symbols to be built.
20142 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20143
20144 # Flag that enforces no undefined symbols.
20145 no_undefined_flag=$lt_no_undefined_flag_CXX
20146
20147 # Flag to hardcode \$libdir into a binary during linking.
20148 # This must work even if \$libdir does not exist
20149 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20150
20151 # If ld is used when linking, flag to hardcode \$libdir into a binary
20152 # during linking. This must work even if \$libdir does not exist.
20153 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20154
20155 # Whether we need a single "-rpath" flag with a separated argument.
20156 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20157
20158 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20159 # DIR into the resulting binary.
20160 hardcode_direct=$hardcode_direct_CXX
20161
20162 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20163 # DIR into the resulting binary and the resulting library dependency is
20164 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20165 # library is relocated.
20166 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20167
20168 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20169 # into the resulting binary.
20170 hardcode_minus_L=$hardcode_minus_L_CXX
20171
20172 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20173 # into the resulting binary.
20174 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20175
20176 # Set to "yes" if building a shared library automatically hardcodes DIR
20177 # into the library and all subsequent libraries and executables linked
20178 # against it.
20179 hardcode_automatic=$hardcode_automatic_CXX
20180
20181 # Set to yes if linker adds runtime paths of dependent libraries
20182 # to runtime path list.
20183 inherit_rpath=$inherit_rpath_CXX
20184
20185 # Whether libtool must link a program against all its dependency libraries.
20186 link_all_deplibs=$link_all_deplibs_CXX
20187
20188 # Fix the shell variable \$srcfile for the compiler.
20189 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20190
20191 # Set to "yes" if exported symbols are required.
20192 always_export_symbols=$always_export_symbols_CXX
20193
20194 # The commands to list exported symbols.
20195 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20196
20197 # Symbols that should not be listed in the preloaded symbols.
20198 exclude_expsyms=$lt_exclude_expsyms_CXX
20199
20200 # Symbols that must always be exported.
20201 include_expsyms=$lt_include_expsyms_CXX
20202
20203 # Commands necessary for linking programs (against libraries) with templates.
20204 prelink_cmds=$lt_prelink_cmds_CXX
20205
20206 # Specify filename containing input files.
20207 file_list_spec=$lt_file_list_spec_CXX
20208
20209 # How to hardcode a shared library path into an executable.
20210 hardcode_action=$hardcode_action_CXX
20211
20212 # The directories searched by this compiler when creating a shared library.
20213 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20214
20215 # Dependencies to place before and after the objects being linked to
20216 # create a shared library.
20217 predep_objects=$lt_predep_objects_CXX
20218 postdep_objects=$lt_postdep_objects_CXX
20219 predeps=$lt_predeps_CXX
20220 postdeps=$lt_postdeps_CXX
20221
20222 # The library search path used internally by the compiler when linking
20223 # a shared library.
20224 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20225
20226 # ### END LIBTOOL TAG CONFIG: CXX
20227 _LT_EOF
20228
20229 ;;
20230
20231 esac
20232 done # for ac_tag
20233
2334420234
2334520235 { (exit 0); exit 0; }
2334620236 _ACEOF
2334720237 chmod +x $CONFIG_STATUS
2334820238 ac_clean_files=$ac_clean_files_save
20239
20240 test $ac_write_fail = 0 ||
20241 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20242 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20243 { (exit 1); exit 1; }; }
2334920244
2335020245
2335120246 # configure is writing to config.log, and then calls config.status.
2336820263 # would make configure fail if this is the last instruction.
2336920264 $ac_cs_success || { (exit 1); exit 1; }
2337020265 fi
23371
23372
23373
20266 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20267 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20268 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20269 fi
20270
20271
20272
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.63.
3 #
4 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in
23 *posix*) set -o posix ;;
24 esac
25
26 fi
27
28
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='printf %s\n'
48 as_echo_n='printf %s'
49 else
50 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
52 as_echo_n='/usr/ucb/echo -n'
53 else
54 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
55 as_echo_n_body='eval
56 arg=$1;
57 case $arg in
58 *"$as_nl"*)
59 expr "X$arg" : "X\\(.*\\)$as_nl";
60 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61 esac;
62 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 '
64 export as_echo_n_body
65 as_echo_n='sh -c $as_echo_n_body as_echo'
66 fi
67 export as_echo_body
68 as_echo='sh -c $as_echo_body as_echo'
69 fi
70
71 # The user is always right.
72 if test "${PATH_SEPARATOR+set}" != set; then
73 PATH_SEPARATOR=:
74 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
75 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
76 PATH_SEPARATOR=';'
77 }
78 fi
79
80 # Support unset when possible.
81 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
82 as_unset=unset
83 else
84 as_unset=false
85 fi
86
87
88 # IFS
89 # We need space, tab and new line, in precisely that order. Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
93 IFS=" "" $as_nl"
94
95 # Find who we are. Look in the path if we contain no directory separator.
96 case $0 in
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105 IFS=$as_save_IFS
106
107 ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 { (exit 1); exit 1; }
117 fi
118
119 # Work around bugs in pre-3.0 UWIN ksh.
120 for as_var in ENV MAIL MAILPATH
121 do ($as_unset $as_var) >/dev/null 2>&1 && $as_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 # Required to use basename.
134 if expr a : '\(a\)' >/dev/null 2>&1 &&
135 test "X`expr 00001 : '.*\(...\)'`" = X001; then
136 as_expr=expr
137 else
138 as_expr=false
139 fi
140
141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
142 as_basename=basename
143 else
144 as_basename=false
145 fi
146
147
148 # Name of the executable.
149 as_me=`$as_basename -- "$0" ||
150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
151 X"$0" : 'X\(//\)$' \| \
152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
153 $as_echo X/"$0" |
154 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 s//\1/
156 q
157 }
158 /^X\/\(\/\/\)$/{
159 s//\1/
160 q
161 }
162 /^X\/\(\/\).*/{
163 s//\1/
164 q
165 }
166 s/.*/./; q'`
167
168 # CDPATH.
169 $as_unset CDPATH
170
171
172 if test "x$CONFIG_SHELL" = x; then
173 if (eval ":") 2>/dev/null; then
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178
179 if test $as_have_required = yes && (eval ":
180 (as_func_return () {
181 (exit \$1)
182 }
183 as_func_success () {
184 as_func_return 0
185 }
186 as_func_failure () {
187 as_func_return 1
188 }
189 as_func_ret_success () {
190 return 0
191 }
192 as_func_ret_failure () {
193 return 1
194 }
195
196 exitcode=0
197 if as_func_success; then
198 :
199 else
200 exitcode=1
201 echo as_func_success failed.
202 fi
203
204 if as_func_failure; then
205 exitcode=1
206 echo as_func_failure succeeded.
207 fi
208
209 if as_func_ret_success; then
210 :
211 else
212 exitcode=1
213 echo as_func_ret_success failed.
214 fi
215
216 if as_func_ret_failure; then
217 exitcode=1
218 echo as_func_ret_failure succeeded.
219 fi
220
221 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
222 :
223 else
224 exitcode=1
225 echo positional parameters were not saved.
226 fi
227
228 test \$exitcode = 0) || { (exit 1); exit 1; }
229
230 (
231 as_lineno_1=\$LINENO
232 as_lineno_2=\$LINENO
233 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
234 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
235 ") 2> /dev/null; then
236 :
237 else
238 as_candidate_shells=
239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
240 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
241 do
242 IFS=$as_save_IFS
243 test -z "$as_dir" && as_dir=.
244 case $as_dir in
245 /*)
246 for as_base in sh bash ksh sh5; do
247 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
248 done;;
249 esac
250 done
251 IFS=$as_save_IFS
252
253
254 for as_shell in $as_candidate_shells $SHELL; do
255 # Try only shells that exist, to save several forks.
256 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
257 { ("$as_shell") 2> /dev/null <<\_ASEOF
258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
259 emulate sh
260 NULLCMD=:
261 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
262 # is contrary to our usage. Disable this feature.
263 alias -g '${1+"$@"}'='"$@"'
264 setopt NO_GLOB_SUBST
265 else
266 case `(set -o) 2>/dev/null` in
267 *posix*) set -o posix ;;
268 esac
269
270 fi
271
272
273 :
274 _ASEOF
275 }; then
276 CONFIG_SHELL=$as_shell
277 as_have_required=yes
278 if { "$as_shell" 2> /dev/null <<\_ASEOF
279 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
280 emulate sh
281 NULLCMD=:
282 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
283 # is contrary to our usage. Disable this feature.
284 alias -g '${1+"$@"}'='"$@"'
285 setopt NO_GLOB_SUBST
286 else
287 case `(set -o) 2>/dev/null` in
288 *posix*) set -o posix ;;
289 esac
290
291 fi
292
293
294 :
295 (as_func_return () {
296 (exit $1)
297 }
298 as_func_success () {
299 as_func_return 0
300 }
301 as_func_failure () {
302 as_func_return 1
303 }
304 as_func_ret_success () {
305 return 0
306 }
307 as_func_ret_failure () {
308 return 1
309 }
310
311 exitcode=0
312 if as_func_success; then
313 :
314 else
315 exitcode=1
316 echo as_func_success failed.
317 fi
318
319 if as_func_failure; then
320 exitcode=1
321 echo as_func_failure succeeded.
322 fi
323
324 if as_func_ret_success; then
325 :
326 else
327 exitcode=1
328 echo as_func_ret_success failed.
329 fi
330
331 if as_func_ret_failure; then
332 exitcode=1
333 echo as_func_ret_failure succeeded.
334 fi
335
336 if ( set x; as_func_ret_success y && test x = "$1" ); then
337 :
338 else
339 exitcode=1
340 echo positional parameters were not saved.
341 fi
342
343 test $exitcode = 0) || { (exit 1); exit 1; }
344
345 (
346 as_lineno_1=$LINENO
347 as_lineno_2=$LINENO
348 test "x$as_lineno_1" != "x$as_lineno_2" &&
349 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
350
351 _ASEOF
352 }; then
353 break
354 fi
355
356 fi
357
358 done
359
360 if test "x$CONFIG_SHELL" != x; then
361 for as_var in BASH_ENV ENV
362 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
363 done
364 export CONFIG_SHELL
365 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
366 fi
367
368
369 if test $as_have_required = no; then
370 echo This script requires a shell more modern than all the
371 echo shells that I found on your system. Please install a
372 echo modern shell, or manually run the script under such a
373 echo shell if you do have one.
374 { (exit 1); exit 1; }
375 fi
376
377
378 fi
379
380 fi
381
382
383
384 (eval "as_func_return () {
385 (exit \$1)
386 }
387 as_func_success () {
388 as_func_return 0
389 }
390 as_func_failure () {
391 as_func_return 1
392 }
393 as_func_ret_success () {
394 return 0
395 }
396 as_func_ret_failure () {
397 return 1
398 }
399
400 exitcode=0
401 if as_func_success; then
402 :
403 else
404 exitcode=1
405 echo as_func_success failed.
406 fi
407
408 if as_func_failure; then
409 exitcode=1
410 echo as_func_failure succeeded.
411 fi
412
413 if as_func_ret_success; then
414 :
415 else
416 exitcode=1
417 echo as_func_ret_success failed.
418 fi
419
420 if as_func_ret_failure; then
421 exitcode=1
422 echo as_func_ret_failure succeeded.
423 fi
424
425 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
426 :
427 else
428 exitcode=1
429 echo positional parameters were not saved.
430 fi
431
432 test \$exitcode = 0") || {
433 echo No shell found that supports shell functions.
434 echo Please tell bug-autoconf@gnu.org about your system,
435 echo including any error possibly output before this message.
436 echo This can help us improve future autoconf versions.
437 echo Configuration will now proceed without shell functions.
438 }
439
440
441
442 as_lineno_1=$LINENO
443 as_lineno_2=$LINENO
444 test "x$as_lineno_1" != "x$as_lineno_2" &&
445 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
446
447 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
448 # uniformly replaced by the line number. The first 'sed' inserts a
449 # line-number line after each line using $LINENO; the second 'sed'
450 # does the real work. The second script uses 'N' to pair each
451 # line-number line with the line containing $LINENO, and appends
452 # trailing '-' during substitution so that $LINENO is not a special
453 # case at line end.
454 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
455 # scripts with optimization help from Paolo Bonzini. Blame Lee
456 # E. McMahon (1931-1989) for sed's syntax. :-)
457 sed -n '
458 p
459 /[$]LINENO/=
460 ' <$as_myself |
461 sed '
462 s/[$]LINENO.*/&-/
463 t lineno
464 b
465 :lineno
466 N
467 :loop
468 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
469 t loop
470 s/-\n.*//
471 ' >$as_me.lineno &&
472 chmod +x "$as_me.lineno" ||
473 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
474 { (exit 1); exit 1; }; }
475
476 # Don't try to exec as it changes $[0], causing all sort of problems
477 # (the dirname of $[0] is not the place where we might find the
478 # original and so on. Autoconf is especially sensitive to this).
479 . "./$as_me.lineno"
480 # Exit status is that of the last command.
481 exit
482 }
483
484
485 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
486 as_dirname=dirname
487 else
488 as_dirname=false
489 fi
490
491 ECHO_C= ECHO_N= ECHO_T=
492 case `echo -n x` in
493 -n*)
494 case `echo 'x\c'` in
495 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
496 *) ECHO_C='\c';;
497 esac;;
498 *)
499 ECHO_N='-n';;
500 esac
501 if expr a : '\(a\)' >/dev/null 2>&1 &&
502 test "X`expr 00001 : '.*\(...\)'`" = X001; then
503 as_expr=expr
504 else
505 as_expr=false
506 fi
507
508 rm -f conf$$ conf$$.exe conf$$.file
509 if test -d conf$$.dir; then
510 rm -f conf$$.dir/conf$$.file
511 else
512 rm -f conf$$.dir
513 mkdir conf$$.dir 2>/dev/null
514 fi
515 if (echo >conf$$.file) 2>/dev/null; then
516 if ln -s conf$$.file conf$$ 2>/dev/null; then
517 as_ln_s='ln -s'
518 # ... but there are two gotchas:
519 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
520 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
521 # In both cases, we have to default to `cp -p'.
522 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
523 as_ln_s='cp -p'
524 elif ln conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s=ln
526 else
527 as_ln_s='cp -p'
528 fi
529 else
530 as_ln_s='cp -p'
531 fi
532 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
533 rmdir conf$$.dir 2>/dev/null
534
535 if mkdir -p . 2>/dev/null; then
536 as_mkdir_p=:
537 else
538 test -d ./-p && rmdir ./-p
539 as_mkdir_p=false
540 fi
541
542 if test -x / >/dev/null 2>&1; then
543 as_test_x='test -x'
544 else
545 if ls -dL / >/dev/null 2>&1; then
546 as_ls_L_option=L
547 else
548 as_ls_L_option=
549 fi
550 as_test_x='
551 eval sh -c '\''
552 if test -d "$1"; then
553 test -d "$1/.";
554 else
555 case $1 in
556 -*)set "./$1";;
557 esac;
558 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
559 ???[sx]*):;;*)false;;esac;fi
560 '\'' sh
561 '
562 fi
563 as_executable_p=$as_test_x
564
565 # Sed expression to map a string onto a valid CPP name.
566 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
567
568 # Sed expression to map a string onto a valid variable name.
569 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
570
571
572
573
574 # Check that we are running under the correct shell.
575 SHELL=${CONFIG_SHELL-/bin/sh}
576
577 case X$lt_ECHO in
578 X*--fallback-echo)
579 # Remove one level of quotation (which was required for Make).
580 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
581 ;;
582 esac
583
584 ECHO=${lt_ECHO-echo}
585 if test "X$1" = X--no-reexec; then
586 # Discard the --no-reexec flag, and continue.
587 shift
588 elif test "X$1" = X--fallback-echo; then
589 # Avoid inline document here, it may be left over
590 :
591 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
592 # Yippee, $ECHO works!
593 :
594 else
595 # Restart under the correct shell.
596 exec $SHELL "$0" --no-reexec ${1+"$@"}
597 fi
598
599 if test "X$1" = X--fallback-echo; then
600 # used as fallback echo
601 shift
602 cat <<_LT_EOF
603 $*
604 _LT_EOF
605 exit 0
606 fi
607
608 # The HP-UX ksh and POSIX shell print the target directory to stdout
609 # if CDPATH is set.
610 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
611
612 if test -z "$lt_ECHO"; then
613 if test "X${echo_test_string+set}" != Xset; then
614 # find a string as large as possible, as long as the shell can cope with it
615 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
616 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
617 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
618 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
619 then
620 break
621 fi
622 done
623 fi
624
625 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
628 :
629 else
630 # The Solaris, AIX, and Digital Unix default echo programs unquote
631 # backslashes. This makes it impossible to quote backslashes using
632 # echo "$something" | sed 's/\\/\\\\/g'
633 #
634 # So, first we look for a working echo in the user's PATH.
635
636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
637 for dir in $PATH /usr/ucb; do
638 IFS="$lt_save_ifs"
639 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
640 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
641 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 ECHO="$dir/echo"
644 break
645 fi
646 done
647 IFS="$lt_save_ifs"
648
649 if test "X$ECHO" = Xecho; then
650 # We didn't find a better echo, so look for alternatives.
651 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # This shell has a builtin print -r that does the trick.
655 ECHO='print -r'
656 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
657 test "X$CONFIG_SHELL" != X/bin/ksh; then
658 # If we have ksh, try running configure again with it.
659 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
660 export ORIGINAL_CONFIG_SHELL
661 CONFIG_SHELL=/bin/ksh
662 export CONFIG_SHELL
663 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
664 else
665 # Try using printf.
666 ECHO='printf %s\n'
667 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
668 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
669 test "X$echo_testing_string" = "X$echo_test_string"; then
670 # Cool, printf works
671 :
672 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
673 test "X$echo_testing_string" = 'X\t' &&
674 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
675 test "X$echo_testing_string" = "X$echo_test_string"; then
676 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
677 export CONFIG_SHELL
678 SHELL="$CONFIG_SHELL"
679 export SHELL
680 ECHO="$CONFIG_SHELL $0 --fallback-echo"
681 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
682 test "X$echo_testing_string" = 'X\t' &&
683 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
684 test "X$echo_testing_string" = "X$echo_test_string"; then
685 ECHO="$CONFIG_SHELL $0 --fallback-echo"
686 else
687 # maybe with a smaller string...
688 prev=:
689
690 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
691 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
692 then
693 break
694 fi
695 prev="$cmd"
696 done
697
698 if test "$prev" != 'sed 50q "$0"'; then
699 echo_test_string=`eval $prev`
700 export echo_test_string
701 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
702 else
703 # Oops. We lost completely, so just stick with echo.
704 ECHO=echo
705 fi
706 fi
707 fi
708 fi
709 fi
710 fi
711
712 # Copy echo and quote the copy suitably for passing to libtool from
713 # the Makefile, instead of quoting the original, which is used later.
714 lt_ECHO=$ECHO
715 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
716 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
717 fi
718
719
720
721
722 exec 7<&0 </dev/null 6>&1
723
724 # Name of the host.
725 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
726 # so uname gets run too.
727 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
728
729 #
730 # Initializations.
731 #
732 ac_default_prefix=/usr/local
733 ac_clean_files=
734 ac_config_libobj_dir=.
735 LIBOBJS=
736 cross_compiling=no
737 subdirs=
738 MFLAGS=
739 MAKEFLAGS=
740 SHELL=${CONFIG_SHELL-/bin/sh}
741
742 # Identity of this package.
743 PACKAGE_NAME=
744 PACKAGE_TARNAME=
745 PACKAGE_VERSION=
746 PACKAGE_STRING=
747 PACKAGE_BUGREPORT=
748
749 ac_unique_file="src/dockapp.h"
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 # include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 # include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
785
786 ac_subst_vars='LTLIBOBJS
787 LIBOBJS
788 DFLAGS
789 X_EXTRA_LIBS
790 X_LIBS
791 X_PRE_LIBS
792 X_CFLAGS
793 XMKMF
794 CXXCPP
795 am__fastdepCXX_FALSE
796 am__fastdepCXX_TRUE
797 CXXDEPMODE
798 ac_ct_CXX
799 CXXFLAGS
800 CXX
801 CPP
802 OTOOL64
803 OTOOL
804 LIPO
805 NMEDIT
806 DSYMUTIL
807 lt_ECHO
808 AR
809 OBJDUMP
810 LN_S
811 NM
812 ac_ct_DUMPBIN
813 DUMPBIN
814 LD
815 FGREP
816 EGREP
817 GREP
818 SED
819 am__fastdepCC_FALSE
820 am__fastdepCC_TRUE
821 CCDEPMODE
822 AMDEPBACKSLASH
823 AMDEP_FALSE
824 AMDEP_TRUE
825 am__quote
826 am__include
827 DEPDIR
828 OBJEXT
829 EXEEXT
830 ac_ct_CC
831 CPPFLAGS
832 LDFLAGS
833 CFLAGS
834 CC
835 host_os
836 host_vendor
837 host_cpu
838 host
839 build_os
840 build_vendor
841 build_cpu
842 build
843 LIBTOOL
844 RANLIB
845 COND_EXAMPLES_FALSE
846 COND_EXAMPLES_TRUE
847 COND_FONT_FALSE
848 COND_FONT_TRUE
849 MAINT
850 MAINTAINER_MODE_FALSE
851 MAINTAINER_MODE_TRUE
852 am__untar
853 am__tar
854 AMTAR
855 am__leading_dot
856 SET_MAKE
857 AWK
858 mkdir_p
859 MKDIR_P
860 INSTALL_STRIP_PROGRAM
861 STRIP
862 install_sh
863 MAKEINFO
864 AUTOHEADER
865 AUTOMAKE
866 AUTOCONF
867 ACLOCAL
868 VERSION
869 PACKAGE
870 CYGPATH_W
871 am__isrc
872 INSTALL_DATA
873 INSTALL_SCRIPT
874 INSTALL_PROGRAM
875 target_alias
876 host_alias
877 build_alias
878 LIBS
879 ECHO_T
880 ECHO_N
881 ECHO_C
882 DEFS
883 mandir
884 localedir
885 libdir
886 psdir
887 pdfdir
888 dvidir
889 htmldir
890 infodir
891 docdir
892 oldincludedir
893 includedir
894 localstatedir
895 sharedstatedir
896 sysconfdir
897 datadir
898 datarootdir
899 libexecdir
900 sbindir
901 bindir
902 program_transform_name
903 prefix
904 exec_prefix
905 PACKAGE_BUGREPORT
906 PACKAGE_STRING
907 PACKAGE_VERSION
908 PACKAGE_TARNAME
909 PACKAGE_NAME
910 PATH_SEPARATOR
911 SHELL'
912 ac_subst_files=''
913 ac_user_opts='
914 enable_option_checking
915 enable_maintainer_mode
916 with_font
917 with_examples
918 enable_shared
919 enable_static
920 with_pic
921 enable_fast_install
922 enable_dependency_tracking
923 with_gnu_ld
924 enable_libtool_lock
925 with_x
926 enable_debug
927 '
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CPP
937 CXX
938 CXXFLAGS
939 CCC
940 CXXCPP
941 XMKMF'
942
943
944 # Initialize some variables set by options.
945 ac_init_help=
946 ac_init_version=false
947 ac_unrecognized_opts=
948 ac_unrecognized_sep=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
951 cache_file=/dev/null
952 exec_prefix=NONE
953 no_create=
954 no_recursion=
955 prefix=NONE
956 program_prefix=NONE
957 program_suffix=NONE
958 program_transform_name=s,x,x,
959 silent=
960 site=
961 srcdir=
962 verbose=
963 x_includes=NONE
964 x_libraries=NONE
965
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE}'
983 infodir='${datarootdir}/info'
984 htmldir='${docdir}'
985 dvidir='${docdir}'
986 pdfdir='${docdir}'
987 psdir='${docdir}'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
991
992 ac_prev=
993 ac_dashdash=
994 for ac_option
995 do
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\$ac_option
999 ac_prev=
1000 continue
1001 fi
1002
1003 case $ac_option in
1004 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 *) ac_optarg=yes ;;
1006 esac
1007
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1009
1010 case $ac_dashdash$ac_option in
1011 --)
1012 ac_dashdash=yes ;;
1013
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 ac_prev=bindir ;;
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1018
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1023
1024 -cache-file | --cache-file | --cache-fil | --cache-fi \
1025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026 ac_prev=cache_file ;;
1027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029 cache_file=$ac_optarg ;;
1030
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1033
1034 -datadir | --datadir | --datadi | --datad)
1035 ac_prev=datadir ;;
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037 datadir=$ac_optarg ;;
1038
1039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1045
1046 -disable-* | --disable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1051 { (exit 1); exit 1; }; }
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1055 *"
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=no ;;
1062
1063 -docdir | --docdir | --docdi | --doc | --do)
1064 ac_prev=docdir ;;
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1067
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 ac_prev=dvidir ;;
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
1072
1073 -enable-* | --enable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083 "enable_$ac_useropt"
1084 "*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval enable_$ac_useropt=\$ac_optarg ;;
1089
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1098
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1101 with_gas=yes ;;
1102
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1109
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1114
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 ac_prev=htmldir ;;
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 | --ht=*)
1119 htmldir=$ac_optarg ;;
1120
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1127
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 ac_prev=infodir ;;
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1132
1133 -libdir | --libdir | --libdi | --libd)
1134 ac_prev=libdir ;;
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1137
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1144
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1149
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1156
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 ac_prev=mandir ;;
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1161
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1164 with_fp=no ;;
1165
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1168 no_create=yes ;;
1169
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 no_recursion=yes ;;
1173
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1182
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 ac_prev=prefix ;;
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1187
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1194
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1201
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1218
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 ac_prev=pdfdir ;;
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1223
1224 -psdir | --psdir | --psdi | --psd | --ps)
1225 ac_prev=psdir ;;
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 psdir=$ac_optarg ;;
1228
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1231 silent=yes ;;
1232
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 ac_prev=sbindir ;;
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 | --sbi=* | --sb=*)
1237 sbindir=$ac_optarg ;;
1238
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1242 | --sha | --sh)
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 | --sha=* | --sh=*)
1248 sharedstatedir=$ac_optarg ;;
1249
1250 -site | --site | --sit)
1251 ac_prev=site ;;
1252 -site=* | --site=* | --sit=*)
1253 site=$ac_optarg ;;
1254
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 ac_prev=srcdir ;;
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1259
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1266
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1271
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 verbose=yes ;;
1274
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1277
1278 -with-* | --with-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=\$ac_optarg ;;
1294
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1300 { (exit 1); exit 1; }; }
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1304 *"
1305 "with_$ac_useropt"
1306 "*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval with_$ac_useropt=no ;;
1311
1312 --x)
1313 # Obsolete; use --with-x.
1314 with_x=yes ;;
1315
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1322
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1329
1330 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1331 Try \`$0 --help' for more information." >&2
1332 { (exit 1); exit 1; }; }
1333 ;;
1334
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1339 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1340 { (exit 1); exit 1; }; }
1341 eval $ac_envvar=\$ac_optarg
1342 export $ac_envvar ;;
1343
1344 *)
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 ;;
1351
1352 esac
1353 done
1354
1355 if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1358 { (exit 1); exit 1; }; }
1359 fi
1360
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1365 { (exit 1); exit 1; }; } ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 esac
1368 fi
1369
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir
1375 do
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1378 case $ac_val in
1379 */ )
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1382 esac
1383 # Be sure to have absolute directory names.
1384 case $ac_val in
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387 esac
1388 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1389 { (exit 1); exit 1; }; }
1390 done
1391
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1395 build=$build_alias
1396 host=$host_alias
1397 target=$target_alias
1398
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x; then
1401 if test "x$build_alias" = x; then
1402 cross_compiling=maybe
1403 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1404 If a cross compiler is detected then cross compile mode will be used." >&2
1405 elif test "x$build_alias" != "x$host_alias"; then
1406 cross_compiling=yes
1407 fi
1408 fi
1409
1410 ac_tool_prefix=
1411 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1412
1413 test "$silent" = yes && exec 6>/dev/null
1414
1415
1416 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di=`ls -di .` &&
1418 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1420 { (exit 1); exit 1; }; }
1421 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1423 { (exit 1); exit 1; }; }
1424
1425
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428 ac_srcdir_defaulted=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)[^/].*/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\/\)$/{
1445 s//\1/
1446 q
1447 }
1448 /^X\(\/\).*/{
1449 s//\1/
1450 q
1451 }
1452 s/.*/./; q'`
1453 srcdir=$ac_confdir
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 srcdir=..
1456 fi
1457 else
1458 ac_srcdir_defaulted=no
1459 fi
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1463 { (exit 1); exit 1; }; }
1464 fi
1465 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1466 ac_abs_confdir=`(
1467 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1468 { (exit 1); exit 1; }; }
1469 pwd)`
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 srcdir=.
1473 fi
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1477 case $srcdir in
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479 esac
1480 for ac_var in $ac_precious_vars; do
1481 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_env_${ac_var}_value=\$${ac_var}
1483 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 done
1486
1487 #
1488 # Report the --help message.
1489 #
1490 if test "$ac_init_help" = "long"; then
1491 # Omit some internal or obsolete options to make the list less imposing.
1492 # This message is too long to be a string in the A/UX 3.1 sh.
1493 cat <<_ACEOF
1494 \`configure' configures this package to adapt to many kinds of systems.
1495
1496 Usage: $0 [OPTION]... [VAR=VALUE]...
1497
1498 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499 VAR=VALUE. See below for descriptions of some of the useful variables.
1500
1501 Defaults for the options are specified in brackets.
1502
1503 Configuration:
1504 -h, --help display this help and exit
1505 --help=short display options specific to this package
1506 --help=recursive display the short help of all the included packages
1507 -V, --version display version information and exit
1508 -q, --quiet, --silent do not print \`checking...' messages
1509 --cache-file=FILE cache test results in FILE [disabled]
1510 -C, --config-cache alias for \`--cache-file=config.cache'
1511 -n, --no-create do not create output files
1512 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1513
1514 Installation directories:
1515 --prefix=PREFIX install architecture-independent files in PREFIX
1516 [$ac_default_prefix]
1517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 [PREFIX]
1519
1520 By default, \`make install' will install all the files in
1521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1522 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523 for instance \`--prefix=\$HOME'.
1524
1525 For better control, use the options below.
1526
1527 Fine tuning of the installation directories:
1528 --bindir=DIR user executables [EPREFIX/bin]
1529 --sbindir=DIR system admin executables [EPREFIX/sbin]
1530 --libexecdir=DIR program executables [EPREFIX/libexec]
1531 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1532 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1533 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1534 --libdir=DIR object code libraries [EPREFIX/lib]
1535 --includedir=DIR C header files [PREFIX/include]
1536 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1537 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1538 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1539 --infodir=DIR info documentation [DATAROOTDIR/info]
1540 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1541 --mandir=DIR man documentation [DATAROOTDIR/man]
1542 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1543 --htmldir=DIR html documentation [DOCDIR]
1544 --dvidir=DIR dvi documentation [DOCDIR]
1545 --pdfdir=DIR pdf documentation [DOCDIR]
1546 --psdir=DIR ps documentation [DOCDIR]
1547 _ACEOF
1548
1549 cat <<\_ACEOF
1550
1551 Program names:
1552 --program-prefix=PREFIX prepend PREFIX to installed program names
1553 --program-suffix=SUFFIX append SUFFIX to installed program names
1554 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1555
1556 X features:
1557 --x-includes=DIR X include files are in DIR
1558 --x-libraries=DIR X library files are in DIR
1559
1560 System types:
1561 --build=BUILD configure for building on BUILD [guessed]
1562 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1563 _ACEOF
1564 fi
1565
1566 if test -n "$ac_init_help"; then
1567
1568 cat <<\_ACEOF
1569
1570 Optional Features:
1571 --disable-option-checking ignore unrecognized --enable/--with options
1572 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1573 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1574 --enable-maintainer-mode enable make rules and dependencies not useful
1575 (and sometimes confusing) to the casual installer
1576 --enable-shared[=PKGS] build shared libraries [default=yes]
1577 --enable-static[=PKGS] build static libraries [default=yes]
1578 --enable-fast-install[=PKGS]
1579 optimize for fast installation [default=yes]
1580 --disable-dependency-tracking speeds up one-time build
1581 --enable-dependency-tracking do not reject slow dependency extractors
1582 --disable-libtool-lock avoid locking (might break parallel builds)
1583 --enable-debug enable debugging
1584
1585 Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-font install the dockapp font (default=yes)
1589 --with-examples install the examples (default=yes)
1590 --with-pic try to use only PIC/non-PIC objects [default=use
1591 both]
1592 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1593 --with-x use the X Window System
1594
1595 Some influential environment variables:
1596 CC C compiler command
1597 CFLAGS C compiler flags
1598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
1600 LIBS libraries to pass to the linker, e.g. -l<library>
1601 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
1603 CPP C preprocessor
1604 CXX C++ compiler command
1605 CXXFLAGS C++ compiler flags
1606 CXXCPP C++ preprocessor
1607 XMKMF Path to xmkmf, Makefile generator for X Window System
1608
1609 Use these variables to override the choices made by `configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1611
1612 _ACEOF
1613 ac_status=$?
1614 fi
1615
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621 continue
1622 ac_builddir=.
1623
1624 case "$ac_dir" in
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *)
1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 esac ;;
1634 esac
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1639
1640 case $srcdir in
1641 .) # We are building in place.
1642 ac_srcdir=.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1649 *) # Relative name.
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 esac
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1664 else
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 fi || ac_status=$?
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1668 done
1669 fi
1670
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1673 cat <<\_ACEOF
1674 configure
1675 generated by GNU Autoconf 2.63
1676
1677 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1678 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1679 This configure script is free software; the Free Software Foundation
1680 gives unlimited permission to copy, distribute and modify it.
1681 _ACEOF
1682 exit
1683 fi
1684 cat >config.log <<_ACEOF
1685 This file contains any messages produced by compilers while
1686 running configure, to aid debugging if configure makes a mistake.
1687
1688 It was created by $as_me, which was
1689 generated by GNU Autoconf 2.63. Invocation command line was
1690
1691 $ $0 $@
1692
1693 _ACEOF
1694 exec 5>>config.log
1695 {
1696 cat <<_ASUNAME
1697 ## --------- ##
1698 ## Platform. ##
1699 ## --------- ##
1700
1701 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1702 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1703 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1704 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1705 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1706
1707 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1708 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1709
1710 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1711 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1712 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1713 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1714 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1715 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1716 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1717
1718 _ASUNAME
1719
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1722 do
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 $as_echo "PATH: $as_dir"
1726 done
1727 IFS=$as_save_IFS
1728
1729 } >&5
1730
1731 cat >&5 <<_ACEOF
1732
1733
1734 ## ----------- ##
1735 ## Core tests. ##
1736 ## ----------- ##
1737
1738 _ACEOF
1739
1740
1741 # Keep a trace of the command line.
1742 # Strip out --no-create and --no-recursion so they do not pile up.
1743 # Strip out --silent because we don't want to record it for future runs.
1744 # Also quote any args containing shell meta-characters.
1745 # Make two passes to allow for proper duplicate-argument suppression.
1746 ac_configure_args=
1747 ac_configure_args0=
1748 ac_configure_args1=
1749 ac_must_keep_next=false
1750 for ac_pass in 1 2
1751 do
1752 for ac_arg
1753 do
1754 case $ac_arg in
1755 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1757 | -silent | --silent | --silen | --sile | --sil)
1758 continue ;;
1759 *\'*)
1760 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 esac
1762 case $ac_pass in
1763 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1764 2)
1765 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1766 if test $ac_must_keep_next = true; then
1767 ac_must_keep_next=false # Got value, back to normal.
1768 else
1769 case $ac_arg in
1770 *=* | --config-cache | -C | -disable-* | --disable-* \
1771 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1772 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1773 | -with-* | --with-* | -without-* | --without-* | --x)
1774 case "$ac_configure_args0 " in
1775 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1776 esac
1777 ;;
1778 -* ) ac_must_keep_next=true ;;
1779 esac
1780 fi
1781 ac_configure_args="$ac_configure_args '$ac_arg'"
1782 ;;
1783 esac
1784 done
1785 done
1786 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1787 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1788
1789 # When interrupted or exit'd, cleanup temporary files, and complete
1790 # config.log. We remove comments because anyway the quotes in there
1791 # would cause problems or look ugly.
1792 # WARNING: Use '\'' to represent an apostrophe within the trap.
1793 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1794 trap 'exit_status=$?
1795 # Save into config.log some information that might help in debugging.
1796 {
1797 echo
1798
1799 cat <<\_ASBOX
1800 ## ---------------- ##
1801 ## Cache variables. ##
1802 ## ---------------- ##
1803 _ASBOX
1804 echo
1805 # The following way of writing the cache mishandles newlines in values,
1806 (
1807 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1808 eval ac_val=\$$ac_var
1809 case $ac_val in #(
1810 *${as_nl}*)
1811 case $ac_var in #(
1812 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1813 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1814 esac
1815 case $ac_var in #(
1816 _ | IFS | as_nl) ;; #(
1817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1818 *) $as_unset $ac_var ;;
1819 esac ;;
1820 esac
1821 done
1822 (set) 2>&1 |
1823 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1824 *${as_nl}ac_space=\ *)
1825 sed -n \
1826 "s/'\''/'\''\\\\'\'''\''/g;
1827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1828 ;; #(
1829 *)
1830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1831 ;;
1832 esac |
1833 sort
1834 )
1835 echo
1836
1837 cat <<\_ASBOX
1838 ## ----------------- ##
1839 ## Output variables. ##
1840 ## ----------------- ##
1841 _ASBOX
1842 echo
1843 for ac_var in $ac_subst_vars
1844 do
1845 eval ac_val=\$$ac_var
1846 case $ac_val in
1847 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848 esac
1849 $as_echo "$ac_var='\''$ac_val'\''"
1850 done | sort
1851 echo
1852
1853 if test -n "$ac_subst_files"; then
1854 cat <<\_ASBOX
1855 ## ------------------- ##
1856 ## File substitutions. ##
1857 ## ------------------- ##
1858 _ASBOX
1859 echo
1860 for ac_var in $ac_subst_files
1861 do
1862 eval ac_val=\$$ac_var
1863 case $ac_val in
1864 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 esac
1866 $as_echo "$ac_var='\''$ac_val'\''"
1867 done | sort
1868 echo
1869 fi
1870
1871 if test -s confdefs.h; then
1872 cat <<\_ASBOX
1873 ## ----------- ##
1874 ## confdefs.h. ##
1875 ## ----------- ##
1876 _ASBOX
1877 echo
1878 cat confdefs.h
1879 echo
1880 fi
1881 test "$ac_signal" != 0 &&
1882 $as_echo "$as_me: caught signal $ac_signal"
1883 $as_echo "$as_me: exit $exit_status"
1884 } >&5
1885 rm -f core *.core core.conftest.* &&
1886 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1887 exit $exit_status
1888 ' 0
1889 for ac_signal in 1 2 13 15; do
1890 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1891 done
1892 ac_signal=0
1893
1894 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1895 rm -f -r conftest* confdefs.h
1896
1897 # Predefined preprocessor variables.
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_NAME "$PACKAGE_NAME"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1911 _ACEOF
1912
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_STRING "$PACKAGE_STRING"
1916 _ACEOF
1917
1918
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1921 _ACEOF
1922
1923
1924 # Let the site file select an alternate cache file if it wants to.
1925 # Prefer an explicitly selected file to automatically selected ones.
1926 ac_site_file1=NONE
1927 ac_site_file2=NONE
1928 if test -n "$CONFIG_SITE"; then
1929 ac_site_file1=$CONFIG_SITE
1930 elif test "x$prefix" != xNONE; then
1931 ac_site_file1=$prefix/share/config.site
1932 ac_site_file2=$prefix/etc/config.site
1933 else
1934 ac_site_file1=$ac_default_prefix/share/config.site
1935 ac_site_file2=$ac_default_prefix/etc/config.site
1936 fi
1937 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1938 do
1939 test "x$ac_site_file" = xNONE && continue
1940 if test -r "$ac_site_file"; then
1941 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1942 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1943 sed 's/^/| /' "$ac_site_file" >&5
1944 . "$ac_site_file"
1945 fi
1946 done
1947
1948 if test -r "$cache_file"; then
1949 # Some versions of bash will fail to source /dev/null (special
1950 # files actually), so we avoid doing that.
1951 if test -f "$cache_file"; then
1952 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1953 $as_echo "$as_me: loading cache $cache_file" >&6;}
1954 case $cache_file in
1955 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1956 *) . "./$cache_file";;
1957 esac
1958 fi
1959 else
1960 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1961 $as_echo "$as_me: creating cache $cache_file" >&6;}
1962 >$cache_file
1963 fi
1964
1965 # Check that the precious variables saved in the cache have kept the same
1966 # value.
1967 ac_cache_corrupted=false
1968 for ac_var in $ac_precious_vars; do
1969 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1970 eval ac_new_set=\$ac_env_${ac_var}_set
1971 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1972 eval ac_new_val=\$ac_env_${ac_var}_value
1973 case $ac_old_set,$ac_new_set in
1974 set,)
1975 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1976 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1977 ac_cache_corrupted=: ;;
1978 ,set)
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1980 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1981 ac_cache_corrupted=: ;;
1982 ,);;
1983 *)
1984 if test "x$ac_old_val" != "x$ac_new_val"; then
1985 # differences in whitespace do not lead to failure.
1986 ac_old_val_w=`echo x $ac_old_val`
1987 ac_new_val_w=`echo x $ac_new_val`
1988 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1989 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1990 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1991 ac_cache_corrupted=:
1992 else
1993 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1994 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1995 eval $ac_var=\$ac_old_val
1996 fi
1997 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1998 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1999 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2000 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2001 fi;;
2002 esac
2003 # Pass precious variables to config.status.
2004 if test "$ac_new_set" = set; then
2005 case $ac_new_val in
2006 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2007 *) ac_arg=$ac_var=$ac_new_val ;;
2008 esac
2009 case " $ac_configure_args " in
2010 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2011 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2012 esac
2013 fi
2014 done
2015 if $ac_cache_corrupted; then
2016 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2019 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2020 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2021 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2022 { (exit 1); exit 1; }; }
2023 fi
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041 ac_ext=c
2042 ac_cpp='$CPP $CPPFLAGS'
2043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046
2047
2048 am__api_version='1.10'
2049
2050 ac_aux_dir=
2051 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2052 if test -f "$ac_dir/install-sh"; then
2053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/install-sh -c"
2055 break
2056 elif test -f "$ac_dir/install.sh"; then
2057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/install.sh -c"
2059 break
2060 elif test -f "$ac_dir/shtool"; then
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/shtool install -c"
2063 break
2064 fi
2065 done
2066 if test -z "$ac_aux_dir"; then
2067 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2068 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2069 { (exit 1); exit 1; }; }
2070 fi
2071
2072 # These three variables are undocumented and unsupported,
2073 # and are intended to be withdrawn in a future Autoconf release.
2074 # They can cause serious problems if a builder's source tree is in a directory
2075 # whose full name contains unusual characters.
2076 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2077 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2078 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2079
2080
2081 # Find a good install program. We prefer a C program (faster),
2082 # so one script is as good as another. But avoid the broken or
2083 # incompatible versions:
2084 # SysV /etc/install, /usr/sbin/install
2085 # SunOS /usr/etc/install
2086 # IRIX /sbin/install
2087 # AIX /bin/install
2088 # AmigaOS /C/install, which installs bootblocks on floppy discs
2089 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2090 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2091 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2092 # OS/2's system install, which has a completely different semantic
2093 # ./install, which can be erroneously created by make from ./install.sh.
2094 # Reject install programs that cannot install multiple files.
2095 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2096 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2097 if test -z "$INSTALL"; then
2098 if test "${ac_cv_path_install+set}" = set; then
2099 $as_echo_n "(cached) " >&6
2100 else
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 # Account for people who put trailing slashes in PATH elements.
2107 case $as_dir/ in
2108 ./ | .// | /cC/* | \
2109 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2110 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2111 /usr/ucb/* ) ;;
2112 *)
2113 # OSF1 and SCO ODT 3.0 have their own names for install.
2114 # Don't use installbsd from OSF since it installs stuff as root
2115 # by default.
2116 for ac_prog in ginstall scoinst install; do
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2119 if test $ac_prog = install &&
2120 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2121 # AIX install. It has an incompatible calling convention.
2122 :
2123 elif test $ac_prog = install &&
2124 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2125 # program-specific install script used by HP pwplus--don't use.
2126 :
2127 else
2128 rm -rf conftest.one conftest.two conftest.dir
2129 echo one > conftest.one
2130 echo two > conftest.two
2131 mkdir conftest.dir
2132 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2133 test -s conftest.one && test -s conftest.two &&
2134 test -s conftest.dir/conftest.one &&
2135 test -s conftest.dir/conftest.two
2136 then
2137 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2138 break 3
2139 fi
2140 fi
2141 fi
2142 done
2143 done
2144 ;;
2145 esac
2146
2147 done
2148 IFS=$as_save_IFS
2149
2150 rm -rf conftest.one conftest.two conftest.dir
2151
2152 fi
2153 if test "${ac_cv_path_install+set}" = set; then
2154 INSTALL=$ac_cv_path_install
2155 else
2156 # As a last resort, use the slow shell script. Don't cache a
2157 # value for INSTALL within a source directory, because that will
2158 # break other packages using the cache if that directory is
2159 # removed, or if the value is a relative name.
2160 INSTALL=$ac_install_sh
2161 fi
2162 fi
2163 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2164 $as_echo "$INSTALL" >&6; }
2165
2166 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2167 # It thinks the first close brace ends the variable substitution.
2168 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2169
2170 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2171
2172 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2173
2174 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2175 $as_echo_n "checking whether build environment is sane... " >&6; }
2176 # Just in case
2177 sleep 1
2178 echo timestamp > conftest.file
2179 # Do `set' in a subshell so we don't clobber the current shell's
2180 # arguments. Must try -L first in case configure is actually a
2181 # symlink; some systems play weird games with the mod time of symlinks
2182 # (eg FreeBSD returns the mod time of the symlink's containing
2183 # directory).
2184 if (
2185 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2186 if test "$*" = "X"; then
2187 # -L didn't work.
2188 set X `ls -t $srcdir/configure conftest.file`
2189 fi
2190 rm -f conftest.file
2191 if test "$*" != "X $srcdir/configure conftest.file" \
2192 && test "$*" != "X conftest.file $srcdir/configure"; then
2193
2194 # If neither matched, then we have a broken ls. This can happen
2195 # if, for instance, CONFIG_SHELL is bash and it inherits a
2196 # broken ls alias from the environment. This has actually
2197 # happened. Such a system could not be considered "sane".
2198 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2199 alias in your environment" >&5
2200 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2201 alias in your environment" >&2;}
2202 { (exit 1); exit 1; }; }
2203 fi
2204
2205 test "$2" = conftest.file
2206 )
2207 then
2208 # Ok.
2209 :
2210 else
2211 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2212 Check your system clock" >&5
2213 $as_echo "$as_me: error: newly created file is older than distributed files!
2214 Check your system clock" >&2;}
2215 { (exit 1); exit 1; }; }
2216 fi
2217 { $as_echo "$as_me:$LINENO: result: yes" >&5
2218 $as_echo "yes" >&6; }
2219 test "$program_prefix" != NONE &&
2220 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2221 # Use a double $ so make ignores it.
2222 test "$program_suffix" != NONE &&
2223 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2224 # Double any \ or $.
2225 # By default was `s,x,x', remove it if useless.
2226 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2227 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2228
2229 # expand $ac_aux_dir to an absolute path
2230 am_aux_dir=`cd $ac_aux_dir && pwd`
2231
2232 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2233 # Use eval to expand $SHELL
2234 if eval "$MISSING --run true"; then
2235 am_missing_run="$MISSING --run "
2236 else
2237 am_missing_run=
2238 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2239 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2240 fi
2241
2242 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2243 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2244 if test -z "$MKDIR_P"; then
2245 if test "${ac_cv_path_mkdir+set}" = set; then
2246 $as_echo_n "(cached) " >&6
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2250 do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_prog in mkdir gmkdir; do
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2256 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2257 'mkdir (GNU coreutils) '* | \
2258 'mkdir (coreutils) '* | \
2259 'mkdir (fileutils) '4.1*)
2260 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2261 break 3;;
2262 esac
2263 done
2264 done
2265 done
2266 IFS=$as_save_IFS
2267
2268 fi
2269
2270 if test "${ac_cv_path_mkdir+set}" = set; then
2271 MKDIR_P="$ac_cv_path_mkdir -p"
2272 else
2273 # As a last resort, use the slow shell script. Don't cache a
2274 # value for MKDIR_P within a source directory, because that will
2275 # break other packages using the cache if that directory is
2276 # removed, or if the value is a relative name.
2277 test -d ./--version && rmdir ./--version
2278 MKDIR_P="$ac_install_sh -d"
2279 fi
2280 fi
2281 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2282 $as_echo "$MKDIR_P" >&6; }
2283
2284 mkdir_p="$MKDIR_P"
2285 case $mkdir_p in
2286 [\\/$]* | ?:[\\/]*) ;;
2287 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2288 esac
2289
2290 for ac_prog in gawk mawk nawk awk
2291 do
2292 # Extract the first word of "$ac_prog", so it can be a program name with args.
2293 set dummy $ac_prog; ac_word=$2
2294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 $as_echo_n "checking for $ac_word... " >&6; }
2296 if test "${ac_cv_prog_AWK+set}" = set; then
2297 $as_echo_n "(cached) " >&6
2298 else
2299 if test -n "$AWK"; then
2300 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309 ac_cv_prog_AWK="$ac_prog"
2310 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 break 2
2312 fi
2313 done
2314 done
2315 IFS=$as_save_IFS
2316
2317 fi
2318 fi
2319 AWK=$ac_cv_prog_AWK
2320 if test -n "$AWK"; then
2321 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2322 $as_echo "$AWK" >&6; }
2323 else
2324 { $as_echo "$as_me:$LINENO: result: no" >&5
2325 $as_echo "no" >&6; }
2326 fi
2327
2328
2329 test -n "$AWK" && break
2330 done
2331
2332 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2333 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2334 set x ${MAKE-make}
2335 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2336 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2337 $as_echo_n "(cached) " >&6
2338 else
2339 cat >conftest.make <<\_ACEOF
2340 SHELL = /bin/sh
2341 all:
2342 @echo '@@@%%%=$(MAKE)=@@@%%%'
2343 _ACEOF
2344 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2345 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2346 *@@@%%%=?*=@@@%%%*)
2347 eval ac_cv_prog_make_${ac_make}_set=yes;;
2348 *)
2349 eval ac_cv_prog_make_${ac_make}_set=no;;
2350 esac
2351 rm -f conftest.make
2352 fi
2353 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2354 { $as_echo "$as_me:$LINENO: result: yes" >&5
2355 $as_echo "yes" >&6; }
2356 SET_MAKE=
2357 else
2358 { $as_echo "$as_me:$LINENO: result: no" >&5
2359 $as_echo "no" >&6; }
2360 SET_MAKE="MAKE=${MAKE-make}"
2361 fi
2362
2363 rm -rf .tst 2>/dev/null
2364 mkdir .tst 2>/dev/null
2365 if test -d .tst; then
2366 am__leading_dot=.
2367 else
2368 am__leading_dot=_
2369 fi
2370 rmdir .tst 2>/dev/null
2371
2372 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2373 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2374 # is not polluted with repeated "-I."
2375 am__isrc=' -I$(srcdir)'
2376 # test to see if srcdir already configured
2377 if test -f $srcdir/config.status; then
2378 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2379 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2380 { (exit 1); exit 1; }; }
2381 fi
2382 fi
2383
2384 # test whether we have cygpath
2385 if test -z "$CYGPATH_W"; then
2386 if (cygpath --version) >/dev/null 2>/dev/null; then
2387 CYGPATH_W='cygpath -w'
2388 else
2389 CYGPATH_W=echo
2390 fi
2391 fi
2392
2393
2394 # Define the identity of the package.
2395 PACKAGE=libdockapp
2396 VERSION=0.6.0
2397
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE "$PACKAGE"
2401 _ACEOF
2402
2403
2404 cat >>confdefs.h <<_ACEOF
2405 #define VERSION "$VERSION"
2406 _ACEOF
2407
2408 # Some tools Automake needs.
2409
2410 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2411
2412
2413 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2414
2415
2416 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2417
2418
2419 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2420
2421
2422 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2423
2424 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2425
2426 # Installed binaries are usually stripped using `strip' when the user
2427 # run `make install-strip'. However `strip' might not be the right
2428 # tool to use in cross-compilation environments, therefore Automake
2429 # will honor the `STRIP' environment variable to overrule this program.
2430 if test "$cross_compiling" != no; then
2431 if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2433 set dummy ${ac_tool_prefix}strip; ac_word=$2
2434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
2436 if test "${ac_cv_prog_STRIP+set}" = set; then
2437 $as_echo_n "(cached) " >&6
2438 else
2439 if test -n "$STRIP"; then
2440 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2452 fi
2453 done
2454 done
2455 IFS=$as_save_IFS
2456
2457 fi
2458 fi
2459 STRIP=$ac_cv_prog_STRIP
2460 if test -n "$STRIP"; then
2461 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2462 $as_echo "$STRIP" >&6; }
2463 else
2464 { $as_echo "$as_me:$LINENO: result: no" >&5
2465 $as_echo "no" >&6; }
2466 fi
2467
2468
2469 fi
2470 if test -z "$ac_cv_prog_STRIP"; then
2471 ac_ct_STRIP=$STRIP
2472 # Extract the first word of "strip", so it can be a program name with args.
2473 set dummy strip; ac_word=$2
2474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 $as_echo_n "checking for $ac_word... " >&6; }
2476 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2477 $as_echo_n "(cached) " >&6
2478 else
2479 if test -n "$ac_ct_STRIP"; then
2480 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_ac_ct_STRIP="strip"
2490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 break 2
2492 fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2500 if test -n "$ac_ct_STRIP"; then
2501 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2502 $as_echo "$ac_ct_STRIP" >&6; }
2503 else
2504 { $as_echo "$as_me:$LINENO: result: no" >&5
2505 $as_echo "no" >&6; }
2506 fi
2507
2508 if test "x$ac_ct_STRIP" = x; then
2509 STRIP=":"
2510 else
2511 case $cross_compiling:$ac_tool_warned in
2512 yes:)
2513 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2515 ac_tool_warned=yes ;;
2516 esac
2517 STRIP=$ac_ct_STRIP
2518 fi
2519 else
2520 STRIP="$ac_cv_prog_STRIP"
2521 fi
2522
2523 fi
2524 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2525
2526 # We need awk for the "check" target. The system "awk" is bad on
2527 # some platforms.
2528 # Always define AMTAR for backward compatibility.
2529
2530 AMTAR=${AMTAR-"${am_missing_run}tar"}
2531
2532 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2533
2534
2535
2536
2537
2538 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2539 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2540 # Check whether --enable-maintainer-mode was given.
2541 if test "${enable_maintainer_mode+set}" = set; then
2542 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2543 else
2544 USE_MAINTAINER_MODE=no
2545 fi
2546
2547 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2548 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2549 if test $USE_MAINTAINER_MODE = yes; then
2550 MAINTAINER_MODE_TRUE=
2551 MAINTAINER_MODE_FALSE='#'
2552 else
2553 MAINTAINER_MODE_TRUE='#'
2554 MAINTAINER_MODE_FALSE=
2555 fi
2556
2557 MAINT=$MAINTAINER_MODE_TRUE
2558
2559
2560
2561
2562
2563
2564 # Check whether --with-font was given.
2565 if test "${with_font+set}" = set; then
2566 withval=$with_font; with_font=$withval
2567 else
2568 with_font=yes
2569 fi
2570
2571
2572
2573 # Check whether --with-examples was given.
2574 if test "${with_examples+set}" = set; then
2575 withval=$with_examples; with_examples=$withval
2576 else
2577 with_examples=yes
2578 fi
2579
2580
2581
2582 if test "$with_font" = yes; then
2583 COND_FONT_TRUE=
2584 COND_FONT_FALSE='#'
2585 else
2586 COND_FONT_TRUE='#'
2587 COND_FONT_FALSE=
2588 fi
2589
2590 if test "$with_examples" = yes; then
2591 COND_EXAMPLES_TRUE=
2592 COND_EXAMPLES_FALSE='#'
2593 else
2594 COND_EXAMPLES_TRUE='#'
2595 COND_EXAMPLES_FALSE=
2596 fi
2597
2598
2599
2600 if test -n "$ac_tool_prefix"; then
2601 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2602 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_RANLIB+set}" = set; then
2606 $as_echo_n "(cached) " >&6
2607 else
2608 if test -n "$RANLIB"; then
2609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2621 fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 RANLIB=$ac_cv_prog_RANLIB
2629 if test -n "$RANLIB"; then
2630 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
2631 $as_echo "$RANLIB" >&6; }
2632 else
2633 { $as_echo "$as_me:$LINENO: result: no" >&5
2634 $as_echo "no" >&6; }
2635 fi
2636
2637
2638 fi
2639 if test -z "$ac_cv_prog_RANLIB"; then
2640 ac_ct_RANLIB=$RANLIB
2641 # Extract the first word of "ranlib", so it can be a program name with args.
2642 set dummy ranlib; ac_word=$2
2643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2646 $as_echo_n "(cached) " >&6
2647 else
2648 if test -n "$ac_ct_RANLIB"; then
2649 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_ac_ct_RANLIB="ranlib"
2659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2665
2666 fi
2667 fi
2668 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2669 if test -n "$ac_ct_RANLIB"; then
2670 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2671 $as_echo "$ac_ct_RANLIB" >&6; }
2672 else
2673 { $as_echo "$as_me:$LINENO: result: no" >&5
2674 $as_echo "no" >&6; }
2675 fi
2676
2677 if test "x$ac_ct_RANLIB" = x; then
2678 RANLIB=":"
2679 else
2680 case $cross_compiling:$ac_tool_warned in
2681 yes:)
2682 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2684 ac_tool_warned=yes ;;
2685 esac
2686 RANLIB=$ac_ct_RANLIB
2687 fi
2688 else
2689 RANLIB="$ac_cv_prog_RANLIB"
2690 fi
2691
2692 case `pwd` in
2693 *\ * | *\ *)
2694 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2695 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2696 esac
2697
2698
2699
2700 macro_version='2.2.6'
2701 macro_revision='1.3012'
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715 ltmain="$ac_aux_dir/ltmain.sh"
2716
2717 # Make sure we can run config.sub.
2718 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2719 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2720 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2721 { (exit 1); exit 1; }; }
2722
2723 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2724 $as_echo_n "checking build system type... " >&6; }
2725 if test "${ac_cv_build+set}" = set; then
2726 $as_echo_n "(cached) " >&6
2727 else
2728 ac_build_alias=$build_alias
2729 test "x$ac_build_alias" = x &&
2730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2731 test "x$ac_build_alias" = x &&
2732 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2733 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2734 { (exit 1); exit 1; }; }
2735 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2736 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2737 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2738 { (exit 1); exit 1; }; }
2739
2740 fi
2741 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2742 $as_echo "$ac_cv_build" >&6; }
2743 case $ac_cv_build in
2744 *-*-*) ;;
2745 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2746 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2747 { (exit 1); exit 1; }; };;
2748 esac
2749 build=$ac_cv_build
2750 ac_save_IFS=$IFS; IFS='-'
2751 set x $ac_cv_build
2752 shift
2753 build_cpu=$1
2754 build_vendor=$2
2755 shift; shift
2756 # Remember, the first character of IFS is used to create $*,
2757 # except with old shells:
2758 build_os=$*
2759 IFS=$ac_save_IFS
2760 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2761
2762
2763 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2764 $as_echo_n "checking host system type... " >&6; }
2765 if test "${ac_cv_host+set}" = set; then
2766 $as_echo_n "(cached) " >&6
2767 else
2768 if test "x$host_alias" = x; then
2769 ac_cv_host=$ac_cv_build
2770 else
2771 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2772 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2773 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2774 { (exit 1); exit 1; }; }
2775 fi
2776
2777 fi
2778 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2779 $as_echo "$ac_cv_host" >&6; }
2780 case $ac_cv_host in
2781 *-*-*) ;;
2782 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2783 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2784 { (exit 1); exit 1; }; };;
2785 esac
2786 host=$ac_cv_host
2787 ac_save_IFS=$IFS; IFS='-'
2788 set x $ac_cv_host
2789 shift
2790 host_cpu=$1
2791 host_vendor=$2
2792 shift; shift
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2795 host_os=$*
2796 IFS=$ac_save_IFS
2797 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2798
2799
2800 DEPDIR="${am__leading_dot}deps"
2801
2802 ac_config_commands="$ac_config_commands depfiles"
2803
2804
2805 am_make=${MAKE-make}
2806 cat > confinc << 'END'
2807 am__doit:
2808 @echo done
2809 .PHONY: am__doit
2810 END
2811 # If we don't find an include directive, just comment out the code.
2812 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2813 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2814 am__include="#"
2815 am__quote=
2816 _am_result=none
2817 # First try GNU make style include.
2818 echo "include confinc" > confmf
2819 # We grep out `Entering directory' and `Leaving directory'
2820 # messages which can occur if `w' ends up in MAKEFLAGS.
2821 # In particular we don't look at `^make:' because GNU make might
2822 # be invoked under some other name (usually "gmake"), in which
2823 # case it prints its new name instead of `make'.
2824 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2825 am__include=include
2826 am__quote=
2827 _am_result=GNU
2828 fi
2829 # Now try BSD make style include.
2830 if test "$am__include" = "#"; then
2831 echo '.include "confinc"' > confmf
2832 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2833 am__include=.include
2834 am__quote="\""
2835 _am_result=BSD
2836 fi
2837 fi
2838
2839
2840 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2841 $as_echo "$_am_result" >&6; }
2842 rm -f confinc confmf
2843
2844 # Check whether --enable-dependency-tracking was given.
2845 if test "${enable_dependency_tracking+set}" = set; then
2846 enableval=$enable_dependency_tracking;
2847 fi
2848
2849 if test "x$enable_dependency_tracking" != xno; then
2850 am_depcomp="$ac_aux_dir/depcomp"
2851 AMDEPBACKSLASH='\'
2852 fi
2853 if test "x$enable_dependency_tracking" != xno; then
2854 AMDEP_TRUE=
2855 AMDEP_FALSE='#'
2856 else
2857 AMDEP_TRUE='#'
2858 AMDEP_FALSE=
2859 fi
2860
2861
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 if test -n "$ac_tool_prefix"; then
2868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if test "${ac_cv_prog_CC+set}" = set; then
2873 $as_echo_n "(cached) " >&6
2874 else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889 done
2890 done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 CC=$ac_cv_prog_CC
2896 if test -n "$CC"; then
2897 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2899 else
2900 { $as_echo "$as_me:$LINENO: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904
2905 fi
2906 if test -z "$ac_cv_prog_CC"; then
2907 ac_ct_CC=$CC
2908 # Extract the first word of "gcc", so it can be a program name with args.
2909 set dummy gcc; ac_word=$2
2910 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_ac_ct_CC="gcc"
2926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936 if test -n "$ac_ct_CC"; then
2937 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2938 $as_echo "$ac_ct_CC" >&6; }
2939 else
2940 { $as_echo "$as_me:$LINENO: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944 if test "x$ac_ct_CC" = x; then
2945 CC=""
2946 else
2947 case $cross_compiling:$ac_tool_warned in
2948 yes:)
2949 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2951 ac_tool_warned=yes ;;
2952 esac
2953 CC=$ac_ct_CC
2954 fi
2955 else
2956 CC="$ac_cv_prog_CC"
2957 fi
2958
2959 if test -z "$CC"; then
2960 if test -n "$ac_tool_prefix"; then
2961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}cc; ac_word=$2
2963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_CC+set}" = set; then
2966 $as_echo_n "(cached) " >&6
2967 else
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_CC="${ac_tool_prefix}cc"
2979 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2981 fi
2982 done
2983 done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2992 else
2993 { $as_echo "$as_me:$LINENO: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2996
2997
2998 fi
2999 fi
3000 if test -z "$CC"; then
3001 # Extract the first word of "cc", so it can be a program name with args.
3002 set dummy cc; ac_word=$2
3003 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if test "${ac_cv_prog_CC+set}" = set; then
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 ac_prog_rejected=no
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3020 ac_prog_rejected=yes
3021 continue
3022 fi
3023 ac_cv_prog_CC="cc"
3024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy $ac_cv_prog_CC
3034 shift
3035 if test $# != 0; then
3036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3039 shift
3040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3041 fi
3042 fi
3043 fi
3044 fi
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050 { $as_echo "$as_me:$LINENO: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055 fi
3056 if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
3058 for ac_prog in cl.exe
3059 do
3060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if test "${ac_cv_prog_CC+set}" = set; then
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092 { $as_echo "$as_me:$LINENO: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
3096
3097 test -n "$CC" && break
3098 done
3099 fi
3100 if test -z "$CC"; then
3101 ac_ct_CC=$CC
3102 for ac_prog in cl.exe
3103 do
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3109 $as_echo_n "(cached) " >&6
3110 else
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 ac_cv_prog_ac_ct_CC="$ac_prog"
3122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132 if test -n "$ac_ct_CC"; then
3133 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3134 $as_echo "$ac_ct_CC" >&6; }
3135 else
3136 { $as_echo "$as_me:$LINENO: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
3140
3141 test -n "$ac_ct_CC" && break
3142 done
3143
3144 if test "x$ac_ct_CC" = x; then
3145 CC=""
3146 else
3147 case $cross_compiling:$ac_tool_warned in
3148 yes:)
3149 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3151 ac_tool_warned=yes ;;
3152 esac
3153 CC=$ac_ct_CC
3154 fi
3155 fi
3156
3157 fi
3158
3159
3160 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3163 See \`config.log' for more details." >&5
3164 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3165 See \`config.log' for more details." >&2;}
3166 { (exit 1); exit 1; }; }; }
3167
3168 # Provide some information about the compiler.
3169 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3170 set X $ac_compile
3171 ac_compiler=$2
3172 { (ac_try="$ac_compiler --version >&5"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3178 $as_echo "$ac_try_echo") >&5
3179 (eval "$ac_compiler --version >&5") 2>&5
3180 ac_status=$?
3181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }
3183 { (ac_try="$ac_compiler -v >&5"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3189 $as_echo "$ac_try_echo") >&5
3190 (eval "$ac_compiler -v >&5") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }
3194 { (ac_try="$ac_compiler -V >&5"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3200 $as_echo "$ac_try_echo") >&5
3201 (eval "$ac_compiler -V >&5") 2>&5
3202 ac_status=$?
3203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }
3205
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212
3213 int
3214 main ()
3215 {
3216
3217 ;
3218 return 0;
3219 }
3220 _ACEOF
3221 ac_clean_files_save=$ac_clean_files
3222 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3223 # Try to create an executable without -o first, disregard a.out.
3224 # It will help us diagnose broken compilers, and finding out an intuition
3225 # of exeext.
3226 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3227 $as_echo_n "checking for C compiler default output file name... " >&6; }
3228 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3229
3230 # The possible output files:
3231 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3232
3233 ac_rmfiles=
3234 for ac_file in $ac_files
3235 do
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3238 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3239 esac
3240 done
3241 rm -f $ac_rmfiles
3242
3243 if { (ac_try="$ac_link_default"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250 (eval "$ac_link_default") 2>&5
3251 ac_status=$?
3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; then
3254 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3255 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3256 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3257 # so that the user can short-circuit this test for compilers unknown to
3258 # Autoconf.
3259 for ac_file in $ac_files ''
3260 do
3261 test -f "$ac_file" || continue
3262 case $ac_file in
3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3264 ;;
3265 [ab].out )
3266 # We found the default executable, but exeext='' is most
3267 # certainly right.
3268 break;;
3269 *.* )
3270 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3271 then :; else
3272 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3273 fi
3274 # We set ac_cv_exeext here because the later test for it is not
3275 # safe: cross compilers may not add the suffix if given an `-o'
3276 # argument, so we may need to know it at that point already.
3277 # Even if this section looks crufty: it has the advantage of
3278 # actually working.
3279 break;;
3280 * )
3281 break;;
3282 esac
3283 done
3284 test "$ac_cv_exeext" = no && ac_cv_exeext=
3285
3286 else
3287 ac_file=''
3288 fi
3289
3290 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3291 $as_echo "$ac_file" >&6; }
3292 if test -z "$ac_file"; then
3293 $as_echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3299 See \`config.log' for more details." >&5
3300 $as_echo "$as_me: error: C compiler cannot create executables
3301 See \`config.log' for more details." >&2;}
3302 { (exit 77); exit 77; }; }; }
3303 fi
3304
3305 ac_exeext=$ac_cv_exeext
3306
3307 # Check that the compiler produces executables we can run. If not, either
3308 # the compiler is broken, or we cross compile.
3309 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3310 $as_echo_n "checking whether the C compiler works... " >&6; }
3311 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3312 # If not cross compiling, check that we can run a simple program.
3313 if test "$cross_compiling" != yes; then
3314 if { ac_try='./$ac_file'
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321 (eval "$ac_try") 2>&5
3322 ac_status=$?
3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 cross_compiling=no
3326 else
3327 if test "$cross_compiling" = maybe; then
3328 cross_compiling=yes
3329 else
3330 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3333 If you meant to cross compile, use \`--host'.
3334 See \`config.log' for more details." >&5
3335 $as_echo "$as_me: error: cannot run C compiled programs.
3336 If you meant to cross compile, use \`--host'.
3337 See \`config.log' for more details." >&2;}
3338 { (exit 1); exit 1; }; }; }
3339 fi
3340 fi
3341 fi
3342 { $as_echo "$as_me:$LINENO: result: yes" >&5
3343 $as_echo "yes" >&6; }
3344
3345 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3346 ac_clean_files=$ac_clean_files_save
3347 # Check that the compiler produces executables we can run. If not, either
3348 # the compiler is broken, or we cross compile.
3349 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3350 $as_echo_n "checking whether we are cross compiling... " >&6; }
3351 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3352 $as_echo "$cross_compiling" >&6; }
3353
3354 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3355 $as_echo_n "checking for suffix of executables... " >&6; }
3356 if { (ac_try="$ac_link"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363 (eval "$ac_link") 2>&5
3364 ac_status=$?
3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; then
3367 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3368 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3369 # work properly (i.e., refer to `conftest.exe'), while it won't with
3370 # `rm'.
3371 for ac_file in conftest.exe conftest conftest.*; do
3372 test -f "$ac_file" || continue
3373 case $ac_file in
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3375 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3376 break;;
3377 * ) break;;
3378 esac
3379 done
3380 else
3381 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3384 See \`config.log' for more details." >&5
3385 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3386 See \`config.log' for more details." >&2;}
3387 { (exit 1); exit 1; }; }; }
3388 fi
3389
3390 rm -f conftest$ac_cv_exeext
3391 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3392 $as_echo "$ac_cv_exeext" >&6; }
3393
3394 rm -f conftest.$ac_ext
3395 EXEEXT=$ac_cv_exeext
3396 ac_exeext=$EXEEXT
3397 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3398 $as_echo_n "checking for suffix of object files... " >&6; }
3399 if test "${ac_cv_objext+set}" = set; then
3400 $as_echo_n "(cached) " >&6
3401 else
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408
3409 int
3410 main ()
3411 {
3412
3413 ;
3414 return 0;
3415 }
3416 _ACEOF
3417 rm -f conftest.o conftest.obj
3418 if { (ac_try="$ac_compile"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3424 $as_echo "$ac_try_echo") >&5
3425 (eval "$ac_compile") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; then
3429 for ac_file in conftest.o conftest.obj conftest.*; do
3430 test -f "$ac_file" || continue;
3431 case $ac_file in
3432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3434 break;;
3435 esac
3436 done
3437 else
3438 $as_echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3444 See \`config.log' for more details." >&5
3445 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3446 See \`config.log' for more details." >&2;}
3447 { (exit 1); exit 1; }; }; }
3448 fi
3449
3450 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3451 fi
3452 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3453 $as_echo "$ac_cv_objext" >&6; }
3454 OBJEXT=$ac_cv_objext
3455 ac_objext=$OBJEXT
3456 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3457 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3458 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3459 $as_echo_n "(cached) " >&6
3460 else
3461 cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h. */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3467
3468 int
3469 main ()
3470 {
3471 #ifndef __GNUC__
3472 choke me
3473 #endif
3474
3475 ;
3476 return 0;
3477 }
3478 _ACEOF
3479 rm -f conftest.$ac_objext
3480 if { (ac_try="$ac_compile"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3497 ac_compiler_gnu=yes
3498 else
3499 $as_echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 ac_compiler_gnu=no
3503 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3507
3508 fi
3509 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3510 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3511 if test $ac_compiler_gnu = yes; then
3512 GCC=yes
3513 else
3514 GCC=
3515 fi
3516 ac_test_CFLAGS=${CFLAGS+set}
3517 ac_save_CFLAGS=$CFLAGS
3518 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3519 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3520 if test "${ac_cv_prog_cc_g+set}" = set; then
3521 $as_echo_n "(cached) " >&6
3522 else
3523 ac_save_c_werror_flag=$ac_c_werror_flag
3524 ac_c_werror_flag=yes
3525 ac_cv_prog_cc_g=no
3526 CFLAGS="-g"
3527 cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h. */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533
3534 int
3535 main ()
3536 {
3537
3538 ;
3539 return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3549 $as_echo "$ac_try_echo") >&5
3550 (eval "$ac_compile") 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } && {
3557 test -z "$ac_c_werror_flag" ||
3558 test ! -s conftest.err
3559 } && test -s conftest.$ac_objext; then
3560 ac_cv_prog_cc_g=yes
3561 else
3562 $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 CFLAGS=""
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572
3573 int
3574 main ()
3575 {
3576
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (ac_try="$ac_compile"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3588 $as_echo "$ac_try_echo") >&5
3589 (eval "$ac_compile") 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } && {
3596 test -z "$ac_c_werror_flag" ||
3597 test ! -s conftest.err
3598 } && test -s conftest.$ac_objext; then
3599 :
3600 else
3601 $as_echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3605 CFLAGS="-g"
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612
3613 int
3614 main ()
3615 {
3616
3617 ;
3618 return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3628 $as_echo "$ac_try_echo") >&5
3629 (eval "$ac_compile") 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } && {
3636 test -z "$ac_c_werror_flag" ||
3637 test ! -s conftest.err
3638 } && test -s conftest.$ac_objext; then
3639 ac_cv_prog_cc_g=yes
3640 else
3641 $as_echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3643
3644
3645 fi
3646
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 fi
3649
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 fi
3652
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_c_werror_flag=$ac_save_c_werror_flag
3655 fi
3656 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3657 $as_echo "$ac_cv_prog_cc_g" >&6; }
3658 if test "$ac_test_CFLAGS" = set; then
3659 CFLAGS=$ac_save_CFLAGS
3660 elif test $ac_cv_prog_cc_g = yes; then
3661 if test "$GCC" = yes; then
3662 CFLAGS="-g -O2"
3663 else
3664 CFLAGS="-g"
3665 fi
3666 else
3667 if test "$GCC" = yes; then
3668 CFLAGS="-O2"
3669 else
3670 CFLAGS=
3671 fi
3672 fi
3673 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3674 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3675 if test "${ac_cv_prog_cc_c89+set}" = set; then
3676 $as_echo_n "(cached) " >&6
3677 else
3678 ac_cv_prog_cc_c89=no
3679 ac_save_CC=$CC
3680 cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 #include <stdarg.h>
3687 #include <stdio.h>
3688 #include <sys/types.h>
3689 #include <sys/stat.h>
3690 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3691 struct buf { int x; };
3692 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3693 static char *e (p, i)
3694 char **p;
3695 int i;
3696 {
3697 return p[i];
3698 }
3699 static char *f (char * (*g) (char **, int), char **p, ...)
3700 {
3701 char *s;
3702 va_list v;
3703 va_start (v,p);
3704 s = g (p, va_arg (v,int));
3705 va_end (v);
3706 return s;
3707 }
3708
3709 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3710 function prototypes and stuff, but not '\xHH' hex character constants.
3711 These don't provoke an error unfortunately, instead are silently treated
3712 as 'x'. The following induces an error, until -std is added to get
3713 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3714 array size at least. It's necessary to write '\x00'==0 to get something
3715 that's true only with -std. */
3716 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717
3718 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3719 inside strings and character constants. */
3720 #define FOO(x) 'x'
3721 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3722
3723 int test (int i, double x);
3724 struct s1 {int (*f) (int a);};
3725 struct s2 {int (*f) (double a);};
3726 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3727 int argc;
3728 char **argv;
3729 int
3730 main ()
3731 {
3732 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3738 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739 do
3740 CC="$ac_save_CC $ac_arg"
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3759 ac_cv_prog_cc_c89=$ac_arg
3760 else
3761 $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764
3765 fi
3766
3767 rm -f core conftest.err conftest.$ac_objext
3768 test "x$ac_cv_prog_cc_c89" != "xno" && break
3769 done
3770 rm -f conftest.$ac_ext
3771 CC=$ac_save_CC
3772
3773 fi
3774 # AC_CACHE_VAL
3775 case "x$ac_cv_prog_cc_c89" in
3776 x)
3777 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3778 $as_echo "none needed" >&6; } ;;
3779 xno)
3780 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3781 $as_echo "unsupported" >&6; } ;;
3782 *)
3783 CC="$CC $ac_cv_prog_cc_c89"
3784 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3785 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3786 esac
3787
3788
3789 ac_ext=c
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794
3795 depcc="$CC" am_compiler_list=
3796
3797 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3798 $as_echo_n "checking dependency style of $depcc... " >&6; }
3799 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3803 # We make a subdir and do the tests there. Otherwise we can end up
3804 # making bogus files that we don't know about and never remove. For
3805 # instance it was reported that on HP-UX the gcc test will end up
3806 # making a dummy file named `D' -- because `-MD' means `put the output
3807 # in D'.
3808 mkdir conftest.dir
3809 # Copy depcomp to subdir because otherwise we won't find it if we're
3810 # using a relative directory.
3811 cp "$am_depcomp" conftest.dir
3812 cd conftest.dir
3813 # We will build objects and dependencies in a subdirectory because
3814 # it helps to detect inapplicable dependency modes. For instance
3815 # both Tru64's cc and ICC support -MD to output dependencies as a
3816 # side effect of compilation, but ICC will put the dependencies in
3817 # the current directory while Tru64 will put them in the object
3818 # directory.
3819 mkdir sub
3820
3821 am_cv_CC_dependencies_compiler_type=none
3822 if test "$am_compiler_list" = ""; then
3823 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3824 fi
3825 for depmode in $am_compiler_list; do
3826 # Setup a source with many dependencies, because some compilers
3827 # like to wrap large dependency lists on column 80 (with \), and
3828 # we should not choose a depcomp mode which is confused by this.
3829 #
3830 # We need to recreate these files for each test, as the compiler may
3831 # overwrite some of them when testing with obscure command lines.
3832 # This happens at least with the AIX C compiler.
3833 : > sub/conftest.c
3834 for i in 1 2 3 4 5 6; do
3835 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3836 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3837 # Solaris 8's {/usr,}/bin/sh.
3838 touch sub/conftst$i.h
3839 done
3840 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3841
3842 case $depmode in
3843 nosideeffect)
3844 # after this tag, mechanisms are not by side-effect, so they'll
3845 # only be used when explicitly requested
3846 if test "x$enable_dependency_tracking" = xyes; then
3847 continue
3848 else
3849 break
3850 fi
3851 ;;
3852 none) break ;;
3853 esac
3854 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3855 # mode. It turns out that the SunPro C++ compiler does not properly
3856 # handle `-M -o', and we need to detect this.
3857 if depmode=$depmode \
3858 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3860 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3861 >/dev/null 2>conftest.err &&
3862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3864 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866 # icc doesn't choke on unknown options, it will just issue warnings
3867 # or remarks (even with -Werror). So we grep stderr for any message
3868 # that says an option was ignored or not supported.
3869 # When given -MP, icc 7.0 and 7.1 complain thusly:
3870 # icc: Command line warning: ignoring option '-M'; no argument required
3871 # The diagnosis changed in icc 8.0:
3872 # icc: Command line remark: option '-MP' not supported
3873 if (grep 'ignoring option' conftest.err ||
3874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3875 am_cv_CC_dependencies_compiler_type=$depmode
3876 break
3877 fi
3878 fi
3879 done
3880
3881 cd ..
3882 rm -rf conftest.dir
3883 else
3884 am_cv_CC_dependencies_compiler_type=none
3885 fi
3886
3887 fi
3888 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3889 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3890 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3891
3892 if
3893 test "x$enable_dependency_tracking" != xno \
3894 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895 am__fastdepCC_TRUE=
3896 am__fastdepCC_FALSE='#'
3897 else
3898 am__fastdepCC_TRUE='#'
3899 am__fastdepCC_FALSE=
3900 fi
3901
3902
3903 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3904 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3905 if test "${ac_cv_path_SED+set}" = set; then
3906 $as_echo_n "(cached) " >&6
3907 else
3908 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3909 for ac_i in 1 2 3 4 5 6 7; do
3910 ac_script="$ac_script$as_nl$ac_script"
3911 done
3912 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3913 $as_unset ac_script || ac_script=
3914 if test -z "$SED"; then
3915 ac_path_SED_found=false
3916 # Loop through the user's path and test for each of PROGNAME-LIST
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_prog in sed gsed; do
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3925 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3926 # Check for GNU ac_path_SED and select it if it is found.
3927 # Check for GNU $ac_path_SED
3928 case `"$ac_path_SED" --version 2>&1` in
3929 *GNU*)
3930 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3931 *)
3932 ac_count=0
3933 $as_echo_n 0123456789 >"conftest.in"
3934 while :
3935 do
3936 cat "conftest.in" "conftest.in" >"conftest.tmp"
3937 mv "conftest.tmp" "conftest.in"
3938 cp "conftest.in" "conftest.nl"
3939 $as_echo '' >> "conftest.nl"
3940 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3942 ac_count=`expr $ac_count + 1`
3943 if test $ac_count -gt ${ac_path_SED_max-0}; then
3944 # Best one so far, save it but keep looking for a better one
3945 ac_cv_path_SED="$ac_path_SED"
3946 ac_path_SED_max=$ac_count
3947 fi
3948 # 10*(2^10) chars as input seems more than enough
3949 test $ac_count -gt 10 && break
3950 done
3951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952 esac
3953
3954 $ac_path_SED_found && break 3
3955 done
3956 done
3957 done
3958 IFS=$as_save_IFS
3959 if test -z "$ac_cv_path_SED"; then
3960 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3961 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3962 { (exit 1); exit 1; }; }
3963 fi
3964 else
3965 ac_cv_path_SED=$SED
3966 fi
3967
3968 fi
3969 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3970 $as_echo "$ac_cv_path_SED" >&6; }
3971 SED="$ac_cv_path_SED"
3972 rm -f conftest.sed
3973
3974 test -z "$SED" && SED=sed
3975 Xsed="$SED -e 1s/^X//"
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3988 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3989 if test "${ac_cv_path_GREP+set}" = set; then
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -z "$GREP"; then
3993 ac_path_GREP_found=false
3994 # Loop through the user's path and test for each of PROGNAME-LIST
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997 do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_prog in grep ggrep; do
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4003 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4004 # Check for GNU ac_path_GREP and select it if it is found.
4005 # Check for GNU $ac_path_GREP
4006 case `"$ac_path_GREP" --version 2>&1` in
4007 *GNU*)
4008 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4009 *)
4010 ac_count=0
4011 $as_echo_n 0123456789 >"conftest.in"
4012 while :
4013 do
4014 cat "conftest.in" "conftest.in" >"conftest.tmp"
4015 mv "conftest.tmp" "conftest.in"
4016 cp "conftest.in" "conftest.nl"
4017 $as_echo 'GREP' >> "conftest.nl"
4018 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020 ac_count=`expr $ac_count + 1`
4021 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4022 # Best one so far, save it but keep looking for a better one
4023 ac_cv_path_GREP="$ac_path_GREP"
4024 ac_path_GREP_max=$ac_count
4025 fi
4026 # 10*(2^10) chars as input seems more than enough
4027 test $ac_count -gt 10 && break
4028 done
4029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 esac
4031
4032 $ac_path_GREP_found && break 3
4033 done
4034 done
4035 done
4036 IFS=$as_save_IFS
4037 if test -z "$ac_cv_path_GREP"; then
4038 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4039 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4040 { (exit 1); exit 1; }; }
4041 fi
4042 else
4043 ac_cv_path_GREP=$GREP
4044 fi
4045
4046 fi
4047 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4048 $as_echo "$ac_cv_path_GREP" >&6; }
4049 GREP="$ac_cv_path_GREP"
4050
4051
4052 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4053 $as_echo_n "checking for egrep... " >&6; }
4054 if test "${ac_cv_path_EGREP+set}" = set; then
4055 $as_echo_n "(cached) " >&6
4056 else
4057 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4058 then ac_cv_path_EGREP="$GREP -E"
4059 else
4060 if test -z "$EGREP"; then
4061 ac_path_EGREP_found=false
4062 # Loop through the user's path and test for each of PROGNAME-LIST
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4065 do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_prog in egrep; do
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4071 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4072 # Check for GNU ac_path_EGREP and select it if it is found.
4073 # Check for GNU $ac_path_EGREP
4074 case `"$ac_path_EGREP" --version 2>&1` in
4075 *GNU*)
4076 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4077 *)
4078 ac_count=0
4079 $as_echo_n 0123456789 >"conftest.in"
4080 while :
4081 do
4082 cat "conftest.in" "conftest.in" >"conftest.tmp"
4083 mv "conftest.tmp" "conftest.in"
4084 cp "conftest.in" "conftest.nl"
4085 $as_echo 'EGREP' >> "conftest.nl"
4086 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4088 ac_count=`expr $ac_count + 1`
4089 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4090 # Best one so far, save it but keep looking for a better one
4091 ac_cv_path_EGREP="$ac_path_EGREP"
4092 ac_path_EGREP_max=$ac_count
4093 fi
4094 # 10*(2^10) chars as input seems more than enough
4095 test $ac_count -gt 10 && break
4096 done
4097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4098 esac
4099
4100 $ac_path_EGREP_found && break 3
4101 done
4102 done
4103 done
4104 IFS=$as_save_IFS
4105 if test -z "$ac_cv_path_EGREP"; then
4106 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4107 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4108 { (exit 1); exit 1; }; }
4109 fi
4110 else
4111 ac_cv_path_EGREP=$EGREP
4112 fi
4113
4114 fi
4115 fi
4116 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117 $as_echo "$ac_cv_path_EGREP" >&6; }
4118 EGREP="$ac_cv_path_EGREP"
4119
4120
4121 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4122 $as_echo_n "checking for fgrep... " >&6; }
4123 if test "${ac_cv_path_FGREP+set}" = set; then
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4127 then ac_cv_path_FGREP="$GREP -F"
4128 else
4129 if test -z "$FGREP"; then
4130 ac_path_FGREP_found=false
4131 # Loop through the user's path and test for each of PROGNAME-LIST
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4134 do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_prog in fgrep; do
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4140 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4141 # Check for GNU ac_path_FGREP and select it if it is found.
4142 # Check for GNU $ac_path_FGREP
4143 case `"$ac_path_FGREP" --version 2>&1` in
4144 *GNU*)
4145 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4146 *)
4147 ac_count=0
4148 $as_echo_n 0123456789 >"conftest.in"
4149 while :
4150 do
4151 cat "conftest.in" "conftest.in" >"conftest.tmp"
4152 mv "conftest.tmp" "conftest.in"
4153 cp "conftest.in" "conftest.nl"
4154 $as_echo 'FGREP' >> "conftest.nl"
4155 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4156 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4157 ac_count=`expr $ac_count + 1`
4158 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4159 # Best one so far, save it but keep looking for a better one
4160 ac_cv_path_FGREP="$ac_path_FGREP"
4161 ac_path_FGREP_max=$ac_count
4162 fi
4163 # 10*(2^10) chars as input seems more than enough
4164 test $ac_count -gt 10 && break
4165 done
4166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4167 esac
4168
4169 $ac_path_FGREP_found && break 3
4170 done
4171 done
4172 done
4173 IFS=$as_save_IFS
4174 if test -z "$ac_cv_path_FGREP"; then
4175 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4176 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4177 { (exit 1); exit 1; }; }
4178 fi
4179 else
4180 ac_cv_path_FGREP=$FGREP
4181 fi
4182
4183 fi
4184 fi
4185 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4186 $as_echo "$ac_cv_path_FGREP" >&6; }
4187 FGREP="$ac_cv_path_FGREP"
4188
4189
4190 test -z "$GREP" && GREP=grep
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210 # Check whether --with-gnu-ld was given.
4211 if test "${with_gnu_ld+set}" = set; then
4212 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4213 else
4214 with_gnu_ld=no
4215 fi
4216
4217 ac_prog=ld
4218 if test "$GCC" = yes; then
4219 # Check if gcc -print-prog-name=ld gives a path.
4220 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4221 $as_echo_n "checking for ld used by $CC... " >&6; }
4222 case $host in
4223 *-*-mingw*)
4224 # gcc leaves a trailing carriage return which upsets mingw
4225 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4226 *)
4227 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4228 esac
4229 case $ac_prog in
4230 # Accept absolute paths.
4231 [\\/]* | ?:[\\/]*)
4232 re_direlt='/[^/][^/]*/\.\./'
4233 # Canonicalize the pathname of ld
4234 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4235 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4236 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4237 done
4238 test -z "$LD" && LD="$ac_prog"
4239 ;;
4240 "")
4241 # If it fails, then pretend we aren't using GCC.
4242 ac_prog=ld
4243 ;;
4244 *)
4245 # If it is relative, then search for the first ld in PATH.
4246 with_gnu_ld=unknown
4247 ;;
4248 esac
4249 elif test "$with_gnu_ld" = yes; then
4250 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4251 $as_echo_n "checking for GNU ld... " >&6; }
4252 else
4253 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4254 $as_echo_n "checking for non-GNU ld... " >&6; }
4255 fi
4256 if test "${lt_cv_path_LD+set}" = set; then
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if test -z "$LD"; then
4260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4261 for ac_dir in $PATH; do
4262 IFS="$lt_save_ifs"
4263 test -z "$ac_dir" && ac_dir=.
4264 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4265 lt_cv_path_LD="$ac_dir/$ac_prog"
4266 # Check to see if the program is GNU ld. I'd rather use --version,
4267 # but apparently some variants of GNU ld only accept -v.
4268 # Break only if it was the GNU/non-GNU ld that we prefer.
4269 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4270 *GNU* | *'with BFD'*)
4271 test "$with_gnu_ld" != no && break
4272 ;;
4273 *)
4274 test "$with_gnu_ld" != yes && break
4275 ;;
4276 esac
4277 fi
4278 done
4279 IFS="$lt_save_ifs"
4280 else
4281 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4282 fi
4283 fi
4284
4285 LD="$lt_cv_path_LD"
4286 if test -n "$LD"; then
4287 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4288 $as_echo "$LD" >&6; }
4289 else
4290 { $as_echo "$as_me:$LINENO: result: no" >&5
4291 $as_echo "no" >&6; }
4292 fi
4293 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4294 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4295 { (exit 1); exit 1; }; }
4296 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4297 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4298 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4299 $as_echo_n "(cached) " >&6
4300 else
4301 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4302 case `$LD -v 2>&1 </dev/null` in
4303 *GNU* | *'with BFD'*)
4304 lt_cv_prog_gnu_ld=yes
4305 ;;
4306 *)
4307 lt_cv_prog_gnu_ld=no
4308 ;;
4309 esac
4310 fi
4311 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4312 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4313 with_gnu_ld=$lt_cv_prog_gnu_ld
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4324 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4325 if test "${lt_cv_path_NM+set}" = set; then
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -n "$NM"; then
4329 # Let the user override the test.
4330 lt_cv_path_NM="$NM"
4331 else
4332 lt_nm_to_check="${ac_tool_prefix}nm"
4333 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4334 lt_nm_to_check="$lt_nm_to_check nm"
4335 fi
4336 for lt_tmp_nm in $lt_nm_to_check; do
4337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4338 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4339 IFS="$lt_save_ifs"
4340 test -z "$ac_dir" && ac_dir=.
4341 tmp_nm="$ac_dir/$lt_tmp_nm"
4342 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4343 # Check to see if the nm accepts a BSD-compat flag.
4344 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4345 # nm: unknown option "B" ignored
4346 # Tru64's nm complains that /dev/null is an invalid object file
4347 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4348 */dev/null* | *'Invalid file or object type'*)
4349 lt_cv_path_NM="$tmp_nm -B"
4350 break
4351 ;;
4352 *)
4353 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4354 */dev/null*)
4355 lt_cv_path_NM="$tmp_nm -p"
4356 break
4357 ;;
4358 *)
4359 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4360 continue # so that we can try to find one that supports BSD flags
4361 ;;
4362 esac
4363 ;;
4364 esac
4365 fi
4366 done
4367 IFS="$lt_save_ifs"
4368 done
4369 : ${lt_cv_path_NM=no}
4370 fi
4371 fi
4372 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4373 $as_echo "$lt_cv_path_NM" >&6; }
4374 if test "$lt_cv_path_NM" != "no"; then
4375 NM="$lt_cv_path_NM"
4376 else
4377 # Didn't find any BSD compatible name lister, look for dumpbin.
4378 if test -n "$ac_tool_prefix"; then
4379 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4380 do
4381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -n "$DUMPBIN"; then
4389 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4393 do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4398 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4401 fi
4402 done
4403 done
4404 IFS=$as_save_IFS
4405
4406 fi
4407 fi
4408 DUMPBIN=$ac_cv_prog_DUMPBIN
4409 if test -n "$DUMPBIN"; then
4410 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4411 $as_echo "$DUMPBIN" >&6; }
4412 else
4413 { $as_echo "$as_me:$LINENO: result: no" >&5
4414 $as_echo "no" >&6; }
4415 fi
4416
4417
4418 test -n "$DUMPBIN" && break
4419 done
4420 fi
4421 if test -z "$DUMPBIN"; then
4422 ac_ct_DUMPBIN=$DUMPBIN
4423 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4424 do
4425 # Extract the first word of "$ac_prog", so it can be a program name with args.
4426 set dummy $ac_prog; ac_word=$2
4427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4430 $as_echo_n "(cached) " >&6
4431 else
4432 if test -n "$ac_ct_DUMPBIN"; then
4433 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4445 fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4453 if test -n "$ac_ct_DUMPBIN"; then
4454 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4455 $as_echo "$ac_ct_DUMPBIN" >&6; }
4456 else
4457 { $as_echo "$as_me:$LINENO: result: no" >&5
4458 $as_echo "no" >&6; }
4459 fi
4460
4461
4462 test -n "$ac_ct_DUMPBIN" && break
4463 done
4464
4465 if test "x$ac_ct_DUMPBIN" = x; then
4466 DUMPBIN=":"
4467 else
4468 case $cross_compiling:$ac_tool_warned in
4469 yes:)
4470 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4472 ac_tool_warned=yes ;;
4473 esac
4474 DUMPBIN=$ac_ct_DUMPBIN
4475 fi
4476 fi
4477
4478
4479 if test "$DUMPBIN" != ":"; then
4480 NM="$DUMPBIN"
4481 fi
4482 fi
4483 test -z "$NM" && NM=nm
4484
4485
4486
4487
4488
4489
4490 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4491 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4492 if test "${lt_cv_nm_interface+set}" = set; then
4493 $as_echo_n "(cached) " >&6
4494 else
4495 lt_cv_nm_interface="BSD nm"
4496 echo "int some_variable = 0;" > conftest.$ac_ext
4497 (eval echo "\"\$as_me:4498: $ac_compile\"" >&5)
4498 (eval "$ac_compile" 2>conftest.err)
4499 cat conftest.err >&5
4500 (eval echo "\"\$as_me:4501: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4501 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4502 cat conftest.err >&5
4503 (eval echo "\"\$as_me:4504: output\"" >&5)
4504 cat conftest.out >&5
4505 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4506 lt_cv_nm_interface="MS dumpbin"
4507 fi
4508 rm -f conftest*
4509 fi
4510 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4511 $as_echo "$lt_cv_nm_interface" >&6; }
4512
4513 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4514 $as_echo_n "checking whether ln -s works... " >&6; }
4515 LN_S=$as_ln_s
4516 if test "$LN_S" = "ln -s"; then
4517 { $as_echo "$as_me:$LINENO: result: yes" >&5
4518 $as_echo "yes" >&6; }
4519 else
4520 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4521 $as_echo "no, using $LN_S" >&6; }
4522 fi
4523
4524 # find the maximum length of command line arguments
4525 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4526 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4527 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4528 $as_echo_n "(cached) " >&6
4529 else
4530 i=0
4531 teststring="ABCD"
4532
4533 case $build_os in
4534 msdosdjgpp*)
4535 # On DJGPP, this test can blow up pretty badly due to problems in libc
4536 # (any single argument exceeding 2000 bytes causes a buffer overrun
4537 # during glob expansion). Even if it were fixed, the result of this
4538 # check would be larger than it should be.
4539 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4540 ;;
4541
4542 gnu*)
4543 # Under GNU Hurd, this test is not required because there is
4544 # no limit to the length of command line arguments.
4545 # Libtool will interpret -1 as no limit whatsoever
4546 lt_cv_sys_max_cmd_len=-1;
4547 ;;
4548
4549 cygwin* | mingw* | cegcc*)
4550 # On Win9x/ME, this test blows up -- it succeeds, but takes
4551 # about 5 minutes as the teststring grows exponentially.
4552 # Worse, since 9x/ME are not pre-emptively multitasking,
4553 # you end up with a "frozen" computer, even though with patience
4554 # the test eventually succeeds (with a max line length of 256k).
4555 # Instead, let's just punt: use the minimum linelength reported by
4556 # all of the supported platforms: 8192 (on NT/2K/XP).
4557 lt_cv_sys_max_cmd_len=8192;
4558 ;;
4559
4560 amigaos*)
4561 # On AmigaOS with pdksh, this test takes hours, literally.
4562 # So we just punt and use a minimum line length of 8192.
4563 lt_cv_sys_max_cmd_len=8192;
4564 ;;
4565
4566 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4567 # This has been around since 386BSD, at least. Likely further.
4568 if test -x /sbin/sysctl; then
4569 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4570 elif test -x /usr/sbin/sysctl; then
4571 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4572 else
4573 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4574 fi
4575 # And add a safety zone
4576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4578 ;;
4579
4580 interix*)
4581 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4582 lt_cv_sys_max_cmd_len=196608
4583 ;;
4584
4585 osf*)
4586 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4587 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4588 # nice to cause kernel panics so lets avoid the loop below.
4589 # First set a reasonable default.
4590 lt_cv_sys_max_cmd_len=16384
4591 #
4592 if test -x /sbin/sysconfig; then
4593 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4594 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4595 esac
4596 fi
4597 ;;
4598 sco3.2v5*)
4599 lt_cv_sys_max_cmd_len=102400
4600 ;;
4601 sysv5* | sco5v6* | sysv4.2uw2*)
4602 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4603 if test -n "$kargmax"; then
4604 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4605 else
4606 lt_cv_sys_max_cmd_len=32768
4607 fi
4608 ;;
4609 *)
4610 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4611 if test -n "$lt_cv_sys_max_cmd_len"; then
4612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4614 else
4615 # Make teststring a little bigger before we do anything with it.
4616 # a 1K string should be a reasonable start.
4617 for i in 1 2 3 4 5 6 7 8 ; do
4618 teststring=$teststring$teststring
4619 done
4620 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4621 # If test is not a shell built-in, we'll probably end up computing a
4622 # maximum length that is only half of the actual maximum length, but
4623 # we can't tell.
4624 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4625 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4626 test $i != 17 # 1/2 MB should be enough
4627 do
4628 i=`expr $i + 1`
4629 teststring=$teststring$teststring
4630 done
4631 # Only check the string length outside the loop.
4632 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4633 teststring=
4634 # Add a significant safety factor because C++ compilers can tack on
4635 # massive amounts of additional arguments before passing them to the
4636 # linker. It appears as though 1/2 is a usable value.
4637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4638 fi
4639 ;;
4640 esac
4641
4642 fi
4643
4644 if test -n $lt_cv_sys_max_cmd_len ; then
4645 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4646 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4647 else
4648 { $as_echo "$as_me:$LINENO: result: none" >&5
4649 $as_echo "none" >&6; }
4650 fi
4651 max_cmd_len=$lt_cv_sys_max_cmd_len
4652
4653
4654
4655
4656
4657
4658 : ${CP="cp -f"}
4659 : ${MV="mv -f"}
4660 : ${RM="rm -f"}
4661
4662 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4663 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4664 # Try some XSI features
4665 xsi_shell=no
4666 ( _lt_dummy="a/b/c"
4667 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4668 = c,a/b,, \
4669 && eval 'test $(( 1 + 1 )) -eq 2 \
4670 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4671 && xsi_shell=yes
4672 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4673 $as_echo "$xsi_shell" >&6; }
4674
4675
4676 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4677 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4678 lt_shell_append=no
4679 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4680 >/dev/null 2>&1 \
4681 && lt_shell_append=yes
4682 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4683 $as_echo "$lt_shell_append" >&6; }
4684
4685
4686 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4687 lt_unset=unset
4688 else
4689 lt_unset=false
4690 fi
4691
4692
4693
4694
4695
4696 # test EBCDIC or ASCII
4697 case `echo X|tr X '\101'` in
4698 A) # ASCII based system
4699 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4700 lt_SP2NL='tr \040 \012'
4701 lt_NL2SP='tr \015\012 \040\040'
4702 ;;
4703 *) # EBCDIC based system
4704 lt_SP2NL='tr \100 \n'
4705 lt_NL2SP='tr \r\n \100\100'
4706 ;;
4707 esac
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4718 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4719 if test "${lt_cv_ld_reload_flag+set}" = set; then
4720 $as_echo_n "(cached) " >&6
4721 else
4722 lt_cv_ld_reload_flag='-r'
4723 fi
4724 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4725 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4726 reload_flag=$lt_cv_ld_reload_flag
4727 case $reload_flag in
4728 "" | " "*) ;;
4729 *) reload_flag=" $reload_flag" ;;
4730 esac
4731 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4732 case $host_os in
4733 darwin*)
4734 if test "$GCC" = yes; then
4735 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4736 else
4737 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4738 fi
4739 ;;
4740 esac
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4752 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$OBJDUMP"; then
4759 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772 done
4773 done
4774 IFS=$as_save_IFS
4775
4776 fi
4777 fi
4778 OBJDUMP=$ac_cv_prog_OBJDUMP
4779 if test -n "$OBJDUMP"; then
4780 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4781 $as_echo "$OBJDUMP" >&6; }
4782 else
4783 { $as_echo "$as_me:$LINENO: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786
4787
4788 fi
4789 if test -z "$ac_cv_prog_OBJDUMP"; then
4790 ac_ct_OBJDUMP=$OBJDUMP
4791 # Extract the first word of "objdump", so it can be a program name with args.
4792 set dummy objdump; ac_word=$2
4793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4796 $as_echo_n "(cached) " >&6
4797 else
4798 if test -n "$ac_ct_OBJDUMP"; then
4799 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812 done
4813 done
4814 IFS=$as_save_IFS
4815
4816 fi
4817 fi
4818 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4819 if test -n "$ac_ct_OBJDUMP"; then
4820 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4821 $as_echo "$ac_ct_OBJDUMP" >&6; }
4822 else
4823 { $as_echo "$as_me:$LINENO: result: no" >&5
4824 $as_echo "no" >&6; }
4825 fi
4826
4827 if test "x$ac_ct_OBJDUMP" = x; then
4828 OBJDUMP="false"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831 yes:)
4832 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4835 esac
4836 OBJDUMP=$ac_ct_OBJDUMP
4837 fi
4838 else
4839 OBJDUMP="$ac_cv_prog_OBJDUMP"
4840 fi
4841
4842 test -z "$OBJDUMP" && OBJDUMP=objdump
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4853 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4854 if test "${lt_cv_deplibs_check_method+set}" = set; then
4855 $as_echo_n "(cached) " >&6
4856 else
4857 lt_cv_file_magic_cmd='$MAGIC_CMD'
4858 lt_cv_file_magic_test_file=
4859 lt_cv_deplibs_check_method='unknown'
4860 # Need to set the preceding variable on all platforms that support
4861 # interlibrary dependencies.
4862 # 'none' -- dependencies not supported.
4863 # `unknown' -- same as none, but documents that we really don't know.
4864 # 'pass_all' -- all dependencies passed with no checks.
4865 # 'test_compile' -- check by making test program.
4866 # 'file_magic [[regex]]' -- check by looking for files in library path
4867 # which responds to the $file_magic_cmd with a given extended regex.
4868 # If you have `file' or equivalent on your system and you're not sure
4869 # whether `pass_all' will *always* work, you probably want this one.
4870
4871 case $host_os in
4872 aix[4-9]*)
4873 lt_cv_deplibs_check_method=pass_all
4874 ;;
4875
4876 beos*)
4877 lt_cv_deplibs_check_method=pass_all
4878 ;;
4879
4880 bsdi[45]*)
4881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4882 lt_cv_file_magic_cmd='/usr/bin/file -L'
4883 lt_cv_file_magic_test_file=/shlib/libc.so
4884 ;;
4885
4886 cygwin*)
4887 # func_win32_libid is a shell function defined in ltmain.sh
4888 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4889 lt_cv_file_magic_cmd='func_win32_libid'
4890 ;;
4891
4892 mingw* | pw32*)
4893 # Base MSYS/MinGW do not provide the 'file' command needed by
4894 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4895 # unless we find 'file', for example because we are cross-compiling.
4896 if ( file / ) >/dev/null 2>&1; then
4897 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4898 lt_cv_file_magic_cmd='func_win32_libid'
4899 else
4900 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4901 lt_cv_file_magic_cmd='$OBJDUMP -f'
4902 fi
4903 ;;
4904
4905 cegcc)
4906 # use the weaker test based on 'objdump'. See mingw*.
4907 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4908 lt_cv_file_magic_cmd='$OBJDUMP -f'
4909 ;;
4910
4911 darwin* | rhapsody*)
4912 lt_cv_deplibs_check_method=pass_all
4913 ;;
4914
4915 freebsd* | dragonfly*)
4916 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4917 case $host_cpu in
4918 i*86 )
4919 # Not sure whether the presence of OpenBSD here was a mistake.
4920 # Let's accept both of them until this is cleared up.
4921 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4922 lt_cv_file_magic_cmd=/usr/bin/file
4923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4924 ;;
4925 esac
4926 else
4927 lt_cv_deplibs_check_method=pass_all
4928 fi
4929 ;;
4930
4931 gnu*)
4932 lt_cv_deplibs_check_method=pass_all
4933 ;;
4934
4935 hpux10.20* | hpux11*)
4936 lt_cv_file_magic_cmd=/usr/bin/file
4937 case $host_cpu in
4938 ia64*)
4939 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4940 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4941 ;;
4942 hppa*64*)
4943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4944 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4945 ;;
4946 *)
4947 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4948 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4949 ;;
4950 esac
4951 ;;
4952
4953 interix[3-9]*)
4954 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4956 ;;
4957
4958 irix5* | irix6* | nonstopux*)
4959 case $LD in
4960 *-32|*"-32 ") libmagic=32-bit;;
4961 *-n32|*"-n32 ") libmagic=N32;;
4962 *-64|*"-64 ") libmagic=64-bit;;
4963 *) libmagic=never-match;;
4964 esac
4965 lt_cv_deplibs_check_method=pass_all
4966 ;;
4967
4968 # This must be Linux ELF.
4969 linux* | k*bsd*-gnu)
4970 lt_cv_deplibs_check_method=pass_all
4971 ;;
4972
4973 netbsd* | netbsdelf*-gnu)
4974 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4976 else
4977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4978 fi
4979 ;;
4980
4981 newos6*)
4982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4983 lt_cv_file_magic_cmd=/usr/bin/file
4984 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4985 ;;
4986
4987 *nto* | *qnx*)
4988 lt_cv_deplibs_check_method=pass_all
4989 ;;
4990
4991 openbsd*)
4992 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4994 else
4995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4996 fi
4997 ;;
4998
4999 osf3* | osf4* | osf5*)
5000 lt_cv_deplibs_check_method=pass_all
5001 ;;
5002
5003 rdos*)
5004 lt_cv_deplibs_check_method=pass_all
5005 ;;
5006
5007 solaris*)
5008 lt_cv_deplibs_check_method=pass_all
5009 ;;
5010
5011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5012 lt_cv_deplibs_check_method=pass_all
5013 ;;
5014
5015 sysv4 | sysv4.3*)
5016 case $host_vendor in
5017 motorola)
5018 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]'
5019 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5020 ;;
5021 ncr)
5022 lt_cv_deplibs_check_method=pass_all
5023 ;;
5024 sequent)
5025 lt_cv_file_magic_cmd='/bin/file'
5026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5027 ;;
5028 sni)
5029 lt_cv_file_magic_cmd='/bin/file'
5030 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5031 lt_cv_file_magic_test_file=/lib/libc.so
5032 ;;
5033 siemens)
5034 lt_cv_deplibs_check_method=pass_all
5035 ;;
5036 pc)
5037 lt_cv_deplibs_check_method=pass_all
5038 ;;
5039 esac
5040 ;;
5041
5042 tpf*)
5043 lt_cv_deplibs_check_method=pass_all
5044 ;;
5045 esac
5046
5047 fi
5048 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5049 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5050 file_magic_cmd=$lt_cv_file_magic_cmd
5051 deplibs_check_method=$lt_cv_deplibs_check_method
5052 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 if test -n "$ac_tool_prefix"; then
5066 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5067 set dummy ${ac_tool_prefix}ar; ac_word=$2
5068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if test "${ac_cv_prog_AR+set}" = set; then
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -n "$AR"; then
5074 ac_cv_prog_AR="$AR" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_prog_AR="${ac_tool_prefix}ar"
5084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5086 fi
5087 done
5088 done
5089 IFS=$as_save_IFS
5090
5091 fi
5092 fi
5093 AR=$ac_cv_prog_AR
5094 if test -n "$AR"; then
5095 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5096 $as_echo "$AR" >&6; }
5097 else
5098 { $as_echo "$as_me:$LINENO: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101
5102
5103 fi
5104 if test -z "$ac_cv_prog_AR"; then
5105 ac_ct_AR=$AR
5106 # Extract the first word of "ar", so it can be a program name with args.
5107 set dummy ar; ac_word=$2
5108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$ac_ct_AR"; then
5114 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_prog_ac_ct_AR="ar"
5124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127 done
5128 done
5129 IFS=$as_save_IFS
5130
5131 fi
5132 fi
5133 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5134 if test -n "$ac_ct_AR"; then
5135 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5136 $as_echo "$ac_ct_AR" >&6; }
5137 else
5138 { $as_echo "$as_me:$LINENO: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141
5142 if test "x$ac_ct_AR" = x; then
5143 AR="false"
5144 else
5145 case $cross_compiling:$ac_tool_warned in
5146 yes:)
5147 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149 ac_tool_warned=yes ;;
5150 esac
5151 AR=$ac_ct_AR
5152 fi
5153 else
5154 AR="$ac_cv_prog_AR"
5155 fi
5156
5157 test -z "$AR" && AR=ar
5158 test -z "$AR_FLAGS" && AR_FLAGS=cru
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 if test -n "$ac_tool_prefix"; then
5171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5172 set dummy ${ac_tool_prefix}strip; ac_word=$2
5173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if test "${ac_cv_prog_STRIP+set}" = set; then
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$STRIP"; then
5179 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 fi
5197 fi
5198 STRIP=$ac_cv_prog_STRIP
5199 if test -n "$STRIP"; then
5200 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5201 $as_echo "$STRIP" >&6; }
5202 else
5203 { $as_echo "$as_me:$LINENO: result: no" >&5
5204 $as_echo "no" >&6; }
5205 fi
5206
5207
5208 fi
5209 if test -z "$ac_cv_prog_STRIP"; then
5210 ac_ct_STRIP=$STRIP
5211 # Extract the first word of "strip", so it can be a program name with args.
5212 set dummy strip; ac_word=$2
5213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$ac_ct_STRIP"; then
5219 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_ac_ct_STRIP="strip"
5229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232 done
5233 done
5234 IFS=$as_save_IFS
5235
5236 fi
5237 fi
5238 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5239 if test -n "$ac_ct_STRIP"; then
5240 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5241 $as_echo "$ac_ct_STRIP" >&6; }
5242 else
5243 { $as_echo "$as_me:$LINENO: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246
5247 if test "x$ac_ct_STRIP" = x; then
5248 STRIP=":"
5249 else
5250 case $cross_compiling:$ac_tool_warned in
5251 yes:)
5252 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254 ac_tool_warned=yes ;;
5255 esac
5256 STRIP=$ac_ct_STRIP
5257 fi
5258 else
5259 STRIP="$ac_cv_prog_STRIP"
5260 fi
5261
5262 test -z "$STRIP" && STRIP=:
5263
5264
5265
5266
5267
5268
5269 if test -n "$ac_tool_prefix"; then
5270 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5271 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if test "${ac_cv_prog_RANLIB+set}" = set; then
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -n "$RANLIB"; then
5278 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5290 fi
5291 done
5292 done
5293 IFS=$as_save_IFS
5294
5295 fi
5296 fi
5297 RANLIB=$ac_cv_prog_RANLIB
5298 if test -n "$RANLIB"; then
5299 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5300 $as_echo "$RANLIB" >&6; }
5301 else
5302 { $as_echo "$as_me:$LINENO: result: no" >&5
5303 $as_echo "no" >&6; }
5304 fi
5305
5306
5307 fi
5308 if test -z "$ac_cv_prog_RANLIB"; then
5309 ac_ct_RANLIB=$RANLIB
5310 # Extract the first word of "ranlib", so it can be a program name with args.
5311 set dummy ranlib; ac_word=$2
5312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if test -n "$ac_ct_RANLIB"; then
5318 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_ac_ct_RANLIB="ranlib"
5328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331 done
5332 done
5333 IFS=$as_save_IFS
5334
5335 fi
5336 fi
5337 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5338 if test -n "$ac_ct_RANLIB"; then
5339 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5340 $as_echo "$ac_ct_RANLIB" >&6; }
5341 else
5342 { $as_echo "$as_me:$LINENO: result: no" >&5
5343 $as_echo "no" >&6; }
5344 fi
5345
5346 if test "x$ac_ct_RANLIB" = x; then
5347 RANLIB=":"
5348 else
5349 case $cross_compiling:$ac_tool_warned in
5350 yes:)
5351 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5353 ac_tool_warned=yes ;;
5354 esac
5355 RANLIB=$ac_ct_RANLIB
5356 fi
5357 else
5358 RANLIB="$ac_cv_prog_RANLIB"
5359 fi
5360
5361 test -z "$RANLIB" && RANLIB=:
5362
5363
5364
5365
5366
5367
5368 # Determine commands to create old-style static archives.
5369 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5370 old_postinstall_cmds='chmod 644 $oldlib'
5371 old_postuninstall_cmds=
5372
5373 if test -n "$RANLIB"; then
5374 case $host_os in
5375 openbsd*)
5376 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5377 ;;
5378 *)
5379 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5380 ;;
5381 esac
5382 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5383 fi
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 # If no C compiler was specified, use CC.
5419 LTCC=${LTCC-"$CC"}
5420
5421 # If no C compiler flags were specified, use CFLAGS.
5422 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5423
5424 # Allow CC to be a program name with arguments.
5425 compiler=$CC
5426
5427
5428 # Check for command to grab the raw symbol name followed by C symbol from nm.
5429 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5430 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5431 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5432 $as_echo_n "(cached) " >&6
5433 else
5434
5435 # These are sane defaults that work on at least a few old systems.
5436 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5437
5438 # Character class describing NM global symbol codes.
5439 symcode='[BCDEGRST]'
5440
5441 # Regexp to match symbols that can be accessed directly from C.
5442 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5443
5444 # Define system-specific variables.
5445 case $host_os in
5446 aix*)
5447 symcode='[BCDT]'
5448 ;;
5449 cygwin* | mingw* | pw32* | cegcc*)
5450 symcode='[ABCDGISTW]'
5451 ;;
5452 hpux*)
5453 if test "$host_cpu" = ia64; then
5454 symcode='[ABCDEGRST]'
5455 fi
5456 ;;
5457 irix* | nonstopux*)
5458 symcode='[BCDEGRST]'
5459 ;;
5460 osf*)
5461 symcode='[BCDEGQRST]'
5462 ;;
5463 solaris*)
5464 symcode='[BDRT]'
5465 ;;
5466 sco3.2v5*)
5467 symcode='[DT]'
5468 ;;
5469 sysv4.2uw2*)
5470 symcode='[DT]'
5471 ;;
5472 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5473 symcode='[ABDT]'
5474 ;;
5475 sysv4)
5476 symcode='[DFNSTU]'
5477 ;;
5478 esac
5479
5480 # If we're using GNU nm, then use its standard symbol codes.
5481 case `$NM -V 2>&1` in
5482 *GNU* | *'with BFD'*)
5483 symcode='[ABCDGIRSTW]' ;;
5484 esac
5485
5486 # Transform an extracted symbol line into a proper C declaration.
5487 # Some systems (esp. on ia64) link data and code symbols differently,
5488 # so use this general approach.
5489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5490
5491 # Transform an extracted symbol line into symbol name and symbol address
5492 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5493 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5494
5495 # Handle CRLF in mingw tool chain
5496 opt_cr=
5497 case $build_os in
5498 mingw*)
5499 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5500 ;;
5501 esac
5502
5503 # Try without a prefix underscore, then with it.
5504 for ac_symprfx in "" "_"; do
5505
5506 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5507 symxfrm="\\1 $ac_symprfx\\2 \\2"
5508
5509 # Write the raw and C identifiers.
5510 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5511 # Fake it for dumpbin and say T for any non-static function
5512 # and D for any global variable.
5513 # Also find C++ and __fastcall symbols from MSVC++,
5514 # which start with @ or ?.
5515 lt_cv_sys_global_symbol_pipe="$AWK '"\
5516 " {last_section=section; section=\$ 3};"\
5517 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5518 " \$ 0!~/External *\|/{next};"\
5519 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5520 " {if(hide[section]) next};"\
5521 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5522 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5523 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5524 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5525 " ' prfx=^$ac_symprfx"
5526 else
5527 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5528 fi
5529
5530 # Check to see that the pipe works correctly.
5531 pipe_works=no
5532
5533 rm -f conftest*
5534 cat > conftest.$ac_ext <<_LT_EOF
5535 #ifdef __cplusplus
5536 extern "C" {
5537 #endif
5538 char nm_test_var;
5539 void nm_test_func(void);
5540 void nm_test_func(void){}
5541 #ifdef __cplusplus
5542 }
5543 #endif
5544 int main(){nm_test_var='a';nm_test_func();return(0);}
5545 _LT_EOF
5546
5547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5548 (eval $ac_compile) 2>&5
5549 ac_status=$?
5550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; then
5552 # Now try to grab the symbols.
5553 nlist=conftest.nm
5554 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5555 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5556 ac_status=$?
5557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } && test -s "$nlist"; then
5559 # Try sorting and uniquifying the output.
5560 if sort "$nlist" | uniq > "$nlist"T; then
5561 mv -f "$nlist"T "$nlist"
5562 else
5563 rm -f "$nlist"T
5564 fi
5565
5566 # Make sure that we snagged all the symbols we need.
5567 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5568 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5569 cat <<_LT_EOF > conftest.$ac_ext
5570 #ifdef __cplusplus
5571 extern "C" {
5572 #endif
5573
5574 _LT_EOF
5575 # Now generate the symbol file.
5576 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5577
5578 cat <<_LT_EOF >> conftest.$ac_ext
5579
5580 /* The mapping between symbol names and symbols. */
5581 const struct {
5582 const char *name;
5583 void *address;
5584 }
5585 lt__PROGRAM__LTX_preloaded_symbols[] =
5586 {
5587 { "@PROGRAM@", (void *) 0 },
5588 _LT_EOF
5589 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5590 cat <<\_LT_EOF >> conftest.$ac_ext
5591 {0, (void *) 0}
5592 };
5593
5594 /* This works around a problem in FreeBSD linker */
5595 #ifdef FREEBSD_WORKAROUND
5596 static const void *lt_preloaded_setup() {
5597 return lt__PROGRAM__LTX_preloaded_symbols;
5598 }
5599 #endif
5600
5601 #ifdef __cplusplus
5602 }
5603 #endif
5604 _LT_EOF
5605 # Now try linking the two files.
5606 mv conftest.$ac_objext conftstm.$ac_objext
5607 lt_save_LIBS="$LIBS"
5608 lt_save_CFLAGS="$CFLAGS"
5609 LIBS="conftstm.$ac_objext"
5610 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5613 ac_status=$?
5614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5616 pipe_works=yes
5617 fi
5618 LIBS="$lt_save_LIBS"
5619 CFLAGS="$lt_save_CFLAGS"
5620 else
5621 echo "cannot find nm_test_func in $nlist" >&5
5622 fi
5623 else
5624 echo "cannot find nm_test_var in $nlist" >&5
5625 fi
5626 else
5627 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5628 fi
5629 else
5630 echo "$progname: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5632 fi
5633 rm -rf conftest* conftst*
5634
5635 # Do not use the global_symbol_pipe unless it works.
5636 if test "$pipe_works" = yes; then
5637 break
5638 else
5639 lt_cv_sys_global_symbol_pipe=
5640 fi
5641 done
5642
5643 fi
5644
5645 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5646 lt_cv_sys_global_symbol_to_cdecl=
5647 fi
5648 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5649 { $as_echo "$as_me:$LINENO: result: failed" >&5
5650 $as_echo "failed" >&6; }
5651 else
5652 { $as_echo "$as_me:$LINENO: result: ok" >&5
5653 $as_echo "ok" >&6; }
5654 fi
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678 # Check whether --enable-libtool-lock was given.
5679 if test "${enable_libtool_lock+set}" = set; then
5680 enableval=$enable_libtool_lock;
5681 fi
5682
5683 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5684
5685 # Some flags need to be propagated to the compiler or linker for good
5686 # libtool support.
5687 case $host in
5688 ia64-*-hpux*)
5689 # Find out which ABI we are using.
5690 echo 'int i;' > conftest.$ac_ext
5691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692 (eval $ac_compile) 2>&5
5693 ac_status=$?
5694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; then
5696 case `/usr/bin/file conftest.$ac_objext` in
5697 *ELF-32*)
5698 HPUX_IA64_MODE="32"
5699 ;;
5700 *ELF-64*)
5701 HPUX_IA64_MODE="64"
5702 ;;
5703 esac
5704 fi
5705 rm -rf conftest*
5706 ;;
5707 *-*-irix6*)
5708 # Find out which ABI we are using.
5709 echo '#line 5710 "configure"' > conftest.$ac_ext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711 (eval $ac_compile) 2>&5
5712 ac_status=$?
5713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; then
5715 if test "$lt_cv_prog_gnu_ld" = yes; then
5716 case `/usr/bin/file conftest.$ac_objext` in
5717 *32-bit*)
5718 LD="${LD-ld} -melf32bsmip"
5719 ;;
5720 *N32*)
5721 LD="${LD-ld} -melf32bmipn32"
5722 ;;
5723 *64-bit*)
5724 LD="${LD-ld} -melf64bmip"
5725 ;;
5726 esac
5727 else
5728 case `/usr/bin/file conftest.$ac_objext` in
5729 *32-bit*)
5730 LD="${LD-ld} -32"
5731 ;;
5732 *N32*)
5733 LD="${LD-ld} -n32"
5734 ;;
5735 *64-bit*)
5736 LD="${LD-ld} -64"
5737 ;;
5738 esac
5739 fi
5740 fi
5741 rm -rf conftest*
5742 ;;
5743
5744 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5745 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5746 # Find out which ABI we are using.
5747 echo 'int i;' > conftest.$ac_ext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>&5
5750 ac_status=$?
5751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; then
5753 case `/usr/bin/file conftest.o` in
5754 *32-bit*)
5755 case $host in
5756 x86_64-*kfreebsd*-gnu)
5757 LD="${LD-ld} -m elf_i386_fbsd"
5758 ;;
5759 x86_64-*linux*)
5760 LD="${LD-ld} -m elf_i386"
5761 ;;
5762 ppc64-*linux*|powerpc64-*linux*)
5763 LD="${LD-ld} -m elf32ppclinux"
5764 ;;
5765 s390x-*linux*)
5766 LD="${LD-ld} -m elf_s390"
5767 ;;
5768 sparc64-*linux*)
5769 LD="${LD-ld} -m elf32_sparc"
5770 ;;
5771 esac
5772 ;;
5773 *64-bit*)
5774 case $host in
5775 x86_64-*kfreebsd*-gnu)
5776 LD="${LD-ld} -m elf_x86_64_fbsd"
5777 ;;
5778 x86_64-*linux*)
5779 LD="${LD-ld} -m elf_x86_64"
5780 ;;
5781 ppc*-*linux*|powerpc*-*linux*)
5782 LD="${LD-ld} -m elf64ppc"
5783 ;;
5784 s390*-*linux*|s390*-*tpf*)
5785 LD="${LD-ld} -m elf64_s390"
5786 ;;
5787 sparc*-*linux*)
5788 LD="${LD-ld} -m elf64_sparc"
5789 ;;
5790 esac
5791 ;;
5792 esac
5793 fi
5794 rm -rf conftest*
5795 ;;
5796
5797 *-*-sco3.2v5*)
5798 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5799 SAVE_CFLAGS="$CFLAGS"
5800 CFLAGS="$CFLAGS -belf"
5801 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5802 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5803 if test "${lt_cv_cc_needs_belf+set}" = set; then
5804 $as_echo_n "(cached) " >&6
5805 else
5806 ac_ext=c
5807 ac_cpp='$CPP $CPPFLAGS'
5808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818
5819 int
5820 main ()
5821 {
5822
5823 ;
5824 return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (ac_try="$ac_link"
5829 case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5834 $as_echo "$ac_try_echo") >&5
5835 (eval "$ac_link") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest$ac_exeext && {
5845 test "$cross_compiling" = yes ||
5846 $as_test_x conftest$ac_exeext
5847 }; then
5848 lt_cv_cc_needs_belf=yes
5849 else
5850 $as_echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 lt_cv_cc_needs_belf=no
5854 fi
5855
5856 rm -rf conftest.dSYM
5857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5858 conftest$ac_exeext conftest.$ac_ext
5859 ac_ext=c
5860 ac_cpp='$CPP $CPPFLAGS'
5861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5864
5865 fi
5866 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5867 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5868 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5869 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5870 CFLAGS="$SAVE_CFLAGS"
5871 fi
5872 ;;
5873 sparc*-*solaris*)
5874 # Find out which ABI we are using.
5875 echo 'int i;' > conftest.$ac_ext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>&5
5878 ac_status=$?
5879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; then
5881 case `/usr/bin/file conftest.o` in
5882 *64-bit*)
5883 case $lt_cv_prog_gnu_ld in
5884 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5885 *)
5886 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5887 LD="${LD-ld} -64"
5888 fi
5889 ;;
5890 esac
5891 ;;
5892 esac
5893 fi
5894 rm -rf conftest*
5895 ;;
5896 esac
5897
5898 need_locks="$enable_libtool_lock"
5899
5900
5901 case $host_os in
5902 rhapsody* | darwin*)
5903 if test -n "$ac_tool_prefix"; then
5904 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5905 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -n "$DSYMUTIL"; then
5912 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5932 if test -n "$DSYMUTIL"; then
5933 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5934 $as_echo "$DSYMUTIL" >&6; }
5935 else
5936 { $as_echo "$as_me:$LINENO: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939
5940
5941 fi
5942 if test -z "$ac_cv_prog_DSYMUTIL"; then
5943 ac_ct_DSYMUTIL=$DSYMUTIL
5944 # Extract the first word of "dsymutil", so it can be a program name with args.
5945 set dummy dsymutil; ac_word=$2
5946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test -n "$ac_ct_DSYMUTIL"; then
5952 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969 fi
5970 fi
5971 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5972 if test -n "$ac_ct_DSYMUTIL"; then
5973 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5974 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5975 else
5976 { $as_echo "$as_me:$LINENO: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979
5980 if test "x$ac_ct_DSYMUTIL" = x; then
5981 DSYMUTIL=":"
5982 else
5983 case $cross_compiling:$ac_tool_warned in
5984 yes:)
5985 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5987 ac_tool_warned=yes ;;
5988 esac
5989 DSYMUTIL=$ac_ct_DSYMUTIL
5990 fi
5991 else
5992 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5993 fi
5994
5995 if test -n "$ac_tool_prefix"; then
5996 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5997 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if test -n "$NMEDIT"; then
6004 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6014 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 NMEDIT=$ac_cv_prog_NMEDIT
6024 if test -n "$NMEDIT"; then
6025 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6026 $as_echo "$NMEDIT" >&6; }
6027 else
6028 { $as_echo "$as_me:$LINENO: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032
6033 fi
6034 if test -z "$ac_cv_prog_NMEDIT"; then
6035 ac_ct_NMEDIT=$NMEDIT
6036 # Extract the first word of "nmedit", so it can be a program name with args.
6037 set dummy nmedit; ac_word=$2
6038 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$ac_ct_NMEDIT"; then
6044 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6056 fi
6057 done
6058 done
6059 IFS=$as_save_IFS
6060
6061 fi
6062 fi
6063 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6064 if test -n "$ac_ct_NMEDIT"; then
6065 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6066 $as_echo "$ac_ct_NMEDIT" >&6; }
6067 else
6068 { $as_echo "$as_me:$LINENO: result: no" >&5
6069 $as_echo "no" >&6; }
6070 fi
6071
6072 if test "x$ac_ct_NMEDIT" = x; then
6073 NMEDIT=":"
6074 else
6075 case $cross_compiling:$ac_tool_warned in
6076 yes:)
6077 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079 ac_tool_warned=yes ;;
6080 esac
6081 NMEDIT=$ac_ct_NMEDIT
6082 fi
6083 else
6084 NMEDIT="$ac_cv_prog_NMEDIT"
6085 fi
6086
6087 if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if test "${ac_cv_prog_LIPO+set}" = set; then
6093 $as_echo_n "(cached) " >&6
6094 else
6095 if test -n "$LIPO"; then
6096 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 LIPO=$ac_cv_prog_LIPO
6116 if test -n "$LIPO"; then
6117 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6118 $as_echo "$LIPO" >&6; }
6119 else
6120 { $as_echo "$as_me:$LINENO: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124
6125 fi
6126 if test -z "$ac_cv_prog_LIPO"; then
6127 ac_ct_LIPO=$LIPO
6128 # Extract the first word of "lipo", so it can be a program name with args.
6129 set dummy lipo; ac_word=$2
6130 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test -n "$ac_ct_LIPO"; then
6136 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_prog_ac_ct_LIPO="lipo"
6146 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6156 if test -n "$ac_ct_LIPO"; then
6157 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6158 $as_echo "$ac_ct_LIPO" >&6; }
6159 else
6160 { $as_echo "$as_me:$LINENO: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164 if test "x$ac_ct_LIPO" = x; then
6165 LIPO=":"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173 LIPO=$ac_ct_LIPO
6174 fi
6175 else
6176 LIPO="$ac_cv_prog_LIPO"
6177 fi
6178
6179 if test -n "$ac_tool_prefix"; then
6180 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6181 set dummy ${ac_tool_prefix}otool; ac_word=$2
6182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if test "${ac_cv_prog_OTOOL+set}" = set; then
6185 $as_echo_n "(cached) " >&6
6186 else
6187 if test -n "$OTOOL"; then
6188 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 OTOOL=$ac_cv_prog_OTOOL
6208 if test -n "$OTOOL"; then
6209 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6210 $as_echo "$OTOOL" >&6; }
6211 else
6212 { $as_echo "$as_me:$LINENO: result: no" >&5
6213 $as_echo "no" >&6; }
6214 fi
6215
6216
6217 fi
6218 if test -z "$ac_cv_prog_OTOOL"; then
6219 ac_ct_OTOOL=$OTOOL
6220 # Extract the first word of "otool", so it can be a program name with args.
6221 set dummy otool; ac_word=$2
6222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 $as_echo_n "checking for $ac_word... " >&6; }
6224 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6225 $as_echo_n "(cached) " >&6
6226 else
6227 if test -n "$ac_ct_OTOOL"; then
6228 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_ac_ct_OTOOL="otool"
6238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241 done
6242 done
6243 IFS=$as_save_IFS
6244
6245 fi
6246 fi
6247 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6248 if test -n "$ac_ct_OTOOL"; then
6249 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6250 $as_echo "$ac_ct_OTOOL" >&6; }
6251 else
6252 { $as_echo "$as_me:$LINENO: result: no" >&5
6253 $as_echo "no" >&6; }
6254 fi
6255
6256 if test "x$ac_ct_OTOOL" = x; then
6257 OTOOL=":"
6258 else
6259 case $cross_compiling:$ac_tool_warned in
6260 yes:)
6261 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6263 ac_tool_warned=yes ;;
6264 esac
6265 OTOOL=$ac_ct_OTOOL
6266 fi
6267 else
6268 OTOOL="$ac_cv_prog_OTOOL"
6269 fi
6270
6271 if test -n "$ac_tool_prefix"; then
6272 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6273 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6274 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6277 $as_echo_n "(cached) " >&6
6278 else
6279 if test -n "$OTOOL64"; then
6280 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6290 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6292 fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297 fi
6298 fi
6299 OTOOL64=$ac_cv_prog_OTOOL64
6300 if test -n "$OTOOL64"; then
6301 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6302 $as_echo "$OTOOL64" >&6; }
6303 else
6304 { $as_echo "$as_me:$LINENO: result: no" >&5
6305 $as_echo "no" >&6; }
6306 fi
6307
6308
6309 fi
6310 if test -z "$ac_cv_prog_OTOOL64"; then
6311 ac_ct_OTOOL64=$OTOOL64
6312 # Extract the first word of "otool64", so it can be a program name with args.
6313 set dummy otool64; ac_word=$2
6314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6317 $as_echo_n "(cached) " >&6
6318 else
6319 if test -n "$ac_ct_OTOOL64"; then
6320 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_ac_ct_OTOOL64="otool64"
6330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333 done
6334 done
6335 IFS=$as_save_IFS
6336
6337 fi
6338 fi
6339 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6340 if test -n "$ac_ct_OTOOL64"; then
6341 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6342 $as_echo "$ac_ct_OTOOL64" >&6; }
6343 else
6344 { $as_echo "$as_me:$LINENO: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347
6348 if test "x$ac_ct_OTOOL64" = x; then
6349 OTOOL64=":"
6350 else
6351 case $cross_compiling:$ac_tool_warned in
6352 yes:)
6353 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355 ac_tool_warned=yes ;;
6356 esac
6357 OTOOL64=$ac_ct_OTOOL64
6358 fi
6359 else
6360 OTOOL64="$ac_cv_prog_OTOOL64"
6361 fi
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6390 $as_echo_n "checking for -single_module linker flag... " >&6; }
6391 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6392 $as_echo_n "(cached) " >&6
6393 else
6394 lt_cv_apple_cc_single_mod=no
6395 if test -z "${LT_MULTI_MODULE}"; then
6396 # By default we will add the -single_module flag. You can override
6397 # by either setting the environment variable LT_MULTI_MODULE
6398 # non-empty at configure time, or by adding -multi_module to the
6399 # link flags.
6400 rm -rf libconftest.dylib*
6401 echo "int foo(void){return 1;}" > conftest.c
6402 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6403 -dynamiclib -Wl,-single_module conftest.c" >&5
6404 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6405 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6406 _lt_result=$?
6407 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6408 lt_cv_apple_cc_single_mod=yes
6409 else
6410 cat conftest.err >&5
6411 fi
6412 rm -rf libconftest.dylib*
6413 rm -f conftest.*
6414 fi
6415 fi
6416 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6417 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6418 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6419 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6420 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6421 $as_echo_n "(cached) " >&6
6422 else
6423 lt_cv_ld_exported_symbols_list=no
6424 save_LDFLAGS=$LDFLAGS
6425 echo "_main" > conftest.sym
6426 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6427 cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h. */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6433
6434 int
6435 main ()
6436 {
6437
6438 ;
6439 return 0;
6440 }
6441 _ACEOF
6442 rm -f conftest.$ac_objext conftest$ac_exeext
6443 if { (ac_try="$ac_link"
6444 case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447 esac
6448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6449 $as_echo "$ac_try_echo") >&5
6450 (eval "$ac_link") 2>conftest.er1
6451 ac_status=$?
6452 grep -v '^ *+' conftest.er1 >conftest.err
6453 rm -f conftest.er1
6454 cat conftest.err >&5
6455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } && {
6457 test -z "$ac_c_werror_flag" ||
6458 test ! -s conftest.err
6459 } && test -s conftest$ac_exeext && {
6460 test "$cross_compiling" = yes ||
6461 $as_test_x conftest$ac_exeext
6462 }; then
6463 lt_cv_ld_exported_symbols_list=yes
6464 else
6465 $as_echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 lt_cv_ld_exported_symbols_list=no
6469 fi
6470
6471 rm -rf conftest.dSYM
6472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6473 conftest$ac_exeext conftest.$ac_ext
6474 LDFLAGS="$save_LDFLAGS"
6475
6476 fi
6477 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6478 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6479 case $host_os in
6480 rhapsody* | darwin1.[012])
6481 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6482 darwin1.*)
6483 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6484 darwin*) # darwin 5.x on
6485 # if running on 10.5 or later, the deployment target defaults
6486 # to the OS version, if on x86, and 10.4, the deployment
6487 # target defaults to 10.4. Don't you love it?
6488 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6489 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6490 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6491 10.[012]*)
6492 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6493 10.*)
6494 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6495 esac
6496 ;;
6497 esac
6498 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6499 _lt_dar_single_mod='$single_module'
6500 fi
6501 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6502 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6503 else
6504 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6505 fi
6506 if test "$DSYMUTIL" != ":"; then
6507 _lt_dsymutil='~$DSYMUTIL $lib || :'
6508 else
6509 _lt_dsymutil=
6510 fi
6511 ;;
6512 esac
6513
6514 ac_ext=c
6515 ac_cpp='$CPP $CPPFLAGS'
6516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6519 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6520 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6521 # On Suns, sometimes $CPP names a directory.
6522 if test -n "$CPP" && test -d "$CPP"; then
6523 CPP=
6524 fi
6525 if test -z "$CPP"; then
6526 if test "${ac_cv_prog_CPP+set}" = set; then
6527 $as_echo_n "(cached) " >&6
6528 else
6529 # Double quotes because CPP needs to be expanded
6530 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6531 do
6532 ac_preproc_ok=false
6533 for ac_c_preproc_warn_flag in '' yes
6534 do
6535 # Use a header file that comes with gcc, so configuring glibc
6536 # with a fresh cross-compiler works.
6537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6538 # <limits.h> exists even on freestanding compilers.
6539 # On the NeXT, cc -E runs the code through the compiler's parser,
6540 # not just through cpp. "Syntax error" is here to catch this case.
6541 cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h. */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 #ifdef __STDC__
6548 # include <limits.h>
6549 #else
6550 # include <assert.h>
6551 #endif
6552 Syntax error
6553 _ACEOF
6554 if { (ac_try="$ac_cpp conftest.$ac_ext"
6555 case "(($ac_try" in
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6558 esac
6559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6560 $as_echo "$ac_try_echo") >&5
6561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6562 ac_status=$?
6563 grep -v '^ *+' conftest.er1 >conftest.err
6564 rm -f conftest.er1
6565 cat conftest.err >&5
6566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } >/dev/null && {
6568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6569 test ! -s conftest.err
6570 }; then
6571 :
6572 else
6573 $as_echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6575
6576 # Broken: fails on valid input.
6577 continue
6578 fi
6579
6580 rm -f conftest.err conftest.$ac_ext
6581
6582 # OK, works on sane cases. Now check whether nonexistent headers
6583 # can be detected and how.
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <ac_nonexistent.h>
6591 _ACEOF
6592 if { (ac_try="$ac_cpp conftest.$ac_ext"
6593 case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596 esac
6597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6598 $as_echo "$ac_try_echo") >&5
6599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } >/dev/null && {
6606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 }; then
6609 # Broken: success on invalid input.
6610 continue
6611 else
6612 $as_echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6614
6615 # Passes both tests.
6616 ac_preproc_ok=:
6617 break
6618 fi
6619
6620 rm -f conftest.err conftest.$ac_ext
6621
6622 done
6623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6624 rm -f conftest.err conftest.$ac_ext
6625 if $ac_preproc_ok; then
6626 break
6627 fi
6628
6629 done
6630 ac_cv_prog_CPP=$CPP
6631
6632 fi
6633 CPP=$ac_cv_prog_CPP
6634 else
6635 ac_cv_prog_CPP=$CPP
6636 fi
6637 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6638 $as_echo "$CPP" >&6; }
6639 ac_preproc_ok=false
6640 for ac_c_preproc_warn_flag in '' yes
6641 do
6642 # Use a header file that comes with gcc, so configuring glibc
6643 # with a fresh cross-compiler works.
6644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6645 # <limits.h> exists even on freestanding compilers.
6646 # On the NeXT, cc -E runs the code through the compiler's parser,
6647 # not just through cpp. "Syntax error" is here to catch this case.
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 #ifdef __STDC__
6655 # include <limits.h>
6656 #else
6657 # include <assert.h>
6658 #endif
6659 Syntax error
6660 _ACEOF
6661 if { (ac_try="$ac_cpp conftest.$ac_ext"
6662 case "(($ac_try" in
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6665 esac
6666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6667 $as_echo "$ac_try_echo") >&5
6668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } >/dev/null && {
6675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 }; then
6678 :
6679 else
6680 $as_echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6682
6683 # Broken: fails on valid input.
6684 continue
6685 fi
6686
6687 rm -f conftest.err conftest.$ac_ext
6688
6689 # OK, works on sane cases. Now check whether nonexistent headers
6690 # can be detected and how.
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 #include <ac_nonexistent.h>
6698 _ACEOF
6699 if { (ac_try="$ac_cpp conftest.$ac_ext"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705 $as_echo "$ac_try_echo") >&5
6706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } >/dev/null && {
6713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 }; then
6716 # Broken: success on invalid input.
6717 continue
6718 else
6719 $as_echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6721
6722 # Passes both tests.
6723 ac_preproc_ok=:
6724 break
6725 fi
6726
6727 rm -f conftest.err conftest.$ac_ext
6728
6729 done
6730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6731 rm -f conftest.err conftest.$ac_ext
6732 if $ac_preproc_ok; then
6733 :
6734 else
6735 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6737 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6738 See \`config.log' for more details." >&5
6739 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6740 See \`config.log' for more details." >&2;}
6741 { (exit 1); exit 1; }; }; }
6742 fi
6743
6744 ac_ext=c
6745 ac_cpp='$CPP $CPPFLAGS'
6746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6749
6750
6751 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6752 $as_echo_n "checking for ANSI C header files... " >&6; }
6753 if test "${ac_cv_header_stdc+set}" = set; then
6754 $as_echo_n "(cached) " >&6
6755 else
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h. */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 #include <stdlib.h>
6763 #include <stdarg.h>
6764 #include <string.h>
6765 #include <float.h>
6766
6767 int
6768 main ()
6769 {
6770
6771 ;
6772 return 0;
6773 }
6774 _ACEOF
6775 rm -f conftest.$ac_objext
6776 if { (ac_try="$ac_compile"
6777 case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780 esac
6781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6782 $as_echo "$ac_try_echo") >&5
6783 (eval "$ac_compile") 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest.$ac_objext; then
6793 ac_cv_header_stdc=yes
6794 else
6795 $as_echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6797
6798 ac_cv_header_stdc=no
6799 fi
6800
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802
6803 if test $ac_cv_header_stdc = yes; then
6804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h. */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 #include <string.h>
6812
6813 _ACEOF
6814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6815 $EGREP "memchr" >/dev/null 2>&1; then
6816 :
6817 else
6818 ac_cv_header_stdc=no
6819 fi
6820 rm -f conftest*
6821
6822 fi
6823
6824 if test $ac_cv_header_stdc = yes; then
6825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #include <stdlib.h>
6833
6834 _ACEOF
6835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6836 $EGREP "free" >/dev/null 2>&1; then
6837 :
6838 else
6839 ac_cv_header_stdc=no
6840 fi
6841 rm -f conftest*
6842
6843 fi
6844
6845 if test $ac_cv_header_stdc = yes; then
6846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6847 if test "$cross_compiling" = yes; then
6848 :
6849 else
6850 cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h. */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 #include <ctype.h>
6857 #include <stdlib.h>
6858 #if ((' ' & 0x0FF) == 0x020)
6859 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6860 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6861 #else
6862 # define ISLOWER(c) \
6863 (('a' <= (c) && (c) <= 'i') \
6864 || ('j' <= (c) && (c) <= 'r') \
6865 || ('s' <= (c) && (c) <= 'z'))
6866 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6867 #endif
6868
6869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6870 int
6871 main ()
6872 {
6873 int i;
6874 for (i = 0; i < 256; i++)
6875 if (XOR (islower (i), ISLOWER (i))
6876 || toupper (i) != TOUPPER (i))
6877 return 2;
6878 return 0;
6879 }
6880 _ACEOF
6881 rm -f conftest$ac_exeext
6882 if { (ac_try="$ac_link"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889 (eval "$ac_link") 2>&5
6890 ac_status=$?
6891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6893 { (case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896 esac
6897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898 $as_echo "$ac_try_echo") >&5
6899 (eval "$ac_try") 2>&5
6900 ac_status=$?
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 :
6904 else
6905 $as_echo "$as_me: program exited with status $ac_status" >&5
6906 $as_echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6908
6909 ( exit $ac_status )
6910 ac_cv_header_stdc=no
6911 fi
6912 rm -rf conftest.dSYM
6913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6914 fi
6915
6916
6917 fi
6918 fi
6919 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6920 $as_echo "$ac_cv_header_stdc" >&6; }
6921 if test $ac_cv_header_stdc = yes; then
6922
6923 cat >>confdefs.h <<\_ACEOF
6924 #define STDC_HEADERS 1
6925 _ACEOF
6926
6927 fi
6928
6929 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6940 inttypes.h stdint.h unistd.h
6941 do
6942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6944 $as_echo_n "checking for $ac_header... " >&6; }
6945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6946 $as_echo_n "(cached) " >&6
6947 else
6948 cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h. */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6954 $ac_includes_default
6955
6956 #include <$ac_header>
6957 _ACEOF
6958 rm -f conftest.$ac_objext
6959 if { (ac_try="$ac_compile"
6960 case "(($ac_try" in
6961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962 *) ac_try_echo=$ac_try;;
6963 esac
6964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6965 $as_echo "$ac_try_echo") >&5
6966 (eval "$ac_compile") 2>conftest.er1
6967 ac_status=$?
6968 grep -v '^ *+' conftest.er1 >conftest.err
6969 rm -f conftest.er1
6970 cat conftest.err >&5
6971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } && {
6973 test -z "$ac_c_werror_flag" ||
6974 test ! -s conftest.err
6975 } && test -s conftest.$ac_objext; then
6976 eval "$as_ac_Header=yes"
6977 else
6978 $as_echo "$as_me: failed program was:" >&5
6979 sed 's/^/| /' conftest.$ac_ext >&5
6980
6981 eval "$as_ac_Header=no"
6982 fi
6983
6984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 fi
6986 ac_res=`eval 'as_val=${'$as_ac_Header'}
6987 $as_echo "$as_val"'`
6988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6989 $as_echo "$ac_res" >&6; }
6990 as_val=`eval 'as_val=${'$as_ac_Header'}
6991 $as_echo "$as_val"'`
6992 if test "x$as_val" = x""yes; then
6993 cat >>confdefs.h <<_ACEOF
6994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6995 _ACEOF
6996
6997 fi
6998
6999 done
7000
7001
7002
7003 for ac_header in dlfcn.h
7004 do
7005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7006 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7007 $as_echo_n "checking for $ac_header... " >&6; }
7008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7009 $as_echo_n "(cached) " >&6
7010 else
7011 cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h. */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 $ac_includes_default
7018
7019 #include <$ac_header>
7020 _ACEOF
7021 rm -f conftest.$ac_objext
7022 if { (ac_try="$ac_compile"
7023 case "(($ac_try" in
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7026 esac
7027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7028 $as_echo "$ac_try_echo") >&5
7029 (eval "$ac_compile") 2>conftest.er1
7030 ac_status=$?
7031 grep -v '^ *+' conftest.er1 >conftest.err
7032 rm -f conftest.er1
7033 cat conftest.err >&5
7034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } && {
7036 test -z "$ac_c_werror_flag" ||
7037 test ! -s conftest.err
7038 } && test -s conftest.$ac_objext; then
7039 eval "$as_ac_Header=yes"
7040 else
7041 $as_echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7043
7044 eval "$as_ac_Header=no"
7045 fi
7046
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048 fi
7049 ac_res=`eval 'as_val=${'$as_ac_Header'}
7050 $as_echo "$as_val"'`
7051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7052 $as_echo "$ac_res" >&6; }
7053 as_val=`eval 'as_val=${'$as_ac_Header'}
7054 $as_echo "$as_val"'`
7055 if test "x$as_val" = x""yes; then
7056 cat >>confdefs.h <<_ACEOF
7057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7058 _ACEOF
7059
7060 fi
7061
7062 done
7063
7064
7065
7066 # Set options
7067
7068
7069
7070 enable_dlopen=no
7071
7072
7073 enable_win32_dll=no
7074
7075
7076 # Check whether --enable-shared was given.
7077 if test "${enable_shared+set}" = set; then
7078 enableval=$enable_shared; p=${PACKAGE-default}
7079 case $enableval in
7080 yes) enable_shared=yes ;;
7081 no) enable_shared=no ;;
7082 *)
7083 enable_shared=no
7084 # Look at the argument we got. We use all the common list separators.
7085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7086 for pkg in $enableval; do
7087 IFS="$lt_save_ifs"
7088 if test "X$pkg" = "X$p"; then
7089 enable_shared=yes
7090 fi
7091 done
7092 IFS="$lt_save_ifs"
7093 ;;
7094 esac
7095 else
7096 enable_shared=yes
7097 fi
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107 # Check whether --enable-static was given.
7108 if test "${enable_static+set}" = set; then
7109 enableval=$enable_static; p=${PACKAGE-default}
7110 case $enableval in
7111 yes) enable_static=yes ;;
7112 no) enable_static=no ;;
7113 *)
7114 enable_static=no
7115 # Look at the argument we got. We use all the common list separators.
7116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7117 for pkg in $enableval; do
7118 IFS="$lt_save_ifs"
7119 if test "X$pkg" = "X$p"; then
7120 enable_static=yes
7121 fi
7122 done
7123 IFS="$lt_save_ifs"
7124 ;;
7125 esac
7126 else
7127 enable_static=yes
7128 fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139 # Check whether --with-pic was given.
7140 if test "${with_pic+set}" = set; then
7141 withval=$with_pic; pic_mode="$withval"
7142 else
7143 pic_mode=default
7144 fi
7145
7146
7147 test -z "$pic_mode" && pic_mode=default
7148
7149
7150
7151
7152
7153
7154
7155 # Check whether --enable-fast-install was given.
7156 if test "${enable_fast_install+set}" = set; then
7157 enableval=$enable_fast_install; p=${PACKAGE-default}
7158 case $enableval in
7159 yes) enable_fast_install=yes ;;
7160 no) enable_fast_install=no ;;
7161 *)
7162 enable_fast_install=no
7163 # Look at the argument we got. We use all the common list separators.
7164 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7165 for pkg in $enableval; do
7166 IFS="$lt_save_ifs"
7167 if test "X$pkg" = "X$p"; then
7168 enable_fast_install=yes
7169 fi
7170 done
7171 IFS="$lt_save_ifs"
7172 ;;
7173 esac
7174 else
7175 enable_fast_install=yes
7176 fi
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188 # This can be used to rebuild libtool when needed
7189 LIBTOOL_DEPS="$ltmain"
7190
7191 # Always use our own libtool.
7192 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 test -z "$LN_S" && LN_S="ln -s"
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233 if test -n "${ZSH_VERSION+set}" ; then
7234 setopt NO_GLOB_SUBST
7235 fi
7236
7237 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7238 $as_echo_n "checking for objdir... " >&6; }
7239 if test "${lt_cv_objdir+set}" = set; then
7240 $as_echo_n "(cached) " >&6
7241 else
7242 rm -f .libs 2>/dev/null
7243 mkdir .libs 2>/dev/null
7244 if test -d .libs; then
7245 lt_cv_objdir=.libs
7246 else
7247 # MS-DOS does not allow filenames that begin with a dot.
7248 lt_cv_objdir=_libs
7249 fi
7250 rmdir .libs 2>/dev/null
7251 fi
7252 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7253 $as_echo "$lt_cv_objdir" >&6; }
7254 objdir=$lt_cv_objdir
7255
7256
7257
7258
7259
7260 cat >>confdefs.h <<_ACEOF
7261 #define LT_OBJDIR "$lt_cv_objdir/"
7262 _ACEOF
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280 case $host_os in
7281 aix3*)
7282 # AIX sometimes has problems with the GCC collect2 program. For some
7283 # reason, if we set the COLLECT_NAMES environment variable, the problems
7284 # vanish in a puff of smoke.
7285 if test "X${COLLECT_NAMES+set}" != Xset; then
7286 COLLECT_NAMES=
7287 export COLLECT_NAMES
7288 fi
7289 ;;
7290 esac
7291
7292 # Sed substitution that helps us do robust quoting. It backslashifies
7293 # metacharacters that are still active within double-quoted strings.
7294 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7295
7296 # Same as above, but do not quote variable references.
7297 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7298
7299 # Sed substitution to delay expansion of an escaped shell variable in a
7300 # double_quote_subst'ed string.
7301 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7302
7303 # Sed substitution to delay expansion of an escaped single quote.
7304 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7305
7306 # Sed substitution to avoid accidental globbing in evaled expressions
7307 no_glob_subst='s/\*/\\\*/g'
7308
7309 # Global variables:
7310 ofile=libtool
7311 can_build_shared=yes
7312
7313 # All known linkers require a `.a' archive for static linking (except MSVC,
7314 # which needs '.lib').
7315 libext=a
7316
7317 with_gnu_ld="$lt_cv_prog_gnu_ld"
7318
7319 old_CC="$CC"
7320 old_CFLAGS="$CFLAGS"
7321
7322 # Set sane defaults for various variables
7323 test -z "$CC" && CC=cc
7324 test -z "$LTCC" && LTCC=$CC
7325 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7326 test -z "$LD" && LD=ld
7327 test -z "$ac_objext" && ac_objext=o
7328
7329 for cc_temp in $compiler""; do
7330 case $cc_temp in
7331 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7332 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7333 \-*) ;;
7334 *) break;;
7335 esac
7336 done
7337 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7338
7339
7340 # Only perform the check for file, if the check method requires it
7341 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7342 case $deplibs_check_method in
7343 file_magic*)
7344 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7345 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7346 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7347 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7348 $as_echo_n "(cached) " >&6
7349 else
7350 case $MAGIC_CMD in
7351 [\\/*] | ?:[\\/]*)
7352 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7353 ;;
7354 *)
7355 lt_save_MAGIC_CMD="$MAGIC_CMD"
7356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7357 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7358 for ac_dir in $ac_dummy; do
7359 IFS="$lt_save_ifs"
7360 test -z "$ac_dir" && ac_dir=.
7361 if test -f $ac_dir/${ac_tool_prefix}file; then
7362 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7363 if test -n "$file_magic_test_file"; then
7364 case $deplibs_check_method in
7365 "file_magic "*)
7366 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7369 $EGREP "$file_magic_regex" > /dev/null; then
7370 :
7371 else
7372 cat <<_LT_EOF 1>&2
7373
7374 *** Warning: the command libtool uses to detect shared libraries,
7375 *** $file_magic_cmd, produces output that libtool cannot recognize.
7376 *** The result is that libtool may fail to recognize shared libraries
7377 *** as such. This will affect the creation of libtool libraries that
7378 *** depend on shared libraries, but programs linked with such libtool
7379 *** libraries will work regardless of this problem. Nevertheless, you
7380 *** may want to report the problem to your system manager and/or to
7381 *** bug-libtool@gnu.org
7382
7383 _LT_EOF
7384 fi ;;
7385 esac
7386 fi
7387 break
7388 fi
7389 done
7390 IFS="$lt_save_ifs"
7391 MAGIC_CMD="$lt_save_MAGIC_CMD"
7392 ;;
7393 esac
7394 fi
7395
7396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7397 if test -n "$MAGIC_CMD"; then
7398 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7399 $as_echo "$MAGIC_CMD" >&6; }
7400 else
7401 { $as_echo "$as_me:$LINENO: result: no" >&5
7402 $as_echo "no" >&6; }
7403 fi
7404
7405
7406
7407
7408
7409 if test -z "$lt_cv_path_MAGIC_CMD"; then
7410 if test -n "$ac_tool_prefix"; then
7411 { $as_echo "$as_me:$LINENO: checking for file" >&5
7412 $as_echo_n "checking for file... " >&6; }
7413 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7414 $as_echo_n "(cached) " >&6
7415 else
7416 case $MAGIC_CMD in
7417 [\\/*] | ?:[\\/]*)
7418 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7419 ;;
7420 *)
7421 lt_save_MAGIC_CMD="$MAGIC_CMD"
7422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7423 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7424 for ac_dir in $ac_dummy; do
7425 IFS="$lt_save_ifs"
7426 test -z "$ac_dir" && ac_dir=.
7427 if test -f $ac_dir/file; then
7428 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7429 if test -n "$file_magic_test_file"; then
7430 case $deplibs_check_method in
7431 "file_magic "*)
7432 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7434 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7435 $EGREP "$file_magic_regex" > /dev/null; then
7436 :
7437 else
7438 cat <<_LT_EOF 1>&2
7439
7440 *** Warning: the command libtool uses to detect shared libraries,
7441 *** $file_magic_cmd, produces output that libtool cannot recognize.
7442 *** The result is that libtool may fail to recognize shared libraries
7443 *** as such. This will affect the creation of libtool libraries that
7444 *** depend on shared libraries, but programs linked with such libtool
7445 *** libraries will work regardless of this problem. Nevertheless, you
7446 *** may want to report the problem to your system manager and/or to
7447 *** bug-libtool@gnu.org
7448
7449 _LT_EOF
7450 fi ;;
7451 esac
7452 fi
7453 break
7454 fi
7455 done
7456 IFS="$lt_save_ifs"
7457 MAGIC_CMD="$lt_save_MAGIC_CMD"
7458 ;;
7459 esac
7460 fi
7461
7462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7463 if test -n "$MAGIC_CMD"; then
7464 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7465 $as_echo "$MAGIC_CMD" >&6; }
7466 else
7467 { $as_echo "$as_me:$LINENO: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470
7471
7472 else
7473 MAGIC_CMD=:
7474 fi
7475 fi
7476
7477 fi
7478 ;;
7479 esac
7480
7481 # Use C for the default configuration in the libtool script
7482
7483 lt_save_CC="$CC"
7484 ac_ext=c
7485 ac_cpp='$CPP $CPPFLAGS'
7486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489
7490
7491 # Source file extension for C test sources.
7492 ac_ext=c
7493
7494 # Object file extension for compiled C test sources.
7495 objext=o
7496 objext=$objext
7497
7498 # Code to be used in simple compile tests
7499 lt_simple_compile_test_code="int some_variable = 0;"
7500
7501 # Code to be used in simple link tests
7502 lt_simple_link_test_code='int main(){return(0);}'
7503
7504
7505
7506
7507
7508
7509
7510 # If no C compiler was specified, use CC.
7511 LTCC=${LTCC-"$CC"}
7512
7513 # If no C compiler flags were specified, use CFLAGS.
7514 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7515
7516 # Allow CC to be a program name with arguments.
7517 compiler=$CC
7518
7519 # Save the default compiler, since it gets overwritten when the other
7520 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7521 compiler_DEFAULT=$CC
7522
7523 # save warnings/boilerplate of simple test code
7524 ac_outfile=conftest.$ac_objext
7525 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7526 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7527 _lt_compiler_boilerplate=`cat conftest.err`
7528 $RM conftest*
7529
7530 ac_outfile=conftest.$ac_objext
7531 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7532 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7533 _lt_linker_boilerplate=`cat conftest.err`
7534 $RM -r conftest*
7535
7536
7537 if test -n "$compiler"; then
7538
7539 lt_prog_compiler_no_builtin_flag=
7540
7541 if test "$GCC" = yes; then
7542 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7543
7544 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7545 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7546 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7547 $as_echo_n "(cached) " >&6
7548 else
7549 lt_cv_prog_compiler_rtti_exceptions=no
7550 ac_outfile=conftest.$ac_objext
7551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7552 lt_compiler_flag="-fno-rtti -fno-exceptions"
7553 # Insert the option either (1) after the last *FLAGS variable, or
7554 # (2) before a word containing "conftest.", or (3) at the end.
7555 # Note that $ac_compile itself does not contain backslashes and begins
7556 # with a dollar sign (not a hyphen), so the echo should work correctly.
7557 # The option is referenced via a variable to avoid confusing sed.
7558 lt_compile=`echo "$ac_compile" | $SED \
7559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7561 -e 's:$: $lt_compiler_flag:'`
7562 (eval echo "\"\$as_me:7563: $lt_compile\"" >&5)
7563 (eval "$lt_compile" 2>conftest.err)
7564 ac_status=$?
7565 cat conftest.err >&5
7566 echo "$as_me:7567: \$? = $ac_status" >&5
7567 if (exit $ac_status) && test -s "$ac_outfile"; then
7568 # The compiler can only warn and ignore the option if not recognized
7569 # So say no if there are warnings other than the usual output.
7570 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7572 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7573 lt_cv_prog_compiler_rtti_exceptions=yes
7574 fi
7575 fi
7576 $RM conftest*
7577
7578 fi
7579 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7580 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7581
7582 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7583 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7584 else
7585 :
7586 fi
7587
7588 fi
7589
7590
7591
7592
7593
7594
7595 lt_prog_compiler_wl=
7596 lt_prog_compiler_pic=
7597 lt_prog_compiler_static=
7598
7599 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7600 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7601
7602 if test "$GCC" = yes; then
7603 lt_prog_compiler_wl='-Wl,'
7604 lt_prog_compiler_static='-static'
7605
7606 case $host_os in
7607 aix*)
7608 # All AIX code is PIC.
7609 if test "$host_cpu" = ia64; then
7610 # AIX 5 now supports IA64 processor
7611 lt_prog_compiler_static='-Bstatic'
7612 fi
7613 ;;
7614
7615 amigaos*)
7616 case $host_cpu in
7617 powerpc)
7618 # see comment about AmigaOS4 .so support
7619 lt_prog_compiler_pic='-fPIC'
7620 ;;
7621 m68k)
7622 # FIXME: we need at least 68020 code to build shared libraries, but
7623 # adding the `-m68020' flag to GCC prevents building anything better,
7624 # like `-m68040'.
7625 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7626 ;;
7627 esac
7628 ;;
7629
7630 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7631 # PIC is the default for these OSes.
7632 ;;
7633
7634 mingw* | cygwin* | pw32* | os2* | cegcc*)
7635 # This hack is so that the source file can tell whether it is being
7636 # built for inclusion in a dll (and should export symbols for example).
7637 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7638 # (--disable-auto-import) libraries
7639 lt_prog_compiler_pic='-DDLL_EXPORT'
7640 ;;
7641
7642 darwin* | rhapsody*)
7643 # PIC is the default on this platform
7644 # Common symbols not allowed in MH_DYLIB files
7645 lt_prog_compiler_pic='-fno-common'
7646 ;;
7647
7648 hpux*)
7649 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7650 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7651 # sets the default TLS model and affects inlining.
7652 case $host_cpu in
7653 hppa*64*)
7654 # +Z the default
7655 ;;
7656 *)
7657 lt_prog_compiler_pic='-fPIC'
7658 ;;
7659 esac
7660 ;;
7661
7662 interix[3-9]*)
7663 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7664 # Instead, we relocate shared libraries at runtime.
7665 ;;
7666
7667 msdosdjgpp*)
7668 # Just because we use GCC doesn't mean we suddenly get shared libraries
7669 # on systems that don't support them.
7670 lt_prog_compiler_can_build_shared=no
7671 enable_shared=no
7672 ;;
7673
7674 *nto* | *qnx*)
7675 # QNX uses GNU C++, but need to define -shared option too, otherwise
7676 # it will coredump.
7677 lt_prog_compiler_pic='-fPIC -shared'
7678 ;;
7679
7680 sysv4*MP*)
7681 if test -d /usr/nec; then
7682 lt_prog_compiler_pic=-Kconform_pic
7683 fi
7684 ;;
7685
7686 *)
7687 lt_prog_compiler_pic='-fPIC'
7688 ;;
7689 esac
7690 else
7691 # PORTME Check for flag to pass linker flags through the system compiler.
7692 case $host_os in
7693 aix*)
7694 lt_prog_compiler_wl='-Wl,'
7695 if test "$host_cpu" = ia64; then
7696 # AIX 5 now supports IA64 processor
7697 lt_prog_compiler_static='-Bstatic'
7698 else
7699 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7700 fi
7701 ;;
7702
7703 mingw* | cygwin* | pw32* | os2* | cegcc*)
7704 # This hack is so that the source file can tell whether it is being
7705 # built for inclusion in a dll (and should export symbols for example).
7706 lt_prog_compiler_pic='-DDLL_EXPORT'
7707 ;;
7708
7709 hpux9* | hpux10* | hpux11*)
7710 lt_prog_compiler_wl='-Wl,'
7711 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7712 # not for PA HP-UX.
7713 case $host_cpu in
7714 hppa*64*|ia64*)
7715 # +Z the default
7716 ;;
7717 *)
7718 lt_prog_compiler_pic='+Z'
7719 ;;
7720 esac
7721 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7722 lt_prog_compiler_static='${wl}-a ${wl}archive'
7723 ;;
7724
7725 irix5* | irix6* | nonstopux*)
7726 lt_prog_compiler_wl='-Wl,'
7727 # PIC (with -KPIC) is the default.
7728 lt_prog_compiler_static='-non_shared'
7729 ;;
7730
7731 linux* | k*bsd*-gnu)
7732 case $cc_basename in
7733 # old Intel for x86_64 which still supported -KPIC.
7734 ecc*)
7735 lt_prog_compiler_wl='-Wl,'
7736 lt_prog_compiler_pic='-KPIC'
7737 lt_prog_compiler_static='-static'
7738 ;;
7739 # icc used to be incompatible with GCC.
7740 # ICC 10 doesn't accept -KPIC any more.
7741 icc* | ifort*)
7742 lt_prog_compiler_wl='-Wl,'
7743 lt_prog_compiler_pic='-fPIC'
7744 lt_prog_compiler_static='-static'
7745 ;;
7746 # Lahey Fortran 8.1.
7747 lf95*)
7748 lt_prog_compiler_wl='-Wl,'
7749 lt_prog_compiler_pic='--shared'
7750 lt_prog_compiler_static='--static'
7751 ;;
7752 pgcc* | pgf77* | pgf90* | pgf95*)
7753 # Portland Group compilers (*not* the Pentium gcc compiler,
7754 # which looks to be a dead project)
7755 lt_prog_compiler_wl='-Wl,'
7756 lt_prog_compiler_pic='-fpic'
7757 lt_prog_compiler_static='-Bstatic'
7758 ;;
7759 ccc*)
7760 lt_prog_compiler_wl='-Wl,'
7761 # All Alpha code is PIC.
7762 lt_prog_compiler_static='-non_shared'
7763 ;;
7764 xl*)
7765 # IBM XL C 8.0/Fortran 10.1 on PPC
7766 lt_prog_compiler_wl='-Wl,'
7767 lt_prog_compiler_pic='-qpic'
7768 lt_prog_compiler_static='-qstaticlink'
7769 ;;
7770 *)
7771 case `$CC -V 2>&1 | sed 5q` in
7772 *Sun\ C*)
7773 # Sun C 5.9
7774 lt_prog_compiler_pic='-KPIC'
7775 lt_prog_compiler_static='-Bstatic'
7776 lt_prog_compiler_wl='-Wl,'
7777 ;;
7778 *Sun\ F*)
7779 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7780 lt_prog_compiler_pic='-KPIC'
7781 lt_prog_compiler_static='-Bstatic'
7782 lt_prog_compiler_wl=''
7783 ;;
7784 esac
7785 ;;
7786 esac
7787 ;;
7788
7789 newsos6)
7790 lt_prog_compiler_pic='-KPIC'
7791 lt_prog_compiler_static='-Bstatic'
7792 ;;
7793
7794 *nto* | *qnx*)
7795 # QNX uses GNU C++, but need to define -shared option too, otherwise
7796 # it will coredump.
7797 lt_prog_compiler_pic='-fPIC -shared'
7798 ;;
7799
7800 osf3* | osf4* | osf5*)
7801 lt_prog_compiler_wl='-Wl,'
7802 # All OSF/1 code is PIC.
7803 lt_prog_compiler_static='-non_shared'
7804 ;;
7805
7806 rdos*)
7807 lt_prog_compiler_static='-non_shared'
7808 ;;
7809
7810 solaris*)
7811 lt_prog_compiler_pic='-KPIC'
7812 lt_prog_compiler_static='-Bstatic'
7813 case $cc_basename in
7814 f77* | f90* | f95*)
7815 lt_prog_compiler_wl='-Qoption ld ';;
7816 *)
7817 lt_prog_compiler_wl='-Wl,';;
7818 esac
7819 ;;
7820
7821 sunos4*)
7822 lt_prog_compiler_wl='-Qoption ld '
7823 lt_prog_compiler_pic='-PIC'
7824 lt_prog_compiler_static='-Bstatic'
7825 ;;
7826
7827 sysv4 | sysv4.2uw2* | sysv4.3*)
7828 lt_prog_compiler_wl='-Wl,'
7829 lt_prog_compiler_pic='-KPIC'
7830 lt_prog_compiler_static='-Bstatic'
7831 ;;
7832
7833 sysv4*MP*)
7834 if test -d /usr/nec ;then
7835 lt_prog_compiler_pic='-Kconform_pic'
7836 lt_prog_compiler_static='-Bstatic'
7837 fi
7838 ;;
7839
7840 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7841 lt_prog_compiler_wl='-Wl,'
7842 lt_prog_compiler_pic='-KPIC'
7843 lt_prog_compiler_static='-Bstatic'
7844 ;;
7845
7846 unicos*)
7847 lt_prog_compiler_wl='-Wl,'
7848 lt_prog_compiler_can_build_shared=no
7849 ;;
7850
7851 uts4*)
7852 lt_prog_compiler_pic='-pic'
7853 lt_prog_compiler_static='-Bstatic'
7854 ;;
7855
7856 *)
7857 lt_prog_compiler_can_build_shared=no
7858 ;;
7859 esac
7860 fi
7861
7862 case $host_os in
7863 # For platforms which do not support PIC, -DPIC is meaningless:
7864 *djgpp*)
7865 lt_prog_compiler_pic=
7866 ;;
7867 *)
7868 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7869 ;;
7870 esac
7871 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7872 $as_echo "$lt_prog_compiler_pic" >&6; }
7873
7874
7875
7876
7877
7878
7879 #
7880 # Check to make sure the PIC flag actually works.
7881 #
7882 if test -n "$lt_prog_compiler_pic"; then
7883 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7884 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7885 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7886 $as_echo_n "(cached) " >&6
7887 else
7888 lt_cv_prog_compiler_pic_works=no
7889 ac_outfile=conftest.$ac_objext
7890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7891 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7892 # Insert the option either (1) after the last *FLAGS variable, or
7893 # (2) before a word containing "conftest.", or (3) at the end.
7894 # Note that $ac_compile itself does not contain backslashes and begins
7895 # with a dollar sign (not a hyphen), so the echo should work correctly.
7896 # The option is referenced via a variable to avoid confusing sed.
7897 lt_compile=`echo "$ac_compile" | $SED \
7898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7900 -e 's:$: $lt_compiler_flag:'`
7901 (eval echo "\"\$as_me:7902: $lt_compile\"" >&5)
7902 (eval "$lt_compile" 2>conftest.err)
7903 ac_status=$?
7904 cat conftest.err >&5
7905 echo "$as_me:7906: \$? = $ac_status" >&5
7906 if (exit $ac_status) && test -s "$ac_outfile"; then
7907 # The compiler can only warn and ignore the option if not recognized
7908 # So say no if there are warnings other than the usual output.
7909 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7912 lt_cv_prog_compiler_pic_works=yes
7913 fi
7914 fi
7915 $RM conftest*
7916
7917 fi
7918 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7919 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7920
7921 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7922 case $lt_prog_compiler_pic in
7923 "" | " "*) ;;
7924 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7925 esac
7926 else
7927 lt_prog_compiler_pic=
7928 lt_prog_compiler_can_build_shared=no
7929 fi
7930
7931 fi
7932
7933
7934
7935
7936
7937
7938 #
7939 # Check to make sure the static flag actually works.
7940 #
7941 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7942 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7943 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7944 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7945 $as_echo_n "(cached) " >&6
7946 else
7947 lt_cv_prog_compiler_static_works=no
7948 save_LDFLAGS="$LDFLAGS"
7949 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7950 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7952 # The linker can only warn and ignore the option if not recognized
7953 # So say no if there are warnings
7954 if test -s conftest.err; then
7955 # Append any errors to the config.log.
7956 cat conftest.err 1>&5
7957 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7959 if diff conftest.exp conftest.er2 >/dev/null; then
7960 lt_cv_prog_compiler_static_works=yes
7961 fi
7962 else
7963 lt_cv_prog_compiler_static_works=yes
7964 fi
7965 fi
7966 $RM -r conftest*
7967 LDFLAGS="$save_LDFLAGS"
7968
7969 fi
7970 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7971 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7972
7973 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7974 :
7975 else
7976 lt_prog_compiler_static=
7977 fi
7978
7979
7980
7981
7982
7983
7984
7985 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7986 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7987 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7988 $as_echo_n "(cached) " >&6
7989 else
7990 lt_cv_prog_compiler_c_o=no
7991 $RM -r conftest 2>/dev/null
7992 mkdir conftest
7993 cd conftest
7994 mkdir out
7995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7996
7997 lt_compiler_flag="-o out/conftest2.$ac_objext"
7998 # Insert the option either (1) after the last *FLAGS variable, or
7999 # (2) before a word containing "conftest.", or (3) at the end.
8000 # Note that $ac_compile itself does not contain backslashes and begins
8001 # with a dollar sign (not a hyphen), so the echo should work correctly.
8002 lt_compile=`echo "$ac_compile" | $SED \
8003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8005 -e 's:$: $lt_compiler_flag:'`
8006 (eval echo "\"\$as_me:8007: $lt_compile\"" >&5)
8007 (eval "$lt_compile" 2>out/conftest.err)
8008 ac_status=$?
8009 cat out/conftest.err >&5
8010 echo "$as_me:8011: \$? = $ac_status" >&5
8011 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8012 then
8013 # The compiler can only warn and ignore the option if not recognized
8014 # So say no if there are warnings
8015 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8016 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8017 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8018 lt_cv_prog_compiler_c_o=yes
8019 fi
8020 fi
8021 chmod u+w . 2>&5
8022 $RM conftest*
8023 # SGI C++ compiler will create directory out/ii_files/ for
8024 # template instantiation
8025 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8026 $RM out/* && rmdir out
8027 cd ..
8028 $RM -r conftest
8029 $RM conftest*
8030
8031 fi
8032 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8033 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8034
8035
8036
8037
8038
8039
8040 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8041 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8042 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8043 $as_echo_n "(cached) " >&6
8044 else
8045 lt_cv_prog_compiler_c_o=no
8046 $RM -r conftest 2>/dev/null
8047 mkdir conftest
8048 cd conftest
8049 mkdir out
8050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8051
8052 lt_compiler_flag="-o out/conftest2.$ac_objext"
8053 # Insert the option either (1) after the last *FLAGS variable, or
8054 # (2) before a word containing "conftest.", or (3) at the end.
8055 # Note that $ac_compile itself does not contain backslashes and begins
8056 # with a dollar sign (not a hyphen), so the echo should work correctly.
8057 lt_compile=`echo "$ac_compile" | $SED \
8058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8060 -e 's:$: $lt_compiler_flag:'`
8061 (eval echo "\"\$as_me:8062: $lt_compile\"" >&5)
8062 (eval "$lt_compile" 2>out/conftest.err)
8063 ac_status=$?
8064 cat out/conftest.err >&5
8065 echo "$as_me:8066: \$? = $ac_status" >&5
8066 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8067 then
8068 # The compiler can only warn and ignore the option if not recognized
8069 # So say no if there are warnings
8070 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8071 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8072 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8073 lt_cv_prog_compiler_c_o=yes
8074 fi
8075 fi
8076 chmod u+w . 2>&5
8077 $RM conftest*
8078 # SGI C++ compiler will create directory out/ii_files/ for
8079 # template instantiation
8080 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8081 $RM out/* && rmdir out
8082 cd ..
8083 $RM -r conftest
8084 $RM conftest*
8085
8086 fi
8087 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8088 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8089
8090
8091
8092
8093 hard_links="nottested"
8094 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8095 # do not overwrite the value of need_locks provided by the user
8096 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8097 $as_echo_n "checking if we can lock with hard links... " >&6; }
8098 hard_links=yes
8099 $RM conftest*
8100 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8101 touch conftest.a
8102 ln conftest.a conftest.b 2>&5 || hard_links=no
8103 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8104 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8105 $as_echo "$hard_links" >&6; }
8106 if test "$hard_links" = no; then
8107 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8108 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8109 need_locks=warn
8110 fi
8111 else
8112 need_locks=no
8113 fi
8114
8115
8116
8117
8118
8119
8120 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8121 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8122
8123 runpath_var=
8124 allow_undefined_flag=
8125 always_export_symbols=no
8126 archive_cmds=
8127 archive_expsym_cmds=
8128 compiler_needs_object=no
8129 enable_shared_with_static_runtimes=no
8130 export_dynamic_flag_spec=
8131 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8132 hardcode_automatic=no
8133 hardcode_direct=no
8134 hardcode_direct_absolute=no
8135 hardcode_libdir_flag_spec=
8136 hardcode_libdir_flag_spec_ld=
8137 hardcode_libdir_separator=
8138 hardcode_minus_L=no
8139 hardcode_shlibpath_var=unsupported
8140 inherit_rpath=no
8141 link_all_deplibs=unknown
8142 module_cmds=
8143 module_expsym_cmds=
8144 old_archive_from_new_cmds=
8145 old_archive_from_expsyms_cmds=
8146 thread_safe_flag_spec=
8147 whole_archive_flag_spec=
8148 # include_expsyms should be a list of space-separated symbols to be *always*
8149 # included in the symbol list
8150 include_expsyms=
8151 # exclude_expsyms can be an extended regexp of symbols to exclude
8152 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8153 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8154 # as well as any symbol that contains `d'.
8155 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8156 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8157 # platforms (ab)use it in PIC code, but their linkers get confused if
8158 # the symbol is explicitly referenced. Since portable code cannot
8159 # rely on this symbol name, it's probably fine to never include it in
8160 # preloaded symbol tables.
8161 # Exclude shared library initialization/finalization symbols.
8162 extract_expsyms_cmds=
8163
8164 case $host_os in
8165 cygwin* | mingw* | pw32* | cegcc*)
8166 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8167 # When not using gcc, we currently assume that we are using
8168 # Microsoft Visual C++.
8169 if test "$GCC" != yes; then
8170 with_gnu_ld=no
8171 fi
8172 ;;
8173 interix*)
8174 # we just hope/assume this is gcc and not c89 (= MSVC++)
8175 with_gnu_ld=yes
8176 ;;
8177 openbsd*)
8178 with_gnu_ld=no
8179 ;;
8180 linux* | k*bsd*-gnu)
8181 link_all_deplibs=no
8182 ;;
8183 esac
8184
8185 ld_shlibs=yes
8186 if test "$with_gnu_ld" = yes; then
8187 # If archive_cmds runs LD, not CC, wlarc should be empty
8188 wlarc='${wl}'
8189
8190 # Set some defaults for GNU ld with shared library support. These
8191 # are reset later if shared libraries are not supported. Putting them
8192 # here allows them to be overridden if necessary.
8193 runpath_var=LD_RUN_PATH
8194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8195 export_dynamic_flag_spec='${wl}--export-dynamic'
8196 # ancient GNU ld didn't support --whole-archive et. al.
8197 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8198 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8199 else
8200 whole_archive_flag_spec=
8201 fi
8202 supports_anon_versioning=no
8203 case `$LD -v 2>&1` in
8204 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8205 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8206 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8207 *\ 2.11.*) ;; # other 2.11 versions
8208 *) supports_anon_versioning=yes ;;
8209 esac
8210
8211 # See if GNU ld supports shared libraries.
8212 case $host_os in
8213 aix[3-9]*)
8214 # On AIX/PPC, the GNU linker is very broken
8215 if test "$host_cpu" != ia64; then
8216 ld_shlibs=no
8217 cat <<_LT_EOF 1>&2
8218
8219 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8220 *** to be unable to reliably create shared libraries on AIX.
8221 *** Therefore, libtool is disabling shared libraries support. If you
8222 *** really care for shared libraries, you may want to modify your PATH
8223 *** so that a non-GNU linker is found, and then restart.
8224
8225 _LT_EOF
8226 fi
8227 ;;
8228
8229 amigaos*)
8230 case $host_cpu in
8231 powerpc)
8232 # see comment about AmigaOS4 .so support
8233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8234 archive_expsym_cmds=''
8235 ;;
8236 m68k)
8237 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)'
8238 hardcode_libdir_flag_spec='-L$libdir'
8239 hardcode_minus_L=yes
8240 ;;
8241 esac
8242 ;;
8243
8244 beos*)
8245 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8246 allow_undefined_flag=unsupported
8247 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8248 # support --undefined. This deserves some investigation. FIXME
8249 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8250 else
8251 ld_shlibs=no
8252 fi
8253 ;;
8254
8255 cygwin* | mingw* | pw32* | cegcc*)
8256 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8257 # as there is no search path for DLLs.
8258 hardcode_libdir_flag_spec='-L$libdir'
8259 allow_undefined_flag=unsupported
8260 always_export_symbols=no
8261 enable_shared_with_static_runtimes=yes
8262 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8263
8264 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8266 # If the export-symbols file already is a .def file (1st line
8267 # is EXPORTS), use it as is; otherwise, prepend...
8268 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8269 cp $export_symbols $output_objdir/$soname.def;
8270 else
8271 echo EXPORTS > $output_objdir/$soname.def;
8272 cat $export_symbols >> $output_objdir/$soname.def;
8273 fi~
8274 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8275 else
8276 ld_shlibs=no
8277 fi
8278 ;;
8279
8280 interix[3-9]*)
8281 hardcode_direct=no
8282 hardcode_shlibpath_var=no
8283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8284 export_dynamic_flag_spec='${wl}-E'
8285 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8286 # Instead, shared libraries are loaded at an image base (0x10000000 by
8287 # default) and relocated if they conflict, which is a slow very memory
8288 # consuming and fragmenting process. To avoid this, we pick a random,
8289 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8290 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8291 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8292 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'
8293 ;;
8294
8295 gnu* | linux* | tpf* | k*bsd*-gnu)
8296 tmp_diet=no
8297 if test "$host_os" = linux-dietlibc; then
8298 case $cc_basename in
8299 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8300 esac
8301 fi
8302 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8303 && test "$tmp_diet" = no
8304 then
8305 tmp_addflag=
8306 tmp_sharedflag='-shared'
8307 case $cc_basename,$host_cpu in
8308 pgcc*) # Portland Group C compiler
8309 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8310 tmp_addflag=' $pic_flag'
8311 ;;
8312 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8313 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8314 tmp_addflag=' $pic_flag -Mnomain' ;;
8315 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8316 tmp_addflag=' -i_dynamic' ;;
8317 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8318 tmp_addflag=' -i_dynamic -nofor_main' ;;
8319 ifc* | ifort*) # Intel Fortran compiler
8320 tmp_addflag=' -nofor_main' ;;
8321 lf95*) # Lahey Fortran 8.1
8322 whole_archive_flag_spec=
8323 tmp_sharedflag='--shared' ;;
8324 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8325 tmp_sharedflag='-qmkshrobj'
8326 tmp_addflag= ;;
8327 esac
8328 case `$CC -V 2>&1 | sed 5q` in
8329 *Sun\ C*) # Sun C 5.9
8330 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8331 compiler_needs_object=yes
8332 tmp_sharedflag='-G' ;;
8333 *Sun\ F*) # Sun Fortran 8.3
8334 tmp_sharedflag='-G' ;;
8335 esac
8336 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8337
8338 if test "x$supports_anon_versioning" = xyes; then
8339 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8341 echo "local: *; };" >> $output_objdir/$libname.ver~
8342 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8343 fi
8344
8345 case $cc_basename in
8346 xlf*)
8347 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8348 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8349 hardcode_libdir_flag_spec=
8350 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8351 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8352 if test "x$supports_anon_versioning" = xyes; then
8353 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8355 echo "local: *; };" >> $output_objdir/$libname.ver~
8356 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8357 fi
8358 ;;
8359 esac
8360 else
8361 ld_shlibs=no
8362 fi
8363 ;;
8364
8365 netbsd* | netbsdelf*-gnu)
8366 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8367 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8368 wlarc=
8369 else
8370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8372 fi
8373 ;;
8374
8375 solaris*)
8376 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8377 ld_shlibs=no
8378 cat <<_LT_EOF 1>&2
8379
8380 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8381 *** create shared libraries on Solaris systems. Therefore, libtool
8382 *** is disabling shared libraries support. We urge you to upgrade GNU
8383 *** binutils to release 2.9.1 or newer. Another option is to modify
8384 *** your PATH or compiler configuration so that the native linker is
8385 *** used, and then restart.
8386
8387 _LT_EOF
8388 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8390 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8391 else
8392 ld_shlibs=no
8393 fi
8394 ;;
8395
8396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8397 case `$LD -v 2>&1` in
8398 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8399 ld_shlibs=no
8400 cat <<_LT_EOF 1>&2
8401
8402 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8403 *** reliably create shared libraries on SCO systems. Therefore, libtool
8404 *** is disabling shared libraries support. We urge you to upgrade GNU
8405 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8406 *** your PATH or compiler configuration so that the native linker is
8407 *** used, and then restart.
8408
8409 _LT_EOF
8410 ;;
8411 *)
8412 # For security reasons, it is highly recommended that you always
8413 # use absolute paths for naming shared libraries, and exclude the
8414 # DT_RUNPATH tag from executables and libraries. But doing so
8415 # requires that you compile everything twice, which is a pain.
8416 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8420 else
8421 ld_shlibs=no
8422 fi
8423 ;;
8424 esac
8425 ;;
8426
8427 sunos4*)
8428 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8429 wlarc=
8430 hardcode_direct=yes
8431 hardcode_shlibpath_var=no
8432 ;;
8433
8434 *)
8435 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8438 else
8439 ld_shlibs=no
8440 fi
8441 ;;
8442 esac
8443
8444 if test "$ld_shlibs" = no; then
8445 runpath_var=
8446 hardcode_libdir_flag_spec=
8447 export_dynamic_flag_spec=
8448 whole_archive_flag_spec=
8449 fi
8450 else
8451 # PORTME fill in a description of your system's linker (not GNU ld)
8452 case $host_os in
8453 aix3*)
8454 allow_undefined_flag=unsupported
8455 always_export_symbols=yes
8456 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'
8457 # Note: this linker hardcodes the directories in LIBPATH if there
8458 # are no directories specified by -L.
8459 hardcode_minus_L=yes
8460 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8461 # Neither direct hardcoding nor static linking is supported with a
8462 # broken collect2.
8463 hardcode_direct=unsupported
8464 fi
8465 ;;
8466
8467 aix[4-9]*)
8468 if test "$host_cpu" = ia64; then
8469 # On IA64, the linker does run time linking by default, so we don't
8470 # have to do anything special.
8471 aix_use_runtimelinking=no
8472 exp_sym_flag='-Bexport'
8473 no_entry_flag=""
8474 else
8475 # If we're using GNU nm, then we don't want the "-C" option.
8476 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8477 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8478 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8479 else
8480 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8481 fi
8482 aix_use_runtimelinking=no
8483
8484 # Test if we are trying to use run time linking or normal
8485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8486 # need to do runtime linking.
8487 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8488 for ld_flag in $LDFLAGS; do
8489 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8490 aix_use_runtimelinking=yes
8491 break
8492 fi
8493 done
8494 ;;
8495 esac
8496
8497 exp_sym_flag='-bexport'
8498 no_entry_flag='-bnoentry'
8499 fi
8500
8501 # When large executables or shared objects are built, AIX ld can
8502 # have problems creating the table of contents. If linking a library
8503 # or program results in "error TOC overflow" add -mminimal-toc to
8504 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8505 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8506
8507 archive_cmds=''
8508 hardcode_direct=yes
8509 hardcode_direct_absolute=yes
8510 hardcode_libdir_separator=':'
8511 link_all_deplibs=yes
8512 file_list_spec='${wl}-f,'
8513
8514 if test "$GCC" = yes; then
8515 case $host_os in aix4.[012]|aix4.[012].*)
8516 # We only want to do this on AIX 4.2 and lower, the check
8517 # below for broken collect2 doesn't work under 4.3+
8518 collect2name=`${CC} -print-prog-name=collect2`
8519 if test -f "$collect2name" &&
8520 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8521 then
8522 # We have reworked collect2
8523 :
8524 else
8525 # We have old collect2
8526 hardcode_direct=unsupported
8527 # It fails to find uninstalled libraries when the uninstalled
8528 # path is not listed in the libpath. Setting hardcode_minus_L
8529 # to unsupported forces relinking
8530 hardcode_minus_L=yes
8531 hardcode_libdir_flag_spec='-L$libdir'
8532 hardcode_libdir_separator=
8533 fi
8534 ;;
8535 esac
8536 shared_flag='-shared'
8537 if test "$aix_use_runtimelinking" = yes; then
8538 shared_flag="$shared_flag "'${wl}-G'
8539 fi
8540 link_all_deplibs=no
8541 else
8542 # not using gcc
8543 if test "$host_cpu" = ia64; then
8544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8545 # chokes on -Wl,-G. The following line is correct:
8546 shared_flag='-G'
8547 else
8548 if test "$aix_use_runtimelinking" = yes; then
8549 shared_flag='${wl}-G'
8550 else
8551 shared_flag='${wl}-bM:SRE'
8552 fi
8553 fi
8554 fi
8555
8556 export_dynamic_flag_spec='${wl}-bexpall'
8557 # It seems that -bexpall does not export symbols beginning with
8558 # underscore (_), so it is better to generate a list of symbols to export.
8559 always_export_symbols=yes
8560 if test "$aix_use_runtimelinking" = yes; then
8561 # Warning - without using the other runtime loading flags (-brtl),
8562 # -berok will link without error, but may produce a broken library.
8563 allow_undefined_flag='-berok'
8564 # Determine the default libpath from the value encoded in an
8565 # empty executable.
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h. */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572
8573 int
8574 main ()
8575 {
8576
8577 ;
8578 return 0;
8579 }
8580 _ACEOF
8581 rm -f conftest.$ac_objext conftest$ac_exeext
8582 if { (ac_try="$ac_link"
8583 case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8586 esac
8587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8588 $as_echo "$ac_try_echo") >&5
8589 (eval "$ac_link") 2>conftest.er1
8590 ac_status=$?
8591 grep -v '^ *+' conftest.er1 >conftest.err
8592 rm -f conftest.er1
8593 cat conftest.err >&5
8594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest$ac_exeext && {
8599 test "$cross_compiling" = yes ||
8600 $as_test_x conftest$ac_exeext
8601 }; then
8602
8603 lt_aix_libpath_sed='
8604 /Import File Strings/,/^$/ {
8605 /^0/ {
8606 s/^0 *\(.*\)$/\1/
8607 p
8608 }
8609 }'
8610 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8611 # Check for a 64-bit object if we didn't find anything.
8612 if test -z "$aix_libpath"; then
8613 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8614 fi
8615 else
8616 $as_echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619
8620 fi
8621
8622 rm -rf conftest.dSYM
8623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8624 conftest$ac_exeext conftest.$ac_ext
8625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8626
8627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8628 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8629 else
8630 if test "$host_cpu" = ia64; then
8631 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8632 allow_undefined_flag="-z nodefs"
8633 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"
8634 else
8635 # Determine the default libpath from the value encoded in an
8636 # empty executable.
8637 cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h. */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8643
8644 int
8645 main ()
8646 {
8647
8648 ;
8649 return 0;
8650 }
8651 _ACEOF
8652 rm -f conftest.$ac_objext conftest$ac_exeext
8653 if { (ac_try="$ac_link"
8654 case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8657 esac
8658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8659 $as_echo "$ac_try_echo") >&5
8660 (eval "$ac_link") 2>conftest.er1
8661 ac_status=$?
8662 grep -v '^ *+' conftest.er1 >conftest.err
8663 rm -f conftest.er1
8664 cat conftest.err >&5
8665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } && {
8667 test -z "$ac_c_werror_flag" ||
8668 test ! -s conftest.err
8669 } && test -s conftest$ac_exeext && {
8670 test "$cross_compiling" = yes ||
8671 $as_test_x conftest$ac_exeext
8672 }; then
8673
8674 lt_aix_libpath_sed='
8675 /Import File Strings/,/^$/ {
8676 /^0/ {
8677 s/^0 *\(.*\)$/\1/
8678 p
8679 }
8680 }'
8681 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8682 # Check for a 64-bit object if we didn't find anything.
8683 if test -z "$aix_libpath"; then
8684 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8685 fi
8686 else
8687 $as_echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8689
8690
8691 fi
8692
8693 rm -rf conftest.dSYM
8694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8695 conftest$ac_exeext conftest.$ac_ext
8696 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8697
8698 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8699 # Warning - without using the other run time loading flags,
8700 # -berok will link without error, but may produce a broken library.
8701 no_undefined_flag=' ${wl}-bernotok'
8702 allow_undefined_flag=' ${wl}-berok'
8703 # Exported symbols can be pulled into shared objects from archives
8704 whole_archive_flag_spec='$convenience'
8705 archive_cmds_need_lc=yes
8706 # This is similar to how AIX traditionally builds its shared libraries.
8707 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8708 fi
8709 fi
8710 ;;
8711
8712 amigaos*)
8713 case $host_cpu in
8714 powerpc)
8715 # see comment about AmigaOS4 .so support
8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8717 archive_expsym_cmds=''
8718 ;;
8719 m68k)
8720 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)'
8721 hardcode_libdir_flag_spec='-L$libdir'
8722 hardcode_minus_L=yes
8723 ;;
8724 esac
8725 ;;
8726
8727 bsdi[45]*)
8728 export_dynamic_flag_spec=-rdynamic
8729 ;;
8730
8731 cygwin* | mingw* | pw32* | cegcc*)
8732 # When not using gcc, we currently assume that we are using
8733 # Microsoft Visual C++.
8734 # hardcode_libdir_flag_spec is actually meaningless, as there is
8735 # no search path for DLLs.
8736 hardcode_libdir_flag_spec=' '
8737 allow_undefined_flag=unsupported
8738 # Tell ltmain to make .lib files, not .a files.
8739 libext=lib
8740 # Tell ltmain to make .dll files, not .so files.
8741 shrext_cmds=".dll"
8742 # FIXME: Setting linknames here is a bad hack.
8743 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8744 # The linker will automatically build a .lib file if we build a DLL.
8745 old_archive_from_new_cmds='true'
8746 # FIXME: Should let the user specify the lib program.
8747 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8748 fix_srcfile_path='`cygpath -w "$srcfile"`'
8749 enable_shared_with_static_runtimes=yes
8750 ;;
8751
8752 darwin* | rhapsody*)
8753
8754
8755 archive_cmds_need_lc=no
8756 hardcode_direct=no
8757 hardcode_automatic=yes
8758 hardcode_shlibpath_var=unsupported
8759 whole_archive_flag_spec=''
8760 link_all_deplibs=yes
8761 allow_undefined_flag="$_lt_dar_allow_undefined"
8762 case $cc_basename in
8763 ifort*) _lt_dar_can_shared=yes ;;
8764 *) _lt_dar_can_shared=$GCC ;;
8765 esac
8766 if test "$_lt_dar_can_shared" = "yes"; then
8767 output_verbose_link_cmd=echo
8768 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8769 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8770 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}"
8771 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}"
8772
8773 else
8774 ld_shlibs=no
8775 fi
8776
8777 ;;
8778
8779 dgux*)
8780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_libdir_flag_spec='-L$libdir'
8782 hardcode_shlibpath_var=no
8783 ;;
8784
8785 freebsd1*)
8786 ld_shlibs=no
8787 ;;
8788
8789 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8790 # support. Future versions do this automatically, but an explicit c++rt0.o
8791 # does not break anything, and helps significantly (at the cost of a little
8792 # extra space).
8793 freebsd2.2*)
8794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8795 hardcode_libdir_flag_spec='-R$libdir'
8796 hardcode_direct=yes
8797 hardcode_shlibpath_var=no
8798 ;;
8799
8800 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8801 freebsd2*)
8802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8803 hardcode_direct=yes
8804 hardcode_minus_L=yes
8805 hardcode_shlibpath_var=no
8806 ;;
8807
8808 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8809 freebsd* | dragonfly*)
8810 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8811 hardcode_libdir_flag_spec='-R$libdir'
8812 hardcode_direct=yes
8813 hardcode_shlibpath_var=no
8814 ;;
8815
8816 hpux9*)
8817 if test "$GCC" = yes; then
8818 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8819 else
8820 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8821 fi
8822 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8823 hardcode_libdir_separator=:
8824 hardcode_direct=yes
8825
8826 # hardcode_minus_L: Not really in the search PATH,
8827 # but as the default location of the library.
8828 hardcode_minus_L=yes
8829 export_dynamic_flag_spec='${wl}-E'
8830 ;;
8831
8832 hpux10*)
8833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8835 else
8836 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8837 fi
8838 if test "$with_gnu_ld" = no; then
8839 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8840 hardcode_libdir_flag_spec_ld='+b $libdir'
8841 hardcode_libdir_separator=:
8842 hardcode_direct=yes
8843 hardcode_direct_absolute=yes
8844 export_dynamic_flag_spec='${wl}-E'
8845 # hardcode_minus_L: Not really in the search PATH,
8846 # but as the default location of the library.
8847 hardcode_minus_L=yes
8848 fi
8849 ;;
8850
8851 hpux11*)
8852 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8853 case $host_cpu in
8854 hppa*64*)
8855 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8856 ;;
8857 ia64*)
8858 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8859 ;;
8860 *)
8861 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8862 ;;
8863 esac
8864 else
8865 case $host_cpu in
8866 hppa*64*)
8867 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8868 ;;
8869 ia64*)
8870 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8871 ;;
8872 *)
8873 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8874 ;;
8875 esac
8876 fi
8877 if test "$with_gnu_ld" = no; then
8878 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8879 hardcode_libdir_separator=:
8880
8881 case $host_cpu in
8882 hppa*64*|ia64*)
8883 hardcode_direct=no
8884 hardcode_shlibpath_var=no
8885 ;;
8886 *)
8887 hardcode_direct=yes
8888 hardcode_direct_absolute=yes
8889 export_dynamic_flag_spec='${wl}-E'
8890
8891 # hardcode_minus_L: Not really in the search PATH,
8892 # but as the default location of the library.
8893 hardcode_minus_L=yes
8894 ;;
8895 esac
8896 fi
8897 ;;
8898
8899 irix5* | irix6* | nonstopux*)
8900 if test "$GCC" = yes; then
8901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8902 # Try to use the -exported_symbol ld option, if it does not
8903 # work, assume that -exports_file does not work either and
8904 # implicitly export all symbols.
8905 save_LDFLAGS="$LDFLAGS"
8906 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8907 cat >conftest.$ac_ext <<_ACEOF
8908 int foo(void) {}
8909 _ACEOF
8910 rm -f conftest.$ac_objext conftest$ac_exeext
8911 if { (ac_try="$ac_link"
8912 case "(($ac_try" in
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8915 esac
8916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8917 $as_echo "$ac_try_echo") >&5
8918 (eval "$ac_link") 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest$ac_exeext && {
8928 test "$cross_compiling" = yes ||
8929 $as_test_x conftest$ac_exeext
8930 }; then
8931 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8932
8933 else
8934 $as_echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937
8938 fi
8939
8940 rm -rf conftest.dSYM
8941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8942 conftest$ac_exeext conftest.$ac_ext
8943 LDFLAGS="$save_LDFLAGS"
8944 else
8945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8946 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8947 fi
8948 archive_cmds_need_lc='no'
8949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8950 hardcode_libdir_separator=:
8951 inherit_rpath=yes
8952 link_all_deplibs=yes
8953 ;;
8954
8955 netbsd* | netbsdelf*-gnu)
8956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8958 else
8959 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8960 fi
8961 hardcode_libdir_flag_spec='-R$libdir'
8962 hardcode_direct=yes
8963 hardcode_shlibpath_var=no
8964 ;;
8965
8966 newsos6)
8967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8968 hardcode_direct=yes
8969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8970 hardcode_libdir_separator=:
8971 hardcode_shlibpath_var=no
8972 ;;
8973
8974 *nto* | *qnx*)
8975 ;;
8976
8977 openbsd*)
8978 if test -f /usr/libexec/ld.so; then
8979 hardcode_direct=yes
8980 hardcode_shlibpath_var=no
8981 hardcode_direct_absolute=yes
8982 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8983 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8984 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8986 export_dynamic_flag_spec='${wl}-E'
8987 else
8988 case $host_os in
8989 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8991 hardcode_libdir_flag_spec='-R$libdir'
8992 ;;
8993 *)
8994 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8996 ;;
8997 esac
8998 fi
8999 else
9000 ld_shlibs=no
9001 fi
9002 ;;
9003
9004 os2*)
9005 hardcode_libdir_flag_spec='-L$libdir'
9006 hardcode_minus_L=yes
9007 allow_undefined_flag=unsupported
9008 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9009 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9010 ;;
9011
9012 osf3*)
9013 if test "$GCC" = yes; then
9014 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9015 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9016 else
9017 allow_undefined_flag=' -expect_unresolved \*'
9018 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9019 fi
9020 archive_cmds_need_lc='no'
9021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9022 hardcode_libdir_separator=:
9023 ;;
9024
9025 osf4* | osf5*) # as osf3* with the addition of -msym flag
9026 if test "$GCC" = yes; then
9027 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9028 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9030 else
9031 allow_undefined_flag=' -expect_unresolved \*'
9032 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9033 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~
9034 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9035
9036 # Both c and cxx compiler support -rpath directly
9037 hardcode_libdir_flag_spec='-rpath $libdir'
9038 fi
9039 archive_cmds_need_lc='no'
9040 hardcode_libdir_separator=:
9041 ;;
9042
9043 solaris*)
9044 no_undefined_flag=' -z defs'
9045 if test "$GCC" = yes; then
9046 wlarc='${wl}'
9047 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9048 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9049 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9050 else
9051 case `$CC -V 2>&1` in
9052 *"Compilers 5.0"*)
9053 wlarc=''
9054 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9056 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9057 ;;
9058 *)
9059 wlarc='${wl}'
9060 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9062 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9063 ;;
9064 esac
9065 fi
9066 hardcode_libdir_flag_spec='-R$libdir'
9067 hardcode_shlibpath_var=no
9068 case $host_os in
9069 solaris2.[0-5] | solaris2.[0-5].*) ;;
9070 *)
9071 # The compiler driver will combine and reorder linker options,
9072 # but understands `-z linker_flag'. GCC discards it without `$wl',
9073 # but is careful enough not to reorder.
9074 # Supported since Solaris 2.6 (maybe 2.5.1?)
9075 if test "$GCC" = yes; then
9076 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9077 else
9078 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9079 fi
9080 ;;
9081 esac
9082 link_all_deplibs=yes
9083 ;;
9084
9085 sunos4*)
9086 if test "x$host_vendor" = xsequent; then
9087 # Use $CC to link under sequent, because it throws in some extra .o
9088 # files that make .init and .fini sections work.
9089 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9090 else
9091 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9092 fi
9093 hardcode_libdir_flag_spec='-L$libdir'
9094 hardcode_direct=yes
9095 hardcode_minus_L=yes
9096 hardcode_shlibpath_var=no
9097 ;;
9098
9099 sysv4)
9100 case $host_vendor in
9101 sni)
9102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103 hardcode_direct=yes # is this really true???
9104 ;;
9105 siemens)
9106 ## LD is ld it makes a PLAMLIB
9107 ## CC just makes a GrossModule.
9108 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9109 reload_cmds='$CC -r -o $output$reload_objs'
9110 hardcode_direct=no
9111 ;;
9112 motorola)
9113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9114 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9115 ;;
9116 esac
9117 runpath_var='LD_RUN_PATH'
9118 hardcode_shlibpath_var=no
9119 ;;
9120
9121 sysv4.3*)
9122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_shlibpath_var=no
9124 export_dynamic_flag_spec='-Bexport'
9125 ;;
9126
9127 sysv4*MP*)
9128 if test -d /usr/nec; then
9129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9130 hardcode_shlibpath_var=no
9131 runpath_var=LD_RUN_PATH
9132 hardcode_runpath_var=yes
9133 ld_shlibs=yes
9134 fi
9135 ;;
9136
9137 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9138 no_undefined_flag='${wl}-z,text'
9139 archive_cmds_need_lc=no
9140 hardcode_shlibpath_var=no
9141 runpath_var='LD_RUN_PATH'
9142
9143 if test "$GCC" = yes; then
9144 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9145 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 else
9147 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9148 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149 fi
9150 ;;
9151
9152 sysv5* | sco3.2v5* | sco5v6*)
9153 # Note: We can NOT use -z defs as we might desire, because we do not
9154 # link with -lc, and that would cause any symbols used from libc to
9155 # always be unresolved, which means just about no library would
9156 # ever link correctly. If we're not using GNU ld we use -z text
9157 # though, which does catch some bad symbols but isn't as heavy-handed
9158 # as -z defs.
9159 no_undefined_flag='${wl}-z,text'
9160 allow_undefined_flag='${wl}-z,nodefs'
9161 archive_cmds_need_lc=no
9162 hardcode_shlibpath_var=no
9163 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9164 hardcode_libdir_separator=':'
9165 link_all_deplibs=yes
9166 export_dynamic_flag_spec='${wl}-Bexport'
9167 runpath_var='LD_RUN_PATH'
9168
9169 if test "$GCC" = yes; then
9170 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9171 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172 else
9173 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9174 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175 fi
9176 ;;
9177
9178 uts4*)
9179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9180 hardcode_libdir_flag_spec='-L$libdir'
9181 hardcode_shlibpath_var=no
9182 ;;
9183
9184 *)
9185 ld_shlibs=no
9186 ;;
9187 esac
9188
9189 if test x$host_vendor = xsni; then
9190 case $host in
9191 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9192 export_dynamic_flag_spec='${wl}-Blargedynsym'
9193 ;;
9194 esac
9195 fi
9196 fi
9197
9198 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9199 $as_echo "$ld_shlibs" >&6; }
9200 test "$ld_shlibs" = no && can_build_shared=no
9201
9202 with_gnu_ld=$with_gnu_ld
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218 #
9219 # Do we need to explicitly link libc?
9220 #
9221 case "x$archive_cmds_need_lc" in
9222 x|xyes)
9223 # Assume -lc should be added
9224 archive_cmds_need_lc=yes
9225
9226 if test "$enable_shared" = yes && test "$GCC" = yes; then
9227 case $archive_cmds in
9228 *'~'*)
9229 # FIXME: we may have to deal with multi-command sequences.
9230 ;;
9231 '$CC '*)
9232 # Test whether the compiler implicitly links with -lc since on some
9233 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9234 # to ld, don't add -lc before -lgcc.
9235 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9236 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9237 $RM conftest*
9238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9239
9240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9241 (eval $ac_compile) 2>&5
9242 ac_status=$?
9243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } 2>conftest.err; then
9245 soname=conftest
9246 lib=conftest
9247 libobjs=conftest.$ac_objext
9248 deplibs=
9249 wl=$lt_prog_compiler_wl
9250 pic_flag=$lt_prog_compiler_pic
9251 compiler_flags=-v
9252 linker_flags=-v
9253 verstring=
9254 output_objdir=.
9255 libname=conftest
9256 lt_save_allow_undefined_flag=$allow_undefined_flag
9257 allow_undefined_flag=
9258 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9259 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9260 ac_status=$?
9261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }
9263 then
9264 archive_cmds_need_lc=no
9265 else
9266 archive_cmds_need_lc=yes
9267 fi
9268 allow_undefined_flag=$lt_save_allow_undefined_flag
9269 else
9270 cat conftest.err 1>&5
9271 fi
9272 $RM conftest*
9273 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9274 $as_echo "$archive_cmds_need_lc" >&6; }
9275 ;;
9276 esac
9277 fi
9278 ;;
9279 esac
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9438 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9439
9440 if test "$GCC" = yes; then
9441 case $host_os in
9442 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9443 *) lt_awk_arg="/^libraries:/" ;;
9444 esac
9445 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9446 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9447 # if the path contains ";" then we assume it to be the separator
9448 # otherwise default to the standard path separator (i.e. ":") - it is
9449 # assumed that no part of a normal pathname contains ";" but that should
9450 # okay in the real world where ";" in dirpaths is itself problematic.
9451 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9452 else
9453 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9454 fi
9455 # Ok, now we have the path, separated by spaces, we can step through it
9456 # and add multilib dir if necessary.
9457 lt_tmp_lt_search_path_spec=
9458 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9459 for lt_sys_path in $lt_search_path_spec; do
9460 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9462 else
9463 test -d "$lt_sys_path" && \
9464 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9465 fi
9466 done
9467 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9468 BEGIN {RS=" "; FS="/|\n";} {
9469 lt_foo="";
9470 lt_count=0;
9471 for (lt_i = NF; lt_i > 0; lt_i--) {
9472 if ($lt_i != "" && $lt_i != ".") {
9473 if ($lt_i == "..") {
9474 lt_count++;
9475 } else {
9476 if (lt_count == 0) {
9477 lt_foo="/" $lt_i lt_foo;
9478 } else {
9479 lt_count--;
9480 }
9481 }
9482 }
9483 }
9484 if (lt_foo != "") { lt_freq[lt_foo]++; }
9485 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9486 }'`
9487 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9488 else
9489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9490 fi
9491 library_names_spec=
9492 libname_spec='lib$name'
9493 soname_spec=
9494 shrext_cmds=".so"
9495 postinstall_cmds=
9496 postuninstall_cmds=
9497 finish_cmds=
9498 finish_eval=
9499 shlibpath_var=
9500 shlibpath_overrides_runpath=unknown
9501 version_type=none
9502 dynamic_linker="$host_os ld.so"
9503 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9504 need_lib_prefix=unknown
9505 hardcode_into_libs=no
9506
9507 # when you set need_version to no, make sure it does not cause -set_version
9508 # flags to be left without arguments
9509 need_version=unknown
9510
9511 case $host_os in
9512 aix3*)
9513 version_type=linux
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9515 shlibpath_var=LIBPATH
9516
9517 # AIX 3 has no versioning support, so we append a major version to the name.
9518 soname_spec='${libname}${release}${shared_ext}$major'
9519 ;;
9520
9521 aix[4-9]*)
9522 version_type=linux
9523 need_lib_prefix=no
9524 need_version=no
9525 hardcode_into_libs=yes
9526 if test "$host_cpu" = ia64; then
9527 # AIX 5 supports IA64
9528 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9529 shlibpath_var=LD_LIBRARY_PATH
9530 else
9531 # With GCC up to 2.95.x, collect2 would create an import file
9532 # for dependence libraries. The import file would start with
9533 # the line `#! .'. This would cause the generated library to
9534 # depend on `.', always an invalid library. This was fixed in
9535 # development snapshots of GCC prior to 3.0.
9536 case $host_os in
9537 aix4 | aix4.[01] | aix4.[01].*)
9538 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9539 echo ' yes '
9540 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9541 :
9542 else
9543 can_build_shared=no
9544 fi
9545 ;;
9546 esac
9547 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9548 # soname into executable. Probably we can add versioning support to
9549 # collect2, so additional links can be useful in future.
9550 if test "$aix_use_runtimelinking" = yes; then
9551 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9552 # instead of lib<name>.a to let people know that these are not
9553 # typical AIX shared libraries.
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555 else
9556 # We preserve .a as extension for shared libraries through AIX4.2
9557 # and later when we are not doing run time linking.
9558 library_names_spec='${libname}${release}.a $libname.a'
9559 soname_spec='${libname}${release}${shared_ext}$major'
9560 fi
9561 shlibpath_var=LIBPATH
9562 fi
9563 ;;
9564
9565 amigaos*)
9566 case $host_cpu in
9567 powerpc)
9568 # Since July 2007 AmigaOS4 officially supports .so libraries.
9569 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 ;;
9572 m68k)
9573 library_names_spec='$libname.ixlibrary $libname.a'
9574 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9575 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9576 ;;
9577 esac
9578 ;;
9579
9580 beos*)
9581 library_names_spec='${libname}${shared_ext}'
9582 dynamic_linker="$host_os ld.so"
9583 shlibpath_var=LIBRARY_PATH
9584 ;;
9585
9586 bsdi[45]*)
9587 version_type=linux
9588 need_version=no
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9592 shlibpath_var=LD_LIBRARY_PATH
9593 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9594 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9595 # the default ld.so.conf also contains /usr/contrib/lib and
9596 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9597 # libtool to hard-code these into programs
9598 ;;
9599
9600 cygwin* | mingw* | pw32* | cegcc*)
9601 version_type=windows
9602 shrext_cmds=".dll"
9603 need_version=no
9604 need_lib_prefix=no
9605
9606 case $GCC,$host_os in
9607 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9608 library_names_spec='$libname.dll.a'
9609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9610 postinstall_cmds='base_file=`basename \${file}`~
9611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9612 dldir=$destdir/`dirname \$dlpath`~
9613 test -d \$dldir || mkdir -p \$dldir~
9614 $install_prog $dir/$dlname \$dldir/$dlname~
9615 chmod a+x \$dldir/$dlname~
9616 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9617 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9618 fi'
9619 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9620 dlpath=$dir/\$dldll~
9621 $RM \$dlpath'
9622 shlibpath_overrides_runpath=yes
9623
9624 case $host_os in
9625 cygwin*)
9626 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9627 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9628 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9629 ;;
9630 mingw* | cegcc*)
9631 # MinGW DLLs use traditional 'lib' prefix
9632 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9633 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9634 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9635 # It is most probably a Windows format PATH printed by
9636 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9637 # path with ; separators, and with drive letters. We can handle the
9638 # drive letters (cygwin fileutils understands them), so leave them,
9639 # especially as we might pass files found there to a mingw objdump,
9640 # which wouldn't understand a cygwinified path. Ahh.
9641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9642 else
9643 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9644 fi
9645 ;;
9646 pw32*)
9647 # pw32 DLLs use 'pw' prefix rather than 'lib'
9648 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9649 ;;
9650 esac
9651 ;;
9652
9653 *)
9654 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9655 ;;
9656 esac
9657 dynamic_linker='Win32 ld.exe'
9658 # FIXME: first we should search . and the directory the executable is in
9659 shlibpath_var=PATH
9660 ;;
9661
9662 darwin* | rhapsody*)
9663 dynamic_linker="$host_os dyld"
9664 version_type=darwin
9665 need_lib_prefix=no
9666 need_version=no
9667 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9668 soname_spec='${libname}${release}${major}$shared_ext'
9669 shlibpath_overrides_runpath=yes
9670 shlibpath_var=DYLD_LIBRARY_PATH
9671 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9672
9673 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9674 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9675 ;;
9676
9677 dgux*)
9678 version_type=linux
9679 need_lib_prefix=no
9680 need_version=no
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9682 soname_spec='${libname}${release}${shared_ext}$major'
9683 shlibpath_var=LD_LIBRARY_PATH
9684 ;;
9685
9686 freebsd1*)
9687 dynamic_linker=no
9688 ;;
9689
9690 freebsd* | dragonfly*)
9691 # DragonFly does not have aout. When/if they implement a new
9692 # versioning mechanism, adjust this.
9693 if test -x /usr/bin/objformat; then
9694 objformat=`/usr/bin/objformat`
9695 else
9696 case $host_os in
9697 freebsd[123]*) objformat=aout ;;
9698 *) objformat=elf ;;
9699 esac
9700 fi
9701 version_type=freebsd-$objformat
9702 case $version_type in
9703 freebsd-elf*)
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9705 need_version=no
9706 need_lib_prefix=no
9707 ;;
9708 freebsd-*)
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9710 need_version=yes
9711 ;;
9712 esac
9713 shlibpath_var=LD_LIBRARY_PATH
9714 case $host_os in
9715 freebsd2*)
9716 shlibpath_overrides_runpath=yes
9717 ;;
9718 freebsd3.[01]* | freebsdelf3.[01]*)
9719 shlibpath_overrides_runpath=yes
9720 hardcode_into_libs=yes
9721 ;;
9722 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9723 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9724 shlibpath_overrides_runpath=no
9725 hardcode_into_libs=yes
9726 ;;
9727 *) # from 4.6 on, and DragonFly
9728 shlibpath_overrides_runpath=yes
9729 hardcode_into_libs=yes
9730 ;;
9731 esac
9732 ;;
9733
9734 gnu*)
9735 version_type=linux
9736 need_lib_prefix=no
9737 need_version=no
9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9739 soname_spec='${libname}${release}${shared_ext}$major'
9740 shlibpath_var=LD_LIBRARY_PATH
9741 hardcode_into_libs=yes
9742 ;;
9743
9744 hpux9* | hpux10* | hpux11*)
9745 # Give a soname corresponding to the major version so that dld.sl refuses to
9746 # link against other versions.
9747 version_type=sunos
9748 need_lib_prefix=no
9749 need_version=no
9750 case $host_cpu in
9751 ia64*)
9752 shrext_cmds='.so'
9753 hardcode_into_libs=yes
9754 dynamic_linker="$host_os dld.so"
9755 shlibpath_var=LD_LIBRARY_PATH
9756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9758 soname_spec='${libname}${release}${shared_ext}$major'
9759 if test "X$HPUX_IA64_MODE" = X32; then
9760 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9761 else
9762 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9763 fi
9764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9765 ;;
9766 hppa*64*)
9767 shrext_cmds='.sl'
9768 hardcode_into_libs=yes
9769 dynamic_linker="$host_os dld.sl"
9770 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9776 ;;
9777 *)
9778 shrext_cmds='.sl'
9779 dynamic_linker="$host_os dld.sl"
9780 shlibpath_var=SHLIB_PATH
9781 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 ;;
9785 esac
9786 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9787 postinstall_cmds='chmod 555 $lib'
9788 ;;
9789
9790 interix[3-9]*)
9791 version_type=linux
9792 need_lib_prefix=no
9793 need_version=no
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9795 soname_spec='${libname}${release}${shared_ext}$major'
9796 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9797 shlibpath_var=LD_LIBRARY_PATH
9798 shlibpath_overrides_runpath=no
9799 hardcode_into_libs=yes
9800 ;;
9801
9802 irix5* | irix6* | nonstopux*)
9803 case $host_os in
9804 nonstopux*) version_type=nonstopux ;;
9805 *)
9806 if test "$lt_cv_prog_gnu_ld" = yes; then
9807 version_type=linux
9808 else
9809 version_type=irix
9810 fi ;;
9811 esac
9812 need_lib_prefix=no
9813 need_version=no
9814 soname_spec='${libname}${release}${shared_ext}$major'
9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9816 case $host_os in
9817 irix5* | nonstopux*)
9818 libsuff= shlibsuff=
9819 ;;
9820 *)
9821 case $LD in # libtool.m4 will add one of these switches to LD
9822 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9823 libsuff= shlibsuff= libmagic=32-bit;;
9824 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9825 libsuff=32 shlibsuff=N32 libmagic=N32;;
9826 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9827 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9828 *) libsuff= shlibsuff= libmagic=never-match;;
9829 esac
9830 ;;
9831 esac
9832 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9833 shlibpath_overrides_runpath=no
9834 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9835 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9836 hardcode_into_libs=yes
9837 ;;
9838
9839 # No shared lib support for Linux oldld, aout, or coff.
9840 linux*oldld* | linux*aout* | linux*coff*)
9841 dynamic_linker=no
9842 ;;
9843
9844 # This must be Linux ELF.
9845 linux* | k*bsd*-gnu)
9846 version_type=linux
9847 need_lib_prefix=no
9848 need_version=no
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850 soname_spec='${libname}${release}${shared_ext}$major'
9851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 shlibpath_overrides_runpath=no
9854 # Some binutils ld are patched to set DT_RUNPATH
9855 save_LDFLAGS=$LDFLAGS
9856 save_libdir=$libdir
9857 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9858 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9859 cat >conftest.$ac_ext <<_ACEOF
9860 /* confdefs.h. */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9865
9866 int
9867 main ()
9868 {
9869
9870 ;
9871 return 0;
9872 }
9873 _ACEOF
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (ac_try="$ac_link"
9876 case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879 esac
9880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9881 $as_echo "$ac_try_echo") >&5
9882 (eval "$ac_link") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest$ac_exeext && {
9892 test "$cross_compiling" = yes ||
9893 $as_test_x conftest$ac_exeext
9894 }; then
9895 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9896 shlibpath_overrides_runpath=yes
9897 fi
9898
9899 else
9900 $as_echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903
9904 fi
9905
9906 rm -rf conftest.dSYM
9907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9908 conftest$ac_exeext conftest.$ac_ext
9909 LDFLAGS=$save_LDFLAGS
9910 libdir=$save_libdir
9911
9912 # This implies no fast_install, which is unacceptable.
9913 # Some rework will be needed to allow for fast_install
9914 # before this can be enabled.
9915 hardcode_into_libs=yes
9916
9917 # Append ld.so.conf contents to the search path
9918 if test -f /etc/ld.so.conf; then
9919 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9920 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9921 fi
9922
9923 # We used to test for /lib/ld.so.1 and disable shared libraries on
9924 # powerpc, because MkLinux only supported shared libraries with the
9925 # GNU dynamic linker. Since this was broken with cross compilers,
9926 # most powerpc-linux boxes support dynamic linking these days and
9927 # people can always --disable-shared, the test was removed, and we
9928 # assume the GNU/Linux dynamic linker is in use.
9929 dynamic_linker='GNU/Linux ld.so'
9930 ;;
9931
9932 netbsdelf*-gnu)
9933 version_type=linux
9934 need_lib_prefix=no
9935 need_version=no
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9937 soname_spec='${libname}${release}${shared_ext}$major'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=no
9940 hardcode_into_libs=yes
9941 dynamic_linker='NetBSD ld.elf_so'
9942 ;;
9943
9944 netbsd*)
9945 version_type=sunos
9946 need_lib_prefix=no
9947 need_version=no
9948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9951 dynamic_linker='NetBSD (a.out) ld.so'
9952 else
9953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9954 soname_spec='${libname}${release}${shared_ext}$major'
9955 dynamic_linker='NetBSD ld.elf_so'
9956 fi
9957 shlibpath_var=LD_LIBRARY_PATH
9958 shlibpath_overrides_runpath=yes
9959 hardcode_into_libs=yes
9960 ;;
9961
9962 newsos6)
9963 version_type=linux
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 shlibpath_overrides_runpath=yes
9967 ;;
9968
9969 *nto* | *qnx*)
9970 version_type=qnx
9971 need_lib_prefix=no
9972 need_version=no
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9974 soname_spec='${libname}${release}${shared_ext}$major'
9975 shlibpath_var=LD_LIBRARY_PATH
9976 shlibpath_overrides_runpath=no
9977 hardcode_into_libs=yes
9978 dynamic_linker='ldqnx.so'
9979 ;;
9980
9981 openbsd*)
9982 version_type=sunos
9983 sys_lib_dlsearch_path_spec="/usr/lib"
9984 need_lib_prefix=no
9985 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9986 case $host_os in
9987 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9988 *) need_version=no ;;
9989 esac
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9992 shlibpath_var=LD_LIBRARY_PATH
9993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9994 case $host_os in
9995 openbsd2.[89] | openbsd2.[89].*)
9996 shlibpath_overrides_runpath=no
9997 ;;
9998 *)
9999 shlibpath_overrides_runpath=yes
10000 ;;
10001 esac
10002 else
10003 shlibpath_overrides_runpath=yes
10004 fi
10005 ;;
10006
10007 os2*)
10008 libname_spec='$name'
10009 shrext_cmds=".dll"
10010 need_lib_prefix=no
10011 library_names_spec='$libname${shared_ext} $libname.a'
10012 dynamic_linker='OS/2 ld.exe'
10013 shlibpath_var=LIBPATH
10014 ;;
10015
10016 osf3* | osf4* | osf5*)
10017 version_type=osf
10018 need_lib_prefix=no
10019 need_version=no
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10025 ;;
10026
10027 rdos*)
10028 dynamic_linker=no
10029 ;;
10030
10031 solaris*)
10032 version_type=linux
10033 need_lib_prefix=no
10034 need_version=no
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 shlibpath_var=LD_LIBRARY_PATH
10038 shlibpath_overrides_runpath=yes
10039 hardcode_into_libs=yes
10040 # ldd complains unless libraries are executable
10041 postinstall_cmds='chmod +x $lib'
10042 ;;
10043
10044 sunos4*)
10045 version_type=sunos
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=yes
10050 if test "$with_gnu_ld" = yes; then
10051 need_lib_prefix=no
10052 fi
10053 need_version=yes
10054 ;;
10055
10056 sysv4 | sysv4.3*)
10057 version_type=linux
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 case $host_vendor in
10062 sni)
10063 shlibpath_overrides_runpath=no
10064 need_lib_prefix=no
10065 runpath_var=LD_RUN_PATH
10066 ;;
10067 siemens)
10068 need_lib_prefix=no
10069 ;;
10070 motorola)
10071 need_lib_prefix=no
10072 need_version=no
10073 shlibpath_overrides_runpath=no
10074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10075 ;;
10076 esac
10077 ;;
10078
10079 sysv4*MP*)
10080 if test -d /usr/nec ;then
10081 version_type=linux
10082 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10083 soname_spec='$libname${shared_ext}.$major'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 fi
10086 ;;
10087
10088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10089 version_type=freebsd-elf
10090 need_lib_prefix=no
10091 need_version=no
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 shlibpath_var=LD_LIBRARY_PATH
10095 shlibpath_overrides_runpath=yes
10096 hardcode_into_libs=yes
10097 if test "$with_gnu_ld" = yes; then
10098 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10099 else
10100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10101 case $host_os in
10102 sco3.2v5*)
10103 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10104 ;;
10105 esac
10106 fi
10107 sys_lib_dlsearch_path_spec='/usr/lib'
10108 ;;
10109
10110 tpf*)
10111 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10112 version_type=linux
10113 need_lib_prefix=no
10114 need_version=no
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 shlibpath_overrides_runpath=no
10118 hardcode_into_libs=yes
10119 ;;
10120
10121 uts4*)
10122 version_type=linux
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 ;;
10127
10128 *)
10129 dynamic_linker=no
10130 ;;
10131 esac
10132 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10133 $as_echo "$dynamic_linker" >&6; }
10134 test "$dynamic_linker" = no && can_build_shared=no
10135
10136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10137 if test "$GCC" = yes; then
10138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10139 fi
10140
10141 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10142 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10143 fi
10144 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10145 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10146 fi
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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10236 hardcode_action=
10237 if test -n "$hardcode_libdir_flag_spec" ||
10238 test -n "$runpath_var" ||
10239 test "X$hardcode_automatic" = "Xyes" ; then
10240
10241 # We can hardcode non-existent directories.
10242 if test "$hardcode_direct" != no &&
10243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10244 # have to relink, otherwise we might link with an installed library
10245 # when we should be linking with a yet-to-be-installed one
10246 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10247 test "$hardcode_minus_L" != no; then
10248 # Linking always hardcodes the temporary library directory.
10249 hardcode_action=relink
10250 else
10251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10252 hardcode_action=immediate
10253 fi
10254 else
10255 # We cannot hardcode anything, or else we can only hardcode existing
10256 # directories.
10257 hardcode_action=unsupported
10258 fi
10259 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10260 $as_echo "$hardcode_action" >&6; }
10261
10262 if test "$hardcode_action" = relink ||
10263 test "$inherit_rpath" = yes; then
10264 # Fast installation is not supported
10265 enable_fast_install=no
10266 elif test "$shlibpath_overrides_runpath" = yes ||
10267 test "$enable_shared" = no; then
10268 # Fast installation is not necessary
10269 enable_fast_install=needless
10270 fi
10271
10272
10273
10274
10275
10276
10277 if test "x$enable_dlopen" != xyes; then
10278 enable_dlopen=unknown
10279 enable_dlopen_self=unknown
10280 enable_dlopen_self_static=unknown
10281 else
10282 lt_cv_dlopen=no
10283 lt_cv_dlopen_libs=
10284
10285 case $host_os in
10286 beos*)
10287 lt_cv_dlopen="load_add_on"
10288 lt_cv_dlopen_libs=
10289 lt_cv_dlopen_self=yes
10290 ;;
10291
10292 mingw* | pw32* | cegcc*)
10293 lt_cv_dlopen="LoadLibrary"
10294 lt_cv_dlopen_libs=
10295 ;;
10296
10297 cygwin*)
10298 lt_cv_dlopen="dlopen"
10299 lt_cv_dlopen_libs=
10300 ;;
10301
10302 darwin*)
10303 # if libdl is installed we need to link against it
10304 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10307 $as_echo_n "(cached) " >&6
10308 else
10309 ac_check_lib_save_LIBS=$LIBS
10310 LIBS="-ldl $LIBS"
10311 cat >conftest.$ac_ext <<_ACEOF
10312 /* confdefs.h. */
10313 _ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h. */
10317
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10321 #ifdef __cplusplus
10322 extern "C"
10323 #endif
10324 char dlopen ();
10325 int
10326 main ()
10327 {
10328 return dlopen ();
10329 ;
10330 return 0;
10331 }
10332 _ACEOF
10333 rm -f conftest.$ac_objext conftest$ac_exeext
10334 if { (ac_try="$ac_link"
10335 case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10338 esac
10339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10340 $as_echo "$ac_try_echo") >&5
10341 (eval "$ac_link") 2>conftest.er1
10342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && {
10348 test -z "$ac_c_werror_flag" ||
10349 test ! -s conftest.err
10350 } && test -s conftest$ac_exeext && {
10351 test "$cross_compiling" = yes ||
10352 $as_test_x conftest$ac_exeext
10353 }; then
10354 ac_cv_lib_dl_dlopen=yes
10355 else
10356 $as_echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359 ac_cv_lib_dl_dlopen=no
10360 fi
10361
10362 rm -rf conftest.dSYM
10363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10364 conftest$ac_exeext conftest.$ac_ext
10365 LIBS=$ac_check_lib_save_LIBS
10366 fi
10367 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10368 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10369 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10371 else
10372
10373 lt_cv_dlopen="dyld"
10374 lt_cv_dlopen_libs=
10375 lt_cv_dlopen_self=yes
10376
10377 fi
10378
10379 ;;
10380
10381 *)
10382 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10383 $as_echo_n "checking for shl_load... " >&6; }
10384 if test "${ac_cv_func_shl_load+set}" = set; then
10385 $as_echo_n "(cached) " >&6
10386 else
10387 cat >conftest.$ac_ext <<_ACEOF
10388 /* confdefs.h. */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10393 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10395 #define shl_load innocuous_shl_load
10396
10397 /* System header to define __stub macros and hopefully few prototypes,
10398 which can conflict with char shl_load (); below.
10399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10400 <limits.h> exists even on freestanding compilers. */
10401
10402 #ifdef __STDC__
10403 # include <limits.h>
10404 #else
10405 # include <assert.h>
10406 #endif
10407
10408 #undef shl_load
10409
10410 /* Override any GCC internal prototype to avoid an error.
10411 Use char because int might match the return type of a GCC
10412 builtin and then its argument prototype would still apply. */
10413 #ifdef __cplusplus
10414 extern "C"
10415 #endif
10416 char shl_load ();
10417 /* The GNU C library defines this for functions which it implements
10418 to always fail with ENOSYS. Some functions are actually named
10419 something starting with __ and the normal name is an alias. */
10420 #if defined __stub_shl_load || defined __stub___shl_load
10421 choke me
10422 #endif
10423
10424 int
10425 main ()
10426 {
10427 return shl_load ();
10428 ;
10429 return 0;
10430 }
10431 _ACEOF
10432 rm -f conftest.$ac_objext conftest$ac_exeext
10433 if { (ac_try="$ac_link"
10434 case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437 esac
10438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10439 $as_echo "$ac_try_echo") >&5
10440 (eval "$ac_link") 2>conftest.er1
10441 ac_status=$?
10442 grep -v '^ *+' conftest.er1 >conftest.err
10443 rm -f conftest.er1
10444 cat conftest.err >&5
10445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && {
10447 test -z "$ac_c_werror_flag" ||
10448 test ! -s conftest.err
10449 } && test -s conftest$ac_exeext && {
10450 test "$cross_compiling" = yes ||
10451 $as_test_x conftest$ac_exeext
10452 }; then
10453 ac_cv_func_shl_load=yes
10454 else
10455 $as_echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10457
10458 ac_cv_func_shl_load=no
10459 fi
10460
10461 rm -rf conftest.dSYM
10462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10463 conftest$ac_exeext conftest.$ac_ext
10464 fi
10465 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10466 $as_echo "$ac_cv_func_shl_load" >&6; }
10467 if test "x$ac_cv_func_shl_load" = x""yes; then
10468 lt_cv_dlopen="shl_load"
10469 else
10470 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10471 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10472 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10473 $as_echo_n "(cached) " >&6
10474 else
10475 ac_check_lib_save_LIBS=$LIBS
10476 LIBS="-ldld $LIBS"
10477 cat >conftest.$ac_ext <<_ACEOF
10478 /* confdefs.h. */
10479 _ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483
10484 /* Override any GCC internal prototype to avoid an error.
10485 Use char because int might match the return type of a GCC
10486 builtin and then its argument prototype would still apply. */
10487 #ifdef __cplusplus
10488 extern "C"
10489 #endif
10490 char shl_load ();
10491 int
10492 main ()
10493 {
10494 return shl_load ();
10495 ;
10496 return 0;
10497 }
10498 _ACEOF
10499 rm -f conftest.$ac_objext conftest$ac_exeext
10500 if { (ac_try="$ac_link"
10501 case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10504 esac
10505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10506 $as_echo "$ac_try_echo") >&5
10507 (eval "$ac_link") 2>conftest.er1
10508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && {
10514 test -z "$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10516 } && test -s conftest$ac_exeext && {
10517 test "$cross_compiling" = yes ||
10518 $as_test_x conftest$ac_exeext
10519 }; then
10520 ac_cv_lib_dld_shl_load=yes
10521 else
10522 $as_echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10524
10525 ac_cv_lib_dld_shl_load=no
10526 fi
10527
10528 rm -rf conftest.dSYM
10529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10530 conftest$ac_exeext conftest.$ac_ext
10531 LIBS=$ac_check_lib_save_LIBS
10532 fi
10533 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10534 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10535 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10536 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10537 else
10538 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10539 $as_echo_n "checking for dlopen... " >&6; }
10540 if test "${ac_cv_func_dlopen+set}" = set; then
10541 $as_echo_n "(cached) " >&6
10542 else
10543 cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h. */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10551 #define dlopen innocuous_dlopen
10552
10553 /* System header to define __stub macros and hopefully few prototypes,
10554 which can conflict with char dlopen (); below.
10555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10556 <limits.h> exists even on freestanding compilers. */
10557
10558 #ifdef __STDC__
10559 # include <limits.h>
10560 #else
10561 # include <assert.h>
10562 #endif
10563
10564 #undef dlopen
10565
10566 /* Override any GCC internal prototype to avoid an error.
10567 Use char because int might match the return type of a GCC
10568 builtin and then its argument prototype would still apply. */
10569 #ifdef __cplusplus
10570 extern "C"
10571 #endif
10572 char dlopen ();
10573 /* The GNU C library defines this for functions which it implements
10574 to always fail with ENOSYS. Some functions are actually named
10575 something starting with __ and the normal name is an alias. */
10576 #if defined __stub_dlopen || defined __stub___dlopen
10577 choke me
10578 #endif
10579
10580 int
10581 main ()
10582 {
10583 return dlopen ();
10584 ;
10585 return 0;
10586 }
10587 _ACEOF
10588 rm -f conftest.$ac_objext conftest$ac_exeext
10589 if { (ac_try="$ac_link"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593 esac
10594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10595 $as_echo "$ac_try_echo") >&5
10596 (eval "$ac_link") 2>conftest.er1
10597 ac_status=$?
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
10601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && {
10603 test -z "$ac_c_werror_flag" ||
10604 test ! -s conftest.err
10605 } && test -s conftest$ac_exeext && {
10606 test "$cross_compiling" = yes ||
10607 $as_test_x conftest$ac_exeext
10608 }; then
10609 ac_cv_func_dlopen=yes
10610 else
10611 $as_echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10613
10614 ac_cv_func_dlopen=no
10615 fi
10616
10617 rm -rf conftest.dSYM
10618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10619 conftest$ac_exeext conftest.$ac_ext
10620 fi
10621 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10622 $as_echo "$ac_cv_func_dlopen" >&6; }
10623 if test "x$ac_cv_func_dlopen" = x""yes; then
10624 lt_cv_dlopen="dlopen"
10625 else
10626 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10629 $as_echo_n "(cached) " >&6
10630 else
10631 ac_check_lib_save_LIBS=$LIBS
10632 LIBS="-ldl $LIBS"
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h. */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639
10640 /* Override any GCC internal prototype to avoid an error.
10641 Use char because int might match the return type of a GCC
10642 builtin and then its argument prototype would still apply. */
10643 #ifdef __cplusplus
10644 extern "C"
10645 #endif
10646 char dlopen ();
10647 int
10648 main ()
10649 {
10650 return dlopen ();
10651 ;
10652 return 0;
10653 }
10654 _ACEOF
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (ac_try="$ac_link"
10657 case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660 esac
10661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10662 $as_echo "$ac_try_echo") >&5
10663 (eval "$ac_link") 2>conftest.er1
10664 ac_status=$?
10665 grep -v '^ *+' conftest.er1 >conftest.err
10666 rm -f conftest.er1
10667 cat conftest.err >&5
10668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && {
10670 test -z "$ac_c_werror_flag" ||
10671 test ! -s conftest.err
10672 } && test -s conftest$ac_exeext && {
10673 test "$cross_compiling" = yes ||
10674 $as_test_x conftest$ac_exeext
10675 }; then
10676 ac_cv_lib_dl_dlopen=yes
10677 else
10678 $as_echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10680
10681 ac_cv_lib_dl_dlopen=no
10682 fi
10683
10684 rm -rf conftest.dSYM
10685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10686 conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10688 fi
10689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10691 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10693 else
10694 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10695 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10696 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10697 $as_echo_n "(cached) " >&6
10698 else
10699 ac_check_lib_save_LIBS=$LIBS
10700 LIBS="-lsvld $LIBS"
10701 cat >conftest.$ac_ext <<_ACEOF
10702 /* confdefs.h. */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707
10708 /* Override any GCC internal prototype to avoid an error.
10709 Use char because int might match the return type of a GCC
10710 builtin and then its argument prototype would still apply. */
10711 #ifdef __cplusplus
10712 extern "C"
10713 #endif
10714 char dlopen ();
10715 int
10716 main ()
10717 {
10718 return dlopen ();
10719 ;
10720 return 0;
10721 }
10722 _ACEOF
10723 rm -f conftest.$ac_objext conftest$ac_exeext
10724 if { (ac_try="$ac_link"
10725 case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10728 esac
10729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10730 $as_echo "$ac_try_echo") >&5
10731 (eval "$ac_link") 2>conftest.er1
10732 ac_status=$?
10733 grep -v '^ *+' conftest.er1 >conftest.err
10734 rm -f conftest.er1
10735 cat conftest.err >&5
10736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } && {
10738 test -z "$ac_c_werror_flag" ||
10739 test ! -s conftest.err
10740 } && test -s conftest$ac_exeext && {
10741 test "$cross_compiling" = yes ||
10742 $as_test_x conftest$ac_exeext
10743 }; then
10744 ac_cv_lib_svld_dlopen=yes
10745 else
10746 $as_echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749 ac_cv_lib_svld_dlopen=no
10750 fi
10751
10752 rm -rf conftest.dSYM
10753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10754 conftest$ac_exeext conftest.$ac_ext
10755 LIBS=$ac_check_lib_save_LIBS
10756 fi
10757 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10758 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10759 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10761 else
10762 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10763 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10764 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10765 $as_echo_n "(cached) " >&6
10766 else
10767 ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-ldld $LIBS"
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h. */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775
10776 /* Override any GCC internal prototype to avoid an error.
10777 Use char because int might match the return type of a GCC
10778 builtin and then its argument prototype would still apply. */
10779 #ifdef __cplusplus
10780 extern "C"
10781 #endif
10782 char dld_link ();
10783 int
10784 main ()
10785 {
10786 return dld_link ();
10787 ;
10788 return 0;
10789 }
10790 _ACEOF
10791 rm -f conftest.$ac_objext conftest$ac_exeext
10792 if { (ac_try="$ac_link"
10793 case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10796 esac
10797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10798 $as_echo "$ac_try_echo") >&5
10799 (eval "$ac_link") 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest$ac_exeext && {
10809 test "$cross_compiling" = yes ||
10810 $as_test_x conftest$ac_exeext
10811 }; then
10812 ac_cv_lib_dld_dld_link=yes
10813 else
10814 $as_echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10816
10817 ac_cv_lib_dld_dld_link=no
10818 fi
10819
10820 rm -rf conftest.dSYM
10821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10822 conftest$ac_exeext conftest.$ac_ext
10823 LIBS=$ac_check_lib_save_LIBS
10824 fi
10825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10826 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10827 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10828 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10829 fi
10830
10831
10832 fi
10833
10834
10835 fi
10836
10837
10838 fi
10839
10840
10841 fi
10842
10843
10844 fi
10845
10846 ;;
10847 esac
10848
10849 if test "x$lt_cv_dlopen" != xno; then
10850 enable_dlopen=yes
10851 else
10852 enable_dlopen=no
10853 fi
10854
10855 case $lt_cv_dlopen in
10856 dlopen)
10857 save_CPPFLAGS="$CPPFLAGS"
10858 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10859
10860 save_LDFLAGS="$LDFLAGS"
10861 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10862
10863 save_LIBS="$LIBS"
10864 LIBS="$lt_cv_dlopen_libs $LIBS"
10865
10866 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10867 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10868 if test "${lt_cv_dlopen_self+set}" = set; then
10869 $as_echo_n "(cached) " >&6
10870 else
10871 if test "$cross_compiling" = yes; then :
10872 lt_cv_dlopen_self=cross
10873 else
10874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10875 lt_status=$lt_dlunknown
10876 cat > conftest.$ac_ext <<_LT_EOF
10877 #line 10878 "configure"
10878 #include "confdefs.h"
10879
10880 #if HAVE_DLFCN_H
10881 #include <dlfcn.h>
10882 #endif
10883
10884 #include <stdio.h>
10885
10886 #ifdef RTLD_GLOBAL
10887 # define LT_DLGLOBAL RTLD_GLOBAL
10888 #else
10889 # ifdef DL_GLOBAL
10890 # define LT_DLGLOBAL DL_GLOBAL
10891 # else
10892 # define LT_DLGLOBAL 0
10893 # endif
10894 #endif
10895
10896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10897 find out it does not work in some platform. */
10898 #ifndef LT_DLLAZY_OR_NOW
10899 # ifdef RTLD_LAZY
10900 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10901 # else
10902 # ifdef DL_LAZY
10903 # define LT_DLLAZY_OR_NOW DL_LAZY
10904 # else
10905 # ifdef RTLD_NOW
10906 # define LT_DLLAZY_OR_NOW RTLD_NOW
10907 # else
10908 # ifdef DL_NOW
10909 # define LT_DLLAZY_OR_NOW DL_NOW
10910 # else
10911 # define LT_DLLAZY_OR_NOW 0
10912 # endif
10913 # endif
10914 # endif
10915 # endif
10916 #endif
10917
10918 void fnord() { int i=42;}
10919 int main ()
10920 {
10921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10922 int status = $lt_dlunknown;
10923
10924 if (self)
10925 {
10926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10927 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10928 /* dlclose (self); */
10929 }
10930 else
10931 puts (dlerror ());
10932
10933 return status;
10934 }
10935 _LT_EOF
10936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10937 (eval $ac_link) 2>&5
10938 ac_status=$?
10939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10941 (./conftest; exit; ) >&5 2>/dev/null
10942 lt_status=$?
10943 case x$lt_status in
10944 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10945 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10946 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10947 esac
10948 else :
10949 # compilation failed
10950 lt_cv_dlopen_self=no
10951 fi
10952 fi
10953 rm -fr conftest*
10954
10955
10956 fi
10957 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10958 $as_echo "$lt_cv_dlopen_self" >&6; }
10959
10960 if test "x$lt_cv_dlopen_self" = xyes; then
10961 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10962 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10963 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10964 if test "${lt_cv_dlopen_self_static+set}" = set; then
10965 $as_echo_n "(cached) " >&6
10966 else
10967 if test "$cross_compiling" = yes; then :
10968 lt_cv_dlopen_self_static=cross
10969 else
10970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10971 lt_status=$lt_dlunknown
10972 cat > conftest.$ac_ext <<_LT_EOF
10973 #line 10974 "configure"
10974 #include "confdefs.h"
10975
10976 #if HAVE_DLFCN_H
10977 #include <dlfcn.h>
10978 #endif
10979
10980 #include <stdio.h>
10981
10982 #ifdef RTLD_GLOBAL
10983 # define LT_DLGLOBAL RTLD_GLOBAL
10984 #else
10985 # ifdef DL_GLOBAL
10986 # define LT_DLGLOBAL DL_GLOBAL
10987 # else
10988 # define LT_DLGLOBAL 0
10989 # endif
10990 #endif
10991
10992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10993 find out it does not work in some platform. */
10994 #ifndef LT_DLLAZY_OR_NOW
10995 # ifdef RTLD_LAZY
10996 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10997 # else
10998 # ifdef DL_LAZY
10999 # define LT_DLLAZY_OR_NOW DL_LAZY
11000 # else
11001 # ifdef RTLD_NOW
11002 # define LT_DLLAZY_OR_NOW RTLD_NOW
11003 # else
11004 # ifdef DL_NOW
11005 # define LT_DLLAZY_OR_NOW DL_NOW
11006 # else
11007 # define LT_DLLAZY_OR_NOW 0
11008 # endif
11009 # endif
11010 # endif
11011 # endif
11012 #endif
11013
11014 void fnord() { int i=42;}
11015 int main ()
11016 {
11017 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11018 int status = $lt_dlunknown;
11019
11020 if (self)
11021 {
11022 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11023 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11024 /* dlclose (self); */
11025 }
11026 else
11027 puts (dlerror ());
11028
11029 return status;
11030 }
11031 _LT_EOF
11032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11033 (eval $ac_link) 2>&5
11034 ac_status=$?
11035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11037 (./conftest; exit; ) >&5 2>/dev/null
11038 lt_status=$?
11039 case x$lt_status in
11040 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11041 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11042 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11043 esac
11044 else :
11045 # compilation failed
11046 lt_cv_dlopen_self_static=no
11047 fi
11048 fi
11049 rm -fr conftest*
11050
11051
11052 fi
11053 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11054 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11055 fi
11056
11057 CPPFLAGS="$save_CPPFLAGS"
11058 LDFLAGS="$save_LDFLAGS"
11059 LIBS="$save_LIBS"
11060 ;;
11061 esac
11062
11063 case $lt_cv_dlopen_self in
11064 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11065 *) enable_dlopen_self=unknown ;;
11066 esac
11067
11068 case $lt_cv_dlopen_self_static in
11069 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11070 *) enable_dlopen_self_static=unknown ;;
11071 esac
11072 fi
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090 striplib=
11091 old_striplib=
11092 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11093 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11094 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11095 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11096 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11097 { $as_echo "$as_me:$LINENO: result: yes" >&5
11098 $as_echo "yes" >&6; }
11099 else
11100 # FIXME - insert some real tests, host_os isn't really good enough
11101 case $host_os in
11102 darwin*)
11103 if test -n "$STRIP" ; then
11104 striplib="$STRIP -x"
11105 old_striplib="$STRIP -S"
11106 { $as_echo "$as_me:$LINENO: result: yes" >&5
11107 $as_echo "yes" >&6; }
11108 else
11109 { $as_echo "$as_me:$LINENO: result: no" >&5
11110 $as_echo "no" >&6; }
11111 fi
11112 ;;
11113 *)
11114 { $as_echo "$as_me:$LINENO: result: no" >&5
11115 $as_echo "no" >&6; }
11116 ;;
11117 esac
11118 fi
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131 # Report which library types will actually be built
11132 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11133 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11134 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11135 $as_echo "$can_build_shared" >&6; }
11136
11137 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11138 $as_echo_n "checking whether to build shared libraries... " >&6; }
11139 test "$can_build_shared" = "no" && enable_shared=no
11140
11141 # On AIX, shared libraries and static libraries use the same namespace, and
11142 # are all built from PIC.
11143 case $host_os in
11144 aix3*)
11145 test "$enable_shared" = yes && enable_static=no
11146 if test -n "$RANLIB"; then
11147 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11148 postinstall_cmds='$RANLIB $lib'
11149 fi
11150 ;;
11151
11152 aix[4-9]*)
11153 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11154 test "$enable_shared" = yes && enable_static=no
11155 fi
11156 ;;
11157 esac
11158 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11159 $as_echo "$enable_shared" >&6; }
11160
11161 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11162 $as_echo_n "checking whether to build static libraries... " >&6; }
11163 # Make sure either enable_shared or enable_static is yes.
11164 test "$enable_shared" = yes || enable_static=yes
11165 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11166 $as_echo "$enable_static" >&6; }
11167
11168
11169
11170
11171 fi
11172 ac_ext=c
11173 ac_cpp='$CPP $CPPFLAGS'
11174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11177
11178 CC="$lt_save_CC"
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192 ac_config_commands="$ac_config_commands libtool"
11193
11194
11195
11196
11197 # Only expand once:
11198
11199
11200 ac_ext=c
11201 ac_cpp='$CPP $CPPFLAGS'
11202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11205 if test -n "$ac_tool_prefix"; then
11206 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11207 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11209 $as_echo_n "checking for $ac_word... " >&6; }
11210 if test "${ac_cv_prog_CC+set}" = set; then
11211 $as_echo_n "(cached) " >&6
11212 else
11213 if test -n "$CC"; then
11214 ac_cv_prog_CC="$CC" # Let the user override the test.
11215 else
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11226 fi
11227 done
11228 done
11229 IFS=$as_save_IFS
11230
11231 fi
11232 fi
11233 CC=$ac_cv_prog_CC
11234 if test -n "$CC"; then
11235 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11236 $as_echo "$CC" >&6; }
11237 else
11238 { $as_echo "$as_me:$LINENO: result: no" >&5
11239 $as_echo "no" >&6; }
11240 fi
11241
11242
11243 fi
11244 if test -z "$ac_cv_prog_CC"; then
11245 ac_ct_CC=$CC
11246 # Extract the first word of "gcc", so it can be a program name with args.
11247 set dummy gcc; ac_word=$2
11248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11251 $as_echo_n "(cached) " >&6
11252 else
11253 if test -n "$ac_ct_CC"; then
11254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11255 else
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11258 do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11263 ac_cv_prog_ac_ct_CC="gcc"
11264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 break 2
11266 fi
11267 done
11268 done
11269 IFS=$as_save_IFS
11270
11271 fi
11272 fi
11273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11274 if test -n "$ac_ct_CC"; then
11275 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11276 $as_echo "$ac_ct_CC" >&6; }
11277 else
11278 { $as_echo "$as_me:$LINENO: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281
11282 if test "x$ac_ct_CC" = x; then
11283 CC=""
11284 else
11285 case $cross_compiling:$ac_tool_warned in
11286 yes:)
11287 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11289 ac_tool_warned=yes ;;
11290 esac
11291 CC=$ac_ct_CC
11292 fi
11293 else
11294 CC="$ac_cv_prog_CC"
11295 fi
11296
11297 if test -z "$CC"; then
11298 if test -n "$ac_tool_prefix"; then
11299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11300 set dummy ${ac_tool_prefix}cc; ac_word=$2
11301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if test "${ac_cv_prog_CC+set}" = set; then
11304 $as_echo_n "(cached) " >&6
11305 else
11306 if test -n "$CC"; then
11307 ac_cv_prog_CC="$CC" # Let the user override the test.
11308 else
11309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310 for as_dir in $PATH
11311 do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11316 ac_cv_prog_CC="${ac_tool_prefix}cc"
11317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11318 break 2
11319 fi
11320 done
11321 done
11322 IFS=$as_save_IFS
11323
11324 fi
11325 fi
11326 CC=$ac_cv_prog_CC
11327 if test -n "$CC"; then
11328 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11329 $as_echo "$CC" >&6; }
11330 else
11331 { $as_echo "$as_me:$LINENO: result: no" >&5
11332 $as_echo "no" >&6; }
11333 fi
11334
11335
11336 fi
11337 fi
11338 if test -z "$CC"; then
11339 # Extract the first word of "cc", so it can be a program name with args.
11340 set dummy cc; ac_word=$2
11341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11342 $as_echo_n "checking for $ac_word... " >&6; }
11343 if test "${ac_cv_prog_CC+set}" = set; then
11344 $as_echo_n "(cached) " >&6
11345 else
11346 if test -n "$CC"; then
11347 ac_cv_prog_CC="$CC" # Let the user override the test.
11348 else
11349 ac_prog_rejected=no
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11352 do
11353 IFS=$as_save_IFS
11354 test -z "$as_dir" && as_dir=.
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11358 ac_prog_rejected=yes
11359 continue
11360 fi
11361 ac_cv_prog_CC="cc"
11362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11364 fi
11365 done
11366 done
11367 IFS=$as_save_IFS
11368
11369 if test $ac_prog_rejected = yes; then
11370 # We found a bogon in the path, so make sure we never use it.
11371 set dummy $ac_cv_prog_CC
11372 shift
11373 if test $# != 0; then
11374 # We chose a different compiler from the bogus one.
11375 # However, it has the same basename, so the bogon will be chosen
11376 # first if we set CC to just the basename; use the full file name.
11377 shift
11378 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11379 fi
11380 fi
11381 fi
11382 fi
11383 CC=$ac_cv_prog_CC
11384 if test -n "$CC"; then
11385 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11386 $as_echo "$CC" >&6; }
11387 else
11388 { $as_echo "$as_me:$LINENO: result: no" >&5
11389 $as_echo "no" >&6; }
11390 fi
11391
11392
11393 fi
11394 if test -z "$CC"; then
11395 if test -n "$ac_tool_prefix"; then
11396 for ac_prog in cl.exe
11397 do
11398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11401 $as_echo_n "checking for $ac_word... " >&6; }
11402 if test "${ac_cv_prog_CC+set}" = set; then
11403 $as_echo_n "(cached) " >&6
11404 else
11405 if test -n "$CC"; then
11406 ac_cv_prog_CC="$CC" # Let the user override the test.
11407 else
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11410 do
11411 IFS=$as_save_IFS
11412 test -z "$as_dir" && as_dir=.
11413 for ac_exec_ext in '' $ac_executable_extensions; do
11414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 break 2
11418 fi
11419 done
11420 done
11421 IFS=$as_save_IFS
11422
11423 fi
11424 fi
11425 CC=$ac_cv_prog_CC
11426 if test -n "$CC"; then
11427 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11428 $as_echo "$CC" >&6; }
11429 else
11430 { $as_echo "$as_me:$LINENO: result: no" >&5
11431 $as_echo "no" >&6; }
11432 fi
11433
11434
11435 test -n "$CC" && break
11436 done
11437 fi
11438 if test -z "$CC"; then
11439 ac_ct_CC=$CC
11440 for ac_prog in cl.exe
11441 do
11442 # Extract the first word of "$ac_prog", so it can be a program name with args.
11443 set dummy $ac_prog; ac_word=$2
11444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11445 $as_echo_n "checking for $ac_word... " >&6; }
11446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11447 $as_echo_n "(cached) " >&6
11448 else
11449 if test -n "$ac_ct_CC"; then
11450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11451 else
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11454 do
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11459 ac_cv_prog_ac_ct_CC="$ac_prog"
11460 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 break 2
11462 fi
11463 done
11464 done
11465 IFS=$as_save_IFS
11466
11467 fi
11468 fi
11469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11470 if test -n "$ac_ct_CC"; then
11471 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11472 $as_echo "$ac_ct_CC" >&6; }
11473 else
11474 { $as_echo "$as_me:$LINENO: result: no" >&5
11475 $as_echo "no" >&6; }
11476 fi
11477
11478
11479 test -n "$ac_ct_CC" && break
11480 done
11481
11482 if test "x$ac_ct_CC" = x; then
11483 CC=""
11484 else
11485 case $cross_compiling:$ac_tool_warned in
11486 yes:)
11487 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11489 ac_tool_warned=yes ;;
11490 esac
11491 CC=$ac_ct_CC
11492 fi
11493 fi
11494
11495 fi
11496
11497
11498 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11500 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11501 See \`config.log' for more details." >&5
11502 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11503 See \`config.log' for more details." >&2;}
11504 { (exit 1); exit 1; }; }; }
11505
11506 # Provide some information about the compiler.
11507 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11508 set X $ac_compile
11509 ac_compiler=$2
11510 { (ac_try="$ac_compiler --version >&5"
11511 case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514 esac
11515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11516 $as_echo "$ac_try_echo") >&5
11517 (eval "$ac_compiler --version >&5") 2>&5
11518 ac_status=$?
11519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }
11521 { (ac_try="$ac_compiler -v >&5"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11525 esac
11526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11527 $as_echo "$ac_try_echo") >&5
11528 (eval "$ac_compiler -v >&5") 2>&5
11529 ac_status=$?
11530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }
11532 { (ac_try="$ac_compiler -V >&5"
11533 case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536 esac
11537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11538 $as_echo "$ac_try_echo") >&5
11539 (eval "$ac_compiler -V >&5") 2>&5
11540 ac_status=$?
11541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }
11543
11544 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11546 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11547 $as_echo_n "(cached) " >&6
11548 else
11549 cat >conftest.$ac_ext <<_ACEOF
11550 /* confdefs.h. */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555
11556 int
11557 main ()
11558 {
11559 #ifndef __GNUC__
11560 choke me
11561 #endif
11562
11563 ;
11564 return 0;
11565 }
11566 _ACEOF
11567 rm -f conftest.$ac_objext
11568 if { (ac_try="$ac_compile"
11569 case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11572 esac
11573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11574 $as_echo "$ac_try_echo") >&5
11575 (eval "$ac_compile") 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } && {
11582 test -z "$ac_c_werror_flag" ||
11583 test ! -s conftest.err
11584 } && test -s conftest.$ac_objext; then
11585 ac_compiler_gnu=yes
11586 else
11587 $as_echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11589
11590 ac_compiler_gnu=no
11591 fi
11592
11593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11594 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11595
11596 fi
11597 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11598 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11599 if test $ac_compiler_gnu = yes; then
11600 GCC=yes
11601 else
11602 GCC=
11603 fi
11604 ac_test_CFLAGS=${CFLAGS+set}
11605 ac_save_CFLAGS=$CFLAGS
11606 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11607 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11608 if test "${ac_cv_prog_cc_g+set}" = set; then
11609 $as_echo_n "(cached) " >&6
11610 else
11611 ac_save_c_werror_flag=$ac_c_werror_flag
11612 ac_c_werror_flag=yes
11613 ac_cv_prog_cc_g=no
11614 CFLAGS="-g"
11615 cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h. */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621
11622 int
11623 main ()
11624 {
11625
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 rm -f conftest.$ac_objext
11631 if { (ac_try="$ac_compile"
11632 case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635 esac
11636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11637 $as_echo "$ac_try_echo") >&5
11638 (eval "$ac_compile") 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && {
11645 test -z "$ac_c_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest.$ac_objext; then
11648 ac_cv_prog_cc_g=yes
11649 else
11650 $as_echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11652
11653 CFLAGS=""
11654 cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h. */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660
11661 int
11662 main ()
11663 {
11664
11665 ;
11666 return 0;
11667 }
11668 _ACEOF
11669 rm -f conftest.$ac_objext
11670 if { (ac_try="$ac_compile"
11671 case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11674 esac
11675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11676 $as_echo "$ac_try_echo") >&5
11677 (eval "$ac_compile") 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } && {
11684 test -z "$ac_c_werror_flag" ||
11685 test ! -s conftest.err
11686 } && test -s conftest.$ac_objext; then
11687 :
11688 else
11689 $as_echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692 ac_c_werror_flag=$ac_save_c_werror_flag
11693 CFLAGS="-g"
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h. */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700
11701 int
11702 main ()
11703 {
11704
11705 ;
11706 return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext
11710 if { (ac_try="$ac_compile"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714 esac
11715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11716 $as_echo "$ac_try_echo") >&5
11717 (eval "$ac_compile") 2>conftest.er1
11718 ac_status=$?
11719 grep -v '^ *+' conftest.er1 >conftest.err
11720 rm -f conftest.er1
11721 cat conftest.err >&5
11722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && {
11724 test -z "$ac_c_werror_flag" ||
11725 test ! -s conftest.err
11726 } && test -s conftest.$ac_objext; then
11727 ac_cv_prog_cc_g=yes
11728 else
11729 $as_echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11731
11732
11733 fi
11734
11735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736 fi
11737
11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 fi
11740
11741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742 ac_c_werror_flag=$ac_save_c_werror_flag
11743 fi
11744 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11745 $as_echo "$ac_cv_prog_cc_g" >&6; }
11746 if test "$ac_test_CFLAGS" = set; then
11747 CFLAGS=$ac_save_CFLAGS
11748 elif test $ac_cv_prog_cc_g = yes; then
11749 if test "$GCC" = yes; then
11750 CFLAGS="-g -O2"
11751 else
11752 CFLAGS="-g"
11753 fi
11754 else
11755 if test "$GCC" = yes; then
11756 CFLAGS="-O2"
11757 else
11758 CFLAGS=
11759 fi
11760 fi
11761 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11763 if test "${ac_cv_prog_cc_c89+set}" = set; then
11764 $as_echo_n "(cached) " >&6
11765 else
11766 ac_cv_prog_cc_c89=no
11767 ac_save_CC=$CC
11768 cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h. */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 #include <stdarg.h>
11775 #include <stdio.h>
11776 #include <sys/types.h>
11777 #include <sys/stat.h>
11778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11779 struct buf { int x; };
11780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11781 static char *e (p, i)
11782 char **p;
11783 int i;
11784 {
11785 return p[i];
11786 }
11787 static char *f (char * (*g) (char **, int), char **p, ...)
11788 {
11789 char *s;
11790 va_list v;
11791 va_start (v,p);
11792 s = g (p, va_arg (v,int));
11793 va_end (v);
11794 return s;
11795 }
11796
11797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11798 function prototypes and stuff, but not '\xHH' hex character constants.
11799 These don't provoke an error unfortunately, instead are silently treated
11800 as 'x'. The following induces an error, until -std is added to get
11801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11802 array size at least. It's necessary to write '\x00'==0 to get something
11803 that's true only with -std. */
11804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11805
11806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11807 inside strings and character constants. */
11808 #define FOO(x) 'x'
11809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11810
11811 int test (int i, double x);
11812 struct s1 {int (*f) (int a);};
11813 struct s2 {int (*f) (double a);};
11814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11815 int argc;
11816 char **argv;
11817 int
11818 main ()
11819 {
11820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11821 ;
11822 return 0;
11823 }
11824 _ACEOF
11825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11827 do
11828 CC="$ac_save_CC $ac_arg"
11829 rm -f conftest.$ac_objext
11830 if { (ac_try="$ac_compile"
11831 case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834 esac
11835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11836 $as_echo "$ac_try_echo") >&5
11837 (eval "$ac_compile") 2>conftest.er1
11838 ac_status=$?
11839 grep -v '^ *+' conftest.er1 >conftest.err
11840 rm -f conftest.er1
11841 cat conftest.err >&5
11842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } && {
11844 test -z "$ac_c_werror_flag" ||
11845 test ! -s conftest.err
11846 } && test -s conftest.$ac_objext; then
11847 ac_cv_prog_cc_c89=$ac_arg
11848 else
11849 $as_echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11851
11852
11853 fi
11854
11855 rm -f core conftest.err conftest.$ac_objext
11856 test "x$ac_cv_prog_cc_c89" != "xno" && break
11857 done
11858 rm -f conftest.$ac_ext
11859 CC=$ac_save_CC
11860
11861 fi
11862 # AC_CACHE_VAL
11863 case "x$ac_cv_prog_cc_c89" in
11864 x)
11865 { $as_echo "$as_me:$LINENO: result: none needed" >&5
11866 $as_echo "none needed" >&6; } ;;
11867 xno)
11868 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11869 $as_echo "unsupported" >&6; } ;;
11870 *)
11871 CC="$CC $ac_cv_prog_cc_c89"
11872 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11873 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11874 esac
11875
11876
11877 ac_ext=c
11878 ac_cpp='$CPP $CPPFLAGS'
11879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11882
11883 depcc="$CC" am_compiler_list=
11884
11885 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11886 $as_echo_n "checking dependency style of $depcc... " >&6; }
11887 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11888 $as_echo_n "(cached) " >&6
11889 else
11890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11891 # We make a subdir and do the tests there. Otherwise we can end up
11892 # making bogus files that we don't know about and never remove. For
11893 # instance it was reported that on HP-UX the gcc test will end up
11894 # making a dummy file named `D' -- because `-MD' means `put the output
11895 # in D'.
11896 mkdir conftest.dir
11897 # Copy depcomp to subdir because otherwise we won't find it if we're
11898 # using a relative directory.
11899 cp "$am_depcomp" conftest.dir
11900 cd conftest.dir
11901 # We will build objects and dependencies in a subdirectory because
11902 # it helps to detect inapplicable dependency modes. For instance
11903 # both Tru64's cc and ICC support -MD to output dependencies as a
11904 # side effect of compilation, but ICC will put the dependencies in
11905 # the current directory while Tru64 will put them in the object
11906 # directory.
11907 mkdir sub
11908
11909 am_cv_CC_dependencies_compiler_type=none
11910 if test "$am_compiler_list" = ""; then
11911 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11912 fi
11913 for depmode in $am_compiler_list; do
11914 # Setup a source with many dependencies, because some compilers
11915 # like to wrap large dependency lists on column 80 (with \), and
11916 # we should not choose a depcomp mode which is confused by this.
11917 #
11918 # We need to recreate these files for each test, as the compiler may
11919 # overwrite some of them when testing with obscure command lines.
11920 # This happens at least with the AIX C compiler.
11921 : > sub/conftest.c
11922 for i in 1 2 3 4 5 6; do
11923 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11924 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11925 # Solaris 8's {/usr,}/bin/sh.
11926 touch sub/conftst$i.h
11927 done
11928 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11929
11930 case $depmode in
11931 nosideeffect)
11932 # after this tag, mechanisms are not by side-effect, so they'll
11933 # only be used when explicitly requested
11934 if test "x$enable_dependency_tracking" = xyes; then
11935 continue
11936 else
11937 break
11938 fi
11939 ;;
11940 none) break ;;
11941 esac
11942 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11943 # mode. It turns out that the SunPro C++ compiler does not properly
11944 # handle `-M -o', and we need to detect this.
11945 if depmode=$depmode \
11946 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11947 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11948 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11949 >/dev/null 2>conftest.err &&
11950 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11951 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11952 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11953 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11954 # icc doesn't choke on unknown options, it will just issue warnings
11955 # or remarks (even with -Werror). So we grep stderr for any message
11956 # that says an option was ignored or not supported.
11957 # When given -MP, icc 7.0 and 7.1 complain thusly:
11958 # icc: Command line warning: ignoring option '-M'; no argument required
11959 # The diagnosis changed in icc 8.0:
11960 # icc: Command line remark: option '-MP' not supported
11961 if (grep 'ignoring option' conftest.err ||
11962 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11963 am_cv_CC_dependencies_compiler_type=$depmode
11964 break
11965 fi
11966 fi
11967 done
11968
11969 cd ..
11970 rm -rf conftest.dir
11971 else
11972 am_cv_CC_dependencies_compiler_type=none
11973 fi
11974
11975 fi
11976 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11977 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11978 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11979
11980 if
11981 test "x$enable_dependency_tracking" != xno \
11982 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11983 am__fastdepCC_TRUE=
11984 am__fastdepCC_FALSE='#'
11985 else
11986 am__fastdepCC_TRUE='#'
11987 am__fastdepCC_FALSE=
11988 fi
11989
11990
11991 ac_ext=cpp
11992 ac_cpp='$CXXCPP $CPPFLAGS'
11993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11996 if test -z "$CXX"; then
11997 if test -n "$CCC"; then
11998 CXX=$CCC
11999 else
12000 if test -n "$ac_tool_prefix"; then
12001 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12002 do
12003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if test "${ac_cv_prog_CXX+set}" = set; then
12008 $as_echo_n "(cached) " >&6
12009 else
12010 if test -n "$CXX"; then
12011 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12012 else
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12015 do
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12020 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12022 break 2
12023 fi
12024 done
12025 done
12026 IFS=$as_save_IFS
12027
12028 fi
12029 fi
12030 CXX=$ac_cv_prog_CXX
12031 if test -n "$CXX"; then
12032 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
12033 $as_echo "$CXX" >&6; }
12034 else
12035 { $as_echo "$as_me:$LINENO: result: no" >&5
12036 $as_echo "no" >&6; }
12037 fi
12038
12039
12040 test -n "$CXX" && break
12041 done
12042 fi
12043 if test -z "$CXX"; then
12044 ac_ct_CXX=$CXX
12045 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12046 do
12047 # Extract the first word of "$ac_prog", so it can be a program name with args.
12048 set dummy $ac_prog; ac_word=$2
12049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12050 $as_echo_n "checking for $ac_word... " >&6; }
12051 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12052 $as_echo_n "(cached) " >&6
12053 else
12054 if test -n "$ac_ct_CXX"; then
12055 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12056 else
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12059 do
12060 IFS=$as_save_IFS
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12064 ac_cv_prog_ac_ct_CXX="$ac_prog"
12065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12066 break 2
12067 fi
12068 done
12069 done
12070 IFS=$as_save_IFS
12071
12072 fi
12073 fi
12074 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12075 if test -n "$ac_ct_CXX"; then
12076 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12077 $as_echo "$ac_ct_CXX" >&6; }
12078 else
12079 { $as_echo "$as_me:$LINENO: result: no" >&5
12080 $as_echo "no" >&6; }
12081 fi
12082
12083
12084 test -n "$ac_ct_CXX" && break
12085 done
12086
12087 if test "x$ac_ct_CXX" = x; then
12088 CXX="g++"
12089 else
12090 case $cross_compiling:$ac_tool_warned in
12091 yes:)
12092 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12094 ac_tool_warned=yes ;;
12095 esac
12096 CXX=$ac_ct_CXX
12097 fi
12098 fi
12099
12100 fi
12101 fi
12102 # Provide some information about the compiler.
12103 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12104 set X $ac_compile
12105 ac_compiler=$2
12106 { (ac_try="$ac_compiler --version >&5"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12110 esac
12111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12112 $as_echo "$ac_try_echo") >&5
12113 (eval "$ac_compiler --version >&5") 2>&5
12114 ac_status=$?
12115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }
12117 { (ac_try="$ac_compiler -v >&5"
12118 case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12121 esac
12122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12123 $as_echo "$ac_try_echo") >&5
12124 (eval "$ac_compiler -v >&5") 2>&5
12125 ac_status=$?
12126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }
12128 { (ac_try="$ac_compiler -V >&5"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132 esac
12133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12134 $as_echo "$ac_try_echo") >&5
12135 (eval "$ac_compiler -V >&5") 2>&5
12136 ac_status=$?
12137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }
12139
12140 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12141 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12142 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12143 $as_echo_n "(cached) " >&6
12144 else
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h. */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151
12152 int
12153 main ()
12154 {
12155 #ifndef __GNUC__
12156 choke me
12157 #endif
12158
12159 ;
12160 return 0;
12161 }
12162 _ACEOF
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168 esac
12169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170 $as_echo "$ac_try_echo") >&5
12171 (eval "$ac_compile") 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_cxx_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest.$ac_objext; then
12181 ac_compiler_gnu=yes
12182 else
12183 $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186 ac_compiler_gnu=no
12187 fi
12188
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12191
12192 fi
12193 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12194 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12195 if test $ac_compiler_gnu = yes; then
12196 GXX=yes
12197 else
12198 GXX=
12199 fi
12200 ac_test_CXXFLAGS=${CXXFLAGS+set}
12201 ac_save_CXXFLAGS=$CXXFLAGS
12202 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12203 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12204 if test "${ac_cv_prog_cxx_g+set}" = set; then
12205 $as_echo_n "(cached) " >&6
12206 else
12207 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12208 ac_cxx_werror_flag=yes
12209 ac_cv_prog_cxx_g=no
12210 CXXFLAGS="-g"
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h. */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217
12218 int
12219 main ()
12220 {
12221
12222 ;
12223 return 0;
12224 }
12225 _ACEOF
12226 rm -f conftest.$ac_objext
12227 if { (ac_try="$ac_compile"
12228 case "(($ac_try" in
12229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230 *) ac_try_echo=$ac_try;;
12231 esac
12232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12233 $as_echo "$ac_try_echo") >&5
12234 (eval "$ac_compile") 2>conftest.er1
12235 ac_status=$?
12236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
12239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && {
12241 test -z "$ac_cxx_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest.$ac_objext; then
12244 ac_cv_prog_cxx_g=yes
12245 else
12246 $as_echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12248
12249 CXXFLAGS=""
12250 cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h. */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256
12257 int
12258 main ()
12259 {
12260
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (ac_try="$ac_compile"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270 esac
12271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12272 $as_echo "$ac_try_echo") >&5
12273 (eval "$ac_compile") 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_cxx_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest.$ac_objext; then
12283 :
12284 else
12285 $as_echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12287
12288 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12289 CXXFLAGS="-g"
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296
12297 int
12298 main ()
12299 {
12300
12301 ;
12302 return 0;
12303 }
12304 _ACEOF
12305 rm -f conftest.$ac_objext
12306 if { (ac_try="$ac_compile"
12307 case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12310 esac
12311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12312 $as_echo "$ac_try_echo") >&5
12313 (eval "$ac_compile") 2>conftest.er1
12314 ac_status=$?
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -f conftest.er1
12317 cat conftest.err >&5
12318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && {
12320 test -z "$ac_cxx_werror_flag" ||
12321 test ! -s conftest.err
12322 } && test -s conftest.$ac_objext; then
12323 ac_cv_prog_cxx_g=yes
12324 else
12325 $as_echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12327
12328
12329 fi
12330
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 fi
12333
12334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12335 fi
12336
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12339 fi
12340 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12341 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12342 if test "$ac_test_CXXFLAGS" = set; then
12343 CXXFLAGS=$ac_save_CXXFLAGS
12344 elif test $ac_cv_prog_cxx_g = yes; then
12345 if test "$GXX" = yes; then
12346 CXXFLAGS="-g -O2"
12347 else
12348 CXXFLAGS="-g"
12349 fi
12350 else
12351 if test "$GXX" = yes; then
12352 CXXFLAGS="-O2"
12353 else
12354 CXXFLAGS=
12355 fi
12356 fi
12357 ac_ext=c
12358 ac_cpp='$CPP $CPPFLAGS'
12359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12362
12363 depcc="$CXX" am_compiler_list=
12364
12365 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12366 $as_echo_n "checking dependency style of $depcc... " >&6; }
12367 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12368 $as_echo_n "(cached) " >&6
12369 else
12370 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12371 # We make a subdir and do the tests there. Otherwise we can end up
12372 # making bogus files that we don't know about and never remove. For
12373 # instance it was reported that on HP-UX the gcc test will end up
12374 # making a dummy file named `D' -- because `-MD' means `put the output
12375 # in D'.
12376 mkdir conftest.dir
12377 # Copy depcomp to subdir because otherwise we won't find it if we're
12378 # using a relative directory.
12379 cp "$am_depcomp" conftest.dir
12380 cd conftest.dir
12381 # We will build objects and dependencies in a subdirectory because
12382 # it helps to detect inapplicable dependency modes. For instance
12383 # both Tru64's cc and ICC support -MD to output dependencies as a
12384 # side effect of compilation, but ICC will put the dependencies in
12385 # the current directory while Tru64 will put them in the object
12386 # directory.
12387 mkdir sub
12388
12389 am_cv_CXX_dependencies_compiler_type=none
12390 if test "$am_compiler_list" = ""; then
12391 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12392 fi
12393 for depmode in $am_compiler_list; do
12394 # Setup a source with many dependencies, because some compilers
12395 # like to wrap large dependency lists on column 80 (with \), and
12396 # we should not choose a depcomp mode which is confused by this.
12397 #
12398 # We need to recreate these files for each test, as the compiler may
12399 # overwrite some of them when testing with obscure command lines.
12400 # This happens at least with the AIX C compiler.
12401 : > sub/conftest.c
12402 for i in 1 2 3 4 5 6; do
12403 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12404 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12405 # Solaris 8's {/usr,}/bin/sh.
12406 touch sub/conftst$i.h
12407 done
12408 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12409
12410 case $depmode in
12411 nosideeffect)
12412 # after this tag, mechanisms are not by side-effect, so they'll
12413 # only be used when explicitly requested
12414 if test "x$enable_dependency_tracking" = xyes; then
12415 continue
12416 else
12417 break
12418 fi
12419 ;;
12420 none) break ;;
12421 esac
12422 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12423 # mode. It turns out that the SunPro C++ compiler does not properly
12424 # handle `-M -o', and we need to detect this.
12425 if depmode=$depmode \
12426 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12427 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12428 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12429 >/dev/null 2>conftest.err &&
12430 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12431 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12432 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12433 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12434 # icc doesn't choke on unknown options, it will just issue warnings
12435 # or remarks (even with -Werror). So we grep stderr for any message
12436 # that says an option was ignored or not supported.
12437 # When given -MP, icc 7.0 and 7.1 complain thusly:
12438 # icc: Command line warning: ignoring option '-M'; no argument required
12439 # The diagnosis changed in icc 8.0:
12440 # icc: Command line remark: option '-MP' not supported
12441 if (grep 'ignoring option' conftest.err ||
12442 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12443 am_cv_CXX_dependencies_compiler_type=$depmode
12444 break
12445 fi
12446 fi
12447 done
12448
12449 cd ..
12450 rm -rf conftest.dir
12451 else
12452 am_cv_CXX_dependencies_compiler_type=none
12453 fi
12454
12455 fi
12456 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12457 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12458 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12459
12460 if
12461 test "x$enable_dependency_tracking" != xno \
12462 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12463 am__fastdepCXX_TRUE=
12464 am__fastdepCXX_FALSE='#'
12465 else
12466 am__fastdepCXX_TRUE='#'
12467 am__fastdepCXX_FALSE=
12468 fi
12469
12470
12471
12472 ac_ext=cpp
12473 ac_cpp='$CXXCPP $CPPFLAGS'
12474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12477 if test -z "$CXX"; then
12478 if test -n "$CCC"; then
12479 CXX=$CCC
12480 else
12481 if test -n "$ac_tool_prefix"; then
12482 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12483 do
12484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12486 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12487 $as_echo_n "checking for $ac_word... " >&6; }
12488 if test "${ac_cv_prog_CXX+set}" = set; then
12489 $as_echo_n "(cached) " >&6
12490 else
12491 if test -n "$CXX"; then
12492 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12493 else
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12496 do
12497 IFS=$as_save_IFS
12498 test -z "$as_dir" && as_dir=.
12499 for ac_exec_ext in '' $ac_executable_extensions; do
12500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12501 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12502 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12503 break 2
12504 fi
12505 done
12506 done
12507 IFS=$as_save_IFS
12508
12509 fi
12510 fi
12511 CXX=$ac_cv_prog_CXX
12512 if test -n "$CXX"; then
12513 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
12514 $as_echo "$CXX" >&6; }
12515 else
12516 { $as_echo "$as_me:$LINENO: result: no" >&5
12517 $as_echo "no" >&6; }
12518 fi
12519
12520
12521 test -n "$CXX" && break
12522 done
12523 fi
12524 if test -z "$CXX"; then
12525 ac_ct_CXX=$CXX
12526 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12527 do
12528 # Extract the first word of "$ac_prog", so it can be a program name with args.
12529 set dummy $ac_prog; ac_word=$2
12530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12533 $as_echo_n "(cached) " >&6
12534 else
12535 if test -n "$ac_ct_CXX"; then
12536 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12537 else
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12540 do
12541 IFS=$as_save_IFS
12542 test -z "$as_dir" && as_dir=.
12543 for ac_exec_ext in '' $ac_executable_extensions; do
12544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12545 ac_cv_prog_ac_ct_CXX="$ac_prog"
12546 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12547 break 2
12548 fi
12549 done
12550 done
12551 IFS=$as_save_IFS
12552
12553 fi
12554 fi
12555 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12556 if test -n "$ac_ct_CXX"; then
12557 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12558 $as_echo "$ac_ct_CXX" >&6; }
12559 else
12560 { $as_echo "$as_me:$LINENO: result: no" >&5
12561 $as_echo "no" >&6; }
12562 fi
12563
12564
12565 test -n "$ac_ct_CXX" && break
12566 done
12567
12568 if test "x$ac_ct_CXX" = x; then
12569 CXX="g++"
12570 else
12571 case $cross_compiling:$ac_tool_warned in
12572 yes:)
12573 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12575 ac_tool_warned=yes ;;
12576 esac
12577 CXX=$ac_ct_CXX
12578 fi
12579 fi
12580
12581 fi
12582 fi
12583 # Provide some information about the compiler.
12584 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12585 set X $ac_compile
12586 ac_compiler=$2
12587 { (ac_try="$ac_compiler --version >&5"
12588 case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591 esac
12592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12593 $as_echo "$ac_try_echo") >&5
12594 (eval "$ac_compiler --version >&5") 2>&5
12595 ac_status=$?
12596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }
12598 { (ac_try="$ac_compiler -v >&5"
12599 case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602 esac
12603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12604 $as_echo "$ac_try_echo") >&5
12605 (eval "$ac_compiler -v >&5") 2>&5
12606 ac_status=$?
12607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }
12609 { (ac_try="$ac_compiler -V >&5"
12610 case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12613 esac
12614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12615 $as_echo "$ac_try_echo") >&5
12616 (eval "$ac_compiler -V >&5") 2>&5
12617 ac_status=$?
12618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }
12620
12621 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12622 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12623 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12624 $as_echo_n "(cached) " >&6
12625 else
12626 cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h. */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632
12633 int
12634 main ()
12635 {
12636 #ifndef __GNUC__
12637 choke me
12638 #endif
12639
12640 ;
12641 return 0;
12642 }
12643 _ACEOF
12644 rm -f conftest.$ac_objext
12645 if { (ac_try="$ac_compile"
12646 case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649 esac
12650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12651 $as_echo "$ac_try_echo") >&5
12652 (eval "$ac_compile") 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && {
12659 test -z "$ac_cxx_werror_flag" ||
12660 test ! -s conftest.err
12661 } && test -s conftest.$ac_objext; then
12662 ac_compiler_gnu=yes
12663 else
12664 $as_echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 ac_compiler_gnu=no
12668 fi
12669
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12671 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12672
12673 fi
12674 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12675 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12676 if test $ac_compiler_gnu = yes; then
12677 GXX=yes
12678 else
12679 GXX=
12680 fi
12681 ac_test_CXXFLAGS=${CXXFLAGS+set}
12682 ac_save_CXXFLAGS=$CXXFLAGS
12683 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12684 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12685 if test "${ac_cv_prog_cxx_g+set}" = set; then
12686 $as_echo_n "(cached) " >&6
12687 else
12688 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12689 ac_cxx_werror_flag=yes
12690 ac_cv_prog_cxx_g=no
12691 CXXFLAGS="-g"
12692 cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h. */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698
12699 int
12700 main ()
12701 {
12702
12703 ;
12704 return 0;
12705 }
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (ac_try="$ac_compile"
12709 case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12712 esac
12713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12714 $as_echo "$ac_try_echo") >&5
12715 (eval "$ac_compile") 2>conftest.er1
12716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && {
12722 test -z "$ac_cxx_werror_flag" ||
12723 test ! -s conftest.err
12724 } && test -s conftest.$ac_objext; then
12725 ac_cv_prog_cxx_g=yes
12726 else
12727 $as_echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 CXXFLAGS=""
12731 cat >conftest.$ac_ext <<_ACEOF
12732 /* confdefs.h. */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737
12738 int
12739 main ()
12740 {
12741
12742 ;
12743 return 0;
12744 }
12745 _ACEOF
12746 rm -f conftest.$ac_objext
12747 if { (ac_try="$ac_compile"
12748 case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12751 esac
12752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12753 $as_echo "$ac_try_echo") >&5
12754 (eval "$ac_compile") 2>conftest.er1
12755 ac_status=$?
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
12759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && {
12761 test -z "$ac_cxx_werror_flag" ||
12762 test ! -s conftest.err
12763 } && test -s conftest.$ac_objext; then
12764 :
12765 else
12766 $as_echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12770 CXXFLAGS="-g"
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h. */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777
12778 int
12779 main ()
12780 {
12781
12782 ;
12783 return 0;
12784 }
12785 _ACEOF
12786 rm -f conftest.$ac_objext
12787 if { (ac_try="$ac_compile"
12788 case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12791 esac
12792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12793 $as_echo "$ac_try_echo") >&5
12794 (eval "$ac_compile") 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } && {
12801 test -z "$ac_cxx_werror_flag" ||
12802 test ! -s conftest.err
12803 } && test -s conftest.$ac_objext; then
12804 ac_cv_prog_cxx_g=yes
12805 else
12806 $as_echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12808
12809
12810 fi
12811
12812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 fi
12814
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816 fi
12817
12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12820 fi
12821 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12822 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12823 if test "$ac_test_CXXFLAGS" = set; then
12824 CXXFLAGS=$ac_save_CXXFLAGS
12825 elif test $ac_cv_prog_cxx_g = yes; then
12826 if test "$GXX" = yes; then
12827 CXXFLAGS="-g -O2"
12828 else
12829 CXXFLAGS="-g"
12830 fi
12831 else
12832 if test "$GXX" = yes; then
12833 CXXFLAGS="-O2"
12834 else
12835 CXXFLAGS=
12836 fi
12837 fi
12838 ac_ext=c
12839 ac_cpp='$CPP $CPPFLAGS'
12840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12843
12844 depcc="$CXX" am_compiler_list=
12845
12846 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12847 $as_echo_n "checking dependency style of $depcc... " >&6; }
12848 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12849 $as_echo_n "(cached) " >&6
12850 else
12851 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12852 # We make a subdir and do the tests there. Otherwise we can end up
12853 # making bogus files that we don't know about and never remove. For
12854 # instance it was reported that on HP-UX the gcc test will end up
12855 # making a dummy file named `D' -- because `-MD' means `put the output
12856 # in D'.
12857 mkdir conftest.dir
12858 # Copy depcomp to subdir because otherwise we won't find it if we're
12859 # using a relative directory.
12860 cp "$am_depcomp" conftest.dir
12861 cd conftest.dir
12862 # We will build objects and dependencies in a subdirectory because
12863 # it helps to detect inapplicable dependency modes. For instance
12864 # both Tru64's cc and ICC support -MD to output dependencies as a
12865 # side effect of compilation, but ICC will put the dependencies in
12866 # the current directory while Tru64 will put them in the object
12867 # directory.
12868 mkdir sub
12869
12870 am_cv_CXX_dependencies_compiler_type=none
12871 if test "$am_compiler_list" = ""; then
12872 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12873 fi
12874 for depmode in $am_compiler_list; do
12875 # Setup a source with many dependencies, because some compilers
12876 # like to wrap large dependency lists on column 80 (with \), and
12877 # we should not choose a depcomp mode which is confused by this.
12878 #
12879 # We need to recreate these files for each test, as the compiler may
12880 # overwrite some of them when testing with obscure command lines.
12881 # This happens at least with the AIX C compiler.
12882 : > sub/conftest.c
12883 for i in 1 2 3 4 5 6; do
12884 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12885 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12886 # Solaris 8's {/usr,}/bin/sh.
12887 touch sub/conftst$i.h
12888 done
12889 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12890
12891 case $depmode in
12892 nosideeffect)
12893 # after this tag, mechanisms are not by side-effect, so they'll
12894 # only be used when explicitly requested
12895 if test "x$enable_dependency_tracking" = xyes; then
12896 continue
12897 else
12898 break
12899 fi
12900 ;;
12901 none) break ;;
12902 esac
12903 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12904 # mode. It turns out that the SunPro C++ compiler does not properly
12905 # handle `-M -o', and we need to detect this.
12906 if depmode=$depmode \
12907 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12909 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12910 >/dev/null 2>conftest.err &&
12911 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12912 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12913 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12914 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12915 # icc doesn't choke on unknown options, it will just issue warnings
12916 # or remarks (even with -Werror). So we grep stderr for any message
12917 # that says an option was ignored or not supported.
12918 # When given -MP, icc 7.0 and 7.1 complain thusly:
12919 # icc: Command line warning: ignoring option '-M'; no argument required
12920 # The diagnosis changed in icc 8.0:
12921 # icc: Command line remark: option '-MP' not supported
12922 if (grep 'ignoring option' conftest.err ||
12923 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12924 am_cv_CXX_dependencies_compiler_type=$depmode
12925 break
12926 fi
12927 fi
12928 done
12929
12930 cd ..
12931 rm -rf conftest.dir
12932 else
12933 am_cv_CXX_dependencies_compiler_type=none
12934 fi
12935
12936 fi
12937 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12938 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12939 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12940
12941 if
12942 test "x$enable_dependency_tracking" != xno \
12943 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12944 am__fastdepCXX_TRUE=
12945 am__fastdepCXX_FALSE='#'
12946 else
12947 am__fastdepCXX_TRUE='#'
12948 am__fastdepCXX_FALSE=
12949 fi
12950
12951
12952 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12953 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12954 (test "X$CXX" != "Xg++"))) ; then
12955 ac_ext=cpp
12956 ac_cpp='$CXXCPP $CPPFLAGS'
12957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12960 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12961 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12962 if test -z "$CXXCPP"; then
12963 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12964 $as_echo_n "(cached) " >&6
12965 else
12966 # Double quotes because CXXCPP needs to be expanded
12967 for CXXCPP in "$CXX -E" "/lib/cpp"
12968 do
12969 ac_preproc_ok=false
12970 for ac_cxx_preproc_warn_flag in '' yes
12971 do
12972 # Use a header file that comes with gcc, so configuring glibc
12973 # with a fresh cross-compiler works.
12974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12975 # <limits.h> exists even on freestanding compilers.
12976 # On the NeXT, cc -E runs the code through the compiler's parser,
12977 # not just through cpp. "Syntax error" is here to catch this case.
12978 cat >conftest.$ac_ext <<_ACEOF
12979 /* confdefs.h. */
12980 _ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12984 #ifdef __STDC__
12985 # include <limits.h>
12986 #else
12987 # include <assert.h>
12988 #endif
12989 Syntax error
12990 _ACEOF
12991 if { (ac_try="$ac_cpp conftest.$ac_ext"
12992 case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995 esac
12996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12997 $as_echo "$ac_try_echo") >&5
12998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } >/dev/null && {
13005 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13006 test ! -s conftest.err
13007 }; then
13008 :
13009 else
13010 $as_echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13012
13013 # Broken: fails on valid input.
13014 continue
13015 fi
13016
13017 rm -f conftest.err conftest.$ac_ext
13018
13019 # OK, works on sane cases. Now check whether nonexistent headers
13020 # can be detected and how.
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h. */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13027 #include <ac_nonexistent.h>
13028 _ACEOF
13029 if { (ac_try="$ac_cpp conftest.$ac_ext"
13030 case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13033 esac
13034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13035 $as_echo "$ac_try_echo") >&5
13036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13037 ac_status=$?
13038 grep -v '^ *+' conftest.er1 >conftest.err
13039 rm -f conftest.er1
13040 cat conftest.err >&5
13041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } >/dev/null && {
13043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13044 test ! -s conftest.err
13045 }; then
13046 # Broken: success on invalid input.
13047 continue
13048 else
13049 $as_echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052 # Passes both tests.
13053 ac_preproc_ok=:
13054 break
13055 fi
13056
13057 rm -f conftest.err conftest.$ac_ext
13058
13059 done
13060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13061 rm -f conftest.err conftest.$ac_ext
13062 if $ac_preproc_ok; then
13063 break
13064 fi
13065
13066 done
13067 ac_cv_prog_CXXCPP=$CXXCPP
13068
13069 fi
13070 CXXCPP=$ac_cv_prog_CXXCPP
13071 else
13072 ac_cv_prog_CXXCPP=$CXXCPP
13073 fi
13074 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
13075 $as_echo "$CXXCPP" >&6; }
13076 ac_preproc_ok=false
13077 for ac_cxx_preproc_warn_flag in '' yes
13078 do
13079 # Use a header file that comes with gcc, so configuring glibc
13080 # with a fresh cross-compiler works.
13081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13082 # <limits.h> exists even on freestanding compilers.
13083 # On the NeXT, cc -E runs the code through the compiler's parser,
13084 # not just through cpp. "Syntax error" is here to catch this case.
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h. */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 #ifdef __STDC__
13092 # include <limits.h>
13093 #else
13094 # include <assert.h>
13095 #endif
13096 Syntax error
13097 _ACEOF
13098 if { (ac_try="$ac_cpp conftest.$ac_ext"
13099 case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13102 esac
13103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13104 $as_echo "$ac_try_echo") >&5
13105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13106 ac_status=$?
13107 grep -v '^ *+' conftest.er1 >conftest.err
13108 rm -f conftest.er1
13109 cat conftest.err >&5
13110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } >/dev/null && {
13112 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13113 test ! -s conftest.err
13114 }; then
13115 :
13116 else
13117 $as_echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13119
13120 # Broken: fails on valid input.
13121 continue
13122 fi
13123
13124 rm -f conftest.err conftest.$ac_ext
13125
13126 # OK, works on sane cases. Now check whether nonexistent headers
13127 # can be detected and how.
13128 cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h. */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 #include <ac_nonexistent.h>
13135 _ACEOF
13136 if { (ac_try="$ac_cpp conftest.$ac_ext"
13137 case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13140 esac
13141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13142 $as_echo "$ac_try_echo") >&5
13143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13144 ac_status=$?
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
13148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } >/dev/null && {
13150 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13151 test ! -s conftest.err
13152 }; then
13153 # Broken: success on invalid input.
13154 continue
13155 else
13156 $as_echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159 # Passes both tests.
13160 ac_preproc_ok=:
13161 break
13162 fi
13163
13164 rm -f conftest.err conftest.$ac_ext
13165
13166 done
13167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13168 rm -f conftest.err conftest.$ac_ext
13169 if $ac_preproc_ok; then
13170 :
13171 else
13172 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13174 _lt_caught_CXX_error=yes; }
13175 fi
13176
13177 ac_ext=c
13178 ac_cpp='$CPP $CPPFLAGS'
13179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13182
13183 else
13184 _lt_caught_CXX_error=yes
13185 fi
13186
13187
13188
13189
13190 ac_ext=cpp
13191 ac_cpp='$CXXCPP $CPPFLAGS'
13192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13195
13196 archive_cmds_need_lc_CXX=no
13197 allow_undefined_flag_CXX=
13198 always_export_symbols_CXX=no
13199 archive_expsym_cmds_CXX=
13200 compiler_needs_object_CXX=no
13201 export_dynamic_flag_spec_CXX=
13202 hardcode_direct_CXX=no
13203 hardcode_direct_absolute_CXX=no
13204 hardcode_libdir_flag_spec_CXX=
13205 hardcode_libdir_flag_spec_ld_CXX=
13206 hardcode_libdir_separator_CXX=
13207 hardcode_minus_L_CXX=no
13208 hardcode_shlibpath_var_CXX=unsupported
13209 hardcode_automatic_CXX=no
13210 inherit_rpath_CXX=no
13211 module_cmds_CXX=
13212 module_expsym_cmds_CXX=
13213 link_all_deplibs_CXX=unknown
13214 old_archive_cmds_CXX=$old_archive_cmds
13215 no_undefined_flag_CXX=
13216 whole_archive_flag_spec_CXX=
13217 enable_shared_with_static_runtimes_CXX=no
13218
13219 # Source file extension for C++ test sources.
13220 ac_ext=cpp
13221
13222 # Object file extension for compiled C++ test sources.
13223 objext=o
13224 objext_CXX=$objext
13225
13226 # No sense in running all these tests if we already determined that
13227 # the CXX compiler isn't working. Some variables (like enable_shared)
13228 # are currently assumed to apply to all compilers on this platform,
13229 # and will be corrupted by setting them based on a non-working compiler.
13230 if test "$_lt_caught_CXX_error" != yes; then
13231 # Code to be used in simple compile tests
13232 lt_simple_compile_test_code="int some_variable = 0;"
13233
13234 # Code to be used in simple link tests
13235 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13236
13237 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13238
13239
13240
13241
13242
13243
13244 # If no C compiler was specified, use CC.
13245 LTCC=${LTCC-"$CC"}
13246
13247 # If no C compiler flags were specified, use CFLAGS.
13248 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13249
13250 # Allow CC to be a program name with arguments.
13251 compiler=$CC
13252
13253
13254 # save warnings/boilerplate of simple test code
13255 ac_outfile=conftest.$ac_objext
13256 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13257 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13258 _lt_compiler_boilerplate=`cat conftest.err`
13259 $RM conftest*
13260
13261 ac_outfile=conftest.$ac_objext
13262 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13263 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13264 _lt_linker_boilerplate=`cat conftest.err`
13265 $RM -r conftest*
13266
13267
13268 # Allow CC to be a program name with arguments.
13269 lt_save_CC=$CC
13270 lt_save_LD=$LD
13271 lt_save_GCC=$GCC
13272 GCC=$GXX
13273 lt_save_with_gnu_ld=$with_gnu_ld
13274 lt_save_path_LD=$lt_cv_path_LD
13275 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13276 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13277 else
13278 $as_unset lt_cv_prog_gnu_ld
13279 fi
13280 if test -n "${lt_cv_path_LDCXX+set}"; then
13281 lt_cv_path_LD=$lt_cv_path_LDCXX
13282 else
13283 $as_unset lt_cv_path_LD
13284 fi
13285 test -z "${LDCXX+set}" || LD=$LDCXX
13286 CC=${CXX-"c++"}
13287 compiler=$CC
13288 compiler_CXX=$CC
13289 for cc_temp in $compiler""; do
13290 case $cc_temp in
13291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13293 \-*) ;;
13294 *) break;;
13295 esac
13296 done
13297 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13298
13299
13300 if test -n "$compiler"; then
13301 # We don't want -fno-exception when compiling C++ code, so set the
13302 # no_builtin_flag separately
13303 if test "$GXX" = yes; then
13304 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13305 else
13306 lt_prog_compiler_no_builtin_flag_CXX=
13307 fi
13308
13309 if test "$GXX" = yes; then
13310 # Set up default GNU C++ configuration
13311
13312
13313
13314 # Check whether --with-gnu-ld was given.
13315 if test "${with_gnu_ld+set}" = set; then
13316 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13317 else
13318 with_gnu_ld=no
13319 fi
13320
13321 ac_prog=ld
13322 if test "$GCC" = yes; then
13323 # Check if gcc -print-prog-name=ld gives a path.
13324 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13325 $as_echo_n "checking for ld used by $CC... " >&6; }
13326 case $host in
13327 *-*-mingw*)
13328 # gcc leaves a trailing carriage return which upsets mingw
13329 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13330 *)
13331 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13332 esac
13333 case $ac_prog in
13334 # Accept absolute paths.
13335 [\\/]* | ?:[\\/]*)
13336 re_direlt='/[^/][^/]*/\.\./'
13337 # Canonicalize the pathname of ld
13338 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13339 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13340 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13341 done
13342 test -z "$LD" && LD="$ac_prog"
13343 ;;
13344 "")
13345 # If it fails, then pretend we aren't using GCC.
13346 ac_prog=ld
13347 ;;
13348 *)
13349 # If it is relative, then search for the first ld in PATH.
13350 with_gnu_ld=unknown
13351 ;;
13352 esac
13353 elif test "$with_gnu_ld" = yes; then
13354 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13355 $as_echo_n "checking for GNU ld... " >&6; }
13356 else
13357 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13358 $as_echo_n "checking for non-GNU ld... " >&6; }
13359 fi
13360 if test "${lt_cv_path_LD+set}" = set; then
13361 $as_echo_n "(cached) " >&6
13362 else
13363 if test -z "$LD"; then
13364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13365 for ac_dir in $PATH; do
13366 IFS="$lt_save_ifs"
13367 test -z "$ac_dir" && ac_dir=.
13368 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13369 lt_cv_path_LD="$ac_dir/$ac_prog"
13370 # Check to see if the program is GNU ld. I'd rather use --version,
13371 # but apparently some variants of GNU ld only accept -v.
13372 # Break only if it was the GNU/non-GNU ld that we prefer.
13373 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13374 *GNU* | *'with BFD'*)
13375 test "$with_gnu_ld" != no && break
13376 ;;
13377 *)
13378 test "$with_gnu_ld" != yes && break
13379 ;;
13380 esac
13381 fi
13382 done
13383 IFS="$lt_save_ifs"
13384 else
13385 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13386 fi
13387 fi
13388
13389 LD="$lt_cv_path_LD"
13390 if test -n "$LD"; then
13391 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13392 $as_echo "$LD" >&6; }
13393 else
13394 { $as_echo "$as_me:$LINENO: result: no" >&5
13395 $as_echo "no" >&6; }
13396 fi
13397 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13398 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13399 { (exit 1); exit 1; }; }
13400 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13401 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13402 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13403 $as_echo_n "(cached) " >&6
13404 else
13405 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13406 case `$LD -v 2>&1 </dev/null` in
13407 *GNU* | *'with BFD'*)
13408 lt_cv_prog_gnu_ld=yes
13409 ;;
13410 *)
13411 lt_cv_prog_gnu_ld=no
13412 ;;
13413 esac
13414 fi
13415 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13416 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13417 with_gnu_ld=$lt_cv_prog_gnu_ld
13418
13419
13420
13421
13422
13423
13424
13425 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13426 # archiving commands below assume that GNU ld is being used.
13427 if test "$with_gnu_ld" = yes; then
13428 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13429 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13430
13431 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13432 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13433
13434 # If archive_cmds runs LD, not CC, wlarc should be empty
13435 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13436 # investigate it a little bit more. (MM)
13437 wlarc='${wl}'
13438
13439 # ancient GNU ld didn't support --whole-archive et. al.
13440 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13441 $GREP 'no-whole-archive' > /dev/null; then
13442 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13443 else
13444 whole_archive_flag_spec_CXX=
13445 fi
13446 else
13447 with_gnu_ld=no
13448 wlarc=
13449
13450 # A generic and very simple default shared library creation
13451 # command for GNU C++ for the case where it uses the native
13452 # linker, instead of GNU ld. If possible, this setting should
13453 # overridden to take advantage of the native linker features on
13454 # the platform it is being used on.
13455 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13456 fi
13457
13458 # Commands to make compiler produce verbose output that lists
13459 # what "hidden" libraries, object files and flags are used when
13460 # linking a shared library.
13461 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13462
13463 else
13464 GXX=no
13465 with_gnu_ld=no
13466 wlarc=
13467 fi
13468
13469 # PORTME: fill in a description of your system's C++ link characteristics
13470 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13472 ld_shlibs_CXX=yes
13473 case $host_os in
13474 aix3*)
13475 # FIXME: insert proper C++ library support
13476 ld_shlibs_CXX=no
13477 ;;
13478 aix[4-9]*)
13479 if test "$host_cpu" = ia64; then
13480 # On IA64, the linker does run time linking by default, so we don't
13481 # have to do anything special.
13482 aix_use_runtimelinking=no
13483 exp_sym_flag='-Bexport'
13484 no_entry_flag=""
13485 else
13486 aix_use_runtimelinking=no
13487
13488 # Test if we are trying to use run time linking or normal
13489 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13490 # need to do runtime linking.
13491 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13492 for ld_flag in $LDFLAGS; do
13493 case $ld_flag in
13494 *-brtl*)
13495 aix_use_runtimelinking=yes
13496 break
13497 ;;
13498 esac
13499 done
13500 ;;
13501 esac
13502
13503 exp_sym_flag='-bexport'
13504 no_entry_flag='-bnoentry'
13505 fi
13506
13507 # When large executables or shared objects are built, AIX ld can
13508 # have problems creating the table of contents. If linking a library
13509 # or program results in "error TOC overflow" add -mminimal-toc to
13510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13512
13513 archive_cmds_CXX=''
13514 hardcode_direct_CXX=yes
13515 hardcode_direct_absolute_CXX=yes
13516 hardcode_libdir_separator_CXX=':'
13517 link_all_deplibs_CXX=yes
13518 file_list_spec_CXX='${wl}-f,'
13519
13520 if test "$GXX" = yes; then
13521 case $host_os in aix4.[012]|aix4.[012].*)
13522 # We only want to do this on AIX 4.2 and lower, the check
13523 # below for broken collect2 doesn't work under 4.3+
13524 collect2name=`${CC} -print-prog-name=collect2`
13525 if test -f "$collect2name" &&
13526 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13527 then
13528 # We have reworked collect2
13529 :
13530 else
13531 # We have old collect2
13532 hardcode_direct_CXX=unsupported
13533 # It fails to find uninstalled libraries when the uninstalled
13534 # path is not listed in the libpath. Setting hardcode_minus_L
13535 # to unsupported forces relinking
13536 hardcode_minus_L_CXX=yes
13537 hardcode_libdir_flag_spec_CXX='-L$libdir'
13538 hardcode_libdir_separator_CXX=
13539 fi
13540 esac
13541 shared_flag='-shared'
13542 if test "$aix_use_runtimelinking" = yes; then
13543 shared_flag="$shared_flag "'${wl}-G'
13544 fi
13545 else
13546 # not using gcc
13547 if test "$host_cpu" = ia64; then
13548 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13549 # chokes on -Wl,-G. The following line is correct:
13550 shared_flag='-G'
13551 else
13552 if test "$aix_use_runtimelinking" = yes; then
13553 shared_flag='${wl}-G'
13554 else
13555 shared_flag='${wl}-bM:SRE'
13556 fi
13557 fi
13558 fi
13559
13560 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13561 # It seems that -bexpall does not export symbols beginning with
13562 # underscore (_), so it is better to generate a list of symbols to
13563 # export.
13564 always_export_symbols_CXX=yes
13565 if test "$aix_use_runtimelinking" = yes; then
13566 # Warning - without using the other runtime loading flags (-brtl),
13567 # -berok will link without error, but may produce a broken library.
13568 allow_undefined_flag_CXX='-berok'
13569 # Determine the default libpath from the value encoded in an empty
13570 # executable.
13571 cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h. */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577
13578 int
13579 main ()
13580 {
13581
13582 ;
13583 return 0;
13584 }
13585 _ACEOF
13586 rm -f conftest.$ac_objext conftest$ac_exeext
13587 if { (ac_try="$ac_link"
13588 case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591 esac
13592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13593 $as_echo "$ac_try_echo") >&5
13594 (eval "$ac_link") 2>conftest.er1
13595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } && {
13601 test -z "$ac_cxx_werror_flag" ||
13602 test ! -s conftest.err
13603 } && test -s conftest$ac_exeext && {
13604 test "$cross_compiling" = yes ||
13605 $as_test_x conftest$ac_exeext
13606 }; then
13607
13608 lt_aix_libpath_sed='
13609 /Import File Strings/,/^$/ {
13610 /^0/ {
13611 s/^0 *\(.*\)$/\1/
13612 p
13613 }
13614 }'
13615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13616 # Check for a 64-bit object if we didn't find anything.
13617 if test -z "$aix_libpath"; then
13618 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13619 fi
13620 else
13621 $as_echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13623
13624
13625 fi
13626
13627 rm -rf conftest.dSYM
13628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13629 conftest$ac_exeext conftest.$ac_ext
13630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13631
13632 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13633
13634 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13635 else
13636 if test "$host_cpu" = ia64; then
13637 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13638 allow_undefined_flag_CXX="-z nodefs"
13639 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13640 else
13641 # Determine the default libpath from the value encoded in an
13642 # empty executable.
13643 cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h. */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13649
13650 int
13651 main ()
13652 {
13653
13654 ;
13655 return 0;
13656 }
13657 _ACEOF
13658 rm -f conftest.$ac_objext conftest$ac_exeext
13659 if { (ac_try="$ac_link"
13660 case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13663 esac
13664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13665 $as_echo "$ac_try_echo") >&5
13666 (eval "$ac_link") 2>conftest.er1
13667 ac_status=$?
13668 grep -v '^ *+' conftest.er1 >conftest.err
13669 rm -f conftest.er1
13670 cat conftest.err >&5
13671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } && {
13673 test -z "$ac_cxx_werror_flag" ||
13674 test ! -s conftest.err
13675 } && test -s conftest$ac_exeext && {
13676 test "$cross_compiling" = yes ||
13677 $as_test_x conftest$ac_exeext
13678 }; then
13679
13680 lt_aix_libpath_sed='
13681 /Import File Strings/,/^$/ {
13682 /^0/ {
13683 s/^0 *\(.*\)$/\1/
13684 p
13685 }
13686 }'
13687 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13688 # Check for a 64-bit object if we didn't find anything.
13689 if test -z "$aix_libpath"; then
13690 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13691 fi
13692 else
13693 $as_echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696
13697 fi
13698
13699 rm -rf conftest.dSYM
13700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13701 conftest$ac_exeext conftest.$ac_ext
13702 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13703
13704 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13705 # Warning - without using the other run time loading flags,
13706 # -berok will link without error, but may produce a broken library.
13707 no_undefined_flag_CXX=' ${wl}-bernotok'
13708 allow_undefined_flag_CXX=' ${wl}-berok'
13709 # Exported symbols can be pulled into shared objects from archives
13710 whole_archive_flag_spec_CXX='$convenience'
13711 archive_cmds_need_lc_CXX=yes
13712 # This is similar to how AIX traditionally builds its shared
13713 # libraries.
13714 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13715 fi
13716 fi
13717 ;;
13718
13719 beos*)
13720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13721 allow_undefined_flag_CXX=unsupported
13722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13723 # support --undefined. This deserves some investigation. FIXME
13724 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13725 else
13726 ld_shlibs_CXX=no
13727 fi
13728 ;;
13729
13730 chorus*)
13731 case $cc_basename in
13732 *)
13733 # FIXME: insert proper C++ library support
13734 ld_shlibs_CXX=no
13735 ;;
13736 esac
13737 ;;
13738
13739 cygwin* | mingw* | pw32* | cegcc*)
13740 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13741 # as there is no search path for DLLs.
13742 hardcode_libdir_flag_spec_CXX='-L$libdir'
13743 allow_undefined_flag_CXX=unsupported
13744 always_export_symbols_CXX=no
13745 enable_shared_with_static_runtimes_CXX=yes
13746
13747 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13748 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13749 # If the export-symbols file already is a .def file (1st line
13750 # is EXPORTS), use it as is; otherwise, prepend...
13751 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13752 cp $export_symbols $output_objdir/$soname.def;
13753 else
13754 echo EXPORTS > $output_objdir/$soname.def;
13755 cat $export_symbols >> $output_objdir/$soname.def;
13756 fi~
13757 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13758 else
13759 ld_shlibs_CXX=no
13760 fi
13761 ;;
13762 darwin* | rhapsody*)
13763
13764
13765 archive_cmds_need_lc_CXX=no
13766 hardcode_direct_CXX=no
13767 hardcode_automatic_CXX=yes
13768 hardcode_shlibpath_var_CXX=unsupported
13769 whole_archive_flag_spec_CXX=''
13770 link_all_deplibs_CXX=yes
13771 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13772 case $cc_basename in
13773 ifort*) _lt_dar_can_shared=yes ;;
13774 *) _lt_dar_can_shared=$GCC ;;
13775 esac
13776 if test "$_lt_dar_can_shared" = "yes"; then
13777 output_verbose_link_cmd=echo
13778 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13779 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13780 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13781 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13782 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13783 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13784 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13785 fi
13786
13787 else
13788 ld_shlibs_CXX=no
13789 fi
13790
13791 ;;
13792
13793 dgux*)
13794 case $cc_basename in
13795 ec++*)
13796 # FIXME: insert proper C++ library support
13797 ld_shlibs_CXX=no
13798 ;;
13799 ghcx*)
13800 # Green Hills C++ Compiler
13801 # FIXME: insert proper C++ library support
13802 ld_shlibs_CXX=no
13803 ;;
13804 *)
13805 # FIXME: insert proper C++ library support
13806 ld_shlibs_CXX=no
13807 ;;
13808 esac
13809 ;;
13810
13811 freebsd[12]*)
13812 # C++ shared libraries reported to be fairly broken before
13813 # switch to ELF
13814 ld_shlibs_CXX=no
13815 ;;
13816
13817 freebsd-elf*)
13818 archive_cmds_need_lc_CXX=no
13819 ;;
13820
13821 freebsd* | dragonfly*)
13822 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13823 # conventions
13824 ld_shlibs_CXX=yes
13825 ;;
13826
13827 gnu*)
13828 ;;
13829
13830 hpux9*)
13831 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13832 hardcode_libdir_separator_CXX=:
13833 export_dynamic_flag_spec_CXX='${wl}-E'
13834 hardcode_direct_CXX=yes
13835 hardcode_minus_L_CXX=yes # Not in the search PATH,
13836 # but as the default
13837 # location of the library.
13838
13839 case $cc_basename in
13840 CC*)
13841 # FIXME: insert proper C++ library support
13842 ld_shlibs_CXX=no
13843 ;;
13844 aCC*)
13845 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13846 # Commands to make compiler produce verbose output that lists
13847 # what "hidden" libraries, object files and flags are used when
13848 # linking a shared library.
13849 #
13850 # There doesn't appear to be a way to prevent this compiler from
13851 # explicitly linking system object files so we need to strip them
13852 # from the output so that they don't get included in the library
13853 # dependencies.
13854 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13855 ;;
13856 *)
13857 if test "$GXX" = yes; then
13858 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13859 else
13860 # FIXME: insert proper C++ library support
13861 ld_shlibs_CXX=no
13862 fi
13863 ;;
13864 esac
13865 ;;
13866
13867 hpux10*|hpux11*)
13868 if test $with_gnu_ld = no; then
13869 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13870 hardcode_libdir_separator_CXX=:
13871
13872 case $host_cpu in
13873 hppa*64*|ia64*)
13874 ;;
13875 *)
13876 export_dynamic_flag_spec_CXX='${wl}-E'
13877 ;;
13878 esac
13879 fi
13880 case $host_cpu in
13881 hppa*64*|ia64*)
13882 hardcode_direct_CXX=no
13883 hardcode_shlibpath_var_CXX=no
13884 ;;
13885 *)
13886 hardcode_direct_CXX=yes
13887 hardcode_direct_absolute_CXX=yes
13888 hardcode_minus_L_CXX=yes # Not in the search PATH,
13889 # but as the default
13890 # location of the library.
13891 ;;
13892 esac
13893
13894 case $cc_basename in
13895 CC*)
13896 # FIXME: insert proper C++ library support
13897 ld_shlibs_CXX=no
13898 ;;
13899 aCC*)
13900 case $host_cpu in
13901 hppa*64*)
13902 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13903 ;;
13904 ia64*)
13905 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13906 ;;
13907 *)
13908 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13909 ;;
13910 esac
13911 # Commands to make compiler produce verbose output that lists
13912 # what "hidden" libraries, object files and flags are used when
13913 # linking a shared library.
13914 #
13915 # There doesn't appear to be a way to prevent this compiler from
13916 # explicitly linking system object files so we need to strip them
13917 # from the output so that they don't get included in the library
13918 # dependencies.
13919 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13920 ;;
13921 *)
13922 if test "$GXX" = yes; then
13923 if test $with_gnu_ld = no; then
13924 case $host_cpu in
13925 hppa*64*)
13926 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13927 ;;
13928 ia64*)
13929 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13930 ;;
13931 *)
13932 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13933 ;;
13934 esac
13935 fi
13936 else
13937 # FIXME: insert proper C++ library support
13938 ld_shlibs_CXX=no
13939 fi
13940 ;;
13941 esac
13942 ;;
13943
13944 interix[3-9]*)
13945 hardcode_direct_CXX=no
13946 hardcode_shlibpath_var_CXX=no
13947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13948 export_dynamic_flag_spec_CXX='${wl}-E'
13949 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13950 # Instead, shared libraries are loaded at an image base (0x10000000 by
13951 # default) and relocated if they conflict, which is a slow very memory
13952 # consuming and fragmenting process. To avoid this, we pick a random,
13953 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13954 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13955 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13956 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13957 ;;
13958 irix5* | irix6*)
13959 case $cc_basename in
13960 CC*)
13961 # SGI C++
13962 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13963
13964 # Archives containing C++ object files must be created using
13965 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13966 # necessary to make sure instantiated templates are included
13967 # in the archive.
13968 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13969 ;;
13970 *)
13971 if test "$GXX" = yes; then
13972 if test "$with_gnu_ld" = no; then
13973 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13974 else
13975 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13976 fi
13977 fi
13978 link_all_deplibs_CXX=yes
13979 ;;
13980 esac
13981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13982 hardcode_libdir_separator_CXX=:
13983 inherit_rpath_CXX=yes
13984 ;;
13985
13986 linux* | k*bsd*-gnu)
13987 case $cc_basename in
13988 KCC*)
13989 # Kuck and Associates, Inc. (KAI) C++ Compiler
13990
13991 # KCC will only create a shared library if the output file
13992 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13993 # to its proper name (with version) after linking.
13994 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13995 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13996 # Commands to make compiler produce verbose output that lists
13997 # what "hidden" libraries, object files and flags are used when
13998 # linking a shared library.
13999 #
14000 # There doesn't appear to be a way to prevent this compiler from
14001 # explicitly linking system object files so we need to strip them
14002 # from the output so that they don't get included in the library
14003 # dependencies.
14004 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14005
14006 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14007 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14008
14009 # Archives containing C++ object files must be created using
14010 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14011 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14012 ;;
14013 icpc* | ecpc* )
14014 # Intel C++
14015 with_gnu_ld=yes
14016 # version 8.0 and above of icpc choke on multiply defined symbols
14017 # if we add $predep_objects and $postdep_objects, however 7.1 and
14018 # earlier do not add the objects themselves.
14019 case `$CC -V 2>&1` in
14020 *"Version 7."*)
14021 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14022 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14023 ;;
14024 *) # Version 8.0 or newer
14025 tmp_idyn=
14026 case $host_cpu in
14027 ia64*) tmp_idyn=' -i_dynamic';;
14028 esac
14029 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14030 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14031 ;;
14032 esac
14033 archive_cmds_need_lc_CXX=no
14034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14035 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14036 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14037 ;;
14038 pgCC* | pgcpp*)
14039 # Portland Group C++ compiler
14040 case `$CC -V` in
14041 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14042 prelink_cmds_CXX='tpldir=Template.dir~
14043 rm -rf $tpldir~
14044 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14045 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14046 old_archive_cmds_CXX='tpldir=Template.dir~
14047 rm -rf $tpldir~
14048 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14049 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14050 $RANLIB $oldlib'
14051 archive_cmds_CXX='tpldir=Template.dir~
14052 rm -rf $tpldir~
14053 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14054 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14055 archive_expsym_cmds_CXX='tpldir=Template.dir~
14056 rm -rf $tpldir~
14057 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14058 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14059 ;;
14060 *) # Version 6 will use weak symbols
14061 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14062 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14063 ;;
14064 esac
14065
14066 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14067 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14068 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14069 ;;
14070 cxx*)
14071 # Compaq C++
14072 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14073 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14074
14075 runpath_var=LD_RUN_PATH
14076 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14077 hardcode_libdir_separator_CXX=:
14078
14079 # Commands to make compiler produce verbose output that lists
14080 # what "hidden" libraries, object files and flags are used when
14081 # linking a shared library.
14082 #
14083 # There doesn't appear to be a way to prevent this compiler from
14084 # explicitly linking system object files so we need to strip them
14085 # from the output so that they don't get included in the library
14086 # dependencies.
14087 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14088 ;;
14089 xl*)
14090 # IBM XL 8.0 on PPC, with GNU ld
14091 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14093 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14094 if test "x$supports_anon_versioning" = xyes; then
14095 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14096 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14097 echo "local: *; };" >> $output_objdir/$libname.ver~
14098 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14099 fi
14100 ;;
14101 *)
14102 case `$CC -V 2>&1 | sed 5q` in
14103 *Sun\ C*)
14104 # Sun C++ 5.9
14105 no_undefined_flag_CXX=' -zdefs'
14106 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14107 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14108 hardcode_libdir_flag_spec_CXX='-R$libdir'
14109 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14110 compiler_needs_object_CXX=yes
14111
14112 # Not sure whether something based on
14113 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14114 # would be better.
14115 output_verbose_link_cmd='echo'
14116
14117 # Archives containing C++ object files must be created using
14118 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14119 # necessary to make sure instantiated templates are included
14120 # in the archive.
14121 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14122 ;;
14123 esac
14124 ;;
14125 esac
14126 ;;
14127
14128 lynxos*)
14129 # FIXME: insert proper C++ library support
14130 ld_shlibs_CXX=no
14131 ;;
14132
14133 m88k*)
14134 # FIXME: insert proper C++ library support
14135 ld_shlibs_CXX=no
14136 ;;
14137
14138 mvs*)
14139 case $cc_basename in
14140 cxx*)
14141 # FIXME: insert proper C++ library support
14142 ld_shlibs_CXX=no
14143 ;;
14144 *)
14145 # FIXME: insert proper C++ library support
14146 ld_shlibs_CXX=no
14147 ;;
14148 esac
14149 ;;
14150
14151 netbsd*)
14152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14153 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14154 wlarc=
14155 hardcode_libdir_flag_spec_CXX='-R$libdir'
14156 hardcode_direct_CXX=yes
14157 hardcode_shlibpath_var_CXX=no
14158 fi
14159 # Workaround some broken pre-1.5 toolchains
14160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14161 ;;
14162
14163 *nto* | *qnx*)
14164 ld_shlibs_CXX=yes
14165 ;;
14166
14167 openbsd2*)
14168 # C++ shared libraries are fairly broken
14169 ld_shlibs_CXX=no
14170 ;;
14171
14172 openbsd*)
14173 if test -f /usr/libexec/ld.so; then
14174 hardcode_direct_CXX=yes
14175 hardcode_shlibpath_var_CXX=no
14176 hardcode_direct_absolute_CXX=yes
14177 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14178 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14179 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14180 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14181 export_dynamic_flag_spec_CXX='${wl}-E'
14182 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14183 fi
14184 output_verbose_link_cmd=echo
14185 else
14186 ld_shlibs_CXX=no
14187 fi
14188 ;;
14189
14190 osf3* | osf4* | osf5*)
14191 case $cc_basename in
14192 KCC*)
14193 # Kuck and Associates, Inc. (KAI) C++ Compiler
14194
14195 # KCC will only create a shared library if the output file
14196 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14197 # to its proper name (with version) after linking.
14198 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14199
14200 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14201 hardcode_libdir_separator_CXX=:
14202
14203 # Archives containing C++ object files must be created using
14204 # the KAI C++ compiler.
14205 case $host in
14206 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14207 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14208 esac
14209 ;;
14210 RCC*)
14211 # Rational C++ 2.4.1
14212 # FIXME: insert proper C++ library support
14213 ld_shlibs_CXX=no
14214 ;;
14215 cxx*)
14216 case $host in
14217 osf3*)
14218 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14219 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14220 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14221 ;;
14222 *)
14223 allow_undefined_flag_CXX=' -expect_unresolved \*'
14224 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14225 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14226 echo "-hidden">> $lib.exp~
14227 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14228 $RM $lib.exp'
14229 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14230 ;;
14231 esac
14232
14233 hardcode_libdir_separator_CXX=:
14234
14235 # Commands to make compiler produce verbose output that lists
14236 # what "hidden" libraries, object files and flags are used when
14237 # linking a shared library.
14238 #
14239 # There doesn't appear to be a way to prevent this compiler from
14240 # explicitly linking system object files so we need to strip them
14241 # from the output so that they don't get included in the library
14242 # dependencies.
14243 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14244 ;;
14245 *)
14246 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14247 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14248 case $host in
14249 osf3*)
14250 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14251 ;;
14252 *)
14253 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14254 ;;
14255 esac
14256
14257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14258 hardcode_libdir_separator_CXX=:
14259
14260 # Commands to make compiler produce verbose output that lists
14261 # what "hidden" libraries, object files and flags are used when
14262 # linking a shared library.
14263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14264
14265 else
14266 # FIXME: insert proper C++ library support
14267 ld_shlibs_CXX=no
14268 fi
14269 ;;
14270 esac
14271 ;;
14272
14273 psos*)
14274 # FIXME: insert proper C++ library support
14275 ld_shlibs_CXX=no
14276 ;;
14277
14278 sunos4*)
14279 case $cc_basename in
14280 CC*)
14281 # Sun C++ 4.x
14282 # FIXME: insert proper C++ library support
14283 ld_shlibs_CXX=no
14284 ;;
14285 lcc*)
14286 # Lucid
14287 # FIXME: insert proper C++ library support
14288 ld_shlibs_CXX=no
14289 ;;
14290 *)
14291 # FIXME: insert proper C++ library support
14292 ld_shlibs_CXX=no
14293 ;;
14294 esac
14295 ;;
14296
14297 solaris*)
14298 case $cc_basename in
14299 CC*)
14300 # Sun C++ 4.2, 5.x and Centerline C++
14301 archive_cmds_need_lc_CXX=yes
14302 no_undefined_flag_CXX=' -zdefs'
14303 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14304 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14305 $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'
14306
14307 hardcode_libdir_flag_spec_CXX='-R$libdir'
14308 hardcode_shlibpath_var_CXX=no
14309 case $host_os in
14310 solaris2.[0-5] | solaris2.[0-5].*) ;;
14311 *)
14312 # The compiler driver will combine and reorder linker options,
14313 # but understands `-z linker_flag'.
14314 # Supported since Solaris 2.6 (maybe 2.5.1?)
14315 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14316 ;;
14317 esac
14318 link_all_deplibs_CXX=yes
14319
14320 output_verbose_link_cmd='echo'
14321
14322 # Archives containing C++ object files must be created using
14323 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14324 # necessary to make sure instantiated templates are included
14325 # in the archive.
14326 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14327 ;;
14328 gcx*)
14329 # Green Hills C++ Compiler
14330 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14331
14332 # The C++ compiler must be used to create the archive.
14333 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14334 ;;
14335 *)
14336 # GNU C++ compiler with Solaris linker
14337 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14338 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14339 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14340 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14341 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14342 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14343
14344 # Commands to make compiler produce verbose output that lists
14345 # what "hidden" libraries, object files and flags are used when
14346 # linking a shared library.
14347 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14348 else
14349 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14350 # platform.
14351 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14352 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14353 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14354
14355 # Commands to make compiler produce verbose output that lists
14356 # what "hidden" libraries, object files and flags are used when
14357 # linking a shared library.
14358 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14359 fi
14360
14361 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14362 case $host_os in
14363 solaris2.[0-5] | solaris2.[0-5].*) ;;
14364 *)
14365 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14366 ;;
14367 esac
14368 fi
14369 ;;
14370 esac
14371 ;;
14372
14373 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14374 no_undefined_flag_CXX='${wl}-z,text'
14375 archive_cmds_need_lc_CXX=no
14376 hardcode_shlibpath_var_CXX=no
14377 runpath_var='LD_RUN_PATH'
14378
14379 case $cc_basename in
14380 CC*)
14381 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14382 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14383 ;;
14384 *)
14385 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14386 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14387 ;;
14388 esac
14389 ;;
14390
14391 sysv5* | sco3.2v5* | sco5v6*)
14392 # Note: We can NOT use -z defs as we might desire, because we do not
14393 # link with -lc, and that would cause any symbols used from libc to
14394 # always be unresolved, which means just about no library would
14395 # ever link correctly. If we're not using GNU ld we use -z text
14396 # though, which does catch some bad symbols but isn't as heavy-handed
14397 # as -z defs.
14398 no_undefined_flag_CXX='${wl}-z,text'
14399 allow_undefined_flag_CXX='${wl}-z,nodefs'
14400 archive_cmds_need_lc_CXX=no
14401 hardcode_shlibpath_var_CXX=no
14402 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14403 hardcode_libdir_separator_CXX=':'
14404 link_all_deplibs_CXX=yes
14405 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14406 runpath_var='LD_RUN_PATH'
14407
14408 case $cc_basename in
14409 CC*)
14410 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14411 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14412 ;;
14413 *)
14414 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14415 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14416 ;;
14417 esac
14418 ;;
14419
14420 tandem*)
14421 case $cc_basename in
14422 NCC*)
14423 # NonStop-UX NCC 3.20
14424 # FIXME: insert proper C++ library support
14425 ld_shlibs_CXX=no
14426 ;;
14427 *)
14428 # FIXME: insert proper C++ library support
14429 ld_shlibs_CXX=no
14430 ;;
14431 esac
14432 ;;
14433
14434 vxworks*)
14435 # FIXME: insert proper C++ library support
14436 ld_shlibs_CXX=no
14437 ;;
14438
14439 *)
14440 # FIXME: insert proper C++ library support
14441 ld_shlibs_CXX=no
14442 ;;
14443 esac
14444
14445 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14446 $as_echo "$ld_shlibs_CXX" >&6; }
14447 test "$ld_shlibs_CXX" = no && can_build_shared=no
14448
14449 GCC_CXX="$GXX"
14450 LD_CXX="$LD"
14451
14452 ## CAVEAT EMPTOR:
14453 ## There is no encapsulation within the following macros, do not change
14454 ## the running order or otherwise move them around unless you know exactly
14455 ## what you are doing...
14456 # Dependencies to place before and after the object being linked:
14457 predep_objects_CXX=
14458 postdep_objects_CXX=
14459 predeps_CXX=
14460 postdeps_CXX=
14461 compiler_lib_search_path_CXX=
14462
14463 cat > conftest.$ac_ext <<_LT_EOF
14464 class Foo
14465 {
14466 public:
14467 Foo (void) { a = 0; }
14468 private:
14469 int a;
14470 };
14471 _LT_EOF
14472
14473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14474 (eval $ac_compile) 2>&5
14475 ac_status=$?
14476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; then
14478 # Parse the compiler output and extract the necessary
14479 # objects, libraries and library flags.
14480
14481 # Sentinel used to keep track of whether or not we are before
14482 # the conftest object file.
14483 pre_test_object_deps_done=no
14484
14485 for p in `eval "$output_verbose_link_cmd"`; do
14486 case $p in
14487
14488 -L* | -R* | -l*)
14489 # Some compilers place space between "-{L,R}" and the path.
14490 # Remove the space.
14491 if test $p = "-L" ||
14492 test $p = "-R"; then
14493 prev=$p
14494 continue
14495 else
14496 prev=
14497 fi
14498
14499 if test "$pre_test_object_deps_done" = no; then
14500 case $p in
14501 -L* | -R*)
14502 # Internal compiler library paths should come after those
14503 # provided the user. The postdeps already come after the
14504 # user supplied libs so there is no need to process them.
14505 if test -z "$compiler_lib_search_path_CXX"; then
14506 compiler_lib_search_path_CXX="${prev}${p}"
14507 else
14508 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14509 fi
14510 ;;
14511 # The "-l" case would never come before the object being
14512 # linked, so don't bother handling this case.
14513 esac
14514 else
14515 if test -z "$postdeps_CXX"; then
14516 postdeps_CXX="${prev}${p}"
14517 else
14518 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14519 fi
14520 fi
14521 ;;
14522
14523 *.$objext)
14524 # This assumes that the test object file only shows up
14525 # once in the compiler output.
14526 if test "$p" = "conftest.$objext"; then
14527 pre_test_object_deps_done=yes
14528 continue
14529 fi
14530
14531 if test "$pre_test_object_deps_done" = no; then
14532 if test -z "$predep_objects_CXX"; then
14533 predep_objects_CXX="$p"
14534 else
14535 predep_objects_CXX="$predep_objects_CXX $p"
14536 fi
14537 else
14538 if test -z "$postdep_objects_CXX"; then
14539 postdep_objects_CXX="$p"
14540 else
14541 postdep_objects_CXX="$postdep_objects_CXX $p"
14542 fi
14543 fi
14544 ;;
14545
14546 *) ;; # Ignore the rest.
14547
14548 esac
14549 done
14550
14551 # Clean up.
14552 rm -f a.out a.exe
14553 else
14554 echo "libtool.m4: error: problem compiling CXX test program"
14555 fi
14556
14557 $RM -f confest.$objext
14558
14559 # PORTME: override above test on systems where it is broken
14560 case $host_os in
14561 interix[3-9]*)
14562 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14563 # hack all around it, let's just trust "g++" to DTRT.
14564 predep_objects_CXX=
14565 postdep_objects_CXX=
14566 postdeps_CXX=
14567 ;;
14568
14569 linux*)
14570 case `$CC -V 2>&1 | sed 5q` in
14571 *Sun\ C*)
14572 # Sun C++ 5.9
14573
14574 # The more standards-conforming stlport4 library is
14575 # incompatible with the Cstd library. Avoid specifying
14576 # it if it's in CXXFLAGS. Ignore libCrun as
14577 # -library=stlport4 depends on it.
14578 case " $CXX $CXXFLAGS " in
14579 *" -library=stlport4 "*)
14580 solaris_use_stlport4=yes
14581 ;;
14582 esac
14583
14584 if test "$solaris_use_stlport4" != yes; then
14585 postdeps_CXX='-library=Cstd -library=Crun'
14586 fi
14587 ;;
14588 esac
14589 ;;
14590
14591 solaris*)
14592 case $cc_basename in
14593 CC*)
14594 # The more standards-conforming stlport4 library is
14595 # incompatible with the Cstd library. Avoid specifying
14596 # it if it's in CXXFLAGS. Ignore libCrun as
14597 # -library=stlport4 depends on it.
14598 case " $CXX $CXXFLAGS " in
14599 *" -library=stlport4 "*)
14600 solaris_use_stlport4=yes
14601 ;;
14602 esac
14603
14604 # Adding this requires a known-good setup of shared libraries for
14605 # Sun compiler versions before 5.6, else PIC objects from an old
14606 # archive will be linked into the output, leading to subtle bugs.
14607 if test "$solaris_use_stlport4" != yes; then
14608 postdeps_CXX='-library=Cstd -library=Crun'
14609 fi
14610 ;;
14611 esac
14612 ;;
14613 esac
14614
14615
14616 case " $postdeps_CXX " in
14617 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14618 esac
14619 compiler_lib_search_dirs_CXX=
14620 if test -n "${compiler_lib_search_path_CXX}"; then
14621 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14622 fi
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654 lt_prog_compiler_wl_CXX=
14655 lt_prog_compiler_pic_CXX=
14656 lt_prog_compiler_static_CXX=
14657
14658 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14659 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14660
14661 # C++ specific cases for pic, static, wl, etc.
14662 if test "$GXX" = yes; then
14663 lt_prog_compiler_wl_CXX='-Wl,'
14664 lt_prog_compiler_static_CXX='-static'
14665
14666 case $host_os in
14667 aix*)
14668 # All AIX code is PIC.
14669 if test "$host_cpu" = ia64; then
14670 # AIX 5 now supports IA64 processor
14671 lt_prog_compiler_static_CXX='-Bstatic'
14672 fi
14673 ;;
14674
14675 amigaos*)
14676 case $host_cpu in
14677 powerpc)
14678 # see comment about AmigaOS4 .so support
14679 lt_prog_compiler_pic_CXX='-fPIC'
14680 ;;
14681 m68k)
14682 # FIXME: we need at least 68020 code to build shared libraries, but
14683 # adding the `-m68020' flag to GCC prevents building anything better,
14684 # like `-m68040'.
14685 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14686 ;;
14687 esac
14688 ;;
14689
14690 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14691 # PIC is the default for these OSes.
14692 ;;
14693 mingw* | cygwin* | os2* | pw32* | cegcc*)
14694 # This hack is so that the source file can tell whether it is being
14695 # built for inclusion in a dll (and should export symbols for example).
14696 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14697 # (--disable-auto-import) libraries
14698 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14699 ;;
14700 darwin* | rhapsody*)
14701 # PIC is the default on this platform
14702 # Common symbols not allowed in MH_DYLIB files
14703 lt_prog_compiler_pic_CXX='-fno-common'
14704 ;;
14705 *djgpp*)
14706 # DJGPP does not support shared libraries at all
14707 lt_prog_compiler_pic_CXX=
14708 ;;
14709 interix[3-9]*)
14710 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14711 # Instead, we relocate shared libraries at runtime.
14712 ;;
14713 sysv4*MP*)
14714 if test -d /usr/nec; then
14715 lt_prog_compiler_pic_CXX=-Kconform_pic
14716 fi
14717 ;;
14718 hpux*)
14719 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14720 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14721 # sets the default TLS model and affects inlining.
14722 case $host_cpu in
14723 hppa*64*)
14724 ;;
14725 *)
14726 lt_prog_compiler_pic_CXX='-fPIC'
14727 ;;
14728 esac
14729 ;;
14730 *qnx* | *nto*)
14731 # QNX uses GNU C++, but need to define -shared option too, otherwise
14732 # it will coredump.
14733 lt_prog_compiler_pic_CXX='-fPIC -shared'
14734 ;;
14735 *)
14736 lt_prog_compiler_pic_CXX='-fPIC'
14737 ;;
14738 esac
14739 else
14740 case $host_os in
14741 aix[4-9]*)
14742 # All AIX code is PIC.
14743 if test "$host_cpu" = ia64; then
14744 # AIX 5 now supports IA64 processor
14745 lt_prog_compiler_static_CXX='-Bstatic'
14746 else
14747 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14748 fi
14749 ;;
14750 chorus*)
14751 case $cc_basename in
14752 cxch68*)
14753 # Green Hills C++ Compiler
14754 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14755 ;;
14756 esac
14757 ;;
14758 dgux*)
14759 case $cc_basename in
14760 ec++*)
14761 lt_prog_compiler_pic_CXX='-KPIC'
14762 ;;
14763 ghcx*)
14764 # Green Hills C++ Compiler
14765 lt_prog_compiler_pic_CXX='-pic'
14766 ;;
14767 *)
14768 ;;
14769 esac
14770 ;;
14771 freebsd* | dragonfly*)
14772 # FreeBSD uses GNU C++
14773 ;;
14774 hpux9* | hpux10* | hpux11*)
14775 case $cc_basename in
14776 CC*)
14777 lt_prog_compiler_wl_CXX='-Wl,'
14778 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14779 if test "$host_cpu" != ia64; then
14780 lt_prog_compiler_pic_CXX='+Z'
14781 fi
14782 ;;
14783 aCC*)
14784 lt_prog_compiler_wl_CXX='-Wl,'
14785 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14786 case $host_cpu in
14787 hppa*64*|ia64*)
14788 # +Z the default
14789 ;;
14790 *)
14791 lt_prog_compiler_pic_CXX='+Z'
14792 ;;
14793 esac
14794 ;;
14795 *)
14796 ;;
14797 esac
14798 ;;
14799 interix*)
14800 # This is c89, which is MS Visual C++ (no shared libs)
14801 # Anyone wants to do a port?
14802 ;;
14803 irix5* | irix6* | nonstopux*)
14804 case $cc_basename in
14805 CC*)
14806 lt_prog_compiler_wl_CXX='-Wl,'
14807 lt_prog_compiler_static_CXX='-non_shared'
14808 # CC pic flag -KPIC is the default.
14809 ;;
14810 *)
14811 ;;
14812 esac
14813 ;;
14814 linux* | k*bsd*-gnu)
14815 case $cc_basename in
14816 KCC*)
14817 # KAI C++ Compiler
14818 lt_prog_compiler_wl_CXX='--backend -Wl,'
14819 lt_prog_compiler_pic_CXX='-fPIC'
14820 ;;
14821 ecpc* )
14822 # old Intel C++ for x86_64 which still supported -KPIC.
14823 lt_prog_compiler_wl_CXX='-Wl,'
14824 lt_prog_compiler_pic_CXX='-KPIC'
14825 lt_prog_compiler_static_CXX='-static'
14826 ;;
14827 icpc* )
14828 # Intel C++, used to be incompatible with GCC.
14829 # ICC 10 doesn't accept -KPIC any more.
14830 lt_prog_compiler_wl_CXX='-Wl,'
14831 lt_prog_compiler_pic_CXX='-fPIC'
14832 lt_prog_compiler_static_CXX='-static'
14833 ;;
14834 pgCC* | pgcpp*)
14835 # Portland Group C++ compiler
14836 lt_prog_compiler_wl_CXX='-Wl,'
14837 lt_prog_compiler_pic_CXX='-fpic'
14838 lt_prog_compiler_static_CXX='-Bstatic'
14839 ;;
14840 cxx*)
14841 # Compaq C++
14842 # Make sure the PIC flag is empty. It appears that all Alpha
14843 # Linux and Compaq Tru64 Unix objects are PIC.
14844 lt_prog_compiler_pic_CXX=
14845 lt_prog_compiler_static_CXX='-non_shared'
14846 ;;
14847 xlc* | xlC*)
14848 # IBM XL 8.0 on PPC
14849 lt_prog_compiler_wl_CXX='-Wl,'
14850 lt_prog_compiler_pic_CXX='-qpic'
14851 lt_prog_compiler_static_CXX='-qstaticlink'
14852 ;;
14853 *)
14854 case `$CC -V 2>&1 | sed 5q` in
14855 *Sun\ C*)
14856 # Sun C++ 5.9
14857 lt_prog_compiler_pic_CXX='-KPIC'
14858 lt_prog_compiler_static_CXX='-Bstatic'
14859 lt_prog_compiler_wl_CXX='-Qoption ld '
14860 ;;
14861 esac
14862 ;;
14863 esac
14864 ;;
14865 lynxos*)
14866 ;;
14867 m88k*)
14868 ;;
14869 mvs*)
14870 case $cc_basename in
14871 cxx*)
14872 lt_prog_compiler_pic_CXX='-W c,exportall'
14873 ;;
14874 *)
14875 ;;
14876 esac
14877 ;;
14878 netbsd* | netbsdelf*-gnu)
14879 ;;
14880 *qnx* | *nto*)
14881 # QNX uses GNU C++, but need to define -shared option too, otherwise
14882 # it will coredump.
14883 lt_prog_compiler_pic_CXX='-fPIC -shared'
14884 ;;
14885 osf3* | osf4* | osf5*)
14886 case $cc_basename in
14887 KCC*)
14888 lt_prog_compiler_wl_CXX='--backend -Wl,'
14889 ;;
14890 RCC*)
14891 # Rational C++ 2.4.1
14892 lt_prog_compiler_pic_CXX='-pic'
14893 ;;
14894 cxx*)
14895 # Digital/Compaq C++
14896 lt_prog_compiler_wl_CXX='-Wl,'
14897 # Make sure the PIC flag is empty. It appears that all Alpha
14898 # Linux and Compaq Tru64 Unix objects are PIC.
14899 lt_prog_compiler_pic_CXX=
14900 lt_prog_compiler_static_CXX='-non_shared'
14901 ;;
14902 *)
14903 ;;
14904 esac
14905 ;;
14906 psos*)
14907 ;;
14908 solaris*)
14909 case $cc_basename in
14910 CC*)
14911 # Sun C++ 4.2, 5.x and Centerline C++
14912 lt_prog_compiler_pic_CXX='-KPIC'
14913 lt_prog_compiler_static_CXX='-Bstatic'
14914 lt_prog_compiler_wl_CXX='-Qoption ld '
14915 ;;
14916 gcx*)
14917 # Green Hills C++ Compiler
14918 lt_prog_compiler_pic_CXX='-PIC'
14919 ;;
14920 *)
14921 ;;
14922 esac
14923 ;;
14924 sunos4*)
14925 case $cc_basename in
14926 CC*)
14927 # Sun C++ 4.x
14928 lt_prog_compiler_pic_CXX='-pic'
14929 lt_prog_compiler_static_CXX='-Bstatic'
14930 ;;
14931 lcc*)
14932 # Lucid
14933 lt_prog_compiler_pic_CXX='-pic'
14934 ;;
14935 *)
14936 ;;
14937 esac
14938 ;;
14939 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14940 case $cc_basename in
14941 CC*)
14942 lt_prog_compiler_wl_CXX='-Wl,'
14943 lt_prog_compiler_pic_CXX='-KPIC'
14944 lt_prog_compiler_static_CXX='-Bstatic'
14945 ;;
14946 esac
14947 ;;
14948 tandem*)
14949 case $cc_basename in
14950 NCC*)
14951 # NonStop-UX NCC 3.20
14952 lt_prog_compiler_pic_CXX='-KPIC'
14953 ;;
14954 *)
14955 ;;
14956 esac
14957 ;;
14958 vxworks*)
14959 ;;
14960 *)
14961 lt_prog_compiler_can_build_shared_CXX=no
14962 ;;
14963 esac
14964 fi
14965
14966 case $host_os in
14967 # For platforms which do not support PIC, -DPIC is meaningless:
14968 *djgpp*)
14969 lt_prog_compiler_pic_CXX=
14970 ;;
14971 *)
14972 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14973 ;;
14974 esac
14975 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14976 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14977
14978
14979
14980 #
14981 # Check to make sure the PIC flag actually works.
14982 #
14983 if test -n "$lt_prog_compiler_pic_CXX"; then
14984 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14985 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14986 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14987 $as_echo_n "(cached) " >&6
14988 else
14989 lt_cv_prog_compiler_pic_works_CXX=no
14990 ac_outfile=conftest.$ac_objext
14991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14992 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14993 # Insert the option either (1) after the last *FLAGS variable, or
14994 # (2) before a word containing "conftest.", or (3) at the end.
14995 # Note that $ac_compile itself does not contain backslashes and begins
14996 # with a dollar sign (not a hyphen), so the echo should work correctly.
14997 # The option is referenced via a variable to avoid confusing sed.
14998 lt_compile=`echo "$ac_compile" | $SED \
14999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15001 -e 's:$: $lt_compiler_flag:'`
15002 (eval echo "\"\$as_me:15003: $lt_compile\"" >&5)
15003 (eval "$lt_compile" 2>conftest.err)
15004 ac_status=$?
15005 cat conftest.err >&5
15006 echo "$as_me:15007: \$? = $ac_status" >&5
15007 if (exit $ac_status) && test -s "$ac_outfile"; then
15008 # The compiler can only warn and ignore the option if not recognized
15009 # So say no if there are warnings other than the usual output.
15010 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15013 lt_cv_prog_compiler_pic_works_CXX=yes
15014 fi
15015 fi
15016 $RM conftest*
15017
15018 fi
15019 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15020 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15021
15022 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15023 case $lt_prog_compiler_pic_CXX in
15024 "" | " "*) ;;
15025 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15026 esac
15027 else
15028 lt_prog_compiler_pic_CXX=
15029 lt_prog_compiler_can_build_shared_CXX=no
15030 fi
15031
15032 fi
15033
15034
15035
15036 #
15037 # Check to make sure the static flag actually works.
15038 #
15039 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15040 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15041 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15042 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15043 $as_echo_n "(cached) " >&6
15044 else
15045 lt_cv_prog_compiler_static_works_CXX=no
15046 save_LDFLAGS="$LDFLAGS"
15047 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15048 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15049 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15050 # The linker can only warn and ignore the option if not recognized
15051 # So say no if there are warnings
15052 if test -s conftest.err; then
15053 # Append any errors to the config.log.
15054 cat conftest.err 1>&5
15055 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15057 if diff conftest.exp conftest.er2 >/dev/null; then
15058 lt_cv_prog_compiler_static_works_CXX=yes
15059 fi
15060 else
15061 lt_cv_prog_compiler_static_works_CXX=yes
15062 fi
15063 fi
15064 $RM -r conftest*
15065 LDFLAGS="$save_LDFLAGS"
15066
15067 fi
15068 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15069 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15070
15071 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15072 :
15073 else
15074 lt_prog_compiler_static_CXX=
15075 fi
15076
15077
15078
15079
15080 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15081 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15082 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15083 $as_echo_n "(cached) " >&6
15084 else
15085 lt_cv_prog_compiler_c_o_CXX=no
15086 $RM -r conftest 2>/dev/null
15087 mkdir conftest
15088 cd conftest
15089 mkdir out
15090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15091
15092 lt_compiler_flag="-o out/conftest2.$ac_objext"
15093 # Insert the option either (1) after the last *FLAGS variable, or
15094 # (2) before a word containing "conftest.", or (3) at the end.
15095 # Note that $ac_compile itself does not contain backslashes and begins
15096 # with a dollar sign (not a hyphen), so the echo should work correctly.
15097 lt_compile=`echo "$ac_compile" | $SED \
15098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15100 -e 's:$: $lt_compiler_flag:'`
15101 (eval echo "\"\$as_me:15102: $lt_compile\"" >&5)
15102 (eval "$lt_compile" 2>out/conftest.err)
15103 ac_status=$?
15104 cat out/conftest.err >&5
15105 echo "$as_me:15106: \$? = $ac_status" >&5
15106 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15107 then
15108 # The compiler can only warn and ignore the option if not recognized
15109 # So say no if there are warnings
15110 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15111 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15112 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15113 lt_cv_prog_compiler_c_o_CXX=yes
15114 fi
15115 fi
15116 chmod u+w . 2>&5
15117 $RM conftest*
15118 # SGI C++ compiler will create directory out/ii_files/ for
15119 # template instantiation
15120 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15121 $RM out/* && rmdir out
15122 cd ..
15123 $RM -r conftest
15124 $RM conftest*
15125
15126 fi
15127 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15128 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15129
15130
15131
15132 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15133 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15134 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15135 $as_echo_n "(cached) " >&6
15136 else
15137 lt_cv_prog_compiler_c_o_CXX=no
15138 $RM -r conftest 2>/dev/null
15139 mkdir conftest
15140 cd conftest
15141 mkdir out
15142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15143
15144 lt_compiler_flag="-o out/conftest2.$ac_objext"
15145 # Insert the option either (1) after the last *FLAGS variable, or
15146 # (2) before a word containing "conftest.", or (3) at the end.
15147 # Note that $ac_compile itself does not contain backslashes and begins
15148 # with a dollar sign (not a hyphen), so the echo should work correctly.
15149 lt_compile=`echo "$ac_compile" | $SED \
15150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15152 -e 's:$: $lt_compiler_flag:'`
15153 (eval echo "\"\$as_me:15154: $lt_compile\"" >&5)
15154 (eval "$lt_compile" 2>out/conftest.err)
15155 ac_status=$?
15156 cat out/conftest.err >&5
15157 echo "$as_me:15158: \$? = $ac_status" >&5
15158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15159 then
15160 # The compiler can only warn and ignore the option if not recognized
15161 # So say no if there are warnings
15162 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15165 lt_cv_prog_compiler_c_o_CXX=yes
15166 fi
15167 fi
15168 chmod u+w . 2>&5
15169 $RM conftest*
15170 # SGI C++ compiler will create directory out/ii_files/ for
15171 # template instantiation
15172 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15173 $RM out/* && rmdir out
15174 cd ..
15175 $RM -r conftest
15176 $RM conftest*
15177
15178 fi
15179 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15180 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15181
15182
15183
15184
15185 hard_links="nottested"
15186 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15187 # do not overwrite the value of need_locks provided by the user
15188 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15189 $as_echo_n "checking if we can lock with hard links... " >&6; }
15190 hard_links=yes
15191 $RM conftest*
15192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15193 touch conftest.a
15194 ln conftest.a conftest.b 2>&5 || hard_links=no
15195 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15196 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15197 $as_echo "$hard_links" >&6; }
15198 if test "$hard_links" = no; then
15199 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15200 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15201 need_locks=warn
15202 fi
15203 else
15204 need_locks=no
15205 fi
15206
15207
15208
15209 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15210 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15211
15212 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15213 case $host_os in
15214 aix[4-9]*)
15215 # If we're using GNU nm, then we don't want the "-C" option.
15216 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15217 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15218 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15219 else
15220 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15221 fi
15222 ;;
15223 pw32*)
15224 export_symbols_cmds_CXX="$ltdll_cmds"
15225 ;;
15226 cygwin* | mingw* | cegcc*)
15227 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15228 ;;
15229 linux* | k*bsd*-gnu)
15230 link_all_deplibs_CXX=no
15231 ;;
15232 *)
15233 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15234 ;;
15235 esac
15236 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15237
15238 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15239 $as_echo "$ld_shlibs_CXX" >&6; }
15240 test "$ld_shlibs_CXX" = no && can_build_shared=no
15241
15242 with_gnu_ld_CXX=$with_gnu_ld
15243
15244
15245
15246
15247
15248
15249 #
15250 # Do we need to explicitly link libc?
15251 #
15252 case "x$archive_cmds_need_lc_CXX" in
15253 x|xyes)
15254 # Assume -lc should be added
15255 archive_cmds_need_lc_CXX=yes
15256
15257 if test "$enable_shared" = yes && test "$GCC" = yes; then
15258 case $archive_cmds_CXX in
15259 *'~'*)
15260 # FIXME: we may have to deal with multi-command sequences.
15261 ;;
15262 '$CC '*)
15263 # Test whether the compiler implicitly links with -lc since on some
15264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15265 # to ld, don't add -lc before -lgcc.
15266 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15267 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15268 $RM conftest*
15269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15270
15271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15272 (eval $ac_compile) 2>&5
15273 ac_status=$?
15274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } 2>conftest.err; then
15276 soname=conftest
15277 lib=conftest
15278 libobjs=conftest.$ac_objext
15279 deplibs=
15280 wl=$lt_prog_compiler_wl_CXX
15281 pic_flag=$lt_prog_compiler_pic_CXX
15282 compiler_flags=-v
15283 linker_flags=-v
15284 verstring=
15285 output_objdir=.
15286 libname=conftest
15287 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15288 allow_undefined_flag_CXX=
15289 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15290 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15291 ac_status=$?
15292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }
15294 then
15295 archive_cmds_need_lc_CXX=no
15296 else
15297 archive_cmds_need_lc_CXX=yes
15298 fi
15299 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15300 else
15301 cat conftest.err 1>&5
15302 fi
15303 $RM conftest*
15304 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15305 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15306 ;;
15307 esac
15308 fi
15309 ;;
15310 esac
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15376 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15377
15378 library_names_spec=
15379 libname_spec='lib$name'
15380 soname_spec=
15381 shrext_cmds=".so"
15382 postinstall_cmds=
15383 postuninstall_cmds=
15384 finish_cmds=
15385 finish_eval=
15386 shlibpath_var=
15387 shlibpath_overrides_runpath=unknown
15388 version_type=none
15389 dynamic_linker="$host_os ld.so"
15390 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15391 need_lib_prefix=unknown
15392 hardcode_into_libs=no
15393
15394 # when you set need_version to no, make sure it does not cause -set_version
15395 # flags to be left without arguments
15396 need_version=unknown
15397
15398 case $host_os in
15399 aix3*)
15400 version_type=linux
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15402 shlibpath_var=LIBPATH
15403
15404 # AIX 3 has no versioning support, so we append a major version to the name.
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 ;;
15407
15408 aix[4-9]*)
15409 version_type=linux
15410 need_lib_prefix=no
15411 need_version=no
15412 hardcode_into_libs=yes
15413 if test "$host_cpu" = ia64; then
15414 # AIX 5 supports IA64
15415 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 else
15418 # With GCC up to 2.95.x, collect2 would create an import file
15419 # for dependence libraries. The import file would start with
15420 # the line `#! .'. This would cause the generated library to
15421 # depend on `.', always an invalid library. This was fixed in
15422 # development snapshots of GCC prior to 3.0.
15423 case $host_os in
15424 aix4 | aix4.[01] | aix4.[01].*)
15425 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15426 echo ' yes '
15427 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15428 :
15429 else
15430 can_build_shared=no
15431 fi
15432 ;;
15433 esac
15434 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15435 # soname into executable. Probably we can add versioning support to
15436 # collect2, so additional links can be useful in future.
15437 if test "$aix_use_runtimelinking" = yes; then
15438 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15439 # instead of lib<name>.a to let people know that these are not
15440 # typical AIX shared libraries.
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442 else
15443 # We preserve .a as extension for shared libraries through AIX4.2
15444 # and later when we are not doing run time linking.
15445 library_names_spec='${libname}${release}.a $libname.a'
15446 soname_spec='${libname}${release}${shared_ext}$major'
15447 fi
15448 shlibpath_var=LIBPATH
15449 fi
15450 ;;
15451
15452 amigaos*)
15453 case $host_cpu in
15454 powerpc)
15455 # Since July 2007 AmigaOS4 officially supports .so libraries.
15456 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458 ;;
15459 m68k)
15460 library_names_spec='$libname.ixlibrary $libname.a'
15461 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15462 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15463 ;;
15464 esac
15465 ;;
15466
15467 beos*)
15468 library_names_spec='${libname}${shared_ext}'
15469 dynamic_linker="$host_os ld.so"
15470 shlibpath_var=LIBRARY_PATH
15471 ;;
15472
15473 bsdi[45]*)
15474 version_type=linux
15475 need_version=no
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15477 soname_spec='${libname}${release}${shared_ext}$major'
15478 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15481 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15482 # the default ld.so.conf also contains /usr/contrib/lib and
15483 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15484 # libtool to hard-code these into programs
15485 ;;
15486
15487 cygwin* | mingw* | pw32* | cegcc*)
15488 version_type=windows
15489 shrext_cmds=".dll"
15490 need_version=no
15491 need_lib_prefix=no
15492
15493 case $GCC,$host_os in
15494 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15495 library_names_spec='$libname.dll.a'
15496 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15497 postinstall_cmds='base_file=`basename \${file}`~
15498 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15499 dldir=$destdir/`dirname \$dlpath`~
15500 test -d \$dldir || mkdir -p \$dldir~
15501 $install_prog $dir/$dlname \$dldir/$dlname~
15502 chmod a+x \$dldir/$dlname~
15503 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15504 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15505 fi'
15506 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15507 dlpath=$dir/\$dldll~
15508 $RM \$dlpath'
15509 shlibpath_overrides_runpath=yes
15510
15511 case $host_os in
15512 cygwin*)
15513 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15514 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15515 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15516 ;;
15517 mingw* | cegcc*)
15518 # MinGW DLLs use traditional 'lib' prefix
15519 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15520 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15521 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15522 # It is most probably a Windows format PATH printed by
15523 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15524 # path with ; separators, and with drive letters. We can handle the
15525 # drive letters (cygwin fileutils understands them), so leave them,
15526 # especially as we might pass files found there to a mingw objdump,
15527 # which wouldn't understand a cygwinified path. Ahh.
15528 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15529 else
15530 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15531 fi
15532 ;;
15533 pw32*)
15534 # pw32 DLLs use 'pw' prefix rather than 'lib'
15535 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15536 ;;
15537 esac
15538 ;;
15539
15540 *)
15541 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15542 ;;
15543 esac
15544 dynamic_linker='Win32 ld.exe'
15545 # FIXME: first we should search . and the directory the executable is in
15546 shlibpath_var=PATH
15547 ;;
15548
15549 darwin* | rhapsody*)
15550 dynamic_linker="$host_os dyld"
15551 version_type=darwin
15552 need_lib_prefix=no
15553 need_version=no
15554 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15555 soname_spec='${libname}${release}${major}$shared_ext'
15556 shlibpath_overrides_runpath=yes
15557 shlibpath_var=DYLD_LIBRARY_PATH
15558 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15559
15560 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15561 ;;
15562
15563 dgux*)
15564 version_type=linux
15565 need_lib_prefix=no
15566 need_version=no
15567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15568 soname_spec='${libname}${release}${shared_ext}$major'
15569 shlibpath_var=LD_LIBRARY_PATH
15570 ;;
15571
15572 freebsd1*)
15573 dynamic_linker=no
15574 ;;
15575
15576 freebsd* | dragonfly*)
15577 # DragonFly does not have aout. When/if they implement a new
15578 # versioning mechanism, adjust this.
15579 if test -x /usr/bin/objformat; then
15580 objformat=`/usr/bin/objformat`
15581 else
15582 case $host_os in
15583 freebsd[123]*) objformat=aout ;;
15584 *) objformat=elf ;;
15585 esac
15586 fi
15587 version_type=freebsd-$objformat
15588 case $version_type in
15589 freebsd-elf*)
15590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15591 need_version=no
15592 need_lib_prefix=no
15593 ;;
15594 freebsd-*)
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15596 need_version=yes
15597 ;;
15598 esac
15599 shlibpath_var=LD_LIBRARY_PATH
15600 case $host_os in
15601 freebsd2*)
15602 shlibpath_overrides_runpath=yes
15603 ;;
15604 freebsd3.[01]* | freebsdelf3.[01]*)
15605 shlibpath_overrides_runpath=yes
15606 hardcode_into_libs=yes
15607 ;;
15608 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15609 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15610 shlibpath_overrides_runpath=no
15611 hardcode_into_libs=yes
15612 ;;
15613 *) # from 4.6 on, and DragonFly
15614 shlibpath_overrides_runpath=yes
15615 hardcode_into_libs=yes
15616 ;;
15617 esac
15618 ;;
15619
15620 gnu*)
15621 version_type=linux
15622 need_lib_prefix=no
15623 need_version=no
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15625 soname_spec='${libname}${release}${shared_ext}$major'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 hardcode_into_libs=yes
15628 ;;
15629
15630 hpux9* | hpux10* | hpux11*)
15631 # Give a soname corresponding to the major version so that dld.sl refuses to
15632 # link against other versions.
15633 version_type=sunos
15634 need_lib_prefix=no
15635 need_version=no
15636 case $host_cpu in
15637 ia64*)
15638 shrext_cmds='.so'
15639 hardcode_into_libs=yes
15640 dynamic_linker="$host_os dld.so"
15641 shlibpath_var=LD_LIBRARY_PATH
15642 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 if test "X$HPUX_IA64_MODE" = X32; then
15646 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15647 else
15648 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15649 fi
15650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15651 ;;
15652 hppa*64*)
15653 shrext_cmds='.sl'
15654 hardcode_into_libs=yes
15655 dynamic_linker="$host_os dld.sl"
15656 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659 soname_spec='${libname}${release}${shared_ext}$major'
15660 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15662 ;;
15663 *)
15664 shrext_cmds='.sl'
15665 dynamic_linker="$host_os dld.sl"
15666 shlibpath_var=SHLIB_PATH
15667 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15669 soname_spec='${libname}${release}${shared_ext}$major'
15670 ;;
15671 esac
15672 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15673 postinstall_cmds='chmod 555 $lib'
15674 ;;
15675
15676 interix[3-9]*)
15677 version_type=linux
15678 need_lib_prefix=no
15679 need_version=no
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 shlibpath_overrides_runpath=no
15685 hardcode_into_libs=yes
15686 ;;
15687
15688 irix5* | irix6* | nonstopux*)
15689 case $host_os in
15690 nonstopux*) version_type=nonstopux ;;
15691 *)
15692 if test "$lt_cv_prog_gnu_ld" = yes; then
15693 version_type=linux
15694 else
15695 version_type=irix
15696 fi ;;
15697 esac
15698 need_lib_prefix=no
15699 need_version=no
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15702 case $host_os in
15703 irix5* | nonstopux*)
15704 libsuff= shlibsuff=
15705 ;;
15706 *)
15707 case $LD in # libtool.m4 will add one of these switches to LD
15708 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15709 libsuff= shlibsuff= libmagic=32-bit;;
15710 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15711 libsuff=32 shlibsuff=N32 libmagic=N32;;
15712 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15713 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15714 *) libsuff= shlibsuff= libmagic=never-match;;
15715 esac
15716 ;;
15717 esac
15718 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15719 shlibpath_overrides_runpath=no
15720 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15721 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15722 hardcode_into_libs=yes
15723 ;;
15724
15725 # No shared lib support for Linux oldld, aout, or coff.
15726 linux*oldld* | linux*aout* | linux*coff*)
15727 dynamic_linker=no
15728 ;;
15729
15730 # This must be Linux ELF.
15731 linux* | k*bsd*-gnu)
15732 version_type=linux
15733 need_lib_prefix=no
15734 need_version=no
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15738 shlibpath_var=LD_LIBRARY_PATH
15739 shlibpath_overrides_runpath=no
15740 # Some binutils ld are patched to set DT_RUNPATH
15741 save_LDFLAGS=$LDFLAGS
15742 save_libdir=$libdir
15743 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15744 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15745 cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h. */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751
15752 int
15753 main ()
15754 {
15755
15756 ;
15757 return 0;
15758 }
15759 _ACEOF
15760 rm -f conftest.$ac_objext conftest$ac_exeext
15761 if { (ac_try="$ac_link"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15765 esac
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_link") 2>conftest.er1
15769 ac_status=$?
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_cxx_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest$ac_exeext && {
15778 test "$cross_compiling" = yes ||
15779 $as_test_x conftest$ac_exeext
15780 }; then
15781 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15782 shlibpath_overrides_runpath=yes
15783 fi
15784
15785 else
15786 $as_echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789
15790 fi
15791
15792 rm -rf conftest.dSYM
15793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15794 conftest$ac_exeext conftest.$ac_ext
15795 LDFLAGS=$save_LDFLAGS
15796 libdir=$save_libdir
15797
15798 # This implies no fast_install, which is unacceptable.
15799 # Some rework will be needed to allow for fast_install
15800 # before this can be enabled.
15801 hardcode_into_libs=yes
15802
15803 # Append ld.so.conf contents to the search path
15804 if test -f /etc/ld.so.conf; then
15805 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15806 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15807 fi
15808
15809 # We used to test for /lib/ld.so.1 and disable shared libraries on
15810 # powerpc, because MkLinux only supported shared libraries with the
15811 # GNU dynamic linker. Since this was broken with cross compilers,
15812 # most powerpc-linux boxes support dynamic linking these days and
15813 # people can always --disable-shared, the test was removed, and we
15814 # assume the GNU/Linux dynamic linker is in use.
15815 dynamic_linker='GNU/Linux ld.so'
15816 ;;
15817
15818 netbsdelf*-gnu)
15819 version_type=linux
15820 need_lib_prefix=no
15821 need_version=no
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15823 soname_spec='${libname}${release}${shared_ext}$major'
15824 shlibpath_var=LD_LIBRARY_PATH
15825 shlibpath_overrides_runpath=no
15826 hardcode_into_libs=yes
15827 dynamic_linker='NetBSD ld.elf_so'
15828 ;;
15829
15830 netbsd*)
15831 version_type=sunos
15832 need_lib_prefix=no
15833 need_version=no
15834 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15837 dynamic_linker='NetBSD (a.out) ld.so'
15838 else
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15840 soname_spec='${libname}${release}${shared_ext}$major'
15841 dynamic_linker='NetBSD ld.elf_so'
15842 fi
15843 shlibpath_var=LD_LIBRARY_PATH
15844 shlibpath_overrides_runpath=yes
15845 hardcode_into_libs=yes
15846 ;;
15847
15848 newsos6)
15849 version_type=linux
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851 shlibpath_var=LD_LIBRARY_PATH
15852 shlibpath_overrides_runpath=yes
15853 ;;
15854
15855 *nto* | *qnx*)
15856 version_type=qnx
15857 need_lib_prefix=no
15858 need_version=no
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15861 shlibpath_var=LD_LIBRARY_PATH
15862 shlibpath_overrides_runpath=no
15863 hardcode_into_libs=yes
15864 dynamic_linker='ldqnx.so'
15865 ;;
15866
15867 openbsd*)
15868 version_type=sunos
15869 sys_lib_dlsearch_path_spec="/usr/lib"
15870 need_lib_prefix=no
15871 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15872 case $host_os in
15873 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15874 *) need_version=no ;;
15875 esac
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15878 shlibpath_var=LD_LIBRARY_PATH
15879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15880 case $host_os in
15881 openbsd2.[89] | openbsd2.[89].*)
15882 shlibpath_overrides_runpath=no
15883 ;;
15884 *)
15885 shlibpath_overrides_runpath=yes
15886 ;;
15887 esac
15888 else
15889 shlibpath_overrides_runpath=yes
15890 fi
15891 ;;
15892
15893 os2*)
15894 libname_spec='$name'
15895 shrext_cmds=".dll"
15896 need_lib_prefix=no
15897 library_names_spec='$libname${shared_ext} $libname.a'
15898 dynamic_linker='OS/2 ld.exe'
15899 shlibpath_var=LIBPATH
15900 ;;
15901
15902 osf3* | osf4* | osf5*)
15903 version_type=osf
15904 need_lib_prefix=no
15905 need_version=no
15906 soname_spec='${libname}${release}${shared_ext}$major'
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908 shlibpath_var=LD_LIBRARY_PATH
15909 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15910 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15911 ;;
15912
15913 rdos*)
15914 dynamic_linker=no
15915 ;;
15916
15917 solaris*)
15918 version_type=linux
15919 need_lib_prefix=no
15920 need_version=no
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922 soname_spec='${libname}${release}${shared_ext}$major'
15923 shlibpath_var=LD_LIBRARY_PATH
15924 shlibpath_overrides_runpath=yes
15925 hardcode_into_libs=yes
15926 # ldd complains unless libraries are executable
15927 postinstall_cmds='chmod +x $lib'
15928 ;;
15929
15930 sunos4*)
15931 version_type=sunos
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15933 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15934 shlibpath_var=LD_LIBRARY_PATH
15935 shlibpath_overrides_runpath=yes
15936 if test "$with_gnu_ld" = yes; then
15937 need_lib_prefix=no
15938 fi
15939 need_version=yes
15940 ;;
15941
15942 sysv4 | sysv4.3*)
15943 version_type=linux
15944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15945 soname_spec='${libname}${release}${shared_ext}$major'
15946 shlibpath_var=LD_LIBRARY_PATH
15947 case $host_vendor in
15948 sni)
15949 shlibpath_overrides_runpath=no
15950 need_lib_prefix=no
15951 runpath_var=LD_RUN_PATH
15952 ;;
15953 siemens)
15954 need_lib_prefix=no
15955 ;;
15956 motorola)
15957 need_lib_prefix=no
15958 need_version=no
15959 shlibpath_overrides_runpath=no
15960 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15961 ;;
15962 esac
15963 ;;
15964
15965 sysv4*MP*)
15966 if test -d /usr/nec ;then
15967 version_type=linux
15968 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15969 soname_spec='$libname${shared_ext}.$major'
15970 shlibpath_var=LD_LIBRARY_PATH
15971 fi
15972 ;;
15973
15974 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15975 version_type=freebsd-elf
15976 need_lib_prefix=no
15977 need_version=no
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15979 soname_spec='${libname}${release}${shared_ext}$major'
15980 shlibpath_var=LD_LIBRARY_PATH
15981 shlibpath_overrides_runpath=yes
15982 hardcode_into_libs=yes
15983 if test "$with_gnu_ld" = yes; then
15984 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15985 else
15986 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15987 case $host_os in
15988 sco3.2v5*)
15989 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15990 ;;
15991 esac
15992 fi
15993 sys_lib_dlsearch_path_spec='/usr/lib'
15994 ;;
15995
15996 tpf*)
15997 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15998 version_type=linux
15999 need_lib_prefix=no
16000 need_version=no
16001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002 shlibpath_var=LD_LIBRARY_PATH
16003 shlibpath_overrides_runpath=no
16004 hardcode_into_libs=yes
16005 ;;
16006
16007 uts4*)
16008 version_type=linux
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010 soname_spec='${libname}${release}${shared_ext}$major'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 ;;
16013
16014 *)
16015 dynamic_linker=no
16016 ;;
16017 esac
16018 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16019 $as_echo "$dynamic_linker" >&6; }
16020 test "$dynamic_linker" = no && can_build_shared=no
16021
16022 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16023 if test "$GCC" = yes; then
16024 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16025 fi
16026
16027 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16028 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16029 fi
16030 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16031 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16032 fi
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16070 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16071 hardcode_action_CXX=
16072 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16073 test -n "$runpath_var_CXX" ||
16074 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16075
16076 # We can hardcode non-existent directories.
16077 if test "$hardcode_direct_CXX" != no &&
16078 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16079 # have to relink, otherwise we might link with an installed library
16080 # when we should be linking with a yet-to-be-installed one
16081 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16082 test "$hardcode_minus_L_CXX" != no; then
16083 # Linking always hardcodes the temporary library directory.
16084 hardcode_action_CXX=relink
16085 else
16086 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16087 hardcode_action_CXX=immediate
16088 fi
16089 else
16090 # We cannot hardcode anything, or else we can only hardcode existing
16091 # directories.
16092 hardcode_action_CXX=unsupported
16093 fi
16094 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16095 $as_echo "$hardcode_action_CXX" >&6; }
16096
16097 if test "$hardcode_action_CXX" = relink ||
16098 test "$inherit_rpath_CXX" = yes; then
16099 # Fast installation is not supported
16100 enable_fast_install=no
16101 elif test "$shlibpath_overrides_runpath" = yes ||
16102 test "$enable_shared" = no; then
16103 # Fast installation is not necessary
16104 enable_fast_install=needless
16105 fi
16106
16107
16108
16109
16110
16111
16112
16113 fi # test -n "$compiler"
16114
16115 CC=$lt_save_CC
16116 LDCXX=$LD
16117 LD=$lt_save_LD
16118 GCC=$lt_save_GCC
16119 with_gnu_ld=$lt_save_with_gnu_ld
16120 lt_cv_path_LDCXX=$lt_cv_path_LD
16121 lt_cv_path_LD=$lt_save_path_LD
16122 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16123 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16124 fi # test "$_lt_caught_CXX_error" != yes
16125
16126 ac_ext=c
16127 ac_cpp='$CPP $CPPFLAGS'
16128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16131
16132
16133 # Find a good install program. We prefer a C program (faster),
16134 # so one script is as good as another. But avoid the broken or
16135 # incompatible versions:
16136 # SysV /etc/install, /usr/sbin/install
16137 # SunOS /usr/etc/install
16138 # IRIX /sbin/install
16139 # AIX /bin/install
16140 # AmigaOS /C/install, which installs bootblocks on floppy discs
16141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16144 # OS/2's system install, which has a completely different semantic
16145 # ./install, which can be erroneously created by make from ./install.sh.
16146 # Reject install programs that cannot install multiple files.
16147 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16148 $as_echo_n "checking for a BSD-compatible install... " >&6; }
16149 if test -z "$INSTALL"; then
16150 if test "${ac_cv_path_install+set}" = set; then
16151 $as_echo_n "(cached) " >&6
16152 else
16153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16154 for as_dir in $PATH
16155 do
16156 IFS=$as_save_IFS
16157 test -z "$as_dir" && as_dir=.
16158 # Account for people who put trailing slashes in PATH elements.
16159 case $as_dir/ in
16160 ./ | .// | /cC/* | \
16161 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16162 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16163 /usr/ucb/* ) ;;
16164 *)
16165 # OSF1 and SCO ODT 3.0 have their own names for install.
16166 # Don't use installbsd from OSF since it installs stuff as root
16167 # by default.
16168 for ac_prog in ginstall scoinst install; do
16169 for ac_exec_ext in '' $ac_executable_extensions; do
16170 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
16171 if test $ac_prog = install &&
16172 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16173 # AIX install. It has an incompatible calling convention.
16174 :
16175 elif test $ac_prog = install &&
16176 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16177 # program-specific install script used by HP pwplus--don't use.
16178 :
16179 else
16180 rm -rf conftest.one conftest.two conftest.dir
16181 echo one > conftest.one
16182 echo two > conftest.two
16183 mkdir conftest.dir
16184 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
16185 test -s conftest.one && test -s conftest.two &&
16186 test -s conftest.dir/conftest.one &&
16187 test -s conftest.dir/conftest.two
16188 then
16189 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16190 break 3
16191 fi
16192 fi
16193 fi
16194 done
16195 done
16196 ;;
16197 esac
16198
16199 done
16200 IFS=$as_save_IFS
16201
16202 rm -rf conftest.one conftest.two conftest.dir
16203
16204 fi
16205 if test "${ac_cv_path_install+set}" = set; then
16206 INSTALL=$ac_cv_path_install
16207 else
16208 # As a last resort, use the slow shell script. Don't cache a
16209 # value for INSTALL within a source directory, because that will
16210 # break other packages using the cache if that directory is
16211 # removed, or if the value is a relative name.
16212 INSTALL=$ac_install_sh
16213 fi
16214 fi
16215 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
16216 $as_echo "$INSTALL" >&6; }
16217
16218 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16219 # It thinks the first close brace ends the variable substitution.
16220 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16221
16222 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16223
16224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16225
16226
16227 { $as_echo "$as_me:$LINENO: checking for X" >&5
16228 $as_echo_n "checking for X... " >&6; }
16229
16230
16231 # Check whether --with-x was given.
16232 if test "${with_x+set}" = set; then
16233 withval=$with_x;
16234 fi
16235
16236 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16237 if test "x$with_x" = xno; then
16238 # The user explicitly disabled X.
16239 have_x=disabled
16240 else
16241 case $x_includes,$x_libraries in #(
16242 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
16243 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
16244 { (exit 1); exit 1; }; };; #(
16245 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
16246 $as_echo_n "(cached) " >&6
16247 else
16248 # One or both of the vars are not set, and there is no cached value.
16249 ac_x_includes=no ac_x_libraries=no
16250 rm -f -r conftest.dir
16251 if mkdir conftest.dir; then
16252 cd conftest.dir
16253 cat >Imakefile <<'_ACEOF'
16254 incroot:
16255 @echo incroot='${INCROOT}'
16256 usrlibdir:
16257 @echo usrlibdir='${USRLIBDIR}'
16258 libdir:
16259 @echo libdir='${LIBDIR}'
16260 _ACEOF
16261 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
16262 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16263 for ac_var in incroot usrlibdir libdir; do
16264 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16265 done
16266 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16267 for ac_extension in a so sl dylib la dll; do
16268 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16269 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16270 ac_im_usrlibdir=$ac_im_libdir; break
16271 fi
16272 done
16273 # Screen out bogus values from the imake configuration. They are
16274 # bogus both because they are the default anyway, and because
16275 # using them would break gcc on systems where it needs fixed includes.
16276 case $ac_im_incroot in
16277 /usr/include) ac_x_includes= ;;
16278 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
16279 esac
16280 case $ac_im_usrlibdir in
16281 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
16282 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
16283 esac
16284 fi
16285 cd ..
16286 rm -f -r conftest.dir
16287 fi
16288
16289 # Standard set of common directories for X headers.
16290 # Check X11 before X11Rn because it is often a symlink to the current release.
16291 ac_x_header_dirs='
16292 /usr/X11/include
16293 /usr/X11R6/include
16294 /usr/X11R5/include
16295 /usr/X11R4/include
16296
16297 /usr/include/X11
16298 /usr/include/X11R6
16299 /usr/include/X11R5
16300 /usr/include/X11R4
16301
16302 /usr/local/X11/include
16303 /usr/local/X11R6/include
16304 /usr/local/X11R5/include
16305 /usr/local/X11R4/include
16306
16307 /usr/local/include/X11
16308 /usr/local/include/X11R6
16309 /usr/local/include/X11R5
16310 /usr/local/include/X11R4
16311
16312 /usr/X386/include
16313 /usr/x386/include
16314 /usr/XFree86/include/X11
16315
16316 /usr/include
16317 /usr/local/include
16318 /usr/unsupported/include
16319 /usr/athena/include
16320 /usr/local/x11r5/include
16321 /usr/lpp/Xamples/include
16322
16323 /usr/openwin/include
16324 /usr/openwin/share/include'
16325
16326 if test "$ac_x_includes" = no; then
16327 # Guess where to find include files, by looking for Xlib.h.
16328 # First, try using that file with no special directory specified.
16329 cat >conftest.$ac_ext <<_ACEOF
16330 /* confdefs.h. */
16331 _ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h. */
16335 #include <X11/Xlib.h>
16336 _ACEOF
16337 if { (ac_try="$ac_cpp conftest.$ac_ext"
16338 case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16341 esac
16342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16343 $as_echo "$ac_try_echo") >&5
16344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } >/dev/null && {
16351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16352 test ! -s conftest.err
16353 }; then
16354 # We can compile using X headers with no special include directory.
16355 ac_x_includes=
16356 else
16357 $as_echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16359
16360 for ac_dir in $ac_x_header_dirs; do
16361 if test -r "$ac_dir/X11/Xlib.h"; then
16362 ac_x_includes=$ac_dir
16363 break
16364 fi
16365 done
16366 fi
16367
16368 rm -f conftest.err conftest.$ac_ext
16369 fi # $ac_x_includes = no
16370
16371 if test "$ac_x_libraries" = no; then
16372 # Check for the libraries.
16373 # See if we find them without any special options.
16374 # Don't add to $LIBS permanently.
16375 ac_save_LIBS=$LIBS
16376 LIBS="-lX11 $LIBS"
16377 cat >conftest.$ac_ext <<_ACEOF
16378 /* confdefs.h. */
16379 _ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16383 #include <X11/Xlib.h>
16384 int
16385 main ()
16386 {
16387 XrmInitialize ()
16388 ;
16389 return 0;
16390 }
16391 _ACEOF
16392 rm -f conftest.$ac_objext conftest$ac_exeext
16393 if { (ac_try="$ac_link"
16394 case "(($ac_try" in
16395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396 *) ac_try_echo=$ac_try;;
16397 esac
16398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16399 $as_echo "$ac_try_echo") >&5
16400 (eval "$ac_link") 2>conftest.er1
16401 ac_status=$?
16402 grep -v '^ *+' conftest.er1 >conftest.err
16403 rm -f conftest.er1
16404 cat conftest.err >&5
16405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } && {
16407 test -z "$ac_c_werror_flag" ||
16408 test ! -s conftest.err
16409 } && test -s conftest$ac_exeext && {
16410 test "$cross_compiling" = yes ||
16411 $as_test_x conftest$ac_exeext
16412 }; then
16413 LIBS=$ac_save_LIBS
16414 # We can link X programs with no special library path.
16415 ac_x_libraries=
16416 else
16417 $as_echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16419
16420 LIBS=$ac_save_LIBS
16421 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16422 do
16423 # Don't even attempt the hair of trying to link an X program!
16424 for ac_extension in a so sl dylib la dll; do
16425 if test -r "$ac_dir/libX11.$ac_extension"; then
16426 ac_x_libraries=$ac_dir
16427 break 2
16428 fi
16429 done
16430 done
16431 fi
16432
16433 rm -rf conftest.dSYM
16434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16435 conftest$ac_exeext conftest.$ac_ext
16436 fi # $ac_x_libraries = no
16437
16438 case $ac_x_includes,$ac_x_libraries in #(
16439 no,* | *,no | *\'*)
16440 # Didn't find X, or a directory has "'" in its name.
16441 ac_cv_have_x="have_x=no";; #(
16442 *)
16443 # Record where we found X for the cache.
16444 ac_cv_have_x="have_x=yes\
16445 ac_x_includes='$ac_x_includes'\
16446 ac_x_libraries='$ac_x_libraries'"
16447 esac
16448 fi
16449 ;; #(
16450 *) have_x=yes;;
16451 esac
16452 eval "$ac_cv_have_x"
16453 fi # $with_x != no
16454
16455 if test "$have_x" != yes; then
16456 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
16457 $as_echo "$have_x" >&6; }
16458 no_x=yes
16459 else
16460 # If each of the values was on the command line, it overrides each guess.
16461 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
16462 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
16463 # Update the cache value to reflect the command line values.
16464 ac_cv_have_x="have_x=yes\
16465 ac_x_includes='$x_includes'\
16466 ac_x_libraries='$x_libraries'"
16467 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
16468 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16469 fi
16470
16471 if test "$no_x" = yes; then
16472 # Not all programs may use this symbol, but it does not hurt to define it.
16473
16474 cat >>confdefs.h <<\_ACEOF
16475 #define X_DISPLAY_MISSING 1
16476 _ACEOF
16477
16478 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
16479 else
16480 if test -n "$x_includes"; then
16481 X_CFLAGS="$X_CFLAGS -I$x_includes"
16482 fi
16483
16484 # It would also be nice to do this for all -L options, not just this one.
16485 if test -n "$x_libraries"; then
16486 X_LIBS="$X_LIBS -L$x_libraries"
16487 # For Solaris; some versions of Sun CC require a space after -R and
16488 # others require no space. Words are not sufficient . . . .
16489 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
16490 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
16491 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
16492 ac_xsave_c_werror_flag=$ac_c_werror_flag
16493 ac_c_werror_flag=yes
16494 cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h. */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16500
16501 int
16502 main ()
16503 {
16504
16505 ;
16506 return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (ac_try="$ac_link"
16511 case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16514 esac
16515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16516 $as_echo "$ac_try_echo") >&5
16517 (eval "$ac_link") 2>conftest.er1
16518 ac_status=$?
16519 grep -v '^ *+' conftest.er1 >conftest.err
16520 rm -f conftest.er1
16521 cat conftest.err >&5
16522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } && {
16524 test -z "$ac_c_werror_flag" ||
16525 test ! -s conftest.err
16526 } && test -s conftest$ac_exeext && {
16527 test "$cross_compiling" = yes ||
16528 $as_test_x conftest$ac_exeext
16529 }; then
16530 { $as_echo "$as_me:$LINENO: result: no" >&5
16531 $as_echo "no" >&6; }
16532 X_LIBS="$X_LIBS -R$x_libraries"
16533 else
16534 $as_echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16536
16537 LIBS="$ac_xsave_LIBS -R $x_libraries"
16538 cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h. */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16544
16545 int
16546 main ()
16547 {
16548
16549 ;
16550 return 0;
16551 }
16552 _ACEOF
16553 rm -f conftest.$ac_objext conftest$ac_exeext
16554 if { (ac_try="$ac_link"
16555 case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16558 esac
16559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16560 $as_echo "$ac_try_echo") >&5
16561 (eval "$ac_link") 2>conftest.er1
16562 ac_status=$?
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
16566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } && {
16568 test -z "$ac_c_werror_flag" ||
16569 test ! -s conftest.err
16570 } && test -s conftest$ac_exeext && {
16571 test "$cross_compiling" = yes ||
16572 $as_test_x conftest$ac_exeext
16573 }; then
16574 { $as_echo "$as_me:$LINENO: result: yes" >&5
16575 $as_echo "yes" >&6; }
16576 X_LIBS="$X_LIBS -R $x_libraries"
16577 else
16578 $as_echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16580
16581 { $as_echo "$as_me:$LINENO: result: neither works" >&5
16582 $as_echo "neither works" >&6; }
16583 fi
16584
16585 rm -rf conftest.dSYM
16586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16587 conftest$ac_exeext conftest.$ac_ext
16588 fi
16589
16590 rm -rf conftest.dSYM
16591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16592 conftest$ac_exeext conftest.$ac_ext
16593 ac_c_werror_flag=$ac_xsave_c_werror_flag
16594 LIBS=$ac_xsave_LIBS
16595 fi
16596
16597 # Check for system-dependent libraries X programs must link with.
16598 # Do this before checking for the system-independent R6 libraries
16599 # (-lICE), since we may need -lsocket or whatever for X linking.
16600
16601 if test "$ISC" = yes; then
16602 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
16603 else
16604 # Martyn Johnson says this is needed for Ultrix, if the X
16605 # libraries were built with DECnet support. And Karl Berry says
16606 # the Alpha needs dnet_stub (dnet does not exist).
16607 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
16608 cat >conftest.$ac_ext <<_ACEOF
16609 /* confdefs.h. */
16610 _ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16614
16615 /* Override any GCC internal prototype to avoid an error.
16616 Use char because int might match the return type of a GCC
16617 builtin and then its argument prototype would still apply. */
16618 #ifdef __cplusplus
16619 extern "C"
16620 #endif
16621 char XOpenDisplay ();
16622 int
16623 main ()
16624 {
16625 return XOpenDisplay ();
16626 ;
16627 return 0;
16628 }
16629 _ACEOF
16630 rm -f conftest.$ac_objext conftest$ac_exeext
16631 if { (ac_try="$ac_link"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635 esac
16636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16637 $as_echo "$ac_try_echo") >&5
16638 (eval "$ac_link") 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } && {
16645 test -z "$ac_c_werror_flag" ||
16646 test ! -s conftest.err
16647 } && test -s conftest$ac_exeext && {
16648 test "$cross_compiling" = yes ||
16649 $as_test_x conftest$ac_exeext
16650 }; then
16651 :
16652 else
16653 $as_echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
16657 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
16658 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
16659 $as_echo_n "(cached) " >&6
16660 else
16661 ac_check_lib_save_LIBS=$LIBS
16662 LIBS="-ldnet $LIBS"
16663 cat >conftest.$ac_ext <<_ACEOF
16664 /* confdefs.h. */
16665 _ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16669
16670 /* Override any GCC internal prototype to avoid an error.
16671 Use char because int might match the return type of a GCC
16672 builtin and then its argument prototype would still apply. */
16673 #ifdef __cplusplus
16674 extern "C"
16675 #endif
16676 char dnet_ntoa ();
16677 int
16678 main ()
16679 {
16680 return dnet_ntoa ();
16681 ;
16682 return 0;
16683 }
16684 _ACEOF
16685 rm -f conftest.$ac_objext conftest$ac_exeext
16686 if { (ac_try="$ac_link"
16687 case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16690 esac
16691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16692 $as_echo "$ac_try_echo") >&5
16693 (eval "$ac_link") 2>conftest.er1
16694 ac_status=$?
16695 grep -v '^ *+' conftest.er1 >conftest.err
16696 rm -f conftest.er1
16697 cat conftest.err >&5
16698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } && {
16700 test -z "$ac_c_werror_flag" ||
16701 test ! -s conftest.err
16702 } && test -s conftest$ac_exeext && {
16703 test "$cross_compiling" = yes ||
16704 $as_test_x conftest$ac_exeext
16705 }; then
16706 ac_cv_lib_dnet_dnet_ntoa=yes
16707 else
16708 $as_echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.$ac_ext >&5
16710
16711 ac_cv_lib_dnet_dnet_ntoa=no
16712 fi
16713
16714 rm -rf conftest.dSYM
16715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16716 conftest$ac_exeext conftest.$ac_ext
16717 LIBS=$ac_check_lib_save_LIBS
16718 fi
16719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
16720 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
16721 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
16722 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
16723 fi
16724
16725 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
16726 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
16727 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
16728 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
16729 $as_echo_n "(cached) " >&6
16730 else
16731 ac_check_lib_save_LIBS=$LIBS
16732 LIBS="-ldnet_stub $LIBS"
16733 cat >conftest.$ac_ext <<_ACEOF
16734 /* confdefs.h. */
16735 _ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739
16740 /* Override any GCC internal prototype to avoid an error.
16741 Use char because int might match the return type of a GCC
16742 builtin and then its argument prototype would still apply. */
16743 #ifdef __cplusplus
16744 extern "C"
16745 #endif
16746 char dnet_ntoa ();
16747 int
16748 main ()
16749 {
16750 return dnet_ntoa ();
16751 ;
16752 return 0;
16753 }
16754 _ACEOF
16755 rm -f conftest.$ac_objext conftest$ac_exeext
16756 if { (ac_try="$ac_link"
16757 case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16760 esac
16761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16762 $as_echo "$ac_try_echo") >&5
16763 (eval "$ac_link") 2>conftest.er1
16764 ac_status=$?
16765 grep -v '^ *+' conftest.er1 >conftest.err
16766 rm -f conftest.er1
16767 cat conftest.err >&5
16768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } && {
16770 test -z "$ac_c_werror_flag" ||
16771 test ! -s conftest.err
16772 } && test -s conftest$ac_exeext && {
16773 test "$cross_compiling" = yes ||
16774 $as_test_x conftest$ac_exeext
16775 }; then
16776 ac_cv_lib_dnet_stub_dnet_ntoa=yes
16777 else
16778 $as_echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16780
16781 ac_cv_lib_dnet_stub_dnet_ntoa=no
16782 fi
16783
16784 rm -rf conftest.dSYM
16785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16786 conftest$ac_exeext conftest.$ac_ext
16787 LIBS=$ac_check_lib_save_LIBS
16788 fi
16789 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
16790 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
16791 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
16792 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
16793 fi
16794
16795 fi
16796 fi
16797
16798 rm -rf conftest.dSYM
16799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16800 conftest$ac_exeext conftest.$ac_ext
16801 LIBS="$ac_xsave_LIBS"
16802
16803 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
16804 # to get the SysV transport functions.
16805 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
16806 # needs -lnsl.
16807 # The nsl library prevents programs from opening the X display
16808 # on Irix 5.2, according to T.E. Dickey.
16809 # The functions gethostbyname, getservbyname, and inet_addr are
16810 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
16811 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
16812 $as_echo_n "checking for gethostbyname... " >&6; }
16813 if test "${ac_cv_func_gethostbyname+set}" = set; then
16814 $as_echo_n "(cached) " >&6
16815 else
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h. */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
16823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16824 #define gethostbyname innocuous_gethostbyname
16825
16826 /* System header to define __stub macros and hopefully few prototypes,
16827 which can conflict with char gethostbyname (); below.
16828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16829 <limits.h> exists even on freestanding compilers. */
16830
16831 #ifdef __STDC__
16832 # include <limits.h>
16833 #else
16834 # include <assert.h>
16835 #endif
16836
16837 #undef gethostbyname
16838
16839 /* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
16842 #ifdef __cplusplus
16843 extern "C"
16844 #endif
16845 char gethostbyname ();
16846 /* The GNU C library defines this for functions which it implements
16847 to always fail with ENOSYS. Some functions are actually named
16848 something starting with __ and the normal name is an alias. */
16849 #if defined __stub_gethostbyname || defined __stub___gethostbyname
16850 choke me
16851 #endif
16852
16853 int
16854 main ()
16855 {
16856 return gethostbyname ();
16857 ;
16858 return 0;
16859 }
16860 _ACEOF
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (ac_try="$ac_link"
16863 case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866 esac
16867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16868 $as_echo "$ac_try_echo") >&5
16869 (eval "$ac_link") 2>conftest.er1
16870 ac_status=$?
16871 grep -v '^ *+' conftest.er1 >conftest.err
16872 rm -f conftest.er1
16873 cat conftest.err >&5
16874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } && {
16876 test -z "$ac_c_werror_flag" ||
16877 test ! -s conftest.err
16878 } && test -s conftest$ac_exeext && {
16879 test "$cross_compiling" = yes ||
16880 $as_test_x conftest$ac_exeext
16881 }; then
16882 ac_cv_func_gethostbyname=yes
16883 else
16884 $as_echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16886
16887 ac_cv_func_gethostbyname=no
16888 fi
16889
16890 rm -rf conftest.dSYM
16891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16892 conftest$ac_exeext conftest.$ac_ext
16893 fi
16894 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
16895 $as_echo "$ac_cv_func_gethostbyname" >&6; }
16896
16897 if test $ac_cv_func_gethostbyname = no; then
16898 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
16899 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16900 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
16901 $as_echo_n "(cached) " >&6
16902 else
16903 ac_check_lib_save_LIBS=$LIBS
16904 LIBS="-lnsl $LIBS"
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h. */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911
16912 /* Override any GCC internal prototype to avoid an error.
16913 Use char because int might match the return type of a GCC
16914 builtin and then its argument prototype would still apply. */
16915 #ifdef __cplusplus
16916 extern "C"
16917 #endif
16918 char gethostbyname ();
16919 int
16920 main ()
16921 {
16922 return gethostbyname ();
16923 ;
16924 return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (ac_try="$ac_link"
16929 case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932 esac
16933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16934 $as_echo "$ac_try_echo") >&5
16935 (eval "$ac_link") 2>conftest.er1
16936 ac_status=$?
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
16940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } && {
16942 test -z "$ac_c_werror_flag" ||
16943 test ! -s conftest.err
16944 } && test -s conftest$ac_exeext && {
16945 test "$cross_compiling" = yes ||
16946 $as_test_x conftest$ac_exeext
16947 }; then
16948 ac_cv_lib_nsl_gethostbyname=yes
16949 else
16950 $as_echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953 ac_cv_lib_nsl_gethostbyname=no
16954 fi
16955
16956 rm -rf conftest.dSYM
16957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16958 conftest$ac_exeext conftest.$ac_ext
16959 LIBS=$ac_check_lib_save_LIBS
16960 fi
16961 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
16962 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16963 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
16964 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
16965 fi
16966
16967 if test $ac_cv_lib_nsl_gethostbyname = no; then
16968 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
16969 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
16970 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
16971 $as_echo_n "(cached) " >&6
16972 else
16973 ac_check_lib_save_LIBS=$LIBS
16974 LIBS="-lbsd $LIBS"
16975 cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h. */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981
16982 /* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply. */
16985 #ifdef __cplusplus
16986 extern "C"
16987 #endif
16988 char gethostbyname ();
16989 int
16990 main ()
16991 {
16992 return gethostbyname ();
16993 ;
16994 return 0;
16995 }
16996 _ACEOF
16997 rm -f conftest.$ac_objext conftest$ac_exeext
16998 if { (ac_try="$ac_link"
16999 case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002 esac
17003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17004 $as_echo "$ac_try_echo") >&5
17005 (eval "$ac_link") 2>conftest.er1
17006 ac_status=$?
17007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
17010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } && {
17012 test -z "$ac_c_werror_flag" ||
17013 test ! -s conftest.err
17014 } && test -s conftest$ac_exeext && {
17015 test "$cross_compiling" = yes ||
17016 $as_test_x conftest$ac_exeext
17017 }; then
17018 ac_cv_lib_bsd_gethostbyname=yes
17019 else
17020 $as_echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023 ac_cv_lib_bsd_gethostbyname=no
17024 fi
17025
17026 rm -rf conftest.dSYM
17027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17028 conftest$ac_exeext conftest.$ac_ext
17029 LIBS=$ac_check_lib_save_LIBS
17030 fi
17031 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
17032 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
17033 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
17034 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
17035 fi
17036
17037 fi
17038 fi
17039
17040 # lieder@skyler.mavd.honeywell.com says without -lsocket,
17041 # socket/setsockopt and other routines are undefined under SCO ODT
17042 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
17043 # on later versions), says Simon Leinen: it contains gethostby*
17044 # variants that don't use the name server (or something). -lsocket
17045 # must be given before -lnsl if both are needed. We assume that
17046 # if connect needs -lnsl, so does gethostbyname.
17047 { $as_echo "$as_me:$LINENO: checking for connect" >&5
17048 $as_echo_n "checking for connect... " >&6; }
17049 if test "${ac_cv_func_connect+set}" = set; then
17050 $as_echo_n "(cached) " >&6
17051 else
17052 cat >conftest.$ac_ext <<_ACEOF
17053 /* confdefs.h. */
17054 _ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h. */
17058 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
17059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17060 #define connect innocuous_connect
17061
17062 /* System header to define __stub macros and hopefully few prototypes,
17063 which can conflict with char connect (); below.
17064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17065 <limits.h> exists even on freestanding compilers. */
17066
17067 #ifdef __STDC__
17068 # include <limits.h>
17069 #else
17070 # include <assert.h>
17071 #endif
17072
17073 #undef connect
17074
17075 /* Override any GCC internal prototype to avoid an error.
17076 Use char because int might match the return type of a GCC
17077 builtin and then its argument prototype would still apply. */
17078 #ifdef __cplusplus
17079 extern "C"
17080 #endif
17081 char connect ();
17082 /* The GNU C library defines this for functions which it implements
17083 to always fail with ENOSYS. Some functions are actually named
17084 something starting with __ and the normal name is an alias. */
17085 #if defined __stub_connect || defined __stub___connect
17086 choke me
17087 #endif
17088
17089 int
17090 main ()
17091 {
17092 return connect ();
17093 ;
17094 return 0;
17095 }
17096 _ACEOF
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17102 esac
17103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17104 $as_echo "$ac_try_echo") >&5
17105 (eval "$ac_link") 2>conftest.er1
17106 ac_status=$?
17107 grep -v '^ *+' conftest.er1 >conftest.err
17108 rm -f conftest.er1
17109 cat conftest.err >&5
17110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } && {
17112 test -z "$ac_c_werror_flag" ||
17113 test ! -s conftest.err
17114 } && test -s conftest$ac_exeext && {
17115 test "$cross_compiling" = yes ||
17116 $as_test_x conftest$ac_exeext
17117 }; then
17118 ac_cv_func_connect=yes
17119 else
17120 $as_echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17122
17123 ac_cv_func_connect=no
17124 fi
17125
17126 rm -rf conftest.dSYM
17127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17128 conftest$ac_exeext conftest.$ac_ext
17129 fi
17130 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
17131 $as_echo "$ac_cv_func_connect" >&6; }
17132
17133 if test $ac_cv_func_connect = no; then
17134 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
17135 $as_echo_n "checking for connect in -lsocket... " >&6; }
17136 if test "${ac_cv_lib_socket_connect+set}" = set; then
17137 $as_echo_n "(cached) " >&6
17138 else
17139 ac_check_lib_save_LIBS=$LIBS
17140 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
17141 cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h. */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17147
17148 /* Override any GCC internal prototype to avoid an error.
17149 Use char because int might match the return type of a GCC
17150 builtin and then its argument prototype would still apply. */
17151 #ifdef __cplusplus
17152 extern "C"
17153 #endif
17154 char connect ();
17155 int
17156 main ()
17157 {
17158 return connect ();
17159 ;
17160 return 0;
17161 }
17162 _ACEOF
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (ac_try="$ac_link"
17165 case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168 esac
17169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17170 $as_echo "$ac_try_echo") >&5
17171 (eval "$ac_link") 2>conftest.er1
17172 ac_status=$?
17173 grep -v '^ *+' conftest.er1 >conftest.err
17174 rm -f conftest.er1
17175 cat conftest.err >&5
17176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } && {
17178 test -z "$ac_c_werror_flag" ||
17179 test ! -s conftest.err
17180 } && test -s conftest$ac_exeext && {
17181 test "$cross_compiling" = yes ||
17182 $as_test_x conftest$ac_exeext
17183 }; then
17184 ac_cv_lib_socket_connect=yes
17185 else
17186 $as_echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17188
17189 ac_cv_lib_socket_connect=no
17190 fi
17191
17192 rm -rf conftest.dSYM
17193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17194 conftest$ac_exeext conftest.$ac_ext
17195 LIBS=$ac_check_lib_save_LIBS
17196 fi
17197 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
17198 $as_echo "$ac_cv_lib_socket_connect" >&6; }
17199 if test "x$ac_cv_lib_socket_connect" = x""yes; then
17200 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
17201 fi
17202
17203 fi
17204
17205 # Guillermo Gomez says -lposix is necessary on A/UX.
17206 { $as_echo "$as_me:$LINENO: checking for remove" >&5
17207 $as_echo_n "checking for remove... " >&6; }
17208 if test "${ac_cv_func_remove+set}" = set; then
17209 $as_echo_n "(cached) " >&6
17210 else
17211 cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
17218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17219 #define remove innocuous_remove
17220
17221 /* System header to define __stub macros and hopefully few prototypes,
17222 which can conflict with char remove (); below.
17223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17224 <limits.h> exists even on freestanding compilers. */
17225
17226 #ifdef __STDC__
17227 # include <limits.h>
17228 #else
17229 # include <assert.h>
17230 #endif
17231
17232 #undef remove
17233
17234 /* Override any GCC internal prototype to avoid an error.
17235 Use char because int might match the return type of a GCC
17236 builtin and then its argument prototype would still apply. */
17237 #ifdef __cplusplus
17238 extern "C"
17239 #endif
17240 char remove ();
17241 /* The GNU C library defines this for functions which it implements
17242 to always fail with ENOSYS. Some functions are actually named
17243 something starting with __ and the normal name is an alias. */
17244 #if defined __stub_remove || defined __stub___remove
17245 choke me
17246 #endif
17247
17248 int
17249 main ()
17250 {
17251 return remove ();
17252 ;
17253 return 0;
17254 }
17255 _ACEOF
17256 rm -f conftest.$ac_objext conftest$ac_exeext
17257 if { (ac_try="$ac_link"
17258 case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17261 esac
17262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17263 $as_echo "$ac_try_echo") >&5
17264 (eval "$ac_link") 2>conftest.er1
17265 ac_status=$?
17266 grep -v '^ *+' conftest.er1 >conftest.err
17267 rm -f conftest.er1
17268 cat conftest.err >&5
17269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } && {
17271 test -z "$ac_c_werror_flag" ||
17272 test ! -s conftest.err
17273 } && test -s conftest$ac_exeext && {
17274 test "$cross_compiling" = yes ||
17275 $as_test_x conftest$ac_exeext
17276 }; then
17277 ac_cv_func_remove=yes
17278 else
17279 $as_echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17281
17282 ac_cv_func_remove=no
17283 fi
17284
17285 rm -rf conftest.dSYM
17286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17287 conftest$ac_exeext conftest.$ac_ext
17288 fi
17289 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
17290 $as_echo "$ac_cv_func_remove" >&6; }
17291
17292 if test $ac_cv_func_remove = no; then
17293 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
17294 $as_echo_n "checking for remove in -lposix... " >&6; }
17295 if test "${ac_cv_lib_posix_remove+set}" = set; then
17296 $as_echo_n "(cached) " >&6
17297 else
17298 ac_check_lib_save_LIBS=$LIBS
17299 LIBS="-lposix $LIBS"
17300 cat >conftest.$ac_ext <<_ACEOF
17301 /* confdefs.h. */
17302 _ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17306
17307 /* Override any GCC internal prototype to avoid an error.
17308 Use char because int might match the return type of a GCC
17309 builtin and then its argument prototype would still apply. */
17310 #ifdef __cplusplus
17311 extern "C"
17312 #endif
17313 char remove ();
17314 int
17315 main ()
17316 {
17317 return remove ();
17318 ;
17319 return 0;
17320 }
17321 _ACEOF
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (ac_try="$ac_link"
17324 case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17327 esac
17328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17329 $as_echo "$ac_try_echo") >&5
17330 (eval "$ac_link") 2>conftest.er1
17331 ac_status=$?
17332 grep -v '^ *+' conftest.er1 >conftest.err
17333 rm -f conftest.er1
17334 cat conftest.err >&5
17335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } && {
17337 test -z "$ac_c_werror_flag" ||
17338 test ! -s conftest.err
17339 } && test -s conftest$ac_exeext && {
17340 test "$cross_compiling" = yes ||
17341 $as_test_x conftest$ac_exeext
17342 }; then
17343 ac_cv_lib_posix_remove=yes
17344 else
17345 $as_echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17347
17348 ac_cv_lib_posix_remove=no
17349 fi
17350
17351 rm -rf conftest.dSYM
17352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17353 conftest$ac_exeext conftest.$ac_ext
17354 LIBS=$ac_check_lib_save_LIBS
17355 fi
17356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
17357 $as_echo "$ac_cv_lib_posix_remove" >&6; }
17358 if test "x$ac_cv_lib_posix_remove" = x""yes; then
17359 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
17360 fi
17361
17362 fi
17363
17364 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
17365 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
17366 $as_echo_n "checking for shmat... " >&6; }
17367 if test "${ac_cv_func_shmat+set}" = set; then
17368 $as_echo_n "(cached) " >&6
17369 else
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
17377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17378 #define shmat innocuous_shmat
17379
17380 /* System header to define __stub macros and hopefully few prototypes,
17381 which can conflict with char shmat (); below.
17382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383 <limits.h> exists even on freestanding compilers. */
17384
17385 #ifdef __STDC__
17386 # include <limits.h>
17387 #else
17388 # include <assert.h>
17389 #endif
17390
17391 #undef shmat
17392
17393 /* Override any GCC internal prototype to avoid an error.
17394 Use char because int might match the return type of a GCC
17395 builtin and then its argument prototype would still apply. */
17396 #ifdef __cplusplus
17397 extern "C"
17398 #endif
17399 char shmat ();
17400 /* The GNU C library defines this for functions which it implements
17401 to always fail with ENOSYS. Some functions are actually named
17402 something starting with __ and the normal name is an alias. */
17403 #if defined __stub_shmat || defined __stub___shmat
17404 choke me
17405 #endif
17406
17407 int
17408 main ()
17409 {
17410 return shmat ();
17411 ;
17412 return 0;
17413 }
17414 _ACEOF
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (ac_try="$ac_link"
17417 case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17420 esac
17421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17422 $as_echo "$ac_try_echo") >&5
17423 (eval "$ac_link") 2>conftest.er1
17424 ac_status=$?
17425 grep -v '^ *+' conftest.er1 >conftest.err
17426 rm -f conftest.er1
17427 cat conftest.err >&5
17428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } && {
17430 test -z "$ac_c_werror_flag" ||
17431 test ! -s conftest.err
17432 } && test -s conftest$ac_exeext && {
17433 test "$cross_compiling" = yes ||
17434 $as_test_x conftest$ac_exeext
17435 }; then
17436 ac_cv_func_shmat=yes
17437 else
17438 $as_echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17440
17441 ac_cv_func_shmat=no
17442 fi
17443
17444 rm -rf conftest.dSYM
17445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17446 conftest$ac_exeext conftest.$ac_ext
17447 fi
17448 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
17449 $as_echo "$ac_cv_func_shmat" >&6; }
17450
17451 if test $ac_cv_func_shmat = no; then
17452 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
17453 $as_echo_n "checking for shmat in -lipc... " >&6; }
17454 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
17455 $as_echo_n "(cached) " >&6
17456 else
17457 ac_check_lib_save_LIBS=$LIBS
17458 LIBS="-lipc $LIBS"
17459 cat >conftest.$ac_ext <<_ACEOF
17460 /* confdefs.h. */
17461 _ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17465
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17469 #ifdef __cplusplus
17470 extern "C"
17471 #endif
17472 char shmat ();
17473 int
17474 main ()
17475 {
17476 return shmat ();
17477 ;
17478 return 0;
17479 }
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (ac_try="$ac_link"
17483 case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17486 esac
17487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17488 $as_echo "$ac_try_echo") >&5
17489 (eval "$ac_link") 2>conftest.er1
17490 ac_status=$?
17491 grep -v '^ *+' conftest.er1 >conftest.err
17492 rm -f conftest.er1
17493 cat conftest.err >&5
17494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } && {
17496 test -z "$ac_c_werror_flag" ||
17497 test ! -s conftest.err
17498 } && test -s conftest$ac_exeext && {
17499 test "$cross_compiling" = yes ||
17500 $as_test_x conftest$ac_exeext
17501 }; then
17502 ac_cv_lib_ipc_shmat=yes
17503 else
17504 $as_echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507 ac_cv_lib_ipc_shmat=no
17508 fi
17509
17510 rm -rf conftest.dSYM
17511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17512 conftest$ac_exeext conftest.$ac_ext
17513 LIBS=$ac_check_lib_save_LIBS
17514 fi
17515 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
17516 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
17517 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
17518 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
17519 fi
17520
17521 fi
17522 fi
17523
17524 # Check for libraries that X11R6 Xt/Xaw programs need.
17525 ac_save_LDFLAGS=$LDFLAGS
17526 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
17527 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
17528 # check for ICE first), but we must link in the order -lSM -lICE or
17529 # we get undefined symbols. So assume we have SM if we have ICE.
17530 # These have to be linked with before -lX11, unlike the other
17531 # libraries we check for below, so use a different variable.
17532 # John Interrante, Karl Berry
17533 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
17534 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
17535 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
17536 $as_echo_n "(cached) " >&6
17537 else
17538 ac_check_lib_save_LIBS=$LIBS
17539 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
17540 cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h. */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546
17547 /* Override any GCC internal prototype to avoid an error.
17548 Use char because int might match the return type of a GCC
17549 builtin and then its argument prototype would still apply. */
17550 #ifdef __cplusplus
17551 extern "C"
17552 #endif
17553 char IceConnectionNumber ();
17554 int
17555 main ()
17556 {
17557 return IceConnectionNumber ();
17558 ;
17559 return 0;
17560 }
17561 _ACEOF
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (ac_try="$ac_link"
17564 case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17567 esac
17568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17569 $as_echo "$ac_try_echo") >&5
17570 (eval "$ac_link") 2>conftest.er1
17571 ac_status=$?
17572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
17575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } && {
17577 test -z "$ac_c_werror_flag" ||
17578 test ! -s conftest.err
17579 } && test -s conftest$ac_exeext && {
17580 test "$cross_compiling" = yes ||
17581 $as_test_x conftest$ac_exeext
17582 }; then
17583 ac_cv_lib_ICE_IceConnectionNumber=yes
17584 else
17585 $as_echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17587
17588 ac_cv_lib_ICE_IceConnectionNumber=no
17589 fi
17590
17591 rm -rf conftest.dSYM
17592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17593 conftest$ac_exeext conftest.$ac_ext
17594 LIBS=$ac_check_lib_save_LIBS
17595 fi
17596 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
17597 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
17598 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
17599 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
17600 fi
17601
17602 LDFLAGS=$ac_save_LDFLAGS
17603
17604 fi
17605
17606
17607
17608 { $as_echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
17609 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
17610 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
17611 $as_echo_n "(cached) " >&6
17612 else
17613 ac_check_lib_save_LIBS=$LIBS
17614 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
17615 cat >conftest.$ac_ext <<_ACEOF
17616 /* confdefs.h. */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17621
17622 /* Override any GCC internal prototype to avoid an error.
17623 Use char because int might match the return type of a GCC
17624 builtin and then its argument prototype would still apply. */
17625 #ifdef __cplusplus
17626 extern "C"
17627 #endif
17628 char XShapeCombineMask ();
17629 int
17630 main ()
17631 {
17632 return XShapeCombineMask ();
17633 ;
17634 return 0;
17635 }
17636 _ACEOF
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (ac_try="$ac_link"
17639 case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17642 esac
17643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17644 $as_echo "$ac_try_echo") >&5
17645 (eval "$ac_link") 2>conftest.er1
17646 ac_status=$?
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
17650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } && {
17652 test -z "$ac_c_werror_flag" ||
17653 test ! -s conftest.err
17654 } && test -s conftest$ac_exeext && {
17655 test "$cross_compiling" = yes ||
17656 $as_test_x conftest$ac_exeext
17657 }; then
17658 ac_cv_lib_Xext_XShapeCombineMask=yes
17659 else
17660 $as_echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663 ac_cv_lib_Xext_XShapeCombineMask=no
17664 fi
17665
17666 rm -rf conftest.dSYM
17667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17668 conftest$ac_exeext conftest.$ac_ext
17669 LIBS=$ac_check_lib_save_LIBS
17670 fi
17671 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
17672 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
17673 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then
17674 cat >>confdefs.h <<_ACEOF
17675 #define HAVE_LIBXEXT 1
17676 _ACEOF
17677
17678 LIBS="-lXext $LIBS"
17679
17680 else
17681 echo "The shape extension could not be found in the X client libraries"
17682 exit 1
17683 fi
17684
17685
17686
17687 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
17688 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
17689 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
17690 $as_echo_n "(cached) " >&6
17691 else
17692 ac_check_lib_save_LIBS=$LIBS
17693 LIBS="-lXpm $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
17694 cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h. */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17700
17701 /* Override any GCC internal prototype to avoid an error.
17702 Use char because int might match the return type of a GCC
17703 builtin and then its argument prototype would still apply. */
17704 #ifdef __cplusplus
17705 extern "C"
17706 #endif
17707 char XpmCreatePixmapFromData ();
17708 int
17709 main ()
17710 {
17711 return XpmCreatePixmapFromData ();
17712 ;
17713 return 0;
17714 }
17715 _ACEOF
17716 rm -f conftest.$ac_objext conftest$ac_exeext
17717 if { (ac_try="$ac_link"
17718 case "(($ac_try" in
17719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720 *) ac_try_echo=$ac_try;;
17721 esac
17722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17723 $as_echo "$ac_try_echo") >&5
17724 (eval "$ac_link") 2>conftest.er1
17725 ac_status=$?
17726 grep -v '^ *+' conftest.er1 >conftest.err
17727 rm -f conftest.er1
17728 cat conftest.err >&5
17729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } && {
17731 test -z "$ac_c_werror_flag" ||
17732 test ! -s conftest.err
17733 } && test -s conftest$ac_exeext && {
17734 test "$cross_compiling" = yes ||
17735 $as_test_x conftest$ac_exeext
17736 }; then
17737 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
17738 else
17739 $as_echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17741
17742 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
17743 fi
17744
17745 rm -rf conftest.dSYM
17746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17747 conftest$ac_exeext conftest.$ac_ext
17748 LIBS=$ac_check_lib_save_LIBS
17749 fi
17750 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
17751 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
17752 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
17753 cat >>confdefs.h <<_ACEOF
17754 #define HAVE_LIBXPM 1
17755 _ACEOF
17756
17757 LIBS="-lXpm $LIBS"
17758
17759 else
17760 echo "The libXpm library was not found, but is necessary to build this library"
17761 exit 1
17762 fi
17763
17764
17765
17766
17767
17768 # Check whether --enable-debug was given.
17769 if test "${enable_debug+set}" = set; then
17770 enableval=$enable_debug;
17771 else
17772 enable_debug=no
17773 fi
17774
17775 if test "$enable_debug" = yes; then
17776 DFLAGS="-Wall -g -ansi -pedantic"
17777 fi
17778
17779
17780
17781 ac_config_files="$ac_config_files Makefile src/Makefile fonts/Makefile examples/Makefile"
17782
17783 cat >confcache <<\_ACEOF
17784 # This file is a shell script that caches the results of configure
17785 # tests run on this system so they can be shared between configure
17786 # scripts and configure runs, see configure's option --config-cache.
17787 # It is not useful on other systems. If it contains results you don't
17788 # want to keep, you may remove or edit it.
17789 #
17790 # config.status only pays attention to the cache file if you give it
17791 # the --recheck option to rerun configure.
17792 #
17793 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17794 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17795 # following values.
17796
17797 _ACEOF
17798
17799 # The following way of writing the cache mishandles newlines in values,
17800 # but we know of no workaround that is simple, portable, and efficient.
17801 # So, we kill variables containing newlines.
17802 # Ultrix sh set writes to stderr and can't be redirected directly,
17803 # and sets the high bit in the cache file unless we assign to the vars.
17804 (
17805 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17806 eval ac_val=\$$ac_var
17807 case $ac_val in #(
17808 *${as_nl}*)
17809 case $ac_var in #(
17810 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17811 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17812 esac
17813 case $ac_var in #(
17814 _ | IFS | as_nl) ;; #(
17815 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17816 *) $as_unset $ac_var ;;
17817 esac ;;
17818 esac
17819 done
17820
17821 (set) 2>&1 |
17822 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17823 *${as_nl}ac_space=\ *)
17824 # `set' does not quote correctly, so add quotes (double-quote
17825 # substitution turns \\\\ into \\, and sed turns \\ into \).
17826 sed -n \
17827 "s/'/'\\\\''/g;
17828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17829 ;; #(
17830 *)
17831 # `set' quotes correctly as required by POSIX, so do not add quotes.
17832 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17833 ;;
17834 esac |
17835 sort
17836 ) |
17837 sed '
17838 /^ac_cv_env_/b end
17839 t clear
17840 :clear
17841 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17842 t end
17843 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17844 :end' >>confcache
17845 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17846 if test -w "$cache_file"; then
17847 test "x$cache_file" != "x/dev/null" &&
17848 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17849 $as_echo "$as_me: updating cache $cache_file" >&6;}
17850 cat confcache >$cache_file
17851 else
17852 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17853 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17854 fi
17855 fi
17856 rm -f confcache
17857
17858 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17859 # Let make expand exec_prefix.
17860 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17861
17862 # Transform confdefs.h into DEFS.
17863 # Protect against shell expansion while executing Makefile rules.
17864 # Protect against Makefile macro expansion.
17865 #
17866 # If the first sed substitution is executed (which looks for macros that
17867 # take arguments), then branch to the quote section. Otherwise,
17868 # look for a macro that doesn't take arguments.
17869 ac_script='
17870 :mline
17871 /\\$/{
17872 N
17873 s,\\\n,,
17874 b mline
17875 }
17876 t clear
17877 :clear
17878 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17879 t quote
17880 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17881 t quote
17882 b any
17883 :quote
17884 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17885 s/\[/\\&/g
17886 s/\]/\\&/g
17887 s/\$/$$/g
17888 H
17889 :any
17890 ${
17891 g
17892 s/^\n//
17893 s/\n/ /g
17894 p
17895 }
17896 '
17897 DEFS=`sed -n "$ac_script" confdefs.h`
17898
17899
17900 ac_libobjs=
17901 ac_ltlibobjs=
17902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17903 # 1. Remove the extension, and $U if already installed.
17904 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17905 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17906 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17907 # will be set to the directory where LIBOBJS objects are built.
17908 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17909 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17910 done
17911 LIBOBJS=$ac_libobjs
17912
17913 LTLIBOBJS=$ac_ltlibobjs
17914
17915
17916 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17917 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17918 Usually this means the macro was only invoked conditionally." >&5
17919 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17920 Usually this means the macro was only invoked conditionally." >&2;}
17921 { (exit 1); exit 1; }; }
17922 fi
17923 if test -z "${COND_FONT_TRUE}" && test -z "${COND_FONT_FALSE}"; then
17924 { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FONT\" was never defined.
17925 Usually this means the macro was only invoked conditionally." >&5
17926 $as_echo "$as_me: error: conditional \"COND_FONT\" was never defined.
17927 Usually this means the macro was only invoked conditionally." >&2;}
17928 { (exit 1); exit 1; }; }
17929 fi
17930 if test -z "${COND_EXAMPLES_TRUE}" && test -z "${COND_EXAMPLES_FALSE}"; then
17931 { { $as_echo "$as_me:$LINENO: error: conditional \"COND_EXAMPLES\" was never defined.
17932 Usually this means the macro was only invoked conditionally." >&5
17933 $as_echo "$as_me: error: conditional \"COND_EXAMPLES\" was never defined.
17934 Usually this means the macro was only invoked conditionally." >&2;}
17935 { (exit 1); exit 1; }; }
17936 fi
17937 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17938 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17939 Usually this means the macro was only invoked conditionally." >&5
17940 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17941 Usually this means the macro was only invoked conditionally." >&2;}
17942 { (exit 1); exit 1; }; }
17943 fi
17944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17945 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17946 Usually this means the macro was only invoked conditionally." >&5
17947 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17948 Usually this means the macro was only invoked conditionally." >&2;}
17949 { (exit 1); exit 1; }; }
17950 fi
17951 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17952 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17953 Usually this means the macro was only invoked conditionally." >&5
17954 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17955 Usually this means the macro was only invoked conditionally." >&2;}
17956 { (exit 1); exit 1; }; }
17957 fi
17958 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17959 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17960 Usually this means the macro was only invoked conditionally." >&5
17961 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17962 Usually this means the macro was only invoked conditionally." >&2;}
17963 { (exit 1); exit 1; }; }
17964 fi
17965 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17966 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17967 Usually this means the macro was only invoked conditionally." >&5
17968 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17969 Usually this means the macro was only invoked conditionally." >&2;}
17970 { (exit 1); exit 1; }; }
17971 fi
17972
17973 : ${CONFIG_STATUS=./config.status}
17974 ac_write_fail=0
17975 ac_clean_files_save=$ac_clean_files
17976 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17977 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17978 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17979 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980 #! $SHELL
17981 # Generated by $as_me.
17982 # Run this file to recreate the current configuration.
17983 # Compiler output produced by configure, useful for debugging
17984 # configure, is in config.log if it exists.
17985
17986 debug=false
17987 ac_cs_recheck=false
17988 ac_cs_silent=false
17989 SHELL=\${CONFIG_SHELL-$SHELL}
17990 _ACEOF
17991
17992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17993 ## --------------------- ##
17994 ## M4sh Initialization. ##
17995 ## --------------------- ##
17996
17997 # Be more Bourne compatible
17998 DUALCASE=1; export DUALCASE # for MKS sh
17999 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18000 emulate sh
18001 NULLCMD=:
18002 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18003 # is contrary to our usage. Disable this feature.
18004 alias -g '${1+"$@"}'='"$@"'
18005 setopt NO_GLOB_SUBST
18006 else
18007 case `(set -o) 2>/dev/null` in
18008 *posix*) set -o posix ;;
18009 esac
18010
18011 fi
18012
18013
18014
18015
18016 # PATH needs CR
18017 # Avoid depending upon Character Ranges.
18018 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18019 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18020 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18021 as_cr_digits='0123456789'
18022 as_cr_alnum=$as_cr_Letters$as_cr_digits
18023
18024 as_nl='
18025 '
18026 export as_nl
18027 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18028 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18029 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18030 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18031 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18032 as_echo='printf %s\n'
18033 as_echo_n='printf %s'
18034 else
18035 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18036 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18037 as_echo_n='/usr/ucb/echo -n'
18038 else
18039 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18040 as_echo_n_body='eval
18041 arg=$1;
18042 case $arg in
18043 *"$as_nl"*)
18044 expr "X$arg" : "X\\(.*\\)$as_nl";
18045 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18046 esac;
18047 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18048 '
18049 export as_echo_n_body
18050 as_echo_n='sh -c $as_echo_n_body as_echo'
18051 fi
18052 export as_echo_body
18053 as_echo='sh -c $as_echo_body as_echo'
18054 fi
18055
18056 # The user is always right.
18057 if test "${PATH_SEPARATOR+set}" != set; then
18058 PATH_SEPARATOR=:
18059 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18060 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18061 PATH_SEPARATOR=';'
18062 }
18063 fi
18064
18065 # Support unset when possible.
18066 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18067 as_unset=unset
18068 else
18069 as_unset=false
18070 fi
18071
18072
18073 # IFS
18074 # We need space, tab and new line, in precisely that order. Quoting is
18075 # there to prevent editors from complaining about space-tab.
18076 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18077 # splitting by setting IFS to empty value.)
18078 IFS=" "" $as_nl"
18079
18080 # Find who we are. Look in the path if we contain no directory separator.
18081 case $0 in
18082 *[\\/]* ) as_myself=$0 ;;
18083 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18084 for as_dir in $PATH
18085 do
18086 IFS=$as_save_IFS
18087 test -z "$as_dir" && as_dir=.
18088 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18089 done
18090 IFS=$as_save_IFS
18091
18092 ;;
18093 esac
18094 # We did not find ourselves, most probably we were run as `sh COMMAND'
18095 # in which case we are not to be found in the path.
18096 if test "x$as_myself" = x; then
18097 as_myself=$0
18098 fi
18099 if test ! -f "$as_myself"; then
18100 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18101 { (exit 1); exit 1; }
18102 fi
18103
18104 # Work around bugs in pre-3.0 UWIN ksh.
18105 for as_var in ENV MAIL MAILPATH
18106 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18107 done
18108 PS1='$ '
18109 PS2='> '
18110 PS4='+ '
18111
18112 # NLS nuisances.
18113 LC_ALL=C
18114 export LC_ALL
18115 LANGUAGE=C
18116 export LANGUAGE
18117
18118 # Required to use basename.
18119 if expr a : '\(a\)' >/dev/null 2>&1 &&
18120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18121 as_expr=expr
18122 else
18123 as_expr=false
18124 fi
18125
18126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18127 as_basename=basename
18128 else
18129 as_basename=false
18130 fi
18131
18132
18133 # Name of the executable.
18134 as_me=`$as_basename -- "$0" ||
18135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18136 X"$0" : 'X\(//\)$' \| \
18137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18138 $as_echo X/"$0" |
18139 sed '/^.*\/\([^/][^/]*\)\/*$/{
18140 s//\1/
18141 q
18142 }
18143 /^X\/\(\/\/\)$/{
18144 s//\1/
18145 q
18146 }
18147 /^X\/\(\/\).*/{
18148 s//\1/
18149 q
18150 }
18151 s/.*/./; q'`
18152
18153 # CDPATH.
18154 $as_unset CDPATH
18155
18156
18157
18158 as_lineno_1=$LINENO
18159 as_lineno_2=$LINENO
18160 test "x$as_lineno_1" != "x$as_lineno_2" &&
18161 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18162
18163 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18164 # uniformly replaced by the line number. The first 'sed' inserts a
18165 # line-number line after each line using $LINENO; the second 'sed'
18166 # does the real work. The second script uses 'N' to pair each
18167 # line-number line with the line containing $LINENO, and appends
18168 # trailing '-' during substitution so that $LINENO is not a special
18169 # case at line end.
18170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18171 # scripts with optimization help from Paolo Bonzini. Blame Lee
18172 # E. McMahon (1931-1989) for sed's syntax. :-)
18173 sed -n '
18174 p
18175 /[$]LINENO/=
18176 ' <$as_myself |
18177 sed '
18178 s/[$]LINENO.*/&-/
18179 t lineno
18180 b
18181 :lineno
18182 N
18183 :loop
18184 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18185 t loop
18186 s/-\n.*//
18187 ' >$as_me.lineno &&
18188 chmod +x "$as_me.lineno" ||
18189 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18190 { (exit 1); exit 1; }; }
18191
18192 # Don't try to exec as it changes $[0], causing all sort of problems
18193 # (the dirname of $[0] is not the place where we might find the
18194 # original and so on. Autoconf is especially sensitive to this).
18195 . "./$as_me.lineno"
18196 # Exit status is that of the last command.
18197 exit
18198 }
18199
18200
18201 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18202 as_dirname=dirname
18203 else
18204 as_dirname=false
18205 fi
18206
18207 ECHO_C= ECHO_N= ECHO_T=
18208 case `echo -n x` in
18209 -n*)
18210 case `echo 'x\c'` in
18211 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18212 *) ECHO_C='\c';;
18213 esac;;
18214 *)
18215 ECHO_N='-n';;
18216 esac
18217 if expr a : '\(a\)' >/dev/null 2>&1 &&
18218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18219 as_expr=expr
18220 else
18221 as_expr=false
18222 fi
18223
18224 rm -f conf$$ conf$$.exe conf$$.file
18225 if test -d conf$$.dir; then
18226 rm -f conf$$.dir/conf$$.file
18227 else
18228 rm -f conf$$.dir
18229 mkdir conf$$.dir 2>/dev/null
18230 fi
18231 if (echo >conf$$.file) 2>/dev/null; then
18232 if ln -s conf$$.file conf$$ 2>/dev/null; then
18233 as_ln_s='ln -s'
18234 # ... but there are two gotchas:
18235 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18236 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18237 # In both cases, we have to default to `cp -p'.
18238 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18239 as_ln_s='cp -p'
18240 elif ln conf$$.file conf$$ 2>/dev/null; then
18241 as_ln_s=ln
18242 else
18243 as_ln_s='cp -p'
18244 fi
18245 else
18246 as_ln_s='cp -p'
18247 fi
18248 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18249 rmdir conf$$.dir 2>/dev/null
18250
18251 if mkdir -p . 2>/dev/null; then
18252 as_mkdir_p=:
18253 else
18254 test -d ./-p && rmdir ./-p
18255 as_mkdir_p=false
18256 fi
18257
18258 if test -x / >/dev/null 2>&1; then
18259 as_test_x='test -x'
18260 else
18261 if ls -dL / >/dev/null 2>&1; then
18262 as_ls_L_option=L
18263 else
18264 as_ls_L_option=
18265 fi
18266 as_test_x='
18267 eval sh -c '\''
18268 if test -d "$1"; then
18269 test -d "$1/.";
18270 else
18271 case $1 in
18272 -*)set "./$1";;
18273 esac;
18274 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18275 ???[sx]*):;;*)false;;esac;fi
18276 '\'' sh
18277 '
18278 fi
18279 as_executable_p=$as_test_x
18280
18281 # Sed expression to map a string onto a valid CPP name.
18282 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18283
18284 # Sed expression to map a string onto a valid variable name.
18285 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18286
18287
18288 exec 6>&1
18289
18290 # Save the log message, to keep $[0] and so on meaningful, and to
18291 # report actual input values of CONFIG_FILES etc. instead of their
18292 # values after options handling.
18293 ac_log="
18294 This file was extended by $as_me, which was
18295 generated by GNU Autoconf 2.63. Invocation command line was
18296
18297 CONFIG_FILES = $CONFIG_FILES
18298 CONFIG_HEADERS = $CONFIG_HEADERS
18299 CONFIG_LINKS = $CONFIG_LINKS
18300 CONFIG_COMMANDS = $CONFIG_COMMANDS
18301 $ $0 $@
18302
18303 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18304 "
18305
18306 _ACEOF
18307
18308 case $ac_config_files in *"
18309 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18310 esac
18311
18312
18313
18314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18315 # Files that config.status was made for.
18316 config_files="$ac_config_files"
18317 config_commands="$ac_config_commands"
18318
18319 _ACEOF
18320
18321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18322 ac_cs_usage="\
18323 \`$as_me' instantiates files from templates according to the
18324 current configuration.
18325
18326 Usage: $0 [OPTION]... [FILE]...
18327
18328 -h, --help print this help, then exit
18329 -V, --version print version number and configuration settings, then exit
18330 -q, --quiet, --silent
18331 do not print progress messages
18332 -d, --debug don't remove temporary files
18333 --recheck update $as_me by reconfiguring in the same conditions
18334 --file=FILE[:TEMPLATE]
18335 instantiate the configuration file FILE
18336
18337 Configuration files:
18338 $config_files
18339
18340 Configuration commands:
18341 $config_commands
18342
18343 Report bugs to <bug-autoconf@gnu.org>."
18344
18345 _ACEOF
18346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18347 ac_cs_version="\\
18348 config.status
18349 configured by $0, generated by GNU Autoconf 2.63,
18350 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18351
18352 Copyright (C) 2008 Free Software Foundation, Inc.
18353 This config.status script is free software; the Free Software Foundation
18354 gives unlimited permission to copy, distribute and modify it."
18355
18356 ac_pwd='$ac_pwd'
18357 srcdir='$srcdir'
18358 INSTALL='$INSTALL'
18359 MKDIR_P='$MKDIR_P'
18360 AWK='$AWK'
18361 test -n "\$AWK" || AWK=awk
18362 _ACEOF
18363
18364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18365 # The default lists apply if the user does not specify any file.
18366 ac_need_defaults=:
18367 while test $# != 0
18368 do
18369 case $1 in
18370 --*=*)
18371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18372 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18373 ac_shift=:
18374 ;;
18375 *)
18376 ac_option=$1
18377 ac_optarg=$2
18378 ac_shift=shift
18379 ;;
18380 esac
18381
18382 case $ac_option in
18383 # Handling of the options.
18384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18385 ac_cs_recheck=: ;;
18386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18387 $as_echo "$ac_cs_version"; exit ;;
18388 --debug | --debu | --deb | --de | --d | -d )
18389 debug=: ;;
18390 --file | --fil | --fi | --f )
18391 $ac_shift
18392 case $ac_optarg in
18393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18394 esac
18395 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18396 ac_need_defaults=false;;
18397 --he | --h | --help | --hel | -h )
18398 $as_echo "$ac_cs_usage"; exit ;;
18399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18400 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18401 ac_cs_silent=: ;;
18402
18403 # This is an error.
18404 -*) { $as_echo "$as_me: error: unrecognized option: $1
18405 Try \`$0 --help' for more information." >&2
18406 { (exit 1); exit 1; }; } ;;
18407
18408 *) ac_config_targets="$ac_config_targets $1"
18409 ac_need_defaults=false ;;
18410
18411 esac
18412 shift
18413 done
18414
18415 ac_configure_extra_args=
18416
18417 if $ac_cs_silent; then
18418 exec 6>/dev/null
18419 ac_configure_extra_args="$ac_configure_extra_args --silent"
18420 fi
18421
18422 _ACEOF
18423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18424 if \$ac_cs_recheck; then
18425 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18426 shift
18427 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18428 CONFIG_SHELL='$SHELL'
18429 export CONFIG_SHELL
18430 exec "\$@"
18431 fi
18432
18433 _ACEOF
18434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18435 exec 5>>config.log
18436 {
18437 echo
18438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18439 ## Running $as_me. ##
18440 _ASBOX
18441 $as_echo "$ac_log"
18442 } >&5
18443
18444 _ACEOF
18445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18446 #
18447 # INIT-COMMANDS
18448 #
18449 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18450
18451
18452 # The HP-UX ksh and POSIX shell print the target directory to stdout
18453 # if CDPATH is set.
18454 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18455
18456 sed_quote_subst='$sed_quote_subst'
18457 double_quote_subst='$double_quote_subst'
18458 delay_variable_subst='$delay_variable_subst'
18459 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18460 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18461 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18462 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18463 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18464 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18465 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18466 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18467 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18468 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18469 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18470 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18471 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18472 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18473 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18474 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18475 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18476 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18477 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18478 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18479 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18480 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18481 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18482 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18483 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18484 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18485 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18486 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18487 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18488 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18489 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18490 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18491 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18492 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18493 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18494 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18495 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18496 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18497 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18498 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18499 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18500 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18501 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18502 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18503 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18504 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18505 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18506 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18507 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18508 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18509 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18510 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18511 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18512 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18513 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18514 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18515 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18516 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18517 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18518 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18519 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18520 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18521 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18522 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18523 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18524 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18525 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18526 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18527 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18528 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18529 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18530 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18531 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18532 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18533 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18534 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18535 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18536 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18537 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18538 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18539 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18540 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18541 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18542 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18543 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18544 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18545 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18546 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18547 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18548 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18549 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18550 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18551 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18552 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18553 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18554 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18555 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18556 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18557 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18558 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18559 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18560 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18561 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18562 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18563 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18564 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18565 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18566 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18567 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18568 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18569 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18570 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18571 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18572 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18573 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18574 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18575 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18576 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18577 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18578 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18579 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18580 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18581 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18582 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18583 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18584 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18585 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18586 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18587 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18588 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18589 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18590 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18591 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18592 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18593 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18594 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18595 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18596 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18597 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18598 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18599 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18600 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18601 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18602 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18603 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18604 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18605 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18606 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18607 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18608 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18609 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18610 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18611 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18612 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18613 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18614 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18615 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18616 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18617 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18618 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18619 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18620 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18621 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18622 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18623 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18624 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18625 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18626 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18627 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18628 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18629 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18630
18631 LTCC='$LTCC'
18632 LTCFLAGS='$LTCFLAGS'
18633 compiler='$compiler_DEFAULT'
18634
18635 # Quote evaled strings.
18636 for var in SED \
18637 GREP \
18638 EGREP \
18639 FGREP \
18640 LD \
18641 NM \
18642 LN_S \
18643 lt_SP2NL \
18644 lt_NL2SP \
18645 reload_flag \
18646 OBJDUMP \
18647 deplibs_check_method \
18648 file_magic_cmd \
18649 AR \
18650 AR_FLAGS \
18651 STRIP \
18652 RANLIB \
18653 CC \
18654 CFLAGS \
18655 compiler \
18656 lt_cv_sys_global_symbol_pipe \
18657 lt_cv_sys_global_symbol_to_cdecl \
18658 lt_cv_sys_global_symbol_to_c_name_address \
18659 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18660 SHELL \
18661 ECHO \
18662 lt_prog_compiler_no_builtin_flag \
18663 lt_prog_compiler_wl \
18664 lt_prog_compiler_pic \
18665 lt_prog_compiler_static \
18666 lt_cv_prog_compiler_c_o \
18667 need_locks \
18668 DSYMUTIL \
18669 NMEDIT \
18670 LIPO \
18671 OTOOL \
18672 OTOOL64 \
18673 shrext_cmds \
18674 export_dynamic_flag_spec \
18675 whole_archive_flag_spec \
18676 compiler_needs_object \
18677 with_gnu_ld \
18678 allow_undefined_flag \
18679 no_undefined_flag \
18680 hardcode_libdir_flag_spec \
18681 hardcode_libdir_flag_spec_ld \
18682 hardcode_libdir_separator \
18683 fix_srcfile_path \
18684 exclude_expsyms \
18685 include_expsyms \
18686 file_list_spec \
18687 variables_saved_for_relink \
18688 libname_spec \
18689 library_names_spec \
18690 soname_spec \
18691 finish_eval \
18692 old_striplib \
18693 striplib \
18694 compiler_lib_search_dirs \
18695 predep_objects \
18696 postdep_objects \
18697 predeps \
18698 postdeps \
18699 compiler_lib_search_path \
18700 LD_CXX \
18701 compiler_CXX \
18702 lt_prog_compiler_no_builtin_flag_CXX \
18703 lt_prog_compiler_wl_CXX \
18704 lt_prog_compiler_pic_CXX \
18705 lt_prog_compiler_static_CXX \
18706 lt_cv_prog_compiler_c_o_CXX \
18707 export_dynamic_flag_spec_CXX \
18708 whole_archive_flag_spec_CXX \
18709 compiler_needs_object_CXX \
18710 with_gnu_ld_CXX \
18711 allow_undefined_flag_CXX \
18712 no_undefined_flag_CXX \
18713 hardcode_libdir_flag_spec_CXX \
18714 hardcode_libdir_flag_spec_ld_CXX \
18715 hardcode_libdir_separator_CXX \
18716 fix_srcfile_path_CXX \
18717 exclude_expsyms_CXX \
18718 include_expsyms_CXX \
18719 file_list_spec_CXX \
18720 compiler_lib_search_dirs_CXX \
18721 predep_objects_CXX \
18722 postdep_objects_CXX \
18723 predeps_CXX \
18724 postdeps_CXX \
18725 compiler_lib_search_path_CXX; do
18726 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18727 *[\\\\\\\`\\"\\\$]*)
18728 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18729 ;;
18730 *)
18731 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18732 ;;
18733 esac
18734 done
18735
18736 # Double-quote double-evaled strings.
18737 for var in reload_cmds \
18738 old_postinstall_cmds \
18739 old_postuninstall_cmds \
18740 old_archive_cmds \
18741 extract_expsyms_cmds \
18742 old_archive_from_new_cmds \
18743 old_archive_from_expsyms_cmds \
18744 archive_cmds \
18745 archive_expsym_cmds \
18746 module_cmds \
18747 module_expsym_cmds \
18748 export_symbols_cmds \
18749 prelink_cmds \
18750 postinstall_cmds \
18751 postuninstall_cmds \
18752 finish_cmds \
18753 sys_lib_search_path_spec \
18754 sys_lib_dlsearch_path_spec \
18755 old_archive_cmds_CXX \
18756 old_archive_from_new_cmds_CXX \
18757 old_archive_from_expsyms_cmds_CXX \
18758 archive_cmds_CXX \
18759 archive_expsym_cmds_CXX \
18760 module_cmds_CXX \
18761 module_expsym_cmds_CXX \
18762 export_symbols_cmds_CXX \
18763 prelink_cmds_CXX; do
18764 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18765 *[\\\\\\\`\\"\\\$]*)
18766 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18767 ;;
18768 *)
18769 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18770 ;;
18771 esac
18772 done
18773
18774 # Fix-up fallback echo if it was mangled by the above quoting rules.
18775 case \$lt_ECHO in
18776 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18777 ;;
18778 esac
18779
18780 ac_aux_dir='$ac_aux_dir'
18781 xsi_shell='$xsi_shell'
18782 lt_shell_append='$lt_shell_append'
18783
18784 # See if we are running on zsh, and set the options which allow our
18785 # commands through without removal of \ escapes INIT.
18786 if test -n "\${ZSH_VERSION+set}" ; then
18787 setopt NO_GLOB_SUBST
18788 fi
18789
18790
18791 PACKAGE='$PACKAGE'
18792 VERSION='$VERSION'
18793 TIMESTAMP='$TIMESTAMP'
18794 RM='$RM'
18795 ofile='$ofile'
18796
18797
18798
18799
18800
18801
18802 _ACEOF
18803
18804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18805
18806 # Handling of arguments.
18807 for ac_config_target in $ac_config_targets
18808 do
18809 case $ac_config_target in
18810 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18811 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18812 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18813 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18814 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
18815 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18816
18817 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18818 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18819 { (exit 1); exit 1; }; };;
18820 esac
18821 done
18822
18823
18824 # If the user did not use the arguments to specify the items to instantiate,
18825 # then the envvar interface is used. Set only those that are not.
18826 # We use the long form for the default assignment because of an extremely
18827 # bizarre bug on SunOS 4.1.3.
18828 if $ac_need_defaults; then
18829 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18830 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18831 fi
18832
18833 # Have a temporary directory for convenience. Make it in the build tree
18834 # simply because there is no reason against having it here, and in addition,
18835 # creating and moving files from /tmp can sometimes cause problems.
18836 # Hook for its removal unless debugging.
18837 # Note that there is a small window in which the directory will not be cleaned:
18838 # after its creation but before its name has been assigned to `$tmp'.
18839 $debug ||
18840 {
18841 tmp=
18842 trap 'exit_status=$?
18843 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18844 ' 0
18845 trap '{ (exit 1); exit 1; }' 1 2 13 15
18846 }
18847 # Create a (secure) tmp directory for tmp files.
18848
18849 {
18850 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18851 test -n "$tmp" && test -d "$tmp"
18852 } ||
18853 {
18854 tmp=./conf$$-$RANDOM
18855 (umask 077 && mkdir "$tmp")
18856 } ||
18857 {
18858 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18859 { (exit 1); exit 1; }
18860 }
18861
18862 # Set up the scripts for CONFIG_FILES section.
18863 # No need to generate them if there are no CONFIG_FILES.
18864 # This happens for instance with `./config.status config.h'.
18865 if test -n "$CONFIG_FILES"; then
18866
18867
18868 ac_cr='
18869 '
18870 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18871 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18872 ac_cs_awk_cr='\\r'
18873 else
18874 ac_cs_awk_cr=$ac_cr
18875 fi
18876
18877 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18878 _ACEOF
18879
18880
18881 {
18882 echo "cat >conf$$subs.awk <<_ACEOF" &&
18883 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18884 echo "_ACEOF"
18885 } >conf$$subs.sh ||
18886 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18887 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18888 { (exit 1); exit 1; }; }
18889 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18890 ac_delim='%!_!# '
18891 for ac_last_try in false false false false false :; do
18892 . ./conf$$subs.sh ||
18893 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18894 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18895 { (exit 1); exit 1; }; }
18896
18897 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18898 if test $ac_delim_n = $ac_delim_num; then
18899 break
18900 elif $ac_last_try; then
18901 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18902 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18903 { (exit 1); exit 1; }; }
18904 else
18905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18906 fi
18907 done
18908 rm -f conf$$subs.sh
18909
18910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18911 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18912 _ACEOF
18913 sed -n '
18914 h
18915 s/^/S["/; s/!.*/"]=/
18916 p
18917 g
18918 s/^[^!]*!//
18919 :repl
18920 t repl
18921 s/'"$ac_delim"'$//
18922 t delim
18923 :nl
18924 h
18925 s/\(.\{148\}\).*/\1/
18926 t more1
18927 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18928 p
18929 n
18930 b repl
18931 :more1
18932 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18933 p
18934 g
18935 s/.\{148\}//
18936 t nl
18937 :delim
18938 h
18939 s/\(.\{148\}\).*/\1/
18940 t more2
18941 s/["\\]/\\&/g; s/^/"/; s/$/"/
18942 p
18943 b
18944 :more2
18945 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18946 p
18947 g
18948 s/.\{148\}//
18949 t delim
18950 ' <conf$$subs.awk | sed '
18951 /^[^""]/{
18952 N
18953 s/\n//
18954 }
18955 ' >>$CONFIG_STATUS || ac_write_fail=1
18956 rm -f conf$$subs.awk
18957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18958 _ACAWK
18959 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18960 for (key in S) S_is_set[key] = 1
18961 FS = ""
18962
18963 }
18964 {
18965 line = $ 0
18966 nfields = split(line, field, "@")
18967 substed = 0
18968 len = length(field[1])
18969 for (i = 2; i < nfields; i++) {
18970 key = field[i]
18971 keylen = length(key)
18972 if (S_is_set[key]) {
18973 value = S[key]
18974 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18975 len += length(value) + length(field[++i])
18976 substed = 1
18977 } else
18978 len += 1 + keylen
18979 }
18980
18981 print line
18982 }
18983
18984 _ACAWK
18985 _ACEOF
18986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18987 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18988 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18989 else
18990 cat
18991 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18992 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18993 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18994 { (exit 1); exit 1; }; }
18995 _ACEOF
18996
18997 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18998 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18999 # trailing colons and then remove the whole line if VPATH becomes empty
19000 # (actually we leave an empty line to preserve line numbers).
19001 if test "x$srcdir" = x.; then
19002 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19003 s/:*\$(srcdir):*/:/
19004 s/:*\${srcdir}:*/:/
19005 s/:*@srcdir@:*/:/
19006 s/^\([^=]*=[ ]*\):*/\1/
19007 s/:*$//
19008 s/^[^=]*=[ ]*$//
19009 }'
19010 fi
19011
19012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19013 fi # test -n "$CONFIG_FILES"
19014
19015
19016 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
19017 shift
19018 for ac_tag
19019 do
19020 case $ac_tag in
19021 :[FHLC]) ac_mode=$ac_tag; continue;;
19022 esac
19023 case $ac_mode$ac_tag in
19024 :[FHL]*:*);;
19025 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19026 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19027 { (exit 1); exit 1; }; };;
19028 :[FH]-) ac_tag=-:-;;
19029 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19030 esac
19031 ac_save_IFS=$IFS
19032 IFS=:
19033 set x $ac_tag
19034 IFS=$ac_save_IFS
19035 shift
19036 ac_file=$1
19037 shift
19038
19039 case $ac_mode in
19040 :L) ac_source=$1;;
19041 :[FH])
19042 ac_file_inputs=
19043 for ac_f
19044 do
19045 case $ac_f in
19046 -) ac_f="$tmp/stdin";;
19047 *) # Look for the file first in the build tree, then in the source tree
19048 # (if the path is not absolute). The absolute path cannot be DOS-style,
19049 # because $ac_f cannot contain `:'.
19050 test -f "$ac_f" ||
19051 case $ac_f in
19052 [\\/$]*) false;;
19053 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19054 esac ||
19055 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19056 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19057 { (exit 1); exit 1; }; };;
19058 esac
19059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19060 ac_file_inputs="$ac_file_inputs '$ac_f'"
19061 done
19062
19063 # Let's still pretend it is `configure' which instantiates (i.e., don't
19064 # use $as_me), people would be surprised to read:
19065 # /* config.h. Generated by config.status. */
19066 configure_input='Generated from '`
19067 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19068 `' by configure.'
19069 if test x"$ac_file" != x-; then
19070 configure_input="$ac_file. $configure_input"
19071 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19072 $as_echo "$as_me: creating $ac_file" >&6;}
19073 fi
19074 # Neutralize special characters interpreted by sed in replacement strings.
19075 case $configure_input in #(
19076 *\&* | *\|* | *\\* )
19077 ac_sed_conf_input=`$as_echo "$configure_input" |
19078 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19079 *) ac_sed_conf_input=$configure_input;;
19080 esac
19081
19082 case $ac_tag in
19083 *:-:* | *:-) cat >"$tmp/stdin" \
19084 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19085 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19086 { (exit 1); exit 1; }; } ;;
19087 esac
19088 ;;
19089 esac
19090
19091 ac_dir=`$as_dirname -- "$ac_file" ||
19092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19093 X"$ac_file" : 'X\(//\)[^/]' \| \
19094 X"$ac_file" : 'X\(//\)$' \| \
19095 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19096 $as_echo X"$ac_file" |
19097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19098 s//\1/
19099 q
19100 }
19101 /^X\(\/\/\)[^/].*/{
19102 s//\1/
19103 q
19104 }
19105 /^X\(\/\/\)$/{
19106 s//\1/
19107 q
19108 }
19109 /^X\(\/\).*/{
19110 s//\1/
19111 q
19112 }
19113 s/.*/./; q'`
19114 { as_dir="$ac_dir"
19115 case $as_dir in #(
19116 -*) as_dir=./$as_dir;;
19117 esac
19118 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19119 as_dirs=
19120 while :; do
19121 case $as_dir in #(
19122 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19123 *) as_qdir=$as_dir;;
19124 esac
19125 as_dirs="'$as_qdir' $as_dirs"
19126 as_dir=`$as_dirname -- "$as_dir" ||
19127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19128 X"$as_dir" : 'X\(//\)[^/]' \| \
19129 X"$as_dir" : 'X\(//\)$' \| \
19130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19131 $as_echo X"$as_dir" |
19132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19133 s//\1/
19134 q
19135 }
19136 /^X\(\/\/\)[^/].*/{
19137 s//\1/
19138 q
19139 }
19140 /^X\(\/\/\)$/{
19141 s//\1/
19142 q
19143 }
19144 /^X\(\/\).*/{
19145 s//\1/
19146 q
19147 }
19148 s/.*/./; q'`
19149 test -d "$as_dir" && break
19150 done
19151 test -z "$as_dirs" || eval "mkdir $as_dirs"
19152 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19153 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19154 { (exit 1); exit 1; }; }; }
19155 ac_builddir=.
19156
19157 case "$ac_dir" in
19158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19159 *)
19160 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19161 # A ".." for each directory in $ac_dir_suffix.
19162 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19163 case $ac_top_builddir_sub in
19164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19166 esac ;;
19167 esac
19168 ac_abs_top_builddir=$ac_pwd
19169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19170 # for backward compatibility:
19171 ac_top_builddir=$ac_top_build_prefix
19172
19173 case $srcdir in
19174 .) # We are building in place.
19175 ac_srcdir=.
19176 ac_top_srcdir=$ac_top_builddir_sub
19177 ac_abs_top_srcdir=$ac_pwd ;;
19178 [\\/]* | ?:[\\/]* ) # Absolute name.
19179 ac_srcdir=$srcdir$ac_dir_suffix;
19180 ac_top_srcdir=$srcdir
19181 ac_abs_top_srcdir=$srcdir ;;
19182 *) # Relative name.
19183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19184 ac_top_srcdir=$ac_top_build_prefix$srcdir
19185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19186 esac
19187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19188
19189
19190 case $ac_mode in
19191 :F)
19192 #
19193 # CONFIG_FILE
19194 #
19195
19196 case $INSTALL in
19197 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19198 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19199 esac
19200 ac_MKDIR_P=$MKDIR_P
19201 case $MKDIR_P in
19202 [\\/$]* | ?:[\\/]* ) ;;
19203 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19204 esac
19205 _ACEOF
19206
19207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19208 # If the template does not know about datarootdir, expand it.
19209 # FIXME: This hack should be removed a few years after 2.60.
19210 ac_datarootdir_hack=; ac_datarootdir_seen=
19211
19212 ac_sed_dataroot='
19213 /datarootdir/ {
19214 p
19215 q
19216 }
19217 /@datadir@/p
19218 /@docdir@/p
19219 /@infodir@/p
19220 /@localedir@/p
19221 /@mandir@/p
19222 '
19223 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19224 *datarootdir*) ac_datarootdir_seen=yes;;
19225 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19226 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19227 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19228 _ACEOF
19229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19230 ac_datarootdir_hack='
19231 s&@datadir@&$datadir&g
19232 s&@docdir@&$docdir&g
19233 s&@infodir@&$infodir&g
19234 s&@localedir@&$localedir&g
19235 s&@mandir@&$mandir&g
19236 s&\\\${datarootdir}&$datarootdir&g' ;;
19237 esac
19238 _ACEOF
19239
19240 # Neutralize VPATH when `$srcdir' = `.'.
19241 # Shell code in configure.ac might set extrasub.
19242 # FIXME: do we really want to maintain this feature?
19243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19244 ac_sed_extra="$ac_vpsub
19245 $extrasub
19246 _ACEOF
19247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19248 :t
19249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19250 s|@configure_input@|$ac_sed_conf_input|;t t
19251 s&@top_builddir@&$ac_top_builddir_sub&;t t
19252 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19253 s&@srcdir@&$ac_srcdir&;t t
19254 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19255 s&@top_srcdir@&$ac_top_srcdir&;t t
19256 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19257 s&@builddir@&$ac_builddir&;t t
19258 s&@abs_builddir@&$ac_abs_builddir&;t t
19259 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19260 s&@INSTALL@&$ac_INSTALL&;t t
19261 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19262 $ac_datarootdir_hack
19263 "
19264 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19265 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19266 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19267 { (exit 1); exit 1; }; }
19268
19269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19270 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19271 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19272 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19273 which seems to be undefined. Please make sure it is defined." >&5
19274 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19275 which seems to be undefined. Please make sure it is defined." >&2;}
19276
19277 rm -f "$tmp/stdin"
19278 case $ac_file in
19279 -) cat "$tmp/out" && rm -f "$tmp/out";;
19280 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19281 esac \
19282 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19283 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19284 { (exit 1); exit 1; }; }
19285 ;;
19286
19287
19288 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19289 $as_echo "$as_me: executing $ac_file commands" >&6;}
19290 ;;
19291 esac
19292
19293
19294 case $ac_file$ac_mode in
19295 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
19296 # are listed without --file. Let's play safe and only enable the eval
19297 # if we detect the quoting.
19298 case $CONFIG_FILES in
19299 *\'*) eval set x "$CONFIG_FILES" ;;
19300 *) set x $CONFIG_FILES ;;
19301 esac
19302 shift
19303 for mf
19304 do
19305 # Strip MF so we end up with the name of the file.
19306 mf=`echo "$mf" | sed -e 's/:.*$//'`
19307 # Check whether this is an Automake generated Makefile or not.
19308 # We used to match only the files named `Makefile.in', but
19309 # some people rename them; so instead we look at the file content.
19310 # Grep'ing the first line is not enough: some people post-process
19311 # each Makefile.in and add a new line on top of each file to say so.
19312 # Grep'ing the whole file is not good either: AIX grep has a line
19313 # limit of 2048, but all sed's we know have understand at least 4000.
19314 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19315 dirpart=`$as_dirname -- "$mf" ||
19316 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19317 X"$mf" : 'X\(//\)[^/]' \| \
19318 X"$mf" : 'X\(//\)$' \| \
19319 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19320 $as_echo X"$mf" |
19321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19322 s//\1/
19323 q
19324 }
19325 /^X\(\/\/\)[^/].*/{
19326 s//\1/
19327 q
19328 }
19329 /^X\(\/\/\)$/{
19330 s//\1/
19331 q
19332 }
19333 /^X\(\/\).*/{
19334 s//\1/
19335 q
19336 }
19337 s/.*/./; q'`
19338 else
19339 continue
19340 fi
19341 # Extract the definition of DEPDIR, am__include, and am__quote
19342 # from the Makefile without running `make'.
19343 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19344 test -z "$DEPDIR" && continue
19345 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19346 test -z "am__include" && continue
19347 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19348 # When using ansi2knr, U may be empty or an underscore; expand it
19349 U=`sed -n 's/^U = //p' < "$mf"`
19350 # Find all dependency output files, they are included files with
19351 # $(DEPDIR) in their names. We invoke sed twice because it is the
19352 # simplest approach to changing $(DEPDIR) to its actual value in the
19353 # expansion.
19354 for file in `sed -n "
19355 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19356 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19357 # Make sure the directory exists.
19358 test -f "$dirpart/$file" && continue
19359 fdir=`$as_dirname -- "$file" ||
19360 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19361 X"$file" : 'X\(//\)[^/]' \| \
19362 X"$file" : 'X\(//\)$' \| \
19363 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19364 $as_echo X"$file" |
19365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19366 s//\1/
19367 q
19368 }
19369 /^X\(\/\/\)[^/].*/{
19370 s//\1/
19371 q
19372 }
19373 /^X\(\/\/\)$/{
19374 s//\1/
19375 q
19376 }
19377 /^X\(\/\).*/{
19378 s//\1/
19379 q
19380 }
19381 s/.*/./; q'`
19382 { as_dir=$dirpart/$fdir
19383 case $as_dir in #(
19384 -*) as_dir=./$as_dir;;
19385 esac
19386 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19387 as_dirs=
19388 while :; do
19389 case $as_dir in #(
19390 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19391 *) as_qdir=$as_dir;;
19392 esac
19393 as_dirs="'$as_qdir' $as_dirs"
19394 as_dir=`$as_dirname -- "$as_dir" ||
19395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19396 X"$as_dir" : 'X\(//\)[^/]' \| \
19397 X"$as_dir" : 'X\(//\)$' \| \
19398 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19399 $as_echo X"$as_dir" |
19400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19401 s//\1/
19402 q
19403 }
19404 /^X\(\/\/\)[^/].*/{
19405 s//\1/
19406 q
19407 }
19408 /^X\(\/\/\)$/{
19409 s//\1/
19410 q
19411 }
19412 /^X\(\/\).*/{
19413 s//\1/
19414 q
19415 }
19416 s/.*/./; q'`
19417 test -d "$as_dir" && break
19418 done
19419 test -z "$as_dirs" || eval "mkdir $as_dirs"
19420 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19421 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19422 { (exit 1); exit 1; }; }; }
19423 # echo "creating $dirpart/$file"
19424 echo '# dummy' > "$dirpart/$file"
19425 done
19426 done
19427 ;;
19428 "libtool":C)
19429
19430 # See if we are running on zsh, and set the options which allow our
19431 # commands through without removal of \ escapes.
19432 if test -n "${ZSH_VERSION+set}" ; then
19433 setopt NO_GLOB_SUBST
19434 fi
19435
19436 cfgfile="${ofile}T"
19437 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19438 $RM "$cfgfile"
19439
19440 cat <<_LT_EOF >> "$cfgfile"
19441 #! $SHELL
19442
19443 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19444 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19445 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19446 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19447 #
19448 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19449 # 2006, 2007, 2008 Free Software Foundation, Inc.
19450 # Written by Gordon Matzigkeit, 1996
19451 #
19452 # This file is part of GNU Libtool.
19453 #
19454 # GNU Libtool is free software; you can redistribute it and/or
19455 # modify it under the terms of the GNU General Public License as
19456 # published by the Free Software Foundation; either version 2 of
19457 # the License, or (at your option) any later version.
19458 #
19459 # As a special exception to the GNU General Public License,
19460 # if you distribute this file as part of a program or library that
19461 # is built using GNU Libtool, you may include this file under the
19462 # same distribution terms that you use for the rest of that program.
19463 #
19464 # GNU Libtool is distributed in the hope that it will be useful,
19465 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19466 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19467 # GNU General Public License for more details.
19468 #
19469 # You should have received a copy of the GNU General Public License
19470 # along with GNU Libtool; see the file COPYING. If not, a copy
19471 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19472 # obtained by writing to the Free Software Foundation, Inc.,
19473 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19474
19475
19476 # The names of the tagged configurations supported by this script.
19477 available_tags="CXX "
19478
19479 # ### BEGIN LIBTOOL CONFIG
19480
19481 # Which release of libtool.m4 was used?
19482 macro_version=$macro_version
19483 macro_revision=$macro_revision
19484
19485 # Whether or not to build shared libraries.
19486 build_libtool_libs=$enable_shared
19487
19488 # Whether or not to build static libraries.
19489 build_old_libs=$enable_static
19490
19491 # What type of objects to build.
19492 pic_mode=$pic_mode
19493
19494 # Whether or not to optimize for fast installation.
19495 fast_install=$enable_fast_install
19496
19497 # The host system.
19498 host_alias=$host_alias
19499 host=$host
19500 host_os=$host_os
19501
19502 # The build system.
19503 build_alias=$build_alias
19504 build=$build
19505 build_os=$build_os
19506
19507 # A sed program that does not truncate output.
19508 SED=$lt_SED
19509
19510 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19511 Xsed="\$SED -e 1s/^X//"
19512
19513 # A grep program that handles long lines.
19514 GREP=$lt_GREP
19515
19516 # An ERE matcher.
19517 EGREP=$lt_EGREP
19518
19519 # A literal string matcher.
19520 FGREP=$lt_FGREP
19521
19522 # A BSD- or MS-compatible name lister.
19523 NM=$lt_NM
19524
19525 # Whether we need soft or hard links.
19526 LN_S=$lt_LN_S
19527
19528 # What is the maximum length of a command?
19529 max_cmd_len=$max_cmd_len
19530
19531 # Object file suffix (normally "o").
19532 objext=$ac_objext
19533
19534 # Executable file suffix (normally "").
19535 exeext=$exeext
19536
19537 # whether the shell understands "unset".
19538 lt_unset=$lt_unset
19539
19540 # turn spaces into newlines.
19541 SP2NL=$lt_lt_SP2NL
19542
19543 # turn newlines into spaces.
19544 NL2SP=$lt_lt_NL2SP
19545
19546 # How to create reloadable object files.
19547 reload_flag=$lt_reload_flag
19548 reload_cmds=$lt_reload_cmds
19549
19550 # An object symbol dumper.
19551 OBJDUMP=$lt_OBJDUMP
19552
19553 # Method to check whether dependent libraries are shared objects.
19554 deplibs_check_method=$lt_deplibs_check_method
19555
19556 # Command to use when deplibs_check_method == "file_magic".
19557 file_magic_cmd=$lt_file_magic_cmd
19558
19559 # The archiver.
19560 AR=$lt_AR
19561 AR_FLAGS=$lt_AR_FLAGS
19562
19563 # A symbol stripping program.
19564 STRIP=$lt_STRIP
19565
19566 # Commands used to install an old-style archive.
19567 RANLIB=$lt_RANLIB
19568 old_postinstall_cmds=$lt_old_postinstall_cmds
19569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19570
19571 # A C compiler.
19572 LTCC=$lt_CC
19573
19574 # LTCC compiler flags.
19575 LTCFLAGS=$lt_CFLAGS
19576
19577 # Take the output of nm and produce a listing of raw symbols and C names.
19578 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19579
19580 # Transform the output of nm in a proper C declaration.
19581 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19582
19583 # Transform the output of nm in a C name address pair.
19584 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19585
19586 # Transform the output of nm in a C name address pair when lib prefix is needed.
19587 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19588
19589 # The name of the directory that contains temporary libtool files.
19590 objdir=$objdir
19591
19592 # Shell to use when invoking shell scripts.
19593 SHELL=$lt_SHELL
19594
19595 # An echo program that does not interpret backslashes.
19596 ECHO=$lt_ECHO
19597
19598 # Used to examine libraries when file_magic_cmd begins with "file".
19599 MAGIC_CMD=$MAGIC_CMD
19600
19601 # Must we lock files when doing compilation?
19602 need_locks=$lt_need_locks
19603
19604 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19605 DSYMUTIL=$lt_DSYMUTIL
19606
19607 # Tool to change global to local symbols on Mac OS X.
19608 NMEDIT=$lt_NMEDIT
19609
19610 # Tool to manipulate fat objects and archives on Mac OS X.
19611 LIPO=$lt_LIPO
19612
19613 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19614 OTOOL=$lt_OTOOL
19615
19616 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19617 OTOOL64=$lt_OTOOL64
19618
19619 # Old archive suffix (normally "a").
19620 libext=$libext
19621
19622 # Shared library suffix (normally ".so").
19623 shrext_cmds=$lt_shrext_cmds
19624
19625 # The commands to extract the exported symbol list from a shared archive.
19626 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19627
19628 # Variables whose values should be saved in libtool wrapper scripts and
19629 # restored at link time.
19630 variables_saved_for_relink=$lt_variables_saved_for_relink
19631
19632 # Do we need the "lib" prefix for modules?
19633 need_lib_prefix=$need_lib_prefix
19634
19635 # Do we need a version for libraries?
19636 need_version=$need_version
19637
19638 # Library versioning type.
19639 version_type=$version_type
19640
19641 # Shared library runtime path variable.
19642 runpath_var=$runpath_var
19643
19644 # Shared library path variable.
19645 shlibpath_var=$shlibpath_var
19646
19647 # Is shlibpath searched before the hard-coded library search path?
19648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19649
19650 # Format of library name prefix.
19651 libname_spec=$lt_libname_spec
19652
19653 # List of archive names. First name is the real one, the rest are links.
19654 # The last name is the one that the linker finds with -lNAME
19655 library_names_spec=$lt_library_names_spec
19656
19657 # The coded name of the library, if different from the real name.
19658 soname_spec=$lt_soname_spec
19659
19660 # Command to use after installation of a shared archive.
19661 postinstall_cmds=$lt_postinstall_cmds
19662
19663 # Command to use after uninstallation of a shared archive.
19664 postuninstall_cmds=$lt_postuninstall_cmds
19665
19666 # Commands used to finish a libtool library installation in a directory.
19667 finish_cmds=$lt_finish_cmds
19668
19669 # As "finish_cmds", except a single script fragment to be evaled but
19670 # not shown.
19671 finish_eval=$lt_finish_eval
19672
19673 # Whether we should hardcode library paths into libraries.
19674 hardcode_into_libs=$hardcode_into_libs
19675
19676 # Compile-time system search path for libraries.
19677 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19678
19679 # Run-time system search path for libraries.
19680 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19681
19682 # Whether dlopen is supported.
19683 dlopen_support=$enable_dlopen
19684
19685 # Whether dlopen of programs is supported.
19686 dlopen_self=$enable_dlopen_self
19687
19688 # Whether dlopen of statically linked programs is supported.
19689 dlopen_self_static=$enable_dlopen_self_static
19690
19691 # Commands to strip libraries.
19692 old_striplib=$lt_old_striplib
19693 striplib=$lt_striplib
19694
19695
19696 # The linker used to build libraries.
19697 LD=$lt_LD
19698
19699 # Commands used to build an old-style archive.
19700 old_archive_cmds=$lt_old_archive_cmds
19701
19702 # A language specific compiler.
19703 CC=$lt_compiler
19704
19705 # Is the compiler the GNU compiler?
19706 with_gcc=$GCC
19707
19708 # Compiler flag to turn off builtin functions.
19709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19710
19711 # How to pass a linker flag through the compiler.
19712 wl=$lt_lt_prog_compiler_wl
19713
19714 # Additional compiler flags for building library objects.
19715 pic_flag=$lt_lt_prog_compiler_pic
19716
19717 # Compiler flag to prevent dynamic linking.
19718 link_static_flag=$lt_lt_prog_compiler_static
19719
19720 # Does compiler simultaneously support -c and -o options?
19721 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19722
19723 # Whether or not to add -lc for building shared libraries.
19724 build_libtool_need_lc=$archive_cmds_need_lc
19725
19726 # Whether or not to disallow shared libs when runtime libs are static.
19727 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19728
19729 # Compiler flag to allow reflexive dlopens.
19730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19731
19732 # Compiler flag to generate shared objects directly from archives.
19733 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19734
19735 # Whether the compiler copes with passing no objects directly.
19736 compiler_needs_object=$lt_compiler_needs_object
19737
19738 # Create an old-style archive from a shared archive.
19739 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19740
19741 # Create a temporary old-style archive to link instead of a shared archive.
19742 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19743
19744 # Commands used to build a shared archive.
19745 archive_cmds=$lt_archive_cmds
19746 archive_expsym_cmds=$lt_archive_expsym_cmds
19747
19748 # Commands used to build a loadable module if different from building
19749 # a shared archive.
19750 module_cmds=$lt_module_cmds
19751 module_expsym_cmds=$lt_module_expsym_cmds
19752
19753 # Whether we are building with GNU ld or not.
19754 with_gnu_ld=$lt_with_gnu_ld
19755
19756 # Flag that allows shared libraries with undefined symbols to be built.
19757 allow_undefined_flag=$lt_allow_undefined_flag
19758
19759 # Flag that enforces no undefined symbols.
19760 no_undefined_flag=$lt_no_undefined_flag
19761
19762 # Flag to hardcode \$libdir into a binary during linking.
19763 # This must work even if \$libdir does not exist
19764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19765
19766 # If ld is used when linking, flag to hardcode \$libdir into a binary
19767 # during linking. This must work even if \$libdir does not exist.
19768 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19769
19770 # Whether we need a single "-rpath" flag with a separated argument.
19771 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19772
19773 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19774 # DIR into the resulting binary.
19775 hardcode_direct=$hardcode_direct
19776
19777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19778 # DIR into the resulting binary and the resulting library dependency is
19779 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19780 # library is relocated.
19781 hardcode_direct_absolute=$hardcode_direct_absolute
19782
19783 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19784 # into the resulting binary.
19785 hardcode_minus_L=$hardcode_minus_L
19786
19787 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19788 # into the resulting binary.
19789 hardcode_shlibpath_var=$hardcode_shlibpath_var
19790
19791 # Set to "yes" if building a shared library automatically hardcodes DIR
19792 # into the library and all subsequent libraries and executables linked
19793 # against it.
19794 hardcode_automatic=$hardcode_automatic
19795
19796 # Set to yes if linker adds runtime paths of dependent libraries
19797 # to runtime path list.
19798 inherit_rpath=$inherit_rpath
19799
19800 # Whether libtool must link a program against all its dependency libraries.
19801 link_all_deplibs=$link_all_deplibs
19802
19803 # Fix the shell variable \$srcfile for the compiler.
19804 fix_srcfile_path=$lt_fix_srcfile_path
19805
19806 # Set to "yes" if exported symbols are required.
19807 always_export_symbols=$always_export_symbols
19808
19809 # The commands to list exported symbols.
19810 export_symbols_cmds=$lt_export_symbols_cmds
19811
19812 # Symbols that should not be listed in the preloaded symbols.
19813 exclude_expsyms=$lt_exclude_expsyms
19814
19815 # Symbols that must always be exported.
19816 include_expsyms=$lt_include_expsyms
19817
19818 # Commands necessary for linking programs (against libraries) with templates.
19819 prelink_cmds=$lt_prelink_cmds
19820
19821 # Specify filename containing input files.
19822 file_list_spec=$lt_file_list_spec
19823
19824 # How to hardcode a shared library path into an executable.
19825 hardcode_action=$hardcode_action
19826
19827 # The directories searched by this compiler when creating a shared library.
19828 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19829
19830 # Dependencies to place before and after the objects being linked to
19831 # create a shared library.
19832 predep_objects=$lt_predep_objects
19833 postdep_objects=$lt_postdep_objects
19834 predeps=$lt_predeps
19835 postdeps=$lt_postdeps
19836
19837 # The library search path used internally by the compiler when linking
19838 # a shared library.
19839 compiler_lib_search_path=$lt_compiler_lib_search_path
19840
19841 # ### END LIBTOOL CONFIG
19842
19843 _LT_EOF
19844
19845 case $host_os in
19846 aix3*)
19847 cat <<\_LT_EOF >> "$cfgfile"
19848 # AIX sometimes has problems with the GCC collect2 program. For some
19849 # reason, if we set the COLLECT_NAMES environment variable, the problems
19850 # vanish in a puff of smoke.
19851 if test "X${COLLECT_NAMES+set}" != Xset; then
19852 COLLECT_NAMES=
19853 export COLLECT_NAMES
19854 fi
19855 _LT_EOF
19856 ;;
19857 esac
19858
19859
19860 ltmain="$ac_aux_dir/ltmain.sh"
19861
19862
19863 # We use sed instead of cat because bash on DJGPP gets confused if
19864 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19865 # text mode, it properly converts lines to CR/LF. This bash problem
19866 # is reportedly fixed, but why not run on old versions too?
19867 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19868 || (rm -f "$cfgfile"; exit 1)
19869
19870 case $xsi_shell in
19871 yes)
19872 cat << \_LT_EOF >> "$cfgfile"
19873
19874 # func_dirname file append nondir_replacement
19875 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19876 # otherwise set result to NONDIR_REPLACEMENT.
19877 func_dirname ()
19878 {
19879 case ${1} in
19880 */*) func_dirname_result="${1%/*}${2}" ;;
19881 * ) func_dirname_result="${3}" ;;
19882 esac
19883 }
19884
19885 # func_basename file
19886 func_basename ()
19887 {
19888 func_basename_result="${1##*/}"
19889 }
19890
19891 # func_dirname_and_basename file append nondir_replacement
19892 # perform func_basename and func_dirname in a single function
19893 # call:
19894 # dirname: Compute the dirname of FILE. If nonempty,
19895 # add APPEND to the result, otherwise set result
19896 # to NONDIR_REPLACEMENT.
19897 # value returned in "$func_dirname_result"
19898 # basename: Compute filename of FILE.
19899 # value retuned in "$func_basename_result"
19900 # Implementation must be kept synchronized with func_dirname
19901 # and func_basename. For efficiency, we do not delegate to
19902 # those functions but instead duplicate the functionality here.
19903 func_dirname_and_basename ()
19904 {
19905 case ${1} in
19906 */*) func_dirname_result="${1%/*}${2}" ;;
19907 * ) func_dirname_result="${3}" ;;
19908 esac
19909 func_basename_result="${1##*/}"
19910 }
19911
19912 # func_stripname prefix suffix name
19913 # strip PREFIX and SUFFIX off of NAME.
19914 # PREFIX and SUFFIX must not contain globbing or regex special
19915 # characters, hashes, percent signs, but SUFFIX may contain a leading
19916 # dot (in which case that matches only a dot).
19917 func_stripname ()
19918 {
19919 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19920 # positional parameters, so assign one to ordinary parameter first.
19921 func_stripname_result=${3}
19922 func_stripname_result=${func_stripname_result#"${1}"}
19923 func_stripname_result=${func_stripname_result%"${2}"}
19924 }
19925
19926 # func_opt_split
19927 func_opt_split ()
19928 {
19929 func_opt_split_opt=${1%%=*}
19930 func_opt_split_arg=${1#*=}
19931 }
19932
19933 # func_lo2o object
19934 func_lo2o ()
19935 {
19936 case ${1} in
19937 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19938 *) func_lo2o_result=${1} ;;
19939 esac
19940 }
19941
19942 # func_xform libobj-or-source
19943 func_xform ()
19944 {
19945 func_xform_result=${1%.*}.lo
19946 }
19947
19948 # func_arith arithmetic-term...
19949 func_arith ()
19950 {
19951 func_arith_result=$(( $* ))
19952 }
19953
19954 # func_len string
19955 # STRING may not start with a hyphen.
19956 func_len ()
19957 {
19958 func_len_result=${#1}
19959 }
19960
19961 _LT_EOF
19962 ;;
19963 *) # Bourne compatible functions.
19964 cat << \_LT_EOF >> "$cfgfile"
19965
19966 # func_dirname file append nondir_replacement
19967 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19968 # otherwise set result to NONDIR_REPLACEMENT.
19969 func_dirname ()
19970 {
19971 # Extract subdirectory from the argument.
19972 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19973 if test "X$func_dirname_result" = "X${1}"; then
19974 func_dirname_result="${3}"
19975 else
19976 func_dirname_result="$func_dirname_result${2}"
19977 fi
19978 }
19979
19980 # func_basename file
19981 func_basename ()
19982 {
19983 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19984 }
19985
19986
19987 # func_stripname prefix suffix name
19988 # strip PREFIX and SUFFIX off of NAME.
19989 # PREFIX and SUFFIX must not contain globbing or regex special
19990 # characters, hashes, percent signs, but SUFFIX may contain a leading
19991 # dot (in which case that matches only a dot).
19992 # func_strip_suffix prefix name
19993 func_stripname ()
19994 {
19995 case ${2} in
19996 .*) func_stripname_result=`$ECHO "X${3}" \
19997 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19998 *) func_stripname_result=`$ECHO "X${3}" \
19999 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20000 esac
20001 }
20002
20003 # sed scripts:
20004 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20005 my_sed_long_arg='1s/^-[^=]*=//'
20006
20007 # func_opt_split
20008 func_opt_split ()
20009 {
20010 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20011 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20012 }
20013
20014 # func_lo2o object
20015 func_lo2o ()
20016 {
20017 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20018 }
20019
20020 # func_xform libobj-or-source
20021 func_xform ()
20022 {
20023 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20024 }
20025
20026 # func_arith arithmetic-term...
20027 func_arith ()
20028 {
20029 func_arith_result=`expr "$@"`
20030 }
20031
20032 # func_len string
20033 # STRING may not start with a hyphen.
20034 func_len ()
20035 {
20036 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20037 }
20038
20039 _LT_EOF
20040 esac
20041
20042 case $lt_shell_append in
20043 yes)
20044 cat << \_LT_EOF >> "$cfgfile"
20045
20046 # func_append var value
20047 # Append VALUE to the end of shell variable VAR.
20048 func_append ()
20049 {
20050 eval "$1+=\$2"
20051 }
20052 _LT_EOF
20053 ;;
20054 *)
20055 cat << \_LT_EOF >> "$cfgfile"
20056
20057 # func_append var value
20058 # Append VALUE to the end of shell variable VAR.
20059 func_append ()
20060 {
20061 eval "$1=\$$1\$2"
20062 }
20063
20064 _LT_EOF
20065 ;;
20066 esac
20067
20068
20069 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20070 || (rm -f "$cfgfile"; exit 1)
20071
20072 mv -f "$cfgfile" "$ofile" ||
20073 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20074 chmod +x "$ofile"
20075
20076
20077 cat <<_LT_EOF >> "$ofile"
20078
20079 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20080
20081 # The linker used to build libraries.
20082 LD=$lt_LD_CXX
20083
20084 # Commands used to build an old-style archive.
20085 old_archive_cmds=$lt_old_archive_cmds_CXX
20086
20087 # A language specific compiler.
20088 CC=$lt_compiler_CXX
20089
20090 # Is the compiler the GNU compiler?
20091 with_gcc=$GCC_CXX
20092
20093 # Compiler flag to turn off builtin functions.
20094 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20095
20096 # How to pass a linker flag through the compiler.
20097 wl=$lt_lt_prog_compiler_wl_CXX
20098
20099 # Additional compiler flags for building library objects.
20100 pic_flag=$lt_lt_prog_compiler_pic_CXX
20101
20102 # Compiler flag to prevent dynamic linking.
20103 link_static_flag=$lt_lt_prog_compiler_static_CXX
20104
20105 # Does compiler simultaneously support -c and -o options?
20106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20107
20108 # Whether or not to add -lc for building shared libraries.
20109 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20110
20111 # Whether or not to disallow shared libs when runtime libs are static.
20112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20113
20114 # Compiler flag to allow reflexive dlopens.
20115 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20116
20117 # Compiler flag to generate shared objects directly from archives.
20118 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20119
20120 # Whether the compiler copes with passing no objects directly.
20121 compiler_needs_object=$lt_compiler_needs_object_CXX
20122
20123 # Create an old-style archive from a shared archive.
20124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20125
20126 # Create a temporary old-style archive to link instead of a shared archive.
20127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20128
20129 # Commands used to build a shared archive.
20130 archive_cmds=$lt_archive_cmds_CXX
20131 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20132
20133 # Commands used to build a loadable module if different from building
20134 # a shared archive.
20135 module_cmds=$lt_module_cmds_CXX
20136 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20137
20138 # Whether we are building with GNU ld or not.
20139 with_gnu_ld=$lt_with_gnu_ld_CXX
20140
20141 # Flag that allows shared libraries with undefined symbols to be built.
20142 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20143
20144 # Flag that enforces no undefined symbols.
20145 no_undefined_flag=$lt_no_undefined_flag_CXX
20146
20147 # Flag to hardcode \$libdir into a binary during linking.
20148 # This must work even if \$libdir does not exist
20149 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20150
20151 # If ld is used when linking, flag to hardcode \$libdir into a binary
20152 # during linking. This must work even if \$libdir does not exist.
20153 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20154
20155 # Whether we need a single "-rpath" flag with a separated argument.
20156 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20157
20158 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20159 # DIR into the resulting binary.
20160 hardcode_direct=$hardcode_direct_CXX
20161
20162 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20163 # DIR into the resulting binary and the resulting library dependency is
20164 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20165 # library is relocated.
20166 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20167
20168 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20169 # into the resulting binary.
20170 hardcode_minus_L=$hardcode_minus_L_CXX
20171
20172 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20173 # into the resulting binary.
20174 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20175
20176 # Set to "yes" if building a shared library automatically hardcodes DIR
20177 # into the library and all subsequent libraries and executables linked
20178 # against it.
20179 hardcode_automatic=$hardcode_automatic_CXX
20180
20181 # Set to yes if linker adds runtime paths of dependent libraries
20182 # to runtime path list.
20183 inherit_rpath=$inherit_rpath_CXX
20184
20185 # Whether libtool must link a program against all its dependency libraries.
20186 link_all_deplibs=$link_all_deplibs_CXX
20187
20188 # Fix the shell variable \$srcfile for the compiler.
20189 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20190
20191 # Set to "yes" if exported symbols are required.
20192 always_export_symbols=$always_export_symbols_CXX
20193
20194 # The commands to list exported symbols.
20195 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20196
20197 # Symbols that should not be listed in the preloaded symbols.
20198 exclude_expsyms=$lt_exclude_expsyms_CXX
20199
20200 # Symbols that must always be exported.
20201 include_expsyms=$lt_include_expsyms_CXX
20202
20203 # Commands necessary for linking programs (against libraries) with templates.
20204 prelink_cmds=$lt_prelink_cmds_CXX
20205
20206 # Specify filename containing input files.
20207 file_list_spec=$lt_file_list_spec_CXX
20208
20209 # How to hardcode a shared library path into an executable.
20210 hardcode_action=$hardcode_action_CXX
20211
20212 # The directories searched by this compiler when creating a shared library.
20213 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20214
20215 # Dependencies to place before and after the objects being linked to
20216 # create a shared library.
20217 predep_objects=$lt_predep_objects_CXX
20218 postdep_objects=$lt_postdep_objects_CXX
20219 predeps=$lt_predeps_CXX
20220 postdeps=$lt_postdeps_CXX
20221
20222 # The library search path used internally by the compiler when linking
20223 # a shared library.
20224 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20225
20226 # ### END LIBTOOL TAG CONFIG: CXX
20227 _LT_EOF
20228
20229 ;;
20230
20231 esac
20232 done # for ac_tag
20233
20234
20235 { (exit 0); exit 0; }
20236 _ACEOF
20237 chmod +x $CONFIG_STATUS
20238 ac_clean_files=$ac_clean_files_save
20239
20240 test $ac_write_fail = 0 ||
20241 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20242 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20243 { (exit 1); exit 1; }; }
20244
20245
20246 # configure is writing to config.log, and then calls config.status.
20247 # config.status does its own redirection, appending to config.log.
20248 # Unfortunately, on DOS this fails, as config.log is still kept open
20249 # by configure, so config.status won't be able to write to it; its
20250 # output is simply discarded. So we exec the FD to /dev/null,
20251 # effectively closing config.log, so it can be properly (re)opened and
20252 # appended to by config.status. When coming back to configure, we
20253 # need to make the FD available again.
20254 if test "$no_create" != yes; then
20255 ac_cs_success=:
20256 ac_config_status_args=
20257 test "$silent" = yes &&
20258 ac_config_status_args="$ac_config_status_args --quiet"
20259 exec 5>/dev/null
20260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20261 exec 5>>config.log
20262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20263 # would make configure fail if this is the last instruction.
20264 $ac_cs_success || { (exit 1); exit 1; }
20265 fi
20266 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20267 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20268 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20269 fi
20270
20271
20272
0 libdockapp (1:0.5.0-3) unstable; urgency=low
1
2 * QA upload.
3 * Prevent FTBFS on avr32: (Closes: #535710)
4 - Call autogen.sh in configure target to update autoconf, etc.
5 - Add --force to libtoolize and automake calls to ensure newest files.
6 * Add ${misc:Depends} to libdockapp-dev binary Depends.
7 * Bump Standards-Version to 3.8.2.
8 * Tidy debian/rules.
9
10 -- Chris Lamb <lamby@debian.org> Sun, 02 Aug 2009 13:49:15 +0100
11
012 libdockapp (1:0.5.0-2) unstable; urgency=low
113
214 * QA upload.
11 Section: libs
22 Priority: optional
33 Maintainer: Debian QA Group <packages@qa.debian.org>
4 Build-Depends: debhelper (>= 5.0), libice-dev, libxpm-dev, libxext-dev, libx11-dev
5 Standards-Version: 3.8.0
4 Build-Depends: debhelper (>= 5.0), libice-dev, libxpm-dev, libxext-dev, libx11-dev, autotools-dev, automake, autoconf, libtool
5 Standards-Version: 3.8.2
66 Homepage: http://solfertje.student.utwente.nl/~dalroi/libdockapp/
77
88 Package: libdockapp2
2222 Package: libdockapp-dev
2323 Architecture: any
2424 Section: libdevel
25 Depends: libdockapp2 (= ${binary:Version}), libx11-dev, libxpm-dev
25 Depends: ${misc:Depends}, libdockapp2 (= ${binary:Version}), libx11-dev, libxpm-dev
2626 Description: Window Maker Dock App support (development files)
2727 Simple library that eases the creation of Window Maker dock apps. It
2828 provides functions that set up a dock app in such a way that they can be
00 #!/usr/bin/make -f
1
2 #export DH_VERBOSE=1
3
4
5 # This has to be exported to make some magic below work.
61
72 tmp := $(CURDIR)/debian/work
83 export DH_OPTIONS=--sourcedir=$(tmp)
4237 config.status: configure
4338 dh_testdir
4439 @-rm configure.in
45 CFLAGS="$(CFLAGS)" ./configure $(RETARGET) \
40 CFLAGS="$(CFLAGS)" ./autogen.sh $(RETARGET) \
4641 --prefix=/usr \
4742 --mandir=/usr/share/man \
4843 --without-font \
5954 dh_clean
6055
6156 binary-indep:
62 # We have no architecture-independent files here.
6357
6458 install: DH_OPTIONS=
6559 install: build
6862 dh_clean -k
6963 dh_installdirs
7064 $(MAKE) DESTDIR=$(tmp) install
71 # rm -rf $(tmp)/usr/local
7265
7366 binary-arch: build install
7467 dh_testdir
7871 dh_installdocs -a
7972 dh_installexamples -a
8073 dh_installmenu -a
81 # dh_installdebconf -a
82 # dh_installlogrotate -a
83 # dh_installemacsen -a
84 # dh_installcatalogs -a
85 # dh_installpam -a
86 # dh_installmime -a
87 # dh_installinit -a
88 # dh_installman -a
89 # dh_installcron -a
90 # dh_installinfo -a
91 # dh_undocumented -a
9274 ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" ""
9375 dh_strip -a
9476 endif
9577 dh_compress -a
9678 dh_fixperms -a
97 # dh_perl -a
98 # dh_python -a
9979 dh_makeshlibs -p$(lib)
10080 dh_installdeb -a
10181 dh_shlibdeps -a
0 # Makefile.in generated by automake 1.9.4 from Makefile.am.
0 # Makefile.in generated by automake 1.10.2 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1919 # This should probably be done by auto-whatever,
2020 # but I don't know how and they don't tell.
2121 #
22 srcdir = @srcdir@
23 top_srcdir = @top_srcdir@
2422 VPATH = @srcdir@
2523 pkgdatadir = $(datadir)/@PACKAGE@
2624 pkglibdir = $(libdir)/@PACKAGE@
2725 pkgincludedir = $(includedir)/@PACKAGE@
28 top_builddir = ..
2926 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
30 INSTALL = @INSTALL@
3127 install_sh_DATA = $(install_sh) -c -m 644
3228 install_sh_PROGRAM = $(install_sh) -c
3329 install_sh_SCRIPT = $(install_sh) -c
5349 DIST_SOURCES =
5450 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
5551 ACLOCAL = @ACLOCAL@
56 AMDEP_FALSE = @AMDEP_FALSE@
57 AMDEP_TRUE = @AMDEP_TRUE@
5852 AMTAR = @AMTAR@
5953 AR = @AR@
6054 AUTOCONF = @AUTOCONF@
6458 CC = @CC@
6559 CCDEPMODE = @CCDEPMODE@
6660 CFLAGS = @CFLAGS@
67 COND_EXAMPLES_FALSE = @COND_EXAMPLES_FALSE@
68 COND_EXAMPLES_TRUE = @COND_EXAMPLES_TRUE@
69 COND_FONT_FALSE = @COND_FONT_FALSE@
70 COND_FONT_TRUE = @COND_FONT_TRUE@
7161 CPP = @CPP@
7262 CPPFLAGS = @CPPFLAGS@
7363 CXX = @CXX@
7868 DEFS = @DEFS@
7969 DEPDIR = @DEPDIR@
8070 DFLAGS = @DFLAGS@
81 ECHO = @ECHO@
71 DSYMUTIL = @DSYMUTIL@
72 DUMPBIN = @DUMPBIN@
8273 ECHO_C = @ECHO_C@
8374 ECHO_N = @ECHO_N@
8475 ECHO_T = @ECHO_T@
8576 EGREP = @EGREP@
8677 EXEEXT = @EXEEXT@
87 F77 = @F77@
88 FFLAGS = @FFLAGS@
78 FGREP = @FGREP@
79 GREP = @GREP@
80 INSTALL = @INSTALL@
8981 INSTALL_DATA = @INSTALL_DATA@
9082 INSTALL_PROGRAM = @INSTALL_PROGRAM@
9183 INSTALL_SCRIPT = @INSTALL_SCRIPT@
9284 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
85 LD = @LD@
9386 LDFLAGS = @LDFLAGS@
9487 LIBOBJS = @LIBOBJS@
9588 LIBS = @LIBS@
9689 LIBTOOL = @LIBTOOL@
90 LIPO = @LIPO@
9791 LN_S = @LN_S@
9892 LTLIBOBJS = @LTLIBOBJS@
9993 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
10294 MAKEINFO = @MAKEINFO@
95 MKDIR_P = @MKDIR_P@
96 NM = @NM@
97 NMEDIT = @NMEDIT@
98 OBJDUMP = @OBJDUMP@
10399 OBJEXT = @OBJEXT@
100 OTOOL = @OTOOL@
101 OTOOL64 = @OTOOL64@
104102 PACKAGE = @PACKAGE@
105103 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
106104 PACKAGE_NAME = @PACKAGE_NAME@
109107 PACKAGE_VERSION = @PACKAGE_VERSION@
110108 PATH_SEPARATOR = @PATH_SEPARATOR@
111109 RANLIB = @RANLIB@
110 SED = @SED@
112111 SET_MAKE = @SET_MAKE@
113112 SHELL = @SHELL@
114113 STRIP = @STRIP@
115114 VERSION = @VERSION@
115 XMKMF = @XMKMF@
116116 X_CFLAGS = @X_CFLAGS@
117117 X_EXTRA_LIBS = @X_EXTRA_LIBS@
118118 X_LIBS = @X_LIBS@
119119 X_PRE_LIBS = @X_PRE_LIBS@
120 ac_ct_AR = @ac_ct_AR@
120 abs_builddir = @abs_builddir@
121 abs_srcdir = @abs_srcdir@
122 abs_top_builddir = @abs_top_builddir@
123 abs_top_srcdir = @abs_top_srcdir@
121124 ac_ct_CC = @ac_ct_CC@
122125 ac_ct_CXX = @ac_ct_CXX@
123 ac_ct_F77 = @ac_ct_F77@
124 ac_ct_RANLIB = @ac_ct_RANLIB@
125 ac_ct_STRIP = @ac_ct_STRIP@
126 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
127 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
128 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
129 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
126 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
130127 am__include = @am__include@
131128 am__leading_dot = @am__leading_dot@
132129 am__quote = @am__quote@
138135 build_cpu = @build_cpu@
139136 build_os = @build_os@
140137 build_vendor = @build_vendor@
138 builddir = @builddir@
141139 datadir = @datadir@
140 datarootdir = @datarootdir@
141 docdir = @docdir@
142 dvidir = @dvidir@
142143 exec_prefix = @exec_prefix@
143144 host = @host@
144145 host_alias = @host_alias@
145146 host_cpu = @host_cpu@
146147 host_os = @host_os@
147148 host_vendor = @host_vendor@
149 htmldir = @htmldir@
148150 includedir = @includedir@
149151 infodir = @infodir@
150152 install_sh = @install_sh@
151153 libdir = @libdir@
152154 libexecdir = @libexecdir@
155 localedir = @localedir@
153156 localstatedir = @localstatedir@
157 lt_ECHO = @lt_ECHO@
154158 mandir = @mandir@
155159 mkdir_p = @mkdir_p@
156160 oldincludedir = @oldincludedir@
161 pdfdir = @pdfdir@
157162 prefix = @prefix@
158163 program_transform_name = @program_transform_name@
164 psdir = @psdir@
159165 sbindir = @sbindir@
160166 sharedstatedir = @sharedstatedir@
167 srcdir = @srcdir@
161168 sysconfdir = @sysconfdir@
162169 target_alias = @target_alias@
170 top_build_prefix = @top_build_prefix@
171 top_builddir = @top_builddir@
172 top_srcdir = @top_srcdir@
163173 SHAREDIR = $(DESTDIR)/usr/local/share
164174 BASICDIR = basic
165175 BASICSRC = basic/Imakefile basic/README basic/ball_red.xpm basic/basic.c
176186 @for dep in $?; do \
177187 case '$(am__configure_deps)' in \
178188 *$$dep*) \
179 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
180 && exit 0; \
189 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
190 && { if test -f $@; then exit 0; else break; fi; }; \
181191 exit 1;; \
182192 esac; \
183193 done; \
207217
208218 clean-libtool:
209219 -rm -rf .libs _libs
210
211 distclean-libtool:
212 -rm -f libtool
213 uninstall-info-am:
214220 tags: TAGS
215221 TAGS:
216222
219225
220226
221227 distdir: $(DISTFILES)
222 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
223 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
224 list='$(DISTFILES)'; for file in $$list; do \
225 case $$file in \
226 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
227 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
228 esac; \
228 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
229 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
230 list='$(DISTFILES)'; \
231 dist_files=`for file in $$list; do echo $$file; done | \
232 sed -e "s|^$$srcdirstrip/||;t" \
233 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
234 case $$dist_files in \
235 */*) $(MKDIR_P) `echo "$$dist_files" | \
236 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
237 sort -u` ;; \
238 esac; \
239 for file in $$dist_files; do \
229240 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
230 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
231 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
232 dir="/$$dir"; \
233 $(mkdir_p) "$(distdir)$$dir"; \
234 else \
235 dir=''; \
236 fi; \
237241 if test -d $$d/$$file; then \
242 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
238243 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
239244 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
240245 fi; \
279284
280285 distclean: distclean-am
281286 -rm -f Makefile
282 distclean-am: clean-am distclean-generic distclean-libtool
287 distclean-am: clean-am distclean-generic
283288
284289 dvi: dvi-am
285290
293298
294299 install-data-am: install-data-local
295300
301 install-dvi: install-dvi-am
302
296303 install-exec-am:
297304
305 install-html: install-html-am
306
298307 install-info: install-info-am
299308
300309 install-man:
310
311 install-pdf: install-pdf-am
312
313 install-ps: install-ps-am
301314
302315 installcheck-am:
303316
317330
318331 ps-am:
319332
320 uninstall-am: uninstall-info-am
333 uninstall-am:
334
335 .MAKE: install-am install-strip
321336
322337 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
323338 distclean distclean-generic distclean-libtool distdir dvi \
324339 dvi-am html html-am info info-am install install-am \
325 install-data install-data-am install-data-local install-exec \
326 install-exec-am install-info install-info-am install-man \
340 install-data install-data-am install-data-local install-dvi \
341 install-dvi-am install-exec install-exec-am install-html \
342 install-html-am install-info install-info-am install-man \
343 install-pdf install-pdf-am install-ps install-ps-am \
327344 install-strip installcheck installcheck-am installdirs \
328345 maintainer-clean maintainer-clean-generic mostlyclean \
329346 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
330 uninstall uninstall-am uninstall-info-am
347 uninstall uninstall-am
331348
332349
333350 install-data-local:
0 # Makefile.in generated by automake 1.9.4 from Makefile.am.
0 # Makefile.in generated by automake 1.10.2 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1212 # PARTICULAR PURPOSE.
1313
1414 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
1715 VPATH = @srcdir@
1816 pkgdatadir = $(datadir)/@PACKAGE@
1917 pkglibdir = $(libdir)/@PACKAGE@
2018 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
2219 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
2420 install_sh_DATA = $(install_sh) -c -m 644
2521 install_sh_PROGRAM = $(install_sh) -c
2622 install_sh_SCRIPT = $(install_sh) -c
4642 DIST_SOURCES =
4743 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
4844 ACLOCAL = @ACLOCAL@
49 AMDEP_FALSE = @AMDEP_FALSE@
50 AMDEP_TRUE = @AMDEP_TRUE@
5145 AMTAR = @AMTAR@
5246 AR = @AR@
5347 AUTOCONF = @AUTOCONF@
5751 CC = @CC@
5852 CCDEPMODE = @CCDEPMODE@
5953 CFLAGS = @CFLAGS@
60 COND_EXAMPLES_FALSE = @COND_EXAMPLES_FALSE@
61 COND_EXAMPLES_TRUE = @COND_EXAMPLES_TRUE@
62 COND_FONT_FALSE = @COND_FONT_FALSE@
63 COND_FONT_TRUE = @COND_FONT_TRUE@
6454 CPP = @CPP@
6555 CPPFLAGS = @CPPFLAGS@
6656 CXX = @CXX@
7161 DEFS = @DEFS@
7262 DEPDIR = @DEPDIR@
7363 DFLAGS = @DFLAGS@
74 ECHO = @ECHO@
64 DSYMUTIL = @DSYMUTIL@
65 DUMPBIN = @DUMPBIN@
7566 ECHO_C = @ECHO_C@
7667 ECHO_N = @ECHO_N@
7768 ECHO_T = @ECHO_T@
7869 EGREP = @EGREP@
7970 EXEEXT = @EXEEXT@
80 F77 = @F77@
81 FFLAGS = @FFLAGS@
71 FGREP = @FGREP@
72 GREP = @GREP@
73 INSTALL = @INSTALL@
8274 INSTALL_DATA = @INSTALL_DATA@
8375 INSTALL_PROGRAM = @INSTALL_PROGRAM@
8476 INSTALL_SCRIPT = @INSTALL_SCRIPT@
8577 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
78 LD = @LD@
8679 LDFLAGS = @LDFLAGS@
8780 LIBOBJS = @LIBOBJS@
8881 LIBS = @LIBS@
8982 LIBTOOL = @LIBTOOL@
83 LIPO = @LIPO@
9084 LN_S = @LN_S@
9185 LTLIBOBJS = @LTLIBOBJS@
9286 MAINT = @MAINT@
93 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
94 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
9587 MAKEINFO = @MAKEINFO@
88 MKDIR_P = @MKDIR_P@
89 NM = @NM@
90 NMEDIT = @NMEDIT@
91 OBJDUMP = @OBJDUMP@
9692 OBJEXT = @OBJEXT@
93 OTOOL = @OTOOL@
94 OTOOL64 = @OTOOL64@
9795 PACKAGE = @PACKAGE@
9896 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
9997 PACKAGE_NAME = @PACKAGE_NAME@
102100 PACKAGE_VERSION = @PACKAGE_VERSION@
103101 PATH_SEPARATOR = @PATH_SEPARATOR@
104102 RANLIB = @RANLIB@
103 SED = @SED@
105104 SET_MAKE = @SET_MAKE@
106105 SHELL = @SHELL@
107106 STRIP = @STRIP@
108107 VERSION = @VERSION@
108 XMKMF = @XMKMF@
109109 X_CFLAGS = @X_CFLAGS@
110110 X_EXTRA_LIBS = @X_EXTRA_LIBS@
111111 X_LIBS = @X_LIBS@
112112 X_PRE_LIBS = @X_PRE_LIBS@
113 ac_ct_AR = @ac_ct_AR@
113 abs_builddir = @abs_builddir@
114 abs_srcdir = @abs_srcdir@
115 abs_top_builddir = @abs_top_builddir@
116 abs_top_srcdir = @abs_top_srcdir@
114117 ac_ct_CC = @ac_ct_CC@
115118 ac_ct_CXX = @ac_ct_CXX@
116 ac_ct_F77 = @ac_ct_F77@
117 ac_ct_RANLIB = @ac_ct_RANLIB@
118 ac_ct_STRIP = @ac_ct_STRIP@
119 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
120 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
121 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
122 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
119 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
123120 am__include = @am__include@
124121 am__leading_dot = @am__leading_dot@
125122 am__quote = @am__quote@
131128 build_cpu = @build_cpu@
132129 build_os = @build_os@
133130 build_vendor = @build_vendor@
131 builddir = @builddir@
134132 datadir = @datadir@
133 datarootdir = @datarootdir@
134 docdir = @docdir@
135 dvidir = @dvidir@
135136 exec_prefix = @exec_prefix@
136137 host = @host@
137138 host_alias = @host_alias@
138139 host_cpu = @host_cpu@
139140 host_os = @host_os@
140141 host_vendor = @host_vendor@
142 htmldir = @htmldir@
141143 includedir = @includedir@
142144 infodir = @infodir@
143145 install_sh = @install_sh@
144146 libdir = @libdir@
145147 libexecdir = @libexecdir@
148 localedir = @localedir@
146149 localstatedir = @localstatedir@
150 lt_ECHO = @lt_ECHO@
147151 mandir = @mandir@
148152 mkdir_p = @mkdir_p@
149153 oldincludedir = @oldincludedir@
154 pdfdir = @pdfdir@
150155 prefix = @prefix@
151156 program_transform_name = @program_transform_name@
157 psdir = @psdir@
152158 sbindir = @sbindir@
153159 sharedstatedir = @sharedstatedir@
160 srcdir = @srcdir@
154161 sysconfdir = @sysconfdir@
155162 target_alias = @target_alias@
163 top_build_prefix = @top_build_prefix@
164 top_builddir = @top_builddir@
165 top_srcdir = @top_srcdir@
156166 all: all-am
157167
158168 .SUFFIXES:
160170 @for dep in $?; do \
161171 case '$(am__configure_deps)' in \
162172 *$$dep*) \
163 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
164 && exit 0; \
173 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
174 && { if test -f $@; then exit 0; else break; fi; }; \
165175 exit 1;; \
166176 esac; \
167177 done; \
191201
192202 clean-libtool:
193203 -rm -rf .libs _libs
194
195 distclean-libtool:
196 -rm -f libtool
197 uninstall-info-am:
198204 tags: TAGS
199205 TAGS:
200206
203209
204210
205211 distdir: $(DISTFILES)
206 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
207 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
208 list='$(DISTFILES)'; for file in $$list; do \
209 case $$file in \
210 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
211 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
212 esac; \
212 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
213 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
214 list='$(DISTFILES)'; \
215 dist_files=`for file in $$list; do echo $$file; done | \
216 sed -e "s|^$$srcdirstrip/||;t" \
217 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
218 case $$dist_files in \
219 */*) $(MKDIR_P) `echo "$$dist_files" | \
220 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
221 sort -u` ;; \
222 esac; \
223 for file in $$dist_files; do \
213224 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
214 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
215 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
216 dir="/$$dir"; \
217 $(mkdir_p) "$(distdir)$$dir"; \
218 else \
219 dir=''; \
220 fi; \
221225 if test -d $$d/$$file; then \
226 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
222227 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
223228 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
224229 fi; \
263268
264269 distclean: distclean-am
265270 -rm -f Makefile
266 distclean-am: clean-am distclean-generic distclean-libtool
271 distclean-am: clean-am distclean-generic
267272
268273 dvi: dvi-am
269274
277282
278283 install-data-am:
279284
285 install-dvi: install-dvi-am
286
280287 install-exec-am:
281288
289 install-html: install-html-am
290
282291 install-info: install-info-am
283292
284293 install-man:
294
295 install-pdf: install-pdf-am
296
297 install-ps: install-ps-am
285298
286299 installcheck-am:
287300
301314
302315 ps-am:
303316
304 uninstall-am: uninstall-info-am
317 uninstall-am:
318
319 .MAKE: install-am install-strip
305320
306321 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
307322 distclean distclean-generic distclean-libtool distdir dvi \
308323 dvi-am html html-am info info-am install install-am \
309 install-data install-data-am install-exec install-exec-am \
310 install-info install-info-am install-man install-strip \
324 install-data install-data-am install-dvi install-dvi-am \
325 install-exec install-exec-am install-html install-html-am \
326 install-info install-info-am install-man install-pdf \
327 install-pdf-am install-ps install-ps-am install-strip \
311328 installcheck installcheck-am installdirs maintainer-clean \
312329 maintainer-clean-generic mostlyclean mostlyclean-generic \
313 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
314 uninstall-info-am
330 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
315331
316332
317333 # $Id$
00 #!/bin/sh
1 #
21 # install - install a program, script, or datafile
3 # This comes from X11R5 (mit/util/scripts/install.sh).
4 #
5 # Copyright 1991 by the Massachusetts Institute of Technology
6 #
7 # Permission to use, copy, modify, distribute, and sell this software and its
8 # documentation for any purpose is hereby granted without fee, provided that
9 # the above copyright notice appear in all copies and that both that
10 # copyright notice and this permission notice appear in supporting
11 # documentation, and that the name of M.I.T. not be used in advertising or
12 # publicity pertaining to distribution of the software without specific,
13 # written prior permission. M.I.T. makes no representations about the
14 # suitability of this software for any purpose. It is provided "as is"
15 # without express or implied warranty.
2
3 scriptversion=2006-12-25.00
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.
1635 #
1736 # Calling this script install-sh is preferred over install.sh, to prevent
1837 # `make' implicit rules from creating a file called install from it
1938 # when there is no Makefile.
2039 #
2140 # This script is compatible with the BSD install script, but was written
22 # from scratch. It can only install one file at a time, a restriction
23 # shared with many OS's install programs.
24
41 # from scratch.
42
43 nl='
44 '
45 IFS=" "" $nl"
2546
2647 # set DOITPROG to echo to test this script
2748
2849 # Don't use :- since 4.3BSD and earlier shells don't like it.
29 doit="${DOITPROG-}"
30
31
32 # put in absolute paths if you don't have them in your path; or use env. vars.
33
34 mvprog="${MVPROG-mv}"
35 cpprog="${CPPROG-cp}"
36 chmodprog="${CHMODPROG-chmod}"
37 chownprog="${CHOWNPROG-chown}"
38 chgrpprog="${CHGRPPROG-chgrp}"
39 stripprog="${STRIPPROG-strip}"
40 rmprog="${RMPROG-rm}"
41 mkdirprog="${MKDIRPROG-mkdir}"
42
43 transformbasename=""
44 transform_arg=""
45 instcmd="$mvprog"
46 chmodcmd="$chmodprog 0755"
47 chowncmd=""
48 chgrpcmd=""
49 stripcmd=""
50 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
56
57 # Put in absolute file names if you don't have them in your path;
58 # or use environment vars.
59
60 chgrpprog=${CHGRPPROG-chgrp}
61 chmodprog=${CHMODPROG-chmod}
62 chownprog=${CHOWNPROG-chown}
63 cmpprog=${CMPPROG-cmp}
64 cpprog=${CPPROG-cp}
65 mkdirprog=${MKDIRPROG-mkdir}
66 mvprog=${MVPROG-mv}
67 rmprog=${RMPROG-rm}
68 stripprog=${STRIPPROG-strip}
69
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
81 posix_mkdir=
82
83 # Desired mode of installed file.
84 mode=0755
85
86 chgrpcmd=
87 chmodcmd=$chmodprog
88 chowncmd=
89 mvcmd=$mvprog
5090 rmcmd="$rmprog -f"
51 mvcmd="$mvprog"
52 src=""
53 dst=""
54 dir_arg=""
55
56 while [ x"$1" != x ]; do
57 case $1 in
58 -c) instcmd="$cpprog"
59 shift
60 continue;;
61
62 -d) dir_arg=true
63 shift
64 continue;;
65
66 -m) chmodcmd="$chmodprog $2"
67 shift
68 shift
69 continue;;
70
71 -o) chowncmd="$chownprog $2"
72 shift
73 shift
74 continue;;
75
76 -g) chgrpcmd="$chgrpprog $2"
77 shift
78 shift
79 continue;;
80
81 -s) stripcmd="$stripprog"
82 shift
83 continue;;
84
85 -t=*) transformarg=`echo $1 | sed 's/-t=//'`
86 shift
87 continue;;
88
89 -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
90 shift
91 continue;;
92
93 *) if [ x"$src" = x ]
91 stripcmd=
92
93 src=
94 dst=
95 dir_arg=
96 dst_arg=
97
98 copy_on_change=false
99 no_target_directory=
100
101 usage="\
102 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
103 or: $0 [OPTION]... SRCFILES... DIRECTORY
104 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
105 or: $0 [OPTION]... -d DIRECTORIES...
106
107 In the 1st form, copy SRCFILE to DSTFILE.
108 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
109 In the 4th, create DIRECTORIES.
110
111 Options:
112 --help display this help and exit.
113 --version display version info and exit.
114
115 -c (ignored)
116 -C install only if different (preserve the last data modification time)
117 -d create directories instead of installing files.
118 -g GROUP $chgrpprog installed files to GROUP.
119 -m MODE $chmodprog installed files to MODE.
120 -o USER $chownprog installed files to USER.
121 -s $stripprog installed files.
122 -t DIRECTORY install into DIRECTORY.
123 -T report an error if DSTFILE is a directory.
124
125 Environment variables override the default commands:
126 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
127 RMPROG STRIPPROG
128 "
129
130 while test $# -ne 0; do
131 case $1 in
132 -c) ;;
133
134 -C) copy_on_change=true;;
135
136 -d) dir_arg=true;;
137
138 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
140
141 --help) echo "$usage"; exit $?;;
142
143 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
151
152 -o) chowncmd="$chownprog $2"
153 shift;;
154
155 -s) stripcmd=$stripprog;;
156
157 -t) dst_arg=$2
158 shift;;
159
160 -T) no_target_directory=true;;
161
162 --version) echo "$0 $scriptversion"; exit $?;;
163
164 --) shift
165 break;;
166
167 -*) echo "$0: invalid option: $1" >&2
168 exit 1;;
169
170 *) break;;
171 esac
172 shift
173 done
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 done
189 fi
190
191 if test $# -eq 0; then
192 if test -z "$dir_arg"; then
193 echo "$0: no input file specified." >&2
194 exit 1
195 fi
196 # It's OK to call `install-sh -d' without argument.
197 # This can happen when creating conditional directories.
198 exit 0
199 fi
200
201 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
203
204 # Set umask so as not to create temps with too-generous modes.
205 # However, 'strip' requires both read and write access to temps.
206 case $mode in
207 # Optimize common cases.
208 *644) cp_umask=133;;
209 *755) cp_umask=22;;
210
211 *[0-7])
212 if test -z "$stripcmd"; then
213 u_plus_rw=
214 else
215 u_plus_rw='% 200'
216 fi
217 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
218 *)
219 if test -z "$stripcmd"; then
220 u_plus_rw=
221 else
222 u_plus_rw=,u+rw
223 fi
224 cp_umask=$mode$u_plus_rw;;
225 esac
226 fi
227
228 for src
229 do
230 # Protect names starting with `-'.
231 case $src in
232 -*) src=./$src;;
233 esac
234
235 if test -n "$dir_arg"; then
236 dst=$src
237 dstdir=$dst
238 test -d "$dstdir"
239 dstdir_status=$?
240 else
241
242 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
243 # might cause directories to be created, which would be especially bad
244 # if $src (and thus $dsttmp) contains '*'.
245 if test ! -f "$src" && test ! -d "$src"; then
246 echo "$0: $src does not exist." >&2
247 exit 1
248 fi
249
250 if test -z "$dst_arg"; then
251 echo "$0: no destination specified." >&2
252 exit 1
253 fi
254
255 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260
261 # If destination is a directory, append the input filename; won't work
262 # if double slashes aren't ignored.
263 if test -d "$dst"; then
264 if test -n "$no_target_directory"; then
265 echo "$0: $dst_arg: Is a directory" >&2
266 exit 1
267 fi
268 dstdir=$dst
269 dst=$dstdir/`basename "$src"`
270 dstdir_status=0
271 else
272 # Prefer dirname, but fall back on a substitute if dirname fails.
273 dstdir=`
274 (dirname "$dst") 2>/dev/null ||
275 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
276 X"$dst" : 'X\(//\)[^/]' \| \
277 X"$dst" : 'X\(//\)$' \| \
278 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
279 echo X"$dst" |
280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
281 s//\1/
282 q
283 }
284 /^X\(\/\/\)[^/].*/{
285 s//\1/
286 q
287 }
288 /^X\(\/\/\)$/{
289 s//\1/
290 q
291 }
292 /^X\(\/\).*/{
293 s//\1/
294 q
295 }
296 s/.*/./; q'
297 `
298
299 test -d "$dstdir"
300 dstdir_status=$?
301 fi
302 fi
303
304 obsolete_mkdir_used=false
305
306 if test $dstdir_status != 0; then
307 case $posix_mkdir in
308 '')
309 # Create intermediate dirs using mode 755 as modified by the umask.
310 # This is like FreeBSD 'install' as of 1997-10-28.
311 umask=`umask`
312 case $stripcmd.$umask in
313 # Optimize common cases.
314 *[2367][2367]) mkdir_umask=$umask;;
315 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
316
317 *[0-7])
318 mkdir_umask=`expr $umask + 22 \
319 - $umask % 100 % 40 + $umask % 20 \
320 - $umask % 10 % 4 + $umask % 2
321 `;;
322 *) mkdir_umask=$umask,go-w;;
323 esac
324
325 # With -d, create the new directory with the user-specified mode.
326 # Otherwise, rely on $mkdir_umask.
327 if test -n "$dir_arg"; then
328 mkdir_mode=-m$mode
329 else
330 mkdir_mode=
331 fi
332
333 posix_mkdir=false
334 case $umask in
335 *[123567][0-7][0-7])
336 # POSIX mkdir -p sets u+wx bits regardless of umask, which
337 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
338 ;;
339 *)
340 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
341 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
342
343 if (umask $mkdir_umask &&
344 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
94345 then
95 src=$1
346 if test -z "$dir_arg" || {
347 # Check for POSIX incompatibilities with -m.
348 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
349 # other-writeable bit of parent directory when it shouldn't.
350 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
351 ls_ld_tmpdir=`ls -ld "$tmpdir"`
352 case $ls_ld_tmpdir in
353 d????-?r-*) different_mode=700;;
354 d????-?--*) different_mode=755;;
355 *) false;;
356 esac &&
357 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
358 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
359 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
360 }
361 }
362 then posix_mkdir=:
363 fi
364 rmdir "$tmpdir/d" "$tmpdir"
96365 else
97 # this colon is to work around a 386BSD /bin/sh bug
98 :
99 dst=$1
366 # Remove any dirs left behind by ancient mkdir implementations.
367 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
100368 fi
101 shift
102 continue;;
369 trap '' 0;;
370 esac;;
103371 esac
372
373 if
374 $posix_mkdir && (
375 umask $mkdir_umask &&
376 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
377 )
378 then :
379 else
380
381 # The umask is ridiculous, or mkdir does not conform to POSIX,
382 # or it failed possibly due to a race condition. Create the
383 # directory the slow way, step by step, checking for races as we go.
384
385 case $dstdir in
386 /*) prefix='/';;
387 -*) prefix='./';;
388 *) prefix='';;
389 esac
390
391 eval "$initialize_posix_glob"
392
393 oIFS=$IFS
394 IFS=/
395 $posix_glob set -f
396 set fnord $dstdir
397 shift
398 $posix_glob set +f
399 IFS=$oIFS
400
401 prefixes=
402
403 for d
404 do
405 test -z "$d" && continue
406
407 prefix=$prefix$d
408 if test -d "$prefix"; then
409 prefixes=
410 else
411 if $posix_mkdir; then
412 (umask=$mkdir_umask &&
413 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
414 # Don't fail if two instances are running concurrently.
415 test -d "$prefix" || exit 1
416 else
417 case $prefix in
418 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) qprefix=$prefix;;
420 esac
421 prefixes="$prefixes '$qprefix'"
422 fi
423 fi
424 prefix=$prefix/
425 done
426
427 if test -n "$prefixes"; then
428 # Don't fail if two instances are running concurrently.
429 (umask $mkdir_umask &&
430 eval "\$doit_exec \$mkdirprog $prefixes") ||
431 test -d "$dstdir" || exit 1
432 obsolete_mkdir_used=true
433 fi
434 fi
435 fi
436
437 if test -n "$dir_arg"; then
438 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
439 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
440 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
441 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
442 else
443
444 # Make a couple of temp file names in the proper directory.
445 dsttmp=$dstdir/_inst.$$_
446 rmtmp=$dstdir/_rm.$$_
447
448 # Trap to clean up those temp files at exit.
449 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
450
451 # Copy the file name to the temp name.
452 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
453
454 # and set any options; do chmod last to preserve setuid bits.
455 #
456 # If any of these fail, we abort the whole thing. If we want to
457 # ignore errors from any of these, just make sure not to ignore
458 # errors from the above "$doit $cpprog $src $dsttmp" command.
459 #
460 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
461 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
462 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
463 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
464
465 # If -C, don't bother to copy if it wouldn't change the file.
466 if $copy_on_change &&
467 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
468 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
469
470 eval "$initialize_posix_glob" &&
471 $posix_glob set -f &&
472 set X $old && old=:$2:$4:$5:$6 &&
473 set X $new && new=:$2:$4:$5:$6 &&
474 $posix_glob set +f &&
475
476 test "$old" = "$new" &&
477 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
478 then
479 rm -f "$dsttmp"
480 else
481 # Rename the file to the real destination.
482 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
483
484 # The rename failed, perhaps because mv can't rename something else
485 # to itself, or perhaps because mv is so ancient that it does not
486 # support -f.
487 {
488 # Now remove or move aside any old file at destination location.
489 # We try this two ways since rm can't unlink itself on some
490 # systems and the destination file might be busy for other
491 # reasons. In this case, the final cleanup might fail but the new
492 # file should still install successfully.
493 {
494 test ! -f "$dst" ||
495 $doit $rmcmd -f "$dst" 2>/dev/null ||
496 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
497 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
498 } ||
499 { echo "$0: cannot unlink or rename $dst" >&2
500 (exit 1); exit 1
501 }
502 } &&
503
504 # Now rename the file to the real destination.
505 $doit $mvcmd "$dsttmp" "$dst"
506 }
507 fi || exit 1
508
509 trap '' 0
510 fi
104511 done
105512
106 if [ x"$src" = x ]
107 then
108 echo "install: no input file specified"
109 exit 1
110 else
111 true
112 fi
113
114 if [ x"$dir_arg" != x ]; then
115 dst=$src
116 src=""
117
118 if [ -d $dst ]; then
119 instcmd=:
120 chmodcmd=""
121 else
122 instcmd=mkdir
123 fi
124 else
125
126 # Waiting for this to be detected by the "$instcmd $src $dsttmp" command
127 # might cause directories to be created, which would be especially bad
128 # if $src (and thus $dsttmp) contains '*'.
129
130 if [ -f $src -o -d $src ]
131 then
132 true
133 else
134 echo "install: $src does not exist"
135 exit 1
136 fi
137
138 if [ x"$dst" = x ]
139 then
140 echo "install: no destination specified"
141 exit 1
142 else
143 true
144 fi
145
146 # If destination is a directory, append the input filename; if your system
147 # does not like double slashes in filenames, you may need to add some logic
148
149 if [ -d $dst ]
150 then
151 dst="$dst"/`basename $src`
152 else
153 true
154 fi
155 fi
156
157 ## this sed command emulates the dirname command
158 dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
159
160 # Make sure that the destination directory exists.
161 # this part is taken from Noah Friedman's mkinstalldirs script
162
163 # Skip lots of stat calls in the usual case.
164 if [ ! -d "$dstdir" ]; then
165 defaultIFS='
166 '
167 IFS="${IFS-${defaultIFS}}"
168
169 oIFS="${IFS}"
170 # Some sh's can't handle IFS=/ for some reason.
171 IFS='%'
172 set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
173 IFS="${oIFS}"
174
175 pathcomp=''
176
177 while [ $# -ne 0 ] ; do
178 pathcomp="${pathcomp}${1}"
179 shift
180
181 if [ ! -d "${pathcomp}" ] ;
182 then
183 $mkdirprog "${pathcomp}"
184 else
185 true
186 fi
187
188 pathcomp="${pathcomp}/"
189 done
190 fi
191
192 if [ x"$dir_arg" != x ]
193 then
194 $doit $instcmd $dst &&
195
196 if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
197 if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
198 if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
199 if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
200 else
201
202 # If we're going to rename the final executable, determine the name now.
203
204 if [ x"$transformarg" = x ]
205 then
206 dstfile=`basename $dst`
207 else
208 dstfile=`basename $dst $transformbasename |
209 sed $transformarg`$transformbasename
210 fi
211
212 # don't allow the sed command to completely eliminate the filename
213
214 if [ x"$dstfile" = x ]
215 then
216 dstfile=`basename $dst`
217 else
218 true
219 fi
220
221 # Make a temp file name in the proper directory.
222
223 dsttmp=$dstdir/#inst.$$#
224
225 # Move or copy the file name to the temp name
226
227 $doit $instcmd $src $dsttmp &&
228
229 trap "rm -f ${dsttmp}" 0 &&
230
231 # and set any options; do chmod last to preserve setuid bits
232
233 # If any of these fail, we abort the whole thing. If we want to
234 # ignore errors from any of these, just make sure not to ignore
235 # errors from the above "$doit $instcmd $src $dsttmp" command.
236
237 if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
238 if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
239 if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
240 if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
241
242 # Now rename the file to the real destination.
243
244 $doit $rmcmd -f $dstdir/$dstfile &&
245 $doit $mvcmd $dsttmp $dstdir/$dstfile
246
247 fi &&
248
249
250 exit 0
513 # Local variables:
514 # eval: (add-hook 'write-file-hooks 'time-stamp)
515 # time-stamp-start: "scriptversion="
516 # time-stamp-format: "%:y-%02m-%02d.%02H"
517 # time-stamp-end: "$"
518 # End:
+5608
-3621
ltmain.sh less more
0 # ltmain.sh - Provide generalized library-building support services.
1 # NOTE: Changing this file will not affect anything until you rerun configure.
2 #
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
4 # Free Software Foundation, Inc.
5 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6 #
7 # This program is free software; you can redistribute it and/or modify
0 # Generated from ltmain.m4sh.
1
2 # ltmain.sh (GNU libtool) 2.2.6
3 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
6 # This is free software; see the source for copying conditions. There is NO
7 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8
9 # GNU Libtool is free software; you can redistribute it and/or modify
810 # it under the terms of the GNU General Public License as published by
911 # the Free Software Foundation; either version 2 of the License, or
1012 # (at your option) any later version.
1113 #
12 # This program is distributed in the hope that it will be useful, but
14 # As a special exception to the GNU General Public License,
15 # if you distribute this file as part of a program or library that
16 # is built using GNU Libtool, you may include this file under the
17 # same distribution terms that you use for the rest of that program.
18 #
19 # GNU Libtool is distributed in the hope that it will be useful, but
1320 # WITHOUT ANY WARRANTY; without even the implied warranty of
1421 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1522 # General Public License for more details.
1623 #
1724 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
2031 #
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 basename="s,^.*/,,g"
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --tag=TAG use configuration variables from tag TAG
42 # -v, --verbose print informational messages (default)
43 # --version print version information
44 # -h, --help print short or long help message
45 #
46 # MODE must be one of the following:
47 #
48 # clean remove files from the build directory
49 # compile compile a source file into a libtool object
50 # execute automatically set library path, then run a program
51 # finish complete the installation of libtool libraries
52 # install install libraries or executables
53 # link create a library or an executable
54 # uninstall remove libraries from an installed directory
55 #
56 # MODE-ARGS vary depending on the MODE.
57 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
58 #
59 # When reporting a bug, please describe a test case to reproduce it and
60 # include the following information:
61 #
62 # host-triplet: $host
63 # shell: $SHELL
64 # compiler: $LTCC
65 # compiler flags: $LTCFLAGS
66 # linker: $LD (gnu? $with_gnu_ld)
67 # $progname: (GNU libtool) 2.2.6 Debian-2.2.6a-4
68 # automake: $automake_version
69 # autoconf: $autoconf_version
70 #
71 # Report bugs to <bug-libtool@gnu.org>.
72
73 PROGRAM=ltmain.sh
74 PACKAGE=libtool
75 VERSION="2.2.6 Debian-2.2.6a-4"
76 TIMESTAMP=""
77 package_revision=1.3012
78
79 # Be Bourne compatible
80 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
81 emulate sh
82 NULLCMD=:
83 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
84 # is contrary to our usage. Disable this feature.
85 alias -g '${1+"$@"}'='"$@"'
86 setopt NO_GLOB_SUBST
87 else
88 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
89 fi
90 BIN_SH=xpg4; export BIN_SH # for Tru64
91 DUALCASE=1; export DUALCASE # for MKS sh
92
93 # NLS nuisances: We save the old values to restore during execute mode.
94 # Only set LANG and LC_ALL to C if already set.
95 # These must not be set unconditionally because not all systems understand
96 # e.g. LANG=C (notably SCO).
97 lt_user_locale=
98 lt_safe_locale=
99 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
100 do
101 eval "if test \"\${$lt_var+set}\" = set; then
102 save_$lt_var=\$$lt_var
103 $lt_var=C
104 export $lt_var
105 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
106 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
107 fi"
108 done
109
110 $lt_unset CDPATH
111
112
113
114
115
116 : ${CP="cp -f"}
117 : ${ECHO="echo"}
118 : ${EGREP="/bin/grep -E"}
119 : ${FGREP="/bin/grep -F"}
120 : ${GREP="/bin/grep"}
121 : ${LN_S="ln -s"}
122 : ${MAKE="make"}
123 : ${MKDIR="mkdir"}
124 : ${MV="mv -f"}
125 : ${RM="rm -f"}
126 : ${SED="/bin/sed"}
127 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
128 : ${Xsed="$SED -e 1s/^X//"}
129
130 # Global variables:
131 EXIT_SUCCESS=0
132 EXIT_FAILURE=1
133 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
134 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
135
136 exit_status=$EXIT_SUCCESS
137
138 # Make sure IFS has a sensible default
139 lt_nl='
140 '
141 IFS=" $lt_nl"
142
143 dirname="s,/[^/]*$,,"
144 basename="s,^.*/,,"
145
146 # func_dirname_and_basename file append nondir_replacement
147 # perform func_basename and func_dirname in a single function
148 # call:
149 # dirname: Compute the dirname of FILE. If nonempty,
150 # add APPEND to the result, otherwise set result
151 # to NONDIR_REPLACEMENT.
152 # value returned in "$func_dirname_result"
153 # basename: Compute filename of FILE.
154 # value retuned in "$func_basename_result"
155 # Implementation must be kept synchronized with func_dirname
156 # and func_basename. For efficiency, we do not delegate to
157 # those functions but instead duplicate the functionality here.
158 func_dirname_and_basename ()
159 {
160 # Extract subdirectory from the argument.
161 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
162 if test "X$func_dirname_result" = "X${1}"; then
163 func_dirname_result="${3}"
164 else
165 func_dirname_result="$func_dirname_result${2}"
166 fi
167 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
168 }
169
170 # Generated shell functions inserted here.
27171
28172 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
29173 # is ksh but when the shell is invoked as "sh" and the current value of
33177 progpath="$0"
34178
35179 # The name of this program:
36 progname=`echo "$progpath" | $SED $basename`
37 modename="$progname"
38
39 # Global variables:
40 EXIT_SUCCESS=0
41 EXIT_FAILURE=1
42
43 PROGRAM=ltmain.sh
44 PACKAGE=libtool
45 VERSION=1.5.6
46 TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 220 $"
47
48
49 # Check that we have a working $echo.
180 # In the unlikely event $progname began with a '-', it would play havoc with
181 # func_echo (imagine progname=-n), so we prepend ./ in that case:
182 func_dirname_and_basename "$progpath"
183 progname=$func_basename_result
184 case $progname in
185 -*) progname=./$progname ;;
186 esac
187
188 # Make sure we have an absolute path for reexecution:
189 case $progpath in
190 [\\/]*|[A-Za-z]:\\*) ;;
191 *[\\/]*)
192 progdir=$func_dirname_result
193 progdir=`cd "$progdir" && pwd`
194 progpath="$progdir/$progname"
195 ;;
196 *)
197 save_IFS="$IFS"
198 IFS=:
199 for progdir in $PATH; do
200 IFS="$save_IFS"
201 test -x "$progdir/$progname" && break
202 done
203 IFS="$save_IFS"
204 test -n "$progdir" || progdir=`pwd`
205 progpath="$progdir/$progname"
206 ;;
207 esac
208
209 # Sed substitution that helps us do robust quoting. It backslashifies
210 # metacharacters that are still active within double-quoted strings.
211 Xsed="${SED}"' -e 1s/^X//'
212 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
213
214 # Same as above, but do not quote variable references.
215 double_quote_subst='s/\(["`\\]\)/\\\1/g'
216
217 # Re-`\' parameter expansions in output of double_quote_subst that were
218 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
219 # in input to double_quote_subst, that '$' was protected from expansion.
220 # Since each input `\' is now two `\'s, look for any number of runs of
221 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
222 bs='\\'
223 bs2='\\\\'
224 bs4='\\\\\\\\'
225 dollar='\$'
226 sed_double_backslash="\
227 s/$bs4/&\\
228 /g
229 s/^$bs2$dollar/$bs&/
230 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
231 s/\n//g"
232
233 # Standard options:
234 opt_dry_run=false
235 opt_help=false
236 opt_quiet=false
237 opt_verbose=false
238 opt_warning=:
239
240 # func_echo arg...
241 # Echo program name prefixed message, along with the current mode
242 # name if it has been set yet.
243 func_echo ()
244 {
245 $ECHO "$progname${mode+: }$mode: $*"
246 }
247
248 # func_verbose arg...
249 # Echo program name prefixed message in verbose mode only.
250 func_verbose ()
251 {
252 $opt_verbose && func_echo ${1+"$@"}
253
254 # A bug in bash halts the script if the last line of a function
255 # fails when set -e is in force, so we need another command to
256 # work around that:
257 :
258 }
259
260 # func_error arg...
261 # Echo program name prefixed message to standard error.
262 func_error ()
263 {
264 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
265 }
266
267 # func_warning arg...
268 # Echo program name prefixed warning message to standard error.
269 func_warning ()
270 {
271 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
272
273 # bash bug again:
274 :
275 }
276
277 # func_fatal_error arg...
278 # Echo program name prefixed message to standard error, and exit.
279 func_fatal_error ()
280 {
281 func_error ${1+"$@"}
282 exit $EXIT_FAILURE
283 }
284
285 # func_fatal_help arg...
286 # Echo program name prefixed message to standard error, followed by
287 # a help hint, and exit.
288 func_fatal_help ()
289 {
290 func_error ${1+"$@"}
291 func_fatal_error "$help"
292 }
293 help="Try \`$progname --help' for more information." ## default
294
295
296 # func_grep expression filename
297 # Check whether EXPRESSION matches any line of FILENAME, without output.
298 func_grep ()
299 {
300 $GREP "$1" "$2" >/dev/null 2>&1
301 }
302
303
304 # func_mkdir_p directory-path
305 # Make sure the entire path to DIRECTORY-PATH is available.
306 func_mkdir_p ()
307 {
308 my_directory_path="$1"
309 my_dir_list=
310
311 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
312
313 # Protect directory names starting with `-'
314 case $my_directory_path in
315 -*) my_directory_path="./$my_directory_path" ;;
316 esac
317
318 # While some portion of DIR does not yet exist...
319 while test ! -d "$my_directory_path"; do
320 # ...make a list in topmost first order. Use a colon delimited
321 # list incase some portion of path contains whitespace.
322 my_dir_list="$my_directory_path:$my_dir_list"
323
324 # If the last portion added has no slash in it, the list is done
325 case $my_directory_path in */*) ;; *) break ;; esac
326
327 # ...otherwise throw away the child directory and loop
328 my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
329 done
330 my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
331
332 save_mkdir_p_IFS="$IFS"; IFS=':'
333 for my_dir in $my_dir_list; do
334 IFS="$save_mkdir_p_IFS"
335 # mkdir can fail with a `File exist' error if two processes
336 # try to create one of the directories concurrently. Don't
337 # stop in that case!
338 $MKDIR "$my_dir" 2>/dev/null || :
339 done
340 IFS="$save_mkdir_p_IFS"
341
342 # Bail out if we (or some other process) failed to create a directory.
343 test -d "$my_directory_path" || \
344 func_fatal_error "Failed to create \`$1'"
345 fi
346 }
347
348
349 # func_mktempdir [string]
350 # Make a temporary directory that won't clash with other running
351 # libtool processes, and avoids race conditions if possible. If
352 # given, STRING is the basename for that directory.
353 func_mktempdir ()
354 {
355 my_template="${TMPDIR-/tmp}/${1-$progname}"
356
357 if test "$opt_dry_run" = ":"; then
358 # Return a directory name, but don't create it in dry-run mode
359 my_tmpdir="${my_template}-$$"
360 else
361
362 # If mktemp works, use that first and foremost
363 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
364
365 if test ! -d "$my_tmpdir"; then
366 # Failing that, at least try and use $RANDOM to avoid a race
367 my_tmpdir="${my_template}-${RANDOM-0}$$"
368
369 save_mktempdir_umask=`umask`
370 umask 0077
371 $MKDIR "$my_tmpdir"
372 umask $save_mktempdir_umask
373 fi
374
375 # If we're not in dry-run mode, bomb out on failure
376 test -d "$my_tmpdir" || \
377 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
378 fi
379
380 $ECHO "X$my_tmpdir" | $Xsed
381 }
382
383
384 # func_quote_for_eval arg
385 # Aesthetically quote ARG to be evaled later.
386 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
387 # is double-quoted, suitable for a subsequent eval, whereas
388 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
389 # which are still active within double quotes backslashified.
390 func_quote_for_eval ()
391 {
392 case $1 in
393 *[\\\`\"\$]*)
394 func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
395 *)
396 func_quote_for_eval_unquoted_result="$1" ;;
397 esac
398
399 case $func_quote_for_eval_unquoted_result in
400 # Double-quote args containing shell metacharacters to delay
401 # word splitting, command substitution and and variable
402 # expansion for a subsequent eval.
403 # Many Bourne shells cannot handle close brackets correctly
404 # in scan sets, so we specify it separately.
405 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
406 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
407 ;;
408 *)
409 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
410 esac
411 }
412
413
414 # func_quote_for_expand arg
415 # Aesthetically quote ARG to be evaled later; same as above,
416 # but do not quote variable references.
417 func_quote_for_expand ()
418 {
419 case $1 in
420 *[\\\`\"]*)
421 my_arg=`$ECHO "X$1" | $Xsed \
422 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
423 *)
424 my_arg="$1" ;;
425 esac
426
427 case $my_arg in
428 # Double-quote args containing shell metacharacters to delay
429 # word splitting and command substitution for a subsequent eval.
430 # Many Bourne shells cannot handle close brackets correctly
431 # in scan sets, so we specify it separately.
432 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
433 my_arg="\"$my_arg\""
434 ;;
435 esac
436
437 func_quote_for_expand_result="$my_arg"
438 }
439
440
441 # func_show_eval cmd [fail_exp]
442 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
443 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
444 # is given, then evaluate it.
445 func_show_eval ()
446 {
447 my_cmd="$1"
448 my_fail_exp="${2-:}"
449
450 ${opt_silent-false} || {
451 func_quote_for_expand "$my_cmd"
452 eval "func_echo $func_quote_for_expand_result"
453 }
454
455 if ${opt_dry_run-false}; then :; else
456 eval "$my_cmd"
457 my_status=$?
458 if test "$my_status" -eq 0; then :; else
459 eval "(exit $my_status); $my_fail_exp"
460 fi
461 fi
462 }
463
464
465 # func_show_eval_locale cmd [fail_exp]
466 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
467 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
468 # is given, then evaluate it. Use the saved locale for evaluation.
469 func_show_eval_locale ()
470 {
471 my_cmd="$1"
472 my_fail_exp="${2-:}"
473
474 ${opt_silent-false} || {
475 func_quote_for_expand "$my_cmd"
476 eval "func_echo $func_quote_for_expand_result"
477 }
478
479 if ${opt_dry_run-false}; then :; else
480 eval "$lt_user_locale
481 $my_cmd"
482 my_status=$?
483 eval "$lt_safe_locale"
484 if test "$my_status" -eq 0; then :; else
485 eval "(exit $my_status); $my_fail_exp"
486 fi
487 fi
488 }
489
490
491
492
493
494 # func_version
495 # Echo version message to standard output and exit.
496 func_version ()
497 {
498 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
499 s/^# //
500 s/^# *$//
501 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
502 p
503 }' < "$progpath"
504 exit $?
505 }
506
507 # func_usage
508 # Echo short help message to standard output and exit.
509 func_usage ()
510 {
511 $SED -n '/^# Usage:/,/# -h/ {
512 s/^# //
513 s/^# *$//
514 s/\$progname/'$progname'/
515 p
516 }' < "$progpath"
517 $ECHO
518 $ECHO "run \`$progname --help | more' for full usage"
519 exit $?
520 }
521
522 # func_help
523 # Echo long help message to standard output and exit.
524 func_help ()
525 {
526 $SED -n '/^# Usage:/,/# Report bugs to/ {
527 s/^# //
528 s/^# *$//
529 s*\$progname*'$progname'*
530 s*\$host*'"$host"'*
531 s*\$SHELL*'"$SHELL"'*
532 s*\$LTCC*'"$LTCC"'*
533 s*\$LTCFLAGS*'"$LTCFLAGS"'*
534 s*\$LD*'"$LD"'*
535 s/\$with_gnu_ld/'"$with_gnu_ld"'/
536 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
537 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
538 p
539 }' < "$progpath"
540 exit $?
541 }
542
543 # func_missing_arg argname
544 # Echo program name prefixed message to standard error and set global
545 # exit_cmd.
546 func_missing_arg ()
547 {
548 func_error "missing argument for $1"
549 exit_cmd=exit
550 }
551
552 exit_cmd=:
553
554
555
556
557
558 # Check that we have a working $ECHO.
50559 if test "X$1" = X--no-reexec; then
51560 # Discard the --no-reexec flag, and continue.
52561 shift
53562 elif test "X$1" = X--fallback-echo; then
54563 # Avoid inline document here, it may be left over
55564 :
56 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
57 # Yippee, $echo works!
565 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
566 # Yippee, $ECHO works!
58567 :
59568 else
60 # Restart under the correct shell, and then maybe $echo will work.
569 # Restart under the correct shell, and then maybe $ECHO will work.
61570 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
62571 fi
63572
70579 exit $EXIT_SUCCESS
71580 fi
72581
73 default_mode=
74 help="Try \`$progname --help' for more information."
75582 magic="%%%MAGIC variable%%%"
76 mkdir="mkdir"
77 mv="mv -f"
78 rm="rm -f"
79
80 # Sed substitution that helps us do robust quoting. It backslashifies
81 # metacharacters that are still active within double-quoted strings.
82 Xsed="${SED}"' -e 1s/^X//'
83 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
84 # test EBCDIC or ASCII
85 case `echo A|tr A '\301'` in
86 A) # EBCDIC based system
87 SP2NL="tr '\100' '\n'"
88 NL2SP="tr '\r\n' '\100\100'"
89 ;;
90 *) # Assume ASCII based system
91 SP2NL="tr '\040' '\012'"
92 NL2SP="tr '\015\012' '\040\040'"
93 ;;
94 esac
95
96 # NLS nuisances.
97 # Only set LANG and LC_ALL to C if already set.
98 # These must not be set unconditionally because not all systems understand
99 # e.g. LANG=C (notably SCO).
100 # We save the old values to restore during execute mode.
101 if test "${LC_ALL+set}" = set; then
102 save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
103 fi
104 if test "${LANG+set}" = set; then
105 save_LANG="$LANG"; LANG=C; export LANG
106 fi
107
108 # Make sure IFS has a sensible default
109 : ${IFS="
110 "}
111
112 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
113 $echo "$modename: not configured to build any kind of library" 1>&2
114 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
115 exit $EXIT_FAILURE
116 fi
583 magic_exe="%%%MAGIC EXE variable%%%"
117584
118585 # Global variables.
119 mode=$default_mode
586 # $mode is unset
120587 nonopt=
121 prev=
122 prevopt=
123 run=
124 show="$echo"
125 show_help=
126588 execute_dlfiles=
589 preserve_args=
127590 lo2o="s/\\.lo\$/.${objext}/"
128591 o2lo="s/\\.${objext}\$/.lo/"
129
130 #####################################
131 # Shell function definitions:
132 # This seems to be the best place for them
592 extracted_archives=
593 extracted_serial=0
594
595 opt_dry_run=false
596 opt_duplicate_deps=false
597 opt_silent=false
598 opt_debug=:
599
600 # If this variable is set in any of the actions, the command in it
601 # will be execed at the end. This prevents here-documents from being
602 # left over by shells.
603 exec_cmd=
604
605 # func_fatal_configuration arg...
606 # Echo program name prefixed message to standard error, followed by
607 # a configuration failure hint, and exit.
608 func_fatal_configuration ()
609 {
610 func_error ${1+"$@"}
611 func_error "See the $PACKAGE documentation for more information."
612 func_fatal_error "Fatal configuration error."
613 }
614
615
616 # func_config
617 # Display the configuration for all the tags in this script.
618 func_config ()
619 {
620 re_begincf='^# ### BEGIN LIBTOOL'
621 re_endcf='^# ### END LIBTOOL'
622
623 # Default configuration.
624 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
625
626 # Now print the configurations for the tags.
627 for tagname in $taglist; do
628 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
629 done
630
631 exit $?
632 }
633
634 # func_features
635 # Display the features supported by this script.
636 func_features ()
637 {
638 $ECHO "host: $host"
639 if test "$build_libtool_libs" = yes; then
640 $ECHO "enable shared libraries"
641 else
642 $ECHO "disable shared libraries"
643 fi
644 if test "$build_old_libs" = yes; then
645 $ECHO "enable static libraries"
646 else
647 $ECHO "disable static libraries"
648 fi
649
650 exit $?
651 }
652
653 # func_enable_tag tagname
654 # Verify that TAGNAME is valid, and either flag an error and exit, or
655 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
656 # variable here.
657 func_enable_tag ()
658 {
659 # Global variable:
660 tagname="$1"
661
662 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
663 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
664 sed_extractcf="/$re_begincf/,/$re_endcf/p"
665
666 # Validate tagname.
667 case $tagname in
668 *[!-_A-Za-z0-9,/]*)
669 func_fatal_error "invalid tag name: $tagname"
670 ;;
671 esac
672
673 # Don't test for the "default" C tag, as we know it's
674 # there but not specially marked.
675 case $tagname in
676 CC) ;;
677 *)
678 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
679 taglist="$taglist $tagname"
680
681 # Evaluate the configuration. Be careful to quote the path
682 # and the sed script, to avoid splitting on whitespace, but
683 # also don't use non-portable quotes within backquotes within
684 # quotes we have to do it in 2 steps:
685 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
686 eval "$extractedcf"
687 else
688 func_error "ignoring unknown tag $tagname"
689 fi
690 ;;
691 esac
692 }
693
694 # Parse options once, thoroughly. This comes as soon as possible in
695 # the script to make things like `libtool --version' happen quickly.
696 {
697
698 # Shorthand for --mode=foo, only valid as the first argument
699 case $1 in
700 clean|clea|cle|cl)
701 shift; set dummy --mode clean ${1+"$@"}; shift
702 ;;
703 compile|compil|compi|comp|com|co|c)
704 shift; set dummy --mode compile ${1+"$@"}; shift
705 ;;
706 execute|execut|execu|exec|exe|ex|e)
707 shift; set dummy --mode execute ${1+"$@"}; shift
708 ;;
709 finish|finis|fini|fin|fi|f)
710 shift; set dummy --mode finish ${1+"$@"}; shift
711 ;;
712 install|instal|insta|inst|ins|in|i)
713 shift; set dummy --mode install ${1+"$@"}; shift
714 ;;
715 link|lin|li|l)
716 shift; set dummy --mode link ${1+"$@"}; shift
717 ;;
718 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
719 shift; set dummy --mode uninstall ${1+"$@"}; shift
720 ;;
721 esac
722
723 # Parse non-mode specific arguments:
724 while test "$#" -gt 0; do
725 opt="$1"
726 shift
727
728 case $opt in
729 --config) func_config ;;
730
731 --debug) preserve_args="$preserve_args $opt"
732 func_echo "enabling shell trace mode"
733 opt_debug='set -x'
734 $opt_debug
735 ;;
736
737 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
738 execute_dlfiles="$execute_dlfiles $1"
739 shift
740 ;;
741
742 --dry-run | -n) opt_dry_run=: ;;
743 --features) func_features ;;
744 --finish) mode="finish" ;;
745
746 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
747 case $1 in
748 # Valid mode arguments:
749 clean) ;;
750 compile) ;;
751 execute) ;;
752 finish) ;;
753 install) ;;
754 link) ;;
755 relink) ;;
756 uninstall) ;;
757
758 # Catch anything else as an error
759 *) func_error "invalid argument for $opt"
760 exit_cmd=exit
761 break
762 ;;
763 esac
764
765 mode="$1"
766 shift
767 ;;
768
769 --preserve-dup-deps)
770 opt_duplicate_deps=: ;;
771
772 --quiet|--silent) preserve_args="$preserve_args $opt"
773 opt_silent=:
774 ;;
775
776 --verbose| -v) preserve_args="$preserve_args $opt"
777 opt_silent=false
778 ;;
779
780 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
781 preserve_args="$preserve_args $opt $1"
782 func_enable_tag "$1" # tagname is set here
783 shift
784 ;;
785
786 # Separate optargs to long options:
787 -dlopen=*|--mode=*|--tag=*)
788 func_opt_split "$opt"
789 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
790 shift
791 ;;
792
793 -\?|-h) func_usage ;;
794 --help) opt_help=: ;;
795 --version) func_version ;;
796
797 -*) func_fatal_help "unrecognized option \`$opt'" ;;
798
799 *) nonopt="$opt"
800 break
801 ;;
802 esac
803 done
804
805
806 case $host in
807 *cygwin* | *mingw* | *pw32* | *cegcc*)
808 # don't eliminate duplications in $postdeps and $predeps
809 opt_duplicate_compiler_generated_deps=:
810 ;;
811 *)
812 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
813 ;;
814 esac
815
816 # Having warned about all mis-specified options, bail out if
817 # anything was wrong.
818 $exit_cmd $EXIT_FAILURE
819 }
820
821 # func_check_version_match
822 # Ensure that we are using m4 macros, and libtool script from the same
823 # release of libtool.
824 func_check_version_match ()
825 {
826 if test "$package_revision" != "$macro_revision"; then
827 if test "$VERSION" != "$macro_version"; then
828 if test -z "$macro_version"; then
829 cat >&2 <<_LT_EOF
830 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
831 $progname: definition of this LT_INIT comes from an older release.
832 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
833 $progname: and run autoconf again.
834 _LT_EOF
835 else
836 cat >&2 <<_LT_EOF
837 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
838 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
839 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
840 $progname: and run autoconf again.
841 _LT_EOF
842 fi
843 else
844 cat >&2 <<_LT_EOF
845 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
846 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
847 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
848 $progname: of $PACKAGE $VERSION and run autoconf again.
849 _LT_EOF
850 fi
851
852 exit $EXIT_MISMATCH
853 fi
854 }
855
856
857 ## ----------- ##
858 ## Main. ##
859 ## ----------- ##
860
861 $opt_help || {
862 # Sanity checks first:
863 func_check_version_match
864
865 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
866 func_fatal_configuration "not configured to build any kind of library"
867 fi
868
869 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
870
871
872 # Darwin sucks
873 eval std_shrext=\"$shrext_cmds\"
874
875
876 # Only execute mode is allowed to have -dlopen flags.
877 if test -n "$execute_dlfiles" && test "$mode" != execute; then
878 func_error "unrecognized option \`-dlopen'"
879 $ECHO "$help" 1>&2
880 exit $EXIT_FAILURE
881 fi
882
883 # Change the help message to a mode-specific one.
884 generic_help="$help"
885 help="Try \`$progname --help --mode=$mode' for more information."
886 }
887
888
889 # func_lalib_p file
890 # True iff FILE is a libtool `.la' library or `.lo' object file.
891 # This function is only a basic sanity check; it will hardly flush out
892 # determined imposters.
893 func_lalib_p ()
894 {
895 test -f "$1" &&
896 $SED -e 4q "$1" 2>/dev/null \
897 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
898 }
899
900 # func_lalib_unsafe_p file
901 # True iff FILE is a libtool `.la' library or `.lo' object file.
902 # This function implements the same check as func_lalib_p without
903 # resorting to external programs. To this end, it redirects stdin and
904 # closes it afterwards, without saving the original file descriptor.
905 # As a safety measure, use it only where a negative result would be
906 # fatal anyway. Works if `file' does not exist.
907 func_lalib_unsafe_p ()
908 {
909 lalib_p=no
910 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
911 for lalib_p_l in 1 2 3 4
912 do
913 read lalib_p_line
914 case "$lalib_p_line" in
915 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
916 esac
917 done
918 exec 0<&5 5<&-
919 fi
920 test "$lalib_p" = yes
921 }
922
923 # func_ltwrapper_script_p file
924 # True iff FILE is a libtool wrapper script
925 # This function is only a basic sanity check; it will hardly flush out
926 # determined imposters.
927 func_ltwrapper_script_p ()
928 {
929 func_lalib_p "$1"
930 }
931
932 # func_ltwrapper_executable_p file
933 # True iff FILE is a libtool wrapper executable
934 # This function is only a basic sanity check; it will hardly flush out
935 # determined imposters.
936 func_ltwrapper_executable_p ()
937 {
938 func_ltwrapper_exec_suffix=
939 case $1 in
940 *.exe) ;;
941 *) func_ltwrapper_exec_suffix=.exe ;;
942 esac
943 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
944 }
945
946 # func_ltwrapper_scriptname file
947 # Assumes file is an ltwrapper_executable
948 # uses $file to determine the appropriate filename for a
949 # temporary ltwrapper_script.
950 func_ltwrapper_scriptname ()
951 {
952 func_ltwrapper_scriptname_result=""
953 if func_ltwrapper_executable_p "$1"; then
954 func_dirname_and_basename "$1" "" "."
955 func_stripname '' '.exe' "$func_basename_result"
956 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
957 fi
958 }
959
960 # func_ltwrapper_p file
961 # True iff FILE is a libtool wrapper script or wrapper executable
962 # This function is only a basic sanity check; it will hardly flush out
963 # determined imposters.
964 func_ltwrapper_p ()
965 {
966 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
967 }
968
969
970 # func_execute_cmds commands fail_cmd
971 # Execute tilde-delimited COMMANDS.
972 # If FAIL_CMD is given, eval that upon failure.
973 # FAIL_CMD may read-access the current command in variable CMD!
974 func_execute_cmds ()
975 {
976 $opt_debug
977 save_ifs=$IFS; IFS='~'
978 for cmd in $1; do
979 IFS=$save_ifs
980 eval cmd=\"$cmd\"
981 func_show_eval "$cmd" "${2-:}"
982 done
983 IFS=$save_ifs
984 }
985
986
987 # func_source file
988 # Source FILE, adding directory component if necessary.
989 # Note that it is not necessary on cygwin/mingw to append a dot to
990 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
991 # behavior happens only for exec(3), not for open(2)! Also, sourcing
992 # `FILE.' does not work on cygwin managed mounts.
993 func_source ()
994 {
995 $opt_debug
996 case $1 in
997 */* | *\\*) . "$1" ;;
998 *) . "./$1" ;;
999 esac
1000 }
1001
1002
1003 # func_infer_tag arg
1004 # Infer tagged configuration to use if any are available and
1005 # if one wasn't chosen via the "--tag" command line option.
1006 # Only attempt this if the compiler in the base compile
1007 # command doesn't match the default compiler.
1008 # arg is usually of the form 'gcc ...'
1009 func_infer_tag ()
1010 {
1011 $opt_debug
1012 if test -n "$available_tags" && test -z "$tagname"; then
1013 CC_quoted=
1014 for arg in $CC; do
1015 func_quote_for_eval "$arg"
1016 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1017 done
1018 case $@ in
1019 # Blanks in the command may have been stripped by the calling shell,
1020 # but not from the CC environment variable when configure was run.
1021 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
1022 # Blanks at the start of $base_compile will cause this to fail
1023 # if we don't check for them as well.
1024 *)
1025 for z in $available_tags; do
1026 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
1027 # Evaluate the configuration.
1028 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
1029 CC_quoted=
1030 for arg in $CC; do
1031 # Double-quote args containing other shell metacharacters.
1032 func_quote_for_eval "$arg"
1033 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1034 done
1035 case "$@ " in
1036 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
1037 # The compiler in the base compile command matches
1038 # the one in the tagged configuration.
1039 # Assume this is the tagged configuration we want.
1040 tagname=$z
1041 break
1042 ;;
1043 esac
1044 fi
1045 done
1046 # If $tagname still isn't set, then no tagged configuration
1047 # was found and let the user know that the "--tag" command
1048 # line option must be used.
1049 if test -z "$tagname"; then
1050 func_echo "unable to infer tagged configuration"
1051 func_fatal_error "specify a tag with \`--tag'"
1052 # else
1053 # func_verbose "using $tagname tagged configuration"
1054 fi
1055 ;;
1056 esac
1057 fi
1058 }
1059
1060
1061
1062 # func_write_libtool_object output_name pic_name nonpic_name
1063 # Create a libtool object file (analogous to a ".la" file),
1064 # but don't create it if we're doing a dry run.
1065 func_write_libtool_object ()
1066 {
1067 write_libobj=${1}
1068 if test "$build_libtool_libs" = yes; then
1069 write_lobj=\'${2}\'
1070 else
1071 write_lobj=none
1072 fi
1073
1074 if test "$build_old_libs" = yes; then
1075 write_oldobj=\'${3}\'
1076 else
1077 write_oldobj=none
1078 fi
1079
1080 $opt_dry_run || {
1081 cat >${write_libobj}T <<EOF
1082 # $write_libobj - a libtool object file
1083 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
1084 #
1085 # Please DO NOT delete this file!
1086 # It is necessary for linking the library.
1087
1088 # Name of the PIC object.
1089 pic_object=$write_lobj
1090
1091 # Name of the non-PIC object
1092 non_pic_object=$write_oldobj
1093
1094 EOF
1095 $MV "${write_libobj}T" "${write_libobj}"
1096 }
1097 }
1098
1099 # func_mode_compile arg...
1100 func_mode_compile ()
1101 {
1102 $opt_debug
1103 # Get the compilation command and the source file.
1104 base_compile=
1105 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1106 suppress_opt=yes
1107 suppress_output=
1108 arg_mode=normal
1109 libobj=
1110 later=
1111 pie_flag=
1112
1113 for arg
1114 do
1115 case $arg_mode in
1116 arg )
1117 # do not "continue". Instead, add this to base_compile
1118 lastarg="$arg"
1119 arg_mode=normal
1120 ;;
1121
1122 target )
1123 libobj="$arg"
1124 arg_mode=normal
1125 continue
1126 ;;
1127
1128 normal )
1129 # Accept any command-line options.
1130 case $arg in
1131 -o)
1132 test -n "$libobj" && \
1133 func_fatal_error "you cannot specify \`-o' more than once"
1134 arg_mode=target
1135 continue
1136 ;;
1137
1138 -pie | -fpie | -fPIE)
1139 pie_flag="$pie_flag $arg"
1140 continue
1141 ;;
1142
1143 -shared | -static | -prefer-pic | -prefer-non-pic)
1144 later="$later $arg"
1145 continue
1146 ;;
1147
1148 -no-suppress)
1149 suppress_opt=no
1150 continue
1151 ;;
1152
1153 -Xcompiler)
1154 arg_mode=arg # the next one goes into the "base_compile" arg list
1155 continue # The current "srcfile" will either be retained or
1156 ;; # replaced later. I would guess that would be a bug.
1157
1158 -Wc,*)
1159 func_stripname '-Wc,' '' "$arg"
1160 args=$func_stripname_result
1161 lastarg=
1162 save_ifs="$IFS"; IFS=','
1163 for arg in $args; do
1164 IFS="$save_ifs"
1165 func_quote_for_eval "$arg"
1166 lastarg="$lastarg $func_quote_for_eval_result"
1167 done
1168 IFS="$save_ifs"
1169 func_stripname ' ' '' "$lastarg"
1170 lastarg=$func_stripname_result
1171
1172 # Add the arguments to base_compile.
1173 base_compile="$base_compile $lastarg"
1174 continue
1175 ;;
1176
1177 *)
1178 # Accept the current argument as the source file.
1179 # The previous "srcfile" becomes the current argument.
1180 #
1181 lastarg="$srcfile"
1182 srcfile="$arg"
1183 ;;
1184 esac # case $arg
1185 ;;
1186 esac # case $arg_mode
1187
1188 # Aesthetically quote the previous argument.
1189 func_quote_for_eval "$lastarg"
1190 base_compile="$base_compile $func_quote_for_eval_result"
1191 done # for arg
1192
1193 case $arg_mode in
1194 arg)
1195 func_fatal_error "you must specify an argument for -Xcompile"
1196 ;;
1197 target)
1198 func_fatal_error "you must specify a target with \`-o'"
1199 ;;
1200 *)
1201 # Get the name of the library object.
1202 test -z "$libobj" && {
1203 func_basename "$srcfile"
1204 libobj="$func_basename_result"
1205 }
1206 ;;
1207 esac
1208
1209 # Recognize several different file suffixes.
1210 # If the user specifies -o file.o, it is replaced with file.lo
1211 case $libobj in
1212 *.[cCFSifmso] | \
1213 *.ada | *.adb | *.ads | *.asm | \
1214 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
1215 *.[fF][09]? | *.for | *.java | *.obj | *.sx)
1216 func_xform "$libobj"
1217 libobj=$func_xform_result
1218 ;;
1219 esac
1220
1221 case $libobj in
1222 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
1223 *)
1224 func_fatal_error "cannot determine name of library object from \`$libobj'"
1225 ;;
1226 esac
1227
1228 func_infer_tag $base_compile
1229
1230 for arg in $later; do
1231 case $arg in
1232 -shared)
1233 test "$build_libtool_libs" != yes && \
1234 func_fatal_configuration "can not build a shared library"
1235 build_old_libs=no
1236 continue
1237 ;;
1238
1239 -static)
1240 build_libtool_libs=no
1241 build_old_libs=yes
1242 continue
1243 ;;
1244
1245 -prefer-pic)
1246 pic_mode=yes
1247 continue
1248 ;;
1249
1250 -prefer-non-pic)
1251 pic_mode=no
1252 continue
1253 ;;
1254 esac
1255 done
1256
1257 func_quote_for_eval "$libobj"
1258 test "X$libobj" != "X$func_quote_for_eval_result" \
1259 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
1260 && func_warning "libobj name \`$libobj' may not contain shell special characters."
1261 func_dirname_and_basename "$obj" "/" ""
1262 objname="$func_basename_result"
1263 xdir="$func_dirname_result"
1264 lobj=${xdir}$objdir/$objname
1265
1266 test -z "$base_compile" && \
1267 func_fatal_help "you must specify a compilation command"
1268
1269 # Delete any leftover library objects.
1270 if test "$build_old_libs" = yes; then
1271 removelist="$obj $lobj $libobj ${libobj}T"
1272 else
1273 removelist="$lobj $libobj ${libobj}T"
1274 fi
1275
1276 # On Cygwin there's no "real" PIC flag so we must build both object types
1277 case $host_os in
1278 cygwin* | mingw* | pw32* | os2* | cegcc*)
1279 pic_mode=default
1280 ;;
1281 esac
1282 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
1283 # non-PIC code in shared libraries is not supported
1284 pic_mode=default
1285 fi
1286
1287 # Calculate the filename of the output object if compiler does
1288 # not support -o with -c
1289 if test "$compiler_c_o" = no; then
1290 output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
1291 lockfile="$output_obj.lock"
1292 else
1293 output_obj=
1294 need_locks=no
1295 lockfile=
1296 fi
1297
1298 # Lock this critical section if it is needed
1299 # We use this script file to make the link, it avoids creating a new file
1300 if test "$need_locks" = yes; then
1301 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
1302 func_echo "Waiting for $lockfile to be removed"
1303 sleep 2
1304 done
1305 elif test "$need_locks" = warn; then
1306 if test -f "$lockfile"; then
1307 $ECHO "\
1308 *** ERROR, $lockfile exists and contains:
1309 `cat $lockfile 2>/dev/null`
1310
1311 This indicates that another process is trying to use the same
1312 temporary object file, and libtool could not work around it because
1313 your compiler does not support \`-c' and \`-o' together. If you
1314 repeat this compilation, it may succeed, by chance, but you had better
1315 avoid parallel builds (make -j) in this platform, or get a better
1316 compiler."
1317
1318 $opt_dry_run || $RM $removelist
1319 exit $EXIT_FAILURE
1320 fi
1321 removelist="$removelist $output_obj"
1322 $ECHO "$srcfile" > "$lockfile"
1323 fi
1324
1325 $opt_dry_run || $RM $removelist
1326 removelist="$removelist $lockfile"
1327 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
1328
1329 if test -n "$fix_srcfile_path"; then
1330 eval srcfile=\"$fix_srcfile_path\"
1331 fi
1332 func_quote_for_eval "$srcfile"
1333 qsrcfile=$func_quote_for_eval_result
1334
1335 # Only build a PIC object if we are building libtool libraries.
1336 if test "$build_libtool_libs" = yes; then
1337 # Without this assignment, base_compile gets emptied.
1338 fbsd_hideous_sh_bug=$base_compile
1339
1340 if test "$pic_mode" != no; then
1341 command="$base_compile $qsrcfile $pic_flag"
1342 else
1343 # Don't build PIC code
1344 command="$base_compile $qsrcfile"
1345 fi
1346
1347 func_mkdir_p "$xdir$objdir"
1348
1349 if test -z "$output_obj"; then
1350 # Place PIC objects in $objdir
1351 command="$command -o $lobj"
1352 fi
1353
1354 func_show_eval_locale "$command" \
1355 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
1356
1357 if test "$need_locks" = warn &&
1358 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1359 $ECHO "\
1360 *** ERROR, $lockfile contains:
1361 `cat $lockfile 2>/dev/null`
1362
1363 but it should contain:
1364 $srcfile
1365
1366 This indicates that another process is trying to use the same
1367 temporary object file, and libtool could not work around it because
1368 your compiler does not support \`-c' and \`-o' together. If you
1369 repeat this compilation, it may succeed, by chance, but you had better
1370 avoid parallel builds (make -j) in this platform, or get a better
1371 compiler."
1372
1373 $opt_dry_run || $RM $removelist
1374 exit $EXIT_FAILURE
1375 fi
1376
1377 # Just move the object if needed, then go on to compile the next one
1378 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
1379 func_show_eval '$MV "$output_obj" "$lobj"' \
1380 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
1381 fi
1382
1383 # Allow error messages only from the first compilation.
1384 if test "$suppress_opt" = yes; then
1385 suppress_output=' >/dev/null 2>&1'
1386 fi
1387 fi
1388
1389 # Only build a position-dependent object if we build old libraries.
1390 if test "$build_old_libs" = yes; then
1391 if test "$pic_mode" != yes; then
1392 # Don't build PIC code
1393 command="$base_compile $qsrcfile$pie_flag"
1394 else
1395 command="$base_compile $qsrcfile $pic_flag"
1396 fi
1397 if test "$compiler_c_o" = yes; then
1398 command="$command -o $obj"
1399 fi
1400
1401 # Suppress compiler output if we already did a PIC compilation.
1402 command="$command$suppress_output"
1403 func_show_eval_locale "$command" \
1404 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
1405
1406 if test "$need_locks" = warn &&
1407 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1408 $ECHO "\
1409 *** ERROR, $lockfile contains:
1410 `cat $lockfile 2>/dev/null`
1411
1412 but it should contain:
1413 $srcfile
1414
1415 This indicates that another process is trying to use the same
1416 temporary object file, and libtool could not work around it because
1417 your compiler does not support \`-c' and \`-o' together. If you
1418 repeat this compilation, it may succeed, by chance, but you had better
1419 avoid parallel builds (make -j) in this platform, or get a better
1420 compiler."
1421
1422 $opt_dry_run || $RM $removelist
1423 exit $EXIT_FAILURE
1424 fi
1425
1426 # Just move the object if needed
1427 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1428 func_show_eval '$MV "$output_obj" "$obj"' \
1429 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
1430 fi
1431 fi
1432
1433 $opt_dry_run || {
1434 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
1435
1436 # Unlock the critical section if it was locked
1437 if test "$need_locks" != no; then
1438 removelist=$lockfile
1439 $RM "$lockfile"
1440 fi
1441 }
1442
1443 exit $EXIT_SUCCESS
1444 }
1445
1446 $opt_help || {
1447 test "$mode" = compile && func_mode_compile ${1+"$@"}
1448 }
1449
1450 func_mode_help ()
1451 {
1452 # We need to display help for each of the modes.
1453 case $mode in
1454 "")
1455 # Generic help is extracted from the usage comments
1456 # at the start of this file.
1457 func_help
1458 ;;
1459
1460 clean)
1461 $ECHO \
1462 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
1463
1464 Remove files from the build directory.
1465
1466 RM is the name of the program to use to delete files associated with each FILE
1467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
1468 to RM.
1469
1470 If FILE is a libtool library, object or program, all the files associated
1471 with it are deleted. Otherwise, only FILE itself is deleted using RM."
1472 ;;
1473
1474 compile)
1475 $ECHO \
1476 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
1477
1478 Compile a source file into a libtool library object.
1479
1480 This mode accepts the following additional options:
1481
1482 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
1483 -no-suppress do not suppress compiler output for multiple passes
1484 -prefer-pic try to building PIC objects only
1485 -prefer-non-pic try to building non-PIC objects only
1486 -shared do not build a \`.o' file suitable for static linking
1487 -static only build a \`.o' file suitable for static linking
1488
1489 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
1490 from the given SOURCEFILE.
1491
1492 The output file name is determined by removing the directory component from
1493 SOURCEFILE, then substituting the C source code suffix \`.c' with the
1494 library object suffix, \`.lo'."
1495 ;;
1496
1497 execute)
1498 $ECHO \
1499 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
1500
1501 Automatically set library path, then run a program.
1502
1503 This mode accepts the following additional options:
1504
1505 -dlopen FILE add the directory containing FILE to the library path
1506
1507 This mode sets the library path environment variable according to \`-dlopen'
1508 flags.
1509
1510 If any of the ARGS are libtool executable wrappers, then they are translated
1511 into their corresponding uninstalled binary, and any of their required library
1512 directories are added to the library path.
1513
1514 Then, COMMAND is executed, with ARGS as arguments."
1515 ;;
1516
1517 finish)
1518 $ECHO \
1519 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
1520
1521 Complete the installation of libtool libraries.
1522
1523 Each LIBDIR is a directory that contains libtool libraries.
1524
1525 The commands that this mode executes may require superuser privileges. Use
1526 the \`--dry-run' option if you just want to see what would be executed."
1527 ;;
1528
1529 install)
1530 $ECHO \
1531 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
1532
1533 Install executables or libraries.
1534
1535 INSTALL-COMMAND is the installation command. The first component should be
1536 either the \`install' or \`cp' program.
1537
1538 The following components of INSTALL-COMMAND are treated specially:
1539
1540 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
1541
1542 The rest of the components are interpreted as arguments to that command (only
1543 BSD-compatible install options are recognized)."
1544 ;;
1545
1546 link)
1547 $ECHO \
1548 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
1549
1550 Link object files or libraries together to form another library, or to
1551 create an executable program.
1552
1553 LINK-COMMAND is a command using the C compiler that you would use to create
1554 a program from several object files.
1555
1556 The following components of LINK-COMMAND are treated specially:
1557
1558 -all-static do not do any dynamic linking at all
1559 -avoid-version do not add a version suffix if possible
1560 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
1561 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
1562 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
1563 -export-symbols SYMFILE
1564 try to export only the symbols listed in SYMFILE
1565 -export-symbols-regex REGEX
1566 try to export only the symbols matching REGEX
1567 -LLIBDIR search LIBDIR for required installed libraries
1568 -lNAME OUTPUT-FILE requires the installed library libNAME
1569 -module build a library that can dlopened
1570 -no-fast-install disable the fast-install mode
1571 -no-install link a not-installable executable
1572 -no-undefined declare that a library does not refer to external symbols
1573 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
1574 -objectlist FILE Use a list of object files found in FILE to specify objects
1575 -precious-files-regex REGEX
1576 don't remove output files matching REGEX
1577 -release RELEASE specify package release information
1578 -rpath LIBDIR the created library will eventually be installed in LIBDIR
1579 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
1580 -shared only do dynamic linking of libtool libraries
1581 -shrext SUFFIX override the standard shared library file extension
1582 -static do not do any dynamic linking of uninstalled libtool libraries
1583 -static-libtool-libs
1584 do not do any dynamic linking of libtool libraries
1585 -version-info CURRENT[:REVISION[:AGE]]
1586 specify library version info [each variable defaults to 0]
1587 -weak LIBNAME declare that the target provides the LIBNAME interface
1588
1589 All other options (arguments beginning with \`-') are ignored.
1590
1591 Every other argument is treated as a filename. Files ending in \`.la' are
1592 treated as uninstalled libtool libraries, other files are standard or library
1593 object files.
1594
1595 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
1596 only library objects (\`.lo' files) may be specified, and \`-rpath' is
1597 required, except when creating a convenience library.
1598
1599 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
1600 using \`ar' and \`ranlib', or on Windows using \`lib'.
1601
1602 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
1603 is created, otherwise an executable program is created."
1604 ;;
1605
1606 uninstall)
1607 $ECHO \
1608 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
1609
1610 Remove libraries from an installation directory.
1611
1612 RM is the name of the program to use to delete files associated with each FILE
1613 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
1614 to RM.
1615
1616 If FILE is a libtool library, all the files associated with it are deleted.
1617 Otherwise, only FILE itself is deleted using RM."
1618 ;;
1619
1620 *)
1621 func_fatal_help "invalid operation mode \`$mode'"
1622 ;;
1623 esac
1624
1625 $ECHO
1626 $ECHO "Try \`$progname --help' for more information about other modes."
1627
1628 exit $?
1629 }
1630
1631 # Now that we've collected a possible --mode arg, show help if necessary
1632 $opt_help && func_mode_help
1633
1634
1635 # func_mode_execute arg...
1636 func_mode_execute ()
1637 {
1638 $opt_debug
1639 # The first argument is the command name.
1640 cmd="$nonopt"
1641 test -z "$cmd" && \
1642 func_fatal_help "you must specify a COMMAND"
1643
1644 # Handle -dlopen flags immediately.
1645 for file in $execute_dlfiles; do
1646 test -f "$file" \
1647 || func_fatal_help "\`$file' is not a file"
1648
1649 dir=
1650 case $file in
1651 *.la)
1652 # Check to see that this really is a libtool archive.
1653 func_lalib_unsafe_p "$file" \
1654 || func_fatal_help "\`$lib' is not a valid libtool archive"
1655
1656 # Read the libtool library.
1657 dlname=
1658 library_names=
1659 func_source "$file"
1660
1661 # Skip this library if it cannot be dlopened.
1662 if test -z "$dlname"; then
1663 # Warn if it was a shared library.
1664 test -n "$library_names" && \
1665 func_warning "\`$file' was not linked with \`-export-dynamic'"
1666 continue
1667 fi
1668
1669 func_dirname "$file" "" "."
1670 dir="$func_dirname_result"
1671
1672 if test -f "$dir/$objdir/$dlname"; then
1673 dir="$dir/$objdir"
1674 else
1675 if test ! -f "$dir/$dlname"; then
1676 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
1677 fi
1678 fi
1679 ;;
1680
1681 *.lo)
1682 # Just add the directory containing the .lo file.
1683 func_dirname "$file" "" "."
1684 dir="$func_dirname_result"
1685 ;;
1686
1687 *)
1688 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
1689 continue
1690 ;;
1691 esac
1692
1693 # Get the absolute pathname.
1694 absdir=`cd "$dir" && pwd`
1695 test -n "$absdir" && dir="$absdir"
1696
1697 # Now add the directory to shlibpath_var.
1698 if eval "test -z \"\$$shlibpath_var\""; then
1699 eval "$shlibpath_var=\"\$dir\""
1700 else
1701 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
1702 fi
1703 done
1704
1705 # This variable tells wrapper scripts just to set shlibpath_var
1706 # rather than running their programs.
1707 libtool_execute_magic="$magic"
1708
1709 # Check if any of the arguments is a wrapper script.
1710 args=
1711 for file
1712 do
1713 case $file in
1714 -*) ;;
1715 *)
1716 # Do a test to see if this is really a libtool program.
1717 if func_ltwrapper_script_p "$file"; then
1718 func_source "$file"
1719 # Transform arg to wrapped name.
1720 file="$progdir/$program"
1721 elif func_ltwrapper_executable_p "$file"; then
1722 func_ltwrapper_scriptname "$file"
1723 func_source "$func_ltwrapper_scriptname_result"
1724 # Transform arg to wrapped name.
1725 file="$progdir/$program"
1726 fi
1727 ;;
1728 esac
1729 # Quote arguments (to preserve shell metacharacters).
1730 func_quote_for_eval "$file"
1731 args="$args $func_quote_for_eval_result"
1732 done
1733
1734 if test "X$opt_dry_run" = Xfalse; then
1735 if test -n "$shlibpath_var"; then
1736 # Export the shlibpath_var.
1737 eval "export $shlibpath_var"
1738 fi
1739
1740 # Restore saved environment variables
1741 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
1742 do
1743 eval "if test \"\${save_$lt_var+set}\" = set; then
1744 $lt_var=\$save_$lt_var; export $lt_var
1745 else
1746 $lt_unset $lt_var
1747 fi"
1748 done
1749
1750 # Now prepare to actually exec the command.
1751 exec_cmd="\$cmd$args"
1752 else
1753 # Display what would be done.
1754 if test -n "$shlibpath_var"; then
1755 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
1756 $ECHO "export $shlibpath_var"
1757 fi
1758 $ECHO "$cmd$args"
1759 exit $EXIT_SUCCESS
1760 fi
1761 }
1762
1763 test "$mode" = execute && func_mode_execute ${1+"$@"}
1764
1765
1766 # func_mode_finish arg...
1767 func_mode_finish ()
1768 {
1769 $opt_debug
1770 libdirs="$nonopt"
1771 admincmds=
1772
1773 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1774 for dir
1775 do
1776 libdirs="$libdirs $dir"
1777 done
1778
1779 for libdir in $libdirs; do
1780 if test -n "$finish_cmds"; then
1781 # Do each command in the finish commands.
1782 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
1783 '"$cmd"'"'
1784 fi
1785 if test -n "$finish_eval"; then
1786 # Do the single finish_eval.
1787 eval cmds=\"$finish_eval\"
1788 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
1789 $cmds"
1790 fi
1791 done
1792 fi
1793
1794 # Exit here if they wanted silent mode.
1795 $opt_silent && exit $EXIT_SUCCESS
1796
1797 $ECHO "X----------------------------------------------------------------------" | $Xsed
1798 $ECHO "Libraries have been installed in:"
1799 for libdir in $libdirs; do
1800 $ECHO " $libdir"
1801 done
1802 $ECHO
1803 $ECHO "If you ever happen to want to link against installed libraries"
1804 $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
1805 $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
1806 $ECHO "flag during linking and do at least one of the following:"
1807 if test -n "$shlibpath_var"; then
1808 $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
1809 $ECHO " during execution"
1810 fi
1811 if test -n "$runpath_var"; then
1812 $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
1813 $ECHO " during linking"
1814 fi
1815 if test -n "$hardcode_libdir_flag_spec"; then
1816 libdir=LIBDIR
1817 eval flag=\"$hardcode_libdir_flag_spec\"
1818
1819 $ECHO " - use the \`$flag' linker flag"
1820 fi
1821 if test -n "$admincmds"; then
1822 $ECHO " - have your system administrator run these commands:$admincmds"
1823 fi
1824 if test -f /etc/ld.so.conf; then
1825 $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
1826 fi
1827 $ECHO
1828
1829 $ECHO "See any operating system documentation about shared libraries for"
1830 case $host in
1831 solaris2.[6789]|solaris2.1[0-9])
1832 $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
1833 $ECHO "pages."
1834 ;;
1835 *)
1836 $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
1837 ;;
1838 esac
1839 $ECHO "X----------------------------------------------------------------------" | $Xsed
1840 exit $EXIT_SUCCESS
1841 }
1842
1843 test "$mode" = finish && func_mode_finish ${1+"$@"}
1844
1845
1846 # func_mode_install arg...
1847 func_mode_install ()
1848 {
1849 $opt_debug
1850 # There may be an optional sh(1) argument at the beginning of
1851 # install_prog (especially on Windows NT).
1852 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
1853 # Allow the use of GNU shtool's install command.
1854 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
1855 # Aesthetically quote it.
1856 func_quote_for_eval "$nonopt"
1857 install_prog="$func_quote_for_eval_result "
1858 arg=$1
1859 shift
1860 else
1861 install_prog=
1862 arg=$nonopt
1863 fi
1864
1865 # The real first argument should be the name of the installation program.
1866 # Aesthetically quote it.
1867 func_quote_for_eval "$arg"
1868 install_prog="$install_prog$func_quote_for_eval_result"
1869
1870 # We need to accept at least all the BSD install flags.
1871 dest=
1872 files=
1873 opts=
1874 prev=
1875 install_type=
1876 isdir=no
1877 stripme=
1878 for arg
1879 do
1880 if test -n "$dest"; then
1881 files="$files $dest"
1882 dest=$arg
1883 continue
1884 fi
1885
1886 case $arg in
1887 -d) isdir=yes ;;
1888 -f)
1889 case " $install_prog " in
1890 *[\\\ /]cp\ *) ;;
1891 *) prev=$arg ;;
1892 esac
1893 ;;
1894 -g | -m | -o)
1895 prev=$arg
1896 ;;
1897 -s)
1898 stripme=" -s"
1899 continue
1900 ;;
1901 -*)
1902 ;;
1903 *)
1904 # If the previous option needed an argument, then skip it.
1905 if test -n "$prev"; then
1906 prev=
1907 else
1908 dest=$arg
1909 continue
1910 fi
1911 ;;
1912 esac
1913
1914 # Aesthetically quote the argument.
1915 func_quote_for_eval "$arg"
1916 install_prog="$install_prog $func_quote_for_eval_result"
1917 done
1918
1919 test -z "$install_prog" && \
1920 func_fatal_help "you must specify an install program"
1921
1922 test -n "$prev" && \
1923 func_fatal_help "the \`$prev' option requires an argument"
1924
1925 if test -z "$files"; then
1926 if test -z "$dest"; then
1927 func_fatal_help "no file or destination specified"
1928 else
1929 func_fatal_help "you must specify a destination"
1930 fi
1931 fi
1932
1933 # Strip any trailing slash from the destination.
1934 func_stripname '' '/' "$dest"
1935 dest=$func_stripname_result
1936
1937 # Check to see that the destination is a directory.
1938 test -d "$dest" && isdir=yes
1939 if test "$isdir" = yes; then
1940 destdir="$dest"
1941 destname=
1942 else
1943 func_dirname_and_basename "$dest" "" "."
1944 destdir="$func_dirname_result"
1945 destname="$func_basename_result"
1946
1947 # Not a directory, so check to see that there is only one file specified.
1948 set dummy $files; shift
1949 test "$#" -gt 1 && \
1950 func_fatal_help "\`$dest' is not a directory"
1951 fi
1952 case $destdir in
1953 [\\/]* | [A-Za-z]:[\\/]*) ;;
1954 *)
1955 for file in $files; do
1956 case $file in
1957 *.lo) ;;
1958 *)
1959 func_fatal_help "\`$destdir' must be an absolute directory name"
1960 ;;
1961 esac
1962 done
1963 ;;
1964 esac
1965
1966 # This variable tells wrapper scripts just to set variables rather
1967 # than running their programs.
1968 libtool_install_magic="$magic"
1969
1970 staticlibs=
1971 future_libdirs=
1972 current_libdirs=
1973 for file in $files; do
1974
1975 # Do each installation.
1976 case $file in
1977 *.$libext)
1978 # Do the static libraries later.
1979 staticlibs="$staticlibs $file"
1980 ;;
1981
1982 *.la)
1983 # Check to see that this really is a libtool archive.
1984 func_lalib_unsafe_p "$file" \
1985 || func_fatal_help "\`$file' is not a valid libtool archive"
1986
1987 library_names=
1988 old_library=
1989 relink_command=
1990 func_source "$file"
1991
1992 # Add the libdir to current_libdirs if it is the destination.
1993 if test "X$destdir" = "X$libdir"; then
1994 case "$current_libdirs " in
1995 *" $libdir "*) ;;
1996 *) current_libdirs="$current_libdirs $libdir" ;;
1997 esac
1998 else
1999 # Note the libdir as a future libdir.
2000 case "$future_libdirs " in
2001 *" $libdir "*) ;;
2002 *) future_libdirs="$future_libdirs $libdir" ;;
2003 esac
2004 fi
2005
2006 func_dirname "$file" "/" ""
2007 dir="$func_dirname_result"
2008 dir="$dir$objdir"
2009
2010 if test -n "$relink_command"; then
2011 # Determine the prefix the user has applied to our future dir.
2012 inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
2013
2014 # Don't allow the user to place us outside of our expected
2015 # location b/c this prevents finding dependent libraries that
2016 # are installed to the same prefix.
2017 # At present, this check doesn't affect windows .dll's that
2018 # are installed into $libdir/../bin (currently, that works fine)
2019 # but it's something to keep an eye on.
2020 test "$inst_prefix_dir" = "$destdir" && \
2021 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
2022
2023 if test -n "$inst_prefix_dir"; then
2024 # Stick the inst_prefix_dir data into the link command.
2025 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2026 else
2027 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
2028 fi
2029
2030 func_warning "relinking \`$file'"
2031 func_show_eval "$relink_command" \
2032 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
2033 fi
2034
2035 # See the names of the shared library.
2036 set dummy $library_names; shift
2037 if test -n "$1"; then
2038 realname="$1"
2039 shift
2040
2041 srcname="$realname"
2042 test -n "$relink_command" && srcname="$realname"T
2043
2044 # Install the shared library and build the symlinks.
2045 func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
2046 'exit $?'
2047 tstripme="$stripme"
2048 case $host_os in
2049 cygwin* | mingw* | pw32* | cegcc*)
2050 case $realname in
2051 *.dll.a)
2052 tstripme=""
2053 ;;
2054 esac
2055 ;;
2056 esac
2057 if test -n "$tstripme" && test -n "$striplib"; then
2058 func_show_eval "$striplib $destdir/$realname" 'exit $?'
2059 fi
2060
2061 if test "$#" -gt 0; then
2062 # Delete the old symlinks, and create new ones.
2063 # Try `ln -sf' first, because the `ln' binary might depend on
2064 # the symlink we replace! Solaris /bin/ln does not understand -f,
2065 # so we also need to try rm && ln -s.
2066 for linkname
2067 do
2068 test "$linkname" != "$realname" \
2069 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
2070 done
2071 fi
2072
2073 # Do each command in the postinstall commands.
2074 lib="$destdir/$realname"
2075 func_execute_cmds "$postinstall_cmds" 'exit $?'
2076 fi
2077
2078 # Install the pseudo-library for information purposes.
2079 func_basename "$file"
2080 name="$func_basename_result"
2081 instname="$dir/$name"i
2082 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
2083
2084 # Maybe install the static library, too.
2085 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
2086 ;;
2087
2088 *.lo)
2089 # Install (i.e. copy) a libtool object.
2090
2091 # Figure out destination file name, if it wasn't already specified.
2092 if test -n "$destname"; then
2093 destfile="$destdir/$destname"
2094 else
2095 func_basename "$file"
2096 destfile="$func_basename_result"
2097 destfile="$destdir/$destfile"
2098 fi
2099
2100 # Deduce the name of the destination old-style object file.
2101 case $destfile in
2102 *.lo)
2103 func_lo2o "$destfile"
2104 staticdest=$func_lo2o_result
2105 ;;
2106 *.$objext)
2107 staticdest="$destfile"
2108 destfile=
2109 ;;
2110 *)
2111 func_fatal_help "cannot copy a libtool object to \`$destfile'"
2112 ;;
2113 esac
2114
2115 # Install the libtool object if requested.
2116 test -n "$destfile" && \
2117 func_show_eval "$install_prog $file $destfile" 'exit $?'
2118
2119 # Install the old object if enabled.
2120 if test "$build_old_libs" = yes; then
2121 # Deduce the name of the old-style object file.
2122 func_lo2o "$file"
2123 staticobj=$func_lo2o_result
2124 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
2125 fi
2126 exit $EXIT_SUCCESS
2127 ;;
2128
2129 *)
2130 # Figure out destination file name, if it wasn't already specified.
2131 if test -n "$destname"; then
2132 destfile="$destdir/$destname"
2133 else
2134 func_basename "$file"
2135 destfile="$func_basename_result"
2136 destfile="$destdir/$destfile"
2137 fi
2138
2139 # If the file is missing, and there is a .exe on the end, strip it
2140 # because it is most likely a libtool script we actually want to
2141 # install
2142 stripped_ext=""
2143 case $file in
2144 *.exe)
2145 if test ! -f "$file"; then
2146 func_stripname '' '.exe' "$file"
2147 file=$func_stripname_result
2148 stripped_ext=".exe"
2149 fi
2150 ;;
2151 esac
2152
2153 # Do a test to see if this is really a libtool program.
2154 case $host in
2155 *cygwin* | *mingw*)
2156 if func_ltwrapper_executable_p "$file"; then
2157 func_ltwrapper_scriptname "$file"
2158 wrapper=$func_ltwrapper_scriptname_result
2159 else
2160 func_stripname '' '.exe' "$file"
2161 wrapper=$func_stripname_result
2162 fi
2163 ;;
2164 *)
2165 wrapper=$file
2166 ;;
2167 esac
2168 if func_ltwrapper_script_p "$wrapper"; then
2169 notinst_deplibs=
2170 relink_command=
2171
2172 func_source "$wrapper"
2173
2174 # Check the variables that should have been set.
2175 test -z "$generated_by_libtool_version" && \
2176 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
2177
2178 finalize=yes
2179 for lib in $notinst_deplibs; do
2180 # Check to see that each library is installed.
2181 libdir=
2182 if test -f "$lib"; then
2183 func_source "$lib"
2184 fi
2185 libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
2186 if test -n "$libdir" && test ! -f "$libfile"; then
2187 func_warning "\`$lib' has not been installed in \`$libdir'"
2188 finalize=no
2189 fi
2190 done
2191
2192 relink_command=
2193 func_source "$wrapper"
2194
2195 outputname=
2196 if test "$fast_install" = no && test -n "$relink_command"; then
2197 $opt_dry_run || {
2198 if test "$finalize" = yes; then
2199 tmpdir=`func_mktempdir`
2200 func_basename "$file$stripped_ext"
2201 file="$func_basename_result"
2202 outputname="$tmpdir/$file"
2203 # Replace the output file specification.
2204 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
2205
2206 $opt_silent || {
2207 func_quote_for_expand "$relink_command"
2208 eval "func_echo $func_quote_for_expand_result"
2209 }
2210 if eval "$relink_command"; then :
2211 else
2212 func_error "error: relink \`$file' with the above command before installing it"
2213 $opt_dry_run || ${RM}r "$tmpdir"
2214 continue
2215 fi
2216 file="$outputname"
2217 else
2218 func_warning "cannot relink \`$file'"
2219 fi
2220 }
2221 else
2222 # Install the binary that we compiled earlier.
2223 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
2224 fi
2225 fi
2226
2227 # remove .exe since cygwin /usr/bin/install will append another
2228 # one anyway
2229 case $install_prog,$host in
2230 */usr/bin/install*,*cygwin*)
2231 case $file:$destfile in
2232 *.exe:*.exe)
2233 # this is ok
2234 ;;
2235 *.exe:*)
2236 destfile=$destfile.exe
2237 ;;
2238 *:*.exe)
2239 func_stripname '' '.exe' "$destfile"
2240 destfile=$func_stripname_result
2241 ;;
2242 esac
2243 ;;
2244 esac
2245 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
2246 $opt_dry_run || if test -n "$outputname"; then
2247 ${RM}r "$tmpdir"
2248 fi
2249 ;;
2250 esac
2251 done
2252
2253 for file in $staticlibs; do
2254 func_basename "$file"
2255 name="$func_basename_result"
2256
2257 # Set up the ranlib parameters.
2258 oldlib="$destdir/$name"
2259
2260 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
2261
2262 if test -n "$stripme" && test -n "$old_striplib"; then
2263 func_show_eval "$old_striplib $oldlib" 'exit $?'
2264 fi
2265
2266 # Do each command in the postinstall commands.
2267 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
2268 done
2269
2270 test -n "$future_libdirs" && \
2271 func_warning "remember to run \`$progname --finish$future_libdirs'"
2272
2273 if test -n "$current_libdirs"; then
2274 # Maybe just do a dry run.
2275 $opt_dry_run && current_libdirs=" -n$current_libdirs"
2276 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
2277 else
2278 exit $EXIT_SUCCESS
2279 fi
2280 }
2281
2282 test "$mode" = install && func_mode_install ${1+"$@"}
2283
2284
2285 # func_generate_dlsyms outputname originator pic_p
2286 # Extract symbols from dlprefiles and create ${outputname}S.o with
2287 # a dlpreopen symbol table.
2288 func_generate_dlsyms ()
2289 {
2290 $opt_debug
2291 my_outputname="$1"
2292 my_originator="$2"
2293 my_pic_p="${3-no}"
2294 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
2295 my_dlsyms=
2296
2297 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2298 if test -n "$NM" && test -n "$global_symbol_pipe"; then
2299 my_dlsyms="${my_outputname}S.c"
2300 else
2301 func_error "not configured to extract global symbols from dlpreopened files"
2302 fi
2303 fi
2304
2305 if test -n "$my_dlsyms"; then
2306 case $my_dlsyms in
2307 "") ;;
2308 *.c)
2309 # Discover the nlist of each of the dlfiles.
2310 nlist="$output_objdir/${my_outputname}.nm"
2311
2312 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
2313
2314 # Parse the name list into a source file.
2315 func_verbose "creating $output_objdir/$my_dlsyms"
2316
2317 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
2318 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
2319 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
2320
2321 #ifdef __cplusplus
2322 extern \"C\" {
2323 #endif
2324
2325 /* External symbol declarations for the compiler. */\
2326 "
2327
2328 if test "$dlself" = yes; then
2329 func_verbose "generating symbol list for \`$output'"
2330
2331 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
2332
2333 # Add our own program objects to the symbol list.
2334 progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2335 for progfile in $progfiles; do
2336 func_verbose "extracting global C symbols from \`$progfile'"
2337 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
2338 done
2339
2340 if test -n "$exclude_expsyms"; then
2341 $opt_dry_run || {
2342 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
2343 eval '$MV "$nlist"T "$nlist"'
2344 }
2345 fi
2346
2347 if test -n "$export_symbols_regex"; then
2348 $opt_dry_run || {
2349 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
2350 eval '$MV "$nlist"T "$nlist"'
2351 }
2352 fi
2353
2354 # Prepare the list of exported symbols
2355 if test -z "$export_symbols"; then
2356 export_symbols="$output_objdir/$outputname.exp"
2357 $opt_dry_run || {
2358 $RM $export_symbols
2359 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
2360 case $host in
2361 *cygwin* | *mingw* | *cegcc* )
2362 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
2363 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
2364 ;;
2365 esac
2366 }
2367 else
2368 $opt_dry_run || {
2369 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
2370 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
2371 eval '$MV "$nlist"T "$nlist"'
2372 case $host in
2373 *cygwin | *mingw* | *cegcc* )
2374 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
2375 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
2376 ;;
2377 esac
2378 }
2379 fi
2380 fi
2381
2382 for dlprefile in $dlprefiles; do
2383 func_verbose "extracting global C symbols from \`$dlprefile'"
2384 func_basename "$dlprefile"
2385 name="$func_basename_result"
2386 $opt_dry_run || {
2387 eval '$ECHO ": $name " >> "$nlist"'
2388 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2389 }
2390 done
2391
2392 $opt_dry_run || {
2393 # Make sure we have at least an empty file.
2394 test -f "$nlist" || : > "$nlist"
2395
2396 if test -n "$exclude_expsyms"; then
2397 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
2398 $MV "$nlist"T "$nlist"
2399 fi
2400
2401 # Try sorting and uniquifying the output.
2402 if $GREP -v "^: " < "$nlist" |
2403 if sort -k 3 </dev/null >/dev/null 2>&1; then
2404 sort -k 3
2405 else
2406 sort +2
2407 fi |
2408 uniq > "$nlist"S; then
2409 :
2410 else
2411 $GREP -v "^: " < "$nlist" > "$nlist"S
2412 fi
2413
2414 if test -f "$nlist"S; then
2415 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
2416 else
2417 $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
2418 fi
2419
2420 $ECHO >> "$output_objdir/$my_dlsyms" "\
2421
2422 /* The mapping between symbol names and symbols. */
2423 typedef struct {
2424 const char *name;
2425 void *address;
2426 } lt_dlsymlist;
2427 "
2428 case $host in
2429 *cygwin* | *mingw* | *cegcc* )
2430 $ECHO >> "$output_objdir/$my_dlsyms" "\
2431 /* DATA imports from DLLs on WIN32 con't be const, because
2432 runtime relocations are performed -- see ld's documentation
2433 on pseudo-relocs. */"
2434 lt_dlsym_const= ;;
2435 *osf5*)
2436 echo >> "$output_objdir/$my_dlsyms" "\
2437 /* This system does not cope well with relocations in const data */"
2438 lt_dlsym_const= ;;
2439 *)
2440 lt_dlsym_const=const ;;
2441 esac
2442
2443 $ECHO >> "$output_objdir/$my_dlsyms" "\
2444 extern $lt_dlsym_const lt_dlsymlist
2445 lt_${my_prefix}_LTX_preloaded_symbols[];
2446 $lt_dlsym_const lt_dlsymlist
2447 lt_${my_prefix}_LTX_preloaded_symbols[] =
2448 {\
2449 { \"$my_originator\", (void *) 0 },"
2450
2451 case $need_lib_prefix in
2452 no)
2453 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
2454 ;;
2455 *)
2456 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
2457 ;;
2458 esac
2459 $ECHO >> "$output_objdir/$my_dlsyms" "\
2460 {0, (void *) 0}
2461 };
2462
2463 /* This works around a problem in FreeBSD linker */
2464 #ifdef FREEBSD_WORKAROUND
2465 static const void *lt_preloaded_setup() {
2466 return lt_${my_prefix}_LTX_preloaded_symbols;
2467 }
2468 #endif
2469
2470 #ifdef __cplusplus
2471 }
2472 #endif\
2473 "
2474 } # !$opt_dry_run
2475
2476 pic_flag_for_symtable=
2477 case "$compile_command " in
2478 *" -static "*) ;;
2479 *)
2480 case $host in
2481 # compiling the symbol table file with pic_flag works around
2482 # a FreeBSD bug that causes programs to crash when -lm is
2483 # linked before any other PIC object. But we must not use
2484 # pic_flag when linking with -static. The problem exists in
2485 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2486 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
2487 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
2488 *-*-hpux*)
2489 pic_flag_for_symtable=" $pic_flag" ;;
2490 *)
2491 if test "X$my_pic_p" != Xno; then
2492 pic_flag_for_symtable=" $pic_flag"
2493 fi
2494 ;;
2495 esac
2496 ;;
2497 esac
2498 symtab_cflags=
2499 for arg in $LTCFLAGS; do
2500 case $arg in
2501 -pie | -fpie | -fPIE) ;;
2502 *) symtab_cflags="$symtab_cflags $arg" ;;
2503 esac
2504 done
2505
2506 # Now compile the dynamic symbol file.
2507 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
2508
2509 # Clean up the generated files.
2510 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
2511
2512 # Transform the symbol file into the correct name.
2513 symfileobj="$output_objdir/${my_outputname}S.$objext"
2514 case $host in
2515 *cygwin* | *mingw* | *cegcc* )
2516 if test -f "$output_objdir/$my_outputname.def"; then
2517 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2518 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2519 else
2520 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2521 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2522 fi
2523 ;;
2524 *)
2525 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2526 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2527 ;;
2528 esac
2529 ;;
2530 *)
2531 func_fatal_error "unknown suffix for \`$my_dlsyms'"
2532 ;;
2533 esac
2534 else
2535 # We keep going just in case the user didn't refer to
2536 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
2537 # really was required.
2538
2539 # Nullify the symbol file.
2540 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2541 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
2542 fi
2543 }
1332544
1342545 # func_win32_libid arg
1352546 # return the library type of file 'arg'
1372548 # Need a lot of goo to handle *both* DLLs and import libs
1382549 # Has to be a shell function in order to 'eat' the argument
1392550 # that is supplied when $file_magic_command is called.
140 func_win32_libid () {
2551 func_win32_libid ()
2552 {
2553 $opt_debug
1412554 win32_libid_type="unknown"
1422555 win32_fileres=`file -L $1 2>/dev/null`
1432556 case $win32_fileres in
1452558 win32_libid_type="x86 archive import"
1462559 ;;
1472560 *ar\ archive*) # could be an import, or static
148 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
149 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
150 win32_nmres=`eval $NM -f posix -A $1 | \
151 sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
152 if test "X$win32_nmres" = "Ximport" ; then
153 win32_libid_type="x86 archive import"
154 else
155 win32_libid_type="x86 archive static"
156 fi
2561 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
2562 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
2563 win32_nmres=`eval $NM -f posix -A $1 |
2564 $SED -n -e '
2565 1,100{
2566 / I /{
2567 s,.*,import,
2568 p
2569 q
2570 }
2571 }'`
2572 case $win32_nmres in
2573 import*) win32_libid_type="x86 archive import";;
2574 *) win32_libid_type="x86 archive static";;
2575 esac
1572576 fi
1582577 ;;
1592578 *DLL*)
1672586 esac
1682587 ;;
1692588 esac
170 $echo $win32_libid_type
2589 $ECHO "$win32_libid_type"
1712590 }
1722591
1732592
174 # func_infer_tag arg
175 # Infer tagged configuration to use if any are available and
176 # if one wasn't chosen via the "--tag" command line option.
177 # Only attempt this if the compiler in the base compile
178 # command doesn't match the default compiler.
179 # arg is usually of the form 'gcc ...'
180 func_infer_tag () {
181 if test -n "$available_tags" && test -z "$tagname"; then
182 CC_quoted=
183 for arg in $CC; do
184 case $arg in
185 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
186 arg="\"$arg\""
2593
2594 # func_extract_an_archive dir oldlib
2595 func_extract_an_archive ()
2596 {
2597 $opt_debug
2598 f_ex_an_ar_dir="$1"; shift
2599 f_ex_an_ar_oldlib="$1"
2600 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
2601 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
2602 :
2603 else
2604 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
2605 fi
2606 }
2607
2608
2609 # func_extract_archives gentop oldlib ...
2610 func_extract_archives ()
2611 {
2612 $opt_debug
2613 my_gentop="$1"; shift
2614 my_oldlibs=${1+"$@"}
2615 my_oldobjs=""
2616 my_xlib=""
2617 my_xabs=""
2618 my_xdir=""
2619
2620 for my_xlib in $my_oldlibs; do
2621 # Extract the objects.
2622 case $my_xlib in
2623 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
2624 *) my_xabs=`pwd`"/$my_xlib" ;;
2625 esac
2626 func_basename "$my_xlib"
2627 my_xlib="$func_basename_result"
2628 my_xlib_u=$my_xlib
2629 while :; do
2630 case " $extracted_archives " in
2631 *" $my_xlib_u "*)
2632 func_arith $extracted_serial + 1
2633 extracted_serial=$func_arith_result
2634 my_xlib_u=lt$extracted_serial-$my_xlib ;;
2635 *) break ;;
2636 esac
2637 done
2638 extracted_archives="$extracted_archives $my_xlib_u"
2639 my_xdir="$my_gentop/$my_xlib_u"
2640
2641 func_mkdir_p "$my_xdir"
2642
2643 case $host in
2644 *-darwin*)
2645 func_verbose "Extracting $my_xabs"
2646 # Do not bother doing anything if just a dry run
2647 $opt_dry_run || {
2648 darwin_orig_dir=`pwd`
2649 cd $my_xdir || exit $?
2650 darwin_archive=$my_xabs
2651 darwin_curdir=`pwd`
2652 darwin_base_archive=`basename "$darwin_archive"`
2653 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
2654 if test -n "$darwin_arches"; then
2655 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
2656 darwin_arch=
2657 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
2658 for darwin_arch in $darwin_arches ; do
2659 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
2660 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
2661 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
2662 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
2663 cd "$darwin_curdir"
2664 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
2665 done # $darwin_arches
2666 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
2667 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
2668 darwin_file=
2669 darwin_files=
2670 for darwin_file in $darwin_filelist; do
2671 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
2672 $LIPO -create -output "$darwin_file" $darwin_files
2673 done # $darwin_filelist
2674 $RM -rf unfat-$$
2675 cd "$darwin_orig_dir"
2676 else
2677 cd $darwin_orig_dir
2678 func_extract_an_archive "$my_xdir" "$my_xabs"
2679 fi # $darwin_arches
2680 } # !$opt_dry_run
2681 ;;
2682 *)
2683 func_extract_an_archive "$my_xdir" "$my_xabs"
2684 ;;
2685 esac
2686 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
2687 done
2688
2689 func_extract_archives_result="$my_oldobjs"
2690 }
2691
2692
2693
2694 # func_emit_wrapper_part1 [arg=no]
2695 #
2696 # Emit the first part of a libtool wrapper script on stdout.
2697 # For more information, see the description associated with
2698 # func_emit_wrapper(), below.
2699 func_emit_wrapper_part1 ()
2700 {
2701 func_emit_wrapper_part1_arg1=no
2702 if test -n "$1" ; then
2703 func_emit_wrapper_part1_arg1=$1
2704 fi
2705
2706 $ECHO "\
2707 #! $SHELL
2708
2709 # $output - temporary wrapper script for $objdir/$outputname
2710 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2711 #
2712 # The $output program cannot be directly executed until all the libtool
2713 # libraries that it depends on are installed.
2714 #
2715 # This wrapper script should never be moved out of the build directory.
2716 # If it is, it will not operate correctly.
2717
2718 # Sed substitution that helps us do robust quoting. It backslashifies
2719 # metacharacters that are still active within double-quoted strings.
2720 Xsed='${SED} -e 1s/^X//'
2721 sed_quote_subst='$sed_quote_subst'
2722
2723 # Be Bourne compatible
2724 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
2725 emulate sh
2726 NULLCMD=:
2727 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
2728 # is contrary to our usage. Disable this feature.
2729 alias -g '\${1+\"\$@\"}'='\"\$@\"'
2730 setopt NO_GLOB_SUBST
2731 else
2732 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
2733 fi
2734 BIN_SH=xpg4; export BIN_SH # for Tru64
2735 DUALCASE=1; export DUALCASE # for MKS sh
2736
2737 # The HP-UX ksh and POSIX shell print the target directory to stdout
2738 # if CDPATH is set.
2739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2740
2741 relink_command=\"$relink_command\"
2742
2743 # This environment variable determines our operation mode.
2744 if test \"\$libtool_install_magic\" = \"$magic\"; then
2745 # install mode needs the following variables:
2746 generated_by_libtool_version='$macro_version'
2747 notinst_deplibs='$notinst_deplibs'
2748 else
2749 # When we are sourced in execute mode, \$file and \$ECHO are already set.
2750 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2751 ECHO=\"$qecho\"
2752 file=\"\$0\"
2753 # Make sure echo works.
2754 if test \"X\$1\" = X--no-reexec; then
2755 # Discard the --no-reexec flag, and continue.
2756 shift
2757 elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
2758 # Yippee, \$ECHO works!
2759 :
2760 else
2761 # Restart under the correct shell, and then maybe \$ECHO will work.
2762 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
2763 fi
2764 fi\
2765 "
2766 $ECHO "\
2767
2768 # Find the directory that this script lives in.
2769 thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
2770 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
2771
2772 # Follow symbolic links until we get to the real thisdir.
2773 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
2774 while test -n \"\$file\"; do
2775 destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
2776
2777 # If there was a directory component, then change thisdir.
2778 if test \"x\$destdir\" != \"x\$file\"; then
2779 case \"\$destdir\" in
2780 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
2781 *) thisdir=\"\$thisdir/\$destdir\" ;;
2782 esac
2783 fi
2784
2785 file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
2786 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
2787 done
2788 "
2789 }
2790 # end: func_emit_wrapper_part1
2791
2792 # func_emit_wrapper_part2 [arg=no]
2793 #
2794 # Emit the second part of a libtool wrapper script on stdout.
2795 # For more information, see the description associated with
2796 # func_emit_wrapper(), below.
2797 func_emit_wrapper_part2 ()
2798 {
2799 func_emit_wrapper_part2_arg1=no
2800 if test -n "$1" ; then
2801 func_emit_wrapper_part2_arg1=$1
2802 fi
2803
2804 $ECHO "\
2805
2806 # Usually 'no', except on cygwin/mingw when embedded into
2807 # the cwrapper.
2808 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
2809 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
2810 # special case for '.'
2811 if test \"\$thisdir\" = \".\"; then
2812 thisdir=\`pwd\`
2813 fi
2814 # remove .libs from thisdir
2815 case \"\$thisdir\" in
2816 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
2817 $objdir ) thisdir=. ;;
2818 esac
2819 fi
2820
2821 # Try to get the absolute directory name.
2822 absdir=\`cd \"\$thisdir\" && pwd\`
2823 test -n \"\$absdir\" && thisdir=\"\$absdir\"
2824 "
2825
2826 if test "$fast_install" = yes; then
2827 $ECHO "\
2828 program=lt-'$outputname'$exeext
2829 progdir=\"\$thisdir/$objdir\"
2830
2831 if test ! -f \"\$progdir/\$program\" ||
2832 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
2833 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
2834
2835 file=\"\$\$-\$program\"
2836
2837 if test ! -d \"\$progdir\"; then
2838 $MKDIR \"\$progdir\"
2839 else
2840 $RM \"\$progdir/\$file\"
2841 fi"
2842
2843 $ECHO "\
2844
2845 # relink executable if necessary
2846 if test -n \"\$relink_command\"; then
2847 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
2848 else
2849 $ECHO \"\$relink_command_output\" >&2
2850 $RM \"\$progdir/\$file\"
2851 exit 1
2852 fi
2853 fi
2854
2855 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
2856 { $RM \"\$progdir/\$program\";
2857 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
2858 $RM \"\$progdir/\$file\"
2859 fi"
2860 else
2861 $ECHO "\
2862 program='$outputname'
2863 progdir=\"\$thisdir/$objdir\"
2864 "
2865 fi
2866
2867 $ECHO "\
2868
2869 if test -f \"\$progdir/\$program\"; then"
2870
2871 # Export our shlibpath_var if we have one.
2872 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
2873 $ECHO "\
2874 # Add our own library path to $shlibpath_var
2875 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
2876
2877 # Some systems cannot cope with colon-terminated $shlibpath_var
2878 # The second colon is a workaround for a bug in BeOS R4 sed
2879 $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
2880
2881 export $shlibpath_var
2882 "
2883 fi
2884
2885 # fixup the dll searchpath if we need to.
2886 if test -n "$dllsearchpath"; then
2887 $ECHO "\
2888 # Add the dll search path components to the executable PATH
2889 PATH=$dllsearchpath:\$PATH
2890 "
2891 fi
2892
2893 $ECHO "\
2894 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2895 # Run the actual program with our arguments.
2896 "
2897 case $host in
2898 # Backslashes separate directories on plain windows
2899 *-*-mingw | *-*-os2* | *-cegcc*)
2900 $ECHO "\
2901 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
2902 "
2903 ;;
2904
2905 *)
2906 $ECHO "\
2907 exec \"\$progdir/\$program\" \${1+\"\$@\"}
2908 "
1872909 ;;
1882910 esac
189 CC_quoted="$CC_quoted $arg"
190 done
191 case $@ in
192 # Blanks in the command may have been stripped by the calling shell,
193 # but not from the CC environment variable when configure was run.
194 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
195 # Blanks at the start of $base_compile will cause this to fail
196 # if we don't check for them as well.
197 *)
198 for z in $available_tags; do
199 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
200 # Evaluate the configuration.
201 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
202 CC_quoted=
203 for arg in $CC; do
204 # Double-quote args containing other shell metacharacters.
205 case $arg in
206 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
207 arg="\"$arg\""
208 ;;
209 esac
210 CC_quoted="$CC_quoted $arg"
211 done
212 case "$@ " in
213 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
214 # The compiler in the base compile command matches
215 # the one in the tagged configuration.
216 # Assume this is the tagged configuration we want.
217 tagname=$z
218 break
219 ;;
220 esac
221 fi
222 done
223 # If $tagname still isn't set, then no tagged configuration
224 # was found and let the user know that the "--tag" command
225 # line option must be used.
226 if test -z "$tagname"; then
227 $echo "$modename: unable to infer tagged configuration"
228 $echo "$modename: specify a tag with \`--tag'" 1>&2
229 exit $EXIT_FAILURE
230 # else
231 # $echo "$modename: using $tagname tagged configuration"
2911 $ECHO "\
2912 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
2913 exit 1
2914 fi
2915 else
2916 # The program doesn't exist.
2917 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
2918 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
2919 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
2920 exit 1
2921 fi
2922 fi\
2923 "
2924 }
2925 # end: func_emit_wrapper_part2
2926
2927
2928 # func_emit_wrapper [arg=no]
2929 #
2930 # Emit a libtool wrapper script on stdout.
2931 # Don't directly open a file because we may want to
2932 # incorporate the script contents within a cygwin/mingw
2933 # wrapper executable. Must ONLY be called from within
2934 # func_mode_link because it depends on a number of variables
2935 # set therein.
2936 #
2937 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
2938 # variable will take. If 'yes', then the emitted script
2939 # will assume that the directory in which it is stored is
2940 # the $objdir directory. This is a cygwin/mingw-specific
2941 # behavior.
2942 func_emit_wrapper ()
2943 {
2944 func_emit_wrapper_arg1=no
2945 if test -n "$1" ; then
2946 func_emit_wrapper_arg1=$1
2322947 fi
233 ;;
234 esac
235 fi
2948
2949 # split this up so that func_emit_cwrapperexe_src
2950 # can call each part independently.
2951 func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
2952 func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
2362953 }
237 # End of Shell function definitions
238 #####################################
239
240 # Darwin sucks
241 eval std_shrext=\"$shrext_cmds\"
242
243 # Parse our command line options once, thoroughly.
244 while test "$#" -gt 0
245 do
246 arg="$1"
247 shift
248
249 case $arg in
250 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
251 *) optarg= ;;
252 esac
253
254 # If the previous option needs an argument, assign it.
255 if test -n "$prev"; then
256 case $prev in
257 execute_dlfiles)
258 execute_dlfiles="$execute_dlfiles $arg"
259 ;;
260 tag)
261 tagname="$arg"
262 preserve_args="${preserve_args}=$arg"
263
264 # Check whether tagname contains only valid characters
265 case $tagname in
266 *[!-_A-Za-z0-9,/]*)
267 $echo "$progname: invalid tag name: $tagname" 1>&2
268 exit $EXIT_FAILURE
269 ;;
270 esac
271
272 case $tagname in
273 CC)
274 # Don't test for the "default" C tag, as we know, it's there, but
275 # not specially marked.
276 ;;
277 *)
278 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
279 taglist="$taglist $tagname"
280 # Evaluate the configuration.
281 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
282 else
283 $echo "$progname: ignoring unknown tag $tagname" 1>&2
284 fi
285 ;;
286 esac
287 ;;
288 *)
289 eval "$prev=\$arg"
290 ;;
291 esac
292
293 prev=
294 prevopt=
295 continue
296 fi
297
298 # Have we seen a non-optional argument yet?
299 case $arg in
300 --help)
301 show_help=yes
302 ;;
303
304 --version)
305 $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
306 $echo
307 $echo "Copyright (C) 2003 Free Software Foundation, Inc."
308 $echo "This is free software; see the source for copying conditions. There is NO"
309 $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
310 exit $EXIT_SUCCESS
311 ;;
312
313 --config)
314 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
315 # Now print the configurations for the tags.
316 for tagname in $taglist; do
317 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
318 done
319 exit $EXIT_SUCCESS
320 ;;
321
322 --debug)
323 $echo "$progname: enabling shell trace mode"
324 set -x
325 preserve_args="$preserve_args $arg"
326 ;;
327
328 --dry-run | -n)
329 run=:
330 ;;
331
332 --features)
333 $echo "host: $host"
334 if test "$build_libtool_libs" = yes; then
335 $echo "enable shared libraries"
336 else
337 $echo "disable shared libraries"
338 fi
339 if test "$build_old_libs" = yes; then
340 $echo "enable static libraries"
341 else
342 $echo "disable static libraries"
343 fi
344 exit $EXIT_SUCCESS
345 ;;
346
347 --finish) mode="finish" ;;
348
349 --mode) prevopt="--mode" prev=mode ;;
350 --mode=*) mode="$optarg" ;;
351
352 --preserve-dup-deps) duplicate_deps="yes" ;;
353
354 --quiet | --silent)
355 show=:
356 preserve_args="$preserve_args $arg"
357 ;;
358
359 --tag) prevopt="--tag" prev=tag ;;
360 --tag=*)
361 set tag "$optarg" ${1+"$@"}
362 shift
363 prev=tag
364 preserve_args="$preserve_args --tag"
365 ;;
366
367 -dlopen)
368 prevopt="-dlopen"
369 prev=execute_dlfiles
370 ;;
371
372 -*)
373 $echo "$modename: unrecognized option \`$arg'" 1>&2
374 $echo "$help" 1>&2
375 exit $EXIT_FAILURE
376 ;;
377
378 *)
379 nonopt="$arg"
380 break
381 ;;
382 esac
383 done
384
385 if test -n "$prevopt"; then
386 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
387 $echo "$help" 1>&2
388 exit $EXIT_FAILURE
389 fi
390
391 # If this variable is set in any of the actions, the command in it
392 # will be execed at the end. This prevents here-documents from being
393 # left over by shells.
394 exec_cmd=
395
396 if test -z "$show_help"; then
397
398 # Infer the operation mode.
399 if test -z "$mode"; then
400 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
401 $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
402 case $nonopt in
403 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
404 mode=link
405 for arg
406 do
407 case $arg in
408 -c)
409 mode=compile
410 break
411 ;;
412 esac
413 done
414 ;;
415 *db | *dbx | *strace | *truss)
416 mode=execute
417 ;;
418 *install*|cp|mv)
419 mode=install
420 ;;
421 *rm)
422 mode=uninstall
423 ;;
424 *)
425 # If we have no mode, but dlfiles were specified, then do execute mode.
426 test -n "$execute_dlfiles" && mode=execute
427
428 # Just use the default operation mode.
429 if test -z "$mode"; then
430 if test -n "$nonopt"; then
431 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
432 else
433 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
434 fi
435 fi
436 ;;
2954
2955
2956 # func_to_host_path arg
2957 #
2958 # Convert paths to host format when used with build tools.
2959 # Intended for use with "native" mingw (where libtool itself
2960 # is running under the msys shell), or in the following cross-
2961 # build environments:
2962 # $build $host
2963 # mingw (msys) mingw [e.g. native]
2964 # cygwin mingw
2965 # *nix + wine mingw
2966 # where wine is equipped with the `winepath' executable.
2967 # In the native mingw case, the (msys) shell automatically
2968 # converts paths for any non-msys applications it launches,
2969 # but that facility isn't available from inside the cwrapper.
2970 # Similar accommodations are necessary for $host mingw and
2971 # $build cygwin. Calling this function does no harm for other
2972 # $host/$build combinations not listed above.
2973 #
2974 # ARG is the path (on $build) that should be converted to
2975 # the proper representation for $host. The result is stored
2976 # in $func_to_host_path_result.
2977 func_to_host_path ()
2978 {
2979 func_to_host_path_result="$1"
2980 if test -n "$1" ; then
2981 case $host in
2982 *mingw* )
2983 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
2984 case $build in
2985 *mingw* ) # actually, msys
2986 # awkward: cmd appends spaces to result
2987 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
2988 func_to_host_path_tmp1=`( cmd //c echo "$1" |\
2989 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
2990 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2991 $SED -e "$lt_sed_naive_backslashify"`
2992 ;;
2993 *cygwin* )
2994 func_to_host_path_tmp1=`cygpath -w "$1"`
2995 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2996 $SED -e "$lt_sed_naive_backslashify"`
2997 ;;
2998 * )
2999 # Unfortunately, winepath does not exit with a non-zero
3000 # error code, so we are forced to check the contents of
3001 # stdout. On the other hand, if the command is not
3002 # found, the shell will set an exit code of 127 and print
3003 # *an error message* to stdout. So we must check for both
3004 # error code of zero AND non-empty stdout, which explains
3005 # the odd construction:
3006 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
3007 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
3008 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
3009 $SED -e "$lt_sed_naive_backslashify"`
3010 else
3011 # Allow warning below.
3012 func_to_host_path_result=""
3013 fi
3014 ;;
3015 esac
3016 if test -z "$func_to_host_path_result" ; then
3017 func_error "Could not determine host path corresponding to"
3018 func_error " '$1'"
3019 func_error "Continuing, but uninstalled executables may not work."
3020 # Fallback:
3021 func_to_host_path_result="$1"
3022 fi
3023 ;;
4373024 esac
4383025 fi
439
440 # Only execute mode is allowed to have -dlopen flags.
441 if test -n "$execute_dlfiles" && test "$mode" != execute; then
442 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
443 $echo "$help" 1>&2
444 exit $EXIT_FAILURE
3026 }
3027 # end: func_to_host_path
3028
3029 # func_to_host_pathlist arg
3030 #
3031 # Convert pathlists to host format when used with build tools.
3032 # See func_to_host_path(), above. This function supports the
3033 # following $build/$host combinations (but does no harm for
3034 # combinations not listed here):
3035 # $build $host
3036 # mingw (msys) mingw [e.g. native]
3037 # cygwin mingw
3038 # *nix + wine mingw
3039 #
3040 # Path separators are also converted from $build format to
3041 # $host format. If ARG begins or ends with a path separator
3042 # character, it is preserved (but converted to $host format)
3043 # on output.
3044 #
3045 # ARG is a pathlist (on $build) that should be converted to
3046 # the proper representation on $host. The result is stored
3047 # in $func_to_host_pathlist_result.
3048 func_to_host_pathlist ()
3049 {
3050 func_to_host_pathlist_result="$1"
3051 if test -n "$1" ; then
3052 case $host in
3053 *mingw* )
3054 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3055 # Remove leading and trailing path separator characters from
3056 # ARG. msys behavior is inconsistent here, cygpath turns them
3057 # into '.;' and ';.', and winepath ignores them completely.
3058 func_to_host_pathlist_tmp2="$1"
3059 # Once set for this call, this variable should not be
3060 # reassigned. It is used in tha fallback case.
3061 func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
3062 $SED -e 's|^:*||' -e 's|:*$||'`
3063 case $build in
3064 *mingw* ) # Actually, msys.
3065 # Awkward: cmd appends spaces to result.
3066 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
3067 func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
3068 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
3069 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3070 $SED -e "$lt_sed_naive_backslashify"`
3071 ;;
3072 *cygwin* )
3073 func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
3074 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3075 $SED -e "$lt_sed_naive_backslashify"`
3076 ;;
3077 * )
3078 # unfortunately, winepath doesn't convert pathlists
3079 func_to_host_pathlist_result=""
3080 func_to_host_pathlist_oldIFS=$IFS
3081 IFS=:
3082 for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
3083 IFS=$func_to_host_pathlist_oldIFS
3084 if test -n "$func_to_host_pathlist_f" ; then
3085 func_to_host_path "$func_to_host_pathlist_f"
3086 if test -n "$func_to_host_path_result" ; then
3087 if test -z "$func_to_host_pathlist_result" ; then
3088 func_to_host_pathlist_result="$func_to_host_path_result"
3089 else
3090 func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
3091 fi
3092 fi
3093 fi
3094 IFS=:
3095 done
3096 IFS=$func_to_host_pathlist_oldIFS
3097 ;;
3098 esac
3099 if test -z "$func_to_host_pathlist_result" ; then
3100 func_error "Could not determine the host path(s) corresponding to"
3101 func_error " '$1'"
3102 func_error "Continuing, but uninstalled executables may not work."
3103 # Fallback. This may break if $1 contains DOS-style drive
3104 # specifications. The fix is not to complicate the expression
3105 # below, but for the user to provide a working wine installation
3106 # with winepath so that path translation in the cross-to-mingw
3107 # case works properly.
3108 lt_replace_pathsep_nix_to_dos="s|:|;|g"
3109 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
3110 $SED -e "$lt_replace_pathsep_nix_to_dos"`
3111 fi
3112 # Now, add the leading and trailing path separators back
3113 case "$1" in
3114 :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
3115 ;;
3116 esac
3117 case "$1" in
3118 *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
3119 ;;
3120 esac
3121 ;;
3122 esac
4453123 fi
446
447 # Change the help message to a mode-specific one.
448 generic_help="$help"
449 help="Try \`$modename --help --mode=$mode' for more information."
450
451 # These modes are in order of execution frequency so that they run quickly.
452 case $mode in
453 # libtool compile mode
454 compile)
455 modename="$modename: compile"
456 # Get the compilation command and the source file.
457 base_compile=
458 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
459 suppress_opt=yes
460 suppress_output=
461 arg_mode=normal
462 libobj=
463 later=
464
465 for arg
466 do
467 case "$arg_mode" in
468 arg )
469 # do not "continue". Instead, add this to base_compile
470 lastarg="$arg"
471 arg_mode=normal
472 ;;
473
474 target )
475 libobj="$arg"
476 arg_mode=normal
477 continue
478 ;;
479
480 normal )
481 # Accept any command-line options.
482 case $arg in
483 -o)
484 if test -n "$libobj" ; then
485 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
486 exit $EXIT_FAILURE
487 fi
488 arg_mode=target
489 continue
490 ;;
491
492 -static | -prefer-pic | -prefer-non-pic)
493 later="$later $arg"
494 continue
495 ;;
496
497 -no-suppress)
498 suppress_opt=no
499 continue
500 ;;
501
502 -Xcompiler)
503 arg_mode=arg # the next one goes into the "base_compile" arg list
504 continue # The current "srcfile" will either be retained or
505 ;; # replaced later. I would guess that would be a bug.
506
507 -Wc,*)
508 args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
509 lastarg=
510 save_ifs="$IFS"; IFS=','
511 for arg in $args; do
512 IFS="$save_ifs"
513
514 # Double-quote args containing other shell metacharacters.
515 # Many Bourne shells cannot handle close brackets correctly
516 # in scan sets, so we specify it separately.
517 case $arg in
518 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
519 arg="\"$arg\""
520 ;;
3124 }
3125 # end: func_to_host_pathlist
3126
3127 # func_emit_cwrapperexe_src
3128 # emit the source code for a wrapper executable on stdout
3129 # Must ONLY be called from within func_mode_link because
3130 # it depends on a number of variable set therein.
3131 func_emit_cwrapperexe_src ()
3132 {
3133 cat <<EOF
3134
3135 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
3136 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
3137
3138 The $output program cannot be directly executed until all the libtool
3139 libraries that it depends on are installed.
3140
3141 This wrapper executable should never be moved out of the build directory.
3142 If it is, it will not operate correctly.
3143
3144 Currently, it simply execs the wrapper *script* "$SHELL $output",
3145 but could eventually absorb all of the scripts functionality and
3146 exec $objdir/$outputname directly.
3147 */
3148 EOF
3149 cat <<"EOF"
3150 #include <stdio.h>
3151 #include <stdlib.h>
3152 #ifdef _MSC_VER
3153 # include <direct.h>
3154 # include <process.h>
3155 # include <io.h>
3156 # define setmode _setmode
3157 #else
3158 # include <unistd.h>
3159 # include <stdint.h>
3160 # ifdef __CYGWIN__
3161 # include <io.h>
3162 # define HAVE_SETENV
3163 # ifdef __STRICT_ANSI__
3164 char *realpath (const char *, char *);
3165 int putenv (char *);
3166 int setenv (const char *, const char *, int);
3167 # endif
3168 # endif
3169 #endif
3170 #include <malloc.h>
3171 #include <stdarg.h>
3172 #include <assert.h>
3173 #include <string.h>
3174 #include <ctype.h>
3175 #include <errno.h>
3176 #include <fcntl.h>
3177 #include <sys/stat.h>
3178
3179 #if defined(PATH_MAX)
3180 # define LT_PATHMAX PATH_MAX
3181 #elif defined(MAXPATHLEN)
3182 # define LT_PATHMAX MAXPATHLEN
3183 #else
3184 # define LT_PATHMAX 1024
3185 #endif
3186
3187 #ifndef S_IXOTH
3188 # define S_IXOTH 0
3189 #endif
3190 #ifndef S_IXGRP
3191 # define S_IXGRP 0
3192 #endif
3193
3194 #ifdef _MSC_VER
3195 # define S_IXUSR _S_IEXEC
3196 # define stat _stat
3197 # ifndef _INTPTR_T_DEFINED
3198 # define intptr_t int
3199 # endif
3200 #endif
3201
3202 #ifndef DIR_SEPARATOR
3203 # define DIR_SEPARATOR '/'
3204 # define PATH_SEPARATOR ':'
3205 #endif
3206
3207 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
3208 defined (__OS2__)
3209 # define HAVE_DOS_BASED_FILE_SYSTEM
3210 # define FOPEN_WB "wb"
3211 # ifndef DIR_SEPARATOR_2
3212 # define DIR_SEPARATOR_2 '\\'
3213 # endif
3214 # ifndef PATH_SEPARATOR_2
3215 # define PATH_SEPARATOR_2 ';'
3216 # endif
3217 #endif
3218
3219 #ifndef DIR_SEPARATOR_2
3220 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
3221 #else /* DIR_SEPARATOR_2 */
3222 # define IS_DIR_SEPARATOR(ch) \
3223 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
3224 #endif /* DIR_SEPARATOR_2 */
3225
3226 #ifndef PATH_SEPARATOR_2
3227 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
3228 #else /* PATH_SEPARATOR_2 */
3229 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
3230 #endif /* PATH_SEPARATOR_2 */
3231
3232 #ifdef __CYGWIN__
3233 # define FOPEN_WB "wb"
3234 #endif
3235
3236 #ifndef FOPEN_WB
3237 # define FOPEN_WB "w"
3238 #endif
3239 #ifndef _O_BINARY
3240 # define _O_BINARY 0
3241 #endif
3242
3243 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
3244 #define XFREE(stale) do { \
3245 if (stale) { free ((void *) stale); stale = 0; } \
3246 } while (0)
3247
3248 #undef LTWRAPPER_DEBUGPRINTF
3249 #if defined DEBUGWRAPPER
3250 # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
3251 static void
3252 ltwrapper_debugprintf (const char *fmt, ...)
3253 {
3254 va_list args;
3255 va_start (args, fmt);
3256 (void) vfprintf (stderr, fmt, args);
3257 va_end (args);
3258 }
3259 #else
3260 # define LTWRAPPER_DEBUGPRINTF(args)
3261 #endif
3262
3263 const char *program_name = NULL;
3264
3265 void *xmalloc (size_t num);
3266 char *xstrdup (const char *string);
3267 const char *base_name (const char *name);
3268 char *find_executable (const char *wrapper);
3269 char *chase_symlinks (const char *pathspec);
3270 int make_executable (const char *path);
3271 int check_executable (const char *path);
3272 char *strendzap (char *str, const char *pat);
3273 void lt_fatal (const char *message, ...);
3274 void lt_setenv (const char *name, const char *value);
3275 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
3276 void lt_opt_process_env_set (const char *arg);
3277 void lt_opt_process_env_prepend (const char *arg);
3278 void lt_opt_process_env_append (const char *arg);
3279 int lt_split_name_value (const char *arg, char** name, char** value);
3280 void lt_update_exe_path (const char *name, const char *value);
3281 void lt_update_lib_path (const char *name, const char *value);
3282
3283 static const char *script_text_part1 =
3284 EOF
3285
3286 func_emit_wrapper_part1 yes |
3287 $SED -e 's/\([\\"]\)/\\\1/g' \
3288 -e 's/^/ "/' -e 's/$/\\n"/'
3289 echo ";"
3290 cat <<EOF
3291
3292 static const char *script_text_part2 =
3293 EOF
3294 func_emit_wrapper_part2 yes |
3295 $SED -e 's/\([\\"]\)/\\\1/g' \
3296 -e 's/^/ "/' -e 's/$/\\n"/'
3297 echo ";"
3298
3299 cat <<EOF
3300 const char * MAGIC_EXE = "$magic_exe";
3301 const char * LIB_PATH_VARNAME = "$shlibpath_var";
3302 EOF
3303
3304 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3305 func_to_host_pathlist "$temp_rpath"
3306 cat <<EOF
3307 const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
3308 EOF
3309 else
3310 cat <<"EOF"
3311 const char * LIB_PATH_VALUE = "";
3312 EOF
3313 fi
3314
3315 if test -n "$dllsearchpath"; then
3316 func_to_host_pathlist "$dllsearchpath:"
3317 cat <<EOF
3318 const char * EXE_PATH_VARNAME = "PATH";
3319 const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
3320 EOF
3321 else
3322 cat <<"EOF"
3323 const char * EXE_PATH_VARNAME = "";
3324 const char * EXE_PATH_VALUE = "";
3325 EOF
3326 fi
3327
3328 if test "$fast_install" = yes; then
3329 cat <<EOF
3330 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
3331 EOF
3332 else
3333 cat <<EOF
3334 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
3335 EOF
3336 fi
3337
3338
3339 cat <<"EOF"
3340
3341 #define LTWRAPPER_OPTION_PREFIX "--lt-"
3342 #define LTWRAPPER_OPTION_PREFIX_LENGTH 5
3343
3344 static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
3345 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
3346
3347 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
3348
3349 static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
3350 static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
3351 /* argument is putenv-style "foo=bar", value of foo is set to bar */
3352
3353 static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
3354 static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
3355 /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
3356
3357 static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
3358 static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
3359 /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
3360
3361 int
3362 main (int argc, char *argv[])
3363 {
3364 char **newargz;
3365 int newargc;
3366 char *tmp_pathspec;
3367 char *actual_cwrapper_path;
3368 char *actual_cwrapper_name;
3369 char *target_name;
3370 char *lt_argv_zero;
3371 intptr_t rval = 127;
3372
3373 int i;
3374
3375 program_name = (char *) xstrdup (base_name (argv[0]));
3376 LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
3377 LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
3378
3379 /* very simple arg parsing; don't want to rely on getopt */
3380 for (i = 1; i < argc; i++)
3381 {
3382 if (strcmp (argv[i], dumpscript_opt) == 0)
3383 {
3384 EOF
3385 case "$host" in
3386 *mingw* | *cygwin* )
3387 # make stdout use "unix" line endings
3388 echo " setmode(1,_O_BINARY);"
3389 ;;
3390 esac
3391
3392 cat <<"EOF"
3393 printf ("%s", script_text_part1);
3394 printf ("%s", script_text_part2);
3395 return 0;
3396 }
3397 }
3398
3399 newargz = XMALLOC (char *, argc + 1);
3400 tmp_pathspec = find_executable (argv[0]);
3401 if (tmp_pathspec == NULL)
3402 lt_fatal ("Couldn't find %s", argv[0]);
3403 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
3404 tmp_pathspec));
3405
3406 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
3407 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
3408 actual_cwrapper_path));
3409 XFREE (tmp_pathspec);
3410
3411 actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
3412 strendzap (actual_cwrapper_path, actual_cwrapper_name);
3413
3414 /* wrapper name transforms */
3415 strendzap (actual_cwrapper_name, ".exe");
3416 tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
3417 XFREE (actual_cwrapper_name);
3418 actual_cwrapper_name = tmp_pathspec;
3419 tmp_pathspec = 0;
3420
3421 /* target_name transforms -- use actual target program name; might have lt- prefix */
3422 target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
3423 strendzap (target_name, ".exe");
3424 tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
3425 XFREE (target_name);
3426 target_name = tmp_pathspec;
3427 tmp_pathspec = 0;
3428
3429 LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
3430 target_name));
3431 EOF
3432
3433 cat <<EOF
3434 newargz[0] =
3435 XMALLOC (char, (strlen (actual_cwrapper_path) +
3436 strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
3437 strcpy (newargz[0], actual_cwrapper_path);
3438 strcat (newargz[0], "$objdir");
3439 strcat (newargz[0], "/");
3440 EOF
3441
3442 cat <<"EOF"
3443 /* stop here, and copy so we don't have to do this twice */
3444 tmp_pathspec = xstrdup (newargz[0]);
3445
3446 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
3447 strcat (newargz[0], actual_cwrapper_name);
3448
3449 /* DO want the lt- prefix here if it exists, so use target_name */
3450 lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
3451 XFREE (tmp_pathspec);
3452 tmp_pathspec = NULL;
3453 EOF
3454
3455 case $host_os in
3456 mingw*)
3457 cat <<"EOF"
3458 {
3459 char* p;
3460 while ((p = strchr (newargz[0], '\\')) != NULL)
3461 {
3462 *p = '/';
3463 }
3464 while ((p = strchr (lt_argv_zero, '\\')) != NULL)
3465 {
3466 *p = '/';
3467 }
3468 }
3469 EOF
3470 ;;
5213471 esac
522 lastarg="$lastarg $arg"
523 done
524 IFS="$save_ifs"
525 lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
526
527 # Add the arguments to base_compile.
528 base_compile="$base_compile $lastarg"
529 continue
530 ;;
531
532 * )
533 # Accept the current argument as the source file.
534 # The previous "srcfile" becomes the current argument.
535 #
536 lastarg="$srcfile"
537 srcfile="$arg"
538 ;;
539 esac # case $arg
540 ;;
541 esac # case $arg_mode
542
543 # Aesthetically quote the previous argument.
544 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
545
546 case $lastarg in
547 # Double-quote args containing other shell metacharacters.
548 # Many Bourne shells cannot handle close brackets correctly
549 # in scan sets, so we specify it separately.
550 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
551 lastarg="\"$lastarg\""
552 ;;
553 esac
554
555 base_compile="$base_compile $lastarg"
556 done # for arg
557
558 case $arg_mode in
559 arg)
560 $echo "$modename: you must specify an argument for -Xcompile"
561 exit $EXIT_FAILURE
562 ;;
563 target)
564 $echo "$modename: you must specify a target with \`-o'" 1>&2
565 exit $EXIT_FAILURE
566 ;;
567 *)
568 # Get the name of the library object.
569 [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
570 ;;
571 esac
572
573 # Recognize several different file suffixes.
574 # If the user specifies -o file.o, it is replaced with file.lo
575 xform='[cCFSifmso]'
576 case $libobj in
577 *.ada) xform=ada ;;
578 *.adb) xform=adb ;;
579 *.ads) xform=ads ;;
580 *.asm) xform=asm ;;
581 *.c++) xform=c++ ;;
582 *.cc) xform=cc ;;
583 *.ii) xform=ii ;;
584 *.class) xform=class ;;
585 *.cpp) xform=cpp ;;
586 *.cxx) xform=cxx ;;
587 *.f90) xform=f90 ;;
588 *.for) xform=for ;;
589 *.java) xform=java ;;
590 esac
591
592 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
593
594 case $libobj in
595 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
596 *)
597 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
598 exit $EXIT_FAILURE
599 ;;
600 esac
601
602 func_infer_tag $base_compile
603
604 for arg in $later; do
605 case $arg in
606 -static)
607 build_old_libs=yes
608 continue
609 ;;
610
611 -prefer-pic)
612 pic_mode=yes
613 continue
614 ;;
615
616 -prefer-non-pic)
617 pic_mode=no
618 continue
619 ;;
620 esac
621 done
622
623 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
624 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
625 if test "X$xdir" = "X$obj"; then
626 xdir=
627 else
628 xdir=$xdir/
629 fi
630 lobj=${xdir}$objdir/$objname
631
632 if test -z "$base_compile"; then
633 $echo "$modename: you must specify a compilation command" 1>&2
634 $echo "$help" 1>&2
635 exit $EXIT_FAILURE
636 fi
637
638 # Delete any leftover library objects.
639 if test "$build_old_libs" = yes; then
640 removelist="$obj $lobj $libobj ${libobj}T"
641 else
642 removelist="$lobj $libobj ${libobj}T"
643 fi
644
645 $run $rm $removelist
646 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
647
648 # On Cygwin there's no "real" PIC flag so we must build both object types
649 case $host_os in
650 cygwin* | mingw* | pw32* | os2*)
651 pic_mode=default
652 ;;
653 esac
654 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
655 # non-PIC code in shared libraries is not supported
656 pic_mode=default
657 fi
658
659 # Calculate the filename of the output object if compiler does
660 # not support -o with -c
661 if test "$compiler_c_o" = no; then
662 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
663 lockfile="$output_obj.lock"
664 removelist="$removelist $output_obj $lockfile"
665 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
666 else
667 output_obj=
668 need_locks=no
669 lockfile=
670 fi
671
672 # Lock this critical section if it is needed
673 # We use this script file to make the link, it avoids creating a new file
674 if test "$need_locks" = yes; then
675 until $run ln "$progpath" "$lockfile" 2>/dev/null; do
676 $show "Waiting for $lockfile to be removed"
677 sleep 2
678 done
679 elif test "$need_locks" = warn; then
680 if test -f "$lockfile"; then
681 $echo "\
682 *** ERROR, $lockfile exists and contains:
683 `cat $lockfile 2>/dev/null`
684
685 This indicates that another process is trying to use the same
686 temporary object file, and libtool could not work around it because
687 your compiler does not support \`-c' and \`-o' together. If you
688 repeat this compilation, it may succeed, by chance, but you had better
689 avoid parallel builds (make -j) in this platform, or get a better
690 compiler."
691
692 $run $rm $removelist
693 exit $EXIT_FAILURE
694 fi
695 $echo $srcfile > "$lockfile"
696 fi
697
698 if test -n "$fix_srcfile_path"; then
699 eval srcfile=\"$fix_srcfile_path\"
700 fi
701
702 $run $rm "$libobj" "${libobj}T"
703
704 # Create a libtool object file (analogous to a ".la" file),
705 # but don't create it if we're doing a dry run.
706 test -z "$run" && cat > ${libobj}T <<EOF
707 # $libobj - a libtool object file
708 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
709 #
710 # Please DO NOT delete this file!
711 # It is necessary for linking the library.
712
713 # Name of the PIC object.
3472
3473 cat <<"EOF"
3474 XFREE (target_name);
3475 XFREE (actual_cwrapper_path);
3476 XFREE (actual_cwrapper_name);
3477
3478 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
3479 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
3480 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
3481 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
3482
3483 newargc=0;
3484 for (i = 1; i < argc; i++)
3485 {
3486 if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
3487 {
3488 if (argv[i][env_set_opt_len] == '=')
3489 {
3490 const char *p = argv[i] + env_set_opt_len + 1;
3491 lt_opt_process_env_set (p);
3492 }
3493 else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
3494 {
3495 lt_opt_process_env_set (argv[++i]); /* don't copy */
3496 }
3497 else
3498 lt_fatal ("%s missing required argument", env_set_opt);
3499 continue;
3500 }
3501 if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
3502 {
3503 if (argv[i][env_prepend_opt_len] == '=')
3504 {
3505 const char *p = argv[i] + env_prepend_opt_len + 1;
3506 lt_opt_process_env_prepend (p);
3507 }
3508 else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
3509 {
3510 lt_opt_process_env_prepend (argv[++i]); /* don't copy */
3511 }
3512 else
3513 lt_fatal ("%s missing required argument", env_prepend_opt);
3514 continue;
3515 }
3516 if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
3517 {
3518 if (argv[i][env_append_opt_len] == '=')
3519 {
3520 const char *p = argv[i] + env_append_opt_len + 1;
3521 lt_opt_process_env_append (p);
3522 }
3523 else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
3524 {
3525 lt_opt_process_env_append (argv[++i]); /* don't copy */
3526 }
3527 else
3528 lt_fatal ("%s missing required argument", env_append_opt);
3529 continue;
3530 }
3531 if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
3532 {
3533 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
3534 namespace, but it is not one of the ones we know about and
3535 have already dealt with, above (inluding dump-script), then
3536 report an error. Otherwise, targets might begin to believe
3537 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
3538 namespace. The first time any user complains about this, we'll
3539 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
3540 or a configure.ac-settable value.
3541 */
3542 lt_fatal ("Unrecognized option in %s namespace: '%s'",
3543 ltwrapper_option_prefix, argv[i]);
3544 }
3545 /* otherwise ... */
3546 newargz[++newargc] = xstrdup (argv[i]);
3547 }
3548 newargz[++newargc] = NULL;
3549
3550 LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
3551 for (i = 0; i < newargc; i++)
3552 {
3553 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
3554 }
3555
7143556 EOF
7153557
716 # Only build a PIC object if we are building libtool libraries.
717 if test "$build_libtool_libs" = yes; then
718 # Without this assignment, base_compile gets emptied.
719 fbsd_hideous_sh_bug=$base_compile
720
721 if test "$pic_mode" != no; then
722 command="$base_compile $srcfile $pic_flag"
3558 case $host_os in
3559 mingw*)
3560 cat <<"EOF"
3561 /* execv doesn't actually work on mingw as expected on unix */
3562 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
3563 if (rval == -1)
3564 {
3565 /* failed to start process */
3566 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
3567 return 127;
3568 }
3569 return rval;
3570 EOF
3571 ;;
3572 *)
3573 cat <<"EOF"
3574 execv (lt_argv_zero, newargz);
3575 return rval; /* =127, but avoids unused variable warning */
3576 EOF
3577 ;;
3578 esac
3579
3580 cat <<"EOF"
3581 }
3582
3583 void *
3584 xmalloc (size_t num)
3585 {
3586 void *p = (void *) malloc (num);
3587 if (!p)
3588 lt_fatal ("Memory exhausted");
3589
3590 return p;
3591 }
3592
3593 char *
3594 xstrdup (const char *string)
3595 {
3596 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
3597 string) : NULL;
3598 }
3599
3600 const char *
3601 base_name (const char *name)
3602 {
3603 const char *base;
3604
3605 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3606 /* Skip over the disk name in MSDOS pathnames. */
3607 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
3608 name += 2;
3609 #endif
3610
3611 for (base = name; *name; name++)
3612 if (IS_DIR_SEPARATOR (*name))
3613 base = name + 1;
3614 return base;
3615 }
3616
3617 int
3618 check_executable (const char *path)
3619 {
3620 struct stat st;
3621
3622 LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
3623 path ? (*path ? path : "EMPTY!") : "NULL!"));
3624 if ((!path) || (!*path))
3625 return 0;
3626
3627 if ((stat (path, &st) >= 0)
3628 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
3629 return 1;
3630 else
3631 return 0;
3632 }
3633
3634 int
3635 make_executable (const char *path)
3636 {
3637 int rval = 0;
3638 struct stat st;
3639
3640 LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
3641 path ? (*path ? path : "EMPTY!") : "NULL!"));
3642 if ((!path) || (!*path))
3643 return 0;
3644
3645 if (stat (path, &st) >= 0)
3646 {
3647 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
3648 }
3649 return rval;
3650 }
3651
3652 /* Searches for the full path of the wrapper. Returns
3653 newly allocated full path name if found, NULL otherwise
3654 Does not chase symlinks, even on platforms that support them.
3655 */
3656 char *
3657 find_executable (const char *wrapper)
3658 {
3659 int has_slash = 0;
3660 const char *p;
3661 const char *p_next;
3662 /* static buffer for getcwd */
3663 char tmp[LT_PATHMAX + 1];
3664 int tmp_len;
3665 char *concat_name;
3666
3667 LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
3668 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
3669
3670 if ((wrapper == NULL) || (*wrapper == '\0'))
3671 return NULL;
3672
3673 /* Absolute path? */
3674 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3675 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
3676 {
3677 concat_name = xstrdup (wrapper);
3678 if (check_executable (concat_name))
3679 return concat_name;
3680 XFREE (concat_name);
3681 }
3682 else
3683 {
3684 #endif
3685 if (IS_DIR_SEPARATOR (wrapper[0]))
3686 {
3687 concat_name = xstrdup (wrapper);
3688 if (check_executable (concat_name))
3689 return concat_name;
3690 XFREE (concat_name);
3691 }
3692 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3693 }
3694 #endif
3695
3696 for (p = wrapper; *p; p++)
3697 if (*p == '/')
3698 {
3699 has_slash = 1;
3700 break;
3701 }
3702 if (!has_slash)
3703 {
3704 /* no slashes; search PATH */
3705 const char *path = getenv ("PATH");
3706 if (path != NULL)
3707 {
3708 for (p = path; *p; p = p_next)
3709 {
3710 const char *q;
3711 size_t p_len;
3712 for (q = p; *q; q++)
3713 if (IS_PATH_SEPARATOR (*q))
3714 break;
3715 p_len = q - p;
3716 p_next = (*q == '\0' ? q : q + 1);
3717 if (p_len == 0)
3718 {
3719 /* empty path: current directory */
3720 if (getcwd (tmp, LT_PATHMAX) == NULL)
3721 lt_fatal ("getcwd failed");
3722 tmp_len = strlen (tmp);
3723 concat_name =
3724 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
3725 memcpy (concat_name, tmp, tmp_len);
3726 concat_name[tmp_len] = '/';
3727 strcpy (concat_name + tmp_len + 1, wrapper);
3728 }
3729 else
3730 {
3731 concat_name =
3732 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
3733 memcpy (concat_name, p, p_len);
3734 concat_name[p_len] = '/';
3735 strcpy (concat_name + p_len + 1, wrapper);
3736 }
3737 if (check_executable (concat_name))
3738 return concat_name;
3739 XFREE (concat_name);
3740 }
3741 }
3742 /* not found in PATH; assume curdir */
3743 }
3744 /* Relative path | not found in path: prepend cwd */
3745 if (getcwd (tmp, LT_PATHMAX) == NULL)
3746 lt_fatal ("getcwd failed");
3747 tmp_len = strlen (tmp);
3748 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
3749 memcpy (concat_name, tmp, tmp_len);
3750 concat_name[tmp_len] = '/';
3751 strcpy (concat_name + tmp_len + 1, wrapper);
3752
3753 if (check_executable (concat_name))
3754 return concat_name;
3755 XFREE (concat_name);
3756 return NULL;
3757 }
3758
3759 char *
3760 chase_symlinks (const char *pathspec)
3761 {
3762 #ifndef S_ISLNK
3763 return xstrdup (pathspec);
3764 #else
3765 char buf[LT_PATHMAX];
3766 struct stat s;
3767 char *tmp_pathspec = xstrdup (pathspec);
3768 char *p;
3769 int has_symlinks = 0;
3770 while (strlen (tmp_pathspec) && !has_symlinks)
3771 {
3772 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
3773 tmp_pathspec));
3774 if (lstat (tmp_pathspec, &s) == 0)
3775 {
3776 if (S_ISLNK (s.st_mode) != 0)
3777 {
3778 has_symlinks = 1;
3779 break;
3780 }
3781
3782 /* search backwards for last DIR_SEPARATOR */
3783 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
3784 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
3785 p--;
3786 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
3787 {
3788 /* no more DIR_SEPARATORS left */
3789 break;
3790 }
3791 *p = '\0';
3792 }
7233793 else
724 # Don't build PIC code
725 command="$base_compile $srcfile"
726 fi
727
728 if test ! -d "${xdir}$objdir"; then
729 $show "$mkdir ${xdir}$objdir"
730 $run $mkdir ${xdir}$objdir
731 status=$?
732 if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
733 exit $status
734 fi
735 fi
736
737 if test -z "$output_obj"; then
738 # Place PIC objects in $objdir
739 command="$command -o $lobj"
740 fi
741
742 $run $rm "$lobj" "$output_obj"
743
744 $show "$command"
745 if $run eval "$command"; then :
3794 {
3795 char *errstr = strerror (errno);
3796 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
3797 }
3798 }
3799 XFREE (tmp_pathspec);
3800
3801 if (!has_symlinks)
3802 {
3803 return xstrdup (pathspec);
3804 }
3805
3806 tmp_pathspec = realpath (pathspec, buf);
3807 if (tmp_pathspec == 0)
3808 {
3809 lt_fatal ("Could not follow symlinks for %s", pathspec);
3810 }
3811 return xstrdup (tmp_pathspec);
3812 #endif
3813 }
3814
3815 char *
3816 strendzap (char *str, const char *pat)
3817 {
3818 size_t len, patlen;
3819
3820 assert (str != NULL);
3821 assert (pat != NULL);
3822
3823 len = strlen (str);
3824 patlen = strlen (pat);
3825
3826 if (patlen <= len)
3827 {
3828 str += len - patlen;
3829 if (strcmp (str, pat) == 0)
3830 *str = '\0';
3831 }
3832 return str;
3833 }
3834
3835 static void
3836 lt_error_core (int exit_status, const char *mode,
3837 const char *message, va_list ap)
3838 {
3839 fprintf (stderr, "%s: %s: ", program_name, mode);
3840 vfprintf (stderr, message, ap);
3841 fprintf (stderr, ".\n");
3842
3843 if (exit_status >= 0)
3844 exit (exit_status);
3845 }
3846
3847 void
3848 lt_fatal (const char *message, ...)
3849 {
3850 va_list ap;
3851 va_start (ap, message);
3852 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
3853 va_end (ap);
3854 }
3855
3856 void
3857 lt_setenv (const char *name, const char *value)
3858 {
3859 LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
3860 (name ? name : "<NULL>"),
3861 (value ? value : "<NULL>")));
3862 {
3863 #ifdef HAVE_SETENV
3864 /* always make a copy, for consistency with !HAVE_SETENV */
3865 char *str = xstrdup (value);
3866 setenv (name, str, 1);
3867 #else
3868 int len = strlen (name) + 1 + strlen (value) + 1;
3869 char *str = XMALLOC (char, len);
3870 sprintf (str, "%s=%s", name, value);
3871 if (putenv (str) != EXIT_SUCCESS)
3872 {
3873 XFREE (str);
3874 }
3875 #endif
3876 }
3877 }
3878
3879 char *
3880 lt_extend_str (const char *orig_value, const char *add, int to_end)
3881 {
3882 char *new_value;
3883 if (orig_value && *orig_value)
3884 {
3885 int orig_value_len = strlen (orig_value);
3886 int add_len = strlen (add);
3887 new_value = XMALLOC (char, add_len + orig_value_len + 1);
3888 if (to_end)
3889 {
3890 strcpy (new_value, orig_value);
3891 strcpy (new_value + orig_value_len, add);
3892 }
7463893 else
747 test -n "$output_obj" && $run $rm $removelist
748 exit $EXIT_FAILURE
749 fi
750
751 if test "$need_locks" = warn &&
752 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
753 $echo "\
754 *** ERROR, $lockfile contains:
755 `cat $lockfile 2>/dev/null`
756
757 but it should contain:
758 $srcfile
759
760 This indicates that another process is trying to use the same
761 temporary object file, and libtool could not work around it because
762 your compiler does not support \`-c' and \`-o' together. If you
763 repeat this compilation, it may succeed, by chance, but you had better
764 avoid parallel builds (make -j) in this platform, or get a better
765 compiler."
766
767 $run $rm $removelist
768 exit $EXIT_FAILURE
769 fi
770
771 # Just move the object if needed, then go on to compile the next one
772 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
773 $show "$mv $output_obj $lobj"
774 if $run $mv $output_obj $lobj; then :
775 else
776 error=$?
777 $run $rm $removelist
778 exit $error
779 fi
780 fi
781
782 # Append the name of the PIC object to the libtool object file.
783 test -z "$run" && cat >> ${libobj}T <<EOF
784 pic_object='$objdir/$objname'
3894 {
3895 strcpy (new_value, add);
3896 strcpy (new_value + add_len, orig_value);
3897 }
3898 }
3899 else
3900 {
3901 new_value = xstrdup (add);
3902 }
3903 return new_value;
3904 }
3905
3906 int
3907 lt_split_name_value (const char *arg, char** name, char** value)
3908 {
3909 const char *p;
3910 int len;
3911 if (!arg || !*arg)
3912 return 1;
3913
3914 p = strchr (arg, (int)'=');
3915
3916 if (!p)
3917 return 1;
3918
3919 *value = xstrdup (++p);
3920
3921 len = strlen (arg) - strlen (*value);
3922 *name = XMALLOC (char, len);
3923 strncpy (*name, arg, len-1);
3924 (*name)[len - 1] = '\0';
3925
3926 return 0;
3927 }
3928
3929 void
3930 lt_opt_process_env_set (const char *arg)
3931 {
3932 char *name = NULL;
3933 char *value = NULL;
3934
3935 if (lt_split_name_value (arg, &name, &value) != 0)
3936 {
3937 XFREE (name);
3938 XFREE (value);
3939 lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
3940 }
3941
3942 lt_setenv (name, value);
3943 XFREE (name);
3944 XFREE (value);
3945 }
3946
3947 void
3948 lt_opt_process_env_prepend (const char *arg)
3949 {
3950 char *name = NULL;
3951 char *value = NULL;
3952 char *new_value = NULL;
3953
3954 if (lt_split_name_value (arg, &name, &value) != 0)
3955 {
3956 XFREE (name);
3957 XFREE (value);
3958 lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
3959 }
3960
3961 new_value = lt_extend_str (getenv (name), value, 0);
3962 lt_setenv (name, new_value);
3963 XFREE (new_value);
3964 XFREE (name);
3965 XFREE (value);
3966 }
3967
3968 void
3969 lt_opt_process_env_append (const char *arg)
3970 {
3971 char *name = NULL;
3972 char *value = NULL;
3973 char *new_value = NULL;
3974
3975 if (lt_split_name_value (arg, &name, &value) != 0)
3976 {
3977 XFREE (name);
3978 XFREE (value);
3979 lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
3980 }
3981
3982 new_value = lt_extend_str (getenv (name), value, 1);
3983 lt_setenv (name, new_value);
3984 XFREE (new_value);
3985 XFREE (name);
3986 XFREE (value);
3987 }
3988
3989 void
3990 lt_update_exe_path (const char *name, const char *value)
3991 {
3992 LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
3993 (name ? name : "<NULL>"),
3994 (value ? value : "<NULL>")));
3995
3996 if (name && *name && value && *value)
3997 {
3998 char *new_value = lt_extend_str (getenv (name), value, 0);
3999 /* some systems can't cope with a ':'-terminated path #' */
4000 int len = strlen (new_value);
4001 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
4002 {
4003 new_value[len-1] = '\0';
4004 }
4005 lt_setenv (name, new_value);
4006 XFREE (new_value);
4007 }
4008 }
4009
4010 void
4011 lt_update_lib_path (const char *name, const char *value)
4012 {
4013 LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4014 (name ? name : "<NULL>"),
4015 (value ? value : "<NULL>")));
4016
4017 if (name && *name && value && *value)
4018 {
4019 char *new_value = lt_extend_str (getenv (name), value, 0);
4020 lt_setenv (name, new_value);
4021 XFREE (new_value);
4022 }
4023 }
4024
7854025
7864026 EOF
787
788 # Allow error messages only from the first compilation.
789 if test "$suppress_opt" = yes; then
790 suppress_output=' >/dev/null 2>&1'
791 fi
792 else
793 # No PIC object so indicate it doesn't exist in the libtool
794 # object file.
795 test -z "$run" && cat >> ${libobj}T <<EOF
796 pic_object=none
797
798 EOF
799 fi
800
801 # Only build a position-dependent object if we build old libraries.
802 if test "$build_old_libs" = yes; then
803 if test "$pic_mode" != yes; then
804 # Don't build PIC code
805 command="$base_compile $srcfile"
806 else
807 command="$base_compile $srcfile $pic_flag"
808 fi
809 if test "$compiler_c_o" = yes; then
810 command="$command -o $obj"
811 fi
812
813 # Suppress compiler output if we already did a PIC compilation.
814 command="$command$suppress_output"
815 $run $rm "$obj" "$output_obj"
816 $show "$command"
817 if $run eval "$command"; then :
818 else
819 $run $rm $removelist
820 exit $EXIT_FAILURE
821 fi
822
823 if test "$need_locks" = warn &&
824 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
825 $echo "\
826 *** ERROR, $lockfile contains:
827 `cat $lockfile 2>/dev/null`
828
829 but it should contain:
830 $srcfile
831
832 This indicates that another process is trying to use the same
833 temporary object file, and libtool could not work around it because
834 your compiler does not support \`-c' and \`-o' together. If you
835 repeat this compilation, it may succeed, by chance, but you had better
836 avoid parallel builds (make -j) in this platform, or get a better
837 compiler."
838
839 $run $rm $removelist
840 exit $EXIT_FAILURE
841 fi
842
843 # Just move the object if needed
844 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
845 $show "$mv $output_obj $obj"
846 if $run $mv $output_obj $obj; then :
847 else
848 error=$?
849 $run $rm $removelist
850 exit $error
851 fi
852 fi
853
854 # Append the name of the non-PIC object the libtool object file.
855 # Only append if the libtool object file exists.
856 test -z "$run" && cat >> ${libobj}T <<EOF
857 # Name of the non-PIC object.
858 non_pic_object='$objname'
859
860 EOF
861 else
862 # Append the name of the non-PIC object the libtool object file.
863 # Only append if the libtool object file exists.
864 test -z "$run" && cat >> ${libobj}T <<EOF
865 # Name of the non-PIC object.
866 non_pic_object=none
867
868 EOF
869 fi
870
871 $run $mv "${libobj}T" "${libobj}"
872
873 # Unlock the critical section if it was locked
874 if test "$need_locks" != no; then
875 $run $rm "$lockfile"
876 fi
877
878 exit $EXIT_SUCCESS
879 ;;
880
881 # libtool link mode
882 link | relink)
883 modename="$modename: link"
4027 }
4028 # end: func_emit_cwrapperexe_src
4029
4030 # func_mode_link arg...
4031 func_mode_link ()
4032 {
4033 $opt_debug
8844034 case $host in
885 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4035 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8864036 # It is impossible to link a dll without this setting, and
8874037 # we shouldn't force the makefile maintainer to figure out
8884038 # which system we are compiling for in order to pass an extra
9004050 allow_undefined=yes
9014051 ;;
9024052 esac
903 libtool_args="$nonopt"
4053 libtool_args=$nonopt
9044054 base_compile="$nonopt $@"
905 compile_command="$nonopt"
906 finalize_command="$nonopt"
4055 compile_command=$nonopt
4056 finalize_command=$nonopt
9074057
9084058 compile_rpath=
9094059 finalize_rpath=
9184068 dllsearchpath=
9194069 lib_search_path=`pwd`
9204070 inst_prefix_dir=
4071 new_inherited_linker_flags=
9214072
9224073 avoid_version=no
9234074 dlfiles=
9464097 thread_safe=no
9474098 vinfo=
9484099 vinfo_number=no
949
4100 weak_libs=
4101 single_module="${wl}-single_module"
9504102 func_infer_tag $base_compile
9514103
9524104 # We need to know -static, to get the right output filenames.
9534105 for arg
9544106 do
9554107 case $arg in
956 -all-static | -static)
957 if test "X$arg" = "X-all-static"; then
4108 -shared)
4109 test "$build_libtool_libs" != yes && \
4110 func_fatal_configuration "can not build a shared library"
4111 build_old_libs=no
4112 break
4113 ;;
4114 -all-static | -static | -static-libtool-libs)
4115 case $arg in
4116 -all-static)
9584117 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
959 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
4118 func_warning "complete static linking is impossible in this configuration"
9604119 fi
9614120 if test -n "$link_static_flag"; then
9624121 dlopen_self=$dlopen_self_static
9634122 fi
964 else
4123 prefer_static_libs=yes
4124 ;;
4125 -static)
9654126 if test -z "$pic_flag" && test -n "$link_static_flag"; then
9664127 dlopen_self=$dlopen_self_static
9674128 fi
968 fi
4129 prefer_static_libs=built
4130 ;;
4131 -static-libtool-libs)
4132 if test -z "$pic_flag" && test -n "$link_static_flag"; then
4133 dlopen_self=$dlopen_self_static
4134 fi
4135 prefer_static_libs=yes
4136 ;;
4137 esac
9694138 build_libtool_libs=no
9704139 build_old_libs=yes
971 prefer_static_libs=yes
9724140 break
9734141 ;;
9744142 esac
9814149 while test "$#" -gt 0; do
9824150 arg="$1"
9834151 shift
984 case $arg in
985 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
986 qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
987 ;;
988 *) qarg=$arg ;;
989 esac
990 libtool_args="$libtool_args $qarg"
4152 func_quote_for_eval "$arg"
4153 qarg=$func_quote_for_eval_unquoted_result
4154 func_append libtool_args " $func_quote_for_eval_result"
9914155
9924156 # If the previous option needs an argument, assign it.
9934157 if test -n "$prev"; then
9944158 case $prev in
9954159 output)
996 compile_command="$compile_command @OUTPUT@"
997 finalize_command="$finalize_command @OUTPUT@"
4160 func_append compile_command " @OUTPUT@"
4161 func_append finalize_command " @OUTPUT@"
9984162 ;;
9994163 esac
10004164
10024166 dlfiles|dlprefiles)
10034167 if test "$preload" = no; then
10044168 # Add the symbol object into the linking commands.
1005 compile_command="$compile_command @SYMFILE@"
1006 finalize_command="$finalize_command @SYMFILE@"
4169 func_append compile_command " @SYMFILE@"
4170 func_append finalize_command " @SYMFILE@"
10074171 preload=yes
10084172 fi
10094173 case $arg in
10414205 ;;
10424206 expsyms)
10434207 export_symbols="$arg"
1044 if test ! -f "$arg"; then
1045 $echo "$modename: symbol file \`$arg' does not exist"
1046 exit $EXIT_FAILURE
1047 fi
4208 test -f "$arg" \
4209 || func_fatal_error "symbol file \`$arg' does not exist"
10484210 prev=
10494211 continue
10504212 ;;
10534215 prev=
10544216 continue
10554217 ;;
4218 framework)
4219 case $host in
4220 *-*-darwin*)
4221 case "$deplibs " in
4222 *" $qarg.ltframework "*) ;;
4223 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
4224 ;;
4225 esac
4226 ;;
4227 esac
4228 prev=
4229 continue
4230 ;;
10564231 inst_prefix)
10574232 inst_prefix_dir="$arg"
4233 prev=
4234 continue
4235 ;;
4236 objectlist)
4237 if test -f "$arg"; then
4238 save_arg=$arg
4239 moreargs=
4240 for fil in `cat "$save_arg"`
4241 do
4242 # moreargs="$moreargs $fil"
4243 arg=$fil
4244 # A libtool-controlled object.
4245
4246 # Check to see that this really is a libtool object.
4247 if func_lalib_unsafe_p "$arg"; then
4248 pic_object=
4249 non_pic_object=
4250
4251 # Read the .lo file
4252 func_source "$arg"
4253
4254 if test -z "$pic_object" ||
4255 test -z "$non_pic_object" ||
4256 test "$pic_object" = none &&
4257 test "$non_pic_object" = none; then
4258 func_fatal_error "cannot find name of object for \`$arg'"
4259 fi
4260
4261 # Extract subdirectory from the argument.
4262 func_dirname "$arg" "/" ""
4263 xdir="$func_dirname_result"
4264
4265 if test "$pic_object" != none; then
4266 # Prepend the subdirectory the object is found in.
4267 pic_object="$xdir$pic_object"
4268
4269 if test "$prev" = dlfiles; then
4270 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4271 dlfiles="$dlfiles $pic_object"
4272 prev=
4273 continue
4274 else
4275 # If libtool objects are unsupported, then we need to preload.
4276 prev=dlprefiles
4277 fi
4278 fi
4279
4280 # CHECK ME: I think I busted this. -Ossama
4281 if test "$prev" = dlprefiles; then
4282 # Preload the old-style object.
4283 dlprefiles="$dlprefiles $pic_object"
4284 prev=
4285 fi
4286
4287 # A PIC object.
4288 func_append libobjs " $pic_object"
4289 arg="$pic_object"
4290 fi
4291
4292 # Non-PIC object.
4293 if test "$non_pic_object" != none; then
4294 # Prepend the subdirectory the object is found in.
4295 non_pic_object="$xdir$non_pic_object"
4296
4297 # A standard non-PIC object
4298 func_append non_pic_objects " $non_pic_object"
4299 if test -z "$pic_object" || test "$pic_object" = none ; then
4300 arg="$non_pic_object"
4301 fi
4302 else
4303 # If the PIC object exists, use it instead.
4304 # $xdir was prepended to $pic_object above.
4305 non_pic_object="$pic_object"
4306 func_append non_pic_objects " $non_pic_object"
4307 fi
4308 else
4309 # Only an error if not doing a dry-run.
4310 if $opt_dry_run; then
4311 # Extract subdirectory from the argument.
4312 func_dirname "$arg" "/" ""
4313 xdir="$func_dirname_result"
4314
4315 func_lo2o "$arg"
4316 pic_object=$xdir$objdir/$func_lo2o_result
4317 non_pic_object=$xdir$func_lo2o_result
4318 func_append libobjs " $pic_object"
4319 func_append non_pic_objects " $non_pic_object"
4320 else
4321 func_fatal_error "\`$arg' is not a valid libtool object"
4322 fi
4323 fi
4324 done
4325 else
4326 func_fatal_error "link input file \`$arg' does not exist"
4327 fi
4328 arg=$save_arg
10584329 prev=
10594330 continue
10604331 ;;
10684339 prev=
10694340 continue
10704341 ;;
1071 objectlist)
1072 if test -f "$arg"; then
1073 save_arg=$arg
1074 moreargs=
1075 for fil in `cat $save_arg`
1076 do
1077 # moreargs="$moreargs $fil"
1078 arg=$fil
1079 # A libtool-controlled object.
1080
1081 # Check to see that this really is a libtool object.
1082 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1083 pic_object=
1084 non_pic_object=
1085
1086 # Read the .lo file
1087 # If there is no directory component, then add one.
1088 case $arg in
1089 */* | *\\*) . $arg ;;
1090 *) . ./$arg ;;
1091 esac
1092
1093 if test -z "$pic_object" || \
1094 test -z "$non_pic_object" ||
1095 test "$pic_object" = none && \
1096 test "$non_pic_object" = none; then
1097 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1098 exit $EXIT_FAILURE
1099 fi
1100
1101 # Extract subdirectory from the argument.
1102 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1103 if test "X$xdir" = "X$arg"; then
1104 xdir=
1105 else
1106 xdir="$xdir/"
1107 fi
1108
1109 if test "$pic_object" != none; then
1110 # Prepend the subdirectory the object is found in.
1111 pic_object="$xdir$pic_object"
1112
1113 if test "$prev" = dlfiles; then
1114 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1115 dlfiles="$dlfiles $pic_object"
1116 prev=
1117 continue
1118 else
1119 # If libtool objects are unsupported, then we need to preload.
1120 prev=dlprefiles
1121 fi
1122 fi
1123
1124 # CHECK ME: I think I busted this. -Ossama
1125 if test "$prev" = dlprefiles; then
1126 # Preload the old-style object.
1127 dlprefiles="$dlprefiles $pic_object"
1128 prev=
1129 fi
1130
1131 # A PIC object.
1132 libobjs="$libobjs $pic_object"
1133 arg="$pic_object"
1134 fi
1135
1136 # Non-PIC object.
1137 if test "$non_pic_object" != none; then
1138 # Prepend the subdirectory the object is found in.
1139 non_pic_object="$xdir$non_pic_object"
1140
1141 # A standard non-PIC object
1142 non_pic_objects="$non_pic_objects $non_pic_object"
1143 if test -z "$pic_object" || test "$pic_object" = none ; then
1144 arg="$non_pic_object"
1145 fi
1146 fi
1147 else
1148 # Only an error if not doing a dry-run.
1149 if test -z "$run"; then
1150 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1151 exit $EXIT_FAILURE
1152 else
1153 # Dry-run case.
1154
1155 # Extract subdirectory from the argument.
1156 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1157 if test "X$xdir" = "X$arg"; then
1158 xdir=
1159 else
1160 xdir="$xdir/"
1161 fi
1162
1163 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1164 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1165 libobjs="$libobjs $pic_object"
1166 non_pic_objects="$non_pic_objects $non_pic_object"
1167 fi
1168 fi
1169 done
1170 else
1171 $echo "$modename: link input file \`$save_arg' does not exist"
1172 exit $EXIT_FAILURE
1173 fi
1174 arg=$save_arg
1175 prev=
1176 continue
1177 ;;
11784342 rpath | xrpath)
11794343 # We need an absolute path.
11804344 case $arg in
11814345 [\\/]* | [A-Za-z]:[\\/]*) ;;
11824346 *)
1183 $echo "$modename: only absolute run-paths are allowed" 1>&2
1184 exit $EXIT_FAILURE
4347 func_fatal_error "only absolute run-paths are allowed"
11854348 ;;
11864349 esac
11874350 if test "$prev" = rpath; then
11984361 prev=
11994362 continue
12004363 ;;
4364 shrext)
4365 shrext_cmds="$arg"
4366 prev=
4367 continue
4368 ;;
4369 weak)
4370 weak_libs="$weak_libs $arg"
4371 prev=
4372 continue
4373 ;;
4374 xcclinker)
4375 linker_flags="$linker_flags $qarg"
4376 compiler_flags="$compiler_flags $qarg"
4377 prev=
4378 func_append compile_command " $qarg"
4379 func_append finalize_command " $qarg"
4380 continue
4381 ;;
12014382 xcompiler)
12024383 compiler_flags="$compiler_flags $qarg"
12034384 prev=
1204 compile_command="$compile_command $qarg"
1205 finalize_command="$finalize_command $qarg"
4385 func_append compile_command " $qarg"
4386 func_append finalize_command " $qarg"
12064387 continue
12074388 ;;
12084389 xlinker)
12094390 linker_flags="$linker_flags $qarg"
12104391 compiler_flags="$compiler_flags $wl$qarg"
12114392 prev=
1212 compile_command="$compile_command $wl$qarg"
1213 finalize_command="$finalize_command $wl$qarg"
1214 continue
1215 ;;
1216 xcclinker)
1217 linker_flags="$linker_flags $qarg"
1218 compiler_flags="$compiler_flags $qarg"
1219 prev=
1220 compile_command="$compile_command $qarg"
1221 finalize_command="$finalize_command $qarg"
1222 continue
1223 ;;
1224 shrext)
1225 shrext_cmds="$arg"
1226 prev=
4393 func_append compile_command " $wl$qarg"
4394 func_append finalize_command " $wl$qarg"
12274395 continue
12284396 ;;
12294397 *)
12394407 case $arg in
12404408 -all-static)
12414409 if test -n "$link_static_flag"; then
1242 compile_command="$compile_command $link_static_flag"
1243 finalize_command="$finalize_command $link_static_flag"
4410 # See comment for -static flag below, for more details.
4411 func_append compile_command " $link_static_flag"
4412 func_append finalize_command " $link_static_flag"
12444413 fi
12454414 continue
12464415 ;;
12474416
12484417 -allow-undefined)
12494418 # FIXME: remove this flag sometime in the future.
1250 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1251 continue
4419 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
12524420 ;;
12534421
12544422 -avoid-version)
12734441
12744442 -export-symbols | -export-symbols-regex)
12754443 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1276 $echo "$modename: more than one -exported-symbols argument is not allowed"
1277 exit $EXIT_FAILURE
4444 func_fatal_error "more than one -exported-symbols argument is not allowed"
12784445 fi
12794446 if test "X$arg" = "X-export-symbols"; then
12804447 prev=expsyms
12844451 continue
12854452 ;;
12864453
4454 -framework)
4455 prev=framework
4456 continue
4457 ;;
4458
12874459 -inst-prefix-dir)
12884460 prev=inst_prefix
12894461 continue
12944466 -L[A-Z][A-Z]*:*)
12954467 case $with_gcc/$host in
12964468 no/*-*-irix* | /*-*-irix*)
1297 compile_command="$compile_command $arg"
1298 finalize_command="$finalize_command $arg"
4469 func_append compile_command " $arg"
4470 func_append finalize_command " $arg"
12994471 ;;
13004472 esac
13014473 continue
13024474 ;;
13034475
13044476 -L*)
1305 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
4477 func_stripname '-L' '' "$arg"
4478 dir=$func_stripname_result
4479 if test -z "$dir"; then
4480 if test "$#" -gt 0; then
4481 func_fatal_error "require no space between \`-L' and \`$1'"
4482 else
4483 func_fatal_error "need path for \`-L' option"
4484 fi
4485 fi
13064486 # We need an absolute path.
13074487 case $dir in
13084488 [\\/]* | [A-Za-z]:[\\/]*) ;;
13094489 *)
13104490 absdir=`cd "$dir" && pwd`
1311 if test -z "$absdir"; then
1312 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1313 exit $EXIT_FAILURE
1314 fi
4491 test -z "$absdir" && \
4492 func_fatal_error "cannot determine absolute directory name of \`$dir'"
13154493 dir="$absdir"
13164494 ;;
13174495 esac
13234501 ;;
13244502 esac
13254503 case $host in
1326 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4504 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
4505 testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
13274506 case :$dllsearchpath: in
13284507 *":$dir:"*) ;;
4508 ::) dllsearchpath=$dir;;
13294509 *) dllsearchpath="$dllsearchpath:$dir";;
4510 esac
4511 case :$dllsearchpath: in
4512 *":$testbindir:"*) ;;
4513 ::) dllsearchpath=$testbindir;;
4514 *) dllsearchpath="$dllsearchpath:$testbindir";;
13304515 esac
13314516 ;;
13324517 esac
13364521 -l*)
13374522 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
13384523 case $host in
1339 *-*-cygwin* | *-*-pw32* | *-*-beos*)
4524 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
13404525 # These systems don't actually have a C or math library (as such)
13414526 continue
13424527 ;;
1343 *-*-mingw* | *-*-os2*)
4528 *-*-os2*)
13444529 # These systems don't actually have a C library (as such)
13454530 test "X$arg" = "X-lc" && continue
13464531 ;;
1347 *-*-openbsd* | *-*-freebsd*)
4532 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
13484533 # Do not include libc due to us having libc/libc_r.
13494534 test "X$arg" = "X-lc" && continue
13504535 ;;
13514536 *-*-rhapsody* | *-*-darwin1.[012])
13524537 # Rhapsody C and math libraries are in the System framework
1353 deplibs="$deplibs -framework System"
4538 deplibs="$deplibs System.ltframework"
13544539 continue
4540 ;;
4541 *-*-sco3.2v5* | *-*-sco5v6*)
4542 # Causes problems with __ctype
4543 test "X$arg" = "X-lc" && continue
4544 ;;
4545 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
4546 # Compiler inserts libc in the correct place for threads to work
4547 test "X$arg" = "X-lc" && continue
4548 ;;
13554549 esac
13564550 elif test "X$arg" = "X-lc_r"; then
13574551 case $host in
1358 *-*-openbsd* | *-*-freebsd*)
4552 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
13594553 # Do not include libc_r directly, use -pthread flag.
13604554 continue
13614555 ;;
13654559 continue
13664560 ;;
13674561
1368 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1369 deplibs="$deplibs $arg"
1370 continue
1371 ;;
1372
13734562 -module)
13744563 module=yes
13754564 continue
13764565 ;;
13774566
1378 # gcc -m* arguments should be passed to the linker via $compiler_flags
1379 # in order to pass architecture information to the linker
1380 # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
1381 # but this is not reliable with gcc because gcc may use -mfoo to
1382 # select a different linker, different libraries, etc, while
1383 # -Wl,-mfoo simply passes -mfoo to the linker.
1384 -m*)
1385 # Unknown arguments in both finalize_command and compile_command need
1386 # to be aesthetically quoted because they are evaled later.
1387 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1388 case $arg in
1389 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1390 arg="\"$arg\""
1391 ;;
4567 # Tru64 UNIX uses -model [arg] to determine the layout of C++
4568 # classes, name mangling, and exception handling.
4569 # Darwin uses the -arch flag to determine output architecture.
4570 -model|-arch|-isysroot)
4571 compiler_flags="$compiler_flags $arg"
4572 func_append compile_command " $arg"
4573 func_append finalize_command " $arg"
4574 prev=xcompiler
4575 continue
4576 ;;
4577
4578 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4579 compiler_flags="$compiler_flags $arg"
4580 func_append compile_command " $arg"
4581 func_append finalize_command " $arg"
4582 case "$new_inherited_linker_flags " in
4583 *" $arg "*) ;;
4584 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
13924585 esac
1393 compile_command="$compile_command $arg"
1394 finalize_command="$finalize_command $arg"
1395 if test "$with_gcc" = "yes" ; then
1396 compiler_flags="$compiler_flags $arg"
1397 fi
1398 continue
1399 ;;
1400
1401 -shrext)
1402 prev=shrext
4586 continue
4587 ;;
4588
4589 -multi_module)
4590 single_module="${wl}-multi_module"
14034591 continue
14044592 ;;
14054593
14104598
14114599 -no-install)
14124600 case $host in
1413 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4601 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
14144602 # The PATH hackery in wrapper scripts is required on Windows
1415 # in order for the loader to find any dlls it needs.
1416 $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1417 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
4603 # and Darwin in order for the loader to find any dlls it needs.
4604 func_warning "\`-no-install' is ignored for $host"
4605 func_warning "assuming \`-no-fast-install' instead"
14184606 fast_install=no
14194607 ;;
14204608 *) no_install=yes ;;
14554643 ;;
14564644
14574645 -R*)
1458 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
4646 func_stripname '-R' '' "$arg"
4647 dir=$func_stripname_result
14594648 # We need an absolute path.
14604649 case $dir in
14614650 [\\/]* | [A-Za-z]:[\\/]*) ;;
14624651 *)
1463 $echo "$modename: only absolute run-paths are allowed" 1>&2
1464 exit $EXIT_FAILURE
4652 func_fatal_error "only absolute run-paths are allowed"
14654653 ;;
14664654 esac
14674655 case "$xrpath " in
14714659 continue
14724660 ;;
14734661
1474 -static)
4662 -shared)
4663 # The effects of -shared are defined in a previous loop.
4664 continue
4665 ;;
4666
4667 -shrext)
4668 prev=shrext
4669 continue
4670 ;;
4671
4672 -static | -static-libtool-libs)
14754673 # The effects of -static are defined in a previous loop.
14764674 # We used to do the same as -all-static on platforms that
14774675 # didn't have a PIC flag, but the assumption that the effects
14894687 prev=vinfo
14904688 continue
14914689 ;;
4690
14924691 -version-number)
14934692 prev=vinfo
14944693 vinfo_number=yes
14954694 continue
14964695 ;;
14974696
4697 -weak)
4698 prev=weak
4699 continue
4700 ;;
4701
14984702 -Wc,*)
1499 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
4703 func_stripname '-Wc,' '' "$arg"
4704 args=$func_stripname_result
15004705 arg=
15014706 save_ifs="$IFS"; IFS=','
15024707 for flag in $args; do
15034708 IFS="$save_ifs"
1504 case $flag in
1505 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1506 flag="\"$flag\""
1507 ;;
1508 esac
1509 arg="$arg $wl$flag"
1510 compiler_flags="$compiler_flags $flag"
4709 func_quote_for_eval "$flag"
4710 arg="$arg $wl$func_quote_for_eval_result"
4711 compiler_flags="$compiler_flags $func_quote_for_eval_result"
15114712 done
15124713 IFS="$save_ifs"
1513 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
4714 func_stripname ' ' '' "$arg"
4715 arg=$func_stripname_result
15144716 ;;
15154717
15164718 -Wl,*)
1517 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
4719 func_stripname '-Wl,' '' "$arg"
4720 args=$func_stripname_result
15184721 arg=
15194722 save_ifs="$IFS"; IFS=','
15204723 for flag in $args; do
15214724 IFS="$save_ifs"
1522 case $flag in
1523 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1524 flag="\"$flag\""
1525 ;;
1526 esac
1527 arg="$arg $wl$flag"
1528 compiler_flags="$compiler_flags $wl$flag"
1529 linker_flags="$linker_flags $flag"
4725 func_quote_for_eval "$flag"
4726 arg="$arg $wl$func_quote_for_eval_result"
4727 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
4728 linker_flags="$linker_flags $func_quote_for_eval_result"
15304729 done
15314730 IFS="$save_ifs"
1532 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
4731 func_stripname ' ' '' "$arg"
4732 arg=$func_stripname_result
15334733 ;;
15344734
15354735 -Xcompiler)
15474747 continue
15484748 ;;
15494749
4750 # -msg_* for osf cc
4751 -msg_*)
4752 func_quote_for_eval "$arg"
4753 arg="$func_quote_for_eval_result"
4754 ;;
4755
4756 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
4757 # -r[0-9][0-9]* specifies the processor on the SGI compiler
4758 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
4759 # +DA*, +DD* enable 64-bit mode on the HP compiler
4760 # -q* pass through compiler args for the IBM compiler
4761 # -m*, -t[45]*, -txscale* pass through architecture-specific
4762 # compiler args for GCC
4763 # -F/path gives path to uninstalled frameworks, gcc on darwin
4764 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
4765 # @file GCC response files
4766 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
4767 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
4768 func_quote_for_eval "$arg"
4769 arg="$func_quote_for_eval_result"
4770 func_append compile_command " $arg"
4771 func_append finalize_command " $arg"
4772 compiler_flags="$compiler_flags $arg"
4773 continue
4774 ;;
4775
15504776 # Some other compiler flag.
15514777 -* | +*)
1552 # Unknown arguments in both finalize_command and compile_command need
1553 # to be aesthetically quoted because they are evaled later.
1554 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1555 case $arg in
1556 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1557 arg="\"$arg\""
1558 ;;
1559 esac
4778 func_quote_for_eval "$arg"
4779 arg="$func_quote_for_eval_result"
15604780 ;;
15614781
15624782 *.$objext)
15684788 # A libtool-controlled object.
15694789
15704790 # Check to see that this really is a libtool object.
1571 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
4791 if func_lalib_unsafe_p "$arg"; then
15724792 pic_object=
15734793 non_pic_object=
15744794
15754795 # Read the .lo file
1576 # If there is no directory component, then add one.
1577 case $arg in
1578 */* | *\\*) . $arg ;;
1579 *) . ./$arg ;;
1580 esac
1581
1582 if test -z "$pic_object" || \
4796 func_source "$arg"
4797
4798 if test -z "$pic_object" ||
15834799 test -z "$non_pic_object" ||
1584 test "$pic_object" = none && \
4800 test "$pic_object" = none &&
15854801 test "$non_pic_object" = none; then
1586 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1587 exit $EXIT_FAILURE
4802 func_fatal_error "cannot find name of object for \`$arg'"
15884803 fi
15894804
15904805 # Extract subdirectory from the argument.
1591 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1592 if test "X$xdir" = "X$arg"; then
1593 xdir=
1594 else
1595 xdir="$xdir/"
1596 fi
4806 func_dirname "$arg" "/" ""
4807 xdir="$func_dirname_result"
15974808
15984809 if test "$pic_object" != none; then
15994810 # Prepend the subdirectory the object is found in.
16184829 fi
16194830
16204831 # A PIC object.
1621 libobjs="$libobjs $pic_object"
4832 func_append libobjs " $pic_object"
16224833 arg="$pic_object"
16234834 fi
16244835
16284839 non_pic_object="$xdir$non_pic_object"
16294840
16304841 # A standard non-PIC object
1631 non_pic_objects="$non_pic_objects $non_pic_object"
4842 func_append non_pic_objects " $non_pic_object"
16324843 if test -z "$pic_object" || test "$pic_object" = none ; then
16334844 arg="$non_pic_object"
16344845 fi
4846 else
4847 # If the PIC object exists, use it instead.
4848 # $xdir was prepended to $pic_object above.
4849 non_pic_object="$pic_object"
4850 func_append non_pic_objects " $non_pic_object"
16354851 fi
16364852 else
16374853 # Only an error if not doing a dry-run.
1638 if test -z "$run"; then
1639 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1640 exit $EXIT_FAILURE
4854 if $opt_dry_run; then
4855 # Extract subdirectory from the argument.
4856 func_dirname "$arg" "/" ""
4857 xdir="$func_dirname_result"
4858
4859 func_lo2o "$arg"
4860 pic_object=$xdir$objdir/$func_lo2o_result
4861 non_pic_object=$xdir$func_lo2o_result
4862 func_append libobjs " $pic_object"
4863 func_append non_pic_objects " $non_pic_object"
16414864 else
1642 # Dry-run case.
1643
1644 # Extract subdirectory from the argument.
1645 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1646 if test "X$xdir" = "X$arg"; then
1647 xdir=
1648 else
1649 xdir="$xdir/"
1650 fi
1651
1652 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1653 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1654 libobjs="$libobjs $pic_object"
1655 non_pic_objects="$non_pic_objects $non_pic_object"
4865 func_fatal_error "\`$arg' is not a valid libtool object"
16564866 fi
16574867 fi
16584868 ;;
16854895 *)
16864896 # Unknown arguments in both finalize_command and compile_command need
16874897 # to be aesthetically quoted because they are evaled later.
1688 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1689 case $arg in
1690 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1691 arg="\"$arg\""
1692 ;;
1693 esac
4898 func_quote_for_eval "$arg"
4899 arg="$func_quote_for_eval_result"
16944900 ;;
16954901 esac # arg
16964902
16974903 # Now actually substitute the argument into the commands.
16984904 if test -n "$arg"; then
1699 compile_command="$compile_command $arg"
1700 finalize_command="$finalize_command $arg"
4905 func_append compile_command " $arg"
4906 func_append finalize_command " $arg"
17014907 fi
17024908 done # argument parsing loop
17034909
1704 if test -n "$prev"; then
1705 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
1706 $echo "$help" 1>&2
1707 exit $EXIT_FAILURE
1708 fi
4910 test -n "$prev" && \
4911 func_fatal_help "the \`$prevarg' option requires an argument"
17094912
17104913 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
17114914 eval arg=\"$export_dynamic_flag_spec\"
1712 compile_command="$compile_command $arg"
1713 finalize_command="$finalize_command $arg"
4915 func_append compile_command " $arg"
4916 func_append finalize_command " $arg"
17144917 fi
17154918
17164919 oldlibs=
17174920 # calculate the name of the file, without its directory
1718 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
4921 func_basename "$output"
4922 outputname="$func_basename_result"
17194923 libobjs_save="$libobjs"
17204924
17214925 if test -n "$shlibpath_var"; then
17224926 # get the directories listed in $shlibpath_var
1723 eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
4927 eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
17244928 else
17254929 shlib_search_path=
17264930 fi
17274931 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
17284932 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
17294933
1730 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
1731 if test "X$output_objdir" = "X$output"; then
1732 output_objdir="$objdir"
1733 else
1734 output_objdir="$output_objdir/$objdir"
1735 fi
4934 func_dirname "$output" "/" ""
4935 output_objdir="$func_dirname_result$objdir"
17364936 # Create the object directory.
1737 if test ! -d "$output_objdir"; then
1738 $show "$mkdir $output_objdir"
1739 $run $mkdir $output_objdir
1740 status=$?
1741 if test "$status" -ne 0 && test ! -d "$output_objdir"; then
1742 exit $status
1743 fi
1744 fi
4937 func_mkdir_p "$output_objdir"
17454938
17464939 # Determine the type of output
17474940 case $output in
17484941 "")
1749 $echo "$modename: you must specify an output file" 1>&2
1750 $echo "$help" 1>&2
1751 exit $EXIT_FAILURE
4942 func_fatal_help "you must specify an output file"
17524943 ;;
17534944 *.$libext) linkmode=oldlib ;;
17544945 *.lo | *.$objext) linkmode=obj ;;
17564947 *) linkmode=prog ;; # Anything else should be a program.
17574948 esac
17584949
1759 case $host in
1760 *cygwin* | *mingw* | *pw32*)
1761 # don't eliminate duplications in $postdeps and $predeps
1762 duplicate_compiler_generated_deps=yes
1763 ;;
1764 *)
1765 duplicate_compiler_generated_deps=$duplicate_deps
1766 ;;
1767 esac
17684950 specialdeplibs=
17694951
17704952 libs=
17714953 # Find all interdependent deplibs by searching for libraries
17724954 # that are linked more than once (e.g. -la -lb -la)
17734955 for deplib in $deplibs; do
1774 if test "X$duplicate_deps" = "Xyes" ; then
4956 if $opt_duplicate_deps ; then
17754957 case "$libs " in
17764958 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
17774959 esac
17864968 # $postdeps and mark them as special (i.e., whose duplicates are
17874969 # not to be eliminated).
17884970 pre_post_deps=
1789 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
4971 if $opt_duplicate_compiler_generated_deps; then
17904972 for pre_post_dep in $predeps $postdeps; do
17914973 case "$pre_post_deps " in
17924974 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
18034985 need_relink=no # whether we're linking any uninstalled libtool libraries
18044986 notinst_deplibs= # not-installed libtool libraries
18054987 notinst_path= # paths that contain not-installed libtool libraries
4988
18064989 case $linkmode in
18074990 lib)
1808 passes="conv link"
4991 passes="conv dlpreopen link"
18094992 for file in $dlfiles $dlprefiles; do
18104993 case $file in
18114994 *.la) ;;
18124995 *)
1813 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
1814 exit $EXIT_FAILURE
4996 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
18154997 ;;
18164998 esac
18174999 done
18275009 *) passes="conv"
18285010 ;;
18295011 esac
5012
18305013 for pass in $passes; do
5014 # The preopen pass in lib mode reverses $deplibs; put it back here
5015 # so that -L comes before libs that need it for instance...
5016 if test "$linkmode,$pass" = "lib,link"; then
5017 ## FIXME: Find the place where the list is rebuilt in the wrong
5018 ## order, and fix it there properly
5019 tmp_deplibs=
5020 for deplib in $deplibs; do
5021 tmp_deplibs="$deplib $tmp_deplibs"
5022 done
5023 deplibs="$tmp_deplibs"
5024 fi
5025
18315026 if test "$linkmode,$pass" = "lib,link" ||
18325027 test "$linkmode,$pass" = "prog,scan"; then
18335028 libs="$deplibs"
18435038 ;;
18445039 esac
18455040 fi
5041 if test "$linkmode,$pass" = "lib,dlpreopen"; then
5042 # Collect and forward deplibs of preopened libtool libs
5043 for lib in $dlprefiles; do
5044 # Ignore non-libtool-libs
5045 dependency_libs=
5046 case $lib in
5047 *.la) func_source "$lib" ;;
5048 esac
5049
5050 # Collect preopened libtool deplibs, except any this library
5051 # has declared as weak libs
5052 for deplib in $dependency_libs; do
5053 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
5054 case " $weak_libs " in
5055 *" $deplib_base "*) ;;
5056 *) deplibs="$deplibs $deplib" ;;
5057 esac
5058 done
5059 done
5060 libs="$dlprefiles"
5061 fi
18465062 if test "$pass" = dlopen; then
18475063 # Collect dlpreopened libraries
18485064 save_deplibs="$deplibs"
18495065 deplibs=
18505066 fi
5067
18515068 for deplib in $libs; do
18525069 lib=
18535070 found=no
18545071 case $deplib in
1855 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
5072 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
18565073 if test "$linkmode,$pass" = "prog,link"; then
18575074 compile_deplibs="$deplib $compile_deplibs"
18585075 finalize_deplibs="$deplib $finalize_deplibs"
18595076 else
1860 deplibs="$deplib $deplibs"
5077 compiler_flags="$compiler_flags $deplib"
5078 if test "$linkmode" = lib ; then
5079 case "$new_inherited_linker_flags " in
5080 *" $deplib "*) ;;
5081 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
5082 esac
5083 fi
18615084 fi
18625085 continue
18635086 ;;
18645087 -l*)
18655088 if test "$linkmode" != lib && test "$linkmode" != prog; then
1866 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
5089 func_warning "\`-l' is ignored for archives/objects"
18675090 continue
18685091 fi
1869 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
1870 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
5092 func_stripname '-l' '' "$deplib"
5093 name=$func_stripname_result
5094 if test "$linkmode" = lib; then
5095 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
5096 else
5097 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
5098 fi
5099 for searchdir in $searchdirs; do
18715100 for search_ext in .la $std_shrext .so .a; do
18725101 # Search the libtool library
18735102 lib="$searchdir/lib${name}${search_ext}"
18975126 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
18985127 case " $predeps $postdeps " in
18995128 *" $deplib "*)
1900 if (${SED} -e '2q' $lib |
1901 grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
5129 if func_lalib_p "$lib"; then
19025130 library_names=
19035131 old_library=
1904 case $lib in
1905 */* | *\\*) . $lib ;;
1906 *) . ./$lib ;;
1907 esac
5132 func_source "$lib"
19085133 for l in $old_library $library_names; do
19095134 ll="$l"
19105135 done
19115136 if test "X$ll" = "X$old_library" ; then # only static version available
19125137 found=no
1913 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
1914 test "X$ladir" = "X$lib" && ladir="."
5138 func_dirname "$lib" "" "."
5139 ladir="$func_dirname_result"
19155140 lib=$ladir/$old_library
19165141 if test "$linkmode,$pass" = "prog,link"; then
19175142 compile_deplibs="$deplib $compile_deplibs"
19235148 continue
19245149 fi
19255150 fi
1926 ;;
5151 ;;
19275152 *) ;;
19285153 esac
19295154 fi
19305155 fi
19315156 ;; # -l
5157 *.ltframework)
5158 if test "$linkmode,$pass" = "prog,link"; then
5159 compile_deplibs="$deplib $compile_deplibs"
5160 finalize_deplibs="$deplib $finalize_deplibs"
5161 else
5162 deplibs="$deplib $deplibs"
5163 if test "$linkmode" = lib ; then
5164 case "$new_inherited_linker_flags " in
5165 *" $deplib "*) ;;
5166 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
5167 esac
5168 fi
5169 fi
5170 continue
5171 ;;
19325172 -L*)
19335173 case $linkmode in
19345174 lib)
19355175 deplibs="$deplib $deplibs"
19365176 test "$pass" = conv && continue
19375177 newdependency_libs="$deplib $newdependency_libs"
1938 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
5178 func_stripname '-L' '' "$deplib"
5179 newlib_search_path="$newlib_search_path $func_stripname_result"
19395180 ;;
19405181 prog)
19415182 if test "$pass" = conv; then
19485189 compile_deplibs="$deplib $compile_deplibs"
19495190 finalize_deplibs="$deplib $finalize_deplibs"
19505191 fi
1951 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
5192 func_stripname '-L' '' "$deplib"
5193 newlib_search_path="$newlib_search_path $func_stripname_result"
19525194 ;;
19535195 *)
1954 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
5196 func_warning "\`-L' is ignored for archives/objects"
19555197 ;;
19565198 esac # linkmode
19575199 continue
19585200 ;; # -L
19595201 -R*)
19605202 if test "$pass" = link; then
1961 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
5203 func_stripname '-R' '' "$deplib"
5204 dir=$func_stripname_result
19625205 # Make sure the xrpath contains only unique directories.
19635206 case "$xrpath " in
19645207 *" $dir "*) ;;
19765219 fi
19775220 case $linkmode in
19785221 lib)
1979 if test "$deplibs_check_method" != pass_all; then
1980 $echo
1981 $echo "*** Warning: Trying to link with static lib archive $deplib."
1982 $echo "*** I have the capability to make that library automatically link in when"
1983 $echo "*** you link to this library. But I can only do this if you have a"
1984 $echo "*** shared version of the library, which you do not appear to have"
1985 $echo "*** because the file extensions .$libext of this argument makes me believe"
1986 $echo "*** that it is just a static archive that I should not used here."
1987 else
1988 $echo
1989 $echo "*** Warning: Linking the shared library $output against the"
1990 $echo "*** static library $deplib is not portable!"
1991 deplibs="$deplib $deplibs"
1992 fi
5222 # Linking convenience modules into shared libraries is allowed,
5223 # but linking other static libraries is non-portable.
5224 case " $dlpreconveniencelibs " in
5225 *" $deplib "*) ;;
5226 *)
5227 valid_a_lib=no
5228 case $deplibs_check_method in
5229 match_pattern*)
5230 set dummy $deplibs_check_method; shift
5231 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
5232 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
5233 | $EGREP "$match_pattern_regex" > /dev/null; then
5234 valid_a_lib=yes
5235 fi
5236 ;;
5237 pass_all)
5238 valid_a_lib=yes
5239 ;;
5240 esac
5241 if test "$valid_a_lib" != yes; then
5242 $ECHO
5243 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
5244 $ECHO "*** I have the capability to make that library automatically link in when"
5245 $ECHO "*** you link to this library. But I can only do this if you have a"
5246 $ECHO "*** shared version of the library, which you do not appear to have"
5247 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
5248 $ECHO "*** that it is just a static archive that I should not use here."
5249 else
5250 $ECHO
5251 $ECHO "*** Warning: Linking the shared library $output against the"
5252 $ECHO "*** static library $deplib is not portable!"
5253 deplibs="$deplib $deplibs"
5254 fi
5255 ;;
5256 esac
19935257 continue
19945258 ;;
19955259 prog)
20245288 continue
20255289 ;;
20265290 esac # case $deplib
5291
20275292 if test "$found" = yes || test -f "$lib"; then :
20285293 else
2029 $echo "$modename: cannot find the library \`$lib'" 1>&2
2030 exit $EXIT_FAILURE
5294 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
20315295 fi
20325296
20335297 # Check to see that this really is a libtool archive.
2034 if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2035 else
2036 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2037 exit $EXIT_FAILURE
2038 fi
2039
2040 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2041 test "X$ladir" = "X$lib" && ladir="."
5298 func_lalib_unsafe_p "$lib" \
5299 || func_fatal_error "\`$lib' is not a valid libtool archive"
5300
5301 func_dirname "$lib" "" "."
5302 ladir="$func_dirname_result"
20425303
20435304 dlname=
20445305 dlopen=
20465307 libdir=
20475308 library_names=
20485309 old_library=
5310 inherited_linker_flags=
20495311 # If the library was installed with an old release of libtool,
20505312 # it will not redefine variables installed, or shouldnotlink
20515313 installed=yes
20525314 shouldnotlink=no
5315 avoidtemprpath=
5316
20535317
20545318 # Read the .la file
2055 case $lib in
2056 */* | *\\*) . $lib ;;
2057 *) . ./$lib ;;
2058 esac
2059
5319 func_source "$lib"
5320
5321 # Convert "-framework foo" to "foo.ltframework"
5322 if test -n "$inherited_linker_flags"; then
5323 tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
5324 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
5325 case " $new_inherited_linker_flags " in
5326 *" $tmp_inherited_linker_flag "*) ;;
5327 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
5328 esac
5329 done
5330 fi
5331 dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
20605332 if test "$linkmode,$pass" = "lib,link" ||
20615333 test "$linkmode,$pass" = "prog,scan" ||
20625334 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
20695341 deplibs="$lib $deplibs"
20705342 if test -z "$libdir"; then
20715343 if test -z "$old_library"; then
2072 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2073 exit $EXIT_FAILURE
5344 func_fatal_error "cannot find name of link library for \`$lib'"
20745345 fi
20755346 # It is a libtool convenience library, so add in its objects.
20765347 convenience="$convenience $ladir/$objdir/$old_library"
20785349 tmp_libs=
20795350 for deplib in $dependency_libs; do
20805351 deplibs="$deplib $deplibs"
2081 if test "X$duplicate_deps" = "Xyes" ; then
2082 case "$tmp_libs " in
2083 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2084 esac
2085 fi
5352 if $opt_duplicate_deps ; then
5353 case "$tmp_libs " in
5354 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5355 esac
5356 fi
20865357 tmp_libs="$tmp_libs $deplib"
20875358 done
20885359 elif test "$linkmode" != prog && test "$linkmode" != lib; then
2089 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2090 exit $EXIT_FAILURE
5360 func_fatal_error "\`$lib' is not a convenience library"
20915361 fi
20925362 continue
20935363 fi # $pass = conv
20995369 linklib="$l"
21005370 done
21015371 if test -z "$linklib"; then
2102 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2103 exit $EXIT_FAILURE
5372 func_fatal_error "cannot find name of link library for \`$lib'"
21045373 fi
21055374
21065375 # This library was specified with -dlopen.
21075376 if test "$pass" = dlopen; then
21085377 if test -z "$libdir"; then
2109 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2110 exit $EXIT_FAILURE
5378 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
21115379 fi
21125380 if test -z "$dlname" ||
21135381 test "$dlopen_support" != yes ||
21295397 *)
21305398 abs_ladir=`cd "$ladir" && pwd`
21315399 if test -z "$abs_ladir"; then
2132 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2133 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
5400 func_warning "cannot determine absolute directory name of \`$ladir'"
5401 func_warning "passing it literally to the linker, although it might fail"
21345402 abs_ladir="$ladir"
21355403 fi
21365404 ;;
21375405 esac
2138 laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5406 func_basename "$lib"
5407 laname="$func_basename_result"
21395408
21405409 # Find the relevant object directory and library name.
21415410 if test "X$installed" = Xyes; then
21425411 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2143 $echo "$modename: warning: library \`$lib' was moved." 1>&2
5412 func_warning "library \`$lib' was moved."
21445413 dir="$ladir"
21455414 absdir="$abs_ladir"
21465415 libdir="$abs_ladir"
21485417 dir="$libdir"
21495418 absdir="$libdir"
21505419 fi
5420 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
21515421 else
2152 dir="$ladir/$objdir"
2153 absdir="$abs_ladir/$objdir"
2154 # Remove this search path later
2155 notinst_path="$notinst_path $abs_ladir"
5422 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
5423 dir="$ladir"
5424 absdir="$abs_ladir"
5425 # Remove this search path later
5426 notinst_path="$notinst_path $abs_ladir"
5427 else
5428 dir="$ladir/$objdir"
5429 absdir="$abs_ladir/$objdir"
5430 # Remove this search path later
5431 notinst_path="$notinst_path $abs_ladir"
5432 fi
21565433 fi # $installed = yes
2157 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
5434 func_stripname 'lib' '.la' "$laname"
5435 name=$func_stripname_result
21585436
21595437 # This library was specified with -dlpreopen.
21605438 if test "$pass" = dlpreopen; then
2161 if test -z "$libdir"; then
2162 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2163 exit $EXIT_FAILURE
5439 if test -z "$libdir" && test "$linkmode" = prog; then
5440 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
21645441 fi
21655442 # Prefer using a static library (so that no silly _DYNAMIC symbols
21665443 # are required to link).
21675444 if test -n "$old_library"; then
21685445 newdlprefiles="$newdlprefiles $dir/$old_library"
5446 # Keep a list of preopened convenience libraries to check
5447 # that they are being used correctly in the link pass.
5448 test -z "$libdir" && \
5449 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
21695450 # Otherwise, use the dlname, so that lt_dlopen finds it.
21705451 elif test -n "$dlname"; then
21715452 newdlprefiles="$newdlprefiles $dir/$dlname"
22015482 tmp_libs=
22025483 for deplib in $dependency_libs; do
22035484 case $deplib in
2204 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
5485 -L*) func_stripname '-L' '' "$deplib"
5486 newlib_search_path="$newlib_search_path $func_stripname_result"
5487 ;;
22055488 esac
22065489 # Need to link against all dependency_libs?
22075490 if test "$linkalldeplibs" = yes; then
22115494 # or/and link against static libraries
22125495 newdependency_libs="$deplib $newdependency_libs"
22135496 fi
2214 if test "X$duplicate_deps" = "Xyes" ; then
5497 if $opt_duplicate_deps ; then
22155498 case "$tmp_libs " in
22165499 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
22175500 esac
22235506
22245507 if test "$linkmode,$pass" = "prog,link"; then
22255508 if test -n "$library_names" &&
2226 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
5509 { { test "$prefer_static_libs" = no ||
5510 test "$prefer_static_libs,$installed" = "built,yes"; } ||
5511 test -z "$old_library"; }; then
22275512 # We need to hardcode the library path
2228 if test -n "$shlibpath_var"; then
5513 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
22295514 # Make sure the rpath contains only unique directories.
2230 case "$temp_rpath " in
2231 *" $dir "*) ;;
2232 *" $absdir "*) ;;
2233 *) temp_rpath="$temp_rpath $dir" ;;
5515 case "$temp_rpath:" in
5516 *"$absdir:"*) ;;
5517 *) temp_rpath="$temp_rpath$absdir:" ;;
22345518 esac
22355519 fi
22365520
22675551 fi
22685552
22695553 link_static=no # Whether the deplib will be linked statically
5554 use_static_libs=$prefer_static_libs
5555 if test "$use_static_libs" = built && test "$installed" = yes; then
5556 use_static_libs=no
5557 fi
22705558 if test -n "$library_names" &&
2271 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
2272 if test "$installed" = no; then
2273 notinst_deplibs="$notinst_deplibs $lib"
2274 need_relink=yes
2275 fi
5559 { test "$use_static_libs" = no || test -z "$old_library"; }; then
5560 case $host in
5561 *cygwin* | *mingw* | *cegcc*)
5562 # No point in relinking DLLs because paths are not encoded
5563 notinst_deplibs="$notinst_deplibs $lib"
5564 need_relink=no
5565 ;;
5566 *)
5567 if test "$installed" = no; then
5568 notinst_deplibs="$notinst_deplibs $lib"
5569 need_relink=yes
5570 fi
5571 ;;
5572 esac
22765573 # This is a shared library
22775574
2278 # Warn about portability, can't link against -module's on
2279 # some systems (darwin)
2280 if test "$shouldnotlink" = yes && test "$pass" = link ; then
2281 $echo
5575 # Warn about portability, can't link against -module's on some
5576 # systems (darwin). Don't bleat about dlopened modules though!
5577 dlopenmodule=""
5578 for dlpremoduletest in $dlprefiles; do
5579 if test "X$dlpremoduletest" = "X$lib"; then
5580 dlopenmodule="$dlpremoduletest"
5581 break
5582 fi
5583 done
5584 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
5585 $ECHO
22825586 if test "$linkmode" = prog; then
2283 $echo "*** Warning: Linking the executable $output against the loadable module"
5587 $ECHO "*** Warning: Linking the executable $output against the loadable module"
22845588 else
2285 $echo "*** Warning: Linking the shared library $output against the loadable module"
5589 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
22865590 fi
2287 $echo "*** $linklib is not portable!"
5591 $ECHO "*** $linklib is not portable!"
22885592 fi
22895593 if test "$linkmode" = lib &&
22905594 test "$hardcode_into_libs" = yes; then
23145618 if test -n "$old_archive_from_expsyms_cmds"; then
23155619 # figure out the soname
23165620 set dummy $library_names
2317 realname="$2"
2318 shift; shift
2319 libname=`eval \\$echo \"$libname_spec\"`
5621 shift
5622 realname="$1"
5623 shift
5624 libname=`eval "\\$ECHO \"$libname_spec\""`
23205625 # use dlname if we got it. it's perfectly good, no?
23215626 if test -n "$dlname"; then
23225627 soname="$dlname"
23235628 elif test -n "$soname_spec"; then
23245629 # bleh windows
23255630 case $host in
2326 *cygwin* | mingw*)
2327 major=`expr $current - $age`
5631 *cygwin* | mingw* | *cegcc*)
5632 func_arith $current - $age
5633 major=$func_arith_result
23285634 versuffix="-$major"
23295635 ;;
23305636 esac
23355641
23365642 # Make a new name for the extract_expsyms_cmds to use
23375643 soroot="$soname"
2338 soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
2339 newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
5644 func_basename "$soroot"
5645 soname="$func_basename_result"
5646 func_stripname 'lib' '.dll' "$soname"
5647 newlib=libimp-$func_stripname_result.a
23405648
23415649 # If the library has no export list, then create one now
23425650 if test -f "$output_objdir/$soname-def"; then :
23435651 else
2344 $show "extracting exported symbol list from \`$soname'"
2345 save_ifs="$IFS"; IFS='~'
2346 cmds=$extract_expsyms_cmds
2347 for cmd in $cmds; do
2348 IFS="$save_ifs"
2349 eval cmd=\"$cmd\"
2350 $show "$cmd"
2351 $run eval "$cmd" || exit $?
2352 done
2353 IFS="$save_ifs"
5652 func_verbose "extracting exported symbol list from \`$soname'"
5653 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
23545654 fi
23555655
23565656 # Create $newlib
23575657 if test -f "$output_objdir/$newlib"; then :; else
2358 $show "generating import library for \`$soname'"
2359 save_ifs="$IFS"; IFS='~'
2360 cmds=$old_archive_from_expsyms_cmds
2361 for cmd in $cmds; do
2362 IFS="$save_ifs"
2363 eval cmd=\"$cmd\"
2364 $show "$cmd"
2365 $run eval "$cmd" || exit $?
2366 done
2367 IFS="$save_ifs"
5658 func_verbose "generating import library for \`$soname'"
5659 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
23685660 fi
23695661 # make sure the library variables are pointing to the new library
23705662 dir=$output_objdir
23815673 if test "$hardcode_direct" = no; then
23825674 add="$dir/$linklib"
23835675 case $host in
2384 *-*-sco3.2v5* ) add_dir="-L$dir" ;;
5676 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
5677 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
5678 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
5679 *-*-unixware7*) add_dir="-L$dir" ;;
23855680 *-*-darwin* )
2386 # if the lib is a module then we can not link against
2387 # it, someone is ignoring the new warnings I added
2388 if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
2389 $echo "** Warning, lib $linklib is a module, not a shared library"
2390 if test -z "$old_library" ; then
2391 $echo
2392 $echo "** And there doesn't seem to be a static archive available"
2393 $echo "** The link will probably fail, sorry"
2394 else
2395 add="$dir/$old_library"
5681 # if the lib is a (non-dlopened) module then we can not
5682 # link against it, someone is ignoring the earlier warnings
5683 if /usr/bin/file -L $add 2> /dev/null |
5684 $GREP ": [^:]* bundle" >/dev/null ; then
5685 if test "X$dlopenmodule" != "X$lib"; then
5686 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
5687 if test -z "$old_library" ; then
5688 $ECHO
5689 $ECHO "*** And there doesn't seem to be a static archive available"
5690 $ECHO "*** The link will probably fail, sorry"
5691 else
5692 add="$dir/$old_library"
5693 fi
5694 elif test -n "$old_library"; then
5695 add="$dir/$old_library"
23965696 fi
23975697 fi
23985698 esac
24105710 fi
24115711 ;;
24125712 relink)
2413 if test "$hardcode_direct" = yes; then
5713 if test "$hardcode_direct" = yes &&
5714 test "$hardcode_direct_absolute" = no; then
24145715 add="$dir/$linklib"
24155716 elif test "$hardcode_minus_L" = yes; then
24165717 add_dir="-L$dir"
24175718 # Try looking first in the location we're being installed to.
24185719 if test -n "$inst_prefix_dir"; then
2419 case "$libdir" in
5720 case $libdir in
24205721 [\\/]*)
24215722 add_dir="$add_dir -L$inst_prefix_dir$libdir"
24225723 ;;
24345735 esac
24355736
24365737 if test "$lib_linked" != yes; then
2437 $echo "$modename: configuration error: unsupported hardcode properties"
2438 exit $EXIT_FAILURE
5738 func_fatal_configuration "unsupported hardcode properties"
24395739 fi
24405740
24415741 if test -n "$add_shlibpath"; then
24505750 else
24515751 test -n "$add_dir" && deplibs="$add_dir $deplibs"
24525752 test -n "$add" && deplibs="$add $deplibs"
2453 if test "$hardcode_direct" != yes && \
2454 test "$hardcode_minus_L" != yes && \
5753 if test "$hardcode_direct" != yes &&
5754 test "$hardcode_minus_L" != yes &&
24555755 test "$hardcode_shlibpath_var" = yes; then
24565756 case :$finalize_shlibpath: in
24575757 *":$libdir:"*) ;;
24665766 add_dir=
24675767 add=
24685768 # Finalize command for both is simple: just hardcode it.
2469 if test "$hardcode_direct" = yes; then
5769 if test "$hardcode_direct" = yes &&
5770 test "$hardcode_direct_absolute" = no; then
24705771 add="$libdir/$linklib"
24715772 elif test "$hardcode_minus_L" = yes; then
24725773 add_dir="-L$libdir"
24805781 elif test "$hardcode_automatic" = yes; then
24815782 if test -n "$inst_prefix_dir" &&
24825783 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2483 add="$inst_prefix_dir$libdir/$linklib"
5784 add="$inst_prefix_dir$libdir/$linklib"
24845785 else
2485 add="$libdir/$linklib"
5786 add="$libdir/$linklib"
24865787 fi
24875788 else
24885789 # We cannot seem to hardcode it, guess we'll fake it.
24895790 add_dir="-L$libdir"
24905791 # Try looking first in the location we're being installed to.
24915792 if test -n "$inst_prefix_dir"; then
2492 case "$libdir" in
5793 case $libdir in
24935794 [\\/]*)
24945795 add_dir="$add_dir -L$inst_prefix_dir$libdir"
24955796 ;;
25265827
25275828 # Just print a warning and add the library to dependency_libs so
25285829 # that the program can be linked against the static library.
2529 $echo
2530 $echo "*** Warning: This system can not link to static lib archive $lib."
2531 $echo "*** I have the capability to make that library automatically link in when"
2532 $echo "*** you link to this library. But I can only do this if you have a"
2533 $echo "*** shared version of the library, which you do not appear to have."
5830 $ECHO
5831 $ECHO "*** Warning: This system can not link to static lib archive $lib."
5832 $ECHO "*** I have the capability to make that library automatically link in when"
5833 $ECHO "*** you link to this library. But I can only do this if you have a"
5834 $ECHO "*** shared version of the library, which you do not appear to have."
25345835 if test "$module" = yes; then
2535 $echo "*** But as you try to build a module library, libtool will still create "
2536 $echo "*** a static module, that should work as long as the dlopening application"
2537 $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
5836 $ECHO "*** But as you try to build a module library, libtool will still create "
5837 $ECHO "*** a static module, that should work as long as the dlopening application"
5838 $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
25385839 if test -z "$global_symbol_pipe"; then
2539 $echo
2540 $echo "*** However, this would only work if libtool was able to extract symbol"
2541 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2542 $echo "*** not find such a program. So, this module is probably useless."
2543 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
5840 $ECHO
5841 $ECHO "*** However, this would only work if libtool was able to extract symbol"
5842 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
5843 $ECHO "*** not find such a program. So, this module is probably useless."
5844 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
25445845 fi
25455846 if test "$build_old_libs" = no; then
25465847 build_libtool_libs=module
25505851 fi
25515852 fi
25525853 else
2553 convenience="$convenience $dir/$old_library"
2554 old_convenience="$old_convenience $dir/$old_library"
25555854 deplibs="$dir/$old_library $deplibs"
25565855 link_static=yes
25575856 fi
25665865 temp_deplibs=
25675866 for libdir in $dependency_libs; do
25685867 case $libdir in
2569 -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
5868 -R*) func_stripname '-R' '' "$libdir"
5869 temp_xrpath=$func_stripname_result
25705870 case " $xrpath " in
25715871 *" $temp_xrpath "*) ;;
25725872 *) xrpath="$xrpath $temp_xrpath";;
25845884 tmp_libs=
25855885 for deplib in $dependency_libs; do
25865886 newdependency_libs="$deplib $newdependency_libs"
2587 if test "X$duplicate_deps" = "Xyes" ; then
5887 if $opt_duplicate_deps ; then
25885888 case "$tmp_libs " in
25895889 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
25905890 esac
25955895 if test "$link_all_deplibs" != no; then
25965896 # Add the search paths of all dependency libraries
25975897 for deplib in $dependency_libs; do
5898 path=
25985899 case $deplib in
25995900 -L*) path="$deplib" ;;
26005901 *.la)
2601 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
2602 test "X$dir" = "X$deplib" && dir="."
5902 func_dirname "$deplib" "" "."
5903 dir="$func_dirname_result"
26035904 # We need an absolute path.
26045905 case $dir in
26055906 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
26065907 *)
26075908 absdir=`cd "$dir" && pwd`
26085909 if test -z "$absdir"; then
2609 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
5910 func_warning "cannot determine absolute directory name of \`$dir'"
26105911 absdir="$dir"
26115912 fi
26125913 ;;
26135914 esac
2614 if grep "^installed=no" $deplib > /dev/null; then
2615 path="$absdir/$objdir"
2616 else
2617 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2618 if test -z "$libdir"; then
2619 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2620 exit $EXIT_FAILURE
2621 fi
2622 if test "$absdir" != "$libdir"; then
2623 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2624 fi
2625 path="$absdir"
2626 fi
2627 depdepl=
5915 if $GREP "^installed=no" $deplib > /dev/null; then
26285916 case $host in
26295917 *-*-darwin*)
2630 # we do not want to link against static libs,
2631 # but need to link against shared
5918 depdepl=
26325919 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
26335920 if test -n "$deplibrary_names" ; then
26345921 for tmp in $deplibrary_names ; do
26355922 depdepl=$tmp
26365923 done
2637 if test -f "$path/$depdepl" ; then
2638 depdepl="$path/$depdepl"
5924 if test -f "$absdir/$objdir/$depdepl" ; then
5925 depdepl="$absdir/$objdir/$depdepl"
5926 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
5927 if test -z "$darwin_install_name"; then
5928 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
5929 fi
5930 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
5931 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
5932 path=
26395933 fi
2640 # do not add paths which are already there
2641 case " $newlib_search_path " in
2642 *" $path "*) ;;
2643 *) newlib_search_path="$newlib_search_path $path";;
2644 esac
26455934 fi
2646 path=""
26475935 ;;
26485936 *)
2649 path="-L$path"
5937 path="-L$absdir/$objdir"
26505938 ;;
26515939 esac
5940 else
5941 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5942 test -z "$libdir" && \
5943 func_fatal_error "\`$deplib' is not a valid libtool archive"
5944 test "$absdir" != "$libdir" && \
5945 func_warning "\`$deplib' seems to be moved"
5946
5947 path="-L$absdir"
5948 fi
26525949 ;;
2653 -l*)
2654 case $host in
2655 *-*-darwin*)
2656 # Again, we only want to link against shared libraries
2657 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2658 for tmp in $newlib_search_path ; do
2659 if test -f "$tmp/lib$tmp_libs.dylib" ; then
2660 eval depdepl="$tmp/lib$tmp_libs.dylib"
2661 break
2662 fi
2663 done
2664 path=""
2665 ;;
2666 *) continue ;;
2667 esac
2668 ;;
2669 *) continue ;;
2670 esac
2671 case " $deplibs " in
2672 *" $depdepl "*) ;;
2673 *) deplibs="$depdepl $deplibs" ;;
26745950 esac
26755951 case " $deplibs " in
26765952 *" $path "*) ;;
2677 *) deplibs="$deplibs $path" ;;
5953 *) deplibs="$path $deplibs" ;;
26785954 esac
26795955 done
26805956 fi # link_all_deplibs != no
26815957 fi # linkmode = lib
26825958 done # for deplib in $libs
5959 if test "$pass" = link; then
5960 if test "$linkmode" = "prog"; then
5961 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
5962 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
5963 else
5964 compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
5965 fi
5966 fi
26835967 dependency_libs="$newdependency_libs"
26845968 if test "$pass" = dlpreopen; then
26855969 # Link the dlpreopened libraries before other libraries
27786062 done # for pass
27796063 if test "$linkmode" = prog; then
27806064 dlfiles="$newdlfiles"
6065 fi
6066 if test "$linkmode" = prog || test "$linkmode" = lib; then
27816067 dlprefiles="$newdlprefiles"
27826068 fi
27836069
27846070 case $linkmode in
27856071 oldlib)
2786 if test -n "$deplibs"; then
2787 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
6072 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
6073 func_warning "\`-dlopen' is ignored for archives"
27886074 fi
27896075
2790 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2791 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
2792 fi
2793
2794 if test -n "$rpath"; then
2795 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
2796 fi
2797
2798 if test -n "$xrpath"; then
2799 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
2800 fi
2801
2802 if test -n "$vinfo"; then
2803 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
2804 fi
2805
2806 if test -n "$release"; then
2807 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
2808 fi
2809
2810 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
2811 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
2812 fi
6076 case " $deplibs" in
6077 *\ -l* | *\ -L*)
6078 func_warning "\`-l' and \`-L' are ignored for archives" ;;
6079 esac
6080
6081 test -n "$rpath" && \
6082 func_warning "\`-rpath' is ignored for archives"
6083
6084 test -n "$xrpath" && \
6085 func_warning "\`-R' is ignored for archives"
6086
6087 test -n "$vinfo" && \
6088 func_warning "\`-version-info/-version-number' is ignored for archives"
6089
6090 test -n "$release" && \
6091 func_warning "\`-release' is ignored for archives"
6092
6093 test -n "$export_symbols$export_symbols_regex" && \
6094 func_warning "\`-export-symbols' is ignored for archives"
28136095
28146096 # Now set the variables for building old libraries.
28156097 build_libtool_libs=no
28216103 # Make sure we only generate libraries of the form `libNAME.la'.
28226104 case $outputname in
28236105 lib*)
2824 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
6106 func_stripname 'lib' '.la' "$outputname"
6107 name=$func_stripname_result
28256108 eval shared_ext=\"$shrext_cmds\"
28266109 eval libname=\"$libname_spec\"
28276110 ;;
28286111 *)
2829 if test "$module" = no; then
2830 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
2831 $echo "$help" 1>&2
2832 exit $EXIT_FAILURE
2833 fi
6112 test "$module" = no && \
6113 func_fatal_help "libtool library \`$output' must begin with \`lib'"
6114
28346115 if test "$need_lib_prefix" != no; then
28356116 # Add the "lib" prefix for modules if required
2836 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
6117 func_stripname '' '.la' "$outputname"
6118 name=$func_stripname_result
28376119 eval shared_ext=\"$shrext_cmds\"
28386120 eval libname=\"$libname_spec\"
28396121 else
2840 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
6122 func_stripname '' '.la' "$outputname"
6123 libname=$func_stripname_result
28416124 fi
28426125 ;;
28436126 esac
28446127
28456128 if test -n "$objs"; then
28466129 if test "$deplibs_check_method" != pass_all; then
2847 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
2848 exit $EXIT_FAILURE
6130 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
28496131 else
2850 $echo
2851 $echo "*** Warning: Linking the shared library $output against the non-libtool"
2852 $echo "*** objects $objs is not portable!"
6132 $ECHO
6133 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
6134 $ECHO "*** objects $objs is not portable!"
28536135 libobjs="$libobjs $objs"
28546136 fi
28556137 fi
28566138
2857 if test "$dlself" != no; then
2858 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
2859 fi
6139 test "$dlself" != no && \
6140 func_warning "\`-dlopen self' is ignored for libtool libraries"
28606141
28616142 set dummy $rpath
2862 if test "$#" -gt 2; then
2863 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
2864 fi
2865 install_libdir="$2"
6143 shift
6144 test "$#" -gt 1 && \
6145 func_warning "ignoring multiple \`-rpath's for a libtool library"
6146
6147 install_libdir="$1"
28666148
28676149 oldlibs=
28686150 if test -z "$rpath"; then
28766158 build_old_libs=yes
28776159 fi
28786160
2879 if test -n "$vinfo"; then
2880 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
2881 fi
2882
2883 if test -n "$release"; then
2884 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
2885 fi
6161 test -n "$vinfo" && \
6162 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
6163
6164 test -n "$release" && \
6165 func_warning "\`-release' is ignored for convenience libraries"
28866166 else
28876167
28886168 # Parse the version information argument.
28896169 save_ifs="$IFS"; IFS=':'
28906170 set dummy $vinfo 0 0 0
6171 shift
28916172 IFS="$save_ifs"
28926173
2893 if test -n "$8"; then
2894 $echo "$modename: too many parameters to \`-version-info'" 1>&2
2895 $echo "$help" 1>&2
2896 exit $EXIT_FAILURE
2897 fi
6174 test -n "$7" && \
6175 func_fatal_help "too many parameters to \`-version-info'"
28986176
28996177 # convert absolute version numbers to libtool ages
29006178 # this retains compatibility with .la files and attempts
29026180
29036181 case $vinfo_number in
29046182 yes)
2905 number_major="$2"
2906 number_minor="$3"
2907 number_revision="$4"
6183 number_major="$1"
6184 number_minor="$2"
6185 number_revision="$3"
29086186 #
29096187 # There are really only two kinds -- those that
29106188 # use the current revision as the major version
29136191 # which has an extra 1 added just for fun
29146192 #
29156193 case $version_type in
2916 darwin|linux|osf|windows)
2917 current=`expr $number_major + $number_minor`
6194 darwin|linux|osf|windows|none)
6195 func_arith $number_major + $number_minor
6196 current=$func_arith_result
29186197 age="$number_minor"
29196198 revision="$number_revision"
29206199 ;;
29246203 age="0"
29256204 ;;
29266205 irix|nonstopux)
2927 current=`expr $number_major + $number_minor - 1`
6206 func_arith $number_major + $number_minor
6207 current=$func_arith_result
29286208 age="$number_minor"
29296209 revision="$number_minor"
6210 lt_irix_increment=no
29306211 ;;
29316212 *)
2932 $echo "$modename: unknown library version type \`$version_type'" 1>&2
2933 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
2934 exit $EXIT_FAILURE
6213 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
29356214 ;;
29366215 esac
29376216 ;;
29386217 no)
2939 current="$2"
2940 revision="$3"
2941 age="$4"
6218 current="$1"
6219 revision="$2"
6220 age="$3"
29426221 ;;
29436222 esac
29446223
29456224 # Check that each of the things are valid numbers.
29466225 case $current in
2947 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
6226 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]) ;;
29486227 *)
2949 $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
2950 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2951 exit $EXIT_FAILURE
6228 func_error "CURRENT \`$current' must be a nonnegative integer"
6229 func_fatal_error "\`$vinfo' is not valid version information"
29526230 ;;
29536231 esac
29546232
29556233 case $revision in
2956 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
6234 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]) ;;
29576235 *)
2958 $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
2959 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2960 exit $EXIT_FAILURE
6236 func_error "REVISION \`$revision' must be a nonnegative integer"
6237 func_fatal_error "\`$vinfo' is not valid version information"
29616238 ;;
29626239 esac
29636240
29646241 case $age in
2965 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
6242 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]) ;;
29666243 *)
2967 $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
2968 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2969 exit $EXIT_FAILURE
6244 func_error "AGE \`$age' must be a nonnegative integer"
6245 func_fatal_error "\`$vinfo' is not valid version information"
29706246 ;;
29716247 esac
29726248
29736249 if test "$age" -gt "$current"; then
2974 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
2975 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2976 exit $EXIT_FAILURE
6250 func_error "AGE \`$age' is greater than the current interface number \`$current'"
6251 func_fatal_error "\`$vinfo' is not valid version information"
29776252 fi
29786253
29796254 # Calculate the version variables.
29866261 darwin)
29876262 # Like Linux, but with the current version available in
29886263 # verstring for coding it into the library header
2989 major=.`expr $current - $age`
6264 func_arith $current - $age
6265 major=.$func_arith_result
29906266 versuffix="$major.$age.$revision"
29916267 # Darwin ld doesn't like 0 for these options...
2992 minor_current=`expr $current + 1`
6268 func_arith $current + 1
6269 minor_current=$func_arith_result
6270 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
29936271 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
29946272 ;;
29956273
30006278
30016279 freebsd-elf)
30026280 major=".$current"
3003 versuffix=".$current";
6281 versuffix=".$current"
30046282 ;;
30056283
30066284 irix | nonstopux)
3007 major=`expr $current - $age + 1`
6285 if test "X$lt_irix_increment" = "Xno"; then
6286 func_arith $current - $age
6287 else
6288 func_arith $current - $age + 1
6289 fi
6290 major=$func_arith_result
30086291
30096292 case $version_type in
30106293 nonstopux) verstring_prefix=nonstopux ;;
30156298 # Add in all the interfaces that we are compatible with.
30166299 loop=$revision
30176300 while test "$loop" -ne 0; do
3018 iface=`expr $revision - $loop`
3019 loop=`expr $loop - 1`
6301 func_arith $revision - $loop
6302 iface=$func_arith_result
6303 func_arith $loop - 1
6304 loop=$func_arith_result
30206305 verstring="$verstring_prefix$major.$iface:$verstring"
30216306 done
30226307
30266311 ;;
30276312
30286313 linux)
3029 major=.`expr $current - $age`
6314 func_arith $current - $age
6315 major=.$func_arith_result
30306316 versuffix="$major.$age.$revision"
30316317 ;;
30326318
30336319 osf)
3034 major=.`expr $current - $age`
6320 func_arith $current - $age
6321 major=.$func_arith_result
30356322 versuffix=".$current.$age.$revision"
30366323 verstring="$current.$age.$revision"
30376324
30386325 # Add in all the interfaces that we are compatible with.
30396326 loop=$age
30406327 while test "$loop" -ne 0; do
3041 iface=`expr $current - $loop`
3042 loop=`expr $loop - 1`
6328 func_arith $current - $loop
6329 iface=$func_arith_result
6330 func_arith $loop - 1
6331 loop=$func_arith_result
30436332 verstring="$verstring:${iface}.0"
30446333 done
30456334
30466335 # Make executables depend on our current version.
30476336 verstring="$verstring:${current}.0"
6337 ;;
6338
6339 qnx)
6340 major=".$current"
6341 versuffix=".$current"
30486342 ;;
30496343
30506344 sunos)
30556349 windows)
30566350 # Use '-' rather than '.', since we only want one
30576351 # extension on DOS 8.3 filesystems.
3058 major=`expr $current - $age`
6352 func_arith $current - $age
6353 major=$func_arith_result
30596354 versuffix="-$major"
30606355 ;;
30616356
30626357 *)
3063 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3064 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3065 exit $EXIT_FAILURE
6358 func_fatal_configuration "unknown library version type \`$version_type'"
30666359 ;;
30676360 esac
30686361
30966389 # Check to see if the archive will have undefined symbols.
30976390 if test "$allow_undefined" = yes; then
30986391 if test "$allow_undefined_flag" = unsupported; then
3099 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
6392 func_warning "undefined symbols not allowed in $host shared libraries"
31006393 build_libtool_libs=no
31016394 build_old_libs=yes
31026395 fi
31046397 # Don't allow undefined symbols.
31056398 allow_undefined_flag="$no_undefined_flag"
31066399 fi
6400
31076401 fi
6402
6403 func_generate_dlsyms "$libname" "$libname" "yes"
6404 libobjs="$libobjs $symfileobj"
6405 test "X$libobjs" = "X " && libobjs=
31086406
31096407 if test "$mode" != relink; then
31106408 # Remove our outputs, but don't remove object files since they
31116409 # may have been created when compiling PIC objects.
31126410 removelist=
3113 tempremovelist=`$echo "$output_objdir/*"`
6411 tempremovelist=`$ECHO "$output_objdir/*"`
31146412 for p in $tempremovelist; do
31156413 case $p in
3116 *.$objext)
6414 *.$objext | *.gcno)
31176415 ;;
31186416 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
31196417 if test "X$precious_files_regex" != "X"; then
3120 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3121 then
6418 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
6419 then
31226420 continue
31236421 fi
31246422 fi
31276425 *) ;;
31286426 esac
31296427 done
3130 if test -n "$removelist"; then
3131 $show "${rm}r $removelist"
3132 $run ${rm}r $removelist
3133 fi
6428 test -n "$removelist" && \
6429 func_show_eval "${RM}r \$removelist"
31346430 fi
31356431
31366432 # Now set the variables for building old libraries.
31386434 oldlibs="$oldlibs $output_objdir/$libname.$libext"
31396435
31406436 # Transform .lo files to .o files.
3141 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
6437 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
31426438 fi
31436439
31446440 # Eliminate all temporary directories.
3145 for path in $notinst_path; do
3146 lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
3147 deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
3148 dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
3149 done
6441 #for path in $notinst_path; do
6442 # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
6443 # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
6444 # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
6445 #done
31506446
31516447 if test -n "$xrpath"; then
31526448 # If the user specified any rpath flags, then add them.
31866482 if test "$build_libtool_libs" = yes; then
31876483 if test -n "$rpath"; then
31886484 case $host in
3189 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
6485 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
31906486 # these systems don't actually have a c library (as such)!
31916487 ;;
31926488 *-*-rhapsody* | *-*-darwin1.[012])
31936489 # Rhapsody C library is in the System framework
3194 deplibs="$deplibs -framework System"
6490 deplibs="$deplibs System.ltframework"
31956491 ;;
31966492 *-*-netbsd*)
31976493 # Don't link with libc until the a.out ld.so is fixed.
31986494 ;;
3199 *-*-openbsd* | *-*-freebsd*)
6495 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
32006496 # Do not include libc due to us having libc/libc_r.
3201 test "X$arg" = "X-lc" && continue
32026497 ;;
3203 *)
6498 *-*-sco3.2v5* | *-*-sco5v6*)
6499 # Causes problems with __ctype
6500 ;;
6501 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
6502 # Compiler inserts libc in the correct place for threads to work
6503 ;;
6504 *)
32046505 # Add libc to deplibs on all other systems if necessary.
32056506 if test "$build_libtool_need_lc" = "yes"; then
32066507 deplibs="$deplibs -lc"
32376538 # limits. Maybe even breaks it. We compile a program, linking it
32386539 # against the deplibs as a proxy for the library. Then we can check
32396540 # whether they linked in statically or dynamically with ldd.
3240 $rm conftest.c
6541 $opt_dry_run || $RM conftest.c
32416542 cat > conftest.c <<EOF
32426543 int main() { return 0; }
32436544 EOF
3244 $rm conftest
3245 $LTCC -o conftest conftest.c $deplibs
3246 if test "$?" -eq 0 ; then
6545 $opt_dry_run || $RM conftest
6546 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
32476547 ldd_output=`ldd conftest`
32486548 for i in $deplibs; do
3249 name="`expr $i : '-l\(.*\)'`"
3250 # If $name is empty we are operating on a -L argument.
3251 if test "$name" != "" && test "$name" -ne "0"; then
6549 case $i in
6550 -l*)
6551 func_stripname -l '' "$i"
6552 name=$func_stripname_result
32526553 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
32536554 case " $predeps $postdeps " in
32546555 *" $i "*)
32566557 i=""
32576558 ;;
32586559 esac
3259 fi
6560 fi
32606561 if test -n "$i" ; then
3261 libname=`eval \\$echo \"$libname_spec\"`
3262 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3263 set dummy $deplib_matches
3264 deplib_match=$2
6562 libname=`eval "\\$ECHO \"$libname_spec\""`
6563 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
6564 set dummy $deplib_matches; shift
6565 deplib_match=$1
32656566 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
32666567 newdeplibs="$newdeplibs $i"
32676568 else
32686569 droppeddeps=yes
3269 $echo
3270 $echo "*** Warning: dynamic linker does not accept needed library $i."
3271 $echo "*** I have the capability to make that library automatically link in when"
3272 $echo "*** you link to this library. But I can only do this if you have a"
3273 $echo "*** shared version of the library, which I believe you do not have"
3274 $echo "*** because a test_compile did reveal that the linker did not use it for"
3275 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
6570 $ECHO
6571 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6572 $ECHO "*** I have the capability to make that library automatically link in when"
6573 $ECHO "*** you link to this library. But I can only do this if you have a"
6574 $ECHO "*** shared version of the library, which I believe you do not have"
6575 $ECHO "*** because a test_compile did reveal that the linker did not use it for"
6576 $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
32766577 fi
32776578 fi
3278 else
6579 ;;
6580 *)
32796581 newdeplibs="$newdeplibs $i"
3280 fi
6582 ;;
6583 esac
32816584 done
32826585 else
32836586 # Error occurred in the first compile. Let's try to salvage
32846587 # the situation: Compile a separate program for each library.
32856588 for i in $deplibs; do
3286 name="`expr $i : '-l\(.*\)'`"
3287 # If $name is empty we are operating on a -L argument.
3288 if test "$name" != "" && test "$name" != "0"; then
3289 $rm conftest
3290 $LTCC -o conftest conftest.c $i
3291 # Did it work?
3292 if test "$?" -eq 0 ; then
6589 case $i in
6590 -l*)
6591 func_stripname -l '' "$i"
6592 name=$func_stripname_result
6593 $opt_dry_run || $RM conftest
6594 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
32936595 ldd_output=`ldd conftest`
32946596 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
32956597 case " $predeps $postdeps " in
33006602 esac
33016603 fi
33026604 if test -n "$i" ; then
3303 libname=`eval \\$echo \"$libname_spec\"`
3304 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3305 set dummy $deplib_matches
3306 deplib_match=$2
6605 libname=`eval "\\$ECHO \"$libname_spec\""`
6606 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
6607 set dummy $deplib_matches; shift
6608 deplib_match=$1
33076609 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
33086610 newdeplibs="$newdeplibs $i"
33096611 else
33106612 droppeddeps=yes
3311 $echo
3312 $echo "*** Warning: dynamic linker does not accept needed library $i."
3313 $echo "*** I have the capability to make that library automatically link in when"
3314 $echo "*** you link to this library. But I can only do this if you have a"
3315 $echo "*** shared version of the library, which you do not appear to have"
3316 $echo "*** because a test_compile did reveal that the linker did not use this one"
3317 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
6613 $ECHO
6614 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6615 $ECHO "*** I have the capability to make that library automatically link in when"
6616 $ECHO "*** you link to this library. But I can only do this if you have a"
6617 $ECHO "*** shared version of the library, which you do not appear to have"
6618 $ECHO "*** because a test_compile did reveal that the linker did not use this one"
6619 $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
33186620 fi
33196621 fi
33206622 else
33216623 droppeddeps=yes
3322 $echo
3323 $echo "*** Warning! Library $i is needed by this library but I was not able to"
3324 $echo "*** make it link in! You will probably need to install it or some"
3325 $echo "*** library that it depends on before this library will be fully"
3326 $echo "*** functional. Installing it before continuing would be even better."
6624 $ECHO
6625 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
6626 $ECHO "*** make it link in! You will probably need to install it or some"
6627 $ECHO "*** library that it depends on before this library will be fully"
6628 $ECHO "*** functional. Installing it before continuing would be even better."
33276629 fi
3328 else
6630 ;;
6631 *)
33296632 newdeplibs="$newdeplibs $i"
3330 fi
6633 ;;
6634 esac
33316635 done
33326636 fi
33336637 ;;
33346638 file_magic*)
3335 set dummy $deplibs_check_method
3336 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
6639 set dummy $deplibs_check_method; shift
6640 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
33376641 for a_deplib in $deplibs; do
3338 name="`expr $a_deplib : '-l\(.*\)'`"
3339 # If $name is empty we are operating on a -L argument.
3340 if test "$name" != "" && test "$name" != "0"; then
6642 case $a_deplib in
6643 -l*)
6644 func_stripname -l '' "$a_deplib"
6645 name=$func_stripname_result
33416646 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
33426647 case " $predeps $postdeps " in
33436648 *" $a_deplib "*)
33476652 esac
33486653 fi
33496654 if test -n "$a_deplib" ; then
3350 libname=`eval \\$echo \"$libname_spec\"`
6655 libname=`eval "\\$ECHO \"$libname_spec\""`
33516656 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
33526657 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
33536658 for potent_lib in $potential_libs; do
33546659 # Follow soft links.
3355 if ls -lLd "$potent_lib" 2>/dev/null \
3356 | grep " -> " >/dev/null; then
6660 if ls -lLd "$potent_lib" 2>/dev/null |
6661 $GREP " -> " >/dev/null; then
33576662 continue
33586663 fi
33596664 # The statement above tries to avoid entering an
33666671 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
33676672 case $potliblink in
33686673 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
3369 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
6674 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
33706675 esac
33716676 done
3372 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3373 | ${SED} 10q \
3374 | $EGREP "$file_magic_regex" > /dev/null; then
6677 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
6678 $SED -e 10q |
6679 $EGREP "$file_magic_regex" > /dev/null; then
33756680 newdeplibs="$newdeplibs $a_deplib"
33766681 a_deplib=""
33776682 break 2
33816686 fi
33826687 if test -n "$a_deplib" ; then
33836688 droppeddeps=yes
3384 $echo
3385 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3386 $echo "*** I have the capability to make that library automatically link in when"
3387 $echo "*** you link to this library. But I can only do this if you have a"
3388 $echo "*** shared version of the library, which you do not appear to have"
3389 $echo "*** because I did check the linker path looking for a file starting"
6689 $ECHO
6690 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6691 $ECHO "*** I have the capability to make that library automatically link in when"
6692 $ECHO "*** you link to this library. But I can only do this if you have a"
6693 $ECHO "*** shared version of the library, which you do not appear to have"
6694 $ECHO "*** because I did check the linker path looking for a file starting"
33906695 if test -z "$potlib" ; then
3391 $echo "*** with $libname but no candidates were found. (...for file magic test)"
6696 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
33926697 else
3393 $echo "*** with $libname and none of the candidates passed a file format test"
3394 $echo "*** using a file magic. Last file checked: $potlib"
6698 $ECHO "*** with $libname and none of the candidates passed a file format test"
6699 $ECHO "*** using a file magic. Last file checked: $potlib"
33956700 fi
33966701 fi
3397 else
6702 ;;
6703 *)
33986704 # Add a -L argument.
33996705 newdeplibs="$newdeplibs $a_deplib"
3400 fi
6706 ;;
6707 esac
34016708 done # Gone through all deplibs.
34026709 ;;
34036710 match_pattern*)
3404 set dummy $deplibs_check_method
3405 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
6711 set dummy $deplibs_check_method; shift
6712 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
34066713 for a_deplib in $deplibs; do
3407 name="`expr $a_deplib : '-l\(.*\)'`"
3408 # If $name is empty we are operating on a -L argument.
3409 if test -n "$name" && test "$name" != "0"; then
6714 case $a_deplib in
6715 -l*)
6716 func_stripname -l '' "$a_deplib"
6717 name=$func_stripname_result
34106718 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
34116719 case " $predeps $postdeps " in
34126720 *" $a_deplib "*)
34166724 esac
34176725 fi
34186726 if test -n "$a_deplib" ; then
3419 libname=`eval \\$echo \"$libname_spec\"`
6727 libname=`eval "\\$ECHO \"$libname_spec\""`
34206728 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
34216729 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
34226730 for potent_lib in $potential_libs; do
34236731 potlib="$potent_lib" # see symlink-check above in file_magic test
3424 if eval $echo \"$potent_lib\" 2>/dev/null \
3425 | ${SED} 10q \
3426 | $EGREP "$match_pattern_regex" > /dev/null; then
6732 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
6733 $EGREP "$match_pattern_regex" > /dev/null; then
34276734 newdeplibs="$newdeplibs $a_deplib"
34286735 a_deplib=""
34296736 break 2
34336740 fi
34346741 if test -n "$a_deplib" ; then
34356742 droppeddeps=yes
3436 $echo
3437 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3438 $echo "*** I have the capability to make that library automatically link in when"
3439 $echo "*** you link to this library. But I can only do this if you have a"
3440 $echo "*** shared version of the library, which you do not appear to have"
3441 $echo "*** because I did check the linker path looking for a file starting"
6743 $ECHO
6744 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6745 $ECHO "*** I have the capability to make that library automatically link in when"
6746 $ECHO "*** you link to this library. But I can only do this if you have a"
6747 $ECHO "*** shared version of the library, which you do not appear to have"
6748 $ECHO "*** because I did check the linker path looking for a file starting"
34426749 if test -z "$potlib" ; then
3443 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
6750 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
34446751 else
3445 $echo "*** with $libname and none of the candidates passed a file format test"
3446 $echo "*** using a regex pattern. Last file checked: $potlib"
6752 $ECHO "*** with $libname and none of the candidates passed a file format test"
6753 $ECHO "*** using a regex pattern. Last file checked: $potlib"
34476754 fi
34486755 fi
3449 else
6756 ;;
6757 *)
34506758 # Add a -L argument.
34516759 newdeplibs="$newdeplibs $a_deplib"
3452 fi
6760 ;;
6761 esac
34536762 done # Gone through all deplibs.
34546763 ;;
34556764 none | unknown | *)
34566765 newdeplibs=""
3457 tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3458 -e 's/ -[LR][^ ]*//g'`
6766 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6767 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
34596768 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
34606769 for i in $predeps $postdeps ; do
34616770 # can't use Xsed below, because $i might contain '/'
3462 tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
6771 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
34636772 done
34646773 fi
3465 if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3466 | grep . >/dev/null; then
3467 $echo
6774 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6775 $GREP . >/dev/null; then
6776 $ECHO
34686777 if test "X$deplibs_check_method" = "Xnone"; then
3469 $echo "*** Warning: inter-library dependencies are not supported in this platform."
6778 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
34706779 else
3471 $echo "*** Warning: inter-library dependencies are not known to be supported."
6780 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
34726781 fi
3473 $echo "*** All declared inter-library dependencies are being dropped."
6782 $ECHO "*** All declared inter-library dependencies are being dropped."
34746783 droppeddeps=yes
34756784 fi
34766785 ;;
34836792
34846793 case $host in
34856794 *-*-rhapsody* | *-*-darwin1.[012])
3486 # On Rhapsody replace the C library is the System framework
3487 newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
6795 # On Rhapsody replace the C library with the System framework
6796 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
34886797 ;;
34896798 esac
34906799
34916800 if test "$droppeddeps" = yes; then
34926801 if test "$module" = yes; then
3493 $echo
3494 $echo "*** Warning: libtool could not satisfy all declared inter-library"
3495 $echo "*** dependencies of module $libname. Therefore, libtool will create"
3496 $echo "*** a static module, that should work as long as the dlopening"
3497 $echo "*** application is linked with the -dlopen flag."
6802 $ECHO
6803 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
6804 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
6805 $ECHO "*** a static module, that should work as long as the dlopening"
6806 $ECHO "*** application is linked with the -dlopen flag."
34986807 if test -z "$global_symbol_pipe"; then
3499 $echo
3500 $echo "*** However, this would only work if libtool was able to extract symbol"
3501 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3502 $echo "*** not find such a program. So, this module is probably useless."
3503 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
6808 $ECHO
6809 $ECHO "*** However, this would only work if libtool was able to extract symbol"
6810 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
6811 $ECHO "*** not find such a program. So, this module is probably useless."
6812 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
35046813 fi
35056814 if test "$build_old_libs" = no; then
35066815 oldlibs="$output_objdir/$libname.$libext"
35106819 build_libtool_libs=no
35116820 fi
35126821 else
3513 $echo "*** The inter-library dependencies that have been dropped here will be"
3514 $echo "*** automatically added whenever a program is linked with this library"
3515 $echo "*** or is declared to -dlopen it."
6822 $ECHO "*** The inter-library dependencies that have been dropped here will be"
6823 $ECHO "*** automatically added whenever a program is linked with this library"
6824 $ECHO "*** or is declared to -dlopen it."
35166825
35176826 if test "$allow_undefined" = no; then
3518 $echo
3519 $echo "*** Since this library must not contain undefined symbols,"
3520 $echo "*** because either the platform does not support them or"
3521 $echo "*** it was explicitly requested with -no-undefined,"
3522 $echo "*** libtool will only create a static version of it."
6827 $ECHO
6828 $ECHO "*** Since this library must not contain undefined symbols,"
6829 $ECHO "*** because either the platform does not support them or"
6830 $ECHO "*** it was explicitly requested with -no-undefined,"
6831 $ECHO "*** libtool will only create a static version of it."
35236832 if test "$build_old_libs" = no; then
35246833 oldlibs="$output_objdir/$libname.$libext"
35256834 build_libtool_libs=module
35336842 # Done checking deplibs!
35346843 deplibs=$newdeplibs
35356844 fi
6845 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
6846 case $host in
6847 *-*-darwin*)
6848 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6849 new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6850 deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6851 ;;
6852 esac
6853
6854 # move library search paths that coincide with paths to not yet
6855 # installed libraries to the beginning of the library search list
6856 new_libs=
6857 for path in $notinst_path; do
6858 case " $new_libs " in
6859 *" -L$path/$objdir "*) ;;
6860 *)
6861 case " $deplibs " in
6862 *" -L$path/$objdir "*)
6863 new_libs="$new_libs -L$path/$objdir" ;;
6864 esac
6865 ;;
6866 esac
6867 done
6868 for deplib in $deplibs; do
6869 case $deplib in
6870 -L*)
6871 case " $new_libs " in
6872 *" $deplib "*) ;;
6873 *) new_libs="$new_libs $deplib" ;;
6874 esac
6875 ;;
6876 *) new_libs="$new_libs $deplib" ;;
6877 esac
6878 done
6879 deplibs="$new_libs"
35366880
35376881 # All the library-specific variables (install_libdir is set above).
35386882 library_names=
36046948 eval shared_ext=\"$shrext_cmds\"
36056949 eval library_names=\"$library_names_spec\"
36066950 set dummy $library_names
3607 realname="$2"
3608 shift; shift
6951 shift
6952 realname="$1"
6953 shift
36096954
36106955 if test -n "$soname_spec"; then
36116956 eval soname=\"$soname_spec\"
36176962 fi
36186963
36196964 lib="$output_objdir/$realname"
6965 linknames=
36206966 for link
36216967 do
36226968 linknames="$linknames $link"
36236969 done
36246970
36256971 # Use standard objects if they are pic
3626 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
6972 test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
6973 test "X$libobjs" = "X " && libobjs=
6974
6975 delfiles=
6976 if test -n "$export_symbols" && test -n "$include_expsyms"; then
6977 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
6978 export_symbols="$output_objdir/$libname.uexp"
6979 delfiles="$delfiles $export_symbols"
6980 fi
6981
6982 orig_export_symbols=
6983 case $host_os in
6984 cygwin* | mingw* | cegcc*)
6985 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
6986 # exporting using user supplied symfile
6987 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
6988 # and it's NOT already a .def file. Must figure out
6989 # which of the given symbols are data symbols and tag
6990 # them as such. So, trigger use of export_symbols_cmds.
6991 # export_symbols gets reassigned inside the "prepare
6992 # the list of exported symbols" if statement, so the
6993 # include_expsyms logic still works.
6994 orig_export_symbols="$export_symbols"
6995 export_symbols=
6996 always_export_symbols=yes
6997 fi
6998 fi
6999 ;;
7000 esac
36277001
36287002 # Prepare the list of exported symbols
36297003 if test -z "$export_symbols"; then
36307004 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
3631 $show "generating symbol list for \`$libname.la'"
7005 func_verbose "generating symbol list for \`$libname.la'"
36327006 export_symbols="$output_objdir/$libname.exp"
3633 $run $rm $export_symbols
7007 $opt_dry_run || $RM $export_symbols
36347008 cmds=$export_symbols_cmds
36357009 save_ifs="$IFS"; IFS='~'
36367010 for cmd in $cmds; do
36377011 IFS="$save_ifs"
36387012 eval cmd=\"$cmd\"
3639 if len=`expr "X$cmd" : ".*"` &&
3640 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3641 $show "$cmd"
3642 $run eval "$cmd" || exit $?
3643 skipped_export=false
7013 func_len " $cmd"
7014 len=$func_len_result
7015 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7016 func_show_eval "$cmd" 'exit $?'
7017 skipped_export=false
36447018 else
3645 # The command line is too long to execute in one step.
3646 $show "using reloadable object file for export list..."
3647 skipped_export=:
7019 # The command line is too long to execute in one step.
7020 func_verbose "using reloadable object file for export list..."
7021 skipped_export=:
7022 # Break out early, otherwise skipped_export may be
7023 # set to false by a later but shorter cmd.
7024 break
36487025 fi
36497026 done
36507027 IFS="$save_ifs"
3651 if test -n "$export_symbols_regex"; then
3652 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
3653 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
3654 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
3655 $run eval '$mv "${export_symbols}T" "$export_symbols"'
7028 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
7029 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
7030 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
36567031 fi
36577032 fi
36587033 fi
36597034
36607035 if test -n "$export_symbols" && test -n "$include_expsyms"; then
3661 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
7036 tmp_export_symbols="$export_symbols"
7037 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7038 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
7039 fi
7040
7041 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
7042 # The given exports_symbols file has to be filtered, so filter it.
7043 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
7044 # FIXME: $output_objdir/$libname.filter potentially contains lots of
7045 # 's' commands which not all seds can handle. GNU sed should be fine
7046 # though. Also, the filter scales superlinearly with the number of
7047 # global variables. join(1) would be nice here, but unfortunately
7048 # isn't a blessed tool.
7049 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7050 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
7051 export_symbols=$output_objdir/$libname.def
7052 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
36627053 fi
36637054
36647055 tmp_deplibs=
36657056 for test_deplib in $deplibs; do
3666 case " $convenience " in
3667 *" $test_deplib "*) ;;
3668 *)
3669 tmp_deplibs="$tmp_deplibs $test_deplib"
3670 ;;
3671 esac
7057 case " $convenience " in
7058 *" $test_deplib "*) ;;
7059 *)
7060 tmp_deplibs="$tmp_deplibs $test_deplib"
7061 ;;
7062 esac
36727063 done
36737064 deplibs="$tmp_deplibs"
36747065
36757066 if test -n "$convenience"; then
7067 if test -n "$whole_archive_flag_spec" &&
7068 test "$compiler_needs_object" = yes &&
7069 test -z "$libobjs"; then
7070 # extract the archives, so we have objects to list.
7071 # TODO: could optimize this to just extract one archive.
7072 whole_archive_flag_spec=
7073 fi
36767074 if test -n "$whole_archive_flag_spec"; then
36777075 save_libobjs=$libobjs
36787076 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
7077 test "X$libobjs" = "X " && libobjs=
36797078 else
36807079 gentop="$output_objdir/${outputname}x"
3681 $show "${rm}r $gentop"
3682 $run ${rm}r "$gentop"
3683 $show "$mkdir $gentop"
3684 $run $mkdir "$gentop"
3685 status=$?
3686 if test "$status" -ne 0 && test ! -d "$gentop"; then
3687 exit $status
3688 fi
36897080 generated="$generated $gentop"
36907081
3691 for xlib in $convenience; do
3692 # Extract the objects.
3693 case $xlib in
3694 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3695 *) xabs=`pwd`"/$xlib" ;;
3696 esac
3697 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3698 xdir="$gentop/$xlib"
3699
3700 $show "${rm}r $xdir"
3701 $run ${rm}r "$xdir"
3702 $show "$mkdir $xdir"
3703 $run $mkdir "$xdir"
3704 status=$?
3705 if test "$status" -ne 0 && test ! -d "$xdir"; then
3706 exit $status
3707 fi
3708 # We will extract separately just the conflicting names and we will no
3709 # longer touch any unique names. It is faster to leave these extract
3710 # automatically by $AR in one run.
3711 $show "(cd $xdir && $AR x $xabs)"
3712 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
3713 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
3714 :
3715 else
3716 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
3717 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
3718 $AR t "$xabs" | sort | uniq -cd | while read -r count name
3719 do
3720 i=1
3721 while test "$i" -le "$count"
3722 do
3723 # Put our $i before any first dot (extension)
3724 # Never overwrite any file
3725 name_to="$name"
3726 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
3727 do
3728 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
3729 done
3730 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
3731 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
3732 i=`expr $i + 1`
3733 done
3734 done
3735 fi
3736
3737 libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
3738 done
7082 func_extract_archives $gentop $convenience
7083 libobjs="$libobjs $func_extract_archives_result"
7084 test "X$libobjs" = "X " && libobjs=
37397085 fi
37407086 fi
37417087
37467092
37477093 # Make a backup of the uninstalled library when relinking
37487094 if test "$mode" = relink; then
3749 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
7095 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
37507096 fi
37517097
37527098 # Do each of the archive commands.
37597105 cmds=$module_cmds
37607106 fi
37617107 else
3762 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
3763 eval test_cmds=\"$archive_expsym_cmds\"
3764 cmds=$archive_expsym_cmds
3765 else
3766 eval test_cmds=\"$archive_cmds\"
3767 cmds=$archive_cmds
7108 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
7109 eval test_cmds=\"$archive_expsym_cmds\"
7110 cmds=$archive_expsym_cmds
7111 else
7112 eval test_cmds=\"$archive_cmds\"
7113 cmds=$archive_cmds
37687114 fi
37697115 fi
37707116
3771 if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
3772 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7117 if test "X$skipped_export" != "X:" &&
7118 func_len " $test_cmds" &&
7119 len=$func_len_result &&
7120 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
37737121 :
37747122 else
3775 # The command line is too long to link in one step, link piecewise.
3776 $echo "creating reloadable object files..."
7123 # The command line is too long to link in one step, link piecewise
7124 # or, if using GNU ld and skipped_export is not :, use a linker
7125 # script.
37777126
37787127 # Save the value of $output and $libobjs because we want to
37797128 # use them later. If we have whole_archive_flag_spec, we
37877136 save_libobjs=$libobjs
37887137 fi
37897138 save_output=$output
7139 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
37907140
37917141 # Clear the reloadable object creation command queue and
37927142 # initialize k to one.
37937143 test_cmds=
37947144 concat_cmds=
37957145 objlist=
3796 delfiles=
37977146 last_robj=
37987147 k=1
3799 output=$output_objdir/$save_output-${k}.$objext
3800 # Loop over the list of objects to be linked.
3801 for obj in $save_libobjs
3802 do
3803 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
3804 if test "X$objlist" = X ||
3805 { len=`expr "X$test_cmds" : ".*"` &&
3806 test "$len" -le "$max_cmd_len"; }; then
3807 objlist="$objlist $obj"
7148
7149 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
7150 output=${output_objdir}/${output_la}.lnkscript
7151 func_verbose "creating GNU ld script: $output"
7152 $ECHO 'INPUT (' > $output
7153 for obj in $save_libobjs
7154 do
7155 $ECHO "$obj" >> $output
7156 done
7157 $ECHO ')' >> $output
7158 delfiles="$delfiles $output"
7159 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
7160 output=${output_objdir}/${output_la}.lnk
7161 func_verbose "creating linker input file list: $output"
7162 : > $output
7163 set x $save_libobjs
7164 shift
7165 firstobj=
7166 if test "$compiler_needs_object" = yes; then
7167 firstobj="$1 "
7168 shift
7169 fi
7170 for obj
7171 do
7172 $ECHO "$obj" >> $output
7173 done
7174 delfiles="$delfiles $output"
7175 output=$firstobj\"$file_list_spec$output\"
7176 else
7177 if test -n "$save_libobjs"; then
7178 func_verbose "creating reloadable object files..."
7179 output=$output_objdir/$output_la-${k}.$objext
7180 eval test_cmds=\"$reload_cmds\"
7181 func_len " $test_cmds"
7182 len0=$func_len_result
7183 len=$len0
7184
7185 # Loop over the list of objects to be linked.
7186 for obj in $save_libobjs
7187 do
7188 func_len " $obj"
7189 func_arith $len + $func_len_result
7190 len=$func_arith_result
7191 if test "X$objlist" = X ||
7192 test "$len" -lt "$max_cmd_len"; then
7193 func_append objlist " $obj"
7194 else
7195 # The command $test_cmds is almost too long, add a
7196 # command to the queue.
7197 if test "$k" -eq 1 ; then
7198 # The first file doesn't have a previous command to add.
7199 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
7200 else
7201 # All subsequent reloadable object files will link in
7202 # the last one created.
7203 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
7204 fi
7205 last_robj=$output_objdir/$output_la-${k}.$objext
7206 func_arith $k + 1
7207 k=$func_arith_result
7208 output=$output_objdir/$output_la-${k}.$objext
7209 objlist=$obj
7210 func_len " $last_robj"
7211 func_arith $len0 + $func_len_result
7212 len=$func_arith_result
7213 fi
7214 done
7215 # Handle the remaining objects by creating one last
7216 # reloadable object file. All subsequent reloadable object
7217 # files will link in the last one created.
7218 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7219 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
7220 if test -n "$last_robj"; then
7221 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
7222 fi
7223 delfiles="$delfiles $output"
7224
38087225 else
3809 # The command $test_cmds is almost too long, add a
3810 # command to the queue.
3811 if test "$k" -eq 1 ; then
3812 # The first file doesn't have a previous command to add.
3813 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
3814 else
3815 # All subsequent reloadable object files will link in
3816 # the last one created.
3817 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
7226 output=
7227 fi
7228
7229 if ${skipped_export-false}; then
7230 func_verbose "generating symbol list for \`$libname.la'"
7231 export_symbols="$output_objdir/$libname.exp"
7232 $opt_dry_run || $RM $export_symbols
7233 libobjs=$output
7234 # Append the command to create the export file.
7235 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7236 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
7237 if test -n "$last_robj"; then
7238 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
38187239 fi
3819 last_robj=$output_objdir/$save_output-${k}.$objext
3820 k=`expr $k + 1`
3821 output=$output_objdir/$save_output-${k}.$objext
3822 objlist=$obj
3823 len=1
38247240 fi
3825 done
3826 # Handle the remaining objects by creating one last
3827 # reloadable object file. All subsequent reloadable object
3828 # files will link in the last one created.
3829 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
3830 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
3831
3832 if ${skipped_export-false}; then
3833 $show "generating symbol list for \`$libname.la'"
3834 export_symbols="$output_objdir/$libname.exp"
3835 $run $rm $export_symbols
3836 libobjs=$output
3837 # Append the command to create the export file.
3838 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
3839 fi
3840
3841 # Set up a command to remove the reloadale object files
3842 # after they are used.
3843 i=0
3844 while test "$i" -lt "$k"
3845 do
3846 i=`expr $i + 1`
3847 delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
3848 done
3849
3850 $echo "creating a temporary reloadable object file: $output"
3851
3852 # Loop through the commands generated above and execute them.
3853 save_ifs="$IFS"; IFS='~'
3854 for cmd in $concat_cmds; do
7241
7242 test -n "$save_libobjs" &&
7243 func_verbose "creating a temporary reloadable object file: $output"
7244
7245 # Loop through the commands generated above and execute them.
7246 save_ifs="$IFS"; IFS='~'
7247 for cmd in $concat_cmds; do
7248 IFS="$save_ifs"
7249 $opt_silent || {
7250 func_quote_for_expand "$cmd"
7251 eval "func_echo $func_quote_for_expand_result"
7252 }
7253 $opt_dry_run || eval "$cmd" || {
7254 lt_exit=$?
7255
7256 # Restore the uninstalled library and exit
7257 if test "$mode" = relink; then
7258 ( cd "$output_objdir" && \
7259 $RM "${realname}T" && \
7260 $MV "${realname}U" "$realname" )
7261 fi
7262
7263 exit $lt_exit
7264 }
7265 done
38557266 IFS="$save_ifs"
3856 $show "$cmd"
3857 $run eval "$cmd" || exit $?
3858 done
3859 IFS="$save_ifs"
7267
7268 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
7269 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
7270 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
7271 fi
7272 fi
7273
7274 if ${skipped_export-false}; then
7275 if test -n "$export_symbols" && test -n "$include_expsyms"; then
7276 tmp_export_symbols="$export_symbols"
7277 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7278 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
7279 fi
7280
7281 if test -n "$orig_export_symbols"; then
7282 # The given exports_symbols file has to be filtered, so filter it.
7283 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
7284 # FIXME: $output_objdir/$libname.filter potentially contains lots of
7285 # 's' commands which not all seds can handle. GNU sed should be fine
7286 # though. Also, the filter scales superlinearly with the number of
7287 # global variables. join(1) would be nice here, but unfortunately
7288 # isn't a blessed tool.
7289 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7290 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
7291 export_symbols=$output_objdir/$libname.def
7292 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
7293 fi
7294 fi
38607295
38617296 libobjs=$output
38627297 # Restore the value of output.
38647299
38657300 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
38667301 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
7302 test "X$libobjs" = "X " && libobjs=
38677303 fi
38687304 # Expand the library linking commands again to reset the
38697305 # value of $libobjs for piecewise linking.
38767312 cmds=$module_cmds
38777313 fi
38787314 else
3879 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
3880 cmds=$archive_expsym_cmds
3881 else
3882 cmds=$archive_cmds
7315 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
7316 cmds=$archive_expsym_cmds
7317 else
7318 cmds=$archive_cmds
38837319 fi
38847320 fi
3885
3886 # Append the command to remove the reloadable object files
3887 # to the just-reset $cmds.
3888 eval cmds=\"\$cmds~\$rm $delfiles\"
38897321 fi
7322
7323 if test -n "$delfiles"; then
7324 # Append the command to remove temporary files to $cmds.
7325 eval cmds=\"\$cmds~\$RM $delfiles\"
7326 fi
7327
7328 # Add any objects from preloaded convenience libraries
7329 if test -n "$dlprefiles"; then
7330 gentop="$output_objdir/${outputname}x"
7331 generated="$generated $gentop"
7332
7333 func_extract_archives $gentop $dlprefiles
7334 libobjs="$libobjs $func_extract_archives_result"
7335 test "X$libobjs" = "X " && libobjs=
7336 fi
7337
38907338 save_ifs="$IFS"; IFS='~'
38917339 for cmd in $cmds; do
38927340 IFS="$save_ifs"
38937341 eval cmd=\"$cmd\"
3894 $show "$cmd"
3895 $run eval "$cmd" || exit $?
7342 $opt_silent || {
7343 func_quote_for_expand "$cmd"
7344 eval "func_echo $func_quote_for_expand_result"
7345 }
7346 $opt_dry_run || eval "$cmd" || {
7347 lt_exit=$?
7348
7349 # Restore the uninstalled library and exit
7350 if test "$mode" = relink; then
7351 ( cd "$output_objdir" && \
7352 $RM "${realname}T" && \
7353 $MV "${realname}U" "$realname" )
7354 fi
7355
7356 exit $lt_exit
7357 }
38967358 done
38977359 IFS="$save_ifs"
38987360
38997361 # Restore the uninstalled library and exit
39007362 if test "$mode" = relink; then
3901 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
7363 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
7364
7365 if test -n "$convenience"; then
7366 if test -z "$whole_archive_flag_spec"; then
7367 func_show_eval '${RM}r "$gentop"'
7368 fi
7369 fi
7370
39027371 exit $EXIT_SUCCESS
39037372 fi
39047373
39057374 # Create links to the real library.
39067375 for linkname in $linknames; do
39077376 if test "$realname" != "$linkname"; then
3908 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
3909 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
7377 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
39107378 fi
39117379 done
39127380
39197387 ;;
39207388
39217389 obj)
3922 if test -n "$deplibs"; then
3923 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
7390 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7391 func_warning "\`-dlopen' is ignored for objects"
39247392 fi
39257393
3926 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3927 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
3928 fi
3929
3930 if test -n "$rpath"; then
3931 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
3932 fi
3933
3934 if test -n "$xrpath"; then
3935 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
3936 fi
3937
3938 if test -n "$vinfo"; then
3939 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
3940 fi
3941
3942 if test -n "$release"; then
3943 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
3944 fi
7394 case " $deplibs" in
7395 *\ -l* | *\ -L*)
7396 func_warning "\`-l' and \`-L' are ignored for objects" ;;
7397 esac
7398
7399 test -n "$rpath" && \
7400 func_warning "\`-rpath' is ignored for objects"
7401
7402 test -n "$xrpath" && \
7403 func_warning "\`-R' is ignored for objects"
7404
7405 test -n "$vinfo" && \
7406 func_warning "\`-version-info' is ignored for objects"
7407
7408 test -n "$release" && \
7409 func_warning "\`-release' is ignored for objects"
39457410
39467411 case $output in
39477412 *.lo)
3948 if test -n "$objs$old_deplibs"; then
3949 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
3950 exit $EXIT_FAILURE
3951 fi
3952 libobj="$output"
3953 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
7413 test -n "$objs$old_deplibs" && \
7414 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
7415
7416 libobj=$output
7417 func_lo2o "$libobj"
7418 obj=$func_lo2o_result
39547419 ;;
39557420 *)
39567421 libobj=
39597424 esac
39607425
39617426 # Delete the old objects.
3962 $run $rm $obj $libobj
7427 $opt_dry_run || $RM $obj $libobj
39637428
39647429 # Objects from convenience libraries. This assumes
39657430 # single-version convenience libraries. Whenever we create
39687433 reload_conv_objs=
39697434 gentop=
39707435 # reload_cmds runs $LD directly, so let us get rid of
3971 # -Wl from whole_archive_flag_spec
7436 # -Wl from whole_archive_flag_spec and hope we can get by with
7437 # turning comma into space..
39727438 wl=
39737439
39747440 if test -n "$convenience"; then
39757441 if test -n "$whole_archive_flag_spec"; then
3976 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
7442 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
7443 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
39777444 else
39787445 gentop="$output_objdir/${obj}x"
3979 $show "${rm}r $gentop"
3980 $run ${rm}r "$gentop"
3981 $show "$mkdir $gentop"
3982 $run $mkdir "$gentop"
3983 status=$?
3984 if test "$status" -ne 0 && test ! -d "$gentop"; then
3985 exit $status
3986 fi
39877446 generated="$generated $gentop"
39887447
3989 for xlib in $convenience; do
3990 # Extract the objects.
3991 case $xlib in
3992 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3993 *) xabs=`pwd`"/$xlib" ;;
3994 esac
3995 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3996 xdir="$gentop/$xlib"
3997
3998 $show "${rm}r $xdir"
3999 $run ${rm}r "$xdir"
4000 $show "$mkdir $xdir"
4001 $run $mkdir "$xdir"
4002 status=$?
4003 if test "$status" -ne 0 && test ! -d "$xdir"; then
4004 exit $status
4005 fi
4006 # We will extract separately just the conflicting names and we will no
4007 # longer touch any unique names. It is faster to leave these extract
4008 # automatically by $AR in one run.
4009 $show "(cd $xdir && $AR x $xabs)"
4010 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
4011 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
4012 :
4013 else
4014 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
4015 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
4016 $AR t "$xabs" | sort | uniq -cd | while read -r count name
4017 do
4018 i=1
4019 while test "$i" -le "$count"
4020 do
4021 # Put our $i before any first dot (extension)
4022 # Never overwrite any file
4023 name_to="$name"
4024 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
4025 do
4026 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
4027 done
4028 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
4029 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
4030 i=`expr $i + 1`
4031 done
4032 done
4033 fi
4034
4035 reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
4036 done
7448 func_extract_archives $gentop $convenience
7449 reload_conv_objs="$reload_objs $func_extract_archives_result"
40377450 fi
40387451 fi
40397452
40407453 # Create the old-style object.
4041 reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
7454 reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
40427455
40437456 output="$obj"
4044 cmds=$reload_cmds
4045 save_ifs="$IFS"; IFS='~'
4046 for cmd in $cmds; do
4047 IFS="$save_ifs"
4048 eval cmd=\"$cmd\"
4049 $show "$cmd"
4050 $run eval "$cmd" || exit $?
4051 done
4052 IFS="$save_ifs"
7457 func_execute_cmds "$reload_cmds" 'exit $?'
40537458
40547459 # Exit if we aren't doing a library object file.
40557460 if test -z "$libobj"; then
40567461 if test -n "$gentop"; then
4057 $show "${rm}r $gentop"
4058 $run ${rm}r $gentop
7462 func_show_eval '${RM}r "$gentop"'
40597463 fi
40607464
40617465 exit $EXIT_SUCCESS
40637467
40647468 if test "$build_libtool_libs" != yes; then
40657469 if test -n "$gentop"; then
4066 $show "${rm}r $gentop"
4067 $run ${rm}r $gentop
7470 func_show_eval '${RM}r "$gentop"'
40687471 fi
40697472
40707473 # Create an invalid libtool object if no PIC, so that we don't
40717474 # accidentally link it into a program.
40727475 # $show "echo timestamp > $libobj"
4073 # $run eval "echo timestamp > $libobj" || exit $?
7476 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
40747477 exit $EXIT_SUCCESS
40757478 fi
40767479
40787481 # Only do commands if we really have different PIC objects.
40797482 reload_objs="$libobjs $reload_conv_objs"
40807483 output="$libobj"
4081 cmds=$reload_cmds
4082 save_ifs="$IFS"; IFS='~'
4083 for cmd in $cmds; do
4084 IFS="$save_ifs"
4085 eval cmd=\"$cmd\"
4086 $show "$cmd"
4087 $run eval "$cmd" || exit $?
4088 done
4089 IFS="$save_ifs"
7484 func_execute_cmds "$reload_cmds" 'exit $?'
40907485 fi
40917486
40927487 if test -n "$gentop"; then
4093 $show "${rm}r $gentop"
4094 $run ${rm}r $gentop
7488 func_show_eval '${RM}r "$gentop"'
40957489 fi
40967490
40977491 exit $EXIT_SUCCESS
40997493
41007494 prog)
41017495 case $host in
4102 *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
7496 *cygwin*) func_stripname '' '.exe' "$output"
7497 output=$func_stripname_result.exe;;
41037498 esac
4104 if test -n "$vinfo"; then
4105 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4106 fi
4107
4108 if test -n "$release"; then
4109 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4110 fi
4111
4112 if test "$preload" = yes; then
4113 if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
4114 test "$dlopen_self_static" = unknown; then
4115 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4116 fi
4117 fi
7499 test -n "$vinfo" && \
7500 func_warning "\`-version-info' is ignored for programs"
7501
7502 test -n "$release" && \
7503 func_warning "\`-release' is ignored for programs"
7504
7505 test "$preload" = yes \
7506 && test "$dlopen_support" = unknown \
7507 && test "$dlopen_self" = unknown \
7508 && test "$dlopen_self_static" = unknown && \
7509 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
41187510
41197511 case $host in
41207512 *-*-rhapsody* | *-*-darwin1.[012])
41217513 # On Rhapsody replace the C library is the System framework
4122 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4123 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
7514 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7515 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
41247516 ;;
41257517 esac
41267518
41277519 case $host in
4128 *darwin*)
4129 # Don't allow lazy linking, it breaks C++ global constructors
4130 if test "$tagname" = CXX ; then
4131 compile_command="$compile_command ${wl}-bind_at_load"
4132 finalize_command="$finalize_command ${wl}-bind_at_load"
4133 fi
4134 ;;
7520 *-*-darwin*)
7521 # Don't allow lazy linking, it breaks C++ global constructors
7522 # But is supposedly fixed on 10.4 or later (yay!).
7523 if test "$tagname" = CXX ; then
7524 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7525 10.[0123])
7526 compile_command="$compile_command ${wl}-bind_at_load"
7527 finalize_command="$finalize_command ${wl}-bind_at_load"
7528 ;;
7529 esac
7530 fi
7531 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7532 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7533 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7534 ;;
41357535 esac
7536
7537
7538 # move library search paths that coincide with paths to not yet
7539 # installed libraries to the beginning of the library search list
7540 new_libs=
7541 for path in $notinst_path; do
7542 case " $new_libs " in
7543 *" -L$path/$objdir "*) ;;
7544 *)
7545 case " $compile_deplibs " in
7546 *" -L$path/$objdir "*)
7547 new_libs="$new_libs -L$path/$objdir" ;;
7548 esac
7549 ;;
7550 esac
7551 done
7552 for deplib in $compile_deplibs; do
7553 case $deplib in
7554 -L*)
7555 case " $new_libs " in
7556 *" $deplib "*) ;;
7557 *) new_libs="$new_libs $deplib" ;;
7558 esac
7559 ;;
7560 *) new_libs="$new_libs $deplib" ;;
7561 esac
7562 done
7563 compile_deplibs="$new_libs"
7564
41367565
41377566 compile_command="$compile_command $compile_deplibs"
41387567 finalize_command="$finalize_command $finalize_deplibs"
41777606 esac
41787607 fi
41797608 case $host in
4180 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7609 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7610 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
41817611 case :$dllsearchpath: in
41827612 *":$libdir:"*) ;;
7613 ::) dllsearchpath=$libdir;;
41837614 *) dllsearchpath="$dllsearchpath:$libdir";;
7615 esac
7616 case :$dllsearchpath: in
7617 *":$testbindir:"*) ;;
7618 ::) dllsearchpath=$testbindir;;
7619 *) dllsearchpath="$dllsearchpath:$testbindir";;
41847620 esac
41857621 ;;
41867622 esac
42317667
42327668 if test -n "$libobjs" && test "$build_old_libs" = yes; then
42337669 # Transform all the library objects into standard objects.
4234 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4235 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7670 compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7671 finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
42367672 fi
42377673
4238 dlsyms=
4239 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4240 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4241 dlsyms="${outputname}S.c"
4242 else
4243 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
7674 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
7675
7676 # template prelinking step
7677 if test -n "$prelink_cmds"; then
7678 func_execute_cmds "$prelink_cmds" 'exit $?'
7679 fi
7680
7681 wrappers_required=yes
7682 case $host in
7683 *cygwin* | *mingw* )
7684 if test "$build_libtool_libs" != yes; then
7685 wrappers_required=no
7686 fi
7687 ;;
7688 *cegcc)
7689 # Disable wrappers for cegcc, we are cross compiling anyway.
7690 wrappers_required=no
7691 ;;
7692 *)
7693 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
7694 wrappers_required=no
7695 fi
7696 ;;
7697 esac
7698 if test "$wrappers_required" = no; then
7699 # Replace the output file specification.
7700 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
7701 link_command="$compile_command$compile_rpath"
7702
7703 # We have no uninstalled library dependencies, so finalize right now.
7704 exit_status=0
7705 func_show_eval "$link_command" 'exit_status=$?'
7706
7707 # Delete the generated files.
7708 if test -f "$output_objdir/${outputname}S.${objext}"; then
7709 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
42447710 fi
4245 fi
4246
4247 if test -n "$dlsyms"; then
4248 case $dlsyms in
4249 "") ;;
4250 *.c)
4251 # Discover the nlist of each of the dlfiles.
4252 nlist="$output_objdir/${outputname}.nm"
4253
4254 $show "$rm $nlist ${nlist}S ${nlist}T"
4255 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4256
4257 # Parse the name list into a source file.
4258 $show "creating $output_objdir/$dlsyms"
4259
4260 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4261 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4262 /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4263
4264 #ifdef __cplusplus
4265 extern \"C\" {
4266 #endif
4267
4268 /* Prevent the only kind of declaration conflicts we can make. */
4269 #define lt_preloaded_symbols some_other_symbol
4270
4271 /* External symbol declarations for the compiler. */\
4272 "
4273
4274 if test "$dlself" = yes; then
4275 $show "generating symbol list for \`$output'"
4276
4277 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4278
4279 # Add our own program objects to the symbol list.
4280 progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4281 for arg in $progfiles; do
4282 $show "extracting global C symbols from \`$arg'"
4283 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4284 done
4285
4286 if test -n "$exclude_expsyms"; then
4287 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4288 $run eval '$mv "$nlist"T "$nlist"'
4289 fi
4290
4291 if test -n "$export_symbols_regex"; then
4292 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4293 $run eval '$mv "$nlist"T "$nlist"'
4294 fi
4295
4296 # Prepare the list of exported symbols
4297 if test -z "$export_symbols"; then
4298 export_symbols="$output_objdir/$output.exp"
4299 $run $rm $export_symbols
4300 $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4301 else
4302 $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
4303 $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
4304 $run eval 'mv "$nlist"T "$nlist"'
4305 fi
4306 fi
4307
4308 for arg in $dlprefiles; do
4309 $show "extracting global C symbols from \`$arg'"
4310 name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4311 $run eval '$echo ": $name " >> "$nlist"'
4312 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4313 done
4314
4315 if test -z "$run"; then
4316 # Make sure we have at least an empty file.
4317 test -f "$nlist" || : > "$nlist"
4318
4319 if test -n "$exclude_expsyms"; then
4320 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4321 $mv "$nlist"T "$nlist"
4322 fi
4323
4324 # Try sorting and uniquifying the output.
4325 if grep -v "^: " < "$nlist" |
4326 if sort -k 3 </dev/null >/dev/null 2>&1; then
4327 sort -k 3
4328 else
4329 sort +2
4330 fi |
4331 uniq > "$nlist"S; then
4332 :
4333 else
4334 grep -v "^: " < "$nlist" > "$nlist"S
4335 fi
4336
4337 if test -f "$nlist"S; then
4338 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
4339 else
4340 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
4341 fi
4342
4343 $echo >> "$output_objdir/$dlsyms" "\
4344
4345 #undef lt_preloaded_symbols
4346
4347 #if defined (__STDC__) && __STDC__
4348 # define lt_ptr void *
4349 #else
4350 # define lt_ptr char *
4351 # define const
4352 #endif
4353
4354 /* The mapping between symbol names and symbols. */
4355 const struct {
4356 const char *name;
4357 lt_ptr address;
4358 }
4359 lt_preloaded_symbols[] =
4360 {\
4361 "
4362
4363 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
4364
4365 $echo >> "$output_objdir/$dlsyms" "\
4366 {0, (lt_ptr) 0}
4367 };
4368
4369 /* This works around a problem in FreeBSD linker */
4370 #ifdef FREEBSD_WORKAROUND
4371 static const void *lt_preloaded_setup() {
4372 return lt_preloaded_symbols;
4373 }
4374 #endif
4375
4376 #ifdef __cplusplus
4377 }
4378 #endif\
4379 "
4380 fi
4381
4382 pic_flag_for_symtable=
4383 case $host in
4384 # compiling the symbol table file with pic_flag works around
4385 # a FreeBSD bug that causes programs to crash when -lm is
4386 # linked before any other PIC object. But we must not use
4387 # pic_flag when linking with -static. The problem exists in
4388 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4389 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4390 case "$compile_command " in
4391 *" -static "*) ;;
4392 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
4393 esac;;
4394 *-*-hpux*)
4395 case "$compile_command " in
4396 *" -static "*) ;;
4397 *) pic_flag_for_symtable=" $pic_flag";;
4398 esac
4399 esac
4400
4401 # Now compile the dynamic symbol file.
4402 $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4403 $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4404
4405 # Clean up the generated files.
4406 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4407 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4408
4409 # Transform the symbol file into the correct name.
4410 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4411 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4412 ;;
4413 *)
4414 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4415 exit $EXIT_FAILURE
4416 ;;
4417 esac
4418 else
4419 # We keep going just in case the user didn't refer to
4420 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4421 # really was required.
4422
4423 # Nullify the symbol file.
4424 compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
4425 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
4426 fi
4427
4428 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4429 # Replace the output file specification.
4430 compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
4431 link_command="$compile_command$compile_rpath"
4432
4433 # We have no uninstalled library dependencies, so finalize right now.
4434 $show "$link_command"
4435 $run eval "$link_command"
4436 status=$?
4437
4438 # Delete the generated files.
4439 if test -n "$dlsyms"; then
4440 $show "$rm $output_objdir/${outputname}S.${objext}"
4441 $run $rm "$output_objdir/${outputname}S.${objext}"
4442 fi
4443
4444 exit $status
4445 fi
4446
4447 if test -n "$shlibpath_var"; then
4448 # We should set the shlibpath_var
4449 rpath=
4450 for dir in $temp_rpath; do
4451 case $dir in
4452 [\\/]* | [A-Za-z]:[\\/]*)
4453 # Absolute path.
4454 rpath="$rpath$dir:"
4455 ;;
4456 *)
4457 # Relative path: add a thisdir entry.
4458 rpath="$rpath\$thisdir/$dir:"
4459 ;;
4460 esac
4461 done
4462 temp_rpath="$rpath"
7711
7712 exit $exit_status
44637713 fi
44647714
44657715 if test -n "$compile_shlibpath$finalize_shlibpath"; then
44947744 # We don't need to create a wrapper script.
44957745 link_command="$compile_var$compile_command$compile_rpath"
44967746 # Replace the output file specification.
4497 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
7747 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
44987748 # Delete the old output file.
4499 $run $rm $output
7749 $opt_dry_run || $RM $output
45007750 # Link the executable and exit
4501 $show "$link_command"
4502 $run eval "$link_command" || exit $?
7751 func_show_eval "$link_command" 'exit $?'
45037752 exit $EXIT_SUCCESS
45047753 fi
45057754
45087757 link_command="$compile_var$compile_command$compile_rpath"
45097758 relink_command="$finalize_var$finalize_command$finalize_rpath"
45107759
4511 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
4512 $echo "$modename: \`$output' will be relinked during installation" 1>&2
7760 func_warning "this platform does not like uninstalled shared libraries"
7761 func_warning "\`$output' will be relinked during installation"
45137762 else
45147763 if test "$fast_install" != no; then
45157764 link_command="$finalize_var$compile_command$finalize_rpath"
45167765 if test "$fast_install" = yes; then
4517 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
7766 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
45187767 else
45197768 # fast_install is set to needless
45207769 relink_command=
45267775 fi
45277776
45287777 # Replace the output file specification.
4529 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
7778 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
45307779
45317780 # Delete the old output files.
4532 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
4533
4534 $show "$link_command"
4535 $run eval "$link_command" || exit $?
7781 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
7782
7783 func_show_eval "$link_command" 'exit $?'
45367784
45377785 # Now create the wrapper script.
4538 $show "creating $output"
7786 func_verbose "creating $output"
45397787
45407788 # Quote the relink command for shipping.
45417789 if test -n "$relink_command"; then
45427790 # Preserve any variables that may affect compiler behavior
45437791 for var in $variables_saved_for_relink; do
45447792 if eval test -z \"\${$var+set}\"; then
4545 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
7793 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
45467794 elif eval var_value=\$$var; test -z "$var_value"; then
45477795 relink_command="$var=; export $var; $relink_command"
45487796 else
4549 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
4550 relink_command="$var=\"$var_value\"; export $var; $relink_command"
7797 func_quote_for_eval "$var_value"
7798 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
45517799 fi
45527800 done
45537801 relink_command="(cd `pwd`; $relink_command)"
4554 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
7802 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
45557803 fi
45567804
4557 # Quote $echo for shipping.
4558 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
7805 # Quote $ECHO for shipping.
7806 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
45597807 case $progpath in
45607808 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
45617809 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
45627810 esac
4563 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
7811 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
45647812 else
4565 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
7813 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
45667814 fi
45677815
4568 # Only actually do things if our run command is non-null.
4569 if test -z "$run"; then
7816 # Only actually do things if not in dry run mode.
7817 $opt_dry_run || {
45707818 # win32 will think the script is a binary if it has
45717819 # a .exe suffix, so we strip it off here.
45727820 case $output in
4573 *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
7821 *.exe) func_stripname '' '.exe' "$output"
7822 output=$func_stripname_result ;;
45747823 esac
45757824 # test for cygwin because mv fails w/o .exe extensions
45767825 case $host in
45777826 *cygwin*)
45787827 exeext=.exe
4579 outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
7828 func_stripname '' '.exe' "$outputname"
7829 outputname=$func_stripname_result ;;
45807830 *) exeext= ;;
45817831 esac
45827832 case $host in
45837833 *cygwin* | *mingw* )
4584 cwrappersource=`$echo ${objdir}/lt-${output}.c`
4585 cwrapper=`$echo ${output}.exe`
4586 $rm $cwrappersource $cwrapper
4587 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4588
4589 cat > $cwrappersource <<EOF
4590
4591 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4592 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4593
4594 The $output program cannot be directly executed until all the libtool
4595 libraries that it depends on are installed.
4596
4597 This wrapper executable should never be moved out of the build directory.
4598 If it is, it will not operate correctly.
4599
4600 Currently, it simply execs the wrapper *script* "/bin/sh $output",
4601 but could eventually absorb all of the scripts functionality and
4602 exec $objdir/$outputname directly.
4603 */
4604 EOF
4605 cat >> $cwrappersource<<"EOF"
4606 #include <stdio.h>
4607 #include <stdlib.h>
4608 #include <unistd.h>
4609 #include <malloc.h>
4610 #include <stdarg.h>
4611 #include <assert.h>
4612
4613 #if defined(PATH_MAX)
4614 # define LT_PATHMAX PATH_MAX
4615 #elif defined(MAXPATHLEN)
4616 # define LT_PATHMAX MAXPATHLEN
4617 #else
4618 # define LT_PATHMAX 1024
4619 #endif
4620
4621 #ifndef DIR_SEPARATOR
4622 #define DIR_SEPARATOR '/'
4623 #endif
4624
4625 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4626 defined (__OS2__)
4627 #define HAVE_DOS_BASED_FILE_SYSTEM
4628 #ifndef DIR_SEPARATOR_2
4629 #define DIR_SEPARATOR_2 '\\'
4630 #endif
4631 #endif
4632
4633 #ifndef DIR_SEPARATOR_2
4634 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
4635 #else /* DIR_SEPARATOR_2 */
4636 # define IS_DIR_SEPARATOR(ch) \
4637 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4638 #endif /* DIR_SEPARATOR_2 */
4639
4640 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4641 #define XFREE(stale) do { \
4642 if (stale) { free ((void *) stale); stale = 0; } \
4643 } while (0)
4644
4645 const char *program_name = NULL;
4646
4647 void * xmalloc (size_t num);
4648 char * xstrdup (const char *string);
4649 char * basename (const char *name);
4650 char * fnqualify(const char *path);
4651 char * strendzap(char *str, const char *pat);
4652 void lt_fatal (const char *message, ...);
4653
4654 int
4655 main (int argc, char *argv[])
4656 {
4657 char **newargz;
4658 int i;
4659
4660 program_name = (char *) xstrdup ((char *) basename (argv[0]));
4661 newargz = XMALLOC(char *, argc+2);
4662 EOF
4663
4664 cat >> $cwrappersource <<EOF
4665 newargz[0] = "$SHELL";
4666 EOF
4667
4668 cat >> $cwrappersource <<"EOF"
4669 newargz[1] = fnqualify(argv[0]);
4670 /* we know the script has the same name, without the .exe */
4671 /* so make sure newargz[1] doesn't end in .exe */
4672 strendzap(newargz[1],".exe");
4673 for (i = 1; i < argc; i++)
4674 newargz[i+1] = xstrdup(argv[i]);
4675 newargz[argc+1] = NULL;
4676 EOF
4677
4678 cat >> $cwrappersource <<EOF
4679 execv("$SHELL",newargz);
4680 EOF
4681
4682 cat >> $cwrappersource <<"EOF"
4683 }
4684
4685 void *
4686 xmalloc (size_t num)
4687 {
4688 void * p = (void *) malloc (num);
4689 if (!p)
4690 lt_fatal ("Memory exhausted");
4691
4692 return p;
4693 }
4694
4695 char *
4696 xstrdup (const char *string)
4697 {
4698 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
4699 ;
4700 }
4701
4702 char *
4703 basename (const char *name)
4704 {
4705 const char *base;
4706
4707 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4708 /* Skip over the disk name in MSDOS pathnames. */
4709 if (isalpha (name[0]) && name[1] == ':')
4710 name += 2;
4711 #endif
4712
4713 for (base = name; *name; name++)
4714 if (IS_DIR_SEPARATOR (*name))
4715 base = name + 1;
4716 return (char *) base;
4717 }
4718
4719 char *
4720 fnqualify(const char *path)
4721 {
4722 size_t size;
4723 char *p;
4724 char tmp[LT_PATHMAX + 1];
4725
4726 assert(path != NULL);
4727
4728 /* Is it qualified already? */
4729 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4730 if (isalpha (path[0]) && path[1] == ':')
4731 return xstrdup (path);
4732 #endif
4733 if (IS_DIR_SEPARATOR (path[0]))
4734 return xstrdup (path);
4735
4736 /* prepend the current directory */
4737 /* doesn't handle '~' */
4738 if (getcwd (tmp, LT_PATHMAX) == NULL)
4739 lt_fatal ("getcwd failed");
4740 size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
4741 p = XMALLOC(char, size);
4742 sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
4743 return p;
4744 }
4745
4746 char *
4747 strendzap(char *str, const char *pat)
4748 {
4749 size_t len, patlen;
4750
4751 assert(str != NULL);
4752 assert(pat != NULL);
4753
4754 len = strlen(str);
4755 patlen = strlen(pat);
4756
4757 if (patlen <= len)
4758 {
4759 str += len - patlen;
4760 if (strcmp(str, pat) == 0)
4761 *str = '\0';
4762 }
4763 return str;
4764 }
4765
4766 static void
4767 lt_error_core (int exit_status, const char * mode,
4768 const char * message, va_list ap)
4769 {
4770 fprintf (stderr, "%s: %s: ", program_name, mode);
4771 vfprintf (stderr, message, ap);
4772 fprintf (stderr, ".\n");
4773
4774 if (exit_status >= 0)
4775 exit (exit_status);
4776 }
4777
4778 void
4779 lt_fatal (const char *message, ...)
4780 {
4781 va_list ap;
4782 va_start (ap, message);
4783 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
4784 va_end (ap);
4785 }
4786 EOF
4787 # we should really use a build-platform specific compiler
4788 # here, but OTOH, the wrappers (shell script and this C one)
4789 # are only useful if you want to execute the "real" binary.
4790 # Since the "real" binary is built for $host, then this
4791 # wrapper might as well be built for $host, too.
4792 $run $LTCC -s -o $cwrapper $cwrappersource
7834 func_dirname_and_basename "$output" "" "."
7835 output_name=$func_basename_result
7836 output_path=$func_dirname_result
7837 cwrappersource="$output_path/$objdir/lt-$output_name.c"
7838 cwrapper="$output_path/$output_name.exe"
7839 $RM $cwrappersource $cwrapper
7840 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
7841
7842 func_emit_cwrapperexe_src > $cwrappersource
7843
7844 # The wrapper executable is built using the $host compiler,
7845 # because it contains $host paths and files. If cross-
7846 # compiling, it, like the target executable, must be
7847 # executed on the $host or under an emulation environment.
7848 $opt_dry_run || {
7849 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
7850 $STRIP $cwrapper
7851 }
7852
7853 # Now, create the wrapper script for func_source use:
7854 func_ltwrapper_scriptname $cwrapper
7855 $RM $func_ltwrapper_scriptname_result
7856 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
7857 $opt_dry_run || {
7858 # note: this script will not be executed, so do not chmod.
7859 if test "x$build" = "x$host" ; then
7860 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
7861 else
7862 func_emit_wrapper no > $func_ltwrapper_scriptname_result
7863 fi
7864 }
7865 ;;
7866 * )
7867 $RM $output
7868 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
7869
7870 func_emit_wrapper no > $output
7871 chmod +x $output
47937872 ;;
47947873 esac
4795 $rm $output
4796 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
4797
4798 $echo > $output "\
4799 #! $SHELL
4800
4801 # $output - temporary wrapper script for $objdir/$outputname
4802 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4803 #
4804 # The $output program cannot be directly executed until all the libtool
4805 # libraries that it depends on are installed.
4806 #
4807 # This wrapper script should never be moved out of the build directory.
4808 # If it is, it will not operate correctly.
4809
4810 # Sed substitution that helps us do robust quoting. It backslashifies
4811 # metacharacters that are still active within double-quoted strings.
4812 Xsed='${SED} -e 1s/^X//'
4813 sed_quote_subst='$sed_quote_subst'
4814
4815 # The HP-UX ksh and POSIX shell print the target directory to stdout
4816 # if CDPATH is set.
4817 if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
4818
4819 relink_command=\"$relink_command\"
4820
4821 # This environment variable determines our operation mode.
4822 if test \"\$libtool_install_magic\" = \"$magic\"; then
4823 # install mode needs the following variable:
4824 notinst_deplibs='$notinst_deplibs'
4825 else
4826 # When we are sourced in execute mode, \$file and \$echo are already set.
4827 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4828 echo=\"$qecho\"
4829 file=\"\$0\"
4830 # Make sure echo works.
4831 if test \"X\$1\" = X--no-reexec; then
4832 # Discard the --no-reexec flag, and continue.
4833 shift
4834 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
4835 # Yippee, \$echo works!
4836 :
4837 else
4838 # Restart under the correct shell, and then maybe \$echo will work.
4839 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
4840 fi
4841 fi\
4842 "
4843 $echo >> $output "\
4844
4845 # Find the directory that this script lives in.
4846 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
4847 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
4848
4849 # Follow symbolic links until we get to the real thisdir.
4850 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
4851 while test -n \"\$file\"; do
4852 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
4853
4854 # If there was a directory component, then change thisdir.
4855 if test \"x\$destdir\" != \"x\$file\"; then
4856 case \"\$destdir\" in
4857 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4858 *) thisdir=\"\$thisdir/\$destdir\" ;;
4859 esac
4860 fi
4861
4862 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
4863 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
4864 done
4865
4866 # Try to get the absolute directory name.
4867 absdir=\`cd \"\$thisdir\" && pwd\`
4868 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4869 "
4870
4871 if test "$fast_install" = yes; then
4872 $echo >> $output "\
4873 program=lt-'$outputname'$exeext
4874 progdir=\"\$thisdir/$objdir\"
4875
4876 if test ! -f \"\$progdir/\$program\" || \\
4877 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4878 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
4879
4880 file=\"\$\$-\$program\"
4881
4882 if test ! -d \"\$progdir\"; then
4883 $mkdir \"\$progdir\"
4884 else
4885 $rm \"\$progdir/\$file\"
4886 fi"
4887
4888 $echo >> $output "\
4889
4890 # relink executable if necessary
4891 if test -n \"\$relink_command\"; then
4892 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
4893 else
4894 $echo \"\$relink_command_output\" >&2
4895 $rm \"\$progdir/\$file\"
4896 exit $EXIT_FAILURE
4897 fi
4898 fi
4899
4900 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
4901 { $rm \"\$progdir/\$program\";
4902 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
4903 $rm \"\$progdir/\$file\"
4904 fi"
4905 else
4906 $echo >> $output "\
4907 program='$outputname'
4908 progdir=\"\$thisdir/$objdir\"
4909 "
4910 fi
4911
4912 $echo >> $output "\
4913
4914 if test -f \"\$progdir/\$program\"; then"
4915
4916 # Export our shlibpath_var if we have one.
4917 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4918 $echo >> $output "\
4919 # Add our own library path to $shlibpath_var
4920 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
4921
4922 # Some systems cannot cope with colon-terminated $shlibpath_var
4923 # The second colon is a workaround for a bug in BeOS R4 sed
4924 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
4925
4926 export $shlibpath_var
4927 "
4928 fi
4929
4930 # fixup the dll searchpath if we need to.
4931 if test -n "$dllsearchpath"; then
4932 $echo >> $output "\
4933 # Add the dll search path components to the executable PATH
4934 PATH=$dllsearchpath:\$PATH
4935 "
4936 fi
4937
4938 $echo >> $output "\
4939 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4940 # Run the actual program with our arguments.
4941 "
4942 case $host in
4943 # Backslashes separate directories on plain windows
4944 *-*-mingw | *-*-os2*)
4945 $echo >> $output "\
4946 exec \$progdir\\\\\$program \${1+\"\$@\"}
4947 "
4948 ;;
4949
4950 *)
4951 $echo >> $output "\
4952 exec \$progdir/\$program \${1+\"\$@\"}
4953 "
4954 ;;
4955 esac
4956 $echo >> $output "\
4957 \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
4958 exit $EXIT_FAILURE
4959 fi
4960 else
4961 # The program doesn't exist.
4962 \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
4963 \$echo \"This script is just a wrapper for \$program.\" 1>&2
4964 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
4965 exit $EXIT_FAILURE
4966 fi
4967 fi\
4968 "
4969 chmod +x $output
4970 fi
7874 }
49717875 exit $EXIT_SUCCESS
49727876 ;;
49737877 esac
49767880 for oldlib in $oldlibs; do
49777881
49787882 if test "$build_libtool_libs" = convenience; then
4979 oldobjs="$libobjs_save"
7883 oldobjs="$libobjs_save $symfileobj"
49807884 addlibs="$convenience"
49817885 build_libtool_libs=no
49827886 else
49857889 build_libtool_libs=no
49867890 else
49877891 oldobjs="$old_deplibs $non_pic_objects"
7892 if test "$preload" = yes && test -f "$symfileobj"; then
7893 oldobjs="$oldobjs $symfileobj"
7894 fi
49887895 fi
49897896 addlibs="$old_convenience"
49907897 fi
49917898
49927899 if test -n "$addlibs"; then
49937900 gentop="$output_objdir/${outputname}x"
4994 $show "${rm}r $gentop"
4995 $run ${rm}r "$gentop"
4996 $show "$mkdir $gentop"
4997 $run $mkdir "$gentop"
4998 status=$?
4999 if test "$status" -ne 0 && test ! -d "$gentop"; then
5000 exit $status
5001 fi
50027901 generated="$generated $gentop"
50037902
5004 # Add in members from convenience archives.
5005 for xlib in $addlibs; do
5006 # Extract the objects.
5007 case $xlib in
5008 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
5009 *) xabs=`pwd`"/$xlib" ;;
5010 esac
5011 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
5012 xdir="$gentop/$xlib"
5013
5014 $show "${rm}r $xdir"
5015 $run ${rm}r "$xdir"
5016 $show "$mkdir $xdir"
5017 $run $mkdir "$xdir"
5018 status=$?
5019 if test "$status" -ne 0 && test ! -d "$xdir"; then
5020 exit $status
5021 fi
5022 # We will extract separately just the conflicting names and we will no
5023 # longer touch any unique names. It is faster to leave these extract
5024 # automatically by $AR in one run.
5025 $show "(cd $xdir && $AR x $xabs)"
5026 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
5027 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
5028 :
5029 else
5030 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
5031 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
5032 $AR t "$xabs" | sort | uniq -cd | while read -r count name
5033 do
5034 i=1
5035 while test "$i" -le "$count"
5036 do
5037 # Put our $i before any first dot (extension)
5038 # Never overwrite any file
5039 name_to="$name"
5040 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
5041 do
5042 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
5043 done
5044 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
5045 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
5046 i=`expr $i + 1`
5047 done
5048 done
5049 fi
5050
5051 oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
5052 done
7903 func_extract_archives $gentop $addlibs
7904 oldobjs="$oldobjs $func_extract_archives_result"
50537905 fi
50547906
50557907 # Do each command in the archive commands.
50567908 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5057 cmds=$old_archive_from_new_cmds
7909 cmds=$old_archive_from_new_cmds
50587910 else
7911
7912 # Add any objects from preloaded convenience libraries
7913 if test -n "$dlprefiles"; then
7914 gentop="$output_objdir/${outputname}x"
7915 generated="$generated $gentop"
7916
7917 func_extract_archives $gentop $dlprefiles
7918 oldobjs="$oldobjs $func_extract_archives_result"
7919 fi
7920
7921 # POSIX demands no paths to be encoded in archives. We have
7922 # to avoid creating archives with duplicate basenames if we
7923 # might have to extract them afterwards, e.g., when creating a
7924 # static archive out of a convenience library, or when linking
7925 # the entirety of a libtool archive into another (currently
7926 # not supported by libtool).
7927 if (for obj in $oldobjs
7928 do
7929 func_basename "$obj"
7930 $ECHO "$func_basename_result"
7931 done | sort | sort -uc >/dev/null 2>&1); then
7932 :
7933 else
7934 $ECHO "copying selected object files to avoid basename conflicts..."
7935 gentop="$output_objdir/${outputname}x"
7936 generated="$generated $gentop"
7937 func_mkdir_p "$gentop"
7938 save_oldobjs=$oldobjs
7939 oldobjs=
7940 counter=1
7941 for obj in $save_oldobjs
7942 do
7943 func_basename "$obj"
7944 objbase="$func_basename_result"
7945 case " $oldobjs " in
7946 " ") oldobjs=$obj ;;
7947 *[\ /]"$objbase "*)
7948 while :; do
7949 # Make sure we don't pick an alternate name that also
7950 # overlaps.
7951 newobj=lt$counter-$objbase
7952 func_arith $counter + 1
7953 counter=$func_arith_result
7954 case " $oldobjs " in
7955 *[\ /]"$newobj "*) ;;
7956 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
7957 esac
7958 done
7959 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
7960 oldobjs="$oldobjs $gentop/$newobj"
7961 ;;
7962 *) oldobjs="$oldobjs $obj" ;;
7963 esac
7964 done
7965 fi
50597966 eval cmds=\"$old_archive_cmds\"
50607967
5061 if len=`expr "X$cmds" : ".*"` &&
5062 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7968 func_len " $cmds"
7969 len=$func_len_result
7970 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
50637971 cmds=$old_archive_cmds
50647972 else
50657973 # the command line is too long to link in one step, link in parts
5066 $echo "using piecewise archive linking..."
7974 func_verbose "using piecewise archive linking..."
50677975 save_RANLIB=$RANLIB
50687976 RANLIB=:
50697977 objlist=
50707978 concat_cmds=
50717979 save_oldobjs=$oldobjs
5072 # GNU ar 2.10+ was changed to match POSIX; thus no paths are
5073 # encoded into archives. This makes 'ar r' malfunction in
5074 # this piecewise linking case whenever conflicting object
5075 # names appear in distinct ar calls; check, warn and compensate.
5076 if (for obj in $save_oldobjs
5077 do
5078 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5079 done | sort | sort -uc >/dev/null 2>&1); then
5080 :
5081 else
5082 $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
5083 $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
5084 AR_FLAGS=cq
5085 fi
7980 oldobjs=
50867981 # Is there a better way of finding the last object in the list?
50877982 for obj in $save_oldobjs
50887983 do
50897984 last_oldobj=$obj
50907985 done
7986 eval test_cmds=\"$old_archive_cmds\"
7987 func_len " $test_cmds"
7988 len0=$func_len_result
7989 len=$len0
50917990 for obj in $save_oldobjs
50927991 do
5093 oldobjs="$objlist $obj"
5094 objlist="$objlist $obj"
5095 eval test_cmds=\"$old_archive_cmds\"
5096 if len=`expr "X$test_cmds" : ".*"` &&
5097 test "$len" -le "$max_cmd_len"; then
7992 func_len " $obj"
7993 func_arith $len + $func_len_result
7994 len=$func_arith_result
7995 func_append objlist " $obj"
7996 if test "$len" -lt "$max_cmd_len"; then
50987997 :
50997998 else
51007999 # the above command should be used before it gets too long
51018000 oldobjs=$objlist
51028001 if test "$obj" = "$last_oldobj" ; then
5103 RANLIB=$save_RANLIB
8002 RANLIB=$save_RANLIB
51048003 fi
51058004 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
51068005 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
51078006 objlist=
8007 len=$len0
51088008 fi
51098009 done
51108010 RANLIB=$save_RANLIB
51168016 fi
51178017 fi
51188018 fi
5119 save_ifs="$IFS"; IFS='~'
5120 for cmd in $cmds; do
5121 eval cmd=\"$cmd\"
5122 IFS="$save_ifs"
5123 $show "$cmd"
5124 $run eval "$cmd" || exit $?
5125 done
5126 IFS="$save_ifs"
8019 func_execute_cmds "$cmds" 'exit $?'
51278020 done
51288021
5129 if test -n "$generated"; then
5130 $show "${rm}r$generated"
5131 $run ${rm}r$generated
5132 fi
8022 test -n "$generated" && \
8023 func_show_eval "${RM}r$generated"
51338024
51348025 # Now create the libtool archive.
51358026 case $output in
51368027 *.la)
51378028 old_library=
51388029 test "$build_old_libs" = yes && old_library="$libname.$libext"
5139 $show "creating $output"
8030 func_verbose "creating $output"
51408031
51418032 # Preserve any variables that may affect compiler behavior
51428033 for var in $variables_saved_for_relink; do
51438034 if eval test -z \"\${$var+set}\"; then
5144 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
8035 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
51458036 elif eval var_value=\$$var; test -z "$var_value"; then
51468037 relink_command="$var=; export $var; $relink_command"
51478038 else
5148 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5149 relink_command="$var=\"$var_value\"; export $var; $relink_command"
8039 func_quote_for_eval "$var_value"
8040 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
51508041 fi
51518042 done
51528043 # Quote the link command for shipping.
51538044 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5154 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
8045 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
51558046 if test "$hardcode_automatic" = yes ; then
51568047 relink_command=
51578048 fi
51588049
5159
51608050 # Only create the output if not a dry run.
5161 if test -z "$run"; then
8051 $opt_dry_run || {
51628052 for installed in no yes; do
51638053 if test "$installed" = yes; then
51648054 if test -z "$install_libdir"; then
51708060 for deplib in $dependency_libs; do
51718061 case $deplib in
51728062 *.la)
5173 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
8063 func_basename "$deplib"
8064 name="$func_basename_result"
51748065 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5175 if test -z "$libdir"; then
5176 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5177 exit $EXIT_FAILURE
5178 fi
8066 test -z "$libdir" && \
8067 func_fatal_error "\`$deplib' is not a valid libtool archive"
51798068 newdependency_libs="$newdependency_libs $libdir/$name"
51808069 ;;
51818070 *) newdependency_libs="$newdependency_libs $deplib" ;;
51838072 done
51848073 dependency_libs="$newdependency_libs"
51858074 newdlfiles=
8075
51868076 for lib in $dlfiles; do
5187 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5188 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5189 if test -z "$libdir"; then
5190 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5191 exit $EXIT_FAILURE
5192 fi
5193 newdlfiles="$newdlfiles $libdir/$name"
8077 case $lib in
8078 *.la)
8079 func_basename "$lib"
8080 name="$func_basename_result"
8081 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
8082 test -z "$libdir" && \
8083 func_fatal_error "\`$lib' is not a valid libtool archive"
8084 newdlfiles="$newdlfiles $libdir/$name"
8085 ;;
8086 *) newdlfiles="$newdlfiles $lib" ;;
8087 esac
51948088 done
51958089 dlfiles="$newdlfiles"
51968090 newdlprefiles=
51978091 for lib in $dlprefiles; do
5198 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5199 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5200 if test -z "$libdir"; then
5201 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5202 exit $EXIT_FAILURE
5203 fi
5204 newdlprefiles="$newdlprefiles $libdir/$name"
8092 case $lib in
8093 *.la)
8094 # Only pass preopened files to the pseudo-archive (for
8095 # eventual linking with the app. that links it) if we
8096 # didn't already link the preopened objects directly into
8097 # the library:
8098 func_basename "$lib"
8099 name="$func_basename_result"
8100 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
8101 test -z "$libdir" && \
8102 func_fatal_error "\`$lib' is not a valid libtool archive"
8103 newdlprefiles="$newdlprefiles $libdir/$name"
8104 ;;
8105 esac
52058106 done
52068107 dlprefiles="$newdlprefiles"
52078108 else
52248125 done
52258126 dlprefiles="$newdlprefiles"
52268127 fi
5227 $rm $output
8128 $RM $output
52288129 # place dlname in correct position for cygwin
52298130 tdlname=$dlname
52308131 case $host,$output,$installed,$module,$dlname in
5231 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
8132 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
52328133 esac
5233 $echo > $output "\
8134 $ECHO > $output "\
52348135 # $outputname - a libtool library file
5235 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
8136 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
52368137 #
52378138 # Please DO NOT delete this file!
52388139 # It is necessary for linking the library.
52468147 # The name of the static archive.
52478148 old_library='$old_library'
52488149
8150 # Linker flags that can not go in dependency_libs.
8151 inherited_linker_flags='$new_inherited_linker_flags'
8152
52498153 # Libraries that this one depends upon.
52508154 dependency_libs='$dependency_libs'
8155
8156 # Names of additional weak libraries provided by this library
8157 weak_library_names='$weak_libs'
52518158
52528159 # Version information for $libname.
52538160 current=$current
52678174 # Directory that this library needs to be installed in:
52688175 libdir='$install_libdir'"
52698176 if test "$installed" = no && test "$need_relink" = yes; then
5270 $echo >> $output "\
8177 $ECHO >> $output "\
52718178 relink_command=\"$relink_command\""
52728179 fi
52738180 done
5274 fi
8181 }
52758182
52768183 # Do a symbolic link so that the libtool archive can be found in
52778184 # LD_LIBRARY_PATH before the program is installed.
5278 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5279 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
8185 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
52808186 ;;
52818187 esac
52828188 exit $EXIT_SUCCESS
5283 ;;
5284
5285 # libtool install mode
5286 install)
5287 modename="$modename: install"
5288
5289 # There may be an optional sh(1) argument at the beginning of
5290 # install_prog (especially on Windows NT).
5291 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5292 # Allow the use of GNU shtool's install command.
5293 $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
5294 # Aesthetically quote it.
5295 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5296 case $arg in
5297 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
5298 arg="\"$arg\""
5299 ;;
5300 esac
5301 install_prog="$arg "
5302 arg="$1"
5303 shift
5304 else
5305 install_prog=
5306 arg="$nonopt"
5307 fi
5308
5309 # The real first argument should be the name of the installation program.
5310 # Aesthetically quote it.
5311 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5312 case $arg in
5313 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
5314 arg="\"$arg\""
5315 ;;
5316 esac
5317 install_prog="$install_prog$arg"
5318
5319 # We need to accept at least all the BSD install flags.
5320 dest=
8189 }
8190
8191 { test "$mode" = link || test "$mode" = relink; } &&
8192 func_mode_link ${1+"$@"}
8193
8194
8195 # func_mode_uninstall arg...
8196 func_mode_uninstall ()
8197 {
8198 $opt_debug
8199 RM="$nonopt"
53218200 files=
5322 opts=
5323 prev=
5324 install_type=
5325 isdir=no
5326 stripme=
5327 for arg
5328 do
5329 if test -n "$dest"; then
5330 files="$files $dest"
5331 dest="$arg"
5332 continue
5333 fi
5334
5335 case $arg in
5336 -d) isdir=yes ;;
5337 -f) prev="-f" ;;
5338 -g) prev="-g" ;;
5339 -m) prev="-m" ;;
5340 -o) prev="-o" ;;
5341 -s)
5342 stripme=" -s"
5343 continue
5344 ;;
5345 -*) ;;
5346
5347 *)
5348 # If the previous option needed an argument, then skip it.
5349 if test -n "$prev"; then
5350 prev=
5351 else
5352 dest="$arg"
5353 continue
5354 fi
5355 ;;
5356 esac
5357
5358 # Aesthetically quote the argument.
5359 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5360 case $arg in
5361 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
5362 arg="\"$arg\""
5363 ;;
5364 esac
5365 install_prog="$install_prog $arg"
5366 done
5367
5368 if test -z "$install_prog"; then
5369 $echo "$modename: you must specify an install program" 1>&2
5370 $echo "$help" 1>&2
5371 exit $EXIT_FAILURE
5372 fi
5373
5374 if test -n "$prev"; then
5375 $echo "$modename: the \`$prev' option requires an argument" 1>&2
5376 $echo "$help" 1>&2
5377 exit $EXIT_FAILURE
5378 fi
5379
5380 if test -z "$files"; then
5381 if test -z "$dest"; then
5382 $echo "$modename: no file or destination specified" 1>&2
5383 else
5384 $echo "$modename: you must specify a destination" 1>&2
5385 fi
5386 $echo "$help" 1>&2
5387 exit $EXIT_FAILURE
5388 fi
5389
5390 # Strip any trailing slash from the destination.
5391 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5392
5393 # Check to see that the destination is a directory.
5394 test -d "$dest" && isdir=yes
5395 if test "$isdir" = yes; then
5396 destdir="$dest"
5397 destname=
5398 else
5399 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5400 test "X$destdir" = "X$dest" && destdir=.
5401 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5402
5403 # Not a directory, so check to see that there is only one file specified.
5404 set dummy $files
5405 if test "$#" -gt 2; then
5406 $echo "$modename: \`$dest' is not a directory" 1>&2
5407 $echo "$help" 1>&2
5408 exit $EXIT_FAILURE
5409 fi
5410 fi
5411 case $destdir in
5412 [\\/]* | [A-Za-z]:[\\/]*) ;;
5413 *)
5414 for file in $files; do
5415 case $file in
5416 *.lo) ;;
5417 *)
5418 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5419 $echo "$help" 1>&2
5420 exit $EXIT_FAILURE
5421 ;;
5422 esac
5423 done
5424 ;;
5425 esac
8201 rmforce=
8202 exit_status=0
54268203
54278204 # This variable tells wrapper scripts just to set variables rather
54288205 # than running their programs.
54298206 libtool_install_magic="$magic"
54308207
5431 staticlibs=
5432 future_libdirs=
5433 current_libdirs=
5434 for file in $files; do
5435
5436 # Do each installation.
5437 case $file in
5438 *.$libext)
5439 # Do the static libraries later.
5440 staticlibs="$staticlibs $file"
5441 ;;
5442
5443 *.la)
5444 # Check to see that this really is a libtool archive.
5445 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5446 else
5447 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5448 $echo "$help" 1>&2
5449 exit $EXIT_FAILURE
5450 fi
5451
5452 library_names=
5453 old_library=
5454 relink_command=
5455 # If there is no directory component, then add one.
5456 case $file in
5457 */* | *\\*) . $file ;;
5458 *) . ./$file ;;
5459 esac
5460
5461 # Add the libdir to current_libdirs if it is the destination.
5462 if test "X$destdir" = "X$libdir"; then
5463 case "$current_libdirs " in
5464 *" $libdir "*) ;;
5465 *) current_libdirs="$current_libdirs $libdir" ;;
5466 esac
5467 else
5468 # Note the libdir as a future libdir.
5469 case "$future_libdirs " in
5470 *" $libdir "*) ;;
5471 *) future_libdirs="$future_libdirs $libdir" ;;
5472 esac
5473 fi
5474
5475 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
5476 test "X$dir" = "X$file/" && dir=
5477 dir="$dir$objdir"
5478
5479 if test -n "$relink_command"; then
5480 # Determine the prefix the user has applied to our future dir.
5481 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
5482
5483 # Don't allow the user to place us outside of our expected
5484 # location b/c this prevents finding dependent libraries that
5485 # are installed to the same prefix.
5486 # At present, this check doesn't affect windows .dll's that
5487 # are installed into $libdir/../bin (currently, that works fine)
5488 # but it's something to keep an eye on.
5489 if test "$inst_prefix_dir" = "$destdir"; then
5490 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
5491 exit $EXIT_FAILURE
5492 fi
5493
5494 if test -n "$inst_prefix_dir"; then
5495 # Stick the inst_prefix_dir data into the link command.
5496 relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
5497 else
5498 relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
5499 fi
5500
5501 $echo "$modename: warning: relinking \`$file'" 1>&2
5502 $show "$relink_command"
5503 if $run eval "$relink_command"; then :
5504 else
5505 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
5506 exit $EXIT_FAILURE
5507 fi
5508 fi
5509
5510 # See the names of the shared library.
5511 set dummy $library_names
5512 if test -n "$2"; then
5513 realname="$2"
5514 shift
5515 shift
5516
5517 srcname="$realname"
5518 test -n "$relink_command" && srcname="$realname"T
5519
5520 # Install the shared library and build the symlinks.
5521 $show "$install_prog $dir/$srcname $destdir/$realname"
5522 $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
5523 if test -n "$stripme" && test -n "$striplib"; then
5524 $show "$striplib $destdir/$realname"
5525 $run eval "$striplib $destdir/$realname" || exit $?
5526 fi
5527
5528 if test "$#" -gt 0; then
5529 # Delete the old symlinks, and create new ones.
5530 for linkname
5531 do
5532 if test "$linkname" != "$realname"; then
5533 $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
5534 $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
5535 fi
5536 done
5537 fi
5538
5539 # Do each command in the postinstall commands.
5540 lib="$destdir/$realname"
5541 cmds=$postinstall_cmds
5542 save_ifs="$IFS"; IFS='~'
5543 for cmd in $cmds; do
5544 IFS="$save_ifs"
5545 eval cmd=\"$cmd\"
5546 $show "$cmd"
5547 $run eval "$cmd" || exit $?
5548 done
5549 IFS="$save_ifs"
5550 fi
5551
5552 # Install the pseudo-library for information purposes.
5553 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5554 instname="$dir/$name"i
5555 $show "$install_prog $instname $destdir/$name"
5556 $run eval "$install_prog $instname $destdir/$name" || exit $?
5557
5558 # Maybe install the static library, too.
5559 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
5560 ;;
5561
5562 *.lo)
5563 # Install (i.e. copy) a libtool object.
5564
5565 # Figure out destination file name, if it wasn't already specified.
5566 if test -n "$destname"; then
5567 destfile="$destdir/$destname"
5568 else
5569 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5570 destfile="$destdir/$destfile"
5571 fi
5572
5573 # Deduce the name of the destination old-style object file.
5574 case $destfile in
5575 *.lo)
5576 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
5577 ;;
5578 *.$objext)
5579 staticdest="$destfile"
5580 destfile=
5581 ;;
5582 *)
5583 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
5584 $echo "$help" 1>&2
5585 exit $EXIT_FAILURE
5586 ;;
5587 esac
5588
5589 # Install the libtool object if requested.
5590 if test -n "$destfile"; then
5591 $show "$install_prog $file $destfile"
5592 $run eval "$install_prog $file $destfile" || exit $?
5593 fi
5594
5595 # Install the old object if enabled.
5596 if test "$build_old_libs" = yes; then
5597 # Deduce the name of the old-style object file.
5598 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
5599
5600 $show "$install_prog $staticobj $staticdest"
5601 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
5602 fi
5603 exit $EXIT_SUCCESS
5604 ;;
5605
5606 *)
5607 # Figure out destination file name, if it wasn't already specified.
5608 if test -n "$destname"; then
5609 destfile="$destdir/$destname"
5610 else
5611 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5612 destfile="$destdir/$destfile"
5613 fi
5614
5615 # If the file is missing, and there is a .exe on the end, strip it
5616 # because it is most likely a libtool script we actually want to
5617 # install
5618 stripped_ext=""
5619 case $file in
5620 *.exe)
5621 if test ! -f "$file"; then
5622 file=`$echo $file|${SED} 's,.exe$,,'`
5623 stripped_ext=".exe"
5624 fi
5625 ;;
5626 esac
5627
5628 # Do a test to see if this is really a libtool program.
5629 case $host in
5630 *cygwin*|*mingw*)
5631 wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
5632 ;;
5633 *)
5634 wrapper=$file
5635 ;;
5636 esac
5637 if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
5638 notinst_deplibs=
5639 relink_command=
5640
5641 # To insure that "foo" is sourced, and not "foo.exe",
5642 # finese the cygwin/MSYS system by explicitly sourcing "foo."
5643 # which disallows the automatic-append-.exe behavior.
5644 case $build in
5645 *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
5646 *) wrapperdot=${wrapper} ;;
5647 esac
5648 # If there is no directory component, then add one.
5649 case $file in
5650 */* | *\\*) . ${wrapperdot} ;;
5651 *) . ./${wrapperdot} ;;
5652 esac
5653
5654 # Check the variables that should have been set.
5655 if test -z "$notinst_deplibs"; then
5656 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
5657 exit $EXIT_FAILURE
5658 fi
5659
5660 finalize=yes
5661 for lib in $notinst_deplibs; do
5662 # Check to see that each library is installed.
5663 libdir=
5664 if test -f "$lib"; then
5665 # If there is no directory component, then add one.
5666 case $lib in
5667 */* | *\\*) . $lib ;;
5668 *) . ./$lib ;;
5669 esac
5670 fi
5671 libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
5672 if test -n "$libdir" && test ! -f "$libfile"; then
5673 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
5674 finalize=no
5675 fi
5676 done
5677
5678 relink_command=
5679 # To insure that "foo" is sourced, and not "foo.exe",
5680 # finese the cygwin/MSYS system by explicitly sourcing "foo."
5681 # which disallows the automatic-append-.exe behavior.
5682 case $build in
5683 *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
5684 *) wrapperdot=${wrapper} ;;
5685 esac
5686 # If there is no directory component, then add one.
5687 case $file in
5688 */* | *\\*) . ${wrapperdot} ;;
5689 *) . ./${wrapperdot} ;;
5690 esac
5691
5692 outputname=
5693 if test "$fast_install" = no && test -n "$relink_command"; then
5694 if test "$finalize" = yes && test -z "$run"; then
5695 tmpdir="/tmp"
5696 test -n "$TMPDIR" && tmpdir="$TMPDIR"
5697 tmpdir="$tmpdir/libtool-$$"
5698 save_umask=`umask`
5699 umask 0077
5700 if $mkdir "$tmpdir"; then
5701 umask $save_umask
5702 else
5703 umask $save_umask
5704 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5705 continue
5706 fi
5707 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
5708 outputname="$tmpdir/$file"
5709 # Replace the output file specification.
5710 relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
5711
5712 $show "$relink_command"
5713 if $run eval "$relink_command"; then :
5714 else
5715 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
5716 ${rm}r "$tmpdir"
5717 continue
5718 fi
5719 file="$outputname"
5720 else
5721 $echo "$modename: warning: cannot relink \`$file'" 1>&2
5722 fi
5723 else
5724 # Install the binary that we compiled earlier.
5725 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
5726 fi
5727 fi
5728
5729 # remove .exe since cygwin /usr/bin/install will append another
5730 # one anyways
5731 case $install_prog,$host in
5732 */usr/bin/install*,*cygwin*)
5733 case $file:$destfile in
5734 *.exe:*.exe)
5735 # this is ok
5736 ;;
5737 *.exe:*)
5738 destfile=$destfile.exe
5739 ;;
5740 *:*.exe)
5741 destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
5742 ;;
5743 esac
5744 ;;
5745 esac
5746 $show "$install_prog$stripme $file $destfile"
5747 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
5748 test -n "$outputname" && ${rm}r "$tmpdir"
5749 ;;
5750 esac
5751 done
5752
5753 for file in $staticlibs; do
5754 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5755
5756 # Set up the ranlib parameters.
5757 oldlib="$destdir/$name"
5758
5759 $show "$install_prog $file $oldlib"
5760 $run eval "$install_prog \$file \$oldlib" || exit $?
5761
5762 if test -n "$stripme" && test -n "$old_striplib"; then
5763 $show "$old_striplib $oldlib"
5764 $run eval "$old_striplib $oldlib" || exit $?
5765 fi
5766
5767 # Do each command in the postinstall commands.
5768 cmds=$old_postinstall_cmds
5769 save_ifs="$IFS"; IFS='~'
5770 for cmd in $cmds; do
5771 IFS="$save_ifs"
5772 eval cmd=\"$cmd\"
5773 $show "$cmd"
5774 $run eval "$cmd" || exit $?
5775 done
5776 IFS="$save_ifs"
5777 done
5778
5779 if test -n "$future_libdirs"; then
5780 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
5781 fi
5782
5783 if test -n "$current_libdirs"; then
5784 # Maybe just do a dry run.
5785 test -n "$run" && current_libdirs=" -n$current_libdirs"
5786 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
5787 else
5788 exit $EXIT_SUCCESS
5789 fi
5790 ;;
5791
5792 # libtool finish mode
5793 finish)
5794 modename="$modename: finish"
5795 libdirs="$nonopt"
5796 admincmds=
5797
5798 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
5799 for dir
5800 do
5801 libdirs="$libdirs $dir"
5802 done
5803
5804 for libdir in $libdirs; do
5805 if test -n "$finish_cmds"; then
5806 # Do each command in the finish commands.
5807 cmds=$finish_cmds
5808 save_ifs="$IFS"; IFS='~'
5809 for cmd in $cmds; do
5810 IFS="$save_ifs"
5811 eval cmd=\"$cmd\"
5812 $show "$cmd"
5813 $run eval "$cmd" || admincmds="$admincmds
5814 $cmd"
5815 done
5816 IFS="$save_ifs"
5817 fi
5818 if test -n "$finish_eval"; then
5819 # Do the single finish_eval.
5820 eval cmds=\"$finish_eval\"
5821 $run eval "$cmds" || admincmds="$admincmds
5822 $cmds"
5823 fi
5824 done
5825 fi
5826
5827 # Exit here if they wanted silent mode.
5828 test "$show" = : && exit $EXIT_SUCCESS
5829
5830 $echo "----------------------------------------------------------------------"
5831 $echo "Libraries have been installed in:"
5832 for libdir in $libdirs; do
5833 $echo " $libdir"
5834 done
5835 $echo
5836 $echo "If you ever happen to want to link against installed libraries"
5837 $echo "in a given directory, LIBDIR, you must either use libtool, and"
5838 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
5839 $echo "flag during linking and do at least one of the following:"
5840 if test -n "$shlibpath_var"; then
5841 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
5842 $echo " during execution"
5843 fi
5844 if test -n "$runpath_var"; then
5845 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
5846 $echo " during linking"
5847 fi
5848 if test -n "$hardcode_libdir_flag_spec"; then
5849 libdir=LIBDIR
5850 eval flag=\"$hardcode_libdir_flag_spec\"
5851
5852 $echo " - use the \`$flag' linker flag"
5853 fi
5854 if test -n "$admincmds"; then
5855 $echo " - have your system administrator run these commands:$admincmds"
5856 fi
5857 if test -f /etc/ld.so.conf; then
5858 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
5859 fi
5860 $echo
5861 $echo "See any operating system documentation about shared libraries for"
5862 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
5863 $echo "----------------------------------------------------------------------"
5864 exit $EXIT_SUCCESS
5865 ;;
5866
5867 # libtool execute mode
5868 execute)
5869 modename="$modename: execute"
5870
5871 # The first argument is the command name.
5872 cmd="$nonopt"
5873 if test -z "$cmd"; then
5874 $echo "$modename: you must specify a COMMAND" 1>&2
5875 $echo "$help"
5876 exit $EXIT_FAILURE
5877 fi
5878
5879 # Handle -dlopen flags immediately.
5880 for file in $execute_dlfiles; do
5881 if test ! -f "$file"; then
5882 $echo "$modename: \`$file' is not a file" 1>&2
5883 $echo "$help" 1>&2
5884 exit $EXIT_FAILURE
5885 fi
5886
5887 dir=
5888 case $file in
5889 *.la)
5890 # Check to see that this really is a libtool archive.
5891 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5892 else
5893 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5894 $echo "$help" 1>&2
5895 exit $EXIT_FAILURE
5896 fi
5897
5898 # Read the libtool library.
5899 dlname=
5900 library_names=
5901
5902 # If there is no directory component, then add one.
5903 case $file in
5904 */* | *\\*) . $file ;;
5905 *) . ./$file ;;
5906 esac
5907
5908 # Skip this library if it cannot be dlopened.
5909 if test -z "$dlname"; then
5910 # Warn if it was a shared library.
5911 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
5912 continue
5913 fi
5914
5915 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
5916 test "X$dir" = "X$file" && dir=.
5917
5918 if test -f "$dir/$objdir/$dlname"; then
5919 dir="$dir/$objdir"
5920 else
5921 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
5922 exit $EXIT_FAILURE
5923 fi
5924 ;;
5925
5926 *.lo)
5927 # Just add the directory containing the .lo file.
5928 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
5929 test "X$dir" = "X$file" && dir=.
5930 ;;
5931
5932 *)
5933 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
5934 continue
5935 ;;
5936 esac
5937
5938 # Get the absolute pathname.
5939 absdir=`cd "$dir" && pwd`
5940 test -n "$absdir" && dir="$absdir"
5941
5942 # Now add the directory to shlibpath_var.
5943 if eval "test -z \"\$$shlibpath_var\""; then
5944 eval "$shlibpath_var=\"\$dir\""
5945 else
5946 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
5947 fi
5948 done
5949
5950 # This variable tells wrapper scripts just to set shlibpath_var
5951 # rather than running their programs.
5952 libtool_execute_magic="$magic"
5953
5954 # Check if any of the arguments is a wrapper script.
5955 args=
5956 for file
5957 do
5958 case $file in
5959 -*) ;;
5960 *)
5961 # Do a test to see if this is really a libtool program.
5962 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
5963 # If there is no directory component, then add one.
5964 case $file in
5965 */* | *\\*) . $file ;;
5966 *) . ./$file ;;
5967 esac
5968
5969 # Transform arg to wrapped name.
5970 file="$progdir/$program"
5971 fi
5972 ;;
5973 esac
5974 # Quote arguments (to preserve shell metacharacters).
5975 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
5976 args="$args \"$file\""
5977 done
5978
5979 if test -z "$run"; then
5980 if test -n "$shlibpath_var"; then
5981 # Export the shlibpath_var.
5982 eval "export $shlibpath_var"
5983 fi
5984
5985 # Restore saved environment variables
5986 if test "${save_LC_ALL+set}" = set; then
5987 LC_ALL="$save_LC_ALL"; export LC_ALL
5988 fi
5989 if test "${save_LANG+set}" = set; then
5990 LANG="$save_LANG"; export LANG
5991 fi
5992
5993 # Now prepare to actually exec the command.
5994 exec_cmd="\$cmd$args"
5995 else
5996 # Display what would be done.
5997 if test -n "$shlibpath_var"; then
5998 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
5999 $echo "export $shlibpath_var"
6000 fi
6001 $echo "$cmd$args"
6002 exit $EXIT_SUCCESS
6003 fi
6004 ;;
6005
6006 # libtool clean and uninstall mode
6007 clean | uninstall)
6008 modename="$modename: $mode"
6009 rm="$nonopt"
6010 files=
6011 rmforce=
6012 exit_status=0
6013
6014 # This variable tells wrapper scripts just to set variables rather
6015 # than running their programs.
6016 libtool_install_magic="$magic"
6017
60188208 for arg
60198209 do
60208210 case $arg in
6021 -f) rm="$rm $arg"; rmforce=yes ;;
6022 -*) rm="$rm $arg" ;;
8211 -f) RM="$RM $arg"; rmforce=yes ;;
8212 -*) RM="$RM $arg" ;;
60238213 *) files="$files $arg" ;;
60248214 esac
60258215 done
60268216
6027 if test -z "$rm"; then
6028 $echo "$modename: you must specify an RM program" 1>&2
6029 $echo "$help" 1>&2
6030 exit $EXIT_FAILURE
6031 fi
8217 test -z "$RM" && \
8218 func_fatal_help "you must specify an RM program"
60328219
60338220 rmdirs=
60348221
60358222 origobjdir="$objdir"
60368223 for file in $files; do
6037 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6038 if test "X$dir" = "X$file"; then
6039 dir=.
8224 func_dirname "$file" "" "."
8225 dir="$func_dirname_result"
8226 if test "X$dir" = X.; then
60408227 objdir="$origobjdir"
60418228 else
60428229 objdir="$dir/$origobjdir"
60438230 fi
6044 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
8231 func_basename "$file"
8232 name="$func_basename_result"
60458233 test "$mode" = uninstall && objdir="$dir"
60468234
60478235 # Remember objdir for removal later, being careful to avoid duplicates
60538241 fi
60548242
60558243 # Don't error if the file doesn't exist and rm -f was used.
6056 if (test -L "$file") >/dev/null 2>&1 \
6057 || (test -h "$file") >/dev/null 2>&1 \
6058 || test -f "$file"; then
8244 if { test -L "$file"; } >/dev/null 2>&1 ||
8245 { test -h "$file"; } >/dev/null 2>&1 ||
8246 test -f "$file"; then
60598247 :
60608248 elif test -d "$file"; then
60618249 exit_status=1
60698257 case $name in
60708258 *.la)
60718259 # Possibly a libtool archive, so verify it.
6072 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6073 . $dir/$name
8260 if func_lalib_p "$file"; then
8261 func_source $dir/$name
60748262
60758263 # Delete the libtool libraries and symlinks.
60768264 for n in $library_names; do
60778265 rmfiles="$rmfiles $objdir/$n"
60788266 done
60798267 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6080 test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6081
6082 if test "$mode" = uninstall; then
8268
8269 case "$mode" in
8270 clean)
8271 case " $library_names " in
8272 # " " in the beginning catches empty $dlname
8273 *" $dlname "*) ;;
8274 *) rmfiles="$rmfiles $objdir/$dlname" ;;
8275 esac
8276 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
8277 ;;
8278 uninstall)
60838279 if test -n "$library_names"; then
60848280 # Do each command in the postuninstall commands.
6085 cmds=$postuninstall_cmds
6086 save_ifs="$IFS"; IFS='~'
6087 for cmd in $cmds; do
6088 IFS="$save_ifs"
6089 eval cmd=\"$cmd\"
6090 $show "$cmd"
6091 $run eval "$cmd"
6092 if test "$?" -ne 0 && test "$rmforce" != yes; then
6093 exit_status=1
6094 fi
6095 done
6096 IFS="$save_ifs"
8281 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
60978282 fi
60988283
60998284 if test -n "$old_library"; then
61008285 # Do each command in the old_postuninstall commands.
6101 cmds=$old_postuninstall_cmds
6102 save_ifs="$IFS"; IFS='~'
6103 for cmd in $cmds; do
6104 IFS="$save_ifs"
6105 eval cmd=\"$cmd\"
6106 $show "$cmd"
6107 $run eval "$cmd"
6108 if test "$?" -ne 0 && test "$rmforce" != yes; then
6109 exit_status=1
6110 fi
6111 done
6112 IFS="$save_ifs"
8286 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
61138287 fi
61148288 # FIXME: should reinstall the best remaining shared library.
6115 fi
8289 ;;
8290 esac
61168291 fi
61178292 ;;
61188293
61198294 *.lo)
61208295 # Possibly a libtool object, so verify it.
6121 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
8296 if func_lalib_p "$file"; then
61228297
61238298 # Read the .lo file
6124 . $dir/$name
8299 func_source $dir/$name
61258300
61268301 # Add PIC object to the list of files to remove.
6127 if test -n "$pic_object" \
6128 && test "$pic_object" != none; then
8302 if test -n "$pic_object" &&
8303 test "$pic_object" != none; then
61298304 rmfiles="$rmfiles $dir/$pic_object"
61308305 fi
61318306
61328307 # Add non-PIC object to the list of files to remove.
6133 if test -n "$non_pic_object" \
6134 && test "$non_pic_object" != none; then
8308 if test -n "$non_pic_object" &&
8309 test "$non_pic_object" != none; then
61358310 rmfiles="$rmfiles $dir/$non_pic_object"
61368311 fi
61378312 fi
61428317 noexename=$name
61438318 case $file in
61448319 *.exe)
6145 file=`$echo $file|${SED} 's,.exe$,,'`
6146 noexename=`$echo $name|${SED} 's,.exe$,,'`
8320 func_stripname '' '.exe' "$file"
8321 file=$func_stripname_result
8322 func_stripname '' '.exe' "$name"
8323 noexename=$func_stripname_result
61478324 # $file with .exe has already been added to rmfiles,
61488325 # add $file without .exe
61498326 rmfiles="$rmfiles $file"
61508327 ;;
61518328 esac
61528329 # Do a test to see if this is a libtool program.
6153 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6154 relink_command=
6155 . $dir/$noexename
8330 if func_ltwrapper_p "$file"; then
8331 if func_ltwrapper_executable_p "$file"; then
8332 func_ltwrapper_scriptname "$file"
8333 relink_command=
8334 func_source $func_ltwrapper_scriptname_result
8335 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
8336 else
8337 relink_command=
8338 func_source $dir/$noexename
8339 fi
61568340
61578341 # note $name still contains .exe if it was in $file originally
61588342 # as does the version of $file that was added into $rmfiles
61678351 fi
61688352 ;;
61698353 esac
6170 $show "$rm $rmfiles"
6171 $run $rm $rmfiles || exit_status=1
8354 func_show_eval "$RM $rmfiles" 'exit_status=1'
61728355 done
61738356 objdir="$origobjdir"
61748357
61758358 # Try to remove the ${objdir}s in the directories where we deleted files
61768359 for dir in $rmdirs; do
61778360 if test -d "$dir"; then
6178 $show "rmdir $dir"
6179 $run rmdir $dir >/dev/null 2>&1
8361 func_show_eval "rmdir $dir >/dev/null 2>&1"
61808362 fi
61818363 done
61828364
61838365 exit $exit_status
6184 ;;
6185
6186 "")
6187 $echo "$modename: you must specify a MODE" 1>&2
6188 $echo "$generic_help" 1>&2
6189 exit $EXIT_FAILURE
6190 ;;
6191 esac
6192
6193 if test -z "$exec_cmd"; then
6194 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6195 $echo "$generic_help" 1>&2
6196 exit $EXIT_FAILURE
6197 fi
6198 fi # test -z "$show_help"
8366 }
8367
8368 { test "$mode" = uninstall || test "$mode" = clean; } &&
8369 func_mode_uninstall ${1+"$@"}
8370
8371 test -z "$mode" && {
8372 help="$generic_help"
8373 func_fatal_help "you must specify a MODE"
8374 }
8375
8376 test -z "$exec_cmd" && \
8377 func_fatal_help "invalid operation mode \`$mode'"
61998378
62008379 if test -n "$exec_cmd"; then
6201 eval exec $exec_cmd
8380 eval exec "$exec_cmd"
62028381 exit $EXIT_FAILURE
62038382 fi
62048383
6205 # We need to display help for each of the modes.
6206 case $mode in
6207 "") $echo \
6208 "Usage: $modename [OPTION]... [MODE-ARG]...
6209
6210 Provide generalized library-building support services.
6211
6212 --config show all configuration variables
6213 --debug enable verbose shell tracing
6214 -n, --dry-run display commands without modifying any files
6215 --features display basic configuration information and exit
6216 --finish same as \`--mode=finish'
6217 --help display this help message and exit
6218 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
6219 --quiet same as \`--silent'
6220 --silent don't print informational messages
6221 --tag=TAG use configuration variables from tag TAG
6222 --version print version information
6223
6224 MODE must be one of the following:
6225
6226 clean remove files from the build directory
6227 compile compile a source file into a libtool object
6228 execute automatically set library path, then run a program
6229 finish complete the installation of libtool libraries
6230 install install libraries or executables
6231 link create a library or an executable
6232 uninstall remove libraries from an installed directory
6233
6234 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
6235 a more detailed description of MODE.
6236
6237 Report bugs to <bug-libtool@gnu.org>."
6238 exit $EXIT_SUCCESS
6239 ;;
6240
6241 clean)
6242 $echo \
6243 "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
6244
6245 Remove files from the build directory.
6246
6247 RM is the name of the program to use to delete files associated with each FILE
6248 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6249 to RM.
6250
6251 If FILE is a libtool library, object or program, all the files associated
6252 with it are deleted. Otherwise, only FILE itself is deleted using RM."
6253 ;;
6254
6255 compile)
6256 $echo \
6257 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
6258
6259 Compile a source file into a libtool library object.
6260
6261 This mode accepts the following additional options:
6262
6263 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6264 -prefer-pic try to building PIC objects only
6265 -prefer-non-pic try to building non-PIC objects only
6266 -static always build a \`.o' file suitable for static linking
6267
6268 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6269 from the given SOURCEFILE.
6270
6271 The output file name is determined by removing the directory component from
6272 SOURCEFILE, then substituting the C source code suffix \`.c' with the
6273 library object suffix, \`.lo'."
6274 ;;
6275
6276 execute)
6277 $echo \
6278 "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
6279
6280 Automatically set library path, then run a program.
6281
6282 This mode accepts the following additional options:
6283
6284 -dlopen FILE add the directory containing FILE to the library path
6285
6286 This mode sets the library path environment variable according to \`-dlopen'
6287 flags.
6288
6289 If any of the ARGS are libtool executable wrappers, then they are translated
6290 into their corresponding uninstalled binary, and any of their required library
6291 directories are added to the library path.
6292
6293 Then, COMMAND is executed, with ARGS as arguments."
6294 ;;
6295
6296 finish)
6297 $echo \
6298 "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
6299
6300 Complete the installation of libtool libraries.
6301
6302 Each LIBDIR is a directory that contains libtool libraries.
6303
6304 The commands that this mode executes may require superuser privileges. Use
6305 the \`--dry-run' option if you just want to see what would be executed."
6306 ;;
6307
6308 install)
6309 $echo \
6310 "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
6311
6312 Install executables or libraries.
6313
6314 INSTALL-COMMAND is the installation command. The first component should be
6315 either the \`install' or \`cp' program.
6316
6317 The rest of the components are interpreted as arguments to that command (only
6318 BSD-compatible install options are recognized)."
6319 ;;
6320
6321 link)
6322 $echo \
6323 "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
6324
6325 Link object files or libraries together to form another library, or to
6326 create an executable program.
6327
6328 LINK-COMMAND is a command using the C compiler that you would use to create
6329 a program from several object files.
6330
6331 The following components of LINK-COMMAND are treated specially:
6332
6333 -all-static do not do any dynamic linking at all
6334 -avoid-version do not add a version suffix if possible
6335 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6336 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6337 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6338 -export-symbols SYMFILE
6339 try to export only the symbols listed in SYMFILE
6340 -export-symbols-regex REGEX
6341 try to export only the symbols matching REGEX
6342 -LLIBDIR search LIBDIR for required installed libraries
6343 -lNAME OUTPUT-FILE requires the installed library libNAME
6344 -module build a library that can dlopened
6345 -no-fast-install disable the fast-install mode
6346 -no-install link a not-installable executable
6347 -no-undefined declare that a library does not refer to external symbols
6348 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
6349 -objectlist FILE Use a list of object files found in FILE to specify objects
6350 -precious-files-regex REGEX
6351 don't remove output files matching REGEX
6352 -release RELEASE specify package release information
6353 -rpath LIBDIR the created library will eventually be installed in LIBDIR
6354 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
6355 -static do not do any dynamic linking of libtool libraries
6356 -version-info CURRENT[:REVISION[:AGE]]
6357 specify library version info [each variable defaults to 0]
6358
6359 All other options (arguments beginning with \`-') are ignored.
6360
6361 Every other argument is treated as a filename. Files ending in \`.la' are
6362 treated as uninstalled libtool libraries, other files are standard or library
6363 object files.
6364
6365 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
6366 only library objects (\`.lo' files) may be specified, and \`-rpath' is
6367 required, except when creating a convenience library.
6368
6369 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
6370 using \`ar' and \`ranlib', or on Windows using \`lib'.
6371
6372 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
6373 is created, otherwise an executable program is created."
6374 ;;
6375
6376 uninstall)
6377 $echo \
6378 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
6379
6380 Remove libraries from an installation directory.
6381
6382 RM is the name of the program to use to delete files associated with each FILE
6383 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6384 to RM.
6385
6386 If FILE is a libtool library, all the files associated with it are deleted.
6387 Otherwise, only FILE itself is deleted using RM."
6388 ;;
6389
6390 *)
6391 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6392 $echo "$help" 1>&2
6393 exit $EXIT_FAILURE
6394 ;;
6395 esac
6396
6397 $echo
6398 $echo "Try \`$modename --help' for more information about other modes."
6399
6400 exit $EXIT_SUCCESS
8384 exit $exit_status
8385
64018386
64028387 # The TAGs below are defined such that we never get into a situation
64038388 # in which we disable both kinds of libraries. Given conflicting
64168401 # ### END LIBTOOL TAG CONFIG: disable-shared
64178402
64188403 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
6419 build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
8404 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
64208405 # ### END LIBTOOL TAG CONFIG: disable-static
64218406
64228407 # Local Variables:
64238408 # mode:shell-script
64248409 # sh-indentation:2
64258410 # End:
8411 # vi:sw=2
8412
00 #! /bin/sh
11 # Common stub for a few missing GNU programs while installing.
22
3 scriptversion=2004-09-07.08
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
3 scriptversion=2006-05-10.23
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
66 # Free Software Foundation, Inc.
77 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
88
1818
1919 # You should have received a copy of the GNU General Public License
2020 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 # 02111-1307, USA.
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 # 02110-1301, USA.
2323
2424 # As a special exception to the GNU General Public License, if you
2525 # distribute this file as part of a program that contains a
3232 fi
3333
3434 run=:
35 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
36 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
3537
3638 # In the cases where this matters, `missing' is being run in the
3739 # srcdir already.
4345
4446 msg="missing on your system"
4547
46 case "$1" in
48 case $1 in
4749 --run)
4850 # Try to run requested program, and just exit if it succeeds.
4951 run=
7678 aclocal touch file \`aclocal.m4'
7779 autoconf touch file \`configure'
7880 autoheader touch file \`config.h.in'
81 autom4te touch the output file, or create a stub one
7982 automake touch all \`Makefile.in' files
8083 bison create \`y.tab.[ch]', if possible, from existing .[ch]
8184 flex create \`lex.yy.c', if possible, from existing .c
8689 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
8790
8891 Send bug reports to <bug-automake@gnu.org>."
89 exit 0
92 exit $?
9093 ;;
9194
9295 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
9396 echo "missing $scriptversion (GNU Automake)"
94 exit 0
97 exit $?
9598 ;;
9699
97100 -*)
105108 # Now exit if we have it, but it failed. Also exit now if we
106109 # don't have it and --version was passed (most likely to detect
107110 # the program).
108 case "$1" in
111 case $1 in
109112 lex|yacc)
110113 # Not GNU programs, they don't have --version.
111114 ;;
134137
135138 # If it does not exist, or fails to run (possibly an outdated version),
136139 # try to emulate it.
137 case "$1" in
140 case $1 in
138141 aclocal*)
139142 echo 1>&2 "\
140143 WARNING: \`$1' is $msg. You should only need it if
163166 test -z "$files" && files="config.h"
164167 touch_files=
165168 for f in $files; do
166 case "$f" in
169 case $f in
167170 *:*) touch_files="$touch_files "`echo "$f" |
168171 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
169172 *) touch_files="$touch_files $f.in";;
191194 You can get \`$1' as part of \`Autoconf' from any GNU
192195 archive site."
193196
194 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
195 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
197 file=`echo "$*" | sed -n "$sed_output"`
198 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
196199 if test -f "$file"; then
197200 touch $file
198201 else
213216 in order for those modifications to take effect. You can get
214217 \`Bison' from any GNU archive site."
215218 rm -f y.tab.c y.tab.h
216 if [ $# -ne 1 ]; then
219 if test $# -ne 1; then
217220 eval LASTARG="\${$#}"
218 case "$LASTARG" in
221 case $LASTARG in
219222 *.y)
220223 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
221 if [ -f "$SRCFILE" ]; then
224 if test -f "$SRCFILE"; then
222225 cp "$SRCFILE" y.tab.c
223226 fi
224227 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
225 if [ -f "$SRCFILE" ]; then
228 if test -f "$SRCFILE"; then
226229 cp "$SRCFILE" y.tab.h
227230 fi
228231 ;;
229232 esac
230233 fi
231 if [ ! -f y.tab.h ]; then
234 if test ! -f y.tab.h; then
232235 echo >y.tab.h
233236 fi
234 if [ ! -f y.tab.c ]; then
237 if test ! -f y.tab.c; then
235238 echo 'main() { return 0; }' >y.tab.c
236239 fi
237240 ;;
243246 in order for those modifications to take effect. You can get
244247 \`Flex' from any GNU archive site."
245248 rm -f lex.yy.c
246 if [ $# -ne 1 ]; then
249 if test $# -ne 1; then
247250 eval LASTARG="\${$#}"
248 case "$LASTARG" in
251 case $LASTARG in
249252 *.l)
250253 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
251 if [ -f "$SRCFILE" ]; then
254 if test -f "$SRCFILE"; then
252255 cp "$SRCFILE" lex.yy.c
253256 fi
254257 ;;
255258 esac
256259 fi
257 if [ ! -f lex.yy.c ]; then
260 if test ! -f lex.yy.c; then
258261 echo 'main() { return 0; }' >lex.yy.c
259262 fi
260263 ;;
266269 \`Help2man' package in order for those modifications to take
267270 effect. You can get \`Help2man' from any GNU archive site."
268271
269 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
270 if test -z "$file"; then
271 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
272 fi
273 if [ -f "$file" ]; then
272 file=`echo "$*" | sed -n "$sed_output"`
273 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
274 if test -f "$file"; then
274275 touch $file
275276 else
276277 test -z "$file" || exec >$file
287288 call might also be the consequence of using a buggy \`make' (AIX,
288289 DU, IRIX). You might want to install the \`Texinfo' package or
289290 the \`GNU make' package. Grab either from any GNU archive site."
290 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
291 # The file to touch is that specified with -o ...
292 file=`echo "$*" | sed -n "$sed_output"`
293 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
291294 if test -z "$file"; then
292 file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
293 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
294 fi
295 # ... or it is the one specified with @setfilename ...
296 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
297 file=`sed -n '
298 /^@setfilename/{
299 s/.* \([^ ]*\) *$/\1/
300 p
301 q
302 }' $infile`
303 # ... or it is derived from the source name (dir/f.texi becomes f.info)
304 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
305 fi
306 # If the file does not exist, the user really needs makeinfo;
307 # let's fail without touching anything.
308 test -f $file || exit 1
295309 touch $file
296310 ;;
297311
309323 fi
310324 firstarg="$1"
311325 if shift; then
312 case "$firstarg" in
326 case $firstarg in
313327 *o*)
314328 firstarg=`echo "$firstarg" | sed s/o//`
315329 tar "$firstarg" "$@" && exit 0
316330 ;;
317331 esac
318 case "$firstarg" in
332 case $firstarg in
319333 *h*)
320334 firstarg=`echo "$firstarg" | sed s/h//`
321335 tar "$firstarg" "$@" && exit 0
0 # Makefile.in generated by automake 1.9.4 from Makefile.am.
0 # Makefile.in generated by automake 1.10.2 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1616 # $Id: Makefile.am,v 1.5 2003/03/27 16:39:45 dalroi Exp $
1717
1818
19 SOURCES = $(libdockapp_la_SOURCES)
20
21 srcdir = @srcdir@
22 top_srcdir = @top_srcdir@
2319 VPATH = @srcdir@
2420 pkgdatadir = $(datadir)/@PACKAGE@
2521 pkglibdir = $(libdir)/@PACKAGE@
2622 pkgincludedir = $(includedir)/@PACKAGE@
27 top_builddir = ..
2823 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
29 INSTALL = @INSTALL@
3024 install_sh_DATA = $(install_sh) -c -m 644
3125 install_sh_PROGRAM = $(install_sh) -c
3226 install_sh_SCRIPT = $(install_sh) -c
6256 am_libdockapp_la_OBJECTS = dacallback.lo dacolor.lo daevent.lo \
6357 damain.lo dapixmap.lo darect.lo dashaped.lo dautil.lo
6458 libdockapp_la_OBJECTS = $(am_libdockapp_la_OBJECTS)
65 DEFAULT_INCLUDES = -I. -I$(srcdir)
59 libdockapp_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
60 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
61 $(libdockapp_la_LDFLAGS) $(LDFLAGS) -o $@
62 DEFAULT_INCLUDES = -I.@am__isrc@
6663 depcomp =
6764 am__depfiles_maybe =
6865 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
6966 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
71 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
72 $(AM_CFLAGS) $(CFLAGS)
67 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
7370 CCLD = $(CC)
74 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
75 $(AM_LDFLAGS) $(LDFLAGS) -o $@
71 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
7674 SOURCES = $(libdockapp_la_SOURCES)
7775 DIST_SOURCES = $(libdockapp_la_SOURCES)
7876 includeHEADERS_INSTALL = $(INSTALL_HEADER)
8179 CTAGS = ctags
8280 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
8381 ACLOCAL = @ACLOCAL@
84 AMDEP_FALSE = @AMDEP_FALSE@
85 AMDEP_TRUE = @AMDEP_TRUE@
8682 AMTAR = @AMTAR@
8783 AR = @AR@
8884 AUTOCONF = @AUTOCONF@
9288 CC = @CC@
9389 CCDEPMODE = @CCDEPMODE@
9490 CFLAGS = @CFLAGS@
95 COND_EXAMPLES_FALSE = @COND_EXAMPLES_FALSE@
96 COND_EXAMPLES_TRUE = @COND_EXAMPLES_TRUE@
97 COND_FONT_FALSE = @COND_FONT_FALSE@
98 COND_FONT_TRUE = @COND_FONT_TRUE@
9991 CPP = @CPP@
10092 CPPFLAGS = @CPPFLAGS@
10193 CXX = @CXX@
10698 DEFS = @DEFS@
10799 DEPDIR = @DEPDIR@
108100 DFLAGS = @DFLAGS@
109 ECHO = @ECHO@
101 DSYMUTIL = @DSYMUTIL@
102 DUMPBIN = @DUMPBIN@
110103 ECHO_C = @ECHO_C@
111104 ECHO_N = @ECHO_N@
112105 ECHO_T = @ECHO_T@
113106 EGREP = @EGREP@
114107 EXEEXT = @EXEEXT@
115 F77 = @F77@
116 FFLAGS = @FFLAGS@
108 FGREP = @FGREP@
109 GREP = @GREP@
110 INSTALL = @INSTALL@
117111 INSTALL_DATA = @INSTALL_DATA@
118112 INSTALL_PROGRAM = @INSTALL_PROGRAM@
119113 INSTALL_SCRIPT = @INSTALL_SCRIPT@
120114 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
115 LD = @LD@
121116 LDFLAGS = @LDFLAGS@
122117 LIBOBJS = @LIBOBJS@
123118 LIBS = @LIBS@
124119 LIBTOOL = @LIBTOOL@
120 LIPO = @LIPO@
125121 LN_S = @LN_S@
126122 LTLIBOBJS = @LTLIBOBJS@
127123 MAINT = @MAINT@
128 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
129 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
130124 MAKEINFO = @MAKEINFO@
125 MKDIR_P = @MKDIR_P@
126 NM = @NM@
127 NMEDIT = @NMEDIT@
128 OBJDUMP = @OBJDUMP@
131129 OBJEXT = @OBJEXT@
130 OTOOL = @OTOOL@
131 OTOOL64 = @OTOOL64@
132132 PACKAGE = @PACKAGE@
133133 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
134134 PACKAGE_NAME = @PACKAGE_NAME@
137137 PACKAGE_VERSION = @PACKAGE_VERSION@
138138 PATH_SEPARATOR = @PATH_SEPARATOR@
139139 RANLIB = @RANLIB@
140 SED = @SED@
140141 SET_MAKE = @SET_MAKE@
141142 SHELL = @SHELL@
142143 STRIP = @STRIP@
143144 VERSION = @VERSION@
145 XMKMF = @XMKMF@
144146 X_CFLAGS = @X_CFLAGS@
145147 X_EXTRA_LIBS = @X_EXTRA_LIBS@
146148 X_LIBS = @X_LIBS@
147149 X_PRE_LIBS = @X_PRE_LIBS@
148 ac_ct_AR = @ac_ct_AR@
150 abs_builddir = @abs_builddir@
151 abs_srcdir = @abs_srcdir@
152 abs_top_builddir = @abs_top_builddir@
153 abs_top_srcdir = @abs_top_srcdir@
149154 ac_ct_CC = @ac_ct_CC@
150155 ac_ct_CXX = @ac_ct_CXX@
151 ac_ct_F77 = @ac_ct_F77@
152 ac_ct_RANLIB = @ac_ct_RANLIB@
153 ac_ct_STRIP = @ac_ct_STRIP@
154 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
155 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
156 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
157 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
156 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
158157 am__include = @am__include@
159158 am__leading_dot = @am__leading_dot@
160159 am__quote = @am__quote@
166165 build_cpu = @build_cpu@
167166 build_os = @build_os@
168167 build_vendor = @build_vendor@
168 builddir = @builddir@
169169 datadir = @datadir@
170 datarootdir = @datarootdir@
171 docdir = @docdir@
172 dvidir = @dvidir@
170173 exec_prefix = @exec_prefix@
171174 host = @host@
172175 host_alias = @host_alias@
173176 host_cpu = @host_cpu@
174177 host_os = @host_os@
175178 host_vendor = @host_vendor@
179 htmldir = @htmldir@
176180 includedir = @includedir@
177181 infodir = @infodir@
178182 install_sh = @install_sh@
179183 libdir = @libdir@
180184 libexecdir = @libexecdir@
185 localedir = @localedir@
181186 localstatedir = @localstatedir@
187 lt_ECHO = @lt_ECHO@
182188 mandir = @mandir@
183189 mkdir_p = @mkdir_p@
184190 oldincludedir = @oldincludedir@
191 pdfdir = @pdfdir@
185192 prefix = @prefix@
186193 program_transform_name = @program_transform_name@
194 psdir = @psdir@
187195 sbindir = @sbindir@
188196 sharedstatedir = @sharedstatedir@
197 srcdir = @srcdir@
189198 sysconfdir = @sysconfdir@
190199 target_alias = @target_alias@
200 top_build_prefix = @top_build_prefix@
201 top_builddir = @top_builddir@
202 top_srcdir = @top_srcdir@
191203 AUTOMAKE_OPTIONS = no-dependencies
192204 lib_LTLIBRARIES = libdockapp.la
193205 libdockapp_la_LDFLAGS = -version-info 2:0:0 @X_LIBS@
216228 @for dep in $?; do \
217229 case '$(am__configure_deps)' in \
218230 *$$dep*) \
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
220 && exit 0; \
231 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
232 && { if test -f $@; then exit 0; else break; fi; }; \
221233 exit 1;; \
222234 esac; \
223235 done; \
243255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
244256 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
245257 @$(NORMAL_INSTALL)
246 test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
258 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
247259 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
248260 if test -f $$p; then \
249261 f=$(am__strip_dir) \
250 echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
251 $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
262 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
263 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
252264 else :; fi; \
253265 done
254266
255267 uninstall-libLTLIBRARIES:
256268 @$(NORMAL_UNINSTALL)
257 @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
269 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
258270 p=$(am__strip_dir) \
259 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
260 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
261273 done
262274
263275 clean-libLTLIBRARIES:
269281 rm -f "$${dir}/so_locations"; \
270282 done
271283 libdockapp.la: $(libdockapp_la_OBJECTS) $(libdockapp_la_DEPENDENCIES)
272 $(LINK) -rpath $(libdir) $(libdockapp_la_LDFLAGS) $(libdockapp_la_OBJECTS) $(libdockapp_la_LIBADD) $(LIBS)
284 $(libdockapp_la_LINK) -rpath $(libdir) $(libdockapp_la_OBJECTS) $(libdockapp_la_LIBADD) $(LIBS)
273285
274286 mostlyclean-compile:
275287 -rm -f *.$(OBJEXT)
291303
292304 clean-libtool:
293305 -rm -rf .libs _libs
294
295 distclean-libtool:
296 -rm -f libtool
297 uninstall-info-am:
298306 install-includeHEADERS: $(include_HEADERS)
299307 @$(NORMAL_INSTALL)
300 test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
308 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
301309 @list='$(include_HEADERS)'; for p in $$list; do \
302310 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
303311 f=$(am__strip_dir) \
318326 unique=`for i in $$list; do \
319327 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
320328 done | \
321 $(AWK) ' { files[$$0] = 1; } \
322 END { for (i in files) print i; }'`; \
329 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
330 END { if (nonempty) { for (i in files) print i; }; }'`; \
323331 mkid -fID $$unique
324332 tags: TAGS
325333
331339 unique=`for i in $$list; do \
332340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333341 done | \
334 $(AWK) ' { files[$$0] = 1; } \
335 END { for (i in files) print i; }'`; \
342 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
343 END { if (nonempty) { for (i in files) print i; }; }'`; \
336344 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
337345 test -n "$$unique" || unique=$$empty_fix; \
338346 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
342350 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343351 $(TAGS_FILES) $(LISP)
344352 tags=; \
345 here=`pwd`; \
346353 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347354 unique=`for i in $$list; do \
348355 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349356 done | \
350 $(AWK) ' { files[$$0] = 1; } \
351 END { for (i in files) print i; }'`; \
357 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
358 END { if (nonempty) { for (i in files) print i; }; }'`; \
352359 test -z "$(CTAGS_ARGS)$$tags$$unique" \
353360 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
354361 $$tags $$unique
362369 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
363370
364371 distdir: $(DISTFILES)
365 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
366 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
367 list='$(DISTFILES)'; for file in $$list; do \
368 case $$file in \
369 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
370 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
371 esac; \
372 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
373 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
374 list='$(DISTFILES)'; \
375 dist_files=`for file in $$list; do echo $$file; done | \
376 sed -e "s|^$$srcdirstrip/||;t" \
377 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
378 case $$dist_files in \
379 */*) $(MKDIR_P) `echo "$$dist_files" | \
380 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
381 sort -u` ;; \
382 esac; \
383 for file in $$dist_files; do \
372384 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
373 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
374 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
375 dir="/$$dir"; \
376 $(mkdir_p) "$(distdir)$$dir"; \
377 else \
378 dir=''; \
379 fi; \
380385 if test -d $$d/$$file; then \
386 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
381387 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
382388 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
383389 fi; \
393399 all-am: Makefile $(LTLIBRARIES) $(HEADERS)
394400 installdirs:
395401 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
396 test -z "$$dir" || $(mkdir_p) "$$dir"; \
402 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
397403 done
398404 install: install-am
399405 install-exec: install-exec-am
427433 distclean: distclean-am
428434 -rm -f Makefile
429435 distclean-am: clean-am distclean-compile distclean-generic \
430 distclean-libtool distclean-tags
436 distclean-tags
431437
432438 dvi: dvi-am
433439
441447
442448 install-data-am: install-includeHEADERS
443449
450 install-dvi: install-dvi-am
451
444452 install-exec-am: install-libLTLIBRARIES
445453
454 install-html: install-html-am
455
446456 install-info: install-info-am
447457
448458 install-man:
459
460 install-pdf: install-pdf-am
461
462 install-ps: install-ps-am
449463
450464 installcheck-am:
451465
466480
467481 ps-am:
468482
469 uninstall-am: uninstall-includeHEADERS uninstall-info-am \
470 uninstall-libLTLIBRARIES
483 uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
484
485 .MAKE: install-am install-strip
471486
472487 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
473488 clean-libLTLIBRARIES clean-libtool ctags distclean \
474489 distclean-compile distclean-generic distclean-libtool \
475490 distclean-tags distdir dvi dvi-am html html-am info info-am \
476 install install-am install-data install-data-am install-exec \
477 install-exec-am install-includeHEADERS install-info \
478 install-info-am install-libLTLIBRARIES install-man \
479 install-strip installcheck installcheck-am installdirs \
480 maintainer-clean maintainer-clean-generic mostlyclean \
481 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
482 pdf pdf-am ps ps-am tags uninstall uninstall-am \
483 uninstall-includeHEADERS uninstall-info-am \
491 install install-am install-data install-data-am install-dvi \
492 install-dvi-am install-exec install-exec-am install-html \
493 install-html-am install-includeHEADERS install-info \
494 install-info-am install-libLTLIBRARIES install-man install-pdf \
495 install-pdf-am install-ps install-ps-am install-strip \
496 installcheck installcheck-am installdirs maintainer-clean \
497 maintainer-clean-generic mostlyclean mostlyclean-compile \
498 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
499 tags uninstall uninstall-am uninstall-includeHEADERS \
484500 uninstall-libLTLIBRARIES
485501
486502 # Tell versions [3.59,3.63) of GNU make to not export all variables.