Codebase list liblrdf / 4527330
Merge tag 'upstream/0.6.1' Upstream version 0.6.1 # gpg: Signature made Mon Jan 9 19:40:42 2017 CET # gpg: using RSA key 2C7C3146C1A00121 # gpg: Good signature from "Jonas Smedegaard <dr@jones.dk>" # gpg: aka "Jonas Smedegaard <jonas@homebase.dk>" # gpg: aka "Jonas Smedegaard <js@debian.org>" # gpg: aka "[jpeg image of size 4165]" Jonas Smedegaard 7 years ago
17 changed file(s) with 0 addition(s) and 28730 deletion(s). Raw diff Collapse all Expand all
+0
-901
Makefile.in less more
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16
17 VPATH = @srcdir@
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19 am__make_running_with_option = \
20 case $${target_option-} in \
21 ?) ;; \
22 *) echo "am__make_running_with_option: internal error: invalid" \
23 "target option '$${target_option-}' specified" >&2; \
24 exit 1;; \
25 esac; \
26 has_opt=no; \
27 sane_makeflags=$$MAKEFLAGS; \
28 if $(am__is_gnu_make); then \
29 sane_makeflags=$$MFLAGS; \
30 else \
31 case $$MAKEFLAGS in \
32 *\\[\ \ ]*) \
33 bs=\\; \
34 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
36 esac; \
37 fi; \
38 skip_next=no; \
39 strip_trailopt () \
40 { \
41 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42 }; \
43 for flg in $$sane_makeflags; do \
44 test $$skip_next = yes && { skip_next=no; continue; }; \
45 case $$flg in \
46 *=*|--*) continue;; \
47 -*I) strip_trailopt 'I'; skip_next=yes;; \
48 -*I?*) strip_trailopt 'I';; \
49 -*O) strip_trailopt 'O'; skip_next=yes;; \
50 -*O?*) strip_trailopt 'O';; \
51 -*l) strip_trailopt 'l'; skip_next=yes;; \
52 -*l?*) strip_trailopt 'l';; \
53 -[dEDm]) skip_next=yes;; \
54 -[JT]) skip_next=yes;; \
55 esac; \
56 case $$flg in \
57 *$$target_option*) has_opt=yes; break;; \
58 esac; \
59 done; \
60 test $$has_opt = yes
61 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
63 pkgdatadir = $(datadir)/@PACKAGE@
64 pkgincludedir = $(includedir)/@PACKAGE@
65 pkglibdir = $(libdir)/@PACKAGE@
66 pkglibexecdir = $(libexecdir)/@PACKAGE@
67 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
68 install_sh_DATA = $(install_sh) -c -m 644
69 install_sh_PROGRAM = $(install_sh) -c
70 install_sh_SCRIPT = $(install_sh) -c
71 INSTALL_HEADER = $(INSTALL_DATA)
72 transform = $(program_transform_name)
73 NORMAL_INSTALL = :
74 PRE_INSTALL = :
75 POST_INSTALL = :
76 NORMAL_UNINSTALL = :
77 PRE_UNINSTALL = :
78 POST_UNINSTALL = :
79 build_triplet = @build@
80 host_triplet = @host@
81 subdir = .
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/configure $(am__configure_deps) \
84 $(srcdir)/config.h.in $(srcdir)/lrdf.pc.in $(include_HEADERS) \
85 AUTHORS COPYING ChangeLog INSTALL NEWS README compile \
86 config.guess config.sub depcomp install-sh missing ltmain.sh
87 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
88 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
89 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
90 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
91 $(top_srcdir)/configure.ac
92 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
93 $(ACLOCAL_M4)
94 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
95 configure.lineno config.status.lineno
96 mkinstalldirs = $(install_sh) -d
97 CONFIG_HEADER = config.h
98 CONFIG_CLEAN_FILES = lrdf.pc
99 CONFIG_CLEAN_VPATH_FILES =
100 AM_V_P = $(am__v_P_@AM_V@)
101 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
102 am__v_P_0 = false
103 am__v_P_1 = :
104 AM_V_GEN = $(am__v_GEN_@AM_V@)
105 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
106 am__v_GEN_0 = @echo " GEN " $@;
107 am__v_GEN_1 =
108 AM_V_at = $(am__v_at_@AM_V@)
109 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
110 am__v_at_0 = @
111 am__v_at_1 =
112 SOURCES =
113 DIST_SOURCES =
114 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
115 ctags-recursive dvi-recursive html-recursive info-recursive \
116 install-data-recursive install-dvi-recursive \
117 install-exec-recursive install-html-recursive \
118 install-info-recursive install-pdf-recursive \
119 install-ps-recursive install-recursive installcheck-recursive \
120 installdirs-recursive pdf-recursive ps-recursive \
121 tags-recursive uninstall-recursive
122 am__can_run_installinfo = \
123 case $$AM_UPDATE_INFO_DIR in \
124 n|no|NO) false;; \
125 *) (install-info --version) >/dev/null 2>&1;; \
126 esac
127 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
128 am__vpath_adj = case $$p in \
129 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
130 *) f=$$p;; \
131 esac;
132 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
133 am__install_max = 40
134 am__nobase_strip_setup = \
135 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
136 am__nobase_strip = \
137 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
138 am__nobase_list = $(am__nobase_strip_setup); \
139 for p in $$list; do echo "$$p $$p"; done | \
140 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
141 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
142 if (++n[$$2] == $(am__install_max)) \
143 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
144 END { for (dir in files) print dir, files[dir] }'
145 am__base_list = \
146 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
147 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
148 am__uninstall_files_from_dir = { \
149 test -z "$$files" \
150 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
151 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
152 $(am__cd) "$$dir" && rm -f $$files; }; \
153 }
154 am__installdirs = "$(DESTDIR)$(pkgconfigdir)" \
155 "$(DESTDIR)$(includedir)"
156 DATA = $(pkgconfig_DATA)
157 HEADERS = $(include_HEADERS)
158 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
159 distclean-recursive maintainer-clean-recursive
160 am__recursive_targets = \
161 $(RECURSIVE_TARGETS) \
162 $(RECURSIVE_CLEAN_TARGETS) \
163 $(am__extra_recursive_targets)
164 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
165 cscope distdir dist dist-all distcheck
166 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
167 $(LISP)config.h.in
168 # Read a list of newline-separated strings from the standard input,
169 # and print each of them once, without duplicates. Input order is
170 # *not* preserved.
171 am__uniquify_input = $(AWK) '\
172 BEGIN { nonempty = 0; } \
173 { items[$$0] = 1; nonempty = 1; } \
174 END { if (nonempty) { for (i in items) print i; }; } \
175 '
176 # Make sure the list of sources is unique. This is necessary because,
177 # e.g., the same source file might be shared among _SOURCES variables
178 # for different programs/libraries.
179 am__define_uniq_tagged_files = \
180 list='$(am__tagged_files)'; \
181 unique=`for i in $$list; do \
182 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
183 done | $(am__uniquify_input)`
184 ETAGS = etags
185 CTAGS = ctags
186 CSCOPE = cscope
187 DIST_SUBDIRS = $(SUBDIRS)
188 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
189 distdir = $(PACKAGE)-$(VERSION)
190 top_distdir = $(distdir)
191 am__remove_distdir = \
192 if test -d "$(distdir)"; then \
193 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
194 && rm -rf "$(distdir)" \
195 || { sleep 5 && rm -rf "$(distdir)"; }; \
196 else :; fi
197 am__post_remove_distdir = $(am__remove_distdir)
198 am__relativize = \
199 dir0=`pwd`; \
200 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
201 sed_rest='s,^[^/]*/*,,'; \
202 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
203 sed_butlast='s,/*[^/]*$$,,'; \
204 while test -n "$$dir1"; do \
205 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
206 if test "$$first" != "."; then \
207 if test "$$first" = ".."; then \
208 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
209 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
210 else \
211 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
212 if test "$$first2" = "$$first"; then \
213 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
214 else \
215 dir2="../$$dir2"; \
216 fi; \
217 dir0="$$dir0"/"$$first"; \
218 fi; \
219 fi; \
220 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
221 done; \
222 reldir="$$dir2"
223 DIST_ARCHIVES = $(distdir).tar.gz
224 GZIP_ENV = --best
225 DIST_TARGETS = dist-gzip
226 distuninstallcheck_listfiles = find . -type f -print
227 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
228 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
229 distcleancheck_listfiles = find . -type f -print
230 ACLOCAL = @ACLOCAL@
231 AMTAR = @AMTAR@
232 AM_CFLAGS = @AM_CFLAGS@
233 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
234 AR = @AR@
235 AUTOCONF = @AUTOCONF@
236 AUTOHEADER = @AUTOHEADER@
237 AUTOMAKE = @AUTOMAKE@
238 AWK = @AWK@
239 CC = @CC@
240 CCDEPMODE = @CCDEPMODE@
241 CFLAGS = @CFLAGS@
242 CPP = @CPP@
243 CPPFLAGS = @CPPFLAGS@
244 CYGPATH_W = @CYGPATH_W@
245 DEFS = @DEFS@
246 DEPDIR = @DEPDIR@
247 DLLTOOL = @DLLTOOL@
248 DSYMUTIL = @DSYMUTIL@
249 DUMPBIN = @DUMPBIN@
250 ECHO_C = @ECHO_C@
251 ECHO_N = @ECHO_N@
252 ECHO_T = @ECHO_T@
253 EGREP = @EGREP@
254 EXEEXT = @EXEEXT@
255 FGREP = @FGREP@
256 GREP = @GREP@
257 INSTALL = @INSTALL@
258 INSTALL_DATA = @INSTALL_DATA@
259 INSTALL_PROGRAM = @INSTALL_PROGRAM@
260 INSTALL_SCRIPT = @INSTALL_SCRIPT@
261 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
262 LD = @LD@
263 LDFLAGS = @LDFLAGS@
264 LIBOBJS = @LIBOBJS@
265 LIBS = @LIBS@
266 LIBTOOL = @LIBTOOL@
267 LIPO = @LIPO@
268 LN_S = @LN_S@
269 LRDF_LIBTOOL_VERSION = @LRDF_LIBTOOL_VERSION@
270 LTLIBOBJS = @LTLIBOBJS@
271 MAKEINFO = @MAKEINFO@
272 MANIFEST_TOOL = @MANIFEST_TOOL@
273 MKDIR_P = @MKDIR_P@
274 NM = @NM@
275 NMEDIT = @NMEDIT@
276 OBJDUMP = @OBJDUMP@
277 OBJEXT = @OBJEXT@
278 OTOOL = @OTOOL@
279 OTOOL64 = @OTOOL64@
280 PACKAGE = @PACKAGE@
281 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
282 PACKAGE_NAME = @PACKAGE_NAME@
283 PACKAGE_STRING = @PACKAGE_STRING@
284 PACKAGE_TARNAME = @PACKAGE_TARNAME@
285 PACKAGE_URL = @PACKAGE_URL@
286 PACKAGE_VERSION = @PACKAGE_VERSION@
287 PATH_SEPARATOR = @PATH_SEPARATOR@
288 PKG_CONFIG = @PKG_CONFIG@
289 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
290 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
291 RANLIB = @RANLIB@
292 RAPTOR_CFLAGS = @RAPTOR_CFLAGS@
293 RAPTOR_LIBS = @RAPTOR_LIBS@
294 SED = @SED@
295 SET_MAKE = @SET_MAKE@
296 SHELL = @SHELL@
297 STRIP = @STRIP@
298 VERSION = @VERSION@
299 abs_builddir = @abs_builddir@
300 abs_srcdir = @abs_srcdir@
301 abs_top_builddir = @abs_top_builddir@
302 abs_top_srcdir = @abs_top_srcdir@
303 ac_ct_AR = @ac_ct_AR@
304 ac_ct_CC = @ac_ct_CC@
305 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
306 am__include = @am__include@
307 am__leading_dot = @am__leading_dot@
308 am__quote = @am__quote@
309 am__tar = @am__tar@
310 am__untar = @am__untar@
311 bindir = @bindir@
312 build = @build@
313 build_alias = @build_alias@
314 build_cpu = @build_cpu@
315 build_os = @build_os@
316 build_vendor = @build_vendor@
317 builddir = @builddir@
318 datadir = @datadir@
319 datarootdir = @datarootdir@
320 docdir = @docdir@
321 dvidir = @dvidir@
322 exec_prefix = @exec_prefix@
323 host = @host@
324 host_alias = @host_alias@
325 host_cpu = @host_cpu@
326 host_os = @host_os@
327 host_vendor = @host_vendor@
328 htmldir = @htmldir@
329 includedir = @includedir@
330 infodir = @infodir@
331 install_sh = @install_sh@
332 libdir = @libdir@
333 libexecdir = @libexecdir@
334 localedir = @localedir@
335 localstatedir = @localstatedir@
336 mandir = @mandir@
337 mkdir_p = @mkdir_p@
338 oldincludedir = @oldincludedir@
339 pdfdir = @pdfdir@
340 prefix = @prefix@
341 program_transform_name = @program_transform_name@
342 psdir = @psdir@
343 sbindir = @sbindir@
344 sharedstatedir = @sharedstatedir@
345 srcdir = @srcdir@
346 sysconfdir = @sysconfdir@
347 target_alias = @target_alias@
348 top_build_prefix = @top_build_prefix@
349 top_builddir = @top_builddir@
350 top_srcdir = @top_srcdir@
351 ACLOCAL_AMFLAGS = -I m4
352 MAINTAINERCLEANFILES = aclocal.m4 config.guess config.h config.log \
353 config.status config.sub configure depcomp
354
355 include_HEADERS = lrdf.h lrdf_types.h
356 EXTRA_DIST = autogen.sh lrdf.i
357 SUBDIRS = src examples
358 pkgconfigdir = $(libdir)/pkgconfig
359 pkgconfig_DATA = lrdf.pc
360 all: config.h
361 $(MAKE) $(AM_MAKEFLAGS) all-recursive
362
363 .SUFFIXES:
364 am--refresh: Makefile
365 @:
366 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
367 @for dep in $?; do \
368 case '$(am__configure_deps)' in \
369 *$$dep*) \
370 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
371 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
372 && exit 0; \
373 exit 1;; \
374 esac; \
375 done; \
376 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
377 $(am__cd) $(top_srcdir) && \
378 $(AUTOMAKE) --foreign Makefile
379 .PRECIOUS: Makefile
380 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
381 @case '$?' in \
382 *config.status*) \
383 echo ' $(SHELL) ./config.status'; \
384 $(SHELL) ./config.status;; \
385 *) \
386 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
387 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
388 esac;
389
390 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
391 $(SHELL) ./config.status --recheck
392
393 $(top_srcdir)/configure: $(am__configure_deps)
394 $(am__cd) $(srcdir) && $(AUTOCONF)
395 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
396 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
397 $(am__aclocal_m4_deps):
398
399 config.h: stamp-h1
400 @test -f $@ || rm -f stamp-h1
401 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
402
403 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
404 @rm -f stamp-h1
405 cd $(top_builddir) && $(SHELL) ./config.status config.h
406 $(srcdir)/config.h.in: $(am__configure_deps)
407 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
408 rm -f stamp-h1
409 touch $@
410
411 distclean-hdr:
412 -rm -f config.h stamp-h1
413 lrdf.pc: $(top_builddir)/config.status $(srcdir)/lrdf.pc.in
414 cd $(top_builddir) && $(SHELL) ./config.status $@
415
416 mostlyclean-libtool:
417 -rm -f *.lo
418
419 clean-libtool:
420 -rm -rf .libs _libs
421
422 distclean-libtool:
423 -rm -f libtool config.lt
424 install-pkgconfigDATA: $(pkgconfig_DATA)
425 @$(NORMAL_INSTALL)
426 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
427 if test -n "$$list"; then \
428 echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
429 $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
430 fi; \
431 for p in $$list; do \
432 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
433 echo "$$d$$p"; \
434 done | $(am__base_list) | \
435 while read files; do \
436 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
437 $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
438 done
439
440 uninstall-pkgconfigDATA:
441 @$(NORMAL_UNINSTALL)
442 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
443 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
444 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
445 install-includeHEADERS: $(include_HEADERS)
446 @$(NORMAL_INSTALL)
447 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
448 if test -n "$$list"; then \
449 echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
450 $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
451 fi; \
452 for p in $$list; do \
453 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
454 echo "$$d$$p"; \
455 done | $(am__base_list) | \
456 while read files; do \
457 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
458 $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
459 done
460
461 uninstall-includeHEADERS:
462 @$(NORMAL_UNINSTALL)
463 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
464 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
465 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
466
467 # This directory's subdirectories are mostly independent; you can cd
468 # into them and run 'make' without going through this Makefile.
469 # To change the values of 'make' variables: instead of editing Makefiles,
470 # (1) if the variable is set in 'config.status', edit 'config.status'
471 # (which will cause the Makefiles to be regenerated when you run 'make');
472 # (2) otherwise, pass the desired values on the 'make' command line.
473 $(am__recursive_targets):
474 @fail=; \
475 if $(am__make_keepgoing); then \
476 failcom='fail=yes'; \
477 else \
478 failcom='exit 1'; \
479 fi; \
480 dot_seen=no; \
481 target=`echo $@ | sed s/-recursive//`; \
482 case "$@" in \
483 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
484 *) list='$(SUBDIRS)' ;; \
485 esac; \
486 for subdir in $$list; do \
487 echo "Making $$target in $$subdir"; \
488 if test "$$subdir" = "."; then \
489 dot_seen=yes; \
490 local_target="$$target-am"; \
491 else \
492 local_target="$$target"; \
493 fi; \
494 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
495 || eval $$failcom; \
496 done; \
497 if test "$$dot_seen" = "no"; then \
498 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
499 fi; test -z "$$fail"
500
501 ID: $(am__tagged_files)
502 $(am__define_uniq_tagged_files); mkid -fID $$unique
503 tags: tags-recursive
504 TAGS: tags
505
506 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
507 set x; \
508 here=`pwd`; \
509 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
510 include_option=--etags-include; \
511 empty_fix=.; \
512 else \
513 include_option=--include; \
514 empty_fix=; \
515 fi; \
516 list='$(SUBDIRS)'; for subdir in $$list; do \
517 if test "$$subdir" = .; then :; else \
518 test ! -f $$subdir/TAGS || \
519 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
520 fi; \
521 done; \
522 $(am__define_uniq_tagged_files); \
523 shift; \
524 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
525 test -n "$$unique" || unique=$$empty_fix; \
526 if test $$# -gt 0; then \
527 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
528 "$$@" $$unique; \
529 else \
530 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
531 $$unique; \
532 fi; \
533 fi
534 ctags: ctags-recursive
535
536 CTAGS: ctags
537 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
538 $(am__define_uniq_tagged_files); \
539 test -z "$(CTAGS_ARGS)$$unique" \
540 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
541 $$unique
542
543 GTAGS:
544 here=`$(am__cd) $(top_builddir) && pwd` \
545 && $(am__cd) $(top_srcdir) \
546 && gtags -i $(GTAGS_ARGS) "$$here"
547 cscope: cscope.files
548 test ! -s cscope.files \
549 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
550 clean-cscope:
551 -rm -f cscope.files
552 cscope.files: clean-cscope cscopelist
553 cscopelist: cscopelist-recursive
554
555 cscopelist-am: $(am__tagged_files)
556 list='$(am__tagged_files)'; \
557 case "$(srcdir)" in \
558 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
559 *) sdir=$(subdir)/$(srcdir) ;; \
560 esac; \
561 for i in $$list; do \
562 if test -f "$$i"; then \
563 echo "$(subdir)/$$i"; \
564 else \
565 echo "$$sdir/$$i"; \
566 fi; \
567 done >> $(top_builddir)/cscope.files
568
569 distclean-tags:
570 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
571 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
572
573 distdir: $(DISTFILES)
574 $(am__remove_distdir)
575 test -d "$(distdir)" || mkdir "$(distdir)"
576 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
577 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
578 list='$(DISTFILES)'; \
579 dist_files=`for file in $$list; do echo $$file; done | \
580 sed -e "s|^$$srcdirstrip/||;t" \
581 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
582 case $$dist_files in \
583 */*) $(MKDIR_P) `echo "$$dist_files" | \
584 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
585 sort -u` ;; \
586 esac; \
587 for file in $$dist_files; do \
588 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
589 if test -d $$d/$$file; then \
590 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
591 if test -d "$(distdir)/$$file"; then \
592 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
593 fi; \
594 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
595 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
596 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
597 fi; \
598 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
599 else \
600 test -f "$(distdir)/$$file" \
601 || cp -p $$d/$$file "$(distdir)/$$file" \
602 || exit 1; \
603 fi; \
604 done
605 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
606 if test "$$subdir" = .; then :; else \
607 $(am__make_dryrun) \
608 || test -d "$(distdir)/$$subdir" \
609 || $(MKDIR_P) "$(distdir)/$$subdir" \
610 || exit 1; \
611 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
612 $(am__relativize); \
613 new_distdir=$$reldir; \
614 dir1=$$subdir; dir2="$(top_distdir)"; \
615 $(am__relativize); \
616 new_top_distdir=$$reldir; \
617 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
618 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
619 ($(am__cd) $$subdir && \
620 $(MAKE) $(AM_MAKEFLAGS) \
621 top_distdir="$$new_top_distdir" \
622 distdir="$$new_distdir" \
623 am__remove_distdir=: \
624 am__skip_length_check=: \
625 am__skip_mode_fix=: \
626 distdir) \
627 || exit 1; \
628 fi; \
629 done
630 -test -n "$(am__skip_mode_fix)" \
631 || find "$(distdir)" -type d ! -perm -755 \
632 -exec chmod u+rwx,go+rx {} \; -o \
633 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
634 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
635 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
636 || chmod -R a+r "$(distdir)"
637 dist-gzip: distdir
638 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
639 $(am__post_remove_distdir)
640
641 dist-bzip2: distdir
642 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
643 $(am__post_remove_distdir)
644
645 dist-lzip: distdir
646 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
647 $(am__post_remove_distdir)
648
649 dist-xz: distdir
650 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
651 $(am__post_remove_distdir)
652
653 dist-tarZ: distdir
654 @echo WARNING: "Support for shar distribution archives is" \
655 "deprecated." >&2
656 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
657 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
658 $(am__post_remove_distdir)
659
660 dist-shar: distdir
661 @echo WARNING: "Support for distribution archives compressed with" \
662 "legacy program 'compress' is deprecated." >&2
663 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
664 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
665 $(am__post_remove_distdir)
666
667 dist-zip: distdir
668 -rm -f $(distdir).zip
669 zip -rq $(distdir).zip $(distdir)
670 $(am__post_remove_distdir)
671
672 dist dist-all:
673 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
674 $(am__post_remove_distdir)
675
676 # This target untars the dist file and tries a VPATH configuration. Then
677 # it guarantees that the distribution is self-contained by making another
678 # tarfile.
679 distcheck: dist
680 case '$(DIST_ARCHIVES)' in \
681 *.tar.gz*) \
682 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
683 *.tar.bz2*) \
684 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
685 *.tar.lz*) \
686 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
687 *.tar.xz*) \
688 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
689 *.tar.Z*) \
690 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
691 *.shar.gz*) \
692 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
693 *.zip*) \
694 unzip $(distdir).zip ;;\
695 esac
696 chmod -R a-w $(distdir)
697 chmod u+w $(distdir)
698 mkdir $(distdir)/_build $(distdir)/_inst
699 chmod a-w $(distdir)
700 test -d $(distdir)/_build || exit 0; \
701 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
702 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
703 && am__cwd=`pwd` \
704 && $(am__cd) $(distdir)/_build \
705 && ../configure \
706 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
707 $(DISTCHECK_CONFIGURE_FLAGS) \
708 --srcdir=.. --prefix="$$dc_install_base" \
709 && $(MAKE) $(AM_MAKEFLAGS) \
710 && $(MAKE) $(AM_MAKEFLAGS) dvi \
711 && $(MAKE) $(AM_MAKEFLAGS) check \
712 && $(MAKE) $(AM_MAKEFLAGS) install \
713 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
714 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
715 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
716 distuninstallcheck \
717 && chmod -R a-w "$$dc_install_base" \
718 && ({ \
719 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
720 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
721 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
722 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
723 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
724 } || { rm -rf "$$dc_destdir"; exit 1; }) \
725 && rm -rf "$$dc_destdir" \
726 && $(MAKE) $(AM_MAKEFLAGS) dist \
727 && rm -rf $(DIST_ARCHIVES) \
728 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
729 && cd "$$am__cwd" \
730 || exit 1
731 $(am__post_remove_distdir)
732 @(echo "$(distdir) archives ready for distribution: "; \
733 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
734 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
735 distuninstallcheck:
736 @test -n '$(distuninstallcheck_dir)' || { \
737 echo 'ERROR: trying to run $@ with an empty' \
738 '$$(distuninstallcheck_dir)' >&2; \
739 exit 1; \
740 }; \
741 $(am__cd) '$(distuninstallcheck_dir)' || { \
742 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
743 exit 1; \
744 }; \
745 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
746 || { echo "ERROR: files left after uninstall:" ; \
747 if test -n "$(DESTDIR)"; then \
748 echo " (check DESTDIR support)"; \
749 fi ; \
750 $(distuninstallcheck_listfiles) ; \
751 exit 1; } >&2
752 distcleancheck: distclean
753 @if test '$(srcdir)' = . ; then \
754 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
755 exit 1 ; \
756 fi
757 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
758 || { echo "ERROR: files left in build directory after distclean:" ; \
759 $(distcleancheck_listfiles) ; \
760 exit 1; } >&2
761 check-am: all-am
762 check: check-recursive
763 all-am: Makefile $(DATA) $(HEADERS) config.h
764 installdirs: installdirs-recursive
765 installdirs-am:
766 for dir in "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)"; do \
767 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
768 done
769 install: install-recursive
770 install-exec: install-exec-recursive
771 install-data: install-data-recursive
772 uninstall: uninstall-recursive
773
774 install-am: all-am
775 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
776
777 installcheck: installcheck-recursive
778 install-strip:
779 if test -z '$(STRIP)'; then \
780 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
781 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
782 install; \
783 else \
784 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
785 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
786 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
787 fi
788 mostlyclean-generic:
789
790 clean-generic:
791
792 distclean-generic:
793 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
794 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
795
796 maintainer-clean-generic:
797 @echo "This command is intended for maintainers to use"
798 @echo "it deletes files that may require special tools to rebuild."
799 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
800 clean: clean-recursive
801
802 clean-am: clean-generic clean-libtool mostlyclean-am
803
804 distclean: distclean-recursive
805 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
806 -rm -f Makefile
807 distclean-am: clean-am distclean-generic distclean-hdr \
808 distclean-libtool distclean-tags
809
810 dvi: dvi-recursive
811
812 dvi-am:
813
814 html: html-recursive
815
816 html-am:
817
818 info: info-recursive
819
820 info-am:
821
822 install-data-am: install-includeHEADERS install-pkgconfigDATA
823
824 install-dvi: install-dvi-recursive
825
826 install-dvi-am:
827
828 install-exec-am:
829
830 install-html: install-html-recursive
831
832 install-html-am:
833
834 install-info: install-info-recursive
835
836 install-info-am:
837
838 install-man:
839
840 install-pdf: install-pdf-recursive
841
842 install-pdf-am:
843
844 install-ps: install-ps-recursive
845
846 install-ps-am:
847
848 installcheck-am:
849
850 maintainer-clean: maintainer-clean-recursive
851 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
852 -rm -rf $(top_srcdir)/autom4te.cache
853 -rm -f Makefile
854 maintainer-clean-am: distclean-am maintainer-clean-generic
855
856 mostlyclean: mostlyclean-recursive
857
858 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
859
860 pdf: pdf-recursive
861
862 pdf-am:
863
864 ps: ps-recursive
865
866 ps-am:
867
868 uninstall-am: uninstall-includeHEADERS uninstall-pkgconfigDATA
869
870 .MAKE: $(am__recursive_targets) all install-am install-strip
871
872 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
873 am--refresh check check-am clean clean-cscope clean-generic \
874 clean-libtool cscope cscopelist-am ctags ctags-am dist \
875 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
876 dist-xz dist-zip distcheck distclean distclean-generic \
877 distclean-hdr distclean-libtool distclean-tags distcleancheck \
878 distdir distuninstallcheck dvi dvi-am html html-am info \
879 info-am install install-am install-data install-data-am \
880 install-dvi install-dvi-am install-exec install-exec-am \
881 install-html install-html-am install-includeHEADERS \
882 install-info install-info-am install-man install-pdf \
883 install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
884 install-strip installcheck installcheck-am installdirs \
885 installdirs-am maintainer-clean maintainer-clean-generic \
886 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
887 ps ps-am tags tags-am uninstall uninstall-am \
888 uninstall-includeHEADERS uninstall-pkgconfigDATA
889
890 install-sh libtool ltmain.sh Makefile Makefile.in
891 missing mkinstalldirs stamp-h
892
893 python: lrdf.i
894 swig -python lrdf.i
895 gcc -c src/lrdf.c src/lrdf_multi.c src/md5.c lrdf_wrap.c -I/usr/include/python2.3/
896 ld -shared lrdf_multi.o lrdf.o lrdf_wrap.o md5.o -lraptor -o _lrdf.so
897
898 # Tell versions [3.59,3.63) of GNU make to not export all variables.
899 # Otherwise a system limit (for SysV at least) may be exceeded.
900 .NOEXPORT:
+0
-1398
aclocal.m4 less more
0 # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 # serial 1 (pkg-config-0.24)
24 #
25 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
26 #
27 # This program is free software; you can redistribute it and/or modify
28 # it under the terms of the GNU General Public License as published by
29 # the Free Software Foundation; either version 2 of the License, or
30 # (at your option) any later version.
31 #
32 # This program is distributed in the hope that it will be useful, but
33 # WITHOUT ANY WARRANTY; without even the implied warranty of
34 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
35 # General Public License for more details.
36 #
37 # You should have received a copy of the GNU General Public License
38 # along with this program; if not, write to the Free Software
39 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
40 #
41 # As a special exception to the GNU General Public License, if you
42 # distribute this file as part of a program that contains a
43 # configuration script generated by Autoconf, you may include it under
44 # the same distribution terms that you use for the rest of that program.
45
46 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
47 # ----------------------------------
48 AC_DEFUN([PKG_PROG_PKG_CONFIG],
49 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
50 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
51 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
52 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
53 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
54 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
55
56 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
57 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
58 fi
59 if test -n "$PKG_CONFIG"; then
60 _pkg_min_version=m4_default([$1], [0.9.0])
61 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
62 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
63 AC_MSG_RESULT([yes])
64 else
65 AC_MSG_RESULT([no])
66 PKG_CONFIG=""
67 fi
68 fi[]dnl
69 ])# PKG_PROG_PKG_CONFIG
70
71 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
72 #
73 # Check to see whether a particular set of modules exists. Similar
74 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
75 #
76 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
77 # only at the first occurence in configure.ac, so if the first place
78 # it's called might be skipped (such as if it is within an "if", you
79 # have to call PKG_CHECK_EXISTS manually
80 # --------------------------------------------------------------
81 AC_DEFUN([PKG_CHECK_EXISTS],
82 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
83 if test -n "$PKG_CONFIG" && \
84 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
85 m4_default([$2], [:])
86 m4_ifvaln([$3], [else
87 $3])dnl
88 fi])
89
90 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
91 # ---------------------------------------------
92 m4_define([_PKG_CONFIG],
93 [if test -n "$$1"; then
94 pkg_cv_[]$1="$$1"
95 elif test -n "$PKG_CONFIG"; then
96 PKG_CHECK_EXISTS([$3],
97 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
98 test "x$?" != "x0" && pkg_failed=yes ],
99 [pkg_failed=yes])
100 else
101 pkg_failed=untried
102 fi[]dnl
103 ])# _PKG_CONFIG
104
105 # _PKG_SHORT_ERRORS_SUPPORTED
106 # -----------------------------
107 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
108 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
109 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
110 _pkg_short_errors_supported=yes
111 else
112 _pkg_short_errors_supported=no
113 fi[]dnl
114 ])# _PKG_SHORT_ERRORS_SUPPORTED
115
116
117 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
118 # [ACTION-IF-NOT-FOUND])
119 #
120 #
121 # Note that if there is a possibility the first call to
122 # PKG_CHECK_MODULES might not happen, you should be sure to include an
123 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
124 #
125 #
126 # --------------------------------------------------------------
127 AC_DEFUN([PKG_CHECK_MODULES],
128 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
129 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
130 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
131
132 pkg_failed=no
133 AC_MSG_CHECKING([for $1])
134
135 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
136 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
137
138 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
139 and $1[]_LIBS to avoid the need to call pkg-config.
140 See the pkg-config man page for more details.])
141
142 if test $pkg_failed = yes; then
143 AC_MSG_RESULT([no])
144 _PKG_SHORT_ERRORS_SUPPORTED
145 if test $_pkg_short_errors_supported = yes; then
146 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
147 else
148 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
149 fi
150 # Put the nasty error message in config.log where it belongs
151 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
152
153 m4_default([$4], [AC_MSG_ERROR(
154 [Package requirements ($2) were not met:
155
156 $$1_PKG_ERRORS
157
158 Consider adjusting the PKG_CONFIG_PATH environment variable if you
159 installed software in a non-standard prefix.
160
161 _PKG_TEXT])[]dnl
162 ])
163 elif test $pkg_failed = untried; then
164 AC_MSG_RESULT([no])
165 m4_default([$4], [AC_MSG_FAILURE(
166 [The pkg-config script could not be found or is too old. Make sure it
167 is in your PATH or set the PKG_CONFIG environment variable to the full
168 path to pkg-config.
169
170 _PKG_TEXT
171
172 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
173 ])
174 else
175 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
176 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
177 AC_MSG_RESULT([yes])
178 $3
179 fi[]dnl
180 ])# PKG_CHECK_MODULES
181
182
183 # PKG_INSTALLDIR(DIRECTORY)
184 # -------------------------
185 # Substitutes the variable pkgconfigdir as the location where a module
186 # should install pkg-config .pc files. By default the directory is
187 # $libdir/pkgconfig, but the default can be changed by passing
188 # DIRECTORY. The user can override through the --with-pkgconfigdir
189 # parameter.
190 AC_DEFUN([PKG_INSTALLDIR],
191 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
192 m4_pushdef([pkg_description],
193 [pkg-config installation directory @<:@]pkg_default[@:>@])
194 AC_ARG_WITH([pkgconfigdir],
195 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
196 [with_pkgconfigdir=]pkg_default)
197 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
198 m4_popdef([pkg_default])
199 m4_popdef([pkg_description])
200 ]) dnl PKG_INSTALLDIR
201
202
203 # PKG_NOARCH_INSTALLDIR(DIRECTORY)
204 # -------------------------
205 # Substitutes the variable noarch_pkgconfigdir as the location where a
206 # module should install arch-independent pkg-config .pc files. By
207 # default the directory is $datadir/pkgconfig, but the default can be
208 # changed by passing DIRECTORY. The user can override through the
209 # --with-noarch-pkgconfigdir parameter.
210 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
211 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
212 m4_pushdef([pkg_description],
213 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
214 AC_ARG_WITH([noarch-pkgconfigdir],
215 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
216 [with_noarch_pkgconfigdir=]pkg_default)
217 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
218 m4_popdef([pkg_default])
219 m4_popdef([pkg_description])
220 ]) dnl PKG_NOARCH_INSTALLDIR
221
222
223 # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
224 # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
225 # -------------------------------------------
226 # Retrieves the value of the pkg-config variable for the given module.
227 AC_DEFUN([PKG_CHECK_VAR],
228 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
229 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
230
231 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
232 AS_VAR_COPY([$1], [pkg_cv_][$1])
233
234 AS_VAR_IF([$1], [""], [$5], [$4])dnl
235 ])# PKG_CHECK_VAR
236
237 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
238 #
239 # This file is free software; the Free Software Foundation
240 # gives unlimited permission to copy and/or distribute it,
241 # with or without modifications, as long as this notice is preserved.
242
243 # AM_AUTOMAKE_VERSION(VERSION)
244 # ----------------------------
245 # Automake X.Y traces this macro to ensure aclocal.m4 has been
246 # generated from the m4 files accompanying Automake X.Y.
247 # (This private macro should not be called outside this file.)
248 AC_DEFUN([AM_AUTOMAKE_VERSION],
249 [am__api_version='1.14'
250 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
251 dnl require some minimum version. Point them to the right macro.
252 m4_if([$1], [1.14.1], [],
253 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
254 ])
255
256 # _AM_AUTOCONF_VERSION(VERSION)
257 # -----------------------------
258 # aclocal traces this macro to find the Autoconf version.
259 # This is a private macro too. Using m4_define simplifies
260 # the logic in aclocal, which can simply ignore this definition.
261 m4_define([_AM_AUTOCONF_VERSION], [])
262
263 # AM_SET_CURRENT_AUTOMAKE_VERSION
264 # -------------------------------
265 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
266 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
267 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
268 [AM_AUTOMAKE_VERSION([1.14.1])dnl
269 m4_ifndef([AC_AUTOCONF_VERSION],
270 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
271 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
272
273 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
274
275 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
276 #
277 # This file is free software; the Free Software Foundation
278 # gives unlimited permission to copy and/or distribute it,
279 # with or without modifications, as long as this notice is preserved.
280
281 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
282 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
283 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
284 #
285 # Of course, Automake must honor this variable whenever it calls a
286 # tool from the auxiliary directory. The problem is that $srcdir (and
287 # therefore $ac_aux_dir as well) can be either absolute or relative,
288 # depending on how configure is run. This is pretty annoying, since
289 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
290 # source directory, any form will work fine, but in subdirectories a
291 # relative path needs to be adjusted first.
292 #
293 # $ac_aux_dir/missing
294 # fails when called from a subdirectory if $ac_aux_dir is relative
295 # $top_srcdir/$ac_aux_dir/missing
296 # fails if $ac_aux_dir is absolute,
297 # fails when called from a subdirectory in a VPATH build with
298 # a relative $ac_aux_dir
299 #
300 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
301 # are both prefixed by $srcdir. In an in-source build this is usually
302 # harmless because $srcdir is '.', but things will broke when you
303 # start a VPATH build or use an absolute $srcdir.
304 #
305 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
306 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
307 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
308 # and then we would define $MISSING as
309 # MISSING="\${SHELL} $am_aux_dir/missing"
310 # This will work as long as MISSING is not called from configure, because
311 # unfortunately $(top_srcdir) has no meaning in configure.
312 # However there are other variables, like CC, which are often used in
313 # configure, and could therefore not use this "fixed" $ac_aux_dir.
314 #
315 # Another solution, used here, is to always expand $ac_aux_dir to an
316 # absolute PATH. The drawback is that using absolute paths prevent a
317 # configured tree to be moved without reconfiguration.
318
319 AC_DEFUN([AM_AUX_DIR_EXPAND],
320 [dnl Rely on autoconf to set up CDPATH properly.
321 AC_PREREQ([2.50])dnl
322 # expand $ac_aux_dir to an absolute path
323 am_aux_dir=`cd $ac_aux_dir && pwd`
324 ])
325
326 # AM_CONDITIONAL -*- Autoconf -*-
327
328 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
329 #
330 # This file is free software; the Free Software Foundation
331 # gives unlimited permission to copy and/or distribute it,
332 # with or without modifications, as long as this notice is preserved.
333
334 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
335 # -------------------------------------
336 # Define a conditional.
337 AC_DEFUN([AM_CONDITIONAL],
338 [AC_PREREQ([2.52])dnl
339 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
340 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
341 AC_SUBST([$1_TRUE])dnl
342 AC_SUBST([$1_FALSE])dnl
343 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
344 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
345 m4_define([_AM_COND_VALUE_$1], [$2])dnl
346 if $2; then
347 $1_TRUE=
348 $1_FALSE='#'
349 else
350 $1_TRUE='#'
351 $1_FALSE=
352 fi
353 AC_CONFIG_COMMANDS_PRE(
354 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
355 AC_MSG_ERROR([[conditional "$1" was never defined.
356 Usually this means the macro was only invoked conditionally.]])
357 fi])])
358
359 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
360 #
361 # This file is free software; the Free Software Foundation
362 # gives unlimited permission to copy and/or distribute it,
363 # with or without modifications, as long as this notice is preserved.
364
365
366 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
367 # written in clear, in which case automake, when reading aclocal.m4,
368 # will think it sees a *use*, and therefore will trigger all it's
369 # C support machinery. Also note that it means that autoscan, seeing
370 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
371
372
373 # _AM_DEPENDENCIES(NAME)
374 # ----------------------
375 # See how the compiler implements dependency checking.
376 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
377 # We try a few techniques and use that to set a single cache variable.
378 #
379 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
380 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
381 # dependency, and given that the user is not expected to run this macro,
382 # just rely on AC_PROG_CC.
383 AC_DEFUN([_AM_DEPENDENCIES],
384 [AC_REQUIRE([AM_SET_DEPDIR])dnl
385 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
386 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
387 AC_REQUIRE([AM_DEP_TRACK])dnl
388
389 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
390 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
391 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
392 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
393 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
394 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
395 [depcc="$$1" am_compiler_list=])
396
397 AC_CACHE_CHECK([dependency style of $depcc],
398 [am_cv_$1_dependencies_compiler_type],
399 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
400 # We make a subdir and do the tests there. Otherwise we can end up
401 # making bogus files that we don't know about and never remove. For
402 # instance it was reported that on HP-UX the gcc test will end up
403 # making a dummy file named 'D' -- because '-MD' means "put the output
404 # in D".
405 rm -rf conftest.dir
406 mkdir conftest.dir
407 # Copy depcomp to subdir because otherwise we won't find it if we're
408 # using a relative directory.
409 cp "$am_depcomp" conftest.dir
410 cd conftest.dir
411 # We will build objects and dependencies in a subdirectory because
412 # it helps to detect inapplicable dependency modes. For instance
413 # both Tru64's cc and ICC support -MD to output dependencies as a
414 # side effect of compilation, but ICC will put the dependencies in
415 # the current directory while Tru64 will put them in the object
416 # directory.
417 mkdir sub
418
419 am_cv_$1_dependencies_compiler_type=none
420 if test "$am_compiler_list" = ""; then
421 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
422 fi
423 am__universal=false
424 m4_case([$1], [CC],
425 [case " $depcc " in #(
426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
427 esac],
428 [CXX],
429 [case " $depcc " in #(
430 *\ -arch\ *\ -arch\ *) am__universal=true ;;
431 esac])
432
433 for depmode in $am_compiler_list; do
434 # Setup a source with many dependencies, because some compilers
435 # like to wrap large dependency lists on column 80 (with \), and
436 # we should not choose a depcomp mode which is confused by this.
437 #
438 # We need to recreate these files for each test, as the compiler may
439 # overwrite some of them when testing with obscure command lines.
440 # This happens at least with the AIX C compiler.
441 : > sub/conftest.c
442 for i in 1 2 3 4 5 6; do
443 echo '#include "conftst'$i'.h"' >> sub/conftest.c
444 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
445 # Solaris 10 /bin/sh.
446 echo '/* dummy */' > sub/conftst$i.h
447 done
448 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
449
450 # We check with '-c' and '-o' for the sake of the "dashmstdout"
451 # mode. It turns out that the SunPro C++ compiler does not properly
452 # handle '-M -o', and we need to detect this. Also, some Intel
453 # versions had trouble with output in subdirs.
454 am__obj=sub/conftest.${OBJEXT-o}
455 am__minus_obj="-o $am__obj"
456 case $depmode in
457 gcc)
458 # This depmode causes a compiler race in universal mode.
459 test "$am__universal" = false || continue
460 ;;
461 nosideeffect)
462 # After this tag, mechanisms are not by side-effect, so they'll
463 # only be used when explicitly requested.
464 if test "x$enable_dependency_tracking" = xyes; then
465 continue
466 else
467 break
468 fi
469 ;;
470 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
471 # This compiler won't grok '-c -o', but also, the minuso test has
472 # not run yet. These depmodes are late enough in the game, and
473 # so weak that their functioning should not be impacted.
474 am__obj=conftest.${OBJEXT-o}
475 am__minus_obj=
476 ;;
477 none) break ;;
478 esac
479 if depmode=$depmode \
480 source=sub/conftest.c object=$am__obj \
481 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
482 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
483 >/dev/null 2>conftest.err &&
484 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
485 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
486 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
487 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
488 # icc doesn't choke on unknown options, it will just issue warnings
489 # or remarks (even with -Werror). So we grep stderr for any message
490 # that says an option was ignored or not supported.
491 # When given -MP, icc 7.0 and 7.1 complain thusly:
492 # icc: Command line warning: ignoring option '-M'; no argument required
493 # The diagnosis changed in icc 8.0:
494 # icc: Command line remark: option '-MP' not supported
495 if (grep 'ignoring option' conftest.err ||
496 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
497 am_cv_$1_dependencies_compiler_type=$depmode
498 break
499 fi
500 fi
501 done
502
503 cd ..
504 rm -rf conftest.dir
505 else
506 am_cv_$1_dependencies_compiler_type=none
507 fi
508 ])
509 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
510 AM_CONDITIONAL([am__fastdep$1], [
511 test "x$enable_dependency_tracking" != xno \
512 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
513 ])
514
515
516 # AM_SET_DEPDIR
517 # -------------
518 # Choose a directory name for dependency files.
519 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
520 AC_DEFUN([AM_SET_DEPDIR],
521 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
522 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
523 ])
524
525
526 # AM_DEP_TRACK
527 # ------------
528 AC_DEFUN([AM_DEP_TRACK],
529 [AC_ARG_ENABLE([dependency-tracking], [dnl
530 AS_HELP_STRING(
531 [--enable-dependency-tracking],
532 [do not reject slow dependency extractors])
533 AS_HELP_STRING(
534 [--disable-dependency-tracking],
535 [speeds up one-time build])])
536 if test "x$enable_dependency_tracking" != xno; then
537 am_depcomp="$ac_aux_dir/depcomp"
538 AMDEPBACKSLASH='\'
539 am__nodep='_no'
540 fi
541 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
542 AC_SUBST([AMDEPBACKSLASH])dnl
543 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
544 AC_SUBST([am__nodep])dnl
545 _AM_SUBST_NOTMAKE([am__nodep])dnl
546 ])
547
548 # Generate code to set up dependency tracking. -*- Autoconf -*-
549
550 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
551 #
552 # This file is free software; the Free Software Foundation
553 # gives unlimited permission to copy and/or distribute it,
554 # with or without modifications, as long as this notice is preserved.
555
556
557 # _AM_OUTPUT_DEPENDENCY_COMMANDS
558 # ------------------------------
559 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
560 [{
561 # Older Autoconf quotes --file arguments for eval, but not when files
562 # are listed without --file. Let's play safe and only enable the eval
563 # if we detect the quoting.
564 case $CONFIG_FILES in
565 *\'*) eval set x "$CONFIG_FILES" ;;
566 *) set x $CONFIG_FILES ;;
567 esac
568 shift
569 for mf
570 do
571 # Strip MF so we end up with the name of the file.
572 mf=`echo "$mf" | sed -e 's/:.*$//'`
573 # Check whether this is an Automake generated Makefile or not.
574 # We used to match only the files named 'Makefile.in', but
575 # some people rename them; so instead we look at the file content.
576 # Grep'ing the first line is not enough: some people post-process
577 # each Makefile.in and add a new line on top of each file to say so.
578 # Grep'ing the whole file is not good either: AIX grep has a line
579 # limit of 2048, but all sed's we know have understand at least 4000.
580 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
581 dirpart=`AS_DIRNAME("$mf")`
582 else
583 continue
584 fi
585 # Extract the definition of DEPDIR, am__include, and am__quote
586 # from the Makefile without running 'make'.
587 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
588 test -z "$DEPDIR" && continue
589 am__include=`sed -n 's/^am__include = //p' < "$mf"`
590 test -z "$am__include" && continue
591 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
592 # Find all dependency output files, they are included files with
593 # $(DEPDIR) in their names. We invoke sed twice because it is the
594 # simplest approach to changing $(DEPDIR) to its actual value in the
595 # expansion.
596 for file in `sed -n "
597 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
598 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
599 # Make sure the directory exists.
600 test -f "$dirpart/$file" && continue
601 fdir=`AS_DIRNAME(["$file"])`
602 AS_MKDIR_P([$dirpart/$fdir])
603 # echo "creating $dirpart/$file"
604 echo '# dummy' > "$dirpart/$file"
605 done
606 done
607 }
608 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
609
610
611 # AM_OUTPUT_DEPENDENCY_COMMANDS
612 # -----------------------------
613 # This macro should only be invoked once -- use via AC_REQUIRE.
614 #
615 # This code is only required when automatic dependency tracking
616 # is enabled. FIXME. This creates each '.P' file that we will
617 # need in order to bootstrap the dependency handling code.
618 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
619 [AC_CONFIG_COMMANDS([depfiles],
620 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
621 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
622 ])
623
624 # Do all the work for Automake. -*- Autoconf -*-
625
626 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
627 #
628 # This file is free software; the Free Software Foundation
629 # gives unlimited permission to copy and/or distribute it,
630 # with or without modifications, as long as this notice is preserved.
631
632 # This macro actually does too much. Some checks are only needed if
633 # your package does certain things. But this isn't really a big deal.
634
635 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
636 m4_define([AC_PROG_CC],
637 m4_defn([AC_PROG_CC])
638 [_AM_PROG_CC_C_O
639 ])
640
641 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
642 # AM_INIT_AUTOMAKE([OPTIONS])
643 # -----------------------------------------------
644 # The call with PACKAGE and VERSION arguments is the old style
645 # call (pre autoconf-2.50), which is being phased out. PACKAGE
646 # and VERSION should now be passed to AC_INIT and removed from
647 # the call to AM_INIT_AUTOMAKE.
648 # We support both call styles for the transition. After
649 # the next Automake release, Autoconf can make the AC_INIT
650 # arguments mandatory, and then we can depend on a new Autoconf
651 # release and drop the old call support.
652 AC_DEFUN([AM_INIT_AUTOMAKE],
653 [AC_PREREQ([2.65])dnl
654 dnl Autoconf wants to disallow AM_ names. We explicitly allow
655 dnl the ones we care about.
656 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
657 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
658 AC_REQUIRE([AC_PROG_INSTALL])dnl
659 if test "`cd $srcdir && pwd`" != "`pwd`"; then
660 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
661 # is not polluted with repeated "-I."
662 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
663 # test to see if srcdir already configured
664 if test -f $srcdir/config.status; then
665 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
666 fi
667 fi
668
669 # test whether we have cygpath
670 if test -z "$CYGPATH_W"; then
671 if (cygpath --version) >/dev/null 2>/dev/null; then
672 CYGPATH_W='cygpath -w'
673 else
674 CYGPATH_W=echo
675 fi
676 fi
677 AC_SUBST([CYGPATH_W])
678
679 # Define the identity of the package.
680 dnl Distinguish between old-style and new-style calls.
681 m4_ifval([$2],
682 [AC_DIAGNOSE([obsolete],
683 [$0: two- and three-arguments forms are deprecated.])
684 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
685 AC_SUBST([PACKAGE], [$1])dnl
686 AC_SUBST([VERSION], [$2])],
687 [_AM_SET_OPTIONS([$1])dnl
688 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
689 m4_if(
690 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
691 [ok:ok],,
692 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
693 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
694 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
695
696 _AM_IF_OPTION([no-define],,
697 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
698 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
699
700 # Some tools Automake needs.
701 AC_REQUIRE([AM_SANITY_CHECK])dnl
702 AC_REQUIRE([AC_ARG_PROGRAM])dnl
703 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
704 AM_MISSING_PROG([AUTOCONF], [autoconf])
705 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
706 AM_MISSING_PROG([AUTOHEADER], [autoheader])
707 AM_MISSING_PROG([MAKEINFO], [makeinfo])
708 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
709 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
710 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
711 # For better backward compatibility. To be removed once Automake 1.9.x
712 # dies out for good. For more background, see:
713 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
714 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
715 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
716 # We need awk for the "check" target. The system "awk" is bad on
717 # some platforms.
718 AC_REQUIRE([AC_PROG_AWK])dnl
719 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
720 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
721 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
722 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
723 [_AM_PROG_TAR([v7])])])
724 _AM_IF_OPTION([no-dependencies],,
725 [AC_PROVIDE_IFELSE([AC_PROG_CC],
726 [_AM_DEPENDENCIES([CC])],
727 [m4_define([AC_PROG_CC],
728 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
729 AC_PROVIDE_IFELSE([AC_PROG_CXX],
730 [_AM_DEPENDENCIES([CXX])],
731 [m4_define([AC_PROG_CXX],
732 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
733 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
734 [_AM_DEPENDENCIES([OBJC])],
735 [m4_define([AC_PROG_OBJC],
736 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
737 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
738 [_AM_DEPENDENCIES([OBJCXX])],
739 [m4_define([AC_PROG_OBJCXX],
740 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
741 ])
742 AC_REQUIRE([AM_SILENT_RULES])dnl
743 dnl The testsuite driver may need to know about EXEEXT, so add the
744 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
745 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
746 AC_CONFIG_COMMANDS_PRE(dnl
747 [m4_provide_if([_AM_COMPILER_EXEEXT],
748 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
749
750 # POSIX will say in a future version that running "rm -f" with no argument
751 # is OK; and we want to be able to make that assumption in our Makefile
752 # recipes. So use an aggressive probe to check that the usage we want is
753 # actually supported "in the wild" to an acceptable degree.
754 # See automake bug#10828.
755 # To make any issue more visible, cause the running configure to be aborted
756 # by default if the 'rm' program in use doesn't match our expectations; the
757 # user can still override this though.
758 if rm -f && rm -fr && rm -rf; then : OK; else
759 cat >&2 <<'END'
760 Oops!
761
762 Your 'rm' program seems unable to run without file operands specified
763 on the command line, even when the '-f' option is present. This is contrary
764 to the behaviour of most rm programs out there, and not conforming with
765 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
766
767 Please tell bug-automake@gnu.org about your system, including the value
768 of your $PATH and any error possibly output before this message. This
769 can help us improve future automake versions.
770
771 END
772 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
773 echo 'Configuration will proceed anyway, since you have set the' >&2
774 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
775 echo >&2
776 else
777 cat >&2 <<'END'
778 Aborting the configuration process, to ensure you take notice of the issue.
779
780 You can download and install GNU coreutils to get an 'rm' implementation
781 that behaves properly: <http://www.gnu.org/software/coreutils/>.
782
783 If you want to complete the configuration process using your problematic
784 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
785 to "yes", and re-run configure.
786
787 END
788 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
789 fi
790 fi])
791
792 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
793 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
794 dnl mangled by Autoconf and run in a shell conditional statement.
795 m4_define([_AC_COMPILER_EXEEXT],
796 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
797
798 # When config.status generates a header, we must update the stamp-h file.
799 # This file resides in the same directory as the config header
800 # that is generated. The stamp files are numbered to have different names.
801
802 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
803 # loop where config.status creates the headers, so we can generate
804 # our stamp files there.
805 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
806 [# Compute $1's index in $config_headers.
807 _am_arg=$1
808 _am_stamp_count=1
809 for _am_header in $config_headers :; do
810 case $_am_header in
811 $_am_arg | $_am_arg:* )
812 break ;;
813 * )
814 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
815 esac
816 done
817 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
818
819 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
820 #
821 # This file is free software; the Free Software Foundation
822 # gives unlimited permission to copy and/or distribute it,
823 # with or without modifications, as long as this notice is preserved.
824
825 # AM_PROG_INSTALL_SH
826 # ------------------
827 # Define $install_sh.
828 AC_DEFUN([AM_PROG_INSTALL_SH],
829 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
830 if test x"${install_sh}" != xset; then
831 case $am_aux_dir in
832 *\ * | *\ *)
833 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
834 *)
835 install_sh="\${SHELL} $am_aux_dir/install-sh"
836 esac
837 fi
838 AC_SUBST([install_sh])])
839
840 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
841 #
842 # This file is free software; the Free Software Foundation
843 # gives unlimited permission to copy and/or distribute it,
844 # with or without modifications, as long as this notice is preserved.
845
846 # Check whether the underlying file-system supports filenames
847 # with a leading dot. For instance MS-DOS doesn't.
848 AC_DEFUN([AM_SET_LEADING_DOT],
849 [rm -rf .tst 2>/dev/null
850 mkdir .tst 2>/dev/null
851 if test -d .tst; then
852 am__leading_dot=.
853 else
854 am__leading_dot=_
855 fi
856 rmdir .tst 2>/dev/null
857 AC_SUBST([am__leading_dot])])
858
859 # Check to see how 'make' treats includes. -*- Autoconf -*-
860
861 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
862 #
863 # This file is free software; the Free Software Foundation
864 # gives unlimited permission to copy and/or distribute it,
865 # with or without modifications, as long as this notice is preserved.
866
867 # AM_MAKE_INCLUDE()
868 # -----------------
869 # Check to see how make treats includes.
870 AC_DEFUN([AM_MAKE_INCLUDE],
871 [am_make=${MAKE-make}
872 cat > confinc << 'END'
873 am__doit:
874 @echo this is the am__doit target
875 .PHONY: am__doit
876 END
877 # If we don't find an include directive, just comment out the code.
878 AC_MSG_CHECKING([for style of include used by $am_make])
879 am__include="#"
880 am__quote=
881 _am_result=none
882 # First try GNU make style include.
883 echo "include confinc" > confmf
884 # Ignore all kinds of additional output from 'make'.
885 case `$am_make -s -f confmf 2> /dev/null` in #(
886 *the\ am__doit\ target*)
887 am__include=include
888 am__quote=
889 _am_result=GNU
890 ;;
891 esac
892 # Now try BSD make style include.
893 if test "$am__include" = "#"; then
894 echo '.include "confinc"' > confmf
895 case `$am_make -s -f confmf 2> /dev/null` in #(
896 *the\ am__doit\ target*)
897 am__include=.include
898 am__quote="\""
899 _am_result=BSD
900 ;;
901 esac
902 fi
903 AC_SUBST([am__include])
904 AC_SUBST([am__quote])
905 AC_MSG_RESULT([$_am_result])
906 rm -f confinc confmf
907 ])
908
909 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
910
911 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
912 #
913 # This file is free software; the Free Software Foundation
914 # gives unlimited permission to copy and/or distribute it,
915 # with or without modifications, as long as this notice is preserved.
916
917 # AM_MISSING_PROG(NAME, PROGRAM)
918 # ------------------------------
919 AC_DEFUN([AM_MISSING_PROG],
920 [AC_REQUIRE([AM_MISSING_HAS_RUN])
921 $1=${$1-"${am_missing_run}$2"}
922 AC_SUBST($1)])
923
924 # AM_MISSING_HAS_RUN
925 # ------------------
926 # Define MISSING if not defined so far and test if it is modern enough.
927 # If it is, set am_missing_run to use it, otherwise, to nothing.
928 AC_DEFUN([AM_MISSING_HAS_RUN],
929 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
930 AC_REQUIRE_AUX_FILE([missing])dnl
931 if test x"${MISSING+set}" != xset; then
932 case $am_aux_dir in
933 *\ * | *\ *)
934 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
935 *)
936 MISSING="\${SHELL} $am_aux_dir/missing" ;;
937 esac
938 fi
939 # Use eval to expand $SHELL
940 if eval "$MISSING --is-lightweight"; then
941 am_missing_run="$MISSING "
942 else
943 am_missing_run=
944 AC_MSG_WARN(['missing' script is too old or missing])
945 fi
946 ])
947
948 # -*- Autoconf -*-
949 # Obsolete and "removed" macros, that must however still report explicit
950 # error messages when used, to smooth transition.
951 #
952 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
953 #
954 # This file is free software; the Free Software Foundation
955 # gives unlimited permission to copy and/or distribute it,
956 # with or without modifications, as long as this notice is preserved.
957
958 AC_DEFUN([AM_CONFIG_HEADER],
959 [AC_DIAGNOSE([obsolete],
960 ['$0': this macro is obsolete.
961 You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
962 AC_CONFIG_HEADERS($@)])
963
964 AC_DEFUN([AM_PROG_CC_STDC],
965 [AC_PROG_CC
966 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
967 AC_DIAGNOSE([obsolete],
968 ['$0': this macro is obsolete.
969 You should simply use the 'AC][_PROG_CC' macro instead.
970 Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
971 but upon 'ac_cv_prog_cc_stdc'.])])
972
973 AC_DEFUN([AM_C_PROTOTYPES],
974 [AC_FATAL([automatic de-ANSI-fication support has been removed])])
975 AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
976
977 # Helper functions for option handling. -*- Autoconf -*-
978
979 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
980 #
981 # This file is free software; the Free Software Foundation
982 # gives unlimited permission to copy and/or distribute it,
983 # with or without modifications, as long as this notice is preserved.
984
985 # _AM_MANGLE_OPTION(NAME)
986 # -----------------------
987 AC_DEFUN([_AM_MANGLE_OPTION],
988 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
989
990 # _AM_SET_OPTION(NAME)
991 # --------------------
992 # Set option NAME. Presently that only means defining a flag for this option.
993 AC_DEFUN([_AM_SET_OPTION],
994 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
995
996 # _AM_SET_OPTIONS(OPTIONS)
997 # ------------------------
998 # OPTIONS is a space-separated list of Automake options.
999 AC_DEFUN([_AM_SET_OPTIONS],
1000 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1001
1002 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1003 # -------------------------------------------
1004 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1005 AC_DEFUN([_AM_IF_OPTION],
1006 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1007
1008 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1009 #
1010 # This file is free software; the Free Software Foundation
1011 # gives unlimited permission to copy and/or distribute it,
1012 # with or without modifications, as long as this notice is preserved.
1013
1014 # _AM_PROG_CC_C_O
1015 # ---------------
1016 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1017 # to automatically call this.
1018 AC_DEFUN([_AM_PROG_CC_C_O],
1019 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1020 AC_REQUIRE_AUX_FILE([compile])dnl
1021 AC_LANG_PUSH([C])dnl
1022 AC_CACHE_CHECK(
1023 [whether $CC understands -c and -o together],
1024 [am_cv_prog_cc_c_o],
1025 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1026 # Make sure it works both with $CC and with simple cc.
1027 # Following AC_PROG_CC_C_O, we do the test twice because some
1028 # compilers refuse to overwrite an existing .o file with -o,
1029 # though they will create one.
1030 am_cv_prog_cc_c_o=yes
1031 for am_i in 1 2; do
1032 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1033 && test -f conftest2.$ac_objext; then
1034 : OK
1035 else
1036 am_cv_prog_cc_c_o=no
1037 break
1038 fi
1039 done
1040 rm -f core conftest*
1041 unset am_i])
1042 if test "$am_cv_prog_cc_c_o" != yes; then
1043 # Losing compiler, so override with the script.
1044 # FIXME: It is wrong to rewrite CC.
1045 # But if we don't then we get into trouble of one sort or another.
1046 # A longer-term fix would be to have automake use am__CC in this case,
1047 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1048 CC="$am_aux_dir/compile $CC"
1049 fi
1050 AC_LANG_POP([C])])
1051
1052 # For backward compatibility.
1053 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1054
1055 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1056 #
1057 # This file is free software; the Free Software Foundation
1058 # gives unlimited permission to copy and/or distribute it,
1059 # with or without modifications, as long as this notice is preserved.
1060
1061 # AM_RUN_LOG(COMMAND)
1062 # -------------------
1063 # Run COMMAND, save the exit status in ac_status, and log it.
1064 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1065 AC_DEFUN([AM_RUN_LOG],
1066 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1067 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1068 ac_status=$?
1069 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1070 (exit $ac_status); }])
1071
1072 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1073
1074 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1075 #
1076 # This file is free software; the Free Software Foundation
1077 # gives unlimited permission to copy and/or distribute it,
1078 # with or without modifications, as long as this notice is preserved.
1079
1080 # AM_SANITY_CHECK
1081 # ---------------
1082 AC_DEFUN([AM_SANITY_CHECK],
1083 [AC_MSG_CHECKING([whether build environment is sane])
1084 # Reject unsafe characters in $srcdir or the absolute working directory
1085 # name. Accept space and tab only in the latter.
1086 am_lf='
1087 '
1088 case `pwd` in
1089 *[[\\\"\#\$\&\'\`$am_lf]]*)
1090 AC_MSG_ERROR([unsafe absolute working directory name]);;
1091 esac
1092 case $srcdir in
1093 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1094 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1095 esac
1096
1097 # Do 'set' in a subshell so we don't clobber the current shell's
1098 # arguments. Must try -L first in case configure is actually a
1099 # symlink; some systems play weird games with the mod time of symlinks
1100 # (eg FreeBSD returns the mod time of the symlink's containing
1101 # directory).
1102 if (
1103 am_has_slept=no
1104 for am_try in 1 2; do
1105 echo "timestamp, slept: $am_has_slept" > conftest.file
1106 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1107 if test "$[*]" = "X"; then
1108 # -L didn't work.
1109 set X `ls -t "$srcdir/configure" conftest.file`
1110 fi
1111 if test "$[*]" != "X $srcdir/configure conftest.file" \
1112 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1113
1114 # If neither matched, then we have a broken ls. This can happen
1115 # if, for instance, CONFIG_SHELL is bash and it inherits a
1116 # broken ls alias from the environment. This has actually
1117 # happened. Such a system could not be considered "sane".
1118 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1119 alias in your environment])
1120 fi
1121 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1122 break
1123 fi
1124 # Just in case.
1125 sleep 1
1126 am_has_slept=yes
1127 done
1128 test "$[2]" = conftest.file
1129 )
1130 then
1131 # Ok.
1132 :
1133 else
1134 AC_MSG_ERROR([newly created file is older than distributed files!
1135 Check your system clock])
1136 fi
1137 AC_MSG_RESULT([yes])
1138 # If we didn't sleep, we still need to ensure time stamps of config.status and
1139 # generated files are strictly newer.
1140 am_sleep_pid=
1141 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1142 ( sleep 1 ) &
1143 am_sleep_pid=$!
1144 fi
1145 AC_CONFIG_COMMANDS_PRE(
1146 [AC_MSG_CHECKING([that generated files are newer than configure])
1147 if test -n "$am_sleep_pid"; then
1148 # Hide warnings about reused PIDs.
1149 wait $am_sleep_pid 2>/dev/null
1150 fi
1151 AC_MSG_RESULT([done])])
1152 rm -f conftest.file
1153 ])
1154
1155 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
1156 #
1157 # This file is free software; the Free Software Foundation
1158 # gives unlimited permission to copy and/or distribute it,
1159 # with or without modifications, as long as this notice is preserved.
1160
1161 # AM_SILENT_RULES([DEFAULT])
1162 # --------------------------
1163 # Enable less verbose build rules; with the default set to DEFAULT
1164 # ("yes" being less verbose, "no" or empty being verbose).
1165 AC_DEFUN([AM_SILENT_RULES],
1166 [AC_ARG_ENABLE([silent-rules], [dnl
1167 AS_HELP_STRING(
1168 [--enable-silent-rules],
1169 [less verbose build output (undo: "make V=1")])
1170 AS_HELP_STRING(
1171 [--disable-silent-rules],
1172 [verbose build output (undo: "make V=0")])dnl
1173 ])
1174 case $enable_silent_rules in @%:@ (((
1175 yes) AM_DEFAULT_VERBOSITY=0;;
1176 no) AM_DEFAULT_VERBOSITY=1;;
1177 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1178 esac
1179 dnl
1180 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1181 dnl do not support nested variable expansions.
1182 dnl See automake bug#9928 and bug#10237.
1183 am_make=${MAKE-make}
1184 AC_CACHE_CHECK([whether $am_make supports nested variables],
1185 [am_cv_make_support_nested_variables],
1186 [if AS_ECHO([['TRUE=$(BAR$(V))
1187 BAR0=false
1188 BAR1=true
1189 V=1
1190 am__doit:
1191 @$(TRUE)
1192 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1193 am_cv_make_support_nested_variables=yes
1194 else
1195 am_cv_make_support_nested_variables=no
1196 fi])
1197 if test $am_cv_make_support_nested_variables = yes; then
1198 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1199 AM_V='$(V)'
1200 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1201 else
1202 AM_V=$AM_DEFAULT_VERBOSITY
1203 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1204 fi
1205 AC_SUBST([AM_V])dnl
1206 AM_SUBST_NOTMAKE([AM_V])dnl
1207 AC_SUBST([AM_DEFAULT_V])dnl
1208 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1209 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1210 AM_BACKSLASH='\'
1211 AC_SUBST([AM_BACKSLASH])dnl
1212 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1213 ])
1214
1215 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1216 #
1217 # This file is free software; the Free Software Foundation
1218 # gives unlimited permission to copy and/or distribute it,
1219 # with or without modifications, as long as this notice is preserved.
1220
1221 # AM_PROG_INSTALL_STRIP
1222 # ---------------------
1223 # One issue with vendor 'install' (even GNU) is that you can't
1224 # specify the program used to strip binaries. This is especially
1225 # annoying in cross-compiling environments, where the build's strip
1226 # is unlikely to handle the host's binaries.
1227 # Fortunately install-sh will honor a STRIPPROG variable, so we
1228 # always use install-sh in "make install-strip", and initialize
1229 # STRIPPROG with the value of the STRIP variable (set by the user).
1230 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1231 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1232 # Installed binaries are usually stripped using 'strip' when the user
1233 # run "make install-strip". However 'strip' might not be the right
1234 # tool to use in cross-compilation environments, therefore Automake
1235 # will honor the 'STRIP' environment variable to overrule this program.
1236 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1237 if test "$cross_compiling" != no; then
1238 AC_CHECK_TOOL([STRIP], [strip], :)
1239 fi
1240 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1241 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1242
1243 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1244 #
1245 # This file is free software; the Free Software Foundation
1246 # gives unlimited permission to copy and/or distribute it,
1247 # with or without modifications, as long as this notice is preserved.
1248
1249 # _AM_SUBST_NOTMAKE(VARIABLE)
1250 # ---------------------------
1251 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1252 # This macro is traced by Automake.
1253 AC_DEFUN([_AM_SUBST_NOTMAKE])
1254
1255 # AM_SUBST_NOTMAKE(VARIABLE)
1256 # --------------------------
1257 # Public sister of _AM_SUBST_NOTMAKE.
1258 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1259
1260 # Check how to create a tarball. -*- Autoconf -*-
1261
1262 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1263 #
1264 # This file is free software; the Free Software Foundation
1265 # gives unlimited permission to copy and/or distribute it,
1266 # with or without modifications, as long as this notice is preserved.
1267
1268 # _AM_PROG_TAR(FORMAT)
1269 # --------------------
1270 # Check how to create a tarball in format FORMAT.
1271 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1272 #
1273 # Substitute a variable $(am__tar) that is a command
1274 # writing to stdout a FORMAT-tarball containing the directory
1275 # $tardir.
1276 # tardir=directory && $(am__tar) > result.tar
1277 #
1278 # Substitute a variable $(am__untar) that extract such
1279 # a tarball read from stdin.
1280 # $(am__untar) < result.tar
1281 #
1282 AC_DEFUN([_AM_PROG_TAR],
1283 [# Always define AMTAR for backward compatibility. Yes, it's still used
1284 # in the wild :-( We should find a proper way to deprecate it ...
1285 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1286
1287 # We'll loop over all known methods to create a tar archive until one works.
1288 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1289
1290 m4_if([$1], [v7],
1291 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1292
1293 [m4_case([$1],
1294 [ustar],
1295 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1296 # There is notably a 21 bits limit for the UID and the GID. In fact,
1297 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1298 # and bug#13588).
1299 am_max_uid=2097151 # 2^21 - 1
1300 am_max_gid=$am_max_uid
1301 # The $UID and $GID variables are not portable, so we need to resort
1302 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1303 # below are definitely unexpected, so allow the users to see them
1304 # (that is, avoid stderr redirection).
1305 am_uid=`id -u || echo unknown`
1306 am_gid=`id -g || echo unknown`
1307 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1308 if test $am_uid -le $am_max_uid; then
1309 AC_MSG_RESULT([yes])
1310 else
1311 AC_MSG_RESULT([no])
1312 _am_tools=none
1313 fi
1314 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1315 if test $am_gid -le $am_max_gid; then
1316 AC_MSG_RESULT([yes])
1317 else
1318 AC_MSG_RESULT([no])
1319 _am_tools=none
1320 fi],
1321
1322 [pax],
1323 [],
1324
1325 [m4_fatal([Unknown tar format])])
1326
1327 AC_MSG_CHECKING([how to create a $1 tar archive])
1328
1329 # Go ahead even if we have the value already cached. We do so because we
1330 # need to set the values for the 'am__tar' and 'am__untar' variables.
1331 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1332
1333 for _am_tool in $_am_tools; do
1334 case $_am_tool in
1335 gnutar)
1336 for _am_tar in tar gnutar gtar; do
1337 AM_RUN_LOG([$_am_tar --version]) && break
1338 done
1339 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1340 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1341 am__untar="$_am_tar -xf -"
1342 ;;
1343 plaintar)
1344 # Must skip GNU tar: if it does not support --format= it doesn't create
1345 # ustar tarball either.
1346 (tar --version) >/dev/null 2>&1 && continue
1347 am__tar='tar chf - "$$tardir"'
1348 am__tar_='tar chf - "$tardir"'
1349 am__untar='tar xf -'
1350 ;;
1351 pax)
1352 am__tar='pax -L -x $1 -w "$$tardir"'
1353 am__tar_='pax -L -x $1 -w "$tardir"'
1354 am__untar='pax -r'
1355 ;;
1356 cpio)
1357 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1358 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1359 am__untar='cpio -i -H $1 -d'
1360 ;;
1361 none)
1362 am__tar=false
1363 am__tar_=false
1364 am__untar=false
1365 ;;
1366 esac
1367
1368 # If the value was cached, stop now. We just wanted to have am__tar
1369 # and am__untar set.
1370 test -n "${am_cv_prog_tar_$1}" && break
1371
1372 # tar/untar a dummy directory, and stop if the command works.
1373 rm -rf conftest.dir
1374 mkdir conftest.dir
1375 echo GrepMe > conftest.dir/file
1376 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1377 rm -rf conftest.dir
1378 if test -s conftest.tar; then
1379 AM_RUN_LOG([$am__untar <conftest.tar])
1380 AM_RUN_LOG([cat conftest.dir/file])
1381 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1382 fi
1383 done
1384 rm -rf conftest.dir
1385
1386 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1387 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1388
1389 AC_SUBST([am__tar])
1390 AC_SUBST([am__untar])
1391 ]) # _AM_PROG_TAR
1392
1393 m4_include([m4/libtool.m4])
1394 m4_include([m4/ltoptions.m4])
1395 m4_include([m4/ltsugar.m4])
1396 m4_include([m4/ltversion.m4])
1397 m4_include([m4/lt~obsolete.m4])
+0
-1
config.guess less more
0 /home/ardour/linux-i386/gtk/inst/share/automake-1.14/config.guess
+0
-107
config.h.in less more
0 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* Define to 1 if you have the <dlfcn.h> header file. */
3 #undef HAVE_DLFCN_H
4
5 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
6 #undef HAVE_DOPRNT
7
8 /* Define to 1 if you have the <errno.h> header file. */
9 #undef HAVE_ERRNO_H
10
11 /* Define to 1 if you have the `getcwd' function. */
12 #undef HAVE_GETCWD
13
14 /* Define to 1 if you have the <inttypes.h> header file. */
15 #undef HAVE_INTTYPES_H
16
17 /* Define to 1 if you have the <limits.h> header file. */
18 #undef HAVE_LIMITS_H
19
20 /* Define to 1 if you have the <memory.h> header file. */
21 #undef HAVE_MEMORY_H
22
23 /* Define to 1 if you have the <stdint.h> header file. */
24 #undef HAVE_STDINT_H
25
26 /* Define to 1 if you have the <stdlib.h> header file. */
27 #undef HAVE_STDLIB_H
28
29 /* Define to 1 if you have the `strcasecmp' function. */
30 #undef HAVE_STRCASECMP
31
32 /* Define to 1 if you have the `strchr' function. */
33 #undef HAVE_STRCHR
34
35 /* Define to 1 if you have the `strdup' function. */
36 #undef HAVE_STRDUP
37
38 /* Define to 1 if you have the `strerror' function. */
39 #undef HAVE_STRERROR
40
41 /* Define to 1 if you have the <strings.h> header file. */
42 #undef HAVE_STRINGS_H
43
44 /* Define to 1 if you have the <string.h> header file. */
45 #undef HAVE_STRING_H
46
47 /* Define to 1 if you have the `strncasecmp' function. */
48 #undef HAVE_STRNCASECMP
49
50 /* Define to 1 if you have the `strrchr' function. */
51 #undef HAVE_STRRCHR
52
53 /* Define to 1 if you have the <sys/stat.h> header file. */
54 #undef HAVE_SYS_STAT_H
55
56 /* Define to 1 if you have the <sys/types.h> header file. */
57 #undef HAVE_SYS_TYPES_H
58
59 /* Define to 1 if you have the <unistd.h> header file. */
60 #undef HAVE_UNISTD_H
61
62 /* Define to 1 if you have the `vprintf' function. */
63 #undef HAVE_VPRINTF
64
65 /* Define to the sub-directory in which libtool stores uninstalled libraries.
66 */
67 #undef LT_OBJDIR
68
69 /* Name of package */
70 #undef PACKAGE
71
72 /* Define to the address where bug reports for this package should be sent. */
73 #undef PACKAGE_BUGREPORT
74
75 /* Define to the full name of this package. */
76 #undef PACKAGE_NAME
77
78 /* Define to the full name and version of this package. */
79 #undef PACKAGE_STRING
80
81 /* Define to the one symbol short name of this package. */
82 #undef PACKAGE_TARNAME
83
84 /* Define to the home page for this package. */
85 #undef PACKAGE_URL
86
87 /* Define to the version of this package. */
88 #undef PACKAGE_VERSION
89
90 /* Define to 1 if you have the ANSI C header files. */
91 #undef STDC_HEADERS
92
93 /* Version number of package */
94 #undef VERSION
95
96 /* Define to empty if `const' does not conform to ANSI C. */
97 #undef const
98
99 /* Define to `__inline__' or `__inline' if that's what the C compiler
100 calls it, or to nothing if 'inline' is not supported under any name. */
101 #ifndef __cplusplus
102 #undef inline
103 #endif
104
105 /* Define to `unsigned int' if <sys/types.h> does not define. */
106 #undef size_t
+0
-1
config.sub less more
0 /home/ardour/linux-i386/gtk/inst/share/automake-1.14/config.sub
+0
-14461
configure less more
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69.
3 #
4 #
5 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
6 #
7 #
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## -------------------- ##
11 ## M4sh Initialization. ##
12 ## -------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17 emulate sh
18 NULLCMD=:
19 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in #(
25 *posix*) :
26 set -o posix ;; #(
27 *) :
28 ;;
29 esac
30 fi
31
32
33 as_nl='
34 '
35 export as_nl
36 # Printing a long string crashes Solaris 7 /usr/bin/printf.
37 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40 # Prefer a ksh shell builtin over an external printf program on Solaris,
41 # but without wasting forks for bash or zsh.
42 if test -z "$BASH_VERSION$ZSH_VERSION" \
43 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
44 as_echo='print -r --'
45 as_echo_n='print -rn --'
46 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='printf %s\n'
48 as_echo_n='printf %s'
49 else
50 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
52 as_echo_n='/usr/ucb/echo -n'
53 else
54 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
55 as_echo_n_body='eval
56 arg=$1;
57 case $arg in #(
58 *"$as_nl"*)
59 expr "X$arg" : "X\\(.*\\)$as_nl";
60 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61 esac;
62 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 '
64 export as_echo_n_body
65 as_echo_n='sh -c $as_echo_n_body as_echo'
66 fi
67 export as_echo_body
68 as_echo='sh -c $as_echo_body as_echo'
69 fi
70
71 # The user is always right.
72 if test "${PATH_SEPARATOR+set}" != set; then
73 PATH_SEPARATOR=:
74 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
75 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
76 PATH_SEPARATOR=';'
77 }
78 fi
79
80
81 # IFS
82 # We need space, tab and new line, in precisely that order. Quoting is
83 # there to prevent editors from complaining about space-tab.
84 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
85 # splitting by setting IFS to empty value.)
86 IFS=" "" $as_nl"
87
88 # Find who we are. Look in the path if we contain no directory separator.
89 as_myself=
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 # Use a proper internal environment variable to ensure we don't fall
135 # into an infinite loop, continuously re-executing ourselves.
136 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
137 _as_can_reexec=no; export _as_can_reexec;
138 # We cannot yet assume a decent shell, so we have to provide a
139 # neutralization value for shells without unset; and this also
140 # works around shells that cannot unset nonexistent variables.
141 # Preserve -v and -x to the replacement shell.
142 BASH_ENV=/dev/null
143 ENV=/dev/null
144 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
145 case $- in # ((((
146 *v*x* | *x*v* ) as_opts=-vx ;;
147 *v* ) as_opts=-v ;;
148 *x* ) as_opts=-x ;;
149 * ) as_opts= ;;
150 esac
151 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
152 # Admittedly, this is quite paranoid, since all the known shells bail
153 # out after a failed `exec'.
154 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
155 as_fn_exit 255
156 fi
157 # We don't want this to propagate to other subprocesses.
158 { _as_can_reexec=; unset _as_can_reexec;}
159 if test "x$CONFIG_SHELL" = x; then
160 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
161 emulate sh
162 NULLCMD=:
163 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
164 # is contrary to our usage. Disable this feature.
165 alias -g '\${1+\"\$@\"}'='\"\$@\"'
166 setopt NO_GLOB_SUBST
167 else
168 case \`(set -o) 2>/dev/null\` in #(
169 *posix*) :
170 set -o posix ;; #(
171 *) :
172 ;;
173 esac
174 fi
175 "
176 as_required="as_fn_return () { (exit \$1); }
177 as_fn_success () { as_fn_return 0; }
178 as_fn_failure () { as_fn_return 1; }
179 as_fn_ret_success () { return 0; }
180 as_fn_ret_failure () { return 1; }
181
182 exitcode=0
183 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
184 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
185 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
186 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
187 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
188
189 else
190 exitcode=1; echo positional parameters were not saved.
191 fi
192 test x\$exitcode = x0 || exit 1
193 test -x / || exit 1"
194 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
195 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
196 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
197 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
198
199 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
200 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
201 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 PATH=/empty FPATH=/empty; export PATH FPATH
204 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
205 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
206 test \$(( 1 + 1 )) = 2 || exit 1"
207 if (eval "$as_required") 2>/dev/null; then :
208 as_have_required=yes
209 else
210 as_have_required=no
211 fi
212 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
213
214 else
215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
216 as_found=false
217 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
218 do
219 IFS=$as_save_IFS
220 test -z "$as_dir" && as_dir=.
221 as_found=:
222 case $as_dir in #(
223 /*)
224 for as_base in sh bash ksh sh5; do
225 # Try only shells that exist, to save several forks.
226 as_shell=$as_dir/$as_base
227 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
228 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
229 CONFIG_SHELL=$as_shell as_have_required=yes
230 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 break 2
232 fi
233 fi
234 done;;
235 esac
236 as_found=false
237 done
238 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
239 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi; }
242 IFS=$as_save_IFS
243
244
245 if test "x$CONFIG_SHELL" != x; then :
246 export CONFIG_SHELL
247 # We cannot yet assume a decent shell, so we have to provide a
248 # neutralization value for shells without unset; and this also
249 # works around shells that cannot unset nonexistent variables.
250 # Preserve -v and -x to the replacement shell.
251 BASH_ENV=/dev/null
252 ENV=/dev/null
253 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
254 case $- in # ((((
255 *v*x* | *x*v* ) as_opts=-vx ;;
256 *v* ) as_opts=-v ;;
257 *x* ) as_opts=-x ;;
258 * ) as_opts= ;;
259 esac
260 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
261 # Admittedly, this is quite paranoid, since all the known shells bail
262 # out after a failed `exec'.
263 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264 exit 255
265 fi
266
267 if test x$as_have_required = xno; then :
268 $as_echo "$0: This script requires a shell more modern than all"
269 $as_echo "$0: the shells that I found on your system."
270 if test x${ZSH_VERSION+set} = xset ; then
271 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
272 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
273 else
274 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
275 $0: including any error possibly output before this
276 $0: message. Then install a modern shell, or manually run
277 $0: the script under such a shell if you do have one."
278 fi
279 exit 1
280 fi
281 fi
282 fi
283 SHELL=${CONFIG_SHELL-/bin/sh}
284 export SHELL
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE= GREP_OPTIONS=
287 unset CLICOLOR_FORCE GREP_OPTIONS
288
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
292 # as_fn_unset VAR
293 # ---------------
294 # Portably unset VAR.
295 as_fn_unset ()
296 {
297 { eval $1=; unset $1;}
298 }
299 as_unset=as_fn_unset
300
301 # as_fn_set_status STATUS
302 # -----------------------
303 # Set $? to STATUS, without forking.
304 as_fn_set_status ()
305 {
306 return $1
307 } # as_fn_set_status
308
309 # as_fn_exit STATUS
310 # -----------------
311 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
312 as_fn_exit ()
313 {
314 set +e
315 as_fn_set_status $1
316 exit $1
317 } # as_fn_exit
318
319 # as_fn_mkdir_p
320 # -------------
321 # Create "$as_dir" as a directory, including parents if necessary.
322 as_fn_mkdir_p ()
323 {
324
325 case $as_dir in #(
326 -*) as_dir=./$as_dir;;
327 esac
328 test -d "$as_dir" || eval $as_mkdir_p || {
329 as_dirs=
330 while :; do
331 case $as_dir in #(
332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 *) as_qdir=$as_dir;;
334 esac
335 as_dirs="'$as_qdir' $as_dirs"
336 as_dir=`$as_dirname -- "$as_dir" ||
337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
338 X"$as_dir" : 'X\(//\)[^/]' \| \
339 X"$as_dir" : 'X\(//\)$' \| \
340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
341 $as_echo X"$as_dir" |
342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)[^/].*/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)$/{
351 s//\1/
352 q
353 }
354 /^X\(\/\).*/{
355 s//\1/
356 q
357 }
358 s/.*/./; q'`
359 test -d "$as_dir" && break
360 done
361 test -z "$as_dirs" || eval "mkdir $as_dirs"
362 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363
364
365 } # as_fn_mkdir_p
366
367 # as_fn_executable_p FILE
368 # -----------------------
369 # Test if FILE is an executable regular file.
370 as_fn_executable_p ()
371 {
372 test -f "$1" && test -x "$1"
373 } # as_fn_executable_p
374 # as_fn_append VAR VALUE
375 # ----------------------
376 # Append the text in VALUE to the end of the definition contained in VAR. Take
377 # advantage of any shell optimizations that allow amortized linear growth over
378 # repeated appends, instead of the typical quadratic growth present in naive
379 # implementations.
380 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
381 eval 'as_fn_append ()
382 {
383 eval $1+=\$2
384 }'
385 else
386 as_fn_append ()
387 {
388 eval $1=\$$1\$2
389 }
390 fi # as_fn_append
391
392 # as_fn_arith ARG...
393 # ------------------
394 # Perform arithmetic evaluation on the ARGs, and store the result in the
395 # global $as_val. Take advantage of shells that can avoid forks. The arguments
396 # must be portable across $(()) and expr.
397 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 eval 'as_fn_arith ()
399 {
400 as_val=$(( $* ))
401 }'
402 else
403 as_fn_arith ()
404 {
405 as_val=`expr "$@" || test $? -eq 1`
406 }
407 fi # as_fn_arith
408
409
410 # as_fn_error STATUS ERROR [LINENO LOG_FD]
411 # ----------------------------------------
412 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
413 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
414 # script with STATUS, using 1 if that was 0.
415 as_fn_error ()
416 {
417 as_status=$1; test $as_status -eq 0 && as_status=1
418 if test "$4"; then
419 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
421 fi
422 $as_echo "$as_me: error: $2" >&2
423 as_fn_exit $as_status
424 } # as_fn_error
425
426 if expr a : '\(a\)' >/dev/null 2>&1 &&
427 test "X`expr 00001 : '.*\(...\)'`" = X001; then
428 as_expr=expr
429 else
430 as_expr=false
431 fi
432
433 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
434 as_basename=basename
435 else
436 as_basename=false
437 fi
438
439 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
440 as_dirname=dirname
441 else
442 as_dirname=false
443 fi
444
445 as_me=`$as_basename -- "$0" ||
446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
447 X"$0" : 'X\(//\)$' \| \
448 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
449 $as_echo X/"$0" |
450 sed '/^.*\/\([^/][^/]*\)\/*$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\/\)$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\).*/{
459 s//\1/
460 q
461 }
462 s/.*/./; q'`
463
464 # Avoid depending upon Character Ranges.
465 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
466 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
467 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
468 as_cr_digits='0123456789'
469 as_cr_alnum=$as_cr_Letters$as_cr_digits
470
471
472 as_lineno_1=$LINENO as_lineno_1a=$LINENO
473 as_lineno_2=$LINENO as_lineno_2a=$LINENO
474 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
475 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
476 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
477 sed -n '
478 p
479 /[$]LINENO/=
480 ' <$as_myself |
481 sed '
482 s/[$]LINENO.*/&-/
483 t lineno
484 b
485 :lineno
486 N
487 :loop
488 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
489 t loop
490 s/-\n.*//
491 ' >$as_me.lineno &&
492 chmod +x "$as_me.lineno" ||
493 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
494
495 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
496 # already done that, so ensure we don't try to do so again and fall
497 # in an infinite loop. This has already happened in practice.
498 _as_can_reexec=no; export _as_can_reexec
499 # Don't try to exec as it changes $[0], causing all sort of problems
500 # (the dirname of $[0] is not the place where we might find the
501 # original and so on. Autoconf is especially sensitive to this).
502 . "./$as_me.lineno"
503 # Exit status is that of the last command.
504 exit
505 }
506
507 ECHO_C= ECHO_N= ECHO_T=
508 case `echo -n x` in #(((((
509 -n*)
510 case `echo 'xy\c'` in
511 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
512 xy) ECHO_C='\c';;
513 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
514 ECHO_T=' ';;
515 esac;;
516 *)
517 ECHO_N='-n';;
518 esac
519
520 rm -f conf$$ conf$$.exe conf$$.file
521 if test -d conf$$.dir; then
522 rm -f conf$$.dir/conf$$.file
523 else
524 rm -f conf$$.dir
525 mkdir conf$$.dir 2>/dev/null
526 fi
527 if (echo >conf$$.file) 2>/dev/null; then
528 if ln -s conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s='ln -s'
530 # ... but there are two gotchas:
531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
533 # In both cases, we have to default to `cp -pR'.
534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
535 as_ln_s='cp -pR'
536 elif ln conf$$.file conf$$ 2>/dev/null; then
537 as_ln_s=ln
538 else
539 as_ln_s='cp -pR'
540 fi
541 else
542 as_ln_s='cp -pR'
543 fi
544 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
545 rmdir conf$$.dir 2>/dev/null
546
547 if mkdir -p . 2>/dev/null; then
548 as_mkdir_p='mkdir -p "$as_dir"'
549 else
550 test -d ./-p && rmdir ./-p
551 as_mkdir_p=false
552 fi
553
554 as_test_x='test -x'
555 as_executable_p=as_fn_executable_p
556
557 # Sed expression to map a string onto a valid CPP name.
558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
559
560 # Sed expression to map a string onto a valid variable name.
561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562
563 SHELL=${CONFIG_SHELL-/bin/sh}
564
565
566 test -n "$DJDIR" || exec 7<&0 </dev/null
567 exec 6>&1
568
569 # Name of the host.
570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
571 # so uname gets run too.
572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
573
574 #
575 # Initializations.
576 #
577 ac_default_prefix=/usr/local
578 ac_clean_files=
579 ac_config_libobj_dir=.
580 LIBOBJS=
581 cross_compiling=no
582 subdirs=
583 MFLAGS=
584 MAKEFLAGS=
585
586 # Identity of this package.
587 PACKAGE_NAME=
588 PACKAGE_TARNAME=
589 PACKAGE_VERSION=
590 PACKAGE_STRING=
591 PACKAGE_BUGREPORT=
592 PACKAGE_URL=
593
594 ac_unique_file="src/lrdf.c"
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 LRDF_LIBTOOL_VERSION
636 AM_CFLAGS
637 RAPTOR_LIBS
638 RAPTOR_CFLAGS
639 PKG_CONFIG_LIBDIR
640 PKG_CONFIG_PATH
641 PKG_CONFIG
642 OTOOL64
643 OTOOL
644 LIPO
645 NMEDIT
646 DSYMUTIL
647 MANIFEST_TOOL
648 RANLIB
649 ac_ct_AR
650 AR
651 DLLTOOL
652 OBJDUMP
653 NM
654 ac_ct_DUMPBIN
655 DUMPBIN
656 LD
657 FGREP
658 EGREP
659 GREP
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 LN_S
671 CPP
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__quote
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
688 CC
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_silent_rules
758 enable_dependency_tracking
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_gnu_ld
764 with_sysroot
765 enable_libtool_lock
766 '
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP
776 PKG_CONFIG
777 PKG_CONFIG_PATH
778 PKG_CONFIG_LIBDIR
779 RAPTOR_CFLAGS
780 RAPTOR_LIBS'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
846 esac
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
878
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
911
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
1131
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 ;;
1187
1188 esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1209 do
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286 else
1287 ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures this package to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390
1391 cat <<\_ACEOF
1392
1393 Optional Features:
1394 --disable-option-checking ignore unrecognized --enable/--with options
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1397 --enable-silent-rules less verbose build output (undo: "make V=1")
1398 --disable-silent-rules verbose build output (undo: "make V=0")
1399 --enable-dependency-tracking
1400 do not reject slow dependency extractors
1401 --disable-dependency-tracking
1402 speeds up one-time build
1403 --enable-shared[=PKGS] build shared libraries [default=yes]
1404 --enable-static[=PKGS] build static libraries [default=yes]
1405 --enable-fast-install[=PKGS]
1406 optimize for fast installation [default=yes]
1407 --disable-libtool-lock avoid locking (might break parallel builds)
1408
1409 Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1413 both]
1414 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1415 --with-sysroot=DIR Search for dependent libraries within DIR
1416 (or the compiler's sysroot if not specified).
1417
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CPP C preprocessor
1427 PKG_CONFIG path to pkg-config utility
1428 PKG_CONFIG_PATH
1429 directories to add to pkg-config's search path
1430 PKG_CONFIG_LIBDIR
1431 path overriding pkg-config's built-in search path
1432 RAPTOR_CFLAGS
1433 C compiler flags for RAPTOR, overriding pkg-config
1434 RAPTOR_LIBS linker flags for RAPTOR, overriding pkg-config
1435
1436 Use these variables to override the choices made by `configure' or to help
1437 it to find libraries and programs with nonstandard names/locations.
1438
1439 Report bugs to the package provider.
1440 _ACEOF
1441 ac_status=$?
1442 fi
1443
1444 if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447 test -d "$ac_dir" ||
1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 continue
1450 ac_builddir=.
1451
1452 case "$ac_dir" in
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *)
1455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 esac ;;
1462 esac
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1467
1468 case $srcdir in
1469 .) # We are building in place.
1470 ac_srcdir=.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1477 *) # Relative name.
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 esac
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1492 else
1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 fi || ac_status=$?
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1496 done
1497 fi
1498
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1501 cat <<\_ACEOF
1502 configure
1503 generated by GNU Autoconf 2.69
1504
1505 Copyright (C) 2012 Free Software Foundation, Inc.
1506 This configure script is free software; the Free Software Foundation
1507 gives unlimited permission to copy, distribute and modify it.
1508 _ACEOF
1509 exit
1510 fi
1511
1512 ## ------------------------ ##
1513 ## Autoconf initialization. ##
1514 ## ------------------------ ##
1515
1516 # ac_fn_c_try_compile LINENO
1517 # --------------------------
1518 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_compile ()
1520 {
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 rm -f conftest.$ac_objext
1523 if { { ac_try="$ac_compile"
1524 case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527 esac
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_compile") 2>conftest.err
1531 ac_status=$?
1532 if test -s conftest.err; then
1533 grep -v '^ *+' conftest.err >conftest.er1
1534 cat conftest.er1 >&5
1535 mv -f conftest.er1 conftest.err
1536 fi
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && {
1539 test -z "$ac_c_werror_flag" ||
1540 test ! -s conftest.err
1541 } && test -s conftest.$ac_objext; then :
1542 ac_retval=0
1543 else
1544 $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=1
1548 fi
1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 as_fn_set_status $ac_retval
1551
1552 } # ac_fn_c_try_compile
1553
1554 # ac_fn_c_try_cpp LINENO
1555 # ----------------------
1556 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_cpp ()
1558 {
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 if { { ac_try="$ac_cpp conftest.$ac_ext"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } > conftest.i && {
1576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 }; then :
1579 ac_retval=0
1580 else
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585 fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1588
1589 } # ac_fn_c_try_cpp
1590
1591 # ac_fn_c_try_link LINENO
1592 # -----------------------
1593 # Try to link conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_link ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext conftest$ac_exeext
1598 if { { ac_try="$ac_link"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_link") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest$ac_exeext && {
1617 test "$cross_compiling" = yes ||
1618 test -x conftest$ac_exeext
1619 }; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1628 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1629 # interfere with the next link command; also delete a directory that is
1630 # left behind by Apple's compiler. We do this before executing the actions.
1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_link
1636
1637 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1638 # -------------------------------------------------------
1639 # Tests whether HEADER exists and can be compiled using the include files in
1640 # INCLUDES, setting the cache variable VAR accordingly.
1641 ac_fn_c_check_header_compile ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if eval \${$3+:} false; then :
1647 $as_echo_n "(cached) " >&6
1648 else
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1651 $4
1652 #include <$2>
1653 _ACEOF
1654 if ac_fn_c_try_compile "$LINENO"; then :
1655 eval "$3=yes"
1656 else
1657 eval "$3=no"
1658 fi
1659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660 fi
1661 eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665
1666 } # ac_fn_c_check_header_compile
1667
1668 # ac_fn_c_try_run LINENO
1669 # ----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1671 # that executables *can* be run.
1672 ac_fn_c_try_run ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_link"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>&5
1683 ac_status=$?
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1686 { { case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_try") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; }; }; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: program exited with status $ac_status" >&5
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=$ac_status
1703 fi
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_run
1709
1710 # ac_fn_c_check_func LINENO FUNC VAR
1711 # ----------------------------------
1712 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1713 ac_fn_c_check_func ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1720 else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1725 #define $2 innocuous_$2
1726
1727 /* System header to define __stub macros and hopefully few prototypes,
1728 which can conflict with char $2 (); below.
1729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1730 <limits.h> exists even on freestanding compilers. */
1731
1732 #ifdef __STDC__
1733 # include <limits.h>
1734 #else
1735 # include <assert.h>
1736 #endif
1737
1738 #undef $2
1739
1740 /* Override any GCC internal prototype to avoid an error.
1741 Use char because int might match the return type of a GCC
1742 builtin and then its argument prototype would still apply. */
1743 #ifdef __cplusplus
1744 extern "C"
1745 #endif
1746 char $2 ();
1747 /* The GNU C library defines this for functions which it implements
1748 to always fail with ENOSYS. Some functions are actually named
1749 something starting with __ and the normal name is an alias. */
1750 #if defined __stub_$2 || defined __stub___$2
1751 choke me
1752 #endif
1753
1754 int
1755 main ()
1756 {
1757 return $2 ();
1758 ;
1759 return 0;
1760 }
1761 _ACEOF
1762 if ac_fn_c_try_link "$LINENO"; then :
1763 eval "$3=yes"
1764 else
1765 eval "$3=no"
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext \
1768 conftest$ac_exeext conftest.$ac_ext
1769 fi
1770 eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775 } # ac_fn_c_check_func
1776
1777 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780 # the include files in INCLUDES and setting the cache variable VAR
1781 # accordingly.
1782 ac_fn_c_check_header_mongrel ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if eval \${$3+:} false; then :
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790 fi
1791 eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 else
1795 # Is the header compilable?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797 $as_echo_n "checking $2 usability... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 $4
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1805 else
1806 ac_header_compiler=no
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810 $as_echo "$ac_header_compiler" >&6; }
1811
1812 # Is the header present?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814 $as_echo_n "checking $2 presence... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1821 else
1822 ac_header_preproc=no
1823 fi
1824 rm -f conftest.err conftest.i conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826 $as_echo "$ac_header_preproc" >&6; }
1827
1828 # So? What about this header?
1829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830 yes:no: )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;;
1836 no:yes:* )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 ;;
1848 esac
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1853 else
1854 eval "$3=\$ac_header_compiler"
1855 fi
1856 eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 fi
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_header_mongrel
1863
1864 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1865 # -------------------------------------------
1866 # Tests whether TYPE exists after having included INCLUDES, setting cache
1867 # variable VAR accordingly.
1868 ac_fn_c_check_type ()
1869 {
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1875 else
1876 eval "$3=no"
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 $4
1880 int
1881 main ()
1882 {
1883 if (sizeof ($2))
1884 return 0;
1885 ;
1886 return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 $4
1893 int
1894 main ()
1895 {
1896 if (sizeof (($2)))
1897 return 0;
1898 ;
1899 return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903
1904 else
1905 eval "$3=yes"
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 fi
1911 eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1916 } # ac_fn_c_check_type
1917 cat >config.log <<_ACEOF
1918 This file contains any messages produced by compilers while
1919 running configure, to aid debugging if configure makes a mistake.
1920
1921 It was created by $as_me, which was
1922 generated by GNU Autoconf 2.69. Invocation command line was
1923
1924 $ $0 $@
1925
1926 _ACEOF
1927 exec 5>>config.log
1928 {
1929 cat <<_ASUNAME
1930 ## --------- ##
1931 ## Platform. ##
1932 ## --------- ##
1933
1934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1939
1940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1941 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1942
1943 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1944 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1946 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1947 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1948 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1949 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1950
1951 _ASUNAME
1952
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 $as_echo "PATH: $as_dir"
1959 done
1960 IFS=$as_save_IFS
1961
1962 } >&5
1963
1964 cat >&5 <<_ACEOF
1965
1966
1967 ## ----------- ##
1968 ## Core tests. ##
1969 ## ----------- ##
1970
1971 _ACEOF
1972
1973
1974 # Keep a trace of the command line.
1975 # Strip out --no-create and --no-recursion so they do not pile up.
1976 # Strip out --silent because we don't want to record it for future runs.
1977 # Also quote any args containing shell meta-characters.
1978 # Make two passes to allow for proper duplicate-argument suppression.
1979 ac_configure_args=
1980 ac_configure_args0=
1981 ac_configure_args1=
1982 ac_must_keep_next=false
1983 for ac_pass in 1 2
1984 do
1985 for ac_arg
1986 do
1987 case $ac_arg in
1988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1990 | -silent | --silent | --silen | --sile | --sil)
1991 continue ;;
1992 *\'*)
1993 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994 esac
1995 case $ac_pass in
1996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1997 2)
1998 as_fn_append ac_configure_args1 " '$ac_arg'"
1999 if test $ac_must_keep_next = true; then
2000 ac_must_keep_next=false # Got value, back to normal.
2001 else
2002 case $ac_arg in
2003 *=* | --config-cache | -C | -disable-* | --disable-* \
2004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2006 | -with-* | --with-* | -without-* | --without-* | --x)
2007 case "$ac_configure_args0 " in
2008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009 esac
2010 ;;
2011 -* ) ac_must_keep_next=true ;;
2012 esac
2013 fi
2014 as_fn_append ac_configure_args " '$ac_arg'"
2015 ;;
2016 esac
2017 done
2018 done
2019 { ac_configure_args0=; unset ac_configure_args0;}
2020 { ac_configure_args1=; unset ac_configure_args1;}
2021
2022 # When interrupted or exit'd, cleanup temporary files, and complete
2023 # config.log. We remove comments because anyway the quotes in there
2024 # would cause problems or look ugly.
2025 # WARNING: Use '\'' to represent an apostrophe within the trap.
2026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2027 trap 'exit_status=$?
2028 # Save into config.log some information that might help in debugging.
2029 {
2030 echo
2031
2032 $as_echo "## ---------------- ##
2033 ## Cache variables. ##
2034 ## ---------------- ##"
2035 echo
2036 # The following way of writing the cache mishandles newlines in values,
2037 (
2038 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in #(
2041 *${as_nl}*)
2042 case $ac_var in #(
2043 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2045 esac
2046 case $ac_var in #(
2047 _ | IFS | as_nl) ;; #(
2048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2049 *) { eval $ac_var=; unset $ac_var;} ;;
2050 esac ;;
2051 esac
2052 done
2053 (set) 2>&1 |
2054 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2055 *${as_nl}ac_space=\ *)
2056 sed -n \
2057 "s/'\''/'\''\\\\'\'''\''/g;
2058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2059 ;; #(
2060 *)
2061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2062 ;;
2063 esac |
2064 sort
2065 )
2066 echo
2067
2068 $as_echo "## ----------------- ##
2069 ## Output variables. ##
2070 ## ----------------- ##"
2071 echo
2072 for ac_var in $ac_subst_vars
2073 do
2074 eval ac_val=\$$ac_var
2075 case $ac_val in
2076 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077 esac
2078 $as_echo "$ac_var='\''$ac_val'\''"
2079 done | sort
2080 echo
2081
2082 if test -n "$ac_subst_files"; then
2083 $as_echo "## ------------------- ##
2084 ## File substitutions. ##
2085 ## ------------------- ##"
2086 echo
2087 for ac_var in $ac_subst_files
2088 do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in
2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 esac
2093 $as_echo "$ac_var='\''$ac_val'\''"
2094 done | sort
2095 echo
2096 fi
2097
2098 if test -s confdefs.h; then
2099 $as_echo "## ----------- ##
2100 ## confdefs.h. ##
2101 ## ----------- ##"
2102 echo
2103 cat confdefs.h
2104 echo
2105 fi
2106 test "$ac_signal" != 0 &&
2107 $as_echo "$as_me: caught signal $ac_signal"
2108 $as_echo "$as_me: exit $exit_status"
2109 } >&5
2110 rm -f core *.core core.conftest.* &&
2111 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2112 exit $exit_status
2113 ' 0
2114 for ac_signal in 1 2 13 15; do
2115 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2116 done
2117 ac_signal=0
2118
2119 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2120 rm -f -r conftest* confdefs.h
2121
2122 $as_echo "/* confdefs.h */" > confdefs.h
2123
2124 # Predefined preprocessor variables.
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_NAME "$PACKAGE_NAME"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2136 _ACEOF
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_STRING "$PACKAGE_STRING"
2140 _ACEOF
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2144 _ACEOF
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_URL "$PACKAGE_URL"
2148 _ACEOF
2149
2150
2151 # Let the site file select an alternate cache file if it wants to.
2152 # Prefer an explicitly selected file to automatically selected ones.
2153 ac_site_file1=NONE
2154 ac_site_file2=NONE
2155 if test -n "$CONFIG_SITE"; then
2156 # We do not want a PATH search for config.site.
2157 case $CONFIG_SITE in #((
2158 -*) ac_site_file1=./$CONFIG_SITE;;
2159 */*) ac_site_file1=$CONFIG_SITE;;
2160 *) ac_site_file1=./$CONFIG_SITE;;
2161 esac
2162 elif test "x$prefix" != xNONE; then
2163 ac_site_file1=$prefix/share/config.site
2164 ac_site_file2=$prefix/etc/config.site
2165 else
2166 ac_site_file1=$ac_default_prefix/share/config.site
2167 ac_site_file2=$ac_default_prefix/etc/config.site
2168 fi
2169 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2170 do
2171 test "x$ac_site_file" = xNONE && continue
2172 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2174 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2175 sed 's/^/| /' "$ac_site_file" >&5
2176 . "$ac_site_file" \
2177 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2179 as_fn_error $? "failed to load site script $ac_site_file
2180 See \`config.log' for more details" "$LINENO" 5; }
2181 fi
2182 done
2183
2184 if test -r "$cache_file"; then
2185 # Some versions of bash will fail to source /dev/null (special files
2186 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2187 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2189 $as_echo "$as_me: loading cache $cache_file" >&6;}
2190 case $cache_file in
2191 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2192 *) . "./$cache_file";;
2193 esac
2194 fi
2195 else
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2197 $as_echo "$as_me: creating cache $cache_file" >&6;}
2198 >$cache_file
2199 fi
2200
2201 # Check that the precious variables saved in the cache have kept the same
2202 # value.
2203 ac_cache_corrupted=false
2204 for ac_var in $ac_precious_vars; do
2205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2206 eval ac_new_set=\$ac_env_${ac_var}_set
2207 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2208 eval ac_new_val=\$ac_env_${ac_var}_value
2209 case $ac_old_set,$ac_new_set in
2210 set,)
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2212 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2213 ac_cache_corrupted=: ;;
2214 ,set)
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2216 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2217 ac_cache_corrupted=: ;;
2218 ,);;
2219 *)
2220 if test "x$ac_old_val" != "x$ac_new_val"; then
2221 # differences in whitespace do not lead to failure.
2222 ac_old_val_w=`echo x $ac_old_val`
2223 ac_new_val_w=`echo x $ac_new_val`
2224 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2226 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2227 ac_cache_corrupted=:
2228 else
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2230 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2231 eval $ac_var=\$ac_old_val
2232 fi
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2234 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2236 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2237 fi;;
2238 esac
2239 # Pass precious variables to config.status.
2240 if test "$ac_new_set" = set; then
2241 case $ac_new_val in
2242 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2243 *) ac_arg=$ac_var=$ac_new_val ;;
2244 esac
2245 case " $ac_configure_args " in
2246 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2247 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2248 esac
2249 fi
2250 done
2251 if $ac_cache_corrupted; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2255 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2256 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2257 fi
2258 ## -------------------- ##
2259 ## Main body of script. ##
2260 ## -------------------- ##
2261
2262 ac_ext=c
2263 ac_cpp='$CPP $CPPFLAGS'
2264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2267
2268
2269
2270 ac_config_headers="$ac_config_headers config.h"
2271
2272 am__api_version='1.14'
2273
2274 ac_aux_dir=
2275 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 if test -f "$ac_dir/install-sh"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/install-sh -c"
2279 break
2280 elif test -f "$ac_dir/install.sh"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/install.sh -c"
2283 break
2284 elif test -f "$ac_dir/shtool"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/shtool install -c"
2287 break
2288 fi
2289 done
2290 if test -z "$ac_aux_dir"; then
2291 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2292 fi
2293
2294 # These three variables are undocumented and unsupported,
2295 # and are intended to be withdrawn in a future Autoconf release.
2296 # They can cause serious problems if a builder's source tree is in a directory
2297 # whose full name contains unusual characters.
2298 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2299 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2300 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2301
2302
2303 # Find a good install program. We prefer a C program (faster),
2304 # so one script is as good as another. But avoid the broken or
2305 # incompatible versions:
2306 # SysV /etc/install, /usr/sbin/install
2307 # SunOS /usr/etc/install
2308 # IRIX /sbin/install
2309 # AIX /bin/install
2310 # AmigaOS /C/install, which installs bootblocks on floppy discs
2311 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2312 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2313 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2314 # OS/2's system install, which has a completely different semantic
2315 # ./install, which can be erroneously created by make from ./install.sh.
2316 # Reject install programs that cannot install multiple files.
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2318 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2319 if test -z "$INSTALL"; then
2320 if ${ac_cv_path_install+:} false; then :
2321 $as_echo_n "(cached) " >&6
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 # Account for people who put trailing slashes in PATH elements.
2329 case $as_dir/ in #((
2330 ./ | .// | /[cC]/* | \
2331 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2332 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2333 /usr/ucb/* ) ;;
2334 *)
2335 # OSF1 and SCO ODT 3.0 have their own names for install.
2336 # Don't use installbsd from OSF since it installs stuff as root
2337 # by default.
2338 for ac_prog in ginstall scoinst install; do
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2341 if test $ac_prog = install &&
2342 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2343 # AIX install. It has an incompatible calling convention.
2344 :
2345 elif test $ac_prog = install &&
2346 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2347 # program-specific install script used by HP pwplus--don't use.
2348 :
2349 else
2350 rm -rf conftest.one conftest.two conftest.dir
2351 echo one > conftest.one
2352 echo two > conftest.two
2353 mkdir conftest.dir
2354 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2355 test -s conftest.one && test -s conftest.two &&
2356 test -s conftest.dir/conftest.one &&
2357 test -s conftest.dir/conftest.two
2358 then
2359 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2360 break 3
2361 fi
2362 fi
2363 fi
2364 done
2365 done
2366 ;;
2367 esac
2368
2369 done
2370 IFS=$as_save_IFS
2371
2372 rm -rf conftest.one conftest.two conftest.dir
2373
2374 fi
2375 if test "${ac_cv_path_install+set}" = set; then
2376 INSTALL=$ac_cv_path_install
2377 else
2378 # As a last resort, use the slow shell script. Don't cache a
2379 # value for INSTALL within a source directory, because that will
2380 # break other packages using the cache if that directory is
2381 # removed, or if the value is a relative name.
2382 INSTALL=$ac_install_sh
2383 fi
2384 fi
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2386 $as_echo "$INSTALL" >&6; }
2387
2388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2389 # It thinks the first close brace ends the variable substitution.
2390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2391
2392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2393
2394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2395
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2397 $as_echo_n "checking whether build environment is sane... " >&6; }
2398 # Reject unsafe characters in $srcdir or the absolute working directory
2399 # name. Accept space and tab only in the latter.
2400 am_lf='
2401 '
2402 case `pwd` in
2403 *[\\\"\#\$\&\'\`$am_lf]*)
2404 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2405 esac
2406 case $srcdir in
2407 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2408 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2409 esac
2410
2411 # Do 'set' in a subshell so we don't clobber the current shell's
2412 # arguments. Must try -L first in case configure is actually a
2413 # symlink; some systems play weird games with the mod time of symlinks
2414 # (eg FreeBSD returns the mod time of the symlink's containing
2415 # directory).
2416 if (
2417 am_has_slept=no
2418 for am_try in 1 2; do
2419 echo "timestamp, slept: $am_has_slept" > conftest.file
2420 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2421 if test "$*" = "X"; then
2422 # -L didn't work.
2423 set X `ls -t "$srcdir/configure" conftest.file`
2424 fi
2425 if test "$*" != "X $srcdir/configure conftest.file" \
2426 && test "$*" != "X conftest.file $srcdir/configure"; then
2427
2428 # If neither matched, then we have a broken ls. This can happen
2429 # if, for instance, CONFIG_SHELL is bash and it inherits a
2430 # broken ls alias from the environment. This has actually
2431 # happened. Such a system could not be considered "sane".
2432 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2433 alias in your environment" "$LINENO" 5
2434 fi
2435 if test "$2" = conftest.file || test $am_try -eq 2; then
2436 break
2437 fi
2438 # Just in case.
2439 sleep 1
2440 am_has_slept=yes
2441 done
2442 test "$2" = conftest.file
2443 )
2444 then
2445 # Ok.
2446 :
2447 else
2448 as_fn_error $? "newly created file is older than distributed files!
2449 Check your system clock" "$LINENO" 5
2450 fi
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2452 $as_echo "yes" >&6; }
2453 # If we didn't sleep, we still need to ensure time stamps of config.status and
2454 # generated files are strictly newer.
2455 am_sleep_pid=
2456 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2457 ( sleep 1 ) &
2458 am_sleep_pid=$!
2459 fi
2460
2461 rm -f conftest.file
2462
2463 test "$program_prefix" != NONE &&
2464 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2465 # Use a double $ so make ignores it.
2466 test "$program_suffix" != NONE &&
2467 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2468 # Double any \ or $.
2469 # By default was `s,x,x', remove it if useless.
2470 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2471 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2472
2473 # expand $ac_aux_dir to an absolute path
2474 am_aux_dir=`cd $ac_aux_dir && pwd`
2475
2476 if test x"${MISSING+set}" != xset; then
2477 case $am_aux_dir in
2478 *\ * | *\ *)
2479 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2480 *)
2481 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2482 esac
2483 fi
2484 # Use eval to expand $SHELL
2485 if eval "$MISSING --is-lightweight"; then
2486 am_missing_run="$MISSING "
2487 else
2488 am_missing_run=
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2490 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2491 fi
2492
2493 if test x"${install_sh}" != xset; then
2494 case $am_aux_dir in
2495 *\ * | *\ *)
2496 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2497 *)
2498 install_sh="\${SHELL} $am_aux_dir/install-sh"
2499 esac
2500 fi
2501
2502 # Installed binaries are usually stripped using 'strip' when the user
2503 # run "make install-strip". However 'strip' might not be the right
2504 # tool to use in cross-compilation environments, therefore Automake
2505 # will honor the 'STRIP' environment variable to overrule this program.
2506 if test "$cross_compiling" != no; then
2507 if test -n "$ac_tool_prefix"; then
2508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2509 set dummy ${ac_tool_prefix}strip; ac_word=$2
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511 $as_echo_n "checking for $ac_word... " >&6; }
2512 if ${ac_cv_prog_STRIP+:} false; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 if test -n "$STRIP"; then
2516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 STRIP=$ac_cv_prog_STRIP
2536 if test -n "$STRIP"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2538 $as_echo "$STRIP" >&6; }
2539 else
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541 $as_echo "no" >&6; }
2542 fi
2543
2544
2545 fi
2546 if test -z "$ac_cv_prog_STRIP"; then
2547 ac_ct_STRIP=$STRIP
2548 # Extract the first word of "strip", so it can be a program name with args.
2549 set dummy strip; ac_word=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if test -n "$ac_ct_STRIP"; then
2556 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2565 ac_cv_prog_ac_ct_STRIP="strip"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2568 fi
2569 done
2570 done
2571 IFS=$as_save_IFS
2572
2573 fi
2574 fi
2575 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2576 if test -n "$ac_ct_STRIP"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2578 $as_echo "$ac_ct_STRIP" >&6; }
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2582 fi
2583
2584 if test "x$ac_ct_STRIP" = x; then
2585 STRIP=":"
2586 else
2587 case $cross_compiling:$ac_tool_warned in
2588 yes:)
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2591 ac_tool_warned=yes ;;
2592 esac
2593 STRIP=$ac_ct_STRIP
2594 fi
2595 else
2596 STRIP="$ac_cv_prog_STRIP"
2597 fi
2598
2599 fi
2600 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2601
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2603 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2604 if test -z "$MKDIR_P"; then
2605 if ${ac_cv_path_mkdir+:} false; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2610 do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_prog in mkdir gmkdir; do
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2616 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2617 'mkdir (GNU coreutils) '* | \
2618 'mkdir (coreutils) '* | \
2619 'mkdir (fileutils) '4.1*)
2620 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2621 break 3;;
2622 esac
2623 done
2624 done
2625 done
2626 IFS=$as_save_IFS
2627
2628 fi
2629
2630 test -d ./--version && rmdir ./--version
2631 if test "${ac_cv_path_mkdir+set}" = set; then
2632 MKDIR_P="$ac_cv_path_mkdir -p"
2633 else
2634 # As a last resort, use the slow shell script. Don't cache a
2635 # value for MKDIR_P within a source directory, because that will
2636 # break other packages using the cache if that directory is
2637 # removed, or if the value is a relative name.
2638 MKDIR_P="$ac_install_sh -d"
2639 fi
2640 fi
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2642 $as_echo "$MKDIR_P" >&6; }
2643
2644 for ac_prog in gawk mawk nawk awk
2645 do
2646 # Extract the first word of "$ac_prog", so it can be a program name with args.
2647 set dummy $ac_prog; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if ${ac_cv_prog_AWK+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test -n "$AWK"; then
2654 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_AWK="$ac_prog"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2666 fi
2667 done
2668 done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 AWK=$ac_cv_prog_AWK
2674 if test -n "$AWK"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2676 $as_echo "$AWK" >&6; }
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682
2683 test -n "$AWK" && break
2684 done
2685
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2687 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2688 set x ${MAKE-make}
2689 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2690 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 cat >conftest.make <<\_ACEOF
2694 SHELL = /bin/sh
2695 all:
2696 @echo '@@@%%%=$(MAKE)=@@@%%%'
2697 _ACEOF
2698 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2699 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2700 *@@@%%%=?*=@@@%%%*)
2701 eval ac_cv_prog_make_${ac_make}_set=yes;;
2702 *)
2703 eval ac_cv_prog_make_${ac_make}_set=no;;
2704 esac
2705 rm -f conftest.make
2706 fi
2707 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2709 $as_echo "yes" >&6; }
2710 SET_MAKE=
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2714 SET_MAKE="MAKE=${MAKE-make}"
2715 fi
2716
2717 rm -rf .tst 2>/dev/null
2718 mkdir .tst 2>/dev/null
2719 if test -d .tst; then
2720 am__leading_dot=.
2721 else
2722 am__leading_dot=_
2723 fi
2724 rmdir .tst 2>/dev/null
2725
2726 # Check whether --enable-silent-rules was given.
2727 if test "${enable_silent_rules+set}" = set; then :
2728 enableval=$enable_silent_rules;
2729 fi
2730
2731 case $enable_silent_rules in # (((
2732 yes) AM_DEFAULT_VERBOSITY=0;;
2733 no) AM_DEFAULT_VERBOSITY=1;;
2734 *) AM_DEFAULT_VERBOSITY=1;;
2735 esac
2736 am_make=${MAKE-make}
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2738 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2739 if ${am_cv_make_support_nested_variables+:} false; then :
2740 $as_echo_n "(cached) " >&6
2741 else
2742 if $as_echo 'TRUE=$(BAR$(V))
2743 BAR0=false
2744 BAR1=true
2745 V=1
2746 am__doit:
2747 @$(TRUE)
2748 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2749 am_cv_make_support_nested_variables=yes
2750 else
2751 am_cv_make_support_nested_variables=no
2752 fi
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2755 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2756 if test $am_cv_make_support_nested_variables = yes; then
2757 AM_V='$(V)'
2758 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2759 else
2760 AM_V=$AM_DEFAULT_VERBOSITY
2761 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2762 fi
2763 AM_BACKSLASH='\'
2764
2765 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2766 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2767 # is not polluted with repeated "-I."
2768 am__isrc=' -I$(srcdir)'
2769 # test to see if srcdir already configured
2770 if test -f $srcdir/config.status; then
2771 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2772 fi
2773 fi
2774
2775 # test whether we have cygpath
2776 if test -z "$CYGPATH_W"; then
2777 if (cygpath --version) >/dev/null 2>/dev/null; then
2778 CYGPATH_W='cygpath -w'
2779 else
2780 CYGPATH_W=echo
2781 fi
2782 fi
2783
2784
2785 # Define the identity of the package.
2786
2787 PACKAGE=liblrdf
2788 VERSION=0.5.0
2789
2790
2791 cat >>confdefs.h <<_ACEOF
2792 #define PACKAGE "$PACKAGE"
2793 _ACEOF
2794
2795
2796 cat >>confdefs.h <<_ACEOF
2797 #define VERSION "$VERSION"
2798 _ACEOF
2799
2800 # Some tools Automake needs.
2801
2802 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2803
2804
2805 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2806
2807
2808 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2809
2810
2811 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2812
2813
2814 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2815
2816 # For better backward compatibility. To be removed once Automake 1.9.x
2817 # dies out for good. For more background, see:
2818 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2819 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2820 mkdir_p='$(MKDIR_P)'
2821
2822 # We need awk for the "check" target. The system "awk" is bad on
2823 # some platforms.
2824 # Always define AMTAR for backward compatibility. Yes, it's still used
2825 # in the wild :-( We should find a proper way to deprecate it ...
2826 AMTAR='$${TAR-tar}'
2827
2828
2829 # We'll loop over all known methods to create a tar archive until one works.
2830 _am_tools='gnutar pax cpio none'
2831
2832 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2833
2834
2835
2836
2837
2838
2839 # POSIX will say in a future version that running "rm -f" with no argument
2840 # is OK; and we want to be able to make that assumption in our Makefile
2841 # recipes. So use an aggressive probe to check that the usage we want is
2842 # actually supported "in the wild" to an acceptable degree.
2843 # See automake bug#10828.
2844 # To make any issue more visible, cause the running configure to be aborted
2845 # by default if the 'rm' program in use doesn't match our expectations; the
2846 # user can still override this though.
2847 if rm -f && rm -fr && rm -rf; then : OK; else
2848 cat >&2 <<'END'
2849 Oops!
2850
2851 Your 'rm' program seems unable to run without file operands specified
2852 on the command line, even when the '-f' option is present. This is contrary
2853 to the behaviour of most rm programs out there, and not conforming with
2854 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2855
2856 Please tell bug-automake@gnu.org about your system, including the value
2857 of your $PATH and any error possibly output before this message. This
2858 can help us improve future automake versions.
2859
2860 END
2861 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2862 echo 'Configuration will proceed anyway, since you have set the' >&2
2863 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2864 echo >&2
2865 else
2866 cat >&2 <<'END'
2867 Aborting the configuration process, to ensure you take notice of the issue.
2868
2869 You can download and install GNU coreutils to get an 'rm' implementation
2870 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2871
2872 If you want to complete the configuration process using your problematic
2873 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2874 to "yes", and re-run configure.
2875
2876 END
2877 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2878 fi
2879 fi
2880
2881 LRDF_LIBTOOL_VERSION=2:0:0
2882
2883 # Checks for programs.
2884 for ac_prog in gawk mawk nawk awk
2885 do
2886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy $ac_prog; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_AWK+:} false; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$AWK"; then
2894 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_AWK="$ac_prog"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 AWK=$ac_cv_prog_AWK
2914 if test -n "$AWK"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2916 $as_echo "$AWK" >&6; }
2917 else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922
2923 test -n "$AWK" && break
2924 done
2925
2926 ac_ext=c
2927 ac_cpp='$CPP $CPPFLAGS'
2928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 fi
2970 if test -z "$ac_cv_prog_CC"; then
2971 ac_ct_CC=$CC
2972 # Extract the first word of "gcc", so it can be a program name with args.
2973 set dummy gcc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2978 else
2979 if test -n "$ac_ct_CC"; then
2980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_ac_ct_CC="gcc"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993 done
2994 done
2995 IFS=$as_save_IFS
2996
2997 fi
2998 fi
2999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000 if test -n "$ac_ct_CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3002 $as_echo "$ac_ct_CC" >&6; }
3003 else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 fi
3007
3008 if test "x$ac_ct_CC" = x; then
3009 CC=""
3010 else
3011 case $cross_compiling:$ac_tool_warned in
3012 yes:)
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017 CC=$ac_ct_CC
3018 fi
3019 else
3020 CC="$ac_cv_prog_CC"
3021 fi
3022
3023 if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}cc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_CC="${ac_tool_prefix}cc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 fi
3064 if test -z "$CC"; then
3065 # Extract the first word of "cc", so it can be a program name with args.
3066 set dummy cc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_CC+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 ac_prog_rejected=no
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3084 ac_prog_rejected=yes
3085 continue
3086 fi
3087 ac_cv_prog_CC="cc"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091 done
3092 done
3093 IFS=$as_save_IFS
3094
3095 if test $ac_prog_rejected = yes; then
3096 # We found a bogon in the path, so make sure we never use it.
3097 set dummy $ac_cv_prog_CC
3098 shift
3099 if test $# != 0; then
3100 # We chose a different compiler from the bogus one.
3101 # However, it has the same basename, so the bogon will be chosen
3102 # first if we set CC to just the basename; use the full file name.
3103 shift
3104 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3105 fi
3106 fi
3107 fi
3108 fi
3109 CC=$ac_cv_prog_CC
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118
3119 fi
3120 if test -z "$CC"; then
3121 if test -n "$ac_tool_prefix"; then
3122 for ac_prog in cl.exe
3123 do
3124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_CC+:} false; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 break 2
3144 fi
3145 done
3146 done
3147 IFS=$as_save_IFS
3148
3149 fi
3150 fi
3151 CC=$ac_cv_prog_CC
3152 if test -n "$CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3158 fi
3159
3160
3161 test -n "$CC" && break
3162 done
3163 fi
3164 if test -z "$CC"; then
3165 ac_ct_CC=$CC
3166 for ac_prog in cl.exe
3167 do
3168 # Extract the first word of "$ac_prog", so it can be a program name with args.
3169 set dummy $ac_prog; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 if test -n "$ac_ct_CC"; then
3176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 ac_cv_prog_ac_ct_CC="$ac_prog"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3188 fi
3189 done
3190 done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3196 if test -n "$ac_ct_CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3198 $as_echo "$ac_ct_CC" >&6; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204
3205 test -n "$ac_ct_CC" && break
3206 done
3207
3208 if test "x$ac_ct_CC" = x; then
3209 CC=""
3210 else
3211 case $cross_compiling:$ac_tool_warned in
3212 yes:)
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3215 ac_tool_warned=yes ;;
3216 esac
3217 CC=$ac_ct_CC
3218 fi
3219 fi
3220
3221 fi
3222
3223
3224 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error $? "no acceptable C compiler found in \$PATH
3227 See \`config.log' for more details" "$LINENO" 5; }
3228
3229 # Provide some information about the compiler.
3230 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3231 set X $ac_compile
3232 ac_compiler=$2
3233 for ac_option in --version -v -V -qversion; do
3234 { { ac_try="$ac_compiler $ac_option >&5"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3242 ac_status=$?
3243 if test -s conftest.err; then
3244 sed '10a\
3245 ... rest of stderr output deleted ...
3246 10q' conftest.err >conftest.er1
3247 cat conftest.er1 >&5
3248 fi
3249 rm -f conftest.er1 conftest.err
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }
3252 done
3253
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3256
3257 int
3258 main ()
3259 {
3260
3261 ;
3262 return 0;
3263 }
3264 _ACEOF
3265 ac_clean_files_save=$ac_clean_files
3266 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3267 # Try to create an executable without -o first, disregard a.out.
3268 # It will help us diagnose broken compilers, and finding out an intuition
3269 # of exeext.
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3271 $as_echo_n "checking whether the C compiler works... " >&6; }
3272 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3273
3274 # The possible output files:
3275 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3276
3277 ac_rmfiles=
3278 for ac_file in $ac_files
3279 do
3280 case $ac_file in
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3282 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3283 esac
3284 done
3285 rm -f $ac_rmfiles
3286
3287 if { { ac_try="$ac_link_default"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_link_default") 2>&5
3295 ac_status=$?
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }; then :
3298 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3299 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3300 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3301 # so that the user can short-circuit this test for compilers unknown to
3302 # Autoconf.
3303 for ac_file in $ac_files ''
3304 do
3305 test -f "$ac_file" || continue
3306 case $ac_file in
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3308 ;;
3309 [ab].out )
3310 # We found the default executable, but exeext='' is most
3311 # certainly right.
3312 break;;
3313 *.* )
3314 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3315 then :; else
3316 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317 fi
3318 # We set ac_cv_exeext here because the later test for it is not
3319 # safe: cross compilers may not add the suffix if given an `-o'
3320 # argument, so we may need to know it at that point already.
3321 # Even if this section looks crufty: it has the advantage of
3322 # actually working.
3323 break;;
3324 * )
3325 break;;
3326 esac
3327 done
3328 test "$ac_cv_exeext" = no && ac_cv_exeext=
3329
3330 else
3331 ac_file=''
3332 fi
3333 if test -z "$ac_file"; then :
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error 77 "C compiler cannot create executables
3342 See \`config.log' for more details" "$LINENO" 5; }
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345 $as_echo "yes" >&6; }
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3348 $as_echo_n "checking for C compiler default output file name... " >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3350 $as_echo "$ac_file" >&6; }
3351 ac_exeext=$ac_cv_exeext
3352
3353 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3354 ac_clean_files=$ac_clean_files_save
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3356 $as_echo_n "checking for suffix of executables... " >&6; }
3357 if { { ac_try="$ac_link"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364 (eval "$ac_link") 2>&5
3365 ac_status=$?
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }; then :
3368 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3369 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3370 # work properly (i.e., refer to `conftest.exe'), while it won't with
3371 # `rm'.
3372 for ac_file in conftest.exe conftest conftest.*; do
3373 test -f "$ac_file" || continue
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377 break;;
3378 * ) break;;
3379 esac
3380 done
3381 else
3382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3385 See \`config.log' for more details" "$LINENO" 5; }
3386 fi
3387 rm -f conftest conftest$ac_cv_exeext
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3389 $as_echo "$ac_cv_exeext" >&6; }
3390
3391 rm -f conftest.$ac_ext
3392 EXEEXT=$ac_cv_exeext
3393 ac_exeext=$EXEEXT
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3396 #include <stdio.h>
3397 int
3398 main ()
3399 {
3400 FILE *f = fopen ("conftest.out", "w");
3401 return ferror (f) || fclose (f) != 0;
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 ac_clean_files="$ac_clean_files conftest.out"
3408 # Check that the compiler produces executables we can run. If not, either
3409 # the compiler is broken, or we cross compile.
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3411 $as_echo_n "checking whether we are cross compiling... " >&6; }
3412 if test "$cross_compiling" != yes; then
3413 { { ac_try="$ac_link"
3414 case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_link") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }
3424 if { ac_try='./conftest$ac_cv_exeext'
3425 { { case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_try") 2>&5
3432 ac_status=$?
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; }; then
3435 cross_compiling=no
3436 else
3437 if test "$cross_compiling" = maybe; then
3438 cross_compiling=yes
3439 else
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error $? "cannot run C compiled programs.
3443 If you meant to cross compile, use \`--host'.
3444 See \`config.log' for more details" "$LINENO" 5; }
3445 fi
3446 fi
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3449 $as_echo "$cross_compiling" >&6; }
3450
3451 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3452 ac_clean_files=$ac_clean_files_save
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3454 $as_echo_n "checking for suffix of object files... " >&6; }
3455 if ${ac_cv_objext+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460
3461 int
3462 main ()
3463 {
3464
3465 ;
3466 return 0;
3467 }
3468 _ACEOF
3469 rm -f conftest.o conftest.obj
3470 if { { ac_try="$ac_compile"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_compile") 2>&5
3478 ac_status=$?
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; then :
3481 for ac_file in conftest.o conftest.obj conftest.*; do
3482 test -f "$ac_file" || continue;
3483 case $ac_file in
3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3485 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3486 break;;
3487 esac
3488 done
3489 else
3490 $as_echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error $? "cannot compute suffix of object files: cannot compile
3496 See \`config.log' for more details" "$LINENO" 5; }
3497 fi
3498 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3501 $as_echo "$ac_cv_objext" >&6; }
3502 OBJEXT=$ac_cv_objext
3503 ac_objext=$OBJEXT
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3505 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3506 if ${ac_cv_c_compiler_gnu+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511
3512 int
3513 main ()
3514 {
3515 #ifndef __GNUC__
3516 choke me
3517 #endif
3518
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_compiler_gnu=yes
3525 else
3526 ac_compiler_gnu=no
3527 fi
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3530
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3533 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3534 if test $ac_compiler_gnu = yes; then
3535 GCC=yes
3536 else
3537 GCC=
3538 fi
3539 ac_test_CFLAGS=${CFLAGS+set}
3540 ac_save_CFLAGS=$CFLAGS
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3542 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3543 if ${ac_cv_prog_cc_g+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 ac_save_c_werror_flag=$ac_c_werror_flag
3547 ac_c_werror_flag=yes
3548 ac_cv_prog_cc_g=no
3549 CFLAGS="-g"
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3552
3553 int
3554 main ()
3555 {
3556
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 if ac_fn_c_try_compile "$LINENO"; then :
3562 ac_cv_prog_cc_g=yes
3563 else
3564 CFLAGS=""
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 if ac_fn_c_try_compile "$LINENO"; then :
3577
3578 else
3579 ac_c_werror_flag=$ac_save_c_werror_flag
3580 CFLAGS="-g"
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583
3584 int
3585 main ()
3586 {
3587
3588 ;
3589 return 0;
3590 }
3591 _ACEOF
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593 ac_cv_prog_cc_g=yes
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 ac_c_werror_flag=$ac_save_c_werror_flag
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3603 $as_echo "$ac_cv_prog_cc_g" >&6; }
3604 if test "$ac_test_CFLAGS" = set; then
3605 CFLAGS=$ac_save_CFLAGS
3606 elif test $ac_cv_prog_cc_g = yes; then
3607 if test "$GCC" = yes; then
3608 CFLAGS="-g -O2"
3609 else
3610 CFLAGS="-g"
3611 fi
3612 else
3613 if test "$GCC" = yes; then
3614 CFLAGS="-O2"
3615 else
3616 CFLAGS=
3617 fi
3618 fi
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3620 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3621 if ${ac_cv_prog_cc_c89+:} false; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 ac_cv_prog_cc_c89=no
3625 ac_save_CC=$CC
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628 #include <stdarg.h>
3629 #include <stdio.h>
3630 struct stat;
3631 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3632 struct buf { int x; };
3633 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3634 static char *e (p, i)
3635 char **p;
3636 int i;
3637 {
3638 return p[i];
3639 }
3640 static char *f (char * (*g) (char **, int), char **p, ...)
3641 {
3642 char *s;
3643 va_list v;
3644 va_start (v,p);
3645 s = g (p, va_arg (v,int));
3646 va_end (v);
3647 return s;
3648 }
3649
3650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3651 function prototypes and stuff, but not '\xHH' hex character constants.
3652 These don't provoke an error unfortunately, instead are silently treated
3653 as 'x'. The following induces an error, until -std is added to get
3654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3655 array size at least. It's necessary to write '\x00'==0 to get something
3656 that's true only with -std. */
3657 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3658
3659 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3660 inside strings and character constants. */
3661 #define FOO(x) 'x'
3662 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3663
3664 int test (int i, double x);
3665 struct s1 {int (*f) (int a);};
3666 struct s2 {int (*f) (double a);};
3667 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3668 int argc;
3669 char **argv;
3670 int
3671 main ()
3672 {
3673 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3674 ;
3675 return 0;
3676 }
3677 _ACEOF
3678 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3680 do
3681 CC="$ac_save_CC $ac_arg"
3682 if ac_fn_c_try_compile "$LINENO"; then :
3683 ac_cv_prog_cc_c89=$ac_arg
3684 fi
3685 rm -f core conftest.err conftest.$ac_objext
3686 test "x$ac_cv_prog_cc_c89" != "xno" && break
3687 done
3688 rm -f conftest.$ac_ext
3689 CC=$ac_save_CC
3690
3691 fi
3692 # AC_CACHE_VAL
3693 case "x$ac_cv_prog_cc_c89" in
3694 x)
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3696 $as_echo "none needed" >&6; } ;;
3697 xno)
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3699 $as_echo "unsupported" >&6; } ;;
3700 *)
3701 CC="$CC $ac_cv_prog_cc_c89"
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3703 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3704 esac
3705 if test "x$ac_cv_prog_cc_c89" != xno; then :
3706
3707 fi
3708
3709 ac_ext=c
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714
3715 ac_ext=c
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3721 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3722 if ${am_cv_prog_cc_c_o+:} false; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727
3728 int
3729 main ()
3730 {
3731
3732 ;
3733 return 0;
3734 }
3735 _ACEOF
3736 # Make sure it works both with $CC and with simple cc.
3737 # Following AC_PROG_CC_C_O, we do the test twice because some
3738 # compilers refuse to overwrite an existing .o file with -o,
3739 # though they will create one.
3740 am_cv_prog_cc_c_o=yes
3741 for am_i in 1 2; do
3742 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3743 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3744 ac_status=$?
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } \
3747 && test -f conftest2.$ac_objext; then
3748 : OK
3749 else
3750 am_cv_prog_cc_c_o=no
3751 break
3752 fi
3753 done
3754 rm -f core conftest*
3755 unset am_i
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3758 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3759 if test "$am_cv_prog_cc_c_o" != yes; then
3760 # Losing compiler, so override with the script.
3761 # FIXME: It is wrong to rewrite CC.
3762 # But if we don't then we get into trouble of one sort or another.
3763 # A longer-term fix would be to have automake use am__CC in this case,
3764 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3765 CC="$am_aux_dir/compile $CC"
3766 fi
3767 ac_ext=c
3768 ac_cpp='$CPP $CPPFLAGS'
3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772
3773 DEPDIR="${am__leading_dot}deps"
3774
3775 ac_config_commands="$ac_config_commands depfiles"
3776
3777
3778 am_make=${MAKE-make}
3779 cat > confinc << 'END'
3780 am__doit:
3781 @echo this is the am__doit target
3782 .PHONY: am__doit
3783 END
3784 # If we don't find an include directive, just comment out the code.
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3786 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3787 am__include="#"
3788 am__quote=
3789 _am_result=none
3790 # First try GNU make style include.
3791 echo "include confinc" > confmf
3792 # Ignore all kinds of additional output from 'make'.
3793 case `$am_make -s -f confmf 2> /dev/null` in #(
3794 *the\ am__doit\ target*)
3795 am__include=include
3796 am__quote=
3797 _am_result=GNU
3798 ;;
3799 esac
3800 # Now try BSD make style include.
3801 if test "$am__include" = "#"; then
3802 echo '.include "confinc"' > confmf
3803 case `$am_make -s -f confmf 2> /dev/null` in #(
3804 *the\ am__doit\ target*)
3805 am__include=.include
3806 am__quote="\""
3807 _am_result=BSD
3808 ;;
3809 esac
3810 fi
3811
3812
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3814 $as_echo "$_am_result" >&6; }
3815 rm -f confinc confmf
3816
3817 # Check whether --enable-dependency-tracking was given.
3818 if test "${enable_dependency_tracking+set}" = set; then :
3819 enableval=$enable_dependency_tracking;
3820 fi
3821
3822 if test "x$enable_dependency_tracking" != xno; then
3823 am_depcomp="$ac_aux_dir/depcomp"
3824 AMDEPBACKSLASH='\'
3825 am__nodep='_no'
3826 fi
3827 if test "x$enable_dependency_tracking" != xno; then
3828 AMDEP_TRUE=
3829 AMDEP_FALSE='#'
3830 else
3831 AMDEP_TRUE='#'
3832 AMDEP_FALSE=
3833 fi
3834
3835
3836
3837 depcc="$CC" am_compiler_list=
3838
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3840 $as_echo_n "checking dependency style of $depcc... " >&6; }
3841 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3845 # We make a subdir and do the tests there. Otherwise we can end up
3846 # making bogus files that we don't know about and never remove. For
3847 # instance it was reported that on HP-UX the gcc test will end up
3848 # making a dummy file named 'D' -- because '-MD' means "put the output
3849 # in D".
3850 rm -rf conftest.dir
3851 mkdir conftest.dir
3852 # Copy depcomp to subdir because otherwise we won't find it if we're
3853 # using a relative directory.
3854 cp "$am_depcomp" conftest.dir
3855 cd conftest.dir
3856 # We will build objects and dependencies in a subdirectory because
3857 # it helps to detect inapplicable dependency modes. For instance
3858 # both Tru64's cc and ICC support -MD to output dependencies as a
3859 # side effect of compilation, but ICC will put the dependencies in
3860 # the current directory while Tru64 will put them in the object
3861 # directory.
3862 mkdir sub
3863
3864 am_cv_CC_dependencies_compiler_type=none
3865 if test "$am_compiler_list" = ""; then
3866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3867 fi
3868 am__universal=false
3869 case " $depcc " in #(
3870 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3871 esac
3872
3873 for depmode in $am_compiler_list; do
3874 # Setup a source with many dependencies, because some compilers
3875 # like to wrap large dependency lists on column 80 (with \), and
3876 # we should not choose a depcomp mode which is confused by this.
3877 #
3878 # We need to recreate these files for each test, as the compiler may
3879 # overwrite some of them when testing with obscure command lines.
3880 # This happens at least with the AIX C compiler.
3881 : > sub/conftest.c
3882 for i in 1 2 3 4 5 6; do
3883 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3884 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3885 # Solaris 10 /bin/sh.
3886 echo '/* dummy */' > sub/conftst$i.h
3887 done
3888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3889
3890 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3891 # mode. It turns out that the SunPro C++ compiler does not properly
3892 # handle '-M -o', and we need to detect this. Also, some Intel
3893 # versions had trouble with output in subdirs.
3894 am__obj=sub/conftest.${OBJEXT-o}
3895 am__minus_obj="-o $am__obj"
3896 case $depmode in
3897 gcc)
3898 # This depmode causes a compiler race in universal mode.
3899 test "$am__universal" = false || continue
3900 ;;
3901 nosideeffect)
3902 # After this tag, mechanisms are not by side-effect, so they'll
3903 # only be used when explicitly requested.
3904 if test "x$enable_dependency_tracking" = xyes; then
3905 continue
3906 else
3907 break
3908 fi
3909 ;;
3910 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3911 # This compiler won't grok '-c -o', but also, the minuso test has
3912 # not run yet. These depmodes are late enough in the game, and
3913 # so weak that their functioning should not be impacted.
3914 am__obj=conftest.${OBJEXT-o}
3915 am__minus_obj=
3916 ;;
3917 none) break ;;
3918 esac
3919 if depmode=$depmode \
3920 source=sub/conftest.c object=$am__obj \
3921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3922 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3923 >/dev/null 2>conftest.err &&
3924 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3926 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3928 # icc doesn't choke on unknown options, it will just issue warnings
3929 # or remarks (even with -Werror). So we grep stderr for any message
3930 # that says an option was ignored or not supported.
3931 # When given -MP, icc 7.0 and 7.1 complain thusly:
3932 # icc: Command line warning: ignoring option '-M'; no argument required
3933 # The diagnosis changed in icc 8.0:
3934 # icc: Command line remark: option '-MP' not supported
3935 if (grep 'ignoring option' conftest.err ||
3936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3937 am_cv_CC_dependencies_compiler_type=$depmode
3938 break
3939 fi
3940 fi
3941 done
3942
3943 cd ..
3944 rm -rf conftest.dir
3945 else
3946 am_cv_CC_dependencies_compiler_type=none
3947 fi
3948
3949 fi
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3951 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3952 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3953
3954 if
3955 test "x$enable_dependency_tracking" != xno \
3956 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3957 am__fastdepCC_TRUE=
3958 am__fastdepCC_FALSE='#'
3959 else
3960 am__fastdepCC_TRUE='#'
3961 am__fastdepCC_FALSE=
3962 fi
3963
3964
3965 ac_ext=c
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3971 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3972 # On Suns, sometimes $CPP names a directory.
3973 if test -n "$CPP" && test -d "$CPP"; then
3974 CPP=
3975 fi
3976 if test -z "$CPP"; then
3977 if ${ac_cv_prog_CPP+:} false; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 # Double quotes because CPP needs to be expanded
3981 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3982 do
3983 ac_preproc_ok=false
3984 for ac_c_preproc_warn_flag in '' yes
3985 do
3986 # Use a header file that comes with gcc, so configuring glibc
3987 # with a fresh cross-compiler works.
3988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 # <limits.h> exists even on freestanding compilers.
3990 # On the NeXT, cc -E runs the code through the compiler's parser,
3991 # not just through cpp. "Syntax error" is here to catch this case.
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994 #ifdef __STDC__
3995 # include <limits.h>
3996 #else
3997 # include <assert.h>
3998 #endif
3999 Syntax error
4000 _ACEOF
4001 if ac_fn_c_try_cpp "$LINENO"; then :
4002
4003 else
4004 # Broken: fails on valid input.
4005 continue
4006 fi
4007 rm -f conftest.err conftest.i conftest.$ac_ext
4008
4009 # OK, works on sane cases. Now check whether nonexistent headers
4010 # can be detected and how.
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013 #include <ac_nonexistent.h>
4014 _ACEOF
4015 if ac_fn_c_try_cpp "$LINENO"; then :
4016 # Broken: success on invalid input.
4017 continue
4018 else
4019 # Passes both tests.
4020 ac_preproc_ok=:
4021 break
4022 fi
4023 rm -f conftest.err conftest.i conftest.$ac_ext
4024
4025 done
4026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027 rm -f conftest.i conftest.err conftest.$ac_ext
4028 if $ac_preproc_ok; then :
4029 break
4030 fi
4031
4032 done
4033 ac_cv_prog_CPP=$CPP
4034
4035 fi
4036 CPP=$ac_cv_prog_CPP
4037 else
4038 ac_cv_prog_CPP=$CPP
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4041 $as_echo "$CPP" >&6; }
4042 ac_preproc_ok=false
4043 for ac_c_preproc_warn_flag in '' yes
4044 do
4045 # Use a header file that comes with gcc, so configuring glibc
4046 # with a fresh cross-compiler works.
4047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4048 # <limits.h> exists even on freestanding compilers.
4049 # On the NeXT, cc -E runs the code through the compiler's parser,
4050 # not just through cpp. "Syntax error" is here to catch this case.
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4053 #ifdef __STDC__
4054 # include <limits.h>
4055 #else
4056 # include <assert.h>
4057 #endif
4058 Syntax error
4059 _ACEOF
4060 if ac_fn_c_try_cpp "$LINENO"; then :
4061
4062 else
4063 # Broken: fails on valid input.
4064 continue
4065 fi
4066 rm -f conftest.err conftest.i conftest.$ac_ext
4067
4068 # OK, works on sane cases. Now check whether nonexistent headers
4069 # can be detected and how.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072 #include <ac_nonexistent.h>
4073 _ACEOF
4074 if ac_fn_c_try_cpp "$LINENO"; then :
4075 # Broken: success on invalid input.
4076 continue
4077 else
4078 # Passes both tests.
4079 ac_preproc_ok=:
4080 break
4081 fi
4082 rm -f conftest.err conftest.i conftest.$ac_ext
4083
4084 done
4085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4086 rm -f conftest.i conftest.err conftest.$ac_ext
4087 if $ac_preproc_ok; then :
4088
4089 else
4090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4092 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4093 See \`config.log' for more details" "$LINENO" 5; }
4094 fi
4095
4096 ac_ext=c
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4104 $as_echo_n "checking whether ln -s works... " >&6; }
4105 LN_S=$as_ln_s
4106 if test "$LN_S" = "ln -s"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4108 $as_echo "yes" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4111 $as_echo "no, using $LN_S" >&6; }
4112 fi
4113
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4115 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4116 set x ${MAKE-make}
4117 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4118 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 cat >conftest.make <<\_ACEOF
4122 SHELL = /bin/sh
4123 all:
4124 @echo '@@@%%%=$(MAKE)=@@@%%%'
4125 _ACEOF
4126 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4127 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4128 *@@@%%%=?*=@@@%%%*)
4129 eval ac_cv_prog_make_${ac_make}_set=yes;;
4130 *)
4131 eval ac_cv_prog_make_${ac_make}_set=no;;
4132 esac
4133 rm -f conftest.make
4134 fi
4135 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4137 $as_echo "yes" >&6; }
4138 SET_MAKE=
4139 else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 $as_echo "no" >&6; }
4142 SET_MAKE="MAKE=${MAKE-make}"
4143 fi
4144
4145 case `pwd` in
4146 *\ * | *\ *)
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4148 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4149 esac
4150
4151
4152
4153 macro_version='2.4.2'
4154 macro_revision='1.3337'
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168 ltmain="$ac_aux_dir/ltmain.sh"
4169
4170 # Make sure we can run config.sub.
4171 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4172 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4173
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4175 $as_echo_n "checking build system type... " >&6; }
4176 if ${ac_cv_build+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 ac_build_alias=$build_alias
4180 test "x$ac_build_alias" = x &&
4181 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4182 test "x$ac_build_alias" = x &&
4183 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4184 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4185 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4186
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4189 $as_echo "$ac_cv_build" >&6; }
4190 case $ac_cv_build in
4191 *-*-*) ;;
4192 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4193 esac
4194 build=$ac_cv_build
4195 ac_save_IFS=$IFS; IFS='-'
4196 set x $ac_cv_build
4197 shift
4198 build_cpu=$1
4199 build_vendor=$2
4200 shift; shift
4201 # Remember, the first character of IFS is used to create $*,
4202 # except with old shells:
4203 build_os=$*
4204 IFS=$ac_save_IFS
4205 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4206
4207
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4209 $as_echo_n "checking host system type... " >&6; }
4210 if ${ac_cv_host+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if test "x$host_alias" = x; then
4214 ac_cv_host=$ac_cv_build
4215 else
4216 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4217 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4218 fi
4219
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4222 $as_echo "$ac_cv_host" >&6; }
4223 case $ac_cv_host in
4224 *-*-*) ;;
4225 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4226 esac
4227 host=$ac_cv_host
4228 ac_save_IFS=$IFS; IFS='-'
4229 set x $ac_cv_host
4230 shift
4231 host_cpu=$1
4232 host_vendor=$2
4233 shift; shift
4234 # Remember, the first character of IFS is used to create $*,
4235 # except with old shells:
4236 host_os=$*
4237 IFS=$ac_save_IFS
4238 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4239
4240
4241 # Backslashify metacharacters that are still active within
4242 # double-quoted strings.
4243 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4244
4245 # Same as above, but do not quote variable references.
4246 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4247
4248 # Sed substitution to delay expansion of an escaped shell variable in a
4249 # double_quote_subst'ed string.
4250 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4251
4252 # Sed substitution to delay expansion of an escaped single quote.
4253 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4254
4255 # Sed substitution to avoid accidental globbing in evaled expressions
4256 no_glob_subst='s/\*/\\\*/g'
4257
4258 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4259 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4260 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4261
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4263 $as_echo_n "checking how to print strings... " >&6; }
4264 # Test print first, because it will be a builtin if present.
4265 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4266 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4267 ECHO='print -r --'
4268 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4269 ECHO='printf %s\n'
4270 else
4271 # Use this function as a fallback that always works.
4272 func_fallback_echo ()
4273 {
4274 eval 'cat <<_LTECHO_EOF
4275 $1
4276 _LTECHO_EOF'
4277 }
4278 ECHO='func_fallback_echo'
4279 fi
4280
4281 # func_echo_all arg...
4282 # Invoke $ECHO with all args, space-separated.
4283 func_echo_all ()
4284 {
4285 $ECHO ""
4286 }
4287
4288 case "$ECHO" in
4289 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4290 $as_echo "printf" >&6; } ;;
4291 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4292 $as_echo "print -r" >&6; } ;;
4293 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4294 $as_echo "cat" >&6; } ;;
4295 esac
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4311 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4312 if ${ac_cv_path_SED+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4316 for ac_i in 1 2 3 4 5 6 7; do
4317 ac_script="$ac_script$as_nl$ac_script"
4318 done
4319 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4320 { ac_script=; unset ac_script;}
4321 if test -z "$SED"; then
4322 ac_path_SED_found=false
4323 # Loop through the user's path and test for each of PROGNAME-LIST
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_prog in sed gsed; do
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4332 as_fn_executable_p "$ac_path_SED" || continue
4333 # Check for GNU ac_path_SED and select it if it is found.
4334 # Check for GNU $ac_path_SED
4335 case `"$ac_path_SED" --version 2>&1` in
4336 *GNU*)
4337 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4338 *)
4339 ac_count=0
4340 $as_echo_n 0123456789 >"conftest.in"
4341 while :
4342 do
4343 cat "conftest.in" "conftest.in" >"conftest.tmp"
4344 mv "conftest.tmp" "conftest.in"
4345 cp "conftest.in" "conftest.nl"
4346 $as_echo '' >> "conftest.nl"
4347 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349 as_fn_arith $ac_count + 1 && ac_count=$as_val
4350 if test $ac_count -gt ${ac_path_SED_max-0}; then
4351 # Best one so far, save it but keep looking for a better one
4352 ac_cv_path_SED="$ac_path_SED"
4353 ac_path_SED_max=$ac_count
4354 fi
4355 # 10*(2^10) chars as input seems more than enough
4356 test $ac_count -gt 10 && break
4357 done
4358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359 esac
4360
4361 $ac_path_SED_found && break 3
4362 done
4363 done
4364 done
4365 IFS=$as_save_IFS
4366 if test -z "$ac_cv_path_SED"; then
4367 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4368 fi
4369 else
4370 ac_cv_path_SED=$SED
4371 fi
4372
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4375 $as_echo "$ac_cv_path_SED" >&6; }
4376 SED="$ac_cv_path_SED"
4377 rm -f conftest.sed
4378
4379 test -z "$SED" && SED=sed
4380 Xsed="$SED -e 1s/^X//"
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4393 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4394 if ${ac_cv_path_GREP+:} false; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 if test -z "$GREP"; then
4398 ac_path_GREP_found=false
4399 # Loop through the user's path and test for each of PROGNAME-LIST
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4402 do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_prog in grep ggrep; do
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4408 as_fn_executable_p "$ac_path_GREP" || continue
4409 # Check for GNU ac_path_GREP and select it if it is found.
4410 # Check for GNU $ac_path_GREP
4411 case `"$ac_path_GREP" --version 2>&1` in
4412 *GNU*)
4413 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4414 *)
4415 ac_count=0
4416 $as_echo_n 0123456789 >"conftest.in"
4417 while :
4418 do
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 $as_echo 'GREP' >> "conftest.nl"
4423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 as_fn_arith $ac_count + 1 && ac_count=$as_val
4426 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_GREP="$ac_path_GREP"
4429 ac_path_GREP_max=$ac_count
4430 fi
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4433 done
4434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435 esac
4436
4437 $ac_path_GREP_found && break 3
4438 done
4439 done
4440 done
4441 IFS=$as_save_IFS
4442 if test -z "$ac_cv_path_GREP"; then
4443 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4444 fi
4445 else
4446 ac_cv_path_GREP=$GREP
4447 fi
4448
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4451 $as_echo "$ac_cv_path_GREP" >&6; }
4452 GREP="$ac_cv_path_GREP"
4453
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4456 $as_echo_n "checking for egrep... " >&6; }
4457 if ${ac_cv_path_EGREP+:} false; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4461 then ac_cv_path_EGREP="$GREP -E"
4462 else
4463 if test -z "$EGREP"; then
4464 ac_path_EGREP_found=false
4465 # Loop through the user's path and test for each of PROGNAME-LIST
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4468 do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_prog in egrep; do
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4474 as_fn_executable_p "$ac_path_EGREP" || continue
4475 # Check for GNU ac_path_EGREP and select it if it is found.
4476 # Check for GNU $ac_path_EGREP
4477 case `"$ac_path_EGREP" --version 2>&1` in
4478 *GNU*)
4479 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4480 *)
4481 ac_count=0
4482 $as_echo_n 0123456789 >"conftest.in"
4483 while :
4484 do
4485 cat "conftest.in" "conftest.in" >"conftest.tmp"
4486 mv "conftest.tmp" "conftest.in"
4487 cp "conftest.in" "conftest.nl"
4488 $as_echo 'EGREP' >> "conftest.nl"
4489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4491 as_fn_arith $ac_count + 1 && ac_count=$as_val
4492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4493 # Best one so far, save it but keep looking for a better one
4494 ac_cv_path_EGREP="$ac_path_EGREP"
4495 ac_path_EGREP_max=$ac_count
4496 fi
4497 # 10*(2^10) chars as input seems more than enough
4498 test $ac_count -gt 10 && break
4499 done
4500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4501 esac
4502
4503 $ac_path_EGREP_found && break 3
4504 done
4505 done
4506 done
4507 IFS=$as_save_IFS
4508 if test -z "$ac_cv_path_EGREP"; then
4509 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4510 fi
4511 else
4512 ac_cv_path_EGREP=$EGREP
4513 fi
4514
4515 fi
4516 fi
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4518 $as_echo "$ac_cv_path_EGREP" >&6; }
4519 EGREP="$ac_cv_path_EGREP"
4520
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4523 $as_echo_n "checking for fgrep... " >&6; }
4524 if ${ac_cv_path_FGREP+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4528 then ac_cv_path_FGREP="$GREP -F"
4529 else
4530 if test -z "$FGREP"; then
4531 ac_path_FGREP_found=false
4532 # Loop through the user's path and test for each of PROGNAME-LIST
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535 do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_prog in fgrep; do
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4541 as_fn_executable_p "$ac_path_FGREP" || continue
4542 # Check for GNU ac_path_FGREP and select it if it is found.
4543 # Check for GNU $ac_path_FGREP
4544 case `"$ac_path_FGREP" --version 2>&1` in
4545 *GNU*)
4546 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4547 *)
4548 ac_count=0
4549 $as_echo_n 0123456789 >"conftest.in"
4550 while :
4551 do
4552 cat "conftest.in" "conftest.in" >"conftest.tmp"
4553 mv "conftest.tmp" "conftest.in"
4554 cp "conftest.in" "conftest.nl"
4555 $as_echo 'FGREP' >> "conftest.nl"
4556 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558 as_fn_arith $ac_count + 1 && ac_count=$as_val
4559 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4560 # Best one so far, save it but keep looking for a better one
4561 ac_cv_path_FGREP="$ac_path_FGREP"
4562 ac_path_FGREP_max=$ac_count
4563 fi
4564 # 10*(2^10) chars as input seems more than enough
4565 test $ac_count -gt 10 && break
4566 done
4567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568 esac
4569
4570 $ac_path_FGREP_found && break 3
4571 done
4572 done
4573 done
4574 IFS=$as_save_IFS
4575 if test -z "$ac_cv_path_FGREP"; then
4576 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4577 fi
4578 else
4579 ac_cv_path_FGREP=$FGREP
4580 fi
4581
4582 fi
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4585 $as_echo "$ac_cv_path_FGREP" >&6; }
4586 FGREP="$ac_cv_path_FGREP"
4587
4588
4589 test -z "$GREP" && GREP=grep
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609 # Check whether --with-gnu-ld was given.
4610 if test "${with_gnu_ld+set}" = set; then :
4611 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4612 else
4613 with_gnu_ld=no
4614 fi
4615
4616 ac_prog=ld
4617 if test "$GCC" = yes; then
4618 # Check if gcc -print-prog-name=ld gives a path.
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4620 $as_echo_n "checking for ld used by $CC... " >&6; }
4621 case $host in
4622 *-*-mingw*)
4623 # gcc leaves a trailing carriage return which upsets mingw
4624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4625 *)
4626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4627 esac
4628 case $ac_prog in
4629 # Accept absolute paths.
4630 [\\/]* | ?:[\\/]*)
4631 re_direlt='/[^/][^/]*/\.\./'
4632 # Canonicalize the pathname of ld
4633 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4634 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4635 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4636 done
4637 test -z "$LD" && LD="$ac_prog"
4638 ;;
4639 "")
4640 # If it fails, then pretend we aren't using GCC.
4641 ac_prog=ld
4642 ;;
4643 *)
4644 # If it is relative, then search for the first ld in PATH.
4645 with_gnu_ld=unknown
4646 ;;
4647 esac
4648 elif test "$with_gnu_ld" = yes; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4650 $as_echo_n "checking for GNU ld... " >&6; }
4651 else
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4653 $as_echo_n "checking for non-GNU ld... " >&6; }
4654 fi
4655 if ${lt_cv_path_LD+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -z "$LD"; then
4659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4660 for ac_dir in $PATH; do
4661 IFS="$lt_save_ifs"
4662 test -z "$ac_dir" && ac_dir=.
4663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4664 lt_cv_path_LD="$ac_dir/$ac_prog"
4665 # Check to see if the program is GNU ld. I'd rather use --version,
4666 # but apparently some variants of GNU ld only accept -v.
4667 # Break only if it was the GNU/non-GNU ld that we prefer.
4668 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4669 *GNU* | *'with BFD'*)
4670 test "$with_gnu_ld" != no && break
4671 ;;
4672 *)
4673 test "$with_gnu_ld" != yes && break
4674 ;;
4675 esac
4676 fi
4677 done
4678 IFS="$lt_save_ifs"
4679 else
4680 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4681 fi
4682 fi
4683
4684 LD="$lt_cv_path_LD"
4685 if test -n "$LD"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4687 $as_echo "$LD" >&6; }
4688 else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4691 fi
4692 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4694 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4695 if ${lt_cv_prog_gnu_ld+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4699 case `$LD -v 2>&1 </dev/null` in
4700 *GNU* | *'with BFD'*)
4701 lt_cv_prog_gnu_ld=yes
4702 ;;
4703 *)
4704 lt_cv_prog_gnu_ld=no
4705 ;;
4706 esac
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4709 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4710 with_gnu_ld=$lt_cv_prog_gnu_ld
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4721 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4722 if ${lt_cv_path_NM+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$NM"; then
4726 # Let the user override the test.
4727 lt_cv_path_NM="$NM"
4728 else
4729 lt_nm_to_check="${ac_tool_prefix}nm"
4730 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4731 lt_nm_to_check="$lt_nm_to_check nm"
4732 fi
4733 for lt_tmp_nm in $lt_nm_to_check; do
4734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4735 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4736 IFS="$lt_save_ifs"
4737 test -z "$ac_dir" && ac_dir=.
4738 tmp_nm="$ac_dir/$lt_tmp_nm"
4739 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4740 # Check to see if the nm accepts a BSD-compat flag.
4741 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4742 # nm: unknown option "B" ignored
4743 # Tru64's nm complains that /dev/null is an invalid object file
4744 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4745 */dev/null* | *'Invalid file or object type'*)
4746 lt_cv_path_NM="$tmp_nm -B"
4747 break
4748 ;;
4749 *)
4750 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4751 */dev/null*)
4752 lt_cv_path_NM="$tmp_nm -p"
4753 break
4754 ;;
4755 *)
4756 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4757 continue # so that we can try to find one that supports BSD flags
4758 ;;
4759 esac
4760 ;;
4761 esac
4762 fi
4763 done
4764 IFS="$lt_save_ifs"
4765 done
4766 : ${lt_cv_path_NM=no}
4767 fi
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4770 $as_echo "$lt_cv_path_NM" >&6; }
4771 if test "$lt_cv_path_NM" != "no"; then
4772 NM="$lt_cv_path_NM"
4773 else
4774 # Didn't find any BSD compatible name lister, look for dumpbin.
4775 if test -n "$DUMPBIN"; then :
4776 # Let the user override the test.
4777 else
4778 if test -n "$ac_tool_prefix"; then
4779 for ac_prog in dumpbin "link -dump"
4780 do
4781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784 $as_echo_n "checking for $ac_word... " >&6; }
4785 if ${ac_cv_prog_DUMPBIN+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 if test -n "$DUMPBIN"; then
4789 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4801 fi
4802 done
4803 done
4804 IFS=$as_save_IFS
4805
4806 fi
4807 fi
4808 DUMPBIN=$ac_cv_prog_DUMPBIN
4809 if test -n "$DUMPBIN"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4811 $as_echo "$DUMPBIN" >&6; }
4812 else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4815 fi
4816
4817
4818 test -n "$DUMPBIN" && break
4819 done
4820 fi
4821 if test -z "$DUMPBIN"; then
4822 ac_ct_DUMPBIN=$DUMPBIN
4823 for ac_prog in dumpbin "link -dump"
4824 do
4825 # Extract the first word of "$ac_prog", so it can be a program name with args.
4826 set dummy $ac_prog; ac_word=$2
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 if test -n "$ac_ct_DUMPBIN"; then
4833 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4845 fi
4846 done
4847 done
4848 IFS=$as_save_IFS
4849
4850 fi
4851 fi
4852 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4853 if test -n "$ac_ct_DUMPBIN"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4855 $as_echo "$ac_ct_DUMPBIN" >&6; }
4856 else
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4859 fi
4860
4861
4862 test -n "$ac_ct_DUMPBIN" && break
4863 done
4864
4865 if test "x$ac_ct_DUMPBIN" = x; then
4866 DUMPBIN=":"
4867 else
4868 case $cross_compiling:$ac_tool_warned in
4869 yes:)
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4872 ac_tool_warned=yes ;;
4873 esac
4874 DUMPBIN=$ac_ct_DUMPBIN
4875 fi
4876 fi
4877
4878 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4879 *COFF*)
4880 DUMPBIN="$DUMPBIN -symbols"
4881 ;;
4882 *)
4883 DUMPBIN=:
4884 ;;
4885 esac
4886 fi
4887
4888 if test "$DUMPBIN" != ":"; then
4889 NM="$DUMPBIN"
4890 fi
4891 fi
4892 test -z "$NM" && NM=nm
4893
4894
4895
4896
4897
4898
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4900 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4901 if ${lt_cv_nm_interface+:} false; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 lt_cv_nm_interface="BSD nm"
4905 echo "int some_variable = 0;" > conftest.$ac_ext
4906 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4907 (eval "$ac_compile" 2>conftest.err)
4908 cat conftest.err >&5
4909 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4910 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4911 cat conftest.err >&5
4912 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4913 cat conftest.out >&5
4914 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4915 lt_cv_nm_interface="MS dumpbin"
4916 fi
4917 rm -f conftest*
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4920 $as_echo "$lt_cv_nm_interface" >&6; }
4921
4922 # find the maximum length of command line arguments
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4924 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4925 if ${lt_cv_sys_max_cmd_len+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 i=0
4929 teststring="ABCD"
4930
4931 case $build_os in
4932 msdosdjgpp*)
4933 # On DJGPP, this test can blow up pretty badly due to problems in libc
4934 # (any single argument exceeding 2000 bytes causes a buffer overrun
4935 # during glob expansion). Even if it were fixed, the result of this
4936 # check would be larger than it should be.
4937 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4938 ;;
4939
4940 gnu*)
4941 # Under GNU Hurd, this test is not required because there is
4942 # no limit to the length of command line arguments.
4943 # Libtool will interpret -1 as no limit whatsoever
4944 lt_cv_sys_max_cmd_len=-1;
4945 ;;
4946
4947 cygwin* | mingw* | cegcc*)
4948 # On Win9x/ME, this test blows up -- it succeeds, but takes
4949 # about 5 minutes as the teststring grows exponentially.
4950 # Worse, since 9x/ME are not pre-emptively multitasking,
4951 # you end up with a "frozen" computer, even though with patience
4952 # the test eventually succeeds (with a max line length of 256k).
4953 # Instead, let's just punt: use the minimum linelength reported by
4954 # all of the supported platforms: 8192 (on NT/2K/XP).
4955 lt_cv_sys_max_cmd_len=8192;
4956 ;;
4957
4958 mint*)
4959 # On MiNT this can take a long time and run out of memory.
4960 lt_cv_sys_max_cmd_len=8192;
4961 ;;
4962
4963 amigaos*)
4964 # On AmigaOS with pdksh, this test takes hours, literally.
4965 # So we just punt and use a minimum line length of 8192.
4966 lt_cv_sys_max_cmd_len=8192;
4967 ;;
4968
4969 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4970 # This has been around since 386BSD, at least. Likely further.
4971 if test -x /sbin/sysctl; then
4972 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4973 elif test -x /usr/sbin/sysctl; then
4974 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4975 else
4976 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4977 fi
4978 # And add a safety zone
4979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4981 ;;
4982
4983 interix*)
4984 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4985 lt_cv_sys_max_cmd_len=196608
4986 ;;
4987
4988 os2*)
4989 # The test takes a long time on OS/2.
4990 lt_cv_sys_max_cmd_len=8192
4991 ;;
4992
4993 osf*)
4994 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4995 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4996 # nice to cause kernel panics so lets avoid the loop below.
4997 # First set a reasonable default.
4998 lt_cv_sys_max_cmd_len=16384
4999 #
5000 if test -x /sbin/sysconfig; then
5001 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5002 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5003 esac
5004 fi
5005 ;;
5006 sco3.2v5*)
5007 lt_cv_sys_max_cmd_len=102400
5008 ;;
5009 sysv5* | sco5v6* | sysv4.2uw2*)
5010 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5011 if test -n "$kargmax"; then
5012 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5013 else
5014 lt_cv_sys_max_cmd_len=32768
5015 fi
5016 ;;
5017 *)
5018 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5019 if test -n "$lt_cv_sys_max_cmd_len"; then
5020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5022 else
5023 # Make teststring a little bigger before we do anything with it.
5024 # a 1K string should be a reasonable start.
5025 for i in 1 2 3 4 5 6 7 8 ; do
5026 teststring=$teststring$teststring
5027 done
5028 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5029 # If test is not a shell built-in, we'll probably end up computing a
5030 # maximum length that is only half of the actual maximum length, but
5031 # we can't tell.
5032 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5033 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5034 test $i != 17 # 1/2 MB should be enough
5035 do
5036 i=`expr $i + 1`
5037 teststring=$teststring$teststring
5038 done
5039 # Only check the string length outside the loop.
5040 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5041 teststring=
5042 # Add a significant safety factor because C++ compilers can tack on
5043 # massive amounts of additional arguments before passing them to the
5044 # linker. It appears as though 1/2 is a usable value.
5045 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5046 fi
5047 ;;
5048 esac
5049
5050 fi
5051
5052 if test -n $lt_cv_sys_max_cmd_len ; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5054 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5055 else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5057 $as_echo "none" >&6; }
5058 fi
5059 max_cmd_len=$lt_cv_sys_max_cmd_len
5060
5061
5062
5063
5064
5065
5066 : ${CP="cp -f"}
5067 : ${MV="mv -f"}
5068 : ${RM="rm -f"}
5069
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5071 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5072 # Try some XSI features
5073 xsi_shell=no
5074 ( _lt_dummy="a/b/c"
5075 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5076 = c,a/b,b/c, \
5077 && eval 'test $(( 1 + 1 )) -eq 2 \
5078 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5079 && xsi_shell=yes
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5081 $as_echo "$xsi_shell" >&6; }
5082
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5085 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5086 lt_shell_append=no
5087 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5088 >/dev/null 2>&1 \
5089 && lt_shell_append=yes
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5091 $as_echo "$lt_shell_append" >&6; }
5092
5093
5094 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5095 lt_unset=unset
5096 else
5097 lt_unset=false
5098 fi
5099
5100
5101
5102
5103
5104 # test EBCDIC or ASCII
5105 case `echo X|tr X '\101'` in
5106 A) # ASCII based system
5107 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5108 lt_SP2NL='tr \040 \012'
5109 lt_NL2SP='tr \015\012 \040\040'
5110 ;;
5111 *) # EBCDIC based system
5112 lt_SP2NL='tr \100 \n'
5113 lt_NL2SP='tr \r\n \100\100'
5114 ;;
5115 esac
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5126 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5127 if ${lt_cv_to_host_file_cmd+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 case $host in
5131 *-*-mingw* )
5132 case $build in
5133 *-*-mingw* ) # actually msys
5134 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5135 ;;
5136 *-*-cygwin* )
5137 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5138 ;;
5139 * ) # otherwise, assume *nix
5140 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5141 ;;
5142 esac
5143 ;;
5144 *-*-cygwin* )
5145 case $build in
5146 *-*-mingw* ) # actually msys
5147 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5148 ;;
5149 *-*-cygwin* )
5150 lt_cv_to_host_file_cmd=func_convert_file_noop
5151 ;;
5152 * ) # otherwise, assume *nix
5153 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5154 ;;
5155 esac
5156 ;;
5157 * ) # unhandled hosts (and "normal" native builds)
5158 lt_cv_to_host_file_cmd=func_convert_file_noop
5159 ;;
5160 esac
5161
5162 fi
5163
5164 to_host_file_cmd=$lt_cv_to_host_file_cmd
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5166 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5167
5168
5169
5170
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5173 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5174 if ${lt_cv_to_tool_file_cmd+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 #assume ordinary cross tools, or native build.
5178 lt_cv_to_tool_file_cmd=func_convert_file_noop
5179 case $host in
5180 *-*-mingw* )
5181 case $build in
5182 *-*-mingw* ) # actually msys
5183 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5184 ;;
5185 esac
5186 ;;
5187 esac
5188
5189 fi
5190
5191 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5193 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5194
5195
5196
5197
5198
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5200 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5201 if ${lt_cv_ld_reload_flag+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 lt_cv_ld_reload_flag='-r'
5205 fi
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5207 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5208 reload_flag=$lt_cv_ld_reload_flag
5209 case $reload_flag in
5210 "" | " "*) ;;
5211 *) reload_flag=" $reload_flag" ;;
5212 esac
5213 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5214 case $host_os in
5215 cygwin* | mingw* | pw32* | cegcc*)
5216 if test "$GCC" != yes; then
5217 reload_cmds=false
5218 fi
5219 ;;
5220 darwin*)
5221 if test "$GCC" = yes; then
5222 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5223 else
5224 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5225 fi
5226 ;;
5227 esac
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237 if test -n "$ac_tool_prefix"; then
5238 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5239 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_prog_OBJDUMP+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$OBJDUMP"; then
5246 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 OBJDUMP=$ac_cv_prog_OBJDUMP
5266 if test -n "$OBJDUMP"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5268 $as_echo "$OBJDUMP" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274
5275 fi
5276 if test -z "$ac_cv_prog_OBJDUMP"; then
5277 ac_ct_OBJDUMP=$OBJDUMP
5278 # Extract the first word of "objdump", so it can be a program name with args.
5279 set dummy objdump; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test -n "$ac_ct_OBJDUMP"; then
5286 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299 done
5300 done
5301 IFS=$as_save_IFS
5302
5303 fi
5304 fi
5305 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5306 if test -n "$ac_ct_OBJDUMP"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5308 $as_echo "$ac_ct_OBJDUMP" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5312 fi
5313
5314 if test "x$ac_ct_OBJDUMP" = x; then
5315 OBJDUMP="false"
5316 else
5317 case $cross_compiling:$ac_tool_warned in
5318 yes:)
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5321 ac_tool_warned=yes ;;
5322 esac
5323 OBJDUMP=$ac_ct_OBJDUMP
5324 fi
5325 else
5326 OBJDUMP="$ac_cv_prog_OBJDUMP"
5327 fi
5328
5329 test -z "$OBJDUMP" && OBJDUMP=objdump
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5340 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5341 if ${lt_cv_deplibs_check_method+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 lt_cv_file_magic_cmd='$MAGIC_CMD'
5345 lt_cv_file_magic_test_file=
5346 lt_cv_deplibs_check_method='unknown'
5347 # Need to set the preceding variable on all platforms that support
5348 # interlibrary dependencies.
5349 # 'none' -- dependencies not supported.
5350 # `unknown' -- same as none, but documents that we really don't know.
5351 # 'pass_all' -- all dependencies passed with no checks.
5352 # 'test_compile' -- check by making test program.
5353 # 'file_magic [[regex]]' -- check by looking for files in library path
5354 # which responds to the $file_magic_cmd with a given extended regex.
5355 # If you have `file' or equivalent on your system and you're not sure
5356 # whether `pass_all' will *always* work, you probably want this one.
5357
5358 case $host_os in
5359 aix[4-9]*)
5360 lt_cv_deplibs_check_method=pass_all
5361 ;;
5362
5363 beos*)
5364 lt_cv_deplibs_check_method=pass_all
5365 ;;
5366
5367 bsdi[45]*)
5368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5369 lt_cv_file_magic_cmd='/usr/bin/file -L'
5370 lt_cv_file_magic_test_file=/shlib/libc.so
5371 ;;
5372
5373 cygwin*)
5374 # func_win32_libid is a shell function defined in ltmain.sh
5375 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5376 lt_cv_file_magic_cmd='func_win32_libid'
5377 ;;
5378
5379 mingw* | pw32*)
5380 # Base MSYS/MinGW do not provide the 'file' command needed by
5381 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5382 # unless we find 'file', for example because we are cross-compiling.
5383 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5384 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5385 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5386 lt_cv_file_magic_cmd='func_win32_libid'
5387 else
5388 # Keep this pattern in sync with the one in func_win32_libid.
5389 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5390 lt_cv_file_magic_cmd='$OBJDUMP -f'
5391 fi
5392 ;;
5393
5394 cegcc*)
5395 # use the weaker test based on 'objdump'. See mingw*.
5396 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5397 lt_cv_file_magic_cmd='$OBJDUMP -f'
5398 ;;
5399
5400 darwin* | rhapsody*)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403
5404 freebsd* | dragonfly*)
5405 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5406 case $host_cpu in
5407 i*86 )
5408 # Not sure whether the presence of OpenBSD here was a mistake.
5409 # Let's accept both of them until this is cleared up.
5410 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5411 lt_cv_file_magic_cmd=/usr/bin/file
5412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5413 ;;
5414 esac
5415 else
5416 lt_cv_deplibs_check_method=pass_all
5417 fi
5418 ;;
5419
5420 gnu*)
5421 lt_cv_deplibs_check_method=pass_all
5422 ;;
5423
5424 haiku*)
5425 lt_cv_deplibs_check_method=pass_all
5426 ;;
5427
5428 hpux10.20* | hpux11*)
5429 lt_cv_file_magic_cmd=/usr/bin/file
5430 case $host_cpu in
5431 ia64*)
5432 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5433 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5434 ;;
5435 hppa*64*)
5436 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5437 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5438 ;;
5439 *)
5440 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5441 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5442 ;;
5443 esac
5444 ;;
5445
5446 interix[3-9]*)
5447 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5449 ;;
5450
5451 irix5* | irix6* | nonstopux*)
5452 case $LD in
5453 *-32|*"-32 ") libmagic=32-bit;;
5454 *-n32|*"-n32 ") libmagic=N32;;
5455 *-64|*"-64 ") libmagic=64-bit;;
5456 *) libmagic=never-match;;
5457 esac
5458 lt_cv_deplibs_check_method=pass_all
5459 ;;
5460
5461 # This must be glibc/ELF.
5462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5463 lt_cv_deplibs_check_method=pass_all
5464 ;;
5465
5466 netbsd*)
5467 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5469 else
5470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5471 fi
5472 ;;
5473
5474 newos6*)
5475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5476 lt_cv_file_magic_cmd=/usr/bin/file
5477 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5478 ;;
5479
5480 *nto* | *qnx*)
5481 lt_cv_deplibs_check_method=pass_all
5482 ;;
5483
5484 openbsd*)
5485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5487 else
5488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5489 fi
5490 ;;
5491
5492 osf3* | osf4* | osf5*)
5493 lt_cv_deplibs_check_method=pass_all
5494 ;;
5495
5496 rdos*)
5497 lt_cv_deplibs_check_method=pass_all
5498 ;;
5499
5500 solaris*)
5501 lt_cv_deplibs_check_method=pass_all
5502 ;;
5503
5504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5505 lt_cv_deplibs_check_method=pass_all
5506 ;;
5507
5508 sysv4 | sysv4.3*)
5509 case $host_vendor in
5510 motorola)
5511 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]'
5512 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5513 ;;
5514 ncr)
5515 lt_cv_deplibs_check_method=pass_all
5516 ;;
5517 sequent)
5518 lt_cv_file_magic_cmd='/bin/file'
5519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5520 ;;
5521 sni)
5522 lt_cv_file_magic_cmd='/bin/file'
5523 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5524 lt_cv_file_magic_test_file=/lib/libc.so
5525 ;;
5526 siemens)
5527 lt_cv_deplibs_check_method=pass_all
5528 ;;
5529 pc)
5530 lt_cv_deplibs_check_method=pass_all
5531 ;;
5532 esac
5533 ;;
5534
5535 tpf*)
5536 lt_cv_deplibs_check_method=pass_all
5537 ;;
5538 esac
5539
5540 fi
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5542 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5543
5544 file_magic_glob=
5545 want_nocaseglob=no
5546 if test "$build" = "$host"; then
5547 case $host_os in
5548 mingw* | pw32*)
5549 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5550 want_nocaseglob=yes
5551 else
5552 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5553 fi
5554 ;;
5555 esac
5556 fi
5557
5558 file_magic_cmd=$lt_cv_file_magic_cmd
5559 deplibs_check_method=$lt_cv_deplibs_check_method
5560 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583 if test -n "$ac_tool_prefix"; then
5584 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5585 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_DLLTOOL+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 if test -n "$DLLTOOL"; then
5592 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5593 else
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5596 do
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 break 2
5604 fi
5605 done
5606 done
5607 IFS=$as_save_IFS
5608
5609 fi
5610 fi
5611 DLLTOOL=$ac_cv_prog_DLLTOOL
5612 if test -n "$DLLTOOL"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5614 $as_echo "$DLLTOOL" >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5618 fi
5619
5620
5621 fi
5622 if test -z "$ac_cv_prog_DLLTOOL"; then
5623 ac_ct_DLLTOOL=$DLLTOOL
5624 # Extract the first word of "dlltool", so it can be a program name with args.
5625 set dummy dlltool; ac_word=$2
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627 $as_echo_n "checking for $ac_word... " >&6; }
5628 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 if test -n "$ac_ct_DLLTOOL"; then
5632 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5633 else
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645 done
5646 done
5647 IFS=$as_save_IFS
5648
5649 fi
5650 fi
5651 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5652 if test -n "$ac_ct_DLLTOOL"; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5654 $as_echo "$ac_ct_DLLTOOL" >&6; }
5655 else
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5658 fi
5659
5660 if test "x$ac_ct_DLLTOOL" = x; then
5661 DLLTOOL="false"
5662 else
5663 case $cross_compiling:$ac_tool_warned in
5664 yes:)
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5667 ac_tool_warned=yes ;;
5668 esac
5669 DLLTOOL=$ac_ct_DLLTOOL
5670 fi
5671 else
5672 DLLTOOL="$ac_cv_prog_DLLTOOL"
5673 fi
5674
5675 test -z "$DLLTOOL" && DLLTOOL=dlltool
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5687 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5688 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 lt_cv_sharedlib_from_linklib_cmd='unknown'
5692
5693 case $host_os in
5694 cygwin* | mingw* | pw32* | cegcc*)
5695 # two different shell functions defined in ltmain.sh
5696 # decide which to use based on capabilities of $DLLTOOL
5697 case `$DLLTOOL --help 2>&1` in
5698 *--identify-strict*)
5699 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5700 ;;
5701 *)
5702 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5703 ;;
5704 esac
5705 ;;
5706 *)
5707 # fallback: assume linklib IS sharedlib
5708 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5709 ;;
5710 esac
5711
5712 fi
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5714 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5715 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5716 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5717
5718
5719
5720
5721
5722
5723
5724
5725 if test -n "$ac_tool_prefix"; then
5726 for ac_prog in ar
5727 do
5728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_prog_AR+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -n "$AR"; then
5736 ac_cv_prog_AR="$AR" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749 done
5750 done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 AR=$ac_cv_prog_AR
5756 if test -n "$AR"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5758 $as_echo "$AR" >&6; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762 fi
5763
5764
5765 test -n "$AR" && break
5766 done
5767 fi
5768 if test -z "$AR"; then
5769 ac_ct_AR=$AR
5770 for ac_prog in ar
5771 do
5772 # Extract the first word of "$ac_prog", so it can be a program name with args.
5773 set dummy $ac_prog; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 if test -n "$ac_ct_AR"; then
5780 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5781 else
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789 ac_cv_prog_ac_ct_AR="$ac_prog"
5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 break 2
5792 fi
5793 done
5794 done
5795 IFS=$as_save_IFS
5796
5797 fi
5798 fi
5799 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5800 if test -n "$ac_ct_AR"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5802 $as_echo "$ac_ct_AR" >&6; }
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }
5806 fi
5807
5808
5809 test -n "$ac_ct_AR" && break
5810 done
5811
5812 if test "x$ac_ct_AR" = x; then
5813 AR="false"
5814 else
5815 case $cross_compiling:$ac_tool_warned in
5816 yes:)
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5819 ac_tool_warned=yes ;;
5820 esac
5821 AR=$ac_ct_AR
5822 fi
5823 fi
5824
5825 : ${AR=ar}
5826 : ${AR_FLAGS=cru}
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5839 $as_echo_n "checking for archiver @FILE support... " >&6; }
5840 if ${lt_cv_ar_at_file+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 lt_cv_ar_at_file=no
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5846
5847 int
5848 main ()
5849 {
5850
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 echo conftest.$ac_objext > conftest.lst
5857 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5859 (eval $lt_ar_try) 2>&5
5860 ac_status=$?
5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862 test $ac_status = 0; }
5863 if test "$ac_status" -eq 0; then
5864 # Ensure the archiver fails upon bogus file names.
5865 rm -f conftest.$ac_objext libconftest.a
5866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5867 (eval $lt_ar_try) 2>&5
5868 ac_status=$?
5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5870 test $ac_status = 0; }
5871 if test "$ac_status" -ne 0; then
5872 lt_cv_ar_at_file=@
5873 fi
5874 fi
5875 rm -f conftest.* libconftest.a
5876
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879
5880 fi
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5882 $as_echo "$lt_cv_ar_at_file" >&6; }
5883
5884 if test "x$lt_cv_ar_at_file" = xno; then
5885 archiver_list_spec=
5886 else
5887 archiver_list_spec=$lt_cv_ar_at_file
5888 fi
5889
5890
5891
5892
5893
5894
5895
5896 if test -n "$ac_tool_prefix"; then
5897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5898 set dummy ${ac_tool_prefix}strip; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_STRIP+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$STRIP"; then
5905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 STRIP=$ac_cv_prog_STRIP
5925 if test -n "$STRIP"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5927 $as_echo "$STRIP" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932
5933
5934 fi
5935 if test -z "$ac_cv_prog_STRIP"; then
5936 ac_ct_STRIP=$STRIP
5937 # Extract the first word of "strip", so it can be a program name with args.
5938 set dummy strip; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if test -n "$ac_ct_STRIP"; then
5945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_ac_ct_STRIP="strip"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958 done
5959 done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5965 if test -n "$ac_ct_STRIP"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5967 $as_echo "$ac_ct_STRIP" >&6; }
5968 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972
5973 if test "x$ac_ct_STRIP" = x; then
5974 STRIP=":"
5975 else
5976 case $cross_compiling:$ac_tool_warned in
5977 yes:)
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5980 ac_tool_warned=yes ;;
5981 esac
5982 STRIP=$ac_ct_STRIP
5983 fi
5984 else
5985 STRIP="$ac_cv_prog_STRIP"
5986 fi
5987
5988 test -z "$STRIP" && STRIP=:
5989
5990
5991
5992
5993
5994
5995 if test -n "$ac_tool_prefix"; then
5996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_prog_RANLIB+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if test -n "$RANLIB"; then
6004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 RANLIB=$ac_cv_prog_RANLIB
6024 if test -n "$RANLIB"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6026 $as_echo "$RANLIB" >&6; }
6027 else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032
6033 fi
6034 if test -z "$ac_cv_prog_RANLIB"; then
6035 ac_ct_RANLIB=$RANLIB
6036 # Extract the first word of "ranlib", so it can be a program name with args.
6037 set dummy ranlib; ac_word=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$ac_ct_RANLIB"; then
6044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053 ac_cv_prog_ac_ct_RANLIB="ranlib"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6056 fi
6057 done
6058 done
6059 IFS=$as_save_IFS
6060
6061 fi
6062 fi
6063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6064 if test -n "$ac_ct_RANLIB"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6066 $as_echo "$ac_ct_RANLIB" >&6; }
6067 else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6070 fi
6071
6072 if test "x$ac_ct_RANLIB" = x; then
6073 RANLIB=":"
6074 else
6075 case $cross_compiling:$ac_tool_warned in
6076 yes:)
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079 ac_tool_warned=yes ;;
6080 esac
6081 RANLIB=$ac_ct_RANLIB
6082 fi
6083 else
6084 RANLIB="$ac_cv_prog_RANLIB"
6085 fi
6086
6087 test -z "$RANLIB" && RANLIB=:
6088
6089
6090
6091
6092
6093
6094 # Determine commands to create old-style static archives.
6095 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6096 old_postinstall_cmds='chmod 644 $oldlib'
6097 old_postuninstall_cmds=
6098
6099 if test -n "$RANLIB"; then
6100 case $host_os in
6101 openbsd*)
6102 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6103 ;;
6104 *)
6105 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6106 ;;
6107 esac
6108 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6109 fi
6110
6111 case $host_os in
6112 darwin*)
6113 lock_old_archive_extraction=yes ;;
6114 *)
6115 lock_old_archive_extraction=no ;;
6116 esac
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156 # If no C compiler was specified, use CC.
6157 LTCC=${LTCC-"$CC"}
6158
6159 # If no C compiler flags were specified, use CFLAGS.
6160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6161
6162 # Allow CC to be a program name with arguments.
6163 compiler=$CC
6164
6165
6166 # Check for command to grab the raw symbol name followed by C symbol from nm.
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6168 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6169 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172
6173 # These are sane defaults that work on at least a few old systems.
6174 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6175
6176 # Character class describing NM global symbol codes.
6177 symcode='[BCDEGRST]'
6178
6179 # Regexp to match symbols that can be accessed directly from C.
6180 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6181
6182 # Define system-specific variables.
6183 case $host_os in
6184 aix*)
6185 symcode='[BCDT]'
6186 ;;
6187 cygwin* | mingw* | pw32* | cegcc*)
6188 symcode='[ABCDGISTW]'
6189 ;;
6190 hpux*)
6191 if test "$host_cpu" = ia64; then
6192 symcode='[ABCDEGRST]'
6193 fi
6194 ;;
6195 irix* | nonstopux*)
6196 symcode='[BCDEGRST]'
6197 ;;
6198 osf*)
6199 symcode='[BCDEGQRST]'
6200 ;;
6201 solaris*)
6202 symcode='[BDRT]'
6203 ;;
6204 sco3.2v5*)
6205 symcode='[DT]'
6206 ;;
6207 sysv4.2uw2*)
6208 symcode='[DT]'
6209 ;;
6210 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6211 symcode='[ABDT]'
6212 ;;
6213 sysv4)
6214 symcode='[DFNSTU]'
6215 ;;
6216 esac
6217
6218 # If we're using GNU nm, then use its standard symbol codes.
6219 case `$NM -V 2>&1` in
6220 *GNU* | *'with BFD'*)
6221 symcode='[ABCDGIRSTW]' ;;
6222 esac
6223
6224 # Transform an extracted symbol line into a proper C declaration.
6225 # Some systems (esp. on ia64) link data and code symbols differently,
6226 # so use this general approach.
6227 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6228
6229 # Transform an extracted symbol line into symbol name and symbol address
6230 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6231 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6232
6233 # Handle CRLF in mingw tool chain
6234 opt_cr=
6235 case $build_os in
6236 mingw*)
6237 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6238 ;;
6239 esac
6240
6241 # Try without a prefix underscore, then with it.
6242 for ac_symprfx in "" "_"; do
6243
6244 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6245 symxfrm="\\1 $ac_symprfx\\2 \\2"
6246
6247 # Write the raw and C identifiers.
6248 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6249 # Fake it for dumpbin and say T for any non-static function
6250 # and D for any global variable.
6251 # Also find C++ and __fastcall symbols from MSVC++,
6252 # which start with @ or ?.
6253 lt_cv_sys_global_symbol_pipe="$AWK '"\
6254 " {last_section=section; section=\$ 3};"\
6255 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6256 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6257 " \$ 0!~/External *\|/{next};"\
6258 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6259 " {if(hide[section]) next};"\
6260 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6261 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6262 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6263 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6264 " ' prfx=^$ac_symprfx"
6265 else
6266 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6267 fi
6268 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6269
6270 # Check to see that the pipe works correctly.
6271 pipe_works=no
6272
6273 rm -f conftest*
6274 cat > conftest.$ac_ext <<_LT_EOF
6275 #ifdef __cplusplus
6276 extern "C" {
6277 #endif
6278 char nm_test_var;
6279 void nm_test_func(void);
6280 void nm_test_func(void){}
6281 #ifdef __cplusplus
6282 }
6283 #endif
6284 int main(){nm_test_var='a';nm_test_func();return(0);}
6285 _LT_EOF
6286
6287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6288 (eval $ac_compile) 2>&5
6289 ac_status=$?
6290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291 test $ac_status = 0; }; then
6292 # Now try to grab the symbols.
6293 nlist=conftest.nm
6294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6295 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6296 ac_status=$?
6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6298 test $ac_status = 0; } && test -s "$nlist"; then
6299 # Try sorting and uniquifying the output.
6300 if sort "$nlist" | uniq > "$nlist"T; then
6301 mv -f "$nlist"T "$nlist"
6302 else
6303 rm -f "$nlist"T
6304 fi
6305
6306 # Make sure that we snagged all the symbols we need.
6307 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6308 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6309 cat <<_LT_EOF > conftest.$ac_ext
6310 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6311 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6312 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6313 relocations are performed -- see ld's documentation on pseudo-relocs. */
6314 # define LT_DLSYM_CONST
6315 #elif defined(__osf__)
6316 /* This system does not cope well with relocations in const data. */
6317 # define LT_DLSYM_CONST
6318 #else
6319 # define LT_DLSYM_CONST const
6320 #endif
6321
6322 #ifdef __cplusplus
6323 extern "C" {
6324 #endif
6325
6326 _LT_EOF
6327 # Now generate the symbol file.
6328 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6329
6330 cat <<_LT_EOF >> conftest.$ac_ext
6331
6332 /* The mapping between symbol names and symbols. */
6333 LT_DLSYM_CONST struct {
6334 const char *name;
6335 void *address;
6336 }
6337 lt__PROGRAM__LTX_preloaded_symbols[] =
6338 {
6339 { "@PROGRAM@", (void *) 0 },
6340 _LT_EOF
6341 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6342 cat <<\_LT_EOF >> conftest.$ac_ext
6343 {0, (void *) 0}
6344 };
6345
6346 /* This works around a problem in FreeBSD linker */
6347 #ifdef FREEBSD_WORKAROUND
6348 static const void *lt_preloaded_setup() {
6349 return lt__PROGRAM__LTX_preloaded_symbols;
6350 }
6351 #endif
6352
6353 #ifdef __cplusplus
6354 }
6355 #endif
6356 _LT_EOF
6357 # Now try linking the two files.
6358 mv conftest.$ac_objext conftstm.$ac_objext
6359 lt_globsym_save_LIBS=$LIBS
6360 lt_globsym_save_CFLAGS=$CFLAGS
6361 LIBS="conftstm.$ac_objext"
6362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6364 (eval $ac_link) 2>&5
6365 ac_status=$?
6366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6367 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6368 pipe_works=yes
6369 fi
6370 LIBS=$lt_globsym_save_LIBS
6371 CFLAGS=$lt_globsym_save_CFLAGS
6372 else
6373 echo "cannot find nm_test_func in $nlist" >&5
6374 fi
6375 else
6376 echo "cannot find nm_test_var in $nlist" >&5
6377 fi
6378 else
6379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6380 fi
6381 else
6382 echo "$progname: failed program was:" >&5
6383 cat conftest.$ac_ext >&5
6384 fi
6385 rm -rf conftest* conftst*
6386
6387 # Do not use the global_symbol_pipe unless it works.
6388 if test "$pipe_works" = yes; then
6389 break
6390 else
6391 lt_cv_sys_global_symbol_pipe=
6392 fi
6393 done
6394
6395 fi
6396
6397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6398 lt_cv_sys_global_symbol_to_cdecl=
6399 fi
6400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6402 $as_echo "failed" >&6; }
6403 else
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6405 $as_echo "ok" >&6; }
6406 fi
6407
6408 # Response file support.
6409 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6410 nm_file_list_spec='@'
6411 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6412 nm_file_list_spec='@'
6413 fi
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6442 $as_echo_n "checking for sysroot... " >&6; }
6443
6444 # Check whether --with-sysroot was given.
6445 if test "${with_sysroot+set}" = set; then :
6446 withval=$with_sysroot;
6447 else
6448 with_sysroot=no
6449 fi
6450
6451
6452 lt_sysroot=
6453 case ${with_sysroot} in #(
6454 yes)
6455 if test "$GCC" = yes; then
6456 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6457 fi
6458 ;; #(
6459 /*)
6460 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6461 ;; #(
6462 no|'')
6463 ;; #(
6464 *)
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6466 $as_echo "${with_sysroot}" >&6; }
6467 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6468 ;;
6469 esac
6470
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6472 $as_echo "${lt_sysroot:-no}" >&6; }
6473
6474
6475
6476
6477
6478 # Check whether --enable-libtool-lock was given.
6479 if test "${enable_libtool_lock+set}" = set; then :
6480 enableval=$enable_libtool_lock;
6481 fi
6482
6483 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6484
6485 # Some flags need to be propagated to the compiler or linker for good
6486 # libtool support.
6487 case $host in
6488 ia64-*-hpux*)
6489 # Find out which ABI we are using.
6490 echo 'int i;' > conftest.$ac_ext
6491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6492 (eval $ac_compile) 2>&5
6493 ac_status=$?
6494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6495 test $ac_status = 0; }; then
6496 case `/usr/bin/file conftest.$ac_objext` in
6497 *ELF-32*)
6498 HPUX_IA64_MODE="32"
6499 ;;
6500 *ELF-64*)
6501 HPUX_IA64_MODE="64"
6502 ;;
6503 esac
6504 fi
6505 rm -rf conftest*
6506 ;;
6507 *-*-irix6*)
6508 # Find out which ABI we are using.
6509 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6511 (eval $ac_compile) 2>&5
6512 ac_status=$?
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; }; then
6515 if test "$lt_cv_prog_gnu_ld" = yes; then
6516 case `/usr/bin/file conftest.$ac_objext` in
6517 *32-bit*)
6518 LD="${LD-ld} -melf32bsmip"
6519 ;;
6520 *N32*)
6521 LD="${LD-ld} -melf32bmipn32"
6522 ;;
6523 *64-bit*)
6524 LD="${LD-ld} -melf64bmip"
6525 ;;
6526 esac
6527 else
6528 case `/usr/bin/file conftest.$ac_objext` in
6529 *32-bit*)
6530 LD="${LD-ld} -32"
6531 ;;
6532 *N32*)
6533 LD="${LD-ld} -n32"
6534 ;;
6535 *64-bit*)
6536 LD="${LD-ld} -64"
6537 ;;
6538 esac
6539 fi
6540 fi
6541 rm -rf conftest*
6542 ;;
6543
6544 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6545 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6546 # Find out which ABI we are using.
6547 echo 'int i;' > conftest.$ac_ext
6548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6549 (eval $ac_compile) 2>&5
6550 ac_status=$?
6551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552 test $ac_status = 0; }; then
6553 case `/usr/bin/file conftest.o` in
6554 *32-bit*)
6555 case $host in
6556 x86_64-*kfreebsd*-gnu)
6557 LD="${LD-ld} -m elf_i386_fbsd"
6558 ;;
6559 x86_64-*linux*)
6560 LD="${LD-ld} -m elf_i386"
6561 ;;
6562 ppc64-*linux*|powerpc64-*linux*)
6563 LD="${LD-ld} -m elf32ppclinux"
6564 ;;
6565 s390x-*linux*)
6566 LD="${LD-ld} -m elf_s390"
6567 ;;
6568 sparc64-*linux*)
6569 LD="${LD-ld} -m elf32_sparc"
6570 ;;
6571 esac
6572 ;;
6573 *64-bit*)
6574 case $host in
6575 x86_64-*kfreebsd*-gnu)
6576 LD="${LD-ld} -m elf_x86_64_fbsd"
6577 ;;
6578 x86_64-*linux*)
6579 LD="${LD-ld} -m elf_x86_64"
6580 ;;
6581 ppc*-*linux*|powerpc*-*linux*)
6582 LD="${LD-ld} -m elf64ppc"
6583 ;;
6584 s390*-*linux*|s390*-*tpf*)
6585 LD="${LD-ld} -m elf64_s390"
6586 ;;
6587 sparc*-*linux*)
6588 LD="${LD-ld} -m elf64_sparc"
6589 ;;
6590 esac
6591 ;;
6592 esac
6593 fi
6594 rm -rf conftest*
6595 ;;
6596
6597 *-*-sco3.2v5*)
6598 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6599 SAVE_CFLAGS="$CFLAGS"
6600 CFLAGS="$CFLAGS -belf"
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6602 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6603 if ${lt_cv_cc_needs_belf+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 ac_ext=c
6607 ac_cpp='$CPP $CPPFLAGS'
6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6614
6615 int
6616 main ()
6617 {
6618
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 if ac_fn_c_try_link "$LINENO"; then :
6624 lt_cv_cc_needs_belf=yes
6625 else
6626 lt_cv_cc_needs_belf=no
6627 fi
6628 rm -f core conftest.err conftest.$ac_objext \
6629 conftest$ac_exeext conftest.$ac_ext
6630 ac_ext=c
6631 ac_cpp='$CPP $CPPFLAGS'
6632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6635
6636 fi
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6638 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6639 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6640 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6641 CFLAGS="$SAVE_CFLAGS"
6642 fi
6643 ;;
6644 *-*solaris*)
6645 # Find out which ABI we are using.
6646 echo 'int i;' > conftest.$ac_ext
6647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6648 (eval $ac_compile) 2>&5
6649 ac_status=$?
6650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6651 test $ac_status = 0; }; then
6652 case `/usr/bin/file conftest.o` in
6653 *64-bit*)
6654 case $lt_cv_prog_gnu_ld in
6655 yes*)
6656 case $host in
6657 i?86-*-solaris*)
6658 LD="${LD-ld} -m elf_x86_64"
6659 ;;
6660 sparc*-*-solaris*)
6661 LD="${LD-ld} -m elf64_sparc"
6662 ;;
6663 esac
6664 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6665 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6666 LD="${LD-ld}_sol2"
6667 fi
6668 ;;
6669 *)
6670 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6671 LD="${LD-ld} -64"
6672 fi
6673 ;;
6674 esac
6675 ;;
6676 esac
6677 fi
6678 rm -rf conftest*
6679 ;;
6680 esac
6681
6682 need_locks="$enable_libtool_lock"
6683
6684 if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6686 set dummy ${ac_tool_prefix}mt; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 if test -n "$MANIFEST_TOOL"; then
6693 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709
6710 fi
6711 fi
6712 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6713 if test -n "$MANIFEST_TOOL"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6715 $as_echo "$MANIFEST_TOOL" >&6; }
6716 else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6719 fi
6720
6721
6722 fi
6723 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6724 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6725 # Extract the first word of "mt", so it can be a program name with args.
6726 set dummy mt; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 if test -n "$ac_ct_MANIFEST_TOOL"; then
6733 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6753 if test -n "$ac_ct_MANIFEST_TOOL"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6755 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6756 else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6762 MANIFEST_TOOL=":"
6763 else
6764 case $cross_compiling:$ac_tool_warned in
6765 yes:)
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6771 fi
6772 else
6773 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6774 fi
6775
6776 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6778 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6779 if ${lt_cv_path_mainfest_tool+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 lt_cv_path_mainfest_tool=no
6783 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6784 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6785 cat conftest.err >&5
6786 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6787 lt_cv_path_mainfest_tool=yes
6788 fi
6789 rm -f conftest*
6790 fi
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6792 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6793 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6794 MANIFEST_TOOL=:
6795 fi
6796
6797
6798
6799
6800
6801
6802 case $host_os in
6803 rhapsody* | darwin*)
6804 if test -n "$ac_tool_prefix"; then
6805 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6806 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 if test -n "$DSYMUTIL"; then
6813 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6825 fi
6826 done
6827 done
6828 IFS=$as_save_IFS
6829
6830 fi
6831 fi
6832 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6833 if test -n "$DSYMUTIL"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6835 $as_echo "$DSYMUTIL" >&6; }
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 fi
6840
6841
6842 fi
6843 if test -z "$ac_cv_prog_DSYMUTIL"; then
6844 ac_ct_DSYMUTIL=$DSYMUTIL
6845 # Extract the first word of "dsymutil", so it can be a program name with args.
6846 set dummy dsymutil; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -n "$ac_ct_DSYMUTIL"; then
6853 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6862 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6865 fi
6866 done
6867 done
6868 IFS=$as_save_IFS
6869
6870 fi
6871 fi
6872 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6873 if test -n "$ac_ct_DSYMUTIL"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6875 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6876 else
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880
6881 if test "x$ac_ct_DSYMUTIL" = x; then
6882 DSYMUTIL=":"
6883 else
6884 case $cross_compiling:$ac_tool_warned in
6885 yes:)
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888 ac_tool_warned=yes ;;
6889 esac
6890 DSYMUTIL=$ac_ct_DSYMUTIL
6891 fi
6892 else
6893 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6894 fi
6895
6896 if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6898 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if ${ac_cv_prog_NMEDIT+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 if test -n "$NMEDIT"; then
6905 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918 done
6919 done
6920 IFS=$as_save_IFS
6921
6922 fi
6923 fi
6924 NMEDIT=$ac_cv_prog_NMEDIT
6925 if test -n "$NMEDIT"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6927 $as_echo "$NMEDIT" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933
6934 fi
6935 if test -z "$ac_cv_prog_NMEDIT"; then
6936 ac_ct_NMEDIT=$NMEDIT
6937 # Extract the first word of "nmedit", so it can be a program name with args.
6938 set dummy nmedit; ac_word=$2
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 if test -n "$ac_ct_NMEDIT"; then
6945 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6965 if test -n "$ac_ct_NMEDIT"; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6967 $as_echo "$ac_ct_NMEDIT" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6971 fi
6972
6973 if test "x$ac_ct_NMEDIT" = x; then
6974 NMEDIT=":"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982 NMEDIT=$ac_ct_NMEDIT
6983 fi
6984 else
6985 NMEDIT="$ac_cv_prog_NMEDIT"
6986 fi
6987
6988 if test -n "$ac_tool_prefix"; then
6989 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6990 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_prog_LIPO+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 if test -n "$LIPO"; then
6997 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 LIPO=$ac_cv_prog_LIPO
7017 if test -n "$LIPO"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7019 $as_echo "$LIPO" >&6; }
7020 else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023 fi
7024
7025
7026 fi
7027 if test -z "$ac_cv_prog_LIPO"; then
7028 ac_ct_LIPO=$LIPO
7029 # Extract the first word of "lipo", so it can be a program name with args.
7030 set dummy lipo; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test -n "$ac_ct_LIPO"; then
7037 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_ac_ct_LIPO="lipo"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7049 fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7057 if test -n "$ac_ct_LIPO"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7059 $as_echo "$ac_ct_LIPO" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065 if test "x$ac_ct_LIPO" = x; then
7066 LIPO=":"
7067 else
7068 case $cross_compiling:$ac_tool_warned in
7069 yes:)
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7072 ac_tool_warned=yes ;;
7073 esac
7074 LIPO=$ac_ct_LIPO
7075 fi
7076 else
7077 LIPO="$ac_cv_prog_LIPO"
7078 fi
7079
7080 if test -n "$ac_tool_prefix"; then
7081 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7082 set dummy ${ac_tool_prefix}otool; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if ${ac_cv_prog_OTOOL+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 if test -n "$OTOOL"; then
7089 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106 fi
7107 fi
7108 OTOOL=$ac_cv_prog_OTOOL
7109 if test -n "$OTOOL"; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7111 $as_echo "$OTOOL" >&6; }
7112 else
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 $as_echo "no" >&6; }
7115 fi
7116
7117
7118 fi
7119 if test -z "$ac_cv_prog_OTOOL"; then
7120 ac_ct_OTOOL=$OTOOL
7121 # Extract the first word of "otool", so it can be a program name with args.
7122 set dummy otool; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 if test -n "$ac_ct_OTOOL"; then
7129 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_ac_ct_OTOOL="otool"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142 done
7143 done
7144 IFS=$as_save_IFS
7145
7146 fi
7147 fi
7148 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7149 if test -n "$ac_ct_OTOOL"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7151 $as_echo "$ac_ct_OTOOL" >&6; }
7152 else
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7155 fi
7156
7157 if test "x$ac_ct_OTOOL" = x; then
7158 OTOOL=":"
7159 else
7160 case $cross_compiling:$ac_tool_warned in
7161 yes:)
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7164 ac_tool_warned=yes ;;
7165 esac
7166 OTOOL=$ac_ct_OTOOL
7167 fi
7168 else
7169 OTOOL="$ac_cv_prog_OTOOL"
7170 fi
7171
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if ${ac_cv_prog_OTOOL64+:} false; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 if test -n "$OTOOL64"; then
7181 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7193 fi
7194 done
7195 done
7196 IFS=$as_save_IFS
7197
7198 fi
7199 fi
7200 OTOOL64=$ac_cv_prog_OTOOL64
7201 if test -n "$OTOOL64"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7203 $as_echo "$OTOOL64" >&6; }
7204 else
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7207 fi
7208
7209
7210 fi
7211 if test -z "$ac_cv_prog_OTOOL64"; then
7212 ac_ct_OTOOL64=$OTOOL64
7213 # Extract the first word of "otool64", so it can be a program name with args.
7214 set dummy otool64; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 if test -n "$ac_ct_OTOOL64"; then
7221 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 ac_cv_prog_ac_ct_OTOOL64="otool64"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7233 fi
7234 done
7235 done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7241 if test -n "$ac_ct_OTOOL64"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7243 $as_echo "$ac_ct_OTOOL64" >&6; }
7244 else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 fi
7248
7249 if test "x$ac_ct_OTOOL64" = x; then
7250 OTOOL64=":"
7251 else
7252 case $cross_compiling:$ac_tool_warned in
7253 yes:)
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256 ac_tool_warned=yes ;;
7257 esac
7258 OTOOL64=$ac_ct_OTOOL64
7259 fi
7260 else
7261 OTOOL64="$ac_cv_prog_OTOOL64"
7262 fi
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7291 $as_echo_n "checking for -single_module linker flag... " >&6; }
7292 if ${lt_cv_apple_cc_single_mod+:} false; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 lt_cv_apple_cc_single_mod=no
7296 if test -z "${LT_MULTI_MODULE}"; then
7297 # By default we will add the -single_module flag. You can override
7298 # by either setting the environment variable LT_MULTI_MODULE
7299 # non-empty at configure time, or by adding -multi_module to the
7300 # link flags.
7301 rm -rf libconftest.dylib*
7302 echo "int foo(void){return 1;}" > conftest.c
7303 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7304 -dynamiclib -Wl,-single_module conftest.c" >&5
7305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7306 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7307 _lt_result=$?
7308 # If there is a non-empty error log, and "single_module"
7309 # appears in it, assume the flag caused a linker warning
7310 if test -s conftest.err && $GREP single_module conftest.err; then
7311 cat conftest.err >&5
7312 # Otherwise, if the output was created with a 0 exit code from
7313 # the compiler, it worked.
7314 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7315 lt_cv_apple_cc_single_mod=yes
7316 else
7317 cat conftest.err >&5
7318 fi
7319 rm -rf libconftest.dylib*
7320 rm -f conftest.*
7321 fi
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7324 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7327 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7328 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 lt_cv_ld_exported_symbols_list=no
7332 save_LDFLAGS=$LDFLAGS
7333 echo "_main" > conftest.sym
7334 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337
7338 int
7339 main ()
7340 {
7341
7342 ;
7343 return 0;
7344 }
7345 _ACEOF
7346 if ac_fn_c_try_link "$LINENO"; then :
7347 lt_cv_ld_exported_symbols_list=yes
7348 else
7349 lt_cv_ld_exported_symbols_list=no
7350 fi
7351 rm -f core conftest.err conftest.$ac_objext \
7352 conftest$ac_exeext conftest.$ac_ext
7353 LDFLAGS="$save_LDFLAGS"
7354
7355 fi
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7357 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7358
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7360 $as_echo_n "checking for -force_load linker flag... " >&6; }
7361 if ${lt_cv_ld_force_load+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 lt_cv_ld_force_load=no
7365 cat > conftest.c << _LT_EOF
7366 int forced_loaded() { return 2;}
7367 _LT_EOF
7368 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7369 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7370 echo "$AR cru libconftest.a conftest.o" >&5
7371 $AR cru libconftest.a conftest.o 2>&5
7372 echo "$RANLIB libconftest.a" >&5
7373 $RANLIB libconftest.a 2>&5
7374 cat > conftest.c << _LT_EOF
7375 int main() { return 0;}
7376 _LT_EOF
7377 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7378 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7379 _lt_result=$?
7380 if test -s conftest.err && $GREP force_load conftest.err; then
7381 cat conftest.err >&5
7382 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7383 lt_cv_ld_force_load=yes
7384 else
7385 cat conftest.err >&5
7386 fi
7387 rm -f conftest.err libconftest.a conftest conftest.c
7388 rm -rf conftest.dSYM
7389
7390 fi
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7392 $as_echo "$lt_cv_ld_force_load" >&6; }
7393 case $host_os in
7394 rhapsody* | darwin1.[012])
7395 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7396 darwin1.*)
7397 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7398 darwin*) # darwin 5.x on
7399 # if running on 10.5 or later, the deployment target defaults
7400 # to the OS version, if on x86, and 10.4, the deployment
7401 # target defaults to 10.4. Don't you love it?
7402 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7403 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7404 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7405 10.[012]*)
7406 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7407 10.*)
7408 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7409 esac
7410 ;;
7411 esac
7412 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7413 _lt_dar_single_mod='$single_module'
7414 fi
7415 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7416 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7417 else
7418 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7419 fi
7420 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7421 _lt_dsymutil='~$DSYMUTIL $lib || :'
7422 else
7423 _lt_dsymutil=
7424 fi
7425 ;;
7426 esac
7427
7428
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7430 $as_echo_n "checking for ANSI C header files... " >&6; }
7431 if ${ac_cv_header_stdc+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433 else
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7436 #include <stdlib.h>
7437 #include <stdarg.h>
7438 #include <string.h>
7439 #include <float.h>
7440
7441 int
7442 main ()
7443 {
7444
7445 ;
7446 return 0;
7447 }
7448 _ACEOF
7449 if ac_fn_c_try_compile "$LINENO"; then :
7450 ac_cv_header_stdc=yes
7451 else
7452 ac_cv_header_stdc=no
7453 fi
7454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455
7456 if test $ac_cv_header_stdc = yes; then
7457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460 #include <string.h>
7461
7462 _ACEOF
7463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7464 $EGREP "memchr" >/dev/null 2>&1; then :
7465
7466 else
7467 ac_cv_header_stdc=no
7468 fi
7469 rm -f conftest*
7470
7471 fi
7472
7473 if test $ac_cv_header_stdc = yes; then
7474 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 #include <stdlib.h>
7478
7479 _ACEOF
7480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7481 $EGREP "free" >/dev/null 2>&1; then :
7482
7483 else
7484 ac_cv_header_stdc=no
7485 fi
7486 rm -f conftest*
7487
7488 fi
7489
7490 if test $ac_cv_header_stdc = yes; then
7491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7492 if test "$cross_compiling" = yes; then :
7493 :
7494 else
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 #include <ctype.h>
7498 #include <stdlib.h>
7499 #if ((' ' & 0x0FF) == 0x020)
7500 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7501 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7502 #else
7503 # define ISLOWER(c) \
7504 (('a' <= (c) && (c) <= 'i') \
7505 || ('j' <= (c) && (c) <= 'r') \
7506 || ('s' <= (c) && (c) <= 'z'))
7507 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7508 #endif
7509
7510 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7511 int
7512 main ()
7513 {
7514 int i;
7515 for (i = 0; i < 256; i++)
7516 if (XOR (islower (i), ISLOWER (i))
7517 || toupper (i) != TOUPPER (i))
7518 return 2;
7519 return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_run "$LINENO"; then :
7523
7524 else
7525 ac_cv_header_stdc=no
7526 fi
7527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7528 conftest.$ac_objext conftest.beam conftest.$ac_ext
7529 fi
7530
7531 fi
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7534 $as_echo "$ac_cv_header_stdc" >&6; }
7535 if test $ac_cv_header_stdc = yes; then
7536
7537 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7538
7539 fi
7540
7541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7542 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7543 inttypes.h stdint.h unistd.h
7544 do :
7545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7546 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7547 "
7548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7549 cat >>confdefs.h <<_ACEOF
7550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7551 _ACEOF
7552
7553 fi
7554
7555 done
7556
7557
7558 for ac_header in dlfcn.h
7559 do :
7560 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7561 "
7562 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7563 cat >>confdefs.h <<_ACEOF
7564 #define HAVE_DLFCN_H 1
7565 _ACEOF
7566
7567 fi
7568
7569 done
7570
7571
7572
7573
7574
7575 # Set options
7576
7577
7578
7579 enable_dlopen=no
7580
7581
7582 enable_win32_dll=no
7583
7584
7585 # Check whether --enable-shared was given.
7586 if test "${enable_shared+set}" = set; then :
7587 enableval=$enable_shared; p=${PACKAGE-default}
7588 case $enableval in
7589 yes) enable_shared=yes ;;
7590 no) enable_shared=no ;;
7591 *)
7592 enable_shared=no
7593 # Look at the argument we got. We use all the common list separators.
7594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7595 for pkg in $enableval; do
7596 IFS="$lt_save_ifs"
7597 if test "X$pkg" = "X$p"; then
7598 enable_shared=yes
7599 fi
7600 done
7601 IFS="$lt_save_ifs"
7602 ;;
7603 esac
7604 else
7605 enable_shared=yes
7606 fi
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616 # Check whether --enable-static was given.
7617 if test "${enable_static+set}" = set; then :
7618 enableval=$enable_static; p=${PACKAGE-default}
7619 case $enableval in
7620 yes) enable_static=yes ;;
7621 no) enable_static=no ;;
7622 *)
7623 enable_static=no
7624 # Look at the argument we got. We use all the common list separators.
7625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7626 for pkg in $enableval; do
7627 IFS="$lt_save_ifs"
7628 if test "X$pkg" = "X$p"; then
7629 enable_static=yes
7630 fi
7631 done
7632 IFS="$lt_save_ifs"
7633 ;;
7634 esac
7635 else
7636 enable_static=yes
7637 fi
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648 # Check whether --with-pic was given.
7649 if test "${with_pic+set}" = set; then :
7650 withval=$with_pic; lt_p=${PACKAGE-default}
7651 case $withval in
7652 yes|no) pic_mode=$withval ;;
7653 *)
7654 pic_mode=default
7655 # Look at the argument we got. We use all the common list separators.
7656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7657 for lt_pkg in $withval; do
7658 IFS="$lt_save_ifs"
7659 if test "X$lt_pkg" = "X$lt_p"; then
7660 pic_mode=yes
7661 fi
7662 done
7663 IFS="$lt_save_ifs"
7664 ;;
7665 esac
7666 else
7667 pic_mode=default
7668 fi
7669
7670
7671 test -z "$pic_mode" && pic_mode=default
7672
7673
7674
7675
7676
7677
7678
7679 # Check whether --enable-fast-install was given.
7680 if test "${enable_fast_install+set}" = set; then :
7681 enableval=$enable_fast_install; p=${PACKAGE-default}
7682 case $enableval in
7683 yes) enable_fast_install=yes ;;
7684 no) enable_fast_install=no ;;
7685 *)
7686 enable_fast_install=no
7687 # Look at the argument we got. We use all the common list separators.
7688 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7689 for pkg in $enableval; do
7690 IFS="$lt_save_ifs"
7691 if test "X$pkg" = "X$p"; then
7692 enable_fast_install=yes
7693 fi
7694 done
7695 IFS="$lt_save_ifs"
7696 ;;
7697 esac
7698 else
7699 enable_fast_install=yes
7700 fi
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712 # This can be used to rebuild libtool when needed
7713 LIBTOOL_DEPS="$ltmain"
7714
7715 # Always use our own libtool.
7716 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747 test -z "$LN_S" && LN_S="ln -s"
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762 if test -n "${ZSH_VERSION+set}" ; then
7763 setopt NO_GLOB_SUBST
7764 fi
7765
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7767 $as_echo_n "checking for objdir... " >&6; }
7768 if ${lt_cv_objdir+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 rm -f .libs 2>/dev/null
7772 mkdir .libs 2>/dev/null
7773 if test -d .libs; then
7774 lt_cv_objdir=.libs
7775 else
7776 # MS-DOS does not allow filenames that begin with a dot.
7777 lt_cv_objdir=_libs
7778 fi
7779 rmdir .libs 2>/dev/null
7780 fi
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7782 $as_echo "$lt_cv_objdir" >&6; }
7783 objdir=$lt_cv_objdir
7784
7785
7786
7787
7788
7789 cat >>confdefs.h <<_ACEOF
7790 #define LT_OBJDIR "$lt_cv_objdir/"
7791 _ACEOF
7792
7793
7794
7795
7796 case $host_os in
7797 aix3*)
7798 # AIX sometimes has problems with the GCC collect2 program. For some
7799 # reason, if we set the COLLECT_NAMES environment variable, the problems
7800 # vanish in a puff of smoke.
7801 if test "X${COLLECT_NAMES+set}" != Xset; then
7802 COLLECT_NAMES=
7803 export COLLECT_NAMES
7804 fi
7805 ;;
7806 esac
7807
7808 # Global variables:
7809 ofile=libtool
7810 can_build_shared=yes
7811
7812 # All known linkers require a `.a' archive for static linking (except MSVC,
7813 # which needs '.lib').
7814 libext=a
7815
7816 with_gnu_ld="$lt_cv_prog_gnu_ld"
7817
7818 old_CC="$CC"
7819 old_CFLAGS="$CFLAGS"
7820
7821 # Set sane defaults for various variables
7822 test -z "$CC" && CC=cc
7823 test -z "$LTCC" && LTCC=$CC
7824 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7825 test -z "$LD" && LD=ld
7826 test -z "$ac_objext" && ac_objext=o
7827
7828 for cc_temp in $compiler""; do
7829 case $cc_temp in
7830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7832 \-*) ;;
7833 *) break;;
7834 esac
7835 done
7836 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7837
7838
7839 # Only perform the check for file, if the check method requires it
7840 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7841 case $deplibs_check_method in
7842 file_magic*)
7843 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7845 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7846 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 case $MAGIC_CMD in
7850 [\\/*] | ?:[\\/]*)
7851 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7852 ;;
7853 *)
7854 lt_save_MAGIC_CMD="$MAGIC_CMD"
7855 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7856 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7857 for ac_dir in $ac_dummy; do
7858 IFS="$lt_save_ifs"
7859 test -z "$ac_dir" && ac_dir=.
7860 if test -f $ac_dir/${ac_tool_prefix}file; then
7861 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7862 if test -n "$file_magic_test_file"; then
7863 case $deplibs_check_method in
7864 "file_magic "*)
7865 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7867 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7868 $EGREP "$file_magic_regex" > /dev/null; then
7869 :
7870 else
7871 cat <<_LT_EOF 1>&2
7872
7873 *** Warning: the command libtool uses to detect shared libraries,
7874 *** $file_magic_cmd, produces output that libtool cannot recognize.
7875 *** The result is that libtool may fail to recognize shared libraries
7876 *** as such. This will affect the creation of libtool libraries that
7877 *** depend on shared libraries, but programs linked with such libtool
7878 *** libraries will work regardless of this problem. Nevertheless, you
7879 *** may want to report the problem to your system manager and/or to
7880 *** bug-libtool@gnu.org
7881
7882 _LT_EOF
7883 fi ;;
7884 esac
7885 fi
7886 break
7887 fi
7888 done
7889 IFS="$lt_save_ifs"
7890 MAGIC_CMD="$lt_save_MAGIC_CMD"
7891 ;;
7892 esac
7893 fi
7894
7895 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7896 if test -n "$MAGIC_CMD"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7898 $as_echo "$MAGIC_CMD" >&6; }
7899 else
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7902 fi
7903
7904
7905
7906
7907
7908 if test -z "$lt_cv_path_MAGIC_CMD"; then
7909 if test -n "$ac_tool_prefix"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7911 $as_echo_n "checking for file... " >&6; }
7912 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7913 $as_echo_n "(cached) " >&6
7914 else
7915 case $MAGIC_CMD in
7916 [\\/*] | ?:[\\/]*)
7917 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7918 ;;
7919 *)
7920 lt_save_MAGIC_CMD="$MAGIC_CMD"
7921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7922 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7923 for ac_dir in $ac_dummy; do
7924 IFS="$lt_save_ifs"
7925 test -z "$ac_dir" && ac_dir=.
7926 if test -f $ac_dir/file; then
7927 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7928 if test -n "$file_magic_test_file"; then
7929 case $deplibs_check_method in
7930 "file_magic "*)
7931 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7933 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7934 $EGREP "$file_magic_regex" > /dev/null; then
7935 :
7936 else
7937 cat <<_LT_EOF 1>&2
7938
7939 *** Warning: the command libtool uses to detect shared libraries,
7940 *** $file_magic_cmd, produces output that libtool cannot recognize.
7941 *** The result is that libtool may fail to recognize shared libraries
7942 *** as such. This will affect the creation of libtool libraries that
7943 *** depend on shared libraries, but programs linked with such libtool
7944 *** libraries will work regardless of this problem. Nevertheless, you
7945 *** may want to report the problem to your system manager and/or to
7946 *** bug-libtool@gnu.org
7947
7948 _LT_EOF
7949 fi ;;
7950 esac
7951 fi
7952 break
7953 fi
7954 done
7955 IFS="$lt_save_ifs"
7956 MAGIC_CMD="$lt_save_MAGIC_CMD"
7957 ;;
7958 esac
7959 fi
7960
7961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7962 if test -n "$MAGIC_CMD"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7964 $as_echo "$MAGIC_CMD" >&6; }
7965 else
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7968 fi
7969
7970
7971 else
7972 MAGIC_CMD=:
7973 fi
7974 fi
7975
7976 fi
7977 ;;
7978 esac
7979
7980 # Use C for the default configuration in the libtool script
7981
7982 lt_save_CC="$CC"
7983 ac_ext=c
7984 ac_cpp='$CPP $CPPFLAGS'
7985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7988
7989
7990 # Source file extension for C test sources.
7991 ac_ext=c
7992
7993 # Object file extension for compiled C test sources.
7994 objext=o
7995 objext=$objext
7996
7997 # Code to be used in simple compile tests
7998 lt_simple_compile_test_code="int some_variable = 0;"
7999
8000 # Code to be used in simple link tests
8001 lt_simple_link_test_code='int main(){return(0);}'
8002
8003
8004
8005
8006
8007
8008
8009 # If no C compiler was specified, use CC.
8010 LTCC=${LTCC-"$CC"}
8011
8012 # If no C compiler flags were specified, use CFLAGS.
8013 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8014
8015 # Allow CC to be a program name with arguments.
8016 compiler=$CC
8017
8018 # Save the default compiler, since it gets overwritten when the other
8019 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8020 compiler_DEFAULT=$CC
8021
8022 # save warnings/boilerplate of simple test code
8023 ac_outfile=conftest.$ac_objext
8024 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8026 _lt_compiler_boilerplate=`cat conftest.err`
8027 $RM conftest*
8028
8029 ac_outfile=conftest.$ac_objext
8030 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8032 _lt_linker_boilerplate=`cat conftest.err`
8033 $RM -r conftest*
8034
8035
8036 ## CAVEAT EMPTOR:
8037 ## There is no encapsulation within the following macros, do not change
8038 ## the running order or otherwise move them around unless you know exactly
8039 ## what you are doing...
8040 if test -n "$compiler"; then
8041
8042 lt_prog_compiler_no_builtin_flag=
8043
8044 if test "$GCC" = yes; then
8045 case $cc_basename in
8046 nvcc*)
8047 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8048 *)
8049 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8050 esac
8051
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8053 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8054 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 lt_cv_prog_compiler_rtti_exceptions=no
8058 ac_outfile=conftest.$ac_objext
8059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8060 lt_compiler_flag="-fno-rtti -fno-exceptions"
8061 # Insert the option either (1) after the last *FLAGS variable, or
8062 # (2) before a word containing "conftest.", or (3) at the end.
8063 # Note that $ac_compile itself does not contain backslashes and begins
8064 # with a dollar sign (not a hyphen), so the echo should work correctly.
8065 # The option is referenced via a variable to avoid confusing sed.
8066 lt_compile=`echo "$ac_compile" | $SED \
8067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8069 -e 's:$: $lt_compiler_flag:'`
8070 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8071 (eval "$lt_compile" 2>conftest.err)
8072 ac_status=$?
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 if (exit $ac_status) && test -s "$ac_outfile"; then
8076 # The compiler can only warn and ignore the option if not recognized
8077 # So say no if there are warnings other than the usual output.
8078 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8081 lt_cv_prog_compiler_rtti_exceptions=yes
8082 fi
8083 fi
8084 $RM conftest*
8085
8086 fi
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8088 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8089
8090 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8091 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8092 else
8093 :
8094 fi
8095
8096 fi
8097
8098
8099
8100
8101
8102
8103 lt_prog_compiler_wl=
8104 lt_prog_compiler_pic=
8105 lt_prog_compiler_static=
8106
8107
8108 if test "$GCC" = yes; then
8109 lt_prog_compiler_wl='-Wl,'
8110 lt_prog_compiler_static='-static'
8111
8112 case $host_os in
8113 aix*)
8114 # All AIX code is PIC.
8115 if test "$host_cpu" = ia64; then
8116 # AIX 5 now supports IA64 processor
8117 lt_prog_compiler_static='-Bstatic'
8118 fi
8119 ;;
8120
8121 amigaos*)
8122 case $host_cpu in
8123 powerpc)
8124 # see comment about AmigaOS4 .so support
8125 lt_prog_compiler_pic='-fPIC'
8126 ;;
8127 m68k)
8128 # FIXME: we need at least 68020 code to build shared libraries, but
8129 # adding the `-m68020' flag to GCC prevents building anything better,
8130 # like `-m68040'.
8131 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8132 ;;
8133 esac
8134 ;;
8135
8136 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8137 # PIC is the default for these OSes.
8138 ;;
8139
8140 mingw* | cygwin* | pw32* | os2* | cegcc*)
8141 # This hack is so that the source file can tell whether it is being
8142 # built for inclusion in a dll (and should export symbols for example).
8143 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8144 # (--disable-auto-import) libraries
8145 lt_prog_compiler_pic='-DDLL_EXPORT'
8146 ;;
8147
8148 darwin* | rhapsody*)
8149 # PIC is the default on this platform
8150 # Common symbols not allowed in MH_DYLIB files
8151 lt_prog_compiler_pic='-fno-common'
8152 ;;
8153
8154 haiku*)
8155 # PIC is the default for Haiku.
8156 # The "-static" flag exists, but is broken.
8157 lt_prog_compiler_static=
8158 ;;
8159
8160 hpux*)
8161 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8162 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8163 # sets the default TLS model and affects inlining.
8164 case $host_cpu in
8165 hppa*64*)
8166 # +Z the default
8167 ;;
8168 *)
8169 lt_prog_compiler_pic='-fPIC'
8170 ;;
8171 esac
8172 ;;
8173
8174 interix[3-9]*)
8175 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8176 # Instead, we relocate shared libraries at runtime.
8177 ;;
8178
8179 msdosdjgpp*)
8180 # Just because we use GCC doesn't mean we suddenly get shared libraries
8181 # on systems that don't support them.
8182 lt_prog_compiler_can_build_shared=no
8183 enable_shared=no
8184 ;;
8185
8186 *nto* | *qnx*)
8187 # QNX uses GNU C++, but need to define -shared option too, otherwise
8188 # it will coredump.
8189 lt_prog_compiler_pic='-fPIC -shared'
8190 ;;
8191
8192 sysv4*MP*)
8193 if test -d /usr/nec; then
8194 lt_prog_compiler_pic=-Kconform_pic
8195 fi
8196 ;;
8197
8198 *)
8199 lt_prog_compiler_pic='-fPIC'
8200 ;;
8201 esac
8202
8203 case $cc_basename in
8204 nvcc*) # Cuda Compiler Driver 2.2
8205 lt_prog_compiler_wl='-Xlinker '
8206 if test -n "$lt_prog_compiler_pic"; then
8207 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8208 fi
8209 ;;
8210 esac
8211 else
8212 # PORTME Check for flag to pass linker flags through the system compiler.
8213 case $host_os in
8214 aix*)
8215 lt_prog_compiler_wl='-Wl,'
8216 if test "$host_cpu" = ia64; then
8217 # AIX 5 now supports IA64 processor
8218 lt_prog_compiler_static='-Bstatic'
8219 else
8220 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8221 fi
8222 ;;
8223
8224 mingw* | cygwin* | pw32* | os2* | cegcc*)
8225 # This hack is so that the source file can tell whether it is being
8226 # built for inclusion in a dll (and should export symbols for example).
8227 lt_prog_compiler_pic='-DDLL_EXPORT'
8228 ;;
8229
8230 hpux9* | hpux10* | hpux11*)
8231 lt_prog_compiler_wl='-Wl,'
8232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8233 # not for PA HP-UX.
8234 case $host_cpu in
8235 hppa*64*|ia64*)
8236 # +Z the default
8237 ;;
8238 *)
8239 lt_prog_compiler_pic='+Z'
8240 ;;
8241 esac
8242 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8243 lt_prog_compiler_static='${wl}-a ${wl}archive'
8244 ;;
8245
8246 irix5* | irix6* | nonstopux*)
8247 lt_prog_compiler_wl='-Wl,'
8248 # PIC (with -KPIC) is the default.
8249 lt_prog_compiler_static='-non_shared'
8250 ;;
8251
8252 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8253 case $cc_basename in
8254 # old Intel for x86_64 which still supported -KPIC.
8255 ecc*)
8256 lt_prog_compiler_wl='-Wl,'
8257 lt_prog_compiler_pic='-KPIC'
8258 lt_prog_compiler_static='-static'
8259 ;;
8260 # icc used to be incompatible with GCC.
8261 # ICC 10 doesn't accept -KPIC any more.
8262 icc* | ifort*)
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_pic='-fPIC'
8265 lt_prog_compiler_static='-static'
8266 ;;
8267 # Lahey Fortran 8.1.
8268 lf95*)
8269 lt_prog_compiler_wl='-Wl,'
8270 lt_prog_compiler_pic='--shared'
8271 lt_prog_compiler_static='--static'
8272 ;;
8273 nagfor*)
8274 # NAG Fortran compiler
8275 lt_prog_compiler_wl='-Wl,-Wl,,'
8276 lt_prog_compiler_pic='-PIC'
8277 lt_prog_compiler_static='-Bstatic'
8278 ;;
8279 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8280 # Portland Group compilers (*not* the Pentium gcc compiler,
8281 # which looks to be a dead project)
8282 lt_prog_compiler_wl='-Wl,'
8283 lt_prog_compiler_pic='-fpic'
8284 lt_prog_compiler_static='-Bstatic'
8285 ;;
8286 ccc*)
8287 lt_prog_compiler_wl='-Wl,'
8288 # All Alpha code is PIC.
8289 lt_prog_compiler_static='-non_shared'
8290 ;;
8291 xl* | bgxl* | bgf* | mpixl*)
8292 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_pic='-qpic'
8295 lt_prog_compiler_static='-qstaticlink'
8296 ;;
8297 *)
8298 case `$CC -V 2>&1 | sed 5q` in
8299 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8300 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8301 lt_prog_compiler_pic='-KPIC'
8302 lt_prog_compiler_static='-Bstatic'
8303 lt_prog_compiler_wl=''
8304 ;;
8305 *Sun\ F* | *Sun*Fortran*)
8306 lt_prog_compiler_pic='-KPIC'
8307 lt_prog_compiler_static='-Bstatic'
8308 lt_prog_compiler_wl='-Qoption ld '
8309 ;;
8310 *Sun\ C*)
8311 # Sun C 5.9
8312 lt_prog_compiler_pic='-KPIC'
8313 lt_prog_compiler_static='-Bstatic'
8314 lt_prog_compiler_wl='-Wl,'
8315 ;;
8316 *Intel*\ [CF]*Compiler*)
8317 lt_prog_compiler_wl='-Wl,'
8318 lt_prog_compiler_pic='-fPIC'
8319 lt_prog_compiler_static='-static'
8320 ;;
8321 *Portland\ Group*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-fpic'
8324 lt_prog_compiler_static='-Bstatic'
8325 ;;
8326 esac
8327 ;;
8328 esac
8329 ;;
8330
8331 newsos6)
8332 lt_prog_compiler_pic='-KPIC'
8333 lt_prog_compiler_static='-Bstatic'
8334 ;;
8335
8336 *nto* | *qnx*)
8337 # QNX uses GNU C++, but need to define -shared option too, otherwise
8338 # it will coredump.
8339 lt_prog_compiler_pic='-fPIC -shared'
8340 ;;
8341
8342 osf3* | osf4* | osf5*)
8343 lt_prog_compiler_wl='-Wl,'
8344 # All OSF/1 code is PIC.
8345 lt_prog_compiler_static='-non_shared'
8346 ;;
8347
8348 rdos*)
8349 lt_prog_compiler_static='-non_shared'
8350 ;;
8351
8352 solaris*)
8353 lt_prog_compiler_pic='-KPIC'
8354 lt_prog_compiler_static='-Bstatic'
8355 case $cc_basename in
8356 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8357 lt_prog_compiler_wl='-Qoption ld ';;
8358 *)
8359 lt_prog_compiler_wl='-Wl,';;
8360 esac
8361 ;;
8362
8363 sunos4*)
8364 lt_prog_compiler_wl='-Qoption ld '
8365 lt_prog_compiler_pic='-PIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 ;;
8368
8369 sysv4 | sysv4.2uw2* | sysv4.3*)
8370 lt_prog_compiler_wl='-Wl,'
8371 lt_prog_compiler_pic='-KPIC'
8372 lt_prog_compiler_static='-Bstatic'
8373 ;;
8374
8375 sysv4*MP*)
8376 if test -d /usr/nec ;then
8377 lt_prog_compiler_pic='-Kconform_pic'
8378 lt_prog_compiler_static='-Bstatic'
8379 fi
8380 ;;
8381
8382 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8383 lt_prog_compiler_wl='-Wl,'
8384 lt_prog_compiler_pic='-KPIC'
8385 lt_prog_compiler_static='-Bstatic'
8386 ;;
8387
8388 unicos*)
8389 lt_prog_compiler_wl='-Wl,'
8390 lt_prog_compiler_can_build_shared=no
8391 ;;
8392
8393 uts4*)
8394 lt_prog_compiler_pic='-pic'
8395 lt_prog_compiler_static='-Bstatic'
8396 ;;
8397
8398 *)
8399 lt_prog_compiler_can_build_shared=no
8400 ;;
8401 esac
8402 fi
8403
8404 case $host_os in
8405 # For platforms which do not support PIC, -DPIC is meaningless:
8406 *djgpp*)
8407 lt_prog_compiler_pic=
8408 ;;
8409 *)
8410 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8411 ;;
8412 esac
8413
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8415 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8416 if ${lt_cv_prog_compiler_pic+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8420 fi
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8422 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8423 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8424
8425 #
8426 # Check to make sure the PIC flag actually works.
8427 #
8428 if test -n "$lt_prog_compiler_pic"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8430 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8431 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 lt_cv_prog_compiler_pic_works=no
8435 ac_outfile=conftest.$ac_objext
8436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8437 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8438 # Insert the option either (1) after the last *FLAGS variable, or
8439 # (2) before a word containing "conftest.", or (3) at the end.
8440 # Note that $ac_compile itself does not contain backslashes and begins
8441 # with a dollar sign (not a hyphen), so the echo should work correctly.
8442 # The option is referenced via a variable to avoid confusing sed.
8443 lt_compile=`echo "$ac_compile" | $SED \
8444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8446 -e 's:$: $lt_compiler_flag:'`
8447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8448 (eval "$lt_compile" 2>conftest.err)
8449 ac_status=$?
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 if (exit $ac_status) && test -s "$ac_outfile"; then
8453 # The compiler can only warn and ignore the option if not recognized
8454 # So say no if there are warnings other than the usual output.
8455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8458 lt_cv_prog_compiler_pic_works=yes
8459 fi
8460 fi
8461 $RM conftest*
8462
8463 fi
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8465 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8466
8467 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8468 case $lt_prog_compiler_pic in
8469 "" | " "*) ;;
8470 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8471 esac
8472 else
8473 lt_prog_compiler_pic=
8474 lt_prog_compiler_can_build_shared=no
8475 fi
8476
8477 fi
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489 #
8490 # Check to make sure the static flag actually works.
8491 #
8492 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8494 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8495 if ${lt_cv_prog_compiler_static_works+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 lt_cv_prog_compiler_static_works=no
8499 save_LDFLAGS="$LDFLAGS"
8500 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8501 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8503 # The linker can only warn and ignore the option if not recognized
8504 # So say no if there are warnings
8505 if test -s conftest.err; then
8506 # Append any errors to the config.log.
8507 cat conftest.err 1>&5
8508 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8510 if diff conftest.exp conftest.er2 >/dev/null; then
8511 lt_cv_prog_compiler_static_works=yes
8512 fi
8513 else
8514 lt_cv_prog_compiler_static_works=yes
8515 fi
8516 fi
8517 $RM -r conftest*
8518 LDFLAGS="$save_LDFLAGS"
8519
8520 fi
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8522 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8523
8524 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8525 :
8526 else
8527 lt_prog_compiler_static=
8528 fi
8529
8530
8531
8532
8533
8534
8535
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8537 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8538 if ${lt_cv_prog_compiler_c_o+:} false; then :
8539 $as_echo_n "(cached) " >&6
8540 else
8541 lt_cv_prog_compiler_c_o=no
8542 $RM -r conftest 2>/dev/null
8543 mkdir conftest
8544 cd conftest
8545 mkdir out
8546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547
8548 lt_compiler_flag="-o out/conftest2.$ac_objext"
8549 # Insert the option either (1) after the last *FLAGS variable, or
8550 # (2) before a word containing "conftest.", or (3) at the end.
8551 # Note that $ac_compile itself does not contain backslashes and begins
8552 # with a dollar sign (not a hyphen), so the echo should work correctly.
8553 lt_compile=`echo "$ac_compile" | $SED \
8554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556 -e 's:$: $lt_compiler_flag:'`
8557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8558 (eval "$lt_compile" 2>out/conftest.err)
8559 ac_status=$?
8560 cat out/conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8563 then
8564 # The compiler can only warn and ignore the option if not recognized
8565 # So say no if there are warnings
8566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8569 lt_cv_prog_compiler_c_o=yes
8570 fi
8571 fi
8572 chmod u+w . 2>&5
8573 $RM conftest*
8574 # SGI C++ compiler will create directory out/ii_files/ for
8575 # template instantiation
8576 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8577 $RM out/* && rmdir out
8578 cd ..
8579 $RM -r conftest
8580 $RM conftest*
8581
8582 fi
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8584 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8585
8586
8587
8588
8589
8590
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8592 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8593 if ${lt_cv_prog_compiler_c_o+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 lt_cv_prog_compiler_c_o=no
8597 $RM -r conftest 2>/dev/null
8598 mkdir conftest
8599 cd conftest
8600 mkdir out
8601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8602
8603 lt_compiler_flag="-o out/conftest2.$ac_objext"
8604 # Insert the option either (1) after the last *FLAGS variable, or
8605 # (2) before a word containing "conftest.", or (3) at the end.
8606 # Note that $ac_compile itself does not contain backslashes and begins
8607 # with a dollar sign (not a hyphen), so the echo should work correctly.
8608 lt_compile=`echo "$ac_compile" | $SED \
8609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8611 -e 's:$: $lt_compiler_flag:'`
8612 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8613 (eval "$lt_compile" 2>out/conftest.err)
8614 ac_status=$?
8615 cat out/conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8618 then
8619 # The compiler can only warn and ignore the option if not recognized
8620 # So say no if there are warnings
8621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8624 lt_cv_prog_compiler_c_o=yes
8625 fi
8626 fi
8627 chmod u+w . 2>&5
8628 $RM conftest*
8629 # SGI C++ compiler will create directory out/ii_files/ for
8630 # template instantiation
8631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8632 $RM out/* && rmdir out
8633 cd ..
8634 $RM -r conftest
8635 $RM conftest*
8636
8637 fi
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8639 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8640
8641
8642
8643
8644 hard_links="nottested"
8645 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8646 # do not overwrite the value of need_locks provided by the user
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8648 $as_echo_n "checking if we can lock with hard links... " >&6; }
8649 hard_links=yes
8650 $RM conftest*
8651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8652 touch conftest.a
8653 ln conftest.a conftest.b 2>&5 || hard_links=no
8654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8656 $as_echo "$hard_links" >&6; }
8657 if test "$hard_links" = no; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8659 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8660 need_locks=warn
8661 fi
8662 else
8663 need_locks=no
8664 fi
8665
8666
8667
8668
8669
8670
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8672 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8673
8674 runpath_var=
8675 allow_undefined_flag=
8676 always_export_symbols=no
8677 archive_cmds=
8678 archive_expsym_cmds=
8679 compiler_needs_object=no
8680 enable_shared_with_static_runtimes=no
8681 export_dynamic_flag_spec=
8682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8683 hardcode_automatic=no
8684 hardcode_direct=no
8685 hardcode_direct_absolute=no
8686 hardcode_libdir_flag_spec=
8687 hardcode_libdir_separator=
8688 hardcode_minus_L=no
8689 hardcode_shlibpath_var=unsupported
8690 inherit_rpath=no
8691 link_all_deplibs=unknown
8692 module_cmds=
8693 module_expsym_cmds=
8694 old_archive_from_new_cmds=
8695 old_archive_from_expsyms_cmds=
8696 thread_safe_flag_spec=
8697 whole_archive_flag_spec=
8698 # include_expsyms should be a list of space-separated symbols to be *always*
8699 # included in the symbol list
8700 include_expsyms=
8701 # exclude_expsyms can be an extended regexp of symbols to exclude
8702 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8703 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8704 # as well as any symbol that contains `d'.
8705 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8706 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8707 # platforms (ab)use it in PIC code, but their linkers get confused if
8708 # the symbol is explicitly referenced. Since portable code cannot
8709 # rely on this symbol name, it's probably fine to never include it in
8710 # preloaded symbol tables.
8711 # Exclude shared library initialization/finalization symbols.
8712 extract_expsyms_cmds=
8713
8714 case $host_os in
8715 cygwin* | mingw* | pw32* | cegcc*)
8716 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8717 # When not using gcc, we currently assume that we are using
8718 # Microsoft Visual C++.
8719 if test "$GCC" != yes; then
8720 with_gnu_ld=no
8721 fi
8722 ;;
8723 interix*)
8724 # we just hope/assume this is gcc and not c89 (= MSVC++)
8725 with_gnu_ld=yes
8726 ;;
8727 openbsd*)
8728 with_gnu_ld=no
8729 ;;
8730 esac
8731
8732 ld_shlibs=yes
8733
8734 # On some targets, GNU ld is compatible enough with the native linker
8735 # that we're better off using the native interface for both.
8736 lt_use_gnu_ld_interface=no
8737 if test "$with_gnu_ld" = yes; then
8738 case $host_os in
8739 aix*)
8740 # The AIX port of GNU ld has always aspired to compatibility
8741 # with the native linker. However, as the warning in the GNU ld
8742 # block says, versions before 2.19.5* couldn't really create working
8743 # shared libraries, regardless of the interface used.
8744 case `$LD -v 2>&1` in
8745 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8746 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8747 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8748 *)
8749 lt_use_gnu_ld_interface=yes
8750 ;;
8751 esac
8752 ;;
8753 *)
8754 lt_use_gnu_ld_interface=yes
8755 ;;
8756 esac
8757 fi
8758
8759 if test "$lt_use_gnu_ld_interface" = yes; then
8760 # If archive_cmds runs LD, not CC, wlarc should be empty
8761 wlarc='${wl}'
8762
8763 # Set some defaults for GNU ld with shared library support. These
8764 # are reset later if shared libraries are not supported. Putting them
8765 # here allows them to be overridden if necessary.
8766 runpath_var=LD_RUN_PATH
8767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768 export_dynamic_flag_spec='${wl}--export-dynamic'
8769 # ancient GNU ld didn't support --whole-archive et. al.
8770 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8771 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8772 else
8773 whole_archive_flag_spec=
8774 fi
8775 supports_anon_versioning=no
8776 case `$LD -v 2>&1` in
8777 *GNU\ gold*) supports_anon_versioning=yes ;;
8778 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8779 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8780 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8781 *\ 2.11.*) ;; # other 2.11 versions
8782 *) supports_anon_versioning=yes ;;
8783 esac
8784
8785 # See if GNU ld supports shared libraries.
8786 case $host_os in
8787 aix[3-9]*)
8788 # On AIX/PPC, the GNU linker is very broken
8789 if test "$host_cpu" != ia64; then
8790 ld_shlibs=no
8791 cat <<_LT_EOF 1>&2
8792
8793 *** Warning: the GNU linker, at least up to release 2.19, is reported
8794 *** to be unable to reliably create shared libraries on AIX.
8795 *** Therefore, libtool is disabling shared libraries support. If you
8796 *** really care for shared libraries, you may want to install binutils
8797 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8798 *** You will then need to restart the configuration process.
8799
8800 _LT_EOF
8801 fi
8802 ;;
8803
8804 amigaos*)
8805 case $host_cpu in
8806 powerpc)
8807 # see comment about AmigaOS4 .so support
8808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809 archive_expsym_cmds=''
8810 ;;
8811 m68k)
8812 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8813 hardcode_libdir_flag_spec='-L$libdir'
8814 hardcode_minus_L=yes
8815 ;;
8816 esac
8817 ;;
8818
8819 beos*)
8820 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8821 allow_undefined_flag=unsupported
8822 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8823 # support --undefined. This deserves some investigation. FIXME
8824 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8825 else
8826 ld_shlibs=no
8827 fi
8828 ;;
8829
8830 cygwin* | mingw* | pw32* | cegcc*)
8831 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8832 # as there is no search path for DLLs.
8833 hardcode_libdir_flag_spec='-L$libdir'
8834 export_dynamic_flag_spec='${wl}--export-all-symbols'
8835 allow_undefined_flag=unsupported
8836 always_export_symbols=no
8837 enable_shared_with_static_runtimes=yes
8838 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8839 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8840
8841 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8843 # If the export-symbols file already is a .def file (1st line
8844 # is EXPORTS), use it as is; otherwise, prepend...
8845 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8846 cp $export_symbols $output_objdir/$soname.def;
8847 else
8848 echo EXPORTS > $output_objdir/$soname.def;
8849 cat $export_symbols >> $output_objdir/$soname.def;
8850 fi~
8851 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8852 else
8853 ld_shlibs=no
8854 fi
8855 ;;
8856
8857 haiku*)
8858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859 link_all_deplibs=yes
8860 ;;
8861
8862 interix[3-9]*)
8863 hardcode_direct=no
8864 hardcode_shlibpath_var=no
8865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866 export_dynamic_flag_spec='${wl}-E'
8867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8868 # Instead, shared libraries are loaded at an image base (0x10000000 by
8869 # default) and relocated if they conflict, which is a slow very memory
8870 # consuming and fragmenting process. To avoid this, we pick a random,
8871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8874 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8875 ;;
8876
8877 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8878 tmp_diet=no
8879 if test "$host_os" = linux-dietlibc; then
8880 case $cc_basename in
8881 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8882 esac
8883 fi
8884 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8885 && test "$tmp_diet" = no
8886 then
8887 tmp_addflag=' $pic_flag'
8888 tmp_sharedflag='-shared'
8889 case $cc_basename,$host_cpu in
8890 pgcc*) # Portland Group C compiler
8891 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8892 tmp_addflag=' $pic_flag'
8893 ;;
8894 pgf77* | pgf90* | pgf95* | pgfortran*)
8895 # Portland Group f77 and f90 compilers
8896 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8897 tmp_addflag=' $pic_flag -Mnomain' ;;
8898 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8899 tmp_addflag=' -i_dynamic' ;;
8900 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8901 tmp_addflag=' -i_dynamic -nofor_main' ;;
8902 ifc* | ifort*) # Intel Fortran compiler
8903 tmp_addflag=' -nofor_main' ;;
8904 lf95*) # Lahey Fortran 8.1
8905 whole_archive_flag_spec=
8906 tmp_sharedflag='--shared' ;;
8907 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8908 tmp_sharedflag='-qmkshrobj'
8909 tmp_addflag= ;;
8910 nvcc*) # Cuda Compiler Driver 2.2
8911 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8912 compiler_needs_object=yes
8913 ;;
8914 esac
8915 case `$CC -V 2>&1 | sed 5q` in
8916 *Sun\ C*) # Sun C 5.9
8917 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8918 compiler_needs_object=yes
8919 tmp_sharedflag='-G' ;;
8920 *Sun\ F*) # Sun Fortran 8.3
8921 tmp_sharedflag='-G' ;;
8922 esac
8923 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924
8925 if test "x$supports_anon_versioning" = xyes; then
8926 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8927 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8928 echo "local: *; };" >> $output_objdir/$libname.ver~
8929 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8930 fi
8931
8932 case $cc_basename in
8933 xlf* | bgf* | bgxlf* | mpixlf*)
8934 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8935 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8937 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8938 if test "x$supports_anon_versioning" = xyes; then
8939 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8940 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8941 echo "local: *; };" >> $output_objdir/$libname.ver~
8942 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8943 fi
8944 ;;
8945 esac
8946 else
8947 ld_shlibs=no
8948 fi
8949 ;;
8950
8951 netbsd*)
8952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8953 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8954 wlarc=
8955 else
8956 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8958 fi
8959 ;;
8960
8961 solaris*)
8962 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8963 ld_shlibs=no
8964 cat <<_LT_EOF 1>&2
8965
8966 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8967 *** create shared libraries on Solaris systems. Therefore, libtool
8968 *** is disabling shared libraries support. We urge you to upgrade GNU
8969 *** binutils to release 2.9.1 or newer. Another option is to modify
8970 *** your PATH or compiler configuration so that the native linker is
8971 *** used, and then restart.
8972
8973 _LT_EOF
8974 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8975 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8977 else
8978 ld_shlibs=no
8979 fi
8980 ;;
8981
8982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8983 case `$LD -v 2>&1` in
8984 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8985 ld_shlibs=no
8986 cat <<_LT_EOF 1>&2
8987
8988 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8989 *** reliably create shared libraries on SCO systems. Therefore, libtool
8990 *** is disabling shared libraries support. We urge you to upgrade GNU
8991 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8992 *** your PATH or compiler configuration so that the native linker is
8993 *** used, and then restart.
8994
8995 _LT_EOF
8996 ;;
8997 *)
8998 # For security reasons, it is highly recommended that you always
8999 # use absolute paths for naming shared libraries, and exclude the
9000 # DT_RUNPATH tag from executables and libraries. But doing so
9001 # requires that you compile everything twice, which is a pain.
9002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9003 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9006 else
9007 ld_shlibs=no
9008 fi
9009 ;;
9010 esac
9011 ;;
9012
9013 sunos4*)
9014 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9015 wlarc=
9016 hardcode_direct=yes
9017 hardcode_shlibpath_var=no
9018 ;;
9019
9020 *)
9021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9024 else
9025 ld_shlibs=no
9026 fi
9027 ;;
9028 esac
9029
9030 if test "$ld_shlibs" = no; then
9031 runpath_var=
9032 hardcode_libdir_flag_spec=
9033 export_dynamic_flag_spec=
9034 whole_archive_flag_spec=
9035 fi
9036 else
9037 # PORTME fill in a description of your system's linker (not GNU ld)
9038 case $host_os in
9039 aix3*)
9040 allow_undefined_flag=unsupported
9041 always_export_symbols=yes
9042 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9043 # Note: this linker hardcodes the directories in LIBPATH if there
9044 # are no directories specified by -L.
9045 hardcode_minus_L=yes
9046 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9047 # Neither direct hardcoding nor static linking is supported with a
9048 # broken collect2.
9049 hardcode_direct=unsupported
9050 fi
9051 ;;
9052
9053 aix[4-9]*)
9054 if test "$host_cpu" = ia64; then
9055 # On IA64, the linker does run time linking by default, so we don't
9056 # have to do anything special.
9057 aix_use_runtimelinking=no
9058 exp_sym_flag='-Bexport'
9059 no_entry_flag=""
9060 else
9061 # If we're using GNU nm, then we don't want the "-C" option.
9062 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9063 # Also, AIX nm treats weak defined symbols like other global
9064 # defined symbols, whereas GNU nm marks them as "W".
9065 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9066 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9067 else
9068 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9069 fi
9070 aix_use_runtimelinking=no
9071
9072 # Test if we are trying to use run time linking or normal
9073 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9074 # need to do runtime linking.
9075 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9076 for ld_flag in $LDFLAGS; do
9077 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9078 aix_use_runtimelinking=yes
9079 break
9080 fi
9081 done
9082 ;;
9083 esac
9084
9085 exp_sym_flag='-bexport'
9086 no_entry_flag='-bnoentry'
9087 fi
9088
9089 # When large executables or shared objects are built, AIX ld can
9090 # have problems creating the table of contents. If linking a library
9091 # or program results in "error TOC overflow" add -mminimal-toc to
9092 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9093 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9094
9095 archive_cmds=''
9096 hardcode_direct=yes
9097 hardcode_direct_absolute=yes
9098 hardcode_libdir_separator=':'
9099 link_all_deplibs=yes
9100 file_list_spec='${wl}-f,'
9101
9102 if test "$GCC" = yes; then
9103 case $host_os in aix4.[012]|aix4.[012].*)
9104 # We only want to do this on AIX 4.2 and lower, the check
9105 # below for broken collect2 doesn't work under 4.3+
9106 collect2name=`${CC} -print-prog-name=collect2`
9107 if test -f "$collect2name" &&
9108 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9109 then
9110 # We have reworked collect2
9111 :
9112 else
9113 # We have old collect2
9114 hardcode_direct=unsupported
9115 # It fails to find uninstalled libraries when the uninstalled
9116 # path is not listed in the libpath. Setting hardcode_minus_L
9117 # to unsupported forces relinking
9118 hardcode_minus_L=yes
9119 hardcode_libdir_flag_spec='-L$libdir'
9120 hardcode_libdir_separator=
9121 fi
9122 ;;
9123 esac
9124 shared_flag='-shared'
9125 if test "$aix_use_runtimelinking" = yes; then
9126 shared_flag="$shared_flag "'${wl}-G'
9127 fi
9128 else
9129 # not using gcc
9130 if test "$host_cpu" = ia64; then
9131 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9132 # chokes on -Wl,-G. The following line is correct:
9133 shared_flag='-G'
9134 else
9135 if test "$aix_use_runtimelinking" = yes; then
9136 shared_flag='${wl}-G'
9137 else
9138 shared_flag='${wl}-bM:SRE'
9139 fi
9140 fi
9141 fi
9142
9143 export_dynamic_flag_spec='${wl}-bexpall'
9144 # It seems that -bexpall does not export symbols beginning with
9145 # underscore (_), so it is better to generate a list of symbols to export.
9146 always_export_symbols=yes
9147 if test "$aix_use_runtimelinking" = yes; then
9148 # Warning - without using the other runtime loading flags (-brtl),
9149 # -berok will link without error, but may produce a broken library.
9150 allow_undefined_flag='-berok'
9151 # Determine the default libpath from the value encoded in an
9152 # empty executable.
9153 if test "${lt_cv_aix_libpath+set}" = set; then
9154 aix_libpath=$lt_cv_aix_libpath
9155 else
9156 if ${lt_cv_aix_libpath_+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161
9162 int
9163 main ()
9164 {
9165
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 if ac_fn_c_try_link "$LINENO"; then :
9171
9172 lt_aix_libpath_sed='
9173 /Import File Strings/,/^$/ {
9174 /^0/ {
9175 s/^0 *\([^ ]*\) *$/\1/
9176 p
9177 }
9178 }'
9179 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9180 # Check for a 64-bit object if we didn't find anything.
9181 if test -z "$lt_cv_aix_libpath_"; then
9182 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9183 fi
9184 fi
9185 rm -f core conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 if test -z "$lt_cv_aix_libpath_"; then
9188 lt_cv_aix_libpath_="/usr/lib:/lib"
9189 fi
9190
9191 fi
9192
9193 aix_libpath=$lt_cv_aix_libpath_
9194 fi
9195
9196 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9197 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9198 else
9199 if test "$host_cpu" = ia64; then
9200 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9201 allow_undefined_flag="-z nodefs"
9202 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9203 else
9204 # Determine the default libpath from the value encoded in an
9205 # empty executable.
9206 if test "${lt_cv_aix_libpath+set}" = set; then
9207 aix_libpath=$lt_cv_aix_libpath
9208 else
9209 if ${lt_cv_aix_libpath_+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214
9215 int
9216 main ()
9217 {
9218
9219 ;
9220 return 0;
9221 }
9222 _ACEOF
9223 if ac_fn_c_try_link "$LINENO"; then :
9224
9225 lt_aix_libpath_sed='
9226 /Import File Strings/,/^$/ {
9227 /^0/ {
9228 s/^0 *\([^ ]*\) *$/\1/
9229 p
9230 }
9231 }'
9232 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9233 # Check for a 64-bit object if we didn't find anything.
9234 if test -z "$lt_cv_aix_libpath_"; then
9235 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9236 fi
9237 fi
9238 rm -f core conftest.err conftest.$ac_objext \
9239 conftest$ac_exeext conftest.$ac_ext
9240 if test -z "$lt_cv_aix_libpath_"; then
9241 lt_cv_aix_libpath_="/usr/lib:/lib"
9242 fi
9243
9244 fi
9245
9246 aix_libpath=$lt_cv_aix_libpath_
9247 fi
9248
9249 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9250 # Warning - without using the other run time loading flags,
9251 # -berok will link without error, but may produce a broken library.
9252 no_undefined_flag=' ${wl}-bernotok'
9253 allow_undefined_flag=' ${wl}-berok'
9254 if test "$with_gnu_ld" = yes; then
9255 # We only use this code for GNU lds that support --whole-archive.
9256 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9257 else
9258 # Exported symbols can be pulled into shared objects from archives
9259 whole_archive_flag_spec='$convenience'
9260 fi
9261 archive_cmds_need_lc=yes
9262 # This is similar to how AIX traditionally builds its shared libraries.
9263 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9264 fi
9265 fi
9266 ;;
9267
9268 amigaos*)
9269 case $host_cpu in
9270 powerpc)
9271 # see comment about AmigaOS4 .so support
9272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9273 archive_expsym_cmds=''
9274 ;;
9275 m68k)
9276 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9277 hardcode_libdir_flag_spec='-L$libdir'
9278 hardcode_minus_L=yes
9279 ;;
9280 esac
9281 ;;
9282
9283 bsdi[45]*)
9284 export_dynamic_flag_spec=-rdynamic
9285 ;;
9286
9287 cygwin* | mingw* | pw32* | cegcc*)
9288 # When not using gcc, we currently assume that we are using
9289 # Microsoft Visual C++.
9290 # hardcode_libdir_flag_spec is actually meaningless, as there is
9291 # no search path for DLLs.
9292 case $cc_basename in
9293 cl*)
9294 # Native MSVC
9295 hardcode_libdir_flag_spec=' '
9296 allow_undefined_flag=unsupported
9297 always_export_symbols=yes
9298 file_list_spec='@'
9299 # Tell ltmain to make .lib files, not .a files.
9300 libext=lib
9301 # Tell ltmain to make .dll files, not .so files.
9302 shrext_cmds=".dll"
9303 # FIXME: Setting linknames here is a bad hack.
9304 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9305 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9306 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9307 else
9308 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9309 fi~
9310 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9311 linknames='
9312 # The linker will not automatically build a static lib if we build a DLL.
9313 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9314 enable_shared_with_static_runtimes=yes
9315 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9316 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9317 # Don't use ranlib
9318 old_postinstall_cmds='chmod 644 $oldlib'
9319 postlink_cmds='lt_outputfile="@OUTPUT@"~
9320 lt_tool_outputfile="@TOOL_OUTPUT@"~
9321 case $lt_outputfile in
9322 *.exe|*.EXE) ;;
9323 *)
9324 lt_outputfile="$lt_outputfile.exe"
9325 lt_tool_outputfile="$lt_tool_outputfile.exe"
9326 ;;
9327 esac~
9328 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9329 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9330 $RM "$lt_outputfile.manifest";
9331 fi'
9332 ;;
9333 *)
9334 # Assume MSVC wrapper
9335 hardcode_libdir_flag_spec=' '
9336 allow_undefined_flag=unsupported
9337 # Tell ltmain to make .lib files, not .a files.
9338 libext=lib
9339 # Tell ltmain to make .dll files, not .so files.
9340 shrext_cmds=".dll"
9341 # FIXME: Setting linknames here is a bad hack.
9342 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9343 # The linker will automatically build a .lib file if we build a DLL.
9344 old_archive_from_new_cmds='true'
9345 # FIXME: Should let the user specify the lib program.
9346 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9347 enable_shared_with_static_runtimes=yes
9348 ;;
9349 esac
9350 ;;
9351
9352 darwin* | rhapsody*)
9353
9354
9355 archive_cmds_need_lc=no
9356 hardcode_direct=no
9357 hardcode_automatic=yes
9358 hardcode_shlibpath_var=unsupported
9359 if test "$lt_cv_ld_force_load" = "yes"; then
9360 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9361
9362 else
9363 whole_archive_flag_spec=''
9364 fi
9365 link_all_deplibs=yes
9366 allow_undefined_flag="$_lt_dar_allow_undefined"
9367 case $cc_basename in
9368 ifort*) _lt_dar_can_shared=yes ;;
9369 *) _lt_dar_can_shared=$GCC ;;
9370 esac
9371 if test "$_lt_dar_can_shared" = "yes"; then
9372 output_verbose_link_cmd=func_echo_all
9373 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9374 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9375 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9376 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9377
9378 else
9379 ld_shlibs=no
9380 fi
9381
9382 ;;
9383
9384 dgux*)
9385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_libdir_flag_spec='-L$libdir'
9387 hardcode_shlibpath_var=no
9388 ;;
9389
9390 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9391 # support. Future versions do this automatically, but an explicit c++rt0.o
9392 # does not break anything, and helps significantly (at the cost of a little
9393 # extra space).
9394 freebsd2.2*)
9395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9396 hardcode_libdir_flag_spec='-R$libdir'
9397 hardcode_direct=yes
9398 hardcode_shlibpath_var=no
9399 ;;
9400
9401 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9402 freebsd2.*)
9403 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9404 hardcode_direct=yes
9405 hardcode_minus_L=yes
9406 hardcode_shlibpath_var=no
9407 ;;
9408
9409 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9410 freebsd* | dragonfly*)
9411 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9412 hardcode_libdir_flag_spec='-R$libdir'
9413 hardcode_direct=yes
9414 hardcode_shlibpath_var=no
9415 ;;
9416
9417 hpux9*)
9418 if test "$GCC" = yes; then
9419 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9420 else
9421 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9422 fi
9423 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9424 hardcode_libdir_separator=:
9425 hardcode_direct=yes
9426
9427 # hardcode_minus_L: Not really in the search PATH,
9428 # but as the default location of the library.
9429 hardcode_minus_L=yes
9430 export_dynamic_flag_spec='${wl}-E'
9431 ;;
9432
9433 hpux10*)
9434 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9435 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9436 else
9437 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9438 fi
9439 if test "$with_gnu_ld" = no; then
9440 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9441 hardcode_libdir_separator=:
9442 hardcode_direct=yes
9443 hardcode_direct_absolute=yes
9444 export_dynamic_flag_spec='${wl}-E'
9445 # hardcode_minus_L: Not really in the search PATH,
9446 # but as the default location of the library.
9447 hardcode_minus_L=yes
9448 fi
9449 ;;
9450
9451 hpux11*)
9452 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9453 case $host_cpu in
9454 hppa*64*)
9455 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 ;;
9457 ia64*)
9458 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9459 ;;
9460 *)
9461 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9462 ;;
9463 esac
9464 else
9465 case $host_cpu in
9466 hppa*64*)
9467 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9468 ;;
9469 ia64*)
9470 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9471 ;;
9472 *)
9473
9474 # Older versions of the 11.00 compiler do not understand -b yet
9475 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9477 $as_echo_n "checking if $CC understands -b... " >&6; }
9478 if ${lt_cv_prog_compiler__b+:} false; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 lt_cv_prog_compiler__b=no
9482 save_LDFLAGS="$LDFLAGS"
9483 LDFLAGS="$LDFLAGS -b"
9484 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9486 # The linker can only warn and ignore the option if not recognized
9487 # So say no if there are warnings
9488 if test -s conftest.err; then
9489 # Append any errors to the config.log.
9490 cat conftest.err 1>&5
9491 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9493 if diff conftest.exp conftest.er2 >/dev/null; then
9494 lt_cv_prog_compiler__b=yes
9495 fi
9496 else
9497 lt_cv_prog_compiler__b=yes
9498 fi
9499 fi
9500 $RM -r conftest*
9501 LDFLAGS="$save_LDFLAGS"
9502
9503 fi
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9505 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9506
9507 if test x"$lt_cv_prog_compiler__b" = xyes; then
9508 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9509 else
9510 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9511 fi
9512
9513 ;;
9514 esac
9515 fi
9516 if test "$with_gnu_ld" = no; then
9517 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518 hardcode_libdir_separator=:
9519
9520 case $host_cpu in
9521 hppa*64*|ia64*)
9522 hardcode_direct=no
9523 hardcode_shlibpath_var=no
9524 ;;
9525 *)
9526 hardcode_direct=yes
9527 hardcode_direct_absolute=yes
9528 export_dynamic_flag_spec='${wl}-E'
9529
9530 # hardcode_minus_L: Not really in the search PATH,
9531 # but as the default location of the library.
9532 hardcode_minus_L=yes
9533 ;;
9534 esac
9535 fi
9536 ;;
9537
9538 irix5* | irix6* | nonstopux*)
9539 if test "$GCC" = yes; then
9540 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9541 # Try to use the -exported_symbol ld option, if it does not
9542 # work, assume that -exports_file does not work either and
9543 # implicitly export all symbols.
9544 # This should be the same for all languages, so no per-tag cache variable.
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9546 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9547 if ${lt_cv_irix_exported_symbol+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 save_LDFLAGS="$LDFLAGS"
9551 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9554 int foo (void) { return 0; }
9555 _ACEOF
9556 if ac_fn_c_try_link "$LINENO"; then :
9557 lt_cv_irix_exported_symbol=yes
9558 else
9559 lt_cv_irix_exported_symbol=no
9560 fi
9561 rm -f core conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9563 LDFLAGS="$save_LDFLAGS"
9564 fi
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9566 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9567 if test "$lt_cv_irix_exported_symbol" = yes; then
9568 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9569 fi
9570 else
9571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9573 fi
9574 archive_cmds_need_lc='no'
9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576 hardcode_libdir_separator=:
9577 inherit_rpath=yes
9578 link_all_deplibs=yes
9579 ;;
9580
9581 netbsd*)
9582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9584 else
9585 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9586 fi
9587 hardcode_libdir_flag_spec='-R$libdir'
9588 hardcode_direct=yes
9589 hardcode_shlibpath_var=no
9590 ;;
9591
9592 newsos6)
9593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9594 hardcode_direct=yes
9595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9596 hardcode_libdir_separator=:
9597 hardcode_shlibpath_var=no
9598 ;;
9599
9600 *nto* | *qnx*)
9601 ;;
9602
9603 openbsd*)
9604 if test -f /usr/libexec/ld.so; then
9605 hardcode_direct=yes
9606 hardcode_shlibpath_var=no
9607 hardcode_direct_absolute=yes
9608 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9609 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9610 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9611 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9612 export_dynamic_flag_spec='${wl}-E'
9613 else
9614 case $host_os in
9615 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9617 hardcode_libdir_flag_spec='-R$libdir'
9618 ;;
9619 *)
9620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9621 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9622 ;;
9623 esac
9624 fi
9625 else
9626 ld_shlibs=no
9627 fi
9628 ;;
9629
9630 os2*)
9631 hardcode_libdir_flag_spec='-L$libdir'
9632 hardcode_minus_L=yes
9633 allow_undefined_flag=unsupported
9634 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9635 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9636 ;;
9637
9638 osf3*)
9639 if test "$GCC" = yes; then
9640 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9641 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9642 else
9643 allow_undefined_flag=' -expect_unresolved \*'
9644 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9645 fi
9646 archive_cmds_need_lc='no'
9647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9648 hardcode_libdir_separator=:
9649 ;;
9650
9651 osf4* | osf5*) # as osf3* with the addition of -msym flag
9652 if test "$GCC" = yes; then
9653 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9654 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9656 else
9657 allow_undefined_flag=' -expect_unresolved \*'
9658 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9659 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9660 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9661
9662 # Both c and cxx compiler support -rpath directly
9663 hardcode_libdir_flag_spec='-rpath $libdir'
9664 fi
9665 archive_cmds_need_lc='no'
9666 hardcode_libdir_separator=:
9667 ;;
9668
9669 solaris*)
9670 no_undefined_flag=' -z defs'
9671 if test "$GCC" = yes; then
9672 wlarc='${wl}'
9673 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9674 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9675 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9676 else
9677 case `$CC -V 2>&1` in
9678 *"Compilers 5.0"*)
9679 wlarc=''
9680 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9682 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9683 ;;
9684 *)
9685 wlarc='${wl}'
9686 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9687 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9688 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9689 ;;
9690 esac
9691 fi
9692 hardcode_libdir_flag_spec='-R$libdir'
9693 hardcode_shlibpath_var=no
9694 case $host_os in
9695 solaris2.[0-5] | solaris2.[0-5].*) ;;
9696 *)
9697 # The compiler driver will combine and reorder linker options,
9698 # but understands `-z linker_flag'. GCC discards it without `$wl',
9699 # but is careful enough not to reorder.
9700 # Supported since Solaris 2.6 (maybe 2.5.1?)
9701 if test "$GCC" = yes; then
9702 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9703 else
9704 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9705 fi
9706 ;;
9707 esac
9708 link_all_deplibs=yes
9709 ;;
9710
9711 sunos4*)
9712 if test "x$host_vendor" = xsequent; then
9713 # Use $CC to link under sequent, because it throws in some extra .o
9714 # files that make .init and .fini sections work.
9715 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9716 else
9717 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9718 fi
9719 hardcode_libdir_flag_spec='-L$libdir'
9720 hardcode_direct=yes
9721 hardcode_minus_L=yes
9722 hardcode_shlibpath_var=no
9723 ;;
9724
9725 sysv4)
9726 case $host_vendor in
9727 sni)
9728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9729 hardcode_direct=yes # is this really true???
9730 ;;
9731 siemens)
9732 ## LD is ld it makes a PLAMLIB
9733 ## CC just makes a GrossModule.
9734 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9735 reload_cmds='$CC -r -o $output$reload_objs'
9736 hardcode_direct=no
9737 ;;
9738 motorola)
9739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9740 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9741 ;;
9742 esac
9743 runpath_var='LD_RUN_PATH'
9744 hardcode_shlibpath_var=no
9745 ;;
9746
9747 sysv4.3*)
9748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_shlibpath_var=no
9750 export_dynamic_flag_spec='-Bexport'
9751 ;;
9752
9753 sysv4*MP*)
9754 if test -d /usr/nec; then
9755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9756 hardcode_shlibpath_var=no
9757 runpath_var=LD_RUN_PATH
9758 hardcode_runpath_var=yes
9759 ld_shlibs=yes
9760 fi
9761 ;;
9762
9763 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9764 no_undefined_flag='${wl}-z,text'
9765 archive_cmds_need_lc=no
9766 hardcode_shlibpath_var=no
9767 runpath_var='LD_RUN_PATH'
9768
9769 if test "$GCC" = yes; then
9770 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9771 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 else
9773 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9775 fi
9776 ;;
9777
9778 sysv5* | sco3.2v5* | sco5v6*)
9779 # Note: We can NOT use -z defs as we might desire, because we do not
9780 # link with -lc, and that would cause any symbols used from libc to
9781 # always be unresolved, which means just about no library would
9782 # ever link correctly. If we're not using GNU ld we use -z text
9783 # though, which does catch some bad symbols but isn't as heavy-handed
9784 # as -z defs.
9785 no_undefined_flag='${wl}-z,text'
9786 allow_undefined_flag='${wl}-z,nodefs'
9787 archive_cmds_need_lc=no
9788 hardcode_shlibpath_var=no
9789 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9790 hardcode_libdir_separator=':'
9791 link_all_deplibs=yes
9792 export_dynamic_flag_spec='${wl}-Bexport'
9793 runpath_var='LD_RUN_PATH'
9794
9795 if test "$GCC" = yes; then
9796 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9797 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 else
9799 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9800 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9801 fi
9802 ;;
9803
9804 uts4*)
9805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9806 hardcode_libdir_flag_spec='-L$libdir'
9807 hardcode_shlibpath_var=no
9808 ;;
9809
9810 *)
9811 ld_shlibs=no
9812 ;;
9813 esac
9814
9815 if test x$host_vendor = xsni; then
9816 case $host in
9817 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9818 export_dynamic_flag_spec='${wl}-Blargedynsym'
9819 ;;
9820 esac
9821 fi
9822 fi
9823
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9825 $as_echo "$ld_shlibs" >&6; }
9826 test "$ld_shlibs" = no && can_build_shared=no
9827
9828 with_gnu_ld=$with_gnu_ld
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844 #
9845 # Do we need to explicitly link libc?
9846 #
9847 case "x$archive_cmds_need_lc" in
9848 x|xyes)
9849 # Assume -lc should be added
9850 archive_cmds_need_lc=yes
9851
9852 if test "$enable_shared" = yes && test "$GCC" = yes; then
9853 case $archive_cmds in
9854 *'~'*)
9855 # FIXME: we may have to deal with multi-command sequences.
9856 ;;
9857 '$CC '*)
9858 # Test whether the compiler implicitly links with -lc since on some
9859 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9860 # to ld, don't add -lc before -lgcc.
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9862 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9863 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 $RM conftest*
9867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9868
9869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9870 (eval $ac_compile) 2>&5
9871 ac_status=$?
9872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9873 test $ac_status = 0; } 2>conftest.err; then
9874 soname=conftest
9875 lib=conftest
9876 libobjs=conftest.$ac_objext
9877 deplibs=
9878 wl=$lt_prog_compiler_wl
9879 pic_flag=$lt_prog_compiler_pic
9880 compiler_flags=-v
9881 linker_flags=-v
9882 verstring=
9883 output_objdir=.
9884 libname=conftest
9885 lt_save_allow_undefined_flag=$allow_undefined_flag
9886 allow_undefined_flag=
9887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9888 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9889 ac_status=$?
9890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9891 test $ac_status = 0; }
9892 then
9893 lt_cv_archive_cmds_need_lc=no
9894 else
9895 lt_cv_archive_cmds_need_lc=yes
9896 fi
9897 allow_undefined_flag=$lt_save_allow_undefined_flag
9898 else
9899 cat conftest.err 1>&5
9900 fi
9901 $RM conftest*
9902
9903 fi
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9905 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9906 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9907 ;;
9908 esac
9909 fi
9910 ;;
9911 esac
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10065 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10066
10067 if test "$GCC" = yes; then
10068 case $host_os in
10069 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10070 *) lt_awk_arg="/^libraries:/" ;;
10071 esac
10072 case $host_os in
10073 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10074 *) lt_sed_strip_eq="s,=/,/,g" ;;
10075 esac
10076 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10077 case $lt_search_path_spec in
10078 *\;*)
10079 # if the path contains ";" then we assume it to be the separator
10080 # otherwise default to the standard path separator (i.e. ":") - it is
10081 # assumed that no part of a normal pathname contains ";" but that should
10082 # okay in the real world where ";" in dirpaths is itself problematic.
10083 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10084 ;;
10085 *)
10086 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10087 ;;
10088 esac
10089 # Ok, now we have the path, separated by spaces, we can step through it
10090 # and add multilib dir if necessary.
10091 lt_tmp_lt_search_path_spec=
10092 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10093 for lt_sys_path in $lt_search_path_spec; do
10094 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10095 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10096 else
10097 test -d "$lt_sys_path" && \
10098 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10099 fi
10100 done
10101 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10102 BEGIN {RS=" "; FS="/|\n";} {
10103 lt_foo="";
10104 lt_count=0;
10105 for (lt_i = NF; lt_i > 0; lt_i--) {
10106 if ($lt_i != "" && $lt_i != ".") {
10107 if ($lt_i == "..") {
10108 lt_count++;
10109 } else {
10110 if (lt_count == 0) {
10111 lt_foo="/" $lt_i lt_foo;
10112 } else {
10113 lt_count--;
10114 }
10115 }
10116 }
10117 }
10118 if (lt_foo != "") { lt_freq[lt_foo]++; }
10119 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10120 }'`
10121 # AWK program above erroneously prepends '/' to C:/dos/paths
10122 # for these hosts.
10123 case $host_os in
10124 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10125 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10126 esac
10127 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10128 else
10129 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10130 fi
10131 library_names_spec=
10132 libname_spec='lib$name'
10133 soname_spec=
10134 shrext_cmds=".so"
10135 postinstall_cmds=
10136 postuninstall_cmds=
10137 finish_cmds=
10138 finish_eval=
10139 shlibpath_var=
10140 shlibpath_overrides_runpath=unknown
10141 version_type=none
10142 dynamic_linker="$host_os ld.so"
10143 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10144 need_lib_prefix=unknown
10145 hardcode_into_libs=no
10146
10147 # when you set need_version to no, make sure it does not cause -set_version
10148 # flags to be left without arguments
10149 need_version=unknown
10150
10151 case $host_os in
10152 aix3*)
10153 version_type=linux # correct to gnu/linux during the next big refactor
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10155 shlibpath_var=LIBPATH
10156
10157 # AIX 3 has no versioning support, so we append a major version to the name.
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 ;;
10160
10161 aix[4-9]*)
10162 version_type=linux # correct to gnu/linux during the next big refactor
10163 need_lib_prefix=no
10164 need_version=no
10165 hardcode_into_libs=yes
10166 if test "$host_cpu" = ia64; then
10167 # AIX 5 supports IA64
10168 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10169 shlibpath_var=LD_LIBRARY_PATH
10170 else
10171 # With GCC up to 2.95.x, collect2 would create an import file
10172 # for dependence libraries. The import file would start with
10173 # the line `#! .'. This would cause the generated library to
10174 # depend on `.', always an invalid library. This was fixed in
10175 # development snapshots of GCC prior to 3.0.
10176 case $host_os in
10177 aix4 | aix4.[01] | aix4.[01].*)
10178 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10179 echo ' yes '
10180 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10181 :
10182 else
10183 can_build_shared=no
10184 fi
10185 ;;
10186 esac
10187 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10188 # soname into executable. Probably we can add versioning support to
10189 # collect2, so additional links can be useful in future.
10190 if test "$aix_use_runtimelinking" = yes; then
10191 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10192 # instead of lib<name>.a to let people know that these are not
10193 # typical AIX shared libraries.
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 else
10196 # We preserve .a as extension for shared libraries through AIX4.2
10197 # and later when we are not doing run time linking.
10198 library_names_spec='${libname}${release}.a $libname.a'
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 fi
10201 shlibpath_var=LIBPATH
10202 fi
10203 ;;
10204
10205 amigaos*)
10206 case $host_cpu in
10207 powerpc)
10208 # Since July 2007 AmigaOS4 officially supports .so libraries.
10209 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 ;;
10212 m68k)
10213 library_names_spec='$libname.ixlibrary $libname.a'
10214 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10215 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10216 ;;
10217 esac
10218 ;;
10219
10220 beos*)
10221 library_names_spec='${libname}${shared_ext}'
10222 dynamic_linker="$host_os ld.so"
10223 shlibpath_var=LIBRARY_PATH
10224 ;;
10225
10226 bsdi[45]*)
10227 version_type=linux # correct to gnu/linux during the next big refactor
10228 need_version=no
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10234 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10235 # the default ld.so.conf also contains /usr/contrib/lib and
10236 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10237 # libtool to hard-code these into programs
10238 ;;
10239
10240 cygwin* | mingw* | pw32* | cegcc*)
10241 version_type=windows
10242 shrext_cmds=".dll"
10243 need_version=no
10244 need_lib_prefix=no
10245
10246 case $GCC,$cc_basename in
10247 yes,*)
10248 # gcc
10249 library_names_spec='$libname.dll.a'
10250 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10251 postinstall_cmds='base_file=`basename \${file}`~
10252 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10253 dldir=$destdir/`dirname \$dlpath`~
10254 test -d \$dldir || mkdir -p \$dldir~
10255 $install_prog $dir/$dlname \$dldir/$dlname~
10256 chmod a+x \$dldir/$dlname~
10257 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10258 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10259 fi'
10260 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10261 dlpath=$dir/\$dldll~
10262 $RM \$dlpath'
10263 shlibpath_overrides_runpath=yes
10264
10265 case $host_os in
10266 cygwin*)
10267 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10268 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10269
10270 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10271 ;;
10272 mingw* | cegcc*)
10273 # MinGW DLLs use traditional 'lib' prefix
10274 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10275 ;;
10276 pw32*)
10277 # pw32 DLLs use 'pw' prefix rather than 'lib'
10278 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10279 ;;
10280 esac
10281 dynamic_linker='Win32 ld.exe'
10282 ;;
10283
10284 *,cl*)
10285 # Native MSVC
10286 libname_spec='$name'
10287 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10288 library_names_spec='${libname}.dll.lib'
10289
10290 case $build_os in
10291 mingw*)
10292 sys_lib_search_path_spec=
10293 lt_save_ifs=$IFS
10294 IFS=';'
10295 for lt_path in $LIB
10296 do
10297 IFS=$lt_save_ifs
10298 # Let DOS variable expansion print the short 8.3 style file name.
10299 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10300 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10301 done
10302 IFS=$lt_save_ifs
10303 # Convert to MSYS style.
10304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10305 ;;
10306 cygwin*)
10307 # Convert to unix form, then to dos form, then back to unix form
10308 # but this time dos style (no spaces!) so that the unix form looks
10309 # like /cygdrive/c/PROGRA~1:/cygdr...
10310 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10311 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10312 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10313 ;;
10314 *)
10315 sys_lib_search_path_spec="$LIB"
10316 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10317 # It is most probably a Windows format PATH.
10318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10319 else
10320 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10321 fi
10322 # FIXME: find the short name or the path components, as spaces are
10323 # common. (e.g. "Program Files" -> "PROGRA~1")
10324 ;;
10325 esac
10326
10327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10328 postinstall_cmds='base_file=`basename \${file}`~
10329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10330 dldir=$destdir/`dirname \$dlpath`~
10331 test -d \$dldir || mkdir -p \$dldir~
10332 $install_prog $dir/$dlname \$dldir/$dlname'
10333 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10334 dlpath=$dir/\$dldll~
10335 $RM \$dlpath'
10336 shlibpath_overrides_runpath=yes
10337 dynamic_linker='Win32 link.exe'
10338 ;;
10339
10340 *)
10341 # Assume MSVC wrapper
10342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10343 dynamic_linker='Win32 ld.exe'
10344 ;;
10345 esac
10346 # FIXME: first we should search . and the directory the executable is in
10347 shlibpath_var=PATH
10348 ;;
10349
10350 darwin* | rhapsody*)
10351 dynamic_linker="$host_os dyld"
10352 version_type=darwin
10353 need_lib_prefix=no
10354 need_version=no
10355 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10356 soname_spec='${libname}${release}${major}$shared_ext'
10357 shlibpath_overrides_runpath=yes
10358 shlibpath_var=DYLD_LIBRARY_PATH
10359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10360
10361 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10362 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10363 ;;
10364
10365 dgux*)
10366 version_type=linux # correct to gnu/linux during the next big refactor
10367 need_lib_prefix=no
10368 need_version=no
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 ;;
10373
10374 freebsd* | dragonfly*)
10375 # DragonFly does not have aout. When/if they implement a new
10376 # versioning mechanism, adjust this.
10377 if test -x /usr/bin/objformat; then
10378 objformat=`/usr/bin/objformat`
10379 else
10380 case $host_os in
10381 freebsd[23].*) objformat=aout ;;
10382 *) objformat=elf ;;
10383 esac
10384 fi
10385 version_type=freebsd-$objformat
10386 case $version_type in
10387 freebsd-elf*)
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10389 need_version=no
10390 need_lib_prefix=no
10391 ;;
10392 freebsd-*)
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10394 need_version=yes
10395 ;;
10396 esac
10397 shlibpath_var=LD_LIBRARY_PATH
10398 case $host_os in
10399 freebsd2.*)
10400 shlibpath_overrides_runpath=yes
10401 ;;
10402 freebsd3.[01]* | freebsdelf3.[01]*)
10403 shlibpath_overrides_runpath=yes
10404 hardcode_into_libs=yes
10405 ;;
10406 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10407 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10408 shlibpath_overrides_runpath=no
10409 hardcode_into_libs=yes
10410 ;;
10411 *) # from 4.6 on, and DragonFly
10412 shlibpath_overrides_runpath=yes
10413 hardcode_into_libs=yes
10414 ;;
10415 esac
10416 ;;
10417
10418 gnu*)
10419 version_type=linux # correct to gnu/linux during the next big refactor
10420 need_lib_prefix=no
10421 need_version=no
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 shlibpath_var=LD_LIBRARY_PATH
10425 shlibpath_overrides_runpath=no
10426 hardcode_into_libs=yes
10427 ;;
10428
10429 haiku*)
10430 version_type=linux # correct to gnu/linux during the next big refactor
10431 need_lib_prefix=no
10432 need_version=no
10433 dynamic_linker="$host_os runtime_loader"
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10435 soname_spec='${libname}${release}${shared_ext}$major'
10436 shlibpath_var=LIBRARY_PATH
10437 shlibpath_overrides_runpath=yes
10438 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10439 hardcode_into_libs=yes
10440 ;;
10441
10442 hpux9* | hpux10* | hpux11*)
10443 # Give a soname corresponding to the major version so that dld.sl refuses to
10444 # link against other versions.
10445 version_type=sunos
10446 need_lib_prefix=no
10447 need_version=no
10448 case $host_cpu in
10449 ia64*)
10450 shrext_cmds='.so'
10451 hardcode_into_libs=yes
10452 dynamic_linker="$host_os dld.so"
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 if test "X$HPUX_IA64_MODE" = X32; then
10458 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10459 else
10460 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10461 fi
10462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10463 ;;
10464 hppa*64*)
10465 shrext_cmds='.sl'
10466 hardcode_into_libs=yes
10467 dynamic_linker="$host_os dld.sl"
10468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10474 ;;
10475 *)
10476 shrext_cmds='.sl'
10477 dynamic_linker="$host_os dld.sl"
10478 shlibpath_var=SHLIB_PATH
10479 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 ;;
10483 esac
10484 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10485 postinstall_cmds='chmod 555 $lib'
10486 # or fails outright, so override atomically:
10487 install_override_mode=555
10488 ;;
10489
10490 interix[3-9]*)
10491 version_type=linux # correct to gnu/linux during the next big refactor
10492 need_lib_prefix=no
10493 need_version=no
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 shlibpath_overrides_runpath=no
10499 hardcode_into_libs=yes
10500 ;;
10501
10502 irix5* | irix6* | nonstopux*)
10503 case $host_os in
10504 nonstopux*) version_type=nonstopux ;;
10505 *)
10506 if test "$lt_cv_prog_gnu_ld" = yes; then
10507 version_type=linux # correct to gnu/linux during the next big refactor
10508 else
10509 version_type=irix
10510 fi ;;
10511 esac
10512 need_lib_prefix=no
10513 need_version=no
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10516 case $host_os in
10517 irix5* | nonstopux*)
10518 libsuff= shlibsuff=
10519 ;;
10520 *)
10521 case $LD in # libtool.m4 will add one of these switches to LD
10522 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10523 libsuff= shlibsuff= libmagic=32-bit;;
10524 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10525 libsuff=32 shlibsuff=N32 libmagic=N32;;
10526 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10527 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10528 *) libsuff= shlibsuff= libmagic=never-match;;
10529 esac
10530 ;;
10531 esac
10532 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10533 shlibpath_overrides_runpath=no
10534 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10535 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10536 hardcode_into_libs=yes
10537 ;;
10538
10539 # No shared lib support for Linux oldld, aout, or coff.
10540 linux*oldld* | linux*aout* | linux*coff*)
10541 dynamic_linker=no
10542 ;;
10543
10544 # This must be glibc/ELF.
10545 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10546 version_type=linux # correct to gnu/linux during the next big refactor
10547 need_lib_prefix=no
10548 need_version=no
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 soname_spec='${libname}${release}${shared_ext}$major'
10551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 shlibpath_overrides_runpath=no
10554
10555 # Some binutils ld are patched to set DT_RUNPATH
10556 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 lt_cv_shlibpath_overrides_runpath=no
10560 save_LDFLAGS=$LDFLAGS
10561 save_libdir=$libdir
10562 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10563 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10566
10567 int
10568 main ()
10569 {
10570
10571 ;
10572 return 0;
10573 }
10574 _ACEOF
10575 if ac_fn_c_try_link "$LINENO"; then :
10576 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10577 lt_cv_shlibpath_overrides_runpath=yes
10578 fi
10579 fi
10580 rm -f core conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
10582 LDFLAGS=$save_LDFLAGS
10583 libdir=$save_libdir
10584
10585 fi
10586
10587 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10588
10589 # This implies no fast_install, which is unacceptable.
10590 # Some rework will be needed to allow for fast_install
10591 # before this can be enabled.
10592 hardcode_into_libs=yes
10593
10594 # Append ld.so.conf contents to the search path
10595 if test -f /etc/ld.so.conf; then
10596 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10597 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10598 fi
10599
10600 # We used to test for /lib/ld.so.1 and disable shared libraries on
10601 # powerpc, because MkLinux only supported shared libraries with the
10602 # GNU dynamic linker. Since this was broken with cross compilers,
10603 # most powerpc-linux boxes support dynamic linking these days and
10604 # people can always --disable-shared, the test was removed, and we
10605 # assume the GNU/Linux dynamic linker is in use.
10606 dynamic_linker='GNU/Linux ld.so'
10607 ;;
10608
10609 netbsd*)
10610 version_type=sunos
10611 need_lib_prefix=no
10612 need_version=no
10613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10616 dynamic_linker='NetBSD (a.out) ld.so'
10617 else
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 dynamic_linker='NetBSD ld.elf_so'
10621 fi
10622 shlibpath_var=LD_LIBRARY_PATH
10623 shlibpath_overrides_runpath=yes
10624 hardcode_into_libs=yes
10625 ;;
10626
10627 newsos6)
10628 version_type=linux # correct to gnu/linux during the next big refactor
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=yes
10632 ;;
10633
10634 *nto* | *qnx*)
10635 version_type=qnx
10636 need_lib_prefix=no
10637 need_version=no
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 shlibpath_overrides_runpath=no
10642 hardcode_into_libs=yes
10643 dynamic_linker='ldqnx.so'
10644 ;;
10645
10646 openbsd*)
10647 version_type=sunos
10648 sys_lib_dlsearch_path_spec="/usr/lib"
10649 need_lib_prefix=no
10650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10651 case $host_os in
10652 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10653 *) need_version=no ;;
10654 esac
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10659 case $host_os in
10660 openbsd2.[89] | openbsd2.[89].*)
10661 shlibpath_overrides_runpath=no
10662 ;;
10663 *)
10664 shlibpath_overrides_runpath=yes
10665 ;;
10666 esac
10667 else
10668 shlibpath_overrides_runpath=yes
10669 fi
10670 ;;
10671
10672 os2*)
10673 libname_spec='$name'
10674 shrext_cmds=".dll"
10675 need_lib_prefix=no
10676 library_names_spec='$libname${shared_ext} $libname.a'
10677 dynamic_linker='OS/2 ld.exe'
10678 shlibpath_var=LIBPATH
10679 ;;
10680
10681 osf3* | osf4* | osf5*)
10682 version_type=osf
10683 need_lib_prefix=no
10684 need_version=no
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10690 ;;
10691
10692 rdos*)
10693 dynamic_linker=no
10694 ;;
10695
10696 solaris*)
10697 version_type=linux # correct to gnu/linux during the next big refactor
10698 need_lib_prefix=no
10699 need_version=no
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 shlibpath_overrides_runpath=yes
10704 hardcode_into_libs=yes
10705 # ldd complains unless libraries are executable
10706 postinstall_cmds='chmod +x $lib'
10707 ;;
10708
10709 sunos4*)
10710 version_type=sunos
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=yes
10715 if test "$with_gnu_ld" = yes; then
10716 need_lib_prefix=no
10717 fi
10718 need_version=yes
10719 ;;
10720
10721 sysv4 | sysv4.3*)
10722 version_type=linux # correct to gnu/linux during the next big refactor
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 shlibpath_var=LD_LIBRARY_PATH
10726 case $host_vendor in
10727 sni)
10728 shlibpath_overrides_runpath=no
10729 need_lib_prefix=no
10730 runpath_var=LD_RUN_PATH
10731 ;;
10732 siemens)
10733 need_lib_prefix=no
10734 ;;
10735 motorola)
10736 need_lib_prefix=no
10737 need_version=no
10738 shlibpath_overrides_runpath=no
10739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10740 ;;
10741 esac
10742 ;;
10743
10744 sysv4*MP*)
10745 if test -d /usr/nec ;then
10746 version_type=linux # correct to gnu/linux during the next big refactor
10747 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10748 soname_spec='$libname${shared_ext}.$major'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 fi
10751 ;;
10752
10753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10754 version_type=freebsd-elf
10755 need_lib_prefix=no
10756 need_version=no
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=yes
10761 hardcode_into_libs=yes
10762 if test "$with_gnu_ld" = yes; then
10763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10764 else
10765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10766 case $host_os in
10767 sco3.2v5*)
10768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10769 ;;
10770 esac
10771 fi
10772 sys_lib_dlsearch_path_spec='/usr/lib'
10773 ;;
10774
10775 tpf*)
10776 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10777 version_type=linux # correct to gnu/linux during the next big refactor
10778 need_lib_prefix=no
10779 need_version=no
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=no
10783 hardcode_into_libs=yes
10784 ;;
10785
10786 uts4*)
10787 version_type=linux # correct to gnu/linux during the next big refactor
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 ;;
10792
10793 *)
10794 dynamic_linker=no
10795 ;;
10796 esac
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10798 $as_echo "$dynamic_linker" >&6; }
10799 test "$dynamic_linker" = no && can_build_shared=no
10800
10801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10802 if test "$GCC" = yes; then
10803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10804 fi
10805
10806 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10807 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10808 fi
10809 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10810 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10811 fi
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10905 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10906 hardcode_action=
10907 if test -n "$hardcode_libdir_flag_spec" ||
10908 test -n "$runpath_var" ||
10909 test "X$hardcode_automatic" = "Xyes" ; then
10910
10911 # We can hardcode non-existent directories.
10912 if test "$hardcode_direct" != no &&
10913 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10914 # have to relink, otherwise we might link with an installed library
10915 # when we should be linking with a yet-to-be-installed one
10916 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10917 test "$hardcode_minus_L" != no; then
10918 # Linking always hardcodes the temporary library directory.
10919 hardcode_action=relink
10920 else
10921 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10922 hardcode_action=immediate
10923 fi
10924 else
10925 # We cannot hardcode anything, or else we can only hardcode existing
10926 # directories.
10927 hardcode_action=unsupported
10928 fi
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10930 $as_echo "$hardcode_action" >&6; }
10931
10932 if test "$hardcode_action" = relink ||
10933 test "$inherit_rpath" = yes; then
10934 # Fast installation is not supported
10935 enable_fast_install=no
10936 elif test "$shlibpath_overrides_runpath" = yes ||
10937 test "$enable_shared" = no; then
10938 # Fast installation is not necessary
10939 enable_fast_install=needless
10940 fi
10941
10942
10943
10944
10945
10946
10947 if test "x$enable_dlopen" != xyes; then
10948 enable_dlopen=unknown
10949 enable_dlopen_self=unknown
10950 enable_dlopen_self_static=unknown
10951 else
10952 lt_cv_dlopen=no
10953 lt_cv_dlopen_libs=
10954
10955 case $host_os in
10956 beos*)
10957 lt_cv_dlopen="load_add_on"
10958 lt_cv_dlopen_libs=
10959 lt_cv_dlopen_self=yes
10960 ;;
10961
10962 mingw* | pw32* | cegcc*)
10963 lt_cv_dlopen="LoadLibrary"
10964 lt_cv_dlopen_libs=
10965 ;;
10966
10967 cygwin*)
10968 lt_cv_dlopen="dlopen"
10969 lt_cv_dlopen_libs=
10970 ;;
10971
10972 darwin*)
10973 # if libdl is installed we need to link against it
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10975 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10976 if ${ac_cv_lib_dl_dlopen+:} false; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 ac_check_lib_save_LIBS=$LIBS
10980 LIBS="-ldl $LIBS"
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10983
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char dlopen ();
10991 int
10992 main ()
10993 {
10994 return dlopen ();
10995 ;
10996 return 0;
10997 }
10998 _ACEOF
10999 if ac_fn_c_try_link "$LINENO"; then :
11000 ac_cv_lib_dl_dlopen=yes
11001 else
11002 ac_cv_lib_dl_dlopen=no
11003 fi
11004 rm -f core conftest.err conftest.$ac_objext \
11005 conftest$ac_exeext conftest.$ac_ext
11006 LIBS=$ac_check_lib_save_LIBS
11007 fi
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11009 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11010 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11012 else
11013
11014 lt_cv_dlopen="dyld"
11015 lt_cv_dlopen_libs=
11016 lt_cv_dlopen_self=yes
11017
11018 fi
11019
11020 ;;
11021
11022 *)
11023 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11024 if test "x$ac_cv_func_shl_load" = xyes; then :
11025 lt_cv_dlopen="shl_load"
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11028 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11029 if ${ac_cv_lib_dld_shl_load+:} false; then :
11030 $as_echo_n "(cached) " >&6
11031 else
11032 ac_check_lib_save_LIBS=$LIBS
11033 LIBS="-ldld $LIBS"
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11036
11037 /* Override any GCC internal prototype to avoid an error.
11038 Use char because int might match the return type of a GCC
11039 builtin and then its argument prototype would still apply. */
11040 #ifdef __cplusplus
11041 extern "C"
11042 #endif
11043 char shl_load ();
11044 int
11045 main ()
11046 {
11047 return shl_load ();
11048 ;
11049 return 0;
11050 }
11051 _ACEOF
11052 if ac_fn_c_try_link "$LINENO"; then :
11053 ac_cv_lib_dld_shl_load=yes
11054 else
11055 ac_cv_lib_dld_shl_load=no
11056 fi
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 LIBS=$ac_check_lib_save_LIBS
11060 fi
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11062 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11063 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11064 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11065 else
11066 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11067 if test "x$ac_cv_func_dlopen" = xyes; then :
11068 lt_cv_dlopen="dlopen"
11069 else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11071 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11072 if ${ac_cv_lib_dl_dlopen+:} false; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 ac_check_lib_save_LIBS=$LIBS
11076 LIBS="-ldl $LIBS"
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11079
11080 /* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
11083 #ifdef __cplusplus
11084 extern "C"
11085 #endif
11086 char dlopen ();
11087 int
11088 main ()
11089 {
11090 return dlopen ();
11091 ;
11092 return 0;
11093 }
11094 _ACEOF
11095 if ac_fn_c_try_link "$LINENO"; then :
11096 ac_cv_lib_dl_dlopen=yes
11097 else
11098 ac_cv_lib_dl_dlopen=no
11099 fi
11100 rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11103 fi
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11105 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11106 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11108 else
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11110 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11111 if ${ac_cv_lib_svld_dlopen+:} false; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 ac_check_lib_save_LIBS=$LIBS
11115 LIBS="-lsvld $LIBS"
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11118
11119 /* Override any GCC internal prototype to avoid an error.
11120 Use char because int might match the return type of a GCC
11121 builtin and then its argument prototype would still apply. */
11122 #ifdef __cplusplus
11123 extern "C"
11124 #endif
11125 char dlopen ();
11126 int
11127 main ()
11128 {
11129 return dlopen ();
11130 ;
11131 return 0;
11132 }
11133 _ACEOF
11134 if ac_fn_c_try_link "$LINENO"; then :
11135 ac_cv_lib_svld_dlopen=yes
11136 else
11137 ac_cv_lib_svld_dlopen=no
11138 fi
11139 rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11141 LIBS=$ac_check_lib_save_LIBS
11142 fi
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11144 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11145 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11146 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11149 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11150 if ${ac_cv_lib_dld_dld_link+:} false; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 ac_check_lib_save_LIBS=$LIBS
11154 LIBS="-ldld $LIBS"
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11157
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11161 #ifdef __cplusplus
11162 extern "C"
11163 #endif
11164 char dld_link ();
11165 int
11166 main ()
11167 {
11168 return dld_link ();
11169 ;
11170 return 0;
11171 }
11172 _ACEOF
11173 if ac_fn_c_try_link "$LINENO"; then :
11174 ac_cv_lib_dld_dld_link=yes
11175 else
11176 ac_cv_lib_dld_dld_link=no
11177 fi
11178 rm -f core conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11181 fi
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11183 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11184 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11185 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11186 fi
11187
11188
11189 fi
11190
11191
11192 fi
11193
11194
11195 fi
11196
11197
11198 fi
11199
11200
11201 fi
11202
11203 ;;
11204 esac
11205
11206 if test "x$lt_cv_dlopen" != xno; then
11207 enable_dlopen=yes
11208 else
11209 enable_dlopen=no
11210 fi
11211
11212 case $lt_cv_dlopen in
11213 dlopen)
11214 save_CPPFLAGS="$CPPFLAGS"
11215 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11216
11217 save_LDFLAGS="$LDFLAGS"
11218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11219
11220 save_LIBS="$LIBS"
11221 LIBS="$lt_cv_dlopen_libs $LIBS"
11222
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11224 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11225 if ${lt_cv_dlopen_self+:} false; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 if test "$cross_compiling" = yes; then :
11229 lt_cv_dlopen_self=cross
11230 else
11231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11232 lt_status=$lt_dlunknown
11233 cat > conftest.$ac_ext <<_LT_EOF
11234 #line $LINENO "configure"
11235 #include "confdefs.h"
11236
11237 #if HAVE_DLFCN_H
11238 #include <dlfcn.h>
11239 #endif
11240
11241 #include <stdio.h>
11242
11243 #ifdef RTLD_GLOBAL
11244 # define LT_DLGLOBAL RTLD_GLOBAL
11245 #else
11246 # ifdef DL_GLOBAL
11247 # define LT_DLGLOBAL DL_GLOBAL
11248 # else
11249 # define LT_DLGLOBAL 0
11250 # endif
11251 #endif
11252
11253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11254 find out it does not work in some platform. */
11255 #ifndef LT_DLLAZY_OR_NOW
11256 # ifdef RTLD_LAZY
11257 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11258 # else
11259 # ifdef DL_LAZY
11260 # define LT_DLLAZY_OR_NOW DL_LAZY
11261 # else
11262 # ifdef RTLD_NOW
11263 # define LT_DLLAZY_OR_NOW RTLD_NOW
11264 # else
11265 # ifdef DL_NOW
11266 # define LT_DLLAZY_OR_NOW DL_NOW
11267 # else
11268 # define LT_DLLAZY_OR_NOW 0
11269 # endif
11270 # endif
11271 # endif
11272 # endif
11273 #endif
11274
11275 /* When -fvisbility=hidden is used, assume the code has been annotated
11276 correspondingly for the symbols needed. */
11277 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11278 int fnord () __attribute__((visibility("default")));
11279 #endif
11280
11281 int fnord () { return 42; }
11282 int main ()
11283 {
11284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11285 int status = $lt_dlunknown;
11286
11287 if (self)
11288 {
11289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11290 else
11291 {
11292 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11293 else puts (dlerror ());
11294 }
11295 /* dlclose (self); */
11296 }
11297 else
11298 puts (dlerror ());
11299
11300 return status;
11301 }
11302 _LT_EOF
11303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11304 (eval $ac_link) 2>&5
11305 ac_status=$?
11306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11307 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11308 (./conftest; exit; ) >&5 2>/dev/null
11309 lt_status=$?
11310 case x$lt_status in
11311 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11312 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11313 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11314 esac
11315 else :
11316 # compilation failed
11317 lt_cv_dlopen_self=no
11318 fi
11319 fi
11320 rm -fr conftest*
11321
11322
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11325 $as_echo "$lt_cv_dlopen_self" >&6; }
11326
11327 if test "x$lt_cv_dlopen_self" = xyes; then
11328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11330 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11331 if ${lt_cv_dlopen_self_static+:} false; then :
11332 $as_echo_n "(cached) " >&6
11333 else
11334 if test "$cross_compiling" = yes; then :
11335 lt_cv_dlopen_self_static=cross
11336 else
11337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11338 lt_status=$lt_dlunknown
11339 cat > conftest.$ac_ext <<_LT_EOF
11340 #line $LINENO "configure"
11341 #include "confdefs.h"
11342
11343 #if HAVE_DLFCN_H
11344 #include <dlfcn.h>
11345 #endif
11346
11347 #include <stdio.h>
11348
11349 #ifdef RTLD_GLOBAL
11350 # define LT_DLGLOBAL RTLD_GLOBAL
11351 #else
11352 # ifdef DL_GLOBAL
11353 # define LT_DLGLOBAL DL_GLOBAL
11354 # else
11355 # define LT_DLGLOBAL 0
11356 # endif
11357 #endif
11358
11359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11360 find out it does not work in some platform. */
11361 #ifndef LT_DLLAZY_OR_NOW
11362 # ifdef RTLD_LAZY
11363 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11364 # else
11365 # ifdef DL_LAZY
11366 # define LT_DLLAZY_OR_NOW DL_LAZY
11367 # else
11368 # ifdef RTLD_NOW
11369 # define LT_DLLAZY_OR_NOW RTLD_NOW
11370 # else
11371 # ifdef DL_NOW
11372 # define LT_DLLAZY_OR_NOW DL_NOW
11373 # else
11374 # define LT_DLLAZY_OR_NOW 0
11375 # endif
11376 # endif
11377 # endif
11378 # endif
11379 #endif
11380
11381 /* When -fvisbility=hidden is used, assume the code has been annotated
11382 correspondingly for the symbols needed. */
11383 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11384 int fnord () __attribute__((visibility("default")));
11385 #endif
11386
11387 int fnord () { return 42; }
11388 int main ()
11389 {
11390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11391 int status = $lt_dlunknown;
11392
11393 if (self)
11394 {
11395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11396 else
11397 {
11398 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11399 else puts (dlerror ());
11400 }
11401 /* dlclose (self); */
11402 }
11403 else
11404 puts (dlerror ());
11405
11406 return status;
11407 }
11408 _LT_EOF
11409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11410 (eval $ac_link) 2>&5
11411 ac_status=$?
11412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11413 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11414 (./conftest; exit; ) >&5 2>/dev/null
11415 lt_status=$?
11416 case x$lt_status in
11417 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11418 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11419 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11420 esac
11421 else :
11422 # compilation failed
11423 lt_cv_dlopen_self_static=no
11424 fi
11425 fi
11426 rm -fr conftest*
11427
11428
11429 fi
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11431 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11432 fi
11433
11434 CPPFLAGS="$save_CPPFLAGS"
11435 LDFLAGS="$save_LDFLAGS"
11436 LIBS="$save_LIBS"
11437 ;;
11438 esac
11439
11440 case $lt_cv_dlopen_self in
11441 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11442 *) enable_dlopen_self=unknown ;;
11443 esac
11444
11445 case $lt_cv_dlopen_self_static in
11446 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11447 *) enable_dlopen_self_static=unknown ;;
11448 esac
11449 fi
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467 striplib=
11468 old_striplib=
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11470 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11471 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11472 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11473 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11475 $as_echo "yes" >&6; }
11476 else
11477 # FIXME - insert some real tests, host_os isn't really good enough
11478 case $host_os in
11479 darwin*)
11480 if test -n "$STRIP" ; then
11481 striplib="$STRIP -x"
11482 old_striplib="$STRIP -S"
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11484 $as_echo "yes" >&6; }
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11488 fi
11489 ;;
11490 *)
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11493 ;;
11494 esac
11495 fi
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508 # Report which library types will actually be built
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11510 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11512 $as_echo "$can_build_shared" >&6; }
11513
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11515 $as_echo_n "checking whether to build shared libraries... " >&6; }
11516 test "$can_build_shared" = "no" && enable_shared=no
11517
11518 # On AIX, shared libraries and static libraries use the same namespace, and
11519 # are all built from PIC.
11520 case $host_os in
11521 aix3*)
11522 test "$enable_shared" = yes && enable_static=no
11523 if test -n "$RANLIB"; then
11524 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11525 postinstall_cmds='$RANLIB $lib'
11526 fi
11527 ;;
11528
11529 aix[4-9]*)
11530 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11531 test "$enable_shared" = yes && enable_static=no
11532 fi
11533 ;;
11534 esac
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11536 $as_echo "$enable_shared" >&6; }
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11539 $as_echo_n "checking whether to build static libraries... " >&6; }
11540 # Make sure either enable_shared or enable_static is yes.
11541 test "$enable_shared" = yes || enable_static=yes
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11543 $as_echo "$enable_static" >&6; }
11544
11545
11546
11547
11548 fi
11549 ac_ext=c
11550 ac_cpp='$CPP $CPPFLAGS'
11551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11554
11555 CC="$lt_save_CC"
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571 ac_config_commands="$ac_config_commands libtool"
11572
11573
11574
11575
11576 # Only expand once:
11577
11578
11579
11580 # Checks for header files.
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11582 $as_echo_n "checking for ANSI C header files... " >&6; }
11583 if ${ac_cv_header_stdc+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11588 #include <stdlib.h>
11589 #include <stdarg.h>
11590 #include <string.h>
11591 #include <float.h>
11592
11593 int
11594 main ()
11595 {
11596
11597 ;
11598 return 0;
11599 }
11600 _ACEOF
11601 if ac_fn_c_try_compile "$LINENO"; then :
11602 ac_cv_header_stdc=yes
11603 else
11604 ac_cv_header_stdc=no
11605 fi
11606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607
11608 if test $ac_cv_header_stdc = yes; then
11609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11612 #include <string.h>
11613
11614 _ACEOF
11615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11616 $EGREP "memchr" >/dev/null 2>&1; then :
11617
11618 else
11619 ac_cv_header_stdc=no
11620 fi
11621 rm -f conftest*
11622
11623 fi
11624
11625 if test $ac_cv_header_stdc = yes; then
11626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h. */
11629 #include <stdlib.h>
11630
11631 _ACEOF
11632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11633 $EGREP "free" >/dev/null 2>&1; then :
11634
11635 else
11636 ac_cv_header_stdc=no
11637 fi
11638 rm -f conftest*
11639
11640 fi
11641
11642 if test $ac_cv_header_stdc = yes; then
11643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11644 if test "$cross_compiling" = yes; then :
11645 :
11646 else
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649 #include <ctype.h>
11650 #include <stdlib.h>
11651 #if ((' ' & 0x0FF) == 0x020)
11652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11654 #else
11655 # define ISLOWER(c) \
11656 (('a' <= (c) && (c) <= 'i') \
11657 || ('j' <= (c) && (c) <= 'r') \
11658 || ('s' <= (c) && (c) <= 'z'))
11659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11660 #endif
11661
11662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11663 int
11664 main ()
11665 {
11666 int i;
11667 for (i = 0; i < 256; i++)
11668 if (XOR (islower (i), ISLOWER (i))
11669 || toupper (i) != TOUPPER (i))
11670 return 2;
11671 return 0;
11672 }
11673 _ACEOF
11674 if ac_fn_c_try_run "$LINENO"; then :
11675
11676 else
11677 ac_cv_header_stdc=no
11678 fi
11679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11680 conftest.$ac_objext conftest.beam conftest.$ac_ext
11681 fi
11682
11683 fi
11684 fi
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11686 $as_echo "$ac_cv_header_stdc" >&6; }
11687 if test $ac_cv_header_stdc = yes; then
11688
11689 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11690
11691 fi
11692
11693 for ac_header in errno.h limits.h stdlib.h string.h unistd.h
11694 do :
11695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11696 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11697 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11698 cat >>confdefs.h <<_ACEOF
11699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11700 _ACEOF
11701
11702 fi
11703
11704 done
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11715 if test -n "$ac_tool_prefix"; then
11716 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11717 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 case $PKG_CONFIG in
11724 [\\/]* | ?:[\\/]*)
11725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11726 ;;
11727 *)
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11730 do
11731 IFS=$as_save_IFS
11732 test -z "$as_dir" && as_dir=.
11733 for ac_exec_ext in '' $ac_executable_extensions; do
11734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11735 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 break 2
11738 fi
11739 done
11740 done
11741 IFS=$as_save_IFS
11742
11743 ;;
11744 esac
11745 fi
11746 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11747 if test -n "$PKG_CONFIG"; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11749 $as_echo "$PKG_CONFIG" >&6; }
11750 else
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11753 fi
11754
11755
11756 fi
11757 if test -z "$ac_cv_path_PKG_CONFIG"; then
11758 ac_pt_PKG_CONFIG=$PKG_CONFIG
11759 # Extract the first word of "pkg-config", so it can be a program name with args.
11760 set dummy pkg-config; ac_word=$2
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762 $as_echo_n "checking for $ac_word... " >&6; }
11763 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11764 $as_echo_n "(cached) " >&6
11765 else
11766 case $ac_pt_PKG_CONFIG in
11767 [\\/]* | ?:[\\/]*)
11768 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11769 ;;
11770 *)
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11773 do
11774 IFS=$as_save_IFS
11775 test -z "$as_dir" && as_dir=.
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11778 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11780 break 2
11781 fi
11782 done
11783 done
11784 IFS=$as_save_IFS
11785
11786 ;;
11787 esac
11788 fi
11789 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11790 if test -n "$ac_pt_PKG_CONFIG"; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11792 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11793 else
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 $as_echo "no" >&6; }
11796 fi
11797
11798 if test "x$ac_pt_PKG_CONFIG" = x; then
11799 PKG_CONFIG=""
11800 else
11801 case $cross_compiling:$ac_tool_warned in
11802 yes:)
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11805 ac_tool_warned=yes ;;
11806 esac
11807 PKG_CONFIG=$ac_pt_PKG_CONFIG
11808 fi
11809 else
11810 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11811 fi
11812
11813 fi
11814 if test -n "$PKG_CONFIG"; then
11815 _pkg_min_version=0.9.0
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11817 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11818 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11820 $as_echo "yes" >&6; }
11821 else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11824 PKG_CONFIG=""
11825 fi
11826 fi
11827
11828 pkg_failed=no
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAPTOR" >&5
11830 $as_echo_n "checking for RAPTOR... " >&6; }
11831
11832 if test -n "$RAPTOR_CFLAGS"; then
11833 pkg_cv_RAPTOR_CFLAGS="$RAPTOR_CFLAGS"
11834 elif test -n "$PKG_CONFIG"; then
11835 if test -n "$PKG_CONFIG" && \
11836 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raptor2 >= 2.0.0\""; } >&5
11837 ($PKG_CONFIG --exists --print-errors "raptor2 >= 2.0.0") 2>&5
11838 ac_status=$?
11839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11840 test $ac_status = 0; }; then
11841 pkg_cv_RAPTOR_CFLAGS=`$PKG_CONFIG --cflags "raptor2 >= 2.0.0" 2>/dev/null`
11842 test "x$?" != "x0" && pkg_failed=yes
11843 else
11844 pkg_failed=yes
11845 fi
11846 else
11847 pkg_failed=untried
11848 fi
11849 if test -n "$RAPTOR_LIBS"; then
11850 pkg_cv_RAPTOR_LIBS="$RAPTOR_LIBS"
11851 elif test -n "$PKG_CONFIG"; then
11852 if test -n "$PKG_CONFIG" && \
11853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raptor2 >= 2.0.0\""; } >&5
11854 ($PKG_CONFIG --exists --print-errors "raptor2 >= 2.0.0") 2>&5
11855 ac_status=$?
11856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11857 test $ac_status = 0; }; then
11858 pkg_cv_RAPTOR_LIBS=`$PKG_CONFIG --libs "raptor2 >= 2.0.0" 2>/dev/null`
11859 test "x$?" != "x0" && pkg_failed=yes
11860 else
11861 pkg_failed=yes
11862 fi
11863 else
11864 pkg_failed=untried
11865 fi
11866
11867
11868
11869 if test $pkg_failed = yes; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 $as_echo "no" >&6; }
11872
11873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11874 _pkg_short_errors_supported=yes
11875 else
11876 _pkg_short_errors_supported=no
11877 fi
11878 if test $_pkg_short_errors_supported = yes; then
11879 RAPTOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raptor2 >= 2.0.0" 2>&1`
11880 else
11881 RAPTOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raptor2 >= 2.0.0" 2>&1`
11882 fi
11883 # Put the nasty error message in config.log where it belongs
11884 echo "$RAPTOR_PKG_ERRORS" >&5
11885
11886 as_fn_error $? "Package requirements (raptor2 >= 2.0.0) were not met:
11887
11888 $RAPTOR_PKG_ERRORS
11889
11890 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11891 installed software in a non-standard prefix.
11892
11893 Alternatively, you may set the environment variables RAPTOR_CFLAGS
11894 and RAPTOR_LIBS to avoid the need to call pkg-config.
11895 See the pkg-config man page for more details." "$LINENO" 5
11896 elif test $pkg_failed = untried; then
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11901 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11902 is in your PATH or set the PKG_CONFIG environment variable to the full
11903 path to pkg-config.
11904
11905 Alternatively, you may set the environment variables RAPTOR_CFLAGS
11906 and RAPTOR_LIBS to avoid the need to call pkg-config.
11907 See the pkg-config man page for more details.
11908
11909 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11910 See \`config.log' for more details" "$LINENO" 5; }
11911 else
11912 RAPTOR_CFLAGS=$pkg_cv_RAPTOR_CFLAGS
11913 RAPTOR_LIBS=$pkg_cv_RAPTOR_LIBS
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 $as_echo "yes" >&6; }
11916
11917 fi
11918
11919 # Checks for typedefs, structures, and compiler characteristics.
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11921 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11922 if ${ac_cv_c_const+:} false; then :
11923 $as_echo_n "(cached) " >&6
11924 else
11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11927
11928 int
11929 main ()
11930 {
11931
11932 #ifndef __cplusplus
11933 /* Ultrix mips cc rejects this sort of thing. */
11934 typedef int charset[2];
11935 const charset cs = { 0, 0 };
11936 /* SunOS 4.1.1 cc rejects this. */
11937 char const *const *pcpcc;
11938 char **ppc;
11939 /* NEC SVR4.0.2 mips cc rejects this. */
11940 struct point {int x, y;};
11941 static struct point const zero = {0,0};
11942 /* AIX XL C 1.02.0.0 rejects this.
11943 It does not let you subtract one const X* pointer from another in
11944 an arm of an if-expression whose if-part is not a constant
11945 expression */
11946 const char *g = "string";
11947 pcpcc = &g + (g ? g-g : 0);
11948 /* HPUX 7.0 cc rejects these. */
11949 ++pcpcc;
11950 ppc = (char**) pcpcc;
11951 pcpcc = (char const *const *) ppc;
11952 { /* SCO 3.2v4 cc rejects this sort of thing. */
11953 char tx;
11954 char *t = &tx;
11955 char const *s = 0 ? (char *) 0 : (char const *) 0;
11956
11957 *t++ = 0;
11958 if (s) return 0;
11959 }
11960 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11961 int x[] = {25, 17};
11962 const int *foo = &x[0];
11963 ++foo;
11964 }
11965 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11966 typedef const int *iptr;
11967 iptr p = 0;
11968 ++p;
11969 }
11970 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11971 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11972 struct s { int j; const int *ap[3]; } bx;
11973 struct s *b = &bx; b->j = 5;
11974 }
11975 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11976 const int foo = 10;
11977 if (!foo) return 0;
11978 }
11979 return !cs[0] && !zero.x;
11980 #endif
11981
11982 ;
11983 return 0;
11984 }
11985 _ACEOF
11986 if ac_fn_c_try_compile "$LINENO"; then :
11987 ac_cv_c_const=yes
11988 else
11989 ac_cv_c_const=no
11990 fi
11991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 fi
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11994 $as_echo "$ac_cv_c_const" >&6; }
11995 if test $ac_cv_c_const = no; then
11996
11997 $as_echo "#define const /**/" >>confdefs.h
11998
11999 fi
12000
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12002 $as_echo_n "checking for inline... " >&6; }
12003 if ${ac_cv_c_inline+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 ac_cv_c_inline=no
12007 for ac_kw in inline __inline__ __inline; do
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010 #ifndef __cplusplus
12011 typedef int foo_t;
12012 static $ac_kw foo_t static_foo () {return 0; }
12013 $ac_kw foo_t foo () {return 0; }
12014 #endif
12015
12016 _ACEOF
12017 if ac_fn_c_try_compile "$LINENO"; then :
12018 ac_cv_c_inline=$ac_kw
12019 fi
12020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021 test "$ac_cv_c_inline" != no && break
12022 done
12023
12024 fi
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12026 $as_echo "$ac_cv_c_inline" >&6; }
12027
12028 case $ac_cv_c_inline in
12029 inline | yes) ;;
12030 *)
12031 case $ac_cv_c_inline in
12032 no) ac_val=;;
12033 *) ac_val=$ac_cv_c_inline;;
12034 esac
12035 cat >>confdefs.h <<_ACEOF
12036 #ifndef __cplusplus
12037 #define inline $ac_val
12038 #endif
12039 _ACEOF
12040 ;;
12041 esac
12042
12043 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12044 if test "x$ac_cv_type_size_t" = xyes; then :
12045
12046 else
12047
12048 cat >>confdefs.h <<_ACEOF
12049 #define size_t unsigned int
12050 _ACEOF
12051
12052 fi
12053
12054
12055 # Checks for library functions.
12056 for ac_func in vprintf
12057 do :
12058 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12059 if test "x$ac_cv_func_vprintf" = xyes; then :
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_VPRINTF 1
12062 _ACEOF
12063
12064 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12065 if test "x$ac_cv_func__doprnt" = xyes; then :
12066
12067 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12068
12069 fi
12070
12071 fi
12072 done
12073
12074
12075 for ac_func in getcwd strcasecmp strchr strdup strerror strncasecmp strrchr
12076 do :
12077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12078 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12079 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12080 cat >>confdefs.h <<_ACEOF
12081 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12082 _ACEOF
12083
12084 fi
12085 done
12086
12087
12088 LIBS="$LIBS $RAPTOR_LIBS"
12089 AM_CFLAGS="$CFLAGS $RAPTOR_CFLAGS"
12090
12091
12092
12093
12094
12095 ac_config_files="$ac_config_files lrdf.pc Makefile src/Makefile examples/Makefile"
12096
12097 cat >confcache <<\_ACEOF
12098 # This file is a shell script that caches the results of configure
12099 # tests run on this system so they can be shared between configure
12100 # scripts and configure runs, see configure's option --config-cache.
12101 # It is not useful on other systems. If it contains results you don't
12102 # want to keep, you may remove or edit it.
12103 #
12104 # config.status only pays attention to the cache file if you give it
12105 # the --recheck option to rerun configure.
12106 #
12107 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12109 # following values.
12110
12111 _ACEOF
12112
12113 # The following way of writing the cache mishandles newlines in values,
12114 # but we know of no workaround that is simple, portable, and efficient.
12115 # So, we kill variables containing newlines.
12116 # Ultrix sh set writes to stderr and can't be redirected directly,
12117 # and sets the high bit in the cache file unless we assign to the vars.
12118 (
12119 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12120 eval ac_val=\$$ac_var
12121 case $ac_val in #(
12122 *${as_nl}*)
12123 case $ac_var in #(
12124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12126 esac
12127 case $ac_var in #(
12128 _ | IFS | as_nl) ;; #(
12129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12130 *) { eval $ac_var=; unset $ac_var;} ;;
12131 esac ;;
12132 esac
12133 done
12134
12135 (set) 2>&1 |
12136 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12137 *${as_nl}ac_space=\ *)
12138 # `set' does not quote correctly, so add quotes: double-quote
12139 # substitution turns \\\\ into \\, and sed turns \\ into \.
12140 sed -n \
12141 "s/'/'\\\\''/g;
12142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12143 ;; #(
12144 *)
12145 # `set' quotes correctly as required by POSIX, so do not add quotes.
12146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12147 ;;
12148 esac |
12149 sort
12150 ) |
12151 sed '
12152 /^ac_cv_env_/b end
12153 t clear
12154 :clear
12155 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12156 t end
12157 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12158 :end' >>confcache
12159 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12160 if test -w "$cache_file"; then
12161 if test "x$cache_file" != "x/dev/null"; then
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12163 $as_echo "$as_me: updating cache $cache_file" >&6;}
12164 if test ! -f "$cache_file" || test -h "$cache_file"; then
12165 cat confcache >"$cache_file"
12166 else
12167 case $cache_file in #(
12168 */* | ?:*)
12169 mv -f confcache "$cache_file"$$ &&
12170 mv -f "$cache_file"$$ "$cache_file" ;; #(
12171 *)
12172 mv -f confcache "$cache_file" ;;
12173 esac
12174 fi
12175 fi
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12178 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12179 fi
12180 fi
12181 rm -f confcache
12182
12183 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12184 # Let make expand exec_prefix.
12185 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12186
12187 DEFS=-DHAVE_CONFIG_H
12188
12189 ac_libobjs=
12190 ac_ltlibobjs=
12191 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12192 # 1. Remove the extension, and $U if already installed.
12193 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12194 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12195 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12196 # will be set to the directory where LIBOBJS objects are built.
12197 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12198 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12199 done
12200 LIBOBJS=$ac_libobjs
12201
12202 LTLIBOBJS=$ac_ltlibobjs
12203
12204
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12206 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12207 if test -n "$am_sleep_pid"; then
12208 # Hide warnings about reused PIDs.
12209 wait $am_sleep_pid 2>/dev/null
12210 fi
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12212 $as_echo "done" >&6; }
12213 if test -n "$EXEEXT"; then
12214 am__EXEEXT_TRUE=
12215 am__EXEEXT_FALSE='#'
12216 else
12217 am__EXEEXT_TRUE='#'
12218 am__EXEEXT_FALSE=
12219 fi
12220
12221 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12222 as_fn_error $? "conditional \"AMDEP\" was never defined.
12223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12224 fi
12225 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12226 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12228 fi
12229
12230 : "${CONFIG_STATUS=./config.status}"
12231 ac_write_fail=0
12232 ac_clean_files_save=$ac_clean_files
12233 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12235 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12236 as_write_fail=0
12237 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12238 #! $SHELL
12239 # Generated by $as_me.
12240 # Run this file to recreate the current configuration.
12241 # Compiler output produced by configure, useful for debugging
12242 # configure, is in config.log if it exists.
12243
12244 debug=false
12245 ac_cs_recheck=false
12246 ac_cs_silent=false
12247
12248 SHELL=\${CONFIG_SHELL-$SHELL}
12249 export SHELL
12250 _ASEOF
12251 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12252 ## -------------------- ##
12253 ## M4sh Initialization. ##
12254 ## -------------------- ##
12255
12256 # Be more Bourne compatible
12257 DUALCASE=1; export DUALCASE # for MKS sh
12258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12259 emulate sh
12260 NULLCMD=:
12261 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12262 # is contrary to our usage. Disable this feature.
12263 alias -g '${1+"$@"}'='"$@"'
12264 setopt NO_GLOB_SUBST
12265 else
12266 case `(set -o) 2>/dev/null` in #(
12267 *posix*) :
12268 set -o posix ;; #(
12269 *) :
12270 ;;
12271 esac
12272 fi
12273
12274
12275 as_nl='
12276 '
12277 export as_nl
12278 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12279 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12281 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12282 # Prefer a ksh shell builtin over an external printf program on Solaris,
12283 # but without wasting forks for bash or zsh.
12284 if test -z "$BASH_VERSION$ZSH_VERSION" \
12285 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12286 as_echo='print -r --'
12287 as_echo_n='print -rn --'
12288 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12289 as_echo='printf %s\n'
12290 as_echo_n='printf %s'
12291 else
12292 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12293 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12294 as_echo_n='/usr/ucb/echo -n'
12295 else
12296 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12297 as_echo_n_body='eval
12298 arg=$1;
12299 case $arg in #(
12300 *"$as_nl"*)
12301 expr "X$arg" : "X\\(.*\\)$as_nl";
12302 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12303 esac;
12304 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12305 '
12306 export as_echo_n_body
12307 as_echo_n='sh -c $as_echo_n_body as_echo'
12308 fi
12309 export as_echo_body
12310 as_echo='sh -c $as_echo_body as_echo'
12311 fi
12312
12313 # The user is always right.
12314 if test "${PATH_SEPARATOR+set}" != set; then
12315 PATH_SEPARATOR=:
12316 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12317 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12318 PATH_SEPARATOR=';'
12319 }
12320 fi
12321
12322
12323 # IFS
12324 # We need space, tab and new line, in precisely that order. Quoting is
12325 # there to prevent editors from complaining about space-tab.
12326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12327 # splitting by setting IFS to empty value.)
12328 IFS=" "" $as_nl"
12329
12330 # Find who we are. Look in the path if we contain no directory separator.
12331 as_myself=
12332 case $0 in #((
12333 *[\\/]* ) as_myself=$0 ;;
12334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12336 do
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12340 done
12341 IFS=$as_save_IFS
12342
12343 ;;
12344 esac
12345 # We did not find ourselves, most probably we were run as `sh COMMAND'
12346 # in which case we are not to be found in the path.
12347 if test "x$as_myself" = x; then
12348 as_myself=$0
12349 fi
12350 if test ! -f "$as_myself"; then
12351 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12352 exit 1
12353 fi
12354
12355 # Unset variables that we do not need and which cause bugs (e.g. in
12356 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12357 # suppresses any "Segmentation fault" message there. '((' could
12358 # trigger a bug in pdksh 5.2.14.
12359 for as_var in BASH_ENV ENV MAIL MAILPATH
12360 do eval test x\${$as_var+set} = xset \
12361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12362 done
12363 PS1='$ '
12364 PS2='> '
12365 PS4='+ '
12366
12367 # NLS nuisances.
12368 LC_ALL=C
12369 export LC_ALL
12370 LANGUAGE=C
12371 export LANGUAGE
12372
12373 # CDPATH.
12374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12375
12376
12377 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12378 # ----------------------------------------
12379 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12380 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12381 # script with STATUS, using 1 if that was 0.
12382 as_fn_error ()
12383 {
12384 as_status=$1; test $as_status -eq 0 && as_status=1
12385 if test "$4"; then
12386 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12387 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12388 fi
12389 $as_echo "$as_me: error: $2" >&2
12390 as_fn_exit $as_status
12391 } # as_fn_error
12392
12393
12394 # as_fn_set_status STATUS
12395 # -----------------------
12396 # Set $? to STATUS, without forking.
12397 as_fn_set_status ()
12398 {
12399 return $1
12400 } # as_fn_set_status
12401
12402 # as_fn_exit STATUS
12403 # -----------------
12404 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12405 as_fn_exit ()
12406 {
12407 set +e
12408 as_fn_set_status $1
12409 exit $1
12410 } # as_fn_exit
12411
12412 # as_fn_unset VAR
12413 # ---------------
12414 # Portably unset VAR.
12415 as_fn_unset ()
12416 {
12417 { eval $1=; unset $1;}
12418 }
12419 as_unset=as_fn_unset
12420 # as_fn_append VAR VALUE
12421 # ----------------------
12422 # Append the text in VALUE to the end of the definition contained in VAR. Take
12423 # advantage of any shell optimizations that allow amortized linear growth over
12424 # repeated appends, instead of the typical quadratic growth present in naive
12425 # implementations.
12426 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12427 eval 'as_fn_append ()
12428 {
12429 eval $1+=\$2
12430 }'
12431 else
12432 as_fn_append ()
12433 {
12434 eval $1=\$$1\$2
12435 }
12436 fi # as_fn_append
12437
12438 # as_fn_arith ARG...
12439 # ------------------
12440 # Perform arithmetic evaluation on the ARGs, and store the result in the
12441 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12442 # must be portable across $(()) and expr.
12443 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12444 eval 'as_fn_arith ()
12445 {
12446 as_val=$(( $* ))
12447 }'
12448 else
12449 as_fn_arith ()
12450 {
12451 as_val=`expr "$@" || test $? -eq 1`
12452 }
12453 fi # as_fn_arith
12454
12455
12456 if expr a : '\(a\)' >/dev/null 2>&1 &&
12457 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12458 as_expr=expr
12459 else
12460 as_expr=false
12461 fi
12462
12463 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12464 as_basename=basename
12465 else
12466 as_basename=false
12467 fi
12468
12469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12470 as_dirname=dirname
12471 else
12472 as_dirname=false
12473 fi
12474
12475 as_me=`$as_basename -- "$0" ||
12476 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12477 X"$0" : 'X\(//\)$' \| \
12478 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12479 $as_echo X/"$0" |
12480 sed '/^.*\/\([^/][^/]*\)\/*$/{
12481 s//\1/
12482 q
12483 }
12484 /^X\/\(\/\/\)$/{
12485 s//\1/
12486 q
12487 }
12488 /^X\/\(\/\).*/{
12489 s//\1/
12490 q
12491 }
12492 s/.*/./; q'`
12493
12494 # Avoid depending upon Character Ranges.
12495 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12496 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12497 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12498 as_cr_digits='0123456789'
12499 as_cr_alnum=$as_cr_Letters$as_cr_digits
12500
12501 ECHO_C= ECHO_N= ECHO_T=
12502 case `echo -n x` in #(((((
12503 -n*)
12504 case `echo 'xy\c'` in
12505 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12506 xy) ECHO_C='\c';;
12507 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12508 ECHO_T=' ';;
12509 esac;;
12510 *)
12511 ECHO_N='-n';;
12512 esac
12513
12514 rm -f conf$$ conf$$.exe conf$$.file
12515 if test -d conf$$.dir; then
12516 rm -f conf$$.dir/conf$$.file
12517 else
12518 rm -f conf$$.dir
12519 mkdir conf$$.dir 2>/dev/null
12520 fi
12521 if (echo >conf$$.file) 2>/dev/null; then
12522 if ln -s conf$$.file conf$$ 2>/dev/null; then
12523 as_ln_s='ln -s'
12524 # ... but there are two gotchas:
12525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12527 # In both cases, we have to default to `cp -pR'.
12528 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12529 as_ln_s='cp -pR'
12530 elif ln conf$$.file conf$$ 2>/dev/null; then
12531 as_ln_s=ln
12532 else
12533 as_ln_s='cp -pR'
12534 fi
12535 else
12536 as_ln_s='cp -pR'
12537 fi
12538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12539 rmdir conf$$.dir 2>/dev/null
12540
12541
12542 # as_fn_mkdir_p
12543 # -------------
12544 # Create "$as_dir" as a directory, including parents if necessary.
12545 as_fn_mkdir_p ()
12546 {
12547
12548 case $as_dir in #(
12549 -*) as_dir=./$as_dir;;
12550 esac
12551 test -d "$as_dir" || eval $as_mkdir_p || {
12552 as_dirs=
12553 while :; do
12554 case $as_dir in #(
12555 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12556 *) as_qdir=$as_dir;;
12557 esac
12558 as_dirs="'$as_qdir' $as_dirs"
12559 as_dir=`$as_dirname -- "$as_dir" ||
12560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12561 X"$as_dir" : 'X\(//\)[^/]' \| \
12562 X"$as_dir" : 'X\(//\)$' \| \
12563 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12564 $as_echo X"$as_dir" |
12565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12566 s//\1/
12567 q
12568 }
12569 /^X\(\/\/\)[^/].*/{
12570 s//\1/
12571 q
12572 }
12573 /^X\(\/\/\)$/{
12574 s//\1/
12575 q
12576 }
12577 /^X\(\/\).*/{
12578 s//\1/
12579 q
12580 }
12581 s/.*/./; q'`
12582 test -d "$as_dir" && break
12583 done
12584 test -z "$as_dirs" || eval "mkdir $as_dirs"
12585 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12586
12587
12588 } # as_fn_mkdir_p
12589 if mkdir -p . 2>/dev/null; then
12590 as_mkdir_p='mkdir -p "$as_dir"'
12591 else
12592 test -d ./-p && rmdir ./-p
12593 as_mkdir_p=false
12594 fi
12595
12596
12597 # as_fn_executable_p FILE
12598 # -----------------------
12599 # Test if FILE is an executable regular file.
12600 as_fn_executable_p ()
12601 {
12602 test -f "$1" && test -x "$1"
12603 } # as_fn_executable_p
12604 as_test_x='test -x'
12605 as_executable_p=as_fn_executable_p
12606
12607 # Sed expression to map a string onto a valid CPP name.
12608 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12609
12610 # Sed expression to map a string onto a valid variable name.
12611 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12612
12613
12614 exec 6>&1
12615 ## ----------------------------------- ##
12616 ## Main body of $CONFIG_STATUS script. ##
12617 ## ----------------------------------- ##
12618 _ASEOF
12619 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12620
12621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12622 # Save the log message, to keep $0 and so on meaningful, and to
12623 # report actual input values of CONFIG_FILES etc. instead of their
12624 # values after options handling.
12625 ac_log="
12626 This file was extended by $as_me, which was
12627 generated by GNU Autoconf 2.69. Invocation command line was
12628
12629 CONFIG_FILES = $CONFIG_FILES
12630 CONFIG_HEADERS = $CONFIG_HEADERS
12631 CONFIG_LINKS = $CONFIG_LINKS
12632 CONFIG_COMMANDS = $CONFIG_COMMANDS
12633 $ $0 $@
12634
12635 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12636 "
12637
12638 _ACEOF
12639
12640 case $ac_config_files in *"
12641 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12642 esac
12643
12644 case $ac_config_headers in *"
12645 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12646 esac
12647
12648
12649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12650 # Files that config.status was made for.
12651 config_files="$ac_config_files"
12652 config_headers="$ac_config_headers"
12653 config_commands="$ac_config_commands"
12654
12655 _ACEOF
12656
12657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12658 ac_cs_usage="\
12659 \`$as_me' instantiates files and other configuration actions
12660 from templates according to the current configuration. Unless the files
12661 and actions are specified as TAGs, all are instantiated by default.
12662
12663 Usage: $0 [OPTION]... [TAG]...
12664
12665 -h, --help print this help, then exit
12666 -V, --version print version number and configuration settings, then exit
12667 --config print configuration, then exit
12668 -q, --quiet, --silent
12669 do not print progress messages
12670 -d, --debug don't remove temporary files
12671 --recheck update $as_me by reconfiguring in the same conditions
12672 --file=FILE[:TEMPLATE]
12673 instantiate the configuration file FILE
12674 --header=FILE[:TEMPLATE]
12675 instantiate the configuration header FILE
12676
12677 Configuration files:
12678 $config_files
12679
12680 Configuration headers:
12681 $config_headers
12682
12683 Configuration commands:
12684 $config_commands
12685
12686 Report bugs to the package provider."
12687
12688 _ACEOF
12689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12690 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12691 ac_cs_version="\\
12692 config.status
12693 configured by $0, generated by GNU Autoconf 2.69,
12694 with options \\"\$ac_cs_config\\"
12695
12696 Copyright (C) 2012 Free Software Foundation, Inc.
12697 This config.status script is free software; the Free Software Foundation
12698 gives unlimited permission to copy, distribute and modify it."
12699
12700 ac_pwd='$ac_pwd'
12701 srcdir='$srcdir'
12702 INSTALL='$INSTALL'
12703 MKDIR_P='$MKDIR_P'
12704 AWK='$AWK'
12705 test -n "\$AWK" || AWK=awk
12706 _ACEOF
12707
12708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12709 # The default lists apply if the user does not specify any file.
12710 ac_need_defaults=:
12711 while test $# != 0
12712 do
12713 case $1 in
12714 --*=?*)
12715 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12716 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12717 ac_shift=:
12718 ;;
12719 --*=)
12720 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12721 ac_optarg=
12722 ac_shift=:
12723 ;;
12724 *)
12725 ac_option=$1
12726 ac_optarg=$2
12727 ac_shift=shift
12728 ;;
12729 esac
12730
12731 case $ac_option in
12732 # Handling of the options.
12733 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12734 ac_cs_recheck=: ;;
12735 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12736 $as_echo "$ac_cs_version"; exit ;;
12737 --config | --confi | --conf | --con | --co | --c )
12738 $as_echo "$ac_cs_config"; exit ;;
12739 --debug | --debu | --deb | --de | --d | -d )
12740 debug=: ;;
12741 --file | --fil | --fi | --f )
12742 $ac_shift
12743 case $ac_optarg in
12744 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12745 '') as_fn_error $? "missing file argument" ;;
12746 esac
12747 as_fn_append CONFIG_FILES " '$ac_optarg'"
12748 ac_need_defaults=false;;
12749 --header | --heade | --head | --hea )
12750 $ac_shift
12751 case $ac_optarg in
12752 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12753 esac
12754 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12755 ac_need_defaults=false;;
12756 --he | --h)
12757 # Conflict between --help and --header
12758 as_fn_error $? "ambiguous option: \`$1'
12759 Try \`$0 --help' for more information.";;
12760 --help | --hel | -h )
12761 $as_echo "$ac_cs_usage"; exit ;;
12762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12764 ac_cs_silent=: ;;
12765
12766 # This is an error.
12767 -*) as_fn_error $? "unrecognized option: \`$1'
12768 Try \`$0 --help' for more information." ;;
12769
12770 *) as_fn_append ac_config_targets " $1"
12771 ac_need_defaults=false ;;
12772
12773 esac
12774 shift
12775 done
12776
12777 ac_configure_extra_args=
12778
12779 if $ac_cs_silent; then
12780 exec 6>/dev/null
12781 ac_configure_extra_args="$ac_configure_extra_args --silent"
12782 fi
12783
12784 _ACEOF
12785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12786 if \$ac_cs_recheck; then
12787 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12788 shift
12789 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12790 CONFIG_SHELL='$SHELL'
12791 export CONFIG_SHELL
12792 exec "\$@"
12793 fi
12794
12795 _ACEOF
12796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12797 exec 5>>config.log
12798 {
12799 echo
12800 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12801 ## Running $as_me. ##
12802 _ASBOX
12803 $as_echo "$ac_log"
12804 } >&5
12805
12806 _ACEOF
12807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12808 #
12809 # INIT-COMMANDS
12810 #
12811 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12812
12813
12814 # The HP-UX ksh and POSIX shell print the target directory to stdout
12815 # if CDPATH is set.
12816 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12817
12818 sed_quote_subst='$sed_quote_subst'
12819 double_quote_subst='$double_quote_subst'
12820 delay_variable_subst='$delay_variable_subst'
12821 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12822 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12823 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12824 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12825 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12826 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12827 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12828 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12829 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12830 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12831 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12832 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12833 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12834 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12835 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12836 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12837 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12838 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12839 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12840 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12841 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12842 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12843 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12844 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12845 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12846 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12847 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12848 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12849 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12850 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12851 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12852 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12853 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12854 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12855 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12856 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12857 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12858 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12859 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12860 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12861 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12862 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12863 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12864 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12865 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12866 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12867 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12868 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12869 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12870 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12871 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12872 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12873 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12874 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12875 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12876 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12877 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12878 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12879 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12880 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12881 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12882 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12883 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12884 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12885 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12886 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12887 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12888 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12889 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12890 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12891 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12892 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12893 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12894 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12895 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12896 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12897 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12898 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12899 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12900 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12901 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12902 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12903 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12904 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12905 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12906 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12907 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12908 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12909 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12910 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12911 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12912 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12913 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12914 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12915 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12916 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12917 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12918 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12919 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12920 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12921 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12922 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12923 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12924 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12925 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12926 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12927 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12928 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12929 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12930 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12931 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12932 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12933 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12934 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12935 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12936 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12937 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12938 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12939 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12940 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12941 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12942 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12943 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12944 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12945 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12946 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12947 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12948 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12949 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12950 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12951
12952 LTCC='$LTCC'
12953 LTCFLAGS='$LTCFLAGS'
12954 compiler='$compiler_DEFAULT'
12955
12956 # A function that is used when there is no print builtin or printf.
12957 func_fallback_echo ()
12958 {
12959 eval 'cat <<_LTECHO_EOF
12960 \$1
12961 _LTECHO_EOF'
12962 }
12963
12964 # Quote evaled strings.
12965 for var in SHELL \
12966 ECHO \
12967 PATH_SEPARATOR \
12968 SED \
12969 GREP \
12970 EGREP \
12971 FGREP \
12972 LD \
12973 NM \
12974 LN_S \
12975 lt_SP2NL \
12976 lt_NL2SP \
12977 reload_flag \
12978 OBJDUMP \
12979 deplibs_check_method \
12980 file_magic_cmd \
12981 file_magic_glob \
12982 want_nocaseglob \
12983 DLLTOOL \
12984 sharedlib_from_linklib_cmd \
12985 AR \
12986 AR_FLAGS \
12987 archiver_list_spec \
12988 STRIP \
12989 RANLIB \
12990 CC \
12991 CFLAGS \
12992 compiler \
12993 lt_cv_sys_global_symbol_pipe \
12994 lt_cv_sys_global_symbol_to_cdecl \
12995 lt_cv_sys_global_symbol_to_c_name_address \
12996 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12997 nm_file_list_spec \
12998 lt_prog_compiler_no_builtin_flag \
12999 lt_prog_compiler_pic \
13000 lt_prog_compiler_wl \
13001 lt_prog_compiler_static \
13002 lt_cv_prog_compiler_c_o \
13003 need_locks \
13004 MANIFEST_TOOL \
13005 DSYMUTIL \
13006 NMEDIT \
13007 LIPO \
13008 OTOOL \
13009 OTOOL64 \
13010 shrext_cmds \
13011 export_dynamic_flag_spec \
13012 whole_archive_flag_spec \
13013 compiler_needs_object \
13014 with_gnu_ld \
13015 allow_undefined_flag \
13016 no_undefined_flag \
13017 hardcode_libdir_flag_spec \
13018 hardcode_libdir_separator \
13019 exclude_expsyms \
13020 include_expsyms \
13021 file_list_spec \
13022 variables_saved_for_relink \
13023 libname_spec \
13024 library_names_spec \
13025 soname_spec \
13026 install_override_mode \
13027 finish_eval \
13028 old_striplib \
13029 striplib; do
13030 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13031 *[\\\\\\\`\\"\\\$]*)
13032 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13033 ;;
13034 *)
13035 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13036 ;;
13037 esac
13038 done
13039
13040 # Double-quote double-evaled strings.
13041 for var in reload_cmds \
13042 old_postinstall_cmds \
13043 old_postuninstall_cmds \
13044 old_archive_cmds \
13045 extract_expsyms_cmds \
13046 old_archive_from_new_cmds \
13047 old_archive_from_expsyms_cmds \
13048 archive_cmds \
13049 archive_expsym_cmds \
13050 module_cmds \
13051 module_expsym_cmds \
13052 export_symbols_cmds \
13053 prelink_cmds \
13054 postlink_cmds \
13055 postinstall_cmds \
13056 postuninstall_cmds \
13057 finish_cmds \
13058 sys_lib_search_path_spec \
13059 sys_lib_dlsearch_path_spec; do
13060 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13061 *[\\\\\\\`\\"\\\$]*)
13062 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13063 ;;
13064 *)
13065 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13066 ;;
13067 esac
13068 done
13069
13070 ac_aux_dir='$ac_aux_dir'
13071 xsi_shell='$xsi_shell'
13072 lt_shell_append='$lt_shell_append'
13073
13074 # See if we are running on zsh, and set the options which allow our
13075 # commands through without removal of \ escapes INIT.
13076 if test -n "\${ZSH_VERSION+set}" ; then
13077 setopt NO_GLOB_SUBST
13078 fi
13079
13080
13081 PACKAGE='$PACKAGE'
13082 VERSION='$VERSION'
13083 TIMESTAMP='$TIMESTAMP'
13084 RM='$RM'
13085 ofile='$ofile'
13086
13087
13088
13089
13090 _ACEOF
13091
13092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13093
13094 # Handling of arguments.
13095 for ac_config_target in $ac_config_targets
13096 do
13097 case $ac_config_target in
13098 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13099 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13100 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13101 "lrdf.pc") CONFIG_FILES="$CONFIG_FILES lrdf.pc" ;;
13102 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13103 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13104 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13105
13106 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13107 esac
13108 done
13109
13110
13111 # If the user did not use the arguments to specify the items to instantiate,
13112 # then the envvar interface is used. Set only those that are not.
13113 # We use the long form for the default assignment because of an extremely
13114 # bizarre bug on SunOS 4.1.3.
13115 if $ac_need_defaults; then
13116 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13117 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13118 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13119 fi
13120
13121 # Have a temporary directory for convenience. Make it in the build tree
13122 # simply because there is no reason against having it here, and in addition,
13123 # creating and moving files from /tmp can sometimes cause problems.
13124 # Hook for its removal unless debugging.
13125 # Note that there is a small window in which the directory will not be cleaned:
13126 # after its creation but before its name has been assigned to `$tmp'.
13127 $debug ||
13128 {
13129 tmp= ac_tmp=
13130 trap 'exit_status=$?
13131 : "${ac_tmp:=$tmp}"
13132 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13133 ' 0
13134 trap 'as_fn_exit 1' 1 2 13 15
13135 }
13136 # Create a (secure) tmp directory for tmp files.
13137
13138 {
13139 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13140 test -d "$tmp"
13141 } ||
13142 {
13143 tmp=./conf$$-$RANDOM
13144 (umask 077 && mkdir "$tmp")
13145 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13146 ac_tmp=$tmp
13147
13148 # Set up the scripts for CONFIG_FILES section.
13149 # No need to generate them if there are no CONFIG_FILES.
13150 # This happens for instance with `./config.status config.h'.
13151 if test -n "$CONFIG_FILES"; then
13152
13153
13154 ac_cr=`echo X | tr X '\015'`
13155 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13156 # But we know of no other shell where ac_cr would be empty at this
13157 # point, so we can use a bashism as a fallback.
13158 if test "x$ac_cr" = x; then
13159 eval ac_cr=\$\'\\r\'
13160 fi
13161 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13162 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13163 ac_cs_awk_cr='\\r'
13164 else
13165 ac_cs_awk_cr=$ac_cr
13166 fi
13167
13168 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13169 _ACEOF
13170
13171
13172 {
13173 echo "cat >conf$$subs.awk <<_ACEOF" &&
13174 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13175 echo "_ACEOF"
13176 } >conf$$subs.sh ||
13177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13178 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13179 ac_delim='%!_!# '
13180 for ac_last_try in false false false false false :; do
13181 . ./conf$$subs.sh ||
13182 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13183
13184 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13185 if test $ac_delim_n = $ac_delim_num; then
13186 break
13187 elif $ac_last_try; then
13188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13189 else
13190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13191 fi
13192 done
13193 rm -f conf$$subs.sh
13194
13195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13196 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13197 _ACEOF
13198 sed -n '
13199 h
13200 s/^/S["/; s/!.*/"]=/
13201 p
13202 g
13203 s/^[^!]*!//
13204 :repl
13205 t repl
13206 s/'"$ac_delim"'$//
13207 t delim
13208 :nl
13209 h
13210 s/\(.\{148\}\)..*/\1/
13211 t more1
13212 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13213 p
13214 n
13215 b repl
13216 :more1
13217 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13218 p
13219 g
13220 s/.\{148\}//
13221 t nl
13222 :delim
13223 h
13224 s/\(.\{148\}\)..*/\1/
13225 t more2
13226 s/["\\]/\\&/g; s/^/"/; s/$/"/
13227 p
13228 b
13229 :more2
13230 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13231 p
13232 g
13233 s/.\{148\}//
13234 t delim
13235 ' <conf$$subs.awk | sed '
13236 /^[^""]/{
13237 N
13238 s/\n//
13239 }
13240 ' >>$CONFIG_STATUS || ac_write_fail=1
13241 rm -f conf$$subs.awk
13242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13243 _ACAWK
13244 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13245 for (key in S) S_is_set[key] = 1
13246 FS = ""
13247
13248 }
13249 {
13250 line = $ 0
13251 nfields = split(line, field, "@")
13252 substed = 0
13253 len = length(field[1])
13254 for (i = 2; i < nfields; i++) {
13255 key = field[i]
13256 keylen = length(key)
13257 if (S_is_set[key]) {
13258 value = S[key]
13259 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13260 len += length(value) + length(field[++i])
13261 substed = 1
13262 } else
13263 len += 1 + keylen
13264 }
13265
13266 print line
13267 }
13268
13269 _ACAWK
13270 _ACEOF
13271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13272 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13273 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13274 else
13275 cat
13276 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13277 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13278 _ACEOF
13279
13280 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13281 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13282 # trailing colons and then remove the whole line if VPATH becomes empty
13283 # (actually we leave an empty line to preserve line numbers).
13284 if test "x$srcdir" = x.; then
13285 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13286 h
13287 s///
13288 s/^/:/
13289 s/[ ]*$/:/
13290 s/:\$(srcdir):/:/g
13291 s/:\${srcdir}:/:/g
13292 s/:@srcdir@:/:/g
13293 s/^:*//
13294 s/:*$//
13295 x
13296 s/\(=[ ]*\).*/\1/
13297 G
13298 s/\n//
13299 s/^[^=]*=[ ]*$//
13300 }'
13301 fi
13302
13303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13304 fi # test -n "$CONFIG_FILES"
13305
13306 # Set up the scripts for CONFIG_HEADERS section.
13307 # No need to generate them if there are no CONFIG_HEADERS.
13308 # This happens for instance with `./config.status Makefile'.
13309 if test -n "$CONFIG_HEADERS"; then
13310 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13311 BEGIN {
13312 _ACEOF
13313
13314 # Transform confdefs.h into an awk script `defines.awk', embedded as
13315 # here-document in config.status, that substitutes the proper values into
13316 # config.h.in to produce config.h.
13317
13318 # Create a delimiter string that does not exist in confdefs.h, to ease
13319 # handling of long lines.
13320 ac_delim='%!_!# '
13321 for ac_last_try in false false :; do
13322 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13323 if test -z "$ac_tt"; then
13324 break
13325 elif $ac_last_try; then
13326 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13327 else
13328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13329 fi
13330 done
13331
13332 # For the awk script, D is an array of macro values keyed by name,
13333 # likewise P contains macro parameters if any. Preserve backslash
13334 # newline sequences.
13335
13336 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13337 sed -n '
13338 s/.\{148\}/&'"$ac_delim"'/g
13339 t rset
13340 :rset
13341 s/^[ ]*#[ ]*define[ ][ ]*/ /
13342 t def
13343 d
13344 :def
13345 s/\\$//
13346 t bsnl
13347 s/["\\]/\\&/g
13348 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13349 D["\1"]=" \3"/p
13350 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13351 d
13352 :bsnl
13353 s/["\\]/\\&/g
13354 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13355 D["\1"]=" \3\\\\\\n"\\/p
13356 t cont
13357 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13358 t cont
13359 d
13360 :cont
13361 n
13362 s/.\{148\}/&'"$ac_delim"'/g
13363 t clear
13364 :clear
13365 s/\\$//
13366 t bsnlc
13367 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13368 d
13369 :bsnlc
13370 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13371 b cont
13372 ' <confdefs.h | sed '
13373 s/'"$ac_delim"'/"\\\
13374 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13375
13376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13377 for (key in D) D_is_set[key] = 1
13378 FS = ""
13379 }
13380 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13381 line = \$ 0
13382 split(line, arg, " ")
13383 if (arg[1] == "#") {
13384 defundef = arg[2]
13385 mac1 = arg[3]
13386 } else {
13387 defundef = substr(arg[1], 2)
13388 mac1 = arg[2]
13389 }
13390 split(mac1, mac2, "(") #)
13391 macro = mac2[1]
13392 prefix = substr(line, 1, index(line, defundef) - 1)
13393 if (D_is_set[macro]) {
13394 # Preserve the white space surrounding the "#".
13395 print prefix "define", macro P[macro] D[macro]
13396 next
13397 } else {
13398 # Replace #undef with comments. This is necessary, for example,
13399 # in the case of _POSIX_SOURCE, which is predefined and required
13400 # on some systems where configure will not decide to define it.
13401 if (defundef == "undef") {
13402 print "/*", prefix defundef, macro, "*/"
13403 next
13404 }
13405 }
13406 }
13407 { print }
13408 _ACAWK
13409 _ACEOF
13410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13411 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13412 fi # test -n "$CONFIG_HEADERS"
13413
13414
13415 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13416 shift
13417 for ac_tag
13418 do
13419 case $ac_tag in
13420 :[FHLC]) ac_mode=$ac_tag; continue;;
13421 esac
13422 case $ac_mode$ac_tag in
13423 :[FHL]*:*);;
13424 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13425 :[FH]-) ac_tag=-:-;;
13426 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13427 esac
13428 ac_save_IFS=$IFS
13429 IFS=:
13430 set x $ac_tag
13431 IFS=$ac_save_IFS
13432 shift
13433 ac_file=$1
13434 shift
13435
13436 case $ac_mode in
13437 :L) ac_source=$1;;
13438 :[FH])
13439 ac_file_inputs=
13440 for ac_f
13441 do
13442 case $ac_f in
13443 -) ac_f="$ac_tmp/stdin";;
13444 *) # Look for the file first in the build tree, then in the source tree
13445 # (if the path is not absolute). The absolute path cannot be DOS-style,
13446 # because $ac_f cannot contain `:'.
13447 test -f "$ac_f" ||
13448 case $ac_f in
13449 [\\/$]*) false;;
13450 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13451 esac ||
13452 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13453 esac
13454 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13455 as_fn_append ac_file_inputs " '$ac_f'"
13456 done
13457
13458 # Let's still pretend it is `configure' which instantiates (i.e., don't
13459 # use $as_me), people would be surprised to read:
13460 # /* config.h. Generated by config.status. */
13461 configure_input='Generated from '`
13462 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13463 `' by configure.'
13464 if test x"$ac_file" != x-; then
13465 configure_input="$ac_file. $configure_input"
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13467 $as_echo "$as_me: creating $ac_file" >&6;}
13468 fi
13469 # Neutralize special characters interpreted by sed in replacement strings.
13470 case $configure_input in #(
13471 *\&* | *\|* | *\\* )
13472 ac_sed_conf_input=`$as_echo "$configure_input" |
13473 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13474 *) ac_sed_conf_input=$configure_input;;
13475 esac
13476
13477 case $ac_tag in
13478 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13479 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13480 esac
13481 ;;
13482 esac
13483
13484 ac_dir=`$as_dirname -- "$ac_file" ||
13485 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13486 X"$ac_file" : 'X\(//\)[^/]' \| \
13487 X"$ac_file" : 'X\(//\)$' \| \
13488 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13489 $as_echo X"$ac_file" |
13490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13491 s//\1/
13492 q
13493 }
13494 /^X\(\/\/\)[^/].*/{
13495 s//\1/
13496 q
13497 }
13498 /^X\(\/\/\)$/{
13499 s//\1/
13500 q
13501 }
13502 /^X\(\/\).*/{
13503 s//\1/
13504 q
13505 }
13506 s/.*/./; q'`
13507 as_dir="$ac_dir"; as_fn_mkdir_p
13508 ac_builddir=.
13509
13510 case "$ac_dir" in
13511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13512 *)
13513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13514 # A ".." for each directory in $ac_dir_suffix.
13515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13516 case $ac_top_builddir_sub in
13517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13519 esac ;;
13520 esac
13521 ac_abs_top_builddir=$ac_pwd
13522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13523 # for backward compatibility:
13524 ac_top_builddir=$ac_top_build_prefix
13525
13526 case $srcdir in
13527 .) # We are building in place.
13528 ac_srcdir=.
13529 ac_top_srcdir=$ac_top_builddir_sub
13530 ac_abs_top_srcdir=$ac_pwd ;;
13531 [\\/]* | ?:[\\/]* ) # Absolute name.
13532 ac_srcdir=$srcdir$ac_dir_suffix;
13533 ac_top_srcdir=$srcdir
13534 ac_abs_top_srcdir=$srcdir ;;
13535 *) # Relative name.
13536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13537 ac_top_srcdir=$ac_top_build_prefix$srcdir
13538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13539 esac
13540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13541
13542
13543 case $ac_mode in
13544 :F)
13545 #
13546 # CONFIG_FILE
13547 #
13548
13549 case $INSTALL in
13550 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13551 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13552 esac
13553 ac_MKDIR_P=$MKDIR_P
13554 case $MKDIR_P in
13555 [\\/$]* | ?:[\\/]* ) ;;
13556 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13557 esac
13558 _ACEOF
13559
13560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13561 # If the template does not know about datarootdir, expand it.
13562 # FIXME: This hack should be removed a few years after 2.60.
13563 ac_datarootdir_hack=; ac_datarootdir_seen=
13564 ac_sed_dataroot='
13565 /datarootdir/ {
13566 p
13567 q
13568 }
13569 /@datadir@/p
13570 /@docdir@/p
13571 /@infodir@/p
13572 /@localedir@/p
13573 /@mandir@/p'
13574 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13575 *datarootdir*) ac_datarootdir_seen=yes;;
13576 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13578 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13579 _ACEOF
13580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13581 ac_datarootdir_hack='
13582 s&@datadir@&$datadir&g
13583 s&@docdir@&$docdir&g
13584 s&@infodir@&$infodir&g
13585 s&@localedir@&$localedir&g
13586 s&@mandir@&$mandir&g
13587 s&\\\${datarootdir}&$datarootdir&g' ;;
13588 esac
13589 _ACEOF
13590
13591 # Neutralize VPATH when `$srcdir' = `.'.
13592 # Shell code in configure.ac might set extrasub.
13593 # FIXME: do we really want to maintain this feature?
13594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13595 ac_sed_extra="$ac_vpsub
13596 $extrasub
13597 _ACEOF
13598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13599 :t
13600 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13601 s|@configure_input@|$ac_sed_conf_input|;t t
13602 s&@top_builddir@&$ac_top_builddir_sub&;t t
13603 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13604 s&@srcdir@&$ac_srcdir&;t t
13605 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13606 s&@top_srcdir@&$ac_top_srcdir&;t t
13607 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13608 s&@builddir@&$ac_builddir&;t t
13609 s&@abs_builddir@&$ac_abs_builddir&;t t
13610 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13611 s&@INSTALL@&$ac_INSTALL&;t t
13612 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13613 $ac_datarootdir_hack
13614 "
13615 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13616 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13617
13618 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13619 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13620 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13621 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13623 which seems to be undefined. Please make sure it is defined" >&5
13624 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13625 which seems to be undefined. Please make sure it is defined" >&2;}
13626
13627 rm -f "$ac_tmp/stdin"
13628 case $ac_file in
13629 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13630 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13631 esac \
13632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13633 ;;
13634 :H)
13635 #
13636 # CONFIG_HEADER
13637 #
13638 if test x"$ac_file" != x-; then
13639 {
13640 $as_echo "/* $configure_input */" \
13641 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13642 } >"$ac_tmp/config.h" \
13643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13644 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13646 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13647 else
13648 rm -f "$ac_file"
13649 mv "$ac_tmp/config.h" "$ac_file" \
13650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13651 fi
13652 else
13653 $as_echo "/* $configure_input */" \
13654 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13655 || as_fn_error $? "could not create -" "$LINENO" 5
13656 fi
13657 # Compute "$ac_file"'s index in $config_headers.
13658 _am_arg="$ac_file"
13659 _am_stamp_count=1
13660 for _am_header in $config_headers :; do
13661 case $_am_header in
13662 $_am_arg | $_am_arg:* )
13663 break ;;
13664 * )
13665 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13666 esac
13667 done
13668 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13669 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13670 X"$_am_arg" : 'X\(//\)[^/]' \| \
13671 X"$_am_arg" : 'X\(//\)$' \| \
13672 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13673 $as_echo X"$_am_arg" |
13674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13675 s//\1/
13676 q
13677 }
13678 /^X\(\/\/\)[^/].*/{
13679 s//\1/
13680 q
13681 }
13682 /^X\(\/\/\)$/{
13683 s//\1/
13684 q
13685 }
13686 /^X\(\/\).*/{
13687 s//\1/
13688 q
13689 }
13690 s/.*/./; q'`/stamp-h$_am_stamp_count
13691 ;;
13692
13693 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13694 $as_echo "$as_me: executing $ac_file commands" >&6;}
13695 ;;
13696 esac
13697
13698
13699 case $ac_file$ac_mode in
13700 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13701 # Older Autoconf quotes --file arguments for eval, but not when files
13702 # are listed without --file. Let's play safe and only enable the eval
13703 # if we detect the quoting.
13704 case $CONFIG_FILES in
13705 *\'*) eval set x "$CONFIG_FILES" ;;
13706 *) set x $CONFIG_FILES ;;
13707 esac
13708 shift
13709 for mf
13710 do
13711 # Strip MF so we end up with the name of the file.
13712 mf=`echo "$mf" | sed -e 's/:.*$//'`
13713 # Check whether this is an Automake generated Makefile or not.
13714 # We used to match only the files named 'Makefile.in', but
13715 # some people rename them; so instead we look at the file content.
13716 # Grep'ing the first line is not enough: some people post-process
13717 # each Makefile.in and add a new line on top of each file to say so.
13718 # Grep'ing the whole file is not good either: AIX grep has a line
13719 # limit of 2048, but all sed's we know have understand at least 4000.
13720 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13721 dirpart=`$as_dirname -- "$mf" ||
13722 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13723 X"$mf" : 'X\(//\)[^/]' \| \
13724 X"$mf" : 'X\(//\)$' \| \
13725 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13726 $as_echo X"$mf" |
13727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13728 s//\1/
13729 q
13730 }
13731 /^X\(\/\/\)[^/].*/{
13732 s//\1/
13733 q
13734 }
13735 /^X\(\/\/\)$/{
13736 s//\1/
13737 q
13738 }
13739 /^X\(\/\).*/{
13740 s//\1/
13741 q
13742 }
13743 s/.*/./; q'`
13744 else
13745 continue
13746 fi
13747 # Extract the definition of DEPDIR, am__include, and am__quote
13748 # from the Makefile without running 'make'.
13749 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13750 test -z "$DEPDIR" && continue
13751 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13752 test -z "$am__include" && continue
13753 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13754 # Find all dependency output files, they are included files with
13755 # $(DEPDIR) in their names. We invoke sed twice because it is the
13756 # simplest approach to changing $(DEPDIR) to its actual value in the
13757 # expansion.
13758 for file in `sed -n "
13759 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13760 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13761 # Make sure the directory exists.
13762 test -f "$dirpart/$file" && continue
13763 fdir=`$as_dirname -- "$file" ||
13764 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13765 X"$file" : 'X\(//\)[^/]' \| \
13766 X"$file" : 'X\(//\)$' \| \
13767 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13768 $as_echo X"$file" |
13769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13770 s//\1/
13771 q
13772 }
13773 /^X\(\/\/\)[^/].*/{
13774 s//\1/
13775 q
13776 }
13777 /^X\(\/\/\)$/{
13778 s//\1/
13779 q
13780 }
13781 /^X\(\/\).*/{
13782 s//\1/
13783 q
13784 }
13785 s/.*/./; q'`
13786 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13787 # echo "creating $dirpart/$file"
13788 echo '# dummy' > "$dirpart/$file"
13789 done
13790 done
13791 }
13792 ;;
13793 "libtool":C)
13794
13795 # See if we are running on zsh, and set the options which allow our
13796 # commands through without removal of \ escapes.
13797 if test -n "${ZSH_VERSION+set}" ; then
13798 setopt NO_GLOB_SUBST
13799 fi
13800
13801 cfgfile="${ofile}T"
13802 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13803 $RM "$cfgfile"
13804
13805 cat <<_LT_EOF >> "$cfgfile"
13806 #! $SHELL
13807
13808 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13809 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13810 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13811 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13812 #
13813 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13814 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13815 # Foundation, Inc.
13816 # Written by Gordon Matzigkeit, 1996
13817 #
13818 # This file is part of GNU Libtool.
13819 #
13820 # GNU Libtool is free software; you can redistribute it and/or
13821 # modify it under the terms of the GNU General Public License as
13822 # published by the Free Software Foundation; either version 2 of
13823 # the License, or (at your option) any later version.
13824 #
13825 # As a special exception to the GNU General Public License,
13826 # if you distribute this file as part of a program or library that
13827 # is built using GNU Libtool, you may include this file under the
13828 # same distribution terms that you use for the rest of that program.
13829 #
13830 # GNU Libtool is distributed in the hope that it will be useful,
13831 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13832 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13833 # GNU General Public License for more details.
13834 #
13835 # You should have received a copy of the GNU General Public License
13836 # along with GNU Libtool; see the file COPYING. If not, a copy
13837 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13838 # obtained by writing to the Free Software Foundation, Inc.,
13839 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13840
13841
13842 # The names of the tagged configurations supported by this script.
13843 available_tags=""
13844
13845 # ### BEGIN LIBTOOL CONFIG
13846
13847 # Which release of libtool.m4 was used?
13848 macro_version=$macro_version
13849 macro_revision=$macro_revision
13850
13851 # Whether or not to build shared libraries.
13852 build_libtool_libs=$enable_shared
13853
13854 # Whether or not to build static libraries.
13855 build_old_libs=$enable_static
13856
13857 # What type of objects to build.
13858 pic_mode=$pic_mode
13859
13860 # Whether or not to optimize for fast installation.
13861 fast_install=$enable_fast_install
13862
13863 # Shell to use when invoking shell scripts.
13864 SHELL=$lt_SHELL
13865
13866 # An echo program that protects backslashes.
13867 ECHO=$lt_ECHO
13868
13869 # The PATH separator for the build system.
13870 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13871
13872 # The host system.
13873 host_alias=$host_alias
13874 host=$host
13875 host_os=$host_os
13876
13877 # The build system.
13878 build_alias=$build_alias
13879 build=$build
13880 build_os=$build_os
13881
13882 # A sed program that does not truncate output.
13883 SED=$lt_SED
13884
13885 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13886 Xsed="\$SED -e 1s/^X//"
13887
13888 # A grep program that handles long lines.
13889 GREP=$lt_GREP
13890
13891 # An ERE matcher.
13892 EGREP=$lt_EGREP
13893
13894 # A literal string matcher.
13895 FGREP=$lt_FGREP
13896
13897 # A BSD- or MS-compatible name lister.
13898 NM=$lt_NM
13899
13900 # Whether we need soft or hard links.
13901 LN_S=$lt_LN_S
13902
13903 # What is the maximum length of a command?
13904 max_cmd_len=$max_cmd_len
13905
13906 # Object file suffix (normally "o").
13907 objext=$ac_objext
13908
13909 # Executable file suffix (normally "").
13910 exeext=$exeext
13911
13912 # whether the shell understands "unset".
13913 lt_unset=$lt_unset
13914
13915 # turn spaces into newlines.
13916 SP2NL=$lt_lt_SP2NL
13917
13918 # turn newlines into spaces.
13919 NL2SP=$lt_lt_NL2SP
13920
13921 # convert \$build file names to \$host format.
13922 to_host_file_cmd=$lt_cv_to_host_file_cmd
13923
13924 # convert \$build files to toolchain format.
13925 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13926
13927 # An object symbol dumper.
13928 OBJDUMP=$lt_OBJDUMP
13929
13930 # Method to check whether dependent libraries are shared objects.
13931 deplibs_check_method=$lt_deplibs_check_method
13932
13933 # Command to use when deplibs_check_method = "file_magic".
13934 file_magic_cmd=$lt_file_magic_cmd
13935
13936 # How to find potential files when deplibs_check_method = "file_magic".
13937 file_magic_glob=$lt_file_magic_glob
13938
13939 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13940 want_nocaseglob=$lt_want_nocaseglob
13941
13942 # DLL creation program.
13943 DLLTOOL=$lt_DLLTOOL
13944
13945 # Command to associate shared and link libraries.
13946 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13947
13948 # The archiver.
13949 AR=$lt_AR
13950
13951 # Flags to create an archive.
13952 AR_FLAGS=$lt_AR_FLAGS
13953
13954 # How to feed a file listing to the archiver.
13955 archiver_list_spec=$lt_archiver_list_spec
13956
13957 # A symbol stripping program.
13958 STRIP=$lt_STRIP
13959
13960 # Commands used to install an old-style archive.
13961 RANLIB=$lt_RANLIB
13962 old_postinstall_cmds=$lt_old_postinstall_cmds
13963 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13964
13965 # Whether to use a lock for old archive extraction.
13966 lock_old_archive_extraction=$lock_old_archive_extraction
13967
13968 # A C compiler.
13969 LTCC=$lt_CC
13970
13971 # LTCC compiler flags.
13972 LTCFLAGS=$lt_CFLAGS
13973
13974 # Take the output of nm and produce a listing of raw symbols and C names.
13975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13976
13977 # Transform the output of nm in a proper C declaration.
13978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13979
13980 # Transform the output of nm in a C name address pair.
13981 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13982
13983 # Transform the output of nm in a C name address pair when lib prefix is needed.
13984 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13985
13986 # Specify filename containing input files for \$NM.
13987 nm_file_list_spec=$lt_nm_file_list_spec
13988
13989 # The root where to search for dependent libraries,and in which our libraries should be installed.
13990 lt_sysroot=$lt_sysroot
13991
13992 # The name of the directory that contains temporary libtool files.
13993 objdir=$objdir
13994
13995 # Used to examine libraries when file_magic_cmd begins with "file".
13996 MAGIC_CMD=$MAGIC_CMD
13997
13998 # Must we lock files when doing compilation?
13999 need_locks=$lt_need_locks
14000
14001 # Manifest tool.
14002 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14003
14004 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14005 DSYMUTIL=$lt_DSYMUTIL
14006
14007 # Tool to change global to local symbols on Mac OS X.
14008 NMEDIT=$lt_NMEDIT
14009
14010 # Tool to manipulate fat objects and archives on Mac OS X.
14011 LIPO=$lt_LIPO
14012
14013 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14014 OTOOL=$lt_OTOOL
14015
14016 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14017 OTOOL64=$lt_OTOOL64
14018
14019 # Old archive suffix (normally "a").
14020 libext=$libext
14021
14022 # Shared library suffix (normally ".so").
14023 shrext_cmds=$lt_shrext_cmds
14024
14025 # The commands to extract the exported symbol list from a shared archive.
14026 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14027
14028 # Variables whose values should be saved in libtool wrapper scripts and
14029 # restored at link time.
14030 variables_saved_for_relink=$lt_variables_saved_for_relink
14031
14032 # Do we need the "lib" prefix for modules?
14033 need_lib_prefix=$need_lib_prefix
14034
14035 # Do we need a version for libraries?
14036 need_version=$need_version
14037
14038 # Library versioning type.
14039 version_type=$version_type
14040
14041 # Shared library runtime path variable.
14042 runpath_var=$runpath_var
14043
14044 # Shared library path variable.
14045 shlibpath_var=$shlibpath_var
14046
14047 # Is shlibpath searched before the hard-coded library search path?
14048 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14049
14050 # Format of library name prefix.
14051 libname_spec=$lt_libname_spec
14052
14053 # List of archive names. First name is the real one, the rest are links.
14054 # The last name is the one that the linker finds with -lNAME
14055 library_names_spec=$lt_library_names_spec
14056
14057 # The coded name of the library, if different from the real name.
14058 soname_spec=$lt_soname_spec
14059
14060 # Permission mode override for installation of shared libraries.
14061 install_override_mode=$lt_install_override_mode
14062
14063 # Command to use after installation of a shared archive.
14064 postinstall_cmds=$lt_postinstall_cmds
14065
14066 # Command to use after uninstallation of a shared archive.
14067 postuninstall_cmds=$lt_postuninstall_cmds
14068
14069 # Commands used to finish a libtool library installation in a directory.
14070 finish_cmds=$lt_finish_cmds
14071
14072 # As "finish_cmds", except a single script fragment to be evaled but
14073 # not shown.
14074 finish_eval=$lt_finish_eval
14075
14076 # Whether we should hardcode library paths into libraries.
14077 hardcode_into_libs=$hardcode_into_libs
14078
14079 # Compile-time system search path for libraries.
14080 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14081
14082 # Run-time system search path for libraries.
14083 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14084
14085 # Whether dlopen is supported.
14086 dlopen_support=$enable_dlopen
14087
14088 # Whether dlopen of programs is supported.
14089 dlopen_self=$enable_dlopen_self
14090
14091 # Whether dlopen of statically linked programs is supported.
14092 dlopen_self_static=$enable_dlopen_self_static
14093
14094 # Commands to strip libraries.
14095 old_striplib=$lt_old_striplib
14096 striplib=$lt_striplib
14097
14098
14099 # The linker used to build libraries.
14100 LD=$lt_LD
14101
14102 # How to create reloadable object files.
14103 reload_flag=$lt_reload_flag
14104 reload_cmds=$lt_reload_cmds
14105
14106 # Commands used to build an old-style archive.
14107 old_archive_cmds=$lt_old_archive_cmds
14108
14109 # A language specific compiler.
14110 CC=$lt_compiler
14111
14112 # Is the compiler the GNU compiler?
14113 with_gcc=$GCC
14114
14115 # Compiler flag to turn off builtin functions.
14116 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14117
14118 # Additional compiler flags for building library objects.
14119 pic_flag=$lt_lt_prog_compiler_pic
14120
14121 # How to pass a linker flag through the compiler.
14122 wl=$lt_lt_prog_compiler_wl
14123
14124 # Compiler flag to prevent dynamic linking.
14125 link_static_flag=$lt_lt_prog_compiler_static
14126
14127 # Does compiler simultaneously support -c and -o options?
14128 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14129
14130 # Whether or not to add -lc for building shared libraries.
14131 build_libtool_need_lc=$archive_cmds_need_lc
14132
14133 # Whether or not to disallow shared libs when runtime libs are static.
14134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14135
14136 # Compiler flag to allow reflexive dlopens.
14137 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14138
14139 # Compiler flag to generate shared objects directly from archives.
14140 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14141
14142 # Whether the compiler copes with passing no objects directly.
14143 compiler_needs_object=$lt_compiler_needs_object
14144
14145 # Create an old-style archive from a shared archive.
14146 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14147
14148 # Create a temporary old-style archive to link instead of a shared archive.
14149 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14150
14151 # Commands used to build a shared archive.
14152 archive_cmds=$lt_archive_cmds
14153 archive_expsym_cmds=$lt_archive_expsym_cmds
14154
14155 # Commands used to build a loadable module if different from building
14156 # a shared archive.
14157 module_cmds=$lt_module_cmds
14158 module_expsym_cmds=$lt_module_expsym_cmds
14159
14160 # Whether we are building with GNU ld or not.
14161 with_gnu_ld=$lt_with_gnu_ld
14162
14163 # Flag that allows shared libraries with undefined symbols to be built.
14164 allow_undefined_flag=$lt_allow_undefined_flag
14165
14166 # Flag that enforces no undefined symbols.
14167 no_undefined_flag=$lt_no_undefined_flag
14168
14169 # Flag to hardcode \$libdir into a binary during linking.
14170 # This must work even if \$libdir does not exist
14171 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14172
14173 # Whether we need a single "-rpath" flag with a separated argument.
14174 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14175
14176 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14177 # DIR into the resulting binary.
14178 hardcode_direct=$hardcode_direct
14179
14180 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14181 # DIR into the resulting binary and the resulting library dependency is
14182 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14183 # library is relocated.
14184 hardcode_direct_absolute=$hardcode_direct_absolute
14185
14186 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14187 # into the resulting binary.
14188 hardcode_minus_L=$hardcode_minus_L
14189
14190 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14191 # into the resulting binary.
14192 hardcode_shlibpath_var=$hardcode_shlibpath_var
14193
14194 # Set to "yes" if building a shared library automatically hardcodes DIR
14195 # into the library and all subsequent libraries and executables linked
14196 # against it.
14197 hardcode_automatic=$hardcode_automatic
14198
14199 # Set to yes if linker adds runtime paths of dependent libraries
14200 # to runtime path list.
14201 inherit_rpath=$inherit_rpath
14202
14203 # Whether libtool must link a program against all its dependency libraries.
14204 link_all_deplibs=$link_all_deplibs
14205
14206 # Set to "yes" if exported symbols are required.
14207 always_export_symbols=$always_export_symbols
14208
14209 # The commands to list exported symbols.
14210 export_symbols_cmds=$lt_export_symbols_cmds
14211
14212 # Symbols that should not be listed in the preloaded symbols.
14213 exclude_expsyms=$lt_exclude_expsyms
14214
14215 # Symbols that must always be exported.
14216 include_expsyms=$lt_include_expsyms
14217
14218 # Commands necessary for linking programs (against libraries) with templates.
14219 prelink_cmds=$lt_prelink_cmds
14220
14221 # Commands necessary for finishing linking programs.
14222 postlink_cmds=$lt_postlink_cmds
14223
14224 # Specify filename containing input files.
14225 file_list_spec=$lt_file_list_spec
14226
14227 # How to hardcode a shared library path into an executable.
14228 hardcode_action=$hardcode_action
14229
14230 # ### END LIBTOOL CONFIG
14231
14232 _LT_EOF
14233
14234 case $host_os in
14235 aix3*)
14236 cat <<\_LT_EOF >> "$cfgfile"
14237 # AIX sometimes has problems with the GCC collect2 program. For some
14238 # reason, if we set the COLLECT_NAMES environment variable, the problems
14239 # vanish in a puff of smoke.
14240 if test "X${COLLECT_NAMES+set}" != Xset; then
14241 COLLECT_NAMES=
14242 export COLLECT_NAMES
14243 fi
14244 _LT_EOF
14245 ;;
14246 esac
14247
14248
14249 ltmain="$ac_aux_dir/ltmain.sh"
14250
14251
14252 # We use sed instead of cat because bash on DJGPP gets confused if
14253 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14254 # text mode, it properly converts lines to CR/LF. This bash problem
14255 # is reportedly fixed, but why not run on old versions too?
14256 sed '$q' "$ltmain" >> "$cfgfile" \
14257 || (rm -f "$cfgfile"; exit 1)
14258
14259 if test x"$xsi_shell" = xyes; then
14260 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14261 func_dirname ()\
14262 {\
14263 \ case ${1} in\
14264 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14265 \ * ) func_dirname_result="${3}" ;;\
14266 \ esac\
14267 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14268 && mv -f "$cfgfile.tmp" "$cfgfile" \
14269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14270 test 0 -eq $? || _lt_function_replace_fail=:
14271
14272
14273 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14274 func_basename ()\
14275 {\
14276 \ func_basename_result="${1##*/}"\
14277 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14278 && mv -f "$cfgfile.tmp" "$cfgfile" \
14279 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14280 test 0 -eq $? || _lt_function_replace_fail=:
14281
14282
14283 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14284 func_dirname_and_basename ()\
14285 {\
14286 \ case ${1} in\
14287 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14288 \ * ) func_dirname_result="${3}" ;;\
14289 \ esac\
14290 \ func_basename_result="${1##*/}"\
14291 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14292 && mv -f "$cfgfile.tmp" "$cfgfile" \
14293 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14294 test 0 -eq $? || _lt_function_replace_fail=:
14295
14296
14297 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14298 func_stripname ()\
14299 {\
14300 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14301 \ # positional parameters, so assign one to ordinary parameter first.\
14302 \ func_stripname_result=${3}\
14303 \ func_stripname_result=${func_stripname_result#"${1}"}\
14304 \ func_stripname_result=${func_stripname_result%"${2}"}\
14305 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14306 && mv -f "$cfgfile.tmp" "$cfgfile" \
14307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14308 test 0 -eq $? || _lt_function_replace_fail=:
14309
14310
14311 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14312 func_split_long_opt ()\
14313 {\
14314 \ func_split_long_opt_name=${1%%=*}\
14315 \ func_split_long_opt_arg=${1#*=}\
14316 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14317 && mv -f "$cfgfile.tmp" "$cfgfile" \
14318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14319 test 0 -eq $? || _lt_function_replace_fail=:
14320
14321
14322 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14323 func_split_short_opt ()\
14324 {\
14325 \ func_split_short_opt_arg=${1#??}\
14326 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14327 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14328 && mv -f "$cfgfile.tmp" "$cfgfile" \
14329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14330 test 0 -eq $? || _lt_function_replace_fail=:
14331
14332
14333 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14334 func_lo2o ()\
14335 {\
14336 \ case ${1} in\
14337 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14338 \ *) func_lo2o_result=${1} ;;\
14339 \ esac\
14340 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14341 && mv -f "$cfgfile.tmp" "$cfgfile" \
14342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14343 test 0 -eq $? || _lt_function_replace_fail=:
14344
14345
14346 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14347 func_xform ()\
14348 {\
14349 func_xform_result=${1%.*}.lo\
14350 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14351 && mv -f "$cfgfile.tmp" "$cfgfile" \
14352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14353 test 0 -eq $? || _lt_function_replace_fail=:
14354
14355
14356 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14357 func_arith ()\
14358 {\
14359 func_arith_result=$(( $* ))\
14360 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14361 && mv -f "$cfgfile.tmp" "$cfgfile" \
14362 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14363 test 0 -eq $? || _lt_function_replace_fail=:
14364
14365
14366 sed -e '/^func_len ()$/,/^} # func_len /c\
14367 func_len ()\
14368 {\
14369 func_len_result=${#1}\
14370 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14371 && mv -f "$cfgfile.tmp" "$cfgfile" \
14372 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14373 test 0 -eq $? || _lt_function_replace_fail=:
14374
14375 fi
14376
14377 if test x"$lt_shell_append" = xyes; then
14378 sed -e '/^func_append ()$/,/^} # func_append /c\
14379 func_append ()\
14380 {\
14381 eval "${1}+=\\${2}"\
14382 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14383 && mv -f "$cfgfile.tmp" "$cfgfile" \
14384 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14385 test 0 -eq $? || _lt_function_replace_fail=:
14386
14387
14388 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14389 func_append_quoted ()\
14390 {\
14391 \ func_quote_for_eval "${2}"\
14392 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14393 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14394 && mv -f "$cfgfile.tmp" "$cfgfile" \
14395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14396 test 0 -eq $? || _lt_function_replace_fail=:
14397
14398
14399 # Save a `func_append' function call where possible by direct use of '+='
14400 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14401 && mv -f "$cfgfile.tmp" "$cfgfile" \
14402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14403 test 0 -eq $? || _lt_function_replace_fail=:
14404 else
14405 # Save a `func_append' function call even when '+=' is not available
14406 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14407 && mv -f "$cfgfile.tmp" "$cfgfile" \
14408 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14409 test 0 -eq $? || _lt_function_replace_fail=:
14410 fi
14411
14412 if test x"$_lt_function_replace_fail" = x":"; then
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14414 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14415 fi
14416
14417
14418 mv -f "$cfgfile" "$ofile" ||
14419 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14420 chmod +x "$ofile"
14421
14422 ;;
14423
14424 esac
14425 done # for ac_tag
14426
14427
14428 as_fn_exit 0
14429 _ACEOF
14430 ac_clean_files=$ac_clean_files_save
14431
14432 test $ac_write_fail = 0 ||
14433 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14434
14435
14436 # configure is writing to config.log, and then calls config.status.
14437 # config.status does its own redirection, appending to config.log.
14438 # Unfortunately, on DOS this fails, as config.log is still kept open
14439 # by configure, so config.status won't be able to write to it; its
14440 # output is simply discarded. So we exec the FD to /dev/null,
14441 # effectively closing config.log, so it can be properly (re)opened and
14442 # appended to by config.status. When coming back to configure, we
14443 # need to make the FD available again.
14444 if test "$no_create" != yes; then
14445 ac_cs_success=:
14446 ac_config_status_args=
14447 test "$silent" = yes &&
14448 ac_config_status_args="$ac_config_status_args --quiet"
14449 exec 5>/dev/null
14450 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14451 exec 5>>config.log
14452 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14453 # would make configure fail if this is the last instruction.
14454 $ac_cs_success || as_fn_exit 1
14455 fi
14456 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14458 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14459 fi
14460
+0
-1
depcomp less more
0 /home/ardour/linux-i386/gtk/inst/share/automake-1.14/depcomp
+0
-1134
examples/Makefile.in less more
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
62 pkgincludedir = $(includedir)/@PACKAGE@
63 pkglibdir = $(libdir)/@PACKAGE@
64 pkglibexecdir = $(libexecdir)/@PACKAGE@
65 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
66 install_sh_DATA = $(install_sh) -c -m 644
67 install_sh_PROGRAM = $(install_sh) -c
68 install_sh_SCRIPT = $(install_sh) -c
69 INSTALL_HEADER = $(INSTALL_DATA)
70 transform = $(program_transform_name)
71 NORMAL_INSTALL = :
72 PRE_INSTALL = :
73 POST_INSTALL = :
74 NORMAL_UNINSTALL = :
75 PRE_UNINSTALL = :
76 POST_UNINSTALL = :
77 build_triplet = @build@
78 host_triplet = @host@
79 TESTS = showtaxonomy$(EXEEXT) dumpstatements$(EXEEXT) \
80 export_test$(EXEEXT) subclass_test$(EXEEXT) add_test$(EXEEXT) \
81 instances_test$(EXEEXT) remove_test$(EXEEXT) \
82 multi_test$(EXEEXT) setting_test$(EXEEXT) scale_test$(EXEEXT)
83 check_PROGRAMS = showdefaults$(EXEEXT) $(am__EXEEXT_1) \
84 remove_test$(EXEEXT)
85 subdir = examples
86 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
87 $(top_srcdir)/depcomp $(top_srcdir)/test-driver
88 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
89 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
90 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
91 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
92 $(top_srcdir)/configure.ac
93 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
94 $(ACLOCAL_M4)
95 mkinstalldirs = $(install_sh) -d
96 CONFIG_HEADER = $(top_builddir)/config.h
97 CONFIG_CLEAN_FILES =
98 CONFIG_CLEAN_VPATH_FILES =
99 am__EXEEXT_1 = showtaxonomy$(EXEEXT) dumpstatements$(EXEEXT) \
100 export_test$(EXEEXT) subclass_test$(EXEEXT) add_test$(EXEEXT) \
101 instances_test$(EXEEXT) remove_test$(EXEEXT) \
102 multi_test$(EXEEXT) setting_test$(EXEEXT) scale_test$(EXEEXT)
103 add_test_SOURCES = add_test.c
104 add_test_OBJECTS = add_test.$(OBJEXT)
105 add_test_LDADD = $(LDADD)
106 AM_V_lt = $(am__v_lt_@AM_V@)
107 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
108 am__v_lt_0 = --silent
109 am__v_lt_1 =
110 dumpstatements_SOURCES = dumpstatements.c
111 dumpstatements_OBJECTS = dumpstatements.$(OBJEXT)
112 dumpstatements_LDADD = $(LDADD)
113 export_test_SOURCES = export_test.c
114 export_test_OBJECTS = export_test.$(OBJEXT)
115 export_test_LDADD = $(LDADD)
116 instances_test_SOURCES = instances_test.c
117 instances_test_OBJECTS = instances_test.$(OBJEXT)
118 instances_test_LDADD = $(LDADD)
119 multi_test_SOURCES = multi_test.c
120 multi_test_OBJECTS = multi_test.$(OBJEXT)
121 multi_test_LDADD = $(LDADD)
122 remove_test_SOURCES = remove_test.c
123 remove_test_OBJECTS = remove_test.$(OBJEXT)
124 remove_test_LDADD = $(LDADD)
125 scale_test_SOURCES = scale_test.c
126 scale_test_OBJECTS = scale_test.$(OBJEXT)
127 scale_test_LDADD = $(LDADD)
128 setting_test_SOURCES = setting_test.c
129 setting_test_OBJECTS = setting_test.$(OBJEXT)
130 setting_test_LDADD = $(LDADD)
131 showdefaults_SOURCES = showdefaults.c
132 showdefaults_OBJECTS = showdefaults.$(OBJEXT)
133 showdefaults_LDADD = $(LDADD)
134 showtaxonomy_SOURCES = showtaxonomy.c
135 showtaxonomy_OBJECTS = showtaxonomy.$(OBJEXT)
136 showtaxonomy_LDADD = $(LDADD)
137 subclass_test_SOURCES = subclass_test.c
138 subclass_test_OBJECTS = subclass_test.$(OBJEXT)
139 subclass_test_LDADD = $(LDADD)
140 AM_V_P = $(am__v_P_@AM_V@)
141 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
142 am__v_P_0 = false
143 am__v_P_1 = :
144 AM_V_GEN = $(am__v_GEN_@AM_V@)
145 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
146 am__v_GEN_0 = @echo " GEN " $@;
147 am__v_GEN_1 =
148 AM_V_at = $(am__v_at_@AM_V@)
149 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
150 am__v_at_0 = @
151 am__v_at_1 =
152 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
153 depcomp = $(SHELL) $(top_srcdir)/depcomp
154 am__depfiles_maybe = depfiles
155 am__mv = mv -f
156 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
157 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
158 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
159 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
160 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
161 $(AM_CFLAGS) $(CFLAGS)
162 AM_V_CC = $(am__v_CC_@AM_V@)
163 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
164 am__v_CC_0 = @echo " CC " $@;
165 am__v_CC_1 =
166 CCLD = $(CC)
167 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
168 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
169 $(AM_LDFLAGS) $(LDFLAGS) -o $@
170 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
171 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
172 am__v_CCLD_0 = @echo " CCLD " $@;
173 am__v_CCLD_1 =
174 SOURCES = add_test.c dumpstatements.c export_test.c instances_test.c \
175 multi_test.c remove_test.c scale_test.c setting_test.c \
176 showdefaults.c showtaxonomy.c subclass_test.c
177 DIST_SOURCES = add_test.c dumpstatements.c export_test.c \
178 instances_test.c multi_test.c remove_test.c scale_test.c \
179 setting_test.c showdefaults.c showtaxonomy.c subclass_test.c
180 am__can_run_installinfo = \
181 case $$AM_UPDATE_INFO_DIR in \
182 n|no|NO) false;; \
183 *) (install-info --version) >/dev/null 2>&1;; \
184 esac
185 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
186 am__vpath_adj = case $$p in \
187 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
188 *) f=$$p;; \
189 esac;
190 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
191 am__install_max = 40
192 am__nobase_strip_setup = \
193 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
194 am__nobase_strip = \
195 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
196 am__nobase_list = $(am__nobase_strip_setup); \
197 for p in $$list; do echo "$$p $$p"; done | \
198 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
199 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
200 if (++n[$$2] == $(am__install_max)) \
201 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
202 END { for (dir in files) print dir, files[dir] }'
203 am__base_list = \
204 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
205 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
206 am__uninstall_files_from_dir = { \
207 test -z "$$files" \
208 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
209 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
210 $(am__cd) "$$dir" && rm -f $$files; }; \
211 }
212 am__installdirs = "$(DESTDIR)$(pkgdatadir)"
213 DATA = $(pkgdata_DATA)
214 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
215 # Read a list of newline-separated strings from the standard input,
216 # and print each of them once, without duplicates. Input order is
217 # *not* preserved.
218 am__uniquify_input = $(AWK) '\
219 BEGIN { nonempty = 0; } \
220 { items[$$0] = 1; nonempty = 1; } \
221 END { if (nonempty) { for (i in items) print i; }; } \
222 '
223 # Make sure the list of sources is unique. This is necessary because,
224 # e.g., the same source file might be shared among _SOURCES variables
225 # for different programs/libraries.
226 am__define_uniq_tagged_files = \
227 list='$(am__tagged_files)'; \
228 unique=`for i in $$list; do \
229 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
230 done | $(am__uniquify_input)`
231 ETAGS = etags
232 CTAGS = ctags
233 am__tty_colors_dummy = \
234 mgn= red= grn= lgn= blu= brg= std=; \
235 am__color_tests=no
236 am__tty_colors = { \
237 $(am__tty_colors_dummy); \
238 if test "X$(AM_COLOR_TESTS)" = Xno; then \
239 am__color_tests=no; \
240 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
241 am__color_tests=yes; \
242 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
243 am__color_tests=yes; \
244 fi; \
245 if test $$am__color_tests = yes; then \
246 red=''; \
247 grn=''; \
248 lgn=''; \
249 blu=''; \
250 mgn=''; \
251 brg=''; \
252 std=''; \
253 fi; \
254 }
255 am__recheck_rx = ^[ ]*:recheck:[ ]*
256 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
257 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
258 # A command that, given a newline-separated list of test names on the
259 # standard input, print the name of the tests that are to be re-run
260 # upon "make recheck".
261 am__list_recheck_tests = $(AWK) '{ \
262 recheck = 1; \
263 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
264 { \
265 if (rc < 0) \
266 { \
267 if ((getline line2 < ($$0 ".log")) < 0) \
268 recheck = 0; \
269 break; \
270 } \
271 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
272 { \
273 recheck = 0; \
274 break; \
275 } \
276 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
277 { \
278 break; \
279 } \
280 }; \
281 if (recheck) \
282 print $$0; \
283 close ($$0 ".trs"); \
284 close ($$0 ".log"); \
285 }'
286 # A command that, given a newline-separated list of test names on the
287 # standard input, create the global log from their .trs and .log files.
288 am__create_global_log = $(AWK) ' \
289 function fatal(msg) \
290 { \
291 print "fatal: making $@: " msg | "cat >&2"; \
292 exit 1; \
293 } \
294 function rst_section(header) \
295 { \
296 print header; \
297 len = length(header); \
298 for (i = 1; i <= len; i = i + 1) \
299 printf "="; \
300 printf "\n\n"; \
301 } \
302 { \
303 copy_in_global_log = 1; \
304 global_test_result = "RUN"; \
305 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
306 { \
307 if (rc < 0) \
308 fatal("failed to read from " $$0 ".trs"); \
309 if (line ~ /$(am__global_test_result_rx)/) \
310 { \
311 sub("$(am__global_test_result_rx)", "", line); \
312 sub("[ ]*$$", "", line); \
313 global_test_result = line; \
314 } \
315 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
316 copy_in_global_log = 0; \
317 }; \
318 if (copy_in_global_log) \
319 { \
320 rst_section(global_test_result ": " $$0); \
321 while ((rc = (getline line < ($$0 ".log"))) != 0) \
322 { \
323 if (rc < 0) \
324 fatal("failed to read from " $$0 ".log"); \
325 print line; \
326 }; \
327 printf "\n"; \
328 }; \
329 close ($$0 ".trs"); \
330 close ($$0 ".log"); \
331 }'
332 # Restructured Text title.
333 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
334 # Solaris 10 'make', and several other traditional 'make' implementations,
335 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
336 # by disabling -e (using the XSI extension "set +e") if it's set.
337 am__sh_e_setup = case $$- in *e*) set +e;; esac
338 # Default flags passed to test drivers.
339 am__common_driver_flags = \
340 --color-tests "$$am__color_tests" \
341 --enable-hard-errors "$$am__enable_hard_errors" \
342 --expect-failure "$$am__expect_failure"
343 # To be inserted before the command running the test. Creates the
344 # directory for the log if needed. Stores in $dir the directory
345 # containing $f, in $tst the test, in $log the log. Executes the
346 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
347 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
348 # will run the test scripts (or their associated LOG_COMPILER, if
349 # thy have one).
350 am__check_pre = \
351 $(am__sh_e_setup); \
352 $(am__vpath_adj_setup) $(am__vpath_adj) \
353 $(am__tty_colors); \
354 srcdir=$(srcdir); export srcdir; \
355 case "$@" in \
356 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
357 *) am__odir=.;; \
358 esac; \
359 test "x$$am__odir" = x"." || test -d "$$am__odir" \
360 || $(MKDIR_P) "$$am__odir" || exit $$?; \
361 if test -f "./$$f"; then dir=./; \
362 elif test -f "$$f"; then dir=; \
363 else dir="$(srcdir)/"; fi; \
364 tst=$$dir$$f; log='$@'; \
365 if test -n '$(DISABLE_HARD_ERRORS)'; then \
366 am__enable_hard_errors=no; \
367 else \
368 am__enable_hard_errors=yes; \
369 fi; \
370 case " $(XFAIL_TESTS) " in \
371 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
372 am__expect_failure=yes;; \
373 *) \
374 am__expect_failure=no;; \
375 esac; \
376 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
377 # A shell command to get the names of the tests scripts with any registered
378 # extension removed (i.e., equivalently, the names of the test logs, with
379 # the '.log' extension removed). The result is saved in the shell variable
380 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
381 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
382 # since that might cause problem with VPATH rewrites for suffix-less tests.
383 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
384 am__set_TESTS_bases = \
385 bases='$(TEST_LOGS)'; \
386 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
387 bases=`echo $$bases`
388 RECHECK_LOGS = $(TEST_LOGS)
389 AM_RECURSIVE_TARGETS = check recheck
390 TEST_SUITE_LOG = test-suite.log
391 TEST_EXTENSIONS = @EXEEXT@ .test
392 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
393 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
394 am__set_b = \
395 case '$@' in \
396 */*) \
397 case '$*' in \
398 */*) b='$*';; \
399 *) b=`echo '$@' | sed 's/\.log$$//'`; \
400 esac;; \
401 *) \
402 b='$*';; \
403 esac
404 am__test_logs1 = $(TESTS:=.log)
405 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
406 TEST_LOGS = $(am__test_logs2:.test.log=.log)
407 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
408 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
409 $(TEST_LOG_FLAGS)
410 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
411 pkgdatadir = $(datadir)/ladspa/rdf
412 ACLOCAL = @ACLOCAL@
413 AMTAR = @AMTAR@
414 AM_CFLAGS = @AM_CFLAGS@
415 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
416 AR = @AR@
417 AUTOCONF = @AUTOCONF@
418 AUTOHEADER = @AUTOHEADER@
419 AUTOMAKE = @AUTOMAKE@
420 AWK = @AWK@
421 CC = @CC@
422 CCDEPMODE = @CCDEPMODE@
423 CFLAGS = @CFLAGS@
424 CPP = @CPP@
425 CPPFLAGS = @CPPFLAGS@
426 CYGPATH_W = @CYGPATH_W@
427 DEFS = @DEFS@
428 DEPDIR = @DEPDIR@
429 DLLTOOL = @DLLTOOL@
430 DSYMUTIL = @DSYMUTIL@
431 DUMPBIN = @DUMPBIN@
432 ECHO_C = @ECHO_C@
433 ECHO_N = @ECHO_N@
434 ECHO_T = @ECHO_T@
435 EGREP = @EGREP@
436 EXEEXT = @EXEEXT@
437 FGREP = @FGREP@
438 GREP = @GREP@
439 INSTALL = @INSTALL@
440 INSTALL_DATA = @INSTALL_DATA@
441 INSTALL_PROGRAM = @INSTALL_PROGRAM@
442 INSTALL_SCRIPT = @INSTALL_SCRIPT@
443 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
444 LD = @LD@
445 LDFLAGS = @LDFLAGS@
446 LIBOBJS = @LIBOBJS@
447 LIBS = ../src/liblrdf.la
448 LIBTOOL = @LIBTOOL@
449 LIPO = @LIPO@
450 LN_S = @LN_S@
451 LRDF_LIBTOOL_VERSION = @LRDF_LIBTOOL_VERSION@
452 LTLIBOBJS = @LTLIBOBJS@
453 MAKEINFO = @MAKEINFO@
454 MANIFEST_TOOL = @MANIFEST_TOOL@
455 MKDIR_P = @MKDIR_P@
456 NM = @NM@
457 NMEDIT = @NMEDIT@
458 OBJDUMP = @OBJDUMP@
459 OBJEXT = @OBJEXT@
460 OTOOL = @OTOOL@
461 OTOOL64 = @OTOOL64@
462 PACKAGE = @PACKAGE@
463 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
464 PACKAGE_NAME = @PACKAGE_NAME@
465 PACKAGE_STRING = @PACKAGE_STRING@
466 PACKAGE_TARNAME = @PACKAGE_TARNAME@
467 PACKAGE_URL = @PACKAGE_URL@
468 PACKAGE_VERSION = @PACKAGE_VERSION@
469 PATH_SEPARATOR = @PATH_SEPARATOR@
470 PKG_CONFIG = @PKG_CONFIG@
471 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
472 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
473 RANLIB = @RANLIB@
474 RAPTOR_CFLAGS = @RAPTOR_CFLAGS@
475 RAPTOR_LIBS = @RAPTOR_LIBS@
476 SED = @SED@
477 SET_MAKE = @SET_MAKE@
478 SHELL = @SHELL@
479 STRIP = @STRIP@
480 VERSION = @VERSION@
481 abs_builddir = @abs_builddir@
482 abs_srcdir = @abs_srcdir@
483 abs_top_builddir = @abs_top_builddir@
484 abs_top_srcdir = @abs_top_srcdir@
485 ac_ct_AR = @ac_ct_AR@
486 ac_ct_CC = @ac_ct_CC@
487 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
488 am__include = @am__include@
489 am__leading_dot = @am__leading_dot@
490 am__quote = @am__quote@
491 am__tar = @am__tar@
492 am__untar = @am__untar@
493 bindir = @bindir@
494 build = @build@
495 build_alias = @build_alias@
496 build_cpu = @build_cpu@
497 build_os = @build_os@
498 build_vendor = @build_vendor@
499 builddir = @builddir@
500 datadir = @datadir@
501 datarootdir = @datarootdir@
502 docdir = @docdir@
503 dvidir = @dvidir@
504 exec_prefix = @exec_prefix@
505 host = @host@
506 host_alias = @host_alias@
507 host_cpu = @host_cpu@
508 host_os = @host_os@
509 host_vendor = @host_vendor@
510 htmldir = @htmldir@
511 includedir = @includedir@
512 infodir = @infodir@
513 install_sh = @install_sh@
514 libdir = @libdir@
515 libexecdir = @libexecdir@
516 localedir = @localedir@
517 localstatedir = @localstatedir@
518 mandir = @mandir@
519 mkdir_p = @mkdir_p@
520 oldincludedir = @oldincludedir@
521 pdfdir = @pdfdir@
522 prefix = @prefix@
523 program_transform_name = @program_transform_name@
524 psdir = @psdir@
525 sbindir = @sbindir@
526 sharedstatedir = @sharedstatedir@
527 srcdir = @srcdir@
528 sysconfdir = @sysconfdir@
529 target_alias = @target_alias@
530 top_build_prefix = @top_build_prefix@
531 top_builddir = @top_builddir@
532 top_srcdir = @top_srcdir@
533 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src
534 pkgdata_DATA = ladspa.rdfs
535 EXTRA_DIST = default-sample.rdf example.rdf sample.rdf scale-example.rdf \
536 ladspa.rdfs test-in.n3 preset-in.n3
537
538 all: all-am
539
540 .SUFFIXES:
541 .SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
542 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
543 @for dep in $?; do \
544 case '$(am__configure_deps)' in \
545 *$$dep*) \
546 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
547 && { if test -f $@; then exit 0; else break; fi; }; \
548 exit 1;; \
549 esac; \
550 done; \
551 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/Makefile'; \
552 $(am__cd) $(top_srcdir) && \
553 $(AUTOMAKE) --foreign examples/Makefile
554 .PRECIOUS: Makefile
555 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
556 @case '$?' in \
557 *config.status*) \
558 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
559 *) \
560 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
561 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
562 esac;
563
564 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
565 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
566
567 $(top_srcdir)/configure: $(am__configure_deps)
568 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
569 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
570 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
571 $(am__aclocal_m4_deps):
572
573 clean-checkPROGRAMS:
574 @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
575 echo " rm -f" $$list; \
576 rm -f $$list || exit $$?; \
577 test -n "$(EXEEXT)" || exit 0; \
578 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
579 echo " rm -f" $$list; \
580 rm -f $$list
581
582 add_test$(EXEEXT): $(add_test_OBJECTS) $(add_test_DEPENDENCIES) $(EXTRA_add_test_DEPENDENCIES)
583 @rm -f add_test$(EXEEXT)
584 $(AM_V_CCLD)$(LINK) $(add_test_OBJECTS) $(add_test_LDADD) $(LIBS)
585
586 dumpstatements$(EXEEXT): $(dumpstatements_OBJECTS) $(dumpstatements_DEPENDENCIES) $(EXTRA_dumpstatements_DEPENDENCIES)
587 @rm -f dumpstatements$(EXEEXT)
588 $(AM_V_CCLD)$(LINK) $(dumpstatements_OBJECTS) $(dumpstatements_LDADD) $(LIBS)
589
590 export_test$(EXEEXT): $(export_test_OBJECTS) $(export_test_DEPENDENCIES) $(EXTRA_export_test_DEPENDENCIES)
591 @rm -f export_test$(EXEEXT)
592 $(AM_V_CCLD)$(LINK) $(export_test_OBJECTS) $(export_test_LDADD) $(LIBS)
593
594 instances_test$(EXEEXT): $(instances_test_OBJECTS) $(instances_test_DEPENDENCIES) $(EXTRA_instances_test_DEPENDENCIES)
595 @rm -f instances_test$(EXEEXT)
596 $(AM_V_CCLD)$(LINK) $(instances_test_OBJECTS) $(instances_test_LDADD) $(LIBS)
597
598 multi_test$(EXEEXT): $(multi_test_OBJECTS) $(multi_test_DEPENDENCIES) $(EXTRA_multi_test_DEPENDENCIES)
599 @rm -f multi_test$(EXEEXT)
600 $(AM_V_CCLD)$(LINK) $(multi_test_OBJECTS) $(multi_test_LDADD) $(LIBS)
601
602 remove_test$(EXEEXT): $(remove_test_OBJECTS) $(remove_test_DEPENDENCIES) $(EXTRA_remove_test_DEPENDENCIES)
603 @rm -f remove_test$(EXEEXT)
604 $(AM_V_CCLD)$(LINK) $(remove_test_OBJECTS) $(remove_test_LDADD) $(LIBS)
605
606 scale_test$(EXEEXT): $(scale_test_OBJECTS) $(scale_test_DEPENDENCIES) $(EXTRA_scale_test_DEPENDENCIES)
607 @rm -f scale_test$(EXEEXT)
608 $(AM_V_CCLD)$(LINK) $(scale_test_OBJECTS) $(scale_test_LDADD) $(LIBS)
609
610 setting_test$(EXEEXT): $(setting_test_OBJECTS) $(setting_test_DEPENDENCIES) $(EXTRA_setting_test_DEPENDENCIES)
611 @rm -f setting_test$(EXEEXT)
612 $(AM_V_CCLD)$(LINK) $(setting_test_OBJECTS) $(setting_test_LDADD) $(LIBS)
613
614 showdefaults$(EXEEXT): $(showdefaults_OBJECTS) $(showdefaults_DEPENDENCIES) $(EXTRA_showdefaults_DEPENDENCIES)
615 @rm -f showdefaults$(EXEEXT)
616 $(AM_V_CCLD)$(LINK) $(showdefaults_OBJECTS) $(showdefaults_LDADD) $(LIBS)
617
618 showtaxonomy$(EXEEXT): $(showtaxonomy_OBJECTS) $(showtaxonomy_DEPENDENCIES) $(EXTRA_showtaxonomy_DEPENDENCIES)
619 @rm -f showtaxonomy$(EXEEXT)
620 $(AM_V_CCLD)$(LINK) $(showtaxonomy_OBJECTS) $(showtaxonomy_LDADD) $(LIBS)
621
622 subclass_test$(EXEEXT): $(subclass_test_OBJECTS) $(subclass_test_DEPENDENCIES) $(EXTRA_subclass_test_DEPENDENCIES)
623 @rm -f subclass_test$(EXEEXT)
624 $(AM_V_CCLD)$(LINK) $(subclass_test_OBJECTS) $(subclass_test_LDADD) $(LIBS)
625
626 mostlyclean-compile:
627 -rm -f *.$(OBJEXT)
628
629 distclean-compile:
630 -rm -f *.tab.c
631
632 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add_test.Po@am__quote@
633 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dumpstatements.Po@am__quote@
634 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/export_test.Po@am__quote@
635 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/instances_test.Po@am__quote@
636 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_test.Po@am__quote@
637 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remove_test.Po@am__quote@
638 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scale_test.Po@am__quote@
639 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/setting_test.Po@am__quote@
640 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/showdefaults.Po@am__quote@
641 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/showtaxonomy.Po@am__quote@
642 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/subclass_test.Po@am__quote@
643
644 .c.o:
645 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
646 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
647 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
648 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
649 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
650
651 .c.obj:
652 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
653 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
654 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
655 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
656 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
657
658 .c.lo:
659 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
660 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
661 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
662 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
663 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
664
665 mostlyclean-libtool:
666 -rm -f *.lo
667
668 clean-libtool:
669 -rm -rf .libs _libs
670 install-pkgdataDATA: $(pkgdata_DATA)
671 @$(NORMAL_INSTALL)
672 @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
673 if test -n "$$list"; then \
674 echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \
675 $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \
676 fi; \
677 for p in $$list; do \
678 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
679 echo "$$d$$p"; \
680 done | $(am__base_list) | \
681 while read files; do \
682 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \
683 $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \
684 done
685
686 uninstall-pkgdataDATA:
687 @$(NORMAL_UNINSTALL)
688 @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
689 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
690 dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir)
691
692 ID: $(am__tagged_files)
693 $(am__define_uniq_tagged_files); mkid -fID $$unique
694 tags: tags-am
695 TAGS: tags
696
697 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
698 set x; \
699 here=`pwd`; \
700 $(am__define_uniq_tagged_files); \
701 shift; \
702 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
703 test -n "$$unique" || unique=$$empty_fix; \
704 if test $$# -gt 0; then \
705 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
706 "$$@" $$unique; \
707 else \
708 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
709 $$unique; \
710 fi; \
711 fi
712 ctags: ctags-am
713
714 CTAGS: ctags
715 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
716 $(am__define_uniq_tagged_files); \
717 test -z "$(CTAGS_ARGS)$$unique" \
718 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
719 $$unique
720
721 GTAGS:
722 here=`$(am__cd) $(top_builddir) && pwd` \
723 && $(am__cd) $(top_srcdir) \
724 && gtags -i $(GTAGS_ARGS) "$$here"
725 cscopelist: cscopelist-am
726
727 cscopelist-am: $(am__tagged_files)
728 list='$(am__tagged_files)'; \
729 case "$(srcdir)" in \
730 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
731 *) sdir=$(subdir)/$(srcdir) ;; \
732 esac; \
733 for i in $$list; do \
734 if test -f "$$i"; then \
735 echo "$(subdir)/$$i"; \
736 else \
737 echo "$$sdir/$$i"; \
738 fi; \
739 done >> $(top_builddir)/cscope.files
740
741 distclean-tags:
742 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
743
744 # Recover from deleted '.trs' file; this should ensure that
745 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
746 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
747 # to avoid problems with "make -n".
748 .log.trs:
749 rm -f $< $@
750 $(MAKE) $(AM_MAKEFLAGS) $<
751
752 # Leading 'am--fnord' is there to ensure the list of targets does not
753 # expand to empty, as could happen e.g. with make check TESTS=''.
754 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
755 am--force-recheck:
756 @:
757
758 $(TEST_SUITE_LOG): $(TEST_LOGS)
759 @$(am__set_TESTS_bases); \
760 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
761 redo_bases=`for i in $$bases; do \
762 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
763 done`; \
764 if test -n "$$redo_bases"; then \
765 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
766 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
767 if $(am__make_dryrun); then :; else \
768 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
769 fi; \
770 fi; \
771 if test -n "$$am__remaking_logs"; then \
772 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
773 "recursion detected" >&2; \
774 else \
775 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
776 fi; \
777 if $(am__make_dryrun); then :; else \
778 st=0; \
779 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
780 for i in $$redo_bases; do \
781 test -f $$i.trs && test -r $$i.trs \
782 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
783 test -f $$i.log && test -r $$i.log \
784 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
785 done; \
786 test $$st -eq 0 || exit 1; \
787 fi
788 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
789 ws='[ ]'; \
790 results=`for b in $$bases; do echo $$b.trs; done`; \
791 test -n "$$results" || results=/dev/null; \
792 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
793 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
794 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
795 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
796 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
797 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
798 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
799 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
800 success=true; \
801 else \
802 success=false; \
803 fi; \
804 br='==================='; br=$$br$$br$$br$$br; \
805 result_count () \
806 { \
807 if test x"$$1" = x"--maybe-color"; then \
808 maybe_colorize=yes; \
809 elif test x"$$1" = x"--no-color"; then \
810 maybe_colorize=no; \
811 else \
812 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
813 fi; \
814 shift; \
815 desc=$$1 count=$$2; \
816 if test $$maybe_colorize = yes && test $$count -gt 0; then \
817 color_start=$$3 color_end=$$std; \
818 else \
819 color_start= color_end=; \
820 fi; \
821 echo "$${color_start}# $$desc $$count$${color_end}"; \
822 }; \
823 create_testsuite_report () \
824 { \
825 result_count $$1 "TOTAL:" $$all "$$brg"; \
826 result_count $$1 "PASS: " $$pass "$$grn"; \
827 result_count $$1 "SKIP: " $$skip "$$blu"; \
828 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
829 result_count $$1 "FAIL: " $$fail "$$red"; \
830 result_count $$1 "XPASS:" $$xpass "$$red"; \
831 result_count $$1 "ERROR:" $$error "$$mgn"; \
832 }; \
833 { \
834 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
835 $(am__rst_title); \
836 create_testsuite_report --no-color; \
837 echo; \
838 echo ".. contents:: :depth: 2"; \
839 echo; \
840 for b in $$bases; do echo $$b; done \
841 | $(am__create_global_log); \
842 } >$(TEST_SUITE_LOG).tmp || exit 1; \
843 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
844 if $$success; then \
845 col="$$grn"; \
846 else \
847 col="$$red"; \
848 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
849 fi; \
850 echo "$${col}$$br$${std}"; \
851 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
852 echo "$${col}$$br$${std}"; \
853 create_testsuite_report --maybe-color; \
854 echo "$$col$$br$$std"; \
855 if $$success; then :; else \
856 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
857 if test -n "$(PACKAGE_BUGREPORT)"; then \
858 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
859 fi; \
860 echo "$$col$$br$$std"; \
861 fi; \
862 $$success || exit 1
863
864 check-TESTS:
865 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
866 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
867 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
868 @set +e; $(am__set_TESTS_bases); \
869 log_list=`for i in $$bases; do echo $$i.log; done`; \
870 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
871 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
872 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
873 exit $$?;
874 recheck: all $(check_PROGRAMS)
875 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
876 @set +e; $(am__set_TESTS_bases); \
877 bases=`for i in $$bases; do echo $$i; done \
878 | $(am__list_recheck_tests)` || exit 1; \
879 log_list=`for i in $$bases; do echo $$i.log; done`; \
880 log_list=`echo $$log_list`; \
881 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
882 am__force_recheck=am--force-recheck \
883 TEST_LOGS="$$log_list"; \
884 exit $$?
885 showtaxonomy.log: showtaxonomy$(EXEEXT)
886 @p='showtaxonomy$(EXEEXT)'; \
887 b='showtaxonomy'; \
888 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
889 --log-file $$b.log --trs-file $$b.trs \
890 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
891 "$$tst" $(AM_TESTS_FD_REDIRECT)
892 dumpstatements.log: dumpstatements$(EXEEXT)
893 @p='dumpstatements$(EXEEXT)'; \
894 b='dumpstatements'; \
895 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
896 --log-file $$b.log --trs-file $$b.trs \
897 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
898 "$$tst" $(AM_TESTS_FD_REDIRECT)
899 export_test.log: export_test$(EXEEXT)
900 @p='export_test$(EXEEXT)'; \
901 b='export_test'; \
902 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
903 --log-file $$b.log --trs-file $$b.trs \
904 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
905 "$$tst" $(AM_TESTS_FD_REDIRECT)
906 subclass_test.log: subclass_test$(EXEEXT)
907 @p='subclass_test$(EXEEXT)'; \
908 b='subclass_test'; \
909 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
910 --log-file $$b.log --trs-file $$b.trs \
911 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
912 "$$tst" $(AM_TESTS_FD_REDIRECT)
913 add_test.log: add_test$(EXEEXT)
914 @p='add_test$(EXEEXT)'; \
915 b='add_test'; \
916 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
917 --log-file $$b.log --trs-file $$b.trs \
918 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
919 "$$tst" $(AM_TESTS_FD_REDIRECT)
920 instances_test.log: instances_test$(EXEEXT)
921 @p='instances_test$(EXEEXT)'; \
922 b='instances_test'; \
923 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
924 --log-file $$b.log --trs-file $$b.trs \
925 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
926 "$$tst" $(AM_TESTS_FD_REDIRECT)
927 remove_test.log: remove_test$(EXEEXT)
928 @p='remove_test$(EXEEXT)'; \
929 b='remove_test'; \
930 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
931 --log-file $$b.log --trs-file $$b.trs \
932 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
933 "$$tst" $(AM_TESTS_FD_REDIRECT)
934 multi_test.log: multi_test$(EXEEXT)
935 @p='multi_test$(EXEEXT)'; \
936 b='multi_test'; \
937 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
938 --log-file $$b.log --trs-file $$b.trs \
939 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
940 "$$tst" $(AM_TESTS_FD_REDIRECT)
941 setting_test.log: setting_test$(EXEEXT)
942 @p='setting_test$(EXEEXT)'; \
943 b='setting_test'; \
944 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
945 --log-file $$b.log --trs-file $$b.trs \
946 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
947 "$$tst" $(AM_TESTS_FD_REDIRECT)
948 scale_test.log: scale_test$(EXEEXT)
949 @p='scale_test$(EXEEXT)'; \
950 b='scale_test'; \
951 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
952 --log-file $$b.log --trs-file $$b.trs \
953 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
954 "$$tst" $(AM_TESTS_FD_REDIRECT)
955 .test.log:
956 @p='$<'; \
957 $(am__set_b); \
958 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
959 --log-file $$b.log --trs-file $$b.trs \
960 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
961 "$$tst" $(AM_TESTS_FD_REDIRECT)
962 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
963 @am__EXEEXT_TRUE@ @p='$<'; \
964 @am__EXEEXT_TRUE@ $(am__set_b); \
965 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
966 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
967 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
968 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
969
970 distdir: $(DISTFILES)
971 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
972 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
973 list='$(DISTFILES)'; \
974 dist_files=`for file in $$list; do echo $$file; done | \
975 sed -e "s|^$$srcdirstrip/||;t" \
976 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
977 case $$dist_files in \
978 */*) $(MKDIR_P) `echo "$$dist_files" | \
979 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
980 sort -u` ;; \
981 esac; \
982 for file in $$dist_files; do \
983 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
984 if test -d $$d/$$file; then \
985 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
986 if test -d "$(distdir)/$$file"; then \
987 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
988 fi; \
989 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
990 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
991 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
992 fi; \
993 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
994 else \
995 test -f "$(distdir)/$$file" \
996 || cp -p $$d/$$file "$(distdir)/$$file" \
997 || exit 1; \
998 fi; \
999 done
1000 check-am: all-am
1001 $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
1002 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
1003 check: check-am
1004 all-am: Makefile $(DATA)
1005 installdirs:
1006 for dir in "$(DESTDIR)$(pkgdatadir)"; do \
1007 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1008 done
1009 install: install-am
1010 install-exec: install-exec-am
1011 install-data: install-data-am
1012 uninstall: uninstall-am
1013
1014 install-am: all-am
1015 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1016
1017 installcheck: installcheck-am
1018 install-strip:
1019 if test -z '$(STRIP)'; then \
1020 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1021 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1022 install; \
1023 else \
1024 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1025 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1026 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1027 fi
1028 mostlyclean-generic:
1029 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
1030 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
1031 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1032
1033 clean-generic:
1034
1035 distclean-generic:
1036 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1037 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1038
1039 maintainer-clean-generic:
1040 @echo "This command is intended for maintainers to use"
1041 @echo "it deletes files that may require special tools to rebuild."
1042 clean: clean-am
1043
1044 clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
1045 mostlyclean-am
1046
1047 distclean: distclean-am
1048 -rm -rf ./$(DEPDIR)
1049 -rm -f Makefile
1050 distclean-am: clean-am distclean-compile distclean-generic \
1051 distclean-tags
1052
1053 dvi: dvi-am
1054
1055 dvi-am:
1056
1057 html: html-am
1058
1059 html-am:
1060
1061 info: info-am
1062
1063 info-am:
1064
1065 install-data-am: install-pkgdataDATA
1066
1067 install-dvi: install-dvi-am
1068
1069 install-dvi-am:
1070
1071 install-exec-am:
1072
1073 install-html: install-html-am
1074
1075 install-html-am:
1076
1077 install-info: install-info-am
1078
1079 install-info-am:
1080
1081 install-man:
1082
1083 install-pdf: install-pdf-am
1084
1085 install-pdf-am:
1086
1087 install-ps: install-ps-am
1088
1089 install-ps-am:
1090
1091 installcheck-am:
1092
1093 maintainer-clean: maintainer-clean-am
1094 -rm -rf ./$(DEPDIR)
1095 -rm -f Makefile
1096 maintainer-clean-am: distclean-am maintainer-clean-generic
1097
1098 mostlyclean: mostlyclean-am
1099
1100 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1101 mostlyclean-libtool
1102
1103 pdf: pdf-am
1104
1105 pdf-am:
1106
1107 ps: ps-am
1108
1109 ps-am:
1110
1111 uninstall-am: uninstall-pkgdataDATA
1112
1113 .MAKE: check-am install-am install-strip
1114
1115 .PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \
1116 clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \
1117 ctags ctags-am distclean distclean-compile distclean-generic \
1118 distclean-libtool distclean-tags distdir dvi dvi-am html \
1119 html-am info info-am install install-am install-data \
1120 install-data-am install-dvi install-dvi-am install-exec \
1121 install-exec-am install-html install-html-am install-info \
1122 install-info-am install-man install-pdf install-pdf-am \
1123 install-pkgdataDATA install-ps install-ps-am install-strip \
1124 installcheck installcheck-am installdirs maintainer-clean \
1125 maintainer-clean-generic mostlyclean mostlyclean-compile \
1126 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1127 recheck tags tags-am uninstall uninstall-am \
1128 uninstall-pkgdataDATA
1129
1130
1131 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1132 # Otherwise a system limit (for SysV at least) may be exceeded.
1133 .NOEXPORT:
+0
-10077
libtool less more
0 #! /bin/bash
1
2 # libtool - Provide generalized library-building support services.
3 # Generated automatically by config.status (liblrdf) 0.5.0
4 # Libtool was configured on host opendaw:
5 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6 #
7 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
8 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
9 # Foundation, Inc.
10 # Written by Gordon Matzigkeit, 1996
11 #
12 # This file is part of GNU Libtool.
13 #
14 # GNU Libtool is free software; you can redistribute it and/or
15 # modify it under the terms of the GNU General Public License as
16 # published by the Free Software Foundation; either version 2 of
17 # the License, or (at your option) any later version.
18 #
19 # As a special exception to the GNU General Public License,
20 # if you distribute this file as part of a program or library that
21 # is built using GNU Libtool, you may include this file under the
22 # same distribution terms that you use for the rest of that program.
23 #
24 # GNU Libtool is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with GNU Libtool; see the file COPYING. If not, a copy
31 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32 # obtained by writing to the Free Software Foundation, Inc.,
33 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34
35
36 # The names of the tagged configurations supported by this script.
37 available_tags=""
38
39 # ### BEGIN LIBTOOL CONFIG
40
41 # Which release of libtool.m4 was used?
42 macro_version=2.4.2
43 macro_revision=1.3337
44
45 # Whether or not to build shared libraries.
46 build_libtool_libs=yes
47
48 # Whether or not to build static libraries.
49 build_old_libs=yes
50
51 # What type of objects to build.
52 pic_mode=default
53
54 # Whether or not to optimize for fast installation.
55 fast_install=yes
56
57 # Shell to use when invoking shell scripts.
58 SHELL="/bin/bash"
59
60 # An echo program that protects backslashes.
61 ECHO="printf %s\\n"
62
63 # The PATH separator for the build system.
64 PATH_SEPARATOR=":"
65
66 # The host system.
67 host_alias=
68 host=i686-pc-linux-gnu
69 host_os=linux-gnu
70
71 # The build system.
72 build_alias=
73 build=i686-pc-linux-gnu
74 build_os=linux-gnu
75
76 # A sed program that does not truncate output.
77 SED="/bin/sed"
78
79 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
80 Xsed="$SED -e 1s/^X//"
81
82 # A grep program that handles long lines.
83 GREP="/bin/grep"
84
85 # An ERE matcher.
86 EGREP="/bin/grep -E"
87
88 # A literal string matcher.
89 FGREP="/bin/grep -F"
90
91 # A BSD- or MS-compatible name lister.
92 NM="/usr/bin/nm -B"
93
94 # Whether we need soft or hard links.
95 LN_S="ln -s"
96
97 # What is the maximum length of a command?
98 max_cmd_len=1572864
99
100 # Object file suffix (normally "o").
101 objext=o
102
103 # Executable file suffix (normally "").
104 exeext=
105
106 # whether the shell understands "unset".
107 lt_unset=unset
108
109 # turn spaces into newlines.
110 SP2NL="tr \\040 \\012"
111
112 # turn newlines into spaces.
113 NL2SP="tr \\015\\012 \\040\\040"
114
115 # convert $build file names to $host format.
116 to_host_file_cmd=func_convert_file_noop
117
118 # convert $build files to toolchain format.
119 to_tool_file_cmd=func_convert_file_noop
120
121 # An object symbol dumper.
122 OBJDUMP="objdump"
123
124 # Method to check whether dependent libraries are shared objects.
125 deplibs_check_method="pass_all"
126
127 # Command to use when deplibs_check_method = "file_magic".
128 file_magic_cmd="\$MAGIC_CMD"
129
130 # How to find potential files when deplibs_check_method = "file_magic".
131 file_magic_glob=""
132
133 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
134 want_nocaseglob="no"
135
136 # DLL creation program.
137 DLLTOOL="false"
138
139 # Command to associate shared and link libraries.
140 sharedlib_from_linklib_cmd="printf %s\\n"
141
142 # The archiver.
143 AR="ar"
144
145 # Flags to create an archive.
146 AR_FLAGS="cru"
147
148 # How to feed a file listing to the archiver.
149 archiver_list_spec="@"
150
151 # A symbol stripping program.
152 STRIP="strip"
153
154 # Commands used to install an old-style archive.
155 RANLIB="ranlib"
156 old_postinstall_cmds="chmod 644 \$oldlib~\$RANLIB \$tool_oldlib"
157 old_postuninstall_cmds=""
158
159 # Whether to use a lock for old archive extraction.
160 lock_old_archive_extraction=no
161
162 # A C compiler.
163 LTCC="gcc"
164
165 # LTCC compiler flags.
166 LTCFLAGS="-g -O2"
167
168 # Take the output of nm and produce a listing of raw symbols and C names.
169 global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p' | sed '/ __gnu_lto/d'"
170
171 # Transform the output of nm in a proper C declaration.
172 global_symbol_to_cdecl="sed -n -e 's/^T .* \\(.*\\)\$/extern int \\1();/p' -e 's/^[ABCDGIRSTW]* .* \\(.*\\)\$/extern char \\1;/p'"
173
174 # Transform the output of nm in a C name address pair.
175 global_symbol_to_c_name_address="sed -n -e 's/^: \\([^ ]*\\)[ ]*\$/ {\\\"\\1\\\", (void *) 0},/p' -e 's/^[ABCDGIRSTW]* \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (void *) \\&\\2},/p'"
176
177 # Transform the output of nm in a C name address pair when lib prefix is needed.
178 global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \\([^ ]*\\)[ ]*\$/ {\\\"\\1\\\", (void *) 0},/p' -e 's/^[ABCDGIRSTW]* \\([^ ]*\\) \\(lib[^ ]*\\)\$/ {\"\\2\", (void *) \\&\\2},/p' -e 's/^[ABCDGIRSTW]* \\([^ ]*\\) \\([^ ]*\\)\$/ {\"lib\\2\", (void *) \\&\\2},/p'"
179
180 # Specify filename containing input files for $NM.
181 nm_file_list_spec="@"
182
183 # The root where to search for dependent libraries,and in which our libraries should be installed.
184 lt_sysroot=
185
186 # The name of the directory that contains temporary libtool files.
187 objdir=.libs
188
189 # Used to examine libraries when file_magic_cmd begins with "file".
190 MAGIC_CMD=file
191
192 # Must we lock files when doing compilation?
193 need_locks="no"
194
195 # Manifest tool.
196 MANIFEST_TOOL=":"
197
198 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
199 DSYMUTIL=""
200
201 # Tool to change global to local symbols on Mac OS X.
202 NMEDIT=""
203
204 # Tool to manipulate fat objects and archives on Mac OS X.
205 LIPO=""
206
207 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
208 OTOOL=""
209
210 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
211 OTOOL64=""
212
213 # Old archive suffix (normally "a").
214 libext=a
215
216 # Shared library suffix (normally ".so").
217 shrext_cmds=".so"
218
219 # The commands to extract the exported symbol list from a shared archive.
220 extract_expsyms_cmds=""
221
222 # Variables whose values should be saved in libtool wrapper scripts and
223 # restored at link time.
224 variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
225
226 # Do we need the "lib" prefix for modules?
227 need_lib_prefix=no
228
229 # Do we need a version for libraries?
230 need_version=no
231
232 # Library versioning type.
233 version_type=linux
234
235 # Shared library runtime path variable.
236 runpath_var=LD_RUN_PATH
237
238 # Shared library path variable.
239 shlibpath_var=LD_LIBRARY_PATH
240
241 # Is shlibpath searched before the hard-coded library search path?
242 shlibpath_overrides_runpath=no
243
244 # Format of library name prefix.
245 libname_spec="lib\$name"
246
247 # List of archive names. First name is the real one, the rest are links.
248 # The last name is the one that the linker finds with -lNAME
249 library_names_spec="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}"
250
251 # The coded name of the library, if different from the real name.
252 soname_spec="\${libname}\${release}\${shared_ext}\$major"
253
254 # Permission mode override for installation of shared libraries.
255 install_override_mode=""
256
257 # Command to use after installation of a shared archive.
258 postinstall_cmds=""
259
260 # Command to use after uninstallation of a shared archive.
261 postuninstall_cmds=""
262
263 # Commands used to finish a libtool library installation in a directory.
264 finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"
265
266 # As "finish_cmds", except a single script fragment to be evaled but
267 # not shown.
268 finish_eval=""
269
270 # Whether we should hardcode library paths into libraries.
271 hardcode_into_libs=yes
272
273 # Compile-time system search path for libraries.
274 sys_lib_search_path_spec="/usr/lib/gcc/i486-linux-gnu/4.7 /usr/lib/i386-linux-gnu /usr/lib /lib/i386-linux-gnu /lib "
275
276 # Run-time system search path for libraries.
277 sys_lib_dlsearch_path_spec="/lib /usr/lib /lib/i386-linux-gnu /usr/lib/i386-linux-gnu /lib/i486-linux-gnu /usr/lib/i486-linux-gnu /usr/local/lib "
278
279 # Whether dlopen is supported.
280 dlopen_support=unknown
281
282 # Whether dlopen of programs is supported.
283 dlopen_self=unknown
284
285 # Whether dlopen of statically linked programs is supported.
286 dlopen_self_static=unknown
287
288 # Commands to strip libraries.
289 old_striplib="strip --strip-debug"
290 striplib="strip --strip-unneeded"
291
292
293 # The linker used to build libraries.
294 LD="/usr/bin/ld"
295
296 # How to create reloadable object files.
297 reload_flag=" -r"
298 reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"
299
300 # Commands used to build an old-style archive.
301 old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$tool_oldlib"
302
303 # A language specific compiler.
304 CC="gcc"
305
306 # Is the compiler the GNU compiler?
307 with_gcc=yes
308
309 # Compiler flag to turn off builtin functions.
310 no_builtin_flag=" -fno-builtin"
311
312 # Additional compiler flags for building library objects.
313 pic_flag=" -fPIC -DPIC"
314
315 # How to pass a linker flag through the compiler.
316 wl="-Wl,"
317
318 # Compiler flag to prevent dynamic linking.
319 link_static_flag="-static"
320
321 # Does compiler simultaneously support -c and -o options?
322 compiler_c_o="yes"
323
324 # Whether or not to add -lc for building shared libraries.
325 build_libtool_need_lc=no
326
327 # Whether or not to disallow shared libs when runtime libs are static.
328 allow_libtool_libs_with_static_runtimes=no
329
330 # Compiler flag to allow reflexive dlopens.
331 export_dynamic_flag_spec="\${wl}--export-dynamic"
332
333 # Compiler flag to generate shared objects directly from archives.
334 whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive"
335
336 # Whether the compiler copes with passing no objects directly.
337 compiler_needs_object="no"
338
339 # Create an old-style archive from a shared archive.
340 old_archive_from_new_cmds=""
341
342 # Create a temporary old-style archive to link instead of a shared archive.
343 old_archive_from_expsyms_cmds=""
344
345 # Commands used to build a shared archive.
346 archive_cmds="\$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib"
347 archive_expsym_cmds="echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~
348 cat \$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> \$output_objdir/\$libname.ver~
349 echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~
350 \$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-version-script \${wl}\$output_objdir/\$libname.ver -o \$lib"
351
352 # Commands used to build a loadable module if different from building
353 # a shared archive.
354 module_cmds=""
355 module_expsym_cmds=""
356
357 # Whether we are building with GNU ld or not.
358 with_gnu_ld="yes"
359
360 # Flag that allows shared libraries with undefined symbols to be built.
361 allow_undefined_flag=""
362
363 # Flag that enforces no undefined symbols.
364 no_undefined_flag=""
365
366 # Flag to hardcode $libdir into a binary during linking.
367 # This must work even if $libdir does not exist
368 hardcode_libdir_flag_spec="\${wl}-rpath \${wl}\$libdir"
369
370 # Whether we need a single "-rpath" flag with a separated argument.
371 hardcode_libdir_separator=""
372
373 # Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
374 # DIR into the resulting binary.
375 hardcode_direct=no
376
377 # Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
378 # DIR into the resulting binary and the resulting library dependency is
379 # "absolute",i.e impossible to change by setting ${shlibpath_var} if the
380 # library is relocated.
381 hardcode_direct_absolute=no
382
383 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
384 # into the resulting binary.
385 hardcode_minus_L=no
386
387 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
388 # into the resulting binary.
389 hardcode_shlibpath_var=unsupported
390
391 # Set to "yes" if building a shared library automatically hardcodes DIR
392 # into the library and all subsequent libraries and executables linked
393 # against it.
394 hardcode_automatic=no
395
396 # Set to yes if linker adds runtime paths of dependent libraries
397 # to runtime path list.
398 inherit_rpath=no
399
400 # Whether libtool must link a program against all its dependency libraries.
401 link_all_deplibs=unknown
402
403 # Set to "yes" if exported symbols are required.
404 always_export_symbols=no
405
406 # The commands to list exported symbols.
407 export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"
408
409 # Symbols that should not be listed in the preloaded symbols.
410 exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*"
411
412 # Symbols that must always be exported.
413 include_expsyms=""
414
415 # Commands necessary for linking programs (against libraries) with templates.
416 prelink_cmds=""
417
418 # Commands necessary for finishing linking programs.
419 postlink_cmds=""
420
421 # Specify filename containing input files.
422 file_list_spec=""
423
424 # How to hardcode a shared library path into an executable.
425 hardcode_action=immediate
426
427 # ### END LIBTOOL CONFIG
428
429
430 # libtool (GNU libtool) 2.4.2
431 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
432
433 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
434 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
435 # This is free software; see the source for copying conditions. There is NO
436 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
437
438 # GNU Libtool is free software; you can redistribute it and/or modify
439 # it under the terms of the GNU General Public License as published by
440 # the Free Software Foundation; either version 2 of the License, or
441 # (at your option) any later version.
442 #
443 # As a special exception to the GNU General Public License,
444 # if you distribute this file as part of a program or library that
445 # is built using GNU Libtool, you may include this file under the
446 # same distribution terms that you use for the rest of that program.
447 #
448 # GNU Libtool is distributed in the hope that it will be useful, but
449 # WITHOUT ANY WARRANTY; without even the implied warranty of
450 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
451 # General Public License for more details.
452 #
453 # You should have received a copy of the GNU General Public License
454 # along with GNU Libtool; see the file COPYING. If not, a copy
455 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
456 # or obtained by writing to the Free Software Foundation, Inc.,
457 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
458
459 # Usage: $progname [OPTION]... [MODE-ARG]...
460 #
461 # Provide generalized library-building support services.
462 #
463 # --config show all configuration variables
464 # --debug enable verbose shell tracing
465 # -n, --dry-run display commands without modifying any files
466 # --features display basic configuration information and exit
467 # --mode=MODE use operation mode MODE
468 # --preserve-dup-deps don't remove duplicate dependency libraries
469 # --quiet, --silent don't print informational messages
470 # --no-quiet, --no-silent
471 # print informational messages (default)
472 # --no-warn don't display warning messages
473 # --tag=TAG use configuration variables from tag TAG
474 # -v, --verbose print more informational messages than default
475 # --no-verbose don't print the extra informational messages
476 # --version print version information
477 # -h, --help, --help-all print short, long, or detailed help message
478 #
479 # MODE must be one of the following:
480 #
481 # clean remove files from the build directory
482 # compile compile a source file into a libtool object
483 # execute automatically set library path, then run a program
484 # finish complete the installation of libtool libraries
485 # install install libraries or executables
486 # link create a library or an executable
487 # uninstall remove libraries from an installed directory
488 #
489 # MODE-ARGS vary depending on the MODE. When passed as first option,
490 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
491 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
492 #
493 # When reporting a bug, please describe a test case to reproduce it and
494 # include the following information:
495 #
496 # host-triplet: $host
497 # shell: $SHELL
498 # compiler: $LTCC
499 # compiler flags: $LTCFLAGS
500 # linker: $LD (gnu? $with_gnu_ld)
501 # $progname: (GNU libtool) 2.4.2
502 # automake: $automake_version
503 # autoconf: $autoconf_version
504 #
505 # Report bugs to <bug-libtool@gnu.org>.
506 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
507 # General help using GNU software: <http://www.gnu.org/gethelp/>.
508
509 PROGRAM=libtool
510 PACKAGE=libtool
511 VERSION=2.4.2
512 TIMESTAMP=""
513 package_revision=1.3337
514
515 # Be Bourne compatible
516 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
517 emulate sh
518 NULLCMD=:
519 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
520 # is contrary to our usage. Disable this feature.
521 alias -g '${1+"$@"}'='"$@"'
522 setopt NO_GLOB_SUBST
523 else
524 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
525 fi
526 BIN_SH=xpg4; export BIN_SH # for Tru64
527 DUALCASE=1; export DUALCASE # for MKS sh
528
529 # A function that is used when there is no print builtin or printf.
530 func_fallback_echo ()
531 {
532 eval 'cat <<_LTECHO_EOF
533 $1
534 _LTECHO_EOF'
535 }
536
537 # NLS nuisances: We save the old values to restore during execute mode.
538 lt_user_locale=
539 lt_safe_locale=
540 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
541 do
542 eval "if test \"\${$lt_var+set}\" = set; then
543 save_$lt_var=\$$lt_var
544 $lt_var=C
545 export $lt_var
546 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
547 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
548 fi"
549 done
550 LC_ALL=C
551 LANGUAGE=C
552 export LANGUAGE LC_ALL
553
554 $lt_unset CDPATH
555
556
557 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
558 # is ksh but when the shell is invoked as "sh" and the current value of
559 # the _XPG environment variable is not equal to 1 (one), the special
560 # positional parameter $0, within a function call, is the name of the
561 # function.
562 progpath="$0"
563
564
565
566 : ${CP="cp -f"}
567 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
568 : ${MAKE="make"}
569 : ${MKDIR="mkdir"}
570 : ${MV="mv -f"}
571 : ${RM="rm -f"}
572 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
573 : ${Xsed="$SED -e 1s/^X//"}
574
575 # Global variables:
576 EXIT_SUCCESS=0
577 EXIT_FAILURE=1
578 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
579 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
580
581 exit_status=$EXIT_SUCCESS
582
583 # Make sure IFS has a sensible default
584 lt_nl='
585 '
586 IFS=" $lt_nl"
587
588 dirname="s,/[^/]*$,,"
589 basename="s,^.*/,,"
590
591 # func_dirname file append nondir_replacement
592 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
593 # otherwise set result to NONDIR_REPLACEMENT.
594 func_dirname ()
595 {
596 case ${1} in
597 */*) func_dirname_result="${1%/*}${2}" ;;
598 * ) func_dirname_result="${3}" ;;
599 esac
600 } # Extended-shell func_dirname implementation
601
602
603 # func_basename file
604 func_basename ()
605 {
606 func_basename_result="${1##*/}"
607 } # Extended-shell func_basename implementation
608
609
610 # func_dirname_and_basename file append nondir_replacement
611 # perform func_basename and func_dirname in a single function
612 # call:
613 # dirname: Compute the dirname of FILE. If nonempty,
614 # add APPEND to the result, otherwise set result
615 # to NONDIR_REPLACEMENT.
616 # value returned in "$func_dirname_result"
617 # basename: Compute filename of FILE.
618 # value retuned in "$func_basename_result"
619 # Implementation must be kept synchronized with func_dirname
620 # and func_basename. For efficiency, we do not delegate to
621 # those functions but instead duplicate the functionality here.
622 func_dirname_and_basename ()
623 {
624 case ${1} in
625 */*) func_dirname_result="${1%/*}${2}" ;;
626 * ) func_dirname_result="${3}" ;;
627 esac
628 func_basename_result="${1##*/}"
629 } # Extended-shell func_dirname_and_basename implementation
630
631
632 # func_stripname prefix suffix name
633 # strip PREFIX and SUFFIX off of NAME.
634 # PREFIX and SUFFIX must not contain globbing or regex special
635 # characters, hashes, percent signs, but SUFFIX may contain a leading
636 # dot (in which case that matches only a dot).
637 # func_strip_suffix prefix name
638 func_stripname ()
639 {
640 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
641 # positional parameters, so assign one to ordinary parameter first.
642 func_stripname_result=${3}
643 func_stripname_result=${func_stripname_result#"${1}"}
644 func_stripname_result=${func_stripname_result%"${2}"}
645 } # Extended-shell func_stripname implementation
646
647
648 # These SED scripts presuppose an absolute path with a trailing slash.
649 pathcar='s,^/\([^/]*\).*$,\1,'
650 pathcdr='s,^/[^/]*,,'
651 removedotparts=':dotsl
652 s@/\./@/@g
653 t dotsl
654 s,/\.$,/,'
655 collapseslashes='s@/\{1,\}@/@g'
656 finalslash='s,/*$,/,'
657
658 # func_normal_abspath PATH
659 # Remove doubled-up and trailing slashes, "." path components,
660 # and cancel out any ".." path components in PATH after making
661 # it an absolute path.
662 # value returned in "$func_normal_abspath_result"
663 func_normal_abspath ()
664 {
665 # Start from root dir and reassemble the path.
666 func_normal_abspath_result=
667 func_normal_abspath_tpath=$1
668 func_normal_abspath_altnamespace=
669 case $func_normal_abspath_tpath in
670 "")
671 # Empty path, that just means $cwd.
672 func_stripname '' '/' "`pwd`"
673 func_normal_abspath_result=$func_stripname_result
674 return
675 ;;
676 # The next three entries are used to spot a run of precisely
677 # two leading slashes without using negated character classes;
678 # we take advantage of case's first-match behaviour.
679 ///*)
680 # Unusual form of absolute path, do nothing.
681 ;;
682 //*)
683 # Not necessarily an ordinary path; POSIX reserves leading '//'
684 # and for example Cygwin uses it to access remote file shares
685 # over CIFS/SMB, so we conserve a leading double slash if found.
686 func_normal_abspath_altnamespace=/
687 ;;
688 /*)
689 # Absolute path, do nothing.
690 ;;
691 *)
692 # Relative path, prepend $cwd.
693 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
694 ;;
695 esac
696 # Cancel out all the simple stuff to save iterations. We also want
697 # the path to end with a slash for ease of parsing, so make sure
698 # there is one (and only one) here.
699 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
700 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
701 while :; do
702 # Processed it all yet?
703 if test "$func_normal_abspath_tpath" = / ; then
704 # If we ascended to the root using ".." the result may be empty now.
705 if test -z "$func_normal_abspath_result" ; then
706 func_normal_abspath_result=/
707 fi
708 break
709 fi
710 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
711 -e "$pathcar"`
712 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
713 -e "$pathcdr"`
714 # Figure out what to do with it
715 case $func_normal_abspath_tcomponent in
716 "")
717 # Trailing empty path component, ignore it.
718 ;;
719 ..)
720 # Parent dir; strip last assembled component from result.
721 func_dirname "$func_normal_abspath_result"
722 func_normal_abspath_result=$func_dirname_result
723 ;;
724 *)
725 # Actual path component, append it.
726 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
727 ;;
728 esac
729 done
730 # Restore leading double-slash if one was found on entry.
731 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
732 }
733
734 # func_relative_path SRCDIR DSTDIR
735 # generates a relative path from SRCDIR to DSTDIR, with a trailing
736 # slash if non-empty, suitable for immediately appending a filename
737 # without needing to append a separator.
738 # value returned in "$func_relative_path_result"
739 func_relative_path ()
740 {
741 func_relative_path_result=
742 func_normal_abspath "$1"
743 func_relative_path_tlibdir=$func_normal_abspath_result
744 func_normal_abspath "$2"
745 func_relative_path_tbindir=$func_normal_abspath_result
746
747 # Ascend the tree starting from libdir
748 while :; do
749 # check if we have found a prefix of bindir
750 case $func_relative_path_tbindir in
751 $func_relative_path_tlibdir)
752 # found an exact match
753 func_relative_path_tcancelled=
754 break
755 ;;
756 $func_relative_path_tlibdir*)
757 # found a matching prefix
758 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
759 func_relative_path_tcancelled=$func_stripname_result
760 if test -z "$func_relative_path_result"; then
761 func_relative_path_result=.
762 fi
763 break
764 ;;
765 *)
766 func_dirname $func_relative_path_tlibdir
767 func_relative_path_tlibdir=${func_dirname_result}
768 if test "x$func_relative_path_tlibdir" = x ; then
769 # Have to descend all the way to the root!
770 func_relative_path_result=../$func_relative_path_result
771 func_relative_path_tcancelled=$func_relative_path_tbindir
772 break
773 fi
774 func_relative_path_result=../$func_relative_path_result
775 ;;
776 esac
777 done
778
779 # Now calculate path; take care to avoid doubling-up slashes.
780 func_stripname '' '/' "$func_relative_path_result"
781 func_relative_path_result=$func_stripname_result
782 func_stripname '/' '/' "$func_relative_path_tcancelled"
783 if test "x$func_stripname_result" != x ; then
784 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
785 fi
786
787 # Normalisation. If bindir is libdir, return empty string,
788 # else relative path ending with a slash; either way, target
789 # file name can be directly appended.
790 if test ! -z "$func_relative_path_result"; then
791 func_stripname './' '' "$func_relative_path_result/"
792 func_relative_path_result=$func_stripname_result
793 fi
794 }
795
796 # The name of this program:
797 func_dirname_and_basename "$progpath"
798 progname=$func_basename_result
799
800 # Make sure we have an absolute path for reexecution:
801 case $progpath in
802 [\\/]*|[A-Za-z]:\\*) ;;
803 *[\\/]*)
804 progdir=$func_dirname_result
805 progdir=`cd "$progdir" && pwd`
806 progpath="$progdir/$progname"
807 ;;
808 *)
809 save_IFS="$IFS"
810 IFS=${PATH_SEPARATOR-:}
811 for progdir in $PATH; do
812 IFS="$save_IFS"
813 test -x "$progdir/$progname" && break
814 done
815 IFS="$save_IFS"
816 test -n "$progdir" || progdir=`pwd`
817 progpath="$progdir/$progname"
818 ;;
819 esac
820
821 # Sed substitution that helps us do robust quoting. It backslashifies
822 # metacharacters that are still active within double-quoted strings.
823 Xsed="${SED}"' -e 1s/^X//'
824 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
825
826 # Same as above, but do not quote variable references.
827 double_quote_subst='s/\(["`\\]\)/\\\1/g'
828
829 # Sed substitution that turns a string into a regex matching for the
830 # string literally.
831 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
832
833 # Sed substitution that converts a w32 file name or path
834 # which contains forward slashes, into one that contains
835 # (escaped) backslashes. A very naive implementation.
836 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
837
838 # Re-`\' parameter expansions in output of double_quote_subst that were
839 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
840 # in input to double_quote_subst, that '$' was protected from expansion.
841 # Since each input `\' is now two `\'s, look for any number of runs of
842 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
843 bs='\\'
844 bs2='\\\\'
845 bs4='\\\\\\\\'
846 dollar='\$'
847 sed_double_backslash="\
848 s/$bs4/&\\
849 /g
850 s/^$bs2$dollar/$bs&/
851 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
852 s/\n//g"
853
854 # Standard options:
855 opt_dry_run=false
856 opt_help=false
857 opt_quiet=false
858 opt_verbose=false
859 opt_warning=:
860
861 # func_echo arg...
862 # Echo program name prefixed message, along with the current mode
863 # name if it has been set yet.
864 func_echo ()
865 {
866 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
867 }
868
869 # func_verbose arg...
870 # Echo program name prefixed message in verbose mode only.
871 func_verbose ()
872 {
873 $opt_verbose && func_echo ${1+"$@"}
874
875 # A bug in bash halts the script if the last line of a function
876 # fails when set -e is in force, so we need another command to
877 # work around that:
878 :
879 }
880
881 # func_echo_all arg...
882 # Invoke $ECHO with all args, space-separated.
883 func_echo_all ()
884 {
885 $ECHO "$*"
886 }
887
888 # func_error arg...
889 # Echo program name prefixed message to standard error.
890 func_error ()
891 {
892 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
893 }
894
895 # func_warning arg...
896 # Echo program name prefixed warning message to standard error.
897 func_warning ()
898 {
899 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
900
901 # bash bug again:
902 :
903 }
904
905 # func_fatal_error arg...
906 # Echo program name prefixed message to standard error, and exit.
907 func_fatal_error ()
908 {
909 func_error ${1+"$@"}
910 exit $EXIT_FAILURE
911 }
912
913 # func_fatal_help arg...
914 # Echo program name prefixed message to standard error, followed by
915 # a help hint, and exit.
916 func_fatal_help ()
917 {
918 func_error ${1+"$@"}
919 func_fatal_error "$help"
920 }
921 help="Try \`$progname --help' for more information." ## default
922
923
924 # func_grep expression filename
925 # Check whether EXPRESSION matches any line of FILENAME, without output.
926 func_grep ()
927 {
928 $GREP "$1" "$2" >/dev/null 2>&1
929 }
930
931
932 # func_mkdir_p directory-path
933 # Make sure the entire path to DIRECTORY-PATH is available.
934 func_mkdir_p ()
935 {
936 my_directory_path="$1"
937 my_dir_list=
938
939 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
940
941 # Protect directory names starting with `-'
942 case $my_directory_path in
943 -*) my_directory_path="./$my_directory_path" ;;
944 esac
945
946 # While some portion of DIR does not yet exist...
947 while test ! -d "$my_directory_path"; do
948 # ...make a list in topmost first order. Use a colon delimited
949 # list incase some portion of path contains whitespace.
950 my_dir_list="$my_directory_path:$my_dir_list"
951
952 # If the last portion added has no slash in it, the list is done
953 case $my_directory_path in */*) ;; *) break ;; esac
954
955 # ...otherwise throw away the child directory and loop
956 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
957 done
958 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
959
960 save_mkdir_p_IFS="$IFS"; IFS=':'
961 for my_dir in $my_dir_list; do
962 IFS="$save_mkdir_p_IFS"
963 # mkdir can fail with a `File exist' error if two processes
964 # try to create one of the directories concurrently. Don't
965 # stop in that case!
966 $MKDIR "$my_dir" 2>/dev/null || :
967 done
968 IFS="$save_mkdir_p_IFS"
969
970 # Bail out if we (or some other process) failed to create a directory.
971 test -d "$my_directory_path" || \
972 func_fatal_error "Failed to create \`$1'"
973 fi
974 }
975
976
977 # func_mktempdir [string]
978 # Make a temporary directory that won't clash with other running
979 # libtool processes, and avoids race conditions if possible. If
980 # given, STRING is the basename for that directory.
981 func_mktempdir ()
982 {
983 my_template="${TMPDIR-/tmp}/${1-$progname}"
984
985 if test "$opt_dry_run" = ":"; then
986 # Return a directory name, but don't create it in dry-run mode
987 my_tmpdir="${my_template}-$$"
988 else
989
990 # If mktemp works, use that first and foremost
991 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
992
993 if test ! -d "$my_tmpdir"; then
994 # Failing that, at least try and use $RANDOM to avoid a race
995 my_tmpdir="${my_template}-${RANDOM-0}$$"
996
997 save_mktempdir_umask=`umask`
998 umask 0077
999 $MKDIR "$my_tmpdir"
1000 umask $save_mktempdir_umask
1001 fi
1002
1003 # If we're not in dry-run mode, bomb out on failure
1004 test -d "$my_tmpdir" || \
1005 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
1006 fi
1007
1008 $ECHO "$my_tmpdir"
1009 }
1010
1011
1012 # func_quote_for_eval arg
1013 # Aesthetically quote ARG to be evaled later.
1014 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
1015 # is double-quoted, suitable for a subsequent eval, whereas
1016 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
1017 # which are still active within double quotes backslashified.
1018 func_quote_for_eval ()
1019 {
1020 case $1 in
1021 *[\\\`\"\$]*)
1022 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
1023 *)
1024 func_quote_for_eval_unquoted_result="$1" ;;
1025 esac
1026
1027 case $func_quote_for_eval_unquoted_result in
1028 # Double-quote args containing shell metacharacters to delay
1029 # word splitting, command substitution and and variable
1030 # expansion for a subsequent eval.
1031 # Many Bourne shells cannot handle close brackets correctly
1032 # in scan sets, so we specify it separately.
1033 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1034 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
1035 ;;
1036 *)
1037 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
1038 esac
1039 }
1040
1041
1042 # func_quote_for_expand arg
1043 # Aesthetically quote ARG to be evaled later; same as above,
1044 # but do not quote variable references.
1045 func_quote_for_expand ()
1046 {
1047 case $1 in
1048 *[\\\`\"]*)
1049 my_arg=`$ECHO "$1" | $SED \
1050 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
1051 *)
1052 my_arg="$1" ;;
1053 esac
1054
1055 case $my_arg in
1056 # Double-quote args containing shell metacharacters to delay
1057 # word splitting and command substitution for a subsequent eval.
1058 # Many Bourne shells cannot handle close brackets correctly
1059 # in scan sets, so we specify it separately.
1060 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1061 my_arg="\"$my_arg\""
1062 ;;
1063 esac
1064
1065 func_quote_for_expand_result="$my_arg"
1066 }
1067
1068
1069 # func_show_eval cmd [fail_exp]
1070 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1071 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
1072 # is given, then evaluate it.
1073 func_show_eval ()
1074 {
1075 my_cmd="$1"
1076 my_fail_exp="${2-:}"
1077
1078 ${opt_silent-false} || {
1079 func_quote_for_expand "$my_cmd"
1080 eval "func_echo $func_quote_for_expand_result"
1081 }
1082
1083 if ${opt_dry_run-false}; then :; else
1084 eval "$my_cmd"
1085 my_status=$?
1086 if test "$my_status" -eq 0; then :; else
1087 eval "(exit $my_status); $my_fail_exp"
1088 fi
1089 fi
1090 }
1091
1092
1093 # func_show_eval_locale cmd [fail_exp]
1094 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1095 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
1096 # is given, then evaluate it. Use the saved locale for evaluation.
1097 func_show_eval_locale ()
1098 {
1099 my_cmd="$1"
1100 my_fail_exp="${2-:}"
1101
1102 ${opt_silent-false} || {
1103 func_quote_for_expand "$my_cmd"
1104 eval "func_echo $func_quote_for_expand_result"
1105 }
1106
1107 if ${opt_dry_run-false}; then :; else
1108 eval "$lt_user_locale
1109 $my_cmd"
1110 my_status=$?
1111 eval "$lt_safe_locale"
1112 if test "$my_status" -eq 0; then :; else
1113 eval "(exit $my_status); $my_fail_exp"
1114 fi
1115 fi
1116 }
1117
1118 # func_tr_sh
1119 # Turn $1 into a string suitable for a shell variable name.
1120 # Result is stored in $func_tr_sh_result. All characters
1121 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1122 # if $1 begins with a digit, a '_' is prepended as well.
1123 func_tr_sh ()
1124 {
1125 case $1 in
1126 [0-9]* | *[!a-zA-Z0-9_]*)
1127 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
1128 ;;
1129 * )
1130 func_tr_sh_result=$1
1131 ;;
1132 esac
1133 }
1134
1135
1136 # func_version
1137 # Echo version message to standard output and exit.
1138 func_version ()
1139 {
1140 $opt_debug
1141
1142 $SED -n '/(C)/!b go
1143 :more
1144 /\./!{
1145 N
1146 s/\n# / /
1147 b more
1148 }
1149 :go
1150 /^# '$PROGRAM' (GNU /,/# warranty; / {
1151 s/^# //
1152 s/^# *$//
1153 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
1154 p
1155 }' < "$progpath"
1156 exit $?
1157 }
1158
1159 # func_usage
1160 # Echo short help message to standard output and exit.
1161 func_usage ()
1162 {
1163 $opt_debug
1164
1165 $SED -n '/^# Usage:/,/^# *.*--help/ {
1166 s/^# //
1167 s/^# *$//
1168 s/\$progname/'$progname'/
1169 p
1170 }' < "$progpath"
1171 echo
1172 $ECHO "run \`$progname --help | more' for full usage"
1173 exit $?
1174 }
1175
1176 # func_help [NOEXIT]
1177 # Echo long help message to standard output and exit,
1178 # unless 'noexit' is passed as argument.
1179 func_help ()
1180 {
1181 $opt_debug
1182
1183 $SED -n '/^# Usage:/,/# Report bugs to/ {
1184 :print
1185 s/^# //
1186 s/^# *$//
1187 s*\$progname*'$progname'*
1188 s*\$host*'"$host"'*
1189 s*\$SHELL*'"$SHELL"'*
1190 s*\$LTCC*'"$LTCC"'*
1191 s*\$LTCFLAGS*'"$LTCFLAGS"'*
1192 s*\$LD*'"$LD"'*
1193 s/\$with_gnu_ld/'"$with_gnu_ld"'/
1194 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
1195 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
1196 p
1197 d
1198 }
1199 /^# .* home page:/b print
1200 /^# General help using/b print
1201 ' < "$progpath"
1202 ret=$?
1203 if test -z "$1"; then
1204 exit $ret
1205 fi
1206 }
1207
1208 # func_missing_arg argname
1209 # Echo program name prefixed message to standard error and set global
1210 # exit_cmd.
1211 func_missing_arg ()
1212 {
1213 $opt_debug
1214
1215 func_error "missing argument for $1."
1216 exit_cmd=exit
1217 }
1218
1219
1220 # func_split_short_opt shortopt
1221 # Set func_split_short_opt_name and func_split_short_opt_arg shell
1222 # variables after splitting SHORTOPT after the 2nd character.
1223 func_split_short_opt ()
1224 {
1225 func_split_short_opt_arg=${1#??}
1226 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
1227 } # Extended-shell func_split_short_opt implementation
1228
1229
1230 # func_split_long_opt longopt
1231 # Set func_split_long_opt_name and func_split_long_opt_arg shell
1232 # variables after splitting LONGOPT at the `=' sign.
1233 func_split_long_opt ()
1234 {
1235 func_split_long_opt_name=${1%%=*}
1236 func_split_long_opt_arg=${1#*=}
1237 } # Extended-shell func_split_long_opt implementation
1238
1239 exit_cmd=:
1240
1241
1242
1243
1244
1245 magic="%%%MAGIC variable%%%"
1246 magic_exe="%%%MAGIC EXE variable%%%"
1247
1248 # Global variables.
1249 nonopt=
1250 preserve_args=
1251 lo2o="s/\\.lo\$/.${objext}/"
1252 o2lo="s/\\.${objext}\$/.lo/"
1253 extracted_archives=
1254 extracted_serial=0
1255
1256 # If this variable is set in any of the actions, the command in it
1257 # will be execed at the end. This prevents here-documents from being
1258 # left over by shells.
1259 exec_cmd=
1260
1261 # func_append var value
1262 # Append VALUE to the end of shell variable VAR.
1263 func_append ()
1264 {
1265 eval "${1}+=\${2}"
1266 } # Extended-shell func_append implementation
1267
1268 # func_append_quoted var value
1269 # Quote VALUE and append to the end of shell variable VAR, separated
1270 # by a space.
1271 func_append_quoted ()
1272 {
1273 func_quote_for_eval "${2}"
1274 eval "${1}+=\\ \$func_quote_for_eval_result"
1275 } # Extended-shell func_append_quoted implementation
1276
1277
1278 # func_arith arithmetic-term...
1279 func_arith ()
1280 {
1281 func_arith_result=$(( $* ))
1282 } # Extended-shell func_arith implementation
1283
1284
1285 # func_len string
1286 # STRING may not start with a hyphen.
1287 func_len ()
1288 {
1289 func_len_result=${#1}
1290 } # Extended-shell func_len implementation
1291
1292
1293 # func_lo2o object
1294 func_lo2o ()
1295 {
1296 case ${1} in
1297 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
1298 *) func_lo2o_result=${1} ;;
1299 esac
1300 } # Extended-shell func_lo2o implementation
1301
1302
1303 # func_xform libobj-or-source
1304 func_xform ()
1305 {
1306 func_xform_result=${1%.*}.lo
1307 } # Extended-shell func_xform implementation
1308
1309
1310 # func_fatal_configuration arg...
1311 # Echo program name prefixed message to standard error, followed by
1312 # a configuration failure hint, and exit.
1313 func_fatal_configuration ()
1314 {
1315 func_error ${1+"$@"}
1316 func_error "See the $PACKAGE documentation for more information."
1317 func_fatal_error "Fatal configuration error."
1318 }
1319
1320
1321 # func_config
1322 # Display the configuration for all the tags in this script.
1323 func_config ()
1324 {
1325 re_begincf='^# ### BEGIN LIBTOOL'
1326 re_endcf='^# ### END LIBTOOL'
1327
1328 # Default configuration.
1329 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
1330
1331 # Now print the configurations for the tags.
1332 for tagname in $taglist; do
1333 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
1334 done
1335
1336 exit $?
1337 }
1338
1339 # func_features
1340 # Display the features supported by this script.
1341 func_features ()
1342 {
1343 echo "host: $host"
1344 if test "$build_libtool_libs" = yes; then
1345 echo "enable shared libraries"
1346 else
1347 echo "disable shared libraries"
1348 fi
1349 if test "$build_old_libs" = yes; then
1350 echo "enable static libraries"
1351 else
1352 echo "disable static libraries"
1353 fi
1354
1355 exit $?
1356 }
1357
1358 # func_enable_tag tagname
1359 # Verify that TAGNAME is valid, and either flag an error and exit, or
1360 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
1361 # variable here.
1362 func_enable_tag ()
1363 {
1364 # Global variable:
1365 tagname="$1"
1366
1367 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
1368 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
1369 sed_extractcf="/$re_begincf/,/$re_endcf/p"
1370
1371 # Validate tagname.
1372 case $tagname in
1373 *[!-_A-Za-z0-9,/]*)
1374 func_fatal_error "invalid tag name: $tagname"
1375 ;;
1376 esac
1377
1378 # Don't test for the "default" C tag, as we know it's
1379 # there but not specially marked.
1380 case $tagname in
1381 CC) ;;
1382 *)
1383 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
1384 taglist="$taglist $tagname"
1385
1386 # Evaluate the configuration. Be careful to quote the path
1387 # and the sed script, to avoid splitting on whitespace, but
1388 # also don't use non-portable quotes within backquotes within
1389 # quotes we have to do it in 2 steps:
1390 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
1391 eval "$extractedcf"
1392 else
1393 func_error "ignoring unknown tag $tagname"
1394 fi
1395 ;;
1396 esac
1397 }
1398
1399 # func_check_version_match
1400 # Ensure that we are using m4 macros, and libtool script from the same
1401 # release of libtool.
1402 func_check_version_match ()
1403 {
1404 if test "$package_revision" != "$macro_revision"; then
1405 if test "$VERSION" != "$macro_version"; then
1406 if test -z "$macro_version"; then
1407 cat >&2 <<_LT_EOF
1408 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
1409 $progname: definition of this LT_INIT comes from an older release.
1410 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
1411 $progname: and run autoconf again.
1412 _LT_EOF
1413 else
1414 cat >&2 <<_LT_EOF
1415 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
1416 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
1417 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
1418 $progname: and run autoconf again.
1419 _LT_EOF
1420 fi
1421 else
1422 cat >&2 <<_LT_EOF
1423 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
1424 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
1425 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
1426 $progname: of $PACKAGE $VERSION and run autoconf again.
1427 _LT_EOF
1428 fi
1429
1430 exit $EXIT_MISMATCH
1431 fi
1432 }
1433
1434
1435 # Shorthand for --mode=foo, only valid as the first argument
1436 case $1 in
1437 clean|clea|cle|cl)
1438 shift; set dummy --mode clean ${1+"$@"}; shift
1439 ;;
1440 compile|compil|compi|comp|com|co|c)
1441 shift; set dummy --mode compile ${1+"$@"}; shift
1442 ;;
1443 execute|execut|execu|exec|exe|ex|e)
1444 shift; set dummy --mode execute ${1+"$@"}; shift
1445 ;;
1446 finish|finis|fini|fin|fi|f)
1447 shift; set dummy --mode finish ${1+"$@"}; shift
1448 ;;
1449 install|instal|insta|inst|ins|in|i)
1450 shift; set dummy --mode install ${1+"$@"}; shift
1451 ;;
1452 link|lin|li|l)
1453 shift; set dummy --mode link ${1+"$@"}; shift
1454 ;;
1455 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1456 shift; set dummy --mode uninstall ${1+"$@"}; shift
1457 ;;
1458 esac
1459
1460
1461
1462 # Option defaults:
1463 opt_debug=:
1464 opt_dry_run=false
1465 opt_config=false
1466 opt_preserve_dup_deps=false
1467 opt_features=false
1468 opt_finish=false
1469 opt_help=false
1470 opt_help_all=false
1471 opt_silent=:
1472 opt_warning=:
1473 opt_verbose=:
1474 opt_silent=false
1475 opt_verbose=false
1476
1477
1478 # Parse options once, thoroughly. This comes as soon as possible in the
1479 # script to make things like `--version' happen as quickly as we can.
1480 {
1481 # this just eases exit handling
1482 while test $# -gt 0; do
1483 opt="$1"
1484 shift
1485 case $opt in
1486 --debug|-x) opt_debug='set -x'
1487 func_echo "enabling shell trace mode"
1488 $opt_debug
1489 ;;
1490 --dry-run|--dryrun|-n)
1491 opt_dry_run=:
1492 ;;
1493 --config)
1494 opt_config=:
1495 func_config
1496 ;;
1497 --dlopen|-dlopen)
1498 optarg="$1"
1499 opt_dlopen="${opt_dlopen+$opt_dlopen
1500 }$optarg"
1501 shift
1502 ;;
1503 --preserve-dup-deps)
1504 opt_preserve_dup_deps=:
1505 ;;
1506 --features)
1507 opt_features=:
1508 func_features
1509 ;;
1510 --finish)
1511 opt_finish=:
1512 set dummy --mode finish ${1+"$@"}; shift
1513 ;;
1514 --help)
1515 opt_help=:
1516 ;;
1517 --help-all)
1518 opt_help_all=:
1519 opt_help=': help-all'
1520 ;;
1521 --mode)
1522 test $# = 0 && func_missing_arg $opt && break
1523 optarg="$1"
1524 opt_mode="$optarg"
1525 case $optarg in
1526 # Valid mode arguments:
1527 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1528
1529 # Catch anything else as an error
1530 *) func_error "invalid argument for $opt"
1531 exit_cmd=exit
1532 break
1533 ;;
1534 esac
1535 shift
1536 ;;
1537 --no-silent|--no-quiet)
1538 opt_silent=false
1539 preserve_args+=" $opt"
1540 ;;
1541 --no-warning|--no-warn)
1542 opt_warning=false
1543 preserve_args+=" $opt"
1544 ;;
1545 --no-verbose)
1546 opt_verbose=false
1547 preserve_args+=" $opt"
1548 ;;
1549 --silent|--quiet)
1550 opt_silent=:
1551 preserve_args+=" $opt"
1552 opt_verbose=false
1553 ;;
1554 --verbose|-v)
1555 opt_verbose=:
1556 preserve_args+=" $opt"
1557 opt_silent=false
1558 ;;
1559 --tag)
1560 test $# = 0 && func_missing_arg $opt && break
1561 optarg="$1"
1562 opt_tag="$optarg"
1563 preserve_args+=" $opt $optarg"
1564 func_enable_tag "$optarg"
1565 shift
1566 ;;
1567
1568 -\?|-h) func_usage ;;
1569 --help) func_help ;;
1570 --version) func_version ;;
1571
1572 # Separate optargs to long options:
1573 --*=*)
1574 func_split_long_opt "$opt"
1575 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1576 shift
1577 ;;
1578
1579 # Separate non-argument short options:
1580 -\?*|-h*|-n*|-v*)
1581 func_split_short_opt "$opt"
1582 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1583 shift
1584 ;;
1585
1586 --) break ;;
1587 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1588 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
1589 esac
1590 done
1591
1592 # Validate options:
1593
1594 # save first non-option argument
1595 if test "$#" -gt 0; then
1596 nonopt="$opt"
1597 shift
1598 fi
1599
1600 # preserve --debug
1601 test "$opt_debug" = : || preserve_args+=" --debug"
1602
1603 case $host in
1604 *cygwin* | *mingw* | *pw32* | *cegcc*)
1605 # don't eliminate duplications in $postdeps and $predeps
1606 opt_duplicate_compiler_generated_deps=:
1607 ;;
1608 *)
1609 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1610 ;;
1611 esac
1612
1613 $opt_help || {
1614 # Sanity checks first:
1615 func_check_version_match
1616
1617 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1618 func_fatal_configuration "not configured to build any kind of library"
1619 fi
1620
1621 # Darwin sucks
1622 eval std_shrext=\"$shrext_cmds\"
1623
1624 # Only execute mode is allowed to have -dlopen flags.
1625 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1626 func_error "unrecognized option \`-dlopen'"
1627 $ECHO "$help" 1>&2
1628 exit $EXIT_FAILURE
1629 fi
1630
1631 # Change the help message to a mode-specific one.
1632 generic_help="$help"
1633 help="Try \`$progname --help --mode=$opt_mode' for more information."
1634 }
1635
1636
1637 # Bail if the options were screwed
1638 $exit_cmd $EXIT_FAILURE
1639 }
1640
1641
1642
1643
1644 ## ----------- ##
1645 ## Main. ##
1646 ## ----------- ##
1647
1648 # func_lalib_p file
1649 # True iff FILE is a libtool `.la' library or `.lo' object file.
1650 # This function is only a basic sanity check; it will hardly flush out
1651 # determined imposters.
1652 func_lalib_p ()
1653 {
1654 test -f "$1" &&
1655 $SED -e 4q "$1" 2>/dev/null \
1656 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
1657 }
1658
1659 # func_lalib_unsafe_p file
1660 # True iff FILE is a libtool `.la' library or `.lo' object file.
1661 # This function implements the same check as func_lalib_p without
1662 # resorting to external programs. To this end, it redirects stdin and
1663 # closes it afterwards, without saving the original file descriptor.
1664 # As a safety measure, use it only where a negative result would be
1665 # fatal anyway. Works if `file' does not exist.
1666 func_lalib_unsafe_p ()
1667 {
1668 lalib_p=no
1669 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
1670 for lalib_p_l in 1 2 3 4
1671 do
1672 read lalib_p_line
1673 case "$lalib_p_line" in
1674 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
1675 esac
1676 done
1677 exec 0<&5 5<&-
1678 fi
1679 test "$lalib_p" = yes
1680 }
1681
1682 # func_ltwrapper_script_p file
1683 # True iff FILE is a libtool wrapper script
1684 # This function is only a basic sanity check; it will hardly flush out
1685 # determined imposters.
1686 func_ltwrapper_script_p ()
1687 {
1688 func_lalib_p "$1"
1689 }
1690
1691 # func_ltwrapper_executable_p file
1692 # True iff FILE is a libtool wrapper executable
1693 # This function is only a basic sanity check; it will hardly flush out
1694 # determined imposters.
1695 func_ltwrapper_executable_p ()
1696 {
1697 func_ltwrapper_exec_suffix=
1698 case $1 in
1699 *.exe) ;;
1700 *) func_ltwrapper_exec_suffix=.exe ;;
1701 esac
1702 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
1703 }
1704
1705 # func_ltwrapper_scriptname file
1706 # Assumes file is an ltwrapper_executable
1707 # uses $file to determine the appropriate filename for a
1708 # temporary ltwrapper_script.
1709 func_ltwrapper_scriptname ()
1710 {
1711 func_dirname_and_basename "$1" "" "."
1712 func_stripname '' '.exe' "$func_basename_result"
1713 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
1714 }
1715
1716 # func_ltwrapper_p file
1717 # True iff FILE is a libtool wrapper script or wrapper executable
1718 # This function is only a basic sanity check; it will hardly flush out
1719 # determined imposters.
1720 func_ltwrapper_p ()
1721 {
1722 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
1723 }
1724
1725
1726 # func_execute_cmds commands fail_cmd
1727 # Execute tilde-delimited COMMANDS.
1728 # If FAIL_CMD is given, eval that upon failure.
1729 # FAIL_CMD may read-access the current command in variable CMD!
1730 func_execute_cmds ()
1731 {
1732 $opt_debug
1733 save_ifs=$IFS; IFS='~'
1734 for cmd in $1; do
1735 IFS=$save_ifs
1736 eval cmd=\"$cmd\"
1737 func_show_eval "$cmd" "${2-:}"
1738 done
1739 IFS=$save_ifs
1740 }
1741
1742
1743 # func_source file
1744 # Source FILE, adding directory component if necessary.
1745 # Note that it is not necessary on cygwin/mingw to append a dot to
1746 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
1747 # behavior happens only for exec(3), not for open(2)! Also, sourcing
1748 # `FILE.' does not work on cygwin managed mounts.
1749 func_source ()
1750 {
1751 $opt_debug
1752 case $1 in
1753 */* | *\\*) . "$1" ;;
1754 *) . "./$1" ;;
1755 esac
1756 }
1757
1758
1759 # func_resolve_sysroot PATH
1760 # Replace a leading = in PATH with a sysroot. Store the result into
1761 # func_resolve_sysroot_result
1762 func_resolve_sysroot ()
1763 {
1764 func_resolve_sysroot_result=$1
1765 case $func_resolve_sysroot_result in
1766 =*)
1767 func_stripname '=' '' "$func_resolve_sysroot_result"
1768 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
1769 ;;
1770 esac
1771 }
1772
1773 # func_replace_sysroot PATH
1774 # If PATH begins with the sysroot, replace it with = and
1775 # store the result into func_replace_sysroot_result.
1776 func_replace_sysroot ()
1777 {
1778 case "$lt_sysroot:$1" in
1779 ?*:"$lt_sysroot"*)
1780 func_stripname "$lt_sysroot" '' "$1"
1781 func_replace_sysroot_result="=$func_stripname_result"
1782 ;;
1783 *)
1784 # Including no sysroot.
1785 func_replace_sysroot_result=$1
1786 ;;
1787 esac
1788 }
1789
1790 # func_infer_tag arg
1791 # Infer tagged configuration to use if any are available and
1792 # if one wasn't chosen via the "--tag" command line option.
1793 # Only attempt this if the compiler in the base compile
1794 # command doesn't match the default compiler.
1795 # arg is usually of the form 'gcc ...'
1796 func_infer_tag ()
1797 {
1798 $opt_debug
1799 if test -n "$available_tags" && test -z "$tagname"; then
1800 CC_quoted=
1801 for arg in $CC; do
1802 func_append_quoted CC_quoted "$arg"
1803 done
1804 CC_expanded=`func_echo_all $CC`
1805 CC_quoted_expanded=`func_echo_all $CC_quoted`
1806 case $@ in
1807 # Blanks in the command may have been stripped by the calling shell,
1808 # but not from the CC environment variable when configure was run.
1809 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1810 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
1811 # Blanks at the start of $base_compile will cause this to fail
1812 # if we don't check for them as well.
1813 *)
1814 for z in $available_tags; do
1815 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
1816 # Evaluate the configuration.
1817 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
1818 CC_quoted=
1819 for arg in $CC; do
1820 # Double-quote args containing other shell metacharacters.
1821 func_append_quoted CC_quoted "$arg"
1822 done
1823 CC_expanded=`func_echo_all $CC`
1824 CC_quoted_expanded=`func_echo_all $CC_quoted`
1825 case "$@ " in
1826 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1827 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
1828 # The compiler in the base compile command matches
1829 # the one in the tagged configuration.
1830 # Assume this is the tagged configuration we want.
1831 tagname=$z
1832 break
1833 ;;
1834 esac
1835 fi
1836 done
1837 # If $tagname still isn't set, then no tagged configuration
1838 # was found and let the user know that the "--tag" command
1839 # line option must be used.
1840 if test -z "$tagname"; then
1841 func_echo "unable to infer tagged configuration"
1842 func_fatal_error "specify a tag with \`--tag'"
1843 # else
1844 # func_verbose "using $tagname tagged configuration"
1845 fi
1846 ;;
1847 esac
1848 fi
1849 }
1850
1851
1852
1853 # func_write_libtool_object output_name pic_name nonpic_name
1854 # Create a libtool object file (analogous to a ".la" file),
1855 # but don't create it if we're doing a dry run.
1856 func_write_libtool_object ()
1857 {
1858 write_libobj=${1}
1859 if test "$build_libtool_libs" = yes; then
1860 write_lobj=\'${2}\'
1861 else
1862 write_lobj=none
1863 fi
1864
1865 if test "$build_old_libs" = yes; then
1866 write_oldobj=\'${3}\'
1867 else
1868 write_oldobj=none
1869 fi
1870
1871 $opt_dry_run || {
1872 cat >${write_libobj}T <<EOF
1873 # $write_libobj - a libtool object file
1874 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
1875 #
1876 # Please DO NOT delete this file!
1877 # It is necessary for linking the library.
1878
1879 # Name of the PIC object.
1880 pic_object=$write_lobj
1881
1882 # Name of the non-PIC object
1883 non_pic_object=$write_oldobj
1884
1885 EOF
1886 $MV "${write_libobj}T" "${write_libobj}"
1887 }
1888 }
1889
1890
1891 ##################################################
1892 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
1893 ##################################################
1894
1895 # func_convert_core_file_wine_to_w32 ARG
1896 # Helper function used by file name conversion functions when $build is *nix,
1897 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
1898 # correctly configured wine environment available, with the winepath program
1899 # in $build's $PATH.
1900 #
1901 # ARG is the $build file name to be converted to w32 format.
1902 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
1903 # be empty on error (or when ARG is empty)
1904 func_convert_core_file_wine_to_w32 ()
1905 {
1906 $opt_debug
1907 func_convert_core_file_wine_to_w32_result="$1"
1908 if test -n "$1"; then
1909 # Unfortunately, winepath does not exit with a non-zero error code, so we
1910 # are forced to check the contents of stdout. On the other hand, if the
1911 # command is not found, the shell will set an exit code of 127 and print
1912 # *an error message* to stdout. So we must check for both error code of
1913 # zero AND non-empty stdout, which explains the odd construction:
1914 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1915 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1916 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1917 $SED -e "$lt_sed_naive_backslashify"`
1918 else
1919 func_convert_core_file_wine_to_w32_result=
1920 fi
1921 fi
1922 }
1923 # end: func_convert_core_file_wine_to_w32
1924
1925
1926 # func_convert_core_path_wine_to_w32 ARG
1927 # Helper function used by path conversion functions when $build is *nix, and
1928 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
1929 # configured wine environment available, with the winepath program in $build's
1930 # $PATH. Assumes ARG has no leading or trailing path separator characters.
1931 #
1932 # ARG is path to be converted from $build format to win32.
1933 # Result is available in $func_convert_core_path_wine_to_w32_result.
1934 # Unconvertible file (directory) names in ARG are skipped; if no directory names
1935 # are convertible, then the result may be empty.
1936 func_convert_core_path_wine_to_w32 ()
1937 {
1938 $opt_debug
1939 # unfortunately, winepath doesn't convert paths, only file names
1940 func_convert_core_path_wine_to_w32_result=""
1941 if test -n "$1"; then
1942 oldIFS=$IFS
1943 IFS=:
1944 for func_convert_core_path_wine_to_w32_f in $1; do
1945 IFS=$oldIFS
1946 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1947 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1948 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1949 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
1950 else
1951 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
1952 fi
1953 fi
1954 done
1955 IFS=$oldIFS
1956 fi
1957 }
1958 # end: func_convert_core_path_wine_to_w32
1959
1960
1961 # func_cygpath ARGS...
1962 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
1963 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
1964 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
1965 # (2), returns the Cygwin file name or path in func_cygpath_result (input
1966 # file name or path is assumed to be in w32 format, as previously converted
1967 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
1968 # or path in func_cygpath_result (input file name or path is assumed to be in
1969 # Cygwin format). Returns an empty string on error.
1970 #
1971 # ARGS are passed to cygpath, with the last one being the file name or path to
1972 # be converted.
1973 #
1974 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
1975 # environment variable; do not put it in $PATH.
1976 func_cygpath ()
1977 {
1978 $opt_debug
1979 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1980 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
1981 if test "$?" -ne 0; then
1982 # on failure, ensure result is empty
1983 func_cygpath_result=
1984 fi
1985 else
1986 func_cygpath_result=
1987 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1988 fi
1989 }
1990 #end: func_cygpath
1991
1992
1993 # func_convert_core_msys_to_w32 ARG
1994 # Convert file name or path ARG from MSYS format to w32 format. Return
1995 # result in func_convert_core_msys_to_w32_result.
1996 func_convert_core_msys_to_w32 ()
1997 {
1998 $opt_debug
1999 # awkward: cmd appends spaces to result
2000 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
2001 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
2002 }
2003 #end: func_convert_core_msys_to_w32
2004
2005
2006 # func_convert_file_check ARG1 ARG2
2007 # Verify that ARG1 (a file name in $build format) was converted to $host
2008 # format in ARG2. Otherwise, emit an error message, but continue (resetting
2009 # func_to_host_file_result to ARG1).
2010 func_convert_file_check ()
2011 {
2012 $opt_debug
2013 if test -z "$2" && test -n "$1" ; then
2014 func_error "Could not determine host file name corresponding to"
2015 func_error " \`$1'"
2016 func_error "Continuing, but uninstalled executables may not work."
2017 # Fallback:
2018 func_to_host_file_result="$1"
2019 fi
2020 }
2021 # end func_convert_file_check
2022
2023
2024 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
2025 # Verify that FROM_PATH (a path in $build format) was converted to $host
2026 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
2027 # func_to_host_file_result to a simplistic fallback value (see below).
2028 func_convert_path_check ()
2029 {
2030 $opt_debug
2031 if test -z "$4" && test -n "$3"; then
2032 func_error "Could not determine the host path corresponding to"
2033 func_error " \`$3'"
2034 func_error "Continuing, but uninstalled executables may not work."
2035 # Fallback. This is a deliberately simplistic "conversion" and
2036 # should not be "improved". See libtool.info.
2037 if test "x$1" != "x$2"; then
2038 lt_replace_pathsep_chars="s|$1|$2|g"
2039 func_to_host_path_result=`echo "$3" |
2040 $SED -e "$lt_replace_pathsep_chars"`
2041 else
2042 func_to_host_path_result="$3"
2043 fi
2044 fi
2045 }
2046 # end func_convert_path_check
2047
2048
2049 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
2050 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
2051 # and appending REPL if ORIG matches BACKPAT.
2052 func_convert_path_front_back_pathsep ()
2053 {
2054 $opt_debug
2055 case $4 in
2056 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
2057 ;;
2058 esac
2059 case $4 in
2060 $2 ) func_to_host_path_result+="$3"
2061 ;;
2062 esac
2063 }
2064 # end func_convert_path_front_back_pathsep
2065
2066
2067 ##################################################
2068 # $build to $host FILE NAME CONVERSION FUNCTIONS #
2069 ##################################################
2070 # invoked via `$to_host_file_cmd ARG'
2071 #
2072 # In each case, ARG is the path to be converted from $build to $host format.
2073 # Result will be available in $func_to_host_file_result.
2074
2075
2076 # func_to_host_file ARG
2077 # Converts the file name ARG from $build format to $host format. Return result
2078 # in func_to_host_file_result.
2079 func_to_host_file ()
2080 {
2081 $opt_debug
2082 $to_host_file_cmd "$1"
2083 }
2084 # end func_to_host_file
2085
2086
2087 # func_to_tool_file ARG LAZY
2088 # converts the file name ARG from $build format to toolchain format. Return
2089 # result in func_to_tool_file_result. If the conversion in use is listed
2090 # in (the comma separated) LAZY, no conversion takes place.
2091 func_to_tool_file ()
2092 {
2093 $opt_debug
2094 case ,$2, in
2095 *,"$to_tool_file_cmd",*)
2096 func_to_tool_file_result=$1
2097 ;;
2098 *)
2099 $to_tool_file_cmd "$1"
2100 func_to_tool_file_result=$func_to_host_file_result
2101 ;;
2102 esac
2103 }
2104 # end func_to_tool_file
2105
2106
2107 # func_convert_file_noop ARG
2108 # Copy ARG to func_to_host_file_result.
2109 func_convert_file_noop ()
2110 {
2111 func_to_host_file_result="$1"
2112 }
2113 # end func_convert_file_noop
2114
2115
2116 # func_convert_file_msys_to_w32 ARG
2117 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
2118 # conversion to w32 is not available inside the cwrapper. Returns result in
2119 # func_to_host_file_result.
2120 func_convert_file_msys_to_w32 ()
2121 {
2122 $opt_debug
2123 func_to_host_file_result="$1"
2124 if test -n "$1"; then
2125 func_convert_core_msys_to_w32 "$1"
2126 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
2127 fi
2128 func_convert_file_check "$1" "$func_to_host_file_result"
2129 }
2130 # end func_convert_file_msys_to_w32
2131
2132
2133 # func_convert_file_cygwin_to_w32 ARG
2134 # Convert file name ARG from Cygwin to w32 format. Returns result in
2135 # func_to_host_file_result.
2136 func_convert_file_cygwin_to_w32 ()
2137 {
2138 $opt_debug
2139 func_to_host_file_result="$1"
2140 if test -n "$1"; then
2141 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
2142 # LT_CYGPATH in this case.
2143 func_to_host_file_result=`cygpath -m "$1"`
2144 fi
2145 func_convert_file_check "$1" "$func_to_host_file_result"
2146 }
2147 # end func_convert_file_cygwin_to_w32
2148
2149
2150 # func_convert_file_nix_to_w32 ARG
2151 # Convert file name ARG from *nix to w32 format. Requires a wine environment
2152 # and a working winepath. Returns result in func_to_host_file_result.
2153 func_convert_file_nix_to_w32 ()
2154 {
2155 $opt_debug
2156 func_to_host_file_result="$1"
2157 if test -n "$1"; then
2158 func_convert_core_file_wine_to_w32 "$1"
2159 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
2160 fi
2161 func_convert_file_check "$1" "$func_to_host_file_result"
2162 }
2163 # end func_convert_file_nix_to_w32
2164
2165
2166 # func_convert_file_msys_to_cygwin ARG
2167 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
2168 # Returns result in func_to_host_file_result.
2169 func_convert_file_msys_to_cygwin ()
2170 {
2171 $opt_debug
2172 func_to_host_file_result="$1"
2173 if test -n "$1"; then
2174 func_convert_core_msys_to_w32 "$1"
2175 func_cygpath -u "$func_convert_core_msys_to_w32_result"
2176 func_to_host_file_result="$func_cygpath_result"
2177 fi
2178 func_convert_file_check "$1" "$func_to_host_file_result"
2179 }
2180 # end func_convert_file_msys_to_cygwin
2181
2182
2183 # func_convert_file_nix_to_cygwin ARG
2184 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
2185 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
2186 # in func_to_host_file_result.
2187 func_convert_file_nix_to_cygwin ()
2188 {
2189 $opt_debug
2190 func_to_host_file_result="$1"
2191 if test -n "$1"; then
2192 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
2193 func_convert_core_file_wine_to_w32 "$1"
2194 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
2195 func_to_host_file_result="$func_cygpath_result"
2196 fi
2197 func_convert_file_check "$1" "$func_to_host_file_result"
2198 }
2199 # end func_convert_file_nix_to_cygwin
2200
2201
2202 #############################################
2203 # $build to $host PATH CONVERSION FUNCTIONS #
2204 #############################################
2205 # invoked via `$to_host_path_cmd ARG'
2206 #
2207 # In each case, ARG is the path to be converted from $build to $host format.
2208 # The result will be available in $func_to_host_path_result.
2209 #
2210 # Path separators are also converted from $build format to $host format. If
2211 # ARG begins or ends with a path separator character, it is preserved (but
2212 # converted to $host format) on output.
2213 #
2214 # All path conversion functions are named using the following convention:
2215 # file name conversion function : func_convert_file_X_to_Y ()
2216 # path conversion function : func_convert_path_X_to_Y ()
2217 # where, for any given $build/$host combination the 'X_to_Y' value is the
2218 # same. If conversion functions are added for new $build/$host combinations,
2219 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
2220 # will break.
2221
2222
2223 # func_init_to_host_path_cmd
2224 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
2225 # appropriate value, based on the value of $to_host_file_cmd.
2226 to_host_path_cmd=
2227 func_init_to_host_path_cmd ()
2228 {
2229 $opt_debug
2230 if test -z "$to_host_path_cmd"; then
2231 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
2232 to_host_path_cmd="func_convert_path_${func_stripname_result}"
2233 fi
2234 }
2235
2236
2237 # func_to_host_path ARG
2238 # Converts the path ARG from $build format to $host format. Return result
2239 # in func_to_host_path_result.
2240 func_to_host_path ()
2241 {
2242 $opt_debug
2243 func_init_to_host_path_cmd
2244 $to_host_path_cmd "$1"
2245 }
2246 # end func_to_host_path
2247
2248
2249 # func_convert_path_noop ARG
2250 # Copy ARG to func_to_host_path_result.
2251 func_convert_path_noop ()
2252 {
2253 func_to_host_path_result="$1"
2254 }
2255 # end func_convert_path_noop
2256
2257
2258 # func_convert_path_msys_to_w32 ARG
2259 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
2260 # conversion to w32 is not available inside the cwrapper. Returns result in
2261 # func_to_host_path_result.
2262 func_convert_path_msys_to_w32 ()
2263 {
2264 $opt_debug
2265 func_to_host_path_result="$1"
2266 if test -n "$1"; then
2267 # Remove leading and trailing path separator characters from ARG. MSYS
2268 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
2269 # and winepath ignores them completely.
2270 func_stripname : : "$1"
2271 func_to_host_path_tmp1=$func_stripname_result
2272 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
2273 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
2274 func_convert_path_check : ";" \
2275 "$func_to_host_path_tmp1" "$func_to_host_path_result"
2276 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
2277 fi
2278 }
2279 # end func_convert_path_msys_to_w32
2280
2281
2282 # func_convert_path_cygwin_to_w32 ARG
2283 # Convert path ARG from Cygwin to w32 format. Returns result in
2284 # func_to_host_file_result.
2285 func_convert_path_cygwin_to_w32 ()
2286 {
2287 $opt_debug
2288 func_to_host_path_result="$1"
2289 if test -n "$1"; then
2290 # See func_convert_path_msys_to_w32:
2291 func_stripname : : "$1"
2292 func_to_host_path_tmp1=$func_stripname_result
2293 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
2294 func_convert_path_check : ";" \
2295 "$func_to_host_path_tmp1" "$func_to_host_path_result"
2296 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
2297 fi
2298 }
2299 # end func_convert_path_cygwin_to_w32
2300
2301
2302 # func_convert_path_nix_to_w32 ARG
2303 # Convert path ARG from *nix to w32 format. Requires a wine environment and
2304 # a working winepath. Returns result in func_to_host_file_result.
2305 func_convert_path_nix_to_w32 ()
2306 {
2307 $opt_debug
2308 func_to_host_path_result="$1"
2309 if test -n "$1"; then
2310 # See func_convert_path_msys_to_w32:
2311 func_stripname : : "$1"
2312 func_to_host_path_tmp1=$func_stripname_result
2313 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
2314 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
2315 func_convert_path_check : ";" \
2316 "$func_to_host_path_tmp1" "$func_to_host_path_result"
2317 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
2318 fi
2319 }
2320 # end func_convert_path_nix_to_w32
2321
2322
2323 # func_convert_path_msys_to_cygwin ARG
2324 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
2325 # Returns result in func_to_host_file_result.
2326 func_convert_path_msys_to_cygwin ()
2327 {
2328 $opt_debug
2329 func_to_host_path_result="$1"
2330 if test -n "$1"; then
2331 # See func_convert_path_msys_to_w32:
2332 func_stripname : : "$1"
2333 func_to_host_path_tmp1=$func_stripname_result
2334 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
2335 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
2336 func_to_host_path_result="$func_cygpath_result"
2337 func_convert_path_check : : \
2338 "$func_to_host_path_tmp1" "$func_to_host_path_result"
2339 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
2340 fi
2341 }
2342 # end func_convert_path_msys_to_cygwin
2343
2344
2345 # func_convert_path_nix_to_cygwin ARG
2346 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
2347 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
2348 # func_to_host_file_result.
2349 func_convert_path_nix_to_cygwin ()
2350 {
2351 $opt_debug
2352 func_to_host_path_result="$1"
2353 if test -n "$1"; then
2354 # Remove leading and trailing path separator characters from
2355 # ARG. msys behavior is inconsistent here, cygpath turns them
2356 # into '.;' and ';.', and winepath ignores them completely.
2357 func_stripname : : "$1"
2358 func_to_host_path_tmp1=$func_stripname_result
2359 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
2360 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
2361 func_to_host_path_result="$func_cygpath_result"
2362 func_convert_path_check : : \
2363 "$func_to_host_path_tmp1" "$func_to_host_path_result"
2364 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
2365 fi
2366 }
2367 # end func_convert_path_nix_to_cygwin
2368
2369
2370 # func_mode_compile arg...
2371 func_mode_compile ()
2372 {
2373 $opt_debug
2374 # Get the compilation command and the source file.
2375 base_compile=
2376 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
2377 suppress_opt=yes
2378 suppress_output=
2379 arg_mode=normal
2380 libobj=
2381 later=
2382 pie_flag=
2383
2384 for arg
2385 do
2386 case $arg_mode in
2387 arg )
2388 # do not "continue". Instead, add this to base_compile
2389 lastarg="$arg"
2390 arg_mode=normal
2391 ;;
2392
2393 target )
2394 libobj="$arg"
2395 arg_mode=normal
2396 continue
2397 ;;
2398
2399 normal )
2400 # Accept any command-line options.
2401 case $arg in
2402 -o)
2403 test -n "$libobj" && \
2404 func_fatal_error "you cannot specify \`-o' more than once"
2405 arg_mode=target
2406 continue
2407 ;;
2408
2409 -pie | -fpie | -fPIE)
2410 pie_flag+=" $arg"
2411 continue
2412 ;;
2413
2414 -shared | -static | -prefer-pic | -prefer-non-pic)
2415 later+=" $arg"
2416 continue
2417 ;;
2418
2419 -no-suppress)
2420 suppress_opt=no
2421 continue
2422 ;;
2423
2424 -Xcompiler)
2425 arg_mode=arg # the next one goes into the "base_compile" arg list
2426 continue # The current "srcfile" will either be retained or
2427 ;; # replaced later. I would guess that would be a bug.
2428
2429 -Wc,*)
2430 func_stripname '-Wc,' '' "$arg"
2431 args=$func_stripname_result
2432 lastarg=
2433 save_ifs="$IFS"; IFS=','
2434 for arg in $args; do
2435 IFS="$save_ifs"
2436 func_append_quoted lastarg "$arg"
2437 done
2438 IFS="$save_ifs"
2439 func_stripname ' ' '' "$lastarg"
2440 lastarg=$func_stripname_result
2441
2442 # Add the arguments to base_compile.
2443 base_compile+=" $lastarg"
2444 continue
2445 ;;
2446
2447 *)
2448 # Accept the current argument as the source file.
2449 # The previous "srcfile" becomes the current argument.
2450 #
2451 lastarg="$srcfile"
2452 srcfile="$arg"
2453 ;;
2454 esac # case $arg
2455 ;;
2456 esac # case $arg_mode
2457
2458 # Aesthetically quote the previous argument.
2459 func_append_quoted base_compile "$lastarg"
2460 done # for arg
2461
2462 case $arg_mode in
2463 arg)
2464 func_fatal_error "you must specify an argument for -Xcompile"
2465 ;;
2466 target)
2467 func_fatal_error "you must specify a target with \`-o'"
2468 ;;
2469 *)
2470 # Get the name of the library object.
2471 test -z "$libobj" && {
2472 func_basename "$srcfile"
2473 libobj="$func_basename_result"
2474 }
2475 ;;
2476 esac
2477
2478 # Recognize several different file suffixes.
2479 # If the user specifies -o file.o, it is replaced with file.lo
2480 case $libobj in
2481 *.[cCFSifmso] | \
2482 *.ada | *.adb | *.ads | *.asm | \
2483 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
2484 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
2485 func_xform "$libobj"
2486 libobj=$func_xform_result
2487 ;;
2488 esac
2489
2490 case $libobj in
2491 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
2492 *)
2493 func_fatal_error "cannot determine name of library object from \`$libobj'"
2494 ;;
2495 esac
2496
2497 func_infer_tag $base_compile
2498
2499 for arg in $later; do
2500 case $arg in
2501 -shared)
2502 test "$build_libtool_libs" != yes && \
2503 func_fatal_configuration "can not build a shared library"
2504 build_old_libs=no
2505 continue
2506 ;;
2507
2508 -static)
2509 build_libtool_libs=no
2510 build_old_libs=yes
2511 continue
2512 ;;
2513
2514 -prefer-pic)
2515 pic_mode=yes
2516 continue
2517 ;;
2518
2519 -prefer-non-pic)
2520 pic_mode=no
2521 continue
2522 ;;
2523 esac
2524 done
2525
2526 func_quote_for_eval "$libobj"
2527 test "X$libobj" != "X$func_quote_for_eval_result" \
2528 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
2529 && func_warning "libobj name \`$libobj' may not contain shell special characters."
2530 func_dirname_and_basename "$obj" "/" ""
2531 objname="$func_basename_result"
2532 xdir="$func_dirname_result"
2533 lobj=${xdir}$objdir/$objname
2534
2535 test -z "$base_compile" && \
2536 func_fatal_help "you must specify a compilation command"
2537
2538 # Delete any leftover library objects.
2539 if test "$build_old_libs" = yes; then
2540 removelist="$obj $lobj $libobj ${libobj}T"
2541 else
2542 removelist="$lobj $libobj ${libobj}T"
2543 fi
2544
2545 # On Cygwin there's no "real" PIC flag so we must build both object types
2546 case $host_os in
2547 cygwin* | mingw* | pw32* | os2* | cegcc*)
2548 pic_mode=default
2549 ;;
2550 esac
2551 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
2552 # non-PIC code in shared libraries is not supported
2553 pic_mode=default
2554 fi
2555
2556 # Calculate the filename of the output object if compiler does
2557 # not support -o with -c
2558 if test "$compiler_c_o" = no; then
2559 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
2560 lockfile="$output_obj.lock"
2561 else
2562 output_obj=
2563 need_locks=no
2564 lockfile=
2565 fi
2566
2567 # Lock this critical section if it is needed
2568 # We use this script file to make the link, it avoids creating a new file
2569 if test "$need_locks" = yes; then
2570 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2571 func_echo "Waiting for $lockfile to be removed"
2572 sleep 2
2573 done
2574 elif test "$need_locks" = warn; then
2575 if test -f "$lockfile"; then
2576 $ECHO "\
2577 *** ERROR, $lockfile exists and contains:
2578 `cat $lockfile 2>/dev/null`
2579
2580 This indicates that another process is trying to use the same
2581 temporary object file, and libtool could not work around it because
2582 your compiler does not support \`-c' and \`-o' together. If you
2583 repeat this compilation, it may succeed, by chance, but you had better
2584 avoid parallel builds (make -j) in this platform, or get a better
2585 compiler."
2586
2587 $opt_dry_run || $RM $removelist
2588 exit $EXIT_FAILURE
2589 fi
2590 removelist+=" $output_obj"
2591 $ECHO "$srcfile" > "$lockfile"
2592 fi
2593
2594 $opt_dry_run || $RM $removelist
2595 removelist+=" $lockfile"
2596 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
2597
2598 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
2599 srcfile=$func_to_tool_file_result
2600 func_quote_for_eval "$srcfile"
2601 qsrcfile=$func_quote_for_eval_result
2602
2603 # Only build a PIC object if we are building libtool libraries.
2604 if test "$build_libtool_libs" = yes; then
2605 # Without this assignment, base_compile gets emptied.
2606 fbsd_hideous_sh_bug=$base_compile
2607
2608 if test "$pic_mode" != no; then
2609 command="$base_compile $qsrcfile $pic_flag"
2610 else
2611 # Don't build PIC code
2612 command="$base_compile $qsrcfile"
2613 fi
2614
2615 func_mkdir_p "$xdir$objdir"
2616
2617 if test -z "$output_obj"; then
2618 # Place PIC objects in $objdir
2619 command+=" -o $lobj"
2620 fi
2621
2622 func_show_eval_locale "$command" \
2623 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
2624
2625 if test "$need_locks" = warn &&
2626 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2627 $ECHO "\
2628 *** ERROR, $lockfile contains:
2629 `cat $lockfile 2>/dev/null`
2630
2631 but it should contain:
2632 $srcfile
2633
2634 This indicates that another process is trying to use the same
2635 temporary object file, and libtool could not work around it because
2636 your compiler does not support \`-c' and \`-o' together. If you
2637 repeat this compilation, it may succeed, by chance, but you had better
2638 avoid parallel builds (make -j) in this platform, or get a better
2639 compiler."
2640
2641 $opt_dry_run || $RM $removelist
2642 exit $EXIT_FAILURE
2643 fi
2644
2645 # Just move the object if needed, then go on to compile the next one
2646 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
2647 func_show_eval '$MV "$output_obj" "$lobj"' \
2648 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
2649 fi
2650
2651 # Allow error messages only from the first compilation.
2652 if test "$suppress_opt" = yes; then
2653 suppress_output=' >/dev/null 2>&1'
2654 fi
2655 fi
2656
2657 # Only build a position-dependent object if we build old libraries.
2658 if test "$build_old_libs" = yes; then
2659 if test "$pic_mode" != yes; then
2660 # Don't build PIC code
2661 command="$base_compile $qsrcfile$pie_flag"
2662 else
2663 command="$base_compile $qsrcfile $pic_flag"
2664 fi
2665 if test "$compiler_c_o" = yes; then
2666 command+=" -o $obj"
2667 fi
2668
2669 # Suppress compiler output if we already did a PIC compilation.
2670 command+="$suppress_output"
2671 func_show_eval_locale "$command" \
2672 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
2673
2674 if test "$need_locks" = warn &&
2675 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2676 $ECHO "\
2677 *** ERROR, $lockfile contains:
2678 `cat $lockfile 2>/dev/null`
2679
2680 but it should contain:
2681 $srcfile
2682
2683 This indicates that another process is trying to use the same
2684 temporary object file, and libtool could not work around it because
2685 your compiler does not support \`-c' and \`-o' together. If you
2686 repeat this compilation, it may succeed, by chance, but you had better
2687 avoid parallel builds (make -j) in this platform, or get a better
2688 compiler."
2689
2690 $opt_dry_run || $RM $removelist
2691 exit $EXIT_FAILURE
2692 fi
2693
2694 # Just move the object if needed
2695 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
2696 func_show_eval '$MV "$output_obj" "$obj"' \
2697 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
2698 fi
2699 fi
2700
2701 $opt_dry_run || {
2702 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
2703
2704 # Unlock the critical section if it was locked
2705 if test "$need_locks" != no; then
2706 removelist=$lockfile
2707 $RM "$lockfile"
2708 fi
2709 }
2710
2711 exit $EXIT_SUCCESS
2712 }
2713
2714 $opt_help || {
2715 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
2716 }
2717
2718 func_mode_help ()
2719 {
2720 # We need to display help for each of the modes.
2721 case $opt_mode in
2722 "")
2723 # Generic help is extracted from the usage comments
2724 # at the start of this file.
2725 func_help
2726 ;;
2727
2728 clean)
2729 $ECHO \
2730 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
2731
2732 Remove files from the build directory.
2733
2734 RM is the name of the program to use to delete files associated with each FILE
2735 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2736 to RM.
2737
2738 If FILE is a libtool library, object or program, all the files associated
2739 with it are deleted. Otherwise, only FILE itself is deleted using RM."
2740 ;;
2741
2742 compile)
2743 $ECHO \
2744 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
2745
2746 Compile a source file into a libtool library object.
2747
2748 This mode accepts the following additional options:
2749
2750 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
2751 -no-suppress do not suppress compiler output for multiple passes
2752 -prefer-pic try to build PIC objects only
2753 -prefer-non-pic try to build non-PIC objects only
2754 -shared do not build a \`.o' file suitable for static linking
2755 -static only build a \`.o' file suitable for static linking
2756 -Wc,FLAG pass FLAG directly to the compiler
2757
2758 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
2759 from the given SOURCEFILE.
2760
2761 The output file name is determined by removing the directory component from
2762 SOURCEFILE, then substituting the C source code suffix \`.c' with the
2763 library object suffix, \`.lo'."
2764 ;;
2765
2766 execute)
2767 $ECHO \
2768 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
2769
2770 Automatically set library path, then run a program.
2771
2772 This mode accepts the following additional options:
2773
2774 -dlopen FILE add the directory containing FILE to the library path
2775
2776 This mode sets the library path environment variable according to \`-dlopen'
2777 flags.
2778
2779 If any of the ARGS are libtool executable wrappers, then they are translated
2780 into their corresponding uninstalled binary, and any of their required library
2781 directories are added to the library path.
2782
2783 Then, COMMAND is executed, with ARGS as arguments."
2784 ;;
2785
2786 finish)
2787 $ECHO \
2788 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
2789
2790 Complete the installation of libtool libraries.
2791
2792 Each LIBDIR is a directory that contains libtool libraries.
2793
2794 The commands that this mode executes may require superuser privileges. Use
2795 the \`--dry-run' option if you just want to see what would be executed."
2796 ;;
2797
2798 install)
2799 $ECHO \
2800 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
2801
2802 Install executables or libraries.
2803
2804 INSTALL-COMMAND is the installation command. The first component should be
2805 either the \`install' or \`cp' program.
2806
2807 The following components of INSTALL-COMMAND are treated specially:
2808
2809 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
2810
2811 The rest of the components are interpreted as arguments to that command (only
2812 BSD-compatible install options are recognized)."
2813 ;;
2814
2815 link)
2816 $ECHO \
2817 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
2818
2819 Link object files or libraries together to form another library, or to
2820 create an executable program.
2821
2822 LINK-COMMAND is a command using the C compiler that you would use to create
2823 a program from several object files.
2824
2825 The following components of LINK-COMMAND are treated specially:
2826
2827 -all-static do not do any dynamic linking at all
2828 -avoid-version do not add a version suffix if possible
2829 -bindir BINDIR specify path to binaries directory (for systems where
2830 libraries must be found in the PATH setting at runtime)
2831 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
2832 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
2833 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
2834 -export-symbols SYMFILE
2835 try to export only the symbols listed in SYMFILE
2836 -export-symbols-regex REGEX
2837 try to export only the symbols matching REGEX
2838 -LLIBDIR search LIBDIR for required installed libraries
2839 -lNAME OUTPUT-FILE requires the installed library libNAME
2840 -module build a library that can dlopened
2841 -no-fast-install disable the fast-install mode
2842 -no-install link a not-installable executable
2843 -no-undefined declare that a library does not refer to external symbols
2844 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2845 -objectlist FILE Use a list of object files found in FILE to specify objects
2846 -precious-files-regex REGEX
2847 don't remove output files matching REGEX
2848 -release RELEASE specify package release information
2849 -rpath LIBDIR the created library will eventually be installed in LIBDIR
2850 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
2851 -shared only do dynamic linking of libtool libraries
2852 -shrext SUFFIX override the standard shared library file extension
2853 -static do not do any dynamic linking of uninstalled libtool libraries
2854 -static-libtool-libs
2855 do not do any dynamic linking of libtool libraries
2856 -version-info CURRENT[:REVISION[:AGE]]
2857 specify library version info [each variable defaults to 0]
2858 -weak LIBNAME declare that the target provides the LIBNAME interface
2859 -Wc,FLAG
2860 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
2861 -Wl,FLAG
2862 -Xlinker FLAG pass linker-specific FLAG directly to the linker
2863 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
2864
2865 All other options (arguments beginning with \`-') are ignored.
2866
2867 Every other argument is treated as a filename. Files ending in \`.la' are
2868 treated as uninstalled libtool libraries, other files are standard or library
2869 object files.
2870
2871 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2872 only library objects (\`.lo' files) may be specified, and \`-rpath' is
2873 required, except when creating a convenience library.
2874
2875 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2876 using \`ar' and \`ranlib', or on Windows using \`lib'.
2877
2878 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
2879 is created, otherwise an executable program is created."
2880 ;;
2881
2882 uninstall)
2883 $ECHO \
2884 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
2885
2886 Remove libraries from an installation directory.
2887
2888 RM is the name of the program to use to delete files associated with each FILE
2889 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2890 to RM.
2891
2892 If FILE is a libtool library, all the files associated with it are deleted.
2893 Otherwise, only FILE itself is deleted using RM."
2894 ;;
2895
2896 *)
2897 func_fatal_help "invalid operation mode \`$opt_mode'"
2898 ;;
2899 esac
2900
2901 echo
2902 $ECHO "Try \`$progname --help' for more information about other modes."
2903 }
2904
2905 # Now that we've collected a possible --mode arg, show help if necessary
2906 if $opt_help; then
2907 if test "$opt_help" = :; then
2908 func_mode_help
2909 else
2910 {
2911 func_help noexit
2912 for opt_mode in compile link execute install finish uninstall clean; do
2913 func_mode_help
2914 done
2915 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
2916 {
2917 func_help noexit
2918 for opt_mode in compile link execute install finish uninstall clean; do
2919 echo
2920 func_mode_help
2921 done
2922 } |
2923 sed '1d
2924 /^When reporting/,/^Report/{
2925 H
2926 d
2927 }
2928 $x
2929 /information about other modes/d
2930 /more detailed .*MODE/d
2931 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
2932 fi
2933 exit $?
2934 fi
2935
2936
2937 # func_mode_execute arg...
2938 func_mode_execute ()
2939 {
2940 $opt_debug
2941 # The first argument is the command name.
2942 cmd="$nonopt"
2943 test -z "$cmd" && \
2944 func_fatal_help "you must specify a COMMAND"
2945
2946 # Handle -dlopen flags immediately.
2947 for file in $opt_dlopen; do
2948 test -f "$file" \
2949 || func_fatal_help "\`$file' is not a file"
2950
2951 dir=
2952 case $file in
2953 *.la)
2954 func_resolve_sysroot "$file"
2955 file=$func_resolve_sysroot_result
2956
2957 # Check to see that this really is a libtool archive.
2958 func_lalib_unsafe_p "$file" \
2959 || func_fatal_help "\`$lib' is not a valid libtool archive"
2960
2961 # Read the libtool library.
2962 dlname=
2963 library_names=
2964 func_source "$file"
2965
2966 # Skip this library if it cannot be dlopened.
2967 if test -z "$dlname"; then
2968 # Warn if it was a shared library.
2969 test -n "$library_names" && \
2970 func_warning "\`$file' was not linked with \`-export-dynamic'"
2971 continue
2972 fi
2973
2974 func_dirname "$file" "" "."
2975 dir="$func_dirname_result"
2976
2977 if test -f "$dir/$objdir/$dlname"; then
2978 dir+="/$objdir"
2979 else
2980 if test ! -f "$dir/$dlname"; then
2981 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
2982 fi
2983 fi
2984 ;;
2985
2986 *.lo)
2987 # Just add the directory containing the .lo file.
2988 func_dirname "$file" "" "."
2989 dir="$func_dirname_result"
2990 ;;
2991
2992 *)
2993 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
2994 continue
2995 ;;
2996 esac
2997
2998 # Get the absolute pathname.
2999 absdir=`cd "$dir" && pwd`
3000 test -n "$absdir" && dir="$absdir"
3001
3002 # Now add the directory to shlibpath_var.
3003 if eval "test -z \"\$$shlibpath_var\""; then
3004 eval "$shlibpath_var=\"\$dir\""
3005 else
3006 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
3007 fi
3008 done
3009
3010 # This variable tells wrapper scripts just to set shlibpath_var
3011 # rather than running their programs.
3012 libtool_execute_magic="$magic"
3013
3014 # Check if any of the arguments is a wrapper script.
3015 args=
3016 for file
3017 do
3018 case $file in
3019 -* | *.la | *.lo ) ;;
3020 *)
3021 # Do a test to see if this is really a libtool program.
3022 if func_ltwrapper_script_p "$file"; then
3023 func_source "$file"
3024 # Transform arg to wrapped name.
3025 file="$progdir/$program"
3026 elif func_ltwrapper_executable_p "$file"; then
3027 func_ltwrapper_scriptname "$file"
3028 func_source "$func_ltwrapper_scriptname_result"
3029 # Transform arg to wrapped name.
3030 file="$progdir/$program"
3031 fi
3032 ;;
3033 esac
3034 # Quote arguments (to preserve shell metacharacters).
3035 func_append_quoted args "$file"
3036 done
3037
3038 if test "X$opt_dry_run" = Xfalse; then
3039 if test -n "$shlibpath_var"; then
3040 # Export the shlibpath_var.
3041 eval "export $shlibpath_var"
3042 fi
3043
3044 # Restore saved environment variables
3045 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
3046 do
3047 eval "if test \"\${save_$lt_var+set}\" = set; then
3048 $lt_var=\$save_$lt_var; export $lt_var
3049 else
3050 $lt_unset $lt_var
3051 fi"
3052 done
3053
3054 # Now prepare to actually exec the command.
3055 exec_cmd="\$cmd$args"
3056 else
3057 # Display what would be done.
3058 if test -n "$shlibpath_var"; then
3059 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
3060 echo "export $shlibpath_var"
3061 fi
3062 $ECHO "$cmd$args"
3063 exit $EXIT_SUCCESS
3064 fi
3065 }
3066
3067 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
3068
3069
3070 # func_mode_finish arg...
3071 func_mode_finish ()
3072 {
3073 $opt_debug
3074 libs=
3075 libdirs=
3076 admincmds=
3077
3078 for opt in "$nonopt" ${1+"$@"}
3079 do
3080 if test -d "$opt"; then
3081 libdirs+=" $opt"
3082
3083 elif test -f "$opt"; then
3084 if func_lalib_unsafe_p "$opt"; then
3085 libs+=" $opt"
3086 else
3087 func_warning "\`$opt' is not a valid libtool archive"
3088 fi
3089
3090 else
3091 func_fatal_error "invalid argument \`$opt'"
3092 fi
3093 done
3094
3095 if test -n "$libs"; then
3096 if test -n "$lt_sysroot"; then
3097 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
3098 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
3099 else
3100 sysroot_cmd=
3101 fi
3102
3103 # Remove sysroot references
3104 if $opt_dry_run; then
3105 for lib in $libs; do
3106 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
3107 done
3108 else
3109 tmpdir=`func_mktempdir`
3110 for lib in $libs; do
3111 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
3112 > $tmpdir/tmp-la
3113 mv -f $tmpdir/tmp-la $lib
3114 done
3115 ${RM}r "$tmpdir"
3116 fi
3117 fi
3118
3119 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
3120 for libdir in $libdirs; do
3121 if test -n "$finish_cmds"; then
3122 # Do each command in the finish commands.
3123 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
3124 '"$cmd"'"'
3125 fi
3126 if test -n "$finish_eval"; then
3127 # Do the single finish_eval.
3128 eval cmds=\"$finish_eval\"
3129 $opt_dry_run || eval "$cmds" || admincmds+="
3130 $cmds"
3131 fi
3132 done
3133 fi
3134
3135 # Exit here if they wanted silent mode.
3136 $opt_silent && exit $EXIT_SUCCESS
3137
3138 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
3139 echo "----------------------------------------------------------------------"
3140 echo "Libraries have been installed in:"
3141 for libdir in $libdirs; do
3142 $ECHO " $libdir"
3143 done
3144 echo
3145 echo "If you ever happen to want to link against installed libraries"
3146 echo "in a given directory, LIBDIR, you must either use libtool, and"
3147 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
3148 echo "flag during linking and do at least one of the following:"
3149 if test -n "$shlibpath_var"; then
3150 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
3151 echo " during execution"
3152 fi
3153 if test -n "$runpath_var"; then
3154 echo " - add LIBDIR to the \`$runpath_var' environment variable"
3155 echo " during linking"
3156 fi
3157 if test -n "$hardcode_libdir_flag_spec"; then
3158 libdir=LIBDIR
3159 eval flag=\"$hardcode_libdir_flag_spec\"
3160
3161 $ECHO " - use the \`$flag' linker flag"
3162 fi
3163 if test -n "$admincmds"; then
3164 $ECHO " - have your system administrator run these commands:$admincmds"
3165 fi
3166 if test -f /etc/ld.so.conf; then
3167 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
3168 fi
3169 echo
3170
3171 echo "See any operating system documentation about shared libraries for"
3172 case $host in
3173 solaris2.[6789]|solaris2.1[0-9])
3174 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
3175 echo "pages."
3176 ;;
3177 *)
3178 echo "more information, such as the ld(1) and ld.so(8) manual pages."
3179 ;;
3180 esac
3181 echo "----------------------------------------------------------------------"
3182 fi
3183 exit $EXIT_SUCCESS
3184 }
3185
3186 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
3187
3188
3189 # func_mode_install arg...
3190 func_mode_install ()
3191 {
3192 $opt_debug
3193 # There may be an optional sh(1) argument at the beginning of
3194 # install_prog (especially on Windows NT).
3195 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
3196 # Allow the use of GNU shtool's install command.
3197 case $nonopt in *shtool*) :;; *) false;; esac; then
3198 # Aesthetically quote it.
3199 func_quote_for_eval "$nonopt"
3200 install_prog="$func_quote_for_eval_result "
3201 arg=$1
3202 shift
3203 else
3204 install_prog=
3205 arg=$nonopt
3206 fi
3207
3208 # The real first argument should be the name of the installation program.
3209 # Aesthetically quote it.
3210 func_quote_for_eval "$arg"
3211 install_prog+="$func_quote_for_eval_result"
3212 install_shared_prog=$install_prog
3213 case " $install_prog " in
3214 *[\\\ /]cp\ *) install_cp=: ;;
3215 *) install_cp=false ;;
3216 esac
3217
3218 # We need to accept at least all the BSD install flags.
3219 dest=
3220 files=
3221 opts=
3222 prev=
3223 install_type=
3224 isdir=no
3225 stripme=
3226 no_mode=:
3227 for arg
3228 do
3229 arg2=
3230 if test -n "$dest"; then
3231 files+=" $dest"
3232 dest=$arg
3233 continue
3234 fi
3235
3236 case $arg in
3237 -d) isdir=yes ;;
3238 -f)
3239 if $install_cp; then :; else
3240 prev=$arg
3241 fi
3242 ;;
3243 -g | -m | -o)
3244 prev=$arg
3245 ;;
3246 -s)
3247 stripme=" -s"
3248 continue
3249 ;;
3250 -*)
3251 ;;
3252 *)
3253 # If the previous option needed an argument, then skip it.
3254 if test -n "$prev"; then
3255 if test "x$prev" = x-m && test -n "$install_override_mode"; then
3256 arg2=$install_override_mode
3257 no_mode=false
3258 fi
3259 prev=
3260 else
3261 dest=$arg
3262 continue
3263 fi
3264 ;;
3265 esac
3266
3267 # Aesthetically quote the argument.
3268 func_quote_for_eval "$arg"
3269 install_prog+=" $func_quote_for_eval_result"
3270 if test -n "$arg2"; then
3271 func_quote_for_eval "$arg2"
3272 fi
3273 install_shared_prog+=" $func_quote_for_eval_result"
3274 done
3275
3276 test -z "$install_prog" && \
3277 func_fatal_help "you must specify an install program"
3278
3279 test -n "$prev" && \
3280 func_fatal_help "the \`$prev' option requires an argument"
3281
3282 if test -n "$install_override_mode" && $no_mode; then
3283 if $install_cp; then :; else
3284 func_quote_for_eval "$install_override_mode"
3285 install_shared_prog+=" -m $func_quote_for_eval_result"
3286 fi
3287 fi
3288
3289 if test -z "$files"; then
3290 if test -z "$dest"; then
3291 func_fatal_help "no file or destination specified"
3292 else
3293 func_fatal_help "you must specify a destination"
3294 fi
3295 fi
3296
3297 # Strip any trailing slash from the destination.
3298 func_stripname '' '/' "$dest"
3299 dest=$func_stripname_result
3300
3301 # Check to see that the destination is a directory.
3302 test -d "$dest" && isdir=yes
3303 if test "$isdir" = yes; then
3304 destdir="$dest"
3305 destname=
3306 else
3307 func_dirname_and_basename "$dest" "" "."
3308 destdir="$func_dirname_result"
3309 destname="$func_basename_result"
3310
3311 # Not a directory, so check to see that there is only one file specified.
3312 set dummy $files; shift
3313 test "$#" -gt 1 && \
3314 func_fatal_help "\`$dest' is not a directory"
3315 fi
3316 case $destdir in
3317 [\\/]* | [A-Za-z]:[\\/]*) ;;
3318 *)
3319 for file in $files; do
3320 case $file in
3321 *.lo) ;;
3322 *)
3323 func_fatal_help "\`$destdir' must be an absolute directory name"
3324 ;;
3325 esac
3326 done
3327 ;;
3328 esac
3329
3330 # This variable tells wrapper scripts just to set variables rather
3331 # than running their programs.
3332 libtool_install_magic="$magic"
3333
3334 staticlibs=
3335 future_libdirs=
3336 current_libdirs=
3337 for file in $files; do
3338
3339 # Do each installation.
3340 case $file in
3341 *.$libext)
3342 # Do the static libraries later.
3343 staticlibs+=" $file"
3344 ;;
3345
3346 *.la)
3347 func_resolve_sysroot "$file"
3348 file=$func_resolve_sysroot_result
3349
3350 # Check to see that this really is a libtool archive.
3351 func_lalib_unsafe_p "$file" \
3352 || func_fatal_help "\`$file' is not a valid libtool archive"
3353
3354 library_names=
3355 old_library=
3356 relink_command=
3357 func_source "$file"
3358
3359 # Add the libdir to current_libdirs if it is the destination.
3360 if test "X$destdir" = "X$libdir"; then
3361 case "$current_libdirs " in
3362 *" $libdir "*) ;;
3363 *) current_libdirs+=" $libdir" ;;
3364 esac
3365 else
3366 # Note the libdir as a future libdir.
3367 case "$future_libdirs " in
3368 *" $libdir "*) ;;
3369 *) future_libdirs+=" $libdir" ;;
3370 esac
3371 fi
3372
3373 func_dirname "$file" "/" ""
3374 dir="$func_dirname_result"
3375 dir+="$objdir"
3376
3377 if test -n "$relink_command"; then
3378 # Determine the prefix the user has applied to our future dir.
3379 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
3380
3381 # Don't allow the user to place us outside of our expected
3382 # location b/c this prevents finding dependent libraries that
3383 # are installed to the same prefix.
3384 # At present, this check doesn't affect windows .dll's that
3385 # are installed into $libdir/../bin (currently, that works fine)
3386 # but it's something to keep an eye on.
3387 test "$inst_prefix_dir" = "$destdir" && \
3388 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
3389
3390 if test -n "$inst_prefix_dir"; then
3391 # Stick the inst_prefix_dir data into the link command.
3392 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
3393 else
3394 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
3395 fi
3396
3397 func_warning "relinking \`$file'"
3398 func_show_eval "$relink_command" \
3399 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
3400 fi
3401
3402 # See the names of the shared library.
3403 set dummy $library_names; shift
3404 if test -n "$1"; then
3405 realname="$1"
3406 shift
3407
3408 srcname="$realname"
3409 test -n "$relink_command" && srcname="$realname"T
3410
3411 # Install the shared library and build the symlinks.
3412 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
3413 'exit $?'
3414 tstripme="$stripme"
3415 case $host_os in
3416 cygwin* | mingw* | pw32* | cegcc*)
3417 case $realname in
3418 *.dll.a)
3419 tstripme=""
3420 ;;
3421 esac
3422 ;;
3423 esac
3424 if test -n "$tstripme" && test -n "$striplib"; then
3425 func_show_eval "$striplib $destdir/$realname" 'exit $?'
3426 fi
3427
3428 if test "$#" -gt 0; then
3429 # Delete the old symlinks, and create new ones.
3430 # Try `ln -sf' first, because the `ln' binary might depend on
3431 # the symlink we replace! Solaris /bin/ln does not understand -f,
3432 # so we also need to try rm && ln -s.
3433 for linkname
3434 do
3435 test "$linkname" != "$realname" \
3436 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
3437 done
3438 fi
3439
3440 # Do each command in the postinstall commands.
3441 lib="$destdir/$realname"
3442 func_execute_cmds "$postinstall_cmds" 'exit $?'
3443 fi
3444
3445 # Install the pseudo-library for information purposes.
3446 func_basename "$file"
3447 name="$func_basename_result"
3448 instname="$dir/$name"i
3449 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
3450
3451 # Maybe install the static library, too.
3452 test -n "$old_library" && staticlibs+=" $dir/$old_library"
3453 ;;
3454
3455 *.lo)
3456 # Install (i.e. copy) a libtool object.
3457
3458 # Figure out destination file name, if it wasn't already specified.
3459 if test -n "$destname"; then
3460 destfile="$destdir/$destname"
3461 else
3462 func_basename "$file"
3463 destfile="$func_basename_result"
3464 destfile="$destdir/$destfile"
3465 fi
3466
3467 # Deduce the name of the destination old-style object file.
3468 case $destfile in
3469 *.lo)
3470 func_lo2o "$destfile"
3471 staticdest=$func_lo2o_result
3472 ;;
3473 *.$objext)
3474 staticdest="$destfile"
3475 destfile=
3476 ;;
3477 *)
3478 func_fatal_help "cannot copy a libtool object to \`$destfile'"
3479 ;;
3480 esac
3481
3482 # Install the libtool object if requested.
3483 test -n "$destfile" && \
3484 func_show_eval "$install_prog $file $destfile" 'exit $?'
3485
3486 # Install the old object if enabled.
3487 if test "$build_old_libs" = yes; then
3488 # Deduce the name of the old-style object file.
3489 func_lo2o "$file"
3490 staticobj=$func_lo2o_result
3491 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
3492 fi
3493 exit $EXIT_SUCCESS
3494 ;;
3495
3496 *)
3497 # Figure out destination file name, if it wasn't already specified.
3498 if test -n "$destname"; then
3499 destfile="$destdir/$destname"
3500 else
3501 func_basename "$file"
3502 destfile="$func_basename_result"
3503 destfile="$destdir/$destfile"
3504 fi
3505
3506 # If the file is missing, and there is a .exe on the end, strip it
3507 # because it is most likely a libtool script we actually want to
3508 # install
3509 stripped_ext=""
3510 case $file in
3511 *.exe)
3512 if test ! -f "$file"; then
3513 func_stripname '' '.exe' "$file"
3514 file=$func_stripname_result
3515 stripped_ext=".exe"
3516 fi
3517 ;;
3518 esac
3519
3520 # Do a test to see if this is really a libtool program.
3521 case $host in
3522 *cygwin* | *mingw*)
3523 if func_ltwrapper_executable_p "$file"; then
3524 func_ltwrapper_scriptname "$file"
3525 wrapper=$func_ltwrapper_scriptname_result
3526 else
3527 func_stripname '' '.exe' "$file"
3528 wrapper=$func_stripname_result
3529 fi
3530 ;;
3531 *)
3532 wrapper=$file
3533 ;;
3534 esac
3535 if func_ltwrapper_script_p "$wrapper"; then
3536 notinst_deplibs=
3537 relink_command=
3538
3539 func_source "$wrapper"
3540
3541 # Check the variables that should have been set.
3542 test -z "$generated_by_libtool_version" && \
3543 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
3544
3545 finalize=yes
3546 for lib in $notinst_deplibs; do
3547 # Check to see that each library is installed.
3548 libdir=
3549 if test -f "$lib"; then
3550 func_source "$lib"
3551 fi
3552 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
3553 if test -n "$libdir" && test ! -f "$libfile"; then
3554 func_warning "\`$lib' has not been installed in \`$libdir'"
3555 finalize=no
3556 fi
3557 done
3558
3559 relink_command=
3560 func_source "$wrapper"
3561
3562 outputname=
3563 if test "$fast_install" = no && test -n "$relink_command"; then
3564 $opt_dry_run || {
3565 if test "$finalize" = yes; then
3566 tmpdir=`func_mktempdir`
3567 func_basename "$file$stripped_ext"
3568 file="$func_basename_result"
3569 outputname="$tmpdir/$file"
3570 # Replace the output file specification.
3571 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
3572
3573 $opt_silent || {
3574 func_quote_for_expand "$relink_command"
3575 eval "func_echo $func_quote_for_expand_result"
3576 }
3577 if eval "$relink_command"; then :
3578 else
3579 func_error "error: relink \`$file' with the above command before installing it"
3580 $opt_dry_run || ${RM}r "$tmpdir"
3581 continue
3582 fi
3583 file="$outputname"
3584 else
3585 func_warning "cannot relink \`$file'"
3586 fi
3587 }
3588 else
3589 # Install the binary that we compiled earlier.
3590 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
3591 fi
3592 fi
3593
3594 # remove .exe since cygwin /usr/bin/install will append another
3595 # one anyway
3596 case $install_prog,$host in
3597 */usr/bin/install*,*cygwin*)
3598 case $file:$destfile in
3599 *.exe:*.exe)
3600 # this is ok
3601 ;;
3602 *.exe:*)
3603 destfile=$destfile.exe
3604 ;;
3605 *:*.exe)
3606 func_stripname '' '.exe' "$destfile"
3607 destfile=$func_stripname_result
3608 ;;
3609 esac
3610 ;;
3611 esac
3612 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
3613 $opt_dry_run || if test -n "$outputname"; then
3614 ${RM}r "$tmpdir"
3615 fi
3616 ;;
3617 esac
3618 done
3619
3620 for file in $staticlibs; do
3621 func_basename "$file"
3622 name="$func_basename_result"
3623
3624 # Set up the ranlib parameters.
3625 oldlib="$destdir/$name"
3626 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
3627 tool_oldlib=$func_to_tool_file_result
3628
3629 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
3630
3631 if test -n "$stripme" && test -n "$old_striplib"; then
3632 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
3633 fi
3634
3635 # Do each command in the postinstall commands.
3636 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
3637 done
3638
3639 test -n "$future_libdirs" && \
3640 func_warning "remember to run \`$progname --finish$future_libdirs'"
3641
3642 if test -n "$current_libdirs"; then
3643 # Maybe just do a dry run.
3644 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3645 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
3646 else
3647 exit $EXIT_SUCCESS
3648 fi
3649 }
3650
3651 test "$opt_mode" = install && func_mode_install ${1+"$@"}
3652
3653
3654 # func_generate_dlsyms outputname originator pic_p
3655 # Extract symbols from dlprefiles and create ${outputname}S.o with
3656 # a dlpreopen symbol table.
3657 func_generate_dlsyms ()
3658 {
3659 $opt_debug
3660 my_outputname="$1"
3661 my_originator="$2"
3662 my_pic_p="${3-no}"
3663 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
3664 my_dlsyms=
3665
3666 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3667 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3668 my_dlsyms="${my_outputname}S.c"
3669 else
3670 func_error "not configured to extract global symbols from dlpreopened files"
3671 fi
3672 fi
3673
3674 if test -n "$my_dlsyms"; then
3675 case $my_dlsyms in
3676 "") ;;
3677 *.c)
3678 # Discover the nlist of each of the dlfiles.
3679 nlist="$output_objdir/${my_outputname}.nm"
3680
3681 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
3682
3683 # Parse the name list into a source file.
3684 func_verbose "creating $output_objdir/$my_dlsyms"
3685
3686 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
3687 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3688 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
3689
3690 #ifdef __cplusplus
3691 extern \"C\" {
3692 #endif
3693
3694 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
3695 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
3696 #endif
3697
3698 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3699 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3700 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3701 relocations are performed -- see ld's documentation on pseudo-relocs. */
3702 # define LT_DLSYM_CONST
3703 #elif defined(__osf__)
3704 /* This system does not cope well with relocations in const data. */
3705 # define LT_DLSYM_CONST
3706 #else
3707 # define LT_DLSYM_CONST const
3708 #endif
3709
3710 /* External symbol declarations for the compiler. */\
3711 "
3712
3713 if test "$dlself" = yes; then
3714 func_verbose "generating symbol list for \`$output'"
3715
3716 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
3717
3718 # Add our own program objects to the symbol list.
3719 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
3720 for progfile in $progfiles; do
3721 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3722 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
3723 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
3724 done
3725
3726 if test -n "$exclude_expsyms"; then
3727 $opt_dry_run || {
3728 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
3729 eval '$MV "$nlist"T "$nlist"'
3730 }
3731 fi
3732
3733 if test -n "$export_symbols_regex"; then
3734 $opt_dry_run || {
3735 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
3736 eval '$MV "$nlist"T "$nlist"'
3737 }
3738 fi
3739
3740 # Prepare the list of exported symbols
3741 if test -z "$export_symbols"; then
3742 export_symbols="$output_objdir/$outputname.exp"
3743 $opt_dry_run || {
3744 $RM $export_symbols
3745 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
3746 case $host in
3747 *cygwin* | *mingw* | *cegcc* )
3748 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
3749 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
3750 ;;
3751 esac
3752 }
3753 else
3754 $opt_dry_run || {
3755 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
3756 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
3757 eval '$MV "$nlist"T "$nlist"'
3758 case $host in
3759 *cygwin* | *mingw* | *cegcc* )
3760 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
3761 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
3762 ;;
3763 esac
3764 }
3765 fi
3766 fi
3767
3768 for dlprefile in $dlprefiles; do
3769 func_verbose "extracting global C symbols from \`$dlprefile'"
3770 func_basename "$dlprefile"
3771 name="$func_basename_result"
3772 case $host in
3773 *cygwin* | *mingw* | *cegcc* )
3774 # if an import library, we need to obtain dlname
3775 if func_win32_import_lib_p "$dlprefile"; then
3776 func_tr_sh "$dlprefile"
3777 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3778 dlprefile_dlbasename=""
3779 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3780 # Use subshell, to avoid clobbering current variable values
3781 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3782 if test -n "$dlprefile_dlname" ; then
3783 func_basename "$dlprefile_dlname"
3784 dlprefile_dlbasename="$func_basename_result"
3785 else
3786 # no lafile. user explicitly requested -dlpreopen <import library>.
3787 $sharedlib_from_linklib_cmd "$dlprefile"
3788 dlprefile_dlbasename=$sharedlib_from_linklib_result
3789 fi
3790 fi
3791 $opt_dry_run || {
3792 if test -n "$dlprefile_dlbasename" ; then
3793 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
3794 else
3795 func_warning "Could not compute DLL name from $name"
3796 eval '$ECHO ": $name " >> "$nlist"'
3797 fi
3798 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3799 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
3800 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3801 }
3802 else # not an import lib
3803 $opt_dry_run || {
3804 eval '$ECHO ": $name " >> "$nlist"'
3805 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3806 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3807 }
3808 fi
3809 ;;
3810 *)
3811 $opt_dry_run || {
3812 eval '$ECHO ": $name " >> "$nlist"'
3813 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3814 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3815 }
3816 ;;
3817 esac
3818 done
3819
3820 $opt_dry_run || {
3821 # Make sure we have at least an empty file.
3822 test -f "$nlist" || : > "$nlist"
3823
3824 if test -n "$exclude_expsyms"; then
3825 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
3826 $MV "$nlist"T "$nlist"
3827 fi
3828
3829 # Try sorting and uniquifying the output.
3830 if $GREP -v "^: " < "$nlist" |
3831 if sort -k 3 </dev/null >/dev/null 2>&1; then
3832 sort -k 3
3833 else
3834 sort +2
3835 fi |
3836 uniq > "$nlist"S; then
3837 :
3838 else
3839 $GREP -v "^: " < "$nlist" > "$nlist"S
3840 fi
3841
3842 if test -f "$nlist"S; then
3843 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
3844 else
3845 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
3846 fi
3847
3848 echo >> "$output_objdir/$my_dlsyms" "\
3849
3850 /* The mapping between symbol names and symbols. */
3851 typedef struct {
3852 const char *name;
3853 void *address;
3854 } lt_dlsymlist;
3855 extern LT_DLSYM_CONST lt_dlsymlist
3856 lt_${my_prefix}_LTX_preloaded_symbols[];
3857 LT_DLSYM_CONST lt_dlsymlist
3858 lt_${my_prefix}_LTX_preloaded_symbols[] =
3859 {\
3860 { \"$my_originator\", (void *) 0 },"
3861
3862 case $need_lib_prefix in
3863 no)
3864 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
3865 ;;
3866 *)
3867 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
3868 ;;
3869 esac
3870 echo >> "$output_objdir/$my_dlsyms" "\
3871 {0, (void *) 0}
3872 };
3873
3874 /* This works around a problem in FreeBSD linker */
3875 #ifdef FREEBSD_WORKAROUND
3876 static const void *lt_preloaded_setup() {
3877 return lt_${my_prefix}_LTX_preloaded_symbols;
3878 }
3879 #endif
3880
3881 #ifdef __cplusplus
3882 }
3883 #endif\
3884 "
3885 } # !$opt_dry_run
3886
3887 pic_flag_for_symtable=
3888 case "$compile_command " in
3889 *" -static "*) ;;
3890 *)
3891 case $host in
3892 # compiling the symbol table file with pic_flag works around
3893 # a FreeBSD bug that causes programs to crash when -lm is
3894 # linked before any other PIC object. But we must not use
3895 # pic_flag when linking with -static. The problem exists in
3896 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
3897 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3898 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
3899 *-*-hpux*)
3900 pic_flag_for_symtable=" $pic_flag" ;;
3901 *)
3902 if test "X$my_pic_p" != Xno; then
3903 pic_flag_for_symtable=" $pic_flag"
3904 fi
3905 ;;
3906 esac
3907 ;;
3908 esac
3909 symtab_cflags=
3910 for arg in $LTCFLAGS; do
3911 case $arg in
3912 -pie | -fpie | -fPIE) ;;
3913 *) symtab_cflags+=" $arg" ;;
3914 esac
3915 done
3916
3917 # Now compile the dynamic symbol file.
3918 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
3919
3920 # Clean up the generated files.
3921 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
3922
3923 # Transform the symbol file into the correct name.
3924 symfileobj="$output_objdir/${my_outputname}S.$objext"
3925 case $host in
3926 *cygwin* | *mingw* | *cegcc* )
3927 if test -f "$output_objdir/$my_outputname.def"; then
3928 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3929 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3930 else
3931 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3932 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3933 fi
3934 ;;
3935 *)
3936 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3937 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3938 ;;
3939 esac
3940 ;;
3941 *)
3942 func_fatal_error "unknown suffix for \`$my_dlsyms'"
3943 ;;
3944 esac
3945 else
3946 # We keep going just in case the user didn't refer to
3947 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
3948 # really was required.
3949
3950 # Nullify the symbol file.
3951 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
3952 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
3953 fi
3954 }
3955
3956 # func_win32_libid arg
3957 # return the library type of file 'arg'
3958 #
3959 # Need a lot of goo to handle *both* DLLs and import libs
3960 # Has to be a shell function in order to 'eat' the argument
3961 # that is supplied when $file_magic_command is called.
3962 # Despite the name, also deal with 64 bit binaries.
3963 func_win32_libid ()
3964 {
3965 $opt_debug
3966 win32_libid_type="unknown"
3967 win32_fileres=`file -L $1 2>/dev/null`
3968 case $win32_fileres in
3969 *ar\ archive\ import\ library*) # definitely import
3970 win32_libid_type="x86 archive import"
3971 ;;
3972 *ar\ archive*) # could be an import, or static
3973 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
3974 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
3975 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3976 func_to_tool_file "$1" func_convert_file_msys_to_w32
3977 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3978 $SED -n -e '
3979 1,100{
3980 / I /{
3981 s,.*,import,
3982 p
3983 q
3984 }
3985 }'`
3986 case $win32_nmres in
3987 import*) win32_libid_type="x86 archive import";;
3988 *) win32_libid_type="x86 archive static";;
3989 esac
3990 fi
3991 ;;
3992 *DLL*)
3993 win32_libid_type="x86 DLL"
3994 ;;
3995 *executable*) # but shell scripts are "executable" too...
3996 case $win32_fileres in
3997 *MS\ Windows\ PE\ Intel*)
3998 win32_libid_type="x86 DLL"
3999 ;;
4000 esac
4001 ;;
4002 esac
4003 $ECHO "$win32_libid_type"
4004 }
4005
4006 # func_cygming_dll_for_implib ARG
4007 #
4008 # Platform-specific function to extract the
4009 # name of the DLL associated with the specified
4010 # import library ARG.
4011 # Invoked by eval'ing the libtool variable
4012 # $sharedlib_from_linklib_cmd
4013 # Result is available in the variable
4014 # $sharedlib_from_linklib_result
4015 func_cygming_dll_for_implib ()
4016 {
4017 $opt_debug
4018 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
4019 }
4020
4021 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
4022 #
4023 # The is the core of a fallback implementation of a
4024 # platform-specific function to extract the name of the
4025 # DLL associated with the specified import library LIBNAME.
4026 #
4027 # SECTION_NAME is either .idata$6 or .idata$7, depending
4028 # on the platform and compiler that created the implib.
4029 #
4030 # Echos the name of the DLL associated with the
4031 # specified import library.
4032 func_cygming_dll_for_implib_fallback_core ()
4033 {
4034 $opt_debug
4035 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
4036 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
4037 $SED '/^Contents of section '"$match_literal"':/{
4038 # Place marker at beginning of archive member dllname section
4039 s/.*/====MARK====/
4040 p
4041 d
4042 }
4043 # These lines can sometimes be longer than 43 characters, but
4044 # are always uninteresting
4045 /:[ ]*file format pe[i]\{,1\}-/d
4046 /^In archive [^:]*:/d
4047 # Ensure marker is printed
4048 /^====MARK====/p
4049 # Remove all lines with less than 43 characters
4050 /^.\{43\}/!d
4051 # From remaining lines, remove first 43 characters
4052 s/^.\{43\}//' |
4053 $SED -n '
4054 # Join marker and all lines until next marker into a single line
4055 /^====MARK====/ b para
4056 H
4057 $ b para
4058 b
4059 :para
4060 x
4061 s/\n//g
4062 # Remove the marker
4063 s/^====MARK====//
4064 # Remove trailing dots and whitespace
4065 s/[\. \t]*$//
4066 # Print
4067 /./p' |
4068 # we now have a list, one entry per line, of the stringified
4069 # contents of the appropriate section of all members of the
4070 # archive which possess that section. Heuristic: eliminate
4071 # all those which have a first or second character that is
4072 # a '.' (that is, objdump's representation of an unprintable
4073 # character.) This should work for all archives with less than
4074 # 0x302f exports -- but will fail for DLLs whose name actually
4075 # begins with a literal '.' or a single character followed by
4076 # a '.'.
4077 #
4078 # Of those that remain, print the first one.
4079 $SED -e '/^\./d;/^.\./d;q'
4080 }
4081
4082 # func_cygming_gnu_implib_p ARG
4083 # This predicate returns with zero status (TRUE) if
4084 # ARG is a GNU/binutils-style import library. Returns
4085 # with nonzero status (FALSE) otherwise.
4086 func_cygming_gnu_implib_p ()
4087 {
4088 $opt_debug
4089 func_to_tool_file "$1" func_convert_file_msys_to_w32
4090 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
4091 test -n "$func_cygming_gnu_implib_tmp"
4092 }
4093
4094 # func_cygming_ms_implib_p ARG
4095 # This predicate returns with zero status (TRUE) if
4096 # ARG is an MS-style import library. Returns
4097 # with nonzero status (FALSE) otherwise.
4098 func_cygming_ms_implib_p ()
4099 {
4100 $opt_debug
4101 func_to_tool_file "$1" func_convert_file_msys_to_w32
4102 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
4103 test -n "$func_cygming_ms_implib_tmp"
4104 }
4105
4106 # func_cygming_dll_for_implib_fallback ARG
4107 # Platform-specific function to extract the
4108 # name of the DLL associated with the specified
4109 # import library ARG.
4110 #
4111 # This fallback implementation is for use when $DLLTOOL
4112 # does not support the --identify-strict option.
4113 # Invoked by eval'ing the libtool variable
4114 # $sharedlib_from_linklib_cmd
4115 # Result is available in the variable
4116 # $sharedlib_from_linklib_result
4117 func_cygming_dll_for_implib_fallback ()
4118 {
4119 $opt_debug
4120 if func_cygming_gnu_implib_p "$1" ; then
4121 # binutils import library
4122 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
4123 elif func_cygming_ms_implib_p "$1" ; then
4124 # ms-generated import library
4125 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
4126 else
4127 # unknown
4128 sharedlib_from_linklib_result=""
4129 fi
4130 }
4131
4132
4133 # func_extract_an_archive dir oldlib
4134 func_extract_an_archive ()
4135 {
4136 $opt_debug
4137 f_ex_an_ar_dir="$1"; shift
4138 f_ex_an_ar_oldlib="$1"
4139 if test "$lock_old_archive_extraction" = yes; then
4140 lockfile=$f_ex_an_ar_oldlib.lock
4141 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
4142 func_echo "Waiting for $lockfile to be removed"
4143 sleep 2
4144 done
4145 fi
4146 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
4147 'stat=$?; rm -f "$lockfile"; exit $stat'
4148 if test "$lock_old_archive_extraction" = yes; then
4149 $opt_dry_run || rm -f "$lockfile"
4150 fi
4151 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
4152 :
4153 else
4154 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
4155 fi
4156 }
4157
4158
4159 # func_extract_archives gentop oldlib ...
4160 func_extract_archives ()
4161 {
4162 $opt_debug
4163 my_gentop="$1"; shift
4164 my_oldlibs=${1+"$@"}
4165 my_oldobjs=""
4166 my_xlib=""
4167 my_xabs=""
4168 my_xdir=""
4169
4170 for my_xlib in $my_oldlibs; do
4171 # Extract the objects.
4172 case $my_xlib in
4173 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
4174 *) my_xabs=`pwd`"/$my_xlib" ;;
4175 esac
4176 func_basename "$my_xlib"
4177 my_xlib="$func_basename_result"
4178 my_xlib_u=$my_xlib
4179 while :; do
4180 case " $extracted_archives " in
4181 *" $my_xlib_u "*)
4182 func_arith $extracted_serial + 1
4183 extracted_serial=$func_arith_result
4184 my_xlib_u=lt$extracted_serial-$my_xlib ;;
4185 *) break ;;
4186 esac
4187 done
4188 extracted_archives="$extracted_archives $my_xlib_u"
4189 my_xdir="$my_gentop/$my_xlib_u"
4190
4191 func_mkdir_p "$my_xdir"
4192
4193 case $host in
4194 *-darwin*)
4195 func_verbose "Extracting $my_xabs"
4196 # Do not bother doing anything if just a dry run
4197 $opt_dry_run || {
4198 darwin_orig_dir=`pwd`
4199 cd $my_xdir || exit $?
4200 darwin_archive=$my_xabs
4201 darwin_curdir=`pwd`
4202 darwin_base_archive=`basename "$darwin_archive"`
4203 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
4204 if test -n "$darwin_arches"; then
4205 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
4206 darwin_arch=
4207 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
4208 for darwin_arch in $darwin_arches ; do
4209 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
4210 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
4211 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
4212 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
4213 cd "$darwin_curdir"
4214 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
4215 done # $darwin_arches
4216 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
4217 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
4218 darwin_file=
4219 darwin_files=
4220 for darwin_file in $darwin_filelist; do
4221 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
4222 $LIPO -create -output "$darwin_file" $darwin_files
4223 done # $darwin_filelist
4224 $RM -rf unfat-$$
4225 cd "$darwin_orig_dir"
4226 else
4227 cd $darwin_orig_dir
4228 func_extract_an_archive "$my_xdir" "$my_xabs"
4229 fi # $darwin_arches
4230 } # !$opt_dry_run
4231 ;;
4232 *)
4233 func_extract_an_archive "$my_xdir" "$my_xabs"
4234 ;;
4235 esac
4236 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
4237 done
4238
4239 func_extract_archives_result="$my_oldobjs"
4240 }
4241
4242
4243 # func_emit_wrapper [arg=no]
4244 #
4245 # Emit a libtool wrapper script on stdout.
4246 # Don't directly open a file because we may want to
4247 # incorporate the script contents within a cygwin/mingw
4248 # wrapper executable. Must ONLY be called from within
4249 # func_mode_link because it depends on a number of variables
4250 # set therein.
4251 #
4252 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
4253 # variable will take. If 'yes', then the emitted script
4254 # will assume that the directory in which it is stored is
4255 # the $objdir directory. This is a cygwin/mingw-specific
4256 # behavior.
4257 func_emit_wrapper ()
4258 {
4259 func_emit_wrapper_arg1=${1-no}
4260
4261 $ECHO "\
4262 #! $SHELL
4263
4264 # $output - temporary wrapper script for $objdir/$outputname
4265 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
4266 #
4267 # The $output program cannot be directly executed until all the libtool
4268 # libraries that it depends on are installed.
4269 #
4270 # This wrapper script should never be moved out of the build directory.
4271 # If it is, it will not operate correctly.
4272
4273 # Sed substitution that helps us do robust quoting. It backslashifies
4274 # metacharacters that are still active within double-quoted strings.
4275 sed_quote_subst='$sed_quote_subst'
4276
4277 # Be Bourne compatible
4278 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
4279 emulate sh
4280 NULLCMD=:
4281 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
4282 # is contrary to our usage. Disable this feature.
4283 alias -g '\${1+\"\$@\"}'='\"\$@\"'
4284 setopt NO_GLOB_SUBST
4285 else
4286 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
4287 fi
4288 BIN_SH=xpg4; export BIN_SH # for Tru64
4289 DUALCASE=1; export DUALCASE # for MKS sh
4290
4291 # The HP-UX ksh and POSIX shell print the target directory to stdout
4292 # if CDPATH is set.
4293 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4294
4295 relink_command=\"$relink_command\"
4296
4297 # This environment variable determines our operation mode.
4298 if test \"\$libtool_install_magic\" = \"$magic\"; then
4299 # install mode needs the following variables:
4300 generated_by_libtool_version='$macro_version'
4301 notinst_deplibs='$notinst_deplibs'
4302 else
4303 # When we are sourced in execute mode, \$file and \$ECHO are already set.
4304 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4305 file=\"\$0\""
4306
4307 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
4308 $ECHO "\
4309
4310 # A function that is used when there is no print builtin or printf.
4311 func_fallback_echo ()
4312 {
4313 eval 'cat <<_LTECHO_EOF
4314 \$1
4315 _LTECHO_EOF'
4316 }
4317 ECHO=\"$qECHO\"
4318 fi
4319
4320 # Very basic option parsing. These options are (a) specific to
4321 # the libtool wrapper, (b) are identical between the wrapper
4322 # /script/ and the wrapper /executable/ which is used only on
4323 # windows platforms, and (c) all begin with the string "--lt-"
4324 # (application programs are unlikely to have options which match
4325 # this pattern).
4326 #
4327 # There are only two supported options: --lt-debug and
4328 # --lt-dump-script. There is, deliberately, no --lt-help.
4329 #
4330 # The first argument to this parsing function should be the
4331 # script's $0 value, followed by "$@".
4332 lt_option_debug=
4333 func_parse_lt_options ()
4334 {
4335 lt_script_arg0=\$0
4336 shift
4337 for lt_opt
4338 do
4339 case \"\$lt_opt\" in
4340 --lt-debug) lt_option_debug=1 ;;
4341 --lt-dump-script)
4342 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
4343 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
4344 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
4345 cat \"\$lt_dump_D/\$lt_dump_F\"
4346 exit 0
4347 ;;
4348 --lt-*)
4349 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
4350 exit 1
4351 ;;
4352 esac
4353 done
4354
4355 # Print the debug banner immediately:
4356 if test -n \"\$lt_option_debug\"; then
4357 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
4358 fi
4359 }
4360
4361 # Used when --lt-debug. Prints its arguments to stdout
4362 # (redirection is the responsibility of the caller)
4363 func_lt_dump_args ()
4364 {
4365 lt_dump_args_N=1;
4366 for lt_arg
4367 do
4368 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
4369 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
4370 done
4371 }
4372
4373 # Core function for launching the target application
4374 func_exec_program_core ()
4375 {
4376 "
4377 case $host in
4378 # Backslashes separate directories on plain windows
4379 *-*-mingw | *-*-os2* | *-cegcc*)
4380 $ECHO "\
4381 if test -n \"\$lt_option_debug\"; then
4382 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
4383 func_lt_dump_args \${1+\"\$@\"} 1>&2
4384 fi
4385 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
4386 "
4387 ;;
4388
4389 *)
4390 $ECHO "\
4391 if test -n \"\$lt_option_debug\"; then
4392 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
4393 func_lt_dump_args \${1+\"\$@\"} 1>&2
4394 fi
4395 exec \"\$progdir/\$program\" \${1+\"\$@\"}
4396 "
4397 ;;
4398 esac
4399 $ECHO "\
4400 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
4401 exit 1
4402 }
4403
4404 # A function to encapsulate launching the target application
4405 # Strips options in the --lt-* namespace from \$@ and
4406 # launches target application with the remaining arguments.
4407 func_exec_program ()
4408 {
4409 case \" \$* \" in
4410 *\\ --lt-*)
4411 for lt_wr_arg
4412 do
4413 case \$lt_wr_arg in
4414 --lt-*) ;;
4415 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
4416 esac
4417 shift
4418 done ;;
4419 esac
4420 func_exec_program_core \${1+\"\$@\"}
4421 }
4422
4423 # Parse options
4424 func_parse_lt_options \"\$0\" \${1+\"\$@\"}
4425
4426 # Find the directory that this script lives in.
4427 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
4428 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
4429
4430 # Follow symbolic links until we get to the real thisdir.
4431 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
4432 while test -n \"\$file\"; do
4433 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
4434
4435 # If there was a directory component, then change thisdir.
4436 if test \"x\$destdir\" != \"x\$file\"; then
4437 case \"\$destdir\" in
4438 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4439 *) thisdir=\"\$thisdir/\$destdir\" ;;
4440 esac
4441 fi
4442
4443 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
4444 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
4445 done
4446
4447 # Usually 'no', except on cygwin/mingw when embedded into
4448 # the cwrapper.
4449 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
4450 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
4451 # special case for '.'
4452 if test \"\$thisdir\" = \".\"; then
4453 thisdir=\`pwd\`
4454 fi
4455 # remove .libs from thisdir
4456 case \"\$thisdir\" in
4457 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
4458 $objdir ) thisdir=. ;;
4459 esac
4460 fi
4461
4462 # Try to get the absolute directory name.
4463 absdir=\`cd \"\$thisdir\" && pwd\`
4464 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4465 "
4466
4467 if test "$fast_install" = yes; then
4468 $ECHO "\
4469 program=lt-'$outputname'$exeext
4470 progdir=\"\$thisdir/$objdir\"
4471
4472 if test ! -f \"\$progdir/\$program\" ||
4473 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4474 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
4475
4476 file=\"\$\$-\$program\"
4477
4478 if test ! -d \"\$progdir\"; then
4479 $MKDIR \"\$progdir\"
4480 else
4481 $RM \"\$progdir/\$file\"
4482 fi"
4483
4484 $ECHO "\
4485
4486 # relink executable if necessary
4487 if test -n \"\$relink_command\"; then
4488 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
4489 else
4490 $ECHO \"\$relink_command_output\" >&2
4491 $RM \"\$progdir/\$file\"
4492 exit 1
4493 fi
4494 fi
4495
4496 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
4497 { $RM \"\$progdir/\$program\";
4498 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
4499 $RM \"\$progdir/\$file\"
4500 fi"
4501 else
4502 $ECHO "\
4503 program='$outputname'
4504 progdir=\"\$thisdir/$objdir\"
4505 "
4506 fi
4507
4508 $ECHO "\
4509
4510 if test -f \"\$progdir/\$program\"; then"
4511
4512 # fixup the dll searchpath if we need to.
4513 #
4514 # Fix the DLL searchpath if we need to. Do this before prepending
4515 # to shlibpath, because on Windows, both are PATH and uninstalled
4516 # libraries must come first.
4517 if test -n "$dllsearchpath"; then
4518 $ECHO "\
4519 # Add the dll search path components to the executable PATH
4520 PATH=$dllsearchpath:\$PATH
4521 "
4522 fi
4523
4524 # Export our shlibpath_var if we have one.
4525 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4526 $ECHO "\
4527 # Add our own library path to $shlibpath_var
4528 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
4529
4530 # Some systems cannot cope with colon-terminated $shlibpath_var
4531 # The second colon is a workaround for a bug in BeOS R4 sed
4532 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
4533
4534 export $shlibpath_var
4535 "
4536 fi
4537
4538 $ECHO "\
4539 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4540 # Run the actual program with our arguments.
4541 func_exec_program \${1+\"\$@\"}
4542 fi
4543 else
4544 # The program doesn't exist.
4545 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
4546 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
4547 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
4548 exit 1
4549 fi
4550 fi\
4551 "
4552 }
4553
4554
4555 # func_emit_cwrapperexe_src
4556 # emit the source code for a wrapper executable on stdout
4557 # Must ONLY be called from within func_mode_link because
4558 # it depends on a number of variable set therein.
4559 func_emit_cwrapperexe_src ()
4560 {
4561 cat <<EOF
4562
4563 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4564 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
4565
4566 The $output program cannot be directly executed until all the libtool
4567 libraries that it depends on are installed.
4568
4569 This wrapper executable should never be moved out of the build directory.
4570 If it is, it will not operate correctly.
4571 */
4572 EOF
4573 cat <<"EOF"
4574 #ifdef _MSC_VER
4575 # define _CRT_SECURE_NO_DEPRECATE 1
4576 #endif
4577 #include <stdio.h>
4578 #include <stdlib.h>
4579 #ifdef _MSC_VER
4580 # include <direct.h>
4581 # include <process.h>
4582 # include <io.h>
4583 #else
4584 # include <unistd.h>
4585 # include <stdint.h>
4586 # ifdef __CYGWIN__
4587 # include <io.h>
4588 # endif
4589 #endif
4590 #include <malloc.h>
4591 #include <stdarg.h>
4592 #include <assert.h>
4593 #include <string.h>
4594 #include <ctype.h>
4595 #include <errno.h>
4596 #include <fcntl.h>
4597 #include <sys/stat.h>
4598
4599 /* declarations of non-ANSI functions */
4600 #if defined(__MINGW32__)
4601 # ifdef __STRICT_ANSI__
4602 int _putenv (const char *);
4603 # endif
4604 #elif defined(__CYGWIN__)
4605 # ifdef __STRICT_ANSI__
4606 char *realpath (const char *, char *);
4607 int putenv (char *);
4608 int setenv (const char *, const char *, int);
4609 # endif
4610 /* #elif defined (other platforms) ... */
4611 #endif
4612
4613 /* portability defines, excluding path handling macros */
4614 #if defined(_MSC_VER)
4615 # define setmode _setmode
4616 # define stat _stat
4617 # define chmod _chmod
4618 # define getcwd _getcwd
4619 # define putenv _putenv
4620 # define S_IXUSR _S_IEXEC
4621 # ifndef _INTPTR_T_DEFINED
4622 # define _INTPTR_T_DEFINED
4623 # define intptr_t int
4624 # endif
4625 #elif defined(__MINGW32__)
4626 # define setmode _setmode
4627 # define stat _stat
4628 # define chmod _chmod
4629 # define getcwd _getcwd
4630 # define putenv _putenv
4631 #elif defined(__CYGWIN__)
4632 # define HAVE_SETENV
4633 # define FOPEN_WB "wb"
4634 /* #elif defined (other platforms) ... */
4635 #endif
4636
4637 #if defined(PATH_MAX)
4638 # define LT_PATHMAX PATH_MAX
4639 #elif defined(MAXPATHLEN)
4640 # define LT_PATHMAX MAXPATHLEN
4641 #else
4642 # define LT_PATHMAX 1024
4643 #endif
4644
4645 #ifndef S_IXOTH
4646 # define S_IXOTH 0
4647 #endif
4648 #ifndef S_IXGRP
4649 # define S_IXGRP 0
4650 #endif
4651
4652 /* path handling portability macros */
4653 #ifndef DIR_SEPARATOR
4654 # define DIR_SEPARATOR '/'
4655 # define PATH_SEPARATOR ':'
4656 #endif
4657
4658 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4659 defined (__OS2__)
4660 # define HAVE_DOS_BASED_FILE_SYSTEM
4661 # define FOPEN_WB "wb"
4662 # ifndef DIR_SEPARATOR_2
4663 # define DIR_SEPARATOR_2 '\\'
4664 # endif
4665 # ifndef PATH_SEPARATOR_2
4666 # define PATH_SEPARATOR_2 ';'
4667 # endif
4668 #endif
4669
4670 #ifndef DIR_SEPARATOR_2
4671 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
4672 #else /* DIR_SEPARATOR_2 */
4673 # define IS_DIR_SEPARATOR(ch) \
4674 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4675 #endif /* DIR_SEPARATOR_2 */
4676
4677 #ifndef PATH_SEPARATOR_2
4678 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
4679 #else /* PATH_SEPARATOR_2 */
4680 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
4681 #endif /* PATH_SEPARATOR_2 */
4682
4683 #ifndef FOPEN_WB
4684 # define FOPEN_WB "w"
4685 #endif
4686 #ifndef _O_BINARY
4687 # define _O_BINARY 0
4688 #endif
4689
4690 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4691 #define XFREE(stale) do { \
4692 if (stale) { free ((void *) stale); stale = 0; } \
4693 } while (0)
4694
4695 #if defined(LT_DEBUGWRAPPER)
4696 static int lt_debug = 1;
4697 #else
4698 static int lt_debug = 0;
4699 #endif
4700
4701 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
4702
4703 void *xmalloc (size_t num);
4704 char *xstrdup (const char *string);
4705 const char *base_name (const char *name);
4706 char *find_executable (const char *wrapper);
4707 char *chase_symlinks (const char *pathspec);
4708 int make_executable (const char *path);
4709 int check_executable (const char *path);
4710 char *strendzap (char *str, const char *pat);
4711 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
4712 void lt_fatal (const char *file, int line, const char *message, ...);
4713 static const char *nonnull (const char *s);
4714 static const char *nonempty (const char *s);
4715 void lt_setenv (const char *name, const char *value);
4716 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
4717 void lt_update_exe_path (const char *name, const char *value);
4718 void lt_update_lib_path (const char *name, const char *value);
4719 char **prepare_spawn (char **argv);
4720 void lt_dump_script (FILE *f);
4721 EOF
4722
4723 cat <<EOF
4724 volatile const char * MAGIC_EXE = "$magic_exe";
4725 const char * LIB_PATH_VARNAME = "$shlibpath_var";
4726 EOF
4727
4728 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4729 func_to_host_path "$temp_rpath"
4730 cat <<EOF
4731 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
4732 EOF
4733 else
4734 cat <<"EOF"
4735 const char * LIB_PATH_VALUE = "";
4736 EOF
4737 fi
4738
4739 if test -n "$dllsearchpath"; then
4740 func_to_host_path "$dllsearchpath:"
4741 cat <<EOF
4742 const char * EXE_PATH_VARNAME = "PATH";
4743 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
4744 EOF
4745 else
4746 cat <<"EOF"
4747 const char * EXE_PATH_VARNAME = "";
4748 const char * EXE_PATH_VALUE = "";
4749 EOF
4750 fi
4751
4752 if test "$fast_install" = yes; then
4753 cat <<EOF
4754 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
4755 EOF
4756 else
4757 cat <<EOF
4758 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
4759 EOF
4760 fi
4761
4762
4763 cat <<"EOF"
4764
4765 #define LTWRAPPER_OPTION_PREFIX "--lt-"
4766
4767 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
4768 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
4769 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
4770
4771 int
4772 main (int argc, char *argv[])
4773 {
4774 char **newargz;
4775 int newargc;
4776 char *tmp_pathspec;
4777 char *actual_cwrapper_path;
4778 char *actual_cwrapper_name;
4779 char *target_name;
4780 char *lt_argv_zero;
4781 intptr_t rval = 127;
4782
4783 int i;
4784
4785 program_name = (char *) xstrdup (base_name (argv[0]));
4786 newargz = XMALLOC (char *, argc + 1);
4787
4788 /* very simple arg parsing; don't want to rely on getopt
4789 * also, copy all non cwrapper options to newargz, except
4790 * argz[0], which is handled differently
4791 */
4792 newargc=0;
4793 for (i = 1; i < argc; i++)
4794 {
4795 if (strcmp (argv[i], dumpscript_opt) == 0)
4796 {
4797 EOF
4798 case "$host" in
4799 *mingw* | *cygwin* )
4800 # make stdout use "unix" line endings
4801 echo " setmode(1,_O_BINARY);"
4802 ;;
4803 esac
4804
4805 cat <<"EOF"
4806 lt_dump_script (stdout);
4807 return 0;
4808 }
4809 if (strcmp (argv[i], debug_opt) == 0)
4810 {
4811 lt_debug = 1;
4812 continue;
4813 }
4814 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
4815 {
4816 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
4817 namespace, but it is not one of the ones we know about and
4818 have already dealt with, above (inluding dump-script), then
4819 report an error. Otherwise, targets might begin to believe
4820 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
4821 namespace. The first time any user complains about this, we'll
4822 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
4823 or a configure.ac-settable value.
4824 */
4825 lt_fatal (__FILE__, __LINE__,
4826 "unrecognized %s option: '%s'",
4827 ltwrapper_option_prefix, argv[i]);
4828 }
4829 /* otherwise ... */
4830 newargz[++newargc] = xstrdup (argv[i]);
4831 }
4832 newargz[++newargc] = NULL;
4833
4834 EOF
4835 cat <<EOF
4836 /* The GNU banner must be the first non-error debug message */
4837 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
4838 EOF
4839 cat <<"EOF"
4840 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
4841 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
4842
4843 tmp_pathspec = find_executable (argv[0]);
4844 if (tmp_pathspec == NULL)
4845 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
4846 lt_debugprintf (__FILE__, __LINE__,
4847 "(main) found exe (before symlink chase) at: %s\n",
4848 tmp_pathspec);
4849
4850 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
4851 lt_debugprintf (__FILE__, __LINE__,
4852 "(main) found exe (after symlink chase) at: %s\n",
4853 actual_cwrapper_path);
4854 XFREE (tmp_pathspec);
4855
4856 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
4857 strendzap (actual_cwrapper_path, actual_cwrapper_name);
4858
4859 /* wrapper name transforms */
4860 strendzap (actual_cwrapper_name, ".exe");
4861 tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
4862 XFREE (actual_cwrapper_name);
4863 actual_cwrapper_name = tmp_pathspec;
4864 tmp_pathspec = 0;
4865
4866 /* target_name transforms -- use actual target program name; might have lt- prefix */
4867 target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
4868 strendzap (target_name, ".exe");
4869 tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
4870 XFREE (target_name);
4871 target_name = tmp_pathspec;
4872 tmp_pathspec = 0;
4873
4874 lt_debugprintf (__FILE__, __LINE__,
4875 "(main) libtool target name: %s\n",
4876 target_name);
4877 EOF
4878
4879 cat <<EOF
4880 newargz[0] =
4881 XMALLOC (char, (strlen (actual_cwrapper_path) +
4882 strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
4883 strcpy (newargz[0], actual_cwrapper_path);
4884 strcat (newargz[0], "$objdir");
4885 strcat (newargz[0], "/");
4886 EOF
4887
4888 cat <<"EOF"
4889 /* stop here, and copy so we don't have to do this twice */
4890 tmp_pathspec = xstrdup (newargz[0]);
4891
4892 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
4893 strcat (newargz[0], actual_cwrapper_name);
4894
4895 /* DO want the lt- prefix here if it exists, so use target_name */
4896 lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
4897 XFREE (tmp_pathspec);
4898 tmp_pathspec = NULL;
4899 EOF
4900
4901 case $host_os in
4902 mingw*)
4903 cat <<"EOF"
4904 {
4905 char* p;
4906 while ((p = strchr (newargz[0], '\\')) != NULL)
4907 {
4908 *p = '/';
4909 }
4910 while ((p = strchr (lt_argv_zero, '\\')) != NULL)
4911 {
4912 *p = '/';
4913 }
4914 }
4915 EOF
4916 ;;
4917 esac
4918
4919 cat <<"EOF"
4920 XFREE (target_name);
4921 XFREE (actual_cwrapper_path);
4922 XFREE (actual_cwrapper_name);
4923
4924 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
4925 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
4926 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
4927 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
4928 because on Windows, both *_VARNAMEs are PATH but uninstalled
4929 libraries must come first. */
4930 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
4931 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
4932
4933 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
4934 nonnull (lt_argv_zero));
4935 for (i = 0; i < newargc; i++)
4936 {
4937 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
4938 i, nonnull (newargz[i]));
4939 }
4940
4941 EOF
4942
4943 case $host_os in
4944 mingw*)
4945 cat <<"EOF"
4946 /* execv doesn't actually work on mingw as expected on unix */
4947 newargz = prepare_spawn (newargz);
4948 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
4949 if (rval == -1)
4950 {
4951 /* failed to start process */
4952 lt_debugprintf (__FILE__, __LINE__,
4953 "(main) failed to launch target \"%s\": %s\n",
4954 lt_argv_zero, nonnull (strerror (errno)));
4955 return 127;
4956 }
4957 return rval;
4958 EOF
4959 ;;
4960 *)
4961 cat <<"EOF"
4962 execv (lt_argv_zero, newargz);
4963 return rval; /* =127, but avoids unused variable warning */
4964 EOF
4965 ;;
4966 esac
4967
4968 cat <<"EOF"
4969 }
4970
4971 void *
4972 xmalloc (size_t num)
4973 {
4974 void *p = (void *) malloc (num);
4975 if (!p)
4976 lt_fatal (__FILE__, __LINE__, "memory exhausted");
4977
4978 return p;
4979 }
4980
4981 char *
4982 xstrdup (const char *string)
4983 {
4984 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
4985 string) : NULL;
4986 }
4987
4988 const char *
4989 base_name (const char *name)
4990 {
4991 const char *base;
4992
4993 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4994 /* Skip over the disk name in MSDOS pathnames. */
4995 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
4996 name += 2;
4997 #endif
4998
4999 for (base = name; *name; name++)
5000 if (IS_DIR_SEPARATOR (*name))
5001 base = name + 1;
5002 return base;
5003 }
5004
5005 int
5006 check_executable (const char *path)
5007 {
5008 struct stat st;
5009
5010 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
5011 nonempty (path));
5012 if ((!path) || (!*path))
5013 return 0;
5014
5015 if ((stat (path, &st) >= 0)
5016 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
5017 return 1;
5018 else
5019 return 0;
5020 }
5021
5022 int
5023 make_executable (const char *path)
5024 {
5025 int rval = 0;
5026 struct stat st;
5027
5028 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
5029 nonempty (path));
5030 if ((!path) || (!*path))
5031 return 0;
5032
5033 if (stat (path, &st) >= 0)
5034 {
5035 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
5036 }
5037 return rval;
5038 }
5039
5040 /* Searches for the full path of the wrapper. Returns
5041 newly allocated full path name if found, NULL otherwise
5042 Does not chase symlinks, even on platforms that support them.
5043 */
5044 char *
5045 find_executable (const char *wrapper)
5046 {
5047 int has_slash = 0;
5048 const char *p;
5049 const char *p_next;
5050 /* static buffer for getcwd */
5051 char tmp[LT_PATHMAX + 1];
5052 int tmp_len;
5053 char *concat_name;
5054
5055 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
5056 nonempty (wrapper));
5057
5058 if ((wrapper == NULL) || (*wrapper == '\0'))
5059 return NULL;
5060
5061 /* Absolute path? */
5062 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5063 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
5064 {
5065 concat_name = xstrdup (wrapper);
5066 if (check_executable (concat_name))
5067 return concat_name;
5068 XFREE (concat_name);
5069 }
5070 else
5071 {
5072 #endif
5073 if (IS_DIR_SEPARATOR (wrapper[0]))
5074 {
5075 concat_name = xstrdup (wrapper);
5076 if (check_executable (concat_name))
5077 return concat_name;
5078 XFREE (concat_name);
5079 }
5080 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5081 }
5082 #endif
5083
5084 for (p = wrapper; *p; p++)
5085 if (*p == '/')
5086 {
5087 has_slash = 1;
5088 break;
5089 }
5090 if (!has_slash)
5091 {
5092 /* no slashes; search PATH */
5093 const char *path = getenv ("PATH");
5094 if (path != NULL)
5095 {
5096 for (p = path; *p; p = p_next)
5097 {
5098 const char *q;
5099 size_t p_len;
5100 for (q = p; *q; q++)
5101 if (IS_PATH_SEPARATOR (*q))
5102 break;
5103 p_len = q - p;
5104 p_next = (*q == '\0' ? q : q + 1);
5105 if (p_len == 0)
5106 {
5107 /* empty path: current directory */
5108 if (getcwd (tmp, LT_PATHMAX) == NULL)
5109 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
5110 nonnull (strerror (errno)));
5111 tmp_len = strlen (tmp);
5112 concat_name =
5113 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
5114 memcpy (concat_name, tmp, tmp_len);
5115 concat_name[tmp_len] = '/';
5116 strcpy (concat_name + tmp_len + 1, wrapper);
5117 }
5118 else
5119 {
5120 concat_name =
5121 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
5122 memcpy (concat_name, p, p_len);
5123 concat_name[p_len] = '/';
5124 strcpy (concat_name + p_len + 1, wrapper);
5125 }
5126 if (check_executable (concat_name))
5127 return concat_name;
5128 XFREE (concat_name);
5129 }
5130 }
5131 /* not found in PATH; assume curdir */
5132 }
5133 /* Relative path | not found in path: prepend cwd */
5134 if (getcwd (tmp, LT_PATHMAX) == NULL)
5135 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
5136 nonnull (strerror (errno)));
5137 tmp_len = strlen (tmp);
5138 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
5139 memcpy (concat_name, tmp, tmp_len);
5140 concat_name[tmp_len] = '/';
5141 strcpy (concat_name + tmp_len + 1, wrapper);
5142
5143 if (check_executable (concat_name))
5144 return concat_name;
5145 XFREE (concat_name);
5146 return NULL;
5147 }
5148
5149 char *
5150 chase_symlinks (const char *pathspec)
5151 {
5152 #ifndef S_ISLNK
5153 return xstrdup (pathspec);
5154 #else
5155 char buf[LT_PATHMAX];
5156 struct stat s;
5157 char *tmp_pathspec = xstrdup (pathspec);
5158 char *p;
5159 int has_symlinks = 0;
5160 while (strlen (tmp_pathspec) && !has_symlinks)
5161 {
5162 lt_debugprintf (__FILE__, __LINE__,
5163 "checking path component for symlinks: %s\n",
5164 tmp_pathspec);
5165 if (lstat (tmp_pathspec, &s) == 0)
5166 {
5167 if (S_ISLNK (s.st_mode) != 0)
5168 {
5169 has_symlinks = 1;
5170 break;
5171 }
5172
5173 /* search backwards for last DIR_SEPARATOR */
5174 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
5175 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
5176 p--;
5177 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
5178 {
5179 /* no more DIR_SEPARATORS left */
5180 break;
5181 }
5182 *p = '\0';
5183 }
5184 else
5185 {
5186 lt_fatal (__FILE__, __LINE__,
5187 "error accessing file \"%s\": %s",
5188 tmp_pathspec, nonnull (strerror (errno)));
5189 }
5190 }
5191 XFREE (tmp_pathspec);
5192
5193 if (!has_symlinks)
5194 {
5195 return xstrdup (pathspec);
5196 }
5197
5198 tmp_pathspec = realpath (pathspec, buf);
5199 if (tmp_pathspec == 0)
5200 {
5201 lt_fatal (__FILE__, __LINE__,
5202 "could not follow symlinks for %s", pathspec);
5203 }
5204 return xstrdup (tmp_pathspec);
5205 #endif
5206 }
5207
5208 char *
5209 strendzap (char *str, const char *pat)
5210 {
5211 size_t len, patlen;
5212
5213 assert (str != NULL);
5214 assert (pat != NULL);
5215
5216 len = strlen (str);
5217 patlen = strlen (pat);
5218
5219 if (patlen <= len)
5220 {
5221 str += len - patlen;
5222 if (strcmp (str, pat) == 0)
5223 *str = '\0';
5224 }
5225 return str;
5226 }
5227
5228 void
5229 lt_debugprintf (const char *file, int line, const char *fmt, ...)
5230 {
5231 va_list args;
5232 if (lt_debug)
5233 {
5234 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
5235 va_start (args, fmt);
5236 (void) vfprintf (stderr, fmt, args);
5237 va_end (args);
5238 }
5239 }
5240
5241 static void
5242 lt_error_core (int exit_status, const char *file,
5243 int line, const char *mode,
5244 const char *message, va_list ap)
5245 {
5246 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
5247 vfprintf (stderr, message, ap);
5248 fprintf (stderr, ".\n");
5249
5250 if (exit_status >= 0)
5251 exit (exit_status);
5252 }
5253
5254 void
5255 lt_fatal (const char *file, int line, const char *message, ...)
5256 {
5257 va_list ap;
5258 va_start (ap, message);
5259 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
5260 va_end (ap);
5261 }
5262
5263 static const char *
5264 nonnull (const char *s)
5265 {
5266 return s ? s : "(null)";
5267 }
5268
5269 static const char *
5270 nonempty (const char *s)
5271 {
5272 return (s && !*s) ? "(empty)" : nonnull (s);
5273 }
5274
5275 void
5276 lt_setenv (const char *name, const char *value)
5277 {
5278 lt_debugprintf (__FILE__, __LINE__,
5279 "(lt_setenv) setting '%s' to '%s'\n",
5280 nonnull (name), nonnull (value));
5281 {
5282 #ifdef HAVE_SETENV
5283 /* always make a copy, for consistency with !HAVE_SETENV */
5284 char *str = xstrdup (value);
5285 setenv (name, str, 1);
5286 #else
5287 int len = strlen (name) + 1 + strlen (value) + 1;
5288 char *str = XMALLOC (char, len);
5289 sprintf (str, "%s=%s", name, value);
5290 if (putenv (str) != EXIT_SUCCESS)
5291 {
5292 XFREE (str);
5293 }
5294 #endif
5295 }
5296 }
5297
5298 char *
5299 lt_extend_str (const char *orig_value, const char *add, int to_end)
5300 {
5301 char *new_value;
5302 if (orig_value && *orig_value)
5303 {
5304 int orig_value_len = strlen (orig_value);
5305 int add_len = strlen (add);
5306 new_value = XMALLOC (char, add_len + orig_value_len + 1);
5307 if (to_end)
5308 {
5309 strcpy (new_value, orig_value);
5310 strcpy (new_value + orig_value_len, add);
5311 }
5312 else
5313 {
5314 strcpy (new_value, add);
5315 strcpy (new_value + add_len, orig_value);
5316 }
5317 }
5318 else
5319 {
5320 new_value = xstrdup (add);
5321 }
5322 return new_value;
5323 }
5324
5325 void
5326 lt_update_exe_path (const char *name, const char *value)
5327 {
5328 lt_debugprintf (__FILE__, __LINE__,
5329 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
5330 nonnull (name), nonnull (value));
5331
5332 if (name && *name && value && *value)
5333 {
5334 char *new_value = lt_extend_str (getenv (name), value, 0);
5335 /* some systems can't cope with a ':'-terminated path #' */
5336 int len = strlen (new_value);
5337 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
5338 {
5339 new_value[len-1] = '\0';
5340 }
5341 lt_setenv (name, new_value);
5342 XFREE (new_value);
5343 }
5344 }
5345
5346 void
5347 lt_update_lib_path (const char *name, const char *value)
5348 {
5349 lt_debugprintf (__FILE__, __LINE__,
5350 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
5351 nonnull (name), nonnull (value));
5352
5353 if (name && *name && value && *value)
5354 {
5355 char *new_value = lt_extend_str (getenv (name), value, 0);
5356 lt_setenv (name, new_value);
5357 XFREE (new_value);
5358 }
5359 }
5360
5361 EOF
5362 case $host_os in
5363 mingw*)
5364 cat <<"EOF"
5365
5366 /* Prepares an argument vector before calling spawn().
5367 Note that spawn() does not by itself call the command interpreter
5368 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
5369 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
5370 GetVersionEx(&v);
5371 v.dwPlatformId == VER_PLATFORM_WIN32_NT;
5372 }) ? "cmd.exe" : "command.com").
5373 Instead it simply concatenates the arguments, separated by ' ', and calls
5374 CreateProcess(). We must quote the arguments since Win32 CreateProcess()
5375 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
5376 special way:
5377 - Space and tab are interpreted as delimiters. They are not treated as
5378 delimiters if they are surrounded by double quotes: "...".
5379 - Unescaped double quotes are removed from the input. Their only effect is
5380 that within double quotes, space and tab are treated like normal
5381 characters.
5382 - Backslashes not followed by double quotes are not special.
5383 - But 2*n+1 backslashes followed by a double quote become
5384 n backslashes followed by a double quote (n >= 0):
5385 \" -> "
5386 \\\" -> \"
5387 \\\\\" -> \\"
5388 */
5389 #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
5390 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
5391 char **
5392 prepare_spawn (char **argv)
5393 {
5394 size_t argc;
5395 char **new_argv;
5396 size_t i;
5397
5398 /* Count number of arguments. */
5399 for (argc = 0; argv[argc] != NULL; argc++)
5400 ;
5401
5402 /* Allocate new argument vector. */
5403 new_argv = XMALLOC (char *, argc + 1);
5404
5405 /* Put quoted arguments into the new argument vector. */
5406 for (i = 0; i < argc; i++)
5407 {
5408 const char *string = argv[i];
5409
5410 if (string[0] == '\0')
5411 new_argv[i] = xstrdup ("\"\"");
5412 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
5413 {
5414 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
5415 size_t length;
5416 unsigned int backslashes;
5417 const char *s;
5418 char *quoted_string;
5419 char *p;
5420
5421 length = 0;
5422 backslashes = 0;
5423 if (quote_around)
5424 length++;
5425 for (s = string; *s != '\0'; s++)
5426 {
5427 char c = *s;
5428 if (c == '"')
5429 length += backslashes + 1;
5430 length++;
5431 if (c == '\\')
5432 backslashes++;
5433 else
5434 backslashes = 0;
5435 }
5436 if (quote_around)
5437 length += backslashes + 1;
5438
5439 quoted_string = XMALLOC (char, length + 1);
5440
5441 p = quoted_string;
5442 backslashes = 0;
5443 if (quote_around)
5444 *p++ = '"';
5445 for (s = string; *s != '\0'; s++)
5446 {
5447 char c = *s;
5448 if (c == '"')
5449 {
5450 unsigned int j;
5451 for (j = backslashes + 1; j > 0; j--)
5452 *p++ = '\\';
5453 }
5454 *p++ = c;
5455 if (c == '\\')
5456 backslashes++;
5457 else
5458 backslashes = 0;
5459 }
5460 if (quote_around)
5461 {
5462 unsigned int j;
5463 for (j = backslashes; j > 0; j--)
5464 *p++ = '\\';
5465 *p++ = '"';
5466 }
5467 *p = '\0';
5468
5469 new_argv[i] = quoted_string;
5470 }
5471 else
5472 new_argv[i] = (char *) string;
5473 }
5474 new_argv[argc] = NULL;
5475
5476 return new_argv;
5477 }
5478 EOF
5479 ;;
5480 esac
5481
5482 cat <<"EOF"
5483 void lt_dump_script (FILE* f)
5484 {
5485 EOF
5486 func_emit_wrapper yes |
5487 $SED -n -e '
5488 s/^\(.\{79\}\)\(..*\)/\1\
5489 \2/
5490 h
5491 s/\([\\"]\)/\\\1/g
5492 s/$/\\n/
5493 s/\([^\n]*\).*/ fputs ("\1", f);/p
5494 g
5495 D'
5496 cat <<"EOF"
5497 }
5498 EOF
5499 }
5500 # end: func_emit_cwrapperexe_src
5501
5502 # func_win32_import_lib_p ARG
5503 # True if ARG is an import lib, as indicated by $file_magic_cmd
5504 func_win32_import_lib_p ()
5505 {
5506 $opt_debug
5507 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
5508 *import*) : ;;
5509 *) false ;;
5510 esac
5511 }
5512
5513 # func_mode_link arg...
5514 func_mode_link ()
5515 {
5516 $opt_debug
5517 case $host in
5518 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5519 # It is impossible to link a dll without this setting, and
5520 # we shouldn't force the makefile maintainer to figure out
5521 # which system we are compiling for in order to pass an extra
5522 # flag for every libtool invocation.
5523 # allow_undefined=no
5524
5525 # FIXME: Unfortunately, there are problems with the above when trying
5526 # to make a dll which has undefined symbols, in which case not
5527 # even a static library is built. For now, we need to specify
5528 # -no-undefined on the libtool link line when we can be certain
5529 # that all symbols are satisfied, otherwise we get a static library.
5530 allow_undefined=yes
5531 ;;
5532 *)
5533 allow_undefined=yes
5534 ;;
5535 esac
5536 libtool_args=$nonopt
5537 base_compile="$nonopt $@"
5538 compile_command=$nonopt
5539 finalize_command=$nonopt
5540
5541 compile_rpath=
5542 finalize_rpath=
5543 compile_shlibpath=
5544 finalize_shlibpath=
5545 convenience=
5546 old_convenience=
5547 deplibs=
5548 old_deplibs=
5549 compiler_flags=
5550 linker_flags=
5551 dllsearchpath=
5552 lib_search_path=`pwd`
5553 inst_prefix_dir=
5554 new_inherited_linker_flags=
5555
5556 avoid_version=no
5557 bindir=
5558 dlfiles=
5559 dlprefiles=
5560 dlself=no
5561 export_dynamic=no
5562 export_symbols=
5563 export_symbols_regex=
5564 generated=
5565 libobjs=
5566 ltlibs=
5567 module=no
5568 no_install=no
5569 objs=
5570 non_pic_objects=
5571 precious_files_regex=
5572 prefer_static_libs=no
5573 preload=no
5574 prev=
5575 prevarg=
5576 release=
5577 rpath=
5578 xrpath=
5579 perm_rpath=
5580 temp_rpath=
5581 thread_safe=no
5582 vinfo=
5583 vinfo_number=no
5584 weak_libs=
5585 single_module="${wl}-single_module"
5586 func_infer_tag $base_compile
5587
5588 # We need to know -static, to get the right output filenames.
5589 for arg
5590 do
5591 case $arg in
5592 -shared)
5593 test "$build_libtool_libs" != yes && \
5594 func_fatal_configuration "can not build a shared library"
5595 build_old_libs=no
5596 break
5597 ;;
5598 -all-static | -static | -static-libtool-libs)
5599 case $arg in
5600 -all-static)
5601 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
5602 func_warning "complete static linking is impossible in this configuration"
5603 fi
5604 if test -n "$link_static_flag"; then
5605 dlopen_self=$dlopen_self_static
5606 fi
5607 prefer_static_libs=yes
5608 ;;
5609 -static)
5610 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5611 dlopen_self=$dlopen_self_static
5612 fi
5613 prefer_static_libs=built
5614 ;;
5615 -static-libtool-libs)
5616 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5617 dlopen_self=$dlopen_self_static
5618 fi
5619 prefer_static_libs=yes
5620 ;;
5621 esac
5622 build_libtool_libs=no
5623 build_old_libs=yes
5624 break
5625 ;;
5626 esac
5627 done
5628
5629 # See if our shared archives depend on static archives.
5630 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
5631
5632 # Go through the arguments, transforming them on the way.
5633 while test "$#" -gt 0; do
5634 arg="$1"
5635 shift
5636 func_quote_for_eval "$arg"
5637 qarg=$func_quote_for_eval_unquoted_result
5638 libtool_args+=" $func_quote_for_eval_result"
5639
5640 # If the previous option needs an argument, assign it.
5641 if test -n "$prev"; then
5642 case $prev in
5643 output)
5644 compile_command+=" @OUTPUT@"
5645 finalize_command+=" @OUTPUT@"
5646 ;;
5647 esac
5648
5649 case $prev in
5650 bindir)
5651 bindir="$arg"
5652 prev=
5653 continue
5654 ;;
5655 dlfiles|dlprefiles)
5656 if test "$preload" = no; then
5657 # Add the symbol object into the linking commands.
5658 compile_command+=" @SYMFILE@"
5659 finalize_command+=" @SYMFILE@"
5660 preload=yes
5661 fi
5662 case $arg in
5663 *.la | *.lo) ;; # We handle these cases below.
5664 force)
5665 if test "$dlself" = no; then
5666 dlself=needless
5667 export_dynamic=yes
5668 fi
5669 prev=
5670 continue
5671 ;;
5672 self)
5673 if test "$prev" = dlprefiles; then
5674 dlself=yes
5675 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
5676 dlself=yes
5677 else
5678 dlself=needless
5679 export_dynamic=yes
5680 fi
5681 prev=
5682 continue
5683 ;;
5684 *)
5685 if test "$prev" = dlfiles; then
5686 dlfiles+=" $arg"
5687 else
5688 dlprefiles+=" $arg"
5689 fi
5690 prev=
5691 continue
5692 ;;
5693 esac
5694 ;;
5695 expsyms)
5696 export_symbols="$arg"
5697 test -f "$arg" \
5698 || func_fatal_error "symbol file \`$arg' does not exist"
5699 prev=
5700 continue
5701 ;;
5702 expsyms_regex)
5703 export_symbols_regex="$arg"
5704 prev=
5705 continue
5706 ;;
5707 framework)
5708 case $host in
5709 *-*-darwin*)
5710 case "$deplibs " in
5711 *" $qarg.ltframework "*) ;;
5712 *) deplibs+=" $qarg.ltframework" # this is fixed later
5713 ;;
5714 esac
5715 ;;
5716 esac
5717 prev=
5718 continue
5719 ;;
5720 inst_prefix)
5721 inst_prefix_dir="$arg"
5722 prev=
5723 continue
5724 ;;
5725 objectlist)
5726 if test -f "$arg"; then
5727 save_arg=$arg
5728 moreargs=
5729 for fil in `cat "$save_arg"`
5730 do
5731 # moreargs+=" $fil"
5732 arg=$fil
5733 # A libtool-controlled object.
5734
5735 # Check to see that this really is a libtool object.
5736 if func_lalib_unsafe_p "$arg"; then
5737 pic_object=
5738 non_pic_object=
5739
5740 # Read the .lo file
5741 func_source "$arg"
5742
5743 if test -z "$pic_object" ||
5744 test -z "$non_pic_object" ||
5745 test "$pic_object" = none &&
5746 test "$non_pic_object" = none; then
5747 func_fatal_error "cannot find name of object for \`$arg'"
5748 fi
5749
5750 # Extract subdirectory from the argument.
5751 func_dirname "$arg" "/" ""
5752 xdir="$func_dirname_result"
5753
5754 if test "$pic_object" != none; then
5755 # Prepend the subdirectory the object is found in.
5756 pic_object="$xdir$pic_object"
5757
5758 if test "$prev" = dlfiles; then
5759 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5760 dlfiles+=" $pic_object"
5761 prev=
5762 continue
5763 else
5764 # If libtool objects are unsupported, then we need to preload.
5765 prev=dlprefiles
5766 fi
5767 fi
5768
5769 # CHECK ME: I think I busted this. -Ossama
5770 if test "$prev" = dlprefiles; then
5771 # Preload the old-style object.
5772 dlprefiles+=" $pic_object"
5773 prev=
5774 fi
5775
5776 # A PIC object.
5777 libobjs+=" $pic_object"
5778 arg="$pic_object"
5779 fi
5780
5781 # Non-PIC object.
5782 if test "$non_pic_object" != none; then
5783 # Prepend the subdirectory the object is found in.
5784 non_pic_object="$xdir$non_pic_object"
5785
5786 # A standard non-PIC object
5787 non_pic_objects+=" $non_pic_object"
5788 if test -z "$pic_object" || test "$pic_object" = none ; then
5789 arg="$non_pic_object"
5790 fi
5791 else
5792 # If the PIC object exists, use it instead.
5793 # $xdir was prepended to $pic_object above.
5794 non_pic_object="$pic_object"
5795 non_pic_objects+=" $non_pic_object"
5796 fi
5797 else
5798 # Only an error if not doing a dry-run.
5799 if $opt_dry_run; then
5800 # Extract subdirectory from the argument.
5801 func_dirname "$arg" "/" ""
5802 xdir="$func_dirname_result"
5803
5804 func_lo2o "$arg"
5805 pic_object=$xdir$objdir/$func_lo2o_result
5806 non_pic_object=$xdir$func_lo2o_result
5807 libobjs+=" $pic_object"
5808 non_pic_objects+=" $non_pic_object"
5809 else
5810 func_fatal_error "\`$arg' is not a valid libtool object"
5811 fi
5812 fi
5813 done
5814 else
5815 func_fatal_error "link input file \`$arg' does not exist"
5816 fi
5817 arg=$save_arg
5818 prev=
5819 continue
5820 ;;
5821 precious_regex)
5822 precious_files_regex="$arg"
5823 prev=
5824 continue
5825 ;;
5826 release)
5827 release="-$arg"
5828 prev=
5829 continue
5830 ;;
5831 rpath | xrpath)
5832 # We need an absolute path.
5833 case $arg in
5834 [\\/]* | [A-Za-z]:[\\/]*) ;;
5835 *)
5836 func_fatal_error "only absolute run-paths are allowed"
5837 ;;
5838 esac
5839 if test "$prev" = rpath; then
5840 case "$rpath " in
5841 *" $arg "*) ;;
5842 *) rpath+=" $arg" ;;
5843 esac
5844 else
5845 case "$xrpath " in
5846 *" $arg "*) ;;
5847 *) xrpath+=" $arg" ;;
5848 esac
5849 fi
5850 prev=
5851 continue
5852 ;;
5853 shrext)
5854 shrext_cmds="$arg"
5855 prev=
5856 continue
5857 ;;
5858 weak)
5859 weak_libs+=" $arg"
5860 prev=
5861 continue
5862 ;;
5863 xcclinker)
5864 linker_flags+=" $qarg"
5865 compiler_flags+=" $qarg"
5866 prev=
5867 compile_command+=" $qarg"
5868 finalize_command+=" $qarg"
5869 continue
5870 ;;
5871 xcompiler)
5872 compiler_flags+=" $qarg"
5873 prev=
5874 compile_command+=" $qarg"
5875 finalize_command+=" $qarg"
5876 continue
5877 ;;
5878 xlinker)
5879 linker_flags+=" $qarg"
5880 compiler_flags+=" $wl$qarg"
5881 prev=
5882 compile_command+=" $wl$qarg"
5883 finalize_command+=" $wl$qarg"
5884 continue
5885 ;;
5886 *)
5887 eval "$prev=\"\$arg\""
5888 prev=
5889 continue
5890 ;;
5891 esac
5892 fi # test -n "$prev"
5893
5894 prevarg="$arg"
5895
5896 case $arg in
5897 -all-static)
5898 if test -n "$link_static_flag"; then
5899 # See comment for -static flag below, for more details.
5900 compile_command+=" $link_static_flag"
5901 finalize_command+=" $link_static_flag"
5902 fi
5903 continue
5904 ;;
5905
5906 -allow-undefined)
5907 # FIXME: remove this flag sometime in the future.
5908 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
5909 ;;
5910
5911 -avoid-version)
5912 avoid_version=yes
5913 continue
5914 ;;
5915
5916 -bindir)
5917 prev=bindir
5918 continue
5919 ;;
5920
5921 -dlopen)
5922 prev=dlfiles
5923 continue
5924 ;;
5925
5926 -dlpreopen)
5927 prev=dlprefiles
5928 continue
5929 ;;
5930
5931 -export-dynamic)
5932 export_dynamic=yes
5933 continue
5934 ;;
5935
5936 -export-symbols | -export-symbols-regex)
5937 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
5938 func_fatal_error "more than one -exported-symbols argument is not allowed"
5939 fi
5940 if test "X$arg" = "X-export-symbols"; then
5941 prev=expsyms
5942 else
5943 prev=expsyms_regex
5944 fi
5945 continue
5946 ;;
5947
5948 -framework)
5949 prev=framework
5950 continue
5951 ;;
5952
5953 -inst-prefix-dir)
5954 prev=inst_prefix
5955 continue
5956 ;;
5957
5958 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
5959 # so, if we see these flags be careful not to treat them like -L
5960 -L[A-Z][A-Z]*:*)
5961 case $with_gcc/$host in
5962 no/*-*-irix* | /*-*-irix*)
5963 compile_command+=" $arg"
5964 finalize_command+=" $arg"
5965 ;;
5966 esac
5967 continue
5968 ;;
5969
5970 -L*)
5971 func_stripname "-L" '' "$arg"
5972 if test -z "$func_stripname_result"; then
5973 if test "$#" -gt 0; then
5974 func_fatal_error "require no space between \`-L' and \`$1'"
5975 else
5976 func_fatal_error "need path for \`-L' option"
5977 fi
5978 fi
5979 func_resolve_sysroot "$func_stripname_result"
5980 dir=$func_resolve_sysroot_result
5981 # We need an absolute path.
5982 case $dir in
5983 [\\/]* | [A-Za-z]:[\\/]*) ;;
5984 *)
5985 absdir=`cd "$dir" && pwd`
5986 test -z "$absdir" && \
5987 func_fatal_error "cannot determine absolute directory name of \`$dir'"
5988 dir="$absdir"
5989 ;;
5990 esac
5991 case "$deplibs " in
5992 *" -L$dir "* | *" $arg "*)
5993 # Will only happen for absolute or sysroot arguments
5994 ;;
5995 *)
5996 # Preserve sysroot, but never include relative directories
5997 case $dir in
5998 [\\/]* | [A-Za-z]:[\\/]* | =*) deplibs+=" $arg" ;;
5999 *) deplibs+=" -L$dir" ;;
6000 esac
6001 lib_search_path+=" $dir"
6002 ;;
6003 esac
6004 case $host in
6005 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6006 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
6007 case :$dllsearchpath: in
6008 *":$dir:"*) ;;
6009 ::) dllsearchpath=$dir;;
6010 *) dllsearchpath+=":$dir";;
6011 esac
6012 case :$dllsearchpath: in
6013 *":$testbindir:"*) ;;
6014 ::) dllsearchpath=$testbindir;;
6015 *) dllsearchpath+=":$testbindir";;
6016 esac
6017 ;;
6018 esac
6019 continue
6020 ;;
6021
6022 -l*)
6023 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
6024 case $host in
6025 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
6026 # These systems don't actually have a C or math library (as such)
6027 continue
6028 ;;
6029 *-*-os2*)
6030 # These systems don't actually have a C library (as such)
6031 test "X$arg" = "X-lc" && continue
6032 ;;
6033 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
6034 # Do not include libc due to us having libc/libc_r.
6035 test "X$arg" = "X-lc" && continue
6036 ;;
6037 *-*-rhapsody* | *-*-darwin1.[012])
6038 # Rhapsody C and math libraries are in the System framework
6039 deplibs+=" System.ltframework"
6040 continue
6041 ;;
6042 *-*-sco3.2v5* | *-*-sco5v6*)
6043 # Causes problems with __ctype
6044 test "X$arg" = "X-lc" && continue
6045 ;;
6046 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
6047 # Compiler inserts libc in the correct place for threads to work
6048 test "X$arg" = "X-lc" && continue
6049 ;;
6050 esac
6051 elif test "X$arg" = "X-lc_r"; then
6052 case $host in
6053 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
6054 # Do not include libc_r directly, use -pthread flag.
6055 continue
6056 ;;
6057 esac
6058 fi
6059 deplibs+=" $arg"
6060 continue
6061 ;;
6062
6063 -module)
6064 module=yes
6065 continue
6066 ;;
6067
6068 # Tru64 UNIX uses -model [arg] to determine the layout of C++
6069 # classes, name mangling, and exception handling.
6070 # Darwin uses the -arch flag to determine output architecture.
6071 -model|-arch|-isysroot|--sysroot)
6072 compiler_flags+=" $arg"
6073 compile_command+=" $arg"
6074 finalize_command+=" $arg"
6075 prev=xcompiler
6076 continue
6077 ;;
6078
6079 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6080 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6081 compiler_flags+=" $arg"
6082 compile_command+=" $arg"
6083 finalize_command+=" $arg"
6084 case "$new_inherited_linker_flags " in
6085 *" $arg "*) ;;
6086 * ) new_inherited_linker_flags+=" $arg" ;;
6087 esac
6088 continue
6089 ;;
6090
6091 -multi_module)
6092 single_module="${wl}-multi_module"
6093 continue
6094 ;;
6095
6096 -no-fast-install)
6097 fast_install=no
6098 continue
6099 ;;
6100
6101 -no-install)
6102 case $host in
6103 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
6104 # The PATH hackery in wrapper scripts is required on Windows
6105 # and Darwin in order for the loader to find any dlls it needs.
6106 func_warning "\`-no-install' is ignored for $host"
6107 func_warning "assuming \`-no-fast-install' instead"
6108 fast_install=no
6109 ;;
6110 *) no_install=yes ;;
6111 esac
6112 continue
6113 ;;
6114
6115 -no-undefined)
6116 allow_undefined=no
6117 continue
6118 ;;
6119
6120 -objectlist)
6121 prev=objectlist
6122 continue
6123 ;;
6124
6125 -o) prev=output ;;
6126
6127 -precious-files-regex)
6128 prev=precious_regex
6129 continue
6130 ;;
6131
6132 -release)
6133 prev=release
6134 continue
6135 ;;
6136
6137 -rpath)
6138 prev=rpath
6139 continue
6140 ;;
6141
6142 -R)
6143 prev=xrpath
6144 continue
6145 ;;
6146
6147 -R*)
6148 func_stripname '-R' '' "$arg"
6149 dir=$func_stripname_result
6150 # We need an absolute path.
6151 case $dir in
6152 [\\/]* | [A-Za-z]:[\\/]*) ;;
6153 =*)
6154 func_stripname '=' '' "$dir"
6155 dir=$lt_sysroot$func_stripname_result
6156 ;;
6157 *)
6158 func_fatal_error "only absolute run-paths are allowed"
6159 ;;
6160 esac
6161 case "$xrpath " in
6162 *" $dir "*) ;;
6163 *) xrpath+=" $dir" ;;
6164 esac
6165 continue
6166 ;;
6167
6168 -shared)
6169 # The effects of -shared are defined in a previous loop.
6170 continue
6171 ;;
6172
6173 -shrext)
6174 prev=shrext
6175 continue
6176 ;;
6177
6178 -static | -static-libtool-libs)
6179 # The effects of -static are defined in a previous loop.
6180 # We used to do the same as -all-static on platforms that
6181 # didn't have a PIC flag, but the assumption that the effects
6182 # would be equivalent was wrong. It would break on at least
6183 # Digital Unix and AIX.
6184 continue
6185 ;;
6186
6187 -thread-safe)
6188 thread_safe=yes
6189 continue
6190 ;;
6191
6192 -version-info)
6193 prev=vinfo
6194 continue
6195 ;;
6196
6197 -version-number)
6198 prev=vinfo
6199 vinfo_number=yes
6200 continue
6201 ;;
6202
6203 -weak)
6204 prev=weak
6205 continue
6206 ;;
6207
6208 -Wc,*)
6209 func_stripname '-Wc,' '' "$arg"
6210 args=$func_stripname_result
6211 arg=
6212 save_ifs="$IFS"; IFS=','
6213 for flag in $args; do
6214 IFS="$save_ifs"
6215 func_quote_for_eval "$flag"
6216 arg+=" $func_quote_for_eval_result"
6217 compiler_flags+=" $func_quote_for_eval_result"
6218 done
6219 IFS="$save_ifs"
6220 func_stripname ' ' '' "$arg"
6221 arg=$func_stripname_result
6222 ;;
6223
6224 -Wl,*)
6225 func_stripname '-Wl,' '' "$arg"
6226 args=$func_stripname_result
6227 arg=
6228 save_ifs="$IFS"; IFS=','
6229 for flag in $args; do
6230 IFS="$save_ifs"
6231 func_quote_for_eval "$flag"
6232 arg+=" $wl$func_quote_for_eval_result"
6233 compiler_flags+=" $wl$func_quote_for_eval_result"
6234 linker_flags+=" $func_quote_for_eval_result"
6235 done
6236 IFS="$save_ifs"
6237 func_stripname ' ' '' "$arg"
6238 arg=$func_stripname_result
6239 ;;
6240
6241 -Xcompiler)
6242 prev=xcompiler
6243 continue
6244 ;;
6245
6246 -Xlinker)
6247 prev=xlinker
6248 continue
6249 ;;
6250
6251 -XCClinker)
6252 prev=xcclinker
6253 continue
6254 ;;
6255
6256 # -msg_* for osf cc
6257 -msg_*)
6258 func_quote_for_eval "$arg"
6259 arg="$func_quote_for_eval_result"
6260 ;;
6261
6262 # Flags to be passed through unchanged, with rationale:
6263 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
6264 # -r[0-9][0-9]* specify processor for the SGI compiler
6265 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
6266 # +DA*, +DD* enable 64-bit mode for the HP compiler
6267 # -q* compiler args for the IBM compiler
6268 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
6269 # -F/path path to uninstalled frameworks, gcc on darwin
6270 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
6271 # @file GCC response files
6272 # -tp=* Portland pgcc target processor selection
6273 # --sysroot=* for sysroot support
6274 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
6275 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
6276 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
6277 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
6278 func_quote_for_eval "$arg"
6279 arg="$func_quote_for_eval_result"
6280 compile_command+=" $arg"
6281 finalize_command+=" $arg"
6282 compiler_flags+=" $arg"
6283 continue
6284 ;;
6285
6286 # Some other compiler flag.
6287 -* | +*)
6288 func_quote_for_eval "$arg"
6289 arg="$func_quote_for_eval_result"
6290 ;;
6291
6292 *.$objext)
6293 # A standard object.
6294 objs+=" $arg"
6295 ;;
6296
6297 *.lo)
6298 # A libtool-controlled object.
6299
6300 # Check to see that this really is a libtool object.
6301 if func_lalib_unsafe_p "$arg"; then
6302 pic_object=
6303 non_pic_object=
6304
6305 # Read the .lo file
6306 func_source "$arg"
6307
6308 if test -z "$pic_object" ||
6309 test -z "$non_pic_object" ||
6310 test "$pic_object" = none &&
6311 test "$non_pic_object" = none; then
6312 func_fatal_error "cannot find name of object for \`$arg'"
6313 fi
6314
6315 # Extract subdirectory from the argument.
6316 func_dirname "$arg" "/" ""
6317 xdir="$func_dirname_result"
6318
6319 if test "$pic_object" != none; then
6320 # Prepend the subdirectory the object is found in.
6321 pic_object="$xdir$pic_object"
6322
6323 if test "$prev" = dlfiles; then
6324 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
6325 dlfiles+=" $pic_object"
6326 prev=
6327 continue
6328 else
6329 # If libtool objects are unsupported, then we need to preload.
6330 prev=dlprefiles
6331 fi
6332 fi
6333
6334 # CHECK ME: I think I busted this. -Ossama
6335 if test "$prev" = dlprefiles; then
6336 # Preload the old-style object.
6337 dlprefiles+=" $pic_object"
6338 prev=
6339 fi
6340
6341 # A PIC object.
6342 libobjs+=" $pic_object"
6343 arg="$pic_object"
6344 fi
6345
6346 # Non-PIC object.
6347 if test "$non_pic_object" != none; then
6348 # Prepend the subdirectory the object is found in.
6349 non_pic_object="$xdir$non_pic_object"
6350
6351 # A standard non-PIC object
6352 non_pic_objects+=" $non_pic_object"
6353 if test -z "$pic_object" || test "$pic_object" = none ; then
6354 arg="$non_pic_object"
6355 fi
6356 else
6357 # If the PIC object exists, use it instead.
6358 # $xdir was prepended to $pic_object above.
6359 non_pic_object="$pic_object"
6360 non_pic_objects+=" $non_pic_object"
6361 fi
6362 else
6363 # Only an error if not doing a dry-run.
6364 if $opt_dry_run; then
6365 # Extract subdirectory from the argument.
6366 func_dirname "$arg" "/" ""
6367 xdir="$func_dirname_result"
6368
6369 func_lo2o "$arg"
6370 pic_object=$xdir$objdir/$func_lo2o_result
6371 non_pic_object=$xdir$func_lo2o_result
6372 libobjs+=" $pic_object"
6373 non_pic_objects+=" $non_pic_object"
6374 else
6375 func_fatal_error "\`$arg' is not a valid libtool object"
6376 fi
6377 fi
6378 ;;
6379
6380 *.$libext)
6381 # An archive.
6382 deplibs+=" $arg"
6383 old_deplibs+=" $arg"
6384 continue
6385 ;;
6386
6387 *.la)
6388 # A libtool-controlled library.
6389
6390 func_resolve_sysroot "$arg"
6391 if test "$prev" = dlfiles; then
6392 # This library was specified with -dlopen.
6393 dlfiles+=" $func_resolve_sysroot_result"
6394 prev=
6395 elif test "$prev" = dlprefiles; then
6396 # The library was specified with -dlpreopen.
6397 dlprefiles+=" $func_resolve_sysroot_result"
6398 prev=
6399 else
6400 deplibs+=" $func_resolve_sysroot_result"
6401 fi
6402 continue
6403 ;;
6404
6405 # Some other compiler argument.
6406 *)
6407 # Unknown arguments in both finalize_command and compile_command need
6408 # to be aesthetically quoted because they are evaled later.
6409 func_quote_for_eval "$arg"
6410 arg="$func_quote_for_eval_result"
6411 ;;
6412 esac # arg
6413
6414 # Now actually substitute the argument into the commands.
6415 if test -n "$arg"; then
6416 compile_command+=" $arg"
6417 finalize_command+=" $arg"
6418 fi
6419 done # argument parsing loop
6420
6421 test -n "$prev" && \
6422 func_fatal_help "the \`$prevarg' option requires an argument"
6423
6424 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
6425 eval arg=\"$export_dynamic_flag_spec\"
6426 compile_command+=" $arg"
6427 finalize_command+=" $arg"
6428 fi
6429
6430 oldlibs=
6431 # calculate the name of the file, without its directory
6432 func_basename "$output"
6433 outputname="$func_basename_result"
6434 libobjs_save="$libobjs"
6435
6436 if test -n "$shlibpath_var"; then
6437 # get the directories listed in $shlibpath_var
6438 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
6439 else
6440 shlib_search_path=
6441 fi
6442 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
6443 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
6444
6445 func_dirname "$output" "/" ""
6446 output_objdir="$func_dirname_result$objdir"
6447 func_to_tool_file "$output_objdir/"
6448 tool_output_objdir=$func_to_tool_file_result
6449 # Create the object directory.
6450 func_mkdir_p "$output_objdir"
6451
6452 # Determine the type of output
6453 case $output in
6454 "")
6455 func_fatal_help "you must specify an output file"
6456 ;;
6457 *.$libext) linkmode=oldlib ;;
6458 *.lo | *.$objext) linkmode=obj ;;
6459 *.la) linkmode=lib ;;
6460 *) linkmode=prog ;; # Anything else should be a program.
6461 esac
6462
6463 specialdeplibs=
6464
6465 libs=
6466 # Find all interdependent deplibs by searching for libraries
6467 # that are linked more than once (e.g. -la -lb -la)
6468 for deplib in $deplibs; do
6469 if $opt_preserve_dup_deps ; then
6470 case "$libs " in
6471 *" $deplib "*) specialdeplibs+=" $deplib" ;;
6472 esac
6473 fi
6474 libs+=" $deplib"
6475 done
6476
6477 if test "$linkmode" = lib; then
6478 libs="$predeps $libs $compiler_lib_search_path $postdeps"
6479
6480 # Compute libraries that are listed more than once in $predeps
6481 # $postdeps and mark them as special (i.e., whose duplicates are
6482 # not to be eliminated).
6483 pre_post_deps=
6484 if $opt_duplicate_compiler_generated_deps; then
6485 for pre_post_dep in $predeps $postdeps; do
6486 case "$pre_post_deps " in
6487 *" $pre_post_dep "*) specialdeplibs+=" $pre_post_deps" ;;
6488 esac
6489 pre_post_deps+=" $pre_post_dep"
6490 done
6491 fi
6492 pre_post_deps=
6493 fi
6494
6495 deplibs=
6496 newdependency_libs=
6497 newlib_search_path=
6498 need_relink=no # whether we're linking any uninstalled libtool libraries
6499 notinst_deplibs= # not-installed libtool libraries
6500 notinst_path= # paths that contain not-installed libtool libraries
6501
6502 case $linkmode in
6503 lib)
6504 passes="conv dlpreopen link"
6505 for file in $dlfiles $dlprefiles; do
6506 case $file in
6507 *.la) ;;
6508 *)
6509 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
6510 ;;
6511 esac
6512 done
6513 ;;
6514 prog)
6515 compile_deplibs=
6516 finalize_deplibs=
6517 alldeplibs=no
6518 newdlfiles=
6519 newdlprefiles=
6520 passes="conv scan dlopen dlpreopen link"
6521 ;;
6522 *) passes="conv"
6523 ;;
6524 esac
6525
6526 for pass in $passes; do
6527 # The preopen pass in lib mode reverses $deplibs; put it back here
6528 # so that -L comes before libs that need it for instance...
6529 if test "$linkmode,$pass" = "lib,link"; then
6530 ## FIXME: Find the place where the list is rebuilt in the wrong
6531 ## order, and fix it there properly
6532 tmp_deplibs=
6533 for deplib in $deplibs; do
6534 tmp_deplibs="$deplib $tmp_deplibs"
6535 done
6536 deplibs="$tmp_deplibs"
6537 fi
6538
6539 if test "$linkmode,$pass" = "lib,link" ||
6540 test "$linkmode,$pass" = "prog,scan"; then
6541 libs="$deplibs"
6542 deplibs=
6543 fi
6544 if test "$linkmode" = prog; then
6545 case $pass in
6546 dlopen) libs="$dlfiles" ;;
6547 dlpreopen) libs="$dlprefiles" ;;
6548 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
6549 esac
6550 fi
6551 if test "$linkmode,$pass" = "lib,dlpreopen"; then
6552 # Collect and forward deplibs of preopened libtool libs
6553 for lib in $dlprefiles; do
6554 # Ignore non-libtool-libs
6555 dependency_libs=
6556 func_resolve_sysroot "$lib"
6557 case $lib in
6558 *.la) func_source "$func_resolve_sysroot_result" ;;
6559 esac
6560
6561 # Collect preopened libtool deplibs, except any this library
6562 # has declared as weak libs
6563 for deplib in $dependency_libs; do
6564 func_basename "$deplib"
6565 deplib_base=$func_basename_result
6566 case " $weak_libs " in
6567 *" $deplib_base "*) ;;
6568 *) deplibs+=" $deplib" ;;
6569 esac
6570 done
6571 done
6572 libs="$dlprefiles"
6573 fi
6574 if test "$pass" = dlopen; then
6575 # Collect dlpreopened libraries
6576 save_deplibs="$deplibs"
6577 deplibs=
6578 fi
6579
6580 for deplib in $libs; do
6581 lib=
6582 found=no
6583 case $deplib in
6584 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6585 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6586 if test "$linkmode,$pass" = "prog,link"; then
6587 compile_deplibs="$deplib $compile_deplibs"
6588 finalize_deplibs="$deplib $finalize_deplibs"
6589 else
6590 compiler_flags+=" $deplib"
6591 if test "$linkmode" = lib ; then
6592 case "$new_inherited_linker_flags " in
6593 *" $deplib "*) ;;
6594 * ) new_inherited_linker_flags+=" $deplib" ;;
6595 esac
6596 fi
6597 fi
6598 continue
6599 ;;
6600 -l*)
6601 if test "$linkmode" != lib && test "$linkmode" != prog; then
6602 func_warning "\`-l' is ignored for archives/objects"
6603 continue
6604 fi
6605 func_stripname '-l' '' "$deplib"
6606 name=$func_stripname_result
6607 if test "$linkmode" = lib; then
6608 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
6609 else
6610 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
6611 fi
6612 for searchdir in $searchdirs; do
6613 for search_ext in .la $std_shrext .so .a; do
6614 # Search the libtool library
6615 lib="$searchdir/lib${name}${search_ext}"
6616 if test -f "$lib"; then
6617 if test "$search_ext" = ".la"; then
6618 found=yes
6619 else
6620 found=no
6621 fi
6622 break 2
6623 fi
6624 done
6625 done
6626 if test "$found" != yes; then
6627 # deplib doesn't seem to be a libtool library
6628 if test "$linkmode,$pass" = "prog,link"; then
6629 compile_deplibs="$deplib $compile_deplibs"
6630 finalize_deplibs="$deplib $finalize_deplibs"
6631 else
6632 deplibs="$deplib $deplibs"
6633 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6634 fi
6635 continue
6636 else # deplib is a libtool library
6637 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
6638 # We need to do some special things here, and not later.
6639 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6640 case " $predeps $postdeps " in
6641 *" $deplib "*)
6642 if func_lalib_p "$lib"; then
6643 library_names=
6644 old_library=
6645 func_source "$lib"
6646 for l in $old_library $library_names; do
6647 ll="$l"
6648 done
6649 if test "X$ll" = "X$old_library" ; then # only static version available
6650 found=no
6651 func_dirname "$lib" "" "."
6652 ladir="$func_dirname_result"
6653 lib=$ladir/$old_library
6654 if test "$linkmode,$pass" = "prog,link"; then
6655 compile_deplibs="$deplib $compile_deplibs"
6656 finalize_deplibs="$deplib $finalize_deplibs"
6657 else
6658 deplibs="$deplib $deplibs"
6659 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6660 fi
6661 continue
6662 fi
6663 fi
6664 ;;
6665 *) ;;
6666 esac
6667 fi
6668 fi
6669 ;; # -l
6670 *.ltframework)
6671 if test "$linkmode,$pass" = "prog,link"; then
6672 compile_deplibs="$deplib $compile_deplibs"
6673 finalize_deplibs="$deplib $finalize_deplibs"
6674 else
6675 deplibs="$deplib $deplibs"
6676 if test "$linkmode" = lib ; then
6677 case "$new_inherited_linker_flags " in
6678 *" $deplib "*) ;;
6679 * ) new_inherited_linker_flags+=" $deplib" ;;
6680 esac
6681 fi
6682 fi
6683 continue
6684 ;;
6685 -L*)
6686 case $linkmode in
6687 lib)
6688 deplibs="$deplib $deplibs"
6689 test "$pass" = conv && continue
6690 newdependency_libs="$deplib $newdependency_libs"
6691 func_stripname '-L' '' "$deplib"
6692 func_resolve_sysroot "$func_stripname_result"
6693 newlib_search_path+=" $func_resolve_sysroot_result"
6694 ;;
6695 prog)
6696 if test "$pass" = conv; then
6697 deplibs="$deplib $deplibs"
6698 continue
6699 fi
6700 if test "$pass" = scan; then
6701 deplibs="$deplib $deplibs"
6702 else
6703 compile_deplibs="$deplib $compile_deplibs"
6704 finalize_deplibs="$deplib $finalize_deplibs"
6705 fi
6706 func_stripname '-L' '' "$deplib"
6707 func_resolve_sysroot "$func_stripname_result"
6708 newlib_search_path+=" $func_resolve_sysroot_result"
6709 ;;
6710 *)
6711 func_warning "\`-L' is ignored for archives/objects"
6712 ;;
6713 esac # linkmode
6714 continue
6715 ;; # -L
6716 -R*)
6717 if test "$pass" = link; then
6718 func_stripname '-R' '' "$deplib"
6719 func_resolve_sysroot "$func_stripname_result"
6720 dir=$func_resolve_sysroot_result
6721 # Make sure the xrpath contains only unique directories.
6722 case "$xrpath " in
6723 *" $dir "*) ;;
6724 *) xrpath+=" $dir" ;;
6725 esac
6726 fi
6727 deplibs="$deplib $deplibs"
6728 continue
6729 ;;
6730 *.la)
6731 func_resolve_sysroot "$deplib"
6732 lib=$func_resolve_sysroot_result
6733 ;;
6734 *.$libext)
6735 if test "$pass" = conv; then
6736 deplibs="$deplib $deplibs"
6737 continue
6738 fi
6739 case $linkmode in
6740 lib)
6741 # Linking convenience modules into shared libraries is allowed,
6742 # but linking other static libraries is non-portable.
6743 case " $dlpreconveniencelibs " in
6744 *" $deplib "*) ;;
6745 *)
6746 valid_a_lib=no
6747 case $deplibs_check_method in
6748 match_pattern*)
6749 set dummy $deplibs_check_method; shift
6750 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
6751 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
6752 | $EGREP "$match_pattern_regex" > /dev/null; then
6753 valid_a_lib=yes
6754 fi
6755 ;;
6756 pass_all)
6757 valid_a_lib=yes
6758 ;;
6759 esac
6760 if test "$valid_a_lib" != yes; then
6761 echo
6762 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
6763 echo "*** I have the capability to make that library automatically link in when"
6764 echo "*** you link to this library. But I can only do this if you have a"
6765 echo "*** shared version of the library, which you do not appear to have"
6766 echo "*** because the file extensions .$libext of this argument makes me believe"
6767 echo "*** that it is just a static archive that I should not use here."
6768 else
6769 echo
6770 $ECHO "*** Warning: Linking the shared library $output against the"
6771 $ECHO "*** static library $deplib is not portable!"
6772 deplibs="$deplib $deplibs"
6773 fi
6774 ;;
6775 esac
6776 continue
6777 ;;
6778 prog)
6779 if test "$pass" != link; then
6780 deplibs="$deplib $deplibs"
6781 else
6782 compile_deplibs="$deplib $compile_deplibs"
6783 finalize_deplibs="$deplib $finalize_deplibs"
6784 fi
6785 continue
6786 ;;
6787 esac # linkmode
6788 ;; # *.$libext
6789 *.lo | *.$objext)
6790 if test "$pass" = conv; then
6791 deplibs="$deplib $deplibs"
6792 elif test "$linkmode" = prog; then
6793 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
6794 # If there is no dlopen support or we're linking statically,
6795 # we need to preload.
6796 newdlprefiles+=" $deplib"
6797 compile_deplibs="$deplib $compile_deplibs"
6798 finalize_deplibs="$deplib $finalize_deplibs"
6799 else
6800 newdlfiles+=" $deplib"
6801 fi
6802 fi
6803 continue
6804 ;;
6805 %DEPLIBS%)
6806 alldeplibs=yes
6807 continue
6808 ;;
6809 esac # case $deplib
6810
6811 if test "$found" = yes || test -f "$lib"; then :
6812 else
6813 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
6814 fi
6815
6816 # Check to see that this really is a libtool archive.
6817 func_lalib_unsafe_p "$lib" \
6818 || func_fatal_error "\`$lib' is not a valid libtool archive"
6819
6820 func_dirname "$lib" "" "."
6821 ladir="$func_dirname_result"
6822
6823 dlname=
6824 dlopen=
6825 dlpreopen=
6826 libdir=
6827 library_names=
6828 old_library=
6829 inherited_linker_flags=
6830 # If the library was installed with an old release of libtool,
6831 # it will not redefine variables installed, or shouldnotlink
6832 installed=yes
6833 shouldnotlink=no
6834 avoidtemprpath=
6835
6836
6837 # Read the .la file
6838 func_source "$lib"
6839
6840 # Convert "-framework foo" to "foo.ltframework"
6841 if test -n "$inherited_linker_flags"; then
6842 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
6843 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
6844 case " $new_inherited_linker_flags " in
6845 *" $tmp_inherited_linker_flag "*) ;;
6846 *) new_inherited_linker_flags+=" $tmp_inherited_linker_flag";;
6847 esac
6848 done
6849 fi
6850 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6851 if test "$linkmode,$pass" = "lib,link" ||
6852 test "$linkmode,$pass" = "prog,scan" ||
6853 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
6854 test -n "$dlopen" && dlfiles+=" $dlopen"
6855 test -n "$dlpreopen" && dlprefiles+=" $dlpreopen"
6856 fi
6857
6858 if test "$pass" = conv; then
6859 # Only check for convenience libraries
6860 deplibs="$lib $deplibs"
6861 if test -z "$libdir"; then
6862 if test -z "$old_library"; then
6863 func_fatal_error "cannot find name of link library for \`$lib'"
6864 fi
6865 # It is a libtool convenience library, so add in its objects.
6866 convenience+=" $ladir/$objdir/$old_library"
6867 old_convenience+=" $ladir/$objdir/$old_library"
6868 elif test "$linkmode" != prog && test "$linkmode" != lib; then
6869 func_fatal_error "\`$lib' is not a convenience library"
6870 fi
6871 tmp_libs=
6872 for deplib in $dependency_libs; do
6873 deplibs="$deplib $deplibs"
6874 if $opt_preserve_dup_deps ; then
6875 case "$tmp_libs " in
6876 *" $deplib "*) specialdeplibs+=" $deplib" ;;
6877 esac
6878 fi
6879 tmp_libs+=" $deplib"
6880 done
6881 continue
6882 fi # $pass = conv
6883
6884
6885 # Get the name of the library we link against.
6886 linklib=
6887 if test -n "$old_library" &&
6888 { test "$prefer_static_libs" = yes ||
6889 test "$prefer_static_libs,$installed" = "built,no"; }; then
6890 linklib=$old_library
6891 else
6892 for l in $old_library $library_names; do
6893 linklib="$l"
6894 done
6895 fi
6896 if test -z "$linklib"; then
6897 func_fatal_error "cannot find name of link library for \`$lib'"
6898 fi
6899
6900 # This library was specified with -dlopen.
6901 if test "$pass" = dlopen; then
6902 if test -z "$libdir"; then
6903 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6904 fi
6905 if test -z "$dlname" ||
6906 test "$dlopen_support" != yes ||
6907 test "$build_libtool_libs" = no; then
6908 # If there is no dlname, no dlopen support or we're linking
6909 # statically, we need to preload. We also need to preload any
6910 # dependent libraries so libltdl's deplib preloader doesn't
6911 # bomb out in the load deplibs phase.
6912 dlprefiles+=" $lib $dependency_libs"
6913 else
6914 newdlfiles+=" $lib"
6915 fi
6916 continue
6917 fi # $pass = dlopen
6918
6919 # We need an absolute path.
6920 case $ladir in
6921 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
6922 *)
6923 abs_ladir=`cd "$ladir" && pwd`
6924 if test -z "$abs_ladir"; then
6925 func_warning "cannot determine absolute directory name of \`$ladir'"
6926 func_warning "passing it literally to the linker, although it might fail"
6927 abs_ladir="$ladir"
6928 fi
6929 ;;
6930 esac
6931 func_basename "$lib"
6932 laname="$func_basename_result"
6933
6934 # Find the relevant object directory and library name.
6935 if test "X$installed" = Xyes; then
6936 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6937 func_warning "library \`$lib' was moved."
6938 dir="$ladir"
6939 absdir="$abs_ladir"
6940 libdir="$abs_ladir"
6941 else
6942 dir="$lt_sysroot$libdir"
6943 absdir="$lt_sysroot$libdir"
6944 fi
6945 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
6946 else
6947 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6948 dir="$ladir"
6949 absdir="$abs_ladir"
6950 # Remove this search path later
6951 notinst_path+=" $abs_ladir"
6952 else
6953 dir="$ladir/$objdir"
6954 absdir="$abs_ladir/$objdir"
6955 # Remove this search path later
6956 notinst_path+=" $abs_ladir"
6957 fi
6958 fi # $installed = yes
6959 func_stripname 'lib' '.la' "$laname"
6960 name=$func_stripname_result
6961
6962 # This library was specified with -dlpreopen.
6963 if test "$pass" = dlpreopen; then
6964 if test -z "$libdir" && test "$linkmode" = prog; then
6965 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
6966 fi
6967 case "$host" in
6968 # special handling for platforms with PE-DLLs.
6969 *cygwin* | *mingw* | *cegcc* )
6970 # Linker will automatically link against shared library if both
6971 # static and shared are present. Therefore, ensure we extract
6972 # symbols from the import library if a shared library is present
6973 # (otherwise, the dlopen module name will be incorrect). We do
6974 # this by putting the import library name into $newdlprefiles.
6975 # We recover the dlopen module name by 'saving' the la file
6976 # name in a special purpose variable, and (later) extracting the
6977 # dlname from the la file.
6978 if test -n "$dlname"; then
6979 func_tr_sh "$dir/$linklib"
6980 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
6981 newdlprefiles+=" $dir/$linklib"
6982 else
6983 newdlprefiles+=" $dir/$old_library"
6984 # Keep a list of preopened convenience libraries to check
6985 # that they are being used correctly in the link pass.
6986 test -z "$libdir" && \
6987 dlpreconveniencelibs+=" $dir/$old_library"
6988 fi
6989 ;;
6990 * )
6991 # Prefer using a static library (so that no silly _DYNAMIC symbols
6992 # are required to link).
6993 if test -n "$old_library"; then
6994 newdlprefiles+=" $dir/$old_library"
6995 # Keep a list of preopened convenience libraries to check
6996 # that they are being used correctly in the link pass.
6997 test -z "$libdir" && \
6998 dlpreconveniencelibs+=" $dir/$old_library"
6999 # Otherwise, use the dlname, so that lt_dlopen finds it.
7000 elif test -n "$dlname"; then
7001 newdlprefiles+=" $dir/$dlname"
7002 else
7003 newdlprefiles+=" $dir/$linklib"
7004 fi
7005 ;;
7006 esac
7007 fi # $pass = dlpreopen
7008
7009 if test -z "$libdir"; then
7010 # Link the convenience library
7011 if test "$linkmode" = lib; then
7012 deplibs="$dir/$old_library $deplibs"
7013 elif test "$linkmode,$pass" = "prog,link"; then
7014 compile_deplibs="$dir/$old_library $compile_deplibs"
7015 finalize_deplibs="$dir/$old_library $finalize_deplibs"
7016 else
7017 deplibs="$lib $deplibs" # used for prog,scan pass
7018 fi
7019 continue
7020 fi
7021
7022
7023 if test "$linkmode" = prog && test "$pass" != link; then
7024 newlib_search_path+=" $ladir"
7025 deplibs="$lib $deplibs"
7026
7027 linkalldeplibs=no
7028 if test "$link_all_deplibs" != no || test -z "$library_names" ||
7029 test "$build_libtool_libs" = no; then
7030 linkalldeplibs=yes
7031 fi
7032
7033 tmp_libs=
7034 for deplib in $dependency_libs; do
7035 case $deplib in
7036 -L*) func_stripname '-L' '' "$deplib"
7037 func_resolve_sysroot "$func_stripname_result"
7038 newlib_search_path+=" $func_resolve_sysroot_result"
7039 ;;
7040 esac
7041 # Need to link against all dependency_libs?
7042 if test "$linkalldeplibs" = yes; then
7043 deplibs="$deplib $deplibs"
7044 else
7045 # Need to hardcode shared library paths
7046 # or/and link against static libraries
7047 newdependency_libs="$deplib $newdependency_libs"
7048 fi
7049 if $opt_preserve_dup_deps ; then
7050 case "$tmp_libs " in
7051 *" $deplib "*) specialdeplibs+=" $deplib" ;;
7052 esac
7053 fi
7054 tmp_libs+=" $deplib"
7055 done # for deplib
7056 continue
7057 fi # $linkmode = prog...
7058
7059 if test "$linkmode,$pass" = "prog,link"; then
7060 if test -n "$library_names" &&
7061 { { test "$prefer_static_libs" = no ||
7062 test "$prefer_static_libs,$installed" = "built,yes"; } ||
7063 test -z "$old_library"; }; then
7064 # We need to hardcode the library path
7065 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
7066 # Make sure the rpath contains only unique directories.
7067 case "$temp_rpath:" in
7068 *"$absdir:"*) ;;
7069 *) temp_rpath+="$absdir:" ;;
7070 esac
7071 fi
7072
7073 # Hardcode the library path.
7074 # Skip directories that are in the system default run-time
7075 # search path.
7076 case " $sys_lib_dlsearch_path " in
7077 *" $absdir "*) ;;
7078 *)
7079 case "$compile_rpath " in
7080 *" $absdir "*) ;;
7081 *) compile_rpath+=" $absdir" ;;
7082 esac
7083 ;;
7084 esac
7085 case " $sys_lib_dlsearch_path " in
7086 *" $libdir "*) ;;
7087 *)
7088 case "$finalize_rpath " in
7089 *" $libdir "*) ;;
7090 *) finalize_rpath+=" $libdir" ;;
7091 esac
7092 ;;
7093 esac
7094 fi # $linkmode,$pass = prog,link...
7095
7096 if test "$alldeplibs" = yes &&
7097 { test "$deplibs_check_method" = pass_all ||
7098 { test "$build_libtool_libs" = yes &&
7099 test -n "$library_names"; }; }; then
7100 # We only need to search for static libraries
7101 continue
7102 fi
7103 fi
7104
7105 link_static=no # Whether the deplib will be linked statically
7106 use_static_libs=$prefer_static_libs
7107 if test "$use_static_libs" = built && test "$installed" = yes; then
7108 use_static_libs=no
7109 fi
7110 if test -n "$library_names" &&
7111 { test "$use_static_libs" = no || test -z "$old_library"; }; then
7112 case $host in
7113 *cygwin* | *mingw* | *cegcc*)
7114 # No point in relinking DLLs because paths are not encoded
7115 notinst_deplibs+=" $lib"
7116 need_relink=no
7117 ;;
7118 *)
7119 if test "$installed" = no; then
7120 notinst_deplibs+=" $lib"
7121 need_relink=yes
7122 fi
7123 ;;
7124 esac
7125 # This is a shared library
7126
7127 # Warn about portability, can't link against -module's on some
7128 # systems (darwin). Don't bleat about dlopened modules though!
7129 dlopenmodule=""
7130 for dlpremoduletest in $dlprefiles; do
7131 if test "X$dlpremoduletest" = "X$lib"; then
7132 dlopenmodule="$dlpremoduletest"
7133 break
7134 fi
7135 done
7136 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
7137 echo
7138 if test "$linkmode" = prog; then
7139 $ECHO "*** Warning: Linking the executable $output against the loadable module"
7140 else
7141 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
7142 fi
7143 $ECHO "*** $linklib is not portable!"
7144 fi
7145 if test "$linkmode" = lib &&
7146 test "$hardcode_into_libs" = yes; then
7147 # Hardcode the library path.
7148 # Skip directories that are in the system default run-time
7149 # search path.
7150 case " $sys_lib_dlsearch_path " in
7151 *" $absdir "*) ;;
7152 *)
7153 case "$compile_rpath " in
7154 *" $absdir "*) ;;
7155 *) compile_rpath+=" $absdir" ;;
7156 esac
7157 ;;
7158 esac
7159 case " $sys_lib_dlsearch_path " in
7160 *" $libdir "*) ;;
7161 *)
7162 case "$finalize_rpath " in
7163 *" $libdir "*) ;;
7164 *) finalize_rpath+=" $libdir" ;;
7165 esac
7166 ;;
7167 esac
7168 fi
7169
7170 if test -n "$old_archive_from_expsyms_cmds"; then
7171 # figure out the soname
7172 set dummy $library_names
7173 shift
7174 realname="$1"
7175 shift
7176 libname=`eval "\\$ECHO \"$libname_spec\""`
7177 # use dlname if we got it. it's perfectly good, no?
7178 if test -n "$dlname"; then
7179 soname="$dlname"
7180 elif test -n "$soname_spec"; then
7181 # bleh windows
7182 case $host in
7183 *cygwin* | mingw* | *cegcc*)
7184 func_arith $current - $age
7185 major=$func_arith_result
7186 versuffix="-$major"
7187 ;;
7188 esac
7189 eval soname=\"$soname_spec\"
7190 else
7191 soname="$realname"
7192 fi
7193
7194 # Make a new name for the extract_expsyms_cmds to use
7195 soroot="$soname"
7196 func_basename "$soroot"
7197 soname="$func_basename_result"
7198 func_stripname 'lib' '.dll' "$soname"
7199 newlib=libimp-$func_stripname_result.a
7200
7201 # If the library has no export list, then create one now
7202 if test -f "$output_objdir/$soname-def"; then :
7203 else
7204 func_verbose "extracting exported symbol list from \`$soname'"
7205 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
7206 fi
7207
7208 # Create $newlib
7209 if test -f "$output_objdir/$newlib"; then :; else
7210 func_verbose "generating import library for \`$soname'"
7211 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
7212 fi
7213 # make sure the library variables are pointing to the new library
7214 dir=$output_objdir
7215 linklib=$newlib
7216 fi # test -n "$old_archive_from_expsyms_cmds"
7217
7218 if test "$linkmode" = prog || test "$opt_mode" != relink; then
7219 add_shlibpath=
7220 add_dir=
7221 add=
7222 lib_linked=yes
7223 case $hardcode_action in
7224 immediate | unsupported)
7225 if test "$hardcode_direct" = no; then
7226 add="$dir/$linklib"
7227 case $host in
7228 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
7229 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
7230 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
7231 *-*-unixware7*) add_dir="-L$dir" ;;
7232 *-*-darwin* )
7233 # if the lib is a (non-dlopened) module then we can not
7234 # link against it, someone is ignoring the earlier warnings
7235 if /usr/bin/file -L $add 2> /dev/null |
7236 $GREP ": [^:]* bundle" >/dev/null ; then
7237 if test "X$dlopenmodule" != "X$lib"; then
7238 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
7239 if test -z "$old_library" ; then
7240 echo
7241 echo "*** And there doesn't seem to be a static archive available"
7242 echo "*** The link will probably fail, sorry"
7243 else
7244 add="$dir/$old_library"
7245 fi
7246 elif test -n "$old_library"; then
7247 add="$dir/$old_library"
7248 fi
7249 fi
7250 esac
7251 elif test "$hardcode_minus_L" = no; then
7252 case $host in
7253 *-*-sunos*) add_shlibpath="$dir" ;;
7254 esac
7255 add_dir="-L$dir"
7256 add="-l$name"
7257 elif test "$hardcode_shlibpath_var" = no; then
7258 add_shlibpath="$dir"
7259 add="-l$name"
7260 else
7261 lib_linked=no
7262 fi
7263 ;;
7264 relink)
7265 if test "$hardcode_direct" = yes &&
7266 test "$hardcode_direct_absolute" = no; then
7267 add="$dir/$linklib"
7268 elif test "$hardcode_minus_L" = yes; then
7269 add_dir="-L$absdir"
7270 # Try looking first in the location we're being installed to.
7271 if test -n "$inst_prefix_dir"; then
7272 case $libdir in
7273 [\\/]*)
7274 add_dir+=" -L$inst_prefix_dir$libdir"
7275 ;;
7276 esac
7277 fi
7278 add="-l$name"
7279 elif test "$hardcode_shlibpath_var" = yes; then
7280 add_shlibpath="$dir"
7281 add="-l$name"
7282 else
7283 lib_linked=no
7284 fi
7285 ;;
7286 *) lib_linked=no ;;
7287 esac
7288
7289 if test "$lib_linked" != yes; then
7290 func_fatal_configuration "unsupported hardcode properties"
7291 fi
7292
7293 if test -n "$add_shlibpath"; then
7294 case :$compile_shlibpath: in
7295 *":$add_shlibpath:"*) ;;
7296 *) compile_shlibpath+="$add_shlibpath:" ;;
7297 esac
7298 fi
7299 if test "$linkmode" = prog; then
7300 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
7301 test -n "$add" && compile_deplibs="$add $compile_deplibs"
7302 else
7303 test -n "$add_dir" && deplibs="$add_dir $deplibs"
7304 test -n "$add" && deplibs="$add $deplibs"
7305 if test "$hardcode_direct" != yes &&
7306 test "$hardcode_minus_L" != yes &&
7307 test "$hardcode_shlibpath_var" = yes; then
7308 case :$finalize_shlibpath: in
7309 *":$libdir:"*) ;;
7310 *) finalize_shlibpath+="$libdir:" ;;
7311 esac
7312 fi
7313 fi
7314 fi
7315
7316 if test "$linkmode" = prog || test "$opt_mode" = relink; then
7317 add_shlibpath=
7318 add_dir=
7319 add=
7320 # Finalize command for both is simple: just hardcode it.
7321 if test "$hardcode_direct" = yes &&
7322 test "$hardcode_direct_absolute" = no; then
7323 add="$libdir/$linklib"
7324 elif test "$hardcode_minus_L" = yes; then
7325 add_dir="-L$libdir"
7326 add="-l$name"
7327 elif test "$hardcode_shlibpath_var" = yes; then
7328 case :$finalize_shlibpath: in
7329 *":$libdir:"*) ;;
7330 *) finalize_shlibpath+="$libdir:" ;;
7331 esac
7332 add="-l$name"
7333 elif test "$hardcode_automatic" = yes; then
7334 if test -n "$inst_prefix_dir" &&
7335 test -f "$inst_prefix_dir$libdir/$linklib" ; then
7336 add="$inst_prefix_dir$libdir/$linklib"
7337 else
7338 add="$libdir/$linklib"
7339 fi
7340 else
7341 # We cannot seem to hardcode it, guess we'll fake it.
7342 add_dir="-L$libdir"
7343 # Try looking first in the location we're being installed to.
7344 if test -n "$inst_prefix_dir"; then
7345 case $libdir in
7346 [\\/]*)
7347 add_dir+=" -L$inst_prefix_dir$libdir"
7348 ;;
7349 esac
7350 fi
7351 add="-l$name"
7352 fi
7353
7354 if test "$linkmode" = prog; then
7355 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
7356 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
7357 else
7358 test -n "$add_dir" && deplibs="$add_dir $deplibs"
7359 test -n "$add" && deplibs="$add $deplibs"
7360 fi
7361 fi
7362 elif test "$linkmode" = prog; then
7363 # Here we assume that one of hardcode_direct or hardcode_minus_L
7364 # is not unsupported. This is valid on all known static and
7365 # shared platforms.
7366 if test "$hardcode_direct" != unsupported; then
7367 test -n "$old_library" && linklib="$old_library"
7368 compile_deplibs="$dir/$linklib $compile_deplibs"
7369 finalize_deplibs="$dir/$linklib $finalize_deplibs"
7370 else
7371 compile_deplibs="-l$name -L$dir $compile_deplibs"
7372 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
7373 fi
7374 elif test "$build_libtool_libs" = yes; then
7375 # Not a shared library
7376 if test "$deplibs_check_method" != pass_all; then
7377 # We're trying link a shared library against a static one
7378 # but the system doesn't support it.
7379
7380 # Just print a warning and add the library to dependency_libs so
7381 # that the program can be linked against the static library.
7382 echo
7383 $ECHO "*** Warning: This system can not link to static lib archive $lib."
7384 echo "*** I have the capability to make that library automatically link in when"
7385 echo "*** you link to this library. But I can only do this if you have a"
7386 echo "*** shared version of the library, which you do not appear to have."
7387 if test "$module" = yes; then
7388 echo "*** But as you try to build a module library, libtool will still create "
7389 echo "*** a static module, that should work as long as the dlopening application"
7390 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
7391 if test -z "$global_symbol_pipe"; then
7392 echo
7393 echo "*** However, this would only work if libtool was able to extract symbol"
7394 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
7395 echo "*** not find such a program. So, this module is probably useless."
7396 echo "*** \`nm' from GNU binutils and a full rebuild may help."
7397 fi
7398 if test "$build_old_libs" = no; then
7399 build_libtool_libs=module
7400 build_old_libs=yes
7401 else
7402 build_libtool_libs=no
7403 fi
7404 fi
7405 else
7406 deplibs="$dir/$old_library $deplibs"
7407 link_static=yes
7408 fi
7409 fi # link shared/static library?
7410
7411 if test "$linkmode" = lib; then
7412 if test -n "$dependency_libs" &&
7413 { test "$hardcode_into_libs" != yes ||
7414 test "$build_old_libs" = yes ||
7415 test "$link_static" = yes; }; then
7416 # Extract -R from dependency_libs
7417 temp_deplibs=
7418 for libdir in $dependency_libs; do
7419 case $libdir in
7420 -R*) func_stripname '-R' '' "$libdir"
7421 temp_xrpath=$func_stripname_result
7422 case " $xrpath " in
7423 *" $temp_xrpath "*) ;;
7424 *) xrpath+=" $temp_xrpath";;
7425 esac;;
7426 *) temp_deplibs+=" $libdir";;
7427 esac
7428 done
7429 dependency_libs="$temp_deplibs"
7430 fi
7431
7432 newlib_search_path+=" $absdir"
7433 # Link against this library
7434 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
7435 # ... and its dependency_libs
7436 tmp_libs=
7437 for deplib in $dependency_libs; do
7438 newdependency_libs="$deplib $newdependency_libs"
7439 case $deplib in
7440 -L*) func_stripname '-L' '' "$deplib"
7441 func_resolve_sysroot "$func_stripname_result";;
7442 *) func_resolve_sysroot "$deplib" ;;
7443 esac
7444 if $opt_preserve_dup_deps ; then
7445 case "$tmp_libs " in
7446 *" $func_resolve_sysroot_result "*)
7447 specialdeplibs+=" $func_resolve_sysroot_result" ;;
7448 esac
7449 fi
7450 tmp_libs+=" $func_resolve_sysroot_result"
7451 done
7452
7453 if test "$link_all_deplibs" != no; then
7454 # Add the search paths of all dependency libraries
7455 for deplib in $dependency_libs; do
7456 path=
7457 case $deplib in
7458 -L*) path="$deplib" ;;
7459 *.la)
7460 func_resolve_sysroot "$deplib"
7461 deplib=$func_resolve_sysroot_result
7462 func_dirname "$deplib" "" "."
7463 dir=$func_dirname_result
7464 # We need an absolute path.
7465 case $dir in
7466 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
7467 *)
7468 absdir=`cd "$dir" && pwd`
7469 if test -z "$absdir"; then
7470 func_warning "cannot determine absolute directory name of \`$dir'"
7471 absdir="$dir"
7472 fi
7473 ;;
7474 esac
7475 if $GREP "^installed=no" $deplib > /dev/null; then
7476 case $host in
7477 *-*-darwin*)
7478 depdepl=
7479 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7480 if test -n "$deplibrary_names" ; then
7481 for tmp in $deplibrary_names ; do
7482 depdepl=$tmp
7483 done
7484 if test -f "$absdir/$objdir/$depdepl" ; then
7485 depdepl="$absdir/$objdir/$depdepl"
7486 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7487 if test -z "$darwin_install_name"; then
7488 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7489 fi
7490 compiler_flags+=" ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7491 linker_flags+=" -dylib_file ${darwin_install_name}:${depdepl}"
7492 path=
7493 fi
7494 fi
7495 ;;
7496 *)
7497 path="-L$absdir/$objdir"
7498 ;;
7499 esac
7500 else
7501 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7502 test -z "$libdir" && \
7503 func_fatal_error "\`$deplib' is not a valid libtool archive"
7504 test "$absdir" != "$libdir" && \
7505 func_warning "\`$deplib' seems to be moved"
7506
7507 path="-L$absdir"
7508 fi
7509 ;;
7510 esac
7511 case " $deplibs " in
7512 *" $path "*) ;;
7513 *) deplibs="$path $deplibs" ;;
7514 esac
7515 done
7516 fi # link_all_deplibs != no
7517 fi # linkmode = lib
7518 done # for deplib in $libs
7519 if test "$pass" = link; then
7520 if test "$linkmode" = "prog"; then
7521 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
7522 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
7523 else
7524 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7525 fi
7526 fi
7527 dependency_libs="$newdependency_libs"
7528 if test "$pass" = dlpreopen; then
7529 # Link the dlpreopened libraries before other libraries
7530 for deplib in $save_deplibs; do
7531 deplibs="$deplib $deplibs"
7532 done
7533 fi
7534 if test "$pass" != dlopen; then
7535 if test "$pass" != conv; then
7536 # Make sure lib_search_path contains only unique directories.
7537 lib_search_path=
7538 for dir in $newlib_search_path; do
7539 case "$lib_search_path " in
7540 *" $dir "*) ;;
7541 *) lib_search_path+=" $dir" ;;
7542 esac
7543 done
7544 newlib_search_path=
7545 fi
7546
7547 if test "$linkmode,$pass" != "prog,link"; then
7548 vars="deplibs"
7549 else
7550 vars="compile_deplibs finalize_deplibs"
7551 fi
7552 for var in $vars dependency_libs; do
7553 # Add libraries to $var in reverse order
7554 eval tmp_libs=\"\$$var\"
7555 new_libs=
7556 for deplib in $tmp_libs; do
7557 # FIXME: Pedantically, this is the right thing to do, so
7558 # that some nasty dependency loop isn't accidentally
7559 # broken:
7560 #new_libs="$deplib $new_libs"
7561 # Pragmatically, this seems to cause very few problems in
7562 # practice:
7563 case $deplib in
7564 -L*) new_libs="$deplib $new_libs" ;;
7565 -R*) ;;
7566 *)
7567 # And here is the reason: when a library appears more
7568 # than once as an explicit dependence of a library, or
7569 # is implicitly linked in more than once by the
7570 # compiler, it is considered special, and multiple
7571 # occurrences thereof are not removed. Compare this
7572 # with having the same library being listed as a
7573 # dependency of multiple other libraries: in this case,
7574 # we know (pedantically, we assume) the library does not
7575 # need to be listed more than once, so we keep only the
7576 # last copy. This is not always right, but it is rare
7577 # enough that we require users that really mean to play
7578 # such unportable linking tricks to link the library
7579 # using -Wl,-lname, so that libtool does not consider it
7580 # for duplicate removal.
7581 case " $specialdeplibs " in
7582 *" $deplib "*) new_libs="$deplib $new_libs" ;;
7583 *)
7584 case " $new_libs " in
7585 *" $deplib "*) ;;
7586 *) new_libs="$deplib $new_libs" ;;
7587 esac
7588 ;;
7589 esac
7590 ;;
7591 esac
7592 done
7593 tmp_libs=
7594 for deplib in $new_libs; do
7595 case $deplib in
7596 -L*)
7597 case " $tmp_libs " in
7598 *" $deplib "*) ;;
7599 *) tmp_libs+=" $deplib" ;;
7600 esac
7601 ;;
7602 *) tmp_libs+=" $deplib" ;;
7603 esac
7604 done
7605 eval $var=\"$tmp_libs\"
7606 done # for var
7607 fi
7608 # Last step: remove runtime libs from dependency_libs
7609 # (they stay in deplibs)
7610 tmp_libs=
7611 for i in $dependency_libs ; do
7612 case " $predeps $postdeps $compiler_lib_search_path " in
7613 *" $i "*)
7614 i=""
7615 ;;
7616 esac
7617 if test -n "$i" ; then
7618 tmp_libs+=" $i"
7619 fi
7620 done
7621 dependency_libs=$tmp_libs
7622 done # for pass
7623 if test "$linkmode" = prog; then
7624 dlfiles="$newdlfiles"
7625 fi
7626 if test "$linkmode" = prog || test "$linkmode" = lib; then
7627 dlprefiles="$newdlprefiles"
7628 fi
7629
7630 case $linkmode in
7631 oldlib)
7632 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7633 func_warning "\`-dlopen' is ignored for archives"
7634 fi
7635
7636 case " $deplibs" in
7637 *\ -l* | *\ -L*)
7638 func_warning "\`-l' and \`-L' are ignored for archives" ;;
7639 esac
7640
7641 test -n "$rpath" && \
7642 func_warning "\`-rpath' is ignored for archives"
7643
7644 test -n "$xrpath" && \
7645 func_warning "\`-R' is ignored for archives"
7646
7647 test -n "$vinfo" && \
7648 func_warning "\`-version-info/-version-number' is ignored for archives"
7649
7650 test -n "$release" && \
7651 func_warning "\`-release' is ignored for archives"
7652
7653 test -n "$export_symbols$export_symbols_regex" && \
7654 func_warning "\`-export-symbols' is ignored for archives"
7655
7656 # Now set the variables for building old libraries.
7657 build_libtool_libs=no
7658 oldlibs="$output"
7659 objs+="$old_deplibs"
7660 ;;
7661
7662 lib)
7663 # Make sure we only generate libraries of the form `libNAME.la'.
7664 case $outputname in
7665 lib*)
7666 func_stripname 'lib' '.la' "$outputname"
7667 name=$func_stripname_result
7668 eval shared_ext=\"$shrext_cmds\"
7669 eval libname=\"$libname_spec\"
7670 ;;
7671 *)
7672 test "$module" = no && \
7673 func_fatal_help "libtool library \`$output' must begin with \`lib'"
7674
7675 if test "$need_lib_prefix" != no; then
7676 # Add the "lib" prefix for modules if required
7677 func_stripname '' '.la' "$outputname"
7678 name=$func_stripname_result
7679 eval shared_ext=\"$shrext_cmds\"
7680 eval libname=\"$libname_spec\"
7681 else
7682 func_stripname '' '.la' "$outputname"
7683 libname=$func_stripname_result
7684 fi
7685 ;;
7686 esac
7687
7688 if test -n "$objs"; then
7689 if test "$deplibs_check_method" != pass_all; then
7690 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
7691 else
7692 echo
7693 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
7694 $ECHO "*** objects $objs is not portable!"
7695 libobjs+=" $objs"
7696 fi
7697 fi
7698
7699 test "$dlself" != no && \
7700 func_warning "\`-dlopen self' is ignored for libtool libraries"
7701
7702 set dummy $rpath
7703 shift
7704 test "$#" -gt 1 && \
7705 func_warning "ignoring multiple \`-rpath's for a libtool library"
7706
7707 install_libdir="$1"
7708
7709 oldlibs=
7710 if test -z "$rpath"; then
7711 if test "$build_libtool_libs" = yes; then
7712 # Building a libtool convenience library.
7713 # Some compilers have problems with a `.al' extension so
7714 # convenience libraries should have the same extension an
7715 # archive normally would.
7716 oldlibs="$output_objdir/$libname.$libext $oldlibs"
7717 build_libtool_libs=convenience
7718 build_old_libs=yes
7719 fi
7720
7721 test -n "$vinfo" && \
7722 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
7723
7724 test -n "$release" && \
7725 func_warning "\`-release' is ignored for convenience libraries"
7726 else
7727
7728 # Parse the version information argument.
7729 save_ifs="$IFS"; IFS=':'
7730 set dummy $vinfo 0 0 0
7731 shift
7732 IFS="$save_ifs"
7733
7734 test -n "$7" && \
7735 func_fatal_help "too many parameters to \`-version-info'"
7736
7737 # convert absolute version numbers to libtool ages
7738 # this retains compatibility with .la files and attempts
7739 # to make the code below a bit more comprehensible
7740
7741 case $vinfo_number in
7742 yes)
7743 number_major="$1"
7744 number_minor="$2"
7745 number_revision="$3"
7746 #
7747 # There are really only two kinds -- those that
7748 # use the current revision as the major version
7749 # and those that subtract age and use age as
7750 # a minor version. But, then there is irix
7751 # which has an extra 1 added just for fun
7752 #
7753 case $version_type in
7754 # correct linux to gnu/linux during the next big refactor
7755 darwin|linux|osf|windows|none)
7756 func_arith $number_major + $number_minor
7757 current=$func_arith_result
7758 age="$number_minor"
7759 revision="$number_revision"
7760 ;;
7761 freebsd-aout|freebsd-elf|qnx|sunos)
7762 current="$number_major"
7763 revision="$number_minor"
7764 age="0"
7765 ;;
7766 irix|nonstopux)
7767 func_arith $number_major + $number_minor
7768 current=$func_arith_result
7769 age="$number_minor"
7770 revision="$number_minor"
7771 lt_irix_increment=no
7772 ;;
7773 esac
7774 ;;
7775 no)
7776 current="$1"
7777 revision="$2"
7778 age="$3"
7779 ;;
7780 esac
7781
7782 # Check that each of the things are valid numbers.
7783 case $current in
7784 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7785 *)
7786 func_error "CURRENT \`$current' must be a nonnegative integer"
7787 func_fatal_error "\`$vinfo' is not valid version information"
7788 ;;
7789 esac
7790
7791 case $revision in
7792 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7793 *)
7794 func_error "REVISION \`$revision' must be a nonnegative integer"
7795 func_fatal_error "\`$vinfo' is not valid version information"
7796 ;;
7797 esac
7798
7799 case $age in
7800 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7801 *)
7802 func_error "AGE \`$age' must be a nonnegative integer"
7803 func_fatal_error "\`$vinfo' is not valid version information"
7804 ;;
7805 esac
7806
7807 if test "$age" -gt "$current"; then
7808 func_error "AGE \`$age' is greater than the current interface number \`$current'"
7809 func_fatal_error "\`$vinfo' is not valid version information"
7810 fi
7811
7812 # Calculate the version variables.
7813 major=
7814 versuffix=
7815 verstring=
7816 case $version_type in
7817 none) ;;
7818
7819 darwin)
7820 # Like Linux, but with the current version available in
7821 # verstring for coding it into the library header
7822 func_arith $current - $age
7823 major=.$func_arith_result
7824 versuffix="$major.$age.$revision"
7825 # Darwin ld doesn't like 0 for these options...
7826 func_arith $current + 1
7827 minor_current=$func_arith_result
7828 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
7829 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
7830 ;;
7831
7832 freebsd-aout)
7833 major=".$current"
7834 versuffix=".$current.$revision";
7835 ;;
7836
7837 freebsd-elf)
7838 major=".$current"
7839 versuffix=".$current"
7840 ;;
7841
7842 irix | nonstopux)
7843 if test "X$lt_irix_increment" = "Xno"; then
7844 func_arith $current - $age
7845 else
7846 func_arith $current - $age + 1
7847 fi
7848 major=$func_arith_result
7849
7850 case $version_type in
7851 nonstopux) verstring_prefix=nonstopux ;;
7852 *) verstring_prefix=sgi ;;
7853 esac
7854 verstring="$verstring_prefix$major.$revision"
7855
7856 # Add in all the interfaces that we are compatible with.
7857 loop=$revision
7858 while test "$loop" -ne 0; do
7859 func_arith $revision - $loop
7860 iface=$func_arith_result
7861 func_arith $loop - 1
7862 loop=$func_arith_result
7863 verstring="$verstring_prefix$major.$iface:$verstring"
7864 done
7865
7866 # Before this point, $major must not contain `.'.
7867 major=.$major
7868 versuffix="$major.$revision"
7869 ;;
7870
7871 linux) # correct to gnu/linux during the next big refactor
7872 func_arith $current - $age
7873 major=.$func_arith_result
7874 versuffix="$major.$age.$revision"
7875 ;;
7876
7877 osf)
7878 func_arith $current - $age
7879 major=.$func_arith_result
7880 versuffix=".$current.$age.$revision"
7881 verstring="$current.$age.$revision"
7882
7883 # Add in all the interfaces that we are compatible with.
7884 loop=$age
7885 while test "$loop" -ne 0; do
7886 func_arith $current - $loop
7887 iface=$func_arith_result
7888 func_arith $loop - 1
7889 loop=$func_arith_result
7890 verstring="$verstring:${iface}.0"
7891 done
7892
7893 # Make executables depend on our current version.
7894 verstring+=":${current}.0"
7895 ;;
7896
7897 qnx)
7898 major=".$current"
7899 versuffix=".$current"
7900 ;;
7901
7902 sunos)
7903 major=".$current"
7904 versuffix=".$current.$revision"
7905 ;;
7906
7907 windows)
7908 # Use '-' rather than '.', since we only want one
7909 # extension on DOS 8.3 filesystems.
7910 func_arith $current - $age
7911 major=$func_arith_result
7912 versuffix="-$major"
7913 ;;
7914
7915 *)
7916 func_fatal_configuration "unknown library version type \`$version_type'"
7917 ;;
7918 esac
7919
7920 # Clear the version info if we defaulted, and they specified a release.
7921 if test -z "$vinfo" && test -n "$release"; then
7922 major=
7923 case $version_type in
7924 darwin)
7925 # we can't check for "0.0" in archive_cmds due to quoting
7926 # problems, so we reset it completely
7927 verstring=
7928 ;;
7929 *)
7930 verstring="0.0"
7931 ;;
7932 esac
7933 if test "$need_version" = no; then
7934 versuffix=
7935 else
7936 versuffix=".0.0"
7937 fi
7938 fi
7939
7940 # Remove version info from name if versioning should be avoided
7941 if test "$avoid_version" = yes && test "$need_version" = no; then
7942 major=
7943 versuffix=
7944 verstring=""
7945 fi
7946
7947 # Check to see if the archive will have undefined symbols.
7948 if test "$allow_undefined" = yes; then
7949 if test "$allow_undefined_flag" = unsupported; then
7950 func_warning "undefined symbols not allowed in $host shared libraries"
7951 build_libtool_libs=no
7952 build_old_libs=yes
7953 fi
7954 else
7955 # Don't allow undefined symbols.
7956 allow_undefined_flag="$no_undefined_flag"
7957 fi
7958
7959 fi
7960
7961 func_generate_dlsyms "$libname" "$libname" "yes"
7962 libobjs+=" $symfileobj"
7963 test "X$libobjs" = "X " && libobjs=
7964
7965 if test "$opt_mode" != relink; then
7966 # Remove our outputs, but don't remove object files since they
7967 # may have been created when compiling PIC objects.
7968 removelist=
7969 tempremovelist=`$ECHO "$output_objdir/*"`
7970 for p in $tempremovelist; do
7971 case $p in
7972 *.$objext | *.gcno)
7973 ;;
7974 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
7975 if test "X$precious_files_regex" != "X"; then
7976 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
7977 then
7978 continue
7979 fi
7980 fi
7981 removelist+=" $p"
7982 ;;
7983 *) ;;
7984 esac
7985 done
7986 test -n "$removelist" && \
7987 func_show_eval "${RM}r \$removelist"
7988 fi
7989
7990 # Now set the variables for building old libraries.
7991 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
7992 oldlibs+=" $output_objdir/$libname.$libext"
7993
7994 # Transform .lo files to .o files.
7995 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
7996 fi
7997
7998 # Eliminate all temporary directories.
7999 #for path in $notinst_path; do
8000 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
8001 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
8002 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
8003 #done
8004
8005 if test -n "$xrpath"; then
8006 # If the user specified any rpath flags, then add them.
8007 temp_xrpath=
8008 for libdir in $xrpath; do
8009 func_replace_sysroot "$libdir"
8010 temp_xrpath+=" -R$func_replace_sysroot_result"
8011 case "$finalize_rpath " in
8012 *" $libdir "*) ;;
8013 *) finalize_rpath+=" $libdir" ;;
8014 esac
8015 done
8016 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
8017 dependency_libs="$temp_xrpath $dependency_libs"
8018 fi
8019 fi
8020
8021 # Make sure dlfiles contains only unique files that won't be dlpreopened
8022 old_dlfiles="$dlfiles"
8023 dlfiles=
8024 for lib in $old_dlfiles; do
8025 case " $dlprefiles $dlfiles " in
8026 *" $lib "*) ;;
8027 *) dlfiles+=" $lib" ;;
8028 esac
8029 done
8030
8031 # Make sure dlprefiles contains only unique files
8032 old_dlprefiles="$dlprefiles"
8033 dlprefiles=
8034 for lib in $old_dlprefiles; do
8035 case "$dlprefiles " in
8036 *" $lib "*) ;;
8037 *) dlprefiles+=" $lib" ;;
8038 esac
8039 done
8040
8041 if test "$build_libtool_libs" = yes; then
8042 if test -n "$rpath"; then
8043 case $host in
8044 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
8045 # these systems don't actually have a c library (as such)!
8046 ;;
8047 *-*-rhapsody* | *-*-darwin1.[012])
8048 # Rhapsody C library is in the System framework
8049 deplibs+=" System.ltframework"
8050 ;;
8051 *-*-netbsd*)
8052 # Don't link with libc until the a.out ld.so is fixed.
8053 ;;
8054 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
8055 # Do not include libc due to us having libc/libc_r.
8056 ;;
8057 *-*-sco3.2v5* | *-*-sco5v6*)
8058 # Causes problems with __ctype
8059 ;;
8060 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
8061 # Compiler inserts libc in the correct place for threads to work
8062 ;;
8063 *)
8064 # Add libc to deplibs on all other systems if necessary.
8065 if test "$build_libtool_need_lc" = "yes"; then
8066 deplibs+=" -lc"
8067 fi
8068 ;;
8069 esac
8070 fi
8071
8072 # Transform deplibs into only deplibs that can be linked in shared.
8073 name_save=$name
8074 libname_save=$libname
8075 release_save=$release
8076 versuffix_save=$versuffix
8077 major_save=$major
8078 # I'm not sure if I'm treating the release correctly. I think
8079 # release should show up in the -l (ie -lgmp5) so we don't want to
8080 # add it in twice. Is that correct?
8081 release=""
8082 versuffix=""
8083 major=""
8084 newdeplibs=
8085 droppeddeps=no
8086 case $deplibs_check_method in
8087 pass_all)
8088 # Don't check for shared/static. Everything works.
8089 # This might be a little naive. We might want to check
8090 # whether the library exists or not. But this is on
8091 # osf3 & osf4 and I'm not really sure... Just
8092 # implementing what was already the behavior.
8093 newdeplibs=$deplibs
8094 ;;
8095 test_compile)
8096 # This code stresses the "libraries are programs" paradigm to its
8097 # limits. Maybe even breaks it. We compile a program, linking it
8098 # against the deplibs as a proxy for the library. Then we can check
8099 # whether they linked in statically or dynamically with ldd.
8100 $opt_dry_run || $RM conftest.c
8101 cat > conftest.c <<EOF
8102 int main() { return 0; }
8103 EOF
8104 $opt_dry_run || $RM conftest
8105 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
8106 ldd_output=`ldd conftest`
8107 for i in $deplibs; do
8108 case $i in
8109 -l*)
8110 func_stripname -l '' "$i"
8111 name=$func_stripname_result
8112 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
8113 case " $predeps $postdeps " in
8114 *" $i "*)
8115 newdeplibs+=" $i"
8116 i=""
8117 ;;
8118 esac
8119 fi
8120 if test -n "$i" ; then
8121 libname=`eval "\\$ECHO \"$libname_spec\""`
8122 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
8123 set dummy $deplib_matches; shift
8124 deplib_match=$1
8125 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
8126 newdeplibs+=" $i"
8127 else
8128 droppeddeps=yes
8129 echo
8130 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
8131 echo "*** I have the capability to make that library automatically link in when"
8132 echo "*** you link to this library. But I can only do this if you have a"
8133 echo "*** shared version of the library, which I believe you do not have"
8134 echo "*** because a test_compile did reveal that the linker did not use it for"
8135 echo "*** its dynamic dependency list that programs get resolved with at runtime."
8136 fi
8137 fi
8138 ;;
8139 *)
8140 newdeplibs+=" $i"
8141 ;;
8142 esac
8143 done
8144 else
8145 # Error occurred in the first compile. Let's try to salvage
8146 # the situation: Compile a separate program for each library.
8147 for i in $deplibs; do
8148 case $i in
8149 -l*)
8150 func_stripname -l '' "$i"
8151 name=$func_stripname_result
8152 $opt_dry_run || $RM conftest
8153 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
8154 ldd_output=`ldd conftest`
8155 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
8156 case " $predeps $postdeps " in
8157 *" $i "*)
8158 newdeplibs+=" $i"
8159 i=""
8160 ;;
8161 esac
8162 fi
8163 if test -n "$i" ; then
8164 libname=`eval "\\$ECHO \"$libname_spec\""`
8165 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
8166 set dummy $deplib_matches; shift
8167 deplib_match=$1
8168 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
8169 newdeplibs+=" $i"
8170 else
8171 droppeddeps=yes
8172 echo
8173 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
8174 echo "*** I have the capability to make that library automatically link in when"
8175 echo "*** you link to this library. But I can only do this if you have a"
8176 echo "*** shared version of the library, which you do not appear to have"
8177 echo "*** because a test_compile did reveal that the linker did not use this one"
8178 echo "*** as a dynamic dependency that programs can get resolved with at runtime."
8179 fi
8180 fi
8181 else
8182 droppeddeps=yes
8183 echo
8184 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
8185 echo "*** make it link in! You will probably need to install it or some"
8186 echo "*** library that it depends on before this library will be fully"
8187 echo "*** functional. Installing it before continuing would be even better."
8188 fi
8189 ;;
8190 *)
8191 newdeplibs+=" $i"
8192 ;;
8193 esac
8194 done
8195 fi
8196 ;;
8197 file_magic*)
8198 set dummy $deplibs_check_method; shift
8199 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
8200 for a_deplib in $deplibs; do
8201 case $a_deplib in
8202 -l*)
8203 func_stripname -l '' "$a_deplib"
8204 name=$func_stripname_result
8205 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
8206 case " $predeps $postdeps " in
8207 *" $a_deplib "*)
8208 newdeplibs+=" $a_deplib"
8209 a_deplib=""
8210 ;;
8211 esac
8212 fi
8213 if test -n "$a_deplib" ; then
8214 libname=`eval "\\$ECHO \"$libname_spec\""`
8215 if test -n "$file_magic_glob"; then
8216 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
8217 else
8218 libnameglob=$libname
8219 fi
8220 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
8221 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
8222 if test "$want_nocaseglob" = yes; then
8223 shopt -s nocaseglob
8224 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
8225 $nocaseglob
8226 else
8227 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
8228 fi
8229 for potent_lib in $potential_libs; do
8230 # Follow soft links.
8231 if ls -lLd "$potent_lib" 2>/dev/null |
8232 $GREP " -> " >/dev/null; then
8233 continue
8234 fi
8235 # The statement above tries to avoid entering an
8236 # endless loop below, in case of cyclic links.
8237 # We might still enter an endless loop, since a link
8238 # loop can be closed while we follow links,
8239 # but so what?
8240 potlib="$potent_lib"
8241 while test -h "$potlib" 2>/dev/null; do
8242 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
8243 case $potliblink in
8244 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
8245 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
8246 esac
8247 done
8248 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
8249 $SED -e 10q |
8250 $EGREP "$file_magic_regex" > /dev/null; then
8251 newdeplibs+=" $a_deplib"
8252 a_deplib=""
8253 break 2
8254 fi
8255 done
8256 done
8257 fi
8258 if test -n "$a_deplib" ; then
8259 droppeddeps=yes
8260 echo
8261 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
8262 echo "*** I have the capability to make that library automatically link in when"
8263 echo "*** you link to this library. But I can only do this if you have a"
8264 echo "*** shared version of the library, which you do not appear to have"
8265 echo "*** because I did check the linker path looking for a file starting"
8266 if test -z "$potlib" ; then
8267 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
8268 else
8269 $ECHO "*** with $libname and none of the candidates passed a file format test"
8270 $ECHO "*** using a file magic. Last file checked: $potlib"
8271 fi
8272 fi
8273 ;;
8274 *)
8275 # Add a -L argument.
8276 newdeplibs+=" $a_deplib"
8277 ;;
8278 esac
8279 done # Gone through all deplibs.
8280 ;;
8281 match_pattern*)
8282 set dummy $deplibs_check_method; shift
8283 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
8284 for a_deplib in $deplibs; do
8285 case $a_deplib in
8286 -l*)
8287 func_stripname -l '' "$a_deplib"
8288 name=$func_stripname_result
8289 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
8290 case " $predeps $postdeps " in
8291 *" $a_deplib "*)
8292 newdeplibs+=" $a_deplib"
8293 a_deplib=""
8294 ;;
8295 esac
8296 fi
8297 if test -n "$a_deplib" ; then
8298 libname=`eval "\\$ECHO \"$libname_spec\""`
8299 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
8300 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
8301 for potent_lib in $potential_libs; do
8302 potlib="$potent_lib" # see symlink-check above in file_magic test
8303 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
8304 $EGREP "$match_pattern_regex" > /dev/null; then
8305 newdeplibs+=" $a_deplib"
8306 a_deplib=""
8307 break 2
8308 fi
8309 done
8310 done
8311 fi
8312 if test -n "$a_deplib" ; then
8313 droppeddeps=yes
8314 echo
8315 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
8316 echo "*** I have the capability to make that library automatically link in when"
8317 echo "*** you link to this library. But I can only do this if you have a"
8318 echo "*** shared version of the library, which you do not appear to have"
8319 echo "*** because I did check the linker path looking for a file starting"
8320 if test -z "$potlib" ; then
8321 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
8322 else
8323 $ECHO "*** with $libname and none of the candidates passed a file format test"
8324 $ECHO "*** using a regex pattern. Last file checked: $potlib"
8325 fi
8326 fi
8327 ;;
8328 *)
8329 # Add a -L argument.
8330 newdeplibs+=" $a_deplib"
8331 ;;
8332 esac
8333 done # Gone through all deplibs.
8334 ;;
8335 none | unknown | *)
8336 newdeplibs=""
8337 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
8338 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
8339 for i in $predeps $postdeps ; do
8340 # can't use Xsed below, because $i might contain '/'
8341 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
8342 done
8343 fi
8344 case $tmp_deplibs in
8345 *[!\ \ ]*)
8346 echo
8347 if test "X$deplibs_check_method" = "Xnone"; then
8348 echo "*** Warning: inter-library dependencies are not supported in this platform."
8349 else
8350 echo "*** Warning: inter-library dependencies are not known to be supported."
8351 fi
8352 echo "*** All declared inter-library dependencies are being dropped."
8353 droppeddeps=yes
8354 ;;
8355 esac
8356 ;;
8357 esac
8358 versuffix=$versuffix_save
8359 major=$major_save
8360 release=$release_save
8361 libname=$libname_save
8362 name=$name_save
8363
8364 case $host in
8365 *-*-rhapsody* | *-*-darwin1.[012])
8366 # On Rhapsody replace the C library with the System framework
8367 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
8368 ;;
8369 esac
8370
8371 if test "$droppeddeps" = yes; then
8372 if test "$module" = yes; then
8373 echo
8374 echo "*** Warning: libtool could not satisfy all declared inter-library"
8375 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
8376 echo "*** a static module, that should work as long as the dlopening"
8377 echo "*** application is linked with the -dlopen flag."
8378 if test -z "$global_symbol_pipe"; then
8379 echo
8380 echo "*** However, this would only work if libtool was able to extract symbol"
8381 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
8382 echo "*** not find such a program. So, this module is probably useless."
8383 echo "*** \`nm' from GNU binutils and a full rebuild may help."
8384 fi
8385 if test "$build_old_libs" = no; then
8386 oldlibs="$output_objdir/$libname.$libext"
8387 build_libtool_libs=module
8388 build_old_libs=yes
8389 else
8390 build_libtool_libs=no
8391 fi
8392 else
8393 echo "*** The inter-library dependencies that have been dropped here will be"
8394 echo "*** automatically added whenever a program is linked with this library"
8395 echo "*** or is declared to -dlopen it."
8396
8397 if test "$allow_undefined" = no; then
8398 echo
8399 echo "*** Since this library must not contain undefined symbols,"
8400 echo "*** because either the platform does not support them or"
8401 echo "*** it was explicitly requested with -no-undefined,"
8402 echo "*** libtool will only create a static version of it."
8403 if test "$build_old_libs" = no; then
8404 oldlibs="$output_objdir/$libname.$libext"
8405 build_libtool_libs=module
8406 build_old_libs=yes
8407 else
8408 build_libtool_libs=no
8409 fi
8410 fi
8411 fi
8412 fi
8413 # Done checking deplibs!
8414 deplibs=$newdeplibs
8415 fi
8416 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
8417 case $host in
8418 *-*-darwin*)
8419 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8420 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8421 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8422 ;;
8423 esac
8424
8425 # move library search paths that coincide with paths to not yet
8426 # installed libraries to the beginning of the library search list
8427 new_libs=
8428 for path in $notinst_path; do
8429 case " $new_libs " in
8430 *" -L$path/$objdir "*) ;;
8431 *)
8432 case " $deplibs " in
8433 *" -L$path/$objdir "*)
8434 new_libs+=" -L$path/$objdir" ;;
8435 esac
8436 ;;
8437 esac
8438 done
8439 for deplib in $deplibs; do
8440 case $deplib in
8441 -L*)
8442 case " $new_libs " in
8443 *" $deplib "*) ;;
8444 *) new_libs+=" $deplib" ;;
8445 esac
8446 ;;
8447 *) new_libs+=" $deplib" ;;
8448 esac
8449 done
8450 deplibs="$new_libs"
8451
8452 # All the library-specific variables (install_libdir is set above).
8453 library_names=
8454 old_library=
8455 dlname=
8456
8457 # Test again, we may have decided not to build it any more
8458 if test "$build_libtool_libs" = yes; then
8459 # Remove ${wl} instances when linking with ld.
8460 # FIXME: should test the right _cmds variable.
8461 case $archive_cmds in
8462 *\$LD\ *) wl= ;;
8463 esac
8464 if test "$hardcode_into_libs" = yes; then
8465 # Hardcode the library paths
8466 hardcode_libdirs=
8467 dep_rpath=
8468 rpath="$finalize_rpath"
8469 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
8470 for libdir in $rpath; do
8471 if test -n "$hardcode_libdir_flag_spec"; then
8472 if test -n "$hardcode_libdir_separator"; then
8473 func_replace_sysroot "$libdir"
8474 libdir=$func_replace_sysroot_result
8475 if test -z "$hardcode_libdirs"; then
8476 hardcode_libdirs="$libdir"
8477 else
8478 # Just accumulate the unique libdirs.
8479 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
8480 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
8481 ;;
8482 *)
8483 hardcode_libdirs+="$hardcode_libdir_separator$libdir"
8484 ;;
8485 esac
8486 fi
8487 else
8488 eval flag=\"$hardcode_libdir_flag_spec\"
8489 dep_rpath+=" $flag"
8490 fi
8491 elif test -n "$runpath_var"; then
8492 case "$perm_rpath " in
8493 *" $libdir "*) ;;
8494 *) perm_rpath+=" $libdir" ;;
8495 esac
8496 fi
8497 done
8498 # Substitute the hardcoded libdirs into the rpath.
8499 if test -n "$hardcode_libdir_separator" &&
8500 test -n "$hardcode_libdirs"; then
8501 libdir="$hardcode_libdirs"
8502 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
8503 fi
8504 if test -n "$runpath_var" && test -n "$perm_rpath"; then
8505 # We should set the runpath_var.
8506 rpath=
8507 for dir in $perm_rpath; do
8508 rpath+="$dir:"
8509 done
8510 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
8511 fi
8512 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
8513 fi
8514
8515 shlibpath="$finalize_shlibpath"
8516 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
8517 if test -n "$shlibpath"; then
8518 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
8519 fi
8520
8521 # Get the real and link names of the library.
8522 eval shared_ext=\"$shrext_cmds\"
8523 eval library_names=\"$library_names_spec\"
8524 set dummy $library_names
8525 shift
8526 realname="$1"
8527 shift
8528
8529 if test -n "$soname_spec"; then
8530 eval soname=\"$soname_spec\"
8531 else
8532 soname="$realname"
8533 fi
8534 if test -z "$dlname"; then
8535 dlname=$soname
8536 fi
8537
8538 lib="$output_objdir/$realname"
8539 linknames=
8540 for link
8541 do
8542 linknames+=" $link"
8543 done
8544
8545 # Use standard objects if they are pic
8546 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
8547 test "X$libobjs" = "X " && libobjs=
8548
8549 delfiles=
8550 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8551 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
8552 export_symbols="$output_objdir/$libname.uexp"
8553 delfiles+=" $export_symbols"
8554 fi
8555
8556 orig_export_symbols=
8557 case $host_os in
8558 cygwin* | mingw* | cegcc*)
8559 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
8560 # exporting using user supplied symfile
8561 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
8562 # and it's NOT already a .def file. Must figure out
8563 # which of the given symbols are data symbols and tag
8564 # them as such. So, trigger use of export_symbols_cmds.
8565 # export_symbols gets reassigned inside the "prepare
8566 # the list of exported symbols" if statement, so the
8567 # include_expsyms logic still works.
8568 orig_export_symbols="$export_symbols"
8569 export_symbols=
8570 always_export_symbols=yes
8571 fi
8572 fi
8573 ;;
8574 esac
8575
8576 # Prepare the list of exported symbols
8577 if test -z "$export_symbols"; then
8578 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8579 func_verbose "generating symbol list for \`$libname.la'"
8580 export_symbols="$output_objdir/$libname.exp"
8581 $opt_dry_run || $RM $export_symbols
8582 cmds=$export_symbols_cmds
8583 save_ifs="$IFS"; IFS='~'
8584 for cmd1 in $cmds; do
8585 IFS="$save_ifs"
8586 # Take the normal branch if the nm_file_list_spec branch
8587 # doesn't work or if tool conversion is not needed.
8588 case $nm_file_list_spec~$to_tool_file_cmd in
8589 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
8590 try_normal_branch=yes
8591 eval cmd=\"$cmd1\"
8592 func_len " $cmd"
8593 len=$func_len_result
8594 ;;
8595 *)
8596 try_normal_branch=no
8597 ;;
8598 esac
8599 if test "$try_normal_branch" = yes \
8600 && { test "$len" -lt "$max_cmd_len" \
8601 || test "$max_cmd_len" -le -1; }
8602 then
8603 func_show_eval "$cmd" 'exit $?'
8604 skipped_export=false
8605 elif test -n "$nm_file_list_spec"; then
8606 func_basename "$output"
8607 output_la=$func_basename_result
8608 save_libobjs=$libobjs
8609 save_output=$output
8610 output=${output_objdir}/${output_la}.nm
8611 func_to_tool_file "$output"
8612 libobjs=$nm_file_list_spec$func_to_tool_file_result
8613 delfiles+=" $output"
8614 func_verbose "creating $NM input file list: $output"
8615 for obj in $save_libobjs; do
8616 func_to_tool_file "$obj"
8617 $ECHO "$func_to_tool_file_result"
8618 done > "$output"
8619 eval cmd=\"$cmd1\"
8620 func_show_eval "$cmd" 'exit $?'
8621 output=$save_output
8622 libobjs=$save_libobjs
8623 skipped_export=false
8624 else
8625 # The command line is too long to execute in one step.
8626 func_verbose "using reloadable object file for export list..."
8627 skipped_export=:
8628 # Break out early, otherwise skipped_export may be
8629 # set to false by a later but shorter cmd.
8630 break
8631 fi
8632 done
8633 IFS="$save_ifs"
8634 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
8635 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8636 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
8637 fi
8638 fi
8639 fi
8640
8641 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8642 tmp_export_symbols="$export_symbols"
8643 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8644 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
8645 fi
8646
8647 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
8648 # The given exports_symbols file has to be filtered, so filter it.
8649 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
8650 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8651 # 's' commands which not all seds can handle. GNU sed should be fine
8652 # though. Also, the filter scales superlinearly with the number of
8653 # global variables. join(1) would be nice here, but unfortunately
8654 # isn't a blessed tool.
8655 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
8656 delfiles+=" $export_symbols $output_objdir/$libname.filter"
8657 export_symbols=$output_objdir/$libname.def
8658 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8659 fi
8660
8661 tmp_deplibs=
8662 for test_deplib in $deplibs; do
8663 case " $convenience " in
8664 *" $test_deplib "*) ;;
8665 *)
8666 tmp_deplibs+=" $test_deplib"
8667 ;;
8668 esac
8669 done
8670 deplibs="$tmp_deplibs"
8671
8672 if test -n "$convenience"; then
8673 if test -n "$whole_archive_flag_spec" &&
8674 test "$compiler_needs_object" = yes &&
8675 test -z "$libobjs"; then
8676 # extract the archives, so we have objects to list.
8677 # TODO: could optimize this to just extract one archive.
8678 whole_archive_flag_spec=
8679 fi
8680 if test -n "$whole_archive_flag_spec"; then
8681 save_libobjs=$libobjs
8682 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
8683 test "X$libobjs" = "X " && libobjs=
8684 else
8685 gentop="$output_objdir/${outputname}x"
8686 generated+=" $gentop"
8687
8688 func_extract_archives $gentop $convenience
8689 libobjs+=" $func_extract_archives_result"
8690 test "X$libobjs" = "X " && libobjs=
8691 fi
8692 fi
8693
8694 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
8695 eval flag=\"$thread_safe_flag_spec\"
8696 linker_flags+=" $flag"
8697 fi
8698
8699 # Make a backup of the uninstalled library when relinking
8700 if test "$opt_mode" = relink; then
8701 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
8702 fi
8703
8704 # Do each of the archive commands.
8705 if test "$module" = yes && test -n "$module_cmds" ; then
8706 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8707 eval test_cmds=\"$module_expsym_cmds\"
8708 cmds=$module_expsym_cmds
8709 else
8710 eval test_cmds=\"$module_cmds\"
8711 cmds=$module_cmds
8712 fi
8713 else
8714 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8715 eval test_cmds=\"$archive_expsym_cmds\"
8716 cmds=$archive_expsym_cmds
8717 else
8718 eval test_cmds=\"$archive_cmds\"
8719 cmds=$archive_cmds
8720 fi
8721 fi
8722
8723 if test "X$skipped_export" != "X:" &&
8724 func_len " $test_cmds" &&
8725 len=$func_len_result &&
8726 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8727 :
8728 else
8729 # The command line is too long to link in one step, link piecewise
8730 # or, if using GNU ld and skipped_export is not :, use a linker
8731 # script.
8732
8733 # Save the value of $output and $libobjs because we want to
8734 # use them later. If we have whole_archive_flag_spec, we
8735 # want to use save_libobjs as it was before
8736 # whole_archive_flag_spec was expanded, because we can't
8737 # assume the linker understands whole_archive_flag_spec.
8738 # This may have to be revisited, in case too many
8739 # convenience libraries get linked in and end up exceeding
8740 # the spec.
8741 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
8742 save_libobjs=$libobjs
8743 fi
8744 save_output=$output
8745 func_basename "$output"
8746 output_la=$func_basename_result
8747
8748 # Clear the reloadable object creation command queue and
8749 # initialize k to one.
8750 test_cmds=
8751 concat_cmds=
8752 objlist=
8753 last_robj=
8754 k=1
8755
8756 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8757 output=${output_objdir}/${output_la}.lnkscript
8758 func_verbose "creating GNU ld script: $output"
8759 echo 'INPUT (' > $output
8760 for obj in $save_libobjs
8761 do
8762 func_to_tool_file "$obj"
8763 $ECHO "$func_to_tool_file_result" >> $output
8764 done
8765 echo ')' >> $output
8766 delfiles+=" $output"
8767 func_to_tool_file "$output"
8768 output=$func_to_tool_file_result
8769 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
8770 output=${output_objdir}/${output_la}.lnk
8771 func_verbose "creating linker input file list: $output"
8772 : > $output
8773 set x $save_libobjs
8774 shift
8775 firstobj=
8776 if test "$compiler_needs_object" = yes; then
8777 firstobj="$1 "
8778 shift
8779 fi
8780 for obj
8781 do
8782 func_to_tool_file "$obj"
8783 $ECHO "$func_to_tool_file_result" >> $output
8784 done
8785 delfiles+=" $output"
8786 func_to_tool_file "$output"
8787 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
8788 else
8789 if test -n "$save_libobjs"; then
8790 func_verbose "creating reloadable object files..."
8791 output=$output_objdir/$output_la-${k}.$objext
8792 eval test_cmds=\"$reload_cmds\"
8793 func_len " $test_cmds"
8794 len0=$func_len_result
8795 len=$len0
8796
8797 # Loop over the list of objects to be linked.
8798 for obj in $save_libobjs
8799 do
8800 func_len " $obj"
8801 func_arith $len + $func_len_result
8802 len=$func_arith_result
8803 if test "X$objlist" = X ||
8804 test "$len" -lt "$max_cmd_len"; then
8805 objlist+=" $obj"
8806 else
8807 # The command $test_cmds is almost too long, add a
8808 # command to the queue.
8809 if test "$k" -eq 1 ; then
8810 # The first file doesn't have a previous command to add.
8811 reload_objs=$objlist
8812 eval concat_cmds=\"$reload_cmds\"
8813 else
8814 # All subsequent reloadable object files will link in
8815 # the last one created.
8816 reload_objs="$objlist $last_robj"
8817 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
8818 fi
8819 last_robj=$output_objdir/$output_la-${k}.$objext
8820 func_arith $k + 1
8821 k=$func_arith_result
8822 output=$output_objdir/$output_la-${k}.$objext
8823 objlist=" $obj"
8824 func_len " $last_robj"
8825 func_arith $len0 + $func_len_result
8826 len=$func_arith_result
8827 fi
8828 done
8829 # Handle the remaining objects by creating one last
8830 # reloadable object file. All subsequent reloadable object
8831 # files will link in the last one created.
8832 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8833 reload_objs="$objlist $last_robj"
8834 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
8835 if test -n "$last_robj"; then
8836 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
8837 fi
8838 delfiles+=" $output"
8839
8840 else
8841 output=
8842 fi
8843
8844 if ${skipped_export-false}; then
8845 func_verbose "generating symbol list for \`$libname.la'"
8846 export_symbols="$output_objdir/$libname.exp"
8847 $opt_dry_run || $RM $export_symbols
8848 libobjs=$output
8849 # Append the command to create the export file.
8850 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8851 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
8852 if test -n "$last_robj"; then
8853 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
8854 fi
8855 fi
8856
8857 test -n "$save_libobjs" &&
8858 func_verbose "creating a temporary reloadable object file: $output"
8859
8860 # Loop through the commands generated above and execute them.
8861 save_ifs="$IFS"; IFS='~'
8862 for cmd in $concat_cmds; do
8863 IFS="$save_ifs"
8864 $opt_silent || {
8865 func_quote_for_expand "$cmd"
8866 eval "func_echo $func_quote_for_expand_result"
8867 }
8868 $opt_dry_run || eval "$cmd" || {
8869 lt_exit=$?
8870
8871 # Restore the uninstalled library and exit
8872 if test "$opt_mode" = relink; then
8873 ( cd "$output_objdir" && \
8874 $RM "${realname}T" && \
8875 $MV "${realname}U" "$realname" )
8876 fi
8877
8878 exit $lt_exit
8879 }
8880 done
8881 IFS="$save_ifs"
8882
8883 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
8884 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8885 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
8886 fi
8887 fi
8888
8889 if ${skipped_export-false}; then
8890 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8891 tmp_export_symbols="$export_symbols"
8892 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8893 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
8894 fi
8895
8896 if test -n "$orig_export_symbols"; then
8897 # The given exports_symbols file has to be filtered, so filter it.
8898 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
8899 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8900 # 's' commands which not all seds can handle. GNU sed should be fine
8901 # though. Also, the filter scales superlinearly with the number of
8902 # global variables. join(1) would be nice here, but unfortunately
8903 # isn't a blessed tool.
8904 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
8905 delfiles+=" $export_symbols $output_objdir/$libname.filter"
8906 export_symbols=$output_objdir/$libname.def
8907 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8908 fi
8909 fi
8910
8911 libobjs=$output
8912 # Restore the value of output.
8913 output=$save_output
8914
8915 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
8916 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
8917 test "X$libobjs" = "X " && libobjs=
8918 fi
8919 # Expand the library linking commands again to reset the
8920 # value of $libobjs for piecewise linking.
8921
8922 # Do each of the archive commands.
8923 if test "$module" = yes && test -n "$module_cmds" ; then
8924 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8925 cmds=$module_expsym_cmds
8926 else
8927 cmds=$module_cmds
8928 fi
8929 else
8930 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8931 cmds=$archive_expsym_cmds
8932 else
8933 cmds=$archive_cmds
8934 fi
8935 fi
8936 fi
8937
8938 if test -n "$delfiles"; then
8939 # Append the command to remove temporary files to $cmds.
8940 eval cmds=\"\$cmds~\$RM $delfiles\"
8941 fi
8942
8943 # Add any objects from preloaded convenience libraries
8944 if test -n "$dlprefiles"; then
8945 gentop="$output_objdir/${outputname}x"
8946 generated+=" $gentop"
8947
8948 func_extract_archives $gentop $dlprefiles
8949 libobjs+=" $func_extract_archives_result"
8950 test "X$libobjs" = "X " && libobjs=
8951 fi
8952
8953 save_ifs="$IFS"; IFS='~'
8954 for cmd in $cmds; do
8955 IFS="$save_ifs"
8956 eval cmd=\"$cmd\"
8957 $opt_silent || {
8958 func_quote_for_expand "$cmd"
8959 eval "func_echo $func_quote_for_expand_result"
8960 }
8961 $opt_dry_run || eval "$cmd" || {
8962 lt_exit=$?
8963
8964 # Restore the uninstalled library and exit
8965 if test "$opt_mode" = relink; then
8966 ( cd "$output_objdir" && \
8967 $RM "${realname}T" && \
8968 $MV "${realname}U" "$realname" )
8969 fi
8970
8971 exit $lt_exit
8972 }
8973 done
8974 IFS="$save_ifs"
8975
8976 # Restore the uninstalled library and exit
8977 if test "$opt_mode" = relink; then
8978 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
8979
8980 if test -n "$convenience"; then
8981 if test -z "$whole_archive_flag_spec"; then
8982 func_show_eval '${RM}r "$gentop"'
8983 fi
8984 fi
8985
8986 exit $EXIT_SUCCESS
8987 fi
8988
8989 # Create links to the real library.
8990 for linkname in $linknames; do
8991 if test "$realname" != "$linkname"; then
8992 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
8993 fi
8994 done
8995
8996 # If -module or -export-dynamic was specified, set the dlname.
8997 if test "$module" = yes || test "$export_dynamic" = yes; then
8998 # On all known operating systems, these are identical.
8999 dlname="$soname"
9000 fi
9001 fi
9002 ;;
9003
9004 obj)
9005 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
9006 func_warning "\`-dlopen' is ignored for objects"
9007 fi
9008
9009 case " $deplibs" in
9010 *\ -l* | *\ -L*)
9011 func_warning "\`-l' and \`-L' are ignored for objects" ;;
9012 esac
9013
9014 test -n "$rpath" && \
9015 func_warning "\`-rpath' is ignored for objects"
9016
9017 test -n "$xrpath" && \
9018 func_warning "\`-R' is ignored for objects"
9019
9020 test -n "$vinfo" && \
9021 func_warning "\`-version-info' is ignored for objects"
9022
9023 test -n "$release" && \
9024 func_warning "\`-release' is ignored for objects"
9025
9026 case $output in
9027 *.lo)
9028 test -n "$objs$old_deplibs" && \
9029 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
9030
9031 libobj=$output
9032 func_lo2o "$libobj"
9033 obj=$func_lo2o_result
9034 ;;
9035 *)
9036 libobj=
9037 obj="$output"
9038 ;;
9039 esac
9040
9041 # Delete the old objects.
9042 $opt_dry_run || $RM $obj $libobj
9043
9044 # Objects from convenience libraries. This assumes
9045 # single-version convenience libraries. Whenever we create
9046 # different ones for PIC/non-PIC, this we'll have to duplicate
9047 # the extraction.
9048 reload_conv_objs=
9049 gentop=
9050 # reload_cmds runs $LD directly, so let us get rid of
9051 # -Wl from whole_archive_flag_spec and hope we can get by with
9052 # turning comma into space..
9053 wl=
9054
9055 if test -n "$convenience"; then
9056 if test -n "$whole_archive_flag_spec"; then
9057 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
9058 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
9059 else
9060 gentop="$output_objdir/${obj}x"
9061 generated+=" $gentop"
9062
9063 func_extract_archives $gentop $convenience
9064 reload_conv_objs="$reload_objs $func_extract_archives_result"
9065 fi
9066 fi
9067
9068 # If we're not building shared, we need to use non_pic_objs
9069 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
9070
9071 # Create the old-style object.
9072 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
9073
9074 output="$obj"
9075 func_execute_cmds "$reload_cmds" 'exit $?'
9076
9077 # Exit if we aren't doing a library object file.
9078 if test -z "$libobj"; then
9079 if test -n "$gentop"; then
9080 func_show_eval '${RM}r "$gentop"'
9081 fi
9082
9083 exit $EXIT_SUCCESS
9084 fi
9085
9086 if test "$build_libtool_libs" != yes; then
9087 if test -n "$gentop"; then
9088 func_show_eval '${RM}r "$gentop"'
9089 fi
9090
9091 # Create an invalid libtool object if no PIC, so that we don't
9092 # accidentally link it into a program.
9093 # $show "echo timestamp > $libobj"
9094 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
9095 exit $EXIT_SUCCESS
9096 fi
9097
9098 if test -n "$pic_flag" || test "$pic_mode" != default; then
9099 # Only do commands if we really have different PIC objects.
9100 reload_objs="$libobjs $reload_conv_objs"
9101 output="$libobj"
9102 func_execute_cmds "$reload_cmds" 'exit $?'
9103 fi
9104
9105 if test -n "$gentop"; then
9106 func_show_eval '${RM}r "$gentop"'
9107 fi
9108
9109 exit $EXIT_SUCCESS
9110 ;;
9111
9112 prog)
9113 case $host in
9114 *cygwin*) func_stripname '' '.exe' "$output"
9115 output=$func_stripname_result.exe;;
9116 esac
9117 test -n "$vinfo" && \
9118 func_warning "\`-version-info' is ignored for programs"
9119
9120 test -n "$release" && \
9121 func_warning "\`-release' is ignored for programs"
9122
9123 test "$preload" = yes \
9124 && test "$dlopen_support" = unknown \
9125 && test "$dlopen_self" = unknown \
9126 && test "$dlopen_self_static" = unknown && \
9127 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
9128
9129 case $host in
9130 *-*-rhapsody* | *-*-darwin1.[012])
9131 # On Rhapsody replace the C library is the System framework
9132 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
9133 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
9134 ;;
9135 esac
9136
9137 case $host in
9138 *-*-darwin*)
9139 # Don't allow lazy linking, it breaks C++ global constructors
9140 # But is supposedly fixed on 10.4 or later (yay!).
9141 if test "$tagname" = CXX ; then
9142 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9143 10.[0123])
9144 compile_command+=" ${wl}-bind_at_load"
9145 finalize_command+=" ${wl}-bind_at_load"
9146 ;;
9147 esac
9148 fi
9149 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9150 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9151 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9152 ;;
9153 esac
9154
9155
9156 # move library search paths that coincide with paths to not yet
9157 # installed libraries to the beginning of the library search list
9158 new_libs=
9159 for path in $notinst_path; do
9160 case " $new_libs " in
9161 *" -L$path/$objdir "*) ;;
9162 *)
9163 case " $compile_deplibs " in
9164 *" -L$path/$objdir "*)
9165 new_libs+=" -L$path/$objdir" ;;
9166 esac
9167 ;;
9168 esac
9169 done
9170 for deplib in $compile_deplibs; do
9171 case $deplib in
9172 -L*)
9173 case " $new_libs " in
9174 *" $deplib "*) ;;
9175 *) new_libs+=" $deplib" ;;
9176 esac
9177 ;;
9178 *) new_libs+=" $deplib" ;;
9179 esac
9180 done
9181 compile_deplibs="$new_libs"
9182
9183
9184 compile_command+=" $compile_deplibs"
9185 finalize_command+=" $finalize_deplibs"
9186
9187 if test -n "$rpath$xrpath"; then
9188 # If the user specified any rpath flags, then add them.
9189 for libdir in $rpath $xrpath; do
9190 # This is the magic to use -rpath.
9191 case "$finalize_rpath " in
9192 *" $libdir "*) ;;
9193 *) finalize_rpath+=" $libdir" ;;
9194 esac
9195 done
9196 fi
9197
9198 # Now hardcode the library paths
9199 rpath=
9200 hardcode_libdirs=
9201 for libdir in $compile_rpath $finalize_rpath; do
9202 if test -n "$hardcode_libdir_flag_spec"; then
9203 if test -n "$hardcode_libdir_separator"; then
9204 if test -z "$hardcode_libdirs"; then
9205 hardcode_libdirs="$libdir"
9206 else
9207 # Just accumulate the unique libdirs.
9208 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
9209 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
9210 ;;
9211 *)
9212 hardcode_libdirs+="$hardcode_libdir_separator$libdir"
9213 ;;
9214 esac
9215 fi
9216 else
9217 eval flag=\"$hardcode_libdir_flag_spec\"
9218 rpath+=" $flag"
9219 fi
9220 elif test -n "$runpath_var"; then
9221 case "$perm_rpath " in
9222 *" $libdir "*) ;;
9223 *) perm_rpath+=" $libdir" ;;
9224 esac
9225 fi
9226 case $host in
9227 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
9228 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
9229 case :$dllsearchpath: in
9230 *":$libdir:"*) ;;
9231 ::) dllsearchpath=$libdir;;
9232 *) dllsearchpath+=":$libdir";;
9233 esac
9234 case :$dllsearchpath: in
9235 *":$testbindir:"*) ;;
9236 ::) dllsearchpath=$testbindir;;
9237 *) dllsearchpath+=":$testbindir";;
9238 esac
9239 ;;
9240 esac
9241 done
9242 # Substitute the hardcoded libdirs into the rpath.
9243 if test -n "$hardcode_libdir_separator" &&
9244 test -n "$hardcode_libdirs"; then
9245 libdir="$hardcode_libdirs"
9246 eval rpath=\" $hardcode_libdir_flag_spec\"
9247 fi
9248 compile_rpath="$rpath"
9249
9250 rpath=
9251 hardcode_libdirs=
9252 for libdir in $finalize_rpath; do
9253 if test -n "$hardcode_libdir_flag_spec"; then
9254 if test -n "$hardcode_libdir_separator"; then
9255 if test -z "$hardcode_libdirs"; then
9256 hardcode_libdirs="$libdir"
9257 else
9258 # Just accumulate the unique libdirs.
9259 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
9260 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
9261 ;;
9262 *)
9263 hardcode_libdirs+="$hardcode_libdir_separator$libdir"
9264 ;;
9265 esac
9266 fi
9267 else
9268 eval flag=\"$hardcode_libdir_flag_spec\"
9269 rpath+=" $flag"
9270 fi
9271 elif test -n "$runpath_var"; then
9272 case "$finalize_perm_rpath " in
9273 *" $libdir "*) ;;
9274 *) finalize_perm_rpath+=" $libdir" ;;
9275 esac
9276 fi
9277 done
9278 # Substitute the hardcoded libdirs into the rpath.
9279 if test -n "$hardcode_libdir_separator" &&
9280 test -n "$hardcode_libdirs"; then
9281 libdir="$hardcode_libdirs"
9282 eval rpath=\" $hardcode_libdir_flag_spec\"
9283 fi
9284 finalize_rpath="$rpath"
9285
9286 if test -n "$libobjs" && test "$build_old_libs" = yes; then
9287 # Transform all the library objects into standard objects.
9288 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
9289 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
9290 fi
9291
9292 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
9293
9294 # template prelinking step
9295 if test -n "$prelink_cmds"; then
9296 func_execute_cmds "$prelink_cmds" 'exit $?'
9297 fi
9298
9299 wrappers_required=yes
9300 case $host in
9301 *cegcc* | *mingw32ce*)
9302 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
9303 wrappers_required=no
9304 ;;
9305 *cygwin* | *mingw* )
9306 if test "$build_libtool_libs" != yes; then
9307 wrappers_required=no
9308 fi
9309 ;;
9310 *)
9311 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
9312 wrappers_required=no
9313 fi
9314 ;;
9315 esac
9316 if test "$wrappers_required" = no; then
9317 # Replace the output file specification.
9318 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
9319 link_command="$compile_command$compile_rpath"
9320
9321 # We have no uninstalled library dependencies, so finalize right now.
9322 exit_status=0
9323 func_show_eval "$link_command" 'exit_status=$?'
9324
9325 if test -n "$postlink_cmds"; then
9326 func_to_tool_file "$output"
9327 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
9328 func_execute_cmds "$postlink_cmds" 'exit $?'
9329 fi
9330
9331 # Delete the generated files.
9332 if test -f "$output_objdir/${outputname}S.${objext}"; then
9333 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
9334 fi
9335
9336 exit $exit_status
9337 fi
9338
9339 if test -n "$compile_shlibpath$finalize_shlibpath"; then
9340 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
9341 fi
9342 if test -n "$finalize_shlibpath"; then
9343 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
9344 fi
9345
9346 compile_var=
9347 finalize_var=
9348 if test -n "$runpath_var"; then
9349 if test -n "$perm_rpath"; then
9350 # We should set the runpath_var.
9351 rpath=
9352 for dir in $perm_rpath; do
9353 rpath+="$dir:"
9354 done
9355 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
9356 fi
9357 if test -n "$finalize_perm_rpath"; then
9358 # We should set the runpath_var.
9359 rpath=
9360 for dir in $finalize_perm_rpath; do
9361 rpath+="$dir:"
9362 done
9363 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
9364 fi
9365 fi
9366
9367 if test "$no_install" = yes; then
9368 # We don't need to create a wrapper script.
9369 link_command="$compile_var$compile_command$compile_rpath"
9370 # Replace the output file specification.
9371 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
9372 # Delete the old output file.
9373 $opt_dry_run || $RM $output
9374 # Link the executable and exit
9375 func_show_eval "$link_command" 'exit $?'
9376
9377 if test -n "$postlink_cmds"; then
9378 func_to_tool_file "$output"
9379 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
9380 func_execute_cmds "$postlink_cmds" 'exit $?'
9381 fi
9382
9383 exit $EXIT_SUCCESS
9384 fi
9385
9386 if test "$hardcode_action" = relink; then
9387 # Fast installation is not supported
9388 link_command="$compile_var$compile_command$compile_rpath"
9389 relink_command="$finalize_var$finalize_command$finalize_rpath"
9390
9391 func_warning "this platform does not like uninstalled shared libraries"
9392 func_warning "\`$output' will be relinked during installation"
9393 else
9394 if test "$fast_install" != no; then
9395 link_command="$finalize_var$compile_command$finalize_rpath"
9396 if test "$fast_install" = yes; then
9397 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
9398 else
9399 # fast_install is set to needless
9400 relink_command=
9401 fi
9402 else
9403 link_command="$compile_var$compile_command$compile_rpath"
9404 relink_command="$finalize_var$finalize_command$finalize_rpath"
9405 fi
9406 fi
9407
9408 # Replace the output file specification.
9409 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
9410
9411 # Delete the old output files.
9412 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
9413
9414 func_show_eval "$link_command" 'exit $?'
9415
9416 if test -n "$postlink_cmds"; then
9417 func_to_tool_file "$output_objdir/$outputname"
9418 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
9419 func_execute_cmds "$postlink_cmds" 'exit $?'
9420 fi
9421
9422 # Now create the wrapper script.
9423 func_verbose "creating $output"
9424
9425 # Quote the relink command for shipping.
9426 if test -n "$relink_command"; then
9427 # Preserve any variables that may affect compiler behavior
9428 for var in $variables_saved_for_relink; do
9429 if eval test -z \"\${$var+set}\"; then
9430 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
9431 elif eval var_value=\$$var; test -z "$var_value"; then
9432 relink_command="$var=; export $var; $relink_command"
9433 else
9434 func_quote_for_eval "$var_value"
9435 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
9436 fi
9437 done
9438 relink_command="(cd `pwd`; $relink_command)"
9439 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9440 fi
9441
9442 # Only actually do things if not in dry run mode.
9443 $opt_dry_run || {
9444 # win32 will think the script is a binary if it has
9445 # a .exe suffix, so we strip it off here.
9446 case $output in
9447 *.exe) func_stripname '' '.exe' "$output"
9448 output=$func_stripname_result ;;
9449 esac
9450 # test for cygwin because mv fails w/o .exe extensions
9451 case $host in
9452 *cygwin*)
9453 exeext=.exe
9454 func_stripname '' '.exe' "$outputname"
9455 outputname=$func_stripname_result ;;
9456 *) exeext= ;;
9457 esac
9458 case $host in
9459 *cygwin* | *mingw* )
9460 func_dirname_and_basename "$output" "" "."
9461 output_name=$func_basename_result
9462 output_path=$func_dirname_result
9463 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9464 cwrapper="$output_path/$output_name.exe"
9465 $RM $cwrappersource $cwrapper
9466 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
9467
9468 func_emit_cwrapperexe_src > $cwrappersource
9469
9470 # The wrapper executable is built using the $host compiler,
9471 # because it contains $host paths and files. If cross-
9472 # compiling, it, like the target executable, must be
9473 # executed on the $host or under an emulation environment.
9474 $opt_dry_run || {
9475 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
9476 $STRIP $cwrapper
9477 }
9478
9479 # Now, create the wrapper script for func_source use:
9480 func_ltwrapper_scriptname $cwrapper
9481 $RM $func_ltwrapper_scriptname_result
9482 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
9483 $opt_dry_run || {
9484 # note: this script will not be executed, so do not chmod.
9485 if test "x$build" = "x$host" ; then
9486 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
9487 else
9488 func_emit_wrapper no > $func_ltwrapper_scriptname_result
9489 fi
9490 }
9491 ;;
9492 * )
9493 $RM $output
9494 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
9495
9496 func_emit_wrapper no > $output
9497 chmod +x $output
9498 ;;
9499 esac
9500 }
9501 exit $EXIT_SUCCESS
9502 ;;
9503 esac
9504
9505 # See if we need to build an old-fashioned archive.
9506 for oldlib in $oldlibs; do
9507
9508 if test "$build_libtool_libs" = convenience; then
9509 oldobjs="$libobjs_save $symfileobj"
9510 addlibs="$convenience"
9511 build_libtool_libs=no
9512 else
9513 if test "$build_libtool_libs" = module; then
9514 oldobjs="$libobjs_save"
9515 build_libtool_libs=no
9516 else
9517 oldobjs="$old_deplibs $non_pic_objects"
9518 if test "$preload" = yes && test -f "$symfileobj"; then
9519 oldobjs+=" $symfileobj"
9520 fi
9521 fi
9522 addlibs="$old_convenience"
9523 fi
9524
9525 if test -n "$addlibs"; then
9526 gentop="$output_objdir/${outputname}x"
9527 generated+=" $gentop"
9528
9529 func_extract_archives $gentop $addlibs
9530 oldobjs+=" $func_extract_archives_result"
9531 fi
9532
9533 # Do each command in the archive commands.
9534 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
9535 cmds=$old_archive_from_new_cmds
9536 else
9537
9538 # Add any objects from preloaded convenience libraries
9539 if test -n "$dlprefiles"; then
9540 gentop="$output_objdir/${outputname}x"
9541 generated+=" $gentop"
9542
9543 func_extract_archives $gentop $dlprefiles
9544 oldobjs+=" $func_extract_archives_result"
9545 fi
9546
9547 # POSIX demands no paths to be encoded in archives. We have
9548 # to avoid creating archives with duplicate basenames if we
9549 # might have to extract them afterwards, e.g., when creating a
9550 # static archive out of a convenience library, or when linking
9551 # the entirety of a libtool archive into another (currently
9552 # not supported by libtool).
9553 if (for obj in $oldobjs
9554 do
9555 func_basename "$obj"
9556 $ECHO "$func_basename_result"
9557 done | sort | sort -uc >/dev/null 2>&1); then
9558 :
9559 else
9560 echo "copying selected object files to avoid basename conflicts..."
9561 gentop="$output_objdir/${outputname}x"
9562 generated+=" $gentop"
9563 func_mkdir_p "$gentop"
9564 save_oldobjs=$oldobjs
9565 oldobjs=
9566 counter=1
9567 for obj in $save_oldobjs
9568 do
9569 func_basename "$obj"
9570 objbase="$func_basename_result"
9571 case " $oldobjs " in
9572 " ") oldobjs=$obj ;;
9573 *[\ /]"$objbase "*)
9574 while :; do
9575 # Make sure we don't pick an alternate name that also
9576 # overlaps.
9577 newobj=lt$counter-$objbase
9578 func_arith $counter + 1
9579 counter=$func_arith_result
9580 case " $oldobjs " in
9581 *[\ /]"$newobj "*) ;;
9582 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
9583 esac
9584 done
9585 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
9586 oldobjs+=" $gentop/$newobj"
9587 ;;
9588 *) oldobjs+=" $obj" ;;
9589 esac
9590 done
9591 fi
9592 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
9593 tool_oldlib=$func_to_tool_file_result
9594 eval cmds=\"$old_archive_cmds\"
9595
9596 func_len " $cmds"
9597 len=$func_len_result
9598 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9599 cmds=$old_archive_cmds
9600 elif test -n "$archiver_list_spec"; then
9601 func_verbose "using command file archive linking..."
9602 for obj in $oldobjs
9603 do
9604 func_to_tool_file "$obj"
9605 $ECHO "$func_to_tool_file_result"
9606 done > $output_objdir/$libname.libcmd
9607 func_to_tool_file "$output_objdir/$libname.libcmd"
9608 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
9609 cmds=$old_archive_cmds
9610 else
9611 # the command line is too long to link in one step, link in parts
9612 func_verbose "using piecewise archive linking..."
9613 save_RANLIB=$RANLIB
9614 RANLIB=:
9615 objlist=
9616 concat_cmds=
9617 save_oldobjs=$oldobjs
9618 oldobjs=
9619 # Is there a better way of finding the last object in the list?
9620 for obj in $save_oldobjs
9621 do
9622 last_oldobj=$obj
9623 done
9624 eval test_cmds=\"$old_archive_cmds\"
9625 func_len " $test_cmds"
9626 len0=$func_len_result
9627 len=$len0
9628 for obj in $save_oldobjs
9629 do
9630 func_len " $obj"
9631 func_arith $len + $func_len_result
9632 len=$func_arith_result
9633 objlist+=" $obj"
9634 if test "$len" -lt "$max_cmd_len"; then
9635 :
9636 else
9637 # the above command should be used before it gets too long
9638 oldobjs=$objlist
9639 if test "$obj" = "$last_oldobj" ; then
9640 RANLIB=$save_RANLIB
9641 fi
9642 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9643 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
9644 objlist=
9645 len=$len0
9646 fi
9647 done
9648 RANLIB=$save_RANLIB
9649 oldobjs=$objlist
9650 if test "X$oldobjs" = "X" ; then
9651 eval cmds=\"\$concat_cmds\"
9652 else
9653 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
9654 fi
9655 fi
9656 fi
9657 func_execute_cmds "$cmds" 'exit $?'
9658 done
9659
9660 test -n "$generated" && \
9661 func_show_eval "${RM}r$generated"
9662
9663 # Now create the libtool archive.
9664 case $output in
9665 *.la)
9666 old_library=
9667 test "$build_old_libs" = yes && old_library="$libname.$libext"
9668 func_verbose "creating $output"
9669
9670 # Preserve any variables that may affect compiler behavior
9671 for var in $variables_saved_for_relink; do
9672 if eval test -z \"\${$var+set}\"; then
9673 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
9674 elif eval var_value=\$$var; test -z "$var_value"; then
9675 relink_command="$var=; export $var; $relink_command"
9676 else
9677 func_quote_for_eval "$var_value"
9678 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
9679 fi
9680 done
9681 # Quote the link command for shipping.
9682 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
9683 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9684 if test "$hardcode_automatic" = yes ; then
9685 relink_command=
9686 fi
9687
9688 # Only create the output if not a dry run.
9689 $opt_dry_run || {
9690 for installed in no yes; do
9691 if test "$installed" = yes; then
9692 if test -z "$install_libdir"; then
9693 break
9694 fi
9695 output="$output_objdir/$outputname"i
9696 # Replace all uninstalled libtool libraries with the installed ones
9697 newdependency_libs=
9698 for deplib in $dependency_libs; do
9699 case $deplib in
9700 *.la)
9701 func_basename "$deplib"
9702 name="$func_basename_result"
9703 func_resolve_sysroot "$deplib"
9704 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
9705 test -z "$libdir" && \
9706 func_fatal_error "\`$deplib' is not a valid libtool archive"
9707 newdependency_libs+=" ${lt_sysroot:+=}$libdir/$name"
9708 ;;
9709 -L*)
9710 func_stripname -L '' "$deplib"
9711 func_replace_sysroot "$func_stripname_result"
9712 newdependency_libs+=" -L$func_replace_sysroot_result"
9713 ;;
9714 -R*)
9715 func_stripname -R '' "$deplib"
9716 func_replace_sysroot "$func_stripname_result"
9717 newdependency_libs+=" -R$func_replace_sysroot_result"
9718 ;;
9719 *) newdependency_libs+=" $deplib" ;;
9720 esac
9721 done
9722 dependency_libs="$newdependency_libs"
9723 newdlfiles=
9724
9725 for lib in $dlfiles; do
9726 case $lib in
9727 *.la)
9728 func_basename "$lib"
9729 name="$func_basename_result"
9730 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9731 test -z "$libdir" && \
9732 func_fatal_error "\`$lib' is not a valid libtool archive"
9733 newdlfiles+=" ${lt_sysroot:+=}$libdir/$name"
9734 ;;
9735 *) newdlfiles+=" $lib" ;;
9736 esac
9737 done
9738 dlfiles="$newdlfiles"
9739 newdlprefiles=
9740 for lib in $dlprefiles; do
9741 case $lib in
9742 *.la)
9743 # Only pass preopened files to the pseudo-archive (for
9744 # eventual linking with the app. that links it) if we
9745 # didn't already link the preopened objects directly into
9746 # the library:
9747 func_basename "$lib"
9748 name="$func_basename_result"
9749 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9750 test -z "$libdir" && \
9751 func_fatal_error "\`$lib' is not a valid libtool archive"
9752 newdlprefiles+=" ${lt_sysroot:+=}$libdir/$name"
9753 ;;
9754 esac
9755 done
9756 dlprefiles="$newdlprefiles"
9757 else
9758 newdlfiles=
9759 for lib in $dlfiles; do
9760 case $lib in
9761 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9762 *) abs=`pwd`"/$lib" ;;
9763 esac
9764 newdlfiles+=" $abs"
9765 done
9766 dlfiles="$newdlfiles"
9767 newdlprefiles=
9768 for lib in $dlprefiles; do
9769 case $lib in
9770 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9771 *) abs=`pwd`"/$lib" ;;
9772 esac
9773 newdlprefiles+=" $abs"
9774 done
9775 dlprefiles="$newdlprefiles"
9776 fi
9777 $RM $output
9778 # place dlname in correct position for cygwin
9779 # In fact, it would be nice if we could use this code for all target
9780 # systems that can't hard-code library paths into their executables
9781 # and that have no shared library path variable independent of PATH,
9782 # but it turns out we can't easily determine that from inspecting
9783 # libtool variables, so we have to hard-code the OSs to which it
9784 # applies here; at the moment, that means platforms that use the PE
9785 # object format with DLL files. See the long comment at the top of
9786 # tests/bindir.at for full details.
9787 tdlname=$dlname
9788 case $host,$output,$installed,$module,$dlname in
9789 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
9790 # If a -bindir argument was supplied, place the dll there.
9791 if test "x$bindir" != x ;
9792 then
9793 func_relative_path "$install_libdir" "$bindir"
9794 tdlname=$func_relative_path_result$dlname
9795 else
9796 # Otherwise fall back on heuristic.
9797 tdlname=../bin/$dlname
9798 fi
9799 ;;
9800 esac
9801 $ECHO > $output "\
9802 # $outputname - a libtool library file
9803 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
9804 #
9805 # Please DO NOT delete this file!
9806 # It is necessary for linking the library.
9807
9808 # The name that we can dlopen(3).
9809 dlname='$tdlname'
9810
9811 # Names of this library.
9812 library_names='$library_names'
9813
9814 # The name of the static archive.
9815 old_library='$old_library'
9816
9817 # Linker flags that can not go in dependency_libs.
9818 inherited_linker_flags='$new_inherited_linker_flags'
9819
9820 # Libraries that this one depends upon.
9821 dependency_libs='$dependency_libs'
9822
9823 # Names of additional weak libraries provided by this library
9824 weak_library_names='$weak_libs'
9825
9826 # Version information for $libname.
9827 current=$current
9828 age=$age
9829 revision=$revision
9830
9831 # Is this an already installed library?
9832 installed=$installed
9833
9834 # Should we warn about portability when linking against -modules?
9835 shouldnotlink=$module
9836
9837 # Files to dlopen/dlpreopen
9838 dlopen='$dlfiles'
9839 dlpreopen='$dlprefiles'
9840
9841 # Directory that this library needs to be installed in:
9842 libdir='$install_libdir'"
9843 if test "$installed" = no && test "$need_relink" = yes; then
9844 $ECHO >> $output "\
9845 relink_command=\"$relink_command\""
9846 fi
9847 done
9848 }
9849
9850 # Do a symbolic link so that the libtool archive can be found in
9851 # LD_LIBRARY_PATH before the program is installed.
9852 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
9853 ;;
9854 esac
9855 exit $EXIT_SUCCESS
9856 }
9857
9858 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
9859 func_mode_link ${1+"$@"}
9860
9861
9862 # func_mode_uninstall arg...
9863 func_mode_uninstall ()
9864 {
9865 $opt_debug
9866 RM="$nonopt"
9867 files=
9868 rmforce=
9869 exit_status=0
9870
9871 # This variable tells wrapper scripts just to set variables rather
9872 # than running their programs.
9873 libtool_install_magic="$magic"
9874
9875 for arg
9876 do
9877 case $arg in
9878 -f) RM+=" $arg"; rmforce=yes ;;
9879 -*) RM+=" $arg" ;;
9880 *) files+=" $arg" ;;
9881 esac
9882 done
9883
9884 test -z "$RM" && \
9885 func_fatal_help "you must specify an RM program"
9886
9887 rmdirs=
9888
9889 for file in $files; do
9890 func_dirname "$file" "" "."
9891 dir="$func_dirname_result"
9892 if test "X$dir" = X.; then
9893 odir="$objdir"
9894 else
9895 odir="$dir/$objdir"
9896 fi
9897 func_basename "$file"
9898 name="$func_basename_result"
9899 test "$opt_mode" = uninstall && odir="$dir"
9900
9901 # Remember odir for removal later, being careful to avoid duplicates
9902 if test "$opt_mode" = clean; then
9903 case " $rmdirs " in
9904 *" $odir "*) ;;
9905 *) rmdirs+=" $odir" ;;
9906 esac
9907 fi
9908
9909 # Don't error if the file doesn't exist and rm -f was used.
9910 if { test -L "$file"; } >/dev/null 2>&1 ||
9911 { test -h "$file"; } >/dev/null 2>&1 ||
9912 test -f "$file"; then
9913 :
9914 elif test -d "$file"; then
9915 exit_status=1
9916 continue
9917 elif test "$rmforce" = yes; then
9918 continue
9919 fi
9920
9921 rmfiles="$file"
9922
9923 case $name in
9924 *.la)
9925 # Possibly a libtool archive, so verify it.
9926 if func_lalib_p "$file"; then
9927 func_source $dir/$name
9928
9929 # Delete the libtool libraries and symlinks.
9930 for n in $library_names; do
9931 rmfiles+=" $odir/$n"
9932 done
9933 test -n "$old_library" && rmfiles+=" $odir/$old_library"
9934
9935 case "$opt_mode" in
9936 clean)
9937 case " $library_names " in
9938 *" $dlname "*) ;;
9939 *) test -n "$dlname" && rmfiles+=" $odir/$dlname" ;;
9940 esac
9941 test -n "$libdir" && rmfiles+=" $odir/$name $odir/${name}i"
9942 ;;
9943 uninstall)
9944 if test -n "$library_names"; then
9945 # Do each command in the postuninstall commands.
9946 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
9947 fi
9948
9949 if test -n "$old_library"; then
9950 # Do each command in the old_postuninstall commands.
9951 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
9952 fi
9953 # FIXME: should reinstall the best remaining shared library.
9954 ;;
9955 esac
9956 fi
9957 ;;
9958
9959 *.lo)
9960 # Possibly a libtool object, so verify it.
9961 if func_lalib_p "$file"; then
9962
9963 # Read the .lo file
9964 func_source $dir/$name
9965
9966 # Add PIC object to the list of files to remove.
9967 if test -n "$pic_object" &&
9968 test "$pic_object" != none; then
9969 rmfiles+=" $dir/$pic_object"
9970 fi
9971
9972 # Add non-PIC object to the list of files to remove.
9973 if test -n "$non_pic_object" &&
9974 test "$non_pic_object" != none; then
9975 rmfiles+=" $dir/$non_pic_object"
9976 fi
9977 fi
9978 ;;
9979
9980 *)
9981 if test "$opt_mode" = clean ; then
9982 noexename=$name
9983 case $file in
9984 *.exe)
9985 func_stripname '' '.exe' "$file"
9986 file=$func_stripname_result
9987 func_stripname '' '.exe' "$name"
9988 noexename=$func_stripname_result
9989 # $file with .exe has already been added to rmfiles,
9990 # add $file without .exe
9991 rmfiles+=" $file"
9992 ;;
9993 esac
9994 # Do a test to see if this is a libtool program.
9995 if func_ltwrapper_p "$file"; then
9996 if func_ltwrapper_executable_p "$file"; then
9997 func_ltwrapper_scriptname "$file"
9998 relink_command=
9999 func_source $func_ltwrapper_scriptname_result
10000 rmfiles+=" $func_ltwrapper_scriptname_result"
10001 else
10002 relink_command=
10003 func_source $dir/$noexename
10004 fi
10005
10006 # note $name still contains .exe if it was in $file originally
10007 # as does the version of $file that was added into $rmfiles
10008 rmfiles+=" $odir/$name $odir/${name}S.${objext}"
10009 if test "$fast_install" = yes && test -n "$relink_command"; then
10010 rmfiles+=" $odir/lt-$name"
10011 fi
10012 if test "X$noexename" != "X$name" ; then
10013 rmfiles+=" $odir/lt-${noexename}.c"
10014 fi
10015 fi
10016 fi
10017 ;;
10018 esac
10019 func_show_eval "$RM $rmfiles" 'exit_status=1'
10020 done
10021
10022 # Try to remove the ${objdir}s in the directories where we deleted files
10023 for dir in $rmdirs; do
10024 if test -d "$dir"; then
10025 func_show_eval "rmdir $dir >/dev/null 2>&1"
10026 fi
10027 done
10028
10029 exit $exit_status
10030 }
10031
10032 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
10033 func_mode_uninstall ${1+"$@"}
10034
10035 test -z "$opt_mode" && {
10036 help="$generic_help"
10037 func_fatal_help "you must specify a MODE"
10038 }
10039
10040 test -z "$exec_cmd" && \
10041 func_fatal_help "invalid operation mode \`$opt_mode'"
10042
10043 if test -n "$exec_cmd"; then
10044 eval exec "$exec_cmd"
10045 exit $EXIT_FAILURE
10046 fi
10047
10048 exit $exit_status
10049
10050
10051 # The TAGs below are defined such that we never get into a situation
10052 # in which we disable both kinds of libraries. Given conflicting
10053 # choices, we go for a static library, that is the most portable,
10054 # since we can't tell whether shared libraries were disabled because
10055 # the user asked for that or because the platform doesn't support
10056 # them. This is particularly important on AIX, because we don't
10057 # support having both static and shared libraries enabled at the same
10058 # time on that platform, so we default to a shared-only configuration.
10059 # If a disable-shared tag is given, we'll fallback to a static-only
10060 # configuration. But we'll never go from static-only to shared-only.
10061
10062 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
10063 build_libtool_libs=no
10064 build_old_libs=yes
10065 # ### END LIBTOOL TAG CONFIG: disable-shared
10066
10067 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
10068 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
10069 # ### END LIBTOOL TAG CONFIG: disable-static
10070
10071 # Local Variables:
10072 # mode:shell-script
10073 # sh-indentation:2
10074 # End:
10075 # vi:sw=2
10076
+0
-1
ltmain.sh less more
0 /home/ardour/linux-i386/gtk/inst/share/libtool/config/ltmain.sh
+0
-1
m4/libtool.m4 less more
0 /home/ardour/linux-i386/gtk/inst/share/aclocal/libtool.m4
+0
-1
m4/ltoptions.m4 less more
0 /home/ardour/linux-i386/gtk/inst/share/aclocal/ltoptions.m4
+0
-1
m4/ltsugar.m4 less more
0 /home/ardour/linux-i386/gtk/inst/share/aclocal/ltsugar.m4
+0
-1
m4/ltversion.m4 less more
0 /home/ardour/linux-i386/gtk/inst/share/aclocal/ltversion.m4
+0
-1
m4/lt~obsolete.m4 less more
0 /home/ardour/linux-i386/gtk/inst/share/aclocal/lt~obsolete.m4
+0
-1
missing less more
0 /home/ardour/linux-i386/gtk/inst/share/automake-1.14/missing
+0
-642
src/Makefile.in less more
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16
17 VPATH = @srcdir@
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19 am__make_running_with_option = \
20 case $${target_option-} in \
21 ?) ;; \
22 *) echo "am__make_running_with_option: internal error: invalid" \
23 "target option '$${target_option-}' specified" >&2; \
24 exit 1;; \
25 esac; \
26 has_opt=no; \
27 sane_makeflags=$$MAKEFLAGS; \
28 if $(am__is_gnu_make); then \
29 sane_makeflags=$$MFLAGS; \
30 else \
31 case $$MAKEFLAGS in \
32 *\\[\ \ ]*) \
33 bs=\\; \
34 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
36 esac; \
37 fi; \
38 skip_next=no; \
39 strip_trailopt () \
40 { \
41 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42 }; \
43 for flg in $$sane_makeflags; do \
44 test $$skip_next = yes && { skip_next=no; continue; }; \
45 case $$flg in \
46 *=*|--*) continue;; \
47 -*I) strip_trailopt 'I'; skip_next=yes;; \
48 -*I?*) strip_trailopt 'I';; \
49 -*O) strip_trailopt 'O'; skip_next=yes;; \
50 -*O?*) strip_trailopt 'O';; \
51 -*l) strip_trailopt 'l'; skip_next=yes;; \
52 -*l?*) strip_trailopt 'l';; \
53 -[dEDm]) skip_next=yes;; \
54 -[JT]) skip_next=yes;; \
55 esac; \
56 case $$flg in \
57 *$$target_option*) has_opt=yes; break;; \
58 esac; \
59 done; \
60 test $$has_opt = yes
61 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
63 pkgdatadir = $(datadir)/@PACKAGE@
64 pkgincludedir = $(includedir)/@PACKAGE@
65 pkglibdir = $(libdir)/@PACKAGE@
66 pkglibexecdir = $(libexecdir)/@PACKAGE@
67 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
68 install_sh_DATA = $(install_sh) -c -m 644
69 install_sh_PROGRAM = $(install_sh) -c
70 install_sh_SCRIPT = $(install_sh) -c
71 INSTALL_HEADER = $(INSTALL_DATA)
72 transform = $(program_transform_name)
73 NORMAL_INSTALL = :
74 PRE_INSTALL = :
75 POST_INSTALL = :
76 NORMAL_UNINSTALL = :
77 PRE_UNINSTALL = :
78 POST_UNINSTALL = :
79 build_triplet = @build@
80 host_triplet = @host@
81 subdir = src
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/depcomp $(noinst_HEADERS)
84 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
85 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
86 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
87 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
88 $(top_srcdir)/configure.ac
89 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
90 $(ACLOCAL_M4)
91 mkinstalldirs = $(install_sh) -d
92 CONFIG_HEADER = $(top_builddir)/config.h
93 CONFIG_CLEAN_FILES =
94 CONFIG_CLEAN_VPATH_FILES =
95 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
96 am__vpath_adj = case $$p in \
97 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
98 *) f=$$p;; \
99 esac;
100 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
101 am__install_max = 40
102 am__nobase_strip_setup = \
103 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
104 am__nobase_strip = \
105 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
106 am__nobase_list = $(am__nobase_strip_setup); \
107 for p in $$list; do echo "$$p $$p"; done | \
108 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
109 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
110 if (++n[$$2] == $(am__install_max)) \
111 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
112 END { for (dir in files) print dir, files[dir] }'
113 am__base_list = \
114 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
115 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
116 am__uninstall_files_from_dir = { \
117 test -z "$$files" \
118 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
119 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
120 $(am__cd) "$$dir" && rm -f $$files; }; \
121 }
122 am__installdirs = "$(DESTDIR)$(libdir)"
123 LTLIBRARIES = $(lib_LTLIBRARIES)
124 liblrdf_la_DEPENDENCIES =
125 am_liblrdf_la_OBJECTS = lrdf.lo lrdf_multi.lo md5.lo
126 liblrdf_la_OBJECTS = $(am_liblrdf_la_OBJECTS)
127 AM_V_lt = $(am__v_lt_@AM_V@)
128 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
129 am__v_lt_0 = --silent
130 am__v_lt_1 =
131 liblrdf_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
132 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
133 $(liblrdf_la_LDFLAGS) $(LDFLAGS) -o $@
134 AM_V_P = $(am__v_P_@AM_V@)
135 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
136 am__v_P_0 = false
137 am__v_P_1 = :
138 AM_V_GEN = $(am__v_GEN_@AM_V@)
139 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
140 am__v_GEN_0 = @echo " GEN " $@;
141 am__v_GEN_1 =
142 AM_V_at = $(am__v_at_@AM_V@)
143 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
144 am__v_at_0 = @
145 am__v_at_1 =
146 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
147 depcomp = $(SHELL) $(top_srcdir)/depcomp
148 am__depfiles_maybe = depfiles
149 am__mv = mv -f
150 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
151 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
152 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
153 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
154 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
155 $(AM_CFLAGS) $(CFLAGS)
156 AM_V_CC = $(am__v_CC_@AM_V@)
157 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
158 am__v_CC_0 = @echo " CC " $@;
159 am__v_CC_1 =
160 CCLD = $(CC)
161 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
162 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
163 $(AM_LDFLAGS) $(LDFLAGS) -o $@
164 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
165 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
166 am__v_CCLD_0 = @echo " CCLD " $@;
167 am__v_CCLD_1 =
168 SOURCES = $(liblrdf_la_SOURCES)
169 DIST_SOURCES = $(liblrdf_la_SOURCES)
170 am__can_run_installinfo = \
171 case $$AM_UPDATE_INFO_DIR in \
172 n|no|NO) false;; \
173 *) (install-info --version) >/dev/null 2>&1;; \
174 esac
175 HEADERS = $(noinst_HEADERS)
176 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
177 # Read a list of newline-separated strings from the standard input,
178 # and print each of them once, without duplicates. Input order is
179 # *not* preserved.
180 am__uniquify_input = $(AWK) '\
181 BEGIN { nonempty = 0; } \
182 { items[$$0] = 1; nonempty = 1; } \
183 END { if (nonempty) { for (i in items) print i; }; } \
184 '
185 # Make sure the list of sources is unique. This is necessary because,
186 # e.g., the same source file might be shared among _SOURCES variables
187 # for different programs/libraries.
188 am__define_uniq_tagged_files = \
189 list='$(am__tagged_files)'; \
190 unique=`for i in $$list; do \
191 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
192 done | $(am__uniquify_input)`
193 ETAGS = etags
194 CTAGS = ctags
195 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
196 ACLOCAL = @ACLOCAL@
197 AMTAR = @AMTAR@
198 AM_CFLAGS = -Wall -g -I@top_srcdir@ @AM_CFLAGS@
199 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
200 AR = @AR@
201 AUTOCONF = @AUTOCONF@
202 AUTOHEADER = @AUTOHEADER@
203 AUTOMAKE = @AUTOMAKE@
204 AWK = @AWK@
205 CC = @CC@
206 CCDEPMODE = @CCDEPMODE@
207 CFLAGS = @CFLAGS@
208 CPP = @CPP@
209 CPPFLAGS = @CPPFLAGS@
210 CYGPATH_W = @CYGPATH_W@
211 DEFS = @DEFS@
212 DEPDIR = @DEPDIR@
213 DLLTOOL = @DLLTOOL@
214 DSYMUTIL = @DSYMUTIL@
215 DUMPBIN = @DUMPBIN@
216 ECHO_C = @ECHO_C@
217 ECHO_N = @ECHO_N@
218 ECHO_T = @ECHO_T@
219 EGREP = @EGREP@
220 EXEEXT = @EXEEXT@
221 FGREP = @FGREP@
222 GREP = @GREP@
223 INSTALL = @INSTALL@
224 INSTALL_DATA = @INSTALL_DATA@
225 INSTALL_PROGRAM = @INSTALL_PROGRAM@
226 INSTALL_SCRIPT = @INSTALL_SCRIPT@
227 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
228 LD = @LD@
229 LDFLAGS = @LDFLAGS@
230 LIBOBJS = @LIBOBJS@
231 LIBS = @LIBS@
232 LIBTOOL = @LIBTOOL@
233 LIPO = @LIPO@
234 LN_S = @LN_S@
235 LRDF_LIBTOOL_VERSION = @LRDF_LIBTOOL_VERSION@
236 LTLIBOBJS = @LTLIBOBJS@
237 MAKEINFO = @MAKEINFO@
238 MANIFEST_TOOL = @MANIFEST_TOOL@
239 MKDIR_P = @MKDIR_P@
240 NM = @NM@
241 NMEDIT = @NMEDIT@
242 OBJDUMP = @OBJDUMP@
243 OBJEXT = @OBJEXT@
244 OTOOL = @OTOOL@
245 OTOOL64 = @OTOOL64@
246 PACKAGE = @PACKAGE@
247 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
248 PACKAGE_NAME = @PACKAGE_NAME@
249 PACKAGE_STRING = @PACKAGE_STRING@
250 PACKAGE_TARNAME = @PACKAGE_TARNAME@
251 PACKAGE_URL = @PACKAGE_URL@
252 PACKAGE_VERSION = @PACKAGE_VERSION@
253 PATH_SEPARATOR = @PATH_SEPARATOR@
254 PKG_CONFIG = @PKG_CONFIG@
255 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
256 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
257 RANLIB = @RANLIB@
258 RAPTOR_CFLAGS = @RAPTOR_CFLAGS@
259 RAPTOR_LIBS = @RAPTOR_LIBS@
260 SED = @SED@
261 SET_MAKE = @SET_MAKE@
262 SHELL = @SHELL@
263 STRIP = @STRIP@
264 VERSION = @VERSION@
265 abs_builddir = @abs_builddir@
266 abs_srcdir = @abs_srcdir@
267 abs_top_builddir = @abs_top_builddir@
268 abs_top_srcdir = @abs_top_srcdir@
269 ac_ct_AR = @ac_ct_AR@
270 ac_ct_CC = @ac_ct_CC@
271 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272 am__include = @am__include@
273 am__leading_dot = @am__leading_dot@
274 am__quote = @am__quote@
275 am__tar = @am__tar@
276 am__untar = @am__untar@
277 bindir = @bindir@
278 build = @build@
279 build_alias = @build_alias@
280 build_cpu = @build_cpu@
281 build_os = @build_os@
282 build_vendor = @build_vendor@
283 builddir = @builddir@
284 datadir = @datadir@
285 datarootdir = @datarootdir@
286 docdir = @docdir@
287 dvidir = @dvidir@
288 exec_prefix = @exec_prefix@
289 host = @host@
290 host_alias = @host_alias@
291 host_cpu = @host_cpu@
292 host_os = @host_os@
293 host_vendor = @host_vendor@
294 htmldir = @htmldir@
295 includedir = @includedir@
296 infodir = @infodir@
297 install_sh = @install_sh@
298 libdir = @libdir@
299 libexecdir = @libexecdir@
300 localedir = @localedir@
301 localstatedir = @localstatedir@
302 mandir = @mandir@
303 mkdir_p = @mkdir_p@
304 oldincludedir = @oldincludedir@
305 pdfdir = @pdfdir@
306 prefix = @prefix@
307 program_transform_name = @program_transform_name@
308 psdir = @psdir@
309 sbindir = @sbindir@
310 sharedstatedir = @sharedstatedir@
311 srcdir = @srcdir@
312 sysconfdir = @sysconfdir@
313 target_alias = @target_alias@
314 top_build_prefix = @top_build_prefix@
315 top_builddir = @top_builddir@
316 top_srcdir = @top_srcdir@
317 lib_LTLIBRARIES = liblrdf.la
318 noinst_HEADERS = ladspa.h
319 liblrdf_la_SOURCES = lrdf.c lrdf_multi.c md5.c
320 liblrdf_la_LIBADD = @RAPTOR_LIBS@
321 liblrdf_la_LDFLAGS = -version-info @LRDF_LIBTOOL_VERSION@
322 all: all-am
323
324 .SUFFIXES:
325 .SUFFIXES: .c .lo .o .obj
326 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
327 @for dep in $?; do \
328 case '$(am__configure_deps)' in \
329 *$$dep*) \
330 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
331 && { if test -f $@; then exit 0; else break; fi; }; \
332 exit 1;; \
333 esac; \
334 done; \
335 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
336 $(am__cd) $(top_srcdir) && \
337 $(AUTOMAKE) --foreign src/Makefile
338 .PRECIOUS: Makefile
339 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
340 @case '$?' in \
341 *config.status*) \
342 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
343 *) \
344 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
345 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
346 esac;
347
348 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
349 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
350
351 $(top_srcdir)/configure: $(am__configure_deps)
352 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
353 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
354 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
355 $(am__aclocal_m4_deps):
356
357 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
358 @$(NORMAL_INSTALL)
359 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
360 list2=; for p in $$list; do \
361 if test -f $$p; then \
362 list2="$$list2 $$p"; \
363 else :; fi; \
364 done; \
365 test -z "$$list2" || { \
366 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
367 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
368 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
369 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
370 }
371
372 uninstall-libLTLIBRARIES:
373 @$(NORMAL_UNINSTALL)
374 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
375 for p in $$list; do \
376 $(am__strip_dir) \
377 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
378 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
379 done
380
381 clean-libLTLIBRARIES:
382 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
383 @list='$(lib_LTLIBRARIES)'; \
384 locs=`for p in $$list; do echo $$p; done | \
385 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
386 sort -u`; \
387 test -z "$$locs" || { \
388 echo rm -f $${locs}; \
389 rm -f $${locs}; \
390 }
391
392 liblrdf.la: $(liblrdf_la_OBJECTS) $(liblrdf_la_DEPENDENCIES) $(EXTRA_liblrdf_la_DEPENDENCIES)
393 $(AM_V_CCLD)$(liblrdf_la_LINK) -rpath $(libdir) $(liblrdf_la_OBJECTS) $(liblrdf_la_LIBADD) $(LIBS)
394
395 mostlyclean-compile:
396 -rm -f *.$(OBJEXT)
397
398 distclean-compile:
399 -rm -f *.tab.c
400
401 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lrdf.Plo@am__quote@
402 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lrdf_multi.Plo@am__quote@
403 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5.Plo@am__quote@
404
405 .c.o:
406 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
407 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
408 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
409 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
410 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
411
412 .c.obj:
413 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
414 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
415 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
416 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
417 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
418
419 .c.lo:
420 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
421 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
422 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
423 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
424 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
425
426 mostlyclean-libtool:
427 -rm -f *.lo
428
429 clean-libtool:
430 -rm -rf .libs _libs
431
432 ID: $(am__tagged_files)
433 $(am__define_uniq_tagged_files); mkid -fID $$unique
434 tags: tags-am
435 TAGS: tags
436
437 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
438 set x; \
439 here=`pwd`; \
440 $(am__define_uniq_tagged_files); \
441 shift; \
442 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
443 test -n "$$unique" || unique=$$empty_fix; \
444 if test $$# -gt 0; then \
445 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
446 "$$@" $$unique; \
447 else \
448 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
449 $$unique; \
450 fi; \
451 fi
452 ctags: ctags-am
453
454 CTAGS: ctags
455 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
456 $(am__define_uniq_tagged_files); \
457 test -z "$(CTAGS_ARGS)$$unique" \
458 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
459 $$unique
460
461 GTAGS:
462 here=`$(am__cd) $(top_builddir) && pwd` \
463 && $(am__cd) $(top_srcdir) \
464 && gtags -i $(GTAGS_ARGS) "$$here"
465 cscopelist: cscopelist-am
466
467 cscopelist-am: $(am__tagged_files)
468 list='$(am__tagged_files)'; \
469 case "$(srcdir)" in \
470 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
471 *) sdir=$(subdir)/$(srcdir) ;; \
472 esac; \
473 for i in $$list; do \
474 if test -f "$$i"; then \
475 echo "$(subdir)/$$i"; \
476 else \
477 echo "$$sdir/$$i"; \
478 fi; \
479 done >> $(top_builddir)/cscope.files
480
481 distclean-tags:
482 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
483
484 distdir: $(DISTFILES)
485 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
486 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
487 list='$(DISTFILES)'; \
488 dist_files=`for file in $$list; do echo $$file; done | \
489 sed -e "s|^$$srcdirstrip/||;t" \
490 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
491 case $$dist_files in \
492 */*) $(MKDIR_P) `echo "$$dist_files" | \
493 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
494 sort -u` ;; \
495 esac; \
496 for file in $$dist_files; do \
497 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
498 if test -d $$d/$$file; then \
499 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
500 if test -d "$(distdir)/$$file"; then \
501 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
502 fi; \
503 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
504 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
505 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
506 fi; \
507 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
508 else \
509 test -f "$(distdir)/$$file" \
510 || cp -p $$d/$$file "$(distdir)/$$file" \
511 || exit 1; \
512 fi; \
513 done
514 check-am: all-am
515 check: check-am
516 all-am: Makefile $(LTLIBRARIES) $(HEADERS)
517 installdirs:
518 for dir in "$(DESTDIR)$(libdir)"; do \
519 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
520 done
521 install: install-am
522 install-exec: install-exec-am
523 install-data: install-data-am
524 uninstall: uninstall-am
525
526 install-am: all-am
527 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
528
529 installcheck: installcheck-am
530 install-strip:
531 if test -z '$(STRIP)'; then \
532 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
533 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
534 install; \
535 else \
536 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
537 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
538 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
539 fi
540 mostlyclean-generic:
541
542 clean-generic:
543
544 distclean-generic:
545 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
546 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
547
548 maintainer-clean-generic:
549 @echo "This command is intended for maintainers to use"
550 @echo "it deletes files that may require special tools to rebuild."
551 clean: clean-am
552
553 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
554 mostlyclean-am
555
556 distclean: distclean-am
557 -rm -rf ./$(DEPDIR)
558 -rm -f Makefile
559 distclean-am: clean-am distclean-compile distclean-generic \
560 distclean-tags
561
562 dvi: dvi-am
563
564 dvi-am:
565
566 html: html-am
567
568 html-am:
569
570 info: info-am
571
572 info-am:
573
574 install-data-am:
575
576 install-dvi: install-dvi-am
577
578 install-dvi-am:
579
580 install-exec-am: install-libLTLIBRARIES
581
582 install-html: install-html-am
583
584 install-html-am:
585
586 install-info: install-info-am
587
588 install-info-am:
589
590 install-man:
591
592 install-pdf: install-pdf-am
593
594 install-pdf-am:
595
596 install-ps: install-ps-am
597
598 install-ps-am:
599
600 installcheck-am:
601
602 maintainer-clean: maintainer-clean-am
603 -rm -rf ./$(DEPDIR)
604 -rm -f Makefile
605 maintainer-clean-am: distclean-am maintainer-clean-generic
606
607 mostlyclean: mostlyclean-am
608
609 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
610 mostlyclean-libtool
611
612 pdf: pdf-am
613
614 pdf-am:
615
616 ps: ps-am
617
618 ps-am:
619
620 uninstall-am: uninstall-libLTLIBRARIES
621
622 .MAKE: install-am install-strip
623
624 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
625 clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \
626 ctags-am distclean distclean-compile distclean-generic \
627 distclean-libtool distclean-tags distdir dvi dvi-am html \
628 html-am info info-am install install-am install-data \
629 install-data-am install-dvi install-dvi-am install-exec \
630 install-exec-am install-html install-html-am install-info \
631 install-info-am install-libLTLIBRARIES install-man install-pdf \
632 install-pdf-am install-ps install-ps-am install-strip \
633 installcheck installcheck-am installdirs maintainer-clean \
634 maintainer-clean-generic mostlyclean mostlyclean-compile \
635 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
636 tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES
637
638
639 # Tell versions [3.59,3.63) of GNU make to not export all variables.
640 # Otherwise a system limit (for SysV at least) may be exceeded.
641 .NOEXPORT: