Package list faad2 / 5eae338
Imported Upstream version 2.8.0~cvs20150510 Fabian Greffrath 6 years ago
37 changed file(s) with 858 addition(s) and 48724 deletion(s). Raw diff Collapse all Expand all
+0
-236
INSTALL less more
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
4 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 These are generic installation instructions.
13
14 The `configure' shell script attempts to guess correct values for
15 various system-dependent variables used during compilation. It uses
16 those values to create a `Makefile' in each directory of the package.
17 It may also create one or more `.h' files containing system-dependent
18 definitions. Finally, it creates a shell script `config.status' that
19 you can run in the future to recreate the current configuration, and a
20 file `config.log' containing compiler output (useful mainly for
21 debugging `configure').
22
23 It can also use an optional file (typically called `config.cache'
24 and enabled with `--cache-file=config.cache' or simply `-C') that saves
25 the results of its tests to speed up reconfiguring. (Caching is
26 disabled by default to prevent problems with accidental use of stale
27 cache files.)
28
29 If you need to do unusual things to compile the package, please try
30 to figure out how `configure' could check whether to do them, and mail
31 diffs or instructions to the address given in the `README' so they can
32 be considered for the next release. If you are using the cache, and at
33 some point `config.cache' contains results you don't want to keep, you
34 may remove or edit it.
35
36 The file `configure.ac' (or `configure.in') is used to create
37 `configure' by a program called `autoconf'. You only need
38 `configure.ac' if you want to change it or regenerate `configure' using
39 a newer version of `autoconf'.
40
41 The simplest way to compile this package is:
42
43 1. `cd' to the directory containing the package's source code and type
44 `./configure' to configure the package for your system. If you're
45 using `csh' on an old version of System V, you might need to type
46 `sh ./configure' instead to prevent `csh' from trying to execute
47 `configure' itself.
48
49 Running `configure' takes awhile. While running, it prints some
50 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 Compilers and Options
70 =====================
71
72 Some systems require unusual options for compilation or linking that the
73 `configure' script does not know about. Run `./configure --help' for
74 details on some of the pertinent environment variables.
75
76 You can give `configure' initial values for configuration parameters
77 by setting variables in the command line or in the environment. Here
78 is an example:
79
80 ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
81
82 *Note Defining Variables::, for more details.
83
84 Compiling For Multiple Architectures
85 ====================================
86
87 You can compile the package for more than one kind of computer at the
88 same time, by placing the object files for each architecture in their
89 own directory. To do this, you must use a version of `make' that
90 supports the `VPATH' variable, such as GNU `make'. `cd' to the
91 directory where you want the object files and executables to go and run
92 the `configure' script. `configure' automatically checks for the
93 source code in the directory that `configure' is in and in `..'.
94
95 If you have to use a `make' that does not support the `VPATH'
96 variable, you have to compile the package for one architecture at a
97 time in the source code directory. After you have installed the
98 package for one architecture, use `make distclean' before reconfiguring
99 for another architecture.
100
101 Installation Names
102 ==================
103
104 By default, `make install' installs the package's commands under
105 `/usr/local/bin', include files under `/usr/local/include', etc. You
106 can specify an installation prefix other than `/usr/local' by giving
107 `configure' the option `--prefix=PREFIX'.
108
109 You can specify separate installation prefixes for
110 architecture-specific files and architecture-independent files. If you
111 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
112 PREFIX as the prefix for installing programs and libraries.
113 Documentation and other data files still use the regular prefix.
114
115 In addition, if you use an unusual directory layout you can give
116 options like `--bindir=DIR' to specify different values for particular
117 kinds of files. Run `configure --help' for a list of the directories
118 you can set and what kinds of files go in them.
119
120 If the package supports it, you can cause programs to be installed
121 with an extra prefix or suffix on their names by giving `configure' the
122 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
123
124 Optional Features
125 =================
126
127 Some packages pay attention to `--enable-FEATURE' options to
128 `configure', where FEATURE indicates an optional part of the package.
129 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
130 is something like `gnu-as' or `x' (for the X Window System). The
131 `README' should mention any `--enable-' and `--with-' options that the
132 package recognizes.
133
134 For packages that use the X Window System, `configure' can usually
135 find the X include and library files automatically, but if it doesn't,
136 you can use the `configure' options `--x-includes=DIR' and
137 `--x-libraries=DIR' to specify their locations.
138
139 Specifying the System Type
140 ==========================
141
142 There may be some features `configure' cannot figure out automatically,
143 but needs to determine by the type of machine the package will run on.
144 Usually, assuming the package is built to be run on the _same_
145 architectures, `configure' can figure that out, but if it prints a
146 message saying it cannot guess the machine type, give it the
147 `--build=TYPE' option. TYPE can either be a short name for the system
148 type, such as `sun4', or a canonical name which has the form:
149
150 CPU-COMPANY-SYSTEM
151
152 where SYSTEM can have one of these forms:
153
154 OS KERNEL-OS
155
156 See the file `config.sub' for the possible values of each field. If
157 `config.sub' isn't included in this package, then this package doesn't
158 need to know the machine type.
159
160 If you are _building_ compiler tools for cross-compiling, you should
161 use the option `--target=TYPE' to select the type of system they will
162 produce code for.
163
164 If you want to _use_ a cross compiler, that generates code for a
165 platform different from the build platform, you should specify the
166 "host" platform (i.e., that on which the generated programs will
167 eventually be run) with `--host=TYPE'.
168
169 Sharing Defaults
170 ================
171
172 If you want to set default values for `configure' scripts to share, you
173 can create a site shell script called `config.site' that gives default
174 values for variables like `CC', `cache_file', and `prefix'.
175 `configure' looks for `PREFIX/share/config.site' if it exists, then
176 `PREFIX/etc/config.site' if it exists. Or, you can set the
177 `CONFIG_SITE' environment variable to the location of the site script.
178 A warning: not all `configure' scripts look for a site script.
179
180 Defining Variables
181 ==================
182
183 Variables not defined in a site shell script can be set in the
184 environment passed to `configure'. However, some packages may run
185 configure again during the build, and the customized values of these
186 variables may be lost. In order to avoid this problem, you should set
187 them in the `configure' command line, using `VAR=value'. For example:
188
189 ./configure CC=/usr/local2/bin/gcc
190
191 causes the specified `gcc' to be used as the C compiler (unless it is
192 overridden in the site shell script). Here is a another example:
193
194 /bin/bash ./configure CONFIG_SHELL=/bin/bash
195
196 Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
197 configuration-related scripts to be executed by `/bin/bash'.
198
199 `configure' Invocation
200 ======================
201
202 `configure' recognizes the following options to control how it operates.
203
204 `--help'
205 `-h'
206 Print a summary of the options to `configure', and exit.
207
208 `--version'
209 `-V'
210 Print the version of Autoconf used to generate the `configure'
211 script, and exit.
212
213 `--cache-file=FILE'
214 Enable the cache: use and save the results of the tests in FILE,
215 traditionally `config.cache'. FILE defaults to `/dev/null' to
216 disable caching.
217
218 `--config-cache'
219 `-C'
220 Alias for `--cache-file=config.cache'.
221
222 `--quiet'
223 `--silent'
224 `-q'
225 Do not print messages saying which checks are being made. To
226 suppress all normal output, redirect it to `/dev/null' (any error
227 messages will still be shown).
228
229 `--srcdir=DIR'
230 Look for the package's source code in directory DIR. Usually
231 `configure' can determine that directory automatically.
232
233 `configure' also accepts some other, not widely useful, options. Run
234 `configure --help' for more details.
235
+0
-632
Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = .
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
39 $(srcdir)/faad2.spec.in $(top_srcdir)/configure AUTHORS \
40 COPYING ChangeLog INSTALL NEWS TODO compile config.guess \
41 config.sub depcomp install-sh ltmain.sh missing
42 subdir = .
43 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
44 am__aclocal_m4_deps = $(top_srcdir)/configure.in
45 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
46 $(ACLOCAL_M4)
47 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
48 configure.lineno configure.status.lineno
49 mkinstalldirs = $(install_sh) -d
50 CONFIG_HEADER = config.h
51 CONFIG_CLEAN_FILES = faad2.spec
52 SOURCES =
53 DIST_SOURCES =
54 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
55 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
60 ETAGS = etags
61 CTAGS = ctags
62 DIST_SUBDIRS = $(SUBDIRS)
63 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
64 distdir = $(PACKAGE)-$(VERSION)
65 top_distdir = $(distdir)
66 am__remove_distdir = \
67 { test ! -d $(distdir) \
68 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
69 && rm -fr $(distdir); }; }
70 DIST_ARCHIVES = $(distdir).tar.gz
71 GZIP_ENV = --best
72 distuninstallcheck_listfiles = find . -type f -print
73 distcleancheck_listfiles = find . -type f -print
74 ACLOCAL = @ACLOCAL@
75 AMDEP_FALSE = @AMDEP_FALSE@
76 AMDEP_TRUE = @AMDEP_TRUE@
77 AMTAR = @AMTAR@
78 AR = @AR@
79 AUTOCONF = @AUTOCONF@
80 AUTOHEADER = @AUTOHEADER@
81 AUTOMAKE = @AUTOMAKE@
82 AWK = @AWK@
83 CC = @CC@
84 CCDEPMODE = @CCDEPMODE@
85 CFLAGS = @CFLAGS@
86 CPP = @CPP@
87 CPPFLAGS = @CPPFLAGS@
88 CXX = @CXX@
89 CXXCPP = @CXXCPP@
90 CXXDEPMODE = @CXXDEPMODE@
91 CXXFLAGS = @CXXFLAGS@
92 CYGPATH_W = @CYGPATH_W@
93 DEFS = @DEFS@
94 DEPDIR = @DEPDIR@
95 ECHO = @ECHO@
96 ECHO_C = @ECHO_C@
97 ECHO_N = @ECHO_N@
98 ECHO_T = @ECHO_T@
99 EGREP = @EGREP@
100 EXEEXT = @EXEEXT@
101 F77 = @F77@
102 FFLAGS = @FFLAGS@
103 GREP = @GREP@
104 GTK_CONFIG = @GTK_CONFIG@
105 HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
106 HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
107 HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
108 HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
109 INSTALL_DATA = @INSTALL_DATA@
110 INSTALL_PROGRAM = @INSTALL_PROGRAM@
111 INSTALL_SCRIPT = @INSTALL_SCRIPT@
112 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
113 LDFLAGS = @LDFLAGS@
114 LIBOBJS = @LIBOBJS@
115 LIBS = @LIBS@
116 LIBTOOL = @LIBTOOL@
117 LIBTOOL_DEPS = @LIBTOOL_DEPS@
118 LN_S = @LN_S@
119 LTLIBOBJS = @LTLIBOBJS@
120 MAKEINFO = @MAKEINFO@
121 MP4FF_LIBS = @MP4FF_LIBS@
122 OBJEXT = @OBJEXT@
123 PACKAGE = @PACKAGE@
124 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
125 PACKAGE_NAME = @PACKAGE_NAME@
126 PACKAGE_STRING = @PACKAGE_STRING@
127 PACKAGE_TARNAME = @PACKAGE_TARNAME@
128 PACKAGE_VERSION = @PACKAGE_VERSION@
129 PATH_SEPARATOR = @PATH_SEPARATOR@
130 RANLIB = @RANLIB@
131 RPMBUILD = @RPMBUILD@
132 SET_MAKE = @SET_MAKE@
133 SHELL = @SHELL@
134 STRIP = @STRIP@
135 VERSION = @VERSION@
136 XMMS_CONFIG = @XMMS_CONFIG@
137 ac_ct_CC = @ac_ct_CC@
138 ac_ct_CXX = @ac_ct_CXX@
139 ac_ct_F77 = @ac_ct_F77@
140 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
141 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
142 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
143 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
144 am__include = @am__include@
145 am__leading_dot = @am__leading_dot@
146 am__quote = @am__quote@
147 am__tar = @am__tar@
148 am__untar = @am__untar@
149 bindir = @bindir@
150 build = @build@
151 build_alias = @build_alias@
152 build_cpu = @build_cpu@
153 build_os = @build_os@
154 build_vendor = @build_vendor@
155 datadir = @datadir@
156 datarootdir = @datarootdir@
157 docdir = @docdir@
158 dvidir = @dvidir@
159 exec_prefix = @exec_prefix@
160 external_mp4v2 = @external_mp4v2@
161 host = @host@
162 host_alias = @host_alias@
163 host_cpu = @host_cpu@
164 host_os = @host_os@
165 host_vendor = @host_vendor@
166 htmldir = @htmldir@
167 includedir = @includedir@
168 infodir = @infodir@
169 install_sh = @install_sh@
170 libdir = @libdir@
171 libexecdir = @libexecdir@
172 localedir = @localedir@
173 localstatedir = @localstatedir@
174 mandir = @mandir@
175 mkdir_p = @mkdir_p@
176 oldincludedir = @oldincludedir@
177 pdfdir = @pdfdir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 psdir = @psdir@
181 sbindir = @sbindir@
182 sharedstatedir = @sharedstatedir@
183 sysconfdir = @sysconfdir@
184 target_alias = @target_alias@
185 SUBDIRS = libfaad common frontend plugins
186 EXTRA_DIST = faad2.spec
187 all: config.h
188 $(MAKE) $(AM_MAKEFLAGS) all-recursive
189
190 .SUFFIXES:
191 am--refresh:
192 @:
193 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
194 @for dep in $?; do \
195 case '$(am__configure_deps)' in \
196 *$$dep*) \
197 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
198 cd $(srcdir) && $(AUTOMAKE) --gnu \
199 && exit 0; \
200 exit 1;; \
201 esac; \
202 done; \
203 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
204 cd $(top_srcdir) && \
205 $(AUTOMAKE) --gnu Makefile
206 .PRECIOUS: Makefile
207 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
208 @case '$?' in \
209 *config.status*) \
210 echo ' $(SHELL) ./config.status'; \
211 $(SHELL) ./config.status;; \
212 *) \
213 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
214 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
215 esac;
216
217 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
218 $(SHELL) ./config.status --recheck
219
220 $(top_srcdir)/configure: $(am__configure_deps)
221 cd $(srcdir) && $(AUTOCONF)
222 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
223 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
224
225 config.h: stamp-h1
226 @if test ! -f $@; then \
227 rm -f stamp-h1; \
228 $(MAKE) stamp-h1; \
229 else :; fi
230
231 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
232 @rm -f stamp-h1
233 cd $(top_builddir) && $(SHELL) ./config.status config.h
234 $(srcdir)/config.h.in: $(am__configure_deps)
235 cd $(top_srcdir) && $(AUTOHEADER)
236 rm -f stamp-h1
237 touch $@
238
239 distclean-hdr:
240 -rm -f config.h stamp-h1
241 faad2.spec: $(top_builddir)/config.status $(srcdir)/faad2.spec.in
242 cd $(top_builddir) && $(SHELL) ./config.status $@
243
244 mostlyclean-libtool:
245 -rm -f *.lo
246
247 clean-libtool:
248 -rm -rf .libs _libs
249
250 distclean-libtool:
251 -rm -f libtool
252 uninstall-info-am:
253
254 # This directory's subdirectories are mostly independent; you can cd
255 # into them and run `make' without going through this Makefile.
256 # To change the values of `make' variables: instead of editing Makefiles,
257 # (1) if the variable is set in `config.status', edit `config.status'
258 # (which will cause the Makefiles to be regenerated when you run `make');
259 # (2) otherwise, pass the desired values on the `make' command line.
260 $(RECURSIVE_TARGETS):
261 @failcom='exit 1'; \
262 for f in x $$MAKEFLAGS; do \
263 case $$f in \
264 *=* | --[!k]*);; \
265 *k*) failcom='fail=yes';; \
266 esac; \
267 done; \
268 dot_seen=no; \
269 target=`echo $@ | sed s/-recursive//`; \
270 list='$(SUBDIRS)'; for subdir in $$list; do \
271 echo "Making $$target in $$subdir"; \
272 if test "$$subdir" = "."; then \
273 dot_seen=yes; \
274 local_target="$$target-am"; \
275 else \
276 local_target="$$target"; \
277 fi; \
278 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
279 || eval $$failcom; \
280 done; \
281 if test "$$dot_seen" = "no"; then \
282 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
283 fi; test -z "$$fail"
284
285 mostlyclean-recursive clean-recursive distclean-recursive \
286 maintainer-clean-recursive:
287 @failcom='exit 1'; \
288 for f in x $$MAKEFLAGS; do \
289 case $$f in \
290 *=* | --[!k]*);; \
291 *k*) failcom='fail=yes';; \
292 esac; \
293 done; \
294 dot_seen=no; \
295 case "$@" in \
296 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
297 *) list='$(SUBDIRS)' ;; \
298 esac; \
299 rev=''; for subdir in $$list; do \
300 if test "$$subdir" = "."; then :; else \
301 rev="$$subdir $$rev"; \
302 fi; \
303 done; \
304 rev="$$rev ."; \
305 target=`echo $@ | sed s/-recursive//`; \
306 for subdir in $$rev; do \
307 echo "Making $$target in $$subdir"; \
308 if test "$$subdir" = "."; then \
309 local_target="$$target-am"; \
310 else \
311 local_target="$$target"; \
312 fi; \
313 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
314 || eval $$failcom; \
315 done && test -z "$$fail"
316 tags-recursive:
317 list='$(SUBDIRS)'; for subdir in $$list; do \
318 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
319 done
320 ctags-recursive:
321 list='$(SUBDIRS)'; for subdir in $$list; do \
322 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
323 done
324
325 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
326 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
327 unique=`for i in $$list; do \
328 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
329 done | \
330 $(AWK) ' { files[$$0] = 1; } \
331 END { for (i in files) print i; }'`; \
332 mkid -fID $$unique
333 tags: TAGS
334
335 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
336 $(TAGS_FILES) $(LISP)
337 tags=; \
338 here=`pwd`; \
339 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
340 include_option=--etags-include; \
341 empty_fix=.; \
342 else \
343 include_option=--include; \
344 empty_fix=; \
345 fi; \
346 list='$(SUBDIRS)'; for subdir in $$list; do \
347 if test "$$subdir" = .; then :; else \
348 test ! -f $$subdir/TAGS || \
349 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
350 fi; \
351 done; \
352 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) ' { files[$$0] = 1; } \
357 END { for (i in files) print i; }'`; \
358 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
359 test -n "$$unique" || unique=$$empty_fix; \
360 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
361 $$tags $$unique; \
362 fi
363 ctags: CTAGS
364 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
365 $(TAGS_FILES) $(LISP)
366 tags=; \
367 here=`pwd`; \
368 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
369 unique=`for i in $$list; do \
370 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
371 done | \
372 $(AWK) ' { files[$$0] = 1; } \
373 END { for (i in files) print i; }'`; \
374 test -z "$(CTAGS_ARGS)$$tags$$unique" \
375 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
376 $$tags $$unique
377
378 GTAGS:
379 here=`$(am__cd) $(top_builddir) && pwd` \
380 && cd $(top_srcdir) \
381 && gtags -i $(GTAGS_ARGS) $$here
382
383 distclean-tags:
384 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
385
386 distdir: $(DISTFILES)
387 $(am__remove_distdir)
388 mkdir $(distdir)
389 $(mkdir_p) $(distdir)/.
390 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
392 list='$(DISTFILES)'; for file in $$list; do \
393 case $$file in \
394 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
395 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
396 esac; \
397 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
398 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
399 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
400 dir="/$$dir"; \
401 $(mkdir_p) "$(distdir)$$dir"; \
402 else \
403 dir=''; \
404 fi; \
405 if test -d $$d/$$file; then \
406 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
407 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
408 fi; \
409 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
410 else \
411 test -f $(distdir)/$$file \
412 || cp -p $$d/$$file $(distdir)/$$file \
413 || exit 1; \
414 fi; \
415 done
416 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
417 if test "$$subdir" = .; then :; else \
418 test -d "$(distdir)/$$subdir" \
419 || $(mkdir_p) "$(distdir)/$$subdir" \
420 || exit 1; \
421 distdir=`$(am__cd) $(distdir) && pwd`; \
422 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
423 (cd $$subdir && \
424 $(MAKE) $(AM_MAKEFLAGS) \
425 top_distdir="$$top_distdir" \
426 distdir="$$distdir/$$subdir" \
427 distdir) \
428 || exit 1; \
429 fi; \
430 done
431 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
432 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
433 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
434 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
435 || chmod -R a+r $(distdir)
436 dist-gzip: distdir
437 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
438 $(am__remove_distdir)
439
440 dist-bzip2: distdir
441 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
442 $(am__remove_distdir)
443
444 dist-tarZ: distdir
445 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
446 $(am__remove_distdir)
447
448 dist-shar: distdir
449 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
450 $(am__remove_distdir)
451
452 dist-zip: distdir
453 -rm -f $(distdir).zip
454 zip -rq $(distdir).zip $(distdir)
455 $(am__remove_distdir)
456
457 dist dist-all: distdir
458 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
459 $(am__remove_distdir)
460
461 # This target untars the dist file and tries a VPATH configuration. Then
462 # it guarantees that the distribution is self-contained by making another
463 # tarfile.
464 distcheck: dist
465 case '$(DIST_ARCHIVES)' in \
466 *.tar.gz*) \
467 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
468 *.tar.bz2*) \
469 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
470 *.tar.Z*) \
471 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
472 *.shar.gz*) \
473 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
474 *.zip*) \
475 unzip $(distdir).zip ;;\
476 esac
477 chmod -R a-w $(distdir); chmod a+w $(distdir)
478 mkdir $(distdir)/_build
479 mkdir $(distdir)/_inst
480 chmod a-w $(distdir)
481 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
482 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
483 && cd $(distdir)/_build \
484 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
485 $(DISTCHECK_CONFIGURE_FLAGS) \
486 && $(MAKE) $(AM_MAKEFLAGS) \
487 && $(MAKE) $(AM_MAKEFLAGS) dvi \
488 && $(MAKE) $(AM_MAKEFLAGS) check \
489 && $(MAKE) $(AM_MAKEFLAGS) install \
490 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
491 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
492 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
493 distuninstallcheck \
494 && chmod -R a-w "$$dc_install_base" \
495 && ({ \
496 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
497 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
498 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
499 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
500 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
501 } || { rm -rf "$$dc_destdir"; exit 1; }) \
502 && rm -rf "$$dc_destdir" \
503 && $(MAKE) $(AM_MAKEFLAGS) dist \
504 && rm -rf $(DIST_ARCHIVES) \
505 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
506 $(am__remove_distdir)
507 @(echo "$(distdir) archives ready for distribution: "; \
508 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
509 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
510 distuninstallcheck:
511 @cd $(distuninstallcheck_dir) \
512 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
513 || { echo "ERROR: files left after uninstall:" ; \
514 if test -n "$(DESTDIR)"; then \
515 echo " (check DESTDIR support)"; \
516 fi ; \
517 $(distuninstallcheck_listfiles) ; \
518 exit 1; } >&2
519 distcleancheck: distclean
520 @if test '$(srcdir)' = . ; then \
521 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
522 exit 1 ; \
523 fi
524 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
525 || { echo "ERROR: files left in build directory after distclean:" ; \
526 $(distcleancheck_listfiles) ; \
527 exit 1; } >&2
528 check-am: all-am
529 check: check-recursive
530 all-am: Makefile config.h
531 installdirs: installdirs-recursive
532 installdirs-am:
533 install: install-recursive
534 install-exec: install-exec-recursive
535 install-data: install-data-recursive
536 uninstall: uninstall-recursive
537
538 install-am: all-am
539 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
540
541 installcheck: installcheck-recursive
542 install-strip:
543 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
544 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
545 `test -z '$(STRIP)' || \
546 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
547 mostlyclean-generic:
548
549 clean-generic:
550
551 distclean-generic:
552 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
553
554 maintainer-clean-generic:
555 @echo "This command is intended for maintainers to use"
556 @echo "it deletes files that may require special tools to rebuild."
557 clean: clean-recursive
558
559 clean-am: clean-generic clean-libtool mostlyclean-am
560
561 distclean: distclean-recursive
562 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
563 -rm -f Makefile
564 distclean-am: clean-am distclean-generic distclean-hdr \
565 distclean-libtool distclean-tags
566
567 dvi: dvi-recursive
568
569 dvi-am:
570
571 html: html-recursive
572
573 info: info-recursive
574
575 info-am:
576
577 install-data-am:
578
579 install-exec-am:
580
581 install-info: install-info-recursive
582
583 install-man:
584
585 installcheck-am:
586
587 maintainer-clean: maintainer-clean-recursive
588 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
589 -rm -rf $(top_srcdir)/autom4te.cache
590 -rm -f Makefile
591 maintainer-clean-am: distclean-am maintainer-clean-generic
592
593 mostlyclean: mostlyclean-recursive
594
595 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
596
597 pdf: pdf-recursive
598
599 pdf-am:
600
601 ps: ps-recursive
602
603 ps-am:
604
605 uninstall-am: uninstall-info-am
606
607 uninstall-info: uninstall-info-recursive
608
609 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
610 check-am clean clean-generic clean-libtool clean-recursive \
611 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
612 dist-shar dist-tarZ dist-zip distcheck distclean \
613 distclean-generic distclean-hdr distclean-libtool \
614 distclean-recursive distclean-tags distcleancheck distdir \
615 distuninstallcheck dvi dvi-am html html-am info info-am \
616 install install-am install-data install-data-am install-exec \
617 install-exec-am install-info install-info-am install-man \
618 install-strip installcheck installcheck-am installdirs \
619 installdirs-am maintainer-clean maintainer-clean-generic \
620 maintainer-clean-recursive mostlyclean mostlyclean-generic \
621 mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
622 tags tags-recursive uninstall uninstall-am uninstall-info-am
623
624
625 rpm: Makefile
626 make dist
627 $(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz
628 rm $(PACKAGE)-$(VERSION).tar.gz
629 # Tell versions [3.59,3.63) of GNU make to not export all variables.
630 # Otherwise a system limit (for SysV at least) may be exceeded.
631 .NOEXPORT:
+0
-7259
aclocal.m4 less more
0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
14
15 # serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
16
17
18 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
19 # -----------------------------------------------------------
20 # If this macro is not defined by Autoconf, define it here.
21 m4_ifdef([AC_PROVIDE_IFELSE],
22 [],
23 [m4_define([AC_PROVIDE_IFELSE],
24 [m4_ifdef([AC_PROVIDE_$1],
25 [$2], [$3])])])
26
27
28 # AC_PROG_LIBTOOL
29 # ---------------
30 AC_DEFUN([AC_PROG_LIBTOOL],
31 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
32 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
33 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
34 AC_PROVIDE_IFELSE([AC_PROG_CXX],
35 [AC_LIBTOOL_CXX],
36 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
37 ])])
38 dnl And a similar setup for Fortran 77 support
39 AC_PROVIDE_IFELSE([AC_PROG_F77],
40 [AC_LIBTOOL_F77],
41 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
42 ])])
43
44 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
45 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
46 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
47 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
48 [AC_LIBTOOL_GCJ],
49 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
50 [AC_LIBTOOL_GCJ],
51 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
52 [AC_LIBTOOL_GCJ],
53 [ifdef([AC_PROG_GCJ],
54 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
55 ifdef([A][M_PROG_GCJ],
56 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
57 ifdef([LT_AC_PROG_GCJ],
58 [define([LT_AC_PROG_GCJ],
59 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
60 ])])# AC_PROG_LIBTOOL
61
62
63 # _AC_PROG_LIBTOOL
64 # ----------------
65 AC_DEFUN([_AC_PROG_LIBTOOL],
66 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
67 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
68 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
69 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
70
71 # This can be used to rebuild libtool when needed
72 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
73
74 # Always use our own libtool.
75 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
76 AC_SUBST(LIBTOOL)dnl
77
78 # Prevent multiple expansion
79 define([AC_PROG_LIBTOOL], [])
80 ])# _AC_PROG_LIBTOOL
81
82
83 # AC_LIBTOOL_SETUP
84 # ----------------
85 AC_DEFUN([AC_LIBTOOL_SETUP],
86 [AC_PREREQ(2.50)dnl
87 AC_REQUIRE([AC_ENABLE_SHARED])dnl
88 AC_REQUIRE([AC_ENABLE_STATIC])dnl
89 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
90 AC_REQUIRE([AC_CANONICAL_HOST])dnl
91 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
92 AC_REQUIRE([AC_PROG_CC])dnl
93 AC_REQUIRE([AC_PROG_LD])dnl
94 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
95 AC_REQUIRE([AC_PROG_NM])dnl
96
97 AC_REQUIRE([AC_PROG_LN_S])dnl
98 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
99 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
100 AC_REQUIRE([AC_OBJEXT])dnl
101 AC_REQUIRE([AC_EXEEXT])dnl
102 dnl
103
104 AC_LIBTOOL_SYS_MAX_CMD_LEN
105 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
106 AC_LIBTOOL_OBJDIR
107
108 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
109 _LT_AC_PROG_ECHO_BACKSLASH
110
111 case $host_os in
112 aix3*)
113 # AIX sometimes has problems with the GCC collect2 program. For some
114 # reason, if we set the COLLECT_NAMES environment variable, the problems
115 # vanish in a puff of smoke.
116 if test "X${COLLECT_NAMES+set}" != Xset; then
117 COLLECT_NAMES=
118 export COLLECT_NAMES
119 fi
120 ;;
121 esac
122
123 # Sed substitution that helps us do robust quoting. It backslashifies
124 # metacharacters that are still active within double-quoted strings.
125 Xsed='sed -e 1s/^X//'
126 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
127
128 # Same as above, but do not quote variable references.
129 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
130
131 # Sed substitution to delay expansion of an escaped shell variable in a
132 # double_quote_subst'ed string.
133 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
134
135 # Sed substitution to avoid accidental globbing in evaled expressions
136 no_glob_subst='s/\*/\\\*/g'
137
138 # Constants:
139 rm="rm -f"
140
141 # Global variables:
142 default_ofile=libtool
143 can_build_shared=yes
144
145 # All known linkers require a `.a' archive for static linking (except MSVC,
146 # which needs '.lib').
147 libext=a
148 ltmain="$ac_aux_dir/ltmain.sh"
149 ofile="$default_ofile"
150 with_gnu_ld="$lt_cv_prog_gnu_ld"
151
152 AC_CHECK_TOOL(AR, ar, false)
153 AC_CHECK_TOOL(RANLIB, ranlib, :)
154 AC_CHECK_TOOL(STRIP, strip, :)
155
156 old_CC="$CC"
157 old_CFLAGS="$CFLAGS"
158
159 # Set sane defaults for various variables
160 test -z "$AR" && AR=ar
161 test -z "$AR_FLAGS" && AR_FLAGS=cru
162 test -z "$AS" && AS=as
163 test -z "$CC" && CC=cc
164 test -z "$LTCC" && LTCC=$CC
165 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
166 test -z "$DLLTOOL" && DLLTOOL=dlltool
167 test -z "$LD" && LD=ld
168 test -z "$LN_S" && LN_S="ln -s"
169 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="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
186 ;;
187 *)
188 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
189 ;;
190 esac
191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
192 fi
193
194 _LT_CC_BASENAME([$compiler])
195
196 # Only perform the check for file, if the check method requires it
197 case $deplibs_check_method in
198 file_magic*)
199 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
200 AC_PATH_MAGIC
201 fi
202 ;;
203 esac
204
205 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
206 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
207 enable_win32_dll=yes, enable_win32_dll=no)
208
209 AC_ARG_ENABLE([libtool-lock],
210 [AC_HELP_STRING([--disable-libtool-lock],
211 [avoid locking (might break parallel builds)])])
212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
213
214 AC_ARG_WITH([pic],
215 [AC_HELP_STRING([--with-pic],
216 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
217 [pic_mode="$withval"],
218 [pic_mode=default])
219 test -z "$pic_mode" && pic_mode=default
220
221 # Use C for the default configuration in the libtool script
222 tagname=
223 AC_LIBTOOL_LANG_C_CONFIG
224 _LT_AC_TAGCONFIG
225 ])# AC_LIBTOOL_SETUP
226
227
228 # _LT_AC_SYS_COMPILER
229 # -------------------
230 AC_DEFUN([_LT_AC_SYS_COMPILER],
231 [AC_REQUIRE([AC_PROG_CC])dnl
232
233 # If no C compiler was specified, use CC.
234 LTCC=${LTCC-"$CC"}
235
236 # If no C compiler flags were specified, use CFLAGS.
237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
238
239 # Allow CC to be a program name with arguments.
240 compiler=$CC
241 ])# _LT_AC_SYS_COMPILER
242
243
244 # _LT_CC_BASENAME(CC)
245 # -------------------
246 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
247 AC_DEFUN([_LT_CC_BASENAME],
248 [for cc_temp in $1""; do
249 case $cc_temp in
250 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
251 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
252 \-*) ;;
253 *) break;;
254 esac
255 done
256 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
257 ])
258
259
260 # _LT_COMPILER_BOILERPLATE
261 # ------------------------
262 # Check for compiler boilerplate output or warnings with
263 # the simple compiler test code.
264 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
265 [ac_outfile=conftest.$ac_objext
266 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
267 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
268 _lt_compiler_boilerplate=`cat conftest.err`
269 $rm conftest*
270 ])# _LT_COMPILER_BOILERPLATE
271
272
273 # _LT_LINKER_BOILERPLATE
274 # ----------------------
275 # Check for linker boilerplate output or warnings with
276 # the simple link test code.
277 AC_DEFUN([_LT_LINKER_BOILERPLATE],
278 [ac_outfile=conftest.$ac_objext
279 printf "$lt_simple_link_test_code" >conftest.$ac_ext
280 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
281 _lt_linker_boilerplate=`cat conftest.err`
282 $rm conftest*
283 ])# _LT_LINKER_BOILERPLATE
284
285
286 # _LT_AC_SYS_LIBPATH_AIX
287 # ----------------------
288 # Links a minimal program and checks the executable
289 # for the system default hardcoded library path. In most cases,
290 # this is /usr/lib:/lib, but when the MPI compilers are used
291 # the location of the communication and MPI libs are included too.
292 # If we don't find anything, use the default library path according
293 # to the aix ld manual.
294 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
295 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
297 }'`
298 # Check for a 64-bit object if we didn't find anything.
299 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; }
300 }'`; fi],[])
301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
302 ])# _LT_AC_SYS_LIBPATH_AIX
303
304
305 # _LT_AC_SHELL_INIT(ARG)
306 # ----------------------
307 AC_DEFUN([_LT_AC_SHELL_INIT],
308 [ifdef([AC_DIVERSION_NOTICE],
309 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
310 [AC_DIVERT_PUSH(NOTICE)])
311 $1
312 AC_DIVERT_POP
313 ])# _LT_AC_SHELL_INIT
314
315
316 # _LT_AC_PROG_ECHO_BACKSLASH
317 # --------------------------
318 # Add some code to the start of the generated configure script which
319 # will find an echo command which doesn't interpret backslashes.
320 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
321 [_LT_AC_SHELL_INIT([
322 # Check that we are running under the correct shell.
323 SHELL=${CONFIG_SHELL-/bin/sh}
324
325 case X$ECHO in
326 X*--fallback-echo)
327 # Remove one level of quotation (which was required for Make).
328 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
329 ;;
330 esac
331
332 echo=${ECHO-echo}
333 if test "X[$]1" = X--no-reexec; then
334 # Discard the --no-reexec flag, and continue.
335 shift
336 elif test "X[$]1" = X--fallback-echo; then
337 # Avoid inline document here, it may be left over
338 :
339 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
340 # Yippee, $echo works!
341 :
342 else
343 # Restart under the correct shell.
344 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
345 fi
346
347 if test "X[$]1" = X--fallback-echo; then
348 # used as fallback echo
349 shift
350 cat <<EOF
351 [$]*
352 EOF
353 exit 0
354 fi
355
356 # The HP-UX ksh and POSIX shell print the target directory to stdout
357 # if CDPATH is set.
358 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
359
360 if test -z "$ECHO"; then
361 if test "X${echo_test_string+set}" != Xset; then
362 # find a string as large as possible, as long as the shell can cope with it
363 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
364 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
365 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
366 echo_test_string=`eval $cmd` &&
367 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
368 then
369 break
370 fi
371 done
372 fi
373
374 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
375 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
376 test "X$echo_testing_string" = "X$echo_test_string"; then
377 :
378 else
379 # The Solaris, AIX, and Digital Unix default echo programs unquote
380 # backslashes. This makes it impossible to quote backslashes using
381 # echo "$something" | sed 's/\\/\\\\/g'
382 #
383 # So, first we look for a working echo in the user's PATH.
384
385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
386 for dir in $PATH /usr/ucb; do
387 IFS="$lt_save_ifs"
388 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
389 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
390 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
391 test "X$echo_testing_string" = "X$echo_test_string"; then
392 echo="$dir/echo"
393 break
394 fi
395 done
396 IFS="$lt_save_ifs"
397
398 if test "X$echo" = Xecho; then
399 # We didn't find a better echo, so look for alternatives.
400 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
401 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
402 test "X$echo_testing_string" = "X$echo_test_string"; then
403 # This shell has a builtin print -r that does the trick.
404 echo='print -r'
405 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
406 test "X$CONFIG_SHELL" != X/bin/ksh; then
407 # If we have ksh, try running configure again with it.
408 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
409 export ORIGINAL_CONFIG_SHELL
410 CONFIG_SHELL=/bin/ksh
411 export CONFIG_SHELL
412 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
413 else
414 # Try using printf.
415 echo='printf %s\n'
416 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
417 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
418 test "X$echo_testing_string" = "X$echo_test_string"; then
419 # Cool, printf works
420 :
421 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
422 test "X$echo_testing_string" = 'X\t' &&
423 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
424 test "X$echo_testing_string" = "X$echo_test_string"; then
425 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
426 export CONFIG_SHELL
427 SHELL="$CONFIG_SHELL"
428 export SHELL
429 echo="$CONFIG_SHELL [$]0 --fallback-echo"
430 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
431 test "X$echo_testing_string" = 'X\t' &&
432 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
433 test "X$echo_testing_string" = "X$echo_test_string"; then
434 echo="$CONFIG_SHELL [$]0 --fallback-echo"
435 else
436 # maybe with a smaller string...
437 prev=:
438
439 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
440 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
441 then
442 break
443 fi
444 prev="$cmd"
445 done
446
447 if test "$prev" != 'sed 50q "[$]0"'; then
448 echo_test_string=`eval $prev`
449 export echo_test_string
450 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
451 else
452 # Oops. We lost completely, so just stick with echo.
453 echo=echo
454 fi
455 fi
456 fi
457 fi
458 fi
459 fi
460
461 # Copy echo and quote the copy suitably for passing to libtool from
462 # the Makefile, instead of quoting the original, which is used later.
463 ECHO=$echo
464 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
465 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
466 fi
467
468 AC_SUBST(ECHO)
469 ])])# _LT_AC_PROG_ECHO_BACKSLASH
470
471
472 # _LT_AC_LOCK
473 # -----------
474 AC_DEFUN([_LT_AC_LOCK],
475 [AC_ARG_ENABLE([libtool-lock],
476 [AC_HELP_STRING([--disable-libtool-lock],
477 [avoid locking (might break parallel builds)])])
478 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
479
480 # Some flags need to be propagated to the compiler or linker for good
481 # libtool support.
482 case $host in
483 ia64-*-hpux*)
484 # Find out which ABI we are using.
485 echo 'int i;' > conftest.$ac_ext
486 if AC_TRY_EVAL(ac_compile); then
487 case `/usr/bin/file conftest.$ac_objext` in
488 *ELF-32*)
489 HPUX_IA64_MODE="32"
490 ;;
491 *ELF-64*)
492 HPUX_IA64_MODE="64"
493 ;;
494 esac
495 fi
496 rm -rf conftest*
497 ;;
498 *-*-irix6*)
499 # Find out which ABI we are using.
500 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
501 if AC_TRY_EVAL(ac_compile); then
502 if test "$lt_cv_prog_gnu_ld" = yes; then
503 case `/usr/bin/file conftest.$ac_objext` in
504 *32-bit*)
505 LD="${LD-ld} -melf32bsmip"
506 ;;
507 *N32*)
508 LD="${LD-ld} -melf32bmipn32"
509 ;;
510 *64-bit*)
511 LD="${LD-ld} -melf64bmip"
512 ;;
513 esac
514 else
515 case `/usr/bin/file conftest.$ac_objext` in
516 *32-bit*)
517 LD="${LD-ld} -32"
518 ;;
519 *N32*)
520 LD="${LD-ld} -n32"
521 ;;
522 *64-bit*)
523 LD="${LD-ld} -64"
524 ;;
525 esac
526 fi
527 fi
528 rm -rf conftest*
529 ;;
530
531 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
532 # Find out which ABI we are using.
533 echo 'int i;' > conftest.$ac_ext
534 if AC_TRY_EVAL(ac_compile); then
535 case `/usr/bin/file conftest.o` in
536 *32-bit*)
537 case $host in
538 x86_64-*linux*)
539 LD="${LD-ld} -m elf_i386"
540 ;;
541 ppc64-*linux*|powerpc64-*linux*)
542 LD="${LD-ld} -m elf32ppclinux"
543 ;;
544 s390x-*linux*)
545 LD="${LD-ld} -m elf_s390"
546 ;;
547 sparc64-*linux*)
548 LD="${LD-ld} -m elf32_sparc"
549 ;;
550 esac
551 ;;
552 *64-bit*)
553 case $host in
554 x86_64-*linux*)
555 LD="${LD-ld} -m elf_x86_64"
556 ;;
557 ppc*-*linux*|powerpc*-*linux*)
558 LD="${LD-ld} -m elf64ppc"
559 ;;
560 s390*-*linux*)
561 LD="${LD-ld} -m elf64_s390"
562 ;;
563 sparc*-*linux*)
564 LD="${LD-ld} -m elf64_sparc"
565 ;;
566 esac
567 ;;
568 esac
569 fi
570 rm -rf conftest*
571 ;;
572
573 *-*-sco3.2v5*)
574 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
575 SAVE_CFLAGS="$CFLAGS"
576 CFLAGS="$CFLAGS -belf"
577 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
578 [AC_LANG_PUSH(C)
579 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
580 AC_LANG_POP])
581 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
582 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
583 CFLAGS="$SAVE_CFLAGS"
584 fi
585 ;;
586 sparc*-*solaris*)
587 # Find out which ABI we are using.
588 echo 'int i;' > conftest.$ac_ext
589 if AC_TRY_EVAL(ac_compile); then
590 case `/usr/bin/file conftest.o` in
591 *64-bit*)
592 case $lt_cv_prog_gnu_ld in
593 yes*) LD="${LD-ld} -m elf64_sparc" ;;
594 *) LD="${LD-ld} -64" ;;
595 esac
596 ;;
597 esac
598 fi
599 rm -rf conftest*
600 ;;
601
602 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
603 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
604 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
605 AC_CHECK_TOOL(AS, as, false)
606 AC_CHECK_TOOL(OBJDUMP, objdump, false)
607 ;;
608 ])
609 esac
610
611 need_locks="$enable_libtool_lock"
612
613 ])# _LT_AC_LOCK
614
615
616 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
617 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
618 # ----------------------------------------------------------------
619 # Check whether the given compiler option works
620 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
621 [AC_REQUIRE([LT_AC_PROG_SED])
622 AC_CACHE_CHECK([$1], [$2],
623 [$2=no
624 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
626 lt_compiler_flag="$3"
627 # Insert the option either (1) after the last *FLAGS variable, or
628 # (2) before a word containing "conftest.", or (3) at the end.
629 # Note that $ac_compile itself does not contain backslashes and begins
630 # with a dollar sign (not a hyphen), so the echo should work correctly.
631 # The option is referenced via a variable to avoid confusing sed.
632 lt_compile=`echo "$ac_compile" | $SED \
633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
634 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
635 -e 's:$: $lt_compiler_flag:'`
636 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
637 (eval "$lt_compile" 2>conftest.err)
638 ac_status=$?
639 cat conftest.err >&AS_MESSAGE_LOG_FD
640 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
641 if (exit $ac_status) && test -s "$ac_outfile"; then
642 # The compiler can only warn and ignore the option if not recognized
643 # So say no if there are warnings other than the usual output.
644 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
647 $2=yes
648 fi
649 fi
650 $rm conftest*
651 ])
652
653 if test x"[$]$2" = xyes; then
654 ifelse([$5], , :, [$5])
655 else
656 ifelse([$6], , :, [$6])
657 fi
658 ])# AC_LIBTOOL_COMPILER_OPTION
659
660
661 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
662 # [ACTION-SUCCESS], [ACTION-FAILURE])
663 # ------------------------------------------------------------
664 # Check whether the given compiler option works
665 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
666 [AC_CACHE_CHECK([$1], [$2],
667 [$2=no
668 save_LDFLAGS="$LDFLAGS"
669 LDFLAGS="$LDFLAGS $3"
670 printf "$lt_simple_link_test_code" > conftest.$ac_ext
671 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
672 # The linker can only warn and ignore the option if not recognized
673 # So say no if there are warnings
674 if test -s conftest.err; then
675 # Append any errors to the config.log.
676 cat conftest.err 1>&AS_MESSAGE_LOG_FD
677 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
679 if diff conftest.exp conftest.er2 >/dev/null; then
680 $2=yes
681 fi
682 else
683 $2=yes
684 fi
685 fi
686 $rm conftest*
687 LDFLAGS="$save_LDFLAGS"
688 ])
689
690 if test x"[$]$2" = xyes; then
691 ifelse([$4], , :, [$4])
692 else
693 ifelse([$5], , :, [$5])
694 fi
695 ])# AC_LIBTOOL_LINKER_OPTION
696
697
698 # AC_LIBTOOL_SYS_MAX_CMD_LEN
699 # --------------------------
700 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
701 [# find the maximum length of command line arguments
702 AC_MSG_CHECKING([the maximum length of command line arguments])
703 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
704 i=0
705 teststring="ABCD"
706
707 case $build_os in
708 msdosdjgpp*)
709 # On DJGPP, this test can blow up pretty badly due to problems in libc
710 # (any single argument exceeding 2000 bytes causes a buffer overrun
711 # during glob expansion). Even if it were fixed, the result of this
712 # check would be larger than it should be.
713 lt_cv_sys_max_cmd_len=12288; # 12K is about right
714 ;;
715
716 gnu*)
717 # Under GNU Hurd, this test is not required because there is
718 # no limit to the length of command line arguments.
719 # Libtool will interpret -1 as no limit whatsoever
720 lt_cv_sys_max_cmd_len=-1;
721 ;;
722
723 cygwin* | mingw*)
724 # On Win9x/ME, this test blows up -- it succeeds, but takes
725 # about 5 minutes as the teststring grows exponentially.
726 # Worse, since 9x/ME are not pre-emptively multitasking,
727 # you end up with a "frozen" computer, even though with patience
728 # the test eventually succeeds (with a max line length of 256k).
729 # Instead, let's just punt: use the minimum linelength reported by
730 # all of the supported platforms: 8192 (on NT/2K/XP).
731 lt_cv_sys_max_cmd_len=8192;
732 ;;
733
734 amigaos*)
735 # On AmigaOS with pdksh, this test takes hours, literally.
736 # So we just punt and use a minimum line length of 8192.
737 lt_cv_sys_max_cmd_len=8192;
738 ;;
739
740 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
741 # This has been around since 386BSD, at least. Likely further.
742 if test -x /sbin/sysctl; then
743 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
744 elif test -x /usr/sbin/sysctl; then
745 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
746 else
747 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
748 fi
749 # And add a safety zone
750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
752 ;;
753
754 interix*)
755 # We know the value 262144 and hardcode it with a safety zone (like BSD)
756 lt_cv_sys_max_cmd_len=196608
757 ;;
758
759 osf*)
760 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
761 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
762 # nice to cause kernel panics so lets avoid the loop below.
763 # First set a reasonable default.
764 lt_cv_sys_max_cmd_len=16384
765 #
766 if test -x /sbin/sysconfig; then
767 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
768 *1*) lt_cv_sys_max_cmd_len=-1 ;;
769 esac
770 fi
771 ;;
772 sco3.2v5*)
773 lt_cv_sys_max_cmd_len=102400
774 ;;
775 sysv5* | sco5v6* | sysv4.2uw2*)
776 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
777 if test -n "$kargmax"; then
778 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
779 else
780 lt_cv_sys_max_cmd_len=32768
781 fi
782 ;;
783 *)
784 # If test is not a shell built-in, we'll probably end up computing a
785 # maximum length that is only half of the actual maximum length, but
786 # we can't tell.
787 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
788 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
789 = "XX$teststring") >/dev/null 2>&1 &&
790 new_result=`expr "X$teststring" : ".*" 2>&1` &&
791 lt_cv_sys_max_cmd_len=$new_result &&
792 test $i != 17 # 1/2 MB should be enough
793 do
794 i=`expr $i + 1`
795 teststring=$teststring$teststring
796 done
797 teststring=
798 # Add a significant safety factor because C++ compilers can tack on massive
799 # amounts of additional arguments before passing them to the linker.
800 # It appears as though 1/2 is a usable value.
801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
802 ;;
803 esac
804 ])
805 if test -n $lt_cv_sys_max_cmd_len ; then
806 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
807 else
808 AC_MSG_RESULT(none)
809 fi
810 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
811
812
813 # _LT_AC_CHECK_DLFCN
814 # ------------------
815 AC_DEFUN([_LT_AC_CHECK_DLFCN],
816 [AC_CHECK_HEADERS(dlfcn.h)dnl
817 ])# _LT_AC_CHECK_DLFCN
818
819
820 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
821 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
822 # ---------------------------------------------------------------------
823 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
824 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
825 if test "$cross_compiling" = yes; then :
826 [$4]
827 else
828 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
829 lt_status=$lt_dlunknown
830 cat > conftest.$ac_ext <<EOF
831 [#line __oline__ "configure"
832 #include "confdefs.h"
833
834 #if HAVE_DLFCN_H
835 #include <dlfcn.h>
836 #endif
837
838 #include <stdio.h>
839
840 #ifdef RTLD_GLOBAL
841 # define LT_DLGLOBAL RTLD_GLOBAL
842 #else
843 # ifdef DL_GLOBAL
844 # define LT_DLGLOBAL DL_GLOBAL
845 # else
846 # define LT_DLGLOBAL 0
847 # endif
848 #endif
849
850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
851 find out it does not work in some platform. */
852 #ifndef LT_DLLAZY_OR_NOW
853 # ifdef RTLD_LAZY
854 # define LT_DLLAZY_OR_NOW RTLD_LAZY
855 # else
856 # ifdef DL_LAZY
857 # define LT_DLLAZY_OR_NOW DL_LAZY
858 # else
859 # ifdef RTLD_NOW
860 # define LT_DLLAZY_OR_NOW RTLD_NOW
861 # else
862 # ifdef DL_NOW
863 # define LT_DLLAZY_OR_NOW DL_NOW
864 # else
865 # define LT_DLLAZY_OR_NOW 0
866 # endif
867 # endif
868 # endif
869 # endif
870 #endif
871
872 #ifdef __cplusplus
873 extern "C" void exit (int);
874 #endif
875
876 void fnord() { int i=42;}
877 int main ()
878 {
879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
880 int status = $lt_dlunknown;
881
882 if (self)
883 {
884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
885 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
886 /* dlclose (self); */
887 }
888 else
889 puts (dlerror ());
890
891 exit (status);
892 }]
893 EOF
894 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
895 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
896 lt_status=$?
897 case x$lt_status in
898 x$lt_dlno_uscore) $1 ;;
899 x$lt_dlneed_uscore) $2 ;;
900 x$lt_dlunknown|x*) $3 ;;
901 esac
902 else :
903 # compilation failed
904 $3
905 fi
906 fi
907 rm -fr conftest*
908 ])# _LT_AC_TRY_DLOPEN_SELF
909
910
911 # AC_LIBTOOL_DLOPEN_SELF
912 # ----------------------
913 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
914 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
915 if test "x$enable_dlopen" != xyes; then
916 enable_dlopen=unknown
917 enable_dlopen_self=unknown
918 enable_dlopen_self_static=unknown
919 else
920 lt_cv_dlopen=no
921 lt_cv_dlopen_libs=
922
923 case $host_os in
924 beos*)
925 lt_cv_dlopen="load_add_on"
926 lt_cv_dlopen_libs=
927 lt_cv_dlopen_self=yes
928 ;;
929
930 mingw* | pw32*)
931 lt_cv_dlopen="LoadLibrary"
932 lt_cv_dlopen_libs=
933 ;;
934
935 cygwin*)
936 lt_cv_dlopen="dlopen"
937 lt_cv_dlopen_libs=
938 ;;
939
940 darwin*)
941 # if libdl is installed we need to link against it
942 AC_CHECK_LIB([dl], [dlopen],
943 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
944 lt_cv_dlopen="dyld"
945 lt_cv_dlopen_libs=
946 lt_cv_dlopen_self=yes
947 ])
948 ;;
949
950 *)
951 AC_CHECK_FUNC([shl_load],
952 [lt_cv_dlopen="shl_load"],
953 [AC_CHECK_LIB([dld], [shl_load],
954 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
955 [AC_CHECK_FUNC([dlopen],
956 [lt_cv_dlopen="dlopen"],
957 [AC_CHECK_LIB([dl], [dlopen],
958 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
959 [AC_CHECK_LIB([svld], [dlopen],
960 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
961 [AC_CHECK_LIB([dld], [dld_link],
962 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
963 ])
964 ])
965 ])
966 ])
967 ])
968 ;;
969 esac
970
971 if test "x$lt_cv_dlopen" != xno; then
972 enable_dlopen=yes
973 else
974 enable_dlopen=no
975 fi
976
977 case $lt_cv_dlopen in
978 dlopen)
979 save_CPPFLAGS="$CPPFLAGS"
980 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
981
982 save_LDFLAGS="$LDFLAGS"
983 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
984
985 save_LIBS="$LIBS"
986 LIBS="$lt_cv_dlopen_libs $LIBS"
987
988 AC_CACHE_CHECK([whether a program can dlopen itself],
989 lt_cv_dlopen_self, [dnl
990 _LT_AC_TRY_DLOPEN_SELF(
991 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
992 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
993 ])
994
995 if test "x$lt_cv_dlopen_self" = xyes; then
996 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
997 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
998 lt_cv_dlopen_self_static, [dnl
999 _LT_AC_TRY_DLOPEN_SELF(
1000 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1001 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1002 ])
1003 fi
1004
1005 CPPFLAGS="$save_CPPFLAGS"
1006 LDFLAGS="$save_LDFLAGS"
1007 LIBS="$save_LIBS"
1008 ;;
1009 esac
1010
1011 case $lt_cv_dlopen_self in
1012 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1013 *) enable_dlopen_self=unknown ;;
1014 esac
1015
1016 case $lt_cv_dlopen_self_static in
1017 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1018 *) enable_dlopen_self_static=unknown ;;
1019 esac
1020 fi
1021 ])# AC_LIBTOOL_DLOPEN_SELF
1022
1023
1024 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1025 # ---------------------------------
1026 # Check to see if options -c and -o are simultaneously supported by compiler
1027 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1028 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1029 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1030 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1031 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1032 $rm -r conftest 2>/dev/null
1033 mkdir conftest
1034 cd conftest
1035 mkdir out
1036 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1037
1038 lt_compiler_flag="-o out/conftest2.$ac_objext"
1039 # Insert the option either (1) after the last *FLAGS variable, or
1040 # (2) before a word containing "conftest.", or (3) at the end.
1041 # Note that $ac_compile itself does not contain backslashes and begins
1042 # with a dollar sign (not a hyphen), so the echo should work correctly.
1043 lt_compile=`echo "$ac_compile" | $SED \
1044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1045 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1046 -e 's:$: $lt_compiler_flag:'`
1047 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1048 (eval "$lt_compile" 2>out/conftest.err)
1049 ac_status=$?
1050 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1051 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1053 then
1054 # The compiler can only warn and ignore the option if not recognized
1055 # So say no if there are warnings
1056 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1059 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1060 fi
1061 fi
1062 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1063 $rm conftest*
1064 # SGI C++ compiler will create directory out/ii_files/ for
1065 # template instantiation
1066 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1067 $rm out/* && rmdir out
1068 cd ..
1069 rmdir conftest
1070 $rm conftest*
1071 ])
1072 ])# AC_LIBTOOL_PROG_CC_C_O
1073
1074
1075 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1076 # -----------------------------------------
1077 # Check to see if we can do hard links to lock some files if needed
1078 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1079 [AC_REQUIRE([_LT_AC_LOCK])dnl
1080
1081 hard_links="nottested"
1082 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1083 # do not overwrite the value of need_locks provided by the user
1084 AC_MSG_CHECKING([if we can lock with hard links])
1085 hard_links=yes
1086 $rm conftest*
1087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1088 touch conftest.a
1089 ln conftest.a conftest.b 2>&5 || hard_links=no
1090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1091 AC_MSG_RESULT([$hard_links])
1092 if test "$hard_links" = no; then
1093 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1094 need_locks=warn
1095 fi
1096 else
1097 need_locks=no
1098 fi
1099 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1100
1101
1102 # AC_LIBTOOL_OBJDIR
1103 # -----------------
1104 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1105 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1106 [rm -f .libs 2>/dev/null
1107 mkdir .libs 2>/dev/null
1108 if test -d .libs; then
1109 lt_cv_objdir=.libs
1110 else
1111 # MS-DOS does not allow filenames that begin with a dot.
1112 lt_cv_objdir=_libs
1113 fi
1114 rmdir .libs 2>/dev/null])
1115 objdir=$lt_cv_objdir
1116 ])# AC_LIBTOOL_OBJDIR
1117
1118
1119 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1120 # ----------------------------------------------
1121 # Check hardcoding attributes.
1122 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1123 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1124 _LT_AC_TAGVAR(hardcode_action, $1)=
1125 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1126 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1127 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1128
1129 # We can hardcode non-existant directories.
1130 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1131 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1132 # have to relink, otherwise we might link with an installed library
1133 # when we should be linking with a yet-to-be-installed one
1134 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1135 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1136 # Linking always hardcodes the temporary library directory.
1137 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1138 else
1139 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1140 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1141 fi
1142 else
1143 # We cannot hardcode anything, or else we can only hardcode existing
1144 # directories.
1145 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1146 fi
1147 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1148
1149 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1150 # Fast installation is not supported
1151 enable_fast_install=no
1152 elif test "$shlibpath_overrides_runpath" = yes ||
1153 test "$enable_shared" = no; then
1154 # Fast installation is not necessary
1155 enable_fast_install=needless
1156 fi
1157 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1158
1159
1160 # AC_LIBTOOL_SYS_LIB_STRIP
1161 # ------------------------
1162 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1163 [striplib=
1164 old_striplib=
1165 AC_MSG_CHECKING([whether stripping libraries is possible])
1166 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1167 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1168 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1169 AC_MSG_RESULT([yes])
1170 else
1171 # FIXME - insert some real tests, host_os isn't really good enough
1172 case $host_os in
1173 darwin*)
1174 if test -n "$STRIP" ; then
1175 striplib="$STRIP -x"
1176 AC_MSG_RESULT([yes])
1177 else
1178 AC_MSG_RESULT([no])
1179 fi
1180 ;;
1181 *)
1182 AC_MSG_RESULT([no])
1183 ;;
1184 esac
1185 fi
1186 ])# AC_LIBTOOL_SYS_LIB_STRIP
1187
1188
1189 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1190 # -----------------------------
1191 # PORTME Fill in your ld.so characteristics
1192 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1193 [AC_MSG_CHECKING([dynamic linker characteristics])
1194 library_names_spec=
1195 libname_spec='lib$name'
1196 soname_spec=
1197 shrext_cmds=".so"
1198 postinstall_cmds=
1199 postuninstall_cmds=
1200 finish_cmds=
1201 finish_eval=
1202 shlibpath_var=
1203 shlibpath_overrides_runpath=unknown
1204 version_type=none
1205 dynamic_linker="$host_os ld.so"
1206 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1207 if test "$GCC" = yes; then
1208 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1209 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1210 # if the path contains ";" then we assume it to be the separator
1211 # otherwise default to the standard path separator (i.e. ":") - it is
1212 # assumed that no part of a normal pathname contains ";" but that should
1213 # okay in the real world where ";" in dirpaths is itself problematic.
1214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1215 else
1216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1217 fi
1218 else
1219 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1220 fi
1221 need_lib_prefix=unknown
1222 hardcode_into_libs=no
1223
1224 # when you set need_version to no, make sure it does not cause -set_version
1225 # flags to be left without arguments
1226 need_version=unknown
1227
1228 case $host_os in
1229 aix3*)
1230 version_type=linux
1231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1232 shlibpath_var=LIBPATH
1233
1234 # AIX 3 has no versioning support, so we append a major version to the name.
1235 soname_spec='${libname}${release}${shared_ext}$major'
1236 ;;
1237
1238 aix4* | aix5*)
1239 version_type=linux
1240 need_lib_prefix=no
1241 need_version=no
1242 hardcode_into_libs=yes
1243 if test "$host_cpu" = ia64; then
1244 # AIX 5 supports IA64
1245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1246 shlibpath_var=LD_LIBRARY_PATH
1247 else
1248 # With GCC up to 2.95.x, collect2 would create an import file
1249 # for dependence libraries. The import file would start with
1250 # the line `#! .'. This would cause the generated library to
1251 # depend on `.', always an invalid library. This was fixed in
1252 # development snapshots of GCC prior to 3.0.
1253 case $host_os in
1254 aix4 | aix4.[[01]] | aix4.[[01]].*)
1255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1256 echo ' yes '
1257 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1258 :
1259 else
1260 can_build_shared=no
1261 fi
1262 ;;
1263 esac
1264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1265 # soname into executable. Probably we can add versioning support to
1266 # collect2, so additional links can be useful in future.
1267 if test "$aix_use_runtimelinking" = yes; then
1268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1269 # instead of lib<name>.a to let people know that these are not
1270 # typical AIX shared libraries.
1271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1272 else
1273 # We preserve .a as extension for shared libraries through AIX4.2
1274 # and later when we are not doing run time linking.
1275 library_names_spec='${libname}${release}.a $libname.a'
1276 soname_spec='${libname}${release}${shared_ext}$major'
1277 fi
1278 shlibpath_var=LIBPATH
1279 fi
1280 ;;
1281
1282 amigaos*)
1283 library_names_spec='$libname.ixlibrary $libname.a'
1284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1285 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'
1286 ;;
1287
1288 beos*)
1289 library_names_spec='${libname}${shared_ext}'
1290 dynamic_linker="$host_os ld.so"
1291 shlibpath_var=LIBRARY_PATH
1292 ;;
1293
1294 bsdi[[45]]*)
1295 version_type=linux
1296 need_version=no
1297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1298 soname_spec='${libname}${release}${shared_ext}$major'
1299 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1300 shlibpath_var=LD_LIBRARY_PATH
1301 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1302 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1303 # the default ld.so.conf also contains /usr/contrib/lib and
1304 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1305 # libtool to hard-code these into programs
1306 ;;
1307
1308 cygwin* | mingw* | pw32*)
1309 version_type=windows
1310 shrext_cmds=".dll"
1311 need_version=no
1312 need_lib_prefix=no
1313
1314 case $GCC,$host_os in
1315 yes,cygwin* | yes,mingw* | yes,pw32*)
1316 library_names_spec='$libname.dll.a'
1317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1318 postinstall_cmds='base_file=`basename \${file}`~
1319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1320 dldir=$destdir/`dirname \$dlpath`~
1321 test -d \$dldir || mkdir -p \$dldir~
1322 $install_prog $dir/$dlname \$dldir/$dlname~
1323 chmod a+x \$dldir/$dlname'
1324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1325 dlpath=$dir/\$dldll~
1326 $rm \$dlpath'
1327 shlibpath_overrides_runpath=yes
1328
1329 case $host_os in
1330 cygwin*)
1331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1334 ;;
1335 mingw*)
1336 # MinGW DLLs use traditional 'lib' prefix
1337 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1339 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1340 # It is most probably a Windows format PATH printed by
1341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1342 # path with ; separators, and with drive letters. We can handle the
1343 # drive letters (cygwin fileutils understands them), so leave them,
1344 # especially as we might pass files found there to a mingw objdump,
1345 # which wouldn't understand a cygwinified path. Ahh.
1346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1347 else
1348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1349 fi
1350 ;;
1351 pw32*)
1352 # pw32 DLLs use 'pw' prefix rather than 'lib'
1353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1354 ;;
1355 esac
1356 ;;
1357
1358 *)
1359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1360 ;;
1361 esac
1362 dynamic_linker='Win32 ld.exe'
1363 # FIXME: first we should search . and the directory the executable is in
1364 shlibpath_var=PATH
1365 ;;
1366
1367 darwin* | rhapsody*)
1368 dynamic_linker="$host_os dyld"
1369 version_type=darwin
1370 need_lib_prefix=no
1371 need_version=no
1372 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1373 soname_spec='${libname}${release}${major}$shared_ext'
1374 shlibpath_overrides_runpath=yes
1375 shlibpath_var=DYLD_LIBRARY_PATH
1376 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1377 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1378 if test "$GCC" = yes; then
1379 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"`
1380 else
1381 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1382 fi
1383 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1384 ;;
1385
1386 dgux*)
1387 version_type=linux
1388 need_lib_prefix=no
1389 need_version=no
1390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1391 soname_spec='${libname}${release}${shared_ext}$major'
1392 shlibpath_var=LD_LIBRARY_PATH
1393 ;;
1394
1395 freebsd1*)
1396 dynamic_linker=no
1397 ;;
1398
1399 freebsd* | dragonfly*)
1400 # DragonFly does not have aout. When/if they implement a new
1401 # versioning mechanism, adjust this.
1402 if test -x /usr/bin/objformat; then
1403 objformat=`/usr/bin/objformat`
1404 else
1405 case $host_os in
1406 freebsd[[123]]*) objformat=aout ;;
1407 *) objformat=elf ;;
1408 esac
1409 fi
1410 version_type=freebsd-$objformat
1411 case $version_type in
1412 freebsd-elf*)
1413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1414 need_version=no
1415 need_lib_prefix=no
1416 ;;
1417 freebsd-*)
1418 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1419 need_version=yes
1420 ;;
1421 esac
1422 shlibpath_var=LD_LIBRARY_PATH
1423 case $host_os in
1424 freebsd2*)
1425 shlibpath_overrides_runpath=yes
1426 ;;
1427 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1428 shlibpath_overrides_runpath=yes
1429 hardcode_into_libs=yes
1430 ;;
1431 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1432 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1433 shlibpath_overrides_runpath=no
1434 hardcode_into_libs=yes
1435 ;;
1436 freebsd*) # from 4.6 on
1437 shlibpath_overrides_runpath=yes
1438 hardcode_into_libs=yes
1439 ;;
1440 esac
1441 ;;
1442
1443 gnu*)
1444 version_type=linux
1445 need_lib_prefix=no
1446 need_version=no
1447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1448 soname_spec='${libname}${release}${shared_ext}$major'
1449 shlibpath_var=LD_LIBRARY_PATH
1450 hardcode_into_libs=yes
1451 ;;
1452
1453 hpux9* | hpux10* | hpux11*)
1454 # Give a soname corresponding to the major version so that dld.sl refuses to
1455 # link against other versions.
1456 version_type=sunos
1457 need_lib_prefix=no
1458 need_version=no
1459 case $host_cpu in
1460 ia64*)
1461 shrext_cmds='.so'
1462 hardcode_into_libs=yes
1463 dynamic_linker="$host_os dld.so"
1464 shlibpath_var=LD_LIBRARY_PATH
1465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
1469 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1470 else
1471 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1472 fi
1473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1474 ;;
1475 hppa*64*)
1476 shrext_cmds='.sl'
1477 hardcode_into_libs=yes
1478 dynamic_linker="$host_os dld.sl"
1479 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1482 soname_spec='${libname}${release}${shared_ext}$major'
1483 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1485 ;;
1486 *)
1487 shrext_cmds='.sl'
1488 dynamic_linker="$host_os dld.sl"
1489 shlibpath_var=SHLIB_PATH
1490 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1492 soname_spec='${libname}${release}${shared_ext}$major'
1493 ;;
1494 esac
1495 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1496 postinstall_cmds='chmod 555 $lib'
1497 ;;
1498
1499 interix3*)
1500 version_type=linux
1501 need_lib_prefix=no
1502 need_version=no
1503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1504 soname_spec='${libname}${release}${shared_ext}$major'
1505 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1506 shlibpath_var=LD_LIBRARY_PATH
1507 shlibpath_overrides_runpath=no
1508 hardcode_into_libs=yes
1509 ;;
1510
1511 irix5* | irix6* | nonstopux*)
1512 case $host_os in
1513 nonstopux*) version_type=nonstopux ;;
1514 *)
1515 if test "$lt_cv_prog_gnu_ld" = yes; then
1516 version_type=linux
1517 else
1518 version_type=irix
1519 fi ;;
1520 esac
1521 need_lib_prefix=no
1522 need_version=no
1523 soname_spec='${libname}${release}${shared_ext}$major'
1524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1525 case $host_os in
1526 irix5* | nonstopux*)
1527 libsuff= shlibsuff=
1528 ;;
1529 *)
1530 case $LD in # libtool.m4 will add one of these switches to LD
1531 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1532 libsuff= shlibsuff= libmagic=32-bit;;
1533 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1534 libsuff=32 shlibsuff=N32 libmagic=N32;;
1535 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1536 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1537 *) libsuff= shlibsuff= libmagic=never-match;;
1538 esac
1539 ;;
1540 esac
1541 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1542 shlibpath_overrides_runpath=no
1543 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1544 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1545 hardcode_into_libs=yes
1546 ;;
1547
1548 # No shared lib support for Linux oldld, aout, or coff.
1549 linux*oldld* | linux*aout* | linux*coff*)
1550 dynamic_linker=no
1551 ;;
1552
1553 # This must be Linux ELF.
1554 linux* | k*bsd*-gnu)
1555 version_type=linux
1556 need_lib_prefix=no
1557 need_version=no
1558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1559 soname_spec='${libname}${release}${shared_ext}$major'
1560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1561 shlibpath_var=LD_LIBRARY_PATH
1562 shlibpath_overrides_runpath=no
1563 # This implies no fast_install, which is unacceptable.
1564 # Some rework will be needed to allow for fast_install
1565 # before this can be enabled.
1566 hardcode_into_libs=yes
1567
1568 # Append ld.so.conf contents to the search path
1569 if test -f /etc/ld.so.conf; then
1570 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1571 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1572 fi
1573
1574 # We used to test for /lib/ld.so.1 and disable shared libraries on
1575 # powerpc, because MkLinux only supported shared libraries with the
1576 # GNU dynamic linker. Since this was broken with cross compilers,
1577 # most powerpc-linux boxes support dynamic linking these days and
1578 # people can always --disable-shared, the test was removed, and we
1579 # assume the GNU/Linux dynamic linker is in use.
1580 dynamic_linker='GNU/Linux ld.so'
1581 ;;
1582
1583 netbsdelf*-gnu)
1584 version_type=linux
1585 need_lib_prefix=no
1586 need_version=no
1587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1588 soname_spec='${libname}${release}${shared_ext}$major'
1589 shlibpath_var=LD_LIBRARY_PATH
1590 shlibpath_overrides_runpath=no
1591 hardcode_into_libs=yes
1592 dynamic_linker='NetBSD ld.elf_so'
1593 ;;
1594
1595 netbsd*)
1596 version_type=sunos
1597 need_lib_prefix=no
1598 need_version=no
1599 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1602 dynamic_linker='NetBSD (a.out) ld.so'
1603 else
1604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1605 soname_spec='${libname}${release}${shared_ext}$major'
1606 dynamic_linker='NetBSD ld.elf_so'
1607 fi
1608 shlibpath_var=LD_LIBRARY_PATH
1609 shlibpath_overrides_runpath=yes
1610 hardcode_into_libs=yes
1611 ;;
1612
1613 newsos6)
1614 version_type=linux
1615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1616 shlibpath_var=LD_LIBRARY_PATH
1617 shlibpath_overrides_runpath=yes
1618 ;;
1619
1620 nto-qnx*)
1621 version_type=linux
1622 need_lib_prefix=no
1623 need_version=no
1624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1625 soname_spec='${libname}${release}${shared_ext}$major'
1626 shlibpath_var=LD_LIBRARY_PATH
1627 shlibpath_overrides_runpath=yes
1628 ;;
1629
1630 openbsd*)
1631 version_type=sunos
1632 sys_lib_dlsearch_path_spec="/usr/lib"
1633 need_lib_prefix=no
1634 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1635 case $host_os in
1636 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1637 *) need_version=no ;;
1638 esac
1639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1641 shlibpath_var=LD_LIBRARY_PATH
1642 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1643 case $host_os in
1644 openbsd2.[[89]] | openbsd2.[[89]].*)
1645 shlibpath_overrides_runpath=no
1646 ;;
1647 *)
1648 shlibpath_overrides_runpath=yes
1649 ;;
1650 esac
1651 else
1652 shlibpath_overrides_runpath=yes
1653 fi
1654 ;;
1655
1656 os2*)
1657 libname_spec='$name'
1658 shrext_cmds=".dll"
1659 need_lib_prefix=no
1660 library_names_spec='$libname${shared_ext} $libname.a'
1661 dynamic_linker='OS/2 ld.exe'
1662 shlibpath_var=LIBPATH
1663 ;;
1664
1665 osf3* | osf4* | osf5*)
1666 version_type=osf
1667 need_lib_prefix=no
1668 need_version=no
1669 soname_spec='${libname}${release}${shared_ext}$major'
1670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1671 shlibpath_var=LD_LIBRARY_PATH
1672 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1673 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1674 ;;
1675
1676 solaris*)
1677 version_type=linux
1678 need_lib_prefix=no
1679 need_version=no
1680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1681 soname_spec='${libname}${release}${shared_ext}$major'
1682 shlibpath_var=LD_LIBRARY_PATH
1683 shlibpath_overrides_runpath=yes
1684 hardcode_into_libs=yes
1685 # ldd complains unless libraries are executable
1686 postinstall_cmds='chmod +x $lib'
1687 ;;
1688
1689 sunos4*)
1690 version_type=sunos
1691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1692 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1693 shlibpath_var=LD_LIBRARY_PATH
1694 shlibpath_overrides_runpath=yes
1695 if test "$with_gnu_ld" = yes; then
1696 need_lib_prefix=no
1697 fi
1698 need_version=yes
1699 ;;
1700
1701 sysv4 | sysv4.3*)
1702 version_type=linux
1703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1704 soname_spec='${libname}${release}${shared_ext}$major'
1705 shlibpath_var=LD_LIBRARY_PATH
1706 case $host_vendor in
1707 sni)
1708 shlibpath_overrides_runpath=no
1709 need_lib_prefix=no
1710 export_dynamic_flag_spec='${wl}-Blargedynsym'
1711 runpath_var=LD_RUN_PATH
1712 ;;
1713 siemens)
1714 need_lib_prefix=no
1715 ;;
1716 motorola)
1717 need_lib_prefix=no
1718 need_version=no
1719 shlibpath_overrides_runpath=no
1720 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1721 ;;
1722 esac
1723 ;;
1724
1725 sysv4*MP*)
1726 if test -d /usr/nec ;then
1727 version_type=linux
1728 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1729 soname_spec='$libname${shared_ext}.$major'
1730 shlibpath_var=LD_LIBRARY_PATH
1731 fi
1732 ;;
1733
1734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1735 version_type=freebsd-elf
1736 need_lib_prefix=no
1737 need_version=no
1738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1739 soname_spec='${libname}${release}${shared_ext}$major'
1740 shlibpath_var=LD_LIBRARY_PATH
1741 hardcode_into_libs=yes
1742 if test "$with_gnu_ld" = yes; then
1743 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1744 shlibpath_overrides_runpath=no
1745 else
1746 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1747 shlibpath_overrides_runpath=yes
1748 case $host_os in
1749 sco3.2v5*)
1750 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1751 ;;
1752 esac
1753 fi
1754 sys_lib_dlsearch_path_spec='/usr/lib'
1755 ;;
1756
1757 uts4*)
1758 version_type=linux
1759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1760 soname_spec='${libname}${release}${shared_ext}$major'
1761 shlibpath_var=LD_LIBRARY_PATH
1762 ;;
1763
1764 *)
1765 dynamic_linker=no
1766 ;;
1767 esac
1768 AC_MSG_RESULT([$dynamic_linker])
1769 test "$dynamic_linker" = no && can_build_shared=no
1770
1771 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1772 if test "$GCC" = yes; then
1773 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1774 fi
1775 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1776
1777
1778 # _LT_AC_TAGCONFIG
1779 # ----------------
1780 AC_DEFUN([_LT_AC_TAGCONFIG],
1781 [AC_ARG_WITH([tags],
1782 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1783 [include additional configurations @<:@automatic@:>@])],
1784 [tagnames="$withval"])
1785
1786 if test -f "$ltmain" && test -n "$tagnames"; then
1787 if test ! -f "${ofile}"; then
1788 AC_MSG_WARN([output file `$ofile' does not exist])
1789 fi
1790
1791 if test -z "$LTCC"; then
1792 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1793 if test -z "$LTCC"; then
1794 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1795 else
1796 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1797 fi
1798 fi
1799 if test -z "$LTCFLAGS"; then
1800 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1801 fi
1802
1803 # Extract list of available tagged configurations in $ofile.
1804 # Note that this assumes the entire list is on one line.
1805 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1806
1807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1808 for tagname in $tagnames; do
1809 IFS="$lt_save_ifs"
1810 # Check whether tagname contains only valid characters
1811 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1812 "") ;;
1813 *) AC_MSG_ERROR([invalid tag name: $tagname])
1814 ;;
1815 esac
1816
1817 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1818 then
1819 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1820 fi
1821
1822 # Update the list of available tags.
1823 if test -n "$tagname"; then
1824 echo appending configuration tag \"$tagname\" to $ofile
1825
1826 case $tagname in
1827 CXX)
1828 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1829 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1830 (test "X$CXX" != "Xg++"))) ; then
1831 AC_LIBTOOL_LANG_CXX_CONFIG
1832 else
1833 tagname=""
1834 fi
1835 ;;
1836
1837 F77)
1838 if test -n "$F77" && test "X$F77" != "Xno"; then
1839 AC_LIBTOOL_LANG_F77_CONFIG
1840 else
1841 tagname=""
1842 fi
1843 ;;
1844
1845 GCJ)
1846 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1847 AC_LIBTOOL_LANG_GCJ_CONFIG
1848 else
1849 tagname=""
1850 fi
1851 ;;
1852
1853 RC)
1854 AC_LIBTOOL_LANG_RC_CONFIG
1855 ;;
1856
1857 *)
1858 AC_MSG_ERROR([Unsupported tag name: $tagname])
1859 ;;
1860 esac
1861
1862 # Append the new tag name to the list of available tags.
1863 if test -n "$tagname" ; then
1864 available_tags="$available_tags $tagname"
1865 fi
1866 fi
1867 done
1868 IFS="$lt_save_ifs"
1869
1870 # Now substitute the updated list of available tags.
1871 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1872 mv "${ofile}T" "$ofile"
1873 chmod +x "$ofile"
1874 else
1875 rm -f "${ofile}T"
1876 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1877 fi
1878 fi
1879 ])# _LT_AC_TAGCONFIG
1880
1881
1882 # AC_LIBTOOL_DLOPEN
1883 # -----------------
1884 # enable checks for dlopen support
1885 AC_DEFUN([AC_LIBTOOL_DLOPEN],
1886 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1887 ])# AC_LIBTOOL_DLOPEN
1888
1889
1890 # AC_LIBTOOL_WIN32_DLL
1891 # --------------------
1892 # declare package support for building win32 DLLs
1893 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1894 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1895 ])# AC_LIBTOOL_WIN32_DLL
1896
1897
1898 # AC_ENABLE_SHARED([DEFAULT])
1899 # ---------------------------
1900 # implement the --enable-shared flag
1901 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1902 AC_DEFUN([AC_ENABLE_SHARED],
1903 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1904 AC_ARG_ENABLE([shared],
1905 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1906 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1907 [p=${PACKAGE-default}
1908 case $enableval in
1909 yes) enable_shared=yes ;;
1910 no) enable_shared=no ;;
1911 *)
1912 enable_shared=no
1913 # Look at the argument we got. We use all the common list separators.
1914 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1915 for pkg in $enableval; do
1916 IFS="$lt_save_ifs"
1917 if test "X$pkg" = "X$p"; then
1918 enable_shared=yes
1919 fi
1920 done
1921 IFS="$lt_save_ifs"
1922 ;;
1923 esac],
1924 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1925 ])# AC_ENABLE_SHARED
1926
1927
1928 # AC_DISABLE_SHARED
1929 # -----------------
1930 # set the default shared flag to --disable-shared
1931 AC_DEFUN([AC_DISABLE_SHARED],
1932 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1933 AC_ENABLE_SHARED(no)
1934 ])# AC_DISABLE_SHARED
1935
1936
1937 # AC_ENABLE_STATIC([DEFAULT])
1938 # ---------------------------
1939 # implement the --enable-static flag
1940 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1941 AC_DEFUN([AC_ENABLE_STATIC],
1942 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1943 AC_ARG_ENABLE([static],
1944 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1945 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1946 [p=${PACKAGE-default}
1947 case $enableval in
1948 yes) enable_static=yes ;;
1949 no) enable_static=no ;;
1950 *)
1951 enable_static=no
1952 # Look at the argument we got. We use all the common list separators.
1953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1954 for pkg in $enableval; do
1955 IFS="$lt_save_ifs"
1956 if test "X$pkg" = "X$p"; then
1957 enable_static=yes
1958 fi
1959 done
1960 IFS="$lt_save_ifs"
1961 ;;
1962 esac],
1963 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
1964 ])# AC_ENABLE_STATIC
1965
1966
1967 # AC_DISABLE_STATIC
1968 # -----------------
1969 # set the default static flag to --disable-static
1970 AC_DEFUN([AC_DISABLE_STATIC],
1971 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1972 AC_ENABLE_STATIC(no)
1973 ])# AC_DISABLE_STATIC
1974
1975
1976 # AC_ENABLE_FAST_INSTALL([DEFAULT])
1977 # ---------------------------------
1978 # implement the --enable-fast-install flag
1979 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1980 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1981 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1982 AC_ARG_ENABLE([fast-install],
1983 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1984 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
1985 [p=${PACKAGE-default}
1986 case $enableval in
1987 yes) enable_fast_install=yes ;;
1988 no) enable_fast_install=no ;;
1989 *)
1990 enable_fast_install=no
1991 # Look at the argument we got. We use all the common list separators.
1992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1993 for pkg in $enableval; do
1994 IFS="$lt_save_ifs"
1995 if test "X$pkg" = "X$p"; then
1996 enable_fast_install=yes
1997 fi
1998 done
1999 IFS="$lt_save_ifs"
2000 ;;
2001 esac],
2002 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2003 ])# AC_ENABLE_FAST_INSTALL
2004
2005
2006 # AC_DISABLE_FAST_INSTALL
2007 # -----------------------
2008 # set the default to --disable-fast-install
2009 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2010 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2011 AC_ENABLE_FAST_INSTALL(no)
2012 ])# AC_DISABLE_FAST_INSTALL
2013
2014
2015 # AC_LIBTOOL_PICMODE([MODE])
2016 # --------------------------
2017 # implement the --with-pic flag
2018 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2019 AC_DEFUN([AC_LIBTOOL_PICMODE],
2020 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2021 pic_mode=ifelse($#,1,$1,default)
2022 ])# AC_LIBTOOL_PICMODE
2023
2024
2025 # AC_PROG_EGREP
2026 # -------------
2027 # This is predefined starting with Autoconf 2.54, so this conditional
2028 # definition can be removed once we require Autoconf 2.54 or later.
2029 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2030 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2031 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2032 then ac_cv_prog_egrep='grep -E'
2033 else ac_cv_prog_egrep='egrep'
2034 fi])
2035 EGREP=$ac_cv_prog_egrep
2036 AC_SUBST([EGREP])
2037 ])])
2038
2039
2040 # AC_PATH_TOOL_PREFIX
2041 # -------------------
2042 # find a file program which can recognise shared library
2043 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2044 [AC_REQUIRE([AC_PROG_EGREP])dnl
2045 AC_MSG_CHECKING([for $1])
2046 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2047 [case $MAGIC_CMD in
2048 [[\\/*] | ?:[\\/]*])
2049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2050 ;;
2051 *)
2052 lt_save_MAGIC_CMD="$MAGIC_CMD"
2053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2054 dnl $ac_dummy forces splitting on constant user-supplied paths.
2055 dnl POSIX.2 word splitting is done only on the output of word expansions,
2056 dnl not every word. This closes a longstanding sh security hole.
2057 ac_dummy="ifelse([$2], , $PATH, [$2])"
2058 for ac_dir in $ac_dummy; do
2059 IFS="$lt_save_ifs"
2060 test -z "$ac_dir" && ac_dir=.
2061 if test -f $ac_dir/$1; then
2062 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2063 if test -n "$file_magic_test_file"; then
2064 case $deplibs_check_method in
2065 "file_magic "*)
2066 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2068 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2069 $EGREP "$file_magic_regex" > /dev/null; then
2070 :
2071 else
2072 cat <<EOF 1>&2
2073
2074 *** Warning: the command libtool uses to detect shared libraries,
2075 *** $file_magic_cmd, produces output that libtool cannot recognize.
2076 *** The result is that libtool may fail to recognize shared libraries
2077 *** as such. This will affect the creation of libtool libraries that
2078 *** depend on shared libraries, but programs linked with such libtool
2079 *** libraries will work regardless of this problem. Nevertheless, you
2080 *** may want to report the problem to your system manager and/or to
2081 *** bug-libtool@gnu.org
2082
2083 EOF
2084 fi ;;
2085 esac
2086 fi
2087 break
2088 fi
2089 done
2090 IFS="$lt_save_ifs"
2091 MAGIC_CMD="$lt_save_MAGIC_CMD"
2092 ;;
2093 esac])
2094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2095 if test -n "$MAGIC_CMD"; then
2096 AC_MSG_RESULT($MAGIC_CMD)
2097 else
2098 AC_MSG_RESULT(no)
2099 fi
2100 ])# AC_PATH_TOOL_PREFIX
2101
2102
2103 # AC_PATH_MAGIC
2104 # -------------
2105 # find a file program which can recognise a shared library
2106 AC_DEFUN([AC_PATH_MAGIC],
2107 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2108 if test -z "$lt_cv_path_MAGIC_CMD"; then
2109 if test -n "$ac_tool_prefix"; then
2110 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2111 else
2112 MAGIC_CMD=:
2113 fi
2114 fi
2115 ])# AC_PATH_MAGIC
2116
2117
2118 # AC_PROG_LD
2119 # ----------
2120 # find the pathname to the GNU or non-GNU linker
2121 AC_DEFUN([AC_PROG_LD],
2122 [AC_ARG_WITH([gnu-ld],
2123 [AC_HELP_STRING([--with-gnu-ld],
2124 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2125 [test "$withval" = no || with_gnu_ld=yes],
2126 [with_gnu_ld=no])
2127 AC_REQUIRE([LT_AC_PROG_SED])dnl
2128 AC_REQUIRE([AC_PROG_CC])dnl
2129 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2130 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2131 ac_prog=ld
2132 if test "$GCC" = yes; then
2133 # Check if gcc -print-prog-name=ld gives a path.
2134 AC_MSG_CHECKING([for ld used by $CC])
2135 case $host in
2136 *-*-mingw*)
2137 # gcc leaves a trailing carriage return which upsets mingw
2138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2139 *)
2140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2141 esac
2142 case $ac_prog in
2143 # Accept absolute paths.
2144 [[\\/]]* | ?:[[\\/]]*)
2145 re_direlt='/[[^/]][[^/]]*/\.\./'
2146 # Canonicalize the pathname of ld
2147 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2149 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2150 done
2151 test -z "$LD" && LD="$ac_prog"
2152 ;;
2153 "")
2154 # If it fails, then pretend we aren't using GCC.
2155 ac_prog=ld
2156 ;;
2157 *)
2158 # If it is relative, then search for the first ld in PATH.
2159 with_gnu_ld=unknown
2160 ;;
2161 esac
2162 elif test "$with_gnu_ld" = yes; then
2163 AC_MSG_CHECKING([for GNU ld])
2164 else
2165 AC_MSG_CHECKING([for non-GNU ld])
2166 fi
2167 AC_CACHE_VAL(lt_cv_path_LD,
2168 [if test -z "$LD"; then
2169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2170 for ac_dir in $PATH; do
2171 IFS="$lt_save_ifs"
2172 test -z "$ac_dir" && ac_dir=.
2173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2174 lt_cv_path_LD="$ac_dir/$ac_prog"
2175 # Check to see if the program is GNU ld. I'd rather use --version,
2176 # but apparently some variants of GNU ld only accept -v.
2177 # Break only if it was the GNU/non-GNU ld that we prefer.
2178 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2179 *GNU* | *'with BFD'*)
2180 test "$with_gnu_ld" != no && break
2181 ;;
2182 *)
2183 test "$with_gnu_ld" != yes && break
2184 ;;
2185 esac
2186 fi
2187 done
2188 IFS="$lt_save_ifs"
2189 else
2190 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2191 fi])
2192 LD="$lt_cv_path_LD"
2193 if test -n "$LD"; then
2194 AC_MSG_RESULT($LD)
2195 else
2196 AC_MSG_RESULT(no)
2197 fi
2198 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2199 AC_PROG_LD_GNU
2200 ])# AC_PROG_LD
2201
2202
2203 # AC_PROG_LD_GNU
2204 # --------------
2205 AC_DEFUN([AC_PROG_LD_GNU],
2206 [AC_REQUIRE([AC_PROG_EGREP])dnl
2207 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2208 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2209 case `$LD -v 2>&1 </dev/null` in
2210 *GNU* | *'with BFD'*)
2211 lt_cv_prog_gnu_ld=yes
2212 ;;
2213 *)
2214 lt_cv_prog_gnu_ld=no
2215 ;;
2216 esac])
2217 with_gnu_ld=$lt_cv_prog_gnu_ld
2218 ])# AC_PROG_LD_GNU
2219
2220
2221 # AC_PROG_LD_RELOAD_FLAG
2222 # ----------------------
2223 # find reload flag for linker
2224 # -- PORTME Some linkers may need a different reload flag.
2225 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2226 [AC_CACHE_CHECK([for $LD option to reload object files],
2227 lt_cv_ld_reload_flag,
2228 [lt_cv_ld_reload_flag='-r'])
2229 reload_flag=$lt_cv_ld_reload_flag
2230 case $reload_flag in
2231 "" | " "*) ;;
2232 *) reload_flag=" $reload_flag" ;;
2233 esac
2234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2235 case $host_os in
2236 darwin*)
2237 if test "$GCC" = yes; then
2238 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2239 else
2240 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2241 fi
2242 ;;
2243 esac
2244 ])# AC_PROG_LD_RELOAD_FLAG
2245
2246
2247 # AC_DEPLIBS_CHECK_METHOD
2248 # -----------------------
2249 # how to check for library dependencies
2250 # -- PORTME fill in with the dynamic library characteristics
2251 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2252 [AC_CACHE_CHECK([how to recognise dependent libraries],
2253 lt_cv_deplibs_check_method,
2254 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2255 lt_cv_file_magic_test_file=
2256 lt_cv_deplibs_check_method='unknown'
2257 # Need to set the preceding variable on all platforms that support
2258 # interlibrary dependencies.
2259 # 'none' -- dependencies not supported.
2260 # `unknown' -- same as none, but documents that we really don't know.
2261 # 'pass_all' -- all dependencies passed with no checks.
2262 # 'test_compile' -- check by making test program.
2263 # 'file_magic [[regex]]' -- check by looking for files in library path
2264 # which responds to the $file_magic_cmd with a given extended regex.
2265 # If you have `file' or equivalent on your system and you're not sure
2266 # whether `pass_all' will *always* work, you probably want this one.
2267
2268 case $host_os in
2269 aix4* | aix5*)
2270 lt_cv_deplibs_check_method=pass_all
2271 ;;
2272
2273 beos*)
2274 lt_cv_deplibs_check_method=pass_all
2275 ;;
2276
2277 bsdi[[45]]*)
2278 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2279 lt_cv_file_magic_cmd='/usr/bin/file -L'
2280 lt_cv_file_magic_test_file=/shlib/libc.so
2281 ;;
2282
2283 cygwin*)
2284 # func_win32_libid is a shell function defined in ltmain.sh
2285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2286 lt_cv_file_magic_cmd='func_win32_libid'
2287 ;;
2288
2289 mingw* | pw32*)
2290 # Base MSYS/MinGW do not provide the 'file' command needed by
2291 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2292 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2293 lt_cv_file_magic_cmd='$OBJDUMP -f'
2294 ;;
2295
2296 darwin* | rhapsody*)
2297 lt_cv_deplibs_check_method=pass_all
2298 ;;
2299
2300 freebsd* | dragonfly*)
2301 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2302 case $host_cpu in
2303 i*86 )
2304 # Not sure whether the presence of OpenBSD here was a mistake.
2305 # Let's accept both of them until this is cleared up.
2306 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2307 lt_cv_file_magic_cmd=/usr/bin/file
2308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2309 ;;
2310 esac
2311 else
2312 lt_cv_deplibs_check_method=pass_all
2313 fi
2314 ;;
2315
2316 gnu*)
2317 lt_cv_deplibs_check_method=pass_all
2318 ;;
2319
2320 hpux10.20* | hpux11*)
2321 lt_cv_file_magic_cmd=/usr/bin/file
2322 case $host_cpu in
2323 ia64*)
2324 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2325 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2326 ;;
2327 hppa*64*)
2328 [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]']
2329 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2330 ;;
2331 *)
2332 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2333 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2334 ;;
2335 esac
2336 ;;
2337
2338 interix3*)
2339 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2340 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2341 ;;
2342
2343 irix5* | irix6* | nonstopux*)
2344 case $LD in
2345 *-32|*"-32 ") libmagic=32-bit;;
2346 *-n32|*"-n32 ") libmagic=N32;;
2347 *-64|*"-64 ") libmagic=64-bit;;
2348 *) libmagic=never-match;;
2349 esac
2350 lt_cv_deplibs_check_method=pass_all
2351 ;;
2352
2353 # This must be Linux ELF.
2354 linux* | k*bsd*-gnu)
2355 lt_cv_deplibs_check_method=pass_all
2356 ;;
2357
2358 netbsd* | netbsdelf*-gnu)
2359 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2360 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2361 else
2362 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2363 fi
2364 ;;
2365
2366 newos6*)
2367 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2368 lt_cv_file_magic_cmd=/usr/bin/file
2369 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2370 ;;
2371
2372 nto-qnx*)
2373 lt_cv_deplibs_check_method=unknown
2374 ;;
2375
2376 openbsd*)
2377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2378 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2379 else
2380 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2381 fi
2382 ;;
2383
2384 osf3* | osf4* | osf5*)
2385 lt_cv_deplibs_check_method=pass_all
2386 ;;
2387
2388 solaris*)
2389 lt_cv_deplibs_check_method=pass_all
2390 ;;
2391
2392 sysv4 | sysv4.3*)
2393 case $host_vendor in
2394 motorola)
2395 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]]'
2396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2397 ;;
2398 ncr)
2399 lt_cv_deplibs_check_method=pass_all
2400 ;;
2401 sequent)
2402 lt_cv_file_magic_cmd='/bin/file'
2403 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2404 ;;
2405 sni)
2406 lt_cv_file_magic_cmd='/bin/file'
2407 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2408 lt_cv_file_magic_test_file=/lib/libc.so
2409 ;;
2410 siemens)
2411 lt_cv_deplibs_check_method=pass_all
2412 ;;
2413 pc)
2414 lt_cv_deplibs_check_method=pass_all
2415 ;;
2416 esac
2417 ;;
2418
2419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2420 lt_cv_deplibs_check_method=pass_all
2421 ;;
2422 esac
2423 ])
2424 file_magic_cmd=$lt_cv_file_magic_cmd
2425 deplibs_check_method=$lt_cv_deplibs_check_method
2426 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2427 ])# AC_DEPLIBS_CHECK_METHOD
2428
2429
2430 # AC_PROG_NM
2431 # ----------
2432 # find the pathname to a BSD-compatible name lister
2433 AC_DEFUN([AC_PROG_NM],
2434 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2435 [if test -n "$NM"; then
2436 # Let the user override the test.
2437 lt_cv_path_NM="$NM"
2438 else
2439 lt_nm_to_check="${ac_tool_prefix}nm"
2440 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2441 lt_nm_to_check="$lt_nm_to_check nm"
2442 fi
2443 for lt_tmp_nm in $lt_nm_to_check; do
2444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2445 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2446 IFS="$lt_save_ifs"
2447 test -z "$ac_dir" && ac_dir=.
2448 tmp_nm="$ac_dir/$lt_tmp_nm"
2449 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2450 # Check to see if the nm accepts a BSD-compat flag.
2451 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2452 # nm: unknown option "B" ignored
2453 # Tru64's nm complains that /dev/null is an invalid object file
2454 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2455 */dev/null* | *'Invalid file or object type'*)
2456 lt_cv_path_NM="$tmp_nm -B"
2457 break
2458 ;;
2459 *)
2460 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2461 */dev/null*)
2462 lt_cv_path_NM="$tmp_nm -p"
2463 break
2464 ;;
2465 *)
2466 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2467 continue # so that we can try to find one that supports BSD flags
2468 ;;
2469 esac
2470 ;;
2471 esac
2472 fi
2473 done
2474 IFS="$lt_save_ifs"
2475 done
2476 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2477 fi])
2478 NM="$lt_cv_path_NM"
2479 ])# AC_PROG_NM
2480
2481
2482 # AC_CHECK_LIBM
2483 # -------------
2484 # check for math library
2485 AC_DEFUN([AC_CHECK_LIBM],
2486 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2487 LIBM=
2488 case $host in
2489 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2490 # These system don't have libm, or don't need it
2491 ;;
2492 *-ncr-sysv4.3*)
2493 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2494 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2495 ;;
2496 *)
2497 AC_CHECK_LIB(m, cos, LIBM="-lm")
2498 ;;
2499 esac
2500 ])# AC_CHECK_LIBM
2501
2502
2503 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2504 # -----------------------------------
2505 # sets LIBLTDL to the link flags for the libltdl convenience library and
2506 # LTDLINCL to the include flags for the libltdl header and adds
2507 # --enable-ltdl-convenience to the configure arguments. Note that
2508 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2509 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2510 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2511 # (note the single quotes!). If your package is not flat and you're not
2512 # using automake, define top_builddir and top_srcdir appropriately in
2513 # the Makefiles.
2514 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2515 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2516 case $enable_ltdl_convenience in
2517 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2518 "") enable_ltdl_convenience=yes
2519 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2520 esac
2521 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2522 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2523 # For backwards non-gettext consistent compatibility...
2524 INCLTDL="$LTDLINCL"
2525 ])# AC_LIBLTDL_CONVENIENCE
2526
2527
2528 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2529 # -----------------------------------
2530 # sets LIBLTDL to the link flags for the libltdl installable library and
2531 # LTDLINCL to the include flags for the libltdl header and adds
2532 # --enable-ltdl-install to the configure arguments. Note that
2533 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2534 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2535 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2536 # '${top_srcdir}/' (note the single quotes!). If your package is not
2537 # flat and you're not using automake, define top_builddir and top_srcdir
2538 # appropriately in the Makefiles.
2539 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2540 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2541 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2542 AC_CHECK_LIB(ltdl, lt_dlinit,
2543 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2544 [if test x"$enable_ltdl_install" = xno; then
2545 AC_MSG_WARN([libltdl not installed, but installation disabled])
2546 else
2547 enable_ltdl_install=yes
2548 fi
2549 ])
2550 if test x"$enable_ltdl_install" = x"yes"; then
2551 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2552 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2553 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2554 else
2555 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2556 LIBLTDL="-lltdl"
2557 LTDLINCL=
2558 fi
2559 # For backwards non-gettext consistent compatibility...
2560 INCLTDL="$LTDLINCL"
2561 ])# AC_LIBLTDL_INSTALLABLE
2562
2563
2564 # AC_LIBTOOL_CXX
2565 # --------------
2566 # enable support for C++ libraries
2567 AC_DEFUN([AC_LIBTOOL_CXX],
2568 [AC_REQUIRE([_LT_AC_LANG_CXX])
2569 ])# AC_LIBTOOL_CXX
2570
2571
2572 # _LT_AC_LANG_CXX
2573 # ---------------
2574 AC_DEFUN([_LT_AC_LANG_CXX],
2575 [AC_REQUIRE([AC_PROG_CXX])
2576 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2577 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2578 ])# _LT_AC_LANG_CXX
2579
2580 # _LT_AC_PROG_CXXCPP
2581 # ------------------
2582 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2583 [
2584 AC_REQUIRE([AC_PROG_CXX])
2585 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2586 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2587 (test "X$CXX" != "Xg++"))) ; then
2588 AC_PROG_CXXCPP
2589 fi
2590 ])# _LT_AC_PROG_CXXCPP
2591
2592 # AC_LIBTOOL_F77
2593 # --------------
2594 # enable support for Fortran 77 libraries
2595 AC_DEFUN([AC_LIBTOOL_F77],
2596 [AC_REQUIRE([_LT_AC_LANG_F77])
2597 ])# AC_LIBTOOL_F77
2598
2599
2600 # _LT_AC_LANG_F77
2601 # ---------------
2602 AC_DEFUN([_LT_AC_LANG_F77],
2603 [AC_REQUIRE([AC_PROG_F77])
2604 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2605 ])# _LT_AC_LANG_F77
2606
2607
2608 # AC_LIBTOOL_GCJ
2609 # --------------
2610 # enable support for GCJ libraries
2611 AC_DEFUN([AC_LIBTOOL_GCJ],
2612 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2613 ])# AC_LIBTOOL_GCJ
2614
2615
2616 # _LT_AC_LANG_GCJ
2617 # ---------------
2618 AC_DEFUN([_LT_AC_LANG_GCJ],
2619 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2620 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2621 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2622 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2623 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2624 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2625 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2626 ])# _LT_AC_LANG_GCJ
2627
2628
2629 # AC_LIBTOOL_RC
2630 # -------------
2631 # enable support for Windows resource files
2632 AC_DEFUN([AC_LIBTOOL_RC],
2633 [AC_REQUIRE([LT_AC_PROG_RC])
2634 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2635 ])# AC_LIBTOOL_RC
2636
2637
2638 # AC_LIBTOOL_LANG_C_CONFIG
2639 # ------------------------
2640 # Ensure that the configuration vars for the C compiler are
2641 # suitably defined. Those variables are subsequently used by
2642 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2643 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2644 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2645 [lt_save_CC="$CC"
2646 AC_LANG_PUSH(C)
2647
2648 # Source file extension for C test sources.
2649 ac_ext=c
2650
2651 # Object file extension for compiled C test sources.
2652 objext=o
2653 _LT_AC_TAGVAR(objext, $1)=$objext
2654
2655 # Code to be used in simple compile tests
2656 lt_simple_compile_test_code="int some_variable = 0;\n"
2657
2658 # Code to be used in simple link tests
2659 lt_simple_link_test_code='int main(){return(0);}\n'
2660
2661 _LT_AC_SYS_COMPILER
2662
2663 # save warnings/boilerplate of simple test code
2664 _LT_COMPILER_BOILERPLATE
2665 _LT_LINKER_BOILERPLATE
2666
2667 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2668 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2669 AC_LIBTOOL_PROG_CC_C_O($1)
2670 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2671 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2672 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2673 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2674 AC_LIBTOOL_SYS_LIB_STRIP
2675 AC_LIBTOOL_DLOPEN_SELF
2676
2677 # Report which library types will actually be built
2678 AC_MSG_CHECKING([if libtool supports shared libraries])
2679 AC_MSG_RESULT([$can_build_shared])
2680
2681 AC_MSG_CHECKING([whether to build shared libraries])
2682 test "$can_build_shared" = "no" && enable_shared=no
2683
2684 # On AIX, shared libraries and static libraries use the same namespace, and
2685 # are all built from PIC.
2686 case $host_os in
2687 aix3*)
2688 test "$enable_shared" = yes && enable_static=no
2689 if test -n "$RANLIB"; then
2690 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2691 postinstall_cmds='$RANLIB $lib'
2692 fi
2693 ;;
2694
2695 aix4* | aix5*)
2696 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2697 test "$enable_shared" = yes && enable_static=no
2698 fi
2699 ;;
2700 esac
2701 AC_MSG_RESULT([$enable_shared])
2702
2703 AC_MSG_CHECKING([whether to build static libraries])
2704 # Make sure either enable_shared or enable_static is yes.
2705 test "$enable_shared" = yes || enable_static=yes
2706 AC_MSG_RESULT([$enable_static])
2707
2708 AC_LIBTOOL_CONFIG($1)
2709
2710 AC_LANG_POP
2711 CC="$lt_save_CC"
2712 ])# AC_LIBTOOL_LANG_C_CONFIG
2713
2714
2715 # AC_LIBTOOL_LANG_CXX_CONFIG
2716 # --------------------------
2717 # Ensure that the configuration vars for the C compiler are
2718 # suitably defined. Those variables are subsequently used by
2719 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2720 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2721 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2722 [AC_LANG_PUSH(C++)
2723 AC_REQUIRE([AC_PROG_CXX])
2724 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2725
2726 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2727 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2728 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2729 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2730 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2731 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2732 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2733 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2734 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2735 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2736 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2737 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2738 _LT_AC_TAGVAR(module_cmds, $1)=
2739 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2740 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2741 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2742 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2743 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2744 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2745
2746 # Dependencies to place before and after the object being linked:
2747 _LT_AC_TAGVAR(predep_objects, $1)=
2748 _LT_AC_TAGVAR(postdep_objects, $1)=
2749 _LT_AC_TAGVAR(predeps, $1)=
2750 _LT_AC_TAGVAR(postdeps, $1)=
2751 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2752
2753 # Source file extension for C++ test sources.
2754 ac_ext=cpp
2755
2756 # Object file extension for compiled C++ test sources.
2757 objext=o
2758 _LT_AC_TAGVAR(objext, $1)=$objext
2759
2760 # Code to be used in simple compile tests
2761 lt_simple_compile_test_code="int some_variable = 0;\n"
2762
2763 # Code to be used in simple link tests
2764 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2765
2766 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2767 _LT_AC_SYS_COMPILER
2768
2769 # save warnings/boilerplate of simple test code
2770 _LT_COMPILER_BOILERPLATE
2771 _LT_LINKER_BOILERPLATE
2772
2773 # Allow CC to be a program name with arguments.
2774 lt_save_CC=$CC
2775 lt_save_LD=$LD
2776 lt_save_GCC=$GCC
2777 GCC=$GXX
2778 lt_save_with_gnu_ld=$with_gnu_ld
2779 lt_save_path_LD=$lt_cv_path_LD
2780 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2781 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2782 else
2783 $as_unset lt_cv_prog_gnu_ld
2784 fi
2785 if test -n "${lt_cv_path_LDCXX+set}"; then
2786 lt_cv_path_LD=$lt_cv_path_LDCXX
2787 else
2788 $as_unset lt_cv_path_LD
2789 fi
2790 test -z "${LDCXX+set}" || LD=$LDCXX
2791 CC=${CXX-"c++"}
2792 compiler=$CC
2793 _LT_AC_TAGVAR(compiler, $1)=$CC
2794 _LT_CC_BASENAME([$compiler])
2795
2796 # We don't want -fno-exception wen compiling C++ code, so set the
2797 # no_builtin_flag separately
2798 if test "$GXX" = yes; then
2799 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2800 else
2801 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2802 fi
2803
2804 if test "$GXX" = yes; then
2805 # Set up default GNU C++ configuration
2806
2807 AC_PROG_LD
2808
2809 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2810 # archiving commands below assume that GNU ld is being used.
2811 if test "$with_gnu_ld" = yes; then
2812 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2813 _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'
2814
2815 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2816 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2817
2818 # If archive_cmds runs LD, not CC, wlarc should be empty
2819 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2820 # investigate it a little bit more. (MM)
2821 wlarc='${wl}'
2822
2823 # ancient GNU ld didn't support --whole-archive et. al.
2824 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2825 grep 'no-whole-archive' > /dev/null; then
2826 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2827 else
2828 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2829 fi
2830 else
2831 with_gnu_ld=no
2832 wlarc=
2833
2834 # A generic and very simple default shared library creation
2835 # command for GNU C++ for the case where it uses the native
2836 # linker, instead of GNU ld. If possible, this setting should
2837 # overridden to take advantage of the native linker features on
2838 # the platform it is being used on.
2839 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2840 fi
2841
2842 # Commands to make compiler produce verbose output that lists
2843 # what "hidden" libraries, object files and flags are used when
2844 # linking a shared library.
2845 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2846
2847 else
2848 GXX=no
2849 with_gnu_ld=no
2850 wlarc=
2851 fi
2852
2853 # PORTME: fill in a description of your system's C++ link characteristics
2854 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2855